@quidgest/ui 0.16.24 → 0.16.26
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 +17 -0
- package/dist/ui.esm.js +2451 -2404
- package/dist/ui.js +18 -17
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +739 -732
- package/dist/ui.scss +17 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +3 -3
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +10 -8
- package/esm/components/QButtonGroup/types.d.ts +4 -0
- package/esm/components/QButtonGroup/types.d.ts.map +1 -1
- 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/QPasswordField/QPasswordField.d.ts +0 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +1 -1
- package/esm/components/QPasswordField/index.d.ts +0 -3
- package/esm/components/QPasswordField/index.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/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +13 -11
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +10 -10
- package/esm/components/QToggleGroup/index.d.ts +3 -0
- package/esm/components/QToggleGroup/index.d.ts.map +1 -1
- 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 b, mergeModels as h, useModel as z, computed as t, watch as x,
|
|
1
|
+
import { defineComponent as b, mergeModels as h, useModel as z, computed as t, watch as x, toRef as g, ref as w, createBlock as q, openBlock as $, unref as n, normalizeClass as v, createSlots as B, withCtx as a, withDirectives as k, createElementVNode as M, mergeProps as V, toHandlers as R, vModelText as A, renderSlot as o } from "vue";
|
|
2
2
|
import { QField as C } from "../QField/index.js";
|
|
3
3
|
import { useId as H } from "../../composables/uid.js";
|
|
4
4
|
import { useTextareaAutosize as L } from "../../vendors/@vueuse/core/index.js";
|
|
5
|
-
const
|
|
5
|
+
const T = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], D = /* @__PURE__ */ b({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QTextArea",
|
|
8
8
|
props: /* @__PURE__ */ h({
|
|
@@ -36,21 +36,21 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
x(s, (l) => d.value = l, { immediate: !0 });
|
|
39
|
-
const p = H(e
|
|
39
|
+
const p = H(g(e, "id")), m = t(
|
|
40
40
|
() => e.readonly || e.disabled ? void 0 : e.placeholder
|
|
41
|
-
), f = t(() => ({ input: e.autosize ? c : null })), u =
|
|
41
|
+
), f = t(() => ({ input: e.autosize ? c : null })), u = w(), { triggerResize: c } = L({
|
|
42
42
|
element: t(() => e.autosize ? u.value : void 0),
|
|
43
43
|
styleProp: "minHeight"
|
|
44
44
|
});
|
|
45
|
-
return (l, r) => (
|
|
46
|
-
class:
|
|
45
|
+
return (l, r) => ($(), q(n(C), {
|
|
46
|
+
class: v(["q-text-area", e.class]),
|
|
47
47
|
for: n(p),
|
|
48
48
|
label: e.label,
|
|
49
49
|
size: e.size,
|
|
50
50
|
readonly: e.readonly,
|
|
51
51
|
disabled: e.disabled,
|
|
52
52
|
required: e.required
|
|
53
|
-
},
|
|
53
|
+
}, B({
|
|
54
54
|
"label.prepend": a(() => [
|
|
55
55
|
o(l.$slots, "label.prepend")
|
|
56
56
|
]),
|
|
@@ -58,7 +58,7 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
58
58
|
o(l.$slots, "label.append")
|
|
59
59
|
]),
|
|
60
60
|
default: a(() => [
|
|
61
|
-
|
|
61
|
+
k(M("textarea", V({
|
|
62
62
|
id: n(p),
|
|
63
63
|
ref_key: "textareaRef",
|
|
64
64
|
ref: u,
|
|
@@ -73,7 +73,7 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
73
73
|
cols: e.cols,
|
|
74
74
|
resize: e.resize,
|
|
75
75
|
wrap: e.wrap
|
|
76
|
-
}, l.$attrs,
|
|
76
|
+
}, l.$attrs, R(f.value, !0)), null, 16, T), [
|
|
77
77
|
[A, d.value]
|
|
78
78
|
])
|
|
79
79
|
]),
|
|
@@ -105,5 +105,5 @@ const R = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
export {
|
|
108
|
-
|
|
108
|
+
D as default
|
|
109
109
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAgIC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAoEpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAoDA;AAgIC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,KAAK,WAAW,GAAG,eAAe,CAAC;AAoEpC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqEurc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EAnD50c;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+Bksc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OArB30c,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,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":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AAwDC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyBtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACpC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,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,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as d, mergeModels as s, useModel as i, toRef as o, watch as u, createBlock as
|
|
2
|
-
import { QButtonGroup as
|
|
3
|
-
import { provideDefaults as
|
|
4
|
-
import { useGroup as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as d, mergeModels as s, useModel as i, toRef as o, watch as u, createBlock as p, openBlock as m, unref as n, normalizeClass as c, withCtx as f, renderSlot as b } from "vue";
|
|
2
|
+
import { QButtonGroup as B } from "../QButtonGroup/index.js";
|
|
3
|
+
import { provideDefaults as y } from "../../composables/defaults.js";
|
|
4
|
+
import { useGroup as v } from "../../composables/useGroup/index.js";
|
|
5
|
+
const q = /* @__PURE__ */ d({
|
|
6
6
|
__name: "QToggleGroup",
|
|
7
7
|
props: /* @__PURE__ */ s({
|
|
8
8
|
id: {},
|
|
9
9
|
class: {},
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
+
block: { type: Boolean },
|
|
11
12
|
borderless: { type: Boolean },
|
|
12
13
|
elevated: { type: Boolean },
|
|
13
14
|
multiple: { type: Boolean },
|
|
@@ -18,31 +19,32 @@ const C = /* @__PURE__ */ d({
|
|
|
18
19
|
}),
|
|
19
20
|
emits: ["update:modelValue"],
|
|
20
21
|
setup(t) {
|
|
21
|
-
const e = t, r = i(t, "modelValue"), { active: a } =
|
|
22
|
+
const e = t, r = i(t, "modelValue"), { active: a } = v({
|
|
22
23
|
active: r,
|
|
23
24
|
required: o(e, "required"),
|
|
24
25
|
multiple: o(e, "multiple")
|
|
25
26
|
});
|
|
26
27
|
return u(a, (l) => {
|
|
27
28
|
r.value = l;
|
|
28
|
-
}),
|
|
29
|
+
}), y({
|
|
29
30
|
QToggleGroupItem: {
|
|
30
31
|
disabled: o(e, "disabled"),
|
|
31
32
|
borderless: o(e, "borderless")
|
|
32
33
|
}
|
|
33
|
-
}), (l, g) => (
|
|
34
|
+
}), (l, g) => (m(), p(n(B), {
|
|
34
35
|
id: e.id,
|
|
35
36
|
class: c(e.class),
|
|
37
|
+
block: e.block,
|
|
36
38
|
elevated: e.elevated
|
|
37
39
|
}, {
|
|
38
40
|
default: f(() => [
|
|
39
|
-
|
|
41
|
+
b(l.$slots, "default")
|
|
40
42
|
]),
|
|
41
43
|
_: 3
|
|
42
44
|
/* FORWARDED */
|
|
43
|
-
}, 8, ["id", "class", "elevated"]));
|
|
45
|
+
}, 8, ["id", "class", "block", "elevated"]));
|
|
44
46
|
}
|
|
45
47
|
});
|
|
46
48
|
export {
|
|
47
|
-
|
|
49
|
+
q as default
|
|
48
50
|
};
|
|
@@ -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
|
};
|
|
@@ -4,6 +4,7 @@ declare const QToggleGroup: {
|
|
|
4
4
|
modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
|
|
5
5
|
} & import('../../types/component').QBaseComponentProps & {
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
block?: boolean;
|
|
7
8
|
borderless?: boolean;
|
|
8
9
|
elevated?: boolean;
|
|
9
10
|
} & {
|
|
@@ -24,6 +25,7 @@ declare const QToggleGroup: {
|
|
|
24
25
|
modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
|
|
25
26
|
} & import('../../types/component').QBaseComponentProps & {
|
|
26
27
|
disabled?: boolean;
|
|
28
|
+
block?: boolean;
|
|
27
29
|
borderless?: boolean;
|
|
28
30
|
elevated?: boolean;
|
|
29
31
|
} & {
|
|
@@ -39,6 +41,7 @@ declare const QToggleGroup: {
|
|
|
39
41
|
modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
|
|
40
42
|
} & import('../../types/component').QBaseComponentProps & {
|
|
41
43
|
disabled?: boolean;
|
|
44
|
+
block?: boolean;
|
|
42
45
|
borderless?: boolean;
|
|
43
46
|
elevated?: boolean;
|
|
44
47
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKvE,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKvE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA;AACnD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;EAAqC,CAAA;AAG3D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA;AAGzC,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -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"}
|