@quidgest/ui 0.16.3 → 0.16.5

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 (121) hide show
  1. package/dist/manifest/components.json +7 -0
  2. package/dist/ui.css +810 -32
  3. package/dist/ui.esm.js +5731 -5219
  4. package/dist/ui.js +18 -18
  5. package/dist/ui.min.css +2 -1
  6. package/dist/ui.min.js +1042 -1006
  7. package/dist/ui.scss +463 -40
  8. package/esm/_virtual/_plugin-vue_export-helper.js +9 -0
  9. package/esm/components/QCombobox/QCombobox.d.ts +14 -0
  10. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  11. package/esm/components/QCombobox/QCombobox.vue.js +9 -8
  12. package/esm/components/QCombobox/index.d.ts +7 -0
  13. package/esm/components/QCombobox/index.d.ts.map +1 -1
  14. package/esm/components/QDialog/QDialog.d.ts +9 -1
  15. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  16. package/esm/components/QDialog/QDialog.vue.js +125 -97
  17. package/esm/components/QDialog/QDialogProvider.d.ts +3 -0
  18. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -0
  19. package/esm/components/QDialog/QDialogProvider.vue.js +26 -0
  20. package/esm/components/QDialog/QDialogProvider.vue2.js +4 -0
  21. package/esm/components/QDialog/index.d.ts +26 -2
  22. package/esm/components/QDialog/index.d.ts.map +1 -1
  23. package/esm/components/QDialog/index.js +6 -4
  24. package/esm/components/QDialog/types.d.ts +9 -0
  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 +26 -24
  28. package/esm/components/QDivider/QDivider.d.ts +21 -0
  29. package/esm/components/QDivider/QDivider.d.ts.map +1 -0
  30. package/esm/components/QDivider/QDivider.vue.js +57 -0
  31. package/esm/components/QDivider/QDivider.vue2.js +4 -0
  32. package/esm/components/QDivider/index.d.ts +25 -0
  33. package/esm/components/QDivider/index.d.ts.map +1 -0
  34. package/esm/components/QDivider/index.js +6 -0
  35. package/esm/components/QDivider/types.d.ts +11 -0
  36. package/esm/components/QDivider/types.d.ts.map +1 -0
  37. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +14 -0
  38. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  39. package/esm/components/QGrid/QCol.d.ts +19 -0
  40. package/esm/components/QGrid/QCol.d.ts.map +1 -0
  41. package/esm/components/QGrid/QCol.vue.js +46 -0
  42. package/esm/components/QGrid/QCol.vue2.js +4 -0
  43. package/esm/components/QGrid/QContainer.d.ts +19 -0
  44. package/esm/components/QGrid/QContainer.d.ts.map +1 -0
  45. package/esm/components/QGrid/QContainer.vue.js +24 -0
  46. package/esm/components/QGrid/QContainer.vue2.js +4 -0
  47. package/esm/components/QGrid/QRow.d.ts +23 -0
  48. package/esm/components/QGrid/QRow.d.ts.map +1 -0
  49. package/esm/components/QGrid/QRow.vue.js +36 -0
  50. package/esm/components/QGrid/QRow.vue2.js +4 -0
  51. package/esm/components/QGrid/QSpacer.d.ts +3 -0
  52. package/esm/components/QGrid/QSpacer.d.ts.map +1 -0
  53. package/esm/components/QGrid/QSpacer.vue.js +10 -0
  54. package/esm/components/QGrid/index.d.ts +66 -0
  55. package/esm/components/QGrid/index.d.ts.map +1 -0
  56. package/esm/components/QGrid/index.js +12 -0
  57. package/esm/components/QGrid/types.d.ts +47 -0
  58. package/esm/components/QGrid/types.d.ts.map +1 -0
  59. package/esm/components/QList/QList.d.ts +1 -0
  60. package/esm/components/QList/QList.d.ts.map +1 -1
  61. package/esm/components/QList/QList.vue.js +130 -120
  62. package/esm/components/QList/QListItem.d.ts.map +1 -1
  63. package/esm/components/QList/QListItem.vue.js +57 -43
  64. package/esm/components/QList/index.d.ts +7 -0
  65. package/esm/components/QList/index.d.ts.map +1 -1
  66. package/esm/components/QList/types.d.ts +8 -0
  67. package/esm/components/QList/types.d.ts.map +1 -1
  68. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  69. package/esm/components/QOverlay/QOverlay.vue.js +29 -27
  70. package/esm/components/QOverlay/index.d.ts +3 -0
  71. package/esm/components/QOverlay/index.d.ts.map +1 -1
  72. package/esm/components/QOverlay/types.d.ts +4 -0
  73. package/esm/components/QOverlay/types.d.ts.map +1 -1
  74. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +8 -7
  75. package/esm/components/QSelect/QSelect.d.ts +14 -0
  76. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  77. package/esm/components/QSelect/QSelect.vue.js +1 -0
  78. package/esm/components/QSelect/index.d.ts +7 -0
  79. package/esm/components/QSelect/index.d.ts.map +1 -1
  80. package/esm/components/QSidebar/QSidebar.d.ts +39 -0
  81. package/esm/components/QSidebar/QSidebar.d.ts.map +1 -0
  82. package/esm/components/QSidebar/QSidebar.vue.js +155 -0
  83. package/esm/components/QSidebar/QSidebar.vue2.js +4 -0
  84. package/esm/components/QSidebar/QSidebarAnchor.d.ts +219 -0
  85. package/esm/components/QSidebar/QSidebarAnchor.d.ts.map +1 -0
  86. package/esm/components/QSidebar/QSidebarAnchor.vue.js +110 -0
  87. package/esm/components/QSidebar/QSidebarAnchor.vue2.js +4 -0
  88. package/esm/components/QSidebar/QSidebarPanel.d.ts +41 -0
  89. package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -0
  90. package/esm/components/QSidebar/QSidebarPanel.vue.js +90 -0
  91. package/esm/components/QSidebar/QSidebarPanel.vue2.js +4 -0
  92. package/esm/components/QSidebar/index.d.ts +72 -0
  93. package/esm/components/QSidebar/index.d.ts.map +1 -0
  94. package/esm/components/QSidebar/index.js +6 -0
  95. package/esm/components/QSidebar/types.d.ts +63 -0
  96. package/esm/components/QSidebar/types.d.ts.map +1 -0
  97. package/esm/components/QToggleGroup/types.d.ts +1 -1
  98. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  99. package/esm/components/QTooltip/QTooltip.vue.js +47 -46
  100. package/esm/components/index.d.ts +3 -0
  101. package/esm/components/index.d.ts.map +1 -1
  102. package/esm/components/index.js +78 -68
  103. package/esm/composables/index.d.ts +2 -1
  104. package/esm/composables/index.d.ts.map +1 -1
  105. package/esm/composables/theme.js +3 -3
  106. package/esm/composables/useDialog/index.d.ts +69 -0
  107. package/esm/composables/useDialog/index.d.ts.map +1 -0
  108. package/esm/composables/useDialog/index.js +21 -0
  109. package/esm/composables/useDialog/types.d.ts +25 -0
  110. package/esm/composables/useDialog/types.d.ts.map +1 -0
  111. package/esm/composables/useDismissibleLayerStack/index.d.ts +14 -0
  112. package/esm/composables/useDismissibleLayerStack/index.d.ts.map +1 -0
  113. package/esm/composables/useDismissibleLayerStack/index.js +32 -0
  114. package/esm/framework.d.ts.map +1 -1
  115. package/esm/framework.js +35 -31
  116. package/esm/index.d.ts +7 -0
  117. package/esm/index.js +4 -2
  118. package/esm/symbols/dismissibleLayer.d.ts +4 -0
  119. package/esm/symbols/dismissibleLayer.d.ts.map +1 -0
  120. package/esm/symbols/dismissibleLayer.js +4 -0
  121. package/package.json +1 -1
