@quidgest/ui 0.14.0 → 0.14.2
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 +4 -0
- package/dist/ui.esm.js +752 -739
- package/dist/ui.js +4 -4
- package/dist/ui.min.js +51 -51
- package/dist/ui.scss +1053 -1049
- package/esm/components/QBadge/QBadge.d.ts +14 -41
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +33 -33
- package/esm/components/QBadge/index.d.ts +0 -1
- package/esm/components/QBadge/types.d.ts +6 -7
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +12 -35
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/index.d.ts +0 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +9 -26
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.d.ts +0 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +17 -47
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +26 -23
- package/esm/components/QButtonToggle/index.d.ts +0 -1
- package/esm/components/QCombobox/QCombobox.d.ts +373 -485
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +92 -87
- package/esm/components/QCombobox/index.d.ts +0 -1
- package/esm/components/QCombobox/types.d.ts +9 -8
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QCombobox/types.js +3 -1
- package/esm/components/QDialog/QDialog.d.ts +21 -109
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +16 -16
- package/esm/components/QDialog/index.d.ts +0 -1
- package/esm/components/QDialog/types.d.ts +6 -8
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +18 -41
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/index.d.ts +0 -1
- package/esm/components/QIcon/InlineSvg.d.ts +6 -6
- package/esm/components/QIcon/QIcon.d.ts +2 -28
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts +2 -30
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.d.ts +1 -11
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.d.ts +6 -32
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/index.d.ts +0 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +12 -39
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.d.ts +0 -1
- package/esm/components/QInputGroup/types.d.ts +0 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts +2 -24
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.d.ts +0 -1
- package/esm/components/QList/QList.d.ts +22 -72
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QListItem.d.ts +14 -39
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +5 -5
- package/esm/components/QList/QListItemGroup.d.ts +9 -26
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +0 -1
- package/esm/components/QList/types.d.ts +5 -7
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +23 -141
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/index.d.ts +0 -1
- package/esm/components/QOverlay/types.d.ts +0 -1
- package/esm/components/QPopover/QPopover.d.ts +19 -77
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/index.d.ts +0 -1
- package/esm/components/QPopover/types.d.ts +0 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +28 -56
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +61 -62
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +7 -44
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +22 -26
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +11 -43
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +14 -16
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +12 -17
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +28 -25
- package/esm/components/QPropertyList/index.d.ts +0 -1
- package/esm/components/QPropertyList/types.d.ts +66 -34
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +199 -147
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +130 -125
- package/esm/components/QSelect/index.d.ts +0 -1
- package/esm/components/QSelect/types.d.ts +9 -8
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSelect/types.js +5 -3
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -28
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
- package/esm/components/QSkeletonLoader/index.d.ts +0 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -26
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/index.d.ts +0 -1
- package/esm/components/QTextField/QTextField.d.ts +100 -96
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/index.d.ts +0 -1
- package/esm/components/QTextField/types.d.ts +0 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +8 -13
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.d.ts +0 -1
- package/esm/components/QTooltip/QTooltip.d.ts +24 -121
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/components/QTooltip/index.d.ts +0 -1
- package/esm/components/QTooltip/types.d.ts +1 -2
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/composables/defaults.d.ts +0 -1
- package/esm/composables/theme.d.ts +0 -1
- package/esm/framework.d.ts +0 -1
- package/esm/templates/theme.d.ts +0 -1
- package/esm/utils/setupPropsProxy.d.ts +0 -1
- package/esm/utils/theme.d.ts +0 -1
- package/package.json +35 -33
|
@@ -1,50 +1,23 @@
|
|
|
1
|
-
import { QBadgeProps } from './types';
|
|
2
|
-
|
|
1
|
+
import { QBadgeProps, DEFAULT_ICONS } from './types';
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
|
|
7
|
-
text: string;
|
|
8
|
-
color: string;
|
|
9
|
-
variant: string;
|
|
10
|
-
internals: () => {
|
|
11
|
-
icons: Record<string, import('../QIcon').Icon>;
|
|
12
|
-
};
|
|
13
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
-
"click:remove": () => void;
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QBadgeProps>, {
|
|
16
|
-
text: string;
|
|
17
|
-
color: string;
|
|
18
|
-
variant: string;
|
|
19
|
-
internals: () => {
|
|
20
|
-
icons: Record<string, import('../QIcon').Icon>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
21
5
|
};
|
|
22
|
-
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<QBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
"click:remove": () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<QBadgeProps> & Readonly<{
|
|
23
13
|
"onClick:remove"?: (() => any) | undefined;
|
|
24
|
-
}
|
|
14
|
+
}>, {
|
|
25
15
|
variant: "tonal" | "bold" | "outlined";
|
|
26
16
|
color: string;
|
|
27
|
-
|
|
28
|
-
}, {}>;
|
|
29
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
17
|
+
icons: typeof DEFAULT_ICONS;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
20
|
export default _default;
|
|
31
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
-
} : {
|
|
36
|
-
type: import('vue').PropType<T[K]>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
type __VLS_WithDefaults<P, D> = {
|
|
41
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
-
default: D[K];
|
|
43
|
-
}> : P[K];
|
|
44
|
-
};
|
|
45
|
-
type __VLS_Prettify<T> = {
|
|
46
|
-
[K in keyof T]: T[K];
|
|
47
|
-
} & {};
|
|
48
21
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
22
|
new (): {
|
|
50
23
|
$slots: S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QBadge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/QBadge.vue"],"names":[],"mappings":"AAsFC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAkExC,iBAAS,cAAc;;yBA6DM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;6EAUnB,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,69 +1,69 @@
|
|
|
1
|
-
import { defineComponent as g, computed as
|
|
2
|
-
import { QButton as
|
|
3
|
-
import { QIcon as
|
|
4
|
-
import { DEFAULT_ICONS as
|
|
5
|
-
import { parseColor as
|
|
6
|
-
const w = /* @__PURE__ */
|
|
7
|
-
"div",
|
|
8
|
-
{ class: "q-badge__underlay" },
|
|
9
|
-
null,
|
|
10
|
-
-1
|
|
11
|
-
/* HOISTED */
|
|
12
|
-
), I = { class: "q-badge__content" }, D = /* @__PURE__ */ g({
|
|
1
|
+
import { defineComponent as g, computed as l, openBlock as a, createElementBlock as b, normalizeClass as C, normalizeStyle as _, createElementVNode as n, renderSlot as y, createBlock as q, unref as s, withCtx as k, createVNode as B, normalizeProps as x, guardReactiveProps as N, createCommentVNode as z } from "vue";
|
|
2
|
+
import { QButton as E } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as Q } from "../QIcon/index.js";
|
|
4
|
+
import { DEFAULT_ICONS as S } from "./types.js";
|
|
5
|
+
import { parseColor as V, rgbToHsl as $, getContrastingColor as h } from "../../utils/color.js";
|
|
6
|
+
const w = { class: "q-badge__content" }, A = /* @__PURE__ */ g({
|
|
13
7
|
__name: "QBadge",
|
|
14
8
|
props: {
|
|
15
9
|
color: { default: "primary" },
|
|
16
10
|
variant: { default: "tonal" },
|
|
17
11
|
removable: { type: Boolean },
|
|
18
12
|
pill: { type: Boolean },
|
|
19
|
-
|
|
13
|
+
icons: { default: () => S }
|
|
20
14
|
},
|
|
21
15
|
emits: ["click:remove"],
|
|
22
|
-
setup(
|
|
23
|
-
const e =
|
|
16
|
+
setup(i, { emit: c }) {
|
|
17
|
+
const e = i, d = c, r = l(
|
|
24
18
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
25
|
-
), m =
|
|
26
|
-
const o =
|
|
19
|
+
), m = l(() => {
|
|
20
|
+
const o = r.value ? `q-badge--${e.color}` : void 0;
|
|
27
21
|
return ["q-badge", `q-badge--${e.variant}`, o, { "q-badge--pill": e.pill }];
|
|
28
|
-
}),
|
|
22
|
+
}), p = l(() => {
|
|
29
23
|
let o, t;
|
|
30
|
-
if (!
|
|
24
|
+
if (!r.value)
|
|
31
25
|
if (o = e.color, e.variant === "tonal")
|
|
32
26
|
t = e.color;
|
|
33
27
|
else {
|
|
34
|
-
const v =
|
|
35
|
-
t =
|
|
28
|
+
const v = V(o), f = $(v);
|
|
29
|
+
t = h(f.l);
|
|
36
30
|
}
|
|
37
31
|
return {
|
|
38
32
|
"--q-badge-color": o,
|
|
39
33
|
"--q-badge-text-color": t
|
|
40
34
|
};
|
|
41
35
|
});
|
|
42
|
-
function
|
|
36
|
+
function u() {
|
|
43
37
|
d("click:remove");
|
|
44
38
|
}
|
|
45
|
-
return (o, t) => (a(),
|
|
39
|
+
return (o, t) => (a(), b(
|
|
46
40
|
"span",
|
|
47
41
|
{
|
|
48
|
-
class:
|
|
42
|
+
class: C(m.value),
|
|
49
43
|
role: "presentation",
|
|
50
|
-
style:
|
|
44
|
+
style: _(p.value)
|
|
51
45
|
},
|
|
52
46
|
[
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
t[0] || (t[0] = n(
|
|
48
|
+
"div",
|
|
49
|
+
{ class: "q-badge__underlay" },
|
|
50
|
+
null,
|
|
51
|
+
-1
|
|
52
|
+
/* HOISTED */
|
|
53
|
+
)),
|
|
54
|
+
n("div", w, [
|
|
55
55
|
y(o.$slots, "default"),
|
|
56
|
-
e.removable ? (a(), q(
|
|
56
|
+
e.removable ? (a(), q(s(E), {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: "q-badge__remove",
|
|
59
59
|
borderless: "",
|
|
60
60
|
tabindex: "0",
|
|
61
|
-
onClick:
|
|
61
|
+
onClick: u
|
|
62
62
|
}, {
|
|
63
63
|
default: k(() => [
|
|
64
64
|
B(
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
s(Q),
|
|
66
|
+
x(N(e.icons.remove)),
|
|
67
67
|
null,
|
|
68
68
|
16
|
|
69
69
|
/* FULL_PROPS */
|
|
@@ -71,7 +71,7 @@ const w = /* @__PURE__ */ s(
|
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
73
|
/* STABLE */
|
|
74
|
-
})) :
|
|
74
|
+
})) : z("v-if", !0)
|
|
75
75
|
])
|
|
76
76
|
],
|
|
77
77
|
6
|
|
@@ -80,5 +80,5 @@ const w = /* @__PURE__ */ s(
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
A as default
|
|
84
84
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Icon } from '../QIcon';
|
|
2
|
-
|
|
3
1
|
export type QBadgeProps = {
|
|
4
2
|
/**
|
|
5
3
|
* The color of the badge.
|
|
@@ -19,12 +17,13 @@ export type QBadgeProps = {
|
|
|
19
17
|
*/
|
|
20
18
|
pill?: boolean;
|
|
21
19
|
/**
|
|
22
|
-
*
|
|
20
|
+
* Custom icon configurations.
|
|
23
21
|
*/
|
|
24
|
-
|
|
22
|
+
icons?: typeof DEFAULT_ICONS;
|
|
25
23
|
};
|
|
26
|
-
export declare const DEFAULT_ICONS:
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
export declare const DEFAULT_ICONS: {
|
|
25
|
+
remove: {
|
|
26
|
+
icon: string;
|
|
27
|
+
};
|
|
29
28
|
};
|
|
30
29
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadge/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIzB,CAAA"}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { QButtonProps } from './types';
|
|
2
|
-
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class: undefined;
|
|
11
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
-
click: (event: Event) => void;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonProps>, {
|
|
14
|
-
bStyle: string;
|
|
15
|
-
label: string;
|
|
16
|
-
size: string;
|
|
17
|
-
class: undefined;
|
|
18
|
-
}>>> & {
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<QButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
click: (event: Event) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<QButtonProps> & Readonly<{
|
|
19
13
|
onClick?: ((event: Event) => any) | undefined;
|
|
20
|
-
}
|
|
14
|
+
}>, {
|
|
21
15
|
size: "regular" | "small";
|
|
22
16
|
class: string | unknown[];
|
|
23
17
|
label: string;
|
|
24
18
|
bStyle: "primary" | "secondary" | "tertiary" | "danger" | "plain";
|
|
25
|
-
}, {}>;
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
21
|
export default _default;
|
|
28
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
-
} : {
|
|
33
|
-
type: import('vue').PropType<T[K]>;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
type __VLS_WithDefaults<P, D> = {
|
|
38
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
39
|
-
default: D[K];
|
|
40
|
-
}> : P[K];
|
|
41
|
-
};
|
|
42
|
-
type __VLS_Prettify<T> = {
|
|
43
|
-
[K in keyof T]: T[K];
|
|
44
|
-
} & {};
|
|
45
22
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
23
|
new (): {
|
|
47
24
|
$slots: S;
|
|
@@ -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":"AA4EC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAwD5C,iBAAS,cAAc;;yBA4CM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;6EAUnB,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,34 +1,17 @@
|
|
|
1
1
|
import { QButtonGroupProps } from './types';
|
|
2
|
-
|
|
3
2
|
declare function __VLS_template(): {
|
|
4
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonGroupProps>, {
|
|
9
|
-
class: undefined;
|
|
10
|
-
}>>>, {
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<QButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QButtonGroupProps> & Readonly<{}>, {
|
|
11
11
|
class: string | unknown[];
|
|
12
|
-
}, {}>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
14
|
export default _default;
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
-
} : {
|
|
20
|
-
type: import('vue').PropType<T[K]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
-
default: D[K];
|
|
27
|
-
}> : P[K];
|
|
28
|
-
};
|
|
29
|
-
type __VLS_Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
32
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
16
|
new (): {
|
|
34
17
|
$slots: S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup.vue"],"names":[],"mappings":"AA0CC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AA4BjD,iBAAS,cAAc;;yBAkCM,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;6EAOnB,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,50 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
required: {
|
|
20
|
-
type: import('vue').PropType<boolean>;
|
|
21
|
-
};
|
|
22
|
-
class: {
|
|
23
|
-
type: import('vue').PropType<string | unknown[]>;
|
|
24
|
-
};
|
|
25
|
-
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
-
modelValue: import('vue').PropType<string>;
|
|
27
|
-
options: {
|
|
28
|
-
type: import('vue').PropType<Option[]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
disabled: {
|
|
32
|
-
type: import('vue').PropType<boolean>;
|
|
33
|
-
};
|
|
34
|
-
borderless: {
|
|
35
|
-
type: import('vue').PropType<boolean>;
|
|
36
|
-
};
|
|
37
|
-
elevated: {
|
|
38
|
-
type: import('vue').PropType<boolean>;
|
|
39
|
-
};
|
|
40
|
-
required: {
|
|
41
|
-
type: import('vue').PropType<boolean>;
|
|
42
|
-
};
|
|
43
|
-
class: {
|
|
44
|
-
type: import('vue').PropType<string | unknown[]>;
|
|
45
|
-
};
|
|
46
|
-
}>>, {}, {}>;
|
|
47
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
1
|
+
import { QButtonToggleProps } from './types';
|
|
2
|
+
declare let __VLS_typeProps: QButtonToggleProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
} & typeof __VLS_typeProps;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
slots: Partial<Record<string, (_: {}) => any>>;
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (modelValue: string) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
18
|
export default _default;
|
|
49
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
20
|
new (): {
|
|
@@ -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":"AA8CC,OAAO,KAAK,EAAU,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI1D,QAAA,IAAI,eAAe,EAAG,kBAAkB,CAAC;AAgBzC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,eAAe,CAAC;AAI3B,iBAAS,cAAc;6CAyD+D,GAAG;;WAU3E,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as i, mergeModels as c, useModel as m, openBlock 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 y, Fragment as f, renderList as k, renderSlot as v } from "vue";
|
|
2
|
+
import { QButton as p } from "../QButton/index.js";
|
|
3
3
|
import { QButtonGroup as B } from "../QButtonGroup/index.js";
|
|
4
|
-
const
|
|
4
|
+
const M = /* @__PURE__ */ i({
|
|
5
5
|
__name: "QButtonToggle",
|
|
6
6
|
props: /* @__PURE__ */ c({
|
|
7
7
|
options: {},
|
|
@@ -15,35 +15,38 @@ const Q = /* @__PURE__ */ i({
|
|
|
15
15
|
modelModifiers: {}
|
|
16
16
|
}),
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
function u(
|
|
21
|
-
t.value ===
|
|
18
|
+
setup(r) {
|
|
19
|
+
const l = r, t = m(r, "modelValue");
|
|
20
|
+
function u(a) {
|
|
21
|
+
t.value === a.key && !l.required ? t.value = void 0 : t.value = a.key;
|
|
22
22
|
}
|
|
23
|
-
return (
|
|
23
|
+
return (a, g) => (o(), s(d(B), {
|
|
24
24
|
"b-style": "secondary",
|
|
25
|
-
class: b(
|
|
26
|
-
disabled:
|
|
27
|
-
borderless:
|
|
28
|
-
elevated:
|
|
25
|
+
class: b(l.class),
|
|
26
|
+
disabled: l.disabled,
|
|
27
|
+
borderless: l.borderless,
|
|
28
|
+
elevated: l.elevated,
|
|
29
|
+
role: "listbox"
|
|
29
30
|
}, {
|
|
30
31
|
default: n(() => [
|
|
31
|
-
(
|
|
32
|
-
|
|
32
|
+
(o(!0), y(
|
|
33
|
+
f,
|
|
33
34
|
null,
|
|
34
|
-
k(
|
|
35
|
-
key:
|
|
36
|
-
title:
|
|
37
|
-
label:
|
|
38
|
-
active: t.value ===
|
|
39
|
-
|
|
35
|
+
k(l.options, (e) => (o(), s(d(p), {
|
|
36
|
+
key: e.key,
|
|
37
|
+
title: e.title,
|
|
38
|
+
label: e.label,
|
|
39
|
+
active: t.value === e.key,
|
|
40
|
+
role: "option",
|
|
41
|
+
"aria-selected": t.value === e.key,
|
|
42
|
+
onClick: () => u(e)
|
|
40
43
|
}, {
|
|
41
44
|
default: n(() => [
|
|
42
|
-
|
|
45
|
+
v(a.$slots, e.key)
|
|
43
46
|
]),
|
|
44
47
|
_: 2
|
|
45
48
|
/* DYNAMIC */
|
|
46
|
-
}, 1032, ["title", "label", "active", "onClick"]))),
|
|
49
|
+
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))),
|
|
47
50
|
128
|
|
48
51
|
/* KEYED_FRAGMENT */
|
|
49
52
|
))
|
|
@@ -54,5 +57,5 @@ const Q = /* @__PURE__ */ i({
|
|
|
54
57
|
}
|
|
55
58
|
});
|
|
56
59
|
export {
|
|
57
|
-
|
|
60
|
+
M as default
|
|
58
61
|
};
|