@quidgest/ui 0.14.11 → 0.14.12
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 +1 -0
- package/dist/ui.css +74 -39
- package/dist/ui.esm.js +1731 -1578
- package/dist/ui.js +24 -24
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +170 -163
- package/dist/ui.scss +61 -40
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +2 -2
- package/esm/components/QAccordion/index.d.ts +33 -2
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +7 -7
- package/esm/components/QBadge/index.d.ts +39 -2
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +0 -2
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +18 -18
- package/esm/components/QButton/index.d.ts +36 -2
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +1 -3
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +7 -7
- package/esm/components/QButtonGroup/index.d.ts +17 -2
- package/esm/components/QButtonGroup/index.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +1 -1
- package/esm/components/QButtonToggle/index.d.ts +31 -2
- package/esm/components/QButtonToggle/index.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts +4 -9
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +34 -34
- package/esm/components/QCard/index.d.ts +34 -2
- package/esm/components/QCard/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -3
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +19 -19
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts +1 -3
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -7
- package/esm/components/QCheckbox/index.d.ts +79 -2
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +8 -4
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +2 -3
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +54 -60
- package/esm/components/QCollapsible/index.d.ts +47 -2
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +5 -4
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.js +4 -5
- package/esm/components/QColorPicker/QColorPicker.d.ts +34 -0
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -0
- package/esm/components/QColorPicker/QColorPicker.vue.js +97 -0
- package/esm/components/QColorPicker/QColorPicker.vue2.js +4 -0
- package/esm/components/QColorPicker/index.d.ts +48 -0
- package/esm/components/QColorPicker/index.d.ts.map +1 -0
- package/esm/components/QColorPicker/index.js +6 -0
- package/esm/components/QColorPicker/types.d.ts +44 -0
- package/esm/components/QColorPicker/types.d.ts.map +1 -0
- package/esm/components/QColorPicker/types.js +6 -0
- package/esm/components/QCombobox/QCombobox.d.ts +682 -82
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +156 -174
- package/esm/components/QCombobox/index.d.ts +1395 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +14 -6
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QCombobox/types.js +9 -11
- package/esm/components/QDialog/QDialog.d.ts +3 -7
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +33 -33
- package/esm/components/QDialog/index.d.ts +56 -2
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +5 -3
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +2 -2
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +232 -11
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +5 -5
- package/esm/components/QDropdownMenu/index.d.ts +12 -2
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +5 -4
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +5 -7
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +25 -25
- package/esm/components/QField/index.d.ts +37 -2
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.d.ts +0 -2
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +8 -8
- package/esm/components/QIcon/QIconFont.d.ts +0 -3
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +10 -10
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +4 -4
- package/esm/components/QIcon/QIconSvg.d.ts +0 -2
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +10 -10
- package/esm/components/QIcon/index.d.ts +16 -8
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +0 -5
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
- package/esm/components/QInputGroup/index.d.ts +26 -2
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts +1 -3
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +3 -3
- package/esm/components/QLineLoader/index.d.ts +1 -2
- package/esm/components/QLineLoader/index.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +70 -9
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +21 -21
- package/esm/components/QList/QListItem.d.ts +0 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +20 -20
- package/esm/components/QList/QListItemGroup.d.ts +1 -3
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/QListItemGroup.vue.js +6 -6
- package/esm/components/QList/index.d.ts +189 -6
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +8 -3
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +4 -4
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +125 -115
- package/esm/components/QOverlay/index.d.ts +78 -2
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +0 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +6 -6
- package/esm/components/QPopover/index.d.ts +49 -2
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +8 -5
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +42 -41
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +0 -1
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +9 -9
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +0 -1
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +9 -9
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +15 -18
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +59 -54
- package/esm/components/QPropertyList/index.d.ts +117 -8
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/types.d.ts +8 -4
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +0 -2
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +11 -11
- package/esm/components/QRemoveScrollBar/index.d.ts +23 -2
- package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +309 -29
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +112 -129
- package/esm/components/QSelect/index.d.ts +314 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +13 -5
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSelect/types.js +9 -11
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -5
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +13 -13
- package/esm/components/QSkeletonLoader/index.d.ts +1 -2
- package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +0 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +8 -8
- package/esm/components/QSpinnerLoader/index.d.ts +3 -2
- package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +79 -22
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +18 -18
- package/esm/components/QTextField/index.d.ts +122 -2
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -8
- package/esm/components/QThemeProvider/index.d.ts +17 -2
- package/esm/components/QThemeProvider/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/types.d.ts +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +0 -4
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +17 -17
- package/esm/components/QTooltip/index.d.ts +62 -2
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.d.ts +14 -0
- package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -0
- package/esm/components/__internal__/QChevron/QChevron.vue.js +23 -0
- package/esm/components/__internal__/QChevron/QChevron.vue2.js +4 -0
- package/esm/components/__internal__/QChevron/index.d.ts +13 -0
- package/esm/components/__internal__/QChevron/index.d.ts.map +1 -0
- package/esm/components/__internal__/QChevron/index.js +6 -0
- package/esm/components/__internal__/QChevron/types.d.ts +16 -0
- package/esm/components/__internal__/QChevron/types.d.ts.map +1 -0
- package/esm/components/__internal__/QChevron/types.js +8 -0
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts +11 -0
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -0
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -0
- package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +4 -0
- package/esm/components/__internal__/QClearButton/index.d.ts +12 -0
- package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -0
- package/esm/components/__internal__/QClearButton/index.js +6 -0
- package/esm/components/__internal__/QClearButton/types.d.ts +23 -0
- package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -0
- package/esm/components/__internal__/QClearButton/types.js +11 -0
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +48 -46
- package/esm/composables/group.js +5 -5
- package/esm/composables/theme.d.ts +54 -6
- package/esm/composables/theme.d.ts.map +1 -1
- package/esm/composables/theme.js +10 -12
- package/esm/framework.d.ts +17 -20
- package/esm/framework.d.ts.map +1 -1
- package/esm/framework.js +22 -25
- package/esm/index.d.ts +1 -0
- package/esm/templates/theme.js +16 -16
- package/esm/utils/color.d.ts +2 -1
- package/esm/utils/color.d.ts.map +1 -1
- package/esm/utils/color.js +19 -19
- package/esm/utils/setupPropsProxy.d.ts +22 -9
- package/esm/utils/setupPropsProxy.d.ts.map +1 -1
- package/esm/utils/setupPropsProxy.js +22 -22
- package/esm/utils/theme.d.ts +13 -1
- package/esm/utils/theme.d.ts.map +1 -1
- package/esm/utils/theme.js +40 -24
- package/package.json +18 -22
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as r, mergeModels as l, useModel as s, createBlock as c, openBlock as t, unref as a, mergeProps as m } from "vue";
|
|
2
|
+
import { DEFAULT_ICONS as d } from "./types.js";
|
|
3
|
+
import { QIcon as p } from "../../QIcon/index.js";
|
|
4
|
+
const _ = /* @__PURE__ */ r({
|
|
5
|
+
__name: "QChevron",
|
|
6
|
+
props: /* @__PURE__ */ l({
|
|
7
|
+
class: {},
|
|
8
|
+
icons: { default: () => d }
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: { type: Boolean },
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(e) {
|
|
15
|
+
const o = e, n = s(e, "modelValue");
|
|
16
|
+
return (u, i) => (t(), c(a(p), m({
|
|
17
|
+
class: ["q-chevron", { "q-chevron--expanded": n.value }]
|
|
18
|
+
}, o.icons.chevron), null, 16, ["class"]));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
_ as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const QChevron: import('vue').DefineComponent<{
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
} & import('./types').QChevronProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (value: boolean) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
+
modelValue?: boolean;
|
|
7
|
+
} & import('./types').QChevronProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export { QChevron };
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;6EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type QChevronProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Custom set of classes to apply to the component.
|
|
4
|
+
*/
|
|
5
|
+
class?: string | unknown[];
|
|
6
|
+
/**
|
|
7
|
+
* Custom icon configurations.
|
|
8
|
+
*/
|
|
9
|
+
icons?: typeof DEFAULT_ICONS;
|
|
10
|
+
};
|
|
11
|
+
export declare const DEFAULT_ICONS: {
|
|
12
|
+
chevron: {
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QChevron/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DEFAULT_ICONS, DEFAULT_TEXTS, QClearButtonProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<QClearButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
click: (event: Event) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<QClearButtonProps> & Readonly<{
|
|
5
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
icons: typeof DEFAULT_ICONS;
|
|
8
|
+
texts: typeof DEFAULT_TEXTS;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=QClearButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QClearButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/QClearButton.vue"],"names":[],"mappings":"AAWA;AAsCC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAOtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;AAgGjD,wBASG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as n, createBlock as s, openBlock as i, unref as o, withCtx as m, createVNode as p, normalizeProps as u, guardReactiveProps as f } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as d, DEFAULT_ICONS as _ } from "./types.js";
|
|
3
|
+
import { QButton as b } from "../../QButton/index.js";
|
|
4
|
+
import { QIcon as x } from "../../QIcon/index.js";
|
|
5
|
+
const Q = /* @__PURE__ */ n({
|
|
6
|
+
__name: "QClearButton",
|
|
7
|
+
props: {
|
|
8
|
+
class: {},
|
|
9
|
+
icons: { default: () => _ },
|
|
10
|
+
texts: { default: () => d }
|
|
11
|
+
},
|
|
12
|
+
emits: ["click"],
|
|
13
|
+
setup(r, { emit: a }) {
|
|
14
|
+
const e = r, c = a, l = (t) => c("click", t);
|
|
15
|
+
return (t, k) => (i(), s(o(b), {
|
|
16
|
+
class: "q-clear-btn",
|
|
17
|
+
"aria-label": e.texts.clearValue,
|
|
18
|
+
"b-style": "plain",
|
|
19
|
+
borderless: "",
|
|
20
|
+
tabindex: "-1",
|
|
21
|
+
onClick: l
|
|
22
|
+
}, {
|
|
23
|
+
default: m(() => [
|
|
24
|
+
p(
|
|
25
|
+
o(x),
|
|
26
|
+
u(f(e.icons.clear)),
|
|
27
|
+
null,
|
|
28
|
+
16
|
|
29
|
+
/* FULL_PROPS */
|
|
30
|
+
)
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
/* STABLE */
|
|
34
|
+
}, 8, ["aria-label"]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
Q as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QClearButtonProps } from './types';
|
|
2
|
+
declare const QClearButton: import('vue').DefineComponent<QClearButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
click: (event: Event) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<QClearButtonProps> & Readonly<{
|
|
5
|
+
onClick?: ((event: Event) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
icons: typeof import('./types').DEFAULT_ICONS;
|
|
8
|
+
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
10
|
+
export { QClearButton };
|
|
11
|
+
export type { QClearButtonProps };
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,QAAA,MAAM,YAAY;;;;;;;2FAAiC,CAAA;AAGnD,OAAO,EAAE,YAAY,EAAE,CAAA;AAGvB,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type QClearButtonProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Custom set of classes to apply to the component.
|
|
4
|
+
*/
|
|
5
|
+
class?: string | unknown[];
|
|
6
|
+
/**
|
|
7
|
+
* Custom icon configurations.
|
|
8
|
+
*/
|
|
9
|
+
icons?: typeof DEFAULT_ICONS;
|
|
10
|
+
/**
|
|
11
|
+
* Custom text configurations.
|
|
12
|
+
*/
|
|
13
|
+
texts?: typeof DEFAULT_TEXTS;
|
|
14
|
+
};
|
|
15
|
+
export declare const DEFAULT_TEXTS: {
|
|
16
|
+
clearValue: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const DEFAULT_ICONS: {
|
|
19
|
+
clear: {
|
|
20
|
+
icon: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/__internal__/QClearButton/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;CAEQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;CAIM,CAAA"}
|
|
@@ -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,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
|
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,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
|
package/esm/components/index.js
CHANGED
|
@@ -2,59 +2,61 @@ import { QAccordion as e } from "./QAccordion/index.js";
|
|
|
2
2
|
import { QBadge as p } from "./QBadge/index.js";
|
|
3
3
|
import { QButton as m } from "./QButton/index.js";
|
|
4
4
|
import { QButtonGroup as f } from "./QButtonGroup/index.js";
|
|
5
|
-
import { QButtonToggle as
|
|
5
|
+
import { QButtonToggle as n } from "./QButtonToggle/index.js";
|
|
6
6
|
import { QCard as L } from "./QCard/index.js";
|
|
7
7
|
import { QCheckbox as a } from "./QCheckbox/index.js";
|
|
8
|
-
import { QCollapsible as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
8
|
+
import { QCollapsible as u } from "./QCollapsible/index.js";
|
|
9
|
+
import { QColorPicker as I } from "./QColorPicker/index.js";
|
|
10
|
+
import { QCombobox as g } from "./QCombobox/index.js";
|
|
11
|
+
import { QDialog as C } from "./QDialog/index.js";
|
|
12
|
+
import { QDropdownMenu as v } from "./QDropdownMenu/index.js";
|
|
13
|
+
import { QField as G } from "./QField/index.js";
|
|
14
|
+
import { QIcon as T, QIconFont as k, QIconImg as F, QIconSvg as h } from "./QIcon/index.js";
|
|
15
|
+
import { QInputGroup as D } from "./QInputGroup/index.js";
|
|
16
|
+
import { QLineLoader as M } from "./QLineLoader/index.js";
|
|
17
|
+
import { QList as R, QListItem as j, QListItemGroup as q } from "./QList/index.js";
|
|
18
|
+
import { QOverlay as E } from "./QOverlay/index.js";
|
|
19
|
+
import { QPopover as J } from "./QPopover/index.js";
|
|
20
|
+
import { QPropertyList as N, QPropertyListGroup as U, QPropertyListPanel as V, QPropertyListRow as W } from "./QPropertyList/index.js";
|
|
21
|
+
import { QSelect as Y } from "./QSelect/index.js";
|
|
22
|
+
import { QSkeletonLoader as _ } from "./QSkeletonLoader/index.js";
|
|
23
|
+
import { QSpinnerLoader as oo } from "./QSpinnerLoader/index.js";
|
|
24
|
+
import { QTextField as eo } from "./QTextField/index.js";
|
|
25
|
+
import { QThemeProvider as po } from "./QThemeProvider/index.js";
|
|
26
|
+
import { QTooltip as mo } from "./QTooltip/index.js";
|
|
26
27
|
export {
|
|
27
28
|
e as QAccordion,
|
|
28
29
|
p as QBadge,
|
|
29
30
|
m as QButton,
|
|
30
31
|
f as QButtonGroup,
|
|
31
|
-
|
|
32
|
+
n as QButtonToggle,
|
|
32
33
|
L as QCard,
|
|
33
34
|
a as QCheckbox,
|
|
34
|
-
|
|
35
|
-
I as
|
|
36
|
-
g as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
G as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
F as
|
|
43
|
-
|
|
44
|
-
D as
|
|
45
|
-
M as
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
q as
|
|
49
|
-
E as
|
|
50
|
-
J as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
W as
|
|
55
|
-
Y as
|
|
56
|
-
_ as
|
|
57
|
-
oo as
|
|
58
|
-
eo as
|
|
59
|
-
po as
|
|
35
|
+
u as QCollapsible,
|
|
36
|
+
I as QColorPicker,
|
|
37
|
+
g as QCombobox,
|
|
38
|
+
C as QDialog,
|
|
39
|
+
v as QDropdownMenu,
|
|
40
|
+
G as QField,
|
|
41
|
+
T as QIcon,
|
|
42
|
+
k as QIconFont,
|
|
43
|
+
F as QIconImg,
|
|
44
|
+
h as QIconSvg,
|
|
45
|
+
D as QInputGroup,
|
|
46
|
+
M as QLineLoader,
|
|
47
|
+
R as QList,
|
|
48
|
+
j as QListItem,
|
|
49
|
+
q as QListItemGroup,
|
|
50
|
+
E as QOverlay,
|
|
51
|
+
J as QPopover,
|
|
52
|
+
N as QPropertyList,
|
|
53
|
+
U as QPropertyListGroup,
|
|
54
|
+
V as QPropertyListPanel,
|
|
55
|
+
W as QPropertyListRow,
|
|
56
|
+
Y as QSelect,
|
|
57
|
+
_ as QSkeletonLoader,
|
|
58
|
+
oo as QSpinnerLoader,
|
|
59
|
+
eo as QTextField,
|
|
60
|
+
po as QThemeProvider,
|
|
61
|
+
mo as QTooltip
|
|
60
62
|
};
|
package/esm/composables/group.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { inject as c, computed as t, ref as n, watch as s, provide as f } from "vue";
|
|
2
2
|
const i = "q-group";
|
|
3
3
|
function p(u) {
|
|
4
4
|
var l, v;
|
|
5
5
|
const e = {
|
|
6
|
-
active:
|
|
6
|
+
active: n(((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 s(
|
|
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;
|
|
16
16
|
}
|
|
17
|
-
),
|
|
17
|
+
), f(i, e), e;
|
|
18
18
|
}
|
|
19
19
|
function g(u) {
|
|
20
|
-
const e =
|
|
20
|
+
const e = c(i, void 0);
|
|
21
21
|
if (!e) return;
|
|
22
22
|
const l = t(() => {
|
|
23
23
|
var a;
|
|
@@ -1,5 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ComputedRef, DeepReadonly, InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { ColorScheme } from '../utils/color';
|
|
3
|
+
export declare const ThemeSymbol: InjectionKey<ThemeInstance>;
|
|
4
|
+
/**
|
|
5
|
+
* Represents the two available theme modes for the application: light and dark.
|
|
6
|
+
*/
|
|
7
|
+
export type ThemeMode = 'light' | 'dark';
|
|
8
|
+
/**
|
|
9
|
+
* Represents the theme configuration for the application, including the default theme
|
|
10
|
+
* and a list of available themes with customizable color schemes.
|
|
11
|
+
*/
|
|
12
|
+
export type AppThemes = {
|
|
13
|
+
/** The name of the default theme to be applied initially. */
|
|
14
|
+
defaultTheme: string;
|
|
15
|
+
/** An array of theme definitions available for the application. */
|
|
16
|
+
themes: Array<{
|
|
17
|
+
/** The name of the theme. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** The mode of the theme (e.g., light or dark). */
|
|
20
|
+
mode: ThemeMode;
|
|
21
|
+
/** An optional object to customize the color scheme of the theme. */
|
|
22
|
+
colors?: Partial<ColorScheme>;
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Defines the structure of a theme, including its name, mode, and color scheme.
|
|
27
|
+
*/
|
|
28
|
+
export type ThemeDefinition = {
|
|
29
|
+
/** The unique name of the theme. */
|
|
30
|
+
name: string;
|
|
31
|
+
/** The mode of the theme (e.g., light or dark). */
|
|
32
|
+
mode: ThemeMode;
|
|
33
|
+
/** The color scheme associated with the theme. */
|
|
34
|
+
scheme: ColorScheme;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Represents an instance of a theme, containing reactive properties for
|
|
38
|
+
* managing theme state and accessing theme definitions.
|
|
39
|
+
*/
|
|
40
|
+
export type ThemeInstance = {
|
|
41
|
+
/** The reactive reference to the active theme's name. */
|
|
42
|
+
readonly name: Ref<string>;
|
|
43
|
+
/** A computed reference to the current theme definition. */
|
|
44
|
+
readonly current: DeepReadonly<ComputedRef<ThemeDefinition>>;
|
|
45
|
+
/** An array of available theme definitions. */
|
|
46
|
+
readonly themes: DeepReadonly<ThemeDefinition[]>;
|
|
47
|
+
};
|
|
3
48
|
/**
|
|
4
49
|
* Custom hook for accessing the theme configuration in context.
|
|
5
50
|
*
|
|
@@ -7,11 +52,14 @@ export declare const THEME_SYMBOL = "q-theme";
|
|
|
7
52
|
*/
|
|
8
53
|
export declare function useTheme(): ThemeInstance;
|
|
9
54
|
/**
|
|
10
|
-
* Provides a theme
|
|
55
|
+
* Provides and manages a theme instance based on the specified theme name.
|
|
56
|
+
*
|
|
57
|
+
* This function retrieves the available themes from the current theme context,
|
|
58
|
+
* creates a new theme instance, and provides it to the Vue dependency injection system.
|
|
11
59
|
*
|
|
12
|
-
* @param name -
|
|
60
|
+
* @param name - A reactive reference (`Ref<string>`) representing the name of the theme to activate.
|
|
13
61
|
*
|
|
14
|
-
* @returns The
|
|
62
|
+
* @returns The newly created and provided `ThemeInstance`.
|
|
15
63
|
*/
|
|
16
|
-
export declare function provideTheme(name: string): ThemeInstance;
|
|
64
|
+
export declare function provideTheme(name: Ref<string>): ThemeInstance;
|
|
17
65
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/composables/theme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAMhD,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,CAAyB,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAA;IAEpB,mEAAmE;IACnE,MAAM,EAAE,KAAK,CAAC;QACb,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAA;QAEZ,mDAAmD;QACnD,IAAI,EAAE,SAAS,CAAA;QAEf,qEAAqE;QACrE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAC7B,CAAC,CAAA;CACF,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IAEZ,mDAAmD;IACnD,IAAI,EAAE,SAAS,CAAA;IAEf,kDAAkD;IAClD,MAAM,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAE1B,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE5D,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC,eAAe,EAAE,CAAC,CAAA;CAChD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAAI,aAAa,CAQxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,aAAa,CAU7D"}
|
package/esm/composables/theme.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { createThemeInstance as r } from "../utils/theme.js";
|
|
2
|
+
import { inject as c, provide as h } from "vue";
|
|
3
|
+
const n = Symbol.for("q-theme");
|
|
4
|
+
function s() {
|
|
5
|
+
const e = c(n);
|
|
5
6
|
if (!e)
|
|
6
7
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
7
8
|
return e;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
-
const o =
|
|
11
|
-
activeTheme: m(e),
|
|
12
|
-
themes: o.themes
|
|
13
|
-
};
|
|
10
|
+
function u(e) {
|
|
11
|
+
const o = s(), m = o.themes, t = r(e, m);
|
|
14
12
|
return h(n, t), t;
|
|
15
13
|
}
|
|
16
14
|
export {
|
|
17
|
-
n as
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
n as ThemeSymbol,
|
|
16
|
+
u as provideTheme,
|
|
17
|
+
s as useTheme
|
|
20
18
|
};
|
package/esm/framework.d.ts
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import { Defaults } from './composables/defaults';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AppThemes } from './composables/theme';
|
|
3
|
+
import { Component, Plugin } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Configuration options for the Quidgest UI framework plugin.
|
|
6
|
+
*/
|
|
4
7
|
export type FrameworkConfig = {
|
|
8
|
+
/** An optional record of components to be registered globally in the application. */
|
|
5
9
|
components?: Record<string, Component>;
|
|
10
|
+
/** An optional configuration for the available themes and the default theme. */
|
|
6
11
|
themes?: AppThemes;
|
|
12
|
+
/** An optional object containing global default values for the application. */
|
|
7
13
|
defaults?: Defaults;
|
|
8
14
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export type ThemeDefinition = {
|
|
19
|
-
name: string;
|
|
20
|
-
mode: ThemeMode;
|
|
21
|
-
scheme: ColorScheme;
|
|
22
|
-
};
|
|
23
|
-
export type ThemeInstance = {
|
|
24
|
-
activeTheme: Ref<string>;
|
|
25
|
-
themes: ThemeDefinition[];
|
|
26
|
-
};
|
|
15
|
+
/**
|
|
16
|
+
* Creates the Quidgest UI framework plugin that installs components, sets up global defaults,
|
|
17
|
+
* and configures themes based on the provided configuration.
|
|
18
|
+
*
|
|
19
|
+
* @param config - The framework configuration, including components, defaults, and themes.
|
|
20
|
+
* Defaults to an empty object if no configuration is provided.
|
|
21
|
+
*
|
|
22
|
+
* @returns A Vue plugin (`Plugin`) with an `install` function to set up the framework.
|
|
23
|
+
*/
|
|
27
24
|
export declare function createFramework(config?: FrameworkConfig): Plugin;
|
|
28
25
|
//# sourceMappingURL=framework.d.ts.map
|
package/esm/framework.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAMjD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IAEtC,gFAAgF;IAChF,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CAiBpE"}
|
package/esm/framework.js
CHANGED
|
@@ -1,47 +1,44 @@
|
|
|
1
1
|
import { DEFAULTS_SYMBOL as c } from "./composables/defaults.js";
|
|
2
|
-
import {
|
|
3
|
-
import { defaultLightColorScheme as
|
|
4
|
-
import { ref as
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
2
|
+
import { ThemeSymbol as h } from "./composables/theme.js";
|
|
3
|
+
import { defaultLightColorScheme as l, defaultDarkColorScheme as i } from "./templates/theme.js";
|
|
4
|
+
import { ref as a, watch as f } from "vue";
|
|
5
|
+
import { createThemeInstance as d, generateRootStyle as u } from "./utils/theme.js";
|
|
6
|
+
function D(s = {}) {
|
|
7
7
|
return { install: (o) => {
|
|
8
|
-
const t =
|
|
9
|
-
for (const
|
|
10
|
-
o.component(
|
|
11
|
-
const e =
|
|
12
|
-
o.provide(c,
|
|
8
|
+
const t = s.components || {};
|
|
9
|
+
for (const n in t)
|
|
10
|
+
o.component(n, t[n]);
|
|
11
|
+
const e = s.defaults || {};
|
|
12
|
+
o.provide(c, a(e)), p(o, s.themes);
|
|
13
13
|
} };
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function p(s, m) {
|
|
16
16
|
const o = [];
|
|
17
17
|
let t;
|
|
18
|
-
if (!
|
|
18
|
+
if (!m)
|
|
19
19
|
t = "default", o.push({
|
|
20
20
|
name: t,
|
|
21
21
|
mode: "light",
|
|
22
|
-
scheme:
|
|
22
|
+
scheme: l
|
|
23
23
|
});
|
|
24
24
|
else
|
|
25
|
-
for (const e of
|
|
26
|
-
const r = { ...e.mode === "light" ?
|
|
25
|
+
for (const e of m.themes) {
|
|
26
|
+
const r = { ...e.mode === "light" ? l : i, ...e.colors };
|
|
27
27
|
o.push({
|
|
28
28
|
name: e.name,
|
|
29
29
|
mode: e.mode,
|
|
30
30
|
scheme: r
|
|
31
|
-
}), e.name ===
|
|
31
|
+
}), e.name === m.defaultTheme && (t = e.name);
|
|
32
32
|
}
|
|
33
33
|
if (t) {
|
|
34
|
-
const e =
|
|
35
|
-
|
|
36
|
-
themes: o
|
|
37
|
-
};
|
|
38
|
-
d(o), f(e.activeTheme, p, { immediate: !0 }), m.provide(i, e);
|
|
34
|
+
const e = a(t), n = d(e, o);
|
|
35
|
+
u(o), f(n.name, S, { immediate: !0 }), s.provide(h, n);
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
|
-
function
|
|
42
|
-
const
|
|
43
|
-
|
|
38
|
+
function S(s) {
|
|
39
|
+
const m = document.documentElement, t = Array.from(m.classList).filter((e) => !e.startsWith("q-theme"));
|
|
40
|
+
m.className = t.join(" "), m.classList.add(`q-theme--${s}`);
|
|
44
41
|
}
|
|
45
42
|
export {
|
|
46
|
-
|
|
43
|
+
D as createFramework
|
|
47
44
|
};
|
package/esm/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
|
|
|
15
15
|
QCard: typeof import('@quidgest/ui/components')['QCard']
|
|
16
16
|
QCheckbox: typeof import('@quidgest/ui/components')['QCheckbox']
|
|
17
17
|
QCollapsible: typeof import('@quidgest/ui/components')['QCollapsible']
|
|
18
|
+
QColorPicker: typeof import('@quidgest/ui/components')['QColorPicker']
|
|
18
19
|
QCombobox: typeof import('@quidgest/ui/components')['QCombobox']
|
|
19
20
|
QDialog: typeof import('@quidgest/ui/components')['QDialog']
|
|
20
21
|
QDropdownMenu: typeof import('@quidgest/ui/components')['QDropdownMenu']
|