@quidgest/ui 0.29.0 → 0.30.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 +59 -0
- package/README.md +2 -20
- package/dist/json/api.json +1059 -803
- package/dist/ui.css +77 -29
- package/dist/ui.esm.js +1093 -994
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +75 -24
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +2 -0
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +3 -0
- package/esm/components/QAccordion/index.d.ts +3 -0
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/types.d.ts +8 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QAlert/QAlert.d.ts +1 -1
- package/esm/components/QAlert/index.d.ts +3 -3
- package/esm/components/QAvatar/QAvatar.d.ts +1 -1
- package/esm/components/QAvatar/index.d.ts +3 -3
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +23 -13
- package/esm/components/QBadgeIndicator/types.d.ts +13 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +54 -48
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +48 -32
- package/esm/components/QCard/types.d.ts +9 -0
- package/esm/components/QCard/types.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts +1 -0
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +84 -80
- package/esm/components/QCarousel/index.d.ts +6 -0
- package/esm/components/QCarousel/index.d.ts.map +1 -1
- package/esm/components/QCarousel/types.d.ts +9 -1
- package/esm/components/QCarousel/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +9 -1
- package/esm/components/QCheckbox/index.d.ts +3 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +8 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +1 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +55 -47
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +9 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +4 -1
- package/esm/components/QColorPicker/index.d.ts +3 -0
- package/esm/components/QColorPicker/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts +7 -0
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +7 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +258 -235
- package/esm/components/QCombobox/constants.d.ts +1 -0
- package/esm/components/QCombobox/constants.d.ts.map +1 -1
- package/esm/components/QCombobox/constants.js +1 -0
- package/esm/components/QCombobox/index.d.ts +11 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +180 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +637 -542
- package/esm/components/QDateTimePicker/index.d.ts +90 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +2 -0
- package/esm/components/QDialog/types.d.ts +3 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +84 -27
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +9 -2
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +168 -135
- package/esm/components/QDropdownMenu/ids.d.ts +8 -0
- package/esm/components/QDropdownMenu/ids.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/ids.js +6 -0
- package/esm/components/QDropdownMenu/index.d.ts +9 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +3 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +2 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +68 -61
- package/esm/components/QField/ids.d.ts +15 -0
- package/esm/components/QField/ids.d.ts.map +1 -0
- package/esm/components/QField/ids.js +10 -0
- package/esm/components/QField/index.d.ts +2 -0
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +355 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +118 -88
- package/esm/components/QFileUpload/constants.d.ts +2 -0
- package/esm/components/QFileUpload/constants.d.ts.map +1 -1
- package/esm/components/QFileUpload/constants.js +3 -1
- package/esm/components/QFileUpload/index.d.ts +182 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +2 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +1 -0
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +5 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +48 -41
- package/esm/components/QInputGroup/index.d.ts +3 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +21 -19
- package/esm/components/QLabel/ids.d.ts +9 -0
- package/esm/components/QLabel/ids.d.ts.map +1 -0
- package/esm/components/QLabel/ids.js +6 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +15 -14
- package/esm/components/QList/QList.d.ts +3 -3
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -117
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +54 -50
- package/esm/components/QList/context.d.ts +8 -0
- package/esm/components/QList/context.d.ts.map +1 -0
- package/esm/components/QList/context.js +4 -0
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +38 -19
- package/esm/components/QMeter/index.d.ts +2 -10
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QMeter/types.d.ts +9 -1
- package/esm/components/QMeter/types.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +42 -26
- package/esm/components/QObfuscation/index.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +94 -73
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +162 -132
- package/esm/components/QPasswordField/QPasswordField.d.ts +4 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +72 -66
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +4 -2
- package/esm/components/QPasswordField/index.d.ts +2 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +4 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +34 -3
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +98 -102
- package/esm/components/QPhoneField/constants.d.ts +2 -1
- package/esm/components/QPhoneField/constants.d.ts.map +1 -1
- package/esm/components/QPhoneField/constants.js +1 -1
- package/esm/components/QPhoneField/index.d.ts +26 -8
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPhoneField/types.d.ts +5 -2
- package/esm/components/QPhoneField/types.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/index.d.ts +3 -3
- package/esm/components/QProgress/QProgress.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +53 -41
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +3 -2
- package/esm/components/QSection/types.d.ts +3 -4
- package/esm/components/QSection/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +6 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +405 -355
- package/esm/components/QSelect/constants.d.ts +2 -0
- package/esm/components/QSelect/constants.d.ts.map +1 -1
- package/esm/components/QSelect/constants.js +3 -1
- package/esm/components/QSelect/index.d.ts +8 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -0
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +3 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +93 -32
- package/esm/components/QSidebar/index.d.ts +3 -0
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +20 -1
- 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 +16 -15
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QSteps.d.ts +3 -2
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +171 -152
- package/esm/components/QSteps/QStepsNav.d.ts +7 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -1
- package/esm/components/QSteps/QStepsNav.vue.js +29 -15
- package/esm/components/QSteps/constants.d.ts +4 -2
- package/esm/components/QSteps/constants.d.ts.map +1 -1
- package/esm/components/QSteps/constants.js +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +12 -2
- package/esm/components/QSwitch/index.d.ts +4 -0
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +8 -0
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +1 -0
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +6 -2
- package/esm/components/QTextField/QTextField.d.ts +4 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +5 -3
- package/esm/components/QTextField/index.d.ts +2 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QToast/QToast.d.ts +1 -0
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +89 -85
- 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 +8 -0
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +19 -11
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/utils/focus.d.ts +10 -0
- package/esm/utils/focus.d.ts.map +1 -1
- package/esm/utils/focus.js +5 -2
- package/esm/utils/loader.d.ts +19 -0
- package/esm/utils/loader.d.ts.map +1 -0
- package/esm/utils/loader.js +6 -0
- package/package.json +24 -23
- package/dist/ui.js +0 -1846
- package/dist/ui.min.js +0 -1846
|
@@ -3,7 +3,15 @@ import { QLabelProps } from '../QLabel';
|
|
|
3
3
|
* Props interface for QMeter component.
|
|
4
4
|
* @extends {QLabelProps}
|
|
5
5
|
*/
|
|
6
|
-
export type QMeterProps = QLabelProps & {
|
|
6
|
+
export type QMeterProps = Omit<QLabelProps, 'label'> & {
|
|
7
|
+
/**
|
|
8
|
+
* The label shown above the meter, which also names it for assistive technology. A meter
|
|
9
|
+
* without a visible label needs a name another way: pass `aria-label`, which lands on the
|
|
10
|
+
* `role="meter"` element.
|
|
11
|
+
*
|
|
12
|
+
* @category Content
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
7
15
|
/**
|
|
8
16
|
* Label to display next to the meter value.
|
|
9
17
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG;IACtD;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAA;IAE9D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QObfuscation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/QObfuscation.vue"],"names":[],"mappings":"AA4FA;
|
|
1
|
+
{"version":3,"file":"QObfuscation.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/QObfuscation.vue"],"names":[],"mappings":"AA4FA;AAgZC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAiBpC,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAqRtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+LT,OAAO,IAA6B;;kBArctC,CAAC,KAAK,EAAE;YACjB,sBAAsB,EAAE,SAAS,CAAA;YACjC,MAAM,EAAE,MAAM,IAAI,CAAA;YAClB,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,OAAO,CAAA;YAChB,WAAW,CAAC,EAAE,MAAM,CAAA;SACpB,KAAK,OAAO;iBACJ,CAAC,KAAK,EAAE;YAAE,QAAQ,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,MAAM,IAAI,CAAC;YAAC,OAAO,EAAE,OAAO,CAAA;SAAE,KAAK,OAAO;eACjF,MAAM,OAAO;0BACF,MAAM,OAAO;yBACd,MAAM,OAAO;iBACrB,MAAM,OAAO;;kBAXZ,CAAC,KAAK,EAAE;YACjB,sBAAsB,EAAE,SAAS,CAAA;YACjC,MAAM,EAAE,MAAM,IAAI,CAAA;YAClB,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,OAAO,CAAA;YAChB,WAAW,CAAC,EAAE,MAAM,CAAA;SACpB,KAAK,OAAO;iBACJ,CAAC,KAAK,EAAE;YAAE,QAAQ,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,MAAM,IAAI,CAAC;YAAC,OAAO,EAAE,OAAO,CAAA;SAAE,KAAK,OAAO;eACjF,MAAM,OAAO;0BACF,MAAM,OAAO;yBACd,MAAM,OAAO;iBACrB,MAAM,OAAO;;;;EA+bvB;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { getTabbableElements as n } from "../../utils/focus.js";
|
|
4
|
+
import { QHelpPopover as r } from "../__internal__/QHelpPopover/index.js";
|
|
5
|
+
import { resolveHelp as i } from "../__internal__/QHelpPopover/resolveHelp.js";
|
|
6
|
+
import { QButton as a } from "../QButton/index.js";
|
|
7
|
+
import { QField as o } from "../QField/index.js";
|
|
8
|
+
import { DEFAULT_ICONS as s, DEFAULT_TEXTS as c } from "./constants.js";
|
|
9
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createTextVNode as ee, createVNode as g, defineComponent as _, h as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, onBeforeMount as C, onBeforeUnmount as w, openBlock as T, ref as E, renderSlot as D, toDisplayString as O, toRef as k, unref as A, useModel as j, watch as M, withCtx as N } from "vue";
|
|
9
10
|
//#region src/components/QObfuscation/QObfuscation.vue?vue&type=script&setup=true&lang.ts
|
|
10
11
|
var P = ["id"], F = ["id"], I = {
|
|
11
12
|
key: 1,
|
|
@@ -24,8 +25,8 @@ var P = ["id"], F = ["id"], I = {
|
|
|
24
25
|
labelPosition: { default: "topleft" },
|
|
25
26
|
help: {},
|
|
26
27
|
helpDisplay: {},
|
|
27
|
-
icons: { default: () =>
|
|
28
|
-
texts: { default: () =>
|
|
28
|
+
icons: { default: () => s },
|
|
29
|
+
texts: { default: () => c },
|
|
29
30
|
size: { default: "medium" },
|
|
30
31
|
readonly: { type: Boolean },
|
|
31
32
|
disabled: { type: Boolean },
|
|
@@ -48,16 +49,16 @@ var P = ["id"], F = ["id"], I = {
|
|
|
48
49
|
revealedModifiers: {}
|
|
49
50
|
}),
|
|
50
51
|
emits: /*@__PURE__*/ y(["reveal", "hide"], ["update:revealed"]),
|
|
51
|
-
setup(
|
|
52
|
-
let y =
|
|
52
|
+
setup(s, { emit: c }) {
|
|
53
|
+
let y = s, L = c, R = j(s, "revealed"), z = e(k(y, "id")), B = e(), V = E(0), H = E(!1), U = u(() => y.revealable && R.value && !y.loading), W = u(() => V.value > 0), G = u(() => {
|
|
53
54
|
if (!(U.value && (!H.value || W.value))) return y.label;
|
|
54
|
-
}), K =
|
|
55
|
+
}), K = u(() => U.value && H.value && !W.value), q = u(() => i({
|
|
55
56
|
help: y.help,
|
|
56
57
|
helpDisplay: y.helpDisplay
|
|
57
|
-
})), J =
|
|
58
|
+
})), J = u(() => U.value && (!H.value || W.value) && !!q.value.popoverText), Y = u(() => ({
|
|
58
59
|
help: J.value ? void 0 : y.help,
|
|
59
60
|
helpDisplay: J.value ? void 0 : y.helpDisplay
|
|
60
|
-
})), X =
|
|
61
|
+
})), X = u(() => y.mask === "bullets" ? "•".repeat(y.bulletCount) : y.texts.restricted), Z = u(() => [
|
|
61
62
|
"q-obfuscation",
|
|
62
63
|
{
|
|
63
64
|
"q-obfuscation--revealable": y.revealable,
|
|
@@ -85,7 +86,7 @@ var P = ["id"], F = ["id"], I = {
|
|
|
85
86
|
}), w(() => {
|
|
86
87
|
V.value--;
|
|
87
88
|
})), () => {
|
|
88
|
-
let
|
|
89
|
+
let n = v(a, {
|
|
89
90
|
variant: "ghost",
|
|
90
91
|
borderless: !0,
|
|
91
92
|
size: "small",
|
|
@@ -101,7 +102,7 @@ var P = ["id"], F = ["id"], I = {
|
|
|
101
102
|
...y.icons.hide,
|
|
102
103
|
class: "q-obfuscation__icon"
|
|
103
104
|
}));
|
|
104
|
-
return !e.track || !J.value || !q.value.popoverText ?
|
|
105
|
+
return !e.track || !J.value || !q.value.popoverText ? n : [n, v(r, {
|
|
105
106
|
label: y.label,
|
|
106
107
|
text: q.value.popoverText,
|
|
107
108
|
icons: y.icons,
|
|
@@ -110,10 +111,25 @@ var P = ["id"], F = ["id"], I = {
|
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
113
|
});
|
|
114
|
+
function te() {
|
|
115
|
+
return new Promise((e) => {
|
|
116
|
+
let t = M(H, (n) => {
|
|
117
|
+
n && (t(), e());
|
|
118
|
+
}, { flush: "post" });
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
M(U, async (e) => {
|
|
122
|
+
let t = document.activeElement;
|
|
123
|
+
if (e ? await te() : await x(), !t || t.isConnected || document.activeElement && document.activeElement !== document.body) return;
|
|
124
|
+
let r = document.getElementById(z.value)?.querySelector(".q-obfuscation__label-action, .q-obfuscation__action"), i = document.getElementById(B.value);
|
|
125
|
+
(r ?? (i && n(i)[0]))?.focus();
|
|
126
|
+
});
|
|
113
127
|
function $() {
|
|
114
|
-
!y.revealable || y.loading
|
|
128
|
+
if (!y.revealable || y.loading) return;
|
|
129
|
+
let e = !R.value;
|
|
130
|
+
R.value = e, L(e ? "reveal" : "hide");
|
|
115
131
|
}
|
|
116
|
-
return (e, n) => (T(),
|
|
132
|
+
return (e, n) => (T(), d(A(o), {
|
|
117
133
|
id: A(z),
|
|
118
134
|
class: S(Z.value),
|
|
119
135
|
for: y.for ?? A(B),
|
|
@@ -128,17 +144,17 @@ var P = ["id"], F = ["id"], I = {
|
|
|
128
144
|
"help-display": Y.value.helpDisplay,
|
|
129
145
|
icons: y.icons,
|
|
130
146
|
texts: y.texts
|
|
131
|
-
},
|
|
147
|
+
}, h({
|
|
132
148
|
"label.prepend": N(() => [D(e.$slots, "label.prepend")]),
|
|
133
149
|
"label.append": N(() => [
|
|
134
150
|
D(e.$slots, "label.append"),
|
|
135
|
-
|
|
136
|
-
K.value ? (T(),
|
|
151
|
+
f(" Own padlock only when the consumer did not place QObfuscationHideAction "),
|
|
152
|
+
K.value ? (T(), d(A(Q), {
|
|
137
153
|
key: 0,
|
|
138
154
|
track: !1
|
|
139
|
-
})) :
|
|
155
|
+
})) : f("v-if", !0)
|
|
140
156
|
]),
|
|
141
|
-
control: N(({ describedBy: n }) => [
|
|
157
|
+
control: N(({ describedBy: n }) => [f(" Revealed: slot content; place QObfuscationHideAction on the field label to own it "), U.value ? (T(), p("div", {
|
|
142
158
|
key: 0,
|
|
143
159
|
id: A(B),
|
|
144
160
|
class: "q-obfuscation__content"
|
|
@@ -148,7 +164,7 @@ var P = ["id"], F = ["id"], I = {
|
|
|
148
164
|
toggle: $,
|
|
149
165
|
revealed: R.value,
|
|
150
166
|
loading: y.loading
|
|
151
|
-
})], 8, P)) : (T(),
|
|
167
|
+
})], 8, P)) : (T(), p(l, { key: 1 }, [f(" Masked / loading: QObfuscation label + control surface "), m("div", {
|
|
152
168
|
id: A(B),
|
|
153
169
|
class: "q-field__control q-obfuscation__value"
|
|
154
170
|
}, [y.revealable ? D(e.$slots, "reveal", {
|
|
@@ -156,7 +172,7 @@ var P = ["id"], F = ["id"], I = {
|
|
|
156
172
|
revealed: R.value,
|
|
157
173
|
toggle: $,
|
|
158
174
|
loading: y.loading
|
|
159
|
-
}, () => [g(A(
|
|
175
|
+
}, () => [g(A(a), {
|
|
160
176
|
variant: "text",
|
|
161
177
|
borderless: "",
|
|
162
178
|
block: "",
|
|
@@ -178,10 +194,10 @@ var P = ["id"], F = ["id"], I = {
|
|
|
178
194
|
"label",
|
|
179
195
|
"aria-controls",
|
|
180
196
|
"aria-describedby"
|
|
181
|
-
])]) : (T(),
|
|
197
|
+
])]) : (T(), p("span", I, [g(A(t), b(y.icons.restricted, {
|
|
182
198
|
class: "q-obfuscation__icon",
|
|
183
199
|
"aria-hidden": "true"
|
|
184
|
-
}), null, 16), D(e.$slots, "mask", {}, () => [
|
|
200
|
+
}), null, 16), D(e.$slots, "mask", {}, () => [ee(O(X.value), 1)])]))], 8, F)], 2112))]),
|
|
185
201
|
_: 2
|
|
186
202
|
}, [e.$slots.extras ? {
|
|
187
203
|
name: "extras",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QObfuscation/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAO0nW,CAAC;;;;;;;;;;;;;;;;;uBAAD,CAAC;;;;;;;;;;;;EAP1lW,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,cAAc,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverflow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverflow/QOverflow.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QOverflow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverflow/QOverflow.vue"],"names":[],"mappings":"AAoEA;AAgrBC,OAAO,EAAE,aAAa,EAAiB,MAAM,aAAa,CAAA;AAU1D,OAAO,KAAK,EAAyB,cAAc,EAAE,MAAM,GAAG,CAAA;AA+W9D;;;;;;;;;;;GAWG;AACH,iBAAe,qBAAqB,CAAC,OAAO,EAAE,WAAW,iBA0BxD;AAiOF,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;;;;YAdxB,GAAG;yBACC,GAAG;;;;YACN,GAAG;;;;;;;EAiB7B;AA2BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAtPnB;;;;;OAKG;;IAEH;;OAEG;;;;;;;;;;;;;;kBAuPH,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { getAdjacentTabbable as n, getTabbableElements as r } from "../../utils/focus.js";
|
|
4
|
+
import { QButton as i } from "../QButton/index.js";
|
|
5
|
+
import { DEFAULT_ICONS as a, DEFAULT_TEXTS as o } from "./constants.js";
|
|
6
|
+
import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeProps as _, onBeforeUnmount as ee, onMounted as te, openBlock as v, ref as y, renderSlot as b, toRef as ne, unref as x, watch as S, withCtx as C } from "vue";
|
|
6
7
|
//#region src/components/QOverflow/QOverflow.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
8
|
+
var w = [
|
|
8
9
|
"id",
|
|
9
10
|
"role",
|
|
10
11
|
"aria-label"
|
|
11
|
-
],
|
|
12
|
+
], re = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "q-overflow__control q-overflow__control--prev"
|
|
14
|
-
},
|
|
15
|
+
}, ie = ["tabindex"], ae = {
|
|
15
16
|
key: 1,
|
|
16
17
|
class: "q-overflow__control q-overflow__control--next"
|
|
17
|
-
}, T = 1, E = /*@__PURE__*/
|
|
18
|
+
}, T = 1, E = /*@__PURE__*/ f({
|
|
18
19
|
__name: "QOverflow",
|
|
19
20
|
props: {
|
|
20
21
|
id: {},
|
|
@@ -29,28 +30,41 @@ var te = [
|
|
|
29
30
|
default: !1
|
|
30
31
|
},
|
|
31
32
|
contentClass: {},
|
|
32
|
-
icons: { default: () =>
|
|
33
|
-
texts: { default: () =>
|
|
33
|
+
icons: { default: () => a },
|
|
34
|
+
texts: { default: () => o }
|
|
34
35
|
},
|
|
35
|
-
setup(
|
|
36
|
-
let
|
|
36
|
+
setup(a, { expose: o }) {
|
|
37
|
+
let f = a, E = e(ne(f, "id")), D = y(null), O = y(null), k = y(!1), A = y(!1), j = null, M = 0, N = null, P = !1, F = s(() => f.direction === "horizontal"), I = s(() => k.value || A.value), L = s(() => F.value ? f.icons.back : f.icons.up), oe = s(() => F.value ? f.icons.forward : f.icons.down), R = s(() => f.texts.regionLabel || void 0), se = s(() => R.value ? "region" : void 0), ce = s(() => [
|
|
37
38
|
"q-overflow",
|
|
38
|
-
`q-overflow--${
|
|
39
|
-
`q-overflow--arrows-${
|
|
40
|
-
`q-overflow--arrows-${
|
|
39
|
+
`q-overflow--${f.direction}`,
|
|
40
|
+
`q-overflow--arrows-${f.arrowPlacement}`,
|
|
41
|
+
`q-overflow--arrows-${f.arrowVisibility}`,
|
|
41
42
|
{
|
|
42
43
|
"q-overflow--overflowing": I.value,
|
|
43
44
|
"q-overflow--can-scroll-start": k.value,
|
|
44
45
|
"q-overflow--can-scroll-end": A.value
|
|
45
46
|
},
|
|
46
|
-
|
|
47
|
-
]),
|
|
47
|
+
f.class
|
|
48
|
+
]), le = s(() => ["q-overflow__content", f.contentClass]), z = s(() => ({
|
|
48
49
|
disabled: !k.value,
|
|
49
50
|
onClick: Y
|
|
50
|
-
})),
|
|
51
|
+
})), B = s(() => ({
|
|
51
52
|
disabled: !A.value,
|
|
52
53
|
onClick: X
|
|
53
|
-
}));
|
|
54
|
+
})), V = y(null);
|
|
55
|
+
function H(e) {
|
|
56
|
+
e.disabled || e.onClick();
|
|
57
|
+
}
|
|
58
|
+
S(I, async (e) => {
|
|
59
|
+
let t = document.activeElement, i = t?.closest(".q-overflow__control");
|
|
60
|
+
if (e || !t || !i) return;
|
|
61
|
+
let a = i.classList.contains("q-overflow__control--prev");
|
|
62
|
+
if (await h(), t.isConnected) return;
|
|
63
|
+
let o = document.getElementById(E.value);
|
|
64
|
+
if (!o) return;
|
|
65
|
+
let s = r(o);
|
|
66
|
+
((a ? s[0] : s.at(-1)) ?? n(o))?.focus();
|
|
67
|
+
});
|
|
54
68
|
function U(e) {
|
|
55
69
|
return F.value ? {
|
|
56
70
|
position: e.scrollLeft,
|
|
@@ -68,13 +82,13 @@ var te = [
|
|
|
68
82
|
let { position: t, size: n, scrollSize: r } = U(e), i = Math.max(0, r - n);
|
|
69
83
|
k.value = t > T, A.value = t < i - T;
|
|
70
84
|
}
|
|
71
|
-
function
|
|
85
|
+
function ue() {
|
|
72
86
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth";
|
|
73
87
|
}
|
|
74
88
|
function G(e) {
|
|
75
89
|
let t = D.value;
|
|
76
90
|
if (!t) return;
|
|
77
|
-
let n =
|
|
91
|
+
let n = ue();
|
|
78
92
|
F.value ? t.scrollTo({
|
|
79
93
|
left: e,
|
|
80
94
|
behavior: n
|
|
@@ -83,11 +97,11 @@ var te = [
|
|
|
83
97
|
behavior: n
|
|
84
98
|
});
|
|
85
99
|
}
|
|
86
|
-
function
|
|
100
|
+
function de(e) {
|
|
87
101
|
return F.value ? e.clientWidth : e.clientHeight;
|
|
88
102
|
}
|
|
89
|
-
function
|
|
90
|
-
return Math.max(0,
|
|
103
|
+
function fe() {
|
|
104
|
+
return Math.max(0, f.scrollStep);
|
|
91
105
|
}
|
|
92
106
|
function K() {
|
|
93
107
|
let e = O.value;
|
|
@@ -97,7 +111,7 @@ var te = [
|
|
|
97
111
|
let i = Math.max(0, r - n), a = e + t / 2 - n / 2;
|
|
98
112
|
return Math.min(i, Math.max(0, a));
|
|
99
113
|
}
|
|
100
|
-
function
|
|
114
|
+
function pe(e) {
|
|
101
115
|
let t = D.value;
|
|
102
116
|
if (!t) return null;
|
|
103
117
|
let n = K(), { position: r, size: i, scrollSize: a } = U(t), o = r, s = r + i, c = Math.max(0, a - i);
|
|
@@ -124,13 +138,13 @@ var te = [
|
|
|
124
138
|
let t = D.value;
|
|
125
139
|
if (!t) return;
|
|
126
140
|
let { position: n } = U(t);
|
|
127
|
-
if (
|
|
128
|
-
let t =
|
|
141
|
+
if (f.scrollMode === "item") {
|
|
142
|
+
let t = pe(e);
|
|
129
143
|
if (t === null) return;
|
|
130
144
|
G(t);
|
|
131
145
|
return;
|
|
132
146
|
}
|
|
133
|
-
G(n + e * (
|
|
147
|
+
G(n + e * (f.scrollMode === "page" ? de(t) : fe()));
|
|
134
148
|
}
|
|
135
149
|
function Y() {
|
|
136
150
|
J(-1);
|
|
@@ -138,17 +152,17 @@ var te = [
|
|
|
138
152
|
function X() {
|
|
139
153
|
J(1);
|
|
140
154
|
}
|
|
141
|
-
function
|
|
155
|
+
function me() {
|
|
142
156
|
G(0);
|
|
143
157
|
}
|
|
144
|
-
function
|
|
158
|
+
function he() {
|
|
145
159
|
let e = D.value;
|
|
146
160
|
if (!e) return;
|
|
147
161
|
let { size: t, scrollSize: n } = U(e);
|
|
148
162
|
G(Math.max(0, n - t));
|
|
149
163
|
}
|
|
150
|
-
async function
|
|
151
|
-
W(), await
|
|
164
|
+
async function ge(e) {
|
|
165
|
+
W(), await h();
|
|
152
166
|
let t = D.value, n = O.value;
|
|
153
167
|
if (!t || !n || !n.contains(e)) return;
|
|
154
168
|
let { position: r, size: i, scrollSize: a } = U(t), o = F.value ? e.offsetLeft : e.offsetTop, s = o + (F.value ? e.offsetWidth : e.offsetHeight), c = r, l = r + i, u = Math.max(0, a - i), d = r;
|
|
@@ -157,8 +171,8 @@ var te = [
|
|
|
157
171
|
else return;
|
|
158
172
|
G(Math.min(u, Math.max(0, d)));
|
|
159
173
|
}
|
|
160
|
-
function
|
|
161
|
-
if (e.target !== e.currentTarget || !I.value) return;
|
|
174
|
+
function _e(e) {
|
|
175
|
+
if (e.target !== e.currentTarget || e.altKey || e.ctrlKey || e.metaKey || !I.value) return;
|
|
162
176
|
let t = F.value;
|
|
163
177
|
switch (e.key) {
|
|
164
178
|
case "ArrowLeft":
|
|
@@ -178,10 +192,10 @@ var te = [
|
|
|
178
192
|
e.preventDefault(), X();
|
|
179
193
|
break;
|
|
180
194
|
case "Home":
|
|
181
|
-
e.preventDefault(),
|
|
195
|
+
e.preventDefault(), me();
|
|
182
196
|
break;
|
|
183
197
|
case "End":
|
|
184
|
-
e.preventDefault(),
|
|
198
|
+
e.preventDefault(), he();
|
|
185
199
|
break;
|
|
186
200
|
}
|
|
187
201
|
}
|
|
@@ -194,7 +208,7 @@ var te = [
|
|
|
194
208
|
function Q() {
|
|
195
209
|
let e = D.value;
|
|
196
210
|
if (!e) return;
|
|
197
|
-
let t =
|
|
211
|
+
let t = f.remapWheel && F.value;
|
|
198
212
|
if (t && !P) {
|
|
199
213
|
e.addEventListener("wheel", Z, { passive: !1 }), P = !0;
|
|
200
214
|
return;
|
|
@@ -211,78 +225,85 @@ var te = [
|
|
|
211
225
|
for (let e of K()) j.observe(e);
|
|
212
226
|
}
|
|
213
227
|
}
|
|
214
|
-
function
|
|
228
|
+
function ve() {
|
|
215
229
|
let e = O.value;
|
|
216
230
|
e && (N = new MutationObserver(() => {
|
|
217
231
|
$(), W();
|
|
218
232
|
}), N.observe(e, { childList: !0 }));
|
|
219
233
|
}
|
|
220
|
-
return
|
|
221
|
-
Q(), $(),
|
|
222
|
-
}),
|
|
234
|
+
return te(() => {
|
|
235
|
+
Q(), $(), ve(), W();
|
|
236
|
+
}), ee(() => {
|
|
223
237
|
let e = D.value;
|
|
224
238
|
P && e && (e.removeEventListener("wheel", Z), P = !1), j?.disconnect(), j = null, cancelAnimationFrame(M), N?.disconnect(), N = null;
|
|
225
239
|
}), S(() => [
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
240
|
+
f.direction,
|
|
241
|
+
f.scrollMode,
|
|
242
|
+
f.scrollStep
|
|
229
243
|
], async () => {
|
|
230
|
-
await
|
|
231
|
-
}), S(() => [
|
|
244
|
+
await h(), $(), W();
|
|
245
|
+
}), S(() => [f.remapWheel, f.direction], () => {
|
|
232
246
|
Q();
|
|
233
|
-
}),
|
|
247
|
+
}), o({
|
|
234
248
|
contentEl: O,
|
|
235
|
-
scrollElementIntoView:
|
|
236
|
-
}), (e,
|
|
249
|
+
scrollElementIntoView: ge
|
|
250
|
+
}), (e, n) => (v(), l("div", {
|
|
237
251
|
id: x(E),
|
|
238
|
-
class:
|
|
239
|
-
role:
|
|
240
|
-
"aria-label":
|
|
252
|
+
class: g(ce.value),
|
|
253
|
+
role: se.value,
|
|
254
|
+
"aria-label": R.value
|
|
241
255
|
}, [
|
|
242
|
-
I.value ? (
|
|
256
|
+
I.value ? (v(), l("div", re, [b(e.$slots, "prev", _(p(z.value)), () => [d(x(i), {
|
|
243
257
|
class: "q-overflow__button",
|
|
244
258
|
variant: "ghost",
|
|
245
259
|
"data-testid": "q-overflow-prev",
|
|
246
|
-
disabled:
|
|
247
|
-
"aria-
|
|
248
|
-
|
|
260
|
+
disabled: z.value.disabled && V.value !== "back",
|
|
261
|
+
"aria-disabled": z.value.disabled || void 0,
|
|
262
|
+
"aria-label": f.texts.back,
|
|
263
|
+
onFocus: n[0] ||= (e) => V.value = "back",
|
|
264
|
+
onBlur: n[1] ||= (e) => V.value = null,
|
|
265
|
+
onClick: n[2] ||= (e) => H(z.value)
|
|
249
266
|
}, {
|
|
250
|
-
default: C(() => [
|
|
267
|
+
default: C(() => [d(x(t), m({ class: "q-overflow__icon" }, L.value), null, 16)]),
|
|
251
268
|
_: 1
|
|
252
269
|
}, 8, [
|
|
253
270
|
"disabled",
|
|
254
|
-
"aria-
|
|
255
|
-
"
|
|
256
|
-
])])])) :
|
|
257
|
-
c("
|
|
271
|
+
"aria-disabled",
|
|
272
|
+
"aria-label"
|
|
273
|
+
])])])) : c("v-if", !0),
|
|
274
|
+
c(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions -- A scroll region: focusable while it overflows, and its keys scroll it "),
|
|
275
|
+
u("div", {
|
|
258
276
|
ref_key: "viewportRef",
|
|
259
277
|
ref: D,
|
|
260
278
|
class: "q-overflow__viewport",
|
|
261
279
|
"data-testid": "q-overflow-viewport",
|
|
262
280
|
tabindex: I.value ? 0 : void 0,
|
|
263
281
|
onScroll: W,
|
|
264
|
-
onKeydown:
|
|
265
|
-
}, [
|
|
282
|
+
onKeydown: _e
|
|
283
|
+
}, [u("div", {
|
|
266
284
|
ref_key: "contentRef",
|
|
267
285
|
ref: O,
|
|
268
|
-
class:
|
|
269
|
-
}, [
|
|
270
|
-
I.value ? (
|
|
286
|
+
class: g(le.value)
|
|
287
|
+
}, [b(e.$slots, "default")], 2)], 40, ie),
|
|
288
|
+
I.value ? (v(), l("div", ae, [b(e.$slots, "next", _(p(B.value)), () => [d(x(i), {
|
|
271
289
|
class: "q-overflow__button",
|
|
272
290
|
variant: "ghost",
|
|
273
291
|
"data-testid": "q-overflow-next",
|
|
274
|
-
disabled:
|
|
275
|
-
"aria-
|
|
276
|
-
|
|
292
|
+
disabled: B.value.disabled && V.value !== "forward",
|
|
293
|
+
"aria-disabled": B.value.disabled || void 0,
|
|
294
|
+
"aria-label": f.texts.forward,
|
|
295
|
+
onFocus: n[3] ||= (e) => V.value = "forward",
|
|
296
|
+
onBlur: n[4] ||= (e) => V.value = null,
|
|
297
|
+
onClick: n[5] ||= (e) => H(B.value)
|
|
277
298
|
}, {
|
|
278
|
-
default: C(() => [
|
|
299
|
+
default: C(() => [d(x(t), m({ class: "q-overflow__icon" }, oe.value), null, 16)]),
|
|
279
300
|
_: 1
|
|
280
301
|
}, 8, [
|
|
281
302
|
"disabled",
|
|
282
|
-
"aria-
|
|
283
|
-
"
|
|
284
|
-
])])])) :
|
|
285
|
-
], 10,
|
|
303
|
+
"aria-disabled",
|
|
304
|
+
"aria-label"
|
|
305
|
+
])])])) : c("v-if", !0)
|
|
306
|
+
], 10, w));
|
|
286
307
|
}
|
|
287
308
|
});
|
|
288
309
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAqEA;AAqqBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAolBvC,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|