@@ -52,7 +52,7 @@ const xe = ["data-key"], we = {
52
52
  setup(x, { expose: K, emit: W }) {
53
53
  const l = x, w = W, d = T(x, "modelValue"), i = T(x, "open"), u = T(x, "search"), o = g(void 0), c = g(null), s = g(null), V = g(null), L = g(null);
54
54
  ie(y);
55
- const D = m(() => l.clearable && !l.readonly && !l.disabled), p = m(() => {
55
+ const q = m(() => l.clearable && !l.readonly && !l.disabled), p = m(() => {
56
56
  var e;
57
57
  return l.filterMode === "manual" || !G.value ? l.items ?? [] : ((e = l.items) == null ? void 0 : e.filter(
58
58
  (t) => t[l.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
@@ -60,7 +60,7 @@ const xe = ["data-key"], we = {
60
60
  }), h = m(() => {
61
61
  var e;
62
62
  return (e = l.items) == null ? void 0 : e.find((t) => t[l.itemValue] === d.value);
63
- }), Q = m(() => h.value === void 0), q = m(() => {
63
+ }), Q = m(() => h.value === void 0), D = m(() => {
64
64
  const e = o.value;
65
65
  if (e !== void 0 && p.value[e])
66
66
  return p.value[e];
@@ -92,7 +92,7 @@ const xe = ["data-key"], we = {
92
92
  i.value ? F() : U();
93
93
  }
94
94
  function Y() {
95
- D.value && (d.value = l.emptyValue, o.value = void 0, E());
95
+ q.value && (d.value = l.emptyValue, o.value = void 0, E());
96
96
  }
97
97
  function U() {
98
98
  if (C(), h.value !== void 0) {
@@ -117,8 +117,8 @@ const xe = ["data-key"], we = {
117
117
  e.key === "ArrowDown" ? $() : ee();
118
118
  }));
119
119
  else if (e.key === "Enter") {
120
- if (q.value === void 0) return;
121
- S(q.value[l.itemValue]);
120
+ if (D.value === void 0) return;
121
+ S(D.value[l.itemValue]);
122
122
  } else e.key === "Home" ? o.value = (t = s.value) == null ? void 0 : t.getFirstFocusableItemIndex() : e.key === "End" ? o.value = (a = s.value) == null ? void 0 : a.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && C();
123
123
  }
124
124
  function $() {
@@ -147,7 +147,7 @@ const xe = ["data-key"], we = {
147
147
  e.preventDefault(), e.stopPropagation();
148
148
  return;
149
149
  }
150
- F(), D.value && !u.value && (d.value = l.emptyValue), y();
150
+ F(), q.value && !u.value && (d.value = l.emptyValue), y();
151
151
  }
152
152
  function E() {
153
153
  var e, t;
@@ -233,7 +233,7 @@ const xe = ["data-key"], we = {
233
233
  ]),
234
234
  append: r(() => [
235
235
  f(e.$slots, "append"),
236
- D.value && u.value ? (b(), _(v(Ie), {
236
+ q.value && u.value ? (b(), _(v(Ie), {
237
237
  key: 0,
238
238
  icons: l.icons,
239
239
  texts: l.texts,
@@ -315,7 +315,8 @@ const xe = ["data-key"], we = {
315
315
  "model-value": d.value,
316
316
  class: "q-select__items",
317
317
  selectable: "",
318
- highlighted: (n = q.value) == null ? void 0 : n[l.itemValue],
318
+ required: "",
319
+ highlighted: (n = D.value) == null ? void 0 : n[l.itemValue],
319
320
  items: p.value,
320
321
  groups: e.groups,
321
322
  "item-label": l.itemLabel,
@@ -712,6 +712,8 @@ declare const QCombobox: {
712
712
  readonly itemLabel?: string | undefined;
713
713
  readonly disabled?: boolean | undefined;
714
714
  readonly selectable?: boolean | undefined;
715
+ readonly multiple?: boolean | undefined;
716
+ readonly required?: boolean | undefined;
715
717
  readonly onClick?: ((key: any) => any) | undefined;
716
718
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
717
719
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
@@ -816,6 +818,8 @@ declare const QCombobox: {
816
818
  itemLabel?: string;
817
819
  disabled?: boolean;
818
820
  selectable?: boolean;
821
+ multiple?: boolean;
822
+ required?: boolean;
819
823
  }> & Readonly<{
820
824
  onClick?: ((key: any) => any) | undefined;
821
825
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -866,6 +870,8 @@ declare const QCombobox: {
866
870
  itemLabel?: string;
867
871
  disabled?: boolean;
868
872
  selectable?: boolean;
873
+ multiple?: boolean;
874
+ required?: boolean;
869
875
  }> & Readonly<{
870
876
  onClick?: ((key: any) => any) | undefined;
871
877
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -876,6 +882,7 @@ declare const QCombobox: {
876
882
  getLastFocusableItemIndex: () => number;
877
883
  }> & {} & import('vue').ComponentCustomProperties & {} & {
878
884
  $slots: {
885
+ default?(_: {}): any;
879
886
  item?(_: {
880
887
  item: import('../QList/types').Item;
881
888
  element: HTMLLIElement | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAI2vzB,GAAG,8CAA8C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;;;;;;;;;;;;;;;;;;;;;EAJn1zB,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,CAAA"}
@@ -6,9 +6,11 @@ type __VLS_PublicProps = {
6
6
  declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
8
  slots: {
9
- 'body.content'?(_: {}): any;
9
+ header?(_: {}): any;
10
+ body?(_: {}): any;
10
11
  'body.icon'?(_: {}): any;
11
12
  'body.append'?(_: {}): any;
13
+ footer?(_: {}): any;
12
14
  };
13
15
  refs: {};
14
16
  rootEl: any;
@@ -16,9 +18,15 @@ declare function __VLS_template(): {
16
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
19
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
20
  "update:modelValue": (value: boolean) => any;
21
+ } & {
22
+ enter: () => any;
23
+ leave: () => any;
19
24
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
25
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
+ onEnter?: (() => any) | undefined;
27
+ onLeave?: (() => any) | undefined;
21
28
  }>, {
29
+ size: import('./types').QDialogSize;
22
30
  html: boolean;
23
31
  icon: import('..').Icon;
24
32
  icons: typeof DEFAULT_ICONS;
@@ -1 +1 @@
1
- {"version":3,"file":"QDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialog.vue"],"names":[],"mappings":"AAyDA;AA6FC,OAAO,EAAiC,aAAa,EAAE,MAAM,SAAS,CAAA;AAQtE,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD,KAAK,WAAW,GAAG,YAAY,CAAC;AAgCjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgKT,OAAO,IAA6B;;gCAZb,GAAG;6BACN,GAAG;+BACD,GAAG;;;;EAetC;AAgBD,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":"AAyEA;AAsIC,OAAO,EAAiC,aAAa,EAAE,MAAM,SAAS,CAAA;AAQtE,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAKzD,KAAK,WAAW,GAAG,YAAY,CAAC;AAwDjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkMT,OAAO,IAA6B;;wBAdrB,GAAG;sBACL,GAAG;6BACI,GAAG;+BACD,GAAG;wBACV,GAAG;;;;EAe/B;AAoBD,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,139 +1,167 @@
1
- import { defineComponent as C, mergeModels as V, useModel as q, createBlock as n, openBlock as o, unref as a, withCtx as c, createElementVNode as i, normalizeClass as T, renderSlot as u, createCommentVNode as _, toDisplayString as y, createVNode as k, normalizeProps as h, guardReactiveProps as g, createElementBlock as d, Fragment as D, renderList as L, mergeProps as v } from "vue";
2
- import { DEFAULT_ICONS as N, DEFAULT_BUTTONS as x, DEFAULT_ICON as E } from "./types.js";
3
- import { QButton as B } from "../QButton/index.js";
4
- import { QIcon as p } from "../QIcon/index.js";
5
- import { QOverlay as M } from "../QOverlay/index.js";
6
- const U = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }, F = { class: "q-dialog__body" }, O = {
1
+ import { defineComponent as z, mergeModels as v, useModel as M, computed as k, createBlock as d, openBlock as l, unref as a, normalizeClass as h, withCtx as f, createElementVNode as c, createElementBlock as s, createCommentVNode as i, renderSlot as r, toDisplayString as g, createVNode as b, normalizeProps as B, guardReactiveProps as q, Fragment as U, renderList as A, mergeProps as C } from "vue";
2
+ import { DEFAULT_ICONS as F, DEFAULT_BUTTONS as O, DEFAULT_ICON as Q } from "./types.js";
3
+ import { QButton as V } from "../QButton/index.js";
4
+ import { QIcon as m } from "../QIcon/index.js";
5
+ import { QOverlay as S } from "../QOverlay/index.js";
6
+ const I = {
7
+ key: 0,
8
+ class: "q-dialog__header"
9
+ }, P = { class: "q-dialog__header-title" }, H = {
10
+ key: 1,
11
+ class: "q-dialog__body"
12
+ }, w = {
7
13
  key: 0,
8
14
  class: "q-dialog__body-icon"
9
- }, Q = { class: "q-dialog__body-text" }, S = ["innerHTML"], I = { key: 1 }, P = { class: "q-dialog__body-actions" }, j = /* @__PURE__ */ C({
15
+ }, x = { class: "q-dialog__body-text" }, R = ["innerHTML"], j = { key: 1 }, G = {
16
+ key: 2,
17
+ class: "q-dialog__footer"
18
+ }, J = { class: "q-dialog__footer-buttons" }, ee = /* @__PURE__ */ z({
10
19
  __name: "QDialog",
11
- props: /* @__PURE__ */ V({
20
+ props: /* @__PURE__ */ v({
12
21
  id: {},
13
22
  class: {},
14
23
  title: {},
15
24
  text: {},
16
- icon: { default: () => E },
17
- buttons: { default: () => x },
25
+ icon: { default: () => Q },
26
+ buttons: { default: () => O },
18
27
  attach: { default: "body" },
19
28
  inline: { type: Boolean },
20
29
  backdropBlur: { type: Boolean, default: !0 },
21
30
  dismissible: { type: Boolean },
22
31
  html: { type: Boolean, default: !0 },
23
- icons: { default: () => N }
32
+ icons: { default: () => F },
33
+ size: { default: "small" },
34
+ centerVertically: { type: Boolean }
24
35
  }, {
25
36
  modelValue: { type: Boolean },
26
37
  modelModifiers: {}
27
38
  }),
28
- emits: ["update:modelValue"],
29
- setup(m) {
30
- const e = m, r = q(m, "modelValue");
31
- function f() {
32
- r.value = !1;
39
+ emits: /* @__PURE__ */ v(["enter", "leave"], ["update:modelValue"]),
40
+ setup(_, { emit: $ }) {
41
+ const e = _, p = $, u = M(_, "modelValue"), L = k(() => ["q-dialog", e.class]), T = k(() => `q-overlay--${e.size}`);
42
+ function y() {
43
+ u.value = !1;
44
+ }
45
+ function D(o) {
46
+ var n;
47
+ (n = o.action) == null || n.call(o), y();
48
+ }
49
+ function E() {
50
+ p("enter");
33
51
  }
34
- function b(l) {
35
- var s;
36
- (s = l.action) == null || s.call(l), f();
52
+ function N() {
53
+ p("leave");
37
54
  }
38
- return (l, s) => (o(), n(a(M), {
55
+ return (o, n) => (l(), d(a(S), {
39
56
  id: e.id,
40
- modelValue: r.value,
41
- "onUpdate:modelValue": s[0] || (s[0] = (t) => r.value = t),
57
+ modelValue: u.value,
58
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => u.value = t),
42
59
  "backdrop-class": "q-dialog__underlay",
43
60
  "scroll-lock": "",
44
61
  persistent: "",
45
62
  inline: e.inline,
46
63
  attach: e.attach,
47
- "backdrop-blur": e.backdropBlur
64
+ "backdrop-blur": e.backdropBlur,
65
+ "center-vertically": e.centerVertically,
66
+ class: h(T.value),
67
+ onEnter: E,
68
+ onLeave: N
48
69
  }, {
49
- default: c(() => [
50
- i(
70
+ default: f(() => [
71
+ c(
51
72
  "div",
52
73
  {
53
- class: T(["q-dialog", e.class])
74
+ class: h(L.value)
54
75
  },
55
76
  [
56
- i("div", U, [
57
- i(
58
- "span",
59
- A,
60
- y(e.title),
61
- 1
62
- /* TEXT */
63
- ),
64
- e.dismissible ? (o(), n(a(B), {
65
- key: 0,
66
- variant: "text",
67
- onClick: f
68
- }, {
69
- default: c(() => [
70
- k(
71
- a(p),
72
- h(g(e.icons.close)),
73
- null,
74
- 16
75
- /* FULL_PROPS */
76
- )
77
- ]),
78
- _: 1
79
- /* STABLE */
80
- })) : _("v-if", !0)
81
- ]),
82
- u(l.$slots, "body.content", {}, () => [
83
- i("div", F, [
84
- u(l.$slots, "body.icon", {}, () => [
85
- e.icon ? (o(), d("span", O, [
86
- k(
87
- a(p),
88
- h(g(e.icon)),
77
+ e.title || o.$slots.header ? (l(), s("div", I, [
78
+ r(o.$slots, "header", {}, () => [
79
+ c(
80
+ "span",
81
+ P,
82
+ g(e.title),
83
+ 1
84
+ /* TEXT */
85
+ )
86
+ ])
87
+ ])) : i("v-if", !0),
88
+ e.icon || e.text || o.$slots.body ? (l(), s("div", H, [
89
+ r(o.$slots, "body", {}, () => [
90
+ r(o.$slots, "body.icon", {}, () => [
91
+ e.icon ? (l(), s("span", w, [
92
+ b(
93
+ a(m),
94
+ B(q(e.icon)),
89
95
  null,
90
96
  16
91
97
  /* FULL_PROPS */
92
98
  )
93
- ])) : _("v-if", !0)
99
+ ])) : i("v-if", !0)
94
100
  ]),
95
- i("div", Q, [
96
- e.html ? (o(), d("span", {
101
+ c("div", x, [
102
+ e.html ? (l(), s("div", {
97
103
  key: 0,
98
104
  innerHTML: e.text
99
- }, null, 8, S)) : (o(), d(
100
- "span",
101
- I,
102
- y(e.text),
105
+ }, null, 8, R)) : (l(), s(
106
+ "div",
107
+ j,
108
+ g(e.text),
103
109
  1
104
110
  /* TEXT */
105
111
  ))
106
112
  ]),
107
- u(l.$slots, "body.append")
113
+ r(o.$slots, "body.append")
108
114
  ])
109
- ]),
110
- i("div", P, [
111
- (o(!0), d(
112
- D,
113
- null,
114
- L(e.buttons, (t) => (o(), n(a(B), v({ ref_for: !0 }, t.props, {
115
- key: t.id,
116
- onClick: () => b(t)
117
- }), {
118
- default: c(() => [
119
- t.icon ? (o(), n(
120
- a(p),
121
- v({
122
- key: 0,
123
- ref_for: !0
124
- }, t.icon),
125
- null,
126
- 16
127
- /* FULL_PROPS */
128
- )) : _("v-if", !0)
129
- ]),
130
- _: 2
131
- /* DYNAMIC */
132
- }, 1040, ["onClick"]))),
133
- 128
134
- /* KEYED_FRAGMENT */
135
- ))
136
- ])
115
+ ])) : i("v-if", !0),
116
+ e.buttons || o.$slots.footer ? (l(), s("div", G, [
117
+ r(o.$slots, "footer", {}, () => [
118
+ c("span", J, [
119
+ (l(!0), s(
120
+ U,
121
+ null,
122
+ A(e.buttons, (t) => (l(), d(a(V), C({ ref_for: !0 }, t.props, {
123
+ key: t.id,
124
+ onClick: () => D(t)
125
+ }), {
126
+ default: f(() => [
127
+ t.icon ? (l(), d(
128
+ a(m),
129
+ C({
130
+ key: 0,
131
+ ref_for: !0
132
+ }, t.icon),
133
+ null,
134
+ 16
135
+ /* FULL_PROPS */
136
+ )) : i("v-if", !0)
137
+ ]),
138
+ _: 2
139
+ /* DYNAMIC */
140
+ }, 1040, ["onClick"]))),
141
+ 128
142
+ /* KEYED_FRAGMENT */
143
+ ))
144
+ ])
145
+ ])
146
+ ])) : i("v-if", !0),
147
+ e.dismissible ? (l(), d(a(V), {
148
+ key: 3,
149
+ class: "q-dialog__close",
150
+ variant: "text",
151
+ onClick: y
152
+ }, {
153
+ default: f(() => [
154
+ b(
155
+ a(m),
156
+ B(q(e.icons.close)),
157
+ null,
158
+ 16
159
+ /* FULL_PROPS */
160
+ )
161
+ ]),
162
+ _: 1
163
+ /* STABLE */
164
+ })) : i("v-if", !0)
137
165
  ],
138
166
  2
139
167
  /* CLASS */
@@ -141,9 +169,9 @@ const U = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }
141
169
  ]),
142
170
  _: 3
143
171
  /* FORWARDED */
144
- }, 8, ["id", "modelValue", "inline", "attach", "backdrop-blur"]));
172
+ }, 8, ["id", "modelValue", "inline", "attach", "backdrop-blur", "center-vertically", "class"]));
145
173
  }
146
174
  });
147
175
  export {
148
- j as default
176
+ ee as default
149
177
  };
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=QDialogProvider.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AASA;;AA+FA,wBAKG"}
@@ -0,0 +1,26 @@
1
+ import { defineComponent as a, createElementBlock as l, openBlock as o, Fragment as i, renderList as m, unref as r, createBlock as s, mergeProps as p } from "vue";
2
+ import { QDialog as u } from "./index.js";
3
+ import { useDialog as c } from "../../composables/useDialog/index.js";
4
+ const D = /* @__PURE__ */ a({
5
+ inheritAttrs: !1,
6
+ __name: "QDialogProvider",
7
+ setup(f) {
8
+ const { dialogs: t, removeDialog: n } = c();
9
+ return (_, d) => (o(!0), l(
10
+ i,
11
+ null,
12
+ m(r(t), (e) => (o(), s(r(u), p({
13
+ key: e.id,
14
+ ref_for: !0
15
+ }, e.props, {
16
+ "model-value": "",
17
+ onLeave: () => r(n)(e.id)
18
+ }), null, 16, ["onLeave"]))),
19
+ 128
20
+ /* KEYED_FRAGMENT */
21
+ ));
22
+ }
23
+ });
24
+ export {
25
+ D as default
26
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QDialogProvider.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -13,11 +13,19 @@ declare const QDialog: {
13
13
  dismissible?: boolean;
14
14
  html?: boolean;
15
15
  icons?: typeof import('./types').DEFAULT_ICONS;
16
+ size?: import('./types').QDialogSize;
17
+ centerVertically?: boolean;
16
18
  }> & Readonly<{
17
19
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ onEnter?: (() => any) | undefined;
21
+ onLeave?: (() => any) | undefined;
18
22
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
23
  "update:modelValue": (value: boolean) => any;
24
+ } & {
25
+ enter: () => any;
26
+ leave: () => any;
20
27
  }, import('vue').PublicProps, {
28
+ size: import('./types').QDialogSize;
21
29
  html: boolean;
22
30
  icon: import('..').Icon;
23
31
  icons: typeof import('./types').DEFAULT_ICONS;
@@ -44,9 +52,14 @@ declare const QDialog: {
44
52
  dismissible?: boolean;
45
53
  html?: boolean;
46
54
  icons?: typeof import('./types').DEFAULT_ICONS;
55
+ size?: import('./types').QDialogSize;
56
+ centerVertically?: boolean;
47
57
  }> & Readonly<{
48
58
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
59
+ onEnter?: (() => any) | undefined;
60
+ onLeave?: (() => any) | undefined;
49
61
  }>, {}, {}, {}, {}, {
62
+ size: import('./types').QDialogSize;
50
63
  html: boolean;
51
64
  icon: import('..').Icon;
52
65
  icons: typeof import('./types').DEFAULT_ICONS;
@@ -70,11 +83,19 @@ declare const QDialog: {
70
83
  dismissible?: boolean;
71
84
  html?: boolean;
72
85
  icons?: typeof import('./types').DEFAULT_ICONS;
86
+ size?: import('./types').QDialogSize;
87
+ centerVertically?: boolean;
73
88
  }> & Readonly<{
74
89
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
90
+ onEnter?: (() => any) | undefined;
91
+ onLeave?: (() => any) | undefined;
75
92
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
93
  "update:modelValue": (value: boolean) => any;
94
+ } & {
95
+ enter: () => any;
96
+ leave: () => any;
77
97
  }, string, {
98
+ size: import('./types').QDialogSize;
78
99
  html: boolean;
79
100
  icon: import('..').Icon;
80
101
  icons: typeof import('./types').DEFAULT_ICONS;
@@ -83,11 +104,14 @@ declare const QDialog: {
83
104
  buttons: DialogButton[];
84
105
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
85
106
  $slots: {
86
- 'body.content'?(_: {}): any;
107
+ header?(_: {}): any;
108
+ body?(_: {}): any;
87
109
  'body.icon'?(_: {}): any;
88
110
  'body.append'?(_: {}): any;
111
+ footer?(_: {}): any;
89
112
  };
90
113
  });
91
- export { QDialog };
114
+ declare const QDialogProvider: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
115
+ export { QDialog, QDialogProvider };
92
116
  export type { DialogButton };
93
117
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,YAAY,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AACzC,QAAA,MAAM,eAAe,+QAAoC,CAAA;AAGzD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAA;AAGnC,YAAY,EAAE,YAAY,EAAE,CAAA"}
@@ -1,6 +1,8 @@
1
- import o from "./QDialog.vue.js";
2
- import { setupPropsProxy as r } from "../../utils/setupPropsProxy.js";
3
- const t = r(o);
1
+ import r from "./QDialog.vue.js";
2
+ import i from "./QDialogProvider.vue.js";
3
+ import { setupPropsProxy as o } from "../../utils/setupPropsProxy.js";
4
+ const s = o(r), f = o(i);
4
5
  export {
5
- t as QDialog
6
+ s as QDialog,
7
+ f as QDialogProvider
6
8
  };
@@ -1,6 +1,7 @@
1
1
  import { QButtonProps } from '../QButton';
2
2
  import { Icon } from '../QIcon';
3
3
  import { QBaseComponentProps } from '../../types/component';
4
+ export type QDialogSize = 'small' | 'medium' | 'large' | 'xlarge';
4
5
  export type QDialogProps = QBaseComponentProps & {
5
6
  /**
6
7
  * The title of the dialog window.
@@ -44,6 +45,14 @@ export type QDialogProps = QBaseComponentProps & {
44
45
  * Custom icon configurations.
45
46
  */
46
47
  icons?: typeof DEFAULT_ICONS;
48
+ /**
49
+ * The size category of the dialog.
50
+ */
51
+ size?: QDialogSize;
52
+ /**
53
+ * Whether to vertically align the dialog to the center (true) or top (false)
54
+ */
55
+ centerVertically?: boolean;
47
56
  };
48
57
  export type DialogButton = {
49
58
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC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ayer/QDismissibleLayer.vue"],"names":[],"mappings":"AAKA;AA8HC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAgH1E,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QDismissibleLayer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDismissibleLayer/QDismissibleLayer.vue"],"names":[],"mappings":"AAKA;AAyIC,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAyH1E,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}