@quidgest/ui 0.32.0 → 0.32.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 (68) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/json/api.json +198 -28
  3. package/dist/ui.css +291 -108
  4. package/dist/ui.esm.js +989 -966
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.scss +433 -105
  7. package/lib/components/QAlert/QAlert.d.ts.map +1 -1
  8. package/lib/components/QAlert/QAlert.vue.js +13 -3
  9. package/lib/components/QAlert/types.d.ts +12 -0
  10. package/lib/components/QAlert/types.d.ts.map +1 -1
  11. package/lib/components/QBadge/QBadge.d.ts.map +1 -1
  12. package/lib/components/QBadge/QBadge.vue.js +20 -12
  13. package/lib/components/QBadge/types.d.ts +11 -0
  14. package/lib/components/QBadge/types.d.ts.map +1 -1
  15. package/lib/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  16. package/lib/components/QDateTimePicker/QDateTimePicker.vue.js +596 -574
  17. package/lib/components/QDefaultsProvider/QDefaultsProvider.vue.js +4 -2
  18. package/lib/components/QDefaultsProvider/types.d.ts +10 -0
  19. package/lib/components/QDefaultsProvider/types.d.ts.map +1 -1
  20. package/lib/components/QDrawer/QDrawer.d.ts.map +1 -1
  21. package/lib/components/QDrawer/QDrawer.vue.js +204 -201
  22. package/lib/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  23. package/lib/components/QDropdownMenu/QDropdownMenuContent.vue.js +95 -83
  24. package/lib/components/QField/types.d.ts +4 -4
  25. package/lib/components/QGauge/QGauge.d.ts.map +1 -1
  26. package/lib/components/QGauge/QGauge.vue.js +149 -121
  27. package/lib/components/QGauge/types.d.ts +16 -1
  28. package/lib/components/QGauge/types.d.ts.map +1 -1
  29. package/lib/components/QInputGroup/QInputGroup.d.ts +8 -7
  30. package/lib/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  31. package/lib/components/QInputGroup/QInputGroup.vue.js +82 -43
  32. package/lib/components/QLabel/QLabel.d.ts.map +1 -1
  33. package/lib/components/QLabel/QLabel.vue.js +1 -0
  34. package/lib/components/QList/QListItem.d.ts.map +1 -1
  35. package/lib/components/QList/QListItem.vue.js +39 -32
  36. package/lib/components/QMeter/types.d.ts +3 -0
  37. package/lib/components/QMeter/types.d.ts.map +1 -1
  38. package/lib/components/QOverlay/QOverlay.d.ts.map +1 -1
  39. package/lib/components/QOverlay/QOverlay.vue.js +88 -85
  40. package/lib/components/QPhoneField/QPhoneField.d.ts +6 -0
  41. package/lib/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  42. package/lib/components/QPhoneField/QPhoneField.vue.js +1 -1
  43. package/lib/components/QPhoneField/index.d.ts +3 -0
  44. package/lib/components/QPhoneField/index.d.ts.map +1 -1
  45. package/lib/components/QProgress/QProgress.d.ts.map +1 -1
  46. package/lib/components/QProgress/QProgress.vue.js +66 -47
  47. package/lib/components/QProgress/types.d.ts +3 -0
  48. package/lib/components/QProgress/types.d.ts.map +1 -1
  49. package/lib/components/QRadioGroup/QRadioGroup.d.ts +1 -1
  50. package/lib/components/QRadioGroup/index.d.ts +3 -3
  51. package/lib/components/QSelect/QSelect.d.ts +6 -0
  52. package/lib/components/QSelect/QSelect.d.ts.map +1 -1
  53. package/lib/components/QSelect/index.d.ts +3 -0
  54. package/lib/components/QSelect/index.d.ts.map +1 -1
  55. package/lib/components/QToast/QToaster.d.ts.map +1 -1
  56. package/lib/components/QToast/QToaster.vue.js +61 -58
  57. package/lib/composables/defaults.d.ts +25 -1
  58. package/lib/composables/defaults.d.ts.map +1 -1
  59. package/lib/composables/defaults.js +15 -7
  60. package/lib/composables/useColor/index.d.ts +2 -0
  61. package/lib/composables/useColor/index.d.ts.map +1 -1
  62. package/lib/composables/useColor/index.js +25 -19
  63. package/lib/composables/useColor/types.d.ts +12 -0
  64. package/lib/composables/useColor/types.d.ts.map +1 -1
  65. package/lib/utils/bidi.d.ts +27 -0
  66. package/lib/utils/bidi.d.ts.map +1 -0
  67. package/lib/utils/bidi.js +15 -0
  68. package/package.json +1 -1
