@quidgest/ui 0.20.1 → 0.21.1

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 (151) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +10 -0
  3. package/dist/json/api.json +219 -3
  4. package/dist/manifest/components.json +1 -0
  5. package/dist/ui.css +239 -248
  6. package/dist/ui.esm.js +1306 -1139
  7. package/dist/ui.js +788 -621
  8. package/dist/ui.min.css +1 -1
  9. package/dist/ui.min.js +788 -621
  10. package/dist/ui.scss +291 -34
  11. package/esm/components/QAccordion/QAccordionItem.vue.js +1 -1
  12. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  13. package/esm/components/QBadge/QBadge.vue.js +20 -24
  14. package/esm/components/QButton/QButton.d.ts.map +1 -1
  15. package/esm/components/QButton/QButton.vue.js +32 -29
  16. package/esm/components/QCheckbox/QCheckbox.vue.js +1 -1
  17. package/esm/components/QDialog/QDialog.d.ts +4 -2
  18. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  19. package/esm/components/QDialog/QDialog.vue.js +84 -74
  20. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
  21. package/esm/components/QDialog/QDialogProvider.vue.js +21 -12
  22. package/esm/components/QDialog/index.d.ts +72 -3
  23. package/esm/components/QDialog/index.d.ts.map +1 -1
  24. package/esm/components/QDialog/types.d.ts +10 -1
  25. package/esm/components/QDialog/types.d.ts.map +1 -1
  26. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -1
  27. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +9 -8
  28. package/esm/components/QDivider/QDivider.d.ts.map +1 -1
  29. package/esm/components/QDivider/QDivider.vue.js +3 -3
  30. package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
  31. package/esm/components/QGauge/QGauge.vue.js +1 -1
  32. package/esm/components/QList/QListItem.d.ts.map +1 -1
  33. package/esm/components/QList/QListItem.vue.js +5 -2
  34. package/esm/components/QList/QListItemGroup.vue.js +1 -1
  35. package/esm/components/QObfuscation/QObfuscation.d.ts +1 -1
  36. package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
  37. package/esm/components/QObfuscation/QObfuscation.vue.js +53 -56
  38. package/esm/components/QObfuscation/index.d.ts +6 -6
  39. package/esm/components/QObfuscation/types.d.ts +1 -1
  40. package/esm/components/QObfuscation/types.d.ts.map +1 -1
  41. package/esm/components/QOverflow/QOverflow.d.ts +43 -0
  42. package/esm/components/QOverflow/QOverflow.d.ts.map +1 -0
  43. package/esm/components/QOverflow/QOverflow.vue.js +281 -0
  44. package/esm/components/QOverflow/QOverflow2.vue.js +5 -0
  45. package/esm/components/QOverflow/constants.d.ts +30 -0
  46. package/esm/components/QOverflow/constants.d.ts.map +1 -0
  47. package/esm/components/QOverflow/constants.js +12 -0
  48. package/esm/components/QOverflow/index.d.ts +58 -0
  49. package/esm/components/QOverflow/index.d.ts.map +1 -0
  50. package/esm/components/QOverflow/index.js +6 -0
  51. package/esm/components/QOverflow/types.d.ts +119 -0
  52. package/esm/components/QOverflow/types.d.ts.map +1 -0
  53. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  54. package/esm/components/QPhoneField/QPhoneField.vue.js +1 -1
  55. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +1 -1
  56. package/esm/components/QPropertyList/QPropertyListRow.vue.js +1 -1
  57. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  58. package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
  59. package/esm/components/QRadioGroup/QRadioGroup.vue.js +2 -2
  60. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  61. package/esm/components/QSelect/QSelect.vue.js +1 -1
  62. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  63. package/esm/components/QSidebar/QSidebar.vue.js +19 -10
  64. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  65. package/esm/components/QSidebar/QSidebarItem.vue.js +51 -49
  66. package/esm/components/QSidebar/context.d.ts +7 -0
  67. package/esm/components/QSidebar/context.d.ts.map +1 -1
  68. package/esm/components/QSwitch/QSwitch.vue.js +1 -1
  69. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  70. package/esm/components/QTabs/QTab.vue.js +52 -50
  71. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  72. package/esm/components/QTabs/QTabs.vue.js +37 -12
  73. package/esm/components/QTabs/context.d.ts +7 -0
  74. package/esm/components/QTabs/context.d.ts.map +1 -1
  75. package/esm/components/QTextArea/QTextArea.vue.js +1 -1
  76. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  77. package/esm/components/QTextField/QTextField.vue.js +1 -1
  78. package/esm/components/QThemeProvider/QThemeProvider.vue.js +1 -1
  79. package/esm/components/QToast/QToast.d.ts +4 -2
  80. package/esm/components/QToast/QToast.d.ts.map +1 -1
  81. package/esm/components/QToast/QToast.vue.js +80 -67
  82. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  83. package/esm/components/QToast/QToaster.vue.js +21 -16
  84. package/esm/components/QToast/index.d.ts +39 -3
  85. package/esm/components/QToast/index.d.ts.map +1 -1
  86. package/esm/components/QToast/types.d.ts +6 -2
  87. package/esm/components/QToast/types.d.ts.map +1 -1
  88. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -1
  89. package/esm/components/QTooltip/QTooltip.vue.js +1 -1
  90. package/esm/components/index.d.ts +1 -0
  91. package/esm/components/index.d.ts.map +1 -1
  92. package/esm/components/index.js +58 -56
  93. package/esm/composables/index.d.ts +2 -2
  94. package/esm/composables/index.d.ts.map +1 -1
  95. package/esm/composables/useColor/index.d.ts +46 -17
  96. package/esm/composables/useColor/index.d.ts.map +1 -1
  97. package/esm/composables/useColor/index.js +57 -29
  98. package/esm/composables/useColor/types.d.ts +4 -1
  99. package/esm/composables/useColor/types.d.ts.map +1 -1
  100. package/esm/composables/useDialog/_internal.d.ts +2 -0
  101. package/esm/composables/useDialog/_internal.d.ts.map +1 -0
  102. package/esm/composables/useDialog/_internal.js +65 -0
  103. package/esm/composables/useDialog/index.d.ts +11 -3
  104. package/esm/composables/useDialog/index.d.ts.map +1 -1
  105. package/esm/composables/useDialog/index.js +38 -22
  106. package/esm/composables/useDialog/types.d.ts +25 -11
  107. package/esm/composables/useDialog/types.d.ts.map +1 -1
  108. package/esm/composables/useDismissibleLayerStack/index.d.ts +17 -2
  109. package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -1
  110. package/esm/composables/useDismissibleLayerStack/index.js +28 -11
  111. package/esm/composables/useGroup/index.d.ts.map +1 -1
  112. package/esm/composables/useGroup/index.js +12 -1
  113. package/esm/composables/useId/index.d.ts +18 -0
  114. package/esm/composables/useId/index.d.ts.map +1 -0
  115. package/esm/composables/useId/index.js +10 -0
  116. package/esm/composables/useToast/_internal.d.ts +2 -0
  117. package/esm/composables/useToast/_internal.d.ts.map +1 -0
  118. package/esm/composables/useToast/_internal.js +142 -0
  119. package/esm/composables/useToast/index.d.ts +8 -25
  120. package/esm/composables/useToast/index.d.ts.map +1 -1
  121. package/esm/composables/useToast/index.js +29 -26
  122. package/esm/composables/useToast/types.d.ts +31 -17
  123. package/esm/composables/useToast/types.d.ts.map +1 -1
  124. package/esm/framework.d.ts.map +1 -1
  125. package/esm/framework.js +16 -12
  126. package/esm/index.d.ts +1 -0
  127. package/esm/templates/theme.js +39 -39
  128. package/esm/utils/color/contrast.d.ts +11 -4
  129. package/esm/utils/color/contrast.d.ts.map +1 -1
  130. package/esm/utils/color/contrast.js +16 -3
  131. package/esm/utils/color/index.d.ts +1 -0
  132. package/esm/utils/color/index.d.ts.map +1 -1
  133. package/esm/utils/color/merge.d.ts +9 -0
  134. package/esm/utils/color/merge.d.ts.map +1 -1
  135. package/esm/utils/color/merge.js +21 -22
  136. package/esm/utils/color/parse.d.ts +21 -5
  137. package/esm/utils/color/parse.d.ts.map +1 -1
  138. package/esm/utils/color/parse.js +88 -20
  139. package/esm/utils/color/theme-colors.d.ts +35 -0
  140. package/esm/utils/color/theme-colors.d.ts.map +1 -0
  141. package/esm/utils/color/theme-colors.js +25 -0
  142. package/esm/utils/index.js +50 -42
  143. package/package.json +3 -5
  144. package/esm/composables/uid.d.ts +0 -9
  145. package/esm/composables/uid.d.ts.map +0 -1
  146. package/esm/composables/uid.js +0 -8
  147. package/esm/composables/useToast/types.js +0 -4
  148. package/esm/vendors/uuid/dist/native.js +0 -3
  149. package/esm/vendors/uuid/dist/rng.js +0 -11
  150. package/esm/vendors/uuid/dist/stringify.js +0 -8
  151. package/esm/vendors/uuid/dist/v4.js +0 -20
