@quidgest/ui 0.17.8 → 0.18.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 (109) hide show
  1. package/dist/json/api.json +490 -20
  2. package/dist/manifest/components.json +3 -0
  3. package/dist/ui.css +3426 -3165
  4. package/dist/ui.esm.js +582 -614
  5. package/dist/ui.js +526 -560
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.min.js +526 -560
  8. package/dist/ui.scss +389 -135
  9. package/esm/components/QAccordion/QAccordionItem.vue.js +1 -0
  10. package/esm/components/QCarousel/QCarousel.vue.js +1 -1
  11. package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
  12. package/esm/components/QCheckbox/QCheckbox.vue.js +2 -0
  13. package/esm/components/QCollapsible/QCollapsible.d.ts +2 -1
  14. package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
  15. package/esm/components/QCollapsible/QCollapsible.vue.js +50 -47
  16. package/esm/components/QCollapsible/constants.d.ts +6 -0
  17. package/esm/components/QCollapsible/constants.d.ts.map +1 -1
  18. package/esm/components/QCollapsible/constants.js +3 -2
  19. package/esm/components/QCollapsible/index.d.ts +6 -0
  20. package/esm/components/QCollapsible/index.d.ts.map +1 -1
  21. package/esm/components/QCollapsible/types.d.ts +11 -1
  22. package/esm/components/QCollapsible/types.d.ts.map +1 -1
  23. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  24. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +505 -597
  25. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +32 -16
  26. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  27. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +179 -86
  28. package/esm/components/QDropdownMenu/types.d.ts +6 -0
  29. package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
  30. package/esm/components/QField/types.d.ts +3 -0
  31. package/esm/components/QField/types.d.ts.map +1 -1
  32. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  33. package/esm/components/QLabel/QLabel.vue.js +19 -17
  34. package/esm/components/QLabel/types.d.ts +3 -0
  35. package/esm/components/QLabel/types.d.ts.map +1 -1
  36. package/esm/components/QObfuscation/QObfuscation.d.ts +74 -0
  37. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -0
  38. package/esm/components/QObfuscation/QObfuscation.vue.js +183 -0
  39. package/esm/components/QObfuscation/QObfuscation2.vue.js +5 -0
  40. package/esm/components/QObfuscation/constants.d.ts +17 -0
  41. package/esm/components/QObfuscation/constants.d.ts.map +1 -0
  42. package/esm/components/QObfuscation/constants.js +12 -0
  43. package/esm/components/QObfuscation/index.d.ts +162 -0
  44. package/esm/components/QObfuscation/index.d.ts.map +1 -0
  45. package/esm/components/QObfuscation/index.js +6 -0
  46. package/esm/components/QObfuscation/types.d.ts +44 -0
  47. package/esm/components/QObfuscation/types.d.ts.map +1 -0
  48. package/esm/components/QTabs/QTab.d.ts +172 -0
  49. package/esm/components/QTabs/QTab.d.ts.map +1 -0
  50. package/esm/components/QTabs/QTab.vue.js +122 -0
  51. package/esm/components/QTabs/QTab2.vue.js +5 -0
  52. package/esm/components/QTabs/QTabs.d.ts +35 -0
  53. package/esm/components/QTabs/QTabs.d.ts.map +1 -0
  54. package/esm/components/QTabs/QTabs.vue.js +83 -0
  55. package/esm/components/QTabs/QTabs2.vue.js +5 -0
  56. package/esm/components/QTabs/constants.d.ts +5 -0
  57. package/esm/components/QTabs/constants.d.ts.map +1 -0
  58. package/esm/components/QTabs/context.d.ts +78 -0
  59. package/esm/components/QTabs/context.d.ts.map +1 -0
  60. package/esm/components/QTabs/context.js +4 -0
  61. package/esm/components/QTabs/index.d.ts +164 -0
  62. package/esm/components/QTabs/index.d.ts.map +1 -0
  63. package/esm/components/QTabs/index.js +7 -0
  64. package/esm/components/QTabs/types.d.ts +106 -0
  65. package/esm/components/QTabs/types.d.ts.map +1 -0
  66. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts +7 -0
  67. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.d.ts.map +1 -0
  68. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator.vue.js +24 -0
  69. package/esm/components/__internal__/QRequiredIndicator/QRequiredIndicator2.vue.js +5 -0
  70. package/esm/components/__internal__/QRequiredIndicator/constants.d.ts +7 -0
  71. package/esm/components/__internal__/QRequiredIndicator/constants.d.ts.map +1 -0
  72. package/esm/components/__internal__/QRequiredIndicator/constants.js +4 -0
  73. package/esm/components/__internal__/QRequiredIndicator/index.d.ts +6 -0
  74. package/esm/components/__internal__/QRequiredIndicator/index.d.ts.map +1 -0
  75. package/esm/components/__internal__/QRequiredIndicator/index.js +6 -0
  76. package/esm/components/__internal__/QRequiredIndicator/types.d.ts +18 -0
  77. package/esm/components/__internal__/QRequiredIndicator/types.d.ts.map +1 -0
  78. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts +10 -0
  79. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.d.ts.map +1 -0
  80. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle.vue.js +31 -0
  81. package/esm/components/__internal__/QSafeTriangle/QSafeTriangle2.vue.js +5 -0
  82. package/esm/components/__internal__/QSafeTriangle/index.d.ts +10 -0
  83. package/esm/components/__internal__/QSafeTriangle/index.d.ts.map +1 -0
  84. package/esm/components/__internal__/QSafeTriangle/index.js +6 -0
  85. package/esm/components/__internal__/QSafeTriangle/types.d.ts +33 -0
  86. package/esm/components/__internal__/QSafeTriangle/types.d.ts.map +1 -0
  87. package/esm/components/index.d.ts +2 -0
  88. package/esm/components/index.d.ts.map +1 -1
  89. package/esm/components/index.js +37 -32
  90. package/esm/composables/useSafeTriangle/index.d.ts +31 -0
  91. package/esm/composables/useSafeTriangle/index.d.ts.map +1 -0
  92. package/esm/composables/useSafeTriangle/index.js +87 -0
  93. package/esm/index.d.ts +3 -0
  94. package/esm/utils/date.d.ts +36 -1
  95. package/esm/utils/date.d.ts.map +1 -1
  96. package/esm/utils/date.js +90 -1
  97. package/esm/utils/index.d.ts +1 -0
  98. package/esm/utils/index.d.ts.map +1 -1
  99. package/esm/utils/index.js +30 -24
  100. package/esm/utils/mask.d.ts +17 -0
  101. package/esm/utils/mask.d.ts.map +1 -0
  102. package/esm/utils/mask.js +154 -0
  103. package/esm/utils/safeTriangle.d.ts +68 -0
  104. package/esm/utils/safeTriangle.d.ts.map +1 -0
  105. package/esm/utils/safeTriangle.js +83 -0
  106. package/package.json +6 -6
  107. package/esm/composables/useInputMask/index.d.ts +0 -50
  108. package/esm/composables/useInputMask/index.d.ts.map +0 -1
  109. 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
