From d9985b5719de41c43e119db6d492f0fe11379063 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 10:46:23 +0300
Subject: [PATCH 01/13] Update cascadeselect demos
---
apps/showcase/doc/cascadeselect/BasicDoc.vue | 8 +++----
.../doc/cascadeselect/DisabledDoc.vue | 8 +++----
apps/showcase/doc/cascadeselect/FilledDoc.vue | 8 +++----
.../doc/cascadeselect/FloatLabelDoc.vue | 16 ++++++-------
.../showcase/doc/cascadeselect/InvalidDoc.vue | 8 +++----
.../doc/cascadeselect/LoadingStateDoc.vue | 8 +++----
.../doc/cascadeselect/TemplateDoc.vue | 24 ++++++++++++++-----
7 files changed, 46 insertions(+), 34 deletions(-)
diff --git a/apps/showcase/doc/cascadeselect/BasicDoc.vue b/apps/showcase/doc/cascadeselect/BasicDoc.vue
index 560077bb2..5c42dd695 100644
--- a/apps/showcase/doc/cascadeselect/BasicDoc.vue
+++ b/apps/showcase/doc/cascadeselect/BasicDoc.vue
@@ -6,7 +6,7 @@
-
+
@@ -93,13 +93,13 @@ export default {
code: {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
`,
options: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
@@ -191,7 +191,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
diff --git a/apps/showcase/doc/cascadeselect/DisabledDoc.vue b/apps/showcase/doc/cascadeselect/DisabledDoc.vue
index ba04f5d2d..c78733a85 100644
--- a/apps/showcase/doc/cascadeselect/DisabledDoc.vue
+++ b/apps/showcase/doc/cascadeselect/DisabledDoc.vue
@@ -3,7 +3,7 @@
When disabled is present, the element cannot be edited and focused.
-
+
@@ -14,12 +14,12 @@ export default {
return {
code: {
basic: `
-
+
`,
options: `
-
+
@@ -30,7 +30,7 @@ export default {
composition: `
-
+
diff --git a/apps/showcase/doc/cascadeselect/FilledDoc.vue b/apps/showcase/doc/cascadeselect/FilledDoc.vue
index 609237fae..c430c8897 100644
--- a/apps/showcase/doc/cascadeselect/FilledDoc.vue
+++ b/apps/showcase/doc/cascadeselect/FilledDoc.vue
@@ -3,7 +3,7 @@
Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
-
+
@@ -90,13 +90,13 @@ export default {
code: {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
`,
options: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
@@ -188,7 +188,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
diff --git a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
index 22f6377b3..54736da91 100644
--- a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
+++ b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
@@ -3,8 +3,8 @@
A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.
-
-
+
+
City
@@ -92,18 +92,18 @@ export default {
],
code: {
basic: `
-
+
+ :optionGroupChildren="['states', 'cities']" fluid placeholder="Select a City" />
City
`,
options: `
-
+
+ :optionGroupChildren="['states', 'cities']" fluid placeholder="Select a City" />
City
@@ -196,9 +196,9 @@ export default {
composition: `
-
+
+ :optionGroupChildren="['states', 'cities']" fluid placeholder="Select a City" />
City
diff --git a/apps/showcase/doc/cascadeselect/InvalidDoc.vue b/apps/showcase/doc/cascadeselect/InvalidDoc.vue
index 0830c5caf..9ba5f28ea 100644
--- a/apps/showcase/doc/cascadeselect/InvalidDoc.vue
+++ b/apps/showcase/doc/cascadeselect/InvalidDoc.vue
@@ -3,7 +3,7 @@
Invalid state is displayed using the invalid prop to indicate a failed validation. You can use this style when integrating with form validation libraries.
-
+
@@ -90,13 +90,13 @@ export default {
code: {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
`,
options: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
@@ -188,7 +188,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City" />
diff --git a/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue b/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue
index 132e28624..d59293e6c 100644
--- a/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue
+++ b/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue
@@ -3,7 +3,7 @@
Loading state can be used loading property.
-
+
@@ -14,12 +14,12 @@ export default {
return {
code: {
basic: `
-
+
`,
options: `
-
+
@@ -30,7 +30,7 @@ export default {
composition: `
-
+
diff --git a/apps/showcase/doc/cascadeselect/TemplateDoc.vue b/apps/showcase/doc/cascadeselect/TemplateDoc.vue
index 406c40e8d..ab369ab83 100644
--- a/apps/showcase/doc/cascadeselect/TemplateDoc.vue
+++ b/apps/showcase/doc/cascadeselect/TemplateDoc.vue
@@ -1,12 +1,12 @@
- CascadeSelect is used as a controlled component with v-model property along with an options collection. To define the label of a group optionGroupLabel property is needed and also optionGroupChildren is
- required to define the property that refers to the children of a group. Note that order of the optionGroupChildren matters as it should correspond to the data hierarchy.
+ Label of an option is used as the display text of an item by default, for custom content support define an option template that gets the option instance as a parameter. In addition value , dropdownicon ,
+ loadingicon , and optiongroupicon slots are provided for further customization.
-
+
@@ -15,6 +15,9 @@
{{ slotProps.option.cname || slotProps.option.name }}
+
+
+
@@ -102,7 +105,7 @@ export default {
code: {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City">
@@ -111,13 +114,16 @@ export default {
{{ slotProps.option.cname || slotProps.option.name }}
+
+
+
`,
options: `
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City">
@@ -126,6 +132,9 @@ export default {
{{ slotProps.option.cname || slotProps.option.name }}
+
+
+
@@ -218,7 +227,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-full sm:w-56" placeholder="Select a City">
@@ -227,6 +236,9 @@ export default {
{{ slotProps.option.cname || slotProps.option.name }}
+
+
+
From 82048fbbf3e9fdc6f108b79b3ce79688d65cd945 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 10:52:05 +0300
Subject: [PATCH 02/13] Update demos
---
apps/showcase/doc/cascadeselect/BasicDoc.vue | 8 ++++----
apps/showcase/doc/cascadeselect/DisabledDoc.vue | 8 ++++----
apps/showcase/doc/cascadeselect/FilledDoc.vue | 8 ++++----
.../showcase/doc/cascadeselect/FloatLabelDoc.vue | 16 ++++++++--------
.../doc/cascadeselect/LoadingStateDoc.vue | 8 ++++----
apps/showcase/doc/cascadeselect/TemplateDoc.vue | 8 ++++----
apps/showcase/doc/inputmask/DisabledDoc.vue | 8 ++++----
7 files changed, 32 insertions(+), 32 deletions(-)
diff --git a/apps/showcase/doc/cascadeselect/BasicDoc.vue b/apps/showcase/doc/cascadeselect/BasicDoc.vue
index 5c42dd695..cb3b96263 100644
--- a/apps/showcase/doc/cascadeselect/BasicDoc.vue
+++ b/apps/showcase/doc/cascadeselect/BasicDoc.vue
@@ -6,7 +6,7 @@
-
+
@@ -93,13 +93,13 @@ export default {
code: {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
`,
options: `
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
@@ -191,7 +191,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
diff --git a/apps/showcase/doc/cascadeselect/DisabledDoc.vue b/apps/showcase/doc/cascadeselect/DisabledDoc.vue
index c78733a85..7807ec8f3 100644
--- a/apps/showcase/doc/cascadeselect/DisabledDoc.vue
+++ b/apps/showcase/doc/cascadeselect/DisabledDoc.vue
@@ -3,7 +3,7 @@
When disabled is present, the element cannot be edited and focused.
-
+
@@ -14,12 +14,12 @@ export default {
return {
code: {
basic: `
-
+
`,
options: `
-
+
@@ -30,7 +30,7 @@ export default {
composition: `
-
+
diff --git a/apps/showcase/doc/cascadeselect/FilledDoc.vue b/apps/showcase/doc/cascadeselect/FilledDoc.vue
index c430c8897..6795889ec 100644
--- a/apps/showcase/doc/cascadeselect/FilledDoc.vue
+++ b/apps/showcase/doc/cascadeselect/FilledDoc.vue
@@ -3,7 +3,7 @@
Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
-
+
@@ -90,13 +90,13 @@ export default {
code: {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
`,
options: `
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
@@ -188,7 +188,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
diff --git a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
index 54736da91..809e72b53 100644
--- a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
+++ b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
@@ -3,8 +3,8 @@
A floating label appears on top of the input field when focused. Visit FloatLabel documentation for more information.
-
-
+
+
City
@@ -92,18 +92,18 @@ export default {
],
code: {
basic: `
-
+
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
City
`,
options: `
-
+
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
City
@@ -196,9 +196,9 @@ export default {
composition: `
-
+
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City" />
City
diff --git a/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue b/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue
index d59293e6c..9be6b8849 100644
--- a/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue
+++ b/apps/showcase/doc/cascadeselect/LoadingStateDoc.vue
@@ -3,7 +3,7 @@
Loading state can be used loading property.
-
+
@@ -14,12 +14,12 @@ export default {
return {
code: {
basic: `
-
+
`,
options: `
-
+
@@ -30,7 +30,7 @@ export default {
composition: `
-
+
diff --git a/apps/showcase/doc/cascadeselect/TemplateDoc.vue b/apps/showcase/doc/cascadeselect/TemplateDoc.vue
index ab369ab83..83f3173d3 100644
--- a/apps/showcase/doc/cascadeselect/TemplateDoc.vue
+++ b/apps/showcase/doc/cascadeselect/TemplateDoc.vue
@@ -6,7 +6,7 @@
-
+
@@ -105,7 +105,7 @@ export default {
code: {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City">
@@ -123,7 +123,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City">
@@ -227,7 +227,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-56" placeholder="Select a City">
diff --git a/apps/showcase/doc/inputmask/DisabledDoc.vue b/apps/showcase/doc/inputmask/DisabledDoc.vue
index f7b247741..c0cbb1a6f 100644
--- a/apps/showcase/doc/inputmask/DisabledDoc.vue
+++ b/apps/showcase/doc/inputmask/DisabledDoc.vue
@@ -3,7 +3,7 @@
When disabled is present, the element cannot be edited and focused.
-
+
@@ -15,12 +15,12 @@ export default {
value: '',
code: {
basic: `
-
+
`,
options: `
-
+
@@ -38,7 +38,7 @@ export default {
composition: `
-
+
From 45a070d07a698601a33fbc4778aa69891f3d239a Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 10:58:52 +0300
Subject: [PATCH 03/13] Remove placeholder
---
apps/showcase/doc/cascadeselect/FloatLabelDoc.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
index 809e72b53..7d760f574 100644
--- a/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
+++ b/apps/showcase/doc/cascadeselect/FloatLabelDoc.vue
@@ -4,7 +4,7 @@
-
+
City
@@ -94,7 +94,7 @@ export default {
basic: `
+ :optionGroupChildren="['states', 'cities']" class="w-56" />
City
`,
@@ -103,7 +103,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-56" />
City
@@ -198,7 +198,7 @@ export default {
+ :optionGroupChildren="['states', 'cities']" class="w-56" />
City
From 17b0cf035a121d5a86db25d296929956be69bab2 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 10:59:34 +0300
Subject: [PATCH 04/13] Fixed flicker
---
apps/showcase/doc/button/TemplateDoc.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/showcase/doc/button/TemplateDoc.vue b/apps/showcase/doc/button/TemplateDoc.vue
index 45505329b..13eebfc3d 100644
--- a/apps/showcase/doc/button/TemplateDoc.vue
+++ b/apps/showcase/doc/button/TemplateDoc.vue
@@ -3,7 +3,7 @@
Custom content inside a button is defined as children.
-
+
+
@@ -35,7 +35,7 @@ export default {
options: `
-
+
-
+
Date: Thu, 26 Sep 2024 11:05:33 +0300
Subject: [PATCH 05/13] Add nested splitbutton demo
---
apps/showcase/doc/splitbutton/NestedDoc.vue | 256 ++++++++++++++++++++
apps/showcase/pages/splitbutton/index.vue | 6 +
2 files changed, 262 insertions(+)
create mode 100644 apps/showcase/doc/splitbutton/NestedDoc.vue
diff --git a/apps/showcase/doc/splitbutton/NestedDoc.vue b/apps/showcase/doc/splitbutton/NestedDoc.vue
new file mode 100644
index 000000000..cdb4f080c
--- /dev/null
+++ b/apps/showcase/doc/splitbutton/NestedDoc.vue
@@ -0,0 +1,256 @@
+
+
+ Multi-level menus are supported with a nested menu hierarchy.
+
+
+
+
+
+
+
+
diff --git a/apps/showcase/pages/splitbutton/index.vue b/apps/showcase/pages/splitbutton/index.vue
index 153206c5d..00f52f66c 100755
--- a/apps/showcase/pages/splitbutton/index.vue
+++ b/apps/showcase/pages/splitbutton/index.vue
@@ -16,6 +16,7 @@ import BasicDoc from '@/doc/splitbutton/BasicDoc.vue';
import DisabledDoc from '@/doc/splitbutton/DisabledDoc.vue';
import IconsDoc from '@/doc/splitbutton/IconsDoc.vue';
import ImportDoc from '@/doc/splitbutton/ImportDoc.vue';
+import NestedDoc from '@/doc/splitbutton/NestedDoc.vue';
import OutlinedDoc from '@/doc/splitbutton/OutlinedDoc.vue';
import RaisedDoc from '@/doc/splitbutton/RaisedDoc.vue';
import RaisedTextDoc from '@/doc/splitbutton/RaisedTextDoc.vue';
@@ -40,6 +41,11 @@ export default {
label: 'Basic',
component: BasicDoc
},
+ {
+ id: 'nested',
+ label: 'Nested',
+ component: NestedDoc
+ },
{
id: 'icons',
label: 'Icons',
From 7a32f796b8d48f63729621c8ecf0e73c2614426b Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 11:10:53 +0300
Subject: [PATCH 06/13] Enable sized demo
---
apps/showcase/doc/splitbutton/SizesDoc.vue | 2 +-
apps/showcase/pages/splitbutton/index.vue | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/apps/showcase/doc/splitbutton/SizesDoc.vue b/apps/showcase/doc/splitbutton/SizesDoc.vue
index 4f163d6db..7c008118a 100644
--- a/apps/showcase/doc/splitbutton/SizesDoc.vue
+++ b/apps/showcase/doc/splitbutton/SizesDoc.vue
@@ -36,7 +36,7 @@ export default {
window.location.href = 'https://vuejs.org/';
}
},
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ { label: 'Upload', icon: 'pi pi-upload', to: '/upload' }
],
code: {
basic: `
diff --git a/apps/showcase/pages/splitbutton/index.vue b/apps/showcase/pages/splitbutton/index.vue
index 00f52f66c..78b9efc4d 100755
--- a/apps/showcase/pages/splitbutton/index.vue
+++ b/apps/showcase/pages/splitbutton/index.vue
@@ -22,6 +22,7 @@ import RaisedDoc from '@/doc/splitbutton/RaisedDoc.vue';
import RaisedTextDoc from '@/doc/splitbutton/RaisedTextDoc.vue';
import RoundedDoc from '@/doc/splitbutton/RoundedDoc.vue';
import SeverityDoc from '@/doc/splitbutton/SeverityDoc.vue';
+import SizesDoc from '@/doc/splitbutton/SizesDoc.vue';
import TemplateDoc from '@/doc/splitbutton/TemplateDoc.vue';
import TextDoc from '@/doc/splitbutton/TextDoc.vue';
import PTComponent from '@/doc/splitbutton/pt/index.vue';
@@ -86,11 +87,11 @@ export default {
label: 'Outlined',
component: OutlinedDoc
},
- /*{
+ {
id: 'sizes',
label: 'Sizes',
component: SizesDoc
- },*/
+ },
{
id: 'template',
label: 'Template',
From 47a0bfc4c300955c33bfd59882368c77d8fb5f95 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 11:19:50 +0300
Subject: [PATCH 07/13] New model for split button demos
---
apps/showcase/doc/splitbutton/BasicDoc.vue | 27 +++++---
apps/showcase/doc/splitbutton/DisabledDoc.vue | 24 ++++---
apps/showcase/doc/splitbutton/IconsDoc.vue | 34 ++++++----
apps/showcase/doc/splitbutton/NestedDoc.vue | 14 ++++
apps/showcase/doc/splitbutton/OutlinedDoc.vue | 28 ++++----
apps/showcase/doc/splitbutton/RaisedDoc.vue | 24 ++++---
.../doc/splitbutton/RaisedTextDoc.vue | 24 ++++---
apps/showcase/doc/splitbutton/RoundedDoc.vue | 24 ++++---
apps/showcase/doc/splitbutton/SeverityDoc.vue | 24 ++++---
apps/showcase/doc/splitbutton/SizesDoc.vue | 64 +++++++++----------
apps/showcase/doc/splitbutton/TemplateDoc.vue | 37 +++++------
apps/showcase/doc/splitbutton/TextDoc.vue | 24 ++++---
apps/showcase/pages/splitbutton/index.vue | 10 +--
13 files changed, 211 insertions(+), 147 deletions(-)
diff --git a/apps/showcase/doc/splitbutton/BasicDoc.vue b/apps/showcase/doc/splitbutton/BasicDoc.vue
index 2fce74fed..a2bfd80e4 100644
--- a/apps/showcase/doc/splitbutton/BasicDoc.vue
+++ b/apps/showcase/doc/splitbutton/BasicDoc.vue
@@ -26,12 +26,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -63,11 +65,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
+ }
{ label: 'Upload', to: '/fileupload' }
]
};
@@ -96,22 +101,24 @@ const items = [
{
label: 'Update',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/DisabledDoc.vue b/apps/showcase/doc/splitbutton/DisabledDoc.vue
index 8ab4deac8..bb1f6ce63 100644
--- a/apps/showcase/doc/splitbutton/DisabledDoc.vue
+++ b/apps/showcase/doc/splitbutton/DisabledDoc.vue
@@ -26,12 +26,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -63,12 +65,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
]
};
},
@@ -105,12 +109,14 @@ const items = [
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/IconsDoc.vue b/apps/showcase/doc/splitbutton/IconsDoc.vue
index 6b4f8bd3a..0287d8e25 100644
--- a/apps/showcase/doc/splitbutton/IconsDoc.vue
+++ b/apps/showcase/doc/splitbutton/IconsDoc.vue
@@ -28,13 +28,15 @@ export default {
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
+ icon: 'pi pi-power-off',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -68,13 +70,15 @@ export default {
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
+ icon: 'pi pi-power-off',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ }
]
};
},
@@ -103,24 +107,26 @@ const items = [
label: 'Update',
icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
+ icon: 'pi pi-power-off',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/NestedDoc.vue b/apps/showcase/doc/splitbutton/NestedDoc.vue
index cdb4f080c..a6093104c 100644
--- a/apps/showcase/doc/splitbutton/NestedDoc.vue
+++ b/apps/showcase/doc/splitbutton/NestedDoc.vue
@@ -166,6 +166,11 @@ export default {
}
]
};
+ },
+ methods: {
+ save() {
+ this.$toast.add({ severity: 'success', summary: 'Success', detail: 'Data Saved', life: 3000 });
+ }
}
};
<\/script>
@@ -247,10 +252,19 @@ const items = [
]
}
];
+
+const save = () => {
+ toast.add({ severity: 'success', summary: 'Success', detail: 'Data Saved', life: 3000 });
+};
<\/script>
`
}
};
+ },
+ methods: {
+ save() {
+ this.$toast.add({ severity: 'success', summary: 'Success', detail: 'Data Saved', life: 3000 });
+ }
}
};
diff --git a/apps/showcase/doc/splitbutton/OutlinedDoc.vue b/apps/showcase/doc/splitbutton/OutlinedDoc.vue
index d66143de3..79651768c 100644
--- a/apps/showcase/doc/splitbutton/OutlinedDoc.vue
+++ b/apps/showcase/doc/splitbutton/OutlinedDoc.vue
@@ -33,12 +33,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -84,12 +86,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
]
}
},
@@ -124,22 +128,24 @@ const items = [
{
label: 'Update',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/RaisedDoc.vue b/apps/showcase/doc/splitbutton/RaisedDoc.vue
index 955540f7a..6e33f9865 100644
--- a/apps/showcase/doc/splitbutton/RaisedDoc.vue
+++ b/apps/showcase/doc/splitbutton/RaisedDoc.vue
@@ -33,12 +33,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -84,12 +86,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
]
};
},
@@ -134,12 +138,14 @@ const items = [
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/RaisedTextDoc.vue b/apps/showcase/doc/splitbutton/RaisedTextDoc.vue
index 2df5f5b8c..c74f82479 100644
--- a/apps/showcase/doc/splitbutton/RaisedTextDoc.vue
+++ b/apps/showcase/doc/splitbutton/RaisedTextDoc.vue
@@ -32,12 +32,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -81,12 +83,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
]
};
},
@@ -130,12 +134,14 @@ const items = [
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/RoundedDoc.vue b/apps/showcase/doc/splitbutton/RoundedDoc.vue
index 797c27a73..5b039dcb7 100644
--- a/apps/showcase/doc/splitbutton/RoundedDoc.vue
+++ b/apps/showcase/doc/splitbutton/RoundedDoc.vue
@@ -33,12 +33,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -84,12 +86,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
]
};
},
@@ -134,12 +138,14 @@ const items = [
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/SeverityDoc.vue b/apps/showcase/doc/splitbutton/SeverityDoc.vue
index baa0c3f11..bc69f68d7 100644
--- a/apps/showcase/doc/splitbutton/SeverityDoc.vue
+++ b/apps/showcase/doc/splitbutton/SeverityDoc.vue
@@ -33,12 +33,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -84,12 +86,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
]
};
},
@@ -134,12 +138,14 @@ const items = [
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/SizesDoc.vue b/apps/showcase/doc/splitbutton/SizesDoc.vue
index 7c008118a..4e4811fcc 100644
--- a/apps/showcase/doc/splitbutton/SizesDoc.vue
+++ b/apps/showcase/doc/splitbutton/SizesDoc.vue
@@ -17,26 +17,25 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/upload' }
+ }
],
code: {
basic: `
@@ -61,26 +60,25 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ }
]
};
},
@@ -107,28 +105,28 @@ import { useToast } from "primevue/usetoast";
const toast = useToast();
const items = [
-{
- label: 'Update',
- icon: 'pi pi-refresh',
- command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ {
+ label: 'Update',
+ command: () => {
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ }
+ },
+ {
+ label: 'Delete',
+ command: () => {
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ }
+ },
+ {
+ separator: true
+ },
+ {
+ label: 'Quit',
+ command: () => {
+ window.location.href = 'https://vuejs.org/';
+ }
}
-},
-{
- label: 'Delete',
- icon: 'pi pi-times',
- command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
- }
-},
-{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
- command: () => {
- window.location.href = 'https://vuejs.org/';
- }
-},
-{ label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }];
+];
const save = () => {
toast.add({ severity: 'success', summary: 'Success', detail: 'Data Saved', life: 3000 });
diff --git a/apps/showcase/doc/splitbutton/TemplateDoc.vue b/apps/showcase/doc/splitbutton/TemplateDoc.vue
index 1493b44cd..673e1152b 100644
--- a/apps/showcase/doc/splitbutton/TemplateDoc.vue
+++ b/apps/showcase/doc/splitbutton/TemplateDoc.vue
@@ -20,26 +20,25 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -70,26 +69,25 @@ export default {
items: [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ }
]
};
},
@@ -121,26 +119,25 @@ const toast = useToast();
const items = [
{
label: 'Update',
- icon: 'pi pi-refresh',
command: () => {
- toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
+ this.$toast.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
}
},
{
label: 'Delete',
- icon: 'pi pi-times',
command: () => {
- toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
+ this.$toast.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
}
},
{
- label: 'Vue Website',
- icon: 'pi pi-external-link',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', icon: 'pi pi-upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/doc/splitbutton/TextDoc.vue b/apps/showcase/doc/splitbutton/TextDoc.vue
index 2979f64f0..7f9084033 100644
--- a/apps/showcase/doc/splitbutton/TextDoc.vue
+++ b/apps/showcase/doc/splitbutton/TextDoc.vue
@@ -32,12 +32,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
],
code: {
basic: `
@@ -81,12 +83,14 @@ export default {
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
]
};
},
@@ -130,12 +134,14 @@ const items = [
}
},
{
- label: 'Vue Website',
+ separator: true
+ },
+ {
+ label: 'Quit',
command: () => {
window.location.href = 'https://vuejs.org/';
}
- },
- { label: 'Upload', to: '/fileupload' }
+ }
];
const save = () => {
diff --git a/apps/showcase/pages/splitbutton/index.vue b/apps/showcase/pages/splitbutton/index.vue
index 78b9efc4d..143795822 100755
--- a/apps/showcase/pages/splitbutton/index.vue
+++ b/apps/showcase/pages/splitbutton/index.vue
@@ -42,16 +42,16 @@ export default {
label: 'Basic',
component: BasicDoc
},
- {
- id: 'nested',
- label: 'Nested',
- component: NestedDoc
- },
{
id: 'icons',
label: 'Icons',
component: IconsDoc
},
+ {
+ id: 'nested',
+ label: 'Nested',
+ component: NestedDoc
+ },
{
id: 'severity',
label: 'Severity',
From 2bba9499a2e02d3d0178fcc789069009361de9bf Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 11:20:46 +0300
Subject: [PATCH 08/13] Smaller avatar
---
apps/showcase/doc/panel/TemplateDoc.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/showcase/doc/panel/TemplateDoc.vue b/apps/showcase/doc/panel/TemplateDoc.vue
index 376603932..3ff207020 100644
--- a/apps/showcase/doc/panel/TemplateDoc.vue
+++ b/apps/showcase/doc/panel/TemplateDoc.vue
@@ -6,7 +6,7 @@
@@ -58,7 +58,7 @@ export default {
@@ -88,7 +88,7 @@ export default {
@@ -154,7 +154,7 @@ export default {
From abae7801134e1c7359f45d8419b820b2c7351fd2 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 11:34:07 +0300
Subject: [PATCH 09/13] Tree demo cosmetics
---
apps/showcase/doc/tooltip/AutoHideDoc.vue | 18 +++++++++---------
apps/showcase/doc/tree/BasicDoc.vue | 6 +++---
apps/showcase/doc/tree/ControlledDoc.vue | 6 +++---
apps/showcase/doc/tree/EventsDoc.vue | 14 +++++++-------
apps/showcase/doc/tree/TemplateDoc.vue | 6 +++---
.../doc/tree/selection/CheckboxDoc.vue | 6 +++---
.../doc/tree/selection/MultipleDoc.vue | 14 +++++++-------
apps/showcase/doc/tree/selection/SingleDoc.vue | 6 +++---
8 files changed, 38 insertions(+), 38 deletions(-)
diff --git a/apps/showcase/doc/tooltip/AutoHideDoc.vue b/apps/showcase/doc/tooltip/AutoHideDoc.vue
index 134d88567..ab27de8bb 100644
--- a/apps/showcase/doc/tooltip/AutoHideDoc.vue
+++ b/apps/showcase/doc/tooltip/AutoHideDoc.vue
@@ -1,10 +1,10 @@
- Tooltip gets hidden when mouse leaves the target element by default, set autoHide to false to change this behavior.
+ Tooltip gets hidden when mouse leaves the target element by default, set autoHide to false to customize this behavior so that tooltip stays open when the cursor is on the tooltip.
-
-
+
+
@@ -15,22 +15,22 @@ export default {
return {
code: {
basic: `
-
-
+
+
`,
options: `
-
-
+
+
`,
composition: `
-
-
+
+
`
diff --git a/apps/showcase/doc/tree/BasicDoc.vue b/apps/showcase/doc/tree/BasicDoc.vue
index 488b538e3..15f5a1c80 100644
--- a/apps/showcase/doc/tree/BasicDoc.vue
+++ b/apps/showcase/doc/tree/BasicDoc.vue
@@ -2,7 +2,7 @@
Tree component requires an array of TreeNode objects as its value .
-
+
@@ -20,7 +20,7 @@ export default {
`,
options: `
-
+
@@ -42,7 +42,7 @@ export default {
`,
composition: `
-
+
diff --git a/apps/showcase/doc/tree/ControlledDoc.vue b/apps/showcase/doc/tree/ControlledDoc.vue
index 55a4fab7e..dc31eb2db 100644
--- a/apps/showcase/doc/tree/ControlledDoc.vue
+++ b/apps/showcase/doc/tree/ControlledDoc.vue
@@ -5,7 +5,7 @@
expandedKeys also supports two-way binding with the v-model directive.
-
+
@@ -33,7 +33,7 @@ export default {
`,
options: `
-
+
@@ -81,7 +81,7 @@ export default {
`,
composition: `
-
+
diff --git a/apps/showcase/doc/tree/EventsDoc.vue b/apps/showcase/doc/tree/EventsDoc.vue
index 253f8f9a6..52517471b 100644
--- a/apps/showcase/doc/tree/EventsDoc.vue
+++ b/apps/showcase/doc/tree/EventsDoc.vue
@@ -2,7 +2,7 @@
An event is provided for each type of user interaction such as expand, collapse and selection.
-
+
`,
options: `
-
+
@@ -62,7 +62,7 @@ export default {
this.$toast.add({ severity: 'info', summary: 'Node Expanded', detail: node.label, life: 3000 });
},
onNodeCollapse(node) {
- this.$toast.add({ severity: 'error', summary: 'Node Collapsed', detail: node.label, life: 3000 });
+ this.$toast.add({ severity: 'info', summary: 'Node Collapsed', detail: node.label, life: 3000 });
}
}
}
@@ -70,7 +70,7 @@ export default {
`,
composition: `
-
+
@@ -103,7 +103,7 @@ const onNodeExpand = (node) => {
};
const onNodeCollapse (node) => {
- toast.add({ severity: 'error', summary: 'Node Collapsed', detail: node.label, life: 3000 });
+ toast.add({ severity: 'info', summary: 'Node Collapsed', detail: node.label, life: 3000 });
};
<\/script>
`,
@@ -151,7 +151,7 @@ const onNodeCollapse (node) => {
this.$toast.add({ severity: 'info', summary: 'Node Expanded', detail: node.label, life: 3000 });
},
onNodeCollapse(node) {
- this.$toast.add({ severity: 'error', summary: 'Node Collapsed', detail: node.label, life: 3000 });
+ this.$toast.add({ severity: 'info', summary: 'Node Collapsed', detail: node.label, life: 3000 });
}
}
};
diff --git a/apps/showcase/doc/tree/TemplateDoc.vue b/apps/showcase/doc/tree/TemplateDoc.vue
index 404b85c66..f89a4f43c 100644
--- a/apps/showcase/doc/tree/TemplateDoc.vue
+++ b/apps/showcase/doc/tree/TemplateDoc.vue
@@ -2,7 +2,7 @@
Each node can have a distinct template by matching the type property to the slot name.
-
+
{{ slotProps.node.label }}
@@ -54,7 +54,7 @@ export default {
`,
options: `
-
+
{{ slotProps.node.label }}
@@ -99,7 +99,7 @@ export default {
`,
composition: `
-
+
{{ slotProps.node.label }}
diff --git a/apps/showcase/doc/tree/selection/CheckboxDoc.vue b/apps/showcase/doc/tree/selection/CheckboxDoc.vue
index abe31e97a..ee7188b12 100644
--- a/apps/showcase/doc/tree/selection/CheckboxDoc.vue
+++ b/apps/showcase/doc/tree/selection/CheckboxDoc.vue
@@ -6,7 +6,7 @@
selection.
-
+
@@ -26,7 +26,7 @@ export default {
`,
options: `
-
+
@@ -57,7 +57,7 @@ export default {
`,
composition: `
-
+
diff --git a/apps/showcase/doc/tree/selection/MultipleDoc.vue b/apps/showcase/doc/tree/selection/MultipleDoc.vue
index 764e4c582..e02fd4bc5 100644
--- a/apps/showcase/doc/tree/selection/MultipleDoc.vue
+++ b/apps/showcase/doc/tree/selection/MultipleDoc.vue
@@ -6,12 +6,12 @@
In multiple selection mode, value binding should be a key-value pair where key is the node key and value is a boolean to indicate selection.
-
+
@@ -27,17 +27,17 @@ export default {
selectedKey: null,
code: {
basic: `
-
`,
options: `
-
+
@@ -60,12 +60,12 @@ export default {
`,
composition: `
-
+
diff --git a/apps/showcase/doc/tree/selection/SingleDoc.vue b/apps/showcase/doc/tree/selection/SingleDoc.vue
index 9a001ae90..030b29997 100644
--- a/apps/showcase/doc/tree/selection/SingleDoc.vue
+++ b/apps/showcase/doc/tree/selection/SingleDoc.vue
@@ -2,7 +2,7 @@
Single node selection is configured by setting selectionMode as single along with selectionKeys property to manage the selection value binding.
-
+
@@ -21,7 +21,7 @@ export default {
`,
options: `
-
+
@@ -52,7 +52,7 @@ export default {
`,
composition: `
-
+
From fd428bdb118781c50b7f843394cbb724bca411c1 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 11:37:19 +0300
Subject: [PATCH 10/13] Fixed dataview demo
---
apps/showcase/doc/dataview/BasicDoc.vue | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/apps/showcase/doc/dataview/BasicDoc.vue b/apps/showcase/doc/dataview/BasicDoc.vue
index cadfbde29..9a63c558d 100644
--- a/apps/showcase/doc/dataview/BasicDoc.vue
+++ b/apps/showcase/doc/dataview/BasicDoc.vue
@@ -7,12 +7,10 @@
-
+
-
-
-
-
+
+
@@ -60,9 +58,7 @@ export default {
-
-
-
+
@@ -101,9 +97,7 @@ export default {
-
-
-
+
@@ -176,9 +170,7 @@ export default {
-
-
-
+
From 0362c9e3a316a037a2f5b4d345b3371180752d82 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 11:44:01 +0300
Subject: [PATCH 11/13] Fixed jump
---
apps/showcase/doc/message/LifeDoc.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/apps/showcase/doc/message/LifeDoc.vue b/apps/showcase/doc/message/LifeDoc.vue
index 54a43f9df..7dfc36f2c 100644
--- a/apps/showcase/doc/message/LifeDoc.vue
+++ b/apps/showcase/doc/message/LifeDoc.vue
@@ -2,8 +2,8 @@
Messages can disappear automatically by defined the life in milliseconds.
-
-
+
+
Auto Disappear Message
@@ -16,13 +16,13 @@ export default {
visible: false,
code: {
basic: `
-
+
Auto Disappear Message
`,
options: `
-
-
+
+
Auto Disappear Message
@@ -48,8 +48,8 @@ export default {
`,
composition: `
-
-
+
+
Auto Disappear Message
From 53dab14b880957e72bd6dc89db4e0f0df610f725 Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 12:00:05 +0300
Subject: [PATCH 12/13] Add new row selection demo
---
.../rowselection/ColumnRowSelectionDoc.vue | 143 ++++++++++++++++++
apps/showcase/pages/datatable/index.vue | 6 +
2 files changed, 149 insertions(+)
create mode 100644 apps/showcase/doc/datatable/rowselection/ColumnRowSelectionDoc.vue
diff --git a/apps/showcase/doc/datatable/rowselection/ColumnRowSelectionDoc.vue b/apps/showcase/doc/datatable/rowselection/ColumnRowSelectionDoc.vue
new file mode 100644
index 000000000..146248892
--- /dev/null
+++ b/apps/showcase/doc/datatable/rowselection/ColumnRowSelectionDoc.vue
@@ -0,0 +1,143 @@
+
+
+ Row selection with an element inside a column is implemented with templating.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/showcase/pages/datatable/index.vue b/apps/showcase/pages/datatable/index.vue
index 34eef58dd..ff4f75433 100755
--- a/apps/showcase/pages/datatable/index.vue
+++ b/apps/showcase/pages/datatable/index.vue
@@ -41,6 +41,7 @@ import ExpandableRowGroupDoc from '@/doc/datatable/rowgroup/ExpandableRowGroupDo
import RowSpanRowGroupDoc from '@/doc/datatable/rowgroup/RowSpanRowGroupDoc.vue';
import SubHeaderRowGroupDoc from '@/doc/datatable/rowgroup/SubHeaderRowGroupDoc.vue';
import CheckboxRowSelectionDoc from '@/doc/datatable/rowselection/CheckboxRowSelectionDoc.vue';
+import ColumnRowSelectionDoc from '@/doc/datatable/rowselection/ColumnRowSelectionDoc.vue';
import MultipleRowsSelectionDoc from '@/doc/datatable/rowselection/MultipleRowsSelectionDoc.vue';
import RadioButtonRowSelectionDoc from '@/doc/datatable/rowselection/RadioButtonRowSelectionDoc.vue';
import RowSelectEventsDoc from '@/doc/datatable/rowselection/RowSelectEventsDoc.vue';
@@ -181,6 +182,11 @@ export default {
label: 'Checkbox',
component: CheckboxRowSelectionDoc
},
+ {
+ id: 'column_row_selection',
+ label: 'Column',
+ component: ColumnRowSelectionDoc
+ },
{
id: 'row_selection_events',
label: 'Events',
From 72fd3c80f30ac3d7a3c0f79c9ae9c5f31091e65c Mon Sep 17 00:00:00 2001
From: Cagatay Civici
Date: Thu, 26 Sep 2024 12:03:44 +0300
Subject: [PATCH 13/13] Export button pos
---
apps/showcase/doc/datatable/ExportDoc.vue | 8 ++---
.../doc/datatable/samples/ProductsDoc.vue | 32 +++++++++----------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/apps/showcase/doc/datatable/ExportDoc.vue b/apps/showcase/doc/datatable/ExportDoc.vue
index d4f3c56c2..364ef4707 100644
--- a/apps/showcase/doc/datatable/ExportDoc.vue
+++ b/apps/showcase/doc/datatable/ExportDoc.vue
@@ -6,7 +6,7 @@
-
+
@@ -31,7 +31,7 @@ export default {
basic: `
-
+
@@ -46,7 +46,7 @@ export default {
-
+
@@ -84,7 +84,7 @@ export default {
-
+
diff --git a/apps/showcase/doc/datatable/samples/ProductsDoc.vue b/apps/showcase/doc/datatable/samples/ProductsDoc.vue
index d66adcdde..667929a5e 100644
--- a/apps/showcase/doc/datatable/samples/ProductsDoc.vue
+++ b/apps/showcase/doc/datatable/samples/ProductsDoc.vue
@@ -6,13 +6,13 @@
-
-
+
+
-
-
+
+
@@ -183,13 +183,13 @@ export default {
basic: `
-
-
+
+
-
-
+
+
@@ -255,13 +255,13 @@ export default {
-
-
+
+
-
-
+
+
@@ -547,13 +547,13 @@ export default {
-
-
+
+
-
-
+
+