@quidgest/ui 0.20.0 → 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 (145) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/README.md +10 -0
  3. package/dist/json/api.json +312 -14
  4. package/dist/manifest/components.json +1 -0
  5. package/dist/ui.css +245 -248
  6. package/dist/ui.esm.js +805 -683
  7. package/dist/ui.js +1083 -961
  8. package/dist/ui.min.css +1 -1
  9. package/dist/ui.min.js +1083 -961
  10. package/dist/ui.scss +535 -299
  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.d.ts +56 -0
  32. package/esm/components/QGauge/QGauge.d.ts.map +1 -0
  33. package/esm/components/QGauge/QGauge.vue.js +305 -0
  34. package/esm/components/QGauge/QGauge2.vue.js +5 -0
  35. package/esm/components/QGauge/constants.d.ts +6 -0
  36. package/esm/components/QGauge/constants.d.ts.map +1 -0
  37. package/esm/components/QGauge/constants.js +8 -0
  38. package/esm/components/QGauge/index.d.ts +124 -0
  39. package/esm/components/QGauge/index.d.ts.map +1 -0
  40. package/esm/components/QGauge/index.js +6 -0
  41. package/esm/components/QGauge/types.d.ts +146 -0
  42. package/esm/components/QGauge/types.d.ts.map +1 -0
  43. package/esm/components/QList/QListItem.d.ts.map +1 -1
  44. package/esm/components/QList/QListItem.vue.js +5 -2
  45. package/esm/components/QList/QListItemGroup.vue.js +1 -1
  46. package/esm/components/QObfuscation/QObfuscation.vue.js +1 -1
  47. package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
  48. package/esm/components/QPhoneField/QPhoneField.vue.js +1 -1
  49. package/esm/components/QPropertyList/QPropertyListGroup.vue.js +1 -1
  50. package/esm/components/QPropertyList/QPropertyListRow.vue.js +1 -1
  51. package/esm/components/QPropertyList/index.d.ts.map +1 -1
  52. package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
  53. package/esm/components/QRadioGroup/QRadioGroup.vue.js +2 -2
  54. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  55. package/esm/components/QSelect/QSelect.vue.js +1 -1
  56. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
  57. package/esm/components/QSidebar/QSidebar.vue.js +19 -10
  58. package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
  59. package/esm/components/QSidebar/QSidebarItem.vue.js +51 -49
  60. package/esm/components/QSidebar/context.d.ts +7 -0
  61. package/esm/components/QSidebar/context.d.ts.map +1 -1
  62. package/esm/components/QSwitch/QSwitch.vue.js +1 -1
  63. package/esm/components/QTabs/QTab.d.ts.map +1 -1
  64. package/esm/components/QTabs/QTab.vue.js +52 -50
  65. package/esm/components/QTabs/QTabs.d.ts.map +1 -1
  66. package/esm/components/QTabs/QTabs.vue.js +37 -12
  67. package/esm/components/QTabs/context.d.ts +7 -0
  68. package/esm/components/QTabs/context.d.ts.map +1 -1
  69. package/esm/components/QTextArea/QTextArea.vue.js +1 -1
  70. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  71. package/esm/components/QTextField/QTextField.vue.js +1 -1
  72. package/esm/components/QThemeProvider/QThemeProvider.vue.js +1 -1
  73. package/esm/components/QToast/QToast.d.ts +4 -2
  74. package/esm/components/QToast/QToast.d.ts.map +1 -1
  75. package/esm/components/QToast/QToast.vue.js +80 -67
  76. package/esm/components/QToast/QToaster.d.ts.map +1 -1
  77. package/esm/components/QToast/QToaster.vue.js +21 -16
  78. package/esm/components/QToast/index.d.ts +39 -3
  79. package/esm/components/QToast/index.d.ts.map +1 -1
  80. package/esm/components/QToast/types.d.ts +6 -2
  81. package/esm/components/QToast/types.d.ts.map +1 -1
  82. package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +1 -1
  83. package/esm/components/QTooltip/QTooltip.vue.js +1 -1
  84. package/esm/components/index.d.ts +1 -0
  85. package/esm/components/index.d.ts.map +1 -1
  86. package/esm/components/index.js +64 -62
  87. package/esm/composables/index.d.ts +2 -2
  88. package/esm/composables/index.d.ts.map +1 -1
  89. package/esm/composables/useColor/index.d.ts +49 -12
  90. package/esm/composables/useColor/index.d.ts.map +1 -1
  91. package/esm/composables/useColor/index.js +56 -30
  92. package/esm/composables/useColor/types.d.ts +4 -1
  93. package/esm/composables/useColor/types.d.ts.map +1 -1
  94. package/esm/composables/useDialog/_internal.d.ts +2 -0
  95. package/esm/composables/useDialog/_internal.d.ts.map +1 -0
  96. package/esm/composables/useDialog/_internal.js +65 -0
  97. package/esm/composables/useDialog/index.d.ts +11 -3
  98. package/esm/composables/useDialog/index.d.ts.map +1 -1
  99. package/esm/composables/useDialog/index.js +38 -22
  100. package/esm/composables/useDialog/types.d.ts +25 -11
  101. package/esm/composables/useDialog/types.d.ts.map +1 -1
  102. package/esm/composables/useDismissibleLayerStack/index.d.ts +17 -2
  103. package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -1
  104. package/esm/composables/useDismissibleLayerStack/index.js +28 -11
  105. package/esm/composables/useGroup/index.d.ts.map +1 -1
  106. package/esm/composables/useGroup/index.js +12 -1
  107. package/esm/composables/useId/index.d.ts +18 -0
  108. package/esm/composables/useId/index.d.ts.map +1 -0
  109. package/esm/composables/useId/index.js +10 -0
  110. package/esm/composables/useToast/_internal.d.ts +2 -0
  111. package/esm/composables/useToast/_internal.d.ts.map +1 -0
  112. package/esm/composables/useToast/_internal.js +142 -0
  113. package/esm/composables/useToast/index.d.ts +8 -25
  114. package/esm/composables/useToast/index.d.ts.map +1 -1
  115. package/esm/composables/useToast/index.js +29 -26
  116. package/esm/composables/useToast/types.d.ts +31 -17
  117. package/esm/composables/useToast/types.d.ts.map +1 -1
  118. package/esm/framework.d.ts.map +1 -1
  119. package/esm/framework.js +16 -12
  120. package/esm/index.d.ts +1 -0
  121. package/esm/templates/theme.js +39 -39
  122. package/esm/utils/color/contrast.d.ts +11 -4
  123. package/esm/utils/color/contrast.d.ts.map +1 -1
  124. package/esm/utils/color/contrast.js +16 -3
  125. package/esm/utils/color/index.d.ts +1 -0
  126. package/esm/utils/color/index.d.ts.map +1 -1
  127. package/esm/utils/color/merge.d.ts +9 -0
  128. package/esm/utils/color/merge.d.ts.map +1 -1
  129. package/esm/utils/color/merge.js +21 -22
  130. package/esm/utils/color/parse.d.ts +21 -5
  131. package/esm/utils/color/parse.d.ts.map +1 -1
  132. package/esm/utils/color/parse.js +88 -20
  133. package/esm/utils/color/theme-colors.d.ts +35 -0
  134. package/esm/utils/color/theme-colors.d.ts.map +1 -0
  135. package/esm/utils/color/theme-colors.js +25 -0
  136. package/esm/utils/index.js +50 -42
  137. package/package.json +3 -5
  138. package/esm/composables/uid.d.ts +0 -9
  139. package/esm/composables/uid.d.ts.map +0 -1
  140. package/esm/composables/uid.js +0 -8
  141. package/esm/composables/useToast/types.js +0 -4
  142. package/esm/vendors/uuid/dist/native.js +0 -3
  143. package/esm/vendors/uuid/dist/rng.js +0 -11
  144. package/esm/vendors/uuid/dist/stringify.js +0 -8
  145. package/esm/vendors/uuid/dist/v4.js +0 -20
