@quidgest/ui 0.21.2 → 0.23.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 +31 -0
- package/dist/json/api.json +398 -86
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +2130 -1166
- package/dist/ui.esm.js +809 -786
- package/dist/ui.js +735 -712
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +735 -712
- package/dist/ui.scss +1137 -844
- package/esm/components/QBadge/QBadge.d.ts +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +14 -7
- package/esm/components/QBadge/index.d.ts +3 -3
- package/esm/components/QBadge/types.d.ts +11 -4
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +0 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +10 -4
- package/esm/components/QButton/index.d.ts +0 -3
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/types.d.ts +11 -4
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +2 -0
- package/esm/components/QButtonGroup/types.d.ts +9 -1
- package/esm/components/QButtonGroup/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +2 -2
- package/esm/components/QCheckbox/index.d.ts +3 -6
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +4 -3
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +1 -1
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +6 -8
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +1 -1
- package/esm/components/QCombobox/index.d.ts +3 -4
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +18 -24
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/index.d.ts +9 -12
- 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 +6 -1
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/QDialogProvider.vue.js +1 -0
- package/esm/components/QDialog/index.d.ts +3 -0
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +14 -0
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +1 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +9 -4
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +1 -0
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +0 -1
- package/esm/components/QOverflow/QOverflow.d.ts +21 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +109 -96
- package/esm/components/QOverflow/index.d.ts +12 -3
- package/esm/components/QOverflow/index.d.ts.map +1 -1
- package/esm/components/QOverflow/types.d.ts +11 -2
- package/esm/components/QOverflow/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +0 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +90 -90
- package/esm/components/QOverlay/index.d.ts +0 -3
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +5 -3
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +20 -16
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/index.d.ts +10 -8
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPopover/types.d.ts +1 -1
- package/esm/components/QPopover/types.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.d.ts +21 -0
- package/esm/components/QProgress/QProgress.d.ts.map +1 -0
- package/esm/components/QProgress/QProgress.vue.js +108 -0
- package/esm/components/QProgress/QProgress2.vue.js +5 -0
- package/esm/components/QProgress/index.d.ts +45 -0
- package/esm/components/QProgress/index.d.ts.map +1 -0
- package/esm/components/QProgress/index.js +6 -0
- package/esm/components/QProgress/types.d.ts +78 -0
- package/esm/components/QProgress/types.d.ts.map +1 -0
- package/esm/components/QRadioGroup/QRadioButton.d.ts +0 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +55 -46
- package/esm/components/QRadioGroup/index.d.ts +9 -36
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/types.d.ts +15 -24
- package/esm/components/QRadioGroup/types.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/constants.d.ts +1 -1
- package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/constants.js +1 -1
- package/esm/components/QSelect/QSelect.d.ts +20 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +9 -1
- package/esm/components/QSelect/index.d.ts +10 -8
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +0 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +2 -2
- package/esm/components/QSidebar/QSidebarAnchor.d.ts +2 -1
- package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +12 -6
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
- package/esm/components/QSidebar/index.d.ts +6 -6
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +3 -1
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.d.ts +3 -2
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +34 -26
- package/esm/components/QSwitch/index.d.ts +5 -4
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +4 -2
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts +6 -8
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.d.ts +177 -2
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +127 -106
- package/esm/components/QTabs/context.d.ts +2 -1
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +91 -5
- package/esm/components/QTabs/index.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +2 -1
- package/esm/components/QToggle/index.d.ts +6 -3
- package/esm/components/QToggle/index.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +1 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -0
- package/esm/components/QToggleGroup/index.d.ts +3 -0
- package/esm/components/QToggleGroup/index.d.ts.map +1 -1
- package/esm/components/QTooltip/types.d.ts +1 -1
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +34 -32
- package/esm/composables/useSafeTriangle/index.d.ts +1 -1
- package/esm/composables/useSafeTriangle/index.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/templates/theme.js +11 -11
- package/esm/types/component.d.ts +7 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/utils/color/theme-colors.d.ts +5 -5
- package/esm/utils/density.d.ts +12 -0
- package/esm/utils/density.d.ts.map +1 -0
- package/esm/utils/density.js +23 -0
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +6 -2
- package/esm/{composables → utils}/overlay.d.ts +12 -0
- package/esm/utils/overlay.d.ts.map +1 -0
- package/esm/{composables → utils}/overlay.js +10 -2
- package/esm/utils/safeTriangle.d.ts +1 -1
- package/esm/utils/safeTriangle.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm/composables/overlay.d.ts.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { QTabsProps } from './types';
|
|
2
|
+
import { nextTick } from 'vue';
|
|
2
3
|
type __VLS_Props = QTabsProps;
|
|
3
4
|
type __VLS_PublicProps = {
|
|
4
5
|
modelValue?: string;
|
|
@@ -10,7 +11,94 @@ declare function __VLS_template(): {
|
|
|
10
11
|
};
|
|
11
12
|
refs: {
|
|
12
13
|
tabListHost: HTMLDivElement;
|
|
13
|
-
|
|
14
|
+
overflowRef: ({
|
|
15
|
+
$: import('vue').ComponentInternalInstance;
|
|
16
|
+
$data: {};
|
|
17
|
+
$props: {
|
|
18
|
+
readonly id?: string | undefined;
|
|
19
|
+
readonly class?: string | unknown[] | undefined;
|
|
20
|
+
readonly direction?: import('..').QOverflowDirection | undefined;
|
|
21
|
+
readonly arrowPlacement?: import('..').QOverflowArrowPlacement | undefined;
|
|
22
|
+
readonly arrowVisibility?: import('..').QOverflowArrowVisibility | undefined;
|
|
23
|
+
readonly scrollMode?: import('..').QOverflowScrollMode | undefined;
|
|
24
|
+
readonly scrollStep?: number | undefined;
|
|
25
|
+
readonly remapWheel?: boolean | undefined;
|
|
26
|
+
readonly contentClass?: string | unknown[] | undefined;
|
|
27
|
+
readonly icons?: typeof import('../QOverflow/constants').DEFAULT_ICONS | undefined;
|
|
28
|
+
readonly texts?: import('..').QOverflowTexts | undefined;
|
|
29
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
30
|
+
$attrs: import('vue').Attrs;
|
|
31
|
+
$refs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
} & {
|
|
34
|
+
viewportRef: HTMLDivElement;
|
|
35
|
+
contentRef: HTMLDivElement;
|
|
36
|
+
};
|
|
37
|
+
$slots: Readonly<{
|
|
38
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
41
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
42
|
+
$host: Element | null;
|
|
43
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
44
|
+
$el: HTMLDivElement;
|
|
45
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QOverflowProps> & Readonly<{}>, {
|
|
46
|
+
contentEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
47
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
48
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
49
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
50
|
+
texts: import('..').QOverflowTexts;
|
|
51
|
+
direction: import('..').QOverflowDirection;
|
|
52
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
53
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
54
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
55
|
+
scrollStep: number;
|
|
56
|
+
remapWheel: boolean;
|
|
57
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
58
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
59
|
+
created?: (() => void) | (() => void)[];
|
|
60
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
61
|
+
mounted?: (() => void) | (() => void)[];
|
|
62
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
63
|
+
updated?: (() => void) | (() => void)[];
|
|
64
|
+
activated?: (() => void) | (() => void)[];
|
|
65
|
+
deactivated?: (() => void) | (() => void)[];
|
|
66
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
67
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
68
|
+
destroyed?: (() => void) | (() => void)[];
|
|
69
|
+
unmounted?: (() => void) | (() => void)[];
|
|
70
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
71
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
72
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
73
|
+
};
|
|
74
|
+
$forceUpdate: () => void;
|
|
75
|
+
$nextTick: typeof nextTick;
|
|
76
|
+
$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;
|
|
77
|
+
} & Readonly<{
|
|
78
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
79
|
+
texts: import('..').QOverflowTexts;
|
|
80
|
+
direction: import('..').QOverflowDirection;
|
|
81
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
82
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
83
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
84
|
+
scrollStep: number;
|
|
85
|
+
remapWheel: boolean;
|
|
86
|
+
}> & Omit<Readonly<import('..').QOverflowProps> & Readonly<{}>, "contentEl" | "scrollElementIntoView" | ("icons" | "texts" | "direction" | "arrowPlacement" | "arrowVisibility" | "scrollMode" | "scrollStep" | "remapWheel")> & {
|
|
87
|
+
contentEl: HTMLElement | null;
|
|
88
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
89
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
90
|
+
$slots: {
|
|
91
|
+
prev?(_: {
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
onClick: () => void;
|
|
94
|
+
}): any;
|
|
95
|
+
default?(_: {}): any;
|
|
96
|
+
next?(_: {
|
|
97
|
+
disabled: boolean;
|
|
98
|
+
onClick: () => void;
|
|
99
|
+
}): any;
|
|
100
|
+
};
|
|
101
|
+
}) | null;
|
|
14
102
|
};
|
|
15
103
|
rootEl: HTMLDivElement;
|
|
16
104
|
};
|
|
@@ -25,7 +113,94 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
25
113
|
align: import('./types').QTabsAlign;
|
|
26
114
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
115
|
tabListHost: HTMLDivElement;
|
|
28
|
-
|
|
116
|
+
overflowRef: ({
|
|
117
|
+
$: import('vue').ComponentInternalInstance;
|
|
118
|
+
$data: {};
|
|
119
|
+
$props: {
|
|
120
|
+
readonly id?: string | undefined;
|
|
121
|
+
readonly class?: string | unknown[] | undefined;
|
|
122
|
+
readonly direction?: import('..').QOverflowDirection | undefined;
|
|
123
|
+
readonly arrowPlacement?: import('..').QOverflowArrowPlacement | undefined;
|
|
124
|
+
readonly arrowVisibility?: import('..').QOverflowArrowVisibility | undefined;
|
|
125
|
+
readonly scrollMode?: import('..').QOverflowScrollMode | undefined;
|
|
126
|
+
readonly scrollStep?: number | undefined;
|
|
127
|
+
readonly remapWheel?: boolean | undefined;
|
|
128
|
+
readonly contentClass?: string | unknown[] | undefined;
|
|
129
|
+
readonly icons?: typeof import('../QOverflow/constants').DEFAULT_ICONS | undefined;
|
|
130
|
+
readonly texts?: import('..').QOverflowTexts | undefined;
|
|
131
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
132
|
+
$attrs: import('vue').Attrs;
|
|
133
|
+
$refs: {
|
|
134
|
+
[x: string]: unknown;
|
|
135
|
+
} & {
|
|
136
|
+
viewportRef: HTMLDivElement;
|
|
137
|
+
contentRef: HTMLDivElement;
|
|
138
|
+
};
|
|
139
|
+
$slots: Readonly<{
|
|
140
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
141
|
+
}>;
|
|
142
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
143
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
144
|
+
$host: Element | null;
|
|
145
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
146
|
+
$el: HTMLDivElement;
|
|
147
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('..').QOverflowProps> & Readonly<{}>, {
|
|
148
|
+
contentEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
149
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
150
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
151
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
152
|
+
texts: import('..').QOverflowTexts;
|
|
153
|
+
direction: import('..').QOverflowDirection;
|
|
154
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
155
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
156
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
157
|
+
scrollStep: number;
|
|
158
|
+
remapWheel: boolean;
|
|
159
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
160
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
161
|
+
created?: (() => void) | (() => void)[];
|
|
162
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
163
|
+
mounted?: (() => void) | (() => void)[];
|
|
164
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
165
|
+
updated?: (() => void) | (() => void)[];
|
|
166
|
+
activated?: (() => void) | (() => void)[];
|
|
167
|
+
deactivated?: (() => void) | (() => void)[];
|
|
168
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
169
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
170
|
+
destroyed?: (() => void) | (() => void)[];
|
|
171
|
+
unmounted?: (() => void) | (() => void)[];
|
|
172
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
173
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
174
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
175
|
+
};
|
|
176
|
+
$forceUpdate: () => void;
|
|
177
|
+
$nextTick: typeof nextTick;
|
|
178
|
+
$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;
|
|
179
|
+
} & Readonly<{
|
|
180
|
+
icons: typeof import('../QOverflow/constants').DEFAULT_ICONS;
|
|
181
|
+
texts: import('..').QOverflowTexts;
|
|
182
|
+
direction: import('..').QOverflowDirection;
|
|
183
|
+
arrowPlacement: import('..').QOverflowArrowPlacement;
|
|
184
|
+
arrowVisibility: import('..').QOverflowArrowVisibility;
|
|
185
|
+
scrollMode: import('..').QOverflowScrollMode;
|
|
186
|
+
scrollStep: number;
|
|
187
|
+
remapWheel: boolean;
|
|
188
|
+
}> & Omit<Readonly<import('..').QOverflowProps> & Readonly<{}>, "contentEl" | "scrollElementIntoView" | ("icons" | "texts" | "direction" | "arrowPlacement" | "arrowVisibility" | "scrollMode" | "scrollStep" | "remapWheel")> & {
|
|
189
|
+
contentEl: HTMLElement | null;
|
|
190
|
+
scrollElementIntoView: (element: HTMLElement) => void;
|
|
191
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
192
|
+
$slots: {
|
|
193
|
+
prev?(_: {
|
|
194
|
+
disabled: boolean;
|
|
195
|
+
onClick: () => void;
|
|
196
|
+
}): any;
|
|
197
|
+
default?(_: {}): any;
|
|
198
|
+
next?(_: {
|
|
199
|
+
disabled: boolean;
|
|
200
|
+
onClick: () => void;
|
|
201
|
+
}): any;
|
|
202
|
+
};
|
|
203
|
+
}) | null;
|
|
29
204
|
}, HTMLDivElement>;
|
|
30
205
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
206
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/QTabs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/QTabs.vue"],"names":[],"mappings":"AAyBA;AAycC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC,OAAO,EAEN,QAAQ,EASR,MAAM,KAAK,CAAA;AAGZ,KAAK,WAAW,GAAG,UAAU,CAAC;AAkZ/B,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAiET,OAAO,IAA6B;;yBAZrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA+Dwf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA9C7oB;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+BmgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;kBArB5oB,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,14 +1,15 @@
|
|
|
1
1
|
import { provideDefaults as e } from "../../composables/defaults.js";
|
|
2
2
|
import { useGroup as t } from "../../composables/useGroup/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { QOverflow as n } from "../QOverflow/index.js";
|
|
4
|
+
import { TabsSymbol as r } from "./context.js";
|
|
5
|
+
import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, nextTick as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, openBlock as h, provide as g, ref as _, renderSlot as v, shallowRef as y, toRef as b, unref as x, useModel as S, useTemplateRef as C, watch as w, withCtx as T } from "vue";
|
|
5
6
|
//#region src/components/QTabs/QTabs.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
+
var E = ["id"], D = {
|
|
7
8
|
ref: "tabListHost",
|
|
8
9
|
class: "q-tabs__list"
|
|
9
|
-
},
|
|
10
|
+
}, O = { class: "q-tabs__panels" }, k = /*@__PURE__*/ l({
|
|
10
11
|
__name: "QTabs",
|
|
11
|
-
props: /*@__PURE__*/
|
|
12
|
+
props: /*@__PURE__*/ u({
|
|
12
13
|
id: {},
|
|
13
14
|
class: {},
|
|
14
15
|
direction: { default: "horizontal" },
|
|
@@ -20,168 +21,188 @@ var C = ["id"], w = {
|
|
|
20
21
|
modelModifiers: {}
|
|
21
22
|
}),
|
|
22
23
|
emits: ["update:modelValue"],
|
|
23
|
-
setup(
|
|
24
|
-
let
|
|
24
|
+
setup(l) {
|
|
25
|
+
let u = l, k = S(l, "modelValue"), A = C("tabListHost"), j = C("overflowRef"), M = i(() => j.value?.contentEl ?? null), N = y([]), P = _({
|
|
25
26
|
width: "0",
|
|
26
27
|
height: "0",
|
|
27
28
|
transform: "translate(0, 0)",
|
|
28
29
|
opacity: "0"
|
|
29
|
-
}),
|
|
30
|
-
active:
|
|
30
|
+
}), F = _(!1), I = null, { active: L } = t({
|
|
31
|
+
active: k,
|
|
31
32
|
required: !0
|
|
32
33
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}), e({ QTab: { disabled:
|
|
36
|
-
let
|
|
34
|
+
w(L, (e) => {
|
|
35
|
+
k.value = e;
|
|
36
|
+
}), e({ QTab: { disabled: b(u, "disabled") } });
|
|
37
|
+
let R = i(() => [
|
|
37
38
|
"q-tabs",
|
|
38
|
-
`q-tabs--${
|
|
39
|
-
`q-tabs--${
|
|
40
|
-
`q-tabs--align-${
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
`q-tabs--${u.direction}`,
|
|
40
|
+
`q-tabs--${u.variant}`,
|
|
41
|
+
`q-tabs--align-${u.align}`,
|
|
42
|
+
F.value ? "q-tabs--indicator-ready" : void 0,
|
|
43
|
+
u.class
|
|
43
44
|
]);
|
|
44
|
-
function
|
|
45
|
+
function z() {
|
|
46
|
+
let e = M.value;
|
|
47
|
+
e && (e.setAttribute("role", "tablist"), e.setAttribute("aria-orientation", u.direction));
|
|
48
|
+
}
|
|
49
|
+
function B(e) {
|
|
45
50
|
let t = e.tabRef.value;
|
|
46
51
|
return t ? "$el" in t ? t.$el : t : null;
|
|
47
52
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
...
|
|
53
|
+
function V() {
|
|
54
|
+
F.value = !1, P.value = {
|
|
55
|
+
...P.value,
|
|
51
56
|
opacity: "0",
|
|
52
57
|
width: "0",
|
|
53
58
|
height: "0"
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
|
-
function
|
|
57
|
-
if (
|
|
58
|
-
|
|
61
|
+
function H() {
|
|
62
|
+
if (u.variant !== "line" || !k.value) {
|
|
63
|
+
V();
|
|
59
64
|
return;
|
|
60
65
|
}
|
|
61
|
-
let e =
|
|
66
|
+
let e = N.value.find((e) => e.value === k.value);
|
|
62
67
|
if (!e) {
|
|
63
|
-
|
|
68
|
+
V();
|
|
64
69
|
return;
|
|
65
70
|
}
|
|
66
|
-
let t =
|
|
71
|
+
let t = B(e);
|
|
67
72
|
if (!t) {
|
|
68
|
-
|
|
73
|
+
V();
|
|
69
74
|
return;
|
|
70
75
|
}
|
|
71
|
-
let n =
|
|
72
|
-
n ?
|
|
76
|
+
let n = u.direction === "horizontal", r = F.value;
|
|
77
|
+
n ? P.value = {
|
|
73
78
|
width: `${t.offsetWidth}px`,
|
|
74
|
-
height: "
|
|
79
|
+
height: "var(--q-tabs-indicator-thickness)",
|
|
75
80
|
transform: `translate(${t.offsetLeft}px, 0)`,
|
|
76
81
|
opacity: "1"
|
|
77
|
-
} :
|
|
78
|
-
width: "
|
|
82
|
+
} : P.value = {
|
|
83
|
+
width: "var(--q-tabs-indicator-thickness)",
|
|
79
84
|
height: `${t.offsetHeight}px`,
|
|
80
85
|
transform: `translate(0, ${t.offsetTop}px)`,
|
|
81
86
|
opacity: "1"
|
|
82
|
-
}, r ||
|
|
83
|
-
|
|
87
|
+
}, r || d(() => {
|
|
88
|
+
P.value.opacity === "1" && (F.value = !0);
|
|
84
89
|
});
|
|
85
90
|
}
|
|
86
|
-
function
|
|
87
|
-
if (
|
|
88
|
-
|
|
91
|
+
function U() {
|
|
92
|
+
if (!k.value) return;
|
|
93
|
+
let e = N.value.find((e) => e.value === k.value);
|
|
94
|
+
if (!e) return;
|
|
95
|
+
let t = B(e);
|
|
96
|
+
t && j.value?.scrollElementIntoView(t);
|
|
97
|
+
}
|
|
98
|
+
function W() {
|
|
99
|
+
if (u.variant !== "line") {
|
|
100
|
+
I?.disconnect();
|
|
89
101
|
return;
|
|
90
102
|
}
|
|
91
|
-
|
|
92
|
-
|
|
103
|
+
I ? I.disconnect() : I = new ResizeObserver(() => {
|
|
104
|
+
H();
|
|
93
105
|
});
|
|
94
|
-
let e =
|
|
95
|
-
e &&
|
|
96
|
-
for (let e of
|
|
97
|
-
let t =
|
|
98
|
-
t &&
|
|
106
|
+
let e = A.value;
|
|
107
|
+
e && I.observe(e);
|
|
108
|
+
for (let e of N.value) {
|
|
109
|
+
let t = B(e);
|
|
110
|
+
t && I.observe(t);
|
|
99
111
|
}
|
|
100
112
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
113
|
+
function G() {
|
|
114
|
+
return N.value.filter((e) => !x(e.disabled));
|
|
103
115
|
}
|
|
104
|
-
function
|
|
105
|
-
let e =
|
|
106
|
-
e.length && (e.some((e) => e.value ===
|
|
116
|
+
function K() {
|
|
117
|
+
let e = G();
|
|
118
|
+
e.length && (e.some((e) => e.value === k.value) || (k.value = e[0].value));
|
|
107
119
|
}
|
|
108
|
-
let
|
|
109
|
-
function
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
let q;
|
|
121
|
+
function J() {
|
|
122
|
+
q ||= d(() => {
|
|
123
|
+
q = void 0, K();
|
|
112
124
|
});
|
|
113
125
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
116
|
-
|
|
126
|
+
function Y(e) {
|
|
127
|
+
if (N.value = [...N.value, e], !k.value) {
|
|
128
|
+
K();
|
|
117
129
|
return;
|
|
118
130
|
}
|
|
119
|
-
|
|
131
|
+
J();
|
|
120
132
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
133
|
+
function X(e) {
|
|
134
|
+
N.value = N.value.filter((t) => t.value !== e);
|
|
123
135
|
}
|
|
124
|
-
function
|
|
136
|
+
function Z(e, t) {
|
|
125
137
|
if (e === t) return;
|
|
126
|
-
let n =
|
|
138
|
+
let n = N.value.findIndex((t) => t.value === e);
|
|
127
139
|
if (n !== -1) {
|
|
128
|
-
if (
|
|
140
|
+
if (N.value = N.value.map((e, r) => r === n ? {
|
|
129
141
|
...e,
|
|
130
142
|
value: t
|
|
131
|
-
} : e),
|
|
132
|
-
|
|
143
|
+
} : e), k.value === e || k.value === t) {
|
|
144
|
+
k.value = t;
|
|
133
145
|
return;
|
|
134
146
|
}
|
|
135
|
-
|
|
147
|
+
K();
|
|
136
148
|
}
|
|
137
149
|
}
|
|
138
|
-
function
|
|
139
|
-
let n =
|
|
150
|
+
function Q(e, t) {
|
|
151
|
+
let n = G();
|
|
140
152
|
if (!n.length) return;
|
|
141
153
|
let r = n.findIndex((t) => t.value === e), i = n[r === -1 ? 0 : (r + t + n.length) % n.length];
|
|
142
154
|
i.select(), i.focus();
|
|
143
155
|
}
|
|
144
|
-
function
|
|
145
|
-
let e =
|
|
156
|
+
function $() {
|
|
157
|
+
let e = G()[0];
|
|
146
158
|
e && (e.select(), e.focus());
|
|
147
159
|
}
|
|
148
|
-
function
|
|
149
|
-
let e =
|
|
160
|
+
function ee() {
|
|
161
|
+
let e = G(), t = e[e.length - 1];
|
|
150
162
|
t && (t.select(), t.focus());
|
|
151
163
|
}
|
|
152
|
-
return
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
], () =>
|
|
159
|
-
|
|
160
|
-
}),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
class: "q-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
164
|
+
return w(() => N.value.map((e) => [e.value, x(e.disabled)]), () => J()), w(() => [
|
|
165
|
+
k.value,
|
|
166
|
+
N.value.length,
|
|
167
|
+
u.direction,
|
|
168
|
+
u.variant,
|
|
169
|
+
u.align
|
|
170
|
+
], () => d(() => {
|
|
171
|
+
H(), U();
|
|
172
|
+
}), { immediate: !0 }), w(() => [N.value.length, u.variant], () => d(W), { immediate: !0 }), w(() => [M.value, u.direction], () => z(), {
|
|
173
|
+
immediate: !0,
|
|
174
|
+
flush: "post"
|
|
175
|
+
}), m(() => {
|
|
176
|
+
I?.disconnect(), I = null;
|
|
177
|
+
}), g(r, {
|
|
178
|
+
tabListEl: M,
|
|
179
|
+
direction: i(() => u.direction),
|
|
180
|
+
register: Y,
|
|
181
|
+
unregister: X,
|
|
182
|
+
updateValue: Z,
|
|
183
|
+
focusAdjacent: Q,
|
|
184
|
+
focusFirst: $,
|
|
185
|
+
focusLast: ee
|
|
186
|
+
}), (e, t) => (h(), o("div", {
|
|
187
|
+
id: u.id,
|
|
188
|
+
class: f(R.value)
|
|
189
|
+
}, [s("div", D, [c(x(n), {
|
|
190
|
+
ref_key: "overflowRef",
|
|
191
|
+
ref: j,
|
|
192
|
+
class: "q-tabs__overflow",
|
|
193
|
+
direction: u.direction,
|
|
194
|
+
"scroll-mode": "item",
|
|
195
|
+
"content-class": "q-tabs__tablist"
|
|
196
|
+
}, {
|
|
197
|
+
default: T(() => [u.variant === "line" ? (h(), o("div", {
|
|
198
|
+
key: 0,
|
|
199
|
+
class: "q-tabs__indicator",
|
|
200
|
+
"aria-hidden": "true",
|
|
201
|
+
style: p(P.value)
|
|
202
|
+
}, null, 4)) : a("v-if", !0)]),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["direction"])], 512), s("div", O, [v(e.$slots, "default")])], 10, E));
|
|
184
205
|
}
|
|
185
206
|
});
|
|
186
207
|
//#endregion
|
|
187
|
-
export {
|
|
208
|
+
export { k as default };
|
|
@@ -41,7 +41,8 @@ export type TabsContext = {
|
|
|
41
41
|
/**
|
|
42
42
|
* DOM element with `role="tablist"` that owns teleported tab triggers.
|
|
43
43
|
*
|
|
44
|
-
*
|
|
44
|
+
* This is the composed `QOverflow` content track (`.q-tabs__tablist`). The line
|
|
45
|
+
* indicator is an `aria-hidden` sibling inside the same track so it scrolls with tabs.
|
|
45
46
|
*/
|
|
46
47
|
tabListEl: Ref<HTMLElement | null>;
|
|
47
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;QAAE,GAAG,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,WAAW,GAAG,IAAI,CAAC,CAAA;IAEvD;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/QTabs/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAE9B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;QAAE,GAAG,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,WAAW,GAAG,IAAI,CAAC,CAAA;IAEvD;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB;;;;;OAKG;IACH,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAElC;;;;OAIG;IACH,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,CAAA;IAEtC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAA;IAExC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;;OAKG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAEzD;;;;;OAKG;IACH,aAAa,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAE5D;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,WAAW,CAAoB,CAAA"}
|