@quidgest/ui 0.20.1 → 0.21.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 (129) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +10 -0
  3. package/dist/json/api.json +36 -1
  4. package/dist/ui.css +52 -248
  5. package/dist/ui.esm.js +782 -677
  6. package/dist/ui.js +718 -613
  7. package/dist/ui.min.css +1 -1
  8. package/dist/ui.min.js +718 -613
  9. package/dist/ui.scss +74 -34
  10. package/esm/components/QAccordion/QAccordionItem.vue.js +1 -1
  11. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  12. package/esm/components/QBadge/QBadge.vue.js +20 -24
  13. package/esm/components/QButton/QButton.d.ts.map +1 -1
  14. package/esm/components/QButton/QButton.vue.js +32 -29
  15. package/esm/components/QCheckbox/QCheckbox.vue.js +1 -1
  16. package/esm/components/QDialog/QDialog.d.ts +4 -2
  17. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  18. package/esm/components/QDialog/QDialog.vue.js +84 -74
  19. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
  20. package/esm/components/QDialog/QDialogProvider.vue.js +21 -12
  21. package/esm/components/QDialog/index.d.ts +72 -3
  22. package/esm/components/QDialog/index.d.ts.map +1 -1
  23. package/esm/components/QDialog/types.d.ts +10 -1
  24. package/esm/components/QDialog/types.d.ts.map +1 -1
  25. package/esm/components/QDismissibleLayer/QDismissibleLayer.d.ts.map +1 -1
  26. package/esm/components/QDismissibleLayer/QDismissibleLayer.vue.js +9 -8
  27. package/esm/components/QDivider/QDivider.d.ts.map +1 -1
  28. package/esm/components/QDivider/QDivider.vue.js +3 -3
  29. package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
  30. package/esm/components/QGauge/QGauge.vue.js +1 -1
  31. package/esm/components/QList/QListItem.d.ts.map +1 -1
  32. package/esm/components/QList/QListItem.vue.js +5 -2
  33. package/esm/components/QList/QListItemGroup.vue.js +1 -1
  34. package/esm/components/QObfuscation/QObfuscation.vue.js +1 -1
  35. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  36. package/esm/components/QPhoneField/QPhoneField.vue.js +1 -1
  37. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +1 -1
  38. package/esm/components/QPropertyList/QPropertyListRow.vue.js +1 -1
  39. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  40. package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
  41. package/esm/components/QRadioGroup/QRadioGroup.vue.js +2 -2
  42. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  43. package/esm/components/QSelect/QSelect.vue.js +1 -1
  44. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  45. package/esm/components/QSidebar/QSidebar.vue.js +19 -10
  46. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  47. package/esm/components/QSidebar/QSidebarItem.vue.js +51 -49
  48. package/esm/components/QSidebar/context.d.ts +7 -0
  49. package/esm/components/QSidebar/context.d.ts.map +1 -1
  50. package/esm/components/QSwitch/QSwitch.vue.js +1 -1
  51. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  52. package/esm/components/QTabs/QTab.vue.js +52 -50
  53. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  54. package/esm/components/QTabs/QTabs.vue.js +37 -12
  55. package/esm/components/QTabs/context.d.ts +7 -0
  56. package/esm/components/QTabs/context.d.ts.map +1 -1
  57. package/esm/components/QTextArea/QTextArea.vue.js +1 -1
  58. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  59. package/esm/components/QTextField/QTextField.vue.js +1 -1
  60. package/esm/components/QThemeProvider/QThemeProvider.vue.js +1 -1
  61. package/esm/components/QToast/QToast.d.ts +4 -2
  62. package/esm/components/QToast/QToast.d.ts.map +1 -1
  63. package/esm/components/QToast/QToast.vue.js +80 -67
  64. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  65. package/esm/components/QToast/QToaster.vue.js +21 -16
  66. package/esm/components/QToast/index.d.ts +39 -3
  67. package/esm/components/QToast/index.d.ts.map +1 -1
  68. package/esm/components/QToast/types.d.ts +6 -2
  69. package/esm/components/QToast/types.d.ts.map +1 -1
  70. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -1
  71. package/esm/components/QTooltip/QTooltip.vue.js +1 -1
  72. package/esm/composables/index.d.ts +2 -2
  73. package/esm/composables/index.d.ts.map +1 -1
  74. package/esm/composables/useColor/index.d.ts +46 -17
  75. package/esm/composables/useColor/index.d.ts.map +1 -1
  76. package/esm/composables/useColor/index.js +57 -29
  77. package/esm/composables/useColor/types.d.ts +4 -1
  78. package/esm/composables/useColor/types.d.ts.map +1 -1
  79. package/esm/composables/useDialog/_internal.d.ts +2 -0
  80. package/esm/composables/useDialog/_internal.d.ts.map +1 -0
  81. package/esm/composables/useDialog/_internal.js +65 -0
  82. package/esm/composables/useDialog/index.d.ts +11 -3
  83. package/esm/composables/useDialog/index.d.ts.map +1 -1
  84. package/esm/composables/useDialog/index.js +38 -22
  85. package/esm/composables/useDialog/types.d.ts +25 -11
  86. package/esm/composables/useDialog/types.d.ts.map +1 -1
  87. package/esm/composables/useDismissibleLayerStack/index.d.ts +17 -2
  88. package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -1
  89. package/esm/composables/useDismissibleLayerStack/index.js +28 -11
  90. package/esm/composables/useGroup/index.d.ts.map +1 -1
  91. package/esm/composables/useGroup/index.js +12 -1
  92. package/esm/composables/useId/index.d.ts +18 -0
  93. package/esm/composables/useId/index.d.ts.map +1 -0
  94. package/esm/composables/useId/index.js +10 -0
  95. package/esm/composables/useToast/_internal.d.ts +2 -0
  96. package/esm/composables/useToast/_internal.d.ts.map +1 -0
  97. package/esm/composables/useToast/_internal.js +142 -0
  98. package/esm/composables/useToast/index.d.ts +8 -25
  99. package/esm/composables/useToast/index.d.ts.map +1 -1
  100. package/esm/composables/useToast/index.js +29 -26
  101. package/esm/composables/useToast/types.d.ts +31 -17
  102. package/esm/composables/useToast/types.d.ts.map +1 -1
  103. package/esm/framework.d.ts.map +1 -1
  104. package/esm/framework.js +16 -12
  105. package/esm/templates/theme.js +39 -39
  106. package/esm/utils/color/contrast.d.ts +11 -4
  107. package/esm/utils/color/contrast.d.ts.map +1 -1
  108. package/esm/utils/color/contrast.js +16 -3
  109. package/esm/utils/color/index.d.ts +1 -0
  110. package/esm/utils/color/index.d.ts.map +1 -1
  111. package/esm/utils/color/merge.d.ts +9 -0
  112. package/esm/utils/color/merge.d.ts.map +1 -1
  113. package/esm/utils/color/merge.js +21 -22
  114. package/esm/utils/color/parse.d.ts +21 -5
  115. package/esm/utils/color/parse.d.ts.map +1 -1
  116. package/esm/utils/color/parse.js +88 -20
  117. package/esm/utils/color/theme-colors.d.ts +35 -0
  118. package/esm/utils/color/theme-colors.d.ts.map +1 -0
  119. package/esm/utils/color/theme-colors.js +25 -0
  120. package/esm/utils/index.js +50 -42
  121. package/package.json +3 -5
  122. package/esm/composables/uid.d.ts +0 -9
  123. package/esm/composables/uid.d.ts.map +0 -1
  124. package/esm/composables/uid.js +0 -8
  125. package/esm/composables/useToast/types.js +0 -4
  126. package/esm/vendors/uuid/dist/native.js +0 -3
  127. package/esm/vendors/uuid/dist/rng.js +0 -11
  128. package/esm/vendors/uuid/dist/stringify.js +0 -8
  129. package/esm/vendors/uuid/dist/v4.js +0 -20
