@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.
Files changed (169) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/json/api.json +398 -86
  3. package/dist/manifest/components.json +1 -0
  4. package/dist/ui.css +2130 -1166
  5. package/dist/ui.esm.js +809 -786
  6. package/dist/ui.js +735 -712
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +735 -712
  9. package/dist/ui.scss +1137 -844
  10. package/esm/components/QBadge/QBadge.d.ts +1 -1
  11. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  12. package/esm/components/QBadge/QBadge.vue.js +14 -7
  13. package/esm/components/QBadge/index.d.ts +3 -3
  14. package/esm/components/QBadge/types.d.ts +11 -4
  15. package/esm/components/QBadge/types.d.ts.map +1 -1
  16. package/esm/components/QButton/QButton.d.ts +0 -1
  17. package/esm/components/QButton/QButton.d.ts.map +1 -1
  18. package/esm/components/QButton/QButton.vue.js +10 -4
  19. package/esm/components/QButton/index.d.ts +0 -3
  20. package/esm/components/QButton/index.d.ts.map +1 -1
  21. package/esm/components/QButton/types.d.ts +11 -4
  22. package/esm/components/QButton/types.d.ts.map +1 -1
  23. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  24. package/esm/components/QButtonGroup/QButtonGroup.vue.js +2 -0
  25. package/esm/components/QButtonGroup/types.d.ts +9 -1
  26. package/esm/components/QButtonGroup/types.d.ts.map +1 -1
  27. package/esm/components/QCheckbox/QCheckbox.d.ts +0 -1
  28. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  29. package/esm/components/QCheckbox/QCheckbox.vue.js +2 -2
  30. package/esm/components/QCheckbox/index.d.ts +3 -6
  31. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  32. package/esm/components/QCheckbox/types.d.ts +4 -3
  33. package/esm/components/QCheckbox/types.d.ts.map +1 -1
  34. package/esm/components/QCollapsible/types.d.ts +1 -1
  35. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  36. package/esm/components/QCombobox/QCombobox.d.ts +6 -8
  37. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  38. package/esm/components/QCombobox/QCombobox.vue.js +1 -1
  39. package/esm/components/QCombobox/index.d.ts +3 -4
  40. package/esm/components/QCombobox/index.d.ts.map +1 -1
  41. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +18 -24
  42. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  43. package/esm/components/QDateTimePicker/index.d.ts +9 -12
  44. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  45. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  46. package/esm/components/QDialog/QDialog.vue.js +6 -1
  47. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
  48. package/esm/components/QDialog/QDialogProvider.vue.js +1 -0
  49. package/esm/components/QDialog/index.d.ts +3 -0
  50. package/esm/components/QDialog/index.d.ts.map +1 -1
  51. package/esm/components/QDialog/types.d.ts +14 -0
  52. package/esm/components/QDialog/types.d.ts.map +1 -1
  53. package/esm/components/QDropdownMenu/types.d.ts +1 -1
  54. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  55. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  56. package/esm/components/QIcon/QIcon.vue.js +9 -4
  57. package/esm/components/QList/QListItem.d.ts.map +1 -1
  58. package/esm/components/QList/QListItem.vue.js +1 -0
  59. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  60. package/esm/components/QObfuscation/QObfuscation.vue.js +0 -1
  61. package/esm/components/QOverflow/QOverflow.d.ts +21 -1
  62. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
  63. package/esm/components/QOverflow/QOverflow.vue.js +109 -96
  64. package/esm/components/QOverflow/index.d.ts +12 -3
  65. package/esm/components/QOverflow/index.d.ts.map +1 -1
  66. package/esm/components/QOverflow/types.d.ts +11 -2
  67. package/esm/components/QOverflow/types.d.ts.map +1 -1
  68. package/esm/components/QOverlay/QOverlay.d.ts +0 -1
  69. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  70. package/esm/components/QOverlay/QOverlay.vue.js +90 -90
  71. package/esm/components/QOverlay/index.d.ts +0 -3
  72. package/esm/components/QOverlay/index.d.ts.map +1 -1
  73. package/esm/components/QOverlay/types.d.ts +5 -3
  74. package/esm/components/QOverlay/types.d.ts.map +1 -1
  75. package/esm/components/QPhoneField/QPhoneField.d.ts +20 -16
  76. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  77. package/esm/components/QPhoneField/index.d.ts +10 -8
  78. package/esm/components/QPhoneField/index.d.ts.map +1 -1
  79. package/esm/components/QPopover/types.d.ts +1 -1
  80. package/esm/components/QPopover/types.d.ts.map +1 -1
  81. package/esm/components/QProgress/QProgress.d.ts +21 -0
  82. package/esm/components/QProgress/QProgress.d.ts.map +1 -0
  83. package/esm/components/QProgress/QProgress.vue.js +108 -0
  84. package/esm/components/QProgress/QProgress2.vue.js +5 -0
  85. package/esm/components/QProgress/index.d.ts +45 -0
  86. package/esm/components/QProgress/index.d.ts.map +1 -0
  87. package/esm/components/QProgress/index.js +6 -0
  88. package/esm/components/QProgress/types.d.ts +78 -0
  89. package/esm/components/QProgress/types.d.ts.map +1 -0
  90. package/esm/components/QRadioGroup/QRadioButton.d.ts +0 -1
  91. package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
  92. package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
  93. package/esm/components/QRadioGroup/QRadioGroup.d.ts +1 -1
  94. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
  95. package/esm/components/QRadioGroup/QRadioGroup.vue.js +55 -46
  96. package/esm/components/QRadioGroup/index.d.ts +9 -36
  97. package/esm/components/QRadioGroup/index.d.ts.map +1 -1
  98. package/esm/components/QRadioGroup/types.d.ts +15 -24
  99. package/esm/components/QRadioGroup/types.d.ts.map +1 -1
  100. package/esm/components/QRemoveScrollBar/constants.d.ts +1 -1
  101. package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -1
  102. package/esm/components/QRemoveScrollBar/constants.js +1 -1
  103. package/esm/components/QSelect/QSelect.d.ts +20 -16
  104. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  105. package/esm/components/QSelect/QSelect.vue.js +9 -1
  106. package/esm/components/QSelect/index.d.ts +10 -8
  107. package/esm/components/QSelect/index.d.ts.map +1 -1
  108. package/esm/components/QSidebar/QSidebar.d.ts +0 -1
  109. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  110. package/esm/components/QSidebar/QSidebar.vue.js +2 -2
  111. package/esm/components/QSidebar/QSidebarAnchor.d.ts +2 -1
  112. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
  113. package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
  114. package/esm/components/QSidebar/QSidebarItem.d.ts +12 -6
  115. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  116. package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
  117. package/esm/components/QSidebar/index.d.ts +6 -6
  118. package/esm/components/QSidebar/index.d.ts.map +1 -1
  119. package/esm/components/QSidebar/types.d.ts +3 -1
  120. package/esm/components/QSidebar/types.d.ts.map +1 -1
  121. package/esm/components/QSwitch/QSwitch.d.ts +3 -2
  122. package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
  123. package/esm/components/QSwitch/QSwitch.vue.js +34 -26
  124. package/esm/components/QSwitch/index.d.ts +5 -4
  125. package/esm/components/QSwitch/index.d.ts.map +1 -1
  126. package/esm/components/QSwitch/types.d.ts +4 -2
  127. package/esm/components/QSwitch/types.d.ts.map +1 -1
  128. package/esm/components/QTabs/QTab.d.ts +6 -8
  129. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  130. package/esm/components/QTabs/QTabs.d.ts +177 -2
  131. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  132. package/esm/components/QTabs/QTabs.vue.js +127 -106
  133. package/esm/components/QTabs/context.d.ts +2 -1
  134. package/esm/components/QTabs/context.d.ts.map +1 -1
  135. package/esm/components/QTabs/index.d.ts +91 -5
  136. package/esm/components/QTabs/index.d.ts.map +1 -1
  137. package/esm/components/QToggle/QToggle.vue.js +2 -1
  138. package/esm/components/QToggle/index.d.ts +6 -3
  139. package/esm/components/QToggle/index.d.ts.map +1 -1
  140. package/esm/components/QToggleGroup/QToggleGroup.vue.js +1 -0
  141. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -0
  142. package/esm/components/QToggleGroup/index.d.ts +3 -0
  143. package/esm/components/QToggleGroup/index.d.ts.map +1 -1
  144. package/esm/components/QTooltip/types.d.ts +1 -1
  145. package/esm/components/QTooltip/types.d.ts.map +1 -1
  146. package/esm/components/__internal__/QClearButton/QClearButton.vue.js +1 -1
  147. package/esm/components/index.d.ts +1 -0
  148. package/esm/components/index.d.ts.map +1 -1
  149. package/esm/components/index.js +34 -32
  150. package/esm/composables/useSafeTriangle/index.d.ts +1 -1
  151. package/esm/composables/useSafeTriangle/index.d.ts.map +1 -1
  152. package/esm/index.d.ts +1 -0
  153. package/esm/templates/theme.js +11 -11
  154. package/esm/types/component.d.ts +7 -0
  155. package/esm/types/component.d.ts.map +1 -1
  156. package/esm/utils/color/theme-colors.d.ts +5 -5
  157. package/esm/utils/density.d.ts +12 -0
  158. package/esm/utils/density.d.ts.map +1 -0
  159. package/esm/utils/density.js +23 -0
  160. package/esm/utils/index.d.ts +1 -0
  161. package/esm/utils/index.d.ts.map +1 -1
  162. package/esm/utils/index.js +6 -2
  163. package/esm/{composables → utils}/overlay.d.ts +12 -0
  164. package/esm/utils/overlay.d.ts.map +1 -0
  165. package/esm/{composables → utils}/overlay.js +10 -2
  166. package/esm/utils/safeTriangle.d.ts +1 -1
  167. package/esm/utils/safeTriangle.d.ts.map +1 -1
  168. package/package.json +1 -1
  169. 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
