@quidgest/ui 0.14.6 → 0.14.8
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 +1 -6
- package/dist/ui.esm.js +1202 -1060
- package/dist/ui.js +43 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +186 -174
- package/dist/ui.scss +2 -6
- package/esm/components/QAccordion/QAccordion.d.ts +7 -6
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- 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 +2 -1
- 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 +21 -5
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +62 -45
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts +21 -0
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -0
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +31 -0
- package/esm/components/QCheckbox/QCheckboxLabel.vue2.js +4 -0
- package/esm/components/QCheckbox/types.d.ts +7 -5
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +6 -5
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +25 -25
- package/esm/components/QCombobox/QCombobox.d.ts +31 -30
- 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 +1 -1
- 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 +6 -5
- 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 +6 -5
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +15 -15
- package/esm/composables/defaults.js +5 -5
- package/esm/composables/group.js +8 -8
- package/esm/composables/overlay.js +11 -11
- package/esm/framework.js +2 -2
- package/esm/utils/color.js +6 -6
- package/package.json +31 -30
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as l, computed as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as l, computed as o, openBlock as t, createElementBlock as a, normalizeClass as r, normalizeStyle as c } from "vue";
|
|
2
|
+
const u = /* @__PURE__ */ l({
|
|
3
3
|
__name: "QSpinnerLoader",
|
|
4
4
|
props: {
|
|
5
5
|
size: { default: 48 },
|
|
6
6
|
class: { default: void 0 }
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const e =
|
|
8
|
+
setup(n) {
|
|
9
|
+
const e = n, s = o(() => ({
|
|
10
10
|
"font-size": e.size !== 48 ? `${e.size}px` : void 0
|
|
11
11
|
}));
|
|
12
|
-
return (i,
|
|
12
|
+
return (i, d) => (t(), a(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
class: r(["q-spinner-loader", e.class]),
|
|
@@ -22,5 +22,5 @@ const m = /* @__PURE__ */ l({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
u as default
|
|
26
26
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { QTextFieldProps } from './types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = QTextFieldProps;
|
|
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: {
|
|
8
9
|
"label.prepend"?(_: {}): any;
|
|
9
10
|
"label.append"?(_: {}): any;
|
|
@@ -88,16 +89,16 @@ declare function __VLS_template(): {
|
|
|
88
89
|
}) | null;
|
|
89
90
|
inputRef: HTMLInputElement;
|
|
90
91
|
};
|
|
91
|
-
|
|
92
|
+
rootEl: any;
|
|
92
93
|
};
|
|
93
94
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
94
95
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
95
96
|
fieldRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
96
97
|
inputRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
97
98
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
-
"update:modelValue": (
|
|
99
|
+
"update:modelValue": (value: string) => any;
|
|
99
100
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
100
|
-
"onUpdate:modelValue"?: ((
|
|
101
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
101
102
|
}>, {
|
|
102
103
|
size: import('../QField').QFieldSize;
|
|
103
104
|
class: string | unknown[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAgGC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAQ/C,
|
|
1
|
+
{"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AA8CA;AAgGC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAQ/C,KAAK,WAAW,GAAG,eAAe,CAAC;AAsDnC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;iCAdb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiEu9gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;EAlD5mhB;AAgBD,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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as b, mergeModels as
|
|
1
|
+
import { defineComponent as b, mergeModels as h, useModel as q, ref as f, computed as u, openBlock as $, createBlock as k, unref as n, normalizeClass as g, createSlots as v, withCtx as d, renderSlot as a, withDirectives as x, createElementVNode as R, mergeProps as z, vModelDynamic as B } from "vue";
|
|
2
2
|
import { QField as V } from "../QField/index.js";
|
|
3
3
|
import { useId as M } from "../../composables/uid.js";
|
|
4
4
|
const C = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], L = /* @__PURE__ */ b({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "QTextField",
|
|
7
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ h({
|
|
8
8
|
id: { default: void 0 },
|
|
9
9
|
placeholder: { default: "" },
|
|
10
10
|
label: { default: "" },
|
|
@@ -21,27 +21,27 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
|
|
|
21
21
|
modelModifiers: {}
|
|
22
22
|
}),
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
|
-
setup(
|
|
25
|
-
const e =
|
|
24
|
+
setup(o, { expose: m }) {
|
|
25
|
+
const e = o, r = q(o, "modelValue"), t = M(e.id), s = f(null), i = f(null), y = u(
|
|
26
26
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
27
27
|
);
|
|
28
28
|
return m({
|
|
29
29
|
fieldRef: u(() => {
|
|
30
30
|
var l;
|
|
31
|
-
return (l =
|
|
31
|
+
return (l = s.value) == null ? void 0 : l.fieldRef;
|
|
32
32
|
}),
|
|
33
|
-
inputRef:
|
|
34
|
-
}), (l, p) => (
|
|
33
|
+
inputRef: i
|
|
34
|
+
}), (l, p) => ($(), k(n(V), {
|
|
35
35
|
ref_key: "fieldRef",
|
|
36
|
-
ref:
|
|
37
|
-
class:
|
|
38
|
-
for:
|
|
36
|
+
ref: s,
|
|
37
|
+
class: g(["q-text-field", e.class]),
|
|
38
|
+
for: n(t),
|
|
39
39
|
label: e.label,
|
|
40
40
|
size: e.size,
|
|
41
41
|
readonly: e.readonly,
|
|
42
42
|
disabled: e.disabled,
|
|
43
43
|
required: e.required
|
|
44
|
-
},
|
|
44
|
+
}, v({
|
|
45
45
|
"label.prepend": d(() => [
|
|
46
46
|
a(l.$slots, "label.prepend")
|
|
47
47
|
]),
|
|
@@ -50,10 +50,10 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
|
|
|
50
50
|
]),
|
|
51
51
|
default: d(() => [
|
|
52
52
|
x(R("input", z({
|
|
53
|
-
|
|
53
|
+
id: n(t),
|
|
54
54
|
ref_key: "inputRef",
|
|
55
|
-
ref:
|
|
56
|
-
|
|
55
|
+
ref: i,
|
|
56
|
+
"onUpdate:modelValue": p[0] || (p[0] = (c) => r.value = c),
|
|
57
57
|
class: "q-text-field__input",
|
|
58
58
|
type: e.type,
|
|
59
59
|
role: e.role,
|
|
@@ -63,7 +63,7 @@ const C = ["id", "type", "role", "required", "placeholder", "readonly", "disable
|
|
|
63
63
|
disabled: e.disabled,
|
|
64
64
|
maxlength: e.maxLength
|
|
65
65
|
}, l.$attrs), null, 16, C), [
|
|
66
|
-
[B,
|
|
66
|
+
[B, r.value]
|
|
67
67
|
])
|
|
68
68
|
]),
|
|
69
69
|
_: 2
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { QThemeProviderProps } from './types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
4
5
|
default?(_: {}): any;
|
|
5
6
|
};
|
|
6
7
|
refs: {};
|
|
7
|
-
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
8
9
|
};
|
|
9
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<QThemeProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QThemeProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<QThemeProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QThemeProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
12
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
13
|
export default _default;
|
|
13
14
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAeC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"QThemeProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QThemeProvider/QThemeProvider.vue"],"names":[],"mappings":"AAKA;AAeC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAYnD,iBAAS,cAAc;WAmCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,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;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { QTooltipProps } from './types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = QTooltipProps;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: boolean;
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
7
8
|
slots: {
|
|
8
9
|
anchor?(_: {
|
|
9
10
|
props: {
|
|
@@ -13,13 +14,13 @@ declare function __VLS_template(): {
|
|
|
13
14
|
default?(_: {}): any;
|
|
14
15
|
};
|
|
15
16
|
refs: {};
|
|
16
|
-
|
|
17
|
+
rootEl: any;
|
|
17
18
|
};
|
|
18
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
20
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
"update:modelValue": (
|
|
21
|
+
"update:modelValue": (value: boolean) => any;
|
|
21
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
-
"onUpdate:modelValue"?: ((
|
|
23
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
23
24
|
}>, {
|
|
24
25
|
class: string | unknown[];
|
|
25
26
|
html: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAuEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAO7C,
|
|
1
|
+
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAkCA;AAuEC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAO7C,KAAK,WAAW,GAAG,aAAa,CAAC;AAuCjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6DT,OAAO,IAA6B;;;;;;YATtB,GAAG;yBACF,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 s, mergeModels as p, useModel as
|
|
1
|
+
import { defineComponent as s, mergeModels as p, useModel as u, openBlock as a, createElementBlock as l, Fragment as d, renderSlot as i, unref as t, createVNode as m, normalizeClass as f, withCtx as h, createBlock as y, normalizeProps as g, mergeProps as B, createCommentVNode as b, createTextVNode as v, toDisplayString as k } from "vue";
|
|
2
2
|
import { QOverlay as V } from "../QOverlay/index.js";
|
|
3
3
|
import { QIcon as w } from "../QIcon/index.js";
|
|
4
4
|
import { useId as x } from "../../composables/uid.js";
|
|
@@ -24,21 +24,21 @@ const M = ["innerHTML"], z = /* @__PURE__ */ s({
|
|
|
24
24
|
modelModifiers: {}
|
|
25
25
|
}),
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
|
-
setup(
|
|
28
|
-
const e =
|
|
29
|
-
return (
|
|
27
|
+
setup(o) {
|
|
28
|
+
const e = o, c = u(o, "modelValue"), n = x(e.id);
|
|
29
|
+
return (r, _) => (a(), l(
|
|
30
30
|
d,
|
|
31
31
|
null,
|
|
32
32
|
[
|
|
33
|
-
i(
|
|
34
|
-
props: { "aria-describedby": t(
|
|
33
|
+
i(r.$slots, "anchor", {
|
|
34
|
+
props: { "aria-describedby": t(n) }
|
|
35
35
|
}),
|
|
36
|
-
|
|
36
|
+
m(t(V), {
|
|
37
|
+
id: t(n),
|
|
37
38
|
"model-value": c.value,
|
|
38
39
|
anchor: e.anchor,
|
|
39
40
|
role: "tooltip",
|
|
40
41
|
"non-modal": "",
|
|
41
|
-
id: t(r),
|
|
42
42
|
appearance: e.appearance,
|
|
43
43
|
arrow: e.arrow,
|
|
44
44
|
attach: e.attach,
|
|
@@ -50,22 +50,22 @@ const M = ["innerHTML"], z = /* @__PURE__ */ s({
|
|
|
50
50
|
trigger: e.trigger
|
|
51
51
|
}, {
|
|
52
52
|
default: h(() => [
|
|
53
|
-
i(
|
|
53
|
+
i(r.$slots, "default", {}, () => [
|
|
54
54
|
e.icon ? (a(), y(
|
|
55
55
|
t(w),
|
|
56
|
-
g(
|
|
56
|
+
g(B({ key: 0 }, e.icon)),
|
|
57
57
|
null,
|
|
58
58
|
16
|
|
59
59
|
/* FULL_PROPS */
|
|
60
|
-
)) :
|
|
61
|
-
e.html ? (a(),
|
|
60
|
+
)) : b("v-if", !0),
|
|
61
|
+
e.html ? (a(), l("span", {
|
|
62
62
|
key: 1,
|
|
63
63
|
innerHTML: e.text
|
|
64
|
-
}, null, 8, M)) : (a(),
|
|
64
|
+
}, null, 8, M)) : (a(), l(
|
|
65
65
|
d,
|
|
66
66
|
{ key: 2 },
|
|
67
67
|
[
|
|
68
|
-
|
|
68
|
+
v(
|
|
69
69
|
k(e.text),
|
|
70
70
|
1
|
|
71
71
|
/* TEXT */
|
|
@@ -78,7 +78,7 @@ const M = ["innerHTML"], z = /* @__PURE__ */ s({
|
|
|
78
78
|
]),
|
|
79
79
|
_: 3
|
|
80
80
|
/* FORWARDED */
|
|
81
|
-
}, 8, ["model-value", "anchor", "
|
|
81
|
+
}, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
82
82
|
],
|
|
83
83
|
64
|
|
84
84
|
/* STABLE_FRAGMENT */
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { isEmpty as s } from "../utils/isEmpty.js";
|
|
2
|
-
import { merge as
|
|
3
|
-
import { getCurrentInstance as
|
|
2
|
+
import { merge as f } from "../utils/merge.js";
|
|
3
|
+
import { getCurrentInstance as d, computed as a, ref as m, provide as p, inject as v } from "vue";
|
|
4
4
|
const i = "q-defaults";
|
|
5
5
|
function E() {
|
|
6
6
|
var r, u;
|
|
7
|
-
const e =
|
|
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
12
|
const n = l(), o = (r = n.value) == null ? void 0 : r.Global, c = (u = n.value) == null ? void 0 : u[t];
|
|
13
|
-
return
|
|
13
|
+
return a(() => f(o, c));
|
|
14
14
|
}
|
|
15
15
|
function I(e) {
|
|
16
16
|
if (s(e)) return;
|
|
17
|
-
const t = l(), n =
|
|
17
|
+
const t = l(), n = m(e), o = a(() => s(n.value) ? t.value : f(t.value, n.value));
|
|
18
18
|
p(i, o);
|
|
19
19
|
}
|
|
20
20
|
function l() {
|
package/esm/composables/group.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as c, computed as t, watch as
|
|
1
|
+
import { ref as c, computed as t, watch as n, provide as s, inject as f } from "vue";
|
|
2
2
|
const i = "q-group";
|
|
3
3
|
function p(u) {
|
|
4
|
-
var
|
|
4
|
+
var l, v;
|
|
5
5
|
const e = {
|
|
6
|
-
active: c(((
|
|
6
|
+
active: c(((l = u.active) == null ? void 0 : l.value) ?? ((v = u.multiple) == null ? void 0 : v.value) ? [] : null),
|
|
7
7
|
multiple: t(() => {
|
|
8
8
|
var a;
|
|
9
9
|
return ((a = u.multiple) == null ? void 0 : a.value) || !1;
|
|
10
10
|
})
|
|
11
11
|
};
|
|
12
|
-
return
|
|
12
|
+
return n(
|
|
13
13
|
() => e.multiple.value,
|
|
14
14
|
(a) => {
|
|
15
15
|
a && e.active.value ? e.active.value = [e.active.value] : a ? e.active.value = [] : Array.isArray(e.active.value) && e.active.value.length === 1 ? e.active.value = e.active.value[0] : e.active.value = null;
|
|
@@ -17,15 +17,15 @@ function p(u) {
|
|
|
17
17
|
), s(i, e), e;
|
|
18
18
|
}
|
|
19
19
|
function g(u) {
|
|
20
|
-
const e =
|
|
20
|
+
const e = f(i, void 0);
|
|
21
21
|
if (!e) return;
|
|
22
|
-
const
|
|
22
|
+
const l = t(() => {
|
|
23
23
|
var a;
|
|
24
24
|
return Array.isArray(e.active.value) ? (a = e.active.value) == null ? void 0 : a.includes(u) : e.active.value === u;
|
|
25
25
|
});
|
|
26
|
-
return { isActive:
|
|
26
|
+
return { isActive: l, toggle: () => {
|
|
27
27
|
var a;
|
|
28
|
-
Array.isArray(e.active.value) ?
|
|
28
|
+
Array.isArray(e.active.value) ? l.value ? e.active.value = (a = e.active.value) == null ? void 0 : a.filter((r) => r !== u) : e.active.value.push(u) : e.active.value = u;
|
|
29
29
|
} };
|
|
30
30
|
}
|
|
31
31
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
function M(t, i, n, e) {
|
|
2
|
-
const d = (e == null ? void 0 : e.offset) ?? 0, o = (e == null ? void 0 : e.placement) ?? "bottom",
|
|
2
|
+
const d = (e == null ? void 0 : e.offset) ?? 0, o = (e == null ? void 0 : e.placement) ?? "bottom", u = t.getBoundingClientRect(), s = i.getBoundingClientRect(), g = n == null ? void 0 : n.getBoundingClientRect(), r = b(u, s, o, d), h = k(u, s, r), f = C(h, r, d), m = p(f, s, r);
|
|
3
3
|
let a;
|
|
4
4
|
if (e != null && e.arrow) {
|
|
5
|
-
if (!
|
|
5
|
+
if (!g)
|
|
6
6
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
7
|
-
a = A(m,
|
|
7
|
+
a = A(m, u, s, g, r);
|
|
8
8
|
}
|
|
9
9
|
return { overlayCoords: m, arrowCoords: a, placement: r };
|
|
10
10
|
}
|
|
@@ -16,13 +16,13 @@ function b(t, i, n, e) {
|
|
|
16
16
|
bottom: "top",
|
|
17
17
|
left: "right",
|
|
18
18
|
right: "left"
|
|
19
|
-
}[o],
|
|
19
|
+
}[o], g = c(
|
|
20
20
|
t,
|
|
21
21
|
i,
|
|
22
22
|
s,
|
|
23
23
|
e
|
|
24
24
|
);
|
|
25
|
-
if (x(
|
|
25
|
+
if (x(g))
|
|
26
26
|
return n;
|
|
27
27
|
const r = O(n);
|
|
28
28
|
return r ? `${s}-${r}` : s;
|
|
@@ -30,7 +30,7 @@ function b(t, i, n, e) {
|
|
|
30
30
|
return n;
|
|
31
31
|
}
|
|
32
32
|
function p(t, i, n) {
|
|
33
|
-
const e = l(n), d = (
|
|
33
|
+
const e = l(n), d = (u, s, g) => Math.min(Math.max(u, s), g), o = { ...t };
|
|
34
34
|
return e === "x" ? o.x = d(t.x, 8, window.innerWidth - i.width - 8) : o.y = d(t.y, 8, window.innerHeight - i.height - 8), o;
|
|
35
35
|
}
|
|
36
36
|
function C(t, i, n) {
|
|
@@ -42,13 +42,13 @@ function C(t, i, n) {
|
|
|
42
42
|
}
|
|
43
43
|
function A(t, i, n, e, d) {
|
|
44
44
|
if (l(d) === "y") {
|
|
45
|
-
const
|
|
45
|
+
const u = i.top + i.height / 2, s = t.y + n.height / 2, g = s - u, r = n.height / 2 - g - e.height / 2 + 2;
|
|
46
46
|
if (r > 0 && r < n.height - e.height)
|
|
47
47
|
return {
|
|
48
48
|
y: r
|
|
49
49
|
};
|
|
50
50
|
} else {
|
|
51
|
-
const
|
|
51
|
+
const u = i.left + i.width / 2, s = t.x + n.width / 2, g = s - u, r = n.width / 2 - g - e.width / 2 + 2;
|
|
52
52
|
if (r > 0 && r < n.width - e.width)
|
|
53
53
|
return {
|
|
54
54
|
x: r
|
|
@@ -56,7 +56,7 @@ function A(t, i, n, e, d) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function k(t, i, n) {
|
|
59
|
-
const [e, d] = n.split("-"), o = t.x + t.width / 2 - i.width / 2,
|
|
59
|
+
const [e, d] = n.split("-"), o = t.x + t.width / 2 - i.width / 2, u = t.y + t.height / 2 - i.height / 2;
|
|
60
60
|
let s;
|
|
61
61
|
switch (e) {
|
|
62
62
|
case "top":
|
|
@@ -66,10 +66,10 @@ function k(t, i, n) {
|
|
|
66
66
|
s = { x: o, y: t.y + t.height };
|
|
67
67
|
break;
|
|
68
68
|
case "left":
|
|
69
|
-
s = { x: t.x - i.width, y:
|
|
69
|
+
s = { x: t.x - i.width, y: u };
|
|
70
70
|
break;
|
|
71
71
|
case "right":
|
|
72
|
-
s = { x: t.x + t.width, y:
|
|
72
|
+
s = { x: t.x + t.width, y: u };
|
|
73
73
|
break;
|
|
74
74
|
default:
|
|
75
75
|
throw new Error(`[Quidgest UI] Invalid placement value: ${n}`);
|
package/esm/framework.js
CHANGED
|
@@ -3,7 +3,7 @@ import { THEME_SYMBOL as i } from "./composables/theme.js";
|
|
|
3
3
|
import { defaultLightColorScheme as a, defaultDarkColorScheme as h } from "./templates/theme.js";
|
|
4
4
|
import { ref as n, watch as f } from "vue";
|
|
5
5
|
import { generateRootStyle as d } from "./utils/theme.js";
|
|
6
|
-
function
|
|
6
|
+
function v(m = {}) {
|
|
7
7
|
return { install: (o) => {
|
|
8
8
|
const t = m.components || {};
|
|
9
9
|
for (const l in t)
|
|
@@ -43,5 +43,5 @@ function p(m) {
|
|
|
43
43
|
s.className = t.join(" "), s.classList.add(`q-theme--${m}`);
|
|
44
44
|
}
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
v as createFramework
|
|
47
47
|
};
|
package/esm/utils/color.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function
|
|
1
|
+
function u(t) {
|
|
2
2
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function o(t) {
|
|
5
5
|
const n = t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
6
6
|
if (n) {
|
|
7
7
|
const s = parseInt(n[1], 10), e = parseInt(n[2], 10), r = parseInt(n[3], 10);
|
|
@@ -9,12 +9,12 @@ function u(t) {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
function d(t) {
|
|
12
|
-
if (
|
|
12
|
+
if (u(t)) {
|
|
13
13
|
t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
|
|
14
14
|
const n = parseInt(t.slice(1, 3), 16), s = parseInt(t.slice(3, 5), 16), e = parseInt(t.slice(5, 7), 16);
|
|
15
15
|
return { r: n, g: s, b: e };
|
|
16
16
|
} else {
|
|
17
|
-
const n =
|
|
17
|
+
const n = o(t);
|
|
18
18
|
if (n) return n;
|
|
19
19
|
}
|
|
20
20
|
throw new Error("Invalid color format");
|
|
@@ -51,8 +51,8 @@ function g(t) {
|
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
53
|
g as getContrastingColor,
|
|
54
|
-
|
|
54
|
+
u as isValidHex,
|
|
55
55
|
d as parseColor,
|
|
56
56
|
b as rgbToHsl,
|
|
57
|
-
|
|
57
|
+
o as tryParseRgb
|
|
58
58
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quidgest/ui",
|
|
3
3
|
"description": "Quidgest's UI framework",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.8",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Quidgest",
|
|
@@ -45,52 +45,53 @@
|
|
|
45
45
|
"./*": "./*"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@fortawesome/fontawesome-free": "^6.7.
|
|
49
|
-
"@rollup/plugin-node-resolve": "^
|
|
48
|
+
"@fortawesome/fontawesome-free": "^6.7.2",
|
|
49
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
50
50
|
"@rollup/plugin-terser": "^0.4.4",
|
|
51
|
-
"@storybook/addon-essentials": "^8.4.
|
|
52
|
-
"@storybook/addon-interactions": "^8.4.
|
|
53
|
-
"@storybook/addon-links": "^8.4.
|
|
54
|
-
"@storybook/blocks": "^8.4.
|
|
55
|
-
"@storybook/manager-api": "^8.4.
|
|
56
|
-
"@storybook/test": "^8.4.
|
|
57
|
-
"@storybook/theming": "^8.4.
|
|
58
|
-
"@storybook/vue3": "^8.4.
|
|
59
|
-
"@storybook/vue3-vite": "^8.4.
|
|
51
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
52
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
53
|
+
"@storybook/addon-links": "^8.4.7",
|
|
54
|
+
"@storybook/blocks": "^8.4.7",
|
|
55
|
+
"@storybook/manager-api": "^8.4.7",
|
|
56
|
+
"@storybook/test": "^8.4.7",
|
|
57
|
+
"@storybook/theming": "^8.4.7",
|
|
58
|
+
"@storybook/vue3": "^8.4.7",
|
|
59
|
+
"@storybook/vue3-vite": "^8.4.7",
|
|
60
60
|
"@tsconfig/node20": "^20.1.4",
|
|
61
|
-
"@types/node": "^22.10.
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
63
|
-
"@typescript-eslint/parser": "^
|
|
61
|
+
"@types/node": "^22.10.5",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^8.19.0",
|
|
63
|
+
"@typescript-eslint/parser": "^8.19.0",
|
|
64
64
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
65
65
|
"@vitest/coverage-v8": "^2.1.8",
|
|
66
|
+
"@vitest/eslint-plugin": "^1.1.24",
|
|
66
67
|
"@vitest/ui": "^2.1.8",
|
|
67
|
-
"@vue/eslint-config-
|
|
68
|
+
"@vue/eslint-config-prettier": "^10.1.0",
|
|
69
|
+
"@vue/eslint-config-typescript": "^14.2.0",
|
|
68
70
|
"@vue/test-utils": "^2.4.6",
|
|
69
71
|
"@vue/tsconfig": "^0.7.0",
|
|
70
72
|
"acorn-walk": "^8.3.4",
|
|
71
73
|
"autoprefixer": "^10.4.20",
|
|
72
74
|
"cssnano": "^7.0.6",
|
|
73
|
-
"eslint": "^
|
|
74
|
-
"eslint-config-prettier": "^9.1.0",
|
|
75
|
+
"eslint": "^9.17.0",
|
|
75
76
|
"eslint-plugin-prettier": "^5.2.1",
|
|
76
|
-
"eslint-plugin-storybook": "^0.11.
|
|
77
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
77
78
|
"eslint-plugin-vue": "^9.32.0",
|
|
78
|
-
"happy-dom": "^
|
|
79
|
+
"happy-dom": "^16.3.0",
|
|
79
80
|
"husky": "^9.1.7",
|
|
80
|
-
"lint-staged": "^15.
|
|
81
|
+
"lint-staged": "^15.3.0",
|
|
81
82
|
"postcss": "^8.4.49",
|
|
82
|
-
"prettier": "^3.4.
|
|
83
|
+
"prettier": "^3.4.2",
|
|
83
84
|
"rimraf": "^6.0.1",
|
|
84
|
-
"sass": "^1.
|
|
85
|
-
"storybook": "^8.4.
|
|
86
|
-
"stylelint": "^16.
|
|
85
|
+
"sass": "^1.83.1",
|
|
86
|
+
"storybook": "^8.4.7",
|
|
87
|
+
"stylelint": "^16.12.0",
|
|
87
88
|
"stylelint-config-sass-guidelines": "^12.1.0",
|
|
88
89
|
"typescript": "~5.6.3",
|
|
89
|
-
"vite": "^6.0.
|
|
90
|
-
"vite-plugin-dts": "^4.
|
|
90
|
+
"vite": "^6.0.7",
|
|
91
|
+
"vite-plugin-dts": "^4.4.0",
|
|
91
92
|
"vitest": "^2.1.8",
|
|
92
93
|
"vue-eslint-parser": "^9.4.3",
|
|
93
|
-
"vue-tsc": "^2.
|
|
94
|
+
"vue-tsc": "^2.2.0"
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"vue": "^3.4.15"
|
|
@@ -104,8 +105,8 @@
|
|
|
104
105
|
"type-check": "vue-tsc --noEmit -p tsconfig.dev.json --composite false",
|
|
105
106
|
"format": "prettier . --check",
|
|
106
107
|
"format:fix": "prettier . --write",
|
|
107
|
-
"lint": "eslint --max-warnings 0
|
|
108
|
-
"lint:fix": "eslint
|
|
108
|
+
"lint": "eslint --max-warnings 0 .",
|
|
109
|
+
"lint:fix": "eslint . --fix",
|
|
109
110
|
"lint:style": "stylelint \"**/*.scss\"",
|
|
110
111
|
"test": "vitest",
|
|
111
112
|
"test:coverage": "vitest run --coverage",
|