@@ -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 { QField as t } from "../QField/index.js";
3
3
  import { QClearButton as n } from "../__internal__/QClearButton/index.js";
4
4
  import { computed as r, createBlock as i, createCommentVNode as a, createElementVNode as o, createSlots as s, defineComponent as c, mergeModels as l, mergeProps as u, normalizeClass as d, openBlock as f, renderSlot as p, toRef as m, unref as h, useModel as g, useTemplateRef as _, vModelDynamic as v, watch as y, withCtx as b, withDirectives as x } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { provideTheme as e } from "../../composables/theme.js";
2
- import { useId as t } from "../../composables/uid.js";
2
+ import { useId as t } from "../../composables/useId/index.js";
3
3
  import { createElementBlock as n, defineComponent as r, normalizeClass as i, onBeforeUnmount as a, openBlock as o, renderSlot as s, toRef as c, unref as l, watchEffect as u } from "vue";
4
4
  //#region src/components/QThemeProvider/QThemeProvider.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = ["id"], f = /*@__PURE__*/ r({
@@ -1,5 +1,6 @@
1
1
  import { DEFAULT_ICONS } from './constants';
2
2
  import { QToastProps } from '.';
3
+ type __VLS_Props = QToastProps & {};
3
4
  declare function __VLS_template(): {
4
5
  attrs: Partial<{}>;
5
6
  slots: {
@@ -13,15 +14,16 @@ declare function __VLS_template(): {
13
14
  rootEl: any;
14
15
  };
15
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<QToastProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
18
  dismiss: () => any;
18
- }, string, import('vue').PublicProps, Readonly<QToastProps> & Readonly<{
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
20
  onDismiss?: (() => any) | undefined;
20
21
  }>, {
21
22
  variant: import('./types').QToastVariant;
22
23
  color: string;
23
24
  elevation: import('..').QCardElevation;
24
25
  icons: typeof DEFAULT_ICONS;
26
+ entryKey: string;
25
27
  timeout: number;
26
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"QToast.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToast.vue"],"names":[],"mappings":"AAwEA;AAyMC,OAAO,EAAE,aAA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CAAC"}
@@ -1,16 +1,17 @@
1
1
  import { rgbToHex as e } from "../../utils/color/conversion.js";