@@ -1,6 +1,6 @@
1
1
  import { useGroupItem as e } from "../../composables/useGroup/index.js";
2
2
  import { QCollapsible as t } from "../QCollapsible/index.js";
3
- import { useId as n } from "../../composables/uid.js";
3
+ import { useId as n } from "../../composables/useId/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/QAccordion/QAccordionItem.vue?vue&type=script&setup=true&lang.ts
6
6
  var d = /*@__PURE__*/ i({
@@ -1 +1 @@
1
- {"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAyCA;AAkJC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAmGrC,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;;;;EAehC;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,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":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAyCA;AA+IC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAW1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,GAAG,CAAA;AAgGrC,iBAAS,cAAc;WAuIT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;;;;EAehC;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;6EAQnB,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"}
@@ -31,26 +31,22 @@ var T = ["id"], E = {
31
31
  e,
32
32
  f.class
33
33
  ];
34
- }), M = o(() => {
35
- let e = N.value ? `q-badge--${f.color}` : void 0;
36
- return [
37
- "q-badge",
38
- `q-badge--${f.variant}`,
39
- {
40
- "q-badge--removable": f.removable,
41
- "q-badge--disabled": f.disabled
42
- },
43
- e,
44
- j.value
45
- ];
46
- }), { isUtilityColor: N, style: P } = e(x(f, "color")), F = o(() => {
47
- if (!N.value) return {
48
- "--q-badge-main-color": P.value?.mainColor,
49
- "--q-badge-on-main-color": P.value?.onMainColor,
50
- "--q-badge-hover-color": P.value?.hoverColor,
51
- "--q-badge-on-hover-color": P.value?.onHoverColor
34
+ }), M = o(() => [
35
+ "q-badge",
36
+ `q-badge--${f.variant}`,
37
+ {
38
+ "q-badge--removable": f.removable,
39
+ "q-badge--disabled": f.disabled
40
+ },
41
+ j.value
42
+ ]), { style: N } = e(x(f, "color")), P = o(() => {
43
+ if (N.value) return {
44
+ "--q-badge-main-color": N.value.mainColor,
45
+ "--q-badge-on-main-color": N.value.onMainColor,
46
+ "--q-badge-hover-color": N.value.hoverColor,
47
+ "--q-badge-on-hover-color": N.value.onHoverColor
52
48
  };
53
- }), I = o(() => k.onClick), L = o(() => ({
49
+ }), F = o(() => k.onClick), I = o(() => ({
54
50
  class: "q-badge__remove",
55
51
  variant: f.variant,
56
52
  color: f.color,
@@ -58,7 +54,7 @@ var T = ["id"], E = {
58
54
  title: f.texts.removeText,
59
55
  disabled: f.disabled
60
56
  }));
61
- function R() {
57
+ function L() {
62
58
  O("click:remove");
63
59
  }
64
60
  return (e, r) => A.value ? (v(), s(b(f.removable ? S(a) : "span"), {
@@ -70,7 +66,7 @@ var T = ["id"], E = {
70
66
  variant: f.variant,
71
67
  color: f.color,
72
68
  disabled: f.disabled,
73
- onClick: I.value
69
+ onClick: F.value
74
70
  }, {
75
71
  default: w(() => [y(e.$slots, "default")]),
76
72
  _: 3
@@ -79,7 +75,7 @@ var T = ["id"], E = {
79
75
  "color",
80
76
  "disabled",
81
77
  "onClick"
82
- ]), f.removable ? (v(), s(S(t), m({ key: 0 }, L.value, { onClick: R }), {
78
+ ]), f.removable ? (v(), s(S(t), m({ key: 0 }, I.value, { onClick: L }), {
83
79
  default: w(() => [d(S(n), g(p(f.icons.remove)), null, 16)]),
84
80
  _: 1
85
81
  }, 16)) : c("v-if", !0)]),
@@ -88,8 +84,8 @@ var T = ["id"], E = {
88
84
  key: 0,
89
85
  id: f.id,
90
86
  class: h(M.value),
91
- style: _(F.value)
92
- }, [f.variant === "tonal" ? (v(), l("div", E)) : c("v-if", !0), u("span", null, [u("div", D, [y(e.$slots, "default")]), f.removable ? (v(), s(S(t), m({ key: 0 }, L.value, { onClick: R }), {
87
+ style: _(P.value)
88
+ }, [f.variant === "tonal" ? (v(), l("div", E)) : c("v-if", !0), u("span", null, [u("div", D, [y(e.$slots, "default")]), f.removable ? (v(), s(S(t), m({ key: 0 }, I.value, { onClick: L }), {
93
89
  default: w(() => [d(S(n), g(p(f.icons.remove)), null, 16)]),
94
90
  _: 1
95
91
  }, 16)) : c("v-if", !0)])], 14, T));
@@ -1 +1 @@
1
- {"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAoBA;AA0GC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AA8EtC,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBAXrB,GAAG;wBACJ,GAAG;;;;EAe9B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;2FASnB,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":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAwBA;AAgHC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAgFtC,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;yBAXrB,GAAG;wBACJ,GAAG;;;;EAe9B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;2FASnB,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"}
@@ -5,7 +5,10 @@ import { computed as n, createCommentVNode as r, createElementBlock as i, create
5
5
  var _ = ["id", "disabled"], v = {
6
6
  key: 0,
7
7
  class: "q-button__spinner"
8
- }, y = { class: "q-button__content" }, b = /*@__PURE__*/ c({
8
+ }, y = { class: "q-button__content" }, b = {
9
+ key: 0,
10
+ class: "q-button__append"
11
+ }, x = /*@__PURE__*/ c({
9
12
  __name: "QButton",
10
13
  props: {
11
14
  id: {},
@@ -23,52 +26,52 @@ var _ = ["id", "disabled"], v = {
23
26
  loading: { type: Boolean }
24
27
  },
25
28
  emits: ["click"],
26
- setup(c, { emit: b }) {
27
- let x = c, S = b, C = n(() => x.disabled || x.loading);
28
- function w(e) {
29
- C.value || S("click", e);
29
+ setup(c, { emit: x }) {
30
+ let S = c, C = x, w = n(() => S.disabled || S.loading);
31
+ function T(e) {
32
+ w.value || C("click", e);
30
33
  }
31
- let { isUtilityColor: T, style: E } = t(m(x, "color")), D = n(() => {
32
- let e = T.value ? `q-button--${x.color}` : void 0, t = x.size === "regular" ? void 0 : `q-button--${x.size}`, n = x.iconPos === "start" ? void 0 : `q-button--icon-${x.iconPos}`;
34
+ let { style: E } = t(m(S, "color")), D = n(() => {
35
+ let e = S.color === "background" ? "q-button--background" : void 0, t = S.size === "regular" ? void 0 : `q-button--${S.size}`, n = S.iconPos === "start" ? void 0 : `q-button--icon-${S.iconPos}`;
33
36
  return [
34
37
  "q-button",
35
- `q-button--${x.variant}`,
38
+ `q-button--${S.variant}`,
36
39
  e,
37
40
  t,
38
41
  n,
39
42
  {
40
- "q-button--labeled": x.label,
41
- "q-button--borderless": x.borderless,
42
- "q-button--elevated": x.elevated,
43
- "q-button--block": x.block,
44
- "q-button--loading": x.loading,
45
- "q-button--pill": x.pill
43
+ "q-button--labeled": S.label,
44
+ "q-button--borderless": S.borderless,
45
+ "q-button--elevated": S.elevated,
46
+ "q-button--block": S.block,
47
+ "q-button--loading": S.loading,
48
+ "q-button--pill": S.pill
46
49
  },
47
- x.class
50
+ S.class
48
51
  ];
49
52
  }), O = n(() => {
50
- if (!T.value) return {
51
- "--q-button-main-color": E.value?.mainColor,
52
- "--q-button-main-color-rgb": E.value?.mainColorRgb,
53
- "--q-button-on-main-color": E.value?.onMainColor,
54
- "--q-button-hover-color": E.value?.hoverColor,
55
- "--q-button-hover-color-rgb": E.value?.hoverColorRgb,
56
- "--q-button-on-hover-color": E.value?.onHoverColor
53
+ if (!(S.color === "background" || !E.value)) return {
54
+ "--q-button-main-color": E.value.mainColor,
55
+ "--q-button-main-color-rgb": E.value.mainColorRgb,
56
+ "--q-button-on-main-color": E.value.onMainColor,
57
+ "--q-button-hover-color": E.value.hoverColor,
58
+ "--q-button-hover-color-rgb": E.value.hoverColorRgb,
59
+ "--q-button-on-hover-color": E.value.onHoverColor
57
60
  };
58
61
  });
59
62
  return (t, n) => (d(), i("button", {
60
- id: x.id,
63
+ id: S.id,
61
64
  type: "button",
62
65
  class: l(D.value),
63
- disabled: C.value,
66
+ disabled: w.value,
64
67
  style: u(O.value),
65
- onClick: g(w, ["stop", "prevent"])
66
- }, [x.loading ? (d(), i("div", v, [s(h(e))])) : r("v-if", !0), a("span", y, [
68
+ onClick: g(T, ["stop", "prevent"])
69
+ }, [S.loading ? (d(), i("div", v, [s(h(e))])) : r("v-if", !0), a("span", y, [
67
70
  f(t.$slots, "default"),
68
- o(" " + p(x.label) + " ", 1),
69
- f(t.$slots, "append")
71
+ o(" " + p(S.label) + " ", 1),
72
+ t.$slots.append ? (d(), i("span", b, [f(t.$slots, "append")])) : r("v-if", !0)
70
73
  ])], 14, _));
71
74
  }
72
75
  });
73
76
  //#endregion
74
- export { b as default };
77
+ export { x as default };
@@ -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 { DEFAULT_ICONS as n } from "./constants.js";
4
4
  import { QCheckboxLabel as r } from "./index.js";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, openBlock as m, renderSlot as h, toRef as g, unref as _, useModel as v, useTemplateRef as y, watch as b, withCtx as x, withKeys as S, withModifiers as C } from "vue";
@@ -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"}