@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
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import { QIconProps } from '../QIcon';
|
|
3
|
+
import { QBreadcrumbsSlots } from '.';
|
|
4
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
5
|
+
/**
|
|
6
|
+
* Metadata registered by each {@link QBreadcrumb} with its parent {@link QBreadcrumbs}.
|
|
7
|
+
*
|
|
8
|
+
* Used to resolve trail position (first / current), collapse state, and to
|
|
9
|
+
* build the dropdown shown by the collapsed-items control.
|
|
10
|
+
*/
|
|
11
|
+
export type QBreadcrumbRegistration = {
|
|
12
|
+
/**
|
|
13
|
+
* Identity of the crumb (internally generated, not consumer-facing).
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Resolved label, used as the dropdown entry text when this crumb is collapsed.
|
|
18
|
+
*/
|
|
19
|
+
label: ComputedRef<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Resolved leading icon, used as the dropdown entry icon when this crumb is collapsed.
|
|
22
|
+
*/
|
|
23
|
+
icon: ComputedRef<QIconProps | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* Whether this crumb has no navigation of its own (static text — no `to` / `href`).
|
|
26
|
+
* Used to disable its dropdown entry when collapsed, since selecting it would
|
|
27
|
+
* otherwise silently do nothing.
|
|
28
|
+
*/
|
|
29
|
+
disabled: ComputedRef<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* The crumb's root trigger element (`<a>`, `RouterLink`, or `<span>`),
|
|
32
|
+
* normalized from the template ref (which is a component instance for
|
|
33
|
+
* `RouterLink`, and a plain element for `<a>` / `<span>`).
|
|
34
|
+
*
|
|
35
|
+
* Still mounted (visually hidden) while collapsed so selecting it from the
|
|
36
|
+
* dropdown can replay navigation via a native `.click()`, without QBreadcrumbs
|
|
37
|
+
* needing router or anchor-navigation logic of its own.
|
|
38
|
+
*/
|
|
39
|
+
triggerEl: ComputedRef<HTMLElement | null>;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Reactive per-crumb state returned by {@link QBreadcrumbsContext.register}.
|
|
43
|
+
*/
|
|
44
|
+
export type QBreadcrumbState = {
|
|
45
|
+
/** False while this crumb is collapsed into the dropdown (still mounted, hidden). */
|
|
46
|
+
isVisible: ComputedRef<boolean>;
|
|
47
|
+
/** True for the last registered crumb — rendered as static text with `aria-current="page"`. */
|
|
48
|
+
isCurrent: ComputedRef<boolean>;
|
|
49
|
+
/** True for the one collapsed crumb that also renders the ellipsis control + dropdown. */
|
|
50
|
+
isCollapsedAnchor: ComputedRef<boolean>;
|
|
51
|
+
/** Whether to render a trailing separator after this crumb. */
|
|
52
|
+
showSeparator: ComputedRef<boolean>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Provide/inject context shared between {@link QBreadcrumbs} and its {@link QBreadcrumb} children.
|
|
56
|
+
*/
|
|
57
|
+
export type QBreadcrumbsContext = {
|
|
58
|
+
/**
|
|
59
|
+
* Registers a crumb with the parent so it participates in trail-position
|
|
60
|
+
* and collapse resolution.
|
|
61
|
+
*
|
|
62
|
+
* @param entry - Crumb metadata to register.
|
|
63
|
+
* @returns Reactive per-crumb state to drive the crumb's own rendering.
|
|
64
|
+
*/
|
|
65
|
+
register: (entry: QBreadcrumbRegistration) => QBreadcrumbState;
|
|
66
|
+
/**
|
|
67
|
+
* Removes a previously registered crumb (typically on unmount).
|
|
68
|
+
*
|
|
69
|
+
* @param id - The crumb id to remove.
|
|
70
|
+
*/
|
|
71
|
+
unregister: (id: string) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Dropdown-ready entries for the crumbs currently collapsed (empty when the
|
|
74
|
+
* trail fits within `maxVisible`).
|
|
75
|
+
*/
|
|
76
|
+
collapsedItems: ComputedRef<{
|
|
77
|
+
key: string;
|
|
78
|
+
label: string;
|
|
79
|
+
icon?: QIconProps;
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
}[]>;
|
|
82
|
+
/**
|
|
83
|
+
* Replays navigation for a collapsed crumb chosen from the dropdown, by
|
|
84
|
+
* clicking its still-mounted (hidden) trigger element.
|
|
85
|
+
*
|
|
86
|
+
* @param id - The crumb id selected from the dropdown.
|
|
87
|
+
*/
|
|
88
|
+
selectCollapsed: (id: string) => void;
|
|
89
|
+
/** Resolved icons (`props.icons` merged over {@link DEFAULT_ICONS}). */
|
|
90
|
+
icons: ComputedRef<typeof DEFAULT_ICONS>;
|
|
91
|
+
/** Resolved accessible strings (`props.texts` merged over {@link DEFAULT_TEXTS}). */
|
|
92
|
+
texts: ComputedRef<typeof DEFAULT_TEXTS>;
|
|
93
|
+
/**
|
|
94
|
+
* The `separator` slot given to `QBreadcrumbs`, forwarded so every crumb
|
|
95
|
+
* renders the same custom separator without needing it repeated on each one.
|
|
96
|
+
*/
|
|
97
|
+
separatorSlot: ComputedRef<QBreadcrumbsSlots['separator']>;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Injection key for the {@link QBreadcrumbsContext} provided by `QBreadcrumbs`.
|
|
101
|
+
*/
|
|
102
|
+
export declare const BreadcrumbsSymbol: InjectionKey<QBreadcrumbsContext>;
|
|
103
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QBreadcrumbs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAE1B;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IAEzC;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;;;;;;;OAQG;IACH,SAAS,EAAE,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAC1C,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,qFAAqF;IACrF,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE/B,+FAA+F;IAC/F,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE/B,0FAA0F;IAC1F,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAEvC,+DAA+D;IAC/D,aAAa,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CACnC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,gBAAgB,CAAA;IAE9D;;;;OAIG;IACH,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAEhC;;;OAGG;IACH,cAAc,EAAE,WAAW,CAC1B;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,UAAU,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CACtE,CAAA;IAED;;;;;OAKG;IACH,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAErC,wEAAwE;IACxE,KAAK,EAAE,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA;IAExC,qFAAqF;IACrF,KAAK,EAAE,WAAW,CAAC,OAAO,aAAa,CAAC,CAAA;IAExC;;;OAGG;IACH,aAAa,EAAE,WAAW,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAA;CAC1D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,mBAAmB,CAA2B,CAAA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare const QBreadcrumbs: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QBreadcrumbsProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
4
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
5
|
+
maxVisible: number;
|
|
6
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, Readonly<import('./types').QBreadcrumbsProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
14
|
+
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
15
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
16
|
+
maxVisible: number;
|
|
17
|
+
}>;
|
|
18
|
+
__isFragment?: never;
|
|
19
|
+
__isTeleport?: never;
|
|
20
|
+
__isSuspense?: never;
|
|
21
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QBreadcrumbsProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
22
|
+
icons: typeof import('./constants').DEFAULT_ICONS;
|
|
23
|
+
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
24
|
+
maxVisible: number;
|
|
25
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
26
|
+
$slots: Readonly<import('./types').QBreadcrumbsSlots> & import('./types').QBreadcrumbsSlots;
|
|
27
|
+
});
|
|
28
|
+
declare const QBreadcrumb: import('vue').DefineComponent<import('./types').QBreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./types').QBreadcrumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
|
+
trigger: unknown;
|
|
30
|
+
ellipsisTrigger: ({
|
|
31
|
+
$: import('vue').ComponentInternalInstance;
|
|
32
|
+
$data: {};
|
|
33
|
+
$props: {
|
|
34
|
+
readonly id?: string | undefined;
|
|
35
|
+
readonly class?: string | unknown[] | undefined;
|
|
36
|
+
readonly label?: string | undefined;
|
|
37
|
+
readonly variant?: import('..').QButtonVariant | undefined;
|
|
38
|
+
readonly color?: string | undefined;
|
|
39
|
+
readonly borderless?: boolean | undefined;
|
|
40
|
+
readonly elevated?: boolean | undefined;
|
|
41
|
+
readonly block?: boolean | undefined;
|
|
42
|
+
readonly size?: import('../..').QComponentSize | undefined;
|
|
43
|
+
readonly iconPos?: import('..').QButtonIconPosition | undefined;
|
|
44
|
+
readonly pill?: boolean | undefined;
|
|
45
|
+
readonly effect?: import('..').QButtonEffect | undefined;
|
|
46
|
+
readonly disabled?: boolean | undefined;
|
|
47
|
+
readonly loading?: boolean | undefined;
|
|
48
|
+
readonly tabindex?: number | undefined;
|
|
49
|
+
readonly onClick?: ((event: MouseEvent) => any) | undefined;
|
|
50
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
51
|
+
$attrs: import('vue').Attrs;
|
|
52
|
+
$refs: {
|
|
53
|
+
[x: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
$slots: Readonly<{
|
|
56
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
59
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
60
|
+
$host: Element | null;
|
|
61
|
+
$emit: (event: "click", event: MouseEvent) => void;
|
|
62
|
+
$el: HTMLButtonElement;
|
|
63
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QButtonProps> & Readonly<{
|
|
64
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
65
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
66
|
+
click: (event: MouseEvent) => any;
|
|
67
|
+
}, string, {
|
|
68
|
+
variant: import('..').QButtonVariant;
|
|
69
|
+
effect: import('..').QButtonEffect;
|
|
70
|
+
color: string;
|
|
71
|
+
iconPos: import('..').QButtonIconPosition;
|
|
72
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
73
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
74
|
+
created?: (() => void) | (() => void)[];
|
|
75
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
76
|
+
mounted?: (() => void) | (() => void)[];
|
|
77
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
78
|
+
updated?: (() => void) | (() => void)[];
|
|
79
|
+
activated?: (() => void) | (() => void)[];
|
|
80
|
+
deactivated?: (() => void) | (() => void)[];
|
|
81
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
82
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
83
|
+
destroyed?: (() => void) | (() => void)[];
|
|
84
|
+
unmounted?: (() => void) | (() => void)[];
|
|
85
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
86
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
87
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
88
|
+
};
|
|
89
|
+
$forceUpdate: () => void;
|
|
90
|
+
$nextTick: typeof import('vue').nextTick;
|
|
91
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
92
|
+
} & Readonly<{
|
|
93
|
+
variant: import('..').QButtonVariant;
|
|
94
|
+
effect: import('..').QButtonEffect;
|
|
95
|
+
color: string;
|
|
96
|
+
iconPos: import('..').QButtonIconPosition;
|
|
97
|
+
}> & Omit<Readonly<import('..').QButtonProps> & Readonly<{
|
|
98
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
99
|
+
}>, "variant" | "effect" | "color" | "iconPos"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
100
|
+
$slots: {
|
|
101
|
+
default?(_: {}): any;
|
|
102
|
+
append?(_: {}): any;
|
|
103
|
+
};
|
|
104
|
+
}) | null;
|
|
105
|
+
}, HTMLLIElement>;
|
|
106
|
+
export { QBreadcrumbs, QBreadcrumb };
|
|
107
|
+
export * from './types';
|
|
108
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBreadcrumbs/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAO4y0B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;iBAPl40B,CAAA;AAGjD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAA;AAGpC,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { setupPropsProxy as e } from "../../utils/setupPropsProxy.js";
|
|
2
|
+
import t from "./QBreadcrumbs2.vue.js";
|
|
3
|
+
import n from "./QBreadcrumb2.vue.js";
|
|
4
|
+
//#region src/components/QBreadcrumbs/index.ts
|
|
5
|
+
var r = e(t), i = e(n);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { i as QBreadcrumb, r as QBreadcrumbs };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
2
|
+
import { QBaseComponentProps } from '../../types/component';
|
|
3
|
+
import { QIconProps } from '../QIcon';
|
|
4
|
+
/**
|
|
5
|
+
* A Vue Router route location.
|
|
6
|
+
*
|
|
7
|
+
* Kept as a generic shape rather than `RouteLocationRaw` so `@quidgest/ui` does
|
|
8
|
+
* not take a hard dependency on `vue-router`. When {@link QBreadcrumbProps.to}
|
|
9
|
+
* is set, the crumb renders as a `RouterLink`, which Vue resolves from the
|
|
10
|
+
* globally registered component of that name — this only works when the host
|
|
11
|
+
* app has `vue-router` installed.
|
|
12
|
+
*/
|
|
13
|
+
export type QBreadcrumbRouteLocation = string | Record<string, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* Props for the QBreadcrumbs component.
|
|
16
|
+
*
|
|
17
|
+
* @extends QBaseComponentProps
|
|
18
|
+
*/
|
|
19
|
+
export type QBreadcrumbsProps = QBaseComponentProps & {
|
|
20
|
+
/**
|
|
21
|
+
* Maximum number of crumbs to show before collapsing the middle ones into
|
|
22
|
+
* an ellipsis control that opens a dropdown. The first and current crumb
|
|
23
|
+
* plus the ellipsis control always take up 3 of these slots, so values
|
|
24
|
+
* below `3` are treated as `3`.
|
|
25
|
+
*
|
|
26
|
+
* @default 3
|
|
27
|
+
* @category Behavior
|
|
28
|
+
*/
|
|
29
|
+
maxVisible?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Accessible label for the `nav` landmark.
|
|
32
|
+
*
|
|
33
|
+
* @default 'Breadcrumb'
|
|
34
|
+
* @category Accessibility
|
|
35
|
+
*/
|
|
36
|
+
ariaLabel?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Custom icons for the default separator and the collapsed-items control.
|
|
39
|
+
*
|
|
40
|
+
* @category Configuration
|
|
41
|
+
*/
|
|
42
|
+
icons?: typeof DEFAULT_ICONS;
|
|
43
|
+
/**
|
|
44
|
+
* Custom accessible strings.
|
|
45
|
+
*
|
|
46
|
+
* @category Configuration
|
|
47
|
+
*/
|
|
48
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Slots exposed by `QBreadcrumbs`.
|
|
52
|
+
*/
|
|
53
|
+
export type QBreadcrumbsSlots = {
|
|
54
|
+
/** The `QBreadcrumb` children that make up the trail. */
|
|
55
|
+
default?: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Overrides the separator rendered between every crumb, all at once.
|
|
58
|
+
* Falls back to the chevron icon (`icons.separator`) when omitted.
|
|
59
|
+
*/
|
|
60
|
+
separator?: () => void;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Props for the QBreadcrumb component.
|
|
64
|
+
*
|
|
65
|
+
* @extends QBaseComponentProps
|
|
66
|
+
*/
|
|
67
|
+
export type QBreadcrumbProps = QBaseComponentProps & {
|
|
68
|
+
/**
|
|
69
|
+
* The label text shown for this crumb, also reused as its entry text in the
|
|
70
|
+
* collapsed-items dropdown, when applicable. Required — `icon` is decorative
|
|
71
|
+
* only and can't stand in for it, since the collapsed dropdown and the
|
|
72
|
+
* crumb's accessible name both need real text.
|
|
73
|
+
*
|
|
74
|
+
* @category Content
|
|
75
|
+
*/
|
|
76
|
+
label: string;
|
|
77
|
+
/**
|
|
78
|
+
* Optional leading icon, also reused as this crumb's icon in the
|
|
79
|
+
* collapsed-items dropdown, when applicable.
|
|
80
|
+
*
|
|
81
|
+
* @category Content
|
|
82
|
+
*/
|
|
83
|
+
icon?: QIconProps;
|
|
84
|
+
/**
|
|
85
|
+
* Vue Router route location. Renders the crumb as a `RouterLink` when set.
|
|
86
|
+
* Requires `vue-router` to be installed in the host app; ignored on the
|
|
87
|
+
* current (last) crumb, which always renders as static text.
|
|
88
|
+
*
|
|
89
|
+
* @category Behavior
|
|
90
|
+
*/
|
|
91
|
+
to?: QBreadcrumbRouteLocation;
|
|
92
|
+
/**
|
|
93
|
+
* URL for a plain link crumb. Ignored when `to` is set, and on the current
|
|
94
|
+
* (last) crumb, which always renders as static text.
|
|
95
|
+
*
|
|
96
|
+
* @category Behavior
|
|
97
|
+
*/
|
|
98
|
+
href?: string;
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBreadcrumbs/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C;;;;;;;;GAQG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG;IACrD;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAAG;IACpD;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;;;;OAMG;IACH,EAAE,CAAC,EAAE,wBAAwB,CAAA;IAE7B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAqCA;
|
|
1
|
+
{"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAqCA;AA+LC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAgJtC,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBAXrB,GAAG;wBACJ,GAAG;;;;EAe9B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;2FASnB,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,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QSpinnerLoader as t } from "../QSpinnerLoader/index.js";
|
|
3
|
+
import { useColor as n } from "../../composables/useColor/index.js";
|
|
4
|
+
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, toRef as v, unref as y, withModifiers as b } from "vue";
|
|
4
5
|
//#region src/components/QButton/QButton.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var x = [
|
|
6
7
|
"id",
|
|
7
8
|
"disabled",
|
|
8
9
|
"tabindex"
|
|
9
|
-
],
|
|
10
|
+
], S = {
|
|
10
11
|
key: 0,
|
|
11
12
|
class: "q-button__spinner"
|
|
12
|
-
},
|
|
13
|
+
}, C = { class: "q-button__content" }, w = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "q-button__append"
|
|
15
|
-
},
|
|
16
|
+
}, T = ["onAnimationend"], E = /*@__PURE__*/ u({
|
|
16
17
|
__name: "QButton",
|
|
17
18
|
props: {
|
|
18
19
|
id: {},
|
|
@@ -32,80 +33,82 @@ var b = [
|
|
|
32
33
|
tabindex: {}
|
|
33
34
|
},
|
|
34
35
|
emits: ["click"],
|
|
35
|
-
setup(
|
|
36
|
-
let
|
|
37
|
-
function
|
|
36
|
+
setup(u, { emit: E }) {
|
|
37
|
+
let D = u, O = E, k = e(v(D, "id")), A = i(() => D.disabled || D.loading), j = m([]), M = 0;
|
|
38
|
+
function N(e) {
|
|
38
39
|
let t = e.currentTarget.getBoundingClientRect(), n = Math.hypot(t.width, t.height) * 2, r = e.clientX !== 0 || e.clientY !== 0, i = e.clientX - t.left, a = e.clientY - t.top, o = r && i >= 0 && i <= t.width && a >= 0 && a <= t.height, s = o ? i : t.width / 2, c = o ? a : t.height / 2;
|
|
39
|
-
|
|
40
|
-
id:
|
|
40
|
+
j.value.push({
|
|
41
|
+
id: M++,
|
|
41
42
|
x: s - n / 2,
|
|
42
43
|
y: c - n / 2,
|
|
43
44
|
size: n
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
47
|
+
function P(e) {
|
|
48
|
+
j.value = j.value.filter((t) => t.id !== e);
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
50
|
+
function F(e) {
|
|
51
|
+
A.value || (D.effect === "ripple" && N(e), O("click", e));
|
|
51
52
|
}
|
|
52
|
-
let { style:
|
|
53
|
-
let e =
|
|
53
|
+
let { style: I } = n(v(D, "color")), L = i(() => {
|
|
54
|
+
let e = D.color === "background" ? "q-button--background" : void 0, t = D.size === "small" || D.size === "large" ? `q-button--${D.size}` : void 0, n = D.iconPos === "start" ? void 0 : `q-button--icon-${D.iconPos}`;
|
|
54
55
|
return [
|
|
55
56
|
"q-button",
|
|
56
|
-
`q-button--${
|
|
57
|
+
`q-button--${D.variant}`,
|
|
57
58
|
e,
|
|
58
59
|
t,
|
|
59
60
|
n,
|
|
60
61
|
{
|
|
61
|
-
"q-button--labeled":
|
|
62
|
-
"q-button--borderless":
|
|
63
|
-
"q-button--elevated":
|
|
64
|
-
"q-button--block":
|
|
65
|
-
"q-button--loading":
|
|
66
|
-
"q-button--pill":
|
|
62
|
+
"q-button--labeled": D.label,
|
|
63
|
+
"q-button--borderless": D.borderless,
|
|
64
|
+
"q-button--elevated": D.elevated,
|
|
65
|
+
"q-button--block": D.block,
|
|
66
|
+
"q-button--loading": D.loading,
|
|
67
|
+
"q-button--pill": D.pill
|
|
67
68
|
},
|
|
68
|
-
|
|
69
|
+
D.class
|
|
69
70
|
];
|
|
70
|
-
}),
|
|
71
|
-
if (!(
|
|
72
|
-
"--q-button-main-color":
|
|
73
|
-
"--q-button-main-color-rgb":
|
|
74
|
-
"--q-button-on-main-color":
|
|
75
|
-
"--q-button-
|
|
76
|
-
"--q-button-hover-color
|
|
77
|
-
"--q-button-
|
|
71
|
+
}), R = i(() => {
|
|
72
|
+
if (!(D.color === "background" || !I.value)) return {
|
|
73
|
+
"--q-button-main-color": I.value.mainColor,
|
|
74
|
+
"--q-button-main-color-rgb": I.value.mainColorRgb,
|
|
75
|
+
"--q-button-on-main-color": I.value.onMainColor,
|
|
76
|
+
"--q-button-text-color": I.value.textColor,
|
|
77
|
+
"--q-button-hover-text-color": I.value.hoverTextColor,
|
|
78
|
+
"--q-button-hover-color": I.value.hoverColor,
|
|
79
|
+
"--q-button-hover-color-rgb": I.value.hoverColorRgb,
|
|
80
|
+
"--q-button-on-hover-color": I.value.onHoverColor
|
|
78
81
|
};
|
|
79
82
|
});
|
|
80
|
-
return (
|
|
81
|
-
id:
|
|
83
|
+
return (e, n) => (p(), o("button", {
|
|
84
|
+
id: y(k),
|
|
82
85
|
type: "button",
|
|
83
|
-
class:
|
|
84
|
-
disabled:
|
|
85
|
-
tabindex:
|
|
86
|
-
style:
|
|
87
|
-
onClick:
|
|
86
|
+
class: d(L.value),
|
|
87
|
+
disabled: A.value,
|
|
88
|
+
tabindex: D.tabindex,
|
|
89
|
+
style: f(R.value),
|
|
90
|
+
onClick: b(F, ["stop", "prevent"])
|
|
88
91
|
}, [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
D.loading ? (p(), o("div", S, [l(y(t))])) : a("v-if", !0),
|
|
93
|
+
s("span", C, [
|
|
94
|
+
g(e.$slots, "default"),
|
|
95
|
+
c(" " + _(D.label) + " ", 1),
|
|
96
|
+
e.$slots.append ? (p(), o("span", w, [g(e.$slots, "append")])) : a("v-if", !0)
|
|
94
97
|
]),
|
|
95
|
-
(
|
|
98
|
+
(p(!0), o(r, null, h(j.value, (e) => (p(), o("span", {
|
|
96
99
|
key: e.id,
|
|
97
100
|
class: "q-button__ripple",
|
|
98
|
-
style:
|
|
101
|
+
style: f({
|
|
99
102
|
left: `${e.x}px`,
|
|
100
103
|
top: `${e.y}px`,
|
|
101
104
|
width: `${e.size}px`,
|
|
102
105
|
height: `${e.size}px`
|
|
103
106
|
}),
|
|
104
107
|
"aria-hidden": "true",
|
|
105
|
-
onAnimationend: (t) =>
|
|
106
|
-
}, null, 44,
|
|
107
|
-
], 14,
|
|
108
|
+
onAnimationend: (t) => P(e.id)
|
|
109
|
+
}, null, 44, T))), 128))
|
|
110
|
+
], 14, x));
|
|
108
111
|
}
|
|
109
112
|
});
|
|
110
113
|
//#endregion
|
|
111
|
-
export {
|
|
114
|
+
export { E as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAeA;
|
|
1
|
+
{"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAeA;AA8CC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAA;AAoB3C,iBAAS,cAAc;WAiCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,yTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { provideDefaults as e } from "../../composables/defaults.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useId as t } from "../../composables/useId/index.js";
|
|
3
|
+
import { createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o, toRef as s, unref as c } from "vue";
|
|
3
4
|
//#region src/components/QButtonGroup/QButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var
|
|
5
|
+
var l = ["id"], u = /*@__PURE__*/ r({
|
|
5
6
|
__name: "QButtonGroup",
|
|
6
7
|
props: {
|
|
7
8
|
id: {},
|
|
@@ -12,25 +13,25 @@ var s = ["id"], c = /*@__PURE__*/ n({
|
|
|
12
13
|
size: {},
|
|
13
14
|
disabled: { type: Boolean }
|
|
14
15
|
},
|
|
15
|
-
setup(
|
|
16
|
-
let
|
|
16
|
+
setup(r) {
|
|
17
|
+
let u = r, d = t(s(u, "id"));
|
|
17
18
|
return e({ QButton: {
|
|
18
|
-
size:
|
|
19
|
-
disabled:
|
|
20
|
-
borderless:
|
|
21
|
-
} }), (e,
|
|
22
|
-
id: c
|
|
23
|
-
class:
|
|
19
|
+
size: s(u, "size"),
|
|
20
|
+
disabled: s(u, "disabled"),
|
|
21
|
+
borderless: s(u, "borderless")
|
|
22
|
+
} }), (e, t) => (a(), n("div", {
|
|
23
|
+
id: c(d),
|
|
24
|
+
class: i([
|
|
24
25
|
"q-button-group",
|
|
25
26
|
{
|
|
26
|
-
"q-button-group--elevated":
|
|
27
|
-
"q-button-group--block":
|
|
27
|
+
"q-button-group--elevated": u.elevated,
|
|
28
|
+
"q-button-group--block": u.block
|
|
28
29
|
},
|
|
29
|
-
|
|
30
|
+
u.class
|
|
30
31
|
]),
|
|
31
32
|
role: "group"
|
|
32
|
-
}, [
|
|
33
|
+
}, [o(e.$slots, "default")], 10, l));
|
|
33
34
|
}
|
|
34
35
|
});
|
|
35
36
|
//#endregion
|
|
36
|
-
export {
|
|
37
|
+
export { u as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"AAuEA;AA8IC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AA4DpC,iBAAS,cAAc;WAwHT,OAAO,IAA6B;;wBAlBrB,GAAG;kCACO,GAAG;0CACK,GAAG;uBACtB,GAAG;0BACA,GAAG;yCACY,GAAG;iCACX,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;6EAQnB,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"}
|