From 4293c938ce6344746c0a522ac5e754c213c5f349 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 20 Sep 2024 12:28:05 +0300 Subject: [PATCH] Label support for select components --- .../doc/cascadeselect/FloatLabelDoc.vue | 85 ++++-- .../doc/cascadeselect/IftaLabelDoc.vue | 288 ++++++++++++++++++ .../doc/multiselect/FloatLabelDoc.vue | 74 ++++- .../showcase/doc/multiselect/IftaLabelDoc.vue | 87 ++++++ apps/showcase/doc/select/IftaLabelDoc.vue | 4 +- .../showcase/doc/treeselect/FloatLabelDoc.vue | 74 ++++- apps/showcase/doc/treeselect/IftaLabelDoc.vue | 111 +++++++ apps/showcase/pages/cascadeselect/index.vue | 6 + apps/showcase/pages/multiselect/index.vue | 6 + apps/showcase/pages/treeselect/index.vue | 6 + .../src/floatlabel/style/FloatLabelStyle.js | 10 +- .../src/iftalabel/style/IftaLabelStyle.js | 5 +- 12 files changed, 702 insertions(+), 54 deletions(-) create mode 100644 apps/showcase/doc/cascadeselect/IftaLabelDoc.vue create mode 100644 apps/showcase/doc/multiselect/IftaLabelDoc.vue create mode 100644 apps/showcase/doc/treeselect/IftaLabelDoc.vue diff --git a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue index 22f6377b3..cca0a139d 100644 --- a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue +++ b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue @@ -2,10 +2,20 @@

A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.

-
- - - +
+ + + + + + + + + + + + +
@@ -15,7 +25,9 @@ export default { data() { return { - selectedCity: null, + value1: null, + value2: null, + value3: null, countries: [ { name: 'Australia', @@ -92,19 +104,37 @@ export default { ], code: { basic: ` - - - + + + + + + + + + + + + + `, options: ` @@ -113,7 +143,9 @@ export default { export default { data() { return { - selectedCity: null, + value1: null, + value2: null, + value3: null, countries: [ { name: 'Australia', @@ -195,11 +227,20 @@ export default { `, composition: ` @@ -207,7 +248,9 @@ export default { diff --git a/apps/showcase/doc/multiselect/FloatLabelDoc.vue b/apps/showcase/doc/multiselect/FloatLabelDoc.vue index c3fe31a60..d78378fb6 100644 --- a/apps/showcase/doc/multiselect/FloatLabelDoc.vue +++ b/apps/showcase/doc/multiselect/FloatLabelDoc.vue @@ -2,10 +2,20 @@

A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.

-
+
- - + + + + + + + + + + + +
@@ -15,7 +25,9 @@ export default { data() { return { - selectedCities: null, + value1: null, + value2: null, + value3: null, cities: [ { name: 'New York', code: 'NY' }, { name: 'Rome', code: 'RM' }, @@ -26,16 +38,36 @@ export default { code: { basic: ` - - + + + + + + + + + + + + `, options: ` @@ -44,7 +76,9 @@ export default { export default { data() { return { - selectedCities: null, + value1: null, + value2: null, + value3: null, cities: [ { name: 'New York', code: 'NY' }, { name: 'Rome', code: 'RM' }, @@ -59,10 +93,20 @@ export default { `, composition: ` @@ -70,7 +114,9 @@ export default { diff --git a/apps/showcase/doc/select/IftaLabelDoc.vue b/apps/showcase/doc/select/IftaLabelDoc.vue index 054b33cba..2be02a37f 100644 --- a/apps/showcase/doc/select/IftaLabelDoc.vue +++ b/apps/showcase/doc/select/IftaLabelDoc.vue @@ -33,7 +33,7 @@ export default { options: `