@quidgest/ui 0.14.10 → 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 +2 -0
- package/dist/ui.css +95 -39
- package/dist/ui.esm.js +1931 -1578
- package/dist/ui.js +29 -29
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +181 -158
- package/dist/ui.scss +83 -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 +686 -81
- 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 +16 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +38 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.vue2.js +4 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +369 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +153 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue2.js +4 -0
- package/esm/components/QDropdownMenu/index.d.ts +14 -0
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/index.js +6 -0
- package/esm/components/QDropdownMenu/types.d.ts +96 -0
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/types.js +8 -0
- 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 +138 -3
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +117 -99
- package/esm/components/QList/QListItem.d.ts +2 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +39 -37
- 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 -10
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +5 -4
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +151 -136
- package/esm/components/QOverlay/index.d.ts +78 -2
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +4 -0
- package/esm/components/QOverlay/types.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 +313 -28
- 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 +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +48 -44
- package/esm/composables/group.js +5 -5
- package/esm/composables/overlay.d.ts +4 -0
- package/esm/composables/overlay.d.ts.map +1 -1
- package/esm/composables/overlay.js +69 -62
- 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 +2 -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 +19 -54
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -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"}
|
|
@@ -6,8 +6,10 @@ export * from './QButtonToggle';
|
|
|
6
6
|
export * from './QCard';
|
|
7
7
|
export * from './QCheckbox';
|
|
8
8
|
export * from './QCollapsible';
|
|
9
|
+
export * from './QColorPicker';
|
|
9
10
|
export * from './QCombobox';
|
|
10
11
|
export * from './QDialog';
|
|
12
|
+
export * from './QDropdownMenu';
|
|
11
13
|
export * from './QField';
|
|
12
14
|
export * from './QIcon';
|
|
13
15
|
export * from './QInputGroup';
|
|
@@ -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,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
|
@@ -4,24 +4,26 @@ import { QButton as m } from "./QButton/index.js";
|
|
|
4
4
|
import { QButtonGroup as f } from "./QButtonGroup/index.js";
|
|
5
5
|
import { QButtonToggle as n } from "./QButtonToggle/index.js";
|
|
6
6
|
import { QCard as L } from "./QCard/index.js";
|
|
7
|
-
import { QCheckbox as
|
|
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 {
|
|
7
|
+
import { QCheckbox as a } from "./QCheckbox/index.js";
|
|
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";
|
|
25
27
|
export {
|
|
26
28
|
e as QAccordion,
|
|
27
29
|
p as QBadge,
|
|
@@ -29,30 +31,32 @@ export {
|
|
|
29
31
|
f as QButtonGroup,
|
|
30
32
|
n as QButtonToggle,
|
|
31
33
|
L as QCard,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
I as
|
|
35
|
-
g as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
F as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
j as
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
J as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
W as
|
|
54
|
-
Y as
|
|
55
|
-
_ as
|
|
56
|
-
oo as
|
|
57
|
-
eo as
|
|
34
|
+
a as QCheckbox,
|
|
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
|
|
58
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;
|
|
@@ -43,6 +43,10 @@ export type ComputePositionOptions = {
|
|
|
43
43
|
* The offset to fine-tune the positioning of the overlay relative to the anchor element.
|
|
44
44
|
*/
|
|
45
45
|
offset?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The offset to fine-tune the positioning of the overlay relative to the anchor element (opposite to main axis).
|
|
48
|
+
*/
|
|
49
|
+
crossOffset?: number;
|
|
46
50
|
/**
|
|
47
51
|
* Whether to compute the position of the overlay arrow.
|
|
48
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/composables/overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AAEvC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;CACpB;AAKD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC9B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/composables/overlay.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAA;AAE5B;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AAEvC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACT;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;CACpB;AAKD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC9B,qBAAqB,CAkCvB;AAmQD,gBAAgB;AAEhB;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAGtD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAGrF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAE7D"}
|
|
@@ -1,130 +1,137 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
3
|
-
let
|
|
1
|
+
function $(t, i, n, e) {
|
|
2
|
+
const o = (e == null ? void 0 : e.offset) ?? 0, r = (e == null ? void 0 : e.crossOffset) ?? 0, g = (e == null ? void 0 : e.placement) ?? "bottom", s = t.getBoundingClientRect(), u = i.getBoundingClientRect(), d = n == null ? void 0 : n.getBoundingClientRect(), h = C(s, u, g, o), l = I(s, u, h), b = y(l, h, o), p = O(b, h, r), c = A(p, u, h);
|
|
3
|
+
let w;
|
|
4
4
|
if (e != null && e.arrow) {
|
|
5
|
-
if (!
|
|
5
|
+
if (!d)
|
|
6
6
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
7
|
-
|
|
7
|
+
w = k(c, s, u, d, h);
|
|
8
8
|
}
|
|
9
|
-
return { overlayCoords:
|
|
9
|
+
return { overlayCoords: c, arrowCoords: w, placement: h };
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
if (x(
|
|
14
|
-
const
|
|
11
|
+
function C(t, i, n, e) {
|
|
12
|
+
const o = a(t, i, n, e);
|
|
13
|
+
if (x(o)) {
|
|
14
|
+
const r = f(n), s = {
|
|
15
15
|
top: "bottom",
|
|
16
16
|
bottom: "top",
|
|
17
17
|
left: "right",
|
|
18
18
|
right: "left"
|
|
19
|
-
}[
|
|
19
|
+
}[r], u = a(
|
|
20
20
|
t,
|
|
21
21
|
i,
|
|
22
22
|
s,
|
|
23
23
|
e
|
|
24
24
|
);
|
|
25
|
-
if (x(
|
|
25
|
+
if (x(u))
|
|
26
26
|
return n;
|
|
27
|
-
const
|
|
28
|
-
return
|
|
27
|
+
const d = S(n);
|
|
28
|
+
return d ? `${s}-${d}` : s;
|
|
29
29
|
}
|
|
30
30
|
return n;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
const e =
|
|
34
|
-
return e === "x" ?
|
|
32
|
+
function A(t, i, n) {
|
|
33
|
+
const e = m(n), o = (g, s, u) => Math.min(Math.max(g, s), u), r = { ...t };
|
|
34
|
+
return e === "x" ? r.x = o(t.x, 8, window.innerWidth - i.width - 8) : r.y = o(t.y, 8, window.innerHeight - i.height - 8), r;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const e =
|
|
36
|
+
function y(t, i, n) {
|
|
37
|
+
const e = f(i);
|
|
38
38
|
return {
|
|
39
39
|
x: t.x + (e === "left" ? -n : e === "right" ? n : 0),
|
|
40
40
|
y: t.y + (e === "top" ? -n : e === "bottom" ? n : 0)
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
function O(t, i, n) {
|
|
44
|
+
const e = f(i);
|
|
45
|
+
return {
|
|
46
|
+
x: t.x + (e === "top" || e === "bottom" ? n : 0),
|
|
47
|
+
y: t.y + (e === "right" || e === "left" ? n : 0)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function k(t, i, n, e, o) {
|
|
51
|
+
if (m(o) === "y") {
|
|
52
|
+
const g = i.top + i.height / 2, s = t.y + n.height / 2, u = s - g, d = n.height / 2 - u - e.height / 2 + 2;
|
|
53
|
+
if (d > 0 && d < n.height - e.height)
|
|
47
54
|
return {
|
|
48
|
-
y:
|
|
55
|
+
y: d
|
|
49
56
|
};
|
|
50
57
|
} else {
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
58
|
+
const g = i.left + i.width / 2, s = t.x + n.width / 2, u = s - g, d = n.width / 2 - u - e.width / 2 + 2;
|
|
59
|
+
if (d > 0 && d < n.width - e.width)
|
|
53
60
|
return {
|
|
54
|
-
x:
|
|
61
|
+
x: d
|
|
55
62
|
};
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
|
-
function
|
|
59
|
-
const [e,
|
|
65
|
+
function I(t, i, n) {
|
|
66
|
+
const [e, o] = n.split("-"), r = t.x + t.width / 2 - i.width / 2, g = t.y + t.height / 2 - i.height / 2;
|
|
60
67
|
let s;
|
|
61
68
|
switch (e) {
|
|
62
69
|
case "top":
|
|
63
|
-
s = { x:
|
|
70
|
+
s = { x: r, y: t.y - i.height };
|
|
64
71
|
break;
|
|
65
72
|
case "bottom":
|
|
66
|
-
s = { x:
|
|
73
|
+
s = { x: r, y: t.y + t.height };
|
|
67
74
|
break;
|
|
68
75
|
case "left":
|
|
69
|
-
s = { x: t.x - i.width, y:
|
|
76
|
+
s = { x: t.x - i.width, y: g };
|
|
70
77
|
break;
|
|
71
78
|
case "right":
|
|
72
|
-
s = { x: t.x + t.width, y:
|
|
79
|
+
s = { x: t.x + t.width, y: g };
|
|
73
80
|
break;
|
|
74
81
|
default:
|
|
75
82
|
throw new Error(`[Quidgest UI] Invalid placement value: ${n}`);
|
|
76
83
|
}
|
|
77
|
-
if (!
|
|
84
|
+
if (!o)
|
|
78
85
|
return s;
|
|
79
|
-
const
|
|
80
|
-
switch (
|
|
86
|
+
const d = m(n) === "y" ? "height" : "width", h = m(n), l = t[d] / 2 - i[d] / 2;
|
|
87
|
+
switch (o) {
|
|
81
88
|
case "start":
|
|
82
|
-
s[h] -=
|
|
89
|
+
s[h] -= l;
|
|
83
90
|
break;
|
|
84
91
|
case "end":
|
|
85
|
-
s[h] +=
|
|
92
|
+
s[h] += l;
|
|
86
93
|
break;
|
|
87
94
|
default:
|
|
88
|
-
throw new Error(`[Quidgest UI] Invalid alignment value: ${
|
|
95
|
+
throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
|
|
89
96
|
}
|
|
90
97
|
return s;
|
|
91
98
|
}
|
|
92
|
-
function
|
|
93
|
-
const
|
|
94
|
-
let
|
|
95
|
-
switch (
|
|
99
|
+
function a(t, i, n, e) {
|
|
100
|
+
const o = f(n);
|
|
101
|
+
let r = 0;
|
|
102
|
+
switch (o) {
|
|
96
103
|
case "top":
|
|
97
|
-
|
|
104
|
+
r = t.top - (i.height + e);
|
|
98
105
|
break;
|
|
99
106
|
case "bottom":
|
|
100
|
-
|
|
107
|
+
r = window.innerHeight - t.bottom - (i.height + e);
|
|
101
108
|
break;
|
|
102
109
|
case "left":
|
|
103
|
-
|
|
110
|
+
r = t.left - (i.width + e);
|
|
104
111
|
break;
|
|
105
112
|
case "right":
|
|
106
|
-
|
|
113
|
+
r = window.innerWidth - t.right - (i.width + e);
|
|
107
114
|
break;
|
|
108
115
|
default:
|
|
109
|
-
throw new Error(`[Quidgest UI] Invalid side value: ${
|
|
116
|
+
throw new Error(`[Quidgest UI] Invalid side value: ${o}`);
|
|
110
117
|
}
|
|
111
|
-
return
|
|
118
|
+
return r;
|
|
112
119
|
}
|
|
113
|
-
function
|
|
120
|
+
function M(t) {
|
|
114
121
|
return t === "x" ? "y" : "x";
|
|
115
122
|
}
|
|
116
|
-
function
|
|
117
|
-
const i =
|
|
123
|
+
function P(t) {
|
|
124
|
+
const i = f(t);
|
|
118
125
|
return ["left", "right"].includes(i) ? "x" : "y";
|
|
119
126
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
127
|
+
function m(t) {
|
|
128
|
+
return M(P(t));
|
|
122
129
|
}
|
|
123
|
-
function
|
|
130
|
+
function f(t) {
|
|
124
131
|
const [i] = t.split("-");
|
|
125
132
|
return i;
|
|
126
133
|
}
|
|
127
|
-
function
|
|
134
|
+
function S(t) {
|
|
128
135
|
const [, i] = t.split("-");
|
|
129
136
|
return i;
|
|
130
137
|
}
|
|
@@ -132,11 +139,11 @@ function x(t) {
|
|
|
132
139
|
return t < 0;
|
|
133
140
|
}
|
|
134
141
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
$ as computePosition,
|
|
143
|
+
m as getAlignmentAxis,
|
|
144
|
+
S as getAlignmentFromPlacement,
|
|
145
|
+
P as getMainAxis,
|
|
146
|
+
M as getOppositeAxis,
|
|
147
|
+
f as getSideFromPlacement,
|
|
141
148
|
x as isOutOfBounds
|
|
142
149
|
};
|