@quidgest/ui 0.15.9 → 0.16.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/manifest/components.json +4 -1
- package/dist/ui.css +11 -12
- package/dist/ui.esm.js +3758 -3654
- package/dist/ui.js +26 -26
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +748 -741
- package/dist/ui.scss +34 -31
- package/esm/components/QAccordion/QAccordion.d.ts +4 -3
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +21 -17
- package/esm/components/QAccordion/QAccordionItem.d.ts +19 -0
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -0
- package/esm/components/QAccordion/QAccordionItem.vue.js +42 -0
- package/esm/components/QAccordion/QAccordionItem.vue2.js +4 -0
- package/esm/components/QAccordion/index.d.ts +35 -15
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/index.js +6 -4
- package/esm/components/QAccordion/types.d.ts +25 -5
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +9 -11
- package/esm/components/QButton/types.d.ts +0 -4
- package/esm/components/QButton/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +60 -65
- package/esm/components/QCollapsible/index.d.ts +14 -14
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +16 -18
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +59 -57
- package/esm/components/QCombobox/index.d.ts +11 -9
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +4 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +16 -16
- package/esm/components/QList/QList.d.ts +9 -9
- package/esm/components/QList/QListItem.d.ts +1 -1
- package/esm/components/QList/index.d.ts +10 -10
- package/esm/components/QOverlay/QOverlay.vue.js +15 -16
- package/esm/components/QOverlay/index.d.ts +0 -3
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +0 -4
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +12 -13
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +31 -34
- package/esm/components/QRadioGroup/QRadioButton.vue.js +3 -3
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +1 -1
- package/esm/components/QSelect/QSelect.d.ts +16 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +58 -56
- package/esm/components/QSelect/index.d.ts +11 -8
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +4 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/{QButtonToggle/QButtonToggle.d.ts → QToggle/QToggle.d.ts} +11 -9
- package/esm/components/QToggle/QToggle.d.ts.map +1 -0
- package/esm/components/QToggle/QToggle.vue.js +40 -0
- package/esm/components/QToggle/QToggle.vue2.js +4 -0
- package/esm/components/QToggle/index.d.ts +71 -0
- package/esm/components/QToggle/index.d.ts.map +1 -0
- package/esm/components/{QButtonToggle → QToggle}/index.js +3 -3
- package/esm/components/QToggle/types.d.ts +3 -0
- package/esm/components/QToggle/types.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroup.d.ts +28 -0
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +49 -0
- package/esm/components/QToggleGroup/QToggleGroup.vue2.js +4 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts +19 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.d.ts.map +1 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue.js +44 -0
- package/esm/components/QToggleGroup/QToggleGroupItem.vue2.js +4 -0
- package/esm/components/QToggleGroup/index.d.ts +75 -0
- package/esm/components/QToggleGroup/index.d.ts.map +1 -0
- package/esm/components/QToggleGroup/index.js +8 -0
- package/esm/components/QToggleGroup/types.d.ts +19 -0
- package/esm/components/QToggleGroup/types.d.ts.map +1 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +42 -40
- package/esm/components/index.d.ts +2 -1
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +83 -79
- package/esm/composables/{group.d.ts → useGroup/index.d.ts} +11 -3
- package/esm/composables/useGroup/index.d.ts.map +1 -0
- package/esm/composables/useGroup/index.js +38 -0
- package/esm/index.d.ts +4 -1
- package/package.json +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +0 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +0 -62
- package/esm/components/QButtonToggle/QButtonToggle.vue2.js +0 -4
- package/esm/components/QButtonToggle/index.d.ts +0 -51
- package/esm/components/QButtonToggle/index.d.ts.map +0 -1
- package/esm/components/QButtonToggle/types.d.ts +0 -29
- package/esm/components/QButtonToggle/types.d.ts.map +0 -1
- package/esm/composables/group.d.ts.map +0 -1
- package/esm/composables/group.js +0 -31
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const QToggle: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
5
|
+
label?: string;
|
|
6
|
+
variant?: import('../QButton/types').QButtonVariant;
|
|
7
|
+
color?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
borderless?: boolean;
|
|
10
|
+
elevated?: boolean;
|
|
11
|
+
block?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
size?: import('../QButton/types').QButtonSize;
|
|
14
|
+
iconPos?: import('../QButton/types').QButtonIconPosition;
|
|
15
|
+
pill?: boolean;
|
|
16
|
+
}> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: boolean) => any;
|
|
20
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
21
|
+
P: {};
|
|
22
|
+
B: {};
|
|
23
|
+
D: {};
|
|
24
|
+
C: {};
|
|
25
|
+
M: {};
|
|
26
|
+
Defaults: {};
|
|
27
|
+
}, Readonly<{
|
|
28
|
+
modelValue?: boolean;
|
|
29
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
30
|
+
label?: string;
|
|
31
|
+
variant?: import('../QButton/types').QButtonVariant;
|
|
32
|
+
color?: string;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
borderless?: boolean;
|
|
35
|
+
elevated?: boolean;
|
|
36
|
+
block?: boolean;
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
size?: import('../QButton/types').QButtonSize;
|
|
39
|
+
iconPos?: import('../QButton/types').QButtonIconPosition;
|
|
40
|
+
pill?: boolean;
|
|
41
|
+
}> & Readonly<{
|
|
42
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, {}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
48
|
+
modelValue?: boolean;
|
|
49
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
50
|
+
label?: string;
|
|
51
|
+
variant?: import('../QButton/types').QButtonVariant;
|
|
52
|
+
color?: string;
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
borderless?: boolean;
|
|
55
|
+
elevated?: boolean;
|
|
56
|
+
block?: boolean;
|
|
57
|
+
loading?: boolean;
|
|
58
|
+
size?: import('../QButton/types').QButtonSize;
|
|
59
|
+
iconPos?: import('../QButton/types').QButtonIconPosition;
|
|
60
|
+
pill?: boolean;
|
|
61
|
+
}> & Readonly<{
|
|
62
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
63
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
"update:modelValue": (value: boolean) => any;
|
|
65
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
66
|
+
$slots: {
|
|
67
|
+
default?(_: {}): any;
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
export { QToggle };
|
|
71
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToggle/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,MAAM,YAAY,GAAG,YAAY,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Primitive } from '../../types/primitive';
|
|
2
|
+
import { QToggleGroupProps } from './types';
|
|
3
|
+
type __VLS_Props = QToggleGroupProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: Primitive | Primitive[];
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: Primitive | Primitive[]) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: Primitive | Primitive[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=QToggleGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QToggleGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroup.vue"],"names":[],"mappings":"AASA;AAwDC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG,iBAAiB,CAAC;AAyBtC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACpC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineComponent as s, mergeModels as d, useModel as i, toRef as o, watch as u, createBlock as m, openBlock as p, unref as n, normalizeClass as c, withCtx as f, renderSlot as b } from "vue";
|
|
2
|
+
import { QButtonGroup as B } from "../QButtonGroup/index.js";
|
|
3
|
+
import { provideDefaults as v } from "../../composables/defaults.js";
|
|
4
|
+
import { useGroup as y } from "../../composables/useGroup/index.js";
|
|
5
|
+
const x = /* @__PURE__ */ s({
|
|
6
|
+
__name: "QToggleGroup",
|
|
7
|
+
props: /* @__PURE__ */ d({
|
|
8
|
+
id: {},
|
|
9
|
+
class: {},
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
borderless: { type: Boolean },
|
|
12
|
+
elevated: { type: Boolean },
|
|
13
|
+
multiple: { type: Boolean },
|
|
14
|
+
required: { type: Boolean }
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: { type: [String, Number, Boolean, Symbol, Array] },
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(t) {
|
|
21
|
+
const e = t, r = i(t, "modelValue"), { active: a } = y({
|
|
22
|
+
active: r,
|
|
23
|
+
required: o(e, "required"),
|
|
24
|
+
multiple: o(e, "multiple")
|
|
25
|
+
});
|
|
26
|
+
return u(a, (l) => {
|
|
27
|
+
r.value = l;
|
|
28
|
+
}), v({
|
|
29
|
+
QToggleGroupItem: {
|
|
30
|
+
disabled: o(e, "disabled"),
|
|
31
|
+
borderless: o(e, "borderless")
|
|
32
|
+
}
|
|
33
|
+
}), (l, g) => (p(), m(n(B), {
|
|
34
|
+
id: e.id,
|
|
35
|
+
class: c(e.class),
|
|
36
|
+
elevated: e.elevated,
|
|
37
|
+
role: "listbox"
|
|
38
|
+
}, {
|
|
39
|
+
default: f(() => [
|
|
40
|
+
b(l.$slots, "default")
|
|
41
|
+
]),
|
|
42
|
+
_: 3
|
|
43
|
+
/* FORWARDED */
|
|
44
|
+
}, 8, ["id", "class", "elevated"]));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
x as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { QToggleGroupItemProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLButtonElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<QToggleGroupItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=QToggleGroupItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QToggleGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/QToggleGroupItem.vue"],"names":[],"mappings":"AAQA;AAyCC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAgBrD,iBAAS,cAAc;WAyCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,oUAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as n, createBlock as p, openBlock as s, unref as o, mergeProps as i, withCtx as u, renderSlot as m } from "vue";
|
|
2
|
+
import { QToggle as d } from "../QToggle/index.js";
|
|
3
|
+
import { useGroupItem as c } from "../../composables/useGroup/index.js";
|
|
4
|
+
import { useId as g } from "../../composables/uid.js";
|
|
5
|
+
const h = /* @__PURE__ */ n({
|
|
6
|
+
__name: "QToggleGroupItem",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
class: {},
|
|
10
|
+
label: {},
|
|
11
|
+
variant: {},
|
|
12
|
+
color: {},
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
borderless: { type: Boolean },
|
|
15
|
+
elevated: { type: Boolean },
|
|
16
|
+
block: { type: Boolean },
|
|
17
|
+
loading: { type: Boolean },
|
|
18
|
+
size: {},
|
|
19
|
+
iconPos: {},
|
|
20
|
+
pill: { type: Boolean },
|
|
21
|
+
value: {}
|
|
22
|
+
},
|
|
23
|
+
setup(l) {
|
|
24
|
+
const t = l, r = g(t.value), e = c(r);
|
|
25
|
+
if (!e)
|
|
26
|
+
throw new Error(
|
|
27
|
+
"QToggleGroupItem: Failed to retrieve group item. Ensure the component is used within a QToggleGroup context."
|
|
28
|
+
);
|
|
29
|
+
return (a, f) => (s(), p(o(d), i({
|
|
30
|
+
"model-value": o(e).isActive.value
|
|
31
|
+
}, t, {
|
|
32
|
+
"onUpdate:modelValue": o(e).toggle
|
|
33
|
+
}), {
|
|
34
|
+
default: u(() => [
|
|
35
|
+
m(a.$slots, "default")
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
/* FORWARDED */
|
|
39
|
+
}, 16, ["model-value", "onUpdate:modelValue"]));
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
h as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { QToggleGroupItemProps, QToggleGroupProps } from './types';
|
|
2
|
+
declare const QToggleGroup: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
|
|
5
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
borderless?: boolean;
|
|
8
|
+
elevated?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any;
|
|
16
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
17
|
+
P: {};
|
|
18
|
+
B: {};
|
|
19
|
+
D: {};
|
|
20
|
+
C: {};
|
|
21
|
+
M: {};
|
|
22
|
+
Defaults: {};
|
|
23
|
+
}, Readonly<{
|
|
24
|
+
modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
|
|
25
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
borderless?: boolean;
|
|
28
|
+
elevated?: boolean;
|
|
29
|
+
} & {
|
|
30
|
+
multiple?: boolean;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
}> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, {}>;
|
|
35
|
+
__isFragment?: never;
|
|
36
|
+
__isTeleport?: never;
|
|
37
|
+
__isSuspense?: never;
|
|
38
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
39
|
+
modelValue?: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[];
|
|
40
|
+
} & import('../../types/component').QBaseComponentProps & {
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
borderless?: boolean;
|
|
43
|
+
elevated?: boolean;
|
|
44
|
+
} & {
|
|
45
|
+
multiple?: boolean;
|
|
46
|
+
required?: boolean;
|
|
47
|
+
}> & Readonly<{
|
|
48
|
+
"onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any) | undefined;
|
|
49
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
+
"update:modelValue": (value: import('../../types/primitive').Primitive | import('../../types/primitive').Primitive[]) => any;
|
|
51
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
52
|
+
$slots: {
|
|
53
|
+
default?(_: {}): any;
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
declare const QToggleGroupItem: {
|
|
57
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<QToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
58
|
+
P: {};
|
|
59
|
+
B: {};
|
|
60
|
+
D: {};
|
|
61
|
+
C: {};
|
|
62
|
+
M: {};
|
|
63
|
+
Defaults: {};
|
|
64
|
+
}, Readonly<QToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
65
|
+
__isFragment?: never;
|
|
66
|
+
__isTeleport?: never;
|
|
67
|
+
__isSuspense?: never;
|
|
68
|
+
} & import('vue').ComponentOptionsBase<Readonly<QToggleGroupItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
69
|
+
$slots: {
|
|
70
|
+
default?(_: {}): any;
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
export { QToggleGroup, QToggleGroupItem };
|
|
74
|
+
export type { QToggleGroupItemProps, QToggleGroupProps };
|
|
75
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKvE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA;AACnD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;EAAqC,CAAA;AAG3D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA;AAGzC,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { QButtonProps } from '../QButton';
|
|
2
|
+
import { QButtonGroupProps } from '../QButtonGroup/types';
|
|
3
|
+
export type QToggleGroupProps = QButtonGroupProps & {
|
|
4
|
+
/**
|
|
5
|
+
* Indicates if options can be deselected.
|
|
6
|
+
*/
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Indicates if options can be deselected.
|
|
10
|
+
*/
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type QToggleGroupItemProps = QButtonProps & {
|
|
14
|
+
/**
|
|
15
|
+
* An optional string that represents the value associated with the toggle group item.
|
|
16
|
+
*/
|
|
17
|
+
value?: string;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QToggleGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAE9D,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG;IACnD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IAClD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAoCA;AA2HC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAO5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA6ElC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAqFT,OAAO,IAA6B;;;;;;YAXtB,GAAG;yBACF,GAAG;;;;EAe/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;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as g, mergeModels as V, useModel as v, onMounted as B, onUnmounted as
|
|
1
|
+
import { defineComponent as g, mergeModels as V, useModel as v, onMounted as B, onUnmounted as _, watch as k, createElementBlock as l, openBlock as a, Fragment as m, renderSlot as p, createVNode as M, unref as n, normalizeClass as w, withCtx as x, createElementVNode as C, createBlock as N, createCommentVNode as T, normalizeProps as A, mergeProps as D, createTextVNode as Q, toDisplayString as q } from "vue";
|
|
2
2
|
import { QIcon as z } from "../QIcon/index.js";
|
|
3
3
|
import { QOverlay as H } from "../QOverlay/index.js";
|
|
4
4
|
import { useId as I } from "../../composables/uid.js";
|
|
5
|
-
import { getElement as
|
|
6
|
-
const L = ["innerHTML"],
|
|
5
|
+
import { getElement as u } from "../../utils/getElement.js";
|
|
6
|
+
const L = { class: "q-tooltip__content" }, P = ["innerHTML"], O = /* @__PURE__ */ g({
|
|
7
7
|
__name: "QTooltip",
|
|
8
8
|
props: /* @__PURE__ */ V({
|
|
9
9
|
id: {},
|
|
@@ -26,35 +26,35 @@ const L = ["innerHTML"], F = /* @__PURE__ */ g({
|
|
|
26
26
|
}),
|
|
27
27
|
emits: ["update:modelValue"],
|
|
28
28
|
setup(i) {
|
|
29
|
-
const e = i, d = v(i, "modelValue"),
|
|
29
|
+
const e = i, d = v(i, "modelValue"), r = I(e.id);
|
|
30
30
|
function c(o) {
|
|
31
|
-
const t =
|
|
32
|
-
t == null || t.setAttribute("aria-describedby",
|
|
31
|
+
const t = u(o);
|
|
32
|
+
t == null || t.setAttribute("aria-describedby", r);
|
|
33
33
|
}
|
|
34
34
|
function f() {
|
|
35
35
|
e.anchor && c(e.anchor);
|
|
36
36
|
}
|
|
37
37
|
B(f);
|
|
38
38
|
function s(o) {
|
|
39
|
-
const t =
|
|
39
|
+
const t = u(o);
|
|
40
40
|
t == null || t.removeAttribute("aria-describedby");
|
|
41
41
|
}
|
|
42
42
|
function y() {
|
|
43
43
|
e.anchor && s(e.anchor);
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
_(y);
|
|
46
46
|
function h(o, t) {
|
|
47
47
|
t && s(t), o && c(o);
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return k(() => e.anchor, h), (o, t) => (a(), l(
|
|
50
50
|
m,
|
|
51
51
|
null,
|
|
52
52
|
[
|
|
53
|
-
|
|
54
|
-
props: { "aria-describedby": r
|
|
53
|
+
p(o.$slots, "anchor", {
|
|
54
|
+
props: { "aria-describedby": n(r) }
|
|
55
55
|
}),
|
|
56
|
-
|
|
57
|
-
id: r
|
|
56
|
+
M(n(H), {
|
|
57
|
+
id: n(r),
|
|
58
58
|
modelValue: d.value,
|
|
59
59
|
"onUpdate:modelValue": t[0] || (t[0] = (b) => d.value = b),
|
|
60
60
|
anchor: e.anchor,
|
|
@@ -64,37 +64,39 @@ const L = ["innerHTML"], F = /* @__PURE__ */ g({
|
|
|
64
64
|
arrow: e.arrow,
|
|
65
65
|
attach: e.attach,
|
|
66
66
|
inline: e.inline,
|
|
67
|
-
class:
|
|
67
|
+
class: w(["q-tooltip", e.class]),
|
|
68
68
|
delay: e.delay,
|
|
69
69
|
disabled: e.disabled,
|
|
70
70
|
placement: e.placement,
|
|
71
71
|
trigger: e.trigger
|
|
72
72
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
73
|
+
default: x(() => [
|
|
74
|
+
C("div", L, [
|
|
75
|
+
p(o.$slots, "default", {}, () => [
|
|
76
|
+
e.icon ? (a(), N(
|
|
77
|
+
n(z),
|
|
78
|
+
A(D({ key: 0 }, e.icon)),
|
|
79
|
+
null,
|
|
80
|
+
16
|
|
81
|
+
/* FULL_PROPS */
|
|
82
|
+
)) : T("v-if", !0),
|
|
83
|
+
e.html ? (a(), l("span", {
|
|
84
|
+
key: 1,
|
|
85
|
+
innerHTML: e.text
|
|
86
|
+
}, null, 8, P)) : (a(), l(
|
|
87
|
+
m,
|
|
88
|
+
{ key: 2 },
|
|
89
|
+
[
|
|
90
|
+
Q(
|
|
91
|
+
q(e.text),
|
|
92
|
+
1
|
|
93
|
+
/* TEXT */
|
|
94
|
+
)
|
|
95
|
+
],
|
|
96
|
+
64
|
|
97
|
+
/* STABLE_FRAGMENT */
|
|
98
|
+
))
|
|
99
|
+
])
|
|
98
100
|
])
|
|
99
101
|
]),
|
|
100
102
|
_: 3
|
|
@@ -107,5 +109,5 @@ const L = ["innerHTML"], F = /* @__PURE__ */ g({
|
|
|
107
109
|
}
|
|
108
110
|
});
|
|
109
111
|
export {
|
|
110
|
-
|
|
112
|
+
O as default
|
|
111
113
|
};
|
|
@@ -3,7 +3,6 @@ export * from './QBadge';
|
|
|
3
3
|
export * from './QBadgeIndicator';
|
|
4
4
|
export * from './QButton';
|
|
5
5
|
export * from './QButtonGroup';
|
|
6
|
-
export * from './QButtonToggle';
|
|
7
6
|
export * from './QCard';
|
|
8
7
|
export * from './QCheckbox';
|
|
9
8
|
export * from './QCollapsible';
|
|
@@ -33,5 +32,7 @@ export * from './QSpinnerLoader';
|
|
|
33
32
|
export * from './QTextArea';
|
|
34
33
|
export * from './QTextField';
|
|
35
34
|
export * from './QThemeProvider';
|
|
35
|
+
export * from './QToggle';
|
|
36
|
+
export * from './QToggleGroup';
|
|
36
37
|
export * from './QTooltip';
|
|
37
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA"}
|