@quidgest/ui 0.16.52 → 0.16.54

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 (36) hide show
  1. package/dist/json/api.json +35 -32
  2. package/dist/ui.esm.js +5125 -5134
  3. package/dist/ui.js +8 -8
  4. package/dist/ui.min.js +32 -32
  5. package/dist/ui.scss +2 -2
  6. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +1 -0
  7. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
  8. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +24 -22
  9. package/esm/components/QBadgeIndicator/index.d.ts +3 -0
  10. package/esm/components/QBadgeIndicator/index.d.ts.map +1 -1
  11. package/esm/components/QBadgeIndicator/types.d.ts +7 -0
  12. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
  13. package/esm/components/QDialog/QDialog.d.ts +4 -13
  14. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  15. package/esm/components/QDialog/QDialog.vue.js +71 -78
  16. package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
  17. package/esm/components/QDialog/QDialogProvider.vue.js +16 -17
  18. package/esm/components/QDialog/index.d.ts +10 -85
  19. package/esm/components/QDialog/index.d.ts.map +1 -1
  20. package/esm/components/QDialog/types.d.ts +6 -0
  21. package/esm/components/QDialog/types.d.ts.map +1 -1
  22. package/esm/components/QIcon/InlineSvg.js +8 -8
  23. package/esm/components/QOverlay/QOverlay.d.ts +4 -9
  24. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  25. package/esm/components/QOverlay/QOverlay.vue.js +156 -158
  26. package/esm/components/QOverlay/index.d.ts +10 -93
  27. package/esm/components/QOverlay/index.d.ts.map +1 -1
  28. package/esm/components/QOverlay/types.d.ts +6 -0
  29. package/esm/components/QOverlay/types.d.ts.map +1 -1
  30. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +14 -13
  31. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  32. package/esm/components/QSelect/QSelect.vue.js +44 -46
  33. package/esm/composables/useDialog/index.d.ts +1 -0
  34. package/esm/composables/useDialog/index.d.ts.map +1 -1
  35. package/esm/composables/useDialog/index.js +11 -11
  36. package/package.json +1 -1
@@ -1,39 +1,40 @@
1
- import { defineComponent as M, mergeModels as g, useModel as U, ref as B, computed as V, createBlock as c, openBlock as t, unref as a, normalizeClass as b, withCtx as p, createElementVNode as $, createElementBlock as i, createCommentVNode as s, renderSlot as r, toDisplayString as m, createVNode as y, normalizeProps as q, guardReactiveProps as C, createTextVNode as w, Fragment as Q, renderList as S, mergeProps as F } from "vue";
2
- import { DEFAULT_ICONS as W, DEFAULT_BUTTONS as I, DEFAULT_ICON as P } from "./constants.js";
3
- import { QButton as T } from "../QButton/index.js";
1
+ import { defineComponent as A, ref as h, computed as k, createBlock as c, openBlock as t, unref as a, normalizeClass as g, withCtx as p, createElementVNode as B, createElementBlock as i, createCommentVNode as s, renderSlot as n, toDisplayString as v, createVNode as m, normalizeProps as V, guardReactiveProps as b, createTextVNode as L, Fragment as U, renderList as w, mergeProps as $ } from "vue";
2
+ import { DEFAULT_ICONS as E, DEFAULT_BUTTONS as Q, DEFAULT_ICON as M } from "./constants.js";
3
+ import { QButton as q } from "../QButton/index.js";
4
4
  import { QIcon as f } from "../QIcon/index.js";
