@quidgest/ui 0.14.5 → 0.14.7
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 +2 -0
- package/dist/ui.css +162 -25
- package/dist/ui.esm.js +1363 -1103
- package/dist/ui.js +44 -7
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +143 -119
- package/dist/ui.scss +175 -26
- package/esm/components/QAccordion/QAccordion.d.ts +27 -0
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -0
- package/esm/components/QAccordion/QAccordion.vue.js +27 -0
- package/esm/components/QAccordion/QAccordion.vue2.js +4 -0
- package/esm/components/QAccordion/index.d.ts +4 -0
- package/esm/components/QAccordion/index.d.ts.map +1 -0
- package/esm/components/QAccordion/index.js +6 -0
- package/esm/components/QAccordion/types.d.ts +7 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -0
- package/esm/components/QBadge/QBadge.d.ts +3 -2
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +11 -11
- package/esm/components/QButton/QButton.d.ts +3 -2
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +14 -14
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +3 -2
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +3 -3
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +7 -6
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +6 -6
- package/esm/components/QCard/QCard.d.ts +3 -2
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +30 -30
- package/esm/components/QCheckbox/QCheckbox.d.ts +4 -4
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
- package/esm/components/QCollapsible/QCollapsible.d.ts +36 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -0
- package/esm/components/QCollapsible/QCollapsible.vue.js +143 -0
- package/esm/components/QCollapsible/QCollapsible.vue2.js +4 -0
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -0
- package/esm/components/QCollapsible/index.js +6 -0
- package/esm/components/QCollapsible/types.d.ts +43 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -0
- package/esm/components/QCollapsible/types.js +8 -0
- package/esm/components/QCombobox/QCombobox.d.ts +40 -39
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +80 -80
- package/esm/components/QDialog/QDialog.d.ts +6 -5
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +7 -7
- package/esm/components/QField/QField.d.ts +2 -1
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +9 -9
- package/esm/components/QIcon/InlineSvg.d.ts +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +9 -9
- package/esm/components/QIcon/QIconFont.d.ts +2 -2
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +5 -5
- package/esm/components/QIcon/QIconImg.d.ts +1 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +5 -5
- package/esm/components/QIcon/QIconSvg.d.ts +2 -2
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +17 -17
- package/esm/components/QInputGroup/QInputGroup.d.ts +2 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
- package/esm/components/QLineLoader/QLineLoader.d.ts +1 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +4 -4
- package/esm/components/QList/QList.d.ts +6 -5
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +1 -1
- package/esm/components/QList/QListItem.d.ts +3 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +18 -18
- package/esm/components/QList/QListItemGroup.d.ts +3 -2
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +6 -5
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +148 -138
- package/esm/components/QPopover/QPopover.d.ts +6 -5
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +22 -22
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +4 -4
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +24 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +72 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +4 -0
- package/esm/components/QRemoveScrollBar/constants.d.ts +10 -0
- package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/constants.js +8 -0
- package/esm/components/QRemoveScrollBar/index.d.ts +4 -0
- package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/index.js +6 -0
- package/esm/components/QRemoveScrollBar/types.d.ts +18 -0
- package/esm/components/QRemoveScrollBar/types.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts +15 -0
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/gap.js +23 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +5 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +24 -0
- package/esm/components/QSelect/QSelect.d.ts +11 -10
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +33 -33
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +11 -11
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
- package/esm/components/QTextField/QTextField.d.ts +7 -6
- 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 +3 -2
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +7 -6
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +15 -15
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +56 -52
- package/esm/composables/defaults.js +5 -5
- package/esm/composables/group.d.ts +16 -0
- package/esm/composables/group.d.ts.map +1 -0
- package/esm/composables/group.js +34 -0
- package/esm/composables/overlay.js +11 -11
- package/esm/framework.js +2 -2
- package/esm/index.d.ts +2 -0
- package/esm/utils/color.js +6 -6
- package/package.json +34 -30
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { QButtonToggleProps } from './types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = QButtonToggleProps;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: string;
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: Partial<Record<string, (_: {}) => any>>;
|
|
8
9
|
refs: {};
|
|
9
|
-
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
10
11
|
};
|
|
11
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
13
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
-
"update:modelValue": (
|
|
14
|
+
"update:modelValue": (value: string) => any;
|
|
14
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((
|
|
16
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
16
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
19
|
export default _default;
|
|
19
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"AA8CC,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI1D,
|
|
1
|
+
{"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle.vue"],"names":[],"mappings":"AAqBA;AA8CC,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI1D,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAiBtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAmET,OAAO,IAA6B;6CAToC,GAAG;;;EAcxF;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;AAWpG,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 i, mergeModels as c, useModel as m, openBlock as o, createBlock as s, unref as d, normalizeClass as b, withCtx as n, createElementBlock as
|
|
2
|
-
import { QButton as
|
|
1
|
+
import { defineComponent as i, mergeModels as c, useModel as m, openBlock as o, createBlock as s, unref as d, normalizeClass as b, withCtx as n, createElementBlock as f, Fragment as y, renderList as k, renderSlot as p } from "vue";
|
|
2
|
+
import { QButton as v } from "../QButton/index.js";
|
|
3
3
|
import { QButtonGroup as B } from "../QButtonGroup/index.js";
|
|
4
4
|
const M = /* @__PURE__ */ i({
|
|
5
5
|
__name: "QButtonToggle",
|
|
@@ -29,10 +29,10 @@ const M = /* @__PURE__ */ i({
|
|
|
29
29
|
role: "listbox"
|
|
30
30
|
}, {
|
|
31
31
|
default: n(() => [
|
|
32
|
-
(o(!0),
|
|
33
|
-
|
|
32
|
+
(o(!0), f(
|
|
33
|
+
y,
|
|
34
34
|
null,
|
|
35
|
-
k(l.options, (e) => (o(), s(d(
|
|
35
|
+
k(l.options, (e) => (o(), s(d(v), {
|
|
36
36
|
key: e.key,
|
|
37
37
|
title: e.title,
|
|
38
38
|
label: e.label,
|
|
@@ -42,7 +42,7 @@ const M = /* @__PURE__ */ i({
|
|
|
42
42
|
onClick: () => u(e)
|
|
43
43
|
}, {
|
|
44
44
|
default: n(() => [
|
|
45
|
-
|
|
45
|
+
p(a.$slots, e.key)
|
|
46
46
|
]),
|
|
47
47
|
_: 2
|
|
48
48
|
/* DYNAMIC */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { QCardProps } from './types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
header?(_: {}): any;
|
|
5
6
|
"header.prepend"?(_: {}): any;
|
|
@@ -12,12 +13,12 @@ declare function __VLS_template(): {
|
|
|
12
13
|
footer?(_: {}): any;
|
|
13
14
|
};
|
|
14
15
|
refs: {};
|
|
15
|
-
|
|
16
|
+
rootEl: any;
|
|
16
17
|
};
|
|
17
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
19
|
declare const __VLS_component: import('vue').DefineComponent<QCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QCardProps> & Readonly<{}>, {
|
|
19
|
-
title: string;
|
|
20
20
|
variant: "default" | "background" | "title-background" | "minor";
|
|
21
|
+
title: string;
|
|
21
22
|
id: string;
|
|
22
23
|
subtitle: string;
|
|
23
24
|
href: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"AAsIC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"QCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCard/QCard.vue"],"names":[],"mappings":"AAyEA;AAsIC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAkE1C,iBAAS,cAAc;WAyHT,OAAO,IAA6B;;wBAhBrB,GAAG;kCACO,GAAG;0CACK,GAAG;uBACtB,GAAG;0BACA,GAAG;yCACY,GAAG;iCACX,GAAG;yBACX,GAAG;wBACJ,GAAG;;;;EAa/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, useAttrs as y, computed as
|
|
1
|
+
import { defineComponent as q, useAttrs as y, computed as l, openBlock as o, createBlock as u, resolveDynamicComponent as C, unref as f, normalizeClass as T, withCtx as D, createElementBlock as a, Fragment as n, createCommentVNode as s, createElementVNode as i, renderSlot as d, createTextVNode as p, toDisplayString as h } from "vue";
|
|
2
2
|
import { QSpinnerLoader as N } from "../QSpinnerLoader/index.js";
|
|
3
3
|
import { useId as g } from "../../composables/uid.js";
|
|
4
4
|
const B = { class: "q-card__header" }, A = {
|
|
@@ -29,8 +29,8 @@ const B = { class: "q-card__header" }, A = {
|
|
|
29
29
|
elevation: { default: "none" },
|
|
30
30
|
width: { default: void 0 }
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const e =
|
|
32
|
+
setup(v) {
|
|
33
|
+
const e = v, $ = y(), m = g(e.id), b = l(() => {
|
|
34
34
|
const t = e.width ? `q-card--${e.width}` : void 0, c = e.variant && e.variant !== "default" ? `q-card--${e.variant}` : void 0, _ = e.elevation && e.elevation !== "none" ? `q-card--elevation-${e.elevation}` : void 0;
|
|
35
35
|
return [
|
|
36
36
|
"q-card",
|
|
@@ -44,40 +44,40 @@ const B = { class: "q-card__header" }, A = {
|
|
|
44
44
|
"q-card--disabled": e.disabled
|
|
45
45
|
}
|
|
46
46
|
];
|
|
47
|
-
}), E =
|
|
48
|
-
|
|
47
|
+
}), E = l(() => !!$.onClick || e.href), r = l(() => e.disabled || e.loading), k = (t) => {
|
|
48
|
+
r.value && t.stopImmediatePropagation();
|
|
49
49
|
};
|
|
50
50
|
return (t, c) => (o(), u(C(e.href ? "a" : "div"), {
|
|
51
|
-
id:
|
|
51
|
+
id: f(m),
|
|
52
52
|
class: T([...b.value, t.$attrs.class]),
|
|
53
|
-
href: e.href && !
|
|
53
|
+
href: e.href && !r.value ? e.href : void 0,
|
|
54
54
|
onClick: k
|
|
55
55
|
}, {
|
|
56
56
|
default: D(() => [
|
|
57
|
-
e.loading ? (o(), u(
|
|
57
|
+
e.loading ? (o(), u(f(N), {
|
|
58
58
|
key: 0,
|
|
59
59
|
size: 36
|
|
60
|
-
})) : (o(),
|
|
61
|
-
|
|
60
|
+
})) : (o(), a(
|
|
61
|
+
n,
|
|
62
62
|
{ key: 1 },
|
|
63
63
|
[
|
|
64
64
|
s(" HEADER "),
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
i("div", B, [
|
|
66
|
+
d(t.$slots, "header", {}, () => [
|
|
67
67
|
s(" HEADER: PREPEND "),
|
|
68
|
-
|
|
68
|
+
d(t.$slots, "header.prepend"),
|
|
69
69
|
s(" HEADER CONTENT "),
|
|
70
|
-
t.$slots.title || e.title || t.$slots.subtitle || e.subtitle ? (o(),
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
t.$slots.title || e.title || t.$slots.subtitle || e.subtitle ? (o(), a("div", A, [
|
|
71
|
+
d(t.$slots, "header.content.prepend"),
|
|
72
|
+
i("div", R, [
|
|
73
73
|
s(" TITLE "),
|
|
74
|
-
t.$slots.title || e.title ? (o(),
|
|
75
|
-
t.$slots.title ?
|
|
76
|
-
|
|
74
|
+
t.$slots.title || e.title ? (o(), a("p", w, [
|
|
75
|
+
t.$slots.title ? d(t.$slots, "title", { key: 0 }) : (o(), a(
|
|
76
|
+
n,
|
|
77
77
|
{ key: 1 },
|
|
78
78
|
[
|
|
79
79
|
p(
|
|
80
|
-
|
|
80
|
+
h(t.$props.title),
|
|
81
81
|
1
|
|
82
82
|
/* TEXT */
|
|
83
83
|
)
|
|
@@ -87,13 +87,13 @@ const B = { class: "q-card__header" }, A = {
|
|
|
87
87
|
))
|
|
88
88
|
])) : s("v-if", !0),
|
|
89
89
|
s(" SUBTITLE "),
|
|
90
|
-
t.$slots.subtitle || e.subtitle ? (o(),
|
|
91
|
-
t.$slots.subtitle ?
|
|
92
|
-
|
|
90
|
+
t.$slots.subtitle || e.subtitle ? (o(), a("p", P, [
|
|
91
|
+
t.$slots.subtitle ? d(t.$slots, "subtitle", { key: 0 }) : (o(), a(
|
|
92
|
+
n,
|
|
93
93
|
{ key: 1 },
|
|
94
94
|
[
|
|
95
95
|
p(
|
|
96
|
-
|
|
96
|
+
h(t.$props.subtitle),
|
|
97
97
|
1
|
|
98
98
|
/* TEXT */
|
|
99
99
|
)
|
|
@@ -103,19 +103,19 @@ const B = { class: "q-card__header" }, A = {
|
|
|
103
103
|
))
|
|
104
104
|
])) : s("v-if", !0)
|
|
105
105
|
]),
|
|
106
|
-
|
|
106
|
+
d(t.$slots, "header.content.append")
|
|
107
107
|
])) : s("v-if", !0),
|
|
108
108
|
s(" HEADER: APPEND "),
|
|
109
|
-
|
|
109
|
+
d(t.$slots, "header.append")
|
|
110
110
|
])
|
|
111
111
|
]),
|
|
112
112
|
s(" CONTENT "),
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
i("div", H, [
|
|
114
|
+
d(t.$slots, "default")
|
|
115
115
|
]),
|
|
116
116
|
s(" FOOTER "),
|
|
117
|
-
t.$slots.footer ? (o(),
|
|
118
|
-
|
|
117
|
+
t.$slots.footer ? (o(), a("div", I, [
|
|
118
|
+
d(t.$slots, "footer")
|
|
119
119
|
])) : s("v-if", !0)
|
|
120
120
|
],
|
|
121
121
|
64
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { QCheckboxProps, DEFAULT_ICONS } from './types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = QCheckboxProps;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: boolean;
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: boolean) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
size: "regular" | "small" | "large";
|
|
12
12
|
class: string | unknown[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAyFC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAIxC,
|
|
1
|
+
{"version":3,"file":"QCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCheckbox/QCheckbox.vue"],"names":[],"mappings":"AAmCA;AAyFC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAIxC,KAAK,WAAW,GAAG,cAAc,CAAC;AAoDlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;;;;;;;;;;;;;;AA8EhB,wBAQG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, mergeModels as f, useModel as y, computed as
|
|
1
|
+
import { defineComponent as k, mergeModels as f, useModel as y, computed as x, openBlock as l, createElementBlock as t, Fragment as _, createElementVNode as a, normalizeClass as v, toDisplayString as s, createCommentVNode as n, unref as u, withModifiers as d, withKeys as m, createBlock as g, mergeProps as q } from "vue";
|
|
2
2
|
import { QIcon as B } from "../QIcon/index.js";
|
|
3
3
|
import { useId as C } from "../../composables/uid.js";
|
|
4
4
|
import { DEFAULT_ICONS as V } from "./types.js";
|
|
@@ -21,7 +21,7 @@ const w = { key: 0 }, M = ["id", "aria-checked", "disabled", "onKeydown"], P = {
|
|
|
21
21
|
}),
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
23
|
setup(i) {
|
|
24
|
-
const e = i, o = y(i, "modelValue"), b = C(e.id), p =
|
|
24
|
+
const e = i, o = y(i, "modelValue"), b = C(e.id), p = x(() => [
|
|
25
25
|
"q-checkbox",
|
|
26
26
|
`q-checkbox--${e.size}`,
|
|
27
27
|
`q-checkbox--${e.color}`,
|
|
@@ -37,13 +37,13 @@ const w = { key: 0 }, M = ["id", "aria-checked", "disabled", "onKeydown"], P = {
|
|
|
37
37
|
!e.disabled && !e.readonly && (o.value = !o.value);
|
|
38
38
|
}
|
|
39
39
|
return (h, r) => (l(), t(
|
|
40
|
-
|
|
40
|
+
_,
|
|
41
41
|
null,
|
|
42
42
|
[
|
|
43
43
|
a(
|
|
44
44
|
"label",
|
|
45
45
|
{
|
|
46
|
-
class:
|
|
46
|
+
class: v(p.value)
|
|
47
47
|
},
|
|
48
48
|
[
|
|
49
49
|
e.labelPlacement !== "right" ? (l(), t(
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { QCollapsibleProps, DEFAULT_ICONS } from './types';
|
|
2
|
+
type __VLS_Props = QCollapsibleProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
icon?(_: {}): any;
|
|
10
|
+
icon?(_: {}): any;
|
|
11
|
+
"title.prepend"?(_: {}): any;
|
|
12
|
+
"title.append"?(_: {}): any;
|
|
13
|
+
subtitle?(_: {}): any;
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: boolean) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
icons: typeof DEFAULT_ICONS;
|
|
26
|
+
id: string;
|
|
27
|
+
width: "fit-content" | "block";
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=QCollapsible.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/QCollapsible.vue"],"names":[],"mappings":"AAsEA;AAqJC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAOxC,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAoErC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+HT,OAAO,IAA6B;;sBAbvB,GAAG;sBAGH,GAAG;iCAFQ,GAAG;gCACJ,GAAG;0BAET,GAAG;yBACJ,GAAG;;;;EAahC;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as T, mergeModels as w, useModel as I, computed as r, watch as N, openBlock as c, createBlock as $, unref as a, normalizeClass as f, withCtx as d, createElementBlock as u, createVNode as p, createCommentVNode as o, createElementVNode as n, renderSlot as s, mergeProps as h, toDisplayString as m, createTextVNode as B } from "vue";
|
|
2
|
+
import { QCard as E } from "../QCard/index.js";
|
|
3
|
+
import { QButton as V } from "../QButton/index.js";
|
|
4
|
+
import { QIcon as q } from "../QIcon/index.js";
|
|
5
|
+
import { DEFAULT_ICONS as O } from "./types.js";
|
|
6
|
+
import { useGroupItem as R } from "../../composables/group.js";
|
|
7
|
+
import { useId as L } from "../../composables/uid.js";
|
|
8
|
+
const Q = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "q-collapsible__header"
|
|
11
|
+
}, S = { class: "q-collapsible__title" }, A = { class: "q-collapsible__title-text" }, H = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "q-collapsible--required"
|
|
14
|
+
}, M = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "q-collapsible__subtitle"
|
|
17
|
+
}, D = { class: "q-collapsible__content-inner" }, F = { class: "q-collapsible__content" }, W = /* @__PURE__ */ T({
|
|
18
|
+
__name: "QCollapsible",
|
|
19
|
+
props: /* @__PURE__ */ w({
|
|
20
|
+
id: { default: void 0 },
|
|
21
|
+
title: {},
|
|
22
|
+
subtitle: {},
|
|
23
|
+
width: { default: "fit-content" },
|
|
24
|
+
required: { type: Boolean },
|
|
25
|
+
spacing: {},
|
|
26
|
+
variant: {},
|
|
27
|
+
iconRight: { type: Boolean },
|
|
28
|
+
icons: { default: () => O }
|
|
29
|
+
}, {
|
|
30
|
+
modelValue: { type: Boolean },
|
|
31
|
+
modelModifiers: {}
|
|
32
|
+
}),
|
|
33
|
+
emits: ["update:modelValue"],
|
|
34
|
+
setup(v) {
|
|
35
|
+
const l = v, i = I(v, "modelValue"), _ = L(l.id), t = R(_), g = r(() => l.width === "block" ? "block" : void 0), k = r(() => {
|
|
36
|
+
const e = l.spacing && l.spacing !== "comfortable" ? `q-collapsible--${l.spacing}` : void 0, b = l.variant && l.variant !== "default" ? `q-collapsible--${l.variant}` : void 0;
|
|
37
|
+
return [
|
|
38
|
+
"q-collapsible",
|
|
39
|
+
e,
|
|
40
|
+
b,
|
|
41
|
+
{
|
|
42
|
+
"q-collapsible--icon-right": l.iconRight,
|
|
43
|
+
"q-collapsible--expanded": i.value
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
}), y = r(() => [
|
|
47
|
+
"q-collapsible__content-wrapper",
|
|
48
|
+
{
|
|
49
|
+
"q-collapsible__content-show": i.value
|
|
50
|
+
}
|
|
51
|
+
]), C = () => {
|
|
52
|
+
i.value = !i.value, t == null || t.toggle();
|
|
53
|
+
};
|
|
54
|
+
return N(
|
|
55
|
+
() => t == null ? void 0 : t.isActive.value,
|
|
56
|
+
() => i.value = t == null ? void 0 : t.isActive.value
|
|
57
|
+
), (e, b) => (c(), $(a(E), {
|
|
58
|
+
id: a(_),
|
|
59
|
+
class: f(k.value),
|
|
60
|
+
width: g.value
|
|
61
|
+
}, {
|
|
62
|
+
header: d(() => [
|
|
63
|
+
e.title ? (c(), u("div", Q, [
|
|
64
|
+
p(a(V), {
|
|
65
|
+
"b-style": "tertiary",
|
|
66
|
+
class: "q-collapsible__btn",
|
|
67
|
+
onClick: C
|
|
68
|
+
}, {
|
|
69
|
+
default: d(() => [
|
|
70
|
+
o(" TITLE "),
|
|
71
|
+
n("div", S, [
|
|
72
|
+
o(" ICON ON THE LEFT "),
|
|
73
|
+
e.iconRight ? o("v-if", !0) : s(e.$slots, "icon", { key: 0 }, () => [
|
|
74
|
+
p(
|
|
75
|
+
a(q),
|
|
76
|
+
h({ class: "q-collapsible__chevron" }, l.icons.chevron),
|
|
77
|
+
null,
|
|
78
|
+
16
|
|
79
|
+
/* FULL_PROPS */
|
|
80
|
+
)
|
|
81
|
+
]),
|
|
82
|
+
s(e.$slots, "title.prepend"),
|
|
83
|
+
n(
|
|
84
|
+
"h4",
|
|
85
|
+
A,
|
|
86
|
+
m(e.title),
|
|
87
|
+
1
|
|
88
|
+
/* TEXT */
|
|
89
|
+
),
|
|
90
|
+
l.required ? (c(), u("span", H, " * ")) : o("v-if", !0),
|
|
91
|
+
s(e.$slots, "title.append"),
|
|
92
|
+
o(" ICON ON THE RIGHT "),
|
|
93
|
+
e.iconRight ? s(e.$slots, "icon", { key: 2 }, () => [
|
|
94
|
+
p(
|
|
95
|
+
a(q),
|
|
96
|
+
h({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, l.icons.chevron),
|
|
97
|
+
null,
|
|
98
|
+
16
|
|
99
|
+
/* FULL_PROPS */
|
|
100
|
+
)
|
|
101
|
+
]) : o("v-if", !0)
|
|
102
|
+
]),
|
|
103
|
+
o(" SUBTITLE "),
|
|
104
|
+
e.$slots.subtitle || e.subtitle ? (c(), u("div", M, [
|
|
105
|
+
s(e.$slots, "subtitle", {}, () => [
|
|
106
|
+
B(
|
|
107
|
+
m(e.subtitle),
|
|
108
|
+
1
|
|
109
|
+
/* TEXT */
|
|
110
|
+
)
|
|
111
|
+
])
|
|
112
|
+
])) : o("v-if", !0)
|
|
113
|
+
]),
|
|
114
|
+
_: 3
|
|
115
|
+
/* FORWARDED */
|
|
116
|
+
})
|
|
117
|
+
])) : o("v-if", !0)
|
|
118
|
+
]),
|
|
119
|
+
default: d(() => [
|
|
120
|
+
n(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
class: f(y.value)
|
|
124
|
+
},
|
|
125
|
+
[
|
|
126
|
+
n("div", D, [
|
|
127
|
+
n("div", F, [
|
|
128
|
+
s(e.$slots, "default")
|
|
129
|
+
])
|
|
130
|
+
])
|
|
131
|
+
],
|
|
132
|
+
2
|
|
133
|
+
/* CLASS */
|
|
134
|
+
)
|
|
135
|
+
]),
|
|
136
|
+
_: 3
|
|
137
|
+
/* FORWARDED */
|
|
138
|
+
}, 8, ["id", "class", "width"]));
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
export {
|
|
142
|
+
W as default
|
|
143
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,oBAAoB,CAAA;AAG9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,QAAA,MAAM,YAAY,EAAqC,OAAO,aAAa,CAAA;AAG3E,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Icon } from '../QIcon';
|
|
2
|
+
export type QCollapsibleProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The collapsible unique identifier.
|
|
5
|
+
*/
|
|
6
|
+
id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The title of the collapsible.
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The subtitle of the collapsible
|
|
13
|
+
*/
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The width of the container
|
|
17
|
+
*/
|
|
18
|
+
width?: 'fit-content' | 'block';
|
|
19
|
+
/**
|
|
20
|
+
* Show an indicator that there are required elements inside the group
|
|
21
|
+
*/
|
|
22
|
+
required?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Controls the spacing in the collapsible
|
|
25
|
+
*/
|
|
26
|
+
spacing?: 'compact' | 'comfortable' | 'loose';
|
|
27
|
+
/**
|
|
28
|
+
* The variant of the collapsible.
|
|
29
|
+
*/
|
|
30
|
+
variant?: 'default' | 'border-bottom';
|
|
31
|
+
/**
|
|
32
|
+
* If true, the expand/collapse icon shows on the right
|
|
33
|
+
*/
|
|
34
|
+
iconRight?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Custom icon configurations.
|
|
37
|
+
*/
|
|
38
|
+
icons?: typeof DEFAULT_ICONS;
|
|
39
|
+
};
|
|
40
|
+
type IconKeys = 'chevron';
|
|
41
|
+
export declare const DEFAULT_ICONS: Record<IconKeys, Icon>;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QCollapsible/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,CAAA;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,OAAO,CAAA;IAE7C;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IAErC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAED,KAAK,QAAQ,GAAG,SAAS,CAAA;AAGzB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAIhD,CAAA"}
|