@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,269 @@
|
|
|
1
|
+
import { QStep, QStepsProps } from '.';
|
|
2
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS } from './constants';
|
|
3
|
+
type __VLS_Props = QStepsProps;
|
|
4
|
+
/**
|
|
5
|
+
* Navigates to the previous enabled step.
|
|
6
|
+
*/
|
|
7
|
+
declare function previous(): void;
|
|
8
|
+
/**
|
|
9
|
+
* Navigates to the next enabled step, or emits `finish` on the last step
|
|
10
|
+
* (or when there is no enabled step to advance to).
|
|
11
|
+
*/
|
|
12
|
+
declare function next(): void;
|
|
13
|
+
type __VLS_PublicProps = {
|
|
14
|
+
modelValue?: string;
|
|
15
|
+
} & __VLS_Props;
|
|
16
|
+
declare function __VLS_template(): {
|
|
17
|
+
attrs: Partial<{}>;
|
|
18
|
+
slots: {
|
|
19
|
+
icon?(_: {
|
|
20
|
+
step: QStep;
|
|
21
|
+
index: number;
|
|
22
|
+
}): any;
|
|
23
|
+
icon?(_: {
|
|
24
|
+
step: QStep;
|
|
25
|
+
index: number;
|
|
26
|
+
}): any;
|
|
27
|
+
icon?(_: {
|
|
28
|
+
step: QStep;
|
|
29
|
+
index: number;
|
|
30
|
+
}): any;
|
|
31
|
+
default?(_: {}): any;
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
prev?(_: {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
label: string;
|
|
36
|
+
isFirst: boolean;
|
|
37
|
+
isLast: boolean;
|
|
38
|
+
onClick: () => void;
|
|
39
|
+
}): any;
|
|
40
|
+
prev?(_: {
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
label: string;
|
|
43
|
+
isFirst: boolean;
|
|
44
|
+
isLast: boolean;
|
|
45
|
+
onClick: () => void;
|
|
46
|
+
}): any;
|
|
47
|
+
next?(_: {
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
label: string;
|
|
50
|
+
isFirst: boolean;
|
|
51
|
+
isLast: boolean;
|
|
52
|
+
onClick: () => void;
|
|
53
|
+
}): any;
|
|
54
|
+
next?(_: {
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
label: string;
|
|
57
|
+
isFirst: boolean;
|
|
58
|
+
isLast: boolean;
|
|
59
|
+
onClick: () => void;
|
|
60
|
+
}): any;
|
|
61
|
+
};
|
|
62
|
+
refs: {
|
|
63
|
+
overflowRef: ({
|
|
64
|
+
$: import('vue').ComponentInternalInstance;
|
|
65
|
+
$data: {};
|
|
66
|
+
$props: {
|
|
67
|
+
readonly id?: string | undefined;
|
|
68
|
+
readonly class?: string | unknown[] | undefined;
|
|
69
|
+
readonly direction?: import('..').QOverflowDirection | undefined;
|
|
70
|
+
readonly arrowPlacement?: import('..').QOverflowArrowPlacement | undefined;
|
|
71
|
+
readonly arrowVisibility?: import('..').QOverflowArrowVisibility | undefined;
|
|
72
|
+
readonly scrollMode?: import('..').QOverflowScrollMode | undefined;
|
|
73
|
+
readonly scrollStep?: number | undefined;
|
|
74
|
+
readonly remapWheel?: boolean | undefined;
|
|
75
|
+
readonly contentClass?: string | unknown[] | undefined;
|
|
76
|
+
readonly icons?: typeof import('../QOverflow/constants').DEFAULT_ICONS | undefined;
|
|
77
|
+
readonly texts?: import('..').QOverflowTexts | undefined;
|
|
78
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
79
|
+
$attrs: import('vue').Attrs;
|
|
80
|
+
$refs: {
|
|
81
|
+
[x: string]: unknown;
|
|
82
|
+
} & {
|
|
83
|
+
viewportRef: HTMLDivElement;
|
|
84
|
+
contentRef: HTMLDivElement;
|
|
85
|
+
};
|
|
86
|
+
$slots: Readonly<{
|
|
87
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
90
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
91
|
+
$host: Element | null;
|
|
92
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
93
|
+
$el: HTMLDivElement;
|
|
94
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QOverflowProps> & Readonly<{}>, {
|
|
95
|
+
contentEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
96
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
97
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
98
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
99
|
+
texts: import('..').QOverflowTexts;
|
|
100
|
+
direction: import('..').QOverflowDirection;
|
|
101
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
102
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
103
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
104
|
+
scrollStep: number;
|
|
105
|
+
remapWheel: boolean;
|
|
106
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
107
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
108
|
+
created?: (() => void) | (() => void)[];
|
|
109
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
110
|
+
mounted?: (() => void) | (() => void)[];
|
|
111
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
112
|
+
updated?: (() => void) | (() => void)[];
|
|
113
|
+
activated?: (() => void) | (() => void)[];
|
|
114
|
+
deactivated?: (() => void) | (() => void)[];
|
|
115
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
116
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
117
|
+
destroyed?: (() => void) | (() => void)[];
|
|
118
|
+
unmounted?: (() => void) | (() => void)[];
|
|
119
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
120
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
121
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
122
|
+
};
|
|
123
|
+
$forceUpdate: () => void;
|
|
124
|
+
$nextTick: typeof import('vue').nextTick;
|
|
125
|
+
$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;
|
|
126
|
+
} & Readonly<{
|
|
127
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
128
|
+
texts: import('..').QOverflowTexts;
|
|
129
|
+
direction: import('..').QOverflowDirection;
|
|
130
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
131
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
132
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
133
|
+
scrollStep: number;
|
|
134
|
+
remapWheel: boolean;
|
|
135
|
+
}> & Omit<Readonly<import('..').QOverflowProps> & Readonly<{}>, "contentEl" | "scrollElementIntoView" | ("icons" | "texts" | "direction" | "arrowPlacement" | "arrowVisibility" | "scrollMode" | "scrollStep" | "remapWheel")> & {
|
|
136
|
+
contentEl: HTMLElement | null;
|
|
137
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
138
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
139
|
+
$slots: {
|
|
140
|
+
prev?(_: {
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
onClick: () => void;
|
|
143
|
+
}): any;
|
|
144
|
+
default?(_: {}): any;
|
|
145
|
+
next?(_: {
|
|
146
|
+
disabled: boolean;
|
|
147
|
+
onClick: () => void;
|
|
148
|
+
}): any;
|
|
149
|
+
};
|
|
150
|
+
}) | null;
|
|
151
|
+
};
|
|
152
|
+
rootEl: HTMLDivElement;
|
|
153
|
+
};
|
|
154
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
155
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
156
|
+
previous: typeof previous;
|
|
157
|
+
next: typeof next;
|
|
158
|
+
isFirst: import('vue').ComputedRef<boolean>;
|
|
159
|
+
isLast: import('vue').ComputedRef<boolean>;
|
|
160
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
161
|
+
"update:modelValue": (value: string) => any;
|
|
162
|
+
finish: () => any;
|
|
163
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
164
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
165
|
+
onFinish?: (() => any) | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
variant: import('./types').QStepsVariant;
|
|
168
|
+
icons: typeof DEFAULT_ICONS;
|
|
169
|
+
texts: typeof DEFAULT_TEXTS;
|
|
170
|
+
linear: boolean;
|
|
171
|
+
direction: import('./types').QStepsDirection;
|
|
172
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
173
|
+
overflowRef: ({
|
|
174
|
+
$: import('vue').ComponentInternalInstance;
|
|
175
|
+
$data: {};
|
|
176
|
+
$props: {
|
|
177
|
+
readonly id?: string | undefined;
|
|
178
|
+
readonly class?: string | unknown[] | undefined;
|
|
179
|
+
readonly direction?: import('..').QOverflowDirection | undefined;
|
|
180
|
+
readonly arrowPlacement?: import('..').QOverflowArrowPlacement | undefined;
|
|
181
|
+
readonly arrowVisibility?: import('..').QOverflowArrowVisibility | undefined;
|
|
182
|
+
readonly scrollMode?: import('..').QOverflowScrollMode | undefined;
|
|
183
|
+
readonly scrollStep?: number | undefined;
|
|
184
|
+
readonly remapWheel?: boolean | undefined;
|
|
185
|
+
readonly contentClass?: string | unknown[] | undefined;
|
|
186
|
+
readonly icons?: typeof import('../QOverflow/constants').DEFAULT_ICONS | undefined;
|
|
187
|
+
readonly texts?: import('..').QOverflowTexts | undefined;
|
|
188
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
189
|
+
$attrs: import('vue').Attrs;
|
|
190
|
+
$refs: {
|
|
191
|
+
[x: string]: unknown;
|
|
192
|
+
} & {
|
|
193
|
+
viewportRef: HTMLDivElement;
|
|
194
|
+
contentRef: HTMLDivElement;
|
|
195
|
+
};
|
|
196
|
+
$slots: Readonly<{
|
|
197
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
200
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
201
|
+
$host: Element | null;
|
|
202
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
203
|
+
$el: HTMLDivElement;
|
|
204
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QOverflowProps> & Readonly<{}>, {
|
|
205
|
+
contentEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
206
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
207
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
208
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
209
|
+
texts: import('..').QOverflowTexts;
|
|
210
|
+
direction: import('..').QOverflowDirection;
|
|
211
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
212
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
213
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
214
|
+
scrollStep: number;
|
|
215
|
+
remapWheel: boolean;
|
|
216
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
217
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
218
|
+
created?: (() => void) | (() => void)[];
|
|
219
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
220
|
+
mounted?: (() => void) | (() => void)[];
|
|
221
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
222
|
+
updated?: (() => void) | (() => void)[];
|
|
223
|
+
activated?: (() => void) | (() => void)[];
|
|
224
|
+
deactivated?: (() => void) | (() => void)[];
|
|
225
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
226
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
227
|
+
destroyed?: (() => void) | (() => void)[];
|
|
228
|
+
unmounted?: (() => void) | (() => void)[];
|
|
229
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
230
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
231
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
232
|
+
};
|
|
233
|
+
$forceUpdate: () => void;
|
|
234
|
+
$nextTick: typeof import('vue').nextTick;
|
|
235
|
+
$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;
|
|
236
|
+
} & Readonly<{
|
|
237
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
238
|
+
texts: import('..').QOverflowTexts;
|
|
239
|
+
direction: import('..').QOverflowDirection;
|
|
240
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
241
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
242
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
243
|
+
scrollStep: number;
|
|
244
|
+
remapWheel: boolean;
|
|
245
|
+
}> & Omit<Readonly<import('..').QOverflowProps> & Readonly<{}>, "contentEl" | "scrollElementIntoView" | ("icons" | "texts" | "direction" | "arrowPlacement" | "arrowVisibility" | "scrollMode" | "scrollStep" | "remapWheel")> & {
|
|
246
|
+
contentEl: HTMLElement | null;
|
|
247
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
248
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
249
|
+
$slots: {
|
|
250
|
+
prev?(_: {
|
|
251
|
+
disabled: boolean;
|
|
252
|
+
onClick: () => void;
|
|
253
|
+
}): any;
|
|
254
|
+
default?(_: {}): any;
|
|
255
|
+
next?(_: {
|
|
256
|
+
disabled: boolean;
|
|
257
|
+
onClick: () => void;
|
|
258
|
+
}): any;
|
|
259
|
+
};
|
|
260
|
+
}) | null;
|
|
261
|
+
}, HTMLDivElement>;
|
|
262
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
263
|
+
export default _default;
|
|
264
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
265
|
+
new (): {
|
|
266
|
+
$slots: S;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
//# sourceMappingURL=QSteps.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QSteps.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSteps/QSteps.vue"],"names":[],"mappings":"AA8IA;AAofC,OAAO,KAAK,EAAE,KAAK,EAAuC,WAAW,EAAE,MAAM,GAAG,CAAA;AAIhF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE1D,KAAK,WAAW,GAAG,WAAW,CAAC;AAqP/B;;GAEG;AACH,iBAAS,QAAQ,SAMhB;AAED;;;GAGG;AACH,iBAAS,IAAI,SAgBZ;AAoEF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgST,OAAO,IAA6B;;;;;YAnBvB,GAAG;;;;YACH,GAAG;;;;YAIH,GAAG;yBAHA,GAAG;yBAIH,GAAG;;;;;;;YAHN,GAAG;;;;;;;YAIH,GAAG;;;;;;;YAHH,GAAG;;;;;;;YAIH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAvLM,GAAG,8CAEC,GAAG,yBAAyB,GAAG,6DACnD,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoMtB;AAgCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAxOe,GAAG,8CAEC,GAAG,yBAAyB,GAAG,6DACnD,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgPrB,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"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
+
import { QOverflow as n } from "../QOverflow/index.js";
|
|
4
|
+
import r from "./QStepHeader2.vue.js";
|
|
5
|
+
import i from "./QStepsNav2.vue.js";
|
|
6
|
+
import { useEnabledSelection as ee } from "../../composables/useEnabledSelection/index.js";
|
|
7
|
+
import { DEFAULT_ICONS as a, DEFAULT_TEXTS as o } from "./constants.js";
|
|
8
|
+
import { Fragment as s, computed as c, createBlock as te, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as ne, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeModels as h, mergeProps as g, normalizeClass as _, normalizeProps as v, openBlock as y, renderList as b, renderSlot as x, shallowRef as re, toDisplayString as S, toRef as ie, unref as C, useModel as ae, useTemplateRef as oe, watch as w, withCtx as T } from "vue";
|
|
9
|
+
//#region src/components/QSteps/QSteps.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var se = ["id"], ce = { class: "q-steps__list" }, le = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "q-steps__panel"
|
|
13
|
+
}, ue = { class: "q-steps__panel-header" }, de = { class: "q-steps__panel-header-icon" }, fe = { class: "q-steps__panel-header-title" }, pe = { class: "q-steps__content" }, me = { class: "q-steps__list" }, he = ["id", "aria-labelledby"], ge = { class: "q-steps__content" }, E = /*@__PURE__*/ p({
|
|
14
|
+
__name: "QSteps",
|
|
15
|
+
props: /*@__PURE__*/ h({
|
|
16
|
+
id: {},
|
|
17
|
+
class: {},
|
|
18
|
+
steps: {},
|
|
19
|
+
direction: { default: "horizontal" },
|
|
20
|
+
variant: { default: "circle" },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
linear: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
icons: { default: () => a },
|
|
27
|
+
texts: { default: () => o }
|
|
28
|
+
}, {
|
|
29
|
+
modelValue: {},
|
|
30
|
+
modelModifiers: {}
|
|
31
|
+
}),
|
|
32
|
+
emits: /*@__PURE__*/ h(["finish"], ["update:modelValue"]),
|
|
33
|
+
setup(a, { expose: p, emit: h }) {
|
|
34
|
+
let E = a, D = h, O = e(ie(E, "id")), k = c(() => `${O.value}-panel`);
|
|
35
|
+
function A(e) {
|
|
36
|
+
return `${O.value}-step-${e}`;
|
|
37
|
+
}
|
|
38
|
+
let j = ae(a, "modelValue"), M = re(/* @__PURE__ */ new Set()), N = c(() => ({
|
|
39
|
+
...o,
|
|
40
|
+
...E.texts
|
|
41
|
+
})), P = c(() => E.direction === "horizontal"), _e = c(() => [
|
|
42
|
+
"q-steps",
|
|
43
|
+
`q-steps--${E.direction}`,
|
|
44
|
+
`q-steps--${E.variant}`,
|
|
45
|
+
E.class
|
|
46
|
+
]), { enabledItems: F, ensureSelection: I } = ee(() => E.steps, j), ve = c(() => F.value.findIndex((e) => e.value === j.value)), L = c(() => E.steps.findIndex((e) => e.value === j.value)), R = c(() => E.steps[L.value]), z = oe("overflowRef");
|
|
47
|
+
w(() => P.value ? z.value?.contentEl : null, (e) => {
|
|
48
|
+
e?.setAttribute("role", "list");
|
|
49
|
+
}, {
|
|
50
|
+
immediate: !0,
|
|
51
|
+
flush: "post"
|
|
52
|
+
}), w(L, () => {
|
|
53
|
+
let e = (z.value?.contentEl)?.children[L.value];
|
|
54
|
+
e instanceof HTMLElement && z.value?.scrollElementIntoView(e);
|
|
55
|
+
}, {
|
|
56
|
+
immediate: !0,
|
|
57
|
+
flush: "post"
|
|
58
|
+
});
|
|
59
|
+
let B = c(() => F.value.length ? ve.value <= 0 : !0), V = c(() => F.value.length ? ve.value === F.value.length - 1 : !0);
|
|
60
|
+
function H(e) {
|
|
61
|
+
return e.value === j.value;
|
|
62
|
+
}
|
|
63
|
+
function U(e) {
|
|
64
|
+
return (M.value.has(e.value) || !!e.completed) && !H(e);
|
|
65
|
+
}
|
|
66
|
+
function W(e) {
|
|
67
|
+
return E.disabled || !!e.disabled;
|
|
68
|
+
}
|
|
69
|
+
function G(e) {
|
|
70
|
+
let t = E.steps[e + 1];
|
|
71
|
+
return t ? H(t) || U(t) : !1;
|
|
72
|
+
}
|
|
73
|
+
function K(e) {
|
|
74
|
+
return W(e) ? !1 : !E.linear || H(e) ? !0 : M.value.has(e.value) || !!e.completed;
|
|
75
|
+
}
|
|
76
|
+
function q(e) {
|
|
77
|
+
return !K(e);
|
|
78
|
+
}
|
|
79
|
+
function J(e) {
|
|
80
|
+
if (E.variant !== "dot") {
|
|
81
|
+
if (e.completed) return "completed";
|
|
82
|
+
if (H(e)) return "active";
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function Y(e) {
|
|
86
|
+
return ["q-step__header", {
|
|
87
|
+
"q-step--active": H(e),
|
|
88
|
+
"q-step--completed": !!e.completed,
|
|
89
|
+
"q-step--disabled": W(e),
|
|
90
|
+
"q-step--visited": U(e),
|
|
91
|
+
"q-step--selectable": K(e)
|
|
92
|
+
}];
|
|
93
|
+
}
|
|
94
|
+
function X(e, t) {
|
|
95
|
+
return ["q-step", {
|
|
96
|
+
"q-step--active": H(e),
|
|
97
|
+
"q-step--disabled": W(e),
|
|
98
|
+
"q-step--visited": U(e),
|
|
99
|
+
"q-step--last": t === E.steps.length - 1,
|
|
100
|
+
"q-step--next-reached": G(t)
|
|
101
|
+
}];
|
|
102
|
+
}
|
|
103
|
+
function Z(e) {
|
|
104
|
+
K(e) && (j.value = e.value);
|
|
105
|
+
}
|
|
106
|
+
function Q() {
|
|
107
|
+
if (E.disabled) return;
|
|
108
|
+
let e = F.value, t = e.findIndex((e) => e.value === j.value);
|
|
109
|
+
t <= 0 || (j.value = e[t - 1].value);
|
|
110
|
+
}
|
|
111
|
+
function ye() {
|
|
112
|
+
if (E.disabled) return;
|
|
113
|
+
let e = F.value, t = e.findIndex((e) => e.value === j.value);
|
|
114
|
+
if (t === -1) {
|
|
115
|
+
e.length || D("finish");
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (t >= e.length - 1) {
|
|
119
|
+
D("finish");
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
j.value = e[t + 1].value;
|
|
123
|
+
}
|
|
124
|
+
let be = c(() => ({
|
|
125
|
+
disabled: B.value || !!E.disabled,
|
|
126
|
+
label: N.value.previous,
|
|
127
|
+
isFirst: B.value,
|
|
128
|
+
isLast: V.value,
|
|
129
|
+
onClick: Q
|
|
130
|
+
})), $ = c(() => ({
|
|
131
|
+
disabled: V.value || !!E.disabled,
|
|
132
|
+
label: N.value.next,
|
|
133
|
+
isFirst: B.value,
|
|
134
|
+
isLast: V.value,
|
|
135
|
+
onClick: ye
|
|
136
|
+
}));
|
|
137
|
+
return w(() => E.steps.map((e) => [e.value, !!e.disabled]), () => {
|
|
138
|
+
let e = new Set(E.steps.map((e) => e.value));
|
|
139
|
+
[...M.value].some((t) => !e.has(t)) && (M.value = new Set([...M.value].filter((t) => e.has(t)))), I();
|
|
140
|
+
}, { immediate: !0 }), w(j, () => {
|
|
141
|
+
I();
|
|
142
|
+
let e = j.value;
|
|
143
|
+
e !== void 0 && (M.value.has(e) || (M.value = /* @__PURE__ */ new Set([...M.value, e])));
|
|
144
|
+
}, { immediate: !0 }), p({
|
|
145
|
+
previous: Q,
|
|
146
|
+
next: ye,
|
|
147
|
+
isFirst: B,
|
|
148
|
+
isLast: V
|
|
149
|
+
}), (e, ee) => (y(), u("div", {
|
|
150
|
+
id: C(O),
|
|
151
|
+
class: _(_e.value)
|
|
152
|
+
}, [l(" Horizontal: headers strip, then content, then nav "), P.value ? (y(), u(s, { key: 0 }, [
|
|
153
|
+
d("div", ce, [f(C(n), {
|
|
154
|
+
ref_key: "overflowRef",
|
|
155
|
+
ref: z,
|
|
156
|
+
class: "q-steps__overflow",
|
|
157
|
+
"content-class": "q-steps__track",
|
|
158
|
+
direction: "horizontal",
|
|
159
|
+
"scroll-mode": "page"
|
|
160
|
+
}, {
|
|
161
|
+
default: T(() => [(y(!0), u(s, null, b(E.steps, (t, n) => (y(), u("div", {
|
|
162
|
+
key: t.value,
|
|
163
|
+
class: _(X(t, n)),
|
|
164
|
+
role: "listitem"
|
|
165
|
+
}, [f(r, {
|
|
166
|
+
step: t,
|
|
167
|
+
index: n,
|
|
168
|
+
variant: E.variant,
|
|
169
|
+
badge: J(t),
|
|
170
|
+
texts: N.value,
|
|
171
|
+
icons: E.icons,
|
|
172
|
+
class: _(Y(t)),
|
|
173
|
+
disabled: q(t),
|
|
174
|
+
"aria-current": H(t) ? "step" : void 0,
|
|
175
|
+
onClick: (e) => Z(t)
|
|
176
|
+
}, {
|
|
177
|
+
icon: T((t) => [x(e.$slots, "icon", g({ ref_for: !0 }, t))]),
|
|
178
|
+
_: 3
|
|
179
|
+
}, 8, [
|
|
180
|
+
"step",
|
|
181
|
+
"index",
|
|
182
|
+
"variant",
|
|
183
|
+
"badge",
|
|
184
|
+
"texts",
|
|
185
|
+
"icons",
|
|
186
|
+
"class",
|
|
187
|
+
"disabled",
|
|
188
|
+
"aria-current",
|
|
189
|
+
"onClick"
|
|
190
|
+
])], 2))), 128))]),
|
|
191
|
+
_: 3
|
|
192
|
+
}, 512)]),
|
|
193
|
+
R.value ? (y(), u("div", le, [d("div", ue, [d("span", de, [x(e.$slots, "icon", {
|
|
194
|
+
step: R.value,
|
|
195
|
+
index: L.value
|
|
196
|
+
}, () => [R.value.icon ? (y(), te(C(t), v(g({ key: 0 }, R.value.icon)), null, 16)) : (y(), u(s, { key: 1 }, [ne(S(L.value + 1), 1)], 64))])]), d("span", fe, S(R.value.title), 1)]), d("div", pe, [x(e.$slots, "default")])])) : l("v-if", !0),
|
|
197
|
+
f(i, {
|
|
198
|
+
"prev-slot-props": be.value,
|
|
199
|
+
"next-slot-props": $.value,
|
|
200
|
+
icons: E.icons
|
|
201
|
+
}, {
|
|
202
|
+
prev: T((t) => [x(e.$slots, "prev", v(m(t)))]),
|
|
203
|
+
next: T((t) => [x(e.$slots, "next", v(m(t)))]),
|
|
204
|
+
_: 3
|
|
205
|
+
}, 8, [
|
|
206
|
+
"prev-slot-props",
|
|
207
|
+
"next-slot-props",
|
|
208
|
+
"icons"
|
|
209
|
+
])
|
|
210
|
+
], 64)) : (y(), u(s, { key: 1 }, [l("\n Vertical: content + nav as a sibling right after the active header,\n outside the step row so the panel isn't part of the step's accessible content.\n The strip is not a list, because that panel cannot be a listitem.\n "), d("div", me, [(y(!0), u(s, null, b(E.steps, (t, n) => (y(), u(s, { key: t.value }, [d("div", { class: _(X(t, n)) }, [f(r, {
|
|
211
|
+
id: A(n),
|
|
212
|
+
step: t,
|
|
213
|
+
index: n,
|
|
214
|
+
variant: E.variant,
|
|
215
|
+
badge: J(t),
|
|
216
|
+
texts: N.value,
|
|
217
|
+
icons: E.icons,
|
|
218
|
+
class: _(Y(t)),
|
|
219
|
+
disabled: q(t),
|
|
220
|
+
"aria-current": H(t) ? "step" : void 0,
|
|
221
|
+
"aria-controls": H(t) ? k.value : void 0,
|
|
222
|
+
onClick: (e) => Z(t)
|
|
223
|
+
}, {
|
|
224
|
+
icon: T((t) => [x(e.$slots, "icon", g({ ref_for: !0 }, t))]),
|
|
225
|
+
_: 3
|
|
226
|
+
}, 8, [
|
|
227
|
+
"id",
|
|
228
|
+
"step",
|
|
229
|
+
"index",
|
|
230
|
+
"variant",
|
|
231
|
+
"badge",
|
|
232
|
+
"texts",
|
|
233
|
+
"icons",
|
|
234
|
+
"class",
|
|
235
|
+
"disabled",
|
|
236
|
+
"aria-current",
|
|
237
|
+
"aria-controls",
|
|
238
|
+
"onClick"
|
|
239
|
+
])], 2), H(t) ? (y(), u("div", {
|
|
240
|
+
key: 0,
|
|
241
|
+
id: k.value,
|
|
242
|
+
class: _(["q-steps__body", { "q-step--next-reached": G(n) }]),
|
|
243
|
+
"aria-labelledby": A(n)
|
|
244
|
+
}, [d("div", ge, [x(e.$slots, "default")]), f(i, {
|
|
245
|
+
"prev-slot-props": be.value,
|
|
246
|
+
"next-slot-props": $.value,
|
|
247
|
+
icons: E.icons
|
|
248
|
+
}, {
|
|
249
|
+
prev: T((t) => [x(e.$slots, "prev", g({ ref_for: !0 }, t))]),
|
|
250
|
+
next: T((t) => [x(e.$slots, "next", g({ ref_for: !0 }, t))]),
|
|
251
|
+
_: 3
|
|
252
|
+
}, 8, [
|
|
253
|
+
"prev-slot-props",
|
|
254
|
+
"next-slot-props",
|
|
255
|
+
"icons"
|
|
256
|
+
])], 10, he)) : l("v-if", !0)], 64))), 128))])], 64))], 10, se));
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
//#endregion
|
|
260
|
+
export { E as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { QStepsNavSlotProps } from '.';
|
|
2
|
+
import { DEFAULT_ICONS } from './constants';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the internal `QStepsNav` sub-component shared by the
|
|
5
|
+
* horizontal and vertical layouts of `QSteps`. Not exported: this
|
|
6
|
+
* component is internal, so its props stay off the package's public API
|
|
7
|
+
* surface.
|
|
8
|
+
*/
|
|
9
|
+
type QStepsNavProps = {
|
|
10
|
+
/**
|
|
11
|
+
* Slot props for the `prev` navigation control.
|
|
12
|
+
*
|
|
13
|
+
* @category Behavior
|
|
14
|
+
*/
|
|
15
|
+
prevSlotProps: QStepsNavSlotProps;
|
|
16
|
+
/**
|
|
17
|
+
* Slot props for the `next` navigation control.
|
|
18
|
+
*
|
|
19
|
+
* @category Behavior
|
|
20
|
+
*/
|
|
21
|
+
nextSlotProps: QStepsNavSlotProps;
|
|
22
|
+
/**
|
|
23
|
+
* Icons for the default previous/next buttons.
|
|
24
|
+
*
|
|
25
|
+
* @category Configuration
|
|
26
|
+
*/
|
|
27
|
+
icons: typeof DEFAULT_ICONS;
|
|
28
|
+
};
|
|
29
|
+
declare function __VLS_template(): {
|
|
30
|
+
attrs: Partial<{}>;
|
|
31
|
+
slots: {
|
|
32
|
+
prev?(_: {
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
label: string;
|
|
35
|
+
isFirst: boolean;
|
|
36
|
+
isLast: boolean;
|
|
37
|
+
onClick: () => void;
|
|
38
|
+
}): any;
|
|
39
|
+
next?(_: {
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
label: string;
|
|
42
|
+
isFirst: boolean;
|
|
43
|
+
isLast: boolean;
|
|
44
|
+
onClick: () => void;
|
|
45
|
+
}): any;
|
|
46
|
+
};
|
|
47
|
+
refs: {};
|
|
48
|
+
rootEl: HTMLDivElement;
|
|
49
|
+
};
|
|
50
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
51
|
+
declare const __VLS_component: import('vue').DefineComponent<QStepsNavProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QStepsNavProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
52
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=QStepsNav.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QStepsNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSteps/QStepsNav.vue"],"names":[],"mappings":"AA4BA;AA4EC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD;;;;;GAKG;AACH,KAAK,cAAc,GAAG;IACrB;;;;OAIG;IACH,aAAa,EAAE,kBAAkB,CAAA;IAEjC;;;;OAIG;IACH,aAAa,EAAE,kBAAkB,CAAA;IAEjC;;;;OAIG;IACH,KAAK,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA;AAOF,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;;;;;;;YAXxB,GAAG;;;;;;;YACF,GAAG;;;;EAe7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,mTAOnB,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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { QButton as e } from "../QButton/index.js";
|
|
2
|
+
import { QIcon as t } from "../QIcon/index.js";
|
|
3
|
+
import { createElementBlock as n, createVNode as r, defineComponent as i, guardReactiveProps as a, normalizeProps as o, openBlock as s, renderSlot as c, unref as l, withCtx as u } from "vue";
|
|
4
|
+
//#region src/components/QSteps/QStepsNav.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var d = { class: "q-steps__nav" }, f = /*@__PURE__*/ i({
|
|
6
|
+
__name: "QStepsNav",
|
|
7
|
+
props: {
|
|
8
|
+
prevSlotProps: {},
|
|
9
|
+
nextSlotProps: {},
|
|
10
|
+
icons: {}
|
|
11
|
+
},
|
|
12
|
+
setup(i) {
|
|
13
|
+
let f = i;
|
|
14
|
+
return (i, p) => (s(), n("div", d, [c(i.$slots, "prev", o(a(f.prevSlotProps)), () => [r(l(e), {
|
|
15
|
+
"data-testid": "steps-prev",
|
|
16
|
+
label: f.prevSlotProps.label,
|
|
17
|
+
disabled: f.prevSlotProps.disabled,
|
|
18
|
+
onClick: f.prevSlotProps.onClick
|
|
19
|
+
}, {
|
|
20
|
+
default: u(() => [r(l(t), o(a(f.icons.previous)), null, 16)]),
|
|
21
|
+
_: 1
|
|
22
|
+
}, 8, [
|
|
23
|
+
"label",
|
|
24
|
+
"disabled",
|
|
25
|
+
"onClick"
|
|
26
|
+
])]), c(i.$slots, "next", o(a(f.nextSlotProps)), () => [r(l(e), {
|
|
27
|
+
"data-testid": "steps-next",
|
|
28
|
+
label: f.nextSlotProps.label,
|
|
29
|
+
disabled: f.nextSlotProps.disabled,
|
|
30
|
+
onClick: f.nextSlotProps.onClick
|
|
31
|
+
}, {
|
|
32
|
+
append: u(() => [r(l(t), o(a(f.icons.next)), null, 16)]),
|
|
33
|
+
_: 1
|
|
34
|
+
}, 8, [
|
|
35
|
+
"label",
|
|
36
|
+
"disabled",
|
|
37
|
+
"onClick"
|
|
38
|
+
])])]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { f as default };
|