- qListRef: ({
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: import('vue').ComponentPublicInstance | null;
84
- $parent: import('vue').ComponentPublicInstance | null;
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: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
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: import('vue').ComponentPublicInstance | null;
140
- $parent: import('vue').ComponentPublicInstance | null;
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: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
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, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
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
- qListRef: ({
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: import('vue').ComponentPublicInstance | null;
296
- $parent: import('vue').ComponentPublicInstance | null;
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: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
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: import('vue').ComponentPublicInstance | null;
352
- $parent: import('vue').ComponentPublicInstance | null;
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: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
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":"AAqFA;AAuSC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAQ3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,GAAG,CAAA;AAGlD,OAAO,EAAiB,QAAQ,EAAkB,MAAM,KAAK,CAAA;AAE7D,KAAK,WAAW,GAAG,yBAAyB,CAAC;AAiN9C,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;CACnB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAqNT,OAAO,IAA6B;;mBArZrC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAidu4G,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAA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,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 { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeProps as _, openBlock as v, ref as y, renderSlot as b, resolveComponent as x, toDisplayString as S, unref as C, useModel as w, useTemplateRef as T, withCtx as E, withModifiers as D } from "vue";
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 O = {
9
+ var oe = {
8
10
  key: 0,
9
11
  class: "q-dropdown-menu__extra"
10
- }, k = /*@__PURE__*/ d({
12
+ }, T = /*@__PURE__*/ f({
11
13
  __name: "QDropdownMenuContent",
12
- props: /*@__PURE__*/ p({
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: 0 },
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__*/ p([
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: d }) {
43
- let p = r, k = d, A = w(r, "modelValue"), j = w(r, "highlighted"), M = y(void 0), N = y([]), P = a(() => p.depth === 0 ? 4 : p.offset), F = a(() => p.depth === 0 ? void 0 : p.crossOffset), I = T("qListRef");
44
- function L(e) {
45
- N.value = p.items?.find((t) => t[p.itemValue] === e)?.items ?? [];
46
- let t = N.value.length > 0;
47
- j.value = e, t ? W(e) : B(e);
48
- }
49
- function R(e) {
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 = I.value?.getActiveItemIndex();
59
- p.items && (e || e === 0) && p.items[e] && (j.value = p.items[e].key, W(p.items[e].key));
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
- H();
127
+ Z();
63
128
  break;
64
129
  case "Escape":
65
130
  case "Tab":
66
- U();
131
+ Q();
67
132
  break;
68
133
  default: break;
69
134
  }
70
135
  }
71
- function z(e) {
72
- p.trigger === "hover" && (j.value = e, W(e));
136
+ function q(e) {
137
+ T.trigger === "hover" && (O.value = e, $(e));
73
138
  }
74
- function B(e) {
75
- k("select", e), U();
139
+ function J(e) {
140
+ E("select", e), Q();
76
141
  }
77
- function V() {
78
- H();
142
+ function Y() {
143
+ Z();
79
144
  }
80
- function H() {
81
- M.value = void 0, j.value = void 0, A.value = !1, k("focus-previous");
145
+ function X() {
146
+ k.value = void 0, O.value = void 0;
82
147
  }
83
- function U() {
84
- H(), k("hide");
148
+ function Z() {
149
+ X(), D.value = !1, E("focus-previous");
85
150
  }
86
- function W(e) {
87
- M.value = e;
151
+ function Q() {
152
+ Z(), E("hide");
88
153
  }
89
- function G() {
90
- let e = p.items?.findIndex((e) => e[p.itemValue] === M.value);
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 = I.value?.getItem(e);
93
- M.value = void 0, j.value = void 0, t?.focus();
94
- }
95
- function K() {
96
- h(() => I.value?.$el.focus());
97
- }
98
- function q() {
99
- k("open"), K();
100
- }
101
- return (a, d) => {
102
- let h = x("q-dropdown-menu-content", !0);
103
- return v(), o(C(n), {
104
- id: p.id,
105
- modelValue: A.value,
106
- "onUpdate:modelValue": d[0] ||= (e) => A.value = e,
107
- anchor: p.activator,
108
- appearance: p.appearance,
109
- inline: p.inline,
110
- delay: p.delay,
111
- offset: P.value,
112
- "cross-offset": F.value,
113
- placement: p.placement,
114
- transition: p.transition,
115
- class: g(p.class),
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: q,
119
- onLeave: V
195
+ onEnter: ye,
196
+ onLeave: Y
120
197
  }, {
121
- default: E(() => [l("div", {
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
- onKeydown: D(R, ["stop"])
203
+ onPointerenter: pe,
204
+ onPointermove: me,
205
+ onKeydown: ae(ge, ["stop"])
126
206
  }, [
127
- b(a.$slots, "prepend"),
128
- u(C(t), {
129
- ref: "qListRef",
207
+ b(r.$slots, "prepend"),
208
+ d(x(t), {
209
+ ref: "list",
130
210
  class: "q-dropdown-menu__items",
131
- highlighted: j.value,
132
- items: p.items,
133
- groups: p.groups,
134
- "item-label": p.itemLabel,
135
- "item-value": p.itemValue,
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: L,
139
- "onMouseenter:item": z
218
+ onClick: he,
219
+ "onMouseenter:item": q
140
220
  }, {
141
- item: E(({ item: e }) => [b(a.$slots, "item", { item: e })]),
142
- "item.append": E(({ item: t, element: n }) => [b(a.$slots, "item.append", { item: t }, () => [t.extraInfo ? (v(), c("span", O, S(t.extraInfo), 1)) : s("v-if", !0)]), t.items?.length > 0 ? (v(), c(i, { key: 0 }, [u(C(e), _(f(p.icons.expand)), null, 16), M.value === t.key ? (v(), o(h, m({
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
- "model-value": r.modelValue
145
- }, p, {
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: p.depth + 1,
150
- delay: p.delay,
230
+ depth: T.depth + 1,
231
+ delay: T.delay,
151
232
  placement: "right-start",
152
233
  "non-modal": "",
153
234
  inline: "",
154
- onHide: U,
155
- onSelect: B,
156
- onFocusPrevious: G
235
+ onHide: Q,
236
+ onSelect: J,
237
+ onFocusPrevious: _e
157
238
  }), {
158
- item: E((e) => [b(a.$slots, "item", _(f(e)))]),
159
- "item.append": E((e) => [b(a.$slots, "item.append", _(f(e)))]),
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
- ])) : s("v-if", !0)], 64)) : s("v-if", !0)]),
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(a.$slots, "append")
178
- ], 32)]),
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 { k as default };
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,O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AAM,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"QLabel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/QLabel.vue"],"names":[],"mappings":"AAgBA;AAsCC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAmBrC,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAbrB,GAAG;yBACH,GAAG;yBACH,GAAG;wBACJ,GAAG;;;;EAe9B;AASD,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
+ {"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 { computed as e, createElementBlock as t, createTextVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o, toDisplayString as s } from "vue";
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 c = ["id"], l = ["for"], u = /*@__PURE__*/ r({
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(r) {
14
- let u = r, d = e(() => [
14
+ setup(o) {
15
+ let m = o, h = t(() => [
15
16
  "q-label",
16
- u.labelPosition ? `q-label--${u.labelPosition}` : "",
17
- { "q-label--required": u.required },
18
- u.class
17
+ m.labelPosition ? `q-label--${m.labelPosition}` : "",
18
+ { "q-label--required": m.required },
19
+ m.class
19
20
  ]);
20
- return (e, r) => (a(), t("div", {
21
- id: u.id,
22
- class: i(d.value)
21
+ return (t, o) => (c(), i("div", {
22
+ id: m.id,
23
+ class: s(h.value)
23
24
  }, [
24
- o(e.$slots, "prepend"),
25
- u.label || e.$slots.default ? (a(), t("label", {
25
+ l(t.$slots, "prepend"),
26
+ m.label || t.$slots.default ? (c(), i("label", {
26
27
  key: 0,
27
- for: u.for
28
- }, [o(e.$slots, "default", {}, () => [n(s(u.label), 1)])], 8, l)) : o(e.$slots, "default", { key: 1 }),
29
- o(e.$slots, "append")
30
- ], 10, c));
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 { u as default };
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;;;;;OAKG;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
+ {"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"}