2
2
  import { parseColor as t } from "../../utils/color/parse.js";
3
3
  import { lighten as n } from "../../utils/color/manipulate.js";
4
- import { useTheme as r } from "../../composables/theme.js";
5
- import { useColor as i } from "../../composables/useColor/index.js";
6
- import { QButton as a } from "../QButton/index.js";
7
- import { QCard as o } from "../QCard/index.js";
8
- import { QIcon as s } from "../QIcon/index.js";
4
+ import { useColor as r } from "../../composables/useColor/index.js";
5
+ import { QButton as i } from "../QButton/index.js";
6
+ import { QCard as a } from "../QCard/index.js";
7
+ import { QIcon as o } from "../QIcon/index.js";
8
+ import { useId as s } from "../../composables/useId/index.js";
9
9
  import { QCol as c, QContainer as l, QRow as u } from "../QGrid/index.js";
10
- import { DEFAULT_ICONS as d } from "./constants.js";
11
- import { computed as f, createBlock as p, createCommentVNode as m, createElementVNode as h, createSlots as g, createVNode as _, defineComponent as v, guardReactiveProps as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onMounted as C, onUnmounted as w, openBlock as T, renderSlot as E, toDisplayString as D, toRef as O, unref as k, withCtx as A } from "vue";
10
+ import { ToastSymbol as d } from "../../composables/useToast/_internal.js";
11
+ import { DEFAULT_ICONS as f } from "./constants.js";
12
+ import { computed as p, createBlock as m, createCommentVNode as h, createElementVNode as g, createSlots as _, createVNode as v, defineComponent as y, guardReactiveProps as b, inject as x, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onMounted as T, onUnmounted as E, openBlock as D, renderSlot as O, toDisplayString as k, toRef as A, unref as j, watch as M, withCtx as N } from "vue";
12
13
  //#region src/components/QToast/QToast.vue?vue&type=script&setup=true&lang.ts
