@quidgest/ui 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/json/api.json +487 -155
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +1017 -142
- package/dist/ui.esm.js +988 -939
- package/dist/ui.js +1229 -1183
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1229 -1183
- package/dist/ui.scss +1267 -158
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +19 -18
- package/esm/components/QAccordion/QAccordionItem.vue.js +4 -4
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +58 -55
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +17 -16
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +81 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +85 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts +22 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +74 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/constants.d.ts +20 -0
- package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/constants.js +10 -0
- package/esm/components/QBreadcrumbs/context.d.ts +103 -0
- package/esm/components/QBreadcrumbs/context.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/context.js +4 -0
- package/esm/components/QBreadcrumbs/index.d.ts +108 -0
- package/esm/components/QBreadcrumbs/index.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/index.js +7 -0
- package/esm/components/QBreadcrumbs/types.d.ts +100 -0
- package/esm/components/QBreadcrumbs/types.d.ts.map +1 -0
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +55 -52
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +16 -15
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +51 -52
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +119 -115
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +10 -14
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +52 -51
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +48 -47
- package/esm/components/QCombobox/QCombobox.d.ts +6 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +119 -116
- package/esm/components/QCombobox/index.d.ts +3 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +468 -429
- package/esm/components/QDateTimePicker/constants.d.ts +5 -0
- package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/constants.js +5 -0
- package/esm/components/QDialog/QDialog.d.ts +2 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +84 -65
- package/esm/components/QDialog/constants.d.ts +6 -1
- package/esm/components/QDialog/constants.d.ts.map +1 -1
- package/esm/components/QDialog/constants.js +6 -2
- package/esm/components/QDialog/index.d.ts +6 -0
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +13 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.vue.js +22 -21
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -6
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +126 -125
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +36 -34
- package/esm/components/QFileUpload/QFileUpload.vue.js +16 -16
- package/esm/components/QGauge/QGauge.d.ts +1 -1
- package/esm/components/QGauge/QGauge.d.ts.map +1 -1
- package/esm/components/QGauge/QGauge.vue.js +9 -9
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +20 -19
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +13 -12
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +12 -11
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +19 -18
- package/esm/components/QIcon/QSvgSymbol.d.ts +54 -0
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -0
- package/esm/components/QIcon/QSvgSymbol.vue.js +88 -0
- package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +30 -29
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +20 -19
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +14 -13
- package/esm/components/QList/QList.d.ts +4 -4
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -135
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +42 -40
- package/esm/components/QList/QListItemGroup.d.ts +1 -1
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +2 -2
- package/esm/components/QList/types.d.ts +6 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +20 -19
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +53 -53
- package/esm/components/QOverflow/QOverflow.d.ts +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +10 -10
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +139 -138
- package/esm/components/QPasswordField/QPasswordField.d.ts +2 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +63 -60
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -1
- package/esm/components/QPasswordField/constants.d.ts +4 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -1
- package/esm/components/QPasswordField/constants.js +4 -1
- package/esm/components/QPasswordField/index.d.ts +6 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +7 -1
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +7 -5
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +88 -88
- package/esm/components/QPhoneField/index.d.ts +3 -2
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +51 -28
- package/esm/components/QProgress/QProgress.vue.js +3 -3
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +65 -55
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +8 -4
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +31 -28
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +13 -12
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +41 -16
- package/esm/components/QPropertyList/constants.d.ts +2 -0
- package/esm/components/QPropertyList/constants.d.ts.map +1 -1
- package/esm/components/QPropertyList/constants.js +5 -1
- package/esm/components/QPropertyList/index.d.ts +16 -4
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +19 -18
- package/esm/components/QSelect/QSelect.d.ts +6 -4
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +129 -124
- package/esm/components/QSelect/index.d.ts +3 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +68 -67
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +8 -8
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +40 -36
- package/esm/components/QSidebar/context.d.ts +1 -1
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +8 -0
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +15 -14
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QStepHeader.d.ts +58 -0
- package/esm/components/QSteps/QStepHeader.d.ts.map +1 -0
- package/esm/components/QSteps/QStepHeader.vue.js +49 -0
- package/esm/components/QSteps/QStepHeader2.vue.js +5 -0
- package/esm/components/QSteps/QSteps.d.ts +269 -0
- package/esm/components/QSteps/QSteps.d.ts.map +1 -0
- package/esm/components/QSteps/QSteps.vue.js +260 -0
- package/esm/components/QSteps/QSteps2.vue.js +5 -0
- package/esm/components/QSteps/QStepsNav.d.ts +59 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -0
- package/esm/components/QSteps/QStepsNav.vue.js +42 -0
- package/esm/components/QSteps/QStepsNav2.vue.js +5 -0
- package/esm/components/QSteps/constants.d.ts +28 -0
- package/esm/components/QSteps/constants.d.ts.map +1 -0
- package/esm/components/QSteps/constants.js +16 -0
- package/esm/components/QSteps/index.d.ts +228 -0
- package/esm/components/QSteps/index.d.ts.map +1 -0
- package/esm/components/QSteps/index.js +6 -0
- package/esm/components/QSteps/types.d.ts +190 -0
- package/esm/components/QSteps/types.d.ts.map +1 -0
- package/esm/components/QSwitch/QSwitch.vue.js +3 -3
- package/esm/components/QTabs/QTab.d.ts +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +10 -12
- package/esm/components/QTabs/QTabs.d.ts +1 -1
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +108 -107
- package/esm/components/QTabs/context.d.ts +1 -1
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/types.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
- package/esm/components/QToast/QToast.d.ts +2 -1
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +95 -78
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/QToaster.vue.js +20 -19
- package/esm/components/QToast/constants.d.ts +3 -0
- package/esm/components/QToast/constants.d.ts.map +1 -1
- package/esm/components/QToast/constants.js +2 -2
- package/esm/components/QToast/index.d.ts +6 -0
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +7 -1
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +52 -15
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
- package/esm/components/QTooltip/QTooltip.vue.js +5 -5
- package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +108 -103
- package/esm/composables/useColor/index.d.ts +2 -0
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +49 -39
- package/esm/composables/useColor/types.d.ts +15 -0
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/utils/color/contrast.d.ts +20 -0
- package/esm/utils/color/contrast.d.ts.map +1 -1
- package/esm/utils/color/contrast.js +24 -13
- package/esm/utils/color/merge.js +8 -8
- package/esm/utils/index.js +56 -54
- package/package.json +12 -6
- package/esm/components/QIcon/InlineSvg.d.ts +0 -110
- package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
- package/esm/components/QIcon/InlineSvg.js +0 -95
- package/esm/utils/time.d.ts +0 -36
- package/esm/utils/time.d.ts.map +0 -1
package/dist/json/api.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.27.0",
|
|
3
3
|
"components": [
|
|
4
4
|
{
|
|
5
5
|
"name": "QAccordion",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
{
|
|
130
130
|
"title": "With Default Expanded",
|
|
131
131
|
"description": "Accordion with one section expanded by default.",
|
|
132
|
-
"code": "<QAccordion
|
|
132
|
+
"code": "<QAccordion model-value=\"2\" />"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"title": "Multiple",
|
|
@@ -227,27 +227,27 @@
|
|
|
227
227
|
{
|
|
228
228
|
"title": "With Image",
|
|
229
229
|
"description": "Displays an avatar with an image.",
|
|
230
|
-
"code": "<QAvatar
|
|
230
|
+
"code": "<QAvatar src=\"https://i.pravatar.cc/150?img=10\" alt=\"User Avatar\" />"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"title": "With Initials",
|
|
234
234
|
"description": "Displays an avatar with initials.",
|
|
235
|
-
"code": "<QAvatar
|
|
235
|
+
"code": "<QAvatar initials=\"CS\" />"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"title": "Custom Size",
|
|
239
239
|
"description": "Displays an avatar with a custom size.",
|
|
240
|
-
"code": "<QAvatar
|
|
240
|
+
"code": "<QAvatar size=\"120px\" src=\"https://i.pravatar.cc/150?img=10\" alt=\"User Avatar\" />"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"title": "Square Shape",
|
|
244
244
|
"description": "Displays an avatar with a square shape.",
|
|
245
|
-
"code": "<QAvatar
|
|
245
|
+
"code": "<QAvatar shape=\"square\" initials=\"SQ\" src=\"https://i.pravatar.cc/150?img=10\" alt=\"User Avatar\" />"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"title": "Custom Colors",
|
|
249
249
|
"description": "Displays an avatar with a custom background color. Text color is automatically adjusted for readability.",
|
|
250
|
-
"code": "<QAvatar
|
|
250
|
+
"code": "<QAvatar initials=\"CS\" color=\"#a22eb9\" />"
|
|
251
251
|
}
|
|
252
252
|
]
|
|
253
253
|
},
|
|
@@ -550,6 +550,100 @@
|
|
|
550
550
|
}
|
|
551
551
|
]
|
|
552
552
|
},
|
|
553
|
+
{
|
|
554
|
+
"name": "QBreadcrumbs",
|
|
555
|
+
"description": "A page-navigation trail. Each crumb can be a route (`to`, requires `vue-router` in the host app), a link (`href`), or static text — the last crumb always renders as static text with `aria-current=\"page\"`, regardless of its props.",
|
|
556
|
+
"meta": {
|
|
557
|
+
"props": [
|
|
558
|
+
{
|
|
559
|
+
"name": "id",
|
|
560
|
+
"type": {
|
|
561
|
+
"kind": "primitive",
|
|
562
|
+
"name": "string"
|
|
563
|
+
},
|
|
564
|
+
"description": "The component unique identifier.",
|
|
565
|
+
"required": false,
|
|
566
|
+
"category": "Identification"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "maxVisible",
|
|
570
|
+
"type": {
|
|
571
|
+
"kind": "primitive",
|
|
572
|
+
"name": "number"
|
|
573
|
+
},
|
|
574
|
+
"description": "Maximum number of crumbs to show before collapsing the middle ones into\nan ellipsis control that opens a dropdown. The first and current crumb\nplus the ellipsis control always take up 3 of these slots, so values\nbelow `3` are treated as `3`.",
|
|
575
|
+
"default": "3",
|
|
576
|
+
"required": false,
|
|
577
|
+
"category": "Behavior"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "ariaLabel",
|
|
581
|
+
"type": {
|
|
582
|
+
"kind": "primitive",
|
|
583
|
+
"name": "string"
|
|
584
|
+
},
|
|
585
|
+
"description": "Accessible label for the `nav` landmark.",
|
|
586
|
+
"required": false,
|
|
587
|
+
"category": "Accessibility"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "icons",
|
|
591
|
+
"type": {
|
|
592
|
+
"kind": "object",
|
|
593
|
+
"fields": {}
|
|
594
|
+
},
|
|
595
|
+
"description": "Custom icons for the default separator and the collapsed-items control.",
|
|
596
|
+
"default": "DEFAULT_ICONS",
|
|
597
|
+
"required": false,
|
|
598
|
+
"category": "Configuration"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"name": "texts",
|
|
602
|
+
"type": {
|
|
603
|
+
"kind": "object",
|
|
604
|
+
"fields": {}
|
|
605
|
+
},
|
|
606
|
+
"description": "Custom accessible strings.",
|
|
607
|
+
"default": "DEFAULT_TEXTS",
|
|
608
|
+
"required": false,
|
|
609
|
+
"category": "Configuration"
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"events": [],
|
|
613
|
+
"slots": [
|
|
614
|
+
{
|
|
615
|
+
"name": "default",
|
|
616
|
+
"description": "The `QBreadcrumb` children that make up the trail."
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "separator",
|
|
620
|
+
"description": "Overrides the separator rendered between every crumb, all at once.\nFalls back to the chevron icon (`icons.separator`) when omitted."
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
},
|
|
624
|
+
"examples": [
|
|
625
|
+
{
|
|
626
|
+
"title": "Default",
|
|
627
|
+
"description": "The full trail, with a leading icon on each crumb.",
|
|
628
|
+
"code": "<q-breadcrumbs v-bind=\"args\">\n\t\t\t\t<q-breadcrumb label=\"Home\" href=\"/\" :icon=\"{ icon: 'home' }\" />\n\t\t\t\t<q-breadcrumb label=\"Documents\" href=\"/documents\" :icon=\"{ icon: 'folder' }\" />\n\t\t\t\t<q-breadcrumb label=\"Quarterly Report\" :icon=\"{ icon: 'file-document' }\" />\n\t\t\t</q-breadcrumbs>"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"title": "Collapsed",
|
|
632
|
+
"description": "A long trail collapses its middle crumbs into an ellipsis control that opens a dropdown, keeping the first and current crumb visible. The control has an accessible name (`aria-label`) and the dropdown is keyboard operable.",
|
|
633
|
+
"code": "<q-breadcrumbs v-bind=\"args\">\n\t\t\t\t<q-breadcrumb label=\"Home\" href=\"/\" :icon=\"{ icon: 'home' }\" />\n\t\t\t\t<q-breadcrumb label=\"Documents\" href=\"/documents\" :icon=\"{ icon: 'folder' }\" />\n\t\t\t\t<q-breadcrumb label=\"Projects\" href=\"/documents/projects\" :icon=\"{ icon: 'folder' }\" />\n\t\t\t\t<q-breadcrumb label=\"Quarterly Report\" :icon=\"{ icon: 'file-document' }\" />\n\t\t\t</q-breadcrumbs>"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"title": "Mixed Crumb Types",
|
|
637
|
+
"description": "A mix of the three supported crumb kinds: a route (`to`), a link (`href`), and static text (neither).",
|
|
638
|
+
"code": "<q-breadcrumbs v-bind=\"args\">\n\t\t\t\t<q-breadcrumb label=\"Home (route)\" to=\"/\" />\n\t\t\t\t<q-breadcrumb label=\"Archive (static, no navigation)\" />\n\t\t\t\t<q-breadcrumb label=\"Reports (link)\" href=\"/reports\" />\n\t\t\t\t<q-breadcrumb label=\"Quarterly Report (current)\" />\n\t\t\t</q-breadcrumbs>"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"title": "Custom Separator",
|
|
642
|
+
"description": "Overriding the default chevron separator for the whole trail at once, via the `separator` slot on `QBreadcrumbs`.",
|
|
643
|
+
"code": "<q-breadcrumbs v-bind=\"args\">\n\t\t\t\t<q-breadcrumb label=\"Home\" href=\"/\" />\n\t\t\t\t<q-breadcrumb label=\"Documents\" href=\"/documents\" />\n\t\t\t\t<q-breadcrumb label=\"Quarterly Report\" />\n\t\t\t\t<template #separator>/</template>\n\t\t\t</q-breadcrumbs>"
|
|
644
|
+
}
|
|
645
|
+
]
|
|
646
|
+
},
|
|
553
647
|
{
|
|
554
648
|
"name": "QButton",
|
|
555
649
|
"description": "Displays a button that triggers an action.",
|
|
@@ -740,22 +834,22 @@
|
|
|
740
834
|
{
|
|
741
835
|
"title": "Default",
|
|
742
836
|
"description": "The default button, suitable for most situations. Displays a label provided by the `label` prop.",
|
|
743
|
-
"code": "<QButton
|
|
837
|
+
"code": "<QButton label=\"Button\" />"
|
|
744
838
|
},
|
|
745
839
|
{
|
|
746
840
|
"title": "Icons",
|
|
747
841
|
"description": "Displays an icon alongside the button label.",
|
|
748
|
-
"code": "<div style=\"display: flex; align-items: center; gap: 0.25rem; flex-direction: column; width: fit-content\">\n\t\t\t <div style=\"display: flex; gap: 0.25rem\">\n\t\t\t \t<q-button v-bind=\"args\" :label=\"undefined\" icon-pos=\"start\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"start\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"end\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t </div>\n\t\t\t <div style=\"display: flex; gap: 0.25rem\">\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"top\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"bottom\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t </div>\n\t\t\t</div>"
|
|
842
|
+
"code": "<div style=\"display: flex; align-items: center; gap: 0.25rem; flex-direction: column; width: fit-content\">\n\t\t\t <div style=\"display: flex; gap: 0.25rem\">\n\t\t\t \t<q-button v-bind=\"args\" :label=\"undefined\" aria-label=\"Mark as done\" icon-pos=\"start\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"start\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"end\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t </div>\n\t\t\t <div style=\"display: flex; gap: 0.25rem\">\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"top\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t <q-button v-bind=\"args\" icon-pos=\"bottom\">\n\t\t\t <q-icon icon=\"check-circle\" />\n\t\t\t </q-button>\n\t\t\t </div>\n\t\t\t</div>"
|
|
749
843
|
},
|
|
750
844
|
{
|
|
751
845
|
"title": "Append",
|
|
752
846
|
"description": "Trailing content via the `append` slot — for example a chevron beside a leading icon. Labeled buttons tighten end padding when `#append` contains a `.q-icon`.",
|
|
753
|
-
"code": "<div style=\"display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap\">\n\t\t\t\t<q-button v-bind=\"args\">\n\t\t\t\t\t<template #append>\n\t\t\t\t\t\t<q-icon icon=\"chevron-down\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-button>\n\t\t\t\t<q-button v-bind=\"args\">\n\t\t\t\t\t<q-icon icon=\"dots-horizontal\" />\n\t\t\t\t\t<template #append>\n\t\t\t\t\t\t<q-icon icon=\"chevron-down\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-button>\n\t\t\t\t<q-button v-bind=\"args\" :label=\"undefined\">\n\t\t\t\t\t<q-icon icon=\"dots-horizontal\" />\n\t\t\t\t\t<template #append>\n\t\t\t\t\t\t<q-icon icon=\"chevron-down\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-button>\n\t\t\t</div>"
|
|
847
|
+
"code": "<div style=\"display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap\">\n\t\t\t\t<q-button v-bind=\"args\">\n\t\t\t\t\t<template #append>\n\t\t\t\t\t\t<q-icon icon=\"chevron-down\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-button>\n\t\t\t\t<q-button v-bind=\"args\">\n\t\t\t\t\t<q-icon icon=\"dots-horizontal\" />\n\t\t\t\t\t<template #append>\n\t\t\t\t\t\t<q-icon icon=\"chevron-down\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-button>\n\t\t\t\t<q-button v-bind=\"args\" :label=\"undefined\" aria-label=\"More\">\n\t\t\t\t\t<q-icon icon=\"dots-horizontal\" />\n\t\t\t\t\t<template #append>\n\t\t\t\t\t\t<q-icon icon=\"chevron-down\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-button>\n\t\t\t</div>"
|
|
754
848
|
},
|
|
755
849
|
{
|
|
756
850
|
"title": "Loading",
|
|
757
851
|
"description": "Displays a loading animation and cannot be clicked.",
|
|
758
|
-
"code": "<QButton
|
|
852
|
+
"code": "<QButton label=\"Submit\" :loading=\"true\" />"
|
|
759
853
|
},
|
|
760
854
|
{
|
|
761
855
|
"title": "Color",
|
|
@@ -765,22 +859,22 @@
|
|
|
765
859
|
{
|
|
766
860
|
"title": "Disabled",
|
|
767
861
|
"description": "Cannot be clicked.",
|
|
768
|
-
"code": "<QButton
|
|
862
|
+
"code": "<QButton label=\"Disabled\" :disabled=\"true\" />"
|
|
769
863
|
},
|
|
770
864
|
{
|
|
771
865
|
"title": "Borderless",
|
|
772
866
|
"description": "Does not display the default outer border.",
|
|
773
|
-
"code": "<QButton
|
|
867
|
+
"code": "<QButton label=\"Borderless\" :borderless=\"true\" />"
|
|
774
868
|
},
|
|
775
869
|
{
|
|
776
870
|
"title": "Elevated",
|
|
777
871
|
"description": "Features a subtle shadow for an elevated visual effect.",
|
|
778
|
-
"code": "<QButton
|
|
872
|
+
"code": "<QButton label=\"Elevated\" :borderless=\"true\" :elevated=\"true\" />"
|
|
779
873
|
},
|
|
780
874
|
{
|
|
781
875
|
"title": "Block",
|
|
782
876
|
"description": "Occupies the available space.",
|
|
783
|
-
"code": "<QButton
|
|
877
|
+
"code": "<QButton label=\"Button\" :block=\"true\" />"
|
|
784
878
|
},
|
|
785
879
|
{
|
|
786
880
|
"title": "Effect",
|
|
@@ -1318,7 +1412,7 @@
|
|
|
1318
1412
|
{
|
|
1319
1413
|
"title": "Auto Play",
|
|
1320
1414
|
"description": "Carousel with autoplay enabled, cycling through slides every 3 seconds. Indicators are also shown for better user experience.",
|
|
1321
|
-
"code": "<QCarousel :slides=\"slides\" :show-indicators=\"true\" :auto-cycle-interval=\"3000\"
|
|
1415
|
+
"code": "<QCarousel :slides=\"slides\" :show-indicators=\"true\" :auto-cycle-interval=\"3000\" ride=\"carousel\" />"
|
|
1322
1416
|
},
|
|
1323
1417
|
{
|
|
1324
1418
|
"title": "Non Wrapping",
|
|
@@ -1333,17 +1427,17 @@
|
|
|
1333
1427
|
{
|
|
1334
1428
|
"title": "Full Featured",
|
|
1335
1429
|
"description": "A more complex example combining multiple features. Auto-playing, with controls and indicators, and a custom animation duration.",
|
|
1336
|
-
"code": "<QCarousel :slides=\"slides\" :show-controls=\"true\" :show-indicators=\"true\" :auto-cycle-interval=\"4000\"
|
|
1430
|
+
"code": "<QCarousel :slides=\"slides\" :show-controls=\"true\" :show-indicators=\"true\" :auto-cycle-interval=\"4000\" ride=\"carousel\" :wrap=\"true\" :animation-duration=\"800\" />"
|
|
1337
1431
|
},
|
|
1338
1432
|
{
|
|
1339
1433
|
"title": "Loading",
|
|
1340
1434
|
"description": "Carousel in a loading state with a skeleton placeholder. This story demonstrates the `loading` prop in action.",
|
|
1341
|
-
"code": "<QCarousel :slides=\"\" :show-controls=\"true\" :loading=\"true\" />"
|
|
1435
|
+
"code": "<QCarousel :slides=\"[]\" :show-controls=\"true\" :loading=\"true\" />"
|
|
1342
1436
|
},
|
|
1343
1437
|
{
|
|
1344
1438
|
"title": "Empty",
|
|
1345
1439
|
"description": "Empty state example Demonstrates how to customize the `#empty` slot of QCarousel to show a friendly UI when there are no slides.",
|
|
1346
|
-
"code": "<q-carousel v-bind=\"args\">\n <template #empty>\n <div style=\"display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center;\">\n <img src=\"/placeholder.svg\" alt=\"Empty\" style=\"width: 120px; height: 120px; opacity: 0.6; margin-bottom: 1rem;\" />\n <h3 style=\"margin: 0 0 0.5rem;\">No slides available</h3>\n <p style=\"margin: 0 0 1rem; color:
|
|
1440
|
+
"code": "<q-carousel v-bind=\"args\">\n <template #empty>\n <div style=\"display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center;\">\n <img src=\"/placeholder.svg\" alt=\"Empty\" style=\"width: 120px; height: 120px; opacity: 0.6; margin-bottom: 1rem;\" />\n <h3 style=\"margin: 0 0 0.5rem;\">No slides available</h3>\n <p style=\"margin: 0 0 1rem; color: var(--q-theme-neutral-dark);\">Start by adding some slides to showcase your content.</p>\n <QButton variant=\"bold\">\n Add Slide\n </QButton>\n </div>\n </template>\n </q-carousel>"
|
|
1347
1441
|
}
|
|
1348
1442
|
]
|
|
1349
1443
|
},
|
|
@@ -1537,12 +1631,12 @@
|
|
|
1537
1631
|
{
|
|
1538
1632
|
"title": "Default",
|
|
1539
1633
|
"description": "A default checkbox.",
|
|
1540
|
-
"code": "<QCheckbox
|
|
1634
|
+
"code": "<QCheckbox label=\"Accept terms and conditions\" />"
|
|
1541
1635
|
},
|
|
1542
1636
|
{
|
|
1543
1637
|
"title": "Label Placement",
|
|
1544
1638
|
"description": "A checkbox with a label positioned on the left side. Useful for layouts that require labels on the opposite side of the control.",
|
|
1545
|
-
"code": "<QCheckbox
|
|
1639
|
+
"code": "<QCheckbox label=\"Accept terms and conditions\" label-placement=\"left\" />"
|
|
1546
1640
|
},
|
|
1547
1641
|
{
|
|
1548
1642
|
"title": "Readonly",
|
|
@@ -1567,7 +1661,7 @@
|
|
|
1567
1661
|
{
|
|
1568
1662
|
"title": "Icons",
|
|
1569
1663
|
"description": "A checkbox with custom icons for the checked and indeterminate states. This allows for a more personalized or context-specific design.",
|
|
1570
|
-
"code": "<QCheckbox :model-value=\"true\"
|
|
1664
|
+
"code": "<QCheckbox :model-value=\"true\" label=\"Diferent icon\" :icons=\"{\n\t\t\tchecked: { icon: 'skip-next' },\n\t\t\tindeterminate: { icon: 'skip-next' }\n\t\t}\" />"
|
|
1571
1665
|
},
|
|
1572
1666
|
{
|
|
1573
1667
|
"title": "Indeterminate",
|
|
@@ -1582,7 +1676,7 @@
|
|
|
1582
1676
|
{
|
|
1583
1677
|
"title": "Borderless",
|
|
1584
1678
|
"description": "Displays borderless checkbox.",
|
|
1585
|
-
"code": "<QCheckbox
|
|
1679
|
+
"code": "<QCheckbox label=\"Accept terms and conditions\" :borderless=\"true\" :model-value=\"true\" />"
|
|
1586
1680
|
}
|
|
1587
1681
|
]
|
|
1588
1682
|
},
|
|
@@ -1936,32 +2030,27 @@
|
|
|
1936
2030
|
{
|
|
1937
2031
|
"title": "Placeholder",
|
|
1938
2032
|
"description": "Provides a hint or example text inside the field.",
|
|
1939
|
-
"code": "<QColorPicker
|
|
2033
|
+
"code": "<QColorPicker placeholder=\" #000000\" />"
|
|
1940
2034
|
},
|
|
1941
2035
|
{
|
|
1942
2036
|
"title": "Readonly",
|
|
1943
2037
|
"description": "Conveys a read-only appearance to the field.",
|
|
1944
|
-
"code": "<QColorPicker
|
|
2038
|
+
"code": "<QColorPicker model-value=\"#000000\" :readonly=\"true\" />"
|
|
1945
2039
|
},
|
|
1946
2040
|
{
|
|
1947
2041
|
"title": "Disabled",
|
|
1948
2042
|
"description": "Disables the field, preventing interaction with it.",
|
|
1949
|
-
"code": "<QColorPicker
|
|
1950
|
-
},
|
|
1951
|
-
{
|
|
1952
|
-
"title": "Label",
|
|
1953
|
-
"description": "Provides a textual description for the field.",
|
|
1954
|
-
"code": "<QColorPicker :model-value=\"#0c55ca\" :label=\"Background color\" />"
|
|
2043
|
+
"code": "<QColorPicker model-value=\"#000000\" :disabled=\"true\" />"
|
|
1955
2044
|
},
|
|
1956
2045
|
{
|
|
1957
2046
|
"title": "Required",
|
|
1958
2047
|
"description": "Displays an asterisk (*) next to the label, to indicate that the field is required.",
|
|
1959
|
-
"code": "<QColorPicker
|
|
2048
|
+
"code": "<QColorPicker label=\"Main color\" :required=\"true\" />"
|
|
1960
2049
|
},
|
|
1961
2050
|
{
|
|
1962
2051
|
"title": "White",
|
|
1963
2052
|
"description": "Displays the field's visualization mode when the white color is selected, that has no contrast with the background.",
|
|
1964
|
-
"code": "<QColorPicker
|
|
2053
|
+
"code": "<QColorPicker label=\"White color\" model-value=\"#ffffff\" />"
|
|
1965
2054
|
}
|
|
1966
2055
|
]
|
|
1967
2056
|
},
|
|
@@ -2342,27 +2431,27 @@
|
|
|
2342
2431
|
{
|
|
2343
2432
|
"title": "Placeholder",
|
|
2344
2433
|
"description": "Provides a hint or example text inside the combobox.",
|
|
2345
|
-
"code": "<QCombobox
|
|
2434
|
+
"code": "<QCombobox placeholder=\"Radiohead\" />"
|
|
2346
2435
|
},
|
|
2347
2436
|
{
|
|
2348
2437
|
"title": "Readonly",
|
|
2349
2438
|
"description": "Conveys a read-only appearance to the combobox.",
|
|
2350
|
-
"code": "<QCombobox
|
|
2439
|
+
"code": "<QCombobox model-value=\"arctic_monkeys\" :readonly=\"true\" />"
|
|
2351
2440
|
},
|
|
2352
2441
|
{
|
|
2353
2442
|
"title": "Disabled",
|
|
2354
2443
|
"description": "Disables the combobox, preventing interaction with it.",
|
|
2355
|
-
"code": "<QCombobox
|
|
2444
|
+
"code": "<QCombobox model-value=\"radiohead\" :disabled=\"true\" />"
|
|
2356
2445
|
},
|
|
2357
2446
|
{
|
|
2358
2447
|
"title": "Clearable",
|
|
2359
2448
|
"description": "Displays a clear button, allowing the user to clear the selected value.",
|
|
2360
|
-
"code": "<QCombobox
|
|
2449
|
+
"code": "<QCombobox model-value=\"radiohead\" :clearable=\"true\" />"
|
|
2361
2450
|
},
|
|
2362
2451
|
{
|
|
2363
2452
|
"title": "Loading",
|
|
2364
2453
|
"description": "Displays a loading animation that lets users know content is being loaded.",
|
|
2365
|
-
"code": "<QCombobox :items=\"\" :loading=\"true\" />"
|
|
2454
|
+
"code": "<QCombobox :items=\"[]\" :loading=\"true\" />"
|
|
2366
2455
|
},
|
|
2367
2456
|
{
|
|
2368
2457
|
"title": "Description In Items",
|
|
@@ -2607,47 +2696,47 @@
|
|
|
2607
2696
|
{
|
|
2608
2697
|
"title": "Date Only",
|
|
2609
2698
|
"description": "Date-only picker with required field indication",
|
|
2610
|
-
"code": "<QDateTimePicker
|
|
2699
|
+
"code": "<QDateTimePicker format=\"dd/MM/yyyy\" label=\"Select Date\" placeholder=\"Choose date\" />"
|
|
2611
2700
|
},
|
|
2612
2701
|
{
|
|
2613
2702
|
"title": "Date Time With Seconds",
|
|
2614
2703
|
"description": "DateTime picker with seconds display",
|
|
2615
|
-
"code": "<QDateTimePicker
|
|
2704
|
+
"code": "<QDateTimePicker format=\"dd/MM/yyyy HH:mm:ss\" label=\"Select Date and Time\" placeholder=\"Choose date and time\" />"
|
|
2616
2705
|
},
|
|
2617
2706
|
{
|
|
2618
2707
|
"title": "Date Time 12 Hour Format",
|
|
2619
2708
|
"description": "DateTime picker with 12-hour format (AM/PM)",
|
|
2620
|
-
"code": "<QDateTimePicker
|
|
2709
|
+
"code": "<QDateTimePicker format=\"dd/MM/yyyy hh:mm a\" label=\"Select Date and Time (12-hour format)\" placeholder=\"Choose date and time\" />"
|
|
2621
2710
|
},
|
|
2622
2711
|
{
|
|
2623
2712
|
"title": "Time Only",
|
|
2624
2713
|
"description": "Time-only picker",
|
|
2625
|
-
"code": "<QDateTimePicker
|
|
2714
|
+
"code": "<QDateTimePicker format=\"HH:mm\" label=\"Select Time\" placeholder=\"HH:mm\" model-value=\"14:00\" />"
|
|
2626
2715
|
},
|
|
2627
2716
|
{
|
|
2628
2717
|
"title": "Time Only 12 Hour Format",
|
|
2629
2718
|
"description": "Time-only picker with 12-hour format (AM/PM)",
|
|
2630
|
-
"code": "<QDateTimePicker
|
|
2719
|
+
"code": "<QDateTimePicker format=\"hh:mm a\" label=\"Select Time\" placeholder=\"hh:mm a\" />"
|
|
2631
2720
|
},
|
|
2632
2721
|
{
|
|
2633
2722
|
"title": "Localized Picker",
|
|
2634
2723
|
"description": "Localized DateTime picker (Portuguese)",
|
|
2635
|
-
"code": "<QDateTimePicker
|
|
2724
|
+
"code": "<QDateTimePicker label=\"Selecionar data e hora\" placeholder=\"Selecionar data e hora\" />"
|
|
2636
2725
|
},
|
|
2637
2726
|
{
|
|
2638
2727
|
"title": "Read Only",
|
|
2639
2728
|
"description": "Read-only DateTime picker",
|
|
2640
|
-
"code": "<QDateTimePicker
|
|
2729
|
+
"code": "<QDateTimePicker label=\"View Only Date and Time\" :readonly=\"true\" />"
|
|
2641
2730
|
},
|
|
2642
2731
|
{
|
|
2643
2732
|
"title": "Disabled",
|
|
2644
2733
|
"description": "Disabled DateTime picker",
|
|
2645
|
-
"code": "<QDateTimePicker
|
|
2734
|
+
"code": "<QDateTimePicker label=\"Disabled Picker\" :disabled=\"true\" />"
|
|
2646
2735
|
},
|
|
2647
2736
|
{
|
|
2648
2737
|
"title": "Range",
|
|
2649
2738
|
"description": "Range DateTime picker",
|
|
2650
|
-
"code": "<QDateTimePicker
|
|
2739
|
+
"code": "<QDateTimePicker label=\"Select a date range\" :range=\"true\" />"
|
|
2651
2740
|
}
|
|
2652
2741
|
]
|
|
2653
2742
|
},
|
|
@@ -2940,6 +3029,17 @@
|
|
|
2940
3029
|
"required": false,
|
|
2941
3030
|
"category": "Configuration"
|
|
2942
3031
|
},
|
|
3032
|
+
{
|
|
3033
|
+
"name": "texts",
|
|
3034
|
+
"type": {
|
|
3035
|
+
"kind": "object",
|
|
3036
|
+
"fields": {}
|
|
3037
|
+
},
|
|
3038
|
+
"description": "Custom text configurations.",
|
|
3039
|
+
"default": "DEFAULT_TEXTS",
|
|
3040
|
+
"required": false,
|
|
3041
|
+
"category": "Configuration"
|
|
3042
|
+
},
|
|
2943
3043
|
{
|
|
2944
3044
|
"name": "entryKey",
|
|
2945
3045
|
"type": {
|
|
@@ -3003,32 +3103,32 @@
|
|
|
3003
3103
|
{
|
|
3004
3104
|
"title": "Dismissible",
|
|
3005
3105
|
"description": "Displays an extra button on the header of the dialog, allowing the user to close it without interacting with the footer buttons.",
|
|
3006
|
-
"code": "<QDialog
|
|
3106
|
+
"code": "<QDialog text=\"You clicked the button!\" :dismissible=\"true\" />"
|
|
3007
3107
|
},
|
|
3008
3108
|
{
|
|
3009
3109
|
"title": "With Title",
|
|
3010
3110
|
"description": "Displays a header with a custom title.",
|
|
3011
|
-
"code": "<QDialog
|
|
3111
|
+
"code": "<QDialog text=\"You clicked the button!\" title=\"What did you do?\" :dismissible=\"true\" />"
|
|
3012
3112
|
},
|
|
3013
3113
|
{
|
|
3014
3114
|
"title": "Flush",
|
|
3015
3115
|
"description": "Edge-to-edge layout (no body inset or section dividers) — same chrome `QDialogProvider` uses for programmatic dialogs.",
|
|
3016
|
-
"code": "<QDialog
|
|
3116
|
+
"code": "<QDialog title=\"Confirm\" text=\"Edge-to-edge body and no section hairlines.\" :flush=\"true\" :dismissible=\"true\" />"
|
|
3017
3117
|
},
|
|
3018
3118
|
{
|
|
3019
3119
|
"title": "With Icon",
|
|
3020
3120
|
"description": "Shows a custom icon instead of the default one.",
|
|
3021
|
-
"code": "<QDialog
|
|
3121
|
+
"code": "<QDialog text=\"You clicked the button?\" :icon=\"{\n\t\t\ticon: 'help-circle-outline'\n\t\t}\" />"
|
|
3022
3122
|
},
|
|
3023
3123
|
{
|
|
3024
3124
|
"title": "Custom Buttons",
|
|
3025
3125
|
"description": "Custom buttons on the dialog allow the user to customize its look and behavior.",
|
|
3026
|
-
"code": "<QDialog
|
|
3126
|
+
"code": "<QDialog text=\"What shall we do?\" :icon=\"{\n\t\t\ticon: 'help-circle-outline'\n\t\t}\" :buttons=\"[\n\t\t\t{\n\t\t\t\tid: 'scroll-btn',\n\t\t\t\ticon: {\n\t\t\t\t\ticon: 'arrow-up'\n\t\t\t\t},\n\t\t\t\taction: () => {\n\t\t\t\t\twindow.scrollTo({ top: 0, behavior: 'smooth' })\n\t\t\t\t},\n\t\t\t\tprops: {\n\t\t\t\t\tlabel: 'Scroll to Top',\n\t\t\t\t\tvariant: 'bold'\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'refresh-btn',\n\t\t\t\ticon: {\n\t\t\t\t\ticon: 'refresh'\n\t\t\t\t},\n\t\t\t\taction: () => {\n\t\t\t\t\tlocation.reload()\n\t\t\t\t},\n\t\t\t\tprops: {\n\t\t\t\t\tlabel: 'Refresh the page!',\n\t\t\t\t\tvariant: 'bold',\n\t\t\t\t\tcolor: 'danger'\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: 'cancel-btn',\n\t\t\t\ticon: {\n\t\t\t\t\ticon: 'cancel'\n\t\t\t\t},\n\t\t\t\tprops: {\n\t\t\t\t\tlabel: 'Cancel'\n\t\t\t\t}\n\t\t\t}\n\t\t]\" />"
|
|
3027
3127
|
},
|
|
3028
3128
|
{
|
|
3029
3129
|
"title": "HTML Support",
|
|
3030
3130
|
"description": "Enables HTML support for the dialog text.",
|
|
3031
|
-
"code": "<QDialog
|
|
3131
|
+
"code": "<QDialog text=\"This is a tooltip. Did you know that the contents of tooltips can be formatted?<br><br>HTML is fully supported, so text formatting options such as <b>bold</b>, <i>italic</i>, or even<br>newlines can be used.\" />"
|
|
3032
3132
|
},
|
|
3033
3133
|
{
|
|
3034
3134
|
"title": "Advanced",
|
|
@@ -3063,7 +3163,7 @@
|
|
|
3063
3163
|
{
|
|
3064
3164
|
"title": "Popup Form",
|
|
3065
3165
|
"description": "An example of a popup form.",
|
|
3066
|
-
"code": "<q-button label=\"Click me\" @click=\"modelValue = true\" />\n\t\t\t<q-dialog v-model=\"modelValue\" v-bind=\"args\">\n\t\t\t\t<template #header>\n\t\t\t\t\t<h2 style=\"font-size: 1.05rem; text-transform: uppercase; margin: 0;\">\n\t\t\t\t\t\tContact\n\t\t\t\t\t</h2>\n\t\t\t\t</template>\n\t\t\t\t<template #body>\n\t\t\t\t\t<div style=\"display: flex; flex-direction: column; gap: 0.5rem\">\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"Name\"/>\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"E-mail\"/>\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"Telephone\"/>\n\t\t\t\t\t\t<q-text-area size=\"block\" label=\"Description\"/>\n\t\t\t\t\t\t<q-date-time-picker size=\"medium\" label=\"Date\"/>\n\t\t\t\t\t\t<q-select :items=\"items\" label=\"Select\" />\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"Title\"/>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t\t<template #footer>\n\t\t\t\t\t<div style=\"display: flex; gap: 0.5rem;\">\n\t\t\t\t\t\t<q-button label=\"Save\" variant=\"bold\" @click=\"modelValue = false\">\n\t\t\t\t\t\t\t<q-icon icon=\"floppy\" />\n\t\t\t\t\t\t</q-button>\n\t\t\t\t\t\t<q-button label=\"Cancel\" @click=\"modelValue = false\">\n\t\t\t\t\t\t\t<q-icon icon=\"cancel\" />\n\t\t\t\t\t\t</q-button>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t</q-dialog>"
|
|
3166
|
+
"code": "<q-button label=\"Click me\" @click=\"modelValue = true\" />\n\t\t\t<q-dialog v-model=\"modelValue\" v-bind=\"args\">\n\t\t\t\t<template #header>\n\t\t\t\t\t<h2 style=\"font-size: 1.05rem; text-transform: uppercase; margin: 0;\">\n\t\t\t\t\t\tContact\n\t\t\t\t\t</h2>\n\t\t\t\t</template>\n\t\t\t\t<template #body>\n\t\t\t\t\t<div style=\"display: flex; flex-direction: column; gap: 0.5rem\">\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"Name\"/>\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"E-mail\"/>\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"Telephone\"/>\n\t\t\t\t\t\t<q-text-area size=\"block\" label=\"Description\"/>\n\t\t\t\t\t\t<q-date-time-picker size=\"medium\" label=\"Date\"/>\n\t\t\t\t\t\t<q-select :items=\"items\" label=\"Select\" />\n\t\t\t\t\t\t<q-text-field size=\"block\" label=\"Title\"/>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t\t<template #footer.append>\n\t\t\t\t\t<div style=\"display: flex; gap: 0.5rem;\">\n\t\t\t\t\t\t<q-button label=\"Save\" variant=\"bold\" @click=\"modelValue = false\">\n\t\t\t\t\t\t\t<q-icon icon=\"floppy\" />\n\t\t\t\t\t\t</q-button>\n\t\t\t\t\t\t<q-button label=\"Cancel\" @click=\"modelValue = false\">\n\t\t\t\t\t\t\t<q-icon icon=\"cancel\" />\n\t\t\t\t\t\t</q-button>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t</q-dialog>"
|
|
3067
3167
|
},
|
|
3068
3168
|
{
|
|
3069
3169
|
"title": "Overflown",
|
|
@@ -3803,27 +3903,27 @@
|
|
|
3803
3903
|
{
|
|
3804
3904
|
"title": "With Label",
|
|
3805
3905
|
"description": "A file input with a label.",
|
|
3806
|
-
"code": "<QFileUpload
|
|
3906
|
+
"code": "<QFileUpload label=\"Upload your file\" />"
|
|
3807
3907
|
},
|
|
3808
3908
|
{
|
|
3809
3909
|
"title": "Disabled",
|
|
3810
3910
|
"description": "A disabled file input.",
|
|
3811
|
-
"code": "<QFileUpload :disabled=\"true\"
|
|
3911
|
+
"code": "<QFileUpload :disabled=\"true\" label=\"Disabled file input\" />"
|
|
3812
3912
|
},
|
|
3813
3913
|
{
|
|
3814
3914
|
"title": "Read Only",
|
|
3815
3915
|
"description": "A read-only file input.",
|
|
3816
|
-
"code": "<QFileUpload :readonly=\"true\"
|
|
3916
|
+
"code": "<QFileUpload :readonly=\"true\" label=\"Read-only file input\" />"
|
|
3817
3917
|
},
|
|
3818
3918
|
{
|
|
3819
3919
|
"title": "Required",
|
|
3820
3920
|
"description": "A required file input.",
|
|
3821
|
-
"code": "<QFileUpload :required=\"true\"
|
|
3921
|
+
"code": "<QFileUpload :required=\"true\" label=\"Required file input\" />"
|
|
3822
3922
|
},
|
|
3823
3923
|
{
|
|
3824
3924
|
"title": "Accept Images",
|
|
3825
3925
|
"description": "A file input with a specific accepted file type (images only).",
|
|
3826
|
-
"code": "<QFileUpload
|
|
3926
|
+
"code": "<QFileUpload label=\"Upload an image\" accept=\"image/*\" />"
|
|
3827
3927
|
},
|
|
3828
3928
|
{
|
|
3829
3929
|
"title": "Extras",
|
|
@@ -4184,17 +4284,17 @@
|
|
|
4184
4284
|
{
|
|
4185
4285
|
"title": "Default",
|
|
4186
4286
|
"description": "The default gauge uses semantic ranges and supporting KPI information.",
|
|
4187
|
-
"code": "<QGauge :model-value=\"76\"
|
|
4287
|
+
"code": "<QGauge :model-value=\"76\" label=\"Delivery performance\" :target=\"80\" target-label=\"Target 80%\" :show-target-value=\"true\" unit=\"%\" secondary-label=\"+4.2% from last month\" />"
|
|
4188
4288
|
},
|
|
4189
4289
|
{
|
|
4190
4290
|
"title": "Lower Is Better",
|
|
4191
4291
|
"description": "Range order and colors can represent metrics where lower values are better.",
|
|
4192
|
-
"code": "<QGauge :model-value=\"18\"
|
|
4292
|
+
"code": "<QGauge :model-value=\"18\" label=\"Average response time\" :max=\"60\" :target=\"20\" target-comparison=\"at-most\" target-label=\"Target 20 min\" :show-target-value=\"true\" unit=\"min\" secondary-label=\"-3 min from last month\" :ranges=\"[\n\t\t\t{ from: 0, to: 20, color: 'success', label: 'On target' },\n\t\t\t{ from: 20, to: 40, color: 'warning', label: 'Attention' },\n\t\t\t{ from: 40, to: 60, color: 'danger', label: 'Critical' }\n\t\t]\" />"
|
|
4193
4293
|
},
|
|
4194
4294
|
{
|
|
4195
4295
|
"title": "Explicit Ticks",
|
|
4196
4296
|
"description": "Explicit ticks and formatters support domain-specific values.",
|
|
4197
|
-
"code": "<QGauge :model-value=\"10.6\"
|
|
4297
|
+
"code": "<QGauge :model-value=\"10.6\" label=\"Revenue\" :max=\"21\" :target=\"15\" target-label=\"Target 15M\" :show-target-value=\"true\" unit=\"Dollars\" :ticks=\"[0, 3, 6, 9, 12, 15, 18, 21]\" :value-label=\"(value: number) => `${value.toFixed(1)}M`\" :tick-formatter=\"(value: number) => (value === 0 ? '0' : `${value}M`)\" :ranges=\"[\n\t\t\t{ from: 0, to: 6, color: 'danger', label: 'Below target' },\n\t\t\t{ from: 6, to: 15, color: 'warning', label: 'Approaching target' },\n\t\t\t{ from: 15, to: 21, color: 'success', label: 'On target' }\n\t\t]\" />"
|
|
4198
4298
|
},
|
|
4199
4299
|
{
|
|
4200
4300
|
"title": "Responsive Composition",
|
|
@@ -4271,17 +4371,17 @@
|
|
|
4271
4371
|
{
|
|
4272
4372
|
"title": "SVG Icon",
|
|
4273
4373
|
"description": "Example using [Material Design Icons](https://pictogrammers.com/library/mdi/).",
|
|
4274
|
-
"code": "<QIcon
|
|
4374
|
+
"code": "<QIcon icon=\"home\" type=\"svg\" />"
|
|
4275
4375
|
},
|
|
4276
4376
|
{
|
|
4277
4377
|
"title": "Font Icon",
|
|
4278
4378
|
"description": "Example using [Font Awesome Icons](https://fontawesome.com/).",
|
|
4279
|
-
"code": "<QIcon
|
|
4379
|
+
"code": "<QIcon icon=\"house\" type=\"font\" />"
|
|
4280
4380
|
},
|
|
4281
4381
|
{
|
|
4282
4382
|
"title": "Custom Colors",
|
|
4283
4383
|
"description": "Displays an icon with a custom color, conveying semantic meaning.",
|
|
4284
|
-
"code": "<QIcon
|
|
4384
|
+
"code": "<QIcon icon=\"check\" type=\"svg\" color=\"success\" />"
|
|
4285
4385
|
}
|
|
4286
4386
|
]
|
|
4287
4387
|
},
|
|
@@ -4448,12 +4548,12 @@
|
|
|
4448
4548
|
{
|
|
4449
4549
|
"title": "Default",
|
|
4450
4550
|
"description": "Groups multiple fields together.",
|
|
4451
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field placeholder=\"First name\" />\n\t\t\t\t<q-text-field placeholder=\"Last name\" />\n\t\t\t</q-input-group>"
|
|
4551
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field aria-label=\"First name\" placeholder=\"First name\" />\n\t\t\t\t<q-text-field aria-label=\"Last name\" placeholder=\"Last name\" />\n\t\t\t</q-input-group>"
|
|
4452
4552
|
},
|
|
4453
4553
|
{
|
|
4454
4554
|
"title": "Prepend Icon",
|
|
4455
4555
|
"description": "Adds an icon before the fields.",
|
|
4456
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field placeholder=\"First name\" />\n\t\t\t\t<q-text-field placeholder=\"Last name\" />\n\t\t\t</q-input-group>"
|
|
4556
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field aria-label=\"First name\" placeholder=\"First name\" />\n\t\t\t\t<q-text-field aria-label=\"Last name\" placeholder=\"Last name\" />\n\t\t\t</q-input-group>"
|
|
4457
4557
|
},
|
|
4458
4558
|
{
|
|
4459
4559
|
"title": "Append Icon",
|
|
@@ -4463,52 +4563,52 @@
|
|
|
4463
4563
|
{
|
|
4464
4564
|
"title": "Custom Prepend",
|
|
4465
4565
|
"description": "Adds custom elements before the fields.",
|
|
4466
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<template #prepend>\n\t\t\t\t\t<span>@</span>\n\t\t\t\t</template>\n\t\t\t\t<q-text-field placeholder=\"Username\" />\n\t\t\t</q-input-group>"
|
|
4566
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<template #prepend>\n\t\t\t\t\t<span>@</span>\n\t\t\t\t</template>\n\t\t\t\t<q-text-field aria-label=\"Username\" placeholder=\"Username\" />\n\t\t\t</q-input-group>"
|
|
4467
4567
|
},
|
|
4468
4568
|
{
|
|
4469
4569
|
"title": "Custom Append",
|
|
4470
4570
|
"description": "Adds custom elements after the fields.",
|
|
4471
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field placeholder=\"john.doe\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<span>@mail.com</span>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4571
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field aria-label=\"Email\" placeholder=\"john.doe\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<span>@mail.com</span>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4472
4572
|
},
|
|
4473
4573
|
{
|
|
4474
4574
|
"title": "Both Addons",
|
|
4475
4575
|
"description": "Places addons both before and after the fields.",
|
|
4476
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field placeholder=\"john.doe\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<span>.com</span>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4576
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field aria-label=\"Email\" placeholder=\"john.doe\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<span>.com</span>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4477
4577
|
},
|
|
4478
4578
|
{
|
|
4479
4579
|
"title": "Button Addon",
|
|
4480
4580
|
"description": "Groups buttons with fields.",
|
|
4481
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field placeholder=\"Search\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button>\n\t\t\t\t\t\t<q-icon icon=\"magnify\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4581
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field aria-label=\"Search\" placeholder=\"Search\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button aria-label=\"Search\">\n\t\t\t\t\t\t<q-icon icon=\"magnify\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4482
4582
|
},
|
|
4483
4583
|
{
|
|
4484
4584
|
"title": "Append Only",
|
|
4485
4585
|
"description": "Append-only group — all four corners of the control should be rounded.",
|
|
4486
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button>\n\t\t\t\t\t\t<q-icon icon=\"cog\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4586
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button aria-label=\"Settings\">\n\t\t\t\t\t\t<q-icon icon=\"cog\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4487
4587
|
},
|
|
4488
4588
|
{
|
|
4489
4589
|
"title": "Prepend Only",
|
|
4490
4590
|
"description": "Prepend-only group — all four corners of the control should be rounded.",
|
|
4491
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<template #prepend>\n\t\t\t\t\t<q-button>\n\t\t\t\t\t\t<q-icon icon=\"cog\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4591
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<template #prepend>\n\t\t\t\t\t<q-button aria-label=\"Settings\">\n\t\t\t\t\t\t<q-icon icon=\"cog\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4492
4592
|
},
|
|
4493
4593
|
{
|
|
4494
4594
|
"title": "Button Group Addon",
|
|
4495
4595
|
"description": "Further extends button addons with multiple buttons.",
|
|
4496
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field placeholder=\"Search\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button>\n\t\t\t\t\t\t<q-icon icon=\"magnify\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t\t<q-button>\n\t\t\t\t\t\t<q-icon icon=\"cog\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4596
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field aria-label=\"Search\" placeholder=\"Search\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button aria-label=\"Search\">\n\t\t\t\t\t\t<q-icon icon=\"magnify\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t\t<q-button aria-label=\"Settings\">\n\t\t\t\t\t\t<q-icon icon=\"cog\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4497
4597
|
},
|
|
4498
4598
|
{
|
|
4499
|
-
"title": "
|
|
4500
|
-
"description": "
|
|
4501
|
-
"code": "<QInputGroup
|
|
4599
|
+
"title": "Required",
|
|
4600
|
+
"description": "Displays an asterisk next to the group label.",
|
|
4601
|
+
"code": "<QInputGroup label=\"Full name\" :required=\"true\" />"
|
|
4502
4602
|
},
|
|
4503
4603
|
{
|
|
4504
4604
|
"title": "Mixed Heights",
|
|
4505
4605
|
"description": "Keeps sibling controls aligned when one child has a larger intrinsic height.",
|
|
4506
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field placeholder=\"Name\" />\n\t\t\t\t<q-text-area placeholder=\"Notes\" :rows=\"3\" />\n\t\t\t</q-input-group>"
|
|
4606
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-text-field aria-label=\"Name\" placeholder=\"Name\" />\n\t\t\t\t<q-text-area aria-label=\"Notes\" placeholder=\"Notes\" :rows=\"3\" />\n\t\t\t</q-input-group>"
|
|
4507
4607
|
},
|
|
4508
4608
|
{
|
|
4509
4609
|
"title": "Advanced Usage",
|
|
4510
4610
|
"description": "Supports the creation of custom input groups using selects, text fields, buttons, and more.",
|
|
4511
|
-
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-combobox\n\t\t\t\t\tsize=\"medium\"\n\t\t\t\t\tplaceholder=\"PT (+351)\"\n\t\t\t\t\tclearable\n\t\t\t\t\t:items=\"countryCodes\" />\n\t\t\t\t<q-text-field\n\t\t\t\t\tsize=\"large\"\n\t\t\t\t\tplaceholder=\"912345678\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button label=\"Verify\">\n\t\t\t\t\t\t<q-icon icon=\"check\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4611
|
+
"code": "<q-input-group v-bind=\"args\">\n\t\t\t\t<q-combobox\n\t\t\t\t\tsize=\"medium\"\n\t\t\t\t\taria-label=\"Country code\"\n\t\t\t\t\tplaceholder=\"PT (+351)\"\n\t\t\t\t\tclearable\n\t\t\t\t\t:items=\"countryCodes\" />\n\t\t\t\t<q-text-field\n\t\t\t\t\tsize=\"large\"\n\t\t\t\t\taria-label=\"Number\"\n\t\t\t\t\tplaceholder=\"912345678\" />\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button label=\"Verify\">\n\t\t\t\t\t\t<q-icon icon=\"check\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
4512
4612
|
}
|
|
4513
4613
|
]
|
|
4514
4614
|
},
|
|
@@ -4594,7 +4694,7 @@
|
|
|
4594
4694
|
{
|
|
4595
4695
|
"title": "Default",
|
|
4596
4696
|
"description": "Default label with simple text.",
|
|
4597
|
-
"code": "<QLabel
|
|
4697
|
+
"code": "<QLabel label=\"Label\" />"
|
|
4598
4698
|
},
|
|
4599
4699
|
{
|
|
4600
4700
|
"title": "With Prepend",
|
|
@@ -4664,6 +4764,16 @@
|
|
|
4664
4764
|
"required": false,
|
|
4665
4765
|
"category": "Identification"
|
|
4666
4766
|
},
|
|
4767
|
+
{
|
|
4768
|
+
"name": "label",
|
|
4769
|
+
"type": {
|
|
4770
|
+
"kind": "primitive",
|
|
4771
|
+
"name": "string"
|
|
4772
|
+
},
|
|
4773
|
+
"description": "Accessible name for the listbox.",
|
|
4774
|
+
"required": false,
|
|
4775
|
+
"category": "Content"
|
|
4776
|
+
},
|
|
4667
4777
|
{
|
|
4668
4778
|
"name": "modelValue",
|
|
4669
4779
|
"type": {
|
|
@@ -4998,12 +5108,12 @@
|
|
|
4998
5108
|
{
|
|
4999
5109
|
"title": "Default",
|
|
5000
5110
|
"description": "The default meter.",
|
|
5001
|
-
"code": "<QMeter :model-value=\"2\" :max=\"5\"
|
|
5111
|
+
"code": "<QMeter :model-value=\"2\" :max=\"5\" label=\"Tasks completed\" :value-label=\"(value: number, max: number) => `${value} of ${max}`\" />"
|
|
5002
5112
|
},
|
|
5003
5113
|
{
|
|
5004
5114
|
"title": "Semantic",
|
|
5005
5115
|
"description": "The meter bar color can be used to convey semantic meaning, such as status or severity.",
|
|
5006
|
-
"code": "<QMeter :model-value=\"75\" :max=\"100\"
|
|
5116
|
+
"code": "<QMeter :model-value=\"75\" :max=\"100\" color=\"success\" label=\"Storage\" :value-label=\"(value: number, max: number) => `${value} GB available of ${max} GB`\" />"
|
|
5007
5117
|
}
|
|
5008
5118
|
]
|
|
5009
5119
|
},
|
|
@@ -5246,12 +5356,12 @@
|
|
|
5246
5356
|
{
|
|
5247
5357
|
"title": "Obfuscation",
|
|
5248
5358
|
"description": "Role without permission — plain Restricted, no reveal control.",
|
|
5249
|
-
"code": "<QObfuscation
|
|
5359
|
+
"code": "<QObfuscation label=\"Field label\" :revealable=\"false\" />"
|
|
5250
5360
|
},
|
|
5251
5361
|
{
|
|
5252
5362
|
"title": "Obfuscation Bullets",
|
|
5253
5363
|
"description": "Bullet mask when obfuscation uses dots instead of Restricted.",
|
|
5254
|
-
"code": "<QObfuscation
|
|
5364
|
+
"code": "<QObfuscation label=\"Field label\" :revealable=\"false\" mask=\"bullets\" :bullet-count=\"12\" />"
|
|
5255
5365
|
},
|
|
5256
5366
|
{
|
|
5257
5367
|
"title": "Revealable Hidden",
|
|
@@ -5321,7 +5431,7 @@
|
|
|
5321
5431
|
{
|
|
5322
5432
|
"title": "Multiple Fields",
|
|
5323
5433
|
"description": "PDF-style consulta grid: mixed restricted vs revealable fields.",
|
|
5324
|
-
"code": "<div style=\"display: grid; grid-template-columns: 10rem 1fr 10rem 1fr; gap: 0.75rem 1.5rem; max-width: 44rem; align-items: baseline;\">\n\t\t\t\t<span style=\"
|
|
5434
|
+
"code": "<div style=\"display: grid; grid-template-columns: 10rem 1fr 10rem 1fr; gap: 0.75rem 1.5rem; max-width: 44rem; align-items: baseline;\">\n\t\t\t\t<span style=\"color: var(--q-theme-neutral);\">{{ args.label }}</span>\n\t\t\t\t<q-obfuscation :revealable=\"false\" />\n\n\t\t\t\t<span style=\"color: var(--q-theme-neutral);\">{{ args.label }}</span>\n\t\t\t\t<q-obfuscation\n\t\t\t\t\tv-bind=\"args\"\n\t\t\t\t\tv-model:revealed=\"revealedA\">\n\t\t\t\t\tField value revealed\n\t\t\t\t</q-obfuscation>\n\n\t\t\t\t<span style=\"color: var(--q-theme-neutral);\">{{ args.label }}</span>\n\t\t\t\t<q-obfuscation :revealable=\"false\" />\n\n\t\t\t\t<span style=\"color: var(--q-theme-neutral);\">{{ args.label }}</span>\n\t\t\t\t<q-obfuscation\n\t\t\t\t\t:revealable=\"true\"\n\t\t\t\t\tv-model:revealed=\"revealedB\">\n\t\t\t\t\tField value revealed\n\t\t\t\t</q-obfuscation>\n\n\t\t\t\t<span style=\"color: var(--q-theme-neutral);\">{{ args.label }}</span>\n\t\t\t\t<q-obfuscation :revealable=\"false\" mask=\"bullets\" />\n\n\t\t\t\t<span style=\"color: var(--q-theme-neutral);\">{{ args.label }}</span>\n\t\t\t\t<q-obfuscation :revealable=\"false\" />\n\t\t\t</div>"
|
|
5325
5435
|
}
|
|
5326
5436
|
]
|
|
5327
5437
|
},
|
|
@@ -6104,6 +6214,17 @@
|
|
|
6104
6214
|
"default": "DEFAULT_ICONS",
|
|
6105
6215
|
"required": false,
|
|
6106
6216
|
"category": "Configuration"
|
|
6217
|
+
},
|
|
6218
|
+
{
|
|
6219
|
+
"name": "texts",
|
|
6220
|
+
"type": {
|
|
6221
|
+
"kind": "object",
|
|
6222
|
+
"fields": {}
|
|
6223
|
+
},
|
|
6224
|
+
"description": "Custom text configurations for the visibility toggle.",
|
|
6225
|
+
"default": "DEFAULT_TEXTS",
|
|
6226
|
+
"required": false,
|
|
6227
|
+
"category": "Configuration"
|
|
6107
6228
|
}
|
|
6108
6229
|
],
|
|
6109
6230
|
"events": [
|
|
@@ -6165,27 +6286,22 @@
|
|
|
6165
6286
|
{
|
|
6166
6287
|
"title": "Readonly",
|
|
6167
6288
|
"description": "Conveys a read-only appearance to the field.",
|
|
6168
|
-
"code": "<QPasswordField
|
|
6289
|
+
"code": "<QPasswordField model-value=\"r34d0n1y\" :readonly=\"true\" :toggle=\"true\" />"
|
|
6169
6290
|
},
|
|
6170
6291
|
{
|
|
6171
6292
|
"title": "Disabled",
|
|
6172
6293
|
"description": "Disables the field, preventing interaction with it.",
|
|
6173
|
-
"code": "<QPasswordField
|
|
6174
|
-
},
|
|
6175
|
-
{
|
|
6176
|
-
"title": "Label",
|
|
6177
|
-
"description": "Provides a textual description for the field.",
|
|
6178
|
-
"code": "<QPasswordField :label=\"Password\" />"
|
|
6294
|
+
"code": "<QPasswordField model-value=\"d1sabl3d\" :disabled=\"true\" :toggle=\"true\" />"
|
|
6179
6295
|
},
|
|
6180
6296
|
{
|
|
6181
6297
|
"title": "Required",
|
|
6182
6298
|
"description": "Displays an asterisk (*) next to the label, to indicate that the field is required.",
|
|
6183
|
-
"code": "<QPasswordField
|
|
6299
|
+
"code": "<QPasswordField label=\"Password\" :required=\"true\" />"
|
|
6184
6300
|
},
|
|
6185
6301
|
{
|
|
6186
6302
|
"title": "Login Form",
|
|
6187
|
-
"description": "Combine with input group to create a custom login form.",
|
|
6188
|
-
"code": "<q-input-group>\n\t\t\t\t<q-password-field\n\t\t\t\t\tv-model:masked=\"masked\"\n\t\t\t\t\tplaceholder=\"Enter your password\"\n\t\t\t\t\tv-bind=\"args\">\n\t\t\t\t\t<template #prepend>\n\t\t\t\t\t\t<q-icon icon=\"lock\" style=\"color: var(--q-theme-primary); margin: 0 0.5rem;\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-password-field>\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button @click=\"toggleMask\">\n\t\t\t\t\t\t<q-icon :icon=\"masked ? 'eye' : 'eye-off'\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
6303
|
+
"description": "Combine with input group to create a custom login form. The field is named with `aria-label` so the show/hide row stays a single control.",
|
|
6304
|
+
"code": "<q-input-group>\n\t\t\t\t<q-password-field\n\t\t\t\t\tv-model:masked=\"masked\"\n\t\t\t\t\tplaceholder=\"Enter your password\"\n\t\t\t\t\taria-label=\"Password\"\n\t\t\t\t\tv-bind=\"args\"\n\t\t\t\t\t:label=\"undefined\">\n\t\t\t\t\t<template #prepend>\n\t\t\t\t\t\t<q-icon icon=\"lock\" style=\"color: var(--q-theme-primary); margin: 0 0.5rem;\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-password-field>\n\t\t\t\t<template #append>\n\t\t\t\t\t<q-button\n\t\t\t\t\t\t:aria-label=\"masked ? 'Show password' : 'Hide password'\"\n\t\t\t\t\t\t@click=\"toggleMask\">\n\t\t\t\t\t\t<q-icon :icon=\"masked ? 'eye' : 'eye-off'\" />\n\t\t\t\t\t</q-button>\n\t\t\t\t</template>\n\t\t\t</q-input-group>"
|
|
6189
6305
|
}
|
|
6190
6306
|
]
|
|
6191
6307
|
},
|
|
@@ -7200,22 +7316,22 @@
|
|
|
7200
7316
|
{
|
|
7201
7317
|
"title": "Default",
|
|
7202
7318
|
"description": "Uses the default `en-US` locale and emits a complete international value.",
|
|
7203
|
-
"code": "<QPhoneField
|
|
7319
|
+
"code": "<QPhoneField label=\"Phone number\" :clearable=\"true\" size=\"large\" />"
|
|
7204
7320
|
},
|
|
7205
7321
|
{
|
|
7206
7322
|
"title": "International Value",
|
|
7207
7323
|
"description": "Derives the country, flag, calling code, and national presentation from an E.164 value.",
|
|
7208
|
-
"code": "<QPhoneField
|
|
7324
|
+
"code": "<QPhoneField model-value=\"+442079460018\" />"
|
|
7209
7325
|
},
|
|
7210
7326
|
{
|
|
7211
7327
|
"title": "Restricted Countries",
|
|
7212
7328
|
"description": "Restricts and orders the countries shown in the searchable selector. This is a runtime filter; the component still includes the complete flag stylesheet.",
|
|
7213
|
-
"code": "<QPhoneField :countries=\"['PT', 'ES', 'FR', 'GB']\"
|
|
7329
|
+
"code": "<QPhoneField :countries=\"['PT', 'ES', 'FR', 'GB']\" model-value=\"+351912345678\" />"
|
|
7214
7330
|
},
|
|
7215
7331
|
{
|
|
7216
7332
|
"title": "Paste Detection",
|
|
7217
7333
|
"description": "Paste a number beginning with `+` or `00` to update the country automatically.",
|
|
7218
|
-
"code": "<QPhoneField
|
|
7334
|
+
"code": "<QPhoneField label=\"Paste an international number\" />"
|
|
7219
7335
|
},
|
|
7220
7336
|
{
|
|
7221
7337
|
"title": "Required Validation",
|
|
@@ -7230,17 +7346,17 @@
|
|
|
7230
7346
|
{
|
|
7231
7347
|
"title": "Readonly",
|
|
7232
7348
|
"description": "Prevents editing and country selection while retaining the formatted value.",
|
|
7233
|
-
"code": "<QPhoneField
|
|
7349
|
+
"code": "<QPhoneField model-value=\"+351912345678\" :readonly=\"true\" />"
|
|
7234
7350
|
},
|
|
7235
7351
|
{
|
|
7236
7352
|
"title": "Disabled",
|
|
7237
7353
|
"description": "Disables all interaction with the field.",
|
|
7238
|
-
"code": "<QPhoneField
|
|
7354
|
+
"code": "<QPhoneField model-value=\"+351912345678\" :disabled=\"true\" />"
|
|
7239
7355
|
},
|
|
7240
7356
|
{
|
|
7241
7357
|
"title": "Invalid",
|
|
7242
7358
|
"description": "Combines an application-provided invalid state with the component validation styling.",
|
|
7243
|
-
"code": "<QPhoneField
|
|
7359
|
+
"code": "<QPhoneField model-value=\"+35191\" :invalid=\"true\" />"
|
|
7244
7360
|
}
|
|
7245
7361
|
]
|
|
7246
7362
|
},
|
|
@@ -7430,7 +7546,7 @@
|
|
|
7430
7546
|
{
|
|
7431
7547
|
"title": "Title",
|
|
7432
7548
|
"description": "Displays a header section with the title of the popover.",
|
|
7433
|
-
"code": "<QPopover
|
|
7549
|
+
"code": "<QPopover title=\"What is Lorem Ipsum?\" text=\"Lorem Ipsum is simply dummy text of the printing and typesetting industry.\" />"
|
|
7434
7550
|
},
|
|
7435
7551
|
{
|
|
7436
7552
|
"title": "Placement Variations",
|
|
@@ -7440,7 +7556,7 @@
|
|
|
7440
7556
|
{
|
|
7441
7557
|
"title": "HTML Content",
|
|
7442
7558
|
"description": "Render rich HTML content including links, formatting, and lists.",
|
|
7443
|
-
"code": "<QPopover :html=\"true\"
|
|
7559
|
+
"code": "<QPopover :html=\"true\" title=\"Welcome to our Platform!\" text=\"\n <p>Here are some quick steps to get you started:</p>\n <ol>\n <li>Configure your <strong>workspace settings</strong></li>\n <li>Check our <a href="#">documentation</a></li>\n <li>Join our <a href="#">community</a></li>\n </ol>\n <div style="margin-top: 1rem">\n <span>💡 Pro tip:</span>\n Enable dark mode in your profile settings for better viewing experience.\n </div>\n \" />"
|
|
7444
7560
|
},
|
|
7445
7561
|
{
|
|
7446
7562
|
"title": "Custom Header",
|
|
@@ -7450,7 +7566,7 @@
|
|
|
7450
7566
|
{
|
|
7451
7567
|
"title": "No Arrow",
|
|
7452
7568
|
"description": "Clean appearance without directional arrow.",
|
|
7453
|
-
"code": "<QPopover :arrow=\"false\"
|
|
7569
|
+
"code": "<QPopover :arrow=\"false\" title=\"Minimal Design\" text=\"This version removes the visual indicator for simpler interfaces.\" />"
|
|
7454
7570
|
},
|
|
7455
7571
|
{
|
|
7456
7572
|
"title": "Interactive Content",
|
|
@@ -7822,7 +7938,7 @@
|
|
|
7822
7938
|
{
|
|
7823
7939
|
"title": "Side Panel",
|
|
7824
7940
|
"description": "Displays properties with the panel positioned to the right.",
|
|
7825
|
-
"code": "<QPropertyList :fields=\"noGroupFields\"
|
|
7941
|
+
"code": "<QPropertyList :fields=\"noGroupFields\" panel-position=\"right\" />"
|
|
7826
7942
|
},
|
|
7827
7943
|
{
|
|
7828
7944
|
"title": "Readonly",
|
|
@@ -8238,12 +8354,12 @@
|
|
|
8238
8354
|
{
|
|
8239
8355
|
"title": "Borderless",
|
|
8240
8356
|
"description": "A group box without borders.",
|
|
8241
|
-
"code": "<QSection
|
|
8357
|
+
"code": "<QSection title=\"Borderless\" :borderless=\"true\" />"
|
|
8242
8358
|
},
|
|
8243
8359
|
{
|
|
8244
8360
|
"title": "Block",
|
|
8245
8361
|
"description": "A group box spanning full width of its container.",
|
|
8246
|
-
"code": "<QSection
|
|
8362
|
+
"code": "<QSection title=\"Block Group Box\" :block=\"true\" />"
|
|
8247
8363
|
},
|
|
8248
8364
|
{
|
|
8249
8365
|
"title": "Variants",
|
|
@@ -8626,17 +8742,17 @@
|
|
|
8626
8742
|
{
|
|
8627
8743
|
"title": "Readonly",
|
|
8628
8744
|
"description": "Conveys a read-only appearance to the select.",
|
|
8629
|
-
"code": "<QSelect
|
|
8745
|
+
"code": "<QSelect model-value=\"italic\" :readonly=\"true\" />"
|
|
8630
8746
|
},
|
|
8631
8747
|
{
|
|
8632
8748
|
"title": "Disabled",
|
|
8633
8749
|
"description": "Disables the select, preventing interaction with it.",
|
|
8634
|
-
"code": "<QSelect
|
|
8750
|
+
"code": "<QSelect model-value=\"italic\" :disabled=\"true\" />"
|
|
8635
8751
|
},
|
|
8636
8752
|
{
|
|
8637
8753
|
"title": "Clearable",
|
|
8638
8754
|
"description": "Displays a clear button, allowing the user to clear the selected value.",
|
|
8639
|
-
"code": "<QSelect
|
|
8755
|
+
"code": "<QSelect model-value=\"italic\" :clearable=\"true\" />"
|
|
8640
8756
|
},
|
|
8641
8757
|
{
|
|
8642
8758
|
"title": "Item Groups",
|
|
@@ -8651,7 +8767,7 @@
|
|
|
8651
8767
|
{
|
|
8652
8768
|
"title": "Loading",
|
|
8653
8769
|
"description": "Displays a loading animation that lets users know content is being loaded.",
|
|
8654
|
-
"code": "<QSelect :items=\"\" :loading=\"true\" />"
|
|
8770
|
+
"code": "<QSelect :items=\"[]\" :loading=\"true\" />"
|
|
8655
8771
|
},
|
|
8656
8772
|
{
|
|
8657
8773
|
"title": "Description In Items",
|
|
@@ -8787,12 +8903,12 @@
|
|
|
8787
8903
|
{
|
|
8788
8904
|
"title": "Right",
|
|
8789
8905
|
"description": "Sidebar positioned on the right side of the screen.",
|
|
8790
|
-
"code": "<QSidebar :show-labels=\"true\"
|
|
8906
|
+
"code": "<QSidebar :show-labels=\"true\" position=\"right\" />"
|
|
8791
8907
|
},
|
|
8792
8908
|
{
|
|
8793
8909
|
"title": "Starts Expanded",
|
|
8794
8910
|
"description": "Sidebar with a panel expanded by default.",
|
|
8795
|
-
"code": "<QSidebar :show-labels=\"true\"
|
|
8911
|
+
"code": "<QSidebar :show-labels=\"true\" model-value=\"activity\" />"
|
|
8796
8912
|
},
|
|
8797
8913
|
{
|
|
8798
8914
|
"title": "Panel Size",
|
|
@@ -8812,17 +8928,17 @@
|
|
|
8812
8928
|
{
|
|
8813
8929
|
"title": "Header",
|
|
8814
8930
|
"description": "Use the `header` slot to add a sticky header to a sidebar panel.",
|
|
8815
|
-
"code": "<QSidebar v-bind=\"args\">\n\t\t\t\t<q-sidebar-item value=\"activity\" title=\"Activity\" :icon=\"{ icon: 'bell' }\">\n\t\t\t\t\t<template #header>\n\t\t\t\t\t\t<img src=\"/logo.png\" style=\"max-height: 100px; max-width: 150px;\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-sidebar-item>\n\t\t\t\t<q-sidebar-item value=\"chat\" title=\"Chat\" :icon=\"{ icon: 'chat' }\" />\n\t\t\t\t<q-sidebar-item value=\"calendar\" title=\"Calendar\" :icon=\"{ icon: 'calendar' }\" />\n\t\t\t\t<q-sidebar-item value=\"calls\" title=\"Calls\" :icon=\"{ icon: 'phone' }\" />\n\t\t\t</QSidebar>"
|
|
8931
|
+
"code": "<QSidebar v-bind=\"args\">\n\t\t\t\t<q-sidebar-item value=\"activity\" title=\"Activity\" :icon=\"{ icon: 'bell' }\">\n\t\t\t\t\t<template #header>\n\t\t\t\t\t\t<img src=\"/logo.png\" alt=\"Quidgest\" style=\"max-height: 100px; max-width: 150px;\" />\n\t\t\t\t\t</template>\n\t\t\t\t</q-sidebar-item>\n\t\t\t\t<q-sidebar-item value=\"chat\" title=\"Chat\" :icon=\"{ icon: 'chat' }\" />\n\t\t\t\t<q-sidebar-item value=\"calendar\" title=\"Calendar\" :icon=\"{ icon: 'calendar' }\" />\n\t\t\t\t<q-sidebar-item value=\"calls\" title=\"Calls\" :icon=\"{ icon: 'phone' }\" />\n\t\t\t</QSidebar>"
|
|
8816
8932
|
},
|
|
8817
8933
|
{
|
|
8818
8934
|
"title": "Content",
|
|
8819
8935
|
"description": "Use the default slot to add main content to a sidebar panel.",
|
|
8820
|
-
"code": "<QSidebar
|
|
8936
|
+
"code": "<QSidebar model-value=\"activity\" />"
|
|
8821
8937
|
},
|
|
8822
8938
|
{
|
|
8823
8939
|
"title": "Footer",
|
|
8824
8940
|
"description": "Use the `footer` slot to add a sticky footer to a sidebar panel.",
|
|
8825
|
-
"code": "<div class=\"q-sidebar-stories\">\n\t\t\t\t<QSidebar v-bind=\"args\">\n\t\t\t\t\t<q-sidebar-item\n\t\t\t\t\t\tvalue=\"chat\"\n\t\t\t\t\t\ttitle=\"Chat\"\n\t\t\t\t\t\t:icon=\"{ icon: 'robot-happy' }\"\n\t\t\t\t\t\tinitial-width=\"large\"\n\t\t\t\t\t\tmin-width=\"medium\"\n\t\t\t\t\t\tresizable>\n\t\t\t\t\t\t<template #footer>\n\t\t\t\t\t\t\t<QCard class=\"prompt\" width=\"block\" elevation=\"low\">\n\t\t\t\t\t\t\t\t<QTextArea\n\t\t\t\t\t\t\t\t\tv-model=\"prompt\"\n\t\t\t\t\t\t\t\t\tclass=\"prompt__textarea\"\n\t\t\t\t\t\t\t\t\tplaceholder=\"Ask anything\"\n\t\t\t\t\t\t\t\t\tsize=\"block\"\n\t\t\t\t\t\t\t\t\t:rows=\"1\"\n\t\t\t\t\t\t\t\t\tresize=\"none\"\n\t\t\t\t\t\t\t\t\tautosize\n\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t<template #footer>\n\t\t\t\t\t\t\t\t\t<div class=\"prompt__actions\">\n\t\t\t\t\t\t\t\t\t\t<QButton ref=\"upload\" pill>\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"plus\" />\n\t\t\t\t\t\t\t\t\t\t</QButton>\n\t\t\t\t\t\t\t\t\t\t<QDropdownMenu\n\t\t\t\t\t\t\t\t\t\t\t:activator=\"uploadRef?.$el\"\n\t\t\t\t\t\t\t\t\t\t\t:items=\"uploadItems\"\n\t\t\t\t\t\t\t\t\t\t\t:groups=\"uploadGroups\"\n\t\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t\t<QToggle ref=\"search\" pill>\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"earth\" />\n\t\t\t\t\t\t\t\t\t\t\tSearch\n\t\t\t\t\t\t\t\t\t\t</QToggle>\n\n\t\t\t\t\t\t\t\t\t\t<QToggle ref=\"reason\" pill>\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"lightbulb-outline\" />\n\t\t\t\t\t\t\t\t\t\t\tReason\n\t\t\t\t\t\t\t\t\t\t</QToggle>\n\n\t\t\t\t\t\t\t\t\t\t<QButton ref=\"more\" pill>\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"dots-horizontal\" />\n\t\t\t\t\t\t\t\t\t\t</QButton>\n\t\t\t\t\t\t\t\t\t\t<QDropdownMenu :activator=\"moreRef?.$el\" :items=\"moreItems\" />\n\n\t\t\t\t\t\t\t\t\t\t<QButton ref=\"action\" class=\"prompt__voice-mode\" variant=\"bold\" pill>\n\t\t\t\t\t\t\t\t\t\t\t<QIcon :icon=\"isPromptEmpty ? 'waveform' : 'arrow-up'\" />\n\t\t\t\t\t\t\t\t\t\t</QButton>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t\t</QCard>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</q-sidebar-item>\n\t\t\t\t</QSidebar>\n\t\t\t</div>"
|
|
8941
|
+
"code": "<div class=\"q-sidebar-stories\">\n\t\t\t\t<QSidebar v-bind=\"args\">\n\t\t\t\t\t<q-sidebar-item\n\t\t\t\t\t\tvalue=\"chat\"\n\t\t\t\t\t\ttitle=\"Chat\"\n\t\t\t\t\t\t:icon=\"{ icon: 'robot-happy' }\"\n\t\t\t\t\t\tinitial-width=\"large\"\n\t\t\t\t\t\tmin-width=\"medium\"\n\t\t\t\t\t\tresizable>\n\t\t\t\t\t\t<template #footer>\n\t\t\t\t\t\t\t<QCard class=\"prompt\" width=\"block\" elevation=\"low\">\n\t\t\t\t\t\t\t\t<QTextArea\n\t\t\t\t\t\t\t\t\tv-model=\"prompt\"\n\t\t\t\t\t\t\t\t\tclass=\"prompt__textarea\"\n\t\t\t\t\t\t\t\t\taria-label=\"Ask anything\"\n\t\t\t\t\t\t\t\t\tplaceholder=\"Ask anything\"\n\t\t\t\t\t\t\t\t\tsize=\"block\"\n\t\t\t\t\t\t\t\t\t:rows=\"1\"\n\t\t\t\t\t\t\t\t\tresize=\"none\"\n\t\t\t\t\t\t\t\t\tautosize\n\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t<template #footer>\n\t\t\t\t\t\t\t\t\t<div class=\"prompt__actions\">\n\t\t\t\t\t\t\t\t\t\t<QButton ref=\"upload\" pill aria-label=\"Attach\">\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"plus\" />\n\t\t\t\t\t\t\t\t\t\t</QButton>\n\t\t\t\t\t\t\t\t\t\t<QDropdownMenu\n\t\t\t\t\t\t\t\t\t\t\t:activator=\"uploadRef?.$el\"\n\t\t\t\t\t\t\t\t\t\t\t:items=\"uploadItems\"\n\t\t\t\t\t\t\t\t\t\t\t:groups=\"uploadGroups\"\n\t\t\t\t\t\t\t\t\t\t/>\n\n\t\t\t\t\t\t\t\t\t\t<QToggle ref=\"search\" pill>\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"earth\" />\n\t\t\t\t\t\t\t\t\t\t\tSearch\n\t\t\t\t\t\t\t\t\t\t</QToggle>\n\n\t\t\t\t\t\t\t\t\t\t<QToggle ref=\"reason\" pill>\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"lightbulb-outline\" />\n\t\t\t\t\t\t\t\t\t\t\tReason\n\t\t\t\t\t\t\t\t\t\t</QToggle>\n\n\t\t\t\t\t\t\t\t\t\t<QButton ref=\"more\" pill aria-label=\"More\">\n\t\t\t\t\t\t\t\t\t\t\t<QIcon icon=\"dots-horizontal\" />\n\t\t\t\t\t\t\t\t\t\t</QButton>\n\t\t\t\t\t\t\t\t\t\t<QDropdownMenu :activator=\"moreRef?.$el\" :items=\"moreItems\" />\n\n\t\t\t\t\t\t\t\t\t\t<QButton ref=\"action\" class=\"prompt__voice-mode\" variant=\"bold\" pill :aria-label=\"isPromptEmpty ? 'Voice' : 'Send'\">\n\t\t\t\t\t\t\t\t\t\t\t<QIcon :icon=\"isPromptEmpty ? 'waveform' : 'arrow-up'\" />\n\t\t\t\t\t\t\t\t\t\t</QButton>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</template>\n\t\t\t\t\t\t\t</QCard>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</q-sidebar-item>\n\t\t\t\t</QSidebar>\n\t\t\t</div>"
|
|
8826
8942
|
},
|
|
8827
8943
|
{
|
|
8828
8944
|
"title": "Custom Anchor Items",
|
|
@@ -8901,12 +9017,12 @@
|
|
|
8901
9017
|
{
|
|
8902
9018
|
"title": "Text",
|
|
8903
9019
|
"description": "The built-in 'text' skeleton type.",
|
|
8904
|
-
"code": "<QSkeletonLoader
|
|
9020
|
+
"code": "<QSkeletonLoader type=\"text\" :width=\"133\" :height=\"undefined\" />"
|
|
8905
9021
|
},
|
|
8906
9022
|
{
|
|
8907
9023
|
"title": "Icon",
|
|
8908
9024
|
"description": "The built-in 'icon' skeleton type.",
|
|
8909
|
-
"code": "<QSkeletonLoader
|
|
9025
|
+
"code": "<QSkeletonLoader type=\"icon\" />"
|
|
8910
9026
|
},
|
|
8911
9027
|
{
|
|
8912
9028
|
"title": "Custom",
|
|
@@ -8947,6 +9063,221 @@
|
|
|
8947
9063
|
},
|
|
8948
9064
|
"examples": []
|
|
8949
9065
|
},
|
|
9066
|
+
{
|
|
9067
|
+
"name": "QSteps",
|
|
9068
|
+
"description": "Presents a multi-step wizard or workflow. Step definitions come from the `steps` prop; the default slot holds only the current step’s content.",
|
|
9069
|
+
"meta": {
|
|
9070
|
+
"props": [
|
|
9071
|
+
{
|
|
9072
|
+
"name": "modelValue",
|
|
9073
|
+
"type": {
|
|
9074
|
+
"kind": "primitive",
|
|
9075
|
+
"name": "string"
|
|
9076
|
+
},
|
|
9077
|
+
"description": "",
|
|
9078
|
+
"required": false
|
|
9079
|
+
},
|
|
9080
|
+
{
|
|
9081
|
+
"name": "id",
|
|
9082
|
+
"type": {
|
|
9083
|
+
"kind": "primitive",
|
|
9084
|
+
"name": "string"
|
|
9085
|
+
},
|
|
9086
|
+
"description": "The component unique identifier.",
|
|
9087
|
+
"required": false,
|
|
9088
|
+
"category": "Identification"
|
|
9089
|
+
},
|
|
9090
|
+
{
|
|
9091
|
+
"name": "steps",
|
|
9092
|
+
"type": {
|
|
9093
|
+
"kind": "array",
|
|
9094
|
+
"elementType": {
|
|
9095
|
+
"name": "object",
|
|
9096
|
+
"value": {}
|
|
9097
|
+
}
|
|
9098
|
+
},
|
|
9099
|
+
"description": "Ordered list of step definitions.",
|
|
9100
|
+
"required": true,
|
|
9101
|
+
"category": "Content"
|
|
9102
|
+
},
|
|
9103
|
+
{
|
|
9104
|
+
"name": "direction",
|
|
9105
|
+
"type": {
|
|
9106
|
+
"kind": "enum",
|
|
9107
|
+
"values": [
|
|
9108
|
+
"horizontal",
|
|
9109
|
+
"vertical"
|
|
9110
|
+
]
|
|
9111
|
+
},
|
|
9112
|
+
"description": "Orientation of the step list.",
|
|
9113
|
+
"default": "horizontal",
|
|
9114
|
+
"required": false,
|
|
9115
|
+
"category": "Presentation"
|
|
9116
|
+
},
|
|
9117
|
+
{
|
|
9118
|
+
"name": "variant",
|
|
9119
|
+
"type": {
|
|
9120
|
+
"kind": "enum",
|
|
9121
|
+
"values": [
|
|
9122
|
+
"circle",
|
|
9123
|
+
"arrow",
|
|
9124
|
+
"dot",
|
|
9125
|
+
"boxed"
|
|
9126
|
+
]
|
|
9127
|
+
},
|
|
9128
|
+
"description": "Visual style of the step indicators.",
|
|
9129
|
+
"default": "circle",
|
|
9130
|
+
"required": false,
|
|
9131
|
+
"category": "Presentation"
|
|
9132
|
+
},
|
|
9133
|
+
{
|
|
9134
|
+
"name": "disabled",
|
|
9135
|
+
"type": {
|
|
9136
|
+
"kind": "primitive",
|
|
9137
|
+
"name": "boolean"
|
|
9138
|
+
},
|
|
9139
|
+
"description": "If true, disables all step headers and navigation.",
|
|
9140
|
+
"required": false,
|
|
9141
|
+
"category": "State"
|
|
9142
|
+
},
|
|
9143
|
+
{
|
|
9144
|
+
"name": "linear",
|
|
9145
|
+
"type": {
|
|
9146
|
+
"kind": "primitive",
|
|
9147
|
+
"name": "boolean"
|
|
9148
|
+
},
|
|
9149
|
+
"description": "If true, header clicks cannot skip ahead of the furthest reached step.\n\nNext/Previous navigation still works.",
|
|
9150
|
+
"default": "false",
|
|
9151
|
+
"required": false,
|
|
9152
|
+
"category": "Behavior"
|
|
9153
|
+
},
|
|
9154
|
+
{
|
|
9155
|
+
"name": "icons",
|
|
9156
|
+
"type": {
|
|
9157
|
+
"kind": "object",
|
|
9158
|
+
"fields": {}
|
|
9159
|
+
},
|
|
9160
|
+
"description": "Custom icons for the previous/next navigation buttons and the\n`completed`/`current` status badges.",
|
|
9161
|
+
"default": "DEFAULT_ICONS",
|
|
9162
|
+
"required": false,
|
|
9163
|
+
"category": "Configuration"
|
|
9164
|
+
},
|
|
9165
|
+
{
|
|
9166
|
+
"name": "texts",
|
|
9167
|
+
"type": {
|
|
9168
|
+
"kind": "object",
|
|
9169
|
+
"fields": {}
|
|
9170
|
+
},
|
|
9171
|
+
"description": "Custom accessible strings.",
|
|
9172
|
+
"default": "DEFAULT_TEXTS",
|
|
9173
|
+
"required": false,
|
|
9174
|
+
"category": "Configuration"
|
|
9175
|
+
}
|
|
9176
|
+
],
|
|
9177
|
+
"events": [
|
|
9178
|
+
{
|
|
9179
|
+
"name": "update:modelValue",
|
|
9180
|
+
"description": "",
|
|
9181
|
+
"type": "[value: string]"
|
|
9182
|
+
},
|
|
9183
|
+
{
|
|
9184
|
+
"name": "finish",
|
|
9185
|
+
"description": "",
|
|
9186
|
+
"type": "[]"
|
|
9187
|
+
}
|
|
9188
|
+
],
|
|
9189
|
+
"slots": [
|
|
9190
|
+
{
|
|
9191
|
+
"name": "icon",
|
|
9192
|
+
"description": ""
|
|
9193
|
+
},
|
|
9194
|
+
{
|
|
9195
|
+
"name": "default",
|
|
9196
|
+
"description": ""
|
|
9197
|
+
},
|
|
9198
|
+
{
|
|
9199
|
+
"name": "prev",
|
|
9200
|
+
"description": ""
|
|
9201
|
+
},
|
|
9202
|
+
{
|
|
9203
|
+
"name": "next",
|
|
9204
|
+
"description": ""
|
|
9205
|
+
}
|
|
9206
|
+
]
|
|
9207
|
+
},
|
|
9208
|
+
"examples": [
|
|
9209
|
+
{
|
|
9210
|
+
"title": "Default",
|
|
9211
|
+
"description": "Default horizontal steps with the circle variant.",
|
|
9212
|
+
"code": "<q-steps v-model=\"step\" v-bind=\"args\">\n\t\t\t\t<b>{{ content.heading }}</b>\n\t\t\t\t<p>{{ content.body }}</p>\n\t\t\t</q-steps>"
|
|
9213
|
+
},
|
|
9214
|
+
{
|
|
9215
|
+
"title": "Vertical",
|
|
9216
|
+
"description": "Vertical layout with content under the active header.",
|
|
9217
|
+
"code": "<QSteps :steps=\"defaultSteps\" direction=\"vertical\" />"
|
|
9218
|
+
},
|
|
9219
|
+
{
|
|
9220
|
+
"title": "Dot",
|
|
9221
|
+
"description": "Dot variant — plain dots, no numbers or icons.",
|
|
9222
|
+
"code": "<QSteps :steps=\"defaultSteps\" variant=\"dot\" />"
|
|
9223
|
+
},
|
|
9224
|
+
{
|
|
9225
|
+
"title": "Boxed",
|
|
9226
|
+
"description": "Boxed variant — filled rounded rectangles.",
|
|
9227
|
+
"code": "<QSteps :steps=\"defaultSteps\" variant=\"boxed\" />"
|
|
9228
|
+
},
|
|
9229
|
+
{
|
|
9230
|
+
"title": "Arrow",
|
|
9231
|
+
"description": "Arrow variant — interlocking chevron segments.",
|
|
9232
|
+
"code": "<QSteps :steps=\"defaultSteps\" variant=\"arrow\" />"
|
|
9233
|
+
},
|
|
9234
|
+
{
|
|
9235
|
+
"title": "Dot Vertical",
|
|
9236
|
+
"description": "Dot variant in a vertical layout.",
|
|
9237
|
+
"code": "<QSteps :steps=\"defaultSteps\" variant=\"dot\" direction=\"vertical\" />"
|
|
9238
|
+
},
|
|
9239
|
+
{
|
|
9240
|
+
"title": "Boxed Vertical",
|
|
9241
|
+
"description": "Boxed variant in a vertical layout.",
|
|
9242
|
+
"code": "<QSteps :steps=\"defaultSteps\" variant=\"boxed\" direction=\"vertical\" />"
|
|
9243
|
+
},
|
|
9244
|
+
{
|
|
9245
|
+
"title": "Arrow Vertical",
|
|
9246
|
+
"description": "Arrow variant in a vertical layout.",
|
|
9247
|
+
"code": "<QSteps :steps=\"defaultSteps\" variant=\"arrow\" direction=\"vertical\" />"
|
|
9248
|
+
},
|
|
9249
|
+
{
|
|
9250
|
+
"title": "Many Steps",
|
|
9251
|
+
"description": "More steps than fit at once — horizontal caps visible steps at 4 and scrolls the rest via arrow buttons (built on `QOverflow`).",
|
|
9252
|
+
"code": "<q-steps v-model=\"step\" v-bind=\"args\">\n\t\t\t\t<p>Current step: {{ step }}</p>\n\t\t\t</q-steps>"
|
|
9253
|
+
},
|
|
9254
|
+
{
|
|
9255
|
+
"title": "With Completed Steps",
|
|
9256
|
+
"description": "Completed and active badges — `step.completed` shows a green check, taking precedence over the active step's pencil badge when both apply. `dot` shows neither badge, painting the dot itself green instead. Switch `variant`/`direction` in the controls panel to see the badge positioning for each combination.",
|
|
9257
|
+
"code": "<q-steps v-model=\"step\" v-bind=\"args\">\n\t\t\t\t<b>{{ content.heading }}</b>\n\t\t\t\t<p>{{ content.body }}</p>\n\t\t\t</q-steps>"
|
|
9258
|
+
},
|
|
9259
|
+
{
|
|
9260
|
+
"title": "Linear",
|
|
9261
|
+
"description": "Linear mode — header clicks cannot skip ahead of visited steps.",
|
|
9262
|
+
"code": "<QSteps :steps=\"defaultSteps\" :linear=\"true\" />"
|
|
9263
|
+
},
|
|
9264
|
+
{
|
|
9265
|
+
"title": "With Icons And Required",
|
|
9266
|
+
"description": "Steps with icons (via `icon` on each step) and a required marker.",
|
|
9267
|
+
"code": "<q-steps v-model=\"step\" v-bind=\"args\">\n\t\t\t\t<p>Content for <strong>{{ step }}</strong>.</p>\n\t\t\t</q-steps>"
|
|
9268
|
+
},
|
|
9269
|
+
{
|
|
9270
|
+
"title": "With Icon Slot",
|
|
9271
|
+
"description": "Custom indicator content via the scoped `#icon` slot.",
|
|
9272
|
+
"code": "<q-steps v-model=\"step\" v-bind=\"args\">\n\t\t\t\t<template #icon=\"{ index }\">\n\t\t\t\t\t<q-icon :icon=\"icons[index]\" />\n\t\t\t\t</template>\n\t\t\t\t<p>Current step: {{ step }}</p>\n\t\t\t</q-steps>"
|
|
9273
|
+
},
|
|
9274
|
+
{
|
|
9275
|
+
"title": "Controlled",
|
|
9276
|
+
"description": "Controlled example that reacts to finish. The built-in Next button disables itself on the last step instead of relabeling to \"Finish\" — to offer an actual clickable finish action, override the `next` slot (as done here) and call its `onClick` yourself.",
|
|
9277
|
+
"code": "<q-steps v-model=\"step\" v-bind=\"args\" @finish=\"onFinish\">\n\t\t\t\t<b>{{ content.heading }}</b>\n\t\t\t\t<p>{{ content.body }}</p>\n\t\t\t\t<template #next=\"{ label, isLast, onClick }\">\n\t\t\t\t\t<q-button\n\t\t\t\t\t\tvariant=\"bold\"\n\t\t\t\t\t\t:label=\"isLast ? 'Finish' : label\"\n\t\t\t\t\t\t@click=\"onClick\" />\n\t\t\t\t</template>\n\t\t\t</q-steps>\n\t\t\t<p v-if=\"finished\" style=\"margin-top: 1rem;\">Finished!</p>"
|
|
9278
|
+
}
|
|
9279
|
+
]
|
|
9280
|
+
},
|
|
8950
9281
|
{
|
|
8951
9282
|
"name": "QSwitch",
|
|
8952
9283
|
"description": "The `QSwitch` component is an accessible, customizable toggle control for switching between two states (e.g., on/off, true/false). It supports labels, size overrides, custom colors, and disabled states.",
|
|
@@ -9132,22 +9463,22 @@
|
|
|
9132
9463
|
{
|
|
9133
9464
|
"title": "Custom Color",
|
|
9134
9465
|
"description": "Switch with a custom checked color instead of the default theme color.",
|
|
9135
|
-
"code": "<QSwitch :model-value=\"true\"
|
|
9466
|
+
"code": "<QSwitch :model-value=\"true\" checked-color=\"rgb(0, 200, 83)\" />"
|
|
9136
9467
|
},
|
|
9137
9468
|
{
|
|
9138
9469
|
"title": "Custom Switch",
|
|
9139
9470
|
"description": "A themed switch using emoji labels and a custom color, ideal for toggling between light and dark modes.",
|
|
9140
|
-
"code": "<QSwitch :model-value=\"true\" :show-state-labels=\"true\"
|
|
9471
|
+
"code": "<QSwitch :model-value=\"true\" :show-state-labels=\"true\" label=\"Theme\" true-label=\"🌙 Dark\" false-label=\"☀️ Light\" checked-color=\"#333\" />"
|
|
9141
9472
|
},
|
|
9142
9473
|
{
|
|
9143
9474
|
"title": "With Label Prop",
|
|
9144
9475
|
"description": "Switch using the built-in `label` prop for a simple text label.",
|
|
9145
|
-
"code": "<QSwitch
|
|
9476
|
+
"code": "<QSwitch label=\"I agree to the terms and conditions\" />"
|
|
9146
9477
|
},
|
|
9147
9478
|
{
|
|
9148
9479
|
"title": "With External Label",
|
|
9149
|
-
"description": "Custom setup connecting `QSwitch` with a separate `QLabel` component using `for` / `id` props for accessible labeling.",
|
|
9150
|
-
"code": "<div style=\"display: flex; align-items: center; gap: 0.5rem; width: 100%; place-content: space-between;\">\n\t\t\t\t<QLabel :for=\"'custom-switch'\">Subscribe to newsletter</QLabel>\n\t\t\t\t<QSwitch v-bind=\"args\" id=\"custom-switch\" />\n\t\t\t</div>"
|
|
9480
|
+
"description": "Custom setup connecting `QSwitch` with a separate `QLabel` component using `for` / `id` props for accessible labeling. The meta `label` is cleared so the built-in label is not rendered beside it.",
|
|
9481
|
+
"code": "<div style=\"display: flex; align-items: center; gap: 0.5rem; width: 100%; place-content: space-between;\">\n\t\t\t\t<QLabel :for=\"'custom-switch'\">Subscribe to newsletter</QLabel>\n\t\t\t\t<QSwitch v-bind=\"args\" id=\"custom-switch\" :label=\"undefined\" />\n\t\t\t</div>"
|
|
9151
9482
|
}
|
|
9152
9483
|
]
|
|
9153
9484
|
},
|
|
@@ -9253,22 +9584,22 @@
|
|
|
9253
9584
|
{
|
|
9254
9585
|
"title": "Vertical",
|
|
9255
9586
|
"description": "Vertical tab list beside the panels.",
|
|
9256
|
-
"code": "<QTabs
|
|
9587
|
+
"code": "<QTabs direction=\"vertical\" />"
|
|
9257
9588
|
},
|
|
9258
9589
|
{
|
|
9259
9590
|
"title": "Card",
|
|
9260
9591
|
"description": "Card-style folder tabs that merge into the panel.",
|
|
9261
|
-
"code": "<QTabs
|
|
9592
|
+
"code": "<QTabs variant=\"card\" />"
|
|
9262
9593
|
},
|
|
9263
9594
|
{
|
|
9264
9595
|
"title": "Card Vertical",
|
|
9265
9596
|
"description": "Card-style tabs in a vertical layout.",
|
|
9266
|
-
"code": "<QTabs
|
|
9597
|
+
"code": "<QTabs variant=\"card\" direction=\"vertical\" />"
|
|
9267
9598
|
},
|
|
9268
9599
|
{
|
|
9269
9600
|
"title": "Align",
|
|
9270
9601
|
"description": "Tabs distributed across the tab list.",
|
|
9271
|
-
"code": "<QTabs
|
|
9602
|
+
"code": "<QTabs align=\"justify\" />"
|
|
9272
9603
|
},
|
|
9273
9604
|
{
|
|
9274
9605
|
"title": "With Required",
|
|
@@ -9542,27 +9873,22 @@
|
|
|
9542
9873
|
{
|
|
9543
9874
|
"title": "Placeholder",
|
|
9544
9875
|
"description": "Provides a hint or example text inside the field.",
|
|
9545
|
-
"code": "<QTextArea
|
|
9876
|
+
"code": "<QTextArea placeholder=\"Placeholder\" />"
|
|
9546
9877
|
},
|
|
9547
9878
|
{
|
|
9548
9879
|
"title": "Readonly",
|
|
9549
9880
|
"description": "Conveys a read-only appearance to the field.",
|
|
9550
|
-
"code": "<QTextArea
|
|
9881
|
+
"code": "<QTextArea model-value=\"Readonly\" :readonly=\"true\" />"
|
|
9551
9882
|
},
|
|
9552
9883
|
{
|
|
9553
9884
|
"title": "Disabled",
|
|
9554
9885
|
"description": "Disables the field, preventing interaction with it.",
|
|
9555
|
-
"code": "<QTextArea
|
|
9556
|
-
},
|
|
9557
|
-
{
|
|
9558
|
-
"title": "Label",
|
|
9559
|
-
"description": "Provides a textual description for the field.",
|
|
9560
|
-
"code": "<QTextArea :label=\"Username\" />"
|
|
9886
|
+
"code": "<QTextArea model-value=\"Disabled\" :disabled=\"true\" />"
|
|
9561
9887
|
},
|
|
9562
9888
|
{
|
|
9563
9889
|
"title": "Required",
|
|
9564
9890
|
"description": "Displays an asterisk (*) next to the label, to indicate that the field is required.",
|
|
9565
|
-
"code": "<QTextArea
|
|
9891
|
+
"code": "<QTextArea label=\"Username\" :required=\"true\" />"
|
|
9566
9892
|
},
|
|
9567
9893
|
{
|
|
9568
9894
|
"title": "Custom Label",
|
|
@@ -9805,27 +10131,22 @@
|
|
|
9805
10131
|
{
|
|
9806
10132
|
"title": "Placeholder",
|
|
9807
10133
|
"description": "Provides a hint or example text inside the field.",
|
|
9808
|
-
"code": "<QTextField
|
|
10134
|
+
"code": "<QTextField placeholder=\"Placeholder\" />"
|
|
9809
10135
|
},
|
|
9810
10136
|
{
|
|
9811
10137
|
"title": "Readonly",
|
|
9812
10138
|
"description": "Conveys a read-only appearance to the field.",
|
|
9813
|
-
"code": "<QTextField
|
|
10139
|
+
"code": "<QTextField model-value=\"Readonly\" :readonly=\"true\" />"
|
|
9814
10140
|
},
|
|
9815
10141
|
{
|
|
9816
10142
|
"title": "Disabled",
|
|
9817
10143
|
"description": "Disables the field, preventing interaction with it.",
|
|
9818
|
-
"code": "<QTextField
|
|
9819
|
-
},
|
|
9820
|
-
{
|
|
9821
|
-
"title": "Label",
|
|
9822
|
-
"description": "Provides a textual description for the field.",
|
|
9823
|
-
"code": "<QTextField :label=\"Username\" />"
|
|
10144
|
+
"code": "<QTextField model-value=\"Disabled\" :disabled=\"true\" />"
|
|
9824
10145
|
},
|
|
9825
10146
|
{
|
|
9826
10147
|
"title": "Required",
|
|
9827
10148
|
"description": "Displays an asterisk (*) next to the label, to indicate that the field is required.",
|
|
9828
|
-
"code": "<QTextField
|
|
10149
|
+
"code": "<QTextField label=\"Username\" :required=\"true\" />"
|
|
9829
10150
|
},
|
|
9830
10151
|
{
|
|
9831
10152
|
"title": "Clearable",
|
|
@@ -9835,7 +10156,7 @@
|
|
|
9835
10156
|
{
|
|
9836
10157
|
"title": "Max Length",
|
|
9837
10158
|
"description": "Restricts the input to a specified maximum number of characters.",
|
|
9838
|
-
"code": "<QTextField
|
|
10159
|
+
"code": "<QTextField model-value=\"Truncated\" :max-length=\"5\" />"
|
|
9839
10160
|
},
|
|
9840
10161
|
{
|
|
9841
10162
|
"title": "Custom Label",
|
|
@@ -10011,6 +10332,17 @@
|
|
|
10011
10332
|
"required": false,
|
|
10012
10333
|
"category": "Configuration"
|
|
10013
10334
|
},
|
|
10335
|
+
{
|
|
10336
|
+
"name": "texts",
|
|
10337
|
+
"type": {
|
|
10338
|
+
"kind": "object",
|
|
10339
|
+
"fields": {}
|
|
10340
|
+
},
|
|
10341
|
+
"description": "Custom text configurations.",
|
|
10342
|
+
"default": "DEFAULT_TEXTS",
|
|
10343
|
+
"required": false,
|
|
10344
|
+
"category": "Configuration"
|
|
10345
|
+
},
|
|
10014
10346
|
{
|
|
10015
10347
|
"name": "entryKey",
|
|
10016
10348
|
"type": {
|
|
@@ -10052,12 +10384,12 @@
|
|
|
10052
10384
|
{
|
|
10053
10385
|
"title": "Default",
|
|
10054
10386
|
"description": "Default aspect of the toast.",
|
|
10055
|
-
"code": "<QToast
|
|
10387
|
+
"code": "<QToast text=\"Hey! I am a component that gives feedback, nice to meet you.\" />"
|
|
10056
10388
|
},
|
|
10057
10389
|
{
|
|
10058
10390
|
"title": "With Title",
|
|
10059
10391
|
"description": "Displays a header with a custom title.",
|
|
10060
|
-
"code": "<QToast
|
|
10392
|
+
"code": "<QToast title=\"Welcome\" />"
|
|
10061
10393
|
},
|
|
10062
10394
|
{
|
|
10063
10395
|
"title": "Block",
|
|
@@ -10077,12 +10409,12 @@
|
|
|
10077
10409
|
{
|
|
10078
10410
|
"title": "Bold",
|
|
10079
10411
|
"description": "Displays the toast with a bold background color.",
|
|
10080
|
-
"code": "<QToast
|
|
10412
|
+
"code": "<QToast color=\"danger\" variant=\"bold\" text=\"An unexpected error occured!\" />"
|
|
10081
10413
|
},
|
|
10082
10414
|
{
|
|
10083
10415
|
"title": "Outlined",
|
|
10084
10416
|
"description": "Displays an outlined toast with a transparent background.",
|
|
10085
|
-
"code": "<QToast
|
|
10417
|
+
"code": "<QToast color=\"danger\" variant=\"outlined\" elevation=\"none\" text=\"An unexpected error occured!\" />"
|
|
10086
10418
|
},
|
|
10087
10419
|
{
|
|
10088
10420
|
"title": "Custom Body",
|
|
@@ -10287,7 +10619,7 @@
|
|
|
10287
10619
|
{
|
|
10288
10620
|
"title": "Default",
|
|
10289
10621
|
"description": "",
|
|
10290
|
-
"code": "<q-toggle v-bind=\"args\">\n\t\t <q-icon icon=\"format-underline\" />\n\t\t</q-toggle>"
|
|
10622
|
+
"code": "<q-toggle v-bind=\"args\" aria-label=\"Underline\">\n\t\t <q-icon icon=\"format-underline\" />\n\t\t</q-toggle>"
|
|
10291
10623
|
}
|
|
10292
10624
|
]
|
|
10293
10625
|
},
|
|
@@ -10692,17 +11024,17 @@
|
|
|
10692
11024
|
{
|
|
10693
11025
|
"title": "Delay",
|
|
10694
11026
|
"description": "Controls the delay (in ms) after which the tooltip becomes visible.",
|
|
10695
|
-
"code": "<QTooltip
|
|
11027
|
+
"code": "<QTooltip text=\"Fast!\" :delay=\"0\" />"
|
|
10696
11028
|
},
|
|
10697
11029
|
{
|
|
10698
11030
|
"title": "Arrow",
|
|
10699
11031
|
"description": "Shows or hides the tooltip arrow.",
|
|
10700
|
-
"code": "<QTooltip
|
|
11032
|
+
"code": "<QTooltip text=\"A tooltip with no arrow\" :arrow=\"false\" />"
|
|
10701
11033
|
},
|
|
10702
11034
|
{
|
|
10703
11035
|
"title": "HTML Support",
|
|
10704
11036
|
"description": "Enables HTML support for the tooltip text.",
|
|
10705
|
-
"code": "<QTooltip
|
|
11037
|
+
"code": "<QTooltip text=\"This is a tooltip. Did you know that the contents of tooltips can be formatted?<br><br>HTML is fully supported, so text formatting options such as <b>bold</b>, <i>italic</i>, or even<br>newlines can be used.\" />"
|
|
10706
11038
|
}
|
|
10707
11039
|
]
|
|
10708
11040
|
}
|