@quidgest/ui 0.17.9 → 0.19.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 +79 -0
- package/dist/json/api.json +302 -143
- package/dist/manifest/components.json +4 -1
- package/dist/ui.css +460 -167
- package/dist/ui.esm.js +618 -631
- package/dist/ui.js +490 -504
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +490 -504
- package/dist/ui.scss +439 -167
- package/esm/components/QAccordion/QAccordionItem.vue.js +1 -0
- package/esm/components/QCarousel/QCarousel.vue.js +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +2 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts +2 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +50 -47
- package/esm/components/QCollapsible/constants.d.ts +6 -0
- package/esm/components/QCollapsible/constants.d.ts.map +1 -1
- package/esm/components/QCollapsible/constants.js +3 -2
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +11 -1
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +505 -597
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +32 -16
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +179 -86
- package/esm/components/QDropdownMenu/types.d.ts +6 -0
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/types.d.ts +3 -0
- package/esm/components/QField/types.d.ts.map +1 -1
- package/esm/components/QGrid/QCol.vue.js +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +19 -17
- package/esm/components/QLabel/types.d.ts +3 -0
- package/esm/components/QLabel/types.d.ts.map +1 -1
- package/esm/components/{QGroupBox/QGroupBox.d.ts → QSection/QSection.d.ts} +4 -4
- package/esm/components/QSection/QSection.d.ts.map +1 -0
- package/esm/components/{QGroupBox/QGroupBox.vue.js → QSection/QSection.vue.js} +8 -8
- package/esm/components/QSection/QSection2.vue.js +5 -0
- package/esm/components/{QGroupBox → QSection}/index.d.ts +8 -8
- package/esm/components/QSection/index.d.ts.map +1 -0
- package/esm/components/QSection/index.js +6 -0
- package/esm/components/QSection/types.d.ts +32 -0
- package/esm/components/QSection/types.d.ts.map +1 -0
- package/esm/components/QSidebar/QSidebar.d.ts +53 -6
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +76 -106
- package/esm/components/QSidebar/QSidebarAnchor.d.ts +24 -210
- package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +47 -59
- package/esm/components/QSidebar/QSidebarItem.d.ts +213 -0
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -0
- package/esm/components/QSidebar/QSidebarItem.vue.js +130 -0
- package/esm/components/QSidebar/QSidebarItem2.vue.js +5 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts +1 -7
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +4 -10
- package/esm/components/QSidebar/context.d.ts +108 -0
- package/esm/components/QSidebar/context.d.ts.map +1 -0
- package/esm/components/QSidebar/context.js +4 -0
- package/esm/components/QSidebar/index.d.ts +166 -8
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/index.js +3 -2
- package/esm/components/QSidebar/types.d.ts +77 -42
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts +173 -0
- package/esm/components/QTabs/QTab.d.ts.map +1 -0
- package/esm/components/QTabs/QTab.vue.js +123 -0
- package/esm/components/QTabs/QTab2.vue.js +5 -0
- package/esm/components/QTabs/QTabs.d.ts +37 -0
- package/esm/components/QTabs/QTabs.d.ts.map +1 -0
- package/esm/components/QTabs/QTabs.vue.js +162 -0
- package/esm/components/QTabs/QTabs2.vue.js +5 -0
- package/esm/components/QTabs/constants.d.ts +5 -0
- package/esm/components/QTabs/constants.d.ts.map +1 -0
- package/esm/components/QTabs/context.d.ts +85 -0
- package/esm/components/QTabs/context.d.ts.map +1 -0
- package/esm/components/QTabs/context.js +4 -0
- package/esm/components/QTabs/index.d.ts +166 -0
- package/esm/components/QTabs/index.d.ts.map +1 -0
- package/esm/components/QTabs/index.js +7 -0
- package/esm/components/QTabs/types.d.ts +108 -0
- package/esm/components/QTabs/types.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts +7 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +24 -0
- package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator2.vue.js +5 -0
- package/esm/components/__internal__/QRequiredIndicator/constants.d.ts +7 -0
- package/esm/components/__internal__/QRequiredIndicator/constants.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/constants.js +4 -0
- package/esm/components/__internal__/QRequiredIndicator/index.d.ts +6 -0
- package/esm/components/__internal__/QRequiredIndicator/index.d.ts.map +1 -0
- package/esm/components/__internal__/QRequiredIndicator/index.js +6 -0
- package/esm/components/__internal__/QRequiredIndicator/types.d.ts +18 -0
- package/esm/components/__internal__/QRequiredIndicator/types.d.ts.map +1 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +10 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts.map +1 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +31 -0
- package/esm/components/__internal__/QSafeTriangle/QSafeTriangle2.vue.js +5 -0
- package/esm/components/__internal__/QSafeTriangle/index.d.ts +10 -0
- package/esm/components/__internal__/QSafeTriangle/index.d.ts.map +1 -0
- package/esm/components/__internal__/QSafeTriangle/index.js +6 -0
- package/esm/components/__internal__/QSafeTriangle/types.d.ts +33 -0
- package/esm/components/__internal__/QSafeTriangle/types.d.ts.map +1 -0
- package/esm/components/index.d.ts +2 -1
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +41 -37
- package/esm/composables/useSafeTriangle/index.d.ts +31 -0
- package/esm/composables/useSafeTriangle/index.d.ts.map +1 -0
- package/esm/composables/useSafeTriangle/index.js +87 -0
- package/esm/index.d.ts +4 -1
- package/esm/utils/date.d.ts +36 -1
- package/esm/utils/date.d.ts.map +1 -1
- package/esm/utils/date.js +90 -1
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +30 -24
- package/esm/utils/mask.d.ts +17 -0
- package/esm/utils/mask.d.ts.map +1 -0
- package/esm/utils/mask.js +154 -0
- package/esm/utils/safeTriangle.d.ts +68 -0
- package/esm/utils/safeTriangle.d.ts.map +1 -0
- package/esm/utils/safeTriangle.js +83 -0
- package/package.json +7 -6
- package/esm/components/QGroupBox/QGroupBox.d.ts.map +0 -1
- package/esm/components/QGroupBox/QGroupBox2.vue.js +0 -5
- package/esm/components/QGroupBox/index.d.ts.map +0 -1
- package/esm/components/QGroupBox/index.js +0 -6
- package/esm/components/QGroupBox/types.d.ts +0 -32
- package/esm/components/QGroupBox/types.d.ts.map +0 -1
- package/esm/composables/useInputMask/index.d.ts +0 -50
- package/esm/composables/useInputMask/index.d.ts.map +0 -1
- package/esm/composables/useInputMask/index.js +0 -408
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { DEFAULT_ICONS } from './constants';
|
|
2
2
|
import { Item } from '../QList';
|
|
3
3
|
import { QDropdownMenuContentProps } from '.';
|
|
4
|
-
import { nextTick } from 'vue';
|
|
4
|
+
import { ComponentPublicInstance, nextTick } from 'vue';
|
|
5
5
|
type __VLS_Props = QDropdownMenuContentProps;
|
|
6
|
+
/**
|
|
7
|
+
* Opens/highlights the item under the pointer. Needed when the pointer
|
|
8
|
+
* arrives via the safe triangle (or a submenu opens under the cursor),
|
|
9
|
+
* because `mouseenter` does not fire in those cases.
|
|
10
|
+
*
|
|
11
|
+
* @param clientX - The pointer x coordinate.
|
|
12
|
+
* @param clientY - The pointer y coordinate.
|
|
13
|
+
*/
|
|
14
|
+
declare function syncHoverFromPoint(clientX: number, clientY: number): void;
|
|
6
15
|
type __VLS_PublicProps = {
|
|
7
16
|
modelValue?: boolean;
|
|
8
17
|
'highlighted'?: any;
|
|
@@ -29,7 +38,8 @@ declare function __VLS_template(): {
|
|
|
29
38
|
}): void;
|
|
30
39
|
};
|
|
31
40
|
refs: {
|
|
32
|
-
|
|
41
|
+
body: HTMLDivElement;
|
|
42
|
+
list: ({
|
|
33
43
|
$: import('vue').ComponentInternalInstance;
|
|
34
44
|
$data: {};
|
|
35
45
|
$props: {
|
|
@@ -80,8 +90,8 @@ declare function __VLS_template(): {
|
|
|
80
90
|
$slots: Readonly<{
|
|
81
91
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
82
92
|
}>;
|
|
83
|
-
$root:
|
|
84
|
-
$parent:
|
|
93
|
+
$root: ComponentPublicInstance | null;
|
|
94
|
+
$parent: ComponentPublicInstance | null;
|
|
85
95
|
$host: Element | null;
|
|
86
96
|
$emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
|
|
87
97
|
$el: HTMLLIElement;
|
|
@@ -112,7 +122,7 @@ declare function __VLS_template(): {
|
|
|
112
122
|
unmounted?: (() => void) | (() => void)[];
|
|
113
123
|
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
114
124
|
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
115
|
-
errorCaptured?: ((err: unknown, instance:
|
|
125
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
116
126
|
};
|
|
117
127
|
$forceUpdate: () => void;
|
|
118
128
|
$nextTick: typeof nextTick;
|
|
@@ -136,8 +146,8 @@ declare function __VLS_template(): {
|
|
|
136
146
|
$slots: Readonly<{
|
|
137
147
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
138
148
|
}>;
|
|
139
|
-
$root:
|
|
140
|
-
$parent:
|
|
149
|
+
$root: ComponentPublicInstance | null;
|
|
150
|
+
$parent: ComponentPublicInstance | null;
|
|
141
151
|
$host: Element | null;
|
|
142
152
|
$emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
143
153
|
$el: any;
|
|
@@ -175,7 +185,7 @@ declare function __VLS_template(): {
|
|
|
175
185
|
unmounted?: (() => void) | (() => void)[];
|
|
176
186
|
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
177
187
|
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
178
|
-
errorCaptured?: ((err: unknown, instance:
|
|
188
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
179
189
|
};
|
|
180
190
|
$forceUpdate: () => void;
|
|
181
191
|
$nextTick: typeof nextTick;
|
|
@@ -212,7 +222,12 @@ declare function __VLS_template(): {
|
|
|
212
222
|
rootEl: any;
|
|
213
223
|
};
|
|
214
224
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
215
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
225
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
226
|
+
getMenuRect: () => DOMRect | null;
|
|
227
|
+
getMenuRoot: () => Element | null;
|
|
228
|
+
hasOpenSubmenu: () => boolean;
|
|
229
|
+
syncHoverFromPoint: typeof syncHoverFromPoint;
|
|
230
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
216
231
|
"update:modelValue": (value: boolean) => any;
|
|
217
232
|
"update:highlighted": (value: any) => any;
|
|
218
233
|
} & {
|
|
@@ -241,7 +256,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
241
256
|
trigger: import('..').QOverlayTrigger;
|
|
242
257
|
depth: number;
|
|
243
258
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
244
|
-
|
|
259
|
+
body: HTMLDivElement;
|
|
260
|
+
list: ({
|
|
245
261
|
$: import('vue').ComponentInternalInstance;
|
|
246
262
|
$data: {};
|
|
247
263
|
$props: {
|
|
@@ -292,8 +308,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
292
308
|
$slots: Readonly<{
|
|
293
309
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
294
310
|
}>;
|
|
295
|
-
$root:
|
|
296
|
-
$parent:
|
|
311
|
+
$root: ComponentPublicInstance | null;
|
|
312
|
+
$parent: ComponentPublicInstance | null;
|
|
297
313
|
$host: Element | null;
|
|
298
314
|
$emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click") => void);
|
|
299
315
|
$el: HTMLLIElement;
|
|
@@ -324,7 +340,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
324
340
|
unmounted?: (() => void) | (() => void)[];
|
|
325
341
|
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
326
342
|
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
327
|
-
errorCaptured?: ((err: unknown, instance:
|
|
343
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
328
344
|
};
|
|
329
345
|
$forceUpdate: () => void;
|
|
330
346
|
$nextTick: typeof nextTick;
|
|
@@ -348,8 +364,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
348
364
|
$slots: Readonly<{
|
|
349
365
|
[name: string]: import('vue').Slot<any> | undefined;
|
|
350
366
|
}>;
|
|
351
|
-
$root:
|
|
352
|
-
$parent:
|
|
367
|
+
$root: ComponentPublicInstance | null;
|
|
368
|
+
$parent: ComponentPublicInstance | null;
|
|
353
369
|
$host: Element | null;
|
|
354
370
|
$emit: ((event: "update:modelValue", val: any) => void) & ((event: "click", key: any) => void) & ((event: "mouseenter:item", key: any) => void);
|
|
355
371
|
$el: any;
|
|
@@ -387,7 +403,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
387
403
|
unmounted?: (() => void) | (() => void)[];
|
|
388
404
|
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
389
405
|
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
390
|
-
errorCaptured?: ((err: unknown, instance:
|
|
406
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
391
407
|
};
|
|
392
408
|
$forceUpdate: () => void;
|
|
393
409
|
$nextTick: typeof nextTick;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QDropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenuContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QDropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/QDropdownMenuContent.vue"],"names":[],"mappings":"AAiGA;AA8gBC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAS3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAA+B,yBAAyB,EAAE,MAAM,GAAG,CAAA;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAA;AAGlD,OAAO,EAAiB,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAGpE,KAAK,WAAW,GAAG,yBAAyB,CAAC;AAsL7C;;;;;;;GAOG;AACH,iBAAS,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAQ3D;AAyPF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;CACnB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAkPT,OAAO,IAA6B;;mBAhqBrC,IAAI;kBACL,IAAI;oBACF;YAAE,IAAI,EAAE,IAAI,CAAA;SAAE,GAAG,IAAI;6BACZ;YAAE,IAAI,EAAE,IAAI,CAAA;SAAE,GAAG,IAAI;;mBAH/B,IAAI;kBACL,IAAI;oBACF;YAAE,IAAI,EAAE,IAAI,CAAA;SAAE,GAAG,IAAI;6BACZ;YAAE,IAAI,EAAE,IAAI,CAAA;SAAE,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAmbH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEzH,GADE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCADuC,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEzH,GADE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8OD;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CApRoB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEzH,GADE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCADuC,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAEzH,GADE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8RA,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"}
|
|
@@ -2,14 +2,16 @@ import { QIcon as e } from "../QIcon/index.js";
|
|
|
2
2
|
import { QList as t } from "../QList/index.js";
|
|
3
3
|
import { QOverlay as n } from "../QOverlay/index.js";
|
|
4
4
|
import { DEFAULT_ICONS as r } from "./constants.js";
|
|
5
|
-
import {
|
|
5
|
+
import { QSafeTriangle as i } from "../__internal__/QSafeTriangle/index.js";
|
|
6
|
+
import { useSafeTriangle as a } from "../../composables/useSafeTriangle/index.js";
|
|
7
|
+
import { Fragment as ee, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeModels as m, mergeProps as te, nextTick as h, normalizeClass as g, normalizeProps as _, openBlock as v, ref as y, renderSlot as b, resolveComponent as ne, toDisplayString as re, unref as x, useModel as S, useTemplateRef as C, watch as ie, withCtx as w, withModifiers as ae } from "vue";
|
|
6
8
|
//#region src/components/QDropdownMenu/QDropdownMenuContent.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
9
|
+
var oe = {
|
|
8
10
|
key: 0,
|
|
9
11
|
class: "q-dropdown-menu__extra"
|
|
10
|
-
},
|
|
12
|
+
}, T = /*@__PURE__*/ f({
|
|
11
13
|
__name: "QDropdownMenuContent",
|
|
12
|
-
props: /*@__PURE__*/
|
|
14
|
+
props: /*@__PURE__*/ m({
|
|
13
15
|
id: {},
|
|
14
16
|
class: {},
|
|
15
17
|
activator: {},
|
|
@@ -25,7 +27,7 @@ var O = {
|
|
|
25
27
|
trigger: { default: "hover" },
|
|
26
28
|
depth: { default: 0 },
|
|
27
29
|
icons: { default: () => r },
|
|
28
|
-
offset: { default:
|
|
30
|
+
offset: { default: 6 },
|
|
29
31
|
crossOffset: { default: -5 }
|
|
30
32
|
}, {
|
|
31
33
|
modelValue: { type: Boolean },
|
|
@@ -33,20 +35,83 @@ var O = {
|
|
|
33
35
|
highlighted: {},
|
|
34
36
|
highlightedModifiers: {}
|
|
35
37
|
}),
|
|
36
|
-
emits: /*@__PURE__*/
|
|
38
|
+
emits: /*@__PURE__*/ m([
|
|
37
39
|
"select",
|
|
38
40
|
"open",
|
|
39
41
|
"hide",
|
|
40
42
|
"focus-previous"
|
|
41
43
|
], ["update:modelValue", "update:highlighted"]),
|
|
42
|
-
setup(r, { emit:
|
|
43
|
-
let
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
setup(r, { expose: f, emit: m }) {
|
|
45
|
+
let T = r, E = m, D = S(r, "modelValue"), O = S(r, "highlighted"), k = y(void 0), A = y([]), se = o(() => T.depth === 0 ? 4 : T.offset), ce = o(() => T.depth === 0 ? void 0 : T.crossOffset), j = C("list"), M = C("body"), N = y(null), P = o(() => "right-start"), F = o(() => T.trigger !== "hover" || k.value === void 0 ? !1 : ((T.items?.find((e) => e[T.itemValue] === k.value))?.items?.length ?? 0) > 0);
|
|
46
|
+
function I(e) {
|
|
47
|
+
return "syncHoverFromPoint" in e && "getMenuRect" in e && "getMenuRoot" in e && "hasOpenSubmenu" in e;
|
|
48
|
+
}
|
|
49
|
+
function L(e, t) {
|
|
50
|
+
if (e && k.value === t && I(e)) {
|
|
51
|
+
N.value = e, h(() => {
|
|
52
|
+
G();
|
|
53
|
+
let { x: e, y: t } = de();
|
|
54
|
+
N.value?.syncHoverFromPoint(e, t);
|
|
55
|
+
});
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
!e && k.value === t && (N.value = null);
|
|
59
|
+
}
|
|
60
|
+
function R() {
|
|
61
|
+
return N.value?.getMenuRect() ?? null;
|
|
62
|
+
}
|
|
63
|
+
function z() {
|
|
64
|
+
return N.value?.getMenuRoot() ?? null;
|
|
65
|
+
}
|
|
66
|
+
function B() {
|
|
67
|
+
return N.value?.hasOpenSubmenu() ?? !1;
|
|
68
|
+
}
|
|
69
|
+
let { visible: V, top: H, left: U, width: W, height: le, path: ue, refresh: G, getLastPointer: de } = a({
|
|
70
|
+
enabled: F,
|
|
71
|
+
placement: P,
|
|
72
|
+
getParentRect: () => M.value?.getBoundingClientRect() ?? null,
|
|
73
|
+
getContentRect: R,
|
|
74
|
+
getContentRoot: z,
|
|
75
|
+
shouldSuppressLeave: B,
|
|
76
|
+
onLeave: X,
|
|
77
|
+
onEnterContent: (e, t) => {
|
|
78
|
+
N.value?.syncHoverFromPoint(e, t);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
ie(k, () => {
|
|
82
|
+
N.value = null;
|
|
83
|
+
});
|
|
84
|
+
function fe(e, t) {
|
|
85
|
+
let n = M.value;
|
|
86
|
+
if (!n) return;
|
|
87
|
+
let r = document.elementsFromPoint(e, t);
|
|
88
|
+
for (let e of r) {
|
|
89
|
+
if (!(e instanceof Element)) continue;
|
|
90
|
+
let t = e.closest(".q-list-item");
|
|
91
|
+
if (!t || !n.contains(t) || t.closest(".q-dropdown-menu__body") !== n) continue;
|
|
92
|
+
let r = t.getAttribute("data-key");
|
|
93
|
+
if (r === null) continue;
|
|
94
|
+
let i = T.items?.find((e) => String(e[T.itemValue]) === r);
|
|
95
|
+
if (i) return i[T.itemValue];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function K(e, t) {
|
|
99
|
+
if (T.trigger !== "hover") return;
|
|
100
|
+
let n = fe(e, t);
|
|
101
|
+
n !== void 0 && q(n);
|
|
102
|
+
}
|
|
103
|
+
function pe(e) {
|
|
104
|
+
G(e.clientX, e.clientY), K(e.clientX, e.clientY);
|
|
105
|
+
}
|
|
106
|
+
function me(e) {
|
|
107
|
+
F.value && K(e.clientX, e.clientY), G(e.clientX, e.clientY);
|
|
108
|
+
}
|
|
109
|
+
function he(e) {
|
|
110
|
+
A.value = T.items?.find((t) => t[T.itemValue] === e)?.items ?? [];
|
|
111
|
+
let t = A.value.length > 0;
|
|
112
|
+
O.value = e, t ? $(e) : J(e);
|
|
113
|
+
}
|
|
114
|
+
function ge(e) {
|
|
50
115
|
if (e.key) switch ([
|
|
51
116
|
"Enter",
|
|
52
117
|
"ArrowDown",
|
|
@@ -55,117 +120,132 @@ var O = {
|
|
|
55
120
|
"ArrowRight"
|
|
56
121
|
].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key) {
|
|
57
122
|
case "ArrowRight":
|
|
58
|
-
let e =
|
|
59
|
-
|
|
123
|
+
let e = j.value?.getActiveItemIndex();
|
|
124
|
+
T.items && (e || e === 0) && T.items[e] && (O.value = T.items[e].key, $(T.items[e].key));
|
|
60
125
|
break;
|
|
61
126
|
case "ArrowLeft":
|
|
62
|
-
|
|
127
|
+
Z();
|
|
63
128
|
break;
|
|
64
129
|
case "Escape":
|
|
65
130
|
case "Tab":
|
|
66
|
-
|
|
131
|
+
Q();
|
|
67
132
|
break;
|
|
68
133
|
default: break;
|
|
69
134
|
}
|
|
70
135
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
136
|
+
function q(e) {
|
|
137
|
+
T.trigger === "hover" && (O.value = e, $(e));
|
|
73
138
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
139
|
+
function J(e) {
|
|
140
|
+
E("select", e), Q();
|
|
76
141
|
}
|
|
77
|
-
function
|
|
78
|
-
|
|
142
|
+
function Y() {
|
|
143
|
+
Z();
|
|
79
144
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
145
|
+
function X() {
|
|
146
|
+
k.value = void 0, O.value = void 0;
|
|
82
147
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
148
|
+
function Z() {
|
|
149
|
+
X(), D.value = !1, E("focus-previous");
|
|
85
150
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
151
|
+
function Q() {
|
|
152
|
+
Z(), E("hide");
|
|
88
153
|
}
|
|
89
|
-
function
|
|
90
|
-
|
|
154
|
+
function $(e) {
|
|
155
|
+
k.value = (T.items?.find((t) => t[T.itemValue] === e))?.items?.length ? e : void 0;
|
|
156
|
+
}
|
|
157
|
+
function _e() {
|
|
158
|
+
let e = T.items?.findIndex((e) => e[T.itemValue] === k.value);
|
|
91
159
|
if (!e && e !== 0) return;
|
|
92
|
-
let t =
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
function
|
|
96
|
-
h(() =>
|
|
97
|
-
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
return (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
160
|
+
let t = j.value?.getItem(e);
|
|
161
|
+
k.value = void 0, O.value = void 0, t?.focus();
|
|
162
|
+
}
|
|
163
|
+
function ve() {
|
|
164
|
+
h(() => j.value?.$el.focus());
|
|
165
|
+
}
|
|
166
|
+
function ye() {
|
|
167
|
+
E("open"), ve();
|
|
168
|
+
}
|
|
169
|
+
return f({
|
|
170
|
+
getMenuRect: () => {
|
|
171
|
+
let e = M.value;
|
|
172
|
+
return e ? (e.closest(".q-overlay") ?? e).getBoundingClientRect() : null;
|
|
173
|
+
},
|
|
174
|
+
getMenuRoot: () => M.value?.closest(".q-overlay") ?? M.value,
|
|
175
|
+
hasOpenSubmenu: () => k.value === void 0 ? !1 : ((T.items?.find((e) => e[T.itemValue] === k.value))?.items?.length ?? 0) > 0,
|
|
176
|
+
syncHoverFromPoint: K
|
|
177
|
+
}), (r, a) => {
|
|
178
|
+
let o = ne("q-dropdown-menu-content", !0);
|
|
179
|
+
return v(), s(x(n), {
|
|
180
|
+
id: T.id,
|
|
181
|
+
modelValue: D.value,
|
|
182
|
+
"onUpdate:modelValue": a[0] ||= (e) => D.value = e,
|
|
183
|
+
anchor: T.activator,
|
|
184
|
+
appearance: T.appearance,
|
|
185
|
+
inline: T.inline,
|
|
186
|
+
delay: T.delay,
|
|
187
|
+
offset: se.value,
|
|
188
|
+
"cross-offset": ce.value,
|
|
189
|
+
placement: T.placement,
|
|
190
|
+
transition: T.transition,
|
|
191
|
+
class: g(T.class),
|
|
192
|
+
trigger: "click",
|
|
116
193
|
"scroll-lock": "",
|
|
117
194
|
"non-modal": "",
|
|
118
|
-
onEnter:
|
|
119
|
-
onLeave:
|
|
195
|
+
onEnter: ye,
|
|
196
|
+
onLeave: Y
|
|
120
197
|
}, {
|
|
121
|
-
default:
|
|
198
|
+
default: w(() => [u("div", {
|
|
199
|
+
ref: "body",
|
|
122
200
|
class: "q-dropdown-menu__body",
|
|
123
201
|
"data-testid": "dropdown-content",
|
|
124
202
|
tabindex: "-1",
|
|
125
|
-
|
|
203
|
+
onPointerenter: pe,
|
|
204
|
+
onPointermove: me,
|
|
205
|
+
onKeydown: ae(ge, ["stop"])
|
|
126
206
|
}, [
|
|
127
|
-
b(
|
|
128
|
-
|
|
129
|
-
ref: "
|
|
207
|
+
b(r.$slots, "prepend"),
|
|
208
|
+
d(x(t), {
|
|
209
|
+
ref: "list",
|
|
130
210
|
class: "q-dropdown-menu__items",
|
|
131
|
-
highlighted:
|
|
132
|
-
items:
|
|
133
|
-
groups:
|
|
134
|
-
"item-label":
|
|
135
|
-
"item-value":
|
|
211
|
+
highlighted: O.value,
|
|
212
|
+
items: T.items,
|
|
213
|
+
groups: T.groups,
|
|
214
|
+
"item-label": T.itemLabel,
|
|
215
|
+
"item-value": T.itemValue,
|
|
136
216
|
selectable: !1,
|
|
137
217
|
"select-on-tab": !1,
|
|
138
|
-
onClick:
|
|
139
|
-
"onMouseenter:item":
|
|
218
|
+
onClick: he,
|
|
219
|
+
"onMouseenter:item": q
|
|
140
220
|
}, {
|
|
141
|
-
item:
|
|
142
|
-
"item.append":
|
|
221
|
+
item: w(({ item: e }) => [b(r.$slots, "item", { item: e })]),
|
|
222
|
+
"item.append": w(({ item: t, element: n }) => [b(r.$slots, "item.append", { item: t }, () => [t.extraInfo ? (v(), l("span", oe, re(t.extraInfo), 1)) : c("v-if", !0)]), t.items?.length > 0 ? (v(), l(ee, { key: 0 }, [d(x(e), _(p(T.icons.expand)), null, 16), k.value === t.key ? (v(), s(o, te({
|
|
143
223
|
key: 0,
|
|
144
|
-
|
|
145
|
-
|
|
224
|
+
ref: (e) => L(e, t.key),
|
|
225
|
+
"model-value": ""
|
|
226
|
+
}, T, {
|
|
146
227
|
activator: n,
|
|
147
228
|
items: t.items,
|
|
148
229
|
groups: t.groups,
|
|
149
|
-
depth:
|
|
150
|
-
delay:
|
|
230
|
+
depth: T.depth + 1,
|
|
231
|
+
delay: T.delay,
|
|
151
232
|
placement: "right-start",
|
|
152
233
|
"non-modal": "",
|
|
153
234
|
inline: "",
|
|
154
|
-
onHide:
|
|
155
|
-
onSelect:
|
|
156
|
-
onFocusPrevious:
|
|
235
|
+
onHide: Q,
|
|
236
|
+
onSelect: J,
|
|
237
|
+
onFocusPrevious: _e
|
|
157
238
|
}), {
|
|
158
|
-
item:
|
|
159
|
-
"item.append":
|
|
239
|
+
item: w((e) => [b(r.$slots, "item", _(p(e)))]),
|
|
240
|
+
"item.append": w((e) => [b(r.$slots, "item.append", _(p(e)))]),
|
|
160
241
|
_: 3
|
|
161
242
|
}, 16, [
|
|
162
|
-
"model-value",
|
|
163
243
|
"activator",
|
|
164
244
|
"items",
|
|
165
245
|
"groups",
|
|
166
246
|
"depth",
|
|
167
247
|
"delay"
|
|
168
|
-
])) :
|
|
248
|
+
])) : c("v-if", !0)], 64)) : c("v-if", !0)]),
|
|
169
249
|
_: 3
|
|
170
250
|
}, 8, [
|
|
171
251
|
"highlighted",
|
|
@@ -174,8 +254,21 @@ var O = {
|
|
|
174
254
|
"item-label",
|
|
175
255
|
"item-value"
|
|
176
256
|
]),
|
|
177
|
-
b(
|
|
178
|
-
],
|
|
257
|
+
b(r.$slots, "append")
|
|
258
|
+
], 544), x(V) ? (v(), s(x(i), {
|
|
259
|
+
key: 0,
|
|
260
|
+
top: x(H),
|
|
261
|
+
left: x(U),
|
|
262
|
+
width: x(W),
|
|
263
|
+
height: x(le),
|
|
264
|
+
path: x(ue)
|
|
265
|
+
}, null, 8, [
|
|
266
|
+
"top",
|
|
267
|
+
"left",
|
|
268
|
+
"width",
|
|
269
|
+
"height",
|
|
270
|
+
"path"
|
|
271
|
+
])) : c("v-if", !0)]),
|
|
179
272
|
_: 3
|
|
180
273
|
}, 8, [
|
|
181
274
|
"id",
|
|
@@ -194,4 +287,4 @@ var O = {
|
|
|
194
287
|
}
|
|
195
288
|
});
|
|
196
289
|
//#endregion
|
|
197
|
-
export {
|
|
290
|
+
export { T as default };
|
|
@@ -99,4 +99,10 @@ export type QDropdownMenuContentProps = QDropdownMenuProps & {
|
|
|
99
99
|
*/
|
|
100
100
|
crossOffset?: number;
|
|
101
101
|
};
|
|
102
|
+
export type QDropdownMenuContentExposed = {
|
|
103
|
+
getMenuRect: () => DOMRect | null;
|
|
104
|
+
getMenuRoot: () => HTMLElement | null;
|
|
105
|
+
hasOpenSubmenu: () => boolean;
|
|
106
|
+
syncHoverFromPoint: (clientX: number, clientY: number) => void;
|
|
107
|
+
};
|
|
102
108
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACtD;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAA;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAEhB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG;IAC5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDropdownMenu/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG;IACtD;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAA;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAEhB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,GAAG;IAC5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACzC,WAAW,EAAE,MAAM,OAAO,GAAG,IAAI,CAAA;IACjC,WAAW,EAAE,MAAM,WAAW,GAAG,IAAI,CAAA;IACrC,cAAc,EAAE,MAAM,OAAO,CAAA;IAC7B,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9D,CAAA"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { QLabelProps } from '../QLabel';
|
|
2
2
|
export type QFieldSize = 'mini' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'block';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the QField component.
|
|
5
|
+
*/
|
|
3
6
|
export type QFieldProps = QLabelProps & {
|
|
4
7
|
/**
|
|
5
8
|
* The size category of the field.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
@@ -25,7 +25,7 @@ var s = /*@__PURE__*/ r({
|
|
|
25
25
|
if (t) return t === "auto" ? `q-col${e ? `-${e}` : ""}-auto` : `q-col${e ? `-${e}` : ""}-${t}`;
|
|
26
26
|
}
|
|
27
27
|
return e({
|
|
28
|
-
|
|
28
|
+
QSection: { block: t(() => s.cols === "auto" ? void 0 : !0) },
|
|
29
29
|
QField: { size: t(() => s.cols === "auto" ? void 0 : "block") }
|
|
30
30
|
}), (e, t) => (a(), n("div", { class: i(c.value) }, [o(e.$slots, "default")], 2));
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAiBA;AA6CC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAmBrC,iBAAS,cAAc;WAkDT,OAAO,IAA6B;;yBAbrB,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe9B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QRequiredIndicator as e } from "../__internal__/QRequiredIndicator/index.js";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, toDisplayString as u, unref as d } from "vue";
|
|
2
3
|
//#region src/components/QLabel/QLabel.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
-
var
|
|
4
|
+
var f = ["id"], p = ["for"], m = /*@__PURE__*/ o({
|
|
4
5
|
__name: "QLabel",
|
|
5
6
|
props: {
|
|
6
7
|
id: {},
|
|
@@ -10,25 +11,26 @@ var c = ["id"], l = ["for"], u = /*@__PURE__*/ r({
|
|
|
10
11
|
for: {},
|
|
11
12
|
labelPosition: {}
|
|
12
13
|
},
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
14
|
+
setup(o) {
|
|
15
|
+
let m = o, h = t(() => [
|
|
15
16
|
"q-label",
|
|
16
|
-
|
|
17
|
-
{ "q-label--required":
|
|
18
|
-
|
|
17
|
+
m.labelPosition ? `q-label--${m.labelPosition}` : "",
|
|
18
|
+
{ "q-label--required": m.required },
|
|
19
|
+
m.class
|
|
19
20
|
]);
|
|
20
|
-
return (
|
|
21
|
-
id:
|
|
22
|
-
class:
|
|
21
|
+
return (t, o) => (c(), i("div", {
|
|
22
|
+
id: m.id,
|
|
23
|
+
class: s(h.value)
|
|
23
24
|
}, [
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
l(t.$slots, "prepend"),
|
|
26
|
+
m.label || t.$slots.default ? (c(), i("label", {
|
|
26
27
|
key: 0,
|
|
27
|
-
for:
|
|
28
|
-
}, [
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
for: m.for
|
|
29
|
+
}, [l(t.$slots, "default", {}, () => [a(u(m.label), 1)])], 8, p)) : l(t.$slots, "default", { key: 1 }),
|
|
30
|
+
l(t.$slots, "append"),
|
|
31
|
+
m.required ? (c(), n(d(e), { key: 2 })) : r("v-if", !0)
|
|
32
|
+
], 10, f));
|
|
31
33
|
}
|
|
32
34
|
});
|
|
33
35
|
//#endregion
|
|
34
|
-
export {
|
|
36
|
+
export { m as default };
|
|
@@ -11,6 +11,9 @@ export type QLabelProps = QBaseComponentProps & {
|
|
|
11
11
|
* If set to true, an asterisk (*) is displayed
|
|
12
12
|
* to indicate that the associated field is required.
|
|
13
13
|
*
|
|
14
|
+
* The asterisk is decorative (`aria-hidden`). Required state for assistive
|
|
15
|
+
* tech should come from the associated control (e.g. native `required` on inputs).
|
|
16
|
+
*
|
|
14
17
|
* @category State
|
|
15
18
|
*/
|
|
16
19
|
required?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAEjF,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAEjF,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,cAAc,CAAA;CAC9B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QSectionProps } from '.';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
@@ -8,8 +8,8 @@ declare function __VLS_template(): {
|
|
|
8
8
|
rootEl: HTMLDivElement;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
12
|
-
variant: import('./types').
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<QSectionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QSectionProps> & Readonly<{}>, {
|
|
12
|
+
variant: import('./types').QSectionVariant;
|
|
13
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
15
|
export default _default;
|
|
@@ -18,4 +18,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
18
18
|
$slots: S;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=
|
|
21
|
+
//# sourceMappingURL=QSection.vue.d.ts.map
|