@@ -1,5 +1,6 @@
1
1
  import { DEFAULT_ICONS } from './constants';
2
2
  import { DialogButton, QDialogProps } from '.';
3
+ type __VLS_Props = QDialogProps & {};
3
4
  declare function __VLS_template(): {
4
5
  attrs: Partial<{}>;
5
6
  slots: {
@@ -15,10 +16,10 @@ declare function __VLS_template(): {
15
16
  rootEl: any;
16
17
  };
17
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('vue').DefineComponent<QDialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
20
  "update:modelValue": (val: boolean) => any;
20
21
  action: (val: string) => any;
21
- }, string, import('vue').PublicProps, Readonly<QDialogProps> & Readonly<{
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
23
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
23
24
  onAction?: ((val: string) => any) | undefined;
24
25
  }>, {
@@ -31,6 +32,7 @@ declare const __VLS_component: import('vue').DefineComponent<QDialogProps, {}, {
31
32
  backdropBlur: boolean;
32
33
  attach: string;
33
34
  focusWrap: boolean;
35
+ entryKey: string;
34
36
  buttons: DialogButton[];
35
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAwGA;AA0LC,OAAO,EAAiC,aAAa,EAAE,MAAM,aAAa,CAAA;AAS1E,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAmFpD,iBAAS,cAAc;WAgQT,OAAO,IAA6B;;wBAhBrB,GAAG;kCACO,GAAG;iCACJ,GAAG;sBACd,GAAG;6BACI,GAAG;+BACD,GAAG;iCACD,GAAG;;;;EAexC;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;6EASnB,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":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAwGA;AAmNC,OAAO,EAAiC,aAAa,EAAE,MAAM,aAAa,CAAA;AAa1E,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAKnD,KAAK,WAAW,GAAG,YAAY,GAAG,EAG/B,CAAC;AAiGL,iBAAS,cAAc;WAgQT,OAAO,IAA6B;;wBAhBrB,GAAG;kCACO,GAAG;iCACJ,GAAG;sBACd,GAAG;6BACI,GAAG;+BACD,GAAG;iCACD,GAAG;;;;EAexC;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;cA/XN,MAAM;;6EAwYnB,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,32 +1,34 @@
1
1
  import { QButton as e } from "../QButton/index.js";
2
2
  import { QIcon as t } from "../QIcon/index.js";
3
- import { QTextField as n } from "../QTextField/index.js";
4
- import { QOverlay as r } from "../QOverlay/index.js";
5
- import { DEFAULT_BUTTONS as i, DEFAULT_ICON as a, DEFAULT_ICONS as o } from "./constants.js";
6
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, guardReactiveProps as g, mergeProps as _, normalizeClass as v, normalizeProps as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
3
+ import { useId as n } from "../../composables/useId/index.js";
4
+ import { QTextField as r } from "../QTextField/index.js";
5
+ import { QOverlay as i } from "../QOverlay/index.js";
6
+ import { DEFAULT_BUTTONS as a, DEFAULT_ICON as o, DEFAULT_ICONS as s } from "./constants.js";
7
+ import { DialogSymbol as c } from "../../composables/useDialog/_internal.js";
8
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as v, inject as y, mergeProps as b, normalizeClass as x, normalizeProps as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRef as O, unref as k, watch as A, withCtx as j } from "vue";
7
9
  //#region src/components/QDialog/QDialog.vue?vue&type=script&setup=true&lang.ts
8
- var D = {
10
+ var M = {
9
11
  key: 0,
10
12
  class: "q-dialog__header"
11
- }, O = {
13
+ }, N = {
12
14
  key: 0,
13
15
  class: "q-dialog__header-title"
14
- }, k = {
16
+ }, P = {
15
17
  key: 1,
16
18
  class: "q-dialog__body"
17
- }, A = {
19
+ }, F = {
18
20
  key: 0,
19
21
  class: "q-dialog__body-icon"
20
- }, j = { class: "q-dialog__body-text" }, M = ["innerHTML"], N = { key: 1 }, P = {
22
+ }, I = { class: "q-dialog__body-text" }, L = ["innerHTML"], R = { key: 1 }, z = {
21
23
  key: 0,
22
24
  class: "q-dialog__input"
23
- }, F = {
25
+ }, B = {
24
26
  key: 2,
25
27
  class: "q-dialog__footer"
26
- }, I = {
28
+ }, V = {
27
29
  key: 0,
28
30
  class: "q-dialog__footer-buttons"
29
- }, L = /*@__PURE__*/ h({
31
+ }, H = /*@__PURE__*/ _({
30
32
  __name: "QDialog",
31
33
  props: {
32
34
  id: {},
@@ -34,8 +36,8 @@ var D = {
34
36
  modelValue: { type: Boolean },
35
37
  title: {},
36
38
  text: {},
37
- icon: { default: () => a },
38
- buttons: { default: () => i },
39
+ icon: { default: () => o },
40
+ buttons: { default: () => a },
39
41
  backdropBlur: {
40
42
  type: Boolean,
41
43
  default: !0
@@ -64,96 +66,104 @@ var D = {
64
66
  default: !0
65
67
  },
66
68
  input: {},
67
- icons: { default: () => o }
69
+ icons: { default: () => s },
70
+ entryKey: { default: void 0 }
68
71
  },
69
72
  emits: ["update:modelValue", "action"],
70
- setup(i, { emit: a }) {
71
- let o = i, h = a, L = x(""), R = x(""), z = c(() => ["q-dialog", o.class]), B = c(() => `q-overlay--${o.size}`);
72
- function V() {
73
- W(!0);
73
+ setup(a, { emit: o }) {
74
+ let s = a, _ = o, H = n(O(s, "id"));
75
+ if (s.entryKey) {
76
+ let e = y(c, null);
77
+ e?.registerDialogEntry(s.entryKey, H.value), A(H, (t, n) => {
78
+ t === n || !s.entryKey || e?.updateDialogEntryId(s.entryKey, t);
79
+ });
80
+ }
81
+ let U = w(""), W = w(""), G = u(() => ["q-dialog", s.class]), K = u(() => `q-overlay--${s.size}`);
82
+ function q() {
83
+ X(!0);
74
84
  }
75
- function H() {
76
- W(!1);
85
+ function J() {
86
+ X(!1);
77
87
  }
78
- function U(e) {
79
- if (h("action", e.id), e.action) {
80
- if (o.input?.validator && (R.value = o.input.validator(T(L)), T(R))) return;
81
- e.action?.(T(L));
88
+ function Y(e) {
89
+ if (_("action", e.id), e.action) {
90
+ if (s.input?.validator && (W.value = s.input.validator(k(U)), k(W))) return;
91
+ e.action?.(k(U));
82
92
  }
83
- H();
93
+ J();
84
94
  }
85
- function W(e) {
86
- h("update:modelValue", e);
95
+ function X(e) {
96
+ _("update:modelValue", e);
87
97
  }
88
- return (i, a) => (b(), l(T(r), {
89
- id: o.id,
90
- "model-value": o.modelValue,
98
+ return (n, a) => (C(), d(k(i), {
99
+ id: k(H),
100
+ "model-value": s.modelValue,
91
101
  "backdrop-class": "q-dialog__underlay",
92
102
  "scroll-lock": "",
93
103
  persistent: "",
94
- inline: o.inline,
95
- attach: o.attach,
96
- "backdrop-blur": o.backdropBlur,
97
- "center-vertically": o.centerVertically,
98
- "focus-wrap": o.focusWrap,
99
- "initial-focus": o.initialFocus,
100
- "focus-within-on-activate": o.focusWithinOnActivate,
101
- "closing-focus": o.closingFocus,
102
- "return-focus-on-deactivate": o.returnFocusOnDeactivate,
103
- class: v(B.value),
104
- onEnter: V,
105
- "onUpdate:modelValue": W
104
+ inline: s.inline,
105
+ attach: s.attach,
106
+ "backdrop-blur": s.backdropBlur,
107
+ "center-vertically": s.centerVertically,
108
+ "focus-wrap": s.focusWrap,
109
+ "initial-focus": s.initialFocus,
110
+ "focus-within-on-activate": s.focusWithinOnActivate,
111
+ "closing-focus": s.closingFocus,
112
+ "return-focus-on-deactivate": s.returnFocusOnDeactivate,
113
+ class: x(K.value),
114
+ onEnter: q,
115
+ "onUpdate:modelValue": X
106
116
  }, {
107
- default: E(() => [f("div", { class: v(z.value) }, [
108
- o.title || i.$slots.header || i.$slots["header.prepend"] || i.$slots["header.append"] ? (b(), d("div", D, [C(i.$slots, "header", {}, () => [
109
- C(i.$slots, "header.prepend"),
110
- o.title ? (b(), d("span", O, w(o.title), 1)) : u("v-if", !0),
111
- C(i.$slots, "header.append")
112
- ])])) : u("v-if", !0),
113
- o.icon || o.text || i.$slots.body ? (b(), d("div", k, [C(i.$slots, "body", {}, () => [
114
- C(i.$slots, "body.icon", {}, () => [o.icon ? (b(), d("span", A, [m(T(t), y(g(o.icon)), null, 16)])) : u("v-if", !0)]),
115
- f("div", j, [o.html ? (b(), d("div", {
117
+ default: j(() => [m("div", { class: x(G.value) }, [
118
+ s.title || n.$slots.header || n.$slots["header.prepend"] || n.$slots["header.append"] ? (C(), p("div", M, [E(n.$slots, "header", {}, () => [
119
+ E(n.$slots, "header.prepend"),
120
+ s.title ? (C(), p("span", N, D(s.title), 1)) : f("v-if", !0),
121
+ E(n.$slots, "header.append")
122
+ ])])) : f("v-if", !0),
123
+ s.icon || s.text || n.$slots.body ? (C(), p("div", P, [E(n.$slots, "body", {}, () => [
124
+ E(n.$slots, "body.icon", {}, () => [s.icon ? (C(), p("span", F, [g(k(t), S(v(s.icon)), null, 16)])) : f("v-if", !0)]),
125
+ m("div", I, [s.html ? (C(), p("div", {
116
126
  key: 0,
117
- innerHTML: o.text
118
- }, null, 8, M)) : (b(), d("div", N, w(o.text), 1))]),
119
- o.input ? (b(), d("div", P, [m(T(n), {
120
- modelValue: L.value,
121
- "onUpdate:modelValue": a[0] ||= (e) => L.value = e,
122
- invalid: !!R.value,
123
- placeholder: o.input?.placeholder,
127
+ innerHTML: s.text
128
+ }, null, 8, L)) : (C(), p("div", R, D(s.text), 1))]),
129
+ s.input ? (C(), p("div", z, [g(k(r), {
130
+ modelValue: U.value,
131
+ "onUpdate:modelValue": a[0] ||= (e) => U.value = e,
132
+ invalid: !!W.value,
133
+ placeholder: s.input?.placeholder,
124
134
  size: "block"
125
135
  }, {
126
- extras: E(() => [R.value ? (b(), l(T(t), {
136
+ extras: j(() => [W.value ? (C(), d(k(t), {
127
137
  key: 0,
128
138
  icon: "exclamation-sign"
129
- })) : u("v-if", !0), p(" " + w(R.value), 1)]),
139
+ })) : f("v-if", !0), h(" " + D(W.value), 1)]),
130
140
  _: 1
131
141
  }, 8, [
132
142
  "modelValue",
133
143
  "invalid",
134
144
  "placeholder"
135
- ])])) : u("v-if", !0),
136
- C(i.$slots, "body.append")
137
- ])])) : u("v-if", !0),
138
- o.buttons || i.$slots["footer.append"] ? (b(), d("div", F, [o.buttons ? (b(), d("span", I, [(b(!0), d(s, null, S(o.buttons, (n) => (b(), l(T(e), _({ ref_for: !0 }, n.props, {
145
+ ])])) : f("v-if", !0),
146
+ E(n.$slots, "body.append")
147
+ ])])) : f("v-if", !0),
148
+ s.buttons || n.$slots["footer.append"] ? (C(), p("div", B, [s.buttons ? (C(), p("span", V, [(C(!0), p(l, null, T(s.buttons, (n) => (C(), d(k(e), b({ ref_for: !0 }, n.props, {
139
149
  key: n.id,
140
- onClick: () => U(n)
150
+ onClick: () => Y(n)
141
151
  }), {
142
- default: E(() => [n.icon ? (b(), l(T(t), _({
152
+ default: j(() => [n.icon ? (C(), d(k(t), b({
143
153
  key: 0,
144
154
  ref_for: !0
145
- }, n.icon), null, 16)) : u("v-if", !0)]),
155
+ }, n.icon), null, 16)) : f("v-if", !0)]),
146
156
  _: 2
147
- }, 1040, ["onClick"]))), 128))])) : u("v-if", !0), C(i.$slots, "footer.append")])) : u("v-if", !0),
148
- o.dismissible ? (b(), l(T(e), {
157
+ }, 1040, ["onClick"]))), 128))])) : f("v-if", !0), E(n.$slots, "footer.append")])) : f("v-if", !0),
158
+ s.dismissible ? (C(), d(k(e), {
149
159
  key: 3,
150
160
  class: "q-dialog__close",
151
161
  variant: "text",
152
- onClick: H
162
+ onClick: J
153
163
  }, {
154
- default: E(() => [m(T(t), y(g(o.icons.close)), null, 16)]),
164
+ default: j(() => [g(k(t), S(v(s.icons.close)), null, 16)]),
155
165
  _: 1
156
- })) : u("v-if", !0)
166
+ })) : f("v-if", !0)
157
167
  ], 2)]),
158
168
  _: 3
159
169
  }, 8, [
@@ -173,4 +183,4 @@ var D = {
173
183
  }
174
184
  });
175
185
  //#endregion
176
- export { L as default };
186
+ export { H as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AAUA;AAiDC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAA;;;;;;AAuF9C,wBAOG"}
1
+ {"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AAWA;AA4EC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAA;;;;;;AAmH9C,wBAOG"}
@@ -1,22 +1,31 @@
1
- import { useDialog as e } from "../../composables/useDialog/index.js";
2
- import { QDialog as t } from "./index.js";
3
- import { Fragment as n, createBlock as r, createElementBlock as i, defineComponent as a, mergeProps as o, openBlock as s, renderList as c, unref as l } from "vue";
1
+ import { injectDialogInstance as e, removeDialogEntry as t } from "../../composables/useDialog/_internal.js";
2
+ import { QDialog as n } from "./index.js";
3
+ import { Fragment as r, createBlock as i, createElementBlock as a, defineComponent as o, mergeProps as s, onUnmounted as c, openBlock as l, renderList as u, unref as d } from "vue";
4
4
  //#region src/components/QDialog/QDialogProvider.vue?vue&type=script&setup=true&lang.ts
5
- var u = /*@__PURE__*/ a({
5
+ var f = /*@__PURE__*/ o({
6
6
  inheritAttrs: !1,
7
7
  __name: "QDialogProvider",
8
8
  props: { inline: { type: Boolean } },
9
9
  emits: ["leave"],
10
- setup(a, { emit: u }) {
11
- let d = a, f = u, { dialogs: p, removeDialog: m } = e();
12
- function h(e, t) {
13
- t || (m(e), f("leave", e));
10
+ setup(o, { emit: f }) {
11
+ let p = o, m = f, h = e(), { dialogs: g } = h;
12
+ h.registerProvider(), c(() => h.unregisterProvider());
13
+ function _(e) {
14
+ let n = g.value.findIndex((t) => t.id === e);
15
+ n !== -1 && (t(h, n), m("leave", e));
14
16
  }
15
- return (e, a) => (s(!0), i(n, null, c(l(p), (e) => (s(), r(l(t), o({ key: e.id }, { ref_for: !0 }, e.props, {
16
- inline: d.inline,
17
+ function v(e, t) {
18
+ t || !e.id || _(e.id);
19
+ }
20
+ return (e, t) => (l(!0), a(r, null, u(d(g), (e) => (l(), i(d(n), s({
21
+ key: e.entryKey,
22
+ "entry-key": e.entryKey
23
+ }, { ref_for: !0 }, e.props, {
24
+ inline: p.inline,
17
25
  onAction: e.handlers?.onAction,
18
- "onUpdate:modelValue": (t) => h(e.id, t)
26
+ "onUpdate:modelValue": (t) => v(e, t)
19
27
  }), null, 16, [
28
+ "entry-key",
20
29
  "inline",
21
30
  "onAction",
22
31
  "onUpdate:modelValue"
@@ -24,4 +33,4 @@ var u = /*@__PURE__*/ a({
24
33
  }
25
34
  });
26
35
  //#endregion
27
- export { u as default };
36
+ export { f as default };
@@ -1,5 +1,27 @@
1
1
  declare const QDialog: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QDialogProps> & Readonly<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../types/component').QBaseComponentProps & {
3
+ modelValue?: boolean;
4
+ title?: string;
5
+ text?: string;
6
+ icon?: import('..').Icon;
7
+ buttons?: import('./types').DialogButton[];
8
+ backdropBlur?: boolean;
9
+ size?: import('./types').QDialogSize;
10
+ centerVertically?: boolean;
11
+ attach?: string;
12
+ inline?: boolean;
13
+ focusWrap?: boolean;
14
+ initialFocus?: HTMLElement | string | null;
15
+ focusWithinOnActivate?: boolean;
16
+ closingFocus?: HTMLElement | string;
17
+ returnFocusOnDeactivate?: boolean;
18
+ dismissible?: boolean;
19
+ html?: boolean;
20
+ input?: import('./types').QDialogInputOption;
21
+ icons?: typeof import('./constants').DEFAULT_ICONS;
22
+ } & {
23
+ entryKey?: string;
24
+ }> & Readonly<{
3
25
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
4
26
  onAction?: ((val: string) => any) | undefined;
5
27
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -15,6 +37,7 @@ declare const QDialog: {
15
37
  backdropBlur: boolean;
16
38
  attach: string;
17
39
  focusWrap: boolean;
40
+ entryKey: string;
18
41
  buttons: import('./types').DialogButton[];
19
42
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
20
43
  P: {};
@@ -23,7 +46,29 @@ declare const QDialog: {
23
46
  C: {};
24
47
  M: {};
25
48
  Defaults: {};
26
- }, Readonly<import('./types').QDialogProps> & Readonly<{
49
+ }, Readonly<import('../../types/component').QBaseComponentProps & {
50
+ modelValue?: boolean;
51
+ title?: string;
52
+ text?: string;
53
+ icon?: import('..').Icon;
54
+ buttons?: import('./types').DialogButton[];
55
+ backdropBlur?: boolean;
56
+ size?: import('./types').QDialogSize;
57
+ centerVertically?: boolean;
58
+ attach?: string;
59
+ inline?: boolean;
60
+ focusWrap?: boolean;
61
+ initialFocus?: HTMLElement | string | null;
62
+ focusWithinOnActivate?: boolean;
63
+ closingFocus?: HTMLElement | string;
64
+ returnFocusOnDeactivate?: boolean;
65
+ dismissible?: boolean;
66
+ html?: boolean;
67
+ input?: import('./types').QDialogInputOption;
68
+ icons?: typeof import('./constants').DEFAULT_ICONS;
69
+ } & {
70
+ entryKey?: string;
71
+ }> & Readonly<{
27
72
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
28
73
  onAction?: ((val: string) => any) | undefined;
29
74
  }>, {}, {}, {}, {}, {
@@ -36,12 +81,35 @@ declare const QDialog: {
36
81
  backdropBlur: boolean;
37
82
  attach: string;
38
83
  focusWrap: boolean;
84
+ entryKey: string;
39
85
  buttons: import('./types').DialogButton[];
40
86
  }>;
41
87
  __isFragment?: never;
42
88
  __isTeleport?: never;
43
89
  __isSuspense?: never;
44
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').QDialogProps> & Readonly<{
90
+ } & import('vue').ComponentOptionsBase<Readonly<import('../../types/component').QBaseComponentProps & {
91
+ modelValue?: boolean;
92
+ title?: string;
93
+ text?: string;
94
+ icon?: import('..').Icon;
95
+ buttons?: import('./types').DialogButton[];
96
+ backdropBlur?: boolean;
97
+ size?: import('./types').QDialogSize;
98
+ centerVertically?: boolean;
99
+ attach?: string;
100
+ inline?: boolean;
101
+ focusWrap?: boolean;
102
+ initialFocus?: HTMLElement | string | null;
103
+ focusWithinOnActivate?: boolean;
104
+ closingFocus?: HTMLElement | string;
105
+ returnFocusOnDeactivate?: boolean;
106
+ dismissible?: boolean;
107
+ html?: boolean;
108
+ input?: import('./types').QDialogInputOption;
109
+ icons?: typeof import('./constants').DEFAULT_ICONS;
110
+ } & {
111
+ entryKey?: string;
112
+ }> & Readonly<{
45
113
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
46
114
  onAction?: ((val: string) => any) | undefined;
47
115
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -57,6 +125,7 @@ declare const QDialog: {
57
125
  backdropBlur: boolean;
58
126
  attach: string;
59
127
  focusWrap: boolean;
128
+ entryKey: string;
60
129
  buttons: import('./types').DialogButton[];
61
130
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
62
131
  $slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AACzC,QAAA,MAAM,eAAe;;;;kFAAoC,CAAA;AAGzD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA;AAGnC,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AACzC,QAAA,MAAM,eAAe;;;;kFAAoC,CAAA;AAGzD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA;AAGnC,cAAc,SAAS,CAAA"}
@@ -178,6 +178,13 @@ export type QDialogInputOption = {
178
178
  */
179
179
  validator?: (value: string) => string | undefined;
180
180
  };
181
+ /**
182
+ * Hosts programmatic dialogs created with `useDialog`.
183
+ *
184
+ * Mount exactly one `QDialogProvider` per app (typically in the root layout).
185
+ * The dialog store is app-scoped via `createFramework`; mounting a second
186
+ * provider for the same app throws.
187
+ */
181
188
  export type QDialogProviderProps = {
182
189
  /**
183
190
  * Whether to inline the dialogs.
@@ -188,13 +195,15 @@ export type QDialogProviderProps = {
188
195
  };
189
196
  export type QDialogHandlers = {
190
197
  /**
191
- * Handler for 'enter' event.
198
+ * Handler for the enter lifecycle.
199
+ * Runs when the dialog component registers its id during setup (not when `addDialog` is called).
192
200
  *
193
201
  * @category Behavior
194
202
  */
195
203
  onEnter?: () => void;
196
204
  /**
197
205
  * Handler for 'leave' event.
206
+ * Runs when the dialog is removed after it has entered (a public id exists).
198
207
  *
199
208
  * @category Behavior
200
209
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/types.ts"],"names":[],"mappings":"AACA,OA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IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QDismissibleLayer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/QDismissibleLayer.vue"],"names":[],"mappings":"AAKA;AAsKC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAwJpE,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QDismissibleLayer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/QDismissibleLayer.vue"],"names":[],"mappings":"AAKA;AAuKC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAA;AAuJpE,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,8 @@
1
- import { useDismissibleLayerStackItem as e } from "../../composables/useDismissibleLayerStack/index.js";
2
- import { createElementBlock as t, defineComponent as n, onMounted as r, onUnmounted as i, openBlock as a, renderSlot as o, useId as s, useTemplateRef as c } from "vue";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
+ import { useDismissibleLayerStackItem as t } from "../../composables/useDismissibleLayerStack/index.js";
3
+ import { createElementBlock as n, defineComponent as r, onMounted as i, onUnmounted as a, openBlock as o, renderSlot as s, useTemplateRef as c } from "vue";
3
4
  //#region src/components/QDismissibleLayer/QDismissibleLayer.vue?vue&type=script&setup=true&lang.ts
4
- var l = { ref: "layer" }, u = /*@__PURE__*/ n({
5
+ var l = { ref: "layer" }, u = /*@__PURE__*/ r({
5
6
  __name: "QDismissibleLayer",
6
7
  emits: [
7
8
  "escape-key-down",
@@ -10,8 +11,8 @@ var l = { ref: "layer" }, u = /*@__PURE__*/ n({
10
11
  "interact-outside",
11
12
  "dismiss"
12
13
  ],
13
- setup(n, { emit: u }) {
14
- let d = u, f = c("layer"), p = e(s()), m = [];
14
+ setup(r, { emit: u }) {
15
+ let d = u, f = c("layer"), p = t(e()), m = [];
15
16
  function h(e) {
16
17
  e.key === "Escape" && p?.isTop() && (d("escape-key-down", e), e.defaultPrevented || d("dismiss", e));
17
18
  }
@@ -49,15 +50,15 @@ var l = { ref: "layer" }, u = /*@__PURE__*/ n({
49
50
  });
50
51
  });
51
52
  }
52
- return r(() => {
53
+ return i(() => {
53
54
  p?.register(), document.addEventListener("keydown", h), m.push(() => {
54
55
  document.removeEventListener("keydown", h);
55
56
  }), document.addEventListener("focusin", g), m.push(() => {
56
57
  document.removeEventListener("focusin", g);
57
58
  }), v();
58
- }), i(() => {
59
+ }), a(() => {
59
60
  p?.unregister(), m.forEach((e) => e()), m = [];
60
- }), (e, n) => (a(), t("div", l, [o(e.$slots, "default")], 512));
61
+ }), (e, t) => (o(), n("div", l, [s(e.$slots, "default")], 512));
61
62
  }
62
63
  });
63
64
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"QDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDivider/QDivider.vue"],"names":[],"mappings":"AAeA;AAsEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AAiDvC,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;wFAQnB,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":"QDivider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDivider/QDivider.vue"],"names":[],"mappings":"AAeA;AAoEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;AA+CvC,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;wFAQnB,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"}
@@ -20,14 +20,14 @@ var p = ["id"], m = { class: "q-divider__label" }, h = /*@__PURE__*/ o({
20
20
  "q-divider--labeled": g.value
21
21
  },
22
22
  h.class
23
- ]), { isUtilityColor: v, style: y } = e(d(h, "color")), b = n(() => {
23
+ ]), { style: v } = e(d(h, "color")), y = n(() => {
24
24
  let e = {};
25
- return h.thickness >= 0 && h.thickness !== 1 && (e["--q-divider-thickness"] = `${h.thickness}px`), h.color !== "neutral" && (e["--q-divider-color"] = v.value ? `var(--q-theme-${h.color})` : y.value?.mainColor), e;
25
+ return h.thickness >= 0 && h.thickness !== 1 && (e["--q-divider-thickness"] = `${h.thickness}px`), h.color !== "neutral" && v.value?.mainColor && (e["--q-divider-color"] = v.value.mainColor), e;
26
26
  });
27
27
  return (e, n) => (l(), i("div", {
28
28
  id: h.id,
29
29
  class: s(_.value),
30
- style: c(b.value),
30
+ style: c(y.value),
31
31
  role: "separator"
32
32
  }, [g.value ? (l(), i(t, { key: 0 }, [
33
33
  n[0] ||= a("div", { class: "q-divider__line" }, null, -1),
@@ -1,6 +1,6 @@
1
1
  import { QButton as e } from "../QButton/index.js";
2
2
  import { QIcon as t } from "../QIcon/index.js";
3
- import { useId as n } from "../../composables/uid.js";
3
+ import { useId as n } from "../../composables/useId/index.js";
4
4
  import { QField as r } from "../QField/index.js";
5
5
  import { DEFAULT_ICONS as i, DEFAULT_TEXTS as a } from "./constants.js";
6
6
  import { useDropZone as o } from "../../composables/useDropZone/index.js";
@@ -1,6 +1,6 @@
1
1
  import { useTheme as e } from "../../composables/theme.js";
2
2
  import { resolveColor as t } from "../../composables/useColor/index.js";
3
- import { useId as n } from "../../composables/uid.js";
3
+ import { useId as n } from "../../composables/useId/index.js";
4
4
  import { DEFAULT_TEXTS as r } from "./constants.js";
5
5
  import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, mergeModels as d, normalizeClass as f, normalizeStyle as ee, openBlock as p, renderList as m, renderSlot as te, toDisplayString as h, toRef as g, unref as _, useModel as ne } from "vue";
6
6
  //#region src/components/QGauge/QGauge.vue?vue&type=script&setup=true&lang.ts
@@ -1 +1 @@
1
- {"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AAyDA;AAsIC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AAgEnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA2HT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;uFASnB,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":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AA0DA;AAuIC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAKvC,KAAK,WAAW,GAAG,cAAc,CAAC;AAgEnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6HT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;wBACH,GAAG;;;;EAe/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;uFASnB,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,6 +1,6 @@
1
1
  import { useGroupItem as e } from "../../composables/useGroup/index.js";
2
2
  import { QIcon as t } from "../QIcon/index.js";
3
- import { useId as n } from "../../composables/uid.js";
3
+ import { useId as n } from "../../composables/useId/index.js";
4
4
  import { QCheckbox as r } from "../QCheckbox/index.js";
5
5
  import { DEFAULT_ICONS as i } from "./constants.js";
6
6
  import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeModels as p, mergeProps as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, useModel as x, watch as S, withModifiers as C } from "vue";
@@ -68,7 +68,10 @@ var w = [
68
68
  p.selectable ? (_(), s("div", {
69
69
  key: 0,
70
70
  class: h(["q-list-item__check-container", { "q-list-item__check-container--top": p.description }])
71
- }, [p.checkboxless && k.value ? (_(), a(b(t), m({ key: 0 }, p.icons.check, { "aria-hidden": "true" }), null, 16)) : p.checkboxless ? o("v-if", !0) : (_(), a(b(r), {
71
+ }, [p.checkboxless && k.value ? (_(), a(b(t), m({ key: 0 }, p.icons.check, {
72
+ class: "q-list-item__check",
73
+ "aria-hidden": "true"
74
+ }), null, 16)) : p.checkboxless ? o("v-if", !0) : (_(), a(b(r), {
72
75
  key: 1,
73
76
  disabled: p.disabled,
74
77
  "model-value": k.value,
@@ -1,4 +1,4 @@
1
- import { useId as e } from "../../composables/uid.js";
1
+ import { useId as e } from "../../composables/useId/index.js";
2
2
  import { createCommentVNode as t, createElementBlock as n, defineComponent as r, openBlock as i, renderSlot as a, toDisplayString as o, unref as s } from "vue";
3
3
  //#region src/components/QList/QListItemGroup.vue?vue&type=script&setup=true&lang.ts
4
4
  var c = ["data-key", "aria-labelledby"], l = ["id"], u = /*@__PURE__*/ r({
@@ -59,7 +59,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
59
59
  mask: import('./types').QObfuscationMask;
60
60
  loading: boolean;
61
61
  icons: typeof DEFAULT_ICONS;
62
- texts: Partial<typeof DEFAULT_TEXTS>;
62
+ texts: typeof DEFAULT_TEXTS;
63
63
  labelPosition: import('..').QLabelPosition;
64
64
  revealable: boolean;
65
65
  bulletCount: number;