@@ -1,27 +1,34 @@
1
1
  import { useId as e } from "../../composables/useId/index.js";
2
2
  import { useColor as t } from "../../composables/useColor/index.js";
3
- import { clamp as n, percentOfRange as r } from "../../utils/boundedValue.js";
4
- import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeModels as l, mergeProps as u, nextTick as d, normalizeClass as f, normalizeStyle as p, openBlock as m, ref as h, toDisplayString as g, toRef as _, unref as v, useModel as y, watch as b } from "vue";
3
+ import { isolateFirstStrong as n, isolateLeftToRight as r } from "../../utils/bidi.js";
4
+ import { clamp as i, percentOfRange as a } from "../../utils/boundedValue.js";
5
+ import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, toRef as S, unref as C, useModel as w, watch as T } from "vue";
5
6
  //#region src/components/QProgress/QProgress.vue?vue&type=script&setup=true&lang.ts
6
- var x = ["id"], S = [
7
+ var E = ["id"], D = [
7
8
  "id",
8
9
  "aria-valuenow",
9
10
  "aria-valuemin",
10
11
  "aria-valuemax",
11
12
  "aria-valuetext",
12
13
  "aria-labelledby"
13
- ], C = ["title"], w = {
14
+ ], O = ["title"], k = {
15
+ key: 0,
16
+ class: "q-progress__fill-number"
17
+ }, A = {
18
+ key: 1,
19
+ class: "q-progress__fill-label"
20
+ }, j = {
14
21
  class: "q-sr-only",
15
22
  role: "status",
16
23
  "aria-live": "polite",
17
24
  "aria-atomic": "true"
18
- }, T = {
25
+ }, M = {
19
26
  key: 1,
20
27
  class: "q-progress__values"
21
- }, E = { class: "q-progress__values-min" }, D = { class: "q-progress__values-max" }, O = /*@__PURE__*/ c({
28
+ }, N = { class: "q-progress__values-min" }, P = { class: "q-progress__values-max" }, F = /*@__PURE__*/ f({
22
29
  inheritAttrs: !1,
23
30
  __name: "QProgress",
24
- props: /*@__PURE__*/ l({
31
+ props: /*@__PURE__*/ p({
25
32
  id: {},
26
33
  class: {},
27
34
  label: {},
@@ -58,52 +65,64 @@ var x = ["id"], S = [
58
65
  modelModifiers: {}
59
66
  }),
60
67
  emits: ["update:modelValue"],
61
- setup(c) {
62
- let l = c, O = y(c, "modelValue"), { style: k } = t(_(l, "color")), A = e(_(l, "id")), j = i(() => Number.isFinite(l.min) ? l.min < l.max ? l.min : l.max : 0), M = i(() => Number.isFinite(l.max) ? l.max > l.min ? l.max : l.min === l.max ? l.max + 1 : l.min : j.value + 1), N = i(() => Number.isNaN(O.value) ? 0 : n(O.value, j.value, M.value)), P = i(() => Number(r(N.value, j.value, M.value).toFixed(2))), F = i(() => ["q-progress", l.class]), I = i(() => ["q-progress__bar", { "q-progress__bar--mini": l.mini }]), L = i(() => ["q-progress__fill", {
63
- "q-progress__fill--striped": l.striped,
64
- "q-progress__fill--animated": l.animated && P.value < 100
65
- }]), R = i(() => ({ "--q-progress-percentage": P.value })), z = i(() => {
66
- if (k.value) return {
67
- "--q-progress-main-color": k.value.mainColor,
68
- "--q-progress-main-color-rgb": k.value.mainColorRgb,
69
- "--q-progress-on-main-color": k.value.onMainColor
68
+ setup(f) {
69
+ let p = f, F = w(f, "modelValue"), { style: I } = t(S(p, "color")), L = e(S(p, "id")), R = s(() => Number.isFinite(p.min) ? p.min < p.max ? p.min : p.max : 0), z = s(() => Number.isFinite(p.max) ? p.max > p.min ? p.max : p.min === p.max ? p.max + 1 : p.min : R.value + 1), B = s(() => Number.isNaN(F.value) ? 0 : i(F.value, R.value, z.value)), V = s(() => Number(a(B.value, R.value, z.value).toFixed(2))), H = s(() => ["q-progress", p.class]), U = s(() => ["q-progress__bar", { "q-progress__bar--mini": p.mini }]), W = s(() => ["q-progress__fill", {
70
+ "q-progress__fill--striped": p.striped,
71
+ "q-progress__fill--animated": p.animated && V.value < 100
72
+ }]), G = s(() => ({ "--q-progress-percentage": V.value })), K = s(() => {
73
+ if (I.value) return {
74
+ "--q-progress-main-color": I.value.mainColor,
75
+ "--q-progress-main-color-rgb": I.value.mainColorRgb,
76
+ "--q-progress-on-main-color": I.value.onMainColor
70
77
  };
71
- }), B = i(() => `${l.text ? `${l.text} ` : ""}${N.value} (${P.value}%)`), V = i(() => {
72
- if (l.mini) return "";
73
- let e = l.text ?? "";
74
- return e += l.text && l.showValue ? " " : "", e += l.showValue ? N.value.toString() : "", e += (l.text || l.showValue) && l.showPercent ? " " : "", e += l.showPercent ? P.value.toString() + "%" : "", e;
75
- }), H = i(() => l.label ? A.value + "_label" : void 0), U = h(""), W = h(0);
76
- return b(O, async () => {
77
- let e = P.value;
78
- !(e < W.value) && e - W.value < 25 && e < 100 || (W.value = e, await d(), U.value = `${l.label ? `${l.label} ` : ""}${P.value}%`);
79
- }), (e, t) => (m(), o("div", { class: f(F.value) }, [
80
- l.label ? (m(), o("span", {
78
+ }), q = s(() => `${p.text ? `${p.text} ` : ""}${B.value} (${V.value}%)`), J = s(() => {
79
+ if (p.mini) return [];
80
+ let e = [];
81
+ return p.text && e.push({
82
+ text: p.text,
83
+ kind: "text"
84
+ }), p.showValue && e.push({
85
+ text: String(B.value),
86
+ kind: "number"
87
+ }), p.showPercent && e.push({
88
+ text: `${V.value}%`,
89
+ kind: "number"
90
+ }), e.flatMap((e, t) => t ? [{
91
+ text: " ",
92
+ kind: "space"
93
+ }, e] : [e]);
94
+ }), Y = s(() => J.value.map((e) => e.kind === "number" ? r(e.text) : e.kind === "text" ? n(e.text) : e.text).join("")), X = s(() => p.label ? L.value + "_label" : void 0), Z = y(""), Q = y(0);
95
+ return T(F, async () => {
96
+ let e = V.value;
97
+ !(e < Q.value) && e - Q.value < 25 && e < 100 || (Q.value = e, await h(), Z.value = `${p.label ? `${p.label} ` : ""}${V.value}%`);
98
+ }), (e, t) => (v(), l("div", { class: g(H.value) }, [
99
+ p.label ? (v(), l("span", {
81
100
  key: 0,
82
- id: H.value,
83
- class: f(["q-progress__label", "q-label"])
84
- }, g(l.label), 9, x)) : a("", !0),
85
- s("div", u({
86
- id: v(A),
87
- class: I.value,
88
- style: z.value,
101
+ id: X.value,
102
+ class: g(["q-progress__label", "q-label"])
103
+ }, x(p.label), 9, E)) : c("", !0),
104
+ u("div", m({
105
+ id: C(L),
106
+ class: U.value,
107
+ style: K.value,
89
108
  role: "progressbar",
90
- "aria-valuenow": N.value,
91
- "aria-valuemin": j.value,
92
- "aria-valuemax": M.value,
93
- "aria-valuetext": B.value || void 0,
94
- "aria-labelledby": H.value
95
- }, e.$attrs), [s("div", {
96
- class: f(L.value),
97
- style: p(R.value)
98
- }, [V.value ? (m(), o("span", {
109
+ "aria-valuenow": B.value,
110
+ "aria-valuemin": R.value,
111
+ "aria-valuemax": z.value,
112
+ "aria-valuetext": q.value || void 0,
113
+ "aria-labelledby": X.value
114
+ }, e.$attrs), [u("div", {
115
+ class: g(W.value),
116
+ style: _(G.value)
117
+ }, [J.value.length ? (v(), l("span", {
99
118
  key: 0,
100
119
  class: "q-progress__fill-text",
101
- title: V.value
102
- }, g(V.value), 9, C)) : a("", !0)], 6)], 16, S),
103
- s("div", w, g(U.value), 1),
104
- c.showLimits ? (m(), o("div", T, [s("span", E, g(j.value), 1), s("span", D, g(M.value), 1)])) : a("", !0)
120
+ title: Y.value
121
+ }, [(v(!0), l(o, null, b(J.value, (e, t) => (v(), l(o, { key: t }, [e.kind === "number" ? (v(), l("span", k, x(e.text), 1)) : e.kind === "text" ? (v(), l("span", A, x(e.text), 1)) : (v(), l(o, { key: 2 }, [d(x(e.text), 1)], 64))], 64))), 128))], 8, O)) : c("", !0)], 6)], 16, D),
122
+ u("div", j, x(Z.value), 1),
123
+ f.showLimits ? (v(), l("div", M, [u("span", N, x(R.value), 1), u("span", P, x(z.value), 1)])) : c("", !0)
105
124
  ], 2));
106
125
  }
107
126
  });
108
127
  //#endregion
109
- export { O as default };
128
+ export { F as default };
@@ -10,6 +10,9 @@ export type QProgressProps = QBaseComponentProps & {
10
10
  * Text displayed in the progress bar.
11
11
  * Not shown if the 'mini' prop is true.
12
12
  *
13
+ * In a right-to-left page, the text reads in the direction of its first letter: Arabic or Hebrew
14
+ * right to left, and a text with no letter, such as `-20%`, left to right, as written.
15
+ *
13
16
  * @category Content
14
17
  */
15
18
  text?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QProgress/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QProgress/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}
@@ -21,8 +21,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
21
21
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
22
22
  }>, {
23
23
  labelPosition: import('..').QLabelPosition;
24
- orientation: import('./types').QRadioButtonOrientation;
25
24
  columns: number;
25
+ orientation: import('./types').QRadioButtonOrientation;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
28
  export default _default;
@@ -41,8 +41,8 @@ declare const QRadioGroup: {
41
41
  "update:modelValue": (value: any) => any;
42
42
  }, import('vue').PublicProps, {
43
43
  labelPosition: import('..').QLabelPosition;
44
- orientation: import('./types').QRadioButtonOrientation;
45
44
  columns: number;
45
+ orientation: import('./types').QRadioButtonOrientation;
46
46
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
47
47
  P: {};
48
48
  B: {};
@@ -61,8 +61,8 @@ declare const QRadioGroup: {
61
61
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
62
62
  }>, {}, {}, {}, {}, {
63
63
  labelPosition: import('..').QLabelPosition;
64
- orientation: import('./types').QRadioButtonOrientation;
65
64
  columns: number;
65
+ orientation: import('./types').QRadioButtonOrientation;
66
66
  }>;
67
67
  __isFragment?: never;
68
68
  __isTeleport?: never;
@@ -80,8 +80,8 @@ declare const QRadioGroup: {
80
80
  "update:modelValue": (value: any) => any;
81
81
  }, string, {
82
82
  labelPosition: import('..').QLabelPosition;
83
- orientation: import('./types').QRadioButtonOrientation;
84
83
  columns: number;
84
+ orientation: import('./types').QRadioButtonOrientation;
85
85
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
86
86
  $slots: {
87
87
  default?(_: {}): any;
@@ -237,6 +237,7 @@ declare function __VLS_template(): {
237
237
  readonly class?: string | unknown[] | undefined;
238
238
  readonly variant?: import('..').QBadgeVariant | undefined;
239
239
  readonly color?: string | undefined;
240
+ readonly surface?: string | undefined;
240
241
  readonly pill?: boolean | undefined;
241
242
  readonly size?: import('../..').QComponentSize | undefined;
242
243
  readonly disabled?: boolean | undefined;
@@ -310,6 +311,7 @@ declare function __VLS_template(): {
310
311
  readonly class?: string | unknown[] | undefined;
311
312
  readonly variant?: import('..').QBadgeVariant | undefined;
312
313
  readonly color?: string | undefined;
314
+ readonly surface?: string | undefined;
313
315
  readonly pill?: boolean | undefined;
314
316
  readonly size?: import('../..').QComponentSize | undefined;
315
317
  readonly disabled?: boolean | undefined;
@@ -385,6 +387,7 @@ declare function __VLS_template(): {
385
387
  readonly class?: string | unknown[] | undefined;
386
388
  readonly variant?: import('..').QBadgeVariant | undefined;
387
389
  readonly color?: string | undefined;
390
+ readonly surface?: string | undefined;
388
391
  readonly pill?: boolean | undefined;
389
392
  readonly size?: import('../..').QComponentSize | undefined;
390
393
  readonly disabled?: boolean | undefined;
@@ -1002,6 +1005,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
1002
1005
  readonly class?: string | unknown[] | undefined;
1003
1006
  readonly variant?: import('..').QBadgeVariant | undefined;
1004
1007
  readonly color?: string | undefined;
1008
+ readonly surface?: string | undefined;
1005
1009
  readonly pill?: boolean | undefined;
1006
1010
  readonly size?: import('../..').QComponentSize | undefined;
1007
1011
  readonly disabled?: boolean | undefined;
@@ -1075,6 +1079,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
1075
1079
  readonly class?: string | unknown[] | undefined;
1076
1080
  readonly variant?: import('..').QBadgeVariant | undefined;
1077
1081
  readonly color?: string | undefined;
1082
+ readonly surface?: string | undefined;
1078
1083
  readonly pill?: boolean | undefined;
1079
1084
  readonly size?: import('../..').QComponentSize | undefined;
1080
1085
  readonly disabled?: boolean | undefined;
@@ -1150,6 +1155,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
1150
1155
  readonly class?: string | unknown[] | undefined;
1151
1156
  readonly variant?: import('..').QBadgeVariant | undefined;
1152
1157
  readonly color?: string | undefined;
1158
+ readonly surface?: string | undefined;
1153
1159
  readonly pill?: boolean | undefined;
1154
1160
  readonly size?: import('../..').QComponentSize | undefined;
1155
1161
  readonly disabled?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAqUA;AA29BC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAGrC,OAAO,EAEN,QAAQ,EAQR,MAAM,KAAK,CAAA;AAKZ,KAAK,WAAW,GAAG,YAAY,CAAC;AAoehC;;GAEG;AACH,iBAAS,SAAS,SAEjB;AAgIF,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EA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  readonly variant?: import('..').QBadgeVariant | undefined;
278
278
  readonly color?: string | undefined;
279
+ readonly surface?: string | undefined;
279
280
  readonly pill?: boolean | undefined;
280
281
  readonly size?: import('../..').QComponentSize | undefined;
281
282
  readonly disabled?: boolean | undefined;
@@ -349,6 +350,7 @@ declare const QSelect: {
349
350
  readonly class?: string | unknown[] | undefined;
350
351
  readonly variant?: import('..').QBadgeVariant | undefined;
351
352
  readonly color?: string | undefined;
353
+ readonly surface?: string | undefined;
352
354
  readonly pill?: boolean | undefined;
353
355
  readonly size?: import('../..').QComponentSize | undefined;
354
356
  readonly disabled?: boolean | undefined;
@@ -424,6 +426,7 @@ declare const QSelect: {
424
426
  readonly class?: string | unknown[] | undefined;
425
427
  readonly variant?: import('..').QBadgeVariant | undefined;
426
428
  readonly color?: string | undefined;
429
+ readonly surface?: string | undefined;
427
430
  readonly pill?: boolean | undefined;
428
431
  readonly size?: import('../..').QComponentSize | undefined;
429
432
  readonly disabled?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAOq70B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;w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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAP/g1B,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,cAAc,SAAS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAyDA;AA6QC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;;;AA+TvC,wBAQG"}
1
+ {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAyDA;AAmRC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;;;AAmUvC,wBAQG"}
@@ -1,20 +1,21 @@
1
- import { useId as e } from "../../composables/useId/index.js";
2
- import { modalLayers as t } from "../QOverlay/layers.js";
3
- import { injectToastInstance as n, removeToastByEntryKey as r } from "../../composables/useToast/_internal.js";
4
- import { ANNOUNCEMENT_LIFETIME as i } from "./constants.js";
5
- import { ToasterSymbol as a } from "./context.js";
6
- import { QToast as o } from "./index.js";
7
- import { Fragment as s, Teleport as c, TransitionGroup as l, computed as u, createBlock as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, mergeProps as g, normalizeClass as _, onMounted as v, onUnmounted as y, openBlock as b, provide as x, ref as S, renderList as C, toDisplayString as w, toRef as T, unref as E, useTemplateRef as D, watch as O, withCtx as k } from "vue";
1
+ import { provideOuterDefaults as e } from "../../composables/defaults.js";
2
+ import { useId as t } from "../../composables/useId/index.js";
3
+ import { modalLayers as n } from "../QOverlay/layers.js";
4
+ import { injectToastInstance as r, removeToastByEntryKey as i } from "../../composables/useToast/_internal.js";
5
+ import { ANNOUNCEMENT_LIFETIME as a } from "./constants.js";
6
+ import { ToasterSymbol as o } from "./context.js";
7
+ import { QToast as s } from "./index.js";
8
+ import { Fragment as c, Teleport as l, TransitionGroup as u, computed as d, createBlock as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeClass as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, ref as C, renderList as w, toDisplayString as T, toRef as E, unref as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
8
9
  //#region src/components/QToast/QToaster.vue?vue&type=script&setup=true&lang.ts
9
- var A = ["id", "data-placement"], j = {
10
+ var j = ["id", "data-placement"], M = {
10
11
  class: "q-sr-only",
11
12
  role: "status",
12
13
  "aria-atomic": "false"
13
- }, M = {
14
+ }, N = {
14
15
  class: "q-sr-only",
15
16
  role: "alert",
16
17
  "aria-atomic": "false"
17
- }, N = /*@__PURE__*/ h({
18
+ }, P = /*@__PURE__*/ g({
18
19
  __name: "QToaster",
19
20
  props: {
20
21
  id: {},
@@ -23,84 +24,86 @@ var A = ["id", "data-placement"], j = {
23
24
  maxToasts: {},
24
25
  reverseOrder: { type: Boolean }
25
26
  },
26
- setup(h) {
27
- let N = h, P = e(T(N, "id")), F = n(), { toasts: I } = F;
28
- F.registerToaster(), y(() => F.unregisterToaster()), O(() => N.maxToasts, (e) => F.setMaxToasts(e), { immediate: !0 });
29
- let L = u(() => t.value.at(-1)), R = D("root"), z = S(!1), B = u(() => {
30
- if (!z.value) return N.placement;
31
- let [e, t] = N.placement.split("-");
27
+ setup(g) {
28
+ let P = g;
29
+ e();
30
+ let F = t(E(P, "id")), I = r(), { toasts: L } = I;
31
+ I.registerToaster(), b(() => I.unregisterToaster()), k(() => P.maxToasts, (e) => I.setMaxToasts(e), { immediate: !0 });
32
+ let R = d(() => n.value.at(-1)), z = O("root"), B = C(!1), V = d(() => {
33
+ if (!B.value) return P.placement;
34
+ let [e, t] = P.placement.split("-");
32
35
  return `${e === "top" ? "bottom" : "top"}-${t}`;
33
36
  });
34
- function V(e, t, n) {
37
+ function H(e, t, n) {
35
38
  return e.reduce((e, r) => {
36
39
  let i = Math.min(r.right, t.right) - Math.max(r.left, t.left), a = Math.min(r.bottom + n, t.bottom) - Math.max(r.top + n, t.top);
37
40
  return e + (i > 0 && a > 0 ? i * a : 0);
38
41
  }, 0);
39
42
  }
40
- function H() {
41
- let e = R.value, t = document.activeElement;
43
+ function U() {
44
+ let e = z.value, t = document.activeElement;
42
45
  if (!e || !t || t === document.body || e.contains(t)) return;
43
46
  let n = Array.from(e.querySelectorAll(".q-toast__container:not(.q-toast-stack-leave-active)"), (e) => e.getBoundingClientRect()), r = getComputedStyle(e), i = e.getBoundingClientRect(), a = i.top + (parseFloat(r.paddingTop) || 0), o = i.bottom - (parseFloat(r.paddingBottom) || 0), s = Math.min(...n.map((e) => e.top)), c = Math.max(...n.map((e) => e.bottom));
44
47
  if (c - s >= o - a) return;
45
- let l = B.value.startsWith("top") ? o - c : a - s, u = t.getBoundingClientRect(), d = V(n, u, 0), f = V(n, u, l), p = z.value ? f : d, m = z.value ? d : f;
46
- z.value = p > 0 && m < p;
48
+ let l = V.value.startsWith("top") ? o - c : a - s, u = t.getBoundingClientRect(), d = H(n, u, 0), f = H(n, u, l), p = B.value ? f : d, m = B.value ? d : f;
49
+ B.value = p > 0 && m < p;
47
50
  }
48
- v(() => document.addEventListener("focusin", H)), y(() => document.removeEventListener("focusin", H));
49
- let U = u(() => {
50
- let e = [...I.value];
51
- return N.reverseOrder ? e.reverse() : e;
51
+ y(() => document.addEventListener("focusin", U)), b(() => document.removeEventListener("focusin", U));
52
+ let W = d(() => {
53
+ let e = [...L.value];
54
+ return P.reverseOrder ? e.reverse() : e;
52
55
  });
53
- function W(e) {
54
- r(F, e.entryKey);
56
+ function G(e) {
57
+ i(I, e.entryKey);
55
58
  }
56
- let G = S([]), K = S([]), q = /* @__PURE__ */ new Set(), J = 0;
57
- function Y(e, t) {
59
+ let K = C([]), q = C([]), J = /* @__PURE__ */ new Set(), Y = 0;
60
+ function X(e, t) {
58
61
  let n = window.setTimeout(() => {
59
- q.delete(n), e();
62
+ J.delete(n), e();
60
63
  }, t);
61
- q.add(n);
64
+ J.add(n);
62
65
  }
63
- function X(e, t) {
64
- let n = t === "assertive" ? K : G, r = ++J;
65
- Y(() => {
66
+ function Z(e, t) {
67
+ let n = t === "assertive" ? q : K, r = ++Y;
68
+ X(() => {
66
69
  n.value.push({
67
70
  key: r,
68
71
  text: e
69
- }), Y(() => {
72
+ }), X(() => {
70
73
  n.value = n.value.filter((e) => e.key !== r);
71
- }, i);
74
+ }, a);
72
75
  }, 100);
73
76
  }
74
- return x(a, {
75
- announce: X,
77
+ return S(o, {
78
+ announce: Z,
76
79
  focusOrigin: {}
77
- }), y(() => {
78
- for (let e of q) window.clearTimeout(e);
79
- q.clear();
80
- }), (e, t) => (b(), f(s, null, [
81
- (b(), d(c, {
82
- to: L.value ?? "body",
83
- disabled: !L.value
84
- }, [p("div", {
85
- id: E(P),
80
+ }), b(() => {
81
+ for (let e of J) window.clearTimeout(e);
82
+ J.clear();
83
+ }), (e, t) => (x(), p(c, null, [
84
+ (x(), f(l, {
85
+ to: R.value ?? "body",
86
+ disabled: !R.value
87
+ }, [m("div", {
88
+ id: D(F),
86
89
  ref: "root",
87
- class: _(["q-toaster", N.class]),
88
- "data-placement": B.value
89
- }, [m(l, {
90
+ class: v(["q-toaster", P.class]),
91
+ "data-placement": V.value
92
+ }, [h(u, {
90
93
  name: "q-toast-stack",
91
- onAfterEnter: H,
92
- onAfterLeave: H
94
+ onAfterEnter: U,
95
+ onAfterLeave: U
93
96
  }, {
94
- default: k(() => [(b(!0), f(s, null, C(U.value, (e) => (b(), f("div", {
97
+ default: A(() => [(x(!0), p(c, null, w(W.value, (e) => (x(), p("div", {
95
98
  key: e.entryKey,
96
99
  class: "q-toast__container"
97
- }, [m(E(o), g({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => W(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
100
+ }, [h(D(s), _({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => G(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
98
101
  _: 1
99
- })], 10, A)], 8, ["to", "disabled"])),
100
- p("div", j, [(b(!0), f(s, null, C(G.value, (e) => (b(), f("div", { key: e.key }, w(e.text), 1))), 128))]),
101
- p("div", M, [(b(!0), f(s, null, C(K.value, (e) => (b(), f("div", { key: e.key }, w(e.text), 1))), 128))])
102
+ })], 10, j)], 8, ["to", "disabled"])),
103
+ m("div", M, [(x(!0), p(c, null, w(K.value, (e) => (x(), p("div", { key: e.key }, T(e.text), 1))), 128))]),
104
+ m("div", N, [(x(!0), p(c, null, w(q.value, (e) => (x(), p("div", { key: e.key }, T(e.text), 1))), 128))])
102
105
  ], 64));
103
106
  }
104
107
  });
105
108
  //#endregion
106
- export { N as default };
109
+ export { P as default };
@@ -3,14 +3,38 @@ export declare const DEFAULTS_SYMBOL = "q-defaults";
3
3
  export type QDefaults = Record<string | symbol, QComponentDefaults>;
4
4
  export type QComponentDefaults = Record<string | symbol, unknown>;
5
5
  export declare function useDefaults(): ComputedRef<QComponentDefaults | undefined>;
6
+ /**
7
+ * Options for {@link provideDefaults}.
8
+ */
9
+ export type QProvideDefaultsOptions = {
10
+ /**
11
+ * Keeps these defaults out of what is drawn on its own surface, over the page, but declared
12
+ * below: overlays (dialogs, popovers, menus), temporary drawers and toasts
13
+ * ({@link provideOuterDefaults}). They reach every other component below. For defaults that
14
+ * depend on where the content is drawn, such as the `surface` of the buttons in an alert's
15
+ * actions.
16
+ */
17
+ local?: MaybeRefOrGetter<boolean | undefined>;
18
+ };
6
19
  /**
7
20
  * Function to provide or update default values using the Vue.js `provide` function.
8
21
  * It takes a set of default values, merges them with the existing defaults (if any),
9
22
  * and then provides the merged defaults using the specified symbol.
10
23
  *
11
24
  * @param defaults - The default values to be provided or updated.
25
+ * @param options - Whether the defaults are local, kept out of overlays.
26
+ */
27
+ export declare function provideDefaults(defaults: MaybeRefOrGetter<QDefaults>, options?: QProvideDefaultsOptions): void;
28
+ /**
29
+ * Leaves the local defaults out of the components below, for content drawn on its own surface,
30
+ * over the page: an overlay's, a temporary drawer's, the toasts. Local defaults depend on where
31
+ * the content is declared, and it is drawn somewhere else. The defaults the app sets, and those
32
+ * of every provider that is not local, still reach them.
33
+ *
34
+ * @param when - Whether the content is drawn on its own surface now, such as a drawer that is
35
+ * temporary. Always, when left out.
12
36
  */
13
- export declare function provideDefaults(defaults: MaybeRefOrGetter<QDefaults>): void;
37
+ export declare function provideOuterDefaults(when?: MaybeRefOrGetter<boolean>): void;
14
38
  /**
15
39
  * Passes a boolean prop down with {@link provideDefaults}: `true` when it is set, `undefined`
16
40
  * otherwise. `toRef(props, 'disabled')` would pass `false` when the prop is not set, since Vue
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAOxD,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,kBAAkB,CAAC,CAAA;AAEnE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjE,wBAAgB,WAAW,IAAI,WAAW,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAezE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAA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AgB,cAAc,IAAI,WAAW,CAAC,SAAS,CAAC,CAMvD"}
@@ -8,21 +8,29 @@ function l() {
8
8
  if (!e) throw Error("[Quidgest UI] useDefaults must be called from inside a setup function");
9
9
  let i = e.type.name ?? e.type.__name;
10
10
  if (!i) throw Error("[Quidgest UI] Could not determine component name");
11
- let a = f();
11
+ let a = h();
12
12
  return n(() => t(a.value?.Global, a.value?.[i]));
13
13
  }
14
- function u(r) {
14
+ var u = "q-outer-defaults";
15
+ function d(r, i = {}) {
15
16
  if (e(r)) return;
16
- let i = f(), l = o(s(r));
17
- a(c, n(() => e(l.value) ? i.value : t(i.value, l.value)));
17
+ let l = h(), d = p(), f = o(s(r)), m = (n) => e(f.value) ? n.value : t(n.value, f.value);
18
+ a(c, n(() => m(l))), a(u, n(() => s(i.local) ? d.value : m(d)));
18
19
  }
19
- function d(e) {
20
+ function f(e = !0) {
21
+ let t = h(), r = p();
22
+ a(c, n(() => s(e) ? r.value : t.value)), a(u, r);
23
+ }
24
+ function p() {
25
+ return i(u, void 0) ?? h();
26
+ }
27
+ function m(e) {
20
28
  return n(() => e() || void 0);
21
29
  }
22
- function f() {
30
+ function h() {
23
31
  let e = i(c, void 0);
24
32
  if (!e) throw Error("[Quidgest UI] Could not find defaults instance");
25
33
  return e;
26
34
  }
27
35
  //#endregion
28
- export { c as DEFAULTS_SYMBOL, d as booleanDefault, f as injectDefaults, u as provideDefaults, l as useDefaults };
36
+ export { c as DEFAULTS_SYMBOL, m as booleanDefault, h as injectDefaults, d as provideDefaults, f as provideOuterDefaults, l as useDefaults };
@@ -71,6 +71,8 @@ export declare function resolveHoverStyle(scheme: Readonly<QColorScheme>, mainRg
71
71
  * - textColor: `mainColor` darkened or lightened until it clears 4.5:1 on a 12% tint of itself over the surface, and on the surface itself (outlined, ghost and text variants), over the background and the container without one
72
72
  * - hoverTextColor: `hoverColor` adjusted the same way against a 6% tint of the hover color over the same surfaces (the ghost hover fill) and against the bare surfaces (text hover)
73
73
  * - tintColor / tintColorRgb: A pale version of the color for selection and highlight surfaces, like the scheme's `*Light` tokens
74
+ * - surfaceColor: The `surface` resolved against the scheme, for a component to pass on to what it renders; `undefined` without one or with one that cannot be parsed, which warns once here
75
+ * - tonalSurfaceColor: The tonal fill as the browser paints it, the color blended 12% over the surface (or the background without one), which `textColor` is measured on
74
76
  *
75
77
  * @example
76
78
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AA6B1D,KAAK,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC,CAAA;AA0CpF;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,GACV,MAAM,CAUR;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC9B,OAAO,EAAE,GAAG,EACZ,UAAU,GAAE,GAAmC,GAC7C,UAAU,CAEZ;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAgB,QAAQ,CACvB,KAAK,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,EACnC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,GACpC,eAAe,CA0DjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,CAAC,KAA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