13
- var j = { class: "q-toast__title" }, M = /*@__PURE__*/ v({
14
+ var P = { class: "q-toast__title" }, F = /*@__PURE__*/ y({
14
15
  __name: "QToast",
15
16
  props: {
16
17
  id: {},
@@ -22,72 +23,84 @@ var j = { class: "q-toast__title" }, M = /*@__PURE__*/ v({
22
23
  elevation: { default: "medium" },
23
24
  variant: { default: "tonal" },
24
25
  timeout: { default: 5e3 },
25
- icons: { default: () => d }
26
+ icons: { default: () => f },
27
+ entryKey: { default: void 0 }
26
28
  },
27
29
  emits: ["dismiss"],
28
- setup(d, { emit: v }) {
29
- let M = d, N = v, P = r(), { isUtilityColor: F, style: I } = i(O(M, "color")), L = f(() => {
30
- let e = F.value ? `q-toast--${M.color}` : void 0, t = M.block ? "q-toast--block" : void 0, n = M.title ? "q-toast--vertical" : void 0;
30
+ setup(f, { emit: y }) {
31
+ let F = f, I = y, L = s(A(F, "id")), R = F.entryKey ? x(d, null) : null;
32
+ F.entryKey && (R?.registerToastEntry(F.entryKey, L.value), M(L, (e, t) => {
33
+ e === t || !F.entryKey || R?.updateToastEntryId(F.entryKey, e);
34
+ }));
35
+ let { style: z } = r(A(F, "color")), B = p(() => {
36
+ let e = F.block ? "q-toast--block" : void 0, t = F.title ? "q-toast--vertical" : void 0;
31
37
  return [
32
38
  "q-toast",
33
- `q-toast--${M.variant}`,
39
+ `q-toast--${F.variant}`,
34
40
  e,
35
41
  t,
36
- n,
37
- M.class
42
+ F.class
38
43
  ];
39
- }), R = f(() => {
40
- let r = F.value ? W(M.color) : I.value?.mainColor;
44
+ }), V = p(() => {
45
+ let r = z.value?.mainColor;
41
46
  if (r) return e(n(t(r), 88));
42
- }), z = f(() => F.value ? { "--q-toast-tonal-color": R.value } : {
43
- "--q-toast-main-color": I.value?.mainColor,
44
- "--q-toast-on-main-color": I.value?.onMainColor,
45
- "--q-toast-hover-color": I.value?.hoverColor,
46
- "--q-toast-tonal-color": R.value
47
- }), B = f(() => M.variant === "bold" ? "bold" : "ghost"), V;
48
- function H() {
49
- V !== void 0 && window.clearTimeout(V), N("dismiss");
47
+ }), H = p(() => z.value ? {
48
+ "--q-toast-main-color": z.value.mainColor,
49
+ "--q-toast-on-main-color": z.value.onMainColor,
50
+ "--q-toast-hover-color": z.value.hoverColor,
51
+ "--q-toast-tonal-color": V.value
52
+ } : { "--q-toast-tonal-color": V.value }), U = p(() => F.variant === "bold" ? "bold" : "ghost"), W = p(() => F.variant === "tonal" && z.value?.hoverColor ? z.value.hoverColor : F.color), G, K, q;
53
+ function J() {
54
+ G !== void 0 && (window.clearTimeout(G), G = void 0), K = void 0, q = void 0, I("dismiss");
50
55
  }
51
- function U() {
52
- V = window.setTimeout(H, M.timeout);
56
+ function Y(e) {
57
+ q = e, K = Date.now(), G = window.setTimeout(J, e);
53
58
  }
54
- function W(e) {
55
- let t = P.current.value.scheme;
56
- if (e in t) return t[e];
57
- }
58
- return C(() => {
59
- M.timeout > 0 && U();
60
- }), w(() => {
61
- V !== void 0 && window.clearTimeout(V);
62
- }), (e, t) => (T(), p(k(o), {
63
- id: M.id,
64
- elevation: M.elevation,
65
- width: M.block ? "block" : void 0,
66
- class: b(L.value),
67
- style: S(z.value)
68
- }, g({
69
- default: A(() => [_(k(l), {
59
+ return T(() => {
60
+ if (!F.entryKey) {
61
+ F.timeout > 0 && Y(F.timeout);
62
+ return;
63
+ }
64
+ let e = R?.consumeRemainingTimeout(F.entryKey);
65
+ if (e !== void 0) {
66
+ e > 0 ? Y(e) : J();
67
+ return;
68
+ }
69
+ F.timeout > 0 && Y(F.timeout);
70
+ }), E(() => {
71
+ if (G !== void 0 && (window.clearTimeout(G), F.entryKey && R && K !== void 0 && q !== void 0)) {
72
+ let e = Date.now() - K, t = Math.max(0, q - e);
73
+ R.setRemainingTimeout(F.entryKey, t);
74
+ }
75
+ }), (e, t) => (D(), m(j(a), {
76
+ id: j(L),
77
+ elevation: F.elevation,
78
+ width: F.block ? "block" : void 0,
79
+ class: S(B.value),
80
+ style: w(H.value)
81
+ }, _({
82
+ default: N(() => [v(j(l), {
70
83
  fluid: "",
71
84
  class: "q-toast__body"
72
85
  }, {
73
- default: A(() => [_(k(u), {
86
+ default: N(() => [v(j(u), {
74
87
  align: "center",
75
88
  justify: "between"
76
89
  }, {
77
- default: A(() => [_(k(c), null, {
78
- default: A(() => [E(e.$slots, "default", {}, () => [h("span", null, D(M.text), 1)])]),
90
+ default: N(() => [v(j(c), null, {
91
+ default: N(() => [O(e.$slots, "default", {}, () => [g("span", null, k(F.text), 1)])]),
79
92
  _: 3
80
- }), M.title ? m("v-if", !0) : (T(), p(k(c), {
93
+ }), F.title ? h("v-if", !0) : (D(), m(j(c), {
81
94
  key: 0,
82
95
  cols: "auto"
83
96
  }, {
84
- default: A(() => [E(e.$slots, "dismiss", {}, () => [_(k(a), {
97
+ default: N(() => [O(e.$slots, "dismiss", {}, () => [v(j(i), {
85
98
  class: "q-toast__dismiss",
86
- variant: B.value,
87
- color: M.color,
88
- onClick: H
99
+ variant: U.value,
100
+ color: W.value,
101
+ onClick: J
89
102
  }, {
90
- default: A(() => [_(k(s), x(y(M.icons.close)), null, 16)]),
103
+ default: N(() => [v(j(o), C(b(F.icons.close)), null, 16)]),
91
104
  _: 1
92
105
  }, 8, ["variant", "color"])])]),
93
106
  _: 3
@@ -97,28 +110,28 @@ var j = { class: "q-toast__title" }, M = /*@__PURE__*/ v({
97
110
  _: 3
98
111
  })]),
99
112
  _: 2
100
- }, [M.title ? {
113
+ }, [F.title ? {
101
114
  name: "header",
102
- fn: A(() => [_(k(l), { fluid: "" }, {
103
- default: A(() => [_(k(u), {
115
+ fn: N(() => [v(j(l), { fluid: "" }, {
116
+ default: N(() => [v(j(u), {
104
117
  align: "center",
105
118
  justify: "between"
106
119
  }, {
107
- default: A(() => [_(k(c), null, {
108
- default: A(() => [h("div", j, [
109
- e.$slots["title.prepend"] ? E(e.$slots, "title.prepend", { key: 0 }) : m("v-if", !0),
110
- h("h4", null, D(M.title), 1),
111
- e.$slots["title.append"] ? E(e.$slots, "title.append", { key: 1 }) : m("v-if", !0)
120
+ default: N(() => [v(j(c), null, {
121
+ default: N(() => [g("div", P, [
122
+ e.$slots["title.prepend"] ? O(e.$slots, "title.prepend", { key: 0 }) : h("v-if", !0),
123
+ g("h4", null, k(F.title), 1),
124
+ e.$slots["title.append"] ? O(e.$slots, "title.append", { key: 1 }) : h("v-if", !0)
112
125
  ])]),
113
126
  _: 3
114
- }), _(k(c), { cols: "auto" }, {
115
- default: A(() => [E(e.$slots, "dismiss", {}, () => [_(k(a), {
127
+ }), v(j(c), { cols: "auto" }, {
128
+ default: N(() => [O(e.$slots, "dismiss", {}, () => [v(j(i), {
116
129
  class: "q-toast__dismiss",
117
- variant: B.value,
118
- color: M.color,
119
- onClick: H
130
+ variant: U.value,
131
+ color: W.value,
132
+ onClick: J
120
133
  }, {
121
- default: A(() => [_(k(s), x(y(M.icons.close)), null, 16)]),
134
+ default: N(() => [v(j(o), C(b(F.icons.close)), null, 16)]),
122
135
  _: 1
123
136
  }, 8, ["variant", "color"])])]),
124
137
  _: 3
@@ -138,4 +151,4 @@ var j = { class: "q-toast__title" }, M = /*@__PURE__*/ v({
138
151
  }
139
152
  });
140
153
  //#endregion
141
- export { M as default };
154
+ export { F as default };
@@ -1 +1 @@
1
- {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAkBA;AAwDC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AAyGvC,wBAQG"}
1
+ {"version":3,"file":"QToaster.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/QToaster.vue"],"names":[],"mappings":"AAmBA;AAgFC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAA;;;;AA4HvC,wBAQG"}
@@ -1,8 +1,8 @@
1
- import { useToast as e } from "../../composables/useToast/index.js";
2
- import { QToast as t } from "./index.js";
3
- import { Fragment as n, TransitionGroup as r, computed as i, createBlock as a, createElementBlock as o, createVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, openBlock as d, renderList as f, unref as p, withCtx as m } from "vue";
1
+ import { injectToastInstance as e, removeToastByEntryKey as t } from "../../composables/useToast/_internal.js";
2
+ import { QToast as n } from "./index.js";
3
+ import { Fragment as r, TransitionGroup as i, computed as a, createBlock as o, createElementBlock as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, onUnmounted as f, openBlock as p, renderList as m, unref as h, watch as g, withCtx as _ } from "vue";
4
4
  //#region src/components/QToast/QToaster.vue?vue&type=script&setup=true&lang.ts
5
- var h = /*@__PURE__*/ c({
5
+ var v = /*@__PURE__*/ l({
6
6
  __name: "QToaster",
7
7
  props: {
8
8
  id: {},
@@ -11,22 +11,27 @@ var h = /*@__PURE__*/ c({
11
11
  maxToasts: {},
12
12
  reverseOrder: { type: Boolean }
13
13
  },
14
- setup(c) {
15
- let h = c, { toasts: g, removeToast: _ } = e(), v = i(() => {
16
- let e = [...g.value];
17
- return h.reverseOrder && (e = e.reverse()), e.slice(0, h.maxToasts);
14
+ setup(l) {
15
+ let v = l, y = e(), { toasts: b } = y;
16
+ y.registerToaster(), f(() => y.unregisterToaster()), g(() => v.maxToasts, (e) => y.setMaxToasts(e), { immediate: !0 });
17
+ let x = a(() => {
18
+ let e = [...b.value];
19
+ return v.reverseOrder ? e.reverse() : e;
18
20
  });
19
- return (e, i) => (d(), a(r, {
20
- id: h.id,
21
+ function S(e) {
22
+ t(y, e.entryKey);
23
+ }
24
+ return (e, t) => (p(), o(i, {
25
+ id: v.id,
21
26
  name: "toast-stack",
22
27
  tag: "div",
23
- class: u(["q-toaster", h.class]),
24
- "data-placement": h.placement
28
+ class: d(["q-toaster", v.class]),
29
+ "data-placement": v.placement
25
30
  }, {
26
- default: m(() => [(d(!0), o(n, null, f(v.value, (e) => (d(), o("div", {
27
- key: e.id,
31
+ default: _(() => [(p(!0), s(r, null, m(x.value, (e) => (p(), s("div", {
32
+ key: e.entryKey,
28
33
  class: "q-toast__container"
29
- }, [s(p(t), l({ ref_for: !0 }, e.props, { onDismiss: () => p(_)(e.id) }), null, 16, ["onDismiss"])]))), 128))]),
34
+ }, [c(h(n), u({ "entry-key": e.entryKey }, { ref_for: !0 }, e.props, { onDismiss: () => S(e) }), null, 16, ["entry-key", "onDismiss"])]))), 128))]),
30
35
  _: 1
31
36
  }, 8, [
32
37
  "id",
@@ -36,4 +41,4 @@ var h = /*@__PURE__*/ c({
36
41
  }
37
42
  });
38
43
  //#endregion
39
- export { h as default };
44
+ export { v as default };
@@ -1,5 +1,16 @@
1
1
  declare const QToast: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QToastProps> & Readonly<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../types/component').QBaseComponentProps & {
3
+ title?: string;
4
+ text?: string;
5
+ block?: boolean;
6
+ color?: string;
7
+ elevation?: import('..').QCardElevation;
8
+ variant?: import('./types').QToastVariant;
9
+ timeout?: number;
10
+ icons?: typeof import('./constants').DEFAULT_ICONS;
11
+ } & {
12
+ entryKey?: string;
13
+ }> & Readonly<{
3
14
  onDismiss?: (() => any) | undefined;
4
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
16
  dismiss: () => any;
@@ -8,6 +19,7 @@ declare const QToast: {
8
19
  color: string;
9
20
  elevation: import('..').QCardElevation;
10
21
  icons: typeof import('./constants').DEFAULT_ICONS;
22
+ entryKey: string;
11
23
  timeout: number;
12
24
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
13
25
  P: {};
@@ -16,19 +28,42 @@ declare const QToast: {
16
28
  C: {};
17
29
  M: {};
18
30
  Defaults: {};
19
- }, Readonly<import('./types').QToastProps> & Readonly<{
31
+ }, Readonly<import('../../types/component').QBaseComponentProps & {
32
+ title?: string;
33
+ text?: string;
34
+ block?: boolean;
35
+ color?: string;
36
+ elevation?: import('..').QCardElevation;
37
+ variant?: import('./types').QToastVariant;
38
+ timeout?: number;
39
+ icons?: typeof import('./constants').DEFAULT_ICONS;
40
+ } & {
41
+ entryKey?: string;
42
+ }> & Readonly<{
20
43
  onDismiss?: (() => any) | undefined;
21
44
  }>, {}, {}, {}, {}, {
22
45
  variant: import('./types').QToastVariant;
23
46
  color: string;
24
47
  elevation: import('..').QCardElevation;
25
48
  icons: typeof import('./constants').DEFAULT_ICONS;
49
+ entryKey: string;
26
50
  timeout: number;
27
51
  }>;
28
52
  __isFragment?: never;
29
53
  __isTeleport?: never;
30
54
  __isSuspense?: never;
31
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').QToastProps> & Readonly<{
55
+ } & import('vue').ComponentOptionsBase<Readonly<import('../../types/component').QBaseComponentProps & {
56
+ title?: string;
57
+ text?: string;
58
+ block?: boolean;
59
+ color?: string;
60
+ elevation?: import('..').QCardElevation;
61
+ variant?: import('./types').QToastVariant;
62
+ timeout?: number;
63
+ icons?: typeof import('./constants').DEFAULT_ICONS;
64
+ } & {
65
+ entryKey?: string;
66
+ }> & Readonly<{
32
67
  onDismiss?: (() => any) | undefined;
33
68
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
34
69
  dismiss: () => any;
@@ -37,6 +72,7 @@ declare const QToast: {
37
72
  color: string;
38
73
  elevation: import('..').QCardElevation;
39
74
  icons: typeof import('./constants').DEFAULT_ICONS;
75
+ entryKey: string;
40
76
  timeout: number;
41
77
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
42
78
  $slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AACvC,QAAA,MAAM,QAAQ;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAG3B,cAAc,SAAS,CAAA"}
@@ -3,7 +3,11 @@ import { QCardElevation } from '../QCard/types';
3
3
  import { DEFAULT_ICONS } from './constants';
4
4
  export type QToastVariant = 'bold' | 'tonal' | 'outlined';
5
5
  /**
6
- * Props for the QToaster component.
6
+ * Hosts programmatic toasts created with `useToast`.
7
+ *
8
+ * Mount exactly one `QToaster` per app (typically in the root layout).
9
+ * The toast store is app-scoped via `createFramework`; mounting a second
10
+ * toaster for the same app throws.
7
11
  */
8
12
  export type QToasterProps = QBaseComponentProps & {
9
13
  /**
@@ -14,7 +18,7 @@ export type QToasterProps = QBaseComponentProps & {
14
18
  placement?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';
15
19
  /**
16
20
  * Maximum number of toasts displayed at once.
17
- * Additional toasts will be queued.
21
+ * Additional toasts wait in a queue (unmounted); `addToast` stays pending until a slot opens and the toast registers during setup.
18
22
  *
19
23
  * @category Behavior
20
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToast/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAEzD;;GA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AA;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { useGroupItem as e } from "../../composables/useGroup/index.js";
2
- import { useId as t } from "../../composables/uid.js";
2
+ import { useId as t } from "../../composables/useId/index.js";
3
3
  import { QToggle as n } from "../QToggle/index.js";
4
4
  import { createBlock as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, toRef as c, unref as l, withCtx as u } from "vue";
5
5
  //#region src/components/QToggleGroup/QToggleGroupItem.vue?vue&type=script&setup=true&lang.ts
@@ -1,5 +1,5 @@
1
1
  import { QIcon as e } from "../QIcon/index.js";
2
- import { useId as t } from "../../composables/uid.js";
2
+ import { useId as t } from "../../composables/useId/index.js";
3
3
  import { getElement as n } from "../../utils/getElement.js";
4
4
  import { QOverlay as r } from "../QOverlay/index.js";
5
5
  import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, normalizeClass as m, normalizeProps as h, onUnmounted as g, openBlock as _, renderSlot as v, toDisplayString as y, toRef as b, unref as x, useModel as S, watch as C, withCtx as w } from "vue";
@@ -15,6 +15,6 @@
15
15
  * consumed by applications or other packages.
16
16
  */
17
17
  export { provideTheme, useTheme, type ThemeDefinition } from './theme';
18
- export { useDialog } from './useDialog';
19
- export { useToast } from './useToast';
18
+ export { useDialog, type DialogItem, type UseDialogReturn } from './useDialog';
19
+ export { useToast, type ToastItem, type UseToastReturn } from './useToast';
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAGtE,OAAO,EAAE,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAA;AAG9E,OAAO,EAAE,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA"}
@@ -1,18 +1,47 @@
1
1
  import { MaybeRef } from 'vue';
2
- import { UseColorReturn } from './types';
3
- import { ColorScheme } from '../../utils/color';
2
+ import { ColorStyle, UseColorReturn } from './types';
3
+ import { ColorScheme, RGB } from '../../utils/color';
4
+ type HoverStyle = Pick<ColorStyle, 'hoverColor' | 'hoverColorRgb' | 'onHoverColor'>;
5
+ /**
6
+ * Resolves hover colors for `useColor`.
7
+ *
8
+ * Theme utility keys with a matching `*Dark` scheme token use that token (and `on*Dark`
9
+ * when present). Custom CSS colors, utilities without `*Dark` (e.g. `background`), and
10
+ * unparsable `*Dark` overrides fall back to `darken(main, COLOR_SCHEME_DARKEN_AMOUNT)` with WCAG `onHover`.
11
+ *
12
+ * @param rawColor - The original color input (utility key or CSS color).
13
+ * @param isUtilityColor - Whether `rawColor` is a BEM theme utility key.
14
+ * @param scheme - The active color scheme.
15
+ * @param mainRgb - Parsed RGB of the resolved main color.
16
+ */
17
+ export declare function resolveHoverStyle(rawColor: string, isUtilityColor: boolean, scheme: Readonly<ColorScheme>, mainRgb: RGB): HoverStyle;
4
18
  /**
5
19
  * A composable function that processes and returns color-related information and styles.
6
20
  *
7
- * @param color - A string representing a color value or a utility color name. Can be provided as a ref or plain string.
21
+ * Theme utility colors (e.g. `primary`, `success`) resolve against the active theme.
22
+ * Custom colors are parsed from supported CSS formats: hex, `rgb`/`rgba`, and `hsl`/`hsla`.
23
+ * Values such as `var(...)`, `transparent`, `currentColor`, and `inherit`
24
+ * are rejected with a dev warning.
25
+ *
26
+ * `style.onMainColor` is always derived with WCAG relative luminance.
27
+ * For theme utility keys that have a scheme `*Dark` token, `hoverColor` / `onHoverColor`
28
+ * come from `*Dark` / `on*Dark`. Custom CSS colors, utilities without `*Dark` (such as
29
+ * `background`), and unparsable `*Dark` overrides use `darken(main, COLOR_SCHEME_DARKEN_AMOUNT)` with WCAG
30
+ * `onHover`. Components bind those values as
31
+ * CSS variables for both utility and custom colors. `isUtilityColor` still marks
32
+ * theme keys for hover resolution (`*Dark` / `on*Dark`). Exception: `QButton` with
33
+ * `color="background"` omits inline vars so its SCSS `--background` modifier
34
+ * (primary-dark hover) wins.
35
+ *
36
+ * @param color - A theme utility key or CSS color value. Can be provided as a ref or plain string.
8
37
  *
9
38
  * @returns {UseColorReturn} An object containing:
10
- * - isUtilityColor: A computed boolean indicating if the color is a utility color
39
+ * - isUtilityColor: A computed boolean indicating if the color is a theme utility key
11
40
  * - style: A computed object containing:
12
41
  * - mainColor: The resolved color value
13
- * - onMainColor: A contrasting color suitable for text/content on the main color
14
- * - hoverColor: A darker version of the main color for hover states
15
- * - onHoverColor: A contrasting color suitable for text/content on the hover color
42
+ * - onMainColor: A WCAG contrasting color for content on the main color
43
+ * - hoverColor: Scheme `*Dark` for utilities, otherwise a darkened main color
44
+ * - onHoverColor: Scheme `on*Dark` for utilities when present, otherwise WCAG on hover
16
45
  *
17
46
  * @example
18
47
  * ```ts
@@ -20,22 +49,22 @@ import { ColorScheme } from '../../utils/color';
20
49
  * // or
21
50
  * const { isUtilityColor, style } = useColor(ref('#FF0000'))
22
51
  * ```
23
- *
24
- * @throws Will log an error to console if color parsing fails
25
52
  */
26
53
  export declare function useColor(color: MaybeRef<string | undefined>): UseColorReturn;
27
54
  /**
28
- * Resolves a utility color against a color scheme while preserving CSS and custom colors.
55
+ * Resolves a color scheme key against a color scheme while preserving CSS and custom colors.
56
+ *
57
+ * Looks up any key present on the scheme (base, Light/Dark variants, and `on*` tokens).
58
+ * {@link isThemeColor} remains narrower and is only used for theme-key classification
59
+ * (`isUtilityColor` / hover `*Dark` resolution).
29
60
  *
30
61
  * This pure variant is useful when a component needs to resolve a dynamic collection of
31
62
  * colors and therefore cannot create one `useColor` instance per collection entry.
32
- */
33
- export declare function resolveColor(color: string, scheme: Readonly<ColorScheme>): string;
34
- /**
35
- * Checks if a given string represents a valid CSS color format.
36
63
  *
37
- * @param color - The string to check for CSS color format
38
- * @returns True if the string starts with '#', 'rgb', or 'hsl', false otherwise
64
+ * @param color - A scheme key or CSS color string.
65
+ * @param scheme - The active color scheme.
66
+ * @returns The scheme value when `color` is a scheme key; otherwise the original string.
39
67
  */
40
- export declare function isCssColor(color: string): boolean;
68
+ export declare function resolveColor(color: string, scheme: Readonly<ColorScheme>): string;
69
+ export {};
41
70
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/useColor/index.ts"],"names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