- tabListEl: HTMLDivElement;
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
- tabListEl: HTMLDivElement;
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":"AAuBA;AA2YC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAiBzC,KAAK,WAAW,GAAG,UAAU,CAAC;AA4V/B,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmDT,OAAO,IAA6B;;yBAZrB,GAAG;;;;;;;EAiB/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;kBAUnB,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
+ {"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 { TabsSymbol as n } from "./context.js";
4
- import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeModels as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, provide as m, ref as h, renderSlot as g, shallowRef as _, toRef as v, unref as y, useModel as b, useTemplateRef as x, watch as S } from "vue";
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 C = ["id"], w = {
7
+ var E = ["id"], D = {
7
8
  ref: "tabListHost",
8
9
  class: "q-tabs__list"
9
- }, T = ["aria-orientation"], E = { class: "q-tabs__panels" }, D = /*@__PURE__*/ s({
10
+ }, O = { class: "q-tabs__panels" }, k = /*@__PURE__*/ l({
10
11
  __name: "QTabs",
11
- props: /*@__PURE__*/ c({
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(s) {
24
- let c = s, D = b(s, "modelValue"), O = x("tabListHost"), k = x("tabListEl"), A = _([]), j = h({
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
- }), M = h(!1), N = null, { active: P } = t({
30
- active: D,
30
+ }), F = _(!1), I = null, { active: L } = t({
31
+ active: k,
31
32
  required: !0
32
33
  });
33
- S(P, (e) => {
34
- D.value = e;
35
- }), e({ QTab: { disabled: v(c, "disabled") } });
36
- let F = r(() => [
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--${c.direction}`,
39
- `q-tabs--${c.variant}`,
40
- `q-tabs--align-${c.align}`,
41
- M.value ? "q-tabs--indicator-ready" : void 0,
42
- c.class
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 I(e) {
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 L() {
49
- M.value = !1, j.value = {
50
- ...j.value,
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 R() {
57
- if (c.variant !== "line" || !D.value) {
58
- L();
61
+ function H() {
62
+ if (u.variant !== "line" || !k.value) {
63
+ V();
59
64
  return;
60
65
  }
61
- let e = A.value.find((e) => e.value === D.value);
66
+ let e = N.value.find((e) => e.value === k.value);
62
67
  if (!e) {
63
- L();
68
+ V();
64
69
  return;
65
70
  }
66
- let t = I(e);
71
+ let t = B(e);
67
72
  if (!t) {
68
- L();
73
+ V();
69
74
  return;
70
75
  }
71
- let n = c.direction === "horizontal", r = M.value;
72
- n ? j.value = {
76
+ let n = u.direction === "horizontal", r = F.value;
77
+ n ? P.value = {
73
78
  width: `${t.offsetWidth}px`,
74
- height: "4px",
79
+ height: "var(--q-tabs-indicator-thickness)",
75
80
  transform: `translate(${t.offsetLeft}px, 0)`,
76
81
  opacity: "1"
77
- } : j.value = {
78
- width: "4px",
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 || l(() => {
83
- j.value.opacity === "1" && (M.value = !0);
87
+ }, r || d(() => {
88
+ P.value.opacity === "1" && (F.value = !0);
84
89
  });
85
90
  }
86
- function z() {
87
- if (c.variant !== "line") {
88
- N?.disconnect();
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
- N ? N.disconnect() : N = new ResizeObserver(() => {
92
- R();
103
+ I ? I.disconnect() : I = new ResizeObserver(() => {
104
+ H();
93
105
  });
94
- let e = O.value;
95
- e && N.observe(e);
96
- for (let e of A.value) {
97
- let t = I(e);
98
- t && N.observe(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 B() {
102
- return A.value.filter((e) => !y(e.disabled));
113
+ function G() {
114
+ return N.value.filter((e) => !x(e.disabled));
103
115
  }
104
- function V() {
105
- let e = B();
106
- e.length && (e.some((e) => e.value === D.value) || (D.value = e[0].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 H;
109
- function U() {
110
- H ||= l(() => {
111
- H = void 0, V();
120
+ let q;
121
+ function J() {
122
+ q ||= d(() => {
123
+ q = void 0, K();
112
124
  });
113
125
  }
114
- function W(e) {
115
- if (A.value = [...A.value, e], !D.value) {
116
- V();
126
+ function Y(e) {
127
+ if (N.value = [...N.value, e], !k.value) {
128
+ K();
117
129
  return;
118
130
  }
119
- U();
131
+ J();
120
132
  }
121
- function G(e) {
122
- A.value = A.value.filter((t) => t.value !== e);
133
+ function X(e) {
134
+ N.value = N.value.filter((t) => t.value !== e);
123
135
  }
124
- function K(e, t) {
136
+ function Z(e, t) {
125
137
  if (e === t) return;
126
- let n = A.value.findIndex((t) => t.value === e);
138
+ let n = N.value.findIndex((t) => t.value === e);
127
139
  if (n !== -1) {
128
- if (A.value = A.value.map((e, r) => r === n ? {
140
+ if (N.value = N.value.map((e, r) => r === n ? {
129
141
  ...e,
130
142
  value: t
131
- } : e), D.value === e || D.value === t) {
132
- D.value = t;
143
+ } : e), k.value === e || k.value === t) {
144
+ k.value = t;
133
145
  return;
134
146
  }
135
- V();
147
+ K();
136
148
  }
137
149
  }
138
- function q(e, t) {
139
- let n = B();
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 J() {
145
- let e = B()[0];
156
+ function $() {
157
+ let e = G()[0];
146
158
  e && (e.select(), e.focus());
147
159
  }
148
- function Y() {
149
- let e = B(), t = e[e.length - 1];
160
+ function ee() {
161
+ let e = G(), t = e[e.length - 1];
150
162
  t && (t.select(), t.focus());
151
163
  }
152
- return S(() => A.value.map((e) => [e.value, y(e.disabled)]), () => U()), S(() => [
153
- D.value,
154
- A.value.length,
155
- c.direction,
156
- c.variant,
157
- c.align
158
- ], () => l(R), { immediate: !0 }), S(() => [A.value.length, c.variant], () => l(z), { immediate: !0 }), f(() => {
159
- N?.disconnect(), N = null;
160
- }), m(n, {
161
- tabListEl: k,
162
- direction: r(() => c.direction),
163
- register: W,
164
- unregister: G,
165
- updateValue: K,
166
- focusAdjacent: q,
167
- focusFirst: J,
168
- focusLast: Y
169
- }), (e, t) => (p(), a("div", {
170
- id: c.id,
171
- class: u(F.value)
172
- }, [o("div", w, [o("div", {
173
- ref_key: "tabListEl",
174
- ref: k,
175
- class: "q-tabs__tablist",
176
- role: "tablist",
177
- "aria-orientation": c.direction
178
- }, null, 8, T), c.variant === "line" ? (p(), a("div", {
179
- key: 0,
180
- class: "q-tabs__indicator",
181
- "aria-hidden": "true",
182
- style: d(j.value)
183
- }, null, 4)) : i("v-if", !0)], 512), o("div", E, [g(e.$slots, "default")])], 10, C));
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 { D as default };
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
- * The line indicator lives on the outer `.q-tabs__list` host, not here.
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;;;;OAIG;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"}
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"}