5
- import { QOverlay as H } from "../QOverlay/index.js";
6
- import { QTextField as x } from "../QTextField/index.js";
7
- const R = {
5
+ import { QOverlay as S } from "../QOverlay/index.js";
6
+ import { QTextField as W } from "../QTextField/index.js";
7
+ const I = {
8
8
  key: 0,
9
9
  class: "q-dialog__header"
10
- }, j = {
10
+ }, P = {
11
11
  key: 0,
12
12
  class: "q-dialog__header-title"
13
- }, G = {
13
+ }, H = {
14
14
  key: 1,
15
15
  class: "q-dialog__body"
16
- }, J = {
16
+ }, x = {
17
17
  key: 0,
18
18
  class: "q-dialog__body-icon"
19
- }, K = { class: "q-dialog__body-text" }, X = ["innerHTML"], Y = { key: 1 }, Z = {
19
+ }, R = { class: "q-dialog__body-text" }, j = ["innerHTML"], G = { key: 1 }, J = {
20
20
  key: 0,
21
21
  class: "q-dialog__input"
22
- }, ee = {
22
+ }, K = {
23
23
  key: 2,
24
24
  class: "q-dialog__footer"
25
- }, oe = {
25
+ }, X = {
26
26
  key: 0,
27
27
  class: "q-dialog__footer-buttons"
28
- }, re = /* @__PURE__ */ M({
28
+ }, ae = /* @__PURE__ */ A({
29
29
  __name: "QDialog",
30
- props: /* @__PURE__ */ g({
30
+ props: {
31
31
  id: {},
32
32
  class: {},
33
+ modelValue: { type: Boolean },
33
34
  title: {},
34
35
  text: {},
35
- icon: { default: () => P },
36
- buttons: { default: () => I },
36
+ icon: { default: () => M },
37
+ buttons: { default: () => Q },
37
38
  backdropBlur: { type: Boolean, default: !0 },
38
39
  size: { default: "small" },
39
40
  centerVertically: { type: Boolean },
@@ -47,36 +48,29 @@ const R = {
47
48
  dismissible: { type: Boolean },
48
49
  html: { type: Boolean, default: !0 },
49
50
  input: {},
50
- icons: { default: () => W }
51
- }, {
52
- modelValue: { type: Boolean },
53
- modelModifiers: {}
54
- }),
55
- emits: /* @__PURE__ */ g(["enter", "leave"], ["update:modelValue"]),
56
- setup(_, { emit: D }) {
57
- const e = _, h = D, v = U(_, "modelValue"), u = B(""), d = B(""), O = V(() => ["q-dialog", e.class]), L = V(() => `q-overlay--${e.size}`);
58
- function k() {
59
- v.value = !1;
51
+ icons: { default: () => E }
52
+ },
53
+ emits: ["update:modelValue"],
54
+ setup(C, { emit: F }) {
55
+ const e = C, T = F, u = h(""), r = h(""), D = k(() => ["q-dialog", e.class]), O = k(() => `q-overlay--${e.size}`);
56
+ function _() {
57
+ y(!1);
60
58
  }
61
59
  function N(o) {
62
- var n, l;
60
+ var d, l;
63
61
  if (o.action) {
64
- if ((n = e.input) != null && n.validator && (d.value = e.input.validator(a(u)), a(d)))
62
+ if ((d = e.input) != null && d.validator && (r.value = e.input.validator(a(u)), a(r)))
65
63
  return;
66
64
  (l = o.action) == null || l.call(o, a(u));
67
65
  }
68
- k();
69
- }
70
- function z() {
71
- h("enter");
66
+ _();
72
67
  }
73
- function A() {
74
- h("leave");
68
+ function y(o) {
69
+ T("update:modelValue", o);
75
70
  }
76
- return (o, n) => (t(), c(a(H), {
71
+ return (o, d) => (t(), c(a(S), {
77
72
  id: e.id,
78
- modelValue: v.value,
79
- "onUpdate:modelValue": n[1] || (n[1] = (l) => v.value = l),
73
+ "model-value": e.modelValue,
80
74
  "backdrop-class": "q-dialog__underlay",
81
75
  "scroll-lock": "",
82
76
  persistent: "",
@@ -89,72 +83,71 @@ const R = {
89
83
  "focus-within-on-activate": e.focusWithinOnActivate,
90
84
  "closing-focus": e.closingFocus,
91
85
  "return-focus-on-deactivate": e.returnFocusOnDeactivate,
92
- class: b(L.value),
93
- onEnter: z,
94
- onLeave: A
86
+ class: g(O.value),
87
+ "onUpdate:modelValue": y
95
88
  }, {
96
89
  default: p(() => [
97
- $(
90
+ B(
98
91
  "div",
99
92
  {
100
- class: b(O.value)
93
+ class: g(D.value)
101
94
  },
102
95
  [
103
- e.title || o.$slots.header || o.$slots["header.prepend"] || o.$slots["header.append"] ? (t(), i("div", R, [
104
- r(o.$slots, "header", {}, () => [
105
- r(o.$slots, "header.prepend"),
96
+ e.title || o.$slots.header || o.$slots["header.prepend"] || o.$slots["header.append"] ? (t(), i("div", I, [
97
+ n(o.$slots, "header", {}, () => [
98
+ n(o.$slots, "header.prepend"),
106
99
  e.title ? (t(), i(
107
100
  "span",
108
- j,
109
- m(e.title),
101
+ P,
102
+ v(e.title),
110
103
  1
111
104
  /* TEXT */
112
105
  )) : s("v-if", !0),
113
- r(o.$slots, "header.append")
106
+ n(o.$slots, "header.append")
114
107
  ])
115
108
  ])) : s("v-if", !0),
116
- e.icon || e.text || o.$slots.body ? (t(), i("div", G, [
117
- r(o.$slots, "body", {}, () => {
109
+ e.icon || e.text || o.$slots.body ? (t(), i("div", H, [
110
+ n(o.$slots, "body", {}, () => {
118
111
  var l;
119
112
  return [
120
- r(o.$slots, "body.icon", {}, () => [
121
- e.icon ? (t(), i("span", J, [
122
- y(
113
+ n(o.$slots, "body.icon", {}, () => [
114
+ e.icon ? (t(), i("span", x, [
115
+ m(
123
116
  a(f),
124
- q(C(e.icon)),
117
+ V(b(e.icon)),
125
118
  null,
126
119
  16
127
120
  /* FULL_PROPS */
128
121
  )
129
122
  ])) : s("v-if", !0)
130
123
  ]),
131
- $("div", K, [
124
+ B("div", R, [
132
125
  e.html ? (t(), i("div", {
133
126
  key: 0,
134
127
  innerHTML: e.text
135
- }, null, 8, X)) : (t(), i(
128
+ }, null, 8, j)) : (t(), i(
136
129
  "div",
137
- Y,
138
- m(e.text),
130
+ G,
131
+ v(e.text),
139
132
  1
140
133
  /* TEXT */
141
134
  ))
142
135
  ]),
143
- e.input ? (t(), i("div", Z, [
144
- y(a(x), {
136
+ e.input ? (t(), i("div", J, [
137
+ m(a(W), {
145
138
  modelValue: u.value,
146
- "onUpdate:modelValue": n[0] || (n[0] = (E) => u.value = E),
147
- invalid: !!d.value,
139
+ "onUpdate:modelValue": d[0] || (d[0] = (z) => u.value = z),
140
+ invalid: !!r.value,
148
141
  placeholder: (l = e.input) == null ? void 0 : l.placeholder,
149
142
  size: "block"
150
143
  }, {
151
144
  extras: p(() => [
152
- d.value ? (t(), c(a(f), {
145
+ r.value ? (t(), c(a(f), {
153
146
  key: 0,
154
147
  icon: "exclamation-sign"
155
148
  })) : s("v-if", !0),
156
- w(
157
- " " + m(d.value),
149
+ L(
150
+ " " + v(r.value),
158
151
  1
159
152
  /* TEXT */
160
153
  )
@@ -163,23 +156,23 @@ const R = {
163
156
  /* STABLE */
164
157
  }, 8, ["modelValue", "invalid", "placeholder"])
165
158
  ])) : s("v-if", !0),
166
- r(o.$slots, "body.append")
159
+ n(o.$slots, "body.append")
167
160
  ];
168
161
  })
169
162
  ])) : s("v-if", !0),
170
- e.buttons || o.$slots["footer.append"] ? (t(), i("div", ee, [
171
- e.buttons ? (t(), i("span", oe, [
163
+ e.buttons || o.$slots["footer.append"] ? (t(), i("div", K, [
164
+ e.buttons ? (t(), i("span", X, [
172
165
  (t(!0), i(
173
- Q,
166
+ U,
174
167
  null,
175
- S(e.buttons, (l) => (t(), c(a(T), F({ ref_for: !0 }, l.props, {
168
+ w(e.buttons, (l) => (t(), c(a(q), $({ ref_for: !0 }, l.props, {
176
169
  key: l.id,
177
170
  onClick: () => N(l)
178
171
  }), {
179
172
  default: p(() => [
180
173
  l.icon ? (t(), c(
181
174
  a(f),
182
- F({
175
+ $({
183
176
  key: 0,
184
177
  ref_for: !0
185
178
  }, l.icon),
@@ -195,18 +188,18 @@ const R = {
195
188
  /* KEYED_FRAGMENT */
196
189
  ))
197
190
  ])) : s("v-if", !0),
198
- r(o.$slots, "footer.append")
191
+ n(o.$slots, "footer.append")
199
192
  ])) : s("v-if", !0),
200
- e.dismissible ? (t(), c(a(T), {
193
+ e.dismissible ? (t(), c(a(q), {
201
194
  key: 3,
202
195
  class: "q-dialog__close",
203
196
  variant: "text",
204
- onClick: k
197
+ onClick: _
205
198
  }, {
206
199
  default: p(() => [
207
- y(
200
+ m(
208
201
  a(f),
209
- q(C(e.icons.close)),
202
+ V(b(e.icons.close)),
210
203
  null,
211
204
  16
212
205
  /* FULL_PROPS */
@@ -222,9 +215,9 @@ const R = {
222
215
  ]),
223
216
  _: 3
224
217
  /* FORWARDED */
225
- }, 8, ["id", "modelValue", "inline", "attach", "backdrop-blur", "center-vertically", "focus-wrap", "initial-focus", "focus-within-on-activate", "closing-focus", "return-focus-on-deactivate", "class"]));
218
+ }, 8, ["id", "model-value", "inline", "attach", "backdrop-blur", "center-vertically", "focus-wrap", "initial-focus", "focus-within-on-activate", "closing-focus", "return-focus-on-deactivate", "class"]));
226
219
  }
227
220
  });
228
221
  export {
229
- re as default
222
+ ae as default
230
223
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AAUA;AA+CC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;AAmFpD,wBAOG"}
1
+ {"version":3,"file":"QDialogProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/QDialogProvider.vue"],"names":[],"mappings":"AASA;AAgDC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;AAmFpD,wBAOG"}
@@ -1,29 +1,28 @@
1
- import { defineComponent as c, createElementBlock as u, openBlock as o, Fragment as f, renderList as v, unref as r, createBlock as _, mergeProps as d } from "vue";
2
- import { QDialog as g } from "./index.js";
3
- import { useDialog as k } from "../../composables/useDialog/index.js";
4
- const x = /* @__PURE__ */ c({
1
+ import { defineComponent as f, createElementBlock as d, openBlock as r, Fragment as _, renderList as g, unref as t, createBlock as k, mergeProps as v } from "vue";
2
+ import { QDialog as B } from "./index.js";
3
+ import { useDialog as D } from "../../composables/useDialog/index.js";
4
+ const x = /* @__PURE__ */ f({
5
5
  inheritAttrs: !1,
6
6
  __name: "QDialogProvider",
7
7
  props: {
8
8
  inline: { type: Boolean }
9
9
  },
10
10
  emits: ["leave"],
11
- setup(t, { emit: i }) {
12
- const l = t, a = i, { dialogs: m, removeDialog: s } = k();
13
- function p(e) {
14
- s(e), a("leave", e);
11
+ setup(i, { emit: l }) {
12
+ const a = i, m = l, { dialogs: p, removeDialog: s } = D();
13
+ function u(e, n) {
14
+ n || (s(e), m("leave", e));
15
15
  }
16
- return (e, B) => (o(!0), u(
17
- f,
16
+ return (e, n) => (r(!0), d(
17
+ _,
18
18
  null,
19
- v(r(m), (n) => (o(), _(r(g), d({
20
- key: n.id,
19
+ g(t(p), (o) => (r(), k(t(B), v({
20
+ key: o.id,
21
21
  ref_for: !0
22
- }, n.props, {
23
- "model-value": "",
24
- inline: l.inline,
25
- onLeave: () => p(n.id)
26
- }), null, 16, ["inline", "onLeave"]))),
22
+ }, o.props, {
23
+ inline: a.inline,
24
+ "onUpdate:modelValue": (c) => u(o.id, c)
25
+ }), null, 16, ["inline", "onUpdate:modelValue"]))),
27
26
  128
28
27
  /* KEYED_FRAGMENT */
29
28
  ));
@@ -1,34 +1,8 @@
1
1
  declare const QDialog: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
- modelValue?: boolean;
4
- } & import('../../types/component').QBaseComponentProps & {
5
- title?: string;
6
- text?: string;
7
- icon?: import('..').Icon;
8
- buttons?: import('./types').DialogButton[];
9
- backdropBlur?: boolean;
10
- size?: import('./types').QDialogSize;
11
- centerVertically?: boolean;
12
- attach?: string;
13
- inline?: boolean;
14
- focusWrap?: boolean;
15
- initialFocus?: HTMLElement | string | null;
16
- focusWithinOnActivate?: boolean;
17
- closingFocus?: HTMLElement | string;
18
- returnFocusOnDeactivate?: boolean;
19
- dismissible?: boolean;
20
- html?: boolean;
21
- input?: import('./types').QDialogInputOption;
22
- icons?: typeof import('./constants').DEFAULT_ICONS;
23
- }> & Readonly<{
24
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
25
- onEnter?: (() => any) | undefined;
26
- onLeave?: (() => any) | undefined;
27
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
- "update:modelValue": (value: boolean) => any;
29
- } & {
30
- enter: () => any;
31
- leave: () => any;
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QDialogProps> & Readonly<{
3
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
4
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ "update:modelValue": (val: boolean) => any;
32
6
  }, import('vue').PublicProps, {
33
7
  size: import('./types').QDialogSize;
34
8
  html: boolean;
@@ -47,31 +21,8 @@ declare const QDialog: {
47
21
  C: {};
48
22
  M: {};
49
23
  Defaults: {};
50
- }, Readonly<{
51
- modelValue?: boolean;
52
- } & import('../../types/component').QBaseComponentProps & {
53
- title?: string;
54
- text?: string;
55
- icon?: import('..').Icon;
56
- buttons?: import('./types').DialogButton[];
57
- backdropBlur?: boolean;
58
- size?: import('./types').QDialogSize;
59
- centerVertically?: boolean;
60
- attach?: string;
61
- inline?: boolean;
62
- focusWrap?: boolean;
63
- initialFocus?: HTMLElement | string | null;
64
- focusWithinOnActivate?: boolean;
65
- closingFocus?: HTMLElement | string;
66
- returnFocusOnDeactivate?: boolean;
67
- dismissible?: boolean;
68
- html?: boolean;
69
- input?: import('./types').QDialogInputOption;
70
- icons?: typeof import('./constants').DEFAULT_ICONS;
71
- }> & Readonly<{
72
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
73
- onEnter?: (() => any) | undefined;
74
- onLeave?: (() => any) | undefined;
24
+ }, Readonly<import('./types').QDialogProps> & Readonly<{
25
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
75
26
  }>, {}, {}, {}, {}, {
76
27
  size: import('./types').QDialogSize;
77
28
  html: boolean;
@@ -87,36 +38,10 @@ declare const QDialog: {
87
38
  __isFragment?: never;
88
39
  __isTeleport?: never;
89
40
  __isSuspense?: never;
90
- } & import('vue').ComponentOptionsBase<Readonly<{
91
- modelValue?: boolean;
92
- } & import('../../types/component').QBaseComponentProps & {
93
- title?: string;
94
- text?: string;
95
- icon?: import('..').Icon;
96
- buttons?: import('./types').DialogButton[];
97
- backdropBlur?: boolean;
98
- size?: import('./types').QDialogSize;
99
- centerVertically?: boolean;
100
- attach?: string;
101
- inline?: boolean;
102
- focusWrap?: boolean;
103
- initialFocus?: HTMLElement | string | null;
104
- focusWithinOnActivate?: boolean;
105
- closingFocus?: HTMLElement | string;
106
- returnFocusOnDeactivate?: boolean;
107
- dismissible?: boolean;
108
- html?: boolean;
109
- input?: import('./types').QDialogInputOption;
110
- icons?: typeof import('./constants').DEFAULT_ICONS;
111
- }> & Readonly<{
112
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
113
- onEnter?: (() => any) | undefined;
114
- onLeave?: (() => any) | undefined;
115
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
116
- "update:modelValue": (value: boolean) => any;
117
- } & {
118
- enter: () => any;
119
- leave: () => any;
41
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').QDialogProps> & Readonly<{
42
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
43
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
44
+ "update:modelValue": (val: boolean) => any;
120
45
  }, string, {
121
46
  size: import('./types').QDialogSize;
122
47
  html: boolean;
@@ -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"}
@@ -4,6 +4,12 @@ import { Icon } from '../QIcon';
4
4
  import { DEFAULT_ICONS } from './constants';
5
5
  export type QDialogSize = 'small' | 'medium' | 'large' | 'xlarge';
6
6
  export type QDialogProps = QBaseComponentProps & {
7
+ /**
8
+ * The value of the selected item.
9
+ *
10
+ * @category Content
11
+ */
12
+ modelValue?: boolean;
7
13
  /**
8
14
  * The title of the dialog window.
9
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEjE,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG;IAChD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAElB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAE1B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAA;IAE1C;;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K,CAAC,EAAE,kBAAkB,CAAA;IAE1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAA;IAEnC;;OAEG;IACH,KAAK,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;CACjD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, h as s } from "vue";
2
- const o = {}, h = a({
2
+ const i = {}, h = a({
3
3
  name: "InlineSvg",
4
4
  inheritAttrs: !1,
5
5
  props: {
@@ -78,11 +78,11 @@ const o = {}, h = a({
78
78
  */
79
79
  async getSource(t) {
80
80
  try {
81
- o[t] || (o[t] = u(this.download(t))), this.svgElSource && o[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
82
- const e = await o[t];
81
+ i[t] || (i[t] = u(this.download(t))), this.svgElSource && i[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
82
+ const e = await i[t];
83
83
  this.svgElSource = e, await this.$nextTick(), this.$emit("loaded", this.$el);
84
84
  } catch (e) {
85
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete o[t], this.$emit("error", e);
85
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete i[t], this.$emit("error", e);
86
86
  }
87
87
  },
88
88
  /**
@@ -93,9 +93,9 @@ const o = {}, h = a({
93
93
  async download(t) {
94
94
  const e = await fetch(t);
95
95
  if (!e.ok) throw new Error("Error loading SVG");
96
- const r = await e.text(), i = new DOMParser().parseFromString(r, "text/xml").getElementsByTagName("svg")[0];
97
- if (!i) throw new Error("Loaded file is not a valid SVG");
98
- return i;
96
+ const r = await e.text(), o = new DOMParser().parseFromString(r, "text/xml").getElementsByTagName("svg")[0];
97
+ if (!o) throw new Error("Loaded file is not a valid SVG");
98
+ return o;
99
99
  }
100
100
  },
101
101
  render() {
@@ -103,7 +103,7 @@ const o = {}, h = a({
103
103
  const t = this.getSvgContent(this.svgElSource);
104
104
  if (!t) return s("div", this.$attrs);
105
105
  const e = {};
106
- return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
106
+ return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, this.$attrs.id || delete e.id, s("svg", e);
107
107
  },
108
108
  expose: []
109
109
  });
@@ -1,8 +1,4 @@
1
1
  import { QOverlayProps } from './types';
2
- type __VLS_Props = QOverlayProps;
3
- type __VLS_PublicProps = {
4
- modelValue?: boolean;
5
- } & __VLS_Props;
6
2
  declare function __VLS_template(): {
7
3
  attrs: Partial<{}>;
8
4
  slots: {
@@ -16,13 +12,12 @@ declare function __VLS_template(): {
16
12
  rootEl: any;
17
13
  };
18
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- "update:modelValue": (value: boolean) => any;
21
- } & {
15
+ declare const __VLS_component: import('vue').DefineComponent<QOverlayProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ "update:modelValue": (val: boolean) => any;
22
17
  enter: () => any;
23
18
  leave: () => any;
24
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
19
+ }, string, import('vue').PublicProps, Readonly<QOverlayProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
26
21
  onEnter?: (() => any) | undefined;
27
22
  onLeave?: (() => any) | undefined;
28
23
  }>, {
@@ -1 +1 @@
1
- {"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAgEA;AA0hBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA4clC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAgLT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;OASnB,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":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAgEA;AAyhBC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAgd7C,iBAAS,cAAc;WAgLT,OAAO,IAA6B;;yBAdpB,GAAG;;;;;;;;EAmBhC;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;OASnB,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"}