@quidgest/ui 0.14.21 → 0.15.1
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/ui.css +206 -215
- package/dist/ui.esm.js +2028 -1996
- package/dist/ui.js +8 -8
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +652 -651
- package/dist/ui.scss +201 -169
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +32 -33
- package/esm/components/QBadge/types.d.ts +5 -5
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +3 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +56 -61
- package/esm/components/QButton/index.d.ts +9 -3
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/types.d.ts +22 -11
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +5 -6
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +7 -8
- package/esm/components/QCollapsible/QCollapsible.vue.js +13 -13
- package/esm/components/QCombobox/QCombobox.d.ts +24 -12
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +19 -18
- package/esm/components/QCombobox/index.d.ts +12 -6
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +10 -10
- package/esm/components/QDialog/types.js +3 -3
- package/esm/components/QIcon/QIcon.vue.js +14 -14
- package/esm/components/QMeter/QMeter.vue.js +19 -19
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +27 -25
- package/esm/components/QPopover/index.d.ts +4 -4
- package/esm/components/QPopover/types.d.ts +1 -1
- package/esm/components/QPopover/types.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +15 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +29 -28
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +12 -11
- package/esm/composables/useColor/index.d.ts +33 -0
- package/esm/composables/useColor/index.d.ts.map +1 -0
- package/esm/composables/useColor/index.js +39 -0
- package/esm/composables/useColor/types.d.ts +36 -0
- package/esm/composables/useColor/types.d.ts.map +1 -0
- package/esm/templates/theme.d.ts.map +1 -1
- package/esm/templates/theme.js +13 -3
- package/esm/utils/color.d.ts +5 -0
- package/esm/utils/color.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm/composables/useColorStyle/index.d.ts +0 -11
- package/esm/composables/useColorStyle/index.d.ts.map +0 -1
- package/esm/composables/useColorStyle/index.js +0 -33
- package/esm/composables/useColorStyle/types.d.ts +0 -36
- package/esm/composables/useColorStyle/types.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton.vue"],"names":[],"mappings":"AAmBA;AAuGC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AA4E5C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;2FASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,88 +1,83 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QSpinnerLoader as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as q, computed as a, toRef as y, createElementBlock as c, openBlock as u, withModifiers as _, normalizeStyle as C, normalizeClass as k, createCommentVNode as B, createElementVNode as g, createVNode as h, unref as z, renderSlot as V, createTextVNode as $, toDisplayString as N } from "vue";
|
|
2
|
+
import { QSpinnerLoader as P } from "../QSpinnerLoader/index.js";
|
|
3
|
+
import { useColor as S } from "../../composables/useColor/index.js";
|
|
4
|
+
const x = ["id", "disabled"], D = {
|
|
4
5
|
key: 0,
|
|
5
|
-
class: "q-
|
|
6
|
-
},
|
|
6
|
+
class: "q-button__spinner"
|
|
7
|
+
}, E = { class: "q-button__content" }, H = /* @__PURE__ */ q({
|
|
7
8
|
__name: "QButton",
|
|
8
9
|
props: {
|
|
9
10
|
id: {},
|
|
10
11
|
class: {},
|
|
11
|
-
active: { type: Boolean },
|
|
12
|
-
bStyle: { default: "secondary" },
|
|
13
12
|
label: {},
|
|
13
|
+
variant: { default: "outlined" },
|
|
14
|
+
color: { default: "primary" },
|
|
14
15
|
disabled: { type: Boolean },
|
|
15
|
-
iconOnRight: { type: Boolean },
|
|
16
16
|
borderless: { type: Boolean },
|
|
17
17
|
elevated: { type: Boolean },
|
|
18
18
|
block: { type: Boolean },
|
|
19
19
|
loading: { type: Boolean },
|
|
20
|
-
size: { default: "regular" }
|
|
20
|
+
size: { default: "regular" },
|
|
21
|
+
iconPos: { default: "start" },
|
|
22
|
+
active: { type: Boolean },
|
|
23
|
+
pill: { type: Boolean }
|
|
21
24
|
},
|
|
22
25
|
emits: ["click"],
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
function
|
|
26
|
-
|
|
26
|
+
setup(d, { emit: b }) {
|
|
27
|
+
const o = d, p = b, s = a(() => o.disabled || o.loading);
|
|
28
|
+
function v(e) {
|
|
29
|
+
s.value || p("click", e);
|
|
27
30
|
}
|
|
28
|
-
const m =
|
|
29
|
-
const t =
|
|
31
|
+
const { isUtilityColor: i, style: n } = S(y(o, "color")), m = a(() => {
|
|
32
|
+
const e = i.value ? `q-button--${o.color}` : void 0, t = o.size !== "regular" ? `q-button--${o.size}` : void 0, l = o.iconPos !== "start" ? `q-button--icon-${o.iconPos}` : void 0;
|
|
30
33
|
return [
|
|
31
|
-
"q-
|
|
32
|
-
`q-
|
|
34
|
+
"q-button",
|
|
35
|
+
`q-button--${o.variant}`,
|
|
36
|
+
e,
|
|
33
37
|
t,
|
|
38
|
+
l,
|
|
34
39
|
{
|
|
35
|
-
"q-
|
|
36
|
-
"q-
|
|
37
|
-
"q-
|
|
38
|
-
"q-
|
|
39
|
-
"q-
|
|
40
|
+
"q-button--active": o.active,
|
|
41
|
+
"q-button--borderless": o.borderless,
|
|
42
|
+
"q-button--elevated": o.elevated,
|
|
43
|
+
"q-button--block": o.block,
|
|
44
|
+
"q-button--loading": o.loading,
|
|
45
|
+
"q-button--pill": o.pill
|
|
40
46
|
},
|
|
41
|
-
|
|
47
|
+
o.class
|
|
42
48
|
];
|
|
49
|
+
}), f = a(() => {
|
|
50
|
+
var e, t, l, r;
|
|
51
|
+
if (!i.value)
|
|
52
|
+
return {
|
|
53
|
+
"--q-button-main-color": (e = n.value) == null ? void 0 : e.mainColor,
|
|
54
|
+
"--q-button-on-main-color": (t = n.value) == null ? void 0 : t.onMainColor,
|
|
55
|
+
"--q-button-hover-color": (l = n.value) == null ? void 0 : l.hoverColor,
|
|
56
|
+
"--q-button-on-hover-color": (r = n.value) == null ? void 0 : r.onHoverColor
|
|
57
|
+
};
|
|
43
58
|
});
|
|
44
|
-
return (
|
|
45
|
-
id:
|
|
59
|
+
return (e, t) => (u(), c("button", {
|
|
60
|
+
id: o.id,
|
|
46
61
|
type: "button",
|
|
47
|
-
class:
|
|
48
|
-
disabled:
|
|
49
|
-
|
|
62
|
+
class: k(m.value),
|
|
63
|
+
disabled: s.value,
|
|
64
|
+
style: C(f.value),
|
|
65
|
+
onClick: _(v, ["stop", "prevent"])
|
|
50
66
|
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
])) :
|
|
54
|
-
g("span",
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
1
|
|
62
|
-
/* TEXT */
|
|
63
|
-
)
|
|
64
|
-
],
|
|
65
|
-
64
|
|
66
|
-
/* STABLE_FRAGMENT */
|
|
67
|
-
)) : l("v-if", !0),
|
|
68
|
-
q(t.$slots, "default"),
|
|
69
|
-
t.iconOnRight ? l("v-if", !0) : (n(), o(
|
|
70
|
-
a,
|
|
71
|
-
{ key: 1 },
|
|
72
|
-
[
|
|
73
|
-
d(
|
|
74
|
-
r(e.label),
|
|
75
|
-
1
|
|
76
|
-
/* TEXT */
|
|
77
|
-
)
|
|
78
|
-
],
|
|
79
|
-
64
|
|
80
|
-
/* STABLE_FRAGMENT */
|
|
81
|
-
))
|
|
67
|
+
o.loading ? (u(), c("div", D, [
|
|
68
|
+
h(z(P))
|
|
69
|
+
])) : B("v-if", !0),
|
|
70
|
+
g("span", E, [
|
|
71
|
+
V(e.$slots, "default"),
|
|
72
|
+
$(
|
|
73
|
+
" " + N(o.label),
|
|
74
|
+
1
|
|
75
|
+
/* TEXT */
|
|
76
|
+
)
|
|
82
77
|
])
|
|
83
|
-
],
|
|
78
|
+
], 14, x));
|
|
84
79
|
}
|
|
85
80
|
});
|
|
86
81
|
export {
|
|
87
|
-
|
|
82
|
+
H as default
|
|
88
83
|
};
|
|
@@ -6,7 +6,9 @@ declare const QButton: {
|
|
|
6
6
|
click: (event: Event) => any;
|
|
7
7
|
}, import('vue').PublicProps, {
|
|
8
8
|
size: import('./types').QButtonSize;
|
|
9
|
-
|
|
9
|
+
color: string;
|
|
10
|
+
variant: import('./types').QButtonVariant;
|
|
11
|
+
iconPos: import('./types').QButtonIconPosition;
|
|
10
12
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
11
13
|
P: {};
|
|
12
14
|
B: {};
|
|
@@ -18,7 +20,9 @@ declare const QButton: {
|
|
|
18
20
|
onClick?: ((event: Event) => any) | undefined;
|
|
19
21
|
}>, {}, {}, {}, {}, {
|
|
20
22
|
size: import('./types').QButtonSize;
|
|
21
|
-
|
|
23
|
+
color: string;
|
|
24
|
+
variant: import('./types').QButtonVariant;
|
|
25
|
+
iconPos: import('./types').QButtonIconPosition;
|
|
22
26
|
}>;
|
|
23
27
|
__isFragment?: never;
|
|
24
28
|
__isTeleport?: never;
|
|
@@ -29,7 +33,9 @@ declare const QButton: {
|
|
|
29
33
|
click: (event: Event) => any;
|
|
30
34
|
}, string, {
|
|
31
35
|
size: import('./types').QButtonSize;
|
|
32
|
-
|
|
36
|
+
color: string;
|
|
37
|
+
variant: import('./types').QButtonVariant;
|
|
38
|
+
iconPos: import('./types').QButtonIconPosition;
|
|
33
39
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
34
40
|
$slots: {
|
|
35
41
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/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,27 +1,26 @@
|
|
|
1
1
|
import { QBaseComponentProps } from '../../types/component';
|
|
2
|
-
export type QButtonVariant = '
|
|
2
|
+
export type QButtonVariant = 'bold' | 'outlined' | 'text';
|
|
3
3
|
export type QButtonSize = 'small' | 'regular';
|
|
4
|
+
export type QButtonIconPosition = 'start' | 'end' | 'top' | 'bottom';
|
|
4
5
|
export type QButtonProps = QBaseComponentProps & {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* The text content of the button.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
label?: string;
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* Specifies the visual style of the button.
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
variant?: QButtonVariant;
|
|
13
14
|
/**
|
|
14
|
-
* The
|
|
15
|
+
* The color of the button.
|
|
16
|
+
* Can be chosen from utility colors like 'success' or 'danger',
|
|
17
|
+
* or specified using CSS color codes.
|
|
15
18
|
*/
|
|
16
|
-
|
|
19
|
+
color?: string;
|
|
17
20
|
/**
|
|
18
21
|
* If true, the button is disabled and cannot be interacted with.
|
|
19
22
|
*/
|
|
20
23
|
disabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* If true, the button icon is displayed on the right side.
|
|
23
|
-
*/
|
|
24
|
-
iconOnRight?: boolean;
|
|
25
24
|
/**
|
|
26
25
|
* If true, the button has no borders.
|
|
27
26
|
*/
|
|
@@ -42,5 +41,17 @@ export type QButtonProps = QBaseComponentProps & {
|
|
|
42
41
|
* The size of the button, either 'regular' or 'small'.
|
|
43
42
|
*/
|
|
44
43
|
size?: QButtonSize;
|
|
44
|
+
/**
|
|
45
|
+
* The position of the button icon.
|
|
46
|
+
*/
|
|
47
|
+
iconPos?: QButtonIconPosition;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates whether the button is active or not.
|
|
50
|
+
*/
|
|
51
|
+
active?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Conveys a pill shape to the button.
|
|
54
|
+
*/
|
|
55
|
+
pill?: boolean;
|
|
45
56
|
};
|
|
46
57
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAA;AAEzD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,CAAA;AAE7C,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEpE,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAaA;
|
|
1
|
+
{"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AAaA;AAuCC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAiBjD,iBAAS,cAAc;WA+BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,yTAOnB,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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, toRef as o, createElementBlock as r, openBlock as d, normalizeClass as a, renderSlot as n } from "vue";
|
|
2
2
|
import { provideDefaults as p } from "../../composables/defaults.js";
|
|
3
|
-
const i = ["id"],
|
|
3
|
+
const i = ["id"], b = /* @__PURE__ */ l({
|
|
4
4
|
__name: "QButtonGroup",
|
|
5
5
|
props: {
|
|
6
6
|
id: {},
|
|
@@ -13,16 +13,15 @@ const i = ["id"], m = /* @__PURE__ */ l({
|
|
|
13
13
|
const e = t;
|
|
14
14
|
return p({
|
|
15
15
|
QButton: {
|
|
16
|
-
bStyle: "secondary",
|
|
17
16
|
disabled: o(e, "disabled"),
|
|
18
17
|
borderless: o(e, "borderless")
|
|
19
18
|
}
|
|
20
|
-
}), (s,
|
|
19
|
+
}), (s, u) => (d(), r("div", {
|
|
21
20
|
id: e.id,
|
|
22
21
|
class: a([
|
|
23
|
-
"q-
|
|
22
|
+
"q-button-group",
|
|
24
23
|
{
|
|
25
|
-
"q-
|
|
24
|
+
"q-button-group--elevated": e.elevated
|
|
26
25
|
},
|
|
27
26
|
e.class
|
|
28
27
|
])
|
|
@@ -32,5 +31,5 @@ const i = ["id"], m = /* @__PURE__ */ l({
|
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
b as default
|
|
36
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"AAqBA;AA8CC,OAAO,KAAK,EAAuB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEtE,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAavC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyET,OAAO,IAA6B;6CAXqC,GAAG;;;EAgBzF;AAaD,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,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as u, mergeModels as c, useModel as m, createBlock as s, openBlock as o, unref as d, normalizeClass as
|
|
2
|
-
import { QButton as
|
|
1
|
+
import { defineComponent as u, mergeModels as c, useModel as m, createBlock as s, openBlock as o, unref as d, normalizeClass as f, withCtx as i, createElementBlock as b, Fragment as k, renderList as p, renderSlot as v } from "vue";
|
|
2
|
+
import { QButton as y } from "../QButton/index.js";
|
|
3
3
|
import { QButtonGroup as B } from "../QButtonGroup/index.js";
|
|
4
4
|
const M = /* @__PURE__ */ u({
|
|
5
5
|
__name: "QButtonToggle",
|
|
@@ -23,18 +23,17 @@ const M = /* @__PURE__ */ u({
|
|
|
23
23
|
}
|
|
24
24
|
return (a, g) => (o(), s(d(B), {
|
|
25
25
|
id: e.id,
|
|
26
|
-
|
|
27
|
-
class: b(e.class),
|
|
26
|
+
class: f(e.class),
|
|
28
27
|
disabled: e.disabled,
|
|
29
28
|
borderless: e.borderless,
|
|
30
29
|
elevated: e.elevated,
|
|
31
30
|
role: "listbox"
|
|
32
31
|
}, {
|
|
33
32
|
default: i(() => [
|
|
34
|
-
(o(!0),
|
|
35
|
-
|
|
33
|
+
(o(!0), b(
|
|
34
|
+
k,
|
|
36
35
|
null,
|
|
37
|
-
|
|
36
|
+
p(e.options, (l) => (o(), s(d(y), {
|
|
38
37
|
key: l.key,
|
|
39
38
|
title: l.title,
|
|
40
39
|
label: l.label,
|
|
@@ -44,7 +43,7 @@ const M = /* @__PURE__ */ u({
|
|
|
44
43
|
onClick: () => n(l)
|
|
45
44
|
}, {
|
|
46
45
|
default: i(() => [
|
|
47
|
-
|
|
46
|
+
v(a.$slots, l.key)
|
|
48
47
|
]),
|
|
49
48
|
_: 2
|
|
50
49
|
/* DYNAMIC */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, mergeModels as w, useModel as y, computed as d, watch as N, createBlock as $, openBlock as c, unref as a, normalizeClass as _, withCtx as r, createElementVNode as n, renderSlot as i, createElementBlock as u, createCommentVNode as o, createVNode as p, toDisplayString as b, createTextVNode as B } from "vue";
|
|
2
2
|
import { DEFAULT_ICONS as E } from "./types.js";
|
|
3
3
|
import { QButton as I } from "../QButton/index.js";
|
|
4
4
|
import { QCard as V } from "../QCard/index.js";
|
|
@@ -14,9 +14,9 @@ const L = {
|
|
|
14
14
|
}, H = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "q-collapsible__subtitle"
|
|
17
|
-
}, M = { class: "q-collapsible__content-inner" }, D = { class: "q-collapsible__content" }, P = /* @__PURE__ */
|
|
17
|
+
}, M = { class: "q-collapsible__content-inner" }, D = { class: "q-collapsible__content" }, P = /* @__PURE__ */ T({
|
|
18
18
|
__name: "QCollapsible",
|
|
19
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ w({
|
|
20
20
|
id: {},
|
|
21
21
|
class: {},
|
|
22
22
|
title: {},
|
|
@@ -33,7 +33,7 @@ const L = {
|
|
|
33
33
|
}),
|
|
34
34
|
emits: ["update:modelValue"],
|
|
35
35
|
setup(v) {
|
|
36
|
-
const l = v, s =
|
|
36
|
+
const l = v, s = y(v, "modelValue"), m = R(l.id), t = O(m), q = d(() => l.width === "block" ? "block" : void 0), g = d(() => {
|
|
37
37
|
const e = l.spacing && l.spacing !== "comfortable" ? `q-collapsible--${l.spacing}` : void 0, f = l.variant && l.variant !== "default" ? `q-collapsible--${l.variant}` : void 0;
|
|
38
38
|
return [
|
|
39
39
|
"q-collapsible",
|
|
@@ -44,7 +44,7 @@ const L = {
|
|
|
44
44
|
},
|
|
45
45
|
l.class
|
|
46
46
|
];
|
|
47
|
-
}), k =
|
|
47
|
+
}), k = d(() => [
|
|
48
48
|
"q-collapsible__content-wrapper",
|
|
49
49
|
{
|
|
50
50
|
"q-collapsible__content-show": s.value
|
|
@@ -58,19 +58,19 @@ const L = {
|
|
|
58
58
|
() => s.value = t == null ? void 0 : t.isActive.value
|
|
59
59
|
), (e, f) => (c(), $(a(V), {
|
|
60
60
|
id: a(m),
|
|
61
|
-
class:
|
|
61
|
+
class: _(g.value),
|
|
62
62
|
width: q.value
|
|
63
63
|
}, {
|
|
64
|
-
header:
|
|
64
|
+
header: r(() => [
|
|
65
65
|
e.title ? (c(), u("div", L, [
|
|
66
66
|
p(a(I), {
|
|
67
|
-
|
|
67
|
+
variant: "text",
|
|
68
68
|
block: "",
|
|
69
69
|
class: "q-collapsible__btn",
|
|
70
70
|
"aria-expanded": s.value,
|
|
71
71
|
onClick: C
|
|
72
72
|
}, {
|
|
73
|
-
default:
|
|
73
|
+
default: r(() => [
|
|
74
74
|
o(" TITLE "),
|
|
75
75
|
n("div", Q, [
|
|
76
76
|
o(" ICON ON THE LEFT "),
|
|
@@ -84,7 +84,7 @@ const L = {
|
|
|
84
84
|
n(
|
|
85
85
|
"h4",
|
|
86
86
|
S,
|
|
87
|
-
|
|
87
|
+
b(e.title),
|
|
88
88
|
1
|
|
89
89
|
/* TEXT */
|
|
90
90
|
),
|
|
@@ -103,7 +103,7 @@ const L = {
|
|
|
103
103
|
e.$slots.subtitle || e.subtitle ? (c(), u("div", H, [
|
|
104
104
|
i(e.$slots, "subtitle", {}, () => [
|
|
105
105
|
B(
|
|
106
|
-
|
|
106
|
+
b(e.subtitle),
|
|
107
107
|
1
|
|
108
108
|
/* TEXT */
|
|
109
109
|
)
|
|
@@ -115,11 +115,11 @@ const L = {
|
|
|
115
115
|
}, 8, ["aria-expanded"])
|
|
116
116
|
])) : o("v-if", !0)
|
|
117
117
|
]),
|
|
118
|
-
default:
|
|
118
|
+
default: r(() => [
|
|
119
119
|
n(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
122
|
-
class:
|
|
122
|
+
class: _(k.value)
|
|
123
123
|
},
|
|
124
124
|
[
|
|
125
125
|
n("div", M, [
|
|
@@ -215,16 +215,18 @@ declare function __VLS_template(): {
|
|
|
215
215
|
$props: {
|
|
216
216
|
readonly id?: string | undefined;
|
|
217
217
|
readonly class?: string | unknown[] | undefined;
|
|
218
|
-
readonly active?: boolean | undefined;
|
|
219
|
-
readonly bStyle?: import('../QButton/types').QButtonVariant | undefined;
|
|
220
218
|
readonly label?: string | undefined;
|
|
219
|
+
readonly variant?: import('../QButton/types').QButtonVariant | undefined;
|
|
220
|
+
readonly color?: string | undefined;
|
|
221
221
|
readonly disabled?: boolean | undefined;
|
|
222
|
-
readonly iconOnRight?: boolean | undefined;
|
|
223
222
|
readonly borderless?: boolean | undefined;
|
|
224
223
|
readonly elevated?: boolean | undefined;
|
|
225
224
|
readonly block?: boolean | undefined;
|
|
226
225
|
readonly loading?: boolean | undefined;
|
|
227
226
|
readonly size?: import('../QButton/types').QButtonSize | undefined;
|
|
227
|
+
readonly iconPos?: import('../QButton/types').QButtonIconPosition | undefined;
|
|
228
|
+
readonly active?: boolean | undefined;
|
|
229
|
+
readonly pill?: boolean | undefined;
|
|
228
230
|
readonly onClick?: ((event: Event) => any) | undefined;
|
|
229
231
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
230
232
|
$attrs: {
|
|
@@ -247,7 +249,9 @@ declare function __VLS_template(): {
|
|
|
247
249
|
click: (event: Event) => any;
|
|
248
250
|
}, string, {
|
|
249
251
|
size: import('../QButton/types').QButtonSize;
|
|
250
|
-
|
|
252
|
+
color: string;
|
|
253
|
+
variant: import('../QButton/types').QButtonVariant;
|
|
254
|
+
iconPos: import('../QButton/types').QButtonIconPosition;
|
|
251
255
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
252
256
|
beforeCreate?: (() => void) | (() => void)[];
|
|
253
257
|
created?: (() => void) | (() => void)[];
|
|
@@ -270,10 +274,12 @@ declare function __VLS_template(): {
|
|
|
270
274
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
271
275
|
} & Readonly<{
|
|
272
276
|
size: import('../QButton/types').QButtonSize;
|
|
273
|
-
|
|
277
|
+
color: string;
|
|
278
|
+
variant: import('../QButton/types').QButtonVariant;
|
|
279
|
+
iconPos: import('../QButton/types').QButtonIconPosition;
|
|
274
280
|
}> & Omit<Readonly<import('../QButton').QButtonProps> & Readonly<{
|
|
275
281
|
onClick?: ((event: Event) => any) | undefined;
|
|
276
|
-
}>, "size" | "
|
|
282
|
+
}>, "size" | "color" | "variant" | "iconPos"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
277
283
|
$slots: {
|
|
278
284
|
default?(_: {}): any;
|
|
279
285
|
};
|
|
@@ -1060,16 +1066,18 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1060
1066
|
$props: {
|
|
1061
1067
|
readonly id?: string | undefined;
|
|
1062
1068
|
readonly class?: string | unknown[] | undefined;
|
|
1063
|
-
readonly active?: boolean | undefined;
|
|
1064
|
-
readonly bStyle?: import('../QButton/types').QButtonVariant | undefined;
|
|
1065
1069
|
readonly label?: string | undefined;
|
|
1070
|
+
readonly variant?: import('../QButton/types').QButtonVariant | undefined;
|
|
1071
|
+
readonly color?: string | undefined;
|
|
1066
1072
|
readonly disabled?: boolean | undefined;
|
|
1067
|
-
readonly iconOnRight?: boolean | undefined;
|
|
1068
1073
|
readonly borderless?: boolean | undefined;
|
|
1069
1074
|
readonly elevated?: boolean | undefined;
|
|
1070
1075
|
readonly block?: boolean | undefined;
|
|
1071
1076
|
readonly loading?: boolean | undefined;
|
|
1072
1077
|
readonly size?: import('../QButton/types').QButtonSize | undefined;
|
|
1078
|
+
readonly iconPos?: import('../QButton/types').QButtonIconPosition | undefined;
|
|
1079
|
+
readonly active?: boolean | undefined;
|
|
1080
|
+
readonly pill?: boolean | undefined;
|
|
1073
1081
|
readonly onClick?: ((event: Event) => any) | undefined;
|
|
1074
1082
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
1075
1083
|
$attrs: {
|
|
@@ -1092,7 +1100,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1092
1100
|
click: (event: Event) => any;
|
|
1093
1101
|
}, string, {
|
|
1094
1102
|
size: import('../QButton/types').QButtonSize;
|
|
1095
|
-
|
|
1103
|
+
color: string;
|
|
1104
|
+
variant: import('../QButton/types').QButtonVariant;
|
|
1105
|
+
iconPos: import('../QButton/types').QButtonIconPosition;
|
|
1096
1106
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1097
1107
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1098
1108
|
created?: (() => void) | (() => void)[];
|
|
@@ -1115,10 +1125,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1115
1125
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1116
1126
|
} & Readonly<{
|
|
1117
1127
|
size: import('../QButton/types').QButtonSize;
|
|
1118
|
-
|
|
1128
|
+
color: string;
|
|
1129
|
+
variant: import('../QButton/types').QButtonVariant;
|
|
1130
|
+
iconPos: import('../QButton/types').QButtonIconPosition;
|
|
1119
1131
|
}> & Omit<Readonly<import('../QButton').QButtonProps> & Readonly<{
|
|
1120
1132
|
onClick?: ((event: Event) => any) | undefined;
|
|
1121
|
-
}>, "size" | "
|
|
1133
|
+
}>, "size" | "color" | "variant" | "iconPos"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1122
1134
|
$slots: {
|
|
1123
1135
|
default?(_: {}): any;
|
|
1124
1136
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QCombobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/QCombobox.vue"],"names":[],"mappings":"AA0HA;AAskBC,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAA;AAYtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAG7C,OAAO,EAAY,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAE/D,KAAK,WAAW,GAAG,cAAc,CAAC;AAscnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,WAAW,CAAC;AAOhB,iBAAS,cAAc;WA6UT,OAAO,IAA6B;;iCAtBZ,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA3X1B,GAAE,8CAGd,GACD,yBAEoB,GAAE,6DAEL,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;w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