@quidgest/ui 0.16.24 → 0.16.25
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.
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +10 -0
- package/dist/ui.esm.js +2444 -2401
- package/dist/ui.js +18 -17
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +734 -727
- package/dist/ui.scss +11 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +3 -3
- package/esm/components/QDefaultsProvider/QDefaultsProvider.d.ts +19 -0
- package/esm/components/QDefaultsProvider/QDefaultsProvider.d.ts.map +1 -0
- package/esm/components/QDefaultsProvider/QDefaultsProvider.vue.js +16 -0
- package/esm/components/QDefaultsProvider/QDefaultsProvider.vue2.js +4 -0
- package/esm/components/QDefaultsProvider/index.d.ts +19 -0
- package/esm/components/QDefaultsProvider/index.d.ts.map +1 -0
- package/esm/components/QDefaultsProvider/index.js +6 -0
- package/esm/components/QDefaultsProvider/types.d.ts +13 -0
- package/esm/components/QDefaultsProvider/types.d.ts.map +1 -0
- package/esm/components/QFileUpload/QFileUpload.vue.js +45 -45
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +12 -12
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +11 -11
- package/esm/components/QTextArea/QTextArea.vue.js +10 -10
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +15 -15
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +29 -11
- package/esm/components/QThemeProvider/types.d.ts +2 -1
- package/esm/components/QThemeProvider/types.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +10 -10
- package/esm/components/QTooltip/QTooltip.vue.js +23 -23
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +88 -86
- package/esm/composables/defaults.d.ts +2 -2
- package/esm/composables/defaults.d.ts.map +1 -1
- package/esm/composables/defaults.js +12 -12
- package/esm/composables/theme.d.ts +19 -8
- package/esm/composables/theme.d.ts.map +1 -1
- package/esm/composables/theme.js +15 -11
- package/esm/composables/uid.d.ts +2 -2
- package/esm/composables/uid.d.ts.map +1 -1
- package/esm/composables/uid.js +6 -5
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/composables/useDialog/index.js +11 -11
- package/esm/composables/useToast/index.js +6 -6
- package/esm/framework.js +45 -36
- package/esm/index.d.ts +1 -0
- package/esm/utils/theme.d.ts +27 -6
- package/esm/utils/theme.d.ts.map +1 -1
- package/esm/utils/theme.js +39 -37
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as C, mergeModels as y, useModel as R, computed as n, watch as V, ref as b, createBlock as h, openBlock as v, unref as r, normalizeClass as
|
|
2
|
-
import { QField as
|
|
3
|
-
import { QClearButton as
|
|
4
|
-
import { useId as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as C, mergeModels as y, useModel as R, computed as n, watch as V, toRef as z, ref as b, createBlock as h, openBlock as v, unref as r, normalizeClass as M, createSlots as w, withCtx as a, withDirectives as L, createElementVNode as Q, mergeProps as D, vModelDynamic as F, renderSlot as o, createCommentVNode as N } from "vue";
|
|
2
|
+
import { QField as S } from "../QField/index.js";
|
|
3
|
+
import { QClearButton as _ } from "../__internal__/QClearButton/index.js";
|
|
4
|
+
import { useId as A } from "../../composables/uid.js";
|
|
5
|
+
const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], j = /* @__PURE__ */ C({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QTextField",
|
|
8
8
|
props: /* @__PURE__ */ y({
|
|
@@ -34,7 +34,7 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
V(t, (l) => s.value = l, { immediate: !0 });
|
|
37
|
-
const p =
|
|
37
|
+
const p = A(z(e, "id")), u = b(null), f = b(null), g = n(
|
|
38
38
|
() => e.readonly || e.disabled ? void 0 : e.placeholder
|
|
39
39
|
), m = n(() => e.clearable && !e.readonly && !e.disabled), c = n(() => m.value && t.value);
|
|
40
40
|
function B(l) {
|
|
@@ -46,10 +46,10 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
|
|
|
46
46
|
return (l = u.value) == null ? void 0 : l.fieldRef;
|
|
47
47
|
}),
|
|
48
48
|
inputRef: f
|
|
49
|
-
}), (l, d) => (v(), h(r(
|
|
49
|
+
}), (l, d) => (v(), h(r(S), {
|
|
50
50
|
ref_key: "fieldRef",
|
|
51
51
|
ref: u,
|
|
52
|
-
class:
|
|
52
|
+
class: M(["q-text-field", e.class]),
|
|
53
53
|
for: r(p),
|
|
54
54
|
label: e.label,
|
|
55
55
|
size: e.size,
|
|
@@ -57,7 +57,7 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
|
|
|
57
57
|
disabled: e.disabled,
|
|
58
58
|
required: e.required,
|
|
59
59
|
invalid: e.invalid
|
|
60
|
-
},
|
|
60
|
+
}, w({
|
|
61
61
|
"label.prepend": a(() => [
|
|
62
62
|
o(l.$slots, "label.prepend")
|
|
63
63
|
]),
|
|
@@ -65,7 +65,7 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
|
|
|
65
65
|
o(l.$slots, "label.append")
|
|
66
66
|
]),
|
|
67
67
|
default: a(() => [
|
|
68
|
-
|
|
68
|
+
L(Q("input", D({
|
|
69
69
|
id: r(p),
|
|
70
70
|
ref_key: "inputRef",
|
|
71
71
|
ref: f,
|
|
@@ -77,8 +77,8 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
|
|
|
77
77
|
placeholder: g.value,
|
|
78
78
|
readonly: e.readonly,
|
|
79
79
|
disabled: e.disabled
|
|
80
|
-
}, l.$attrs), null, 16,
|
|
81
|
-
[
|
|
80
|
+
}, l.$attrs), null, 16, E), [
|
|
81
|
+
[F, s.value]
|
|
82
82
|
])
|
|
83
83
|
]),
|
|
84
84
|
_: 2
|
|
@@ -95,12 +95,12 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
|
|
|
95
95
|
name: "append",
|
|
96
96
|
fn: a(() => [
|
|
97
97
|
o(l.$slots, "append"),
|
|
98
|
-
c.value ? (v(), h(r(
|
|
98
|
+
c.value ? (v(), h(r(_), {
|
|
99
99
|
key: 0,
|
|
100
100
|
"data-testid": "q-text-field__clear-button",
|
|
101
101
|
texts: e.texts,
|
|
102
102
|
onClick: B
|
|
103
|
-
}, null, 8, ["texts"])) :
|
|
103
|
+
}, null, 8, ["texts"])) : N("v-if", !0)
|
|
104
104
|
]),
|
|
105
105
|
key: "1"
|
|
106
106
|
} : void 0,
|
|
@@ -115,5 +115,5 @@ const A = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
export {
|
|
118
|
-
|
|
118
|
+
j as default
|
|
119
119
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAOA;
|
|
1
|
+
{"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAOA;AAmEC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAyDnD,iBAAS,cAAc;WAyBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6TAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,22 +1,40 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as i, toRef as m, watchEffect as u, onBeforeUnmount as h, createElementBlock as p, openBlock as f, normalizeClass as v, unref as d, renderSlot as y } from "vue";
|
|
2
|
+
import { useId as C } from "../../composables/uid.js";
|
|
3
|
+
import { provideTheme as _ } from "../../composables/theme.js";
|
|
4
|
+
const q = ["id"], N = /* @__PURE__ */ i({
|
|
4
5
|
__name: "QThemeProvider",
|
|
5
6
|
props: {
|
|
6
7
|
id: {},
|
|
7
8
|
class: {},
|
|
8
9
|
theme: {}
|
|
9
10
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
setup(a) {
|
|
12
|
+
const o = a, {
|
|
13
|
+
class: c,
|
|
14
|
+
css: r,
|
|
15
|
+
name: n
|
|
16
|
+
} = _(m(o, "theme")), l = C(m(o, "id"));
|
|
17
|
+
let e = null, s = null;
|
|
18
|
+
return u(() => {
|
|
19
|
+
if (r.value) {
|
|
20
|
+
const t = `q-theme-${n.value}`;
|
|
21
|
+
s = t, e = document.getElementById(t), e || (e = document.createElement("style"), e.id = t, document.head.appendChild(e)), e.textContent = r.value;
|
|
22
|
+
}
|
|
23
|
+
}), h(() => {
|
|
24
|
+
if (!e || !s) return;
|
|
25
|
+
!Array.from(
|
|
26
|
+
document.querySelectorAll(
|
|
27
|
+
`.q-theme-provider.q-theme--${n.value}:not(#${l.value})`
|
|
28
|
+
)
|
|
29
|
+
).length && e.parentNode && e.parentNode.removeChild(e);
|
|
30
|
+
}), (t, E) => (f(), p("div", {
|
|
31
|
+
id: d(l),
|
|
32
|
+
class: v(["q-theme-provider", d(c), o.class])
|
|
15
33
|
}, [
|
|
16
|
-
|
|
17
|
-
], 10,
|
|
34
|
+
y(t.$slots, "default")
|
|
35
|
+
], 10, q));
|
|
18
36
|
}
|
|
19
37
|
});
|
|
20
38
|
export {
|
|
21
|
-
|
|
39
|
+
N as default
|
|
22
40
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ThemeDefinition } from '../../composables/theme';
|
|
1
2
|
import { QBaseComponentProps } from '../../types/component';
|
|
2
3
|
export type QThemeProviderProps = QBaseComponentProps & {
|
|
3
4
|
/**
|
|
4
5
|
* The theme to apply to the descendant components.
|
|
5
6
|
*/
|
|
6
|
-
theme: string;
|
|
7
|
+
theme: string | ThemeDefinition;
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACvD;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,eAAe,CAAA;CAC/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QToggleGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroupItem.vue"],"names":[],"mappings":"AAQA;
|
|
1
|
+
{"version":3,"file":"QToggleGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroupItem.vue"],"names":[],"mappings":"AAQA;AA4CC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAmBrD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,oUAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as n,
|
|
2
|
-
import { QToggle as
|
|
3
|
-
import { useGroupItem as
|
|
4
|
-
import { useId as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as n, toRef as p, createBlock as s, openBlock as i, unref as o, mergeProps as u, withCtx as m, renderSlot as d } from "vue";
|
|
2
|
+
import { QToggle as c } from "../QToggle/index.js";
|
|
3
|
+
import { useGroupItem as g } from "../../composables/useGroup/index.js";
|
|
4
|
+
import { useId as f } from "../../composables/uid.js";
|
|
5
|
+
const b = /* @__PURE__ */ n({
|
|
6
6
|
__name: "QToggleGroupItem",
|
|
7
7
|
props: {
|
|
8
8
|
id: {},
|
|
@@ -21,18 +21,18 @@ const h = /* @__PURE__ */ n({
|
|
|
21
21
|
value: {}
|
|
22
22
|
},
|
|
23
23
|
setup(l) {
|
|
24
|
-
const t = l, r =
|
|
24
|
+
const t = l, r = f(p(t, "value")), e = g(r);
|
|
25
25
|
if (!e)
|
|
26
26
|
throw new Error(
|
|
27
27
|
"QToggleGroupItem: Failed to retrieve group item. Ensure the component is used within a QToggleGroup context."
|
|
28
28
|
);
|
|
29
|
-
return (a,
|
|
29
|
+
return (a, v) => (i(), s(o(c), u({
|
|
30
30
|
"model-value": o(e).isActive.value
|
|
31
31
|
}, t, {
|
|
32
32
|
"onUpdate:modelValue": o(e).toggle
|
|
33
33
|
}), {
|
|
34
|
-
default:
|
|
35
|
-
|
|
34
|
+
default: m(() => [
|
|
35
|
+
d(a.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
/* FORWARDED */
|
|
@@ -40,5 +40,5 @@ const h = /* @__PURE__ */ n({
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
b as default
|
|
44
44
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as b, mergeModels as g, useModel as v,
|
|
2
|
-
import { QIcon as
|
|
3
|
-
import { QOverlay as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { getElement as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as b, mergeModels as g, useModel as v, toRef as V, onUnmounted as B, watch as _, createElementBlock as d, openBlock as a, Fragment as u, renderSlot as p, createVNode as k, unref as n, normalizeClass as w, withCtx as A, createElementVNode as x, createBlock as C, createCommentVNode as E, normalizeProps as M, mergeProps as N, createTextVNode as T, toDisplayString as D } from "vue";
|
|
2
|
+
import { QIcon as L } from "../QIcon/index.js";
|
|
3
|
+
import { QOverlay as Q } from "../QOverlay/index.js";
|
|
4
|
+
import { useId as q } from "../../composables/uid.js";
|
|
5
|
+
import { getElement as z } from "../../utils/getElement.js";
|
|
6
|
+
const H = { class: "q-tooltip__content" }, I = ["innerHTML"], O = /* @__PURE__ */ b({
|
|
7
7
|
__name: "QTooltip",
|
|
8
8
|
props: /* @__PURE__ */ g({
|
|
9
9
|
id: {},
|
|
@@ -26,13 +26,13 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
|
|
|
26
26
|
}),
|
|
27
27
|
emits: ["update:modelValue"],
|
|
28
28
|
setup(c) {
|
|
29
|
-
const e = c, r = v(c, "modelValue"), l =
|
|
29
|
+
const e = c, r = v(c, "modelValue"), l = q(V(e, "id"));
|
|
30
30
|
function s() {
|
|
31
|
-
return e.anchor ?
|
|
31
|
+
return e.anchor ? z(e.anchor) : void 0;
|
|
32
32
|
}
|
|
33
33
|
function m() {
|
|
34
34
|
var t;
|
|
35
|
-
(t = s()) == null || t.setAttribute("aria-describedby", l);
|
|
35
|
+
(t = s()) == null || t.setAttribute("aria-describedby", l.value);
|
|
36
36
|
}
|
|
37
37
|
function i() {
|
|
38
38
|
var t;
|
|
@@ -41,18 +41,18 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
|
|
|
41
41
|
function f() {
|
|
42
42
|
e.anchor && i();
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
B(f);
|
|
45
45
|
function h(t, o) {
|
|
46
46
|
o && i(), t && r && m();
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _(() => e.anchor, h), (t, o) => (a(), d(
|
|
49
49
|
u,
|
|
50
50
|
null,
|
|
51
51
|
[
|
|
52
52
|
p(t.$slots, "anchor", {
|
|
53
53
|
props: { "aria-describedby": n(l) }
|
|
54
54
|
}),
|
|
55
|
-
|
|
55
|
+
k(n(Q), {
|
|
56
56
|
id: n(l),
|
|
57
57
|
modelValue: r.value,
|
|
58
58
|
"onUpdate:modelValue": o[0] || (o[0] = (y) => r.value = y),
|
|
@@ -63,7 +63,7 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
|
|
|
63
63
|
arrow: e.arrow,
|
|
64
64
|
attach: e.attach,
|
|
65
65
|
inline: e.inline,
|
|
66
|
-
class:
|
|
66
|
+
class: w(["q-tooltip", e.class]),
|
|
67
67
|
delay: e.delay,
|
|
68
68
|
disabled: e.disabled,
|
|
69
69
|
placement: e.placement,
|
|
@@ -71,25 +71,25 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
|
|
|
71
71
|
onEnter: m,
|
|
72
72
|
onLeave: i
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
|
|
74
|
+
default: A(() => [
|
|
75
|
+
x("div", H, [
|
|
76
76
|
p(t.$slots, "default", {}, () => [
|
|
77
|
-
e.icon ? (a(),
|
|
78
|
-
n(
|
|
79
|
-
|
|
77
|
+
e.icon ? (a(), C(
|
|
78
|
+
n(L),
|
|
79
|
+
M(N({ key: 0 }, e.icon)),
|
|
80
80
|
null,
|
|
81
81
|
16
|
|
82
82
|
/* FULL_PROPS */
|
|
83
|
-
)) :
|
|
83
|
+
)) : E("v-if", !0),
|
|
84
84
|
e.html ? (a(), d("span", {
|
|
85
85
|
key: 1,
|
|
86
86
|
innerHTML: e.text
|
|
87
|
-
}, null, 8,
|
|
87
|
+
}, null, 8, I)) : (a(), d(
|
|
88
88
|
u,
|
|
89
89
|
{ key: 2 },
|
|
90
90
|
[
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
T(
|
|
92
|
+
D(e.text),
|
|
93
93
|
1
|
|
94
94
|
/* TEXT */
|
|
95
95
|
)
|
|
@@ -110,5 +110,5 @@ const z = { class: "q-tooltip__content" }, H = ["innerHTML"], F = /* @__PURE__ *
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
O as default
|
|
114
114
|
};
|
|
@@ -11,6 +11,7 @@ export * from './QCollapsible';
|
|
|
11
11
|
export * from './QColorPicker';
|
|
12
12
|
export * from './QCombobox';
|
|
13
13
|
export * from './QDateTimePicker';
|
|
14
|
+
export * from './QDefaultsProvider';
|
|
14
15
|
export * from './QDialog';
|
|
15
16
|
export * from './QDismissibleLayer';
|
|
16
17
|
export * from './QDivider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -4,44 +4,45 @@ import { QBadge as x } from "./QBadge/index.js";
|
|
|
4
4
|
import { QBadgeIndicator as i } from "./QBadgeIndicator/index.js";
|
|
5
5
|
import { QButton as l } from "./QButton/index.js";
|
|
6
6
|
import { QButtonGroup as n } from "./QButtonGroup/index.js";
|
|
7
|
-
import { QCard as
|
|
7
|
+
import { QCard as c } from "./QCard/index.js";
|
|
8
8
|
import { QCarousel as L } from "./QCarousel/index.js";
|
|
9
|
-
import { QCheckbox as
|
|
9
|
+
import { QCheckbox as P, QCheckboxLabel as I } from "./QCheckbox/index.js";
|
|
10
10
|
import { QCollapsible as b } from "./QCollapsible/index.js";
|
|
11
11
|
import { QColorPicker as v } from "./QColorPicker/index.js";
|
|
12
|
-
import { QCombobox as
|
|
13
|
-
import { QDateTimePicker as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
12
|
+
import { QCombobox as G } from "./QCombobox/index.js";
|
|
13
|
+
import { QDateTimePicker as y } from "./QDateTimePicker/index.js";
|
|
14
|
+
import { QDefaultsProvider as k } from "./QDefaultsProvider/index.js";
|
|
15
|
+
import { QDialog as B, QDialogProvider as h } from "./QDialog/index.js";
|
|
16
|
+
import { QDismissibleLayer as R } from "./QDismissibleLayer/index.js";
|
|
17
|
+
import { QDivider as O } from "./QDivider/index.js";
|
|
18
|
+
import { QDropdownMenu as j } from "./QDropdownMenu/index.js";
|
|
19
|
+
import { QField as z } from "./QField/index.js";
|
|
20
|
+
import { QFileUpload as H } from "./QFileUpload/index.js";
|
|
21
|
+
import { QFocusTrap as K } from "./QFocusTrap/index.js";
|
|
22
|
+
import { QCol as V, QContainer as W, QRow as X, QSpacer as Y } from "./QGrid/index.js";
|
|
23
|
+
import { QIcon as _, QIconFont as $, QIconImg as oo, QIconSvg as ro } from "./QIcon/index.js";
|
|
24
|
+
import { QInputGroup as to } from "./QInputGroup/index.js";
|
|
25
|
+
import { QLabel as Qo } from "./QLabel/index.js";
|
|
26
|
+
import { QLineLoader as xo } from "./QLineLoader/index.js";
|
|
27
|
+
import { QList as io, QListItem as ao, QListItemGroup as lo } from "./QList/index.js";
|
|
28
|
+
import { QMeter as so } from "./QMeter/index.js";
|
|
29
|
+
import { QOverlay as uo } from "./QOverlay/index.js";
|
|
30
|
+
import { QPasswordField as go } from "./QPasswordField/index.js";
|
|
31
|
+
import { QPopover as Io } from "./QPopover/index.js";
|
|
32
|
+
import { QPropertyList as bo, QPropertyListGroup as Co, QPropertyListPanel as vo, QPropertyListRow as Do } from "./QPropertyList/index.js";
|
|
33
|
+
import { QRadioButton as So, QRadioGroup as yo } from "./QRadioGroup/index.js";
|
|
34
|
+
import { QSelect as ko } from "./QSelect/index.js";
|
|
35
|
+
import { QSidebar as Bo } from "./QSidebar/index.js";
|
|
36
|
+
import { QSkeletonLoader as Ao } from "./QSkeletonLoader/index.js";
|
|
37
|
+
import { QSpinnerLoader as Mo } from "./QSpinnerLoader/index.js";
|
|
38
|
+
import { QSwitch as Uo } from "./QSwitch/index.js";
|
|
39
|
+
import { QTextArea as qo } from "./QTextArea/index.js";
|
|
40
|
+
import { QTextField as Eo } from "./QTextField/index.js";
|
|
41
|
+
import { QThemeProvider as Jo } from "./QThemeProvider/index.js";
|
|
42
|
+
import { QToast as No, QToaster as Vo } from "./QToast/index.js";
|
|
43
|
+
import { QToggle as Xo } from "./QToggle/index.js";
|
|
44
|
+
import { QToggleGroup as Zo, QToggleGroupItem as _o } from "./QToggleGroup/index.js";
|
|
45
|
+
import { QTooltip as or } from "./QTooltip/index.js";
|
|
45
46
|
export {
|
|
46
47
|
e as QAccordion,
|
|
47
48
|
t as QAccordionItem,
|
|
@@ -50,58 +51,59 @@ export {
|
|
|
50
51
|
i as QBadgeIndicator,
|
|
51
52
|
l as QButton,
|
|
52
53
|
n as QButtonGroup,
|
|
53
|
-
|
|
54
|
+
c as QCard,
|
|
54
55
|
L as QCarousel,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
P as QCheckbox,
|
|
57
|
+
I as QCheckboxLabel,
|
|
58
|
+
V as QCol,
|
|
58
59
|
b as QCollapsible,
|
|
59
60
|
v as QColorPicker,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
k as
|
|
64
|
-
|
|
65
|
-
h as
|
|
66
|
-
R as
|
|
67
|
-
O as
|
|
68
|
-
j as
|
|
69
|
-
z as
|
|
70
|
-
H as
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
ro as
|
|
76
|
-
to as
|
|
77
|
-
Qo as
|
|
78
|
-
xo as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
lo as
|
|
82
|
-
|
|
83
|
-
uo as
|
|
84
|
-
go as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
So as
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
ko as
|
|
94
|
-
Bo as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
Mo as
|
|
98
|
-
Uo as
|
|
99
|
-
qo as
|
|
100
|
-
Eo as
|
|
101
|
-
Jo as
|
|
102
|
-
|
|
103
|
-
Vo as
|
|
104
|
-
Xo as
|
|
105
|
-
|
|
106
|
-
_o as
|
|
61
|
+
G as QCombobox,
|
|
62
|
+
W as QContainer,
|
|
63
|
+
y as QDateTimePicker,
|
|
64
|
+
k as QDefaultsProvider,
|
|
65
|
+
B as QDialog,
|
|
66
|
+
h as QDialogProvider,
|
|
67
|
+
R as QDismissibleLayer,
|
|
68
|
+
O as QDivider,
|
|
69
|
+
j as QDropdownMenu,
|
|
70
|
+
z as QField,
|
|
71
|
+
H as QFileUpload,
|
|
72
|
+
K as QFocusTrap,
|
|
73
|
+
_ as QIcon,
|
|
74
|
+
$ as QIconFont,
|
|
75
|
+
oo as QIconImg,
|
|
76
|
+
ro as QIconSvg,
|
|
77
|
+
to as QInputGroup,
|
|
78
|
+
Qo as QLabel,
|
|
79
|
+
xo as QLineLoader,
|
|
80
|
+
io as QList,
|
|
81
|
+
ao as QListItem,
|
|
82
|
+
lo as QListItemGroup,
|
|
83
|
+
so as QMeter,
|
|
84
|
+
uo as QOverlay,
|
|
85
|
+
go as QPasswordField,
|
|
86
|
+
Io as QPopover,
|
|
87
|
+
bo as QPropertyList,
|
|
88
|
+
Co as QPropertyListGroup,
|
|
89
|
+
vo as QPropertyListPanel,
|
|
90
|
+
Do as QPropertyListRow,
|
|
91
|
+
So as QRadioButton,
|
|
92
|
+
yo as QRadioGroup,
|
|
93
|
+
X as QRow,
|
|
94
|
+
ko as QSelect,
|
|
95
|
+
Bo as QSidebar,
|
|
96
|
+
Ao as QSkeletonLoader,
|
|
97
|
+
Y as QSpacer,
|
|
98
|
+
Mo as QSpinnerLoader,
|
|
99
|
+
Uo as QSwitch,
|
|
100
|
+
qo as QTextArea,
|
|
101
|
+
Eo as QTextField,
|
|
102
|
+
Jo as QThemeProvider,
|
|
103
|
+
No as QToast,
|
|
104
|
+
Vo as QToaster,
|
|
105
|
+
Xo as QToggle,
|
|
106
|
+
Zo as QToggleGroup,
|
|
107
|
+
_o as QToggleGroupItem,
|
|
108
|
+
or as QTooltip
|
|
107
109
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
1
|
+
import { ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
2
2
|
export declare const DEFAULTS_SYMBOL = "q-defaults";
|
|
3
3
|
export type Defaults = Record<string | symbol, ComponentDefaults>;
|
|
4
4
|
export type ComponentDefaults = Record<string | symbol, unknown>;
|
|
@@ -10,7 +10,7 @@ export declare function useDefaults(): ComputedRef<ComponentDefaults | undefined
|
|
|
10
10
|
*
|
|
11
11
|
* @param defaults - The default values to be provided or updated.
|
|
12
12
|
*/
|
|
13
|
-
export declare function provideDefaults(defaults: Defaults): void;
|
|
13
|
+
export declare function provideDefaults(defaults: MaybeRefOrGetter<Defaults>): void;
|
|
14
14
|
/**
|
|
15
15
|
* Function to inject default values using the Vue.js `inject` function.
|
|
16
16
|
* It retrieves the default values from the specified symbol and ensures
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/composables/defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAOxD,eAAO,MAAM,eAAe,eAAe,CAAA;AAE3C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAAC,CAAA;AAEjE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAA;AAEhE,wBAAgB,WAAW,IAAI,WAAW,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAgBxE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GAAG,IAAI,CAY1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAAC,QAAQ,CAAC,CAMtD"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { getCurrentInstance as d, computed as
|
|
1
|
+
import { getCurrentInstance as d, computed as a, ref as m, toValue as p, provide as v, inject as D } from "vue";
|
|
2
2
|
import { isEmpty as s } from "../utils/isEmpty.js";
|
|
3
|
-
import { merge as
|
|
3
|
+
import { merge as f } from "../utils/merge.js";
|
|
4
4
|
const i = "q-defaults";
|
|
5
|
-
function
|
|
6
|
-
var
|
|
5
|
+
function I() {
|
|
6
|
+
var u, r;
|
|
7
7
|
const e = d();
|
|
8
8
|
if (!e)
|
|
9
9
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
10
10
|
const t = e.type.name ?? e.type.__name;
|
|
11
11
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
12
|
-
const n = l(), o = (
|
|
13
|
-
return
|
|
12
|
+
const n = l(), o = (u = n.value) == null ? void 0 : u.Global, c = (r = n.value) == null ? void 0 : r[t];
|
|
13
|
+
return a(() => f(o, c));
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function U(e) {
|
|
16
16
|
if (s(e)) return;
|
|
17
|
-
const t = l(), n = m(e), o =
|
|
18
|
-
|
|
17
|
+
const t = l(), n = m(p(e)), o = a(() => s(n.value) ? t.value : f(t.value, n.value));
|
|
18
|
+
v(i, o);
|
|
19
19
|
}
|
|
20
20
|
function l() {
|
|
21
|
-
const e =
|
|
21
|
+
const e = D(i, void 0);
|
|
22
22
|
if (!e) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
26
|
i as DEFAULTS_SYMBOL,
|
|
27
27
|
l as injectDefaults,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
U as provideDefaults,
|
|
29
|
+
I as useDefaults
|
|
30
30
|
};
|