@quidgest/ui 0.11.0 → 0.12.0
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 +24 -0
- package/dist/ui.css +5 -2
- package/dist/ui.esm.js +630 -600
- package/dist/ui.js +8 -5
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +146 -132
- package/dist/ui.scss +6 -3
- package/esm/components/QButton/QButton.d.ts +92 -0
- package/esm/components/QButton/QButton.d.ts.map +1 -0
- package/esm/components/QButton/QButton.vue.js +87 -0
- package/esm/components/QButton/QButton.vue2.js +4 -0
- package/esm/components/QButton/index.d.ts +4 -0
- package/esm/components/QButton/index.d.ts.map +1 -0
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +51 -0
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -0
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +41 -0
- package/esm/components/QButtonGroup/QButtonGroup.vue2.js +4 -0
- package/esm/components/QButtonGroup/index.d.ts +4 -0
- package/esm/components/QButtonGroup/index.d.ts.map +1 -0
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +81 -0
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -0
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +58 -0
- package/esm/components/QButtonToggle/QButtonToggle.vue2.js +4 -0
- package/esm/components/QButtonToggle/index.d.ts +4 -0
- package/esm/components/QButtonToggle/index.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts +524 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.vue.js +381 -0
- package/esm/components/QCombobox/QCombobox.vue2.js +4 -0
- package/esm/components/QCombobox/index.d.ts +4 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -0
- package/esm/components/QField/QField.d.ts +89 -0
- package/esm/components/QField/QField.d.ts.map +1 -0
- package/esm/components/QField/QField.vue.js +81 -0
- package/esm/components/QField/QField.vue2.js +4 -0
- package/esm/components/QField/index.d.ts +5 -0
- package/esm/components/QField/index.d.ts.map +1 -0
- package/esm/components/QField/index.js +6 -0
- package/esm/components/QIcon/InlineSvg.d.ts +110 -0
- package/esm/components/QIcon/InlineSvg.d.ts.map +1 -0
- package/esm/components/QIcon/InlineSvg.js +139 -0
- package/esm/components/QIcon/QIcon.d.ts +50 -0
- package/esm/components/QIcon/QIcon.d.ts.map +1 -0
- package/esm/components/QIcon/QIcon.vue.js +36 -0
- package/esm/components/QIcon/QIcon.vue2.js +4 -0
- package/esm/components/QIcon/QIconFont.d.ts +57 -0
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -0
- package/esm/components/QIcon/QIconFont.vue.js +29 -0
- package/esm/components/QIcon/QIconFont.vue2.js +4 -0
- package/esm/components/QIcon/QIconImg.d.ts +38 -0
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -0
- package/esm/components/QIcon/QIconImg.vue.js +22 -0
- package/esm/components/QIcon/QIconImg.vue2.js +4 -0
- package/esm/components/QIcon/QIconSvg.d.ts +72 -0
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -0
- package/esm/components/QIcon/QIconSvg.vue.js +34 -0
- package/esm/components/QIcon/QIconSvg.vue2.js +4 -0
- package/esm/components/QIcon/index.d.ts +8 -0
- package/esm/components/QIcon/index.d.ts.map +1 -0
- package/esm/components/QIcon/index.js +15 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts +85 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -0
- package/esm/components/QInputGroup/QInputGroup.vue.js +79 -0
- package/esm/components/QInputGroup/QInputGroup.vue2.js +4 -0
- package/esm/components/QInputGroup/index.d.ts +4 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts +32 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -0
- package/esm/components/QLineLoader/QLineLoader.vue.js +22 -0
- package/esm/components/QLineLoader/QLineLoader.vue2.js +4 -0
- package/esm/components/QLineLoader/index.d.ts +4 -0
- package/esm/components/QLineLoader/index.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts +159 -0
- package/esm/components/QList/QList.d.ts.map +1 -0
- package/esm/components/QList/QList.vue.js +186 -0
- package/esm/components/QList/QList.vue2.js +4 -0
- package/esm/components/QList/QListItem.d.ts +82 -0
- package/esm/components/QList/QListItem.d.ts.map +1 -0
- package/esm/components/QList/QListItem.vue.js +75 -0
- package/esm/components/QList/QListItem.vue2.js +4 -0
- package/esm/components/QList/QListItemGroup.d.ts +43 -0
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -0
- package/esm/components/QList/QListItemGroup.vue.js +29 -0
- package/esm/components/QList/QListItemGroup.vue2.js +4 -0
- package/esm/components/QList/index.d.ts +7 -0
- package/esm/components/QList/index.d.ts.map +1 -0
- package/esm/components/QList/index.js +12 -0
- package/esm/components/QOverlay/QOverlay.d.ts +236 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -0
- package/esm/components/QOverlay/QOverlay.vue.js +250 -0
- package/esm/components/QOverlay/QOverlay.vue2.js +4 -0
- package/esm/components/QOverlay/index.d.ts +4 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -0
- package/esm/components/QOverlay/index.js +6 -0
- package/esm/components/QPopover/QPopover.d.ts +132 -0
- package/esm/components/QPopover/QPopover.d.ts.map +1 -0
- package/esm/components/QPopover/QPopover.vue.js +71 -0
- package/esm/components/QPopover/QPopover.vue2.js +4 -0
- package/esm/components/QPopover/index.d.ts +4 -0
- package/esm/components/QPopover/index.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.d.ts +265 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -0
- package/esm/components/QSelect/QSelect.vue.js +317 -0
- package/esm/components/QSelect/QSelect.vue2.js +4 -0
- package/esm/components/QSelect/index.d.ts +4 -0
- package/esm/components/QSelect/index.d.ts.map +1 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +46 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +39 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue2.js +4 -0
- package/esm/components/QSkeletonLoader/index.d.ts +4 -0
- package/esm/components/QSkeletonLoader/index.d.ts.map +1 -0
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +39 -0
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -0
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +26 -0
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue2.js +4 -0
- package/esm/components/QSpinnerLoader/index.d.ts +4 -0
- package/esm/components/QSpinnerLoader/index.d.ts.map +1 -0
- package/esm/components/QSpinnerLoader/index.js +6 -0
- package/esm/components/QTextField/QTextField.d.ts +162 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -0
- package/esm/components/QTextField/QTextField.vue.js +99 -0
- package/esm/components/QTextField/QTextField.vue2.js +4 -0
- package/esm/components/QTextField/index.d.ts +4 -0
- package/esm/components/QTextField/index.d.ts.map +1 -0
- package/esm/components/QTextField/index.js +6 -0
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +25 -0
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -0
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +24 -0
- package/esm/components/QThemeProvider/QThemeProvider.vue2.js +4 -0
- package/esm/components/QThemeProvider/index.d.ts +4 -0
- package/esm/components/QThemeProvider/index.d.ts.map +1 -0
- package/esm/components/QTooltip/QTooltip.d.ts +189 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -0
- package/esm/components/QTooltip/QTooltip.vue.js +74 -0
- package/esm/components/QTooltip/QTooltip.vue2.js +4 -0
- package/esm/components/QTooltip/index.d.ts +4 -0
- package/esm/components/QTooltip/index.d.ts.map +1 -0
- package/esm/components/index.d.ts +18 -0
- package/esm/components/index.d.ts.map +1 -0
- package/esm/components/index.js +46 -0
- package/esm/composables/defaults.d.ts +25 -0
- package/esm/composables/defaults.d.ts.map +1 -0
- package/esm/composables/defaults.js +33 -0
- package/esm/composables/index.d.ts +2 -0
- package/esm/composables/index.d.ts.map +1 -0
- package/esm/composables/overlay.d.ts +116 -0
- package/esm/composables/overlay.d.ts.map +1 -0
- package/esm/composables/overlay.js +142 -0
- package/esm/composables/theme.d.ts +18 -0
- package/esm/composables/theme.d.ts.map +1 -0
- package/esm/composables/theme.js +20 -0
- package/esm/composables/uid.d.ts +8 -0
- package/esm/composables/uid.d.ts.map +1 -0
- package/esm/composables/uid.js +7 -0
- package/esm/framework.d.ts +29 -0
- package/esm/framework.d.ts.map +1 -0
- package/esm/framework.js +47 -0
- package/esm/index.d.ts +35 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +12 -0
- package/esm/templates/index.d.ts +2 -0
- package/esm/templates/index.d.ts.map +1 -0
- package/esm/templates/index.js +5 -0
- package/esm/templates/theme.d.ts +5 -0
- package/esm/templates/theme.d.ts.map +1 -0
- package/esm/templates/theme.js +67 -0
- package/esm/types/primitive.d.ts +2 -0
- package/esm/types/primitive.d.ts.map +1 -0
- package/esm/utils/color.d.ts +105 -0
- package/esm/utils/color.d.ts.map +1 -0
- package/esm/utils/color.js +14 -0
- package/esm/utils/getCurrentInstance.d.ts +2 -0
- package/esm/utils/getCurrentInstance.d.ts.map +1 -0
- package/esm/utils/getElement.d.ts +6 -0
- package/esm/utils/getElement.d.ts.map +1 -0
- package/esm/utils/getElement.js +6 -0
- package/esm/utils/isEmpty.d.ts +2 -0
- package/esm/utils/isEmpty.d.ts.map +1 -0
- package/esm/utils/isEmpty.js +6 -0
- package/esm/utils/isObject.d.ts +2 -0
- package/esm/utils/isObject.d.ts.map +1 -0
- package/esm/utils/isObject.js +6 -0
- package/esm/utils/merge.d.ts +2 -0
- package/esm/utils/merge.d.ts.map +1 -0
- package/esm/utils/merge.js +21 -0
- package/esm/utils/setupPropsProxy.d.ts +12 -0
- package/esm/utils/setupPropsProxy.d.ts.map +1 -0
- package/esm/utils/setupPropsProxy.js +32 -0
- package/esm/utils/string.d.ts +7 -0
- package/esm/utils/string.d.ts.map +1 -0
- package/esm/utils/string.js +6 -0
- package/esm/utils/theme.d.ts +22 -0
- package/esm/utils/theme.d.ts.map +1 -0
- package/esm/utils/theme.js +40 -0
- package/package.json +46 -49
- package/dist/index.d.ts +0 -4076
- package/dist/ui.esm.js.map +0 -1
- package/dist/ui.js.map +0 -1
- package/dist/ui.min.js.map +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export type QButtonProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Indicates whether the button is active or not.
|
|
4
|
+
*/
|
|
5
|
+
active?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The style of the button.
|
|
8
|
+
*/
|
|
9
|
+
bStyle?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'plain';
|
|
10
|
+
/**
|
|
11
|
+
* The text content of the button.
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* If true, the button is disabled and cannot be interacted with.
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* If true, the button icon is displayed on the right side.
|
|
20
|
+
*/
|
|
21
|
+
iconOnRight?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If true, the button has no borders.
|
|
24
|
+
*/
|
|
25
|
+
borderless?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* If true, the button has an elevated appearance.
|
|
28
|
+
*/
|
|
29
|
+
elevated?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If true, the button spans the full width of its container.
|
|
32
|
+
*/
|
|
33
|
+
block?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* If true, the button is in a loading state, indicating ongoing activity.
|
|
36
|
+
*/
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The size of the button, either 'regular' or 'small'.
|
|
40
|
+
*/
|
|
41
|
+
size?: 'regular' | 'small';
|
|
42
|
+
/**
|
|
43
|
+
* Custom set of classes to apply to the component.
|
|
44
|
+
*/
|
|
45
|
+
class?: string | unknown[];
|
|
46
|
+
};
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonProps>, {
|
|
48
|
+
bStyle: string;
|
|
49
|
+
label: string;
|
|
50
|
+
size: string;
|
|
51
|
+
class: undefined;
|
|
52
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
click: (event: Event) => void;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonProps>, {
|
|
55
|
+
bStyle: string;
|
|
56
|
+
label: string;
|
|
57
|
+
size: string;
|
|
58
|
+
class: undefined;
|
|
59
|
+
}>>> & {
|
|
60
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
size: "small" | "regular";
|
|
63
|
+
class: string | unknown[];
|
|
64
|
+
label: string;
|
|
65
|
+
bStyle: "primary" | "secondary" | "tertiary" | "danger" | "plain";
|
|
66
|
+
}, {}>, {
|
|
67
|
+
default?(_: {}): any;
|
|
68
|
+
}>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
71
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
72
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
73
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
74
|
+
} : {
|
|
75
|
+
type: import('vue').PropType<T[K]>;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
type __VLS_WithDefaults<P, D> = {
|
|
80
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
81
|
+
default: D[K];
|
|
82
|
+
}> : P[K];
|
|
83
|
+
};
|
|
84
|
+
type __VLS_Prettify<T> = {
|
|
85
|
+
[K in keyof T]: T[K];
|
|
86
|
+
} & {};
|
|
87
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=QButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/QButton"],"names":[],"mappings":"AAwBA;AAQC,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAA;IAElE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;;;;;;;;;;;;;;AA6JF,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent as f, computed as s, openBlock as o, createElementBlock as n, normalizeClass as v, withModifiers as y, createVNode as _, unref as g, createCommentVNode as l, createElementVNode as k, Fragment as i, createTextVNode as c, toDisplayString as r, renderSlot as q } from "vue";
|
|
2
|
+
import "../QSpinnerLoader/index.js";
|
|
3
|
+
import B from "../QSpinnerLoader/QSpinnerLoader.vue.js";
|
|
4
|
+
const h = ["disabled"], z = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "q-btn__spinner"
|
|
7
|
+
}, C = { class: "q-btn__content" }, O = /* @__PURE__ */ f({
|
|
8
|
+
__name: "QButton",
|
|
9
|
+
props: {
|
|
10
|
+
active: { type: Boolean },
|
|
11
|
+
bStyle: { default: "secondary" },
|
|
12
|
+
label: { default: "" },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
iconOnRight: { type: Boolean },
|
|
15
|
+
borderless: { type: Boolean },
|
|
16
|
+
elevated: { type: Boolean },
|
|
17
|
+
block: { type: Boolean },
|
|
18
|
+
loading: { type: Boolean },
|
|
19
|
+
size: { default: "regular" },
|
|
20
|
+
class: { default: void 0 }
|
|
21
|
+
},
|
|
22
|
+
emits: ["click"],
|
|
23
|
+
setup(d, { emit: b }) {
|
|
24
|
+
const e = d, p = b, a = s(() => e.disabled || e.loading);
|
|
25
|
+
function u(t) {
|
|
26
|
+
a.value || p("click", t);
|
|
27
|
+
}
|
|
28
|
+
const m = s(() => {
|
|
29
|
+
const t = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
30
|
+
return [
|
|
31
|
+
"q-btn",
|
|
32
|
+
`q-btn--${e.bStyle}`,
|
|
33
|
+
t,
|
|
34
|
+
{
|
|
35
|
+
"q-btn--active": e.active,
|
|
36
|
+
"q-btn--borderless": e.borderless,
|
|
37
|
+
"q-btn--elevated": e.elevated,
|
|
38
|
+
"q-btn--block": e.block,
|
|
39
|
+
"q-btn--loading": e.loading
|
|
40
|
+
},
|
|
41
|
+
e.class
|
|
42
|
+
];
|
|
43
|
+
});
|
|
44
|
+
return (t, N) => (o(), n("button", {
|
|
45
|
+
type: "button",
|
|
46
|
+
class: v(m.value),
|
|
47
|
+
disabled: a.value,
|
|
48
|
+
onClick: y(u, ["stop", "prevent"])
|
|
49
|
+
}, [
|
|
50
|
+
t.loading ? (o(), n("div", z, [
|
|
51
|
+
_(g(B), { size: 20 })
|
|
52
|
+
])) : l("v-if", !0),
|
|
53
|
+
k("span", C, [
|
|
54
|
+
t.iconOnRight ? (o(), n(
|
|
55
|
+
i,
|
|
56
|
+
{ key: 0 },
|
|
57
|
+
[
|
|
58
|
+
c(
|
|
59
|
+
r(e.label),
|
|
60
|
+
1
|
|
61
|
+
/* TEXT */
|
|
62
|
+
)
|
|
63
|
+
],
|
|
64
|
+
64
|
|
65
|
+
/* STABLE_FRAGMENT */
|
|
66
|
+
)) : l("v-if", !0),
|
|
67
|
+
q(t.$slots, "default"),
|
|
68
|
+
t.iconOnRight ? l("v-if", !0) : (o(), n(
|
|
69
|
+
i,
|
|
70
|
+
{ key: 1 },
|
|
71
|
+
[
|
|
72
|
+
c(
|
|
73
|
+
r(e.label),
|
|
74
|
+
1
|
|
75
|
+
/* TEXT */
|
|
76
|
+
)
|
|
77
|
+
],
|
|
78
|
+
64
|
|
79
|
+
/* STABLE_FRAGMENT */
|
|
80
|
+
))
|
|
81
|
+
])
|
|
82
|
+
], 10, h));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
O as default
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QButton/index.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,eAAe,CAAA;AAQnC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type QButtonGroupProps = {
|
|
2
|
+
/**
|
|
3
|
+
* If true, the button group is disabled and cannot be interacted with.
|
|
4
|
+
*/
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* If true, the button group has no borders.
|
|
8
|
+
*/
|
|
9
|
+
borderless?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* If true, the button group an elevated appearance.
|
|
12
|
+
*/
|
|
13
|
+
elevated?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Custom set of classes to apply to the component.
|
|
16
|
+
*/
|
|
17
|
+
class?: string | unknown[];
|
|
18
|
+
};
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonGroupProps>, {
|
|
20
|
+
class: undefined;
|
|
21
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QButtonGroupProps>, {
|
|
22
|
+
class: undefined;
|
|
23
|
+
}>>>, {
|
|
24
|
+
class: string | unknown[];
|
|
25
|
+
}, {}>, {
|
|
26
|
+
default?(_: {}): any;
|
|
27
|
+
}>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
}> : P[K];
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=QButtonGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/QButtonGroup"],"names":[],"mappings":"AAYA;AAQC,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;AAyFF,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as s, toRef as o, openBlock as a, createElementBlock as r, normalizeClass as d, renderSlot as n } from "vue";
|
|
2
|
+
import { provideDefaults as p } from "../../composables/defaults.js";
|
|
3
|
+
const f = /* @__PURE__ */ s({
|
|
4
|
+
__name: "QButtonGroup",
|
|
5
|
+
props: {
|
|
6
|
+
disabled: { type: Boolean },
|
|
7
|
+
borderless: { type: Boolean },
|
|
8
|
+
elevated: { type: Boolean },
|
|
9
|
+
class: { default: void 0 }
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
const e = t;
|
|
13
|
+
return p({
|
|
14
|
+
QButton: {
|
|
15
|
+
bStyle: "secondary",
|
|
16
|
+
disabled: o(e, "disabled"),
|
|
17
|
+
borderless: o(e, "borderless"),
|
|
18
|
+
elevated: !1
|
|
19
|
+
}
|
|
20
|
+
}), (l, c) => (a(), r(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
class: d([
|
|
24
|
+
"q-btn-group",
|
|
25
|
+
{
|
|
26
|
+
"q-btn-group--elevated": e.elevated
|
|
27
|
+
},
|
|
28
|
+
e.class
|
|
29
|
+
])
|
|
30
|
+
},
|
|
31
|
+
[
|
|
32
|
+
n(l.$slots, "default")
|
|
33
|
+
],
|
|
34
|
+
2
|
|
35
|
+
/* CLASS */
|
|
36
|
+
));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
f as default
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonGroup/index.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,oBAAoB,CAAA;AAQ7C,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
type Option = {
|
|
2
|
+
key: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
export type QButtonToggleProps = {
|
|
7
|
+
/**
|
|
8
|
+
* The list of available options to display
|
|
9
|
+
*/
|
|
10
|
+
options: Array<Option>;
|
|
11
|
+
/**
|
|
12
|
+
* Indicates if the button toggle is disabled.
|
|
13
|
+
*/
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Indicates if the buttons' border should be removed.
|
|
17
|
+
*/
|
|
18
|
+
borderless?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates if the buttons should have an elevated appearance.
|
|
21
|
+
*/
|
|
22
|
+
elevated?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates if options can be deselected.
|
|
25
|
+
*/
|
|
26
|
+
required?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Custom set of classes to apply to the component.
|
|
29
|
+
*/
|
|
30
|
+
class?: string | unknown[];
|
|
31
|
+
};
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
33
|
+
modelValue: import('vue').PropType<string>;
|
|
34
|
+
options: {
|
|
35
|
+
type: import('vue').PropType<Option[]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: import('vue').PropType<boolean>;
|
|
40
|
+
};
|
|
41
|
+
borderless: {
|
|
42
|
+
type: import('vue').PropType<boolean>;
|
|
43
|
+
};
|
|
44
|
+
elevated: {
|
|
45
|
+
type: import('vue').PropType<boolean>;
|
|
46
|
+
};
|
|
47
|
+
required: {
|
|
48
|
+
type: import('vue').PropType<boolean>;
|
|
49
|
+
};
|
|
50
|
+
class: {
|
|
51
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
52
|
+
};
|
|
53
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
54
|
+
modelValue: import('vue').PropType<string>;
|
|
55
|
+
options: {
|
|
56
|
+
type: import('vue').PropType<Option[]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
disabled: {
|
|
60
|
+
type: import('vue').PropType<boolean>;
|
|
61
|
+
};
|
|
62
|
+
borderless: {
|
|
63
|
+
type: import('vue').PropType<boolean>;
|
|
64
|
+
};
|
|
65
|
+
elevated: {
|
|
66
|
+
type: import('vue').PropType<boolean>;
|
|
67
|
+
};
|
|
68
|
+
required: {
|
|
69
|
+
type: import('vue').PropType<boolean>;
|
|
70
|
+
};
|
|
71
|
+
class: {
|
|
72
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
73
|
+
};
|
|
74
|
+
}>>, {}, {}>, Partial<Record<string, (_: {}) => any>>>;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=QButtonToggle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QButtonToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/QButtonToggle"],"names":[],"mappings":"AAkBA;AAQA,KAAK,MAAM,GAAG;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GF,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as c, mergeModels as u, useModel as m, openBlock as s, createBlock as r, unref as d, normalizeClass as f, withCtx as n, createElementBlock as b, Fragment as y, renderList as k, renderSlot as v } from "vue";
|
|
2
|
+
import p from "../QButton/QButton.vue.js";
|
|
3
|
+
import _ from "../QButtonGroup/QButtonGroup.vue.js";
|
|
4
|
+
const V = /* @__PURE__ */ c({
|
|
5
|
+
__name: "QButtonToggle",
|
|
6
|
+
props: /* @__PURE__ */ u({
|
|
7
|
+
options: {},
|
|
8
|
+
disabled: { type: Boolean },
|
|
9
|
+
borderless: { type: Boolean },
|
|
10
|
+
elevated: { type: Boolean },
|
|
11
|
+
required: { type: Boolean },
|
|
12
|
+
class: {}
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(o) {
|
|
19
|
+
const e = o, a = m(o, "modelValue");
|
|
20
|
+
function i(t) {
|
|
21
|
+
a.value === t.key && !e.required ? a.value = void 0 : a.value = t.key;
|
|
22
|
+
}
|
|
23
|
+
return (t, B) => (s(), r(d(_), {
|
|
24
|
+
"b-style": "secondary",
|
|
25
|
+
class: f(e.class),
|
|
26
|
+
disabled: e.disabled,
|
|
27
|
+
borderless: e.borderless,
|
|
28
|
+
elevated: e.elevated
|
|
29
|
+
}, {
|
|
30
|
+
default: n(() => [
|
|
31
|
+
(s(!0), b(
|
|
32
|
+
y,
|
|
33
|
+
null,
|
|
34
|
+
k(e.options, (l) => (s(), r(d(p), {
|
|
35
|
+
key: l.key,
|
|
36
|
+
title: l.title,
|
|
37
|
+
label: l.label,
|
|
38
|
+
active: a.value === l.key,
|
|
39
|
+
onClick: () => i(l)
|
|
40
|
+
}, {
|
|
41
|
+
default: n(() => [
|
|
42
|
+
v(t.$slots, l.key)
|
|
43
|
+
]),
|
|
44
|
+
_: 2
|
|
45
|
+
/* DYNAMIC */
|
|
46
|
+
}, 1032, ["title", "label", "active", "onClick"]))),
|
|
47
|
+
128
|
|
48
|
+
/* KEYED_FRAGMENT */
|
|
49
|
+
))
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
/* FORWARDED */
|
|
53
|
+
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
V as default
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QButtonToggle/index.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAQ/C,OAAO,EAAE,aAAa,EAAE,CAAA"}
|