@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
package/dist/ui.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as st, computed as g, ref as B, provide as Fe, inject as Me, watch as Y, defineComponent as I, mergeModels as G, toRef as qe, useModel as K, createElementBlock as h, openBlock as d, renderSlot as p, normalizeStyle as ue, normalizeClass as T, withModifiers as ne, createCommentVNode as w, createElementVNode as x, createVNode as U, unref as y, Fragment as W, createTextVNode as ie, toDisplayString as z, createBlock as C, resolveDynamicComponent as Ie, h as Ye, withCtx as _, normalizeProps as se, guardReactiveProps as fe, renderList as ye, useAttrs as St, createSlots as pe, withKeys as De, mergeProps as Z, withDirectives as at, vModelDynamic as Bt, vModelText as Vt, onMounted as Oe, onUnmounted as Tt, reactive as Ze, nextTick as le, onBeforeUnmount as At, Teleport as Et, Transition as Dt } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.14.
|
|
3
|
+
* Quidgest UI v0.14.12
|
|
4
4
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const Qe = {
|
|
8
8
|
primary: "#008ad2",
|
|
9
9
|
primaryLight: "#cde5ff",
|
|
10
10
|
primaryDark: "#006398",
|
|
@@ -35,29 +35,29 @@ const Ee = {
|
|
|
35
35
|
onWarning: "#fff",
|
|
36
36
|
onDanger: "#fff",
|
|
37
37
|
onInfo: "#fff"
|
|
38
|
-
},
|
|
39
|
-
primary: "#
|
|
40
|
-
primaryLight: "#
|
|
41
|
-
primaryDark: "#
|
|
38
|
+
}, it = {
|
|
39
|
+
primary: "#008ad2",
|
|
40
|
+
primaryLight: "#006398",
|
|
41
|
+
primaryDark: "#cde5ff",
|
|
42
42
|
secondary: "#003552",
|
|
43
43
|
highlight: "#f65600",
|
|
44
|
-
info: "#
|
|
45
|
-
infoLight: "#
|
|
46
|
-
infoDark: "#
|
|
47
|
-
success: "#
|
|
48
|
-
successLight: "#
|
|
49
|
-
successDark: "#
|
|
44
|
+
info: "#17a2b8",
|
|
45
|
+
infoLight: "#11798a",
|
|
46
|
+
infoDark: "#bceff7",
|
|
47
|
+
success: "#28a745",
|
|
48
|
+
successLight: "#1e7d34",
|
|
49
|
+
successDark: "#c2f0cd",
|
|
50
50
|
warning: "#ffa900",
|
|
51
|
-
warningLight: "#
|
|
52
|
-
warningDark: "#
|
|
53
|
-
danger: "#
|
|
54
|
-
dangerLight: "#
|
|
55
|
-
dangerDark: "#
|
|
51
|
+
warningLight: "#bf7f00",
|
|
52
|
+
warningDark: "#ffeabf",
|
|
53
|
+
danger: "#b71c1c",
|
|
54
|
+
dangerLight: "#891515",
|
|
55
|
+
dangerDark: "#f7cccc",
|
|
56
56
|
background: "#202428",
|
|
57
57
|
container: "#202428",
|
|
58
58
|
neutral: "#9299a0",
|
|
59
|
-
neutralLight: "#
|
|
60
|
-
neutralDark: "#
|
|
59
|
+
neutralLight: "#40474f",
|
|
60
|
+
neutralDark: "#c4c5ca",
|
|
61
61
|
onBackground: "#fff",
|
|
62
62
|
onPrimary: "#fff",
|
|
63
63
|
onSecondary: "#fff",
|
|
@@ -66,85 +66,85 @@ const Ee = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
|
-
defaultDarkColorScheme:
|
|
72
|
-
defaultLightColorScheme:
|
|
71
|
+
defaultDarkColorScheme: it,
|
|
72
|
+
defaultLightColorScheme: Qe
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
|
-
function
|
|
74
|
+
function ze(n) {
|
|
75
75
|
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Je(n) {
|
|
78
78
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Ue(n = {}, t = {}) {
|
|
81
81
|
const e = {};
|
|
82
|
-
for (const
|
|
83
|
-
e[
|
|
84
|
-
for (const
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
87
|
-
e[
|
|
88
|
-
|
|
82
|
+
for (const o in n)
|
|
83
|
+
e[o] = n[o];
|
|
84
|
+
for (const o in t) {
|
|
85
|
+
const l = n[o], s = t[o];
|
|
86
|
+
if (Je(l) && Je(s)) {
|
|
87
|
+
e[o] = Ue(
|
|
88
|
+
l,
|
|
89
89
|
s
|
|
90
90
|
);
|
|
91
91
|
continue;
|
|
92
92
|
}
|
|
93
|
-
e[
|
|
93
|
+
e[o] = s;
|
|
94
94
|
}
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
function
|
|
97
|
+
const Pe = "q-defaults";
|
|
98
|
+
function Qt() {
|
|
99
99
|
var s, a;
|
|
100
|
-
const n =
|
|
100
|
+
const n = st();
|
|
101
101
|
if (!n)
|
|
102
102
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
103
103
|
const t = n.type.name ?? n.type.__name;
|
|
104
104
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
105
|
-
const e =
|
|
106
|
-
return
|
|
105
|
+
const e = rt(), o = (s = e.value) == null ? void 0 : s.Global, l = (a = e.value) == null ? void 0 : a[t];
|
|
106
|
+
return g(() => Ue(o, l));
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (
|
|
110
|
-
const t =
|
|
111
|
-
|
|
108
|
+
function Ne(n) {
|
|
109
|
+
if (ze(n)) return;
|
|
110
|
+
const t = rt(), e = B(n), o = g(() => ze(e.value) ? t.value : Ue(t.value, e.value));
|
|
111
|
+
Fe(Pe, o);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const n =
|
|
113
|
+
function rt() {
|
|
114
|
+
const n = Me(Pe, void 0);
|
|
115
115
|
if (!n) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
116
116
|
return n;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
120
|
-
var e,
|
|
118
|
+
const dt = "q-group";
|
|
119
|
+
function zt(n) {
|
|
120
|
+
var e, o;
|
|
121
121
|
const t = {
|
|
122
|
-
active:
|
|
123
|
-
multiple:
|
|
124
|
-
var
|
|
125
|
-
return ((
|
|
122
|
+
active: B(((e = n.active) == null ? void 0 : e.value) ?? ((o = n.multiple) == null ? void 0 : o.value) ? [] : null),
|
|
123
|
+
multiple: g(() => {
|
|
124
|
+
var l;
|
|
125
|
+
return ((l = n.multiple) == null ? void 0 : l.value) || !1;
|
|
126
126
|
})
|
|
127
127
|
};
|
|
128
|
-
return
|
|
128
|
+
return Y(
|
|
129
129
|
() => t.multiple.value,
|
|
130
|
-
(
|
|
131
|
-
|
|
130
|
+
(l) => {
|
|
131
|
+
l && t.active.value ? t.active.value = [t.active.value] : l ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
|
|
132
132
|
}
|
|
133
|
-
),
|
|
133
|
+
), Fe(dt, t), t;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const t =
|
|
135
|
+
function Ft(n) {
|
|
136
|
+
const t = Me(dt, void 0);
|
|
137
137
|
if (!t) return;
|
|
138
|
-
const e =
|
|
139
|
-
var
|
|
140
|
-
return Array.isArray(t.active.value) ? (
|
|
138
|
+
const e = g(() => {
|
|
139
|
+
var l;
|
|
140
|
+
return Array.isArray(t.active.value) ? (l = t.active.value) == null ? void 0 : l.includes(n) : t.active.value === n;
|
|
141
141
|
});
|
|
142
142
|
return { isActive: e, toggle: () => {
|
|
143
|
-
var
|
|
144
|
-
Array.isArray(t.active.value) ? e.value ? t.active.value = (
|
|
143
|
+
var l;
|
|
144
|
+
Array.isArray(t.active.value) ? e.value ? t.active.value = (l = t.active.value) == null ? void 0 : l.filter((s) => s !== n) : t.active.value.push(n) : t.active.value = n;
|
|
145
145
|
} };
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Mt = { class: "q-accordion" }, Ot = /* @__PURE__ */ I({
|
|
148
148
|
__name: "QAccordion",
|
|
149
149
|
props: /* @__PURE__ */ G({
|
|
150
150
|
variant: {}
|
|
@@ -154,66 +154,66 @@ const Bt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
|
|
|
154
154
|
}),
|
|
155
155
|
emits: ["update:modelValue"],
|
|
156
156
|
setup(n) {
|
|
157
|
-
|
|
157
|
+
Ne({
|
|
158
158
|
QCollapsible: {
|
|
159
|
-
variant:
|
|
159
|
+
variant: qe(n, "variant")
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
const e = K(n, "modelValue");
|
|
163
|
-
return
|
|
164
|
-
p(
|
|
163
|
+
return zt({ active: e }), (o, l) => (d(), h("div", Mt, [
|
|
164
|
+
p(o.$slots, "default")
|
|
165
165
|
]));
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
function
|
|
168
|
+
function ct(n) {
|
|
169
169
|
return n.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
var
|
|
173
|
-
const e =
|
|
174
|
-
return e ? typeof ((
|
|
171
|
+
function Ut(n, t) {
|
|
172
|
+
var o;
|
|
173
|
+
const e = ct(t);
|
|
174
|
+
return e ? typeof ((o = n.props) == null ? void 0 : o[e]) < "u" : !1;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
const t = n.setup;
|
|
178
|
-
return
|
|
179
|
-
const
|
|
180
|
-
if (
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
get(
|
|
185
|
-
var
|
|
186
|
-
const
|
|
187
|
-
return typeof
|
|
176
|
+
function L(n) {
|
|
177
|
+
const t = n, e = t.setup;
|
|
178
|
+
return e && (t.setup = (o, l) => {
|
|
179
|
+
const s = Qt();
|
|
180
|
+
if (ze(s.value)) return e(o, l);
|
|
181
|
+
const a = st();
|
|
182
|
+
if (a === null) return e(o, l);
|
|
183
|
+
const r = new Proxy(o, {
|
|
184
|
+
get(i, c) {
|
|
185
|
+
var A;
|
|
186
|
+
const b = Reflect.get(i, c), m = (A = s.value) == null ? void 0 : A[c];
|
|
187
|
+
return typeof c == "string" && !Ut(a.vnode, c) ? m ?? b : b;
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
return
|
|
190
|
+
return e(r, l);
|
|
191
191
|
}), n;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const Pt = L(Ot), Nt = /* @__PURE__ */ I({
|
|
194
194
|
__name: "QSpinnerLoader",
|
|
195
195
|
props: {
|
|
196
196
|
size: { default: 48 },
|
|
197
|
-
class: {
|
|
197
|
+
class: {}
|
|
198
198
|
},
|
|
199
199
|
setup(n) {
|
|
200
|
-
const t = n, e =
|
|
200
|
+
const t = n, e = g(() => ({
|
|
201
201
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
202
202
|
}));
|
|
203
|
-
return (
|
|
203
|
+
return (o, l) => (d(), h("div", {
|
|
204
204
|
class: T(["q-spinner-loader", t.class]),
|
|
205
|
-
style:
|
|
205
|
+
style: ue(e.value)
|
|
206
206
|
}, null, 6));
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), $e = L(Nt), Rt = ["disabled"], Gt = {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "q-btn__spinner"
|
|
211
|
-
},
|
|
211
|
+
}, Ht = { class: "q-btn__content" }, Kt = /* @__PURE__ */ I({
|
|
212
212
|
__name: "QButton",
|
|
213
213
|
props: {
|
|
214
214
|
active: { type: Boolean },
|
|
215
215
|
bStyle: { default: "secondary" },
|
|
216
|
-
label: {
|
|
216
|
+
label: {},
|
|
217
217
|
disabled: { type: Boolean },
|
|
218
218
|
iconOnRight: { type: Boolean },
|
|
219
219
|
borderless: { type: Boolean },
|
|
@@ -221,20 +221,20 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
221
221
|
block: { type: Boolean },
|
|
222
222
|
loading: { type: Boolean },
|
|
223
223
|
size: { default: "regular" },
|
|
224
|
-
class: {
|
|
224
|
+
class: {}
|
|
225
225
|
},
|
|
226
226
|
emits: ["click"],
|
|
227
227
|
setup(n, { emit: t }) {
|
|
228
|
-
const e = n,
|
|
229
|
-
function s(
|
|
230
|
-
|
|
228
|
+
const e = n, o = t, l = g(() => e.disabled || e.loading);
|
|
229
|
+
function s(r) {
|
|
230
|
+
l.value || o("click", r);
|
|
231
231
|
}
|
|
232
|
-
const a =
|
|
233
|
-
const
|
|
232
|
+
const a = g(() => {
|
|
233
|
+
const r = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
234
234
|
return [
|
|
235
235
|
"q-btn",
|
|
236
236
|
`q-btn--${e.bStyle}`,
|
|
237
|
-
|
|
237
|
+
r,
|
|
238
238
|
{
|
|
239
239
|
"q-btn--active": e.active,
|
|
240
240
|
"q-btn--borderless": e.borderless,
|
|
@@ -245,72 +245,72 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
245
245
|
e.class
|
|
246
246
|
];
|
|
247
247
|
});
|
|
248
|
-
return (
|
|
248
|
+
return (r, i) => (d(), h("button", {
|
|
249
249
|
type: "button",
|
|
250
250
|
class: T(a.value),
|
|
251
|
-
disabled:
|
|
252
|
-
onClick:
|
|
251
|
+
disabled: l.value,
|
|
252
|
+
onClick: ne(s, ["stop", "prevent"])
|
|
253
253
|
}, [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
])) :
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
], 64)) :
|
|
261
|
-
p(
|
|
262
|
-
|
|
263
|
-
|
|
254
|
+
r.loading ? (d(), h("div", Gt, [
|
|
255
|
+
U(y($e), { size: 20 })
|
|
256
|
+
])) : w("", !0),
|
|
257
|
+
x("span", Ht, [
|
|
258
|
+
r.iconOnRight ? (d(), h(W, { key: 0 }, [
|
|
259
|
+
ie(z(e.label), 1)
|
|
260
|
+
], 64)) : w("", !0),
|
|
261
|
+
p(r.$slots, "default"),
|
|
262
|
+
r.iconOnRight ? w("", !0) : (d(), h(W, { key: 1 }, [
|
|
263
|
+
ie(z(e.label), 1)
|
|
264
264
|
], 64))
|
|
265
265
|
])
|
|
266
|
-
], 10,
|
|
266
|
+
], 10, Rt));
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), re = L(Kt), Wt = /* @__PURE__ */ I({
|
|
269
269
|
__name: "QIcon",
|
|
270
270
|
props: {
|
|
271
271
|
icon: {},
|
|
272
|
-
size: {
|
|
273
|
-
class: {
|
|
272
|
+
size: {},
|
|
273
|
+
class: {},
|
|
274
274
|
type: { default: "svg" }
|
|
275
275
|
},
|
|
276
276
|
setup(n) {
|
|
277
|
-
const t = n, e =
|
|
277
|
+
const t = n, e = g(() => {
|
|
278
278
|
switch (t.type) {
|
|
279
279
|
case "svg":
|
|
280
|
-
return
|
|
280
|
+
return pt;
|
|
281
281
|
case "font":
|
|
282
|
-
return
|
|
282
|
+
return ut;
|
|
283
283
|
case "img":
|
|
284
|
-
return
|
|
284
|
+
return ft;
|
|
285
285
|
default:
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
return (
|
|
289
|
+
return (o, l) => (d(), C(Ie(e.value), {
|
|
290
290
|
class: T(t.class),
|
|
291
291
|
icon: t.icon,
|
|
292
292
|
size: t.size
|
|
293
293
|
}, null, 8, ["class", "icon", "size"]));
|
|
294
294
|
}
|
|
295
|
-
}),
|
|
295
|
+
}), jt = /* @__PURE__ */ I({
|
|
296
296
|
__name: "QIconFont",
|
|
297
297
|
props: {
|
|
298
298
|
icon: {},
|
|
299
|
-
size: {
|
|
300
|
-
class: {
|
|
299
|
+
size: {},
|
|
300
|
+
class: {},
|
|
301
301
|
library: { default: "" },
|
|
302
|
-
variant: {
|
|
302
|
+
variant: {}
|
|
303
303
|
},
|
|
304
304
|
setup(n) {
|
|
305
|
-
const t = n, e =
|
|
305
|
+
const t = n, e = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), o = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
|
|
306
306
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
307
307
|
}));
|
|
308
|
-
return (s, a) => (
|
|
309
|
-
class: T(["q-icon", "q-icon__font", e.value,
|
|
310
|
-
style:
|
|
308
|
+
return (s, a) => (d(), h("i", {
|
|
309
|
+
class: T(["q-icon", "q-icon__font", e.value, o.value, t.class]),
|
|
310
|
+
style: ue(l.value)
|
|
311
311
|
}, null, 6));
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), Xt = ["src"], Yt = /* @__PURE__ */ I({
|
|
314
314
|
__name: "QIconImg",
|
|
315
315
|
props: {
|
|
316
316
|
icon: {},
|
|
@@ -318,16 +318,16 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
318
318
|
class: {}
|
|
319
319
|
},
|
|
320
320
|
setup(n) {
|
|
321
|
-
const t = n, e =
|
|
321
|
+
const t = n, e = g(() => ({
|
|
322
322
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
323
323
|
}));
|
|
324
|
-
return (
|
|
324
|
+
return (o, l) => (d(), h("img", {
|
|
325
325
|
src: t.icon,
|
|
326
326
|
class: T(["q-icon", "q-icon__img", t.class]),
|
|
327
|
-
style:
|
|
328
|
-
}, null, 14,
|
|
327
|
+
style: ue(e.value)
|
|
328
|
+
}, null, 14, Xt));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), _e = {}, Zt = I({
|
|
331
331
|
name: "InlineSvg",
|
|
332
332
|
emits: {
|
|
333
333
|
loaded: (n) => typeof n == "object",
|
|
@@ -338,9 +338,9 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
338
338
|
render() {
|
|
339
339
|
if (!this.svgElSource) return null;
|
|
340
340
|
const n = this.getSvgContent(this.svgElSource);
|
|
341
|
-
if (!n) return
|
|
341
|
+
if (!n) return Ye("div", this.$attrs);
|
|
342
342
|
const t = {};
|
|
343
|
-
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML,
|
|
343
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, Ye("svg", t);
|
|
344
344
|
},
|
|
345
345
|
props: {
|
|
346
346
|
/**
|
|
@@ -393,14 +393,14 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
393
393
|
methods: {
|
|
394
394
|
copySvgAttrs(n, t) {
|
|
395
395
|
const e = t.attributes;
|
|
396
|
-
if (e) for (const
|
|
396
|
+
if (e) for (const o of e) n[o.name] = o.value;
|
|
397
397
|
},
|
|
398
398
|
copyComponentAttrs(n, t) {
|
|
399
|
-
for (const [e,
|
|
400
|
-
|
|
399
|
+
for (const [e, o] of Object.entries(t))
|
|
400
|
+
o !== !1 && o !== null && o !== void 0 && (n[e] = o);
|
|
401
401
|
},
|
|
402
402
|
getSvgContent(n) {
|
|
403
|
-
return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)),
|
|
403
|
+
return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), Jt(n, this.title)), n);
|
|
404
404
|
},
|
|
405
405
|
/**
|
|
406
406
|
* Get svgElSource
|
|
@@ -408,11 +408,11 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
408
408
|
*/
|
|
409
409
|
async getSource(n) {
|
|
410
410
|
try {
|
|
411
|
-
|
|
412
|
-
const t = await
|
|
411
|
+
_e[n] || (_e[n] = en(this.download(n))), this.svgElSource && _e[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
412
|
+
const t = await _e[n];
|
|
413
413
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
414
414
|
} catch (t) {
|
|
415
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
415
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete _e[n], this.$emit("error", t);
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
/**
|
|
@@ -435,184 +435,184 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
435
435
|
},
|
|
436
436
|
expose: []
|
|
437
437
|
});
|
|
438
|
-
function
|
|
438
|
+
function Jt(n, t) {
|
|
439
439
|
const e = n.getElementsByTagName("title");
|
|
440
440
|
if (e.length)
|
|
441
441
|
e[0].textContent = t;
|
|
442
442
|
else {
|
|
443
|
-
const
|
|
444
|
-
|
|
443
|
+
const o = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
444
|
+
o.textContent = t, n.insertBefore(o, n.firstChild);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function en(n) {
|
|
448
448
|
if (n.getIsPending) return n;
|
|
449
449
|
let t = !0;
|
|
450
450
|
const e = n.then(
|
|
451
|
-
(
|
|
452
|
-
(
|
|
453
|
-
throw t = !1,
|
|
451
|
+
(o) => (t = !1, o),
|
|
452
|
+
(o) => {
|
|
453
|
+
throw t = !1, o;
|
|
454
454
|
}
|
|
455
455
|
);
|
|
456
456
|
return e.getIsPending = () => t, e;
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const tn = /* @__PURE__ */ I({
|
|
459
459
|
__name: "QIconSvg",
|
|
460
460
|
props: {
|
|
461
461
|
icon: {},
|
|
462
|
-
size: {
|
|
463
|
-
class: {
|
|
462
|
+
size: {},
|
|
463
|
+
class: {},
|
|
464
464
|
bundle: { default: "" }
|
|
465
465
|
},
|
|
466
466
|
emits: ["loaded", "unloaded"],
|
|
467
467
|
setup(n, { emit: t }) {
|
|
468
|
-
const e = n,
|
|
468
|
+
const e = n, o = t, l = g(() => ({
|
|
469
469
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
470
470
|
}));
|
|
471
|
-
function s(
|
|
472
|
-
|
|
471
|
+
function s(r) {
|
|
472
|
+
o("loaded", r);
|
|
473
473
|
}
|
|
474
474
|
function a() {
|
|
475
|
-
|
|
475
|
+
o("unloaded");
|
|
476
476
|
}
|
|
477
|
-
return (
|
|
477
|
+
return (r, i) => (d(), C(y(Zt), {
|
|
478
478
|
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
479
479
|
src: e.bundle,
|
|
480
480
|
symbol: e.icon,
|
|
481
|
-
style:
|
|
481
|
+
style: ue(l.value),
|
|
482
482
|
onLoaded: s,
|
|
483
483
|
onUnloaded: a
|
|
484
484
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
485
485
|
}
|
|
486
|
-
}),
|
|
486
|
+
}), X = L(Wt), ut = L(jt), ft = L(Yt), pt = L(tn), nn = {
|
|
487
487
|
remove: {
|
|
488
488
|
icon: "close"
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
function
|
|
492
|
-
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n);
|
|
491
|
+
function mt(n, t = !1) {
|
|
492
|
+
return t ? /^#[a-fA-F0-9]{6}$/.test(n) : /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function on(n) {
|
|
495
495
|
const t = n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
496
496
|
if (t) {
|
|
497
|
-
const e = parseInt(t[1], 10),
|
|
498
|
-
return { r: e, g:
|
|
497
|
+
const e = parseInt(t[1], 10), o = parseInt(t[2], 10), l = parseInt(t[3], 10);
|
|
498
|
+
return { r: e, g: o, b: l };
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
if (
|
|
501
|
+
function ht(n) {
|
|
502
|
+
if (mt(n)) {
|
|
503
503
|
n.length === 4 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]);
|
|
504
|
-
const t = parseInt(n.slice(1, 3), 16), e = parseInt(n.slice(3, 5), 16),
|
|
505
|
-
return { r: t, g: e, b:
|
|
504
|
+
const t = parseInt(n.slice(1, 3), 16), e = parseInt(n.slice(3, 5), 16), o = parseInt(n.slice(5, 7), 16);
|
|
505
|
+
return { r: t, g: e, b: o };
|
|
506
506
|
} else {
|
|
507
|
-
const t =
|
|
507
|
+
const t = on(n);
|
|
508
508
|
if (t) return t;
|
|
509
509
|
}
|
|
510
510
|
throw new Error("Invalid color format");
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
const t = n.r / 255, e = n.g / 255,
|
|
514
|
-
let a = 0,
|
|
515
|
-
const
|
|
516
|
-
if (
|
|
517
|
-
a =
|
|
512
|
+
function ln(n) {
|
|
513
|
+
const t = n.r / 255, e = n.g / 255, o = n.b / 255, l = Math.max(t, e, o), s = Math.min(t, e, o);
|
|
514
|
+
let a = 0, r;
|
|
515
|
+
const i = (l + s) / 2;
|
|
516
|
+
if (l === s)
|
|
517
|
+
a = r = 0;
|
|
518
518
|
else {
|
|
519
|
-
const
|
|
520
|
-
switch (
|
|
519
|
+
const c = l - s;
|
|
520
|
+
switch (r = i > 0.5 ? c / (2 - l - s) : c / (l + s), l) {
|
|
521
521
|
case t:
|
|
522
|
-
a = (e -
|
|
522
|
+
a = (e - o) / c + (e < o ? 6 : 0);
|
|
523
523
|
break;
|
|
524
524
|
case e:
|
|
525
|
-
a = (
|
|
525
|
+
a = (o - t) / c + 2;
|
|
526
526
|
break;
|
|
527
|
-
case
|
|
528
|
-
a = (t - e) /
|
|
527
|
+
case o:
|
|
528
|
+
a = (t - e) / c + 4;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
a /= 6;
|
|
532
532
|
}
|
|
533
533
|
return {
|
|
534
534
|
h: Math.round(a * 360),
|
|
535
|
-
s: Math.round(
|
|
536
|
-
l: Math.round(
|
|
535
|
+
s: Math.round(r * 100),
|
|
536
|
+
l: Math.round(i * 100)
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function sn(n) {
|
|
540
540
|
return n > 50 ? "#000" : "#fff";
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const an = { class: "q-badge__content" }, rn = /* @__PURE__ */ I({
|
|
543
543
|
__name: "QBadge",
|
|
544
544
|
props: {
|
|
545
545
|
color: { default: "primary" },
|
|
546
546
|
variant: { default: "tonal" },
|
|
547
547
|
removable: { type: Boolean },
|
|
548
548
|
pill: { type: Boolean },
|
|
549
|
-
icons: { default: () =>
|
|
549
|
+
icons: { default: () => nn }
|
|
550
550
|
},
|
|
551
551
|
emits: ["click:remove"],
|
|
552
552
|
setup(n, { emit: t }) {
|
|
553
|
-
const e = n,
|
|
553
|
+
const e = n, o = t, l = g(
|
|
554
554
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
555
|
-
), s =
|
|
556
|
-
const
|
|
557
|
-
return ["q-badge", `q-badge--${e.variant}`,
|
|
558
|
-
}), a =
|
|
559
|
-
let
|
|
560
|
-
if (!
|
|
561
|
-
if (
|
|
562
|
-
|
|
555
|
+
), s = g(() => {
|
|
556
|
+
const i = l.value ? `q-badge--${e.color}` : void 0;
|
|
557
|
+
return ["q-badge", `q-badge--${e.variant}`, i, { "q-badge--pill": e.pill }];
|
|
558
|
+
}), a = g(() => {
|
|
559
|
+
let i, c;
|
|
560
|
+
if (!l.value)
|
|
561
|
+
if (i = e.color, e.variant === "tonal")
|
|
562
|
+
c = e.color;
|
|
563
563
|
else {
|
|
564
|
-
const b =
|
|
565
|
-
|
|
564
|
+
const b = ht(i), m = ln(b);
|
|
565
|
+
c = sn(m.l);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
|
-
"--q-badge-color":
|
|
569
|
-
"--q-badge-text-color":
|
|
568
|
+
"--q-badge-color": i,
|
|
569
|
+
"--q-badge-text-color": c
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
|
-
function
|
|
573
|
-
|
|
572
|
+
function r() {
|
|
573
|
+
o("click:remove");
|
|
574
574
|
}
|
|
575
|
-
return (
|
|
575
|
+
return (i, c) => (d(), h("span", {
|
|
576
576
|
class: T(s.value),
|
|
577
577
|
role: "presentation",
|
|
578
|
-
style:
|
|
578
|
+
style: ue(a.value)
|
|
579
579
|
}, [
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
p(
|
|
583
|
-
e.removable ? (
|
|
580
|
+
c[0] || (c[0] = x("div", { class: "q-badge__underlay" }, null, -1)),
|
|
581
|
+
x("div", an, [
|
|
582
|
+
p(i.$slots, "default"),
|
|
583
|
+
e.removable ? (d(), C(y(re), {
|
|
584
584
|
key: 0,
|
|
585
585
|
class: "q-badge__remove",
|
|
586
586
|
borderless: "",
|
|
587
587
|
tabindex: "0",
|
|
588
|
-
onClick:
|
|
588
|
+
onClick: r
|
|
589
589
|
}, {
|
|
590
|
-
default:
|
|
591
|
-
|
|
590
|
+
default: _(() => [
|
|
591
|
+
U(y(X), se(fe(e.icons.remove)), null, 16)
|
|
592
592
|
]),
|
|
593
593
|
_: 1
|
|
594
|
-
})) :
|
|
594
|
+
})) : w("", !0)
|
|
595
595
|
])
|
|
596
596
|
], 6));
|
|
597
597
|
}
|
|
598
|
-
}),
|
|
598
|
+
}), dn = L(rn), cn = /* @__PURE__ */ I({
|
|
599
599
|
__name: "QButtonGroup",
|
|
600
600
|
props: {
|
|
601
601
|
disabled: { type: Boolean },
|
|
602
602
|
borderless: { type: Boolean },
|
|
603
603
|
elevated: { type: Boolean },
|
|
604
|
-
class: {
|
|
604
|
+
class: {}
|
|
605
605
|
},
|
|
606
606
|
setup(n) {
|
|
607
607
|
const t = n;
|
|
608
|
-
return
|
|
608
|
+
return Ne({
|
|
609
609
|
QButton: {
|
|
610
610
|
bStyle: "secondary",
|
|
611
|
-
disabled:
|
|
612
|
-
borderless:
|
|
611
|
+
disabled: qe(t, "disabled"),
|
|
612
|
+
borderless: qe(t, "borderless"),
|
|
613
613
|
elevated: !1
|
|
614
614
|
}
|
|
615
|
-
}), (e,
|
|
615
|
+
}), (e, o) => (d(), h("div", {
|
|
616
616
|
class: T([
|
|
617
617
|
"q-btn-group",
|
|
618
618
|
{
|
|
@@ -624,7 +624,7 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
624
624
|
p(e.$slots, "default")
|
|
625
625
|
], 2));
|
|
626
626
|
}
|
|
627
|
-
}),
|
|
627
|
+
}), vt = L(cn), un = /* @__PURE__ */ I({
|
|
628
628
|
__name: "QButtonToggle",
|
|
629
629
|
props: /* @__PURE__ */ G({
|
|
630
630
|
options: {},
|
|
@@ -640,10 +640,10 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
640
640
|
emits: ["update:modelValue"],
|
|
641
641
|
setup(n) {
|
|
642
642
|
const t = n, e = K(n, "modelValue");
|
|
643
|
-
function l
|
|
644
|
-
e.value ===
|
|
643
|
+
function o(l) {
|
|
644
|
+
e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
|
|
645
645
|
}
|
|
646
|
-
return (
|
|
646
|
+
return (l, s) => (d(), C(y(vt), {
|
|
647
647
|
"b-style": "secondary",
|
|
648
648
|
class: T(t.class),
|
|
649
649
|
disabled: t.disabled,
|
|
@@ -651,18 +651,18 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
651
651
|
elevated: t.elevated,
|
|
652
652
|
role: "listbox"
|
|
653
653
|
}, {
|
|
654
|
-
default:
|
|
655
|
-
(
|
|
654
|
+
default: _(() => [
|
|
655
|
+
(d(!0), h(W, null, ye(t.options, (a) => (d(), C(y(re), {
|
|
656
656
|
key: a.key,
|
|
657
657
|
title: a.title,
|
|
658
658
|
label: a.label,
|
|
659
659
|
active: e.value === a.key,
|
|
660
660
|
role: "option",
|
|
661
661
|
"aria-selected": e.value === a.key,
|
|
662
|
-
onClick: () =>
|
|
662
|
+
onClick: () => o(a)
|
|
663
663
|
}, {
|
|
664
|
-
default:
|
|
665
|
-
p(
|
|
664
|
+
default: _(() => [
|
|
665
|
+
p(l.$slots, a.key)
|
|
666
666
|
]),
|
|
667
667
|
_: 2
|
|
668
668
|
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
|
|
@@ -670,46 +670,46 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
670
670
|
_: 3
|
|
671
671
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
672
672
|
}
|
|
673
|
-
}),
|
|
674
|
-
let
|
|
675
|
-
function
|
|
676
|
-
return n || `uid-${++
|
|
673
|
+
}), fn = L(un);
|
|
674
|
+
let pn = 0;
|
|
675
|
+
function de(n) {
|
|
676
|
+
return n || `uid-${++pn}`;
|
|
677
677
|
}
|
|
678
|
-
const
|
|
678
|
+
const mn = { class: "q-card__header" }, hn = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "q-card__header-content"
|
|
681
|
-
},
|
|
681
|
+
}, vn = { class: "q-card__header-text" }, yn = {
|
|
682
682
|
key: 0,
|
|
683
683
|
class: "q-card__title",
|
|
684
684
|
role: "cell"
|
|
685
|
-
},
|
|
685
|
+
}, bn = {
|
|
686
686
|
key: 1,
|
|
687
687
|
class: "q-card__subtitle",
|
|
688
688
|
role: "cell"
|
|
689
|
-
},
|
|
689
|
+
}, gn = { class: "q-card__content" }, _n = {
|
|
690
690
|
key: 0,
|
|
691
691
|
class: "q-card__footer"
|
|
692
|
-
},
|
|
692
|
+
}, $n = /* @__PURE__ */ I({
|
|
693
693
|
__name: "QCard",
|
|
694
694
|
props: {
|
|
695
|
-
id: {
|
|
696
|
-
title: {
|
|
697
|
-
subtitle: {
|
|
698
|
-
href: {
|
|
695
|
+
id: {},
|
|
696
|
+
title: {},
|
|
697
|
+
subtitle: {},
|
|
698
|
+
href: {},
|
|
699
699
|
disabled: { type: Boolean },
|
|
700
700
|
loading: { type: Boolean },
|
|
701
701
|
borderless: { type: Boolean },
|
|
702
702
|
variant: { default: "default" },
|
|
703
703
|
elevation: { default: "none" },
|
|
704
|
-
width: {
|
|
704
|
+
width: {}
|
|
705
705
|
},
|
|
706
706
|
setup(n) {
|
|
707
|
-
const t = n, e =
|
|
708
|
-
const
|
|
707
|
+
const t = n, e = St(), o = de(t.id), l = g(() => {
|
|
708
|
+
const i = t.width ? `q-card--${t.width}` : void 0, c = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, b = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
|
|
709
709
|
return [
|
|
710
710
|
"q-card",
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
i,
|
|
712
|
+
c,
|
|
713
713
|
b,
|
|
714
714
|
{
|
|
715
715
|
"q-card--clickable": s.value,
|
|
@@ -718,94 +718,94 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
718
718
|
"q-card--disabled": t.disabled
|
|
719
719
|
}
|
|
720
720
|
];
|
|
721
|
-
}), s =
|
|
722
|
-
a.value &&
|
|
721
|
+
}), s = g(() => !!e.onClick || t.href), a = g(() => t.disabled || t.loading), r = (i) => {
|
|
722
|
+
a.value && i.stopImmediatePropagation();
|
|
723
723
|
};
|
|
724
|
-
return (
|
|
725
|
-
id:
|
|
726
|
-
class: T([...
|
|
724
|
+
return (i, c) => (d(), C(Ie(t.href ? "a" : "div"), {
|
|
725
|
+
id: y(o),
|
|
726
|
+
class: T([...l.value, i.$attrs.class]),
|
|
727
727
|
href: t.href && !a.value ? t.href : void 0,
|
|
728
|
-
onClick:
|
|
728
|
+
onClick: r
|
|
729
729
|
}, {
|
|
730
|
-
default:
|
|
731
|
-
t.loading ? (
|
|
730
|
+
default: _(() => [
|
|
731
|
+
t.loading ? (d(), C(y($e), {
|
|
732
732
|
key: 0,
|
|
733
733
|
size: 36
|
|
734
|
-
})) : (
|
|
735
|
-
|
|
736
|
-
p(
|
|
737
|
-
p(
|
|
738
|
-
|
|
739
|
-
p(
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
734
|
+
})) : (d(), h(W, { key: 1 }, [
|
|
735
|
+
x("div", mn, [
|
|
736
|
+
p(i.$slots, "header", {}, () => [
|
|
737
|
+
p(i.$slots, "header.prepend"),
|
|
738
|
+
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (d(), h("div", hn, [
|
|
739
|
+
p(i.$slots, "header.content.prepend"),
|
|
740
|
+
x("div", vn, [
|
|
741
|
+
i.$slots.title || t.title ? (d(), h("p", yn, [
|
|
742
|
+
i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (d(), h(W, { key: 1 }, [
|
|
743
|
+
ie(z(i.$props.title), 1)
|
|
744
744
|
], 64))
|
|
745
|
-
])) :
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
745
|
+
])) : w("", !0),
|
|
746
|
+
i.$slots.subtitle || t.subtitle ? (d(), h("p", bn, [
|
|
747
|
+
i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (d(), h(W, { key: 1 }, [
|
|
748
|
+
ie(z(i.$props.subtitle), 1)
|
|
749
749
|
], 64))
|
|
750
|
-
])) :
|
|
750
|
+
])) : w("", !0)
|
|
751
751
|
]),
|
|
752
|
-
p(
|
|
753
|
-
])) :
|
|
754
|
-
p(
|
|
752
|
+
p(i.$slots, "header.content.append")
|
|
753
|
+
])) : w("", !0),
|
|
754
|
+
p(i.$slots, "header.append")
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
|
-
|
|
758
|
-
p(
|
|
757
|
+
x("div", gn, [
|
|
758
|
+
p(i.$slots, "default")
|
|
759
759
|
]),
|
|
760
|
-
|
|
761
|
-
p(
|
|
762
|
-
])) :
|
|
760
|
+
i.$slots.footer ? (d(), h("div", _n, [
|
|
761
|
+
p(i.$slots, "footer")
|
|
762
|
+
])) : w("", !0)
|
|
763
763
|
], 64))
|
|
764
764
|
]),
|
|
765
765
|
_: 3
|
|
766
766
|
}, 8, ["id", "class", "href"]));
|
|
767
767
|
}
|
|
768
|
-
}),
|
|
768
|
+
}), yt = L($n), kn = { key: 0 }, wn = { class: "q-field__extras" }, qn = { key: 1 }, et = /* @__PURE__ */ I({
|
|
769
769
|
__name: "QCheckboxLabel",
|
|
770
770
|
props: {
|
|
771
|
-
label: {
|
|
771
|
+
label: {}
|
|
772
772
|
},
|
|
773
773
|
setup(n) {
|
|
774
774
|
const t = n;
|
|
775
|
-
return (e,
|
|
776
|
-
|
|
777
|
-
|
|
775
|
+
return (e, o) => e.$slots.extras ? (d(), h("div", kn, [
|
|
776
|
+
x("span", null, z(t.label), 1),
|
|
777
|
+
x("div", wn, [
|
|
778
778
|
p(e.$slots, "extras")
|
|
779
779
|
])
|
|
780
|
-
])) : (
|
|
780
|
+
])) : (d(), h("span", qn, z(t.label), 1));
|
|
781
781
|
}
|
|
782
|
-
}),
|
|
782
|
+
}), xn = {
|
|
783
783
|
checked: {
|
|
784
784
|
icon: "check"
|
|
785
785
|
},
|
|
786
786
|
indeterminate: {
|
|
787
787
|
icon: "minus"
|
|
788
788
|
}
|
|
789
|
-
},
|
|
789
|
+
}, Cn = ["id", "aria-checked", "disabled", "onKeydown"], In = ["checked", "disabled"], Ln = /* @__PURE__ */ I({
|
|
790
790
|
__name: "QCheckbox",
|
|
791
791
|
props: /* @__PURE__ */ G({
|
|
792
|
-
label: {
|
|
793
|
-
id: {
|
|
792
|
+
label: {},
|
|
793
|
+
id: {},
|
|
794
794
|
labelPlacement: { default: "right" },
|
|
795
795
|
disabled: { type: Boolean },
|
|
796
796
|
readonly: { type: Boolean },
|
|
797
797
|
indeterminate: { type: Boolean },
|
|
798
798
|
color: { default: "primary" },
|
|
799
799
|
size: { default: "regular" },
|
|
800
|
-
class: {
|
|
801
|
-
icons: { default: () =>
|
|
800
|
+
class: {},
|
|
801
|
+
icons: { default: () => xn }
|
|
802
802
|
}, {
|
|
803
803
|
modelValue: { type: Boolean },
|
|
804
804
|
modelModifiers: {}
|
|
805
805
|
}),
|
|
806
806
|
emits: ["update:modelValue"],
|
|
807
807
|
setup(n) {
|
|
808
|
-
const t = n, e = K(n, "modelValue"),
|
|
808
|
+
const t = n, e = K(n, "modelValue"), o = de(t.id), l = g(() => [
|
|
809
809
|
"q-checkbox",
|
|
810
810
|
`q-checkbox--${t.size}`,
|
|
811
811
|
`q-checkbox--${t.color}`,
|
|
@@ -820,78 +820,96 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
820
820
|
function s() {
|
|
821
821
|
!t.disabled && !t.readonly && (e.value = !e.value);
|
|
822
822
|
}
|
|
823
|
-
return (a,
|
|
824
|
-
|
|
825
|
-
class: T(
|
|
823
|
+
return (a, r) => (d(), h(W, null, [
|
|
824
|
+
x("label", {
|
|
825
|
+
class: T(l.value)
|
|
826
826
|
}, [
|
|
827
|
-
t.labelPlacement !== "right" ? (
|
|
827
|
+
t.labelPlacement !== "right" ? (d(), C(et, {
|
|
828
828
|
key: 0,
|
|
829
829
|
label: t.label
|
|
830
|
-
},
|
|
830
|
+
}, pe({ _: 2 }, [
|
|
831
831
|
a.$slots.extras ? {
|
|
832
832
|
name: "extras",
|
|
833
|
-
fn:
|
|
833
|
+
fn: _(() => [
|
|
834
834
|
p(a.$slots, "extras")
|
|
835
835
|
]),
|
|
836
836
|
key: "0"
|
|
837
837
|
} : void 0
|
|
838
|
-
]), 1032, ["label"])) :
|
|
839
|
-
|
|
840
|
-
id:
|
|
838
|
+
]), 1032, ["label"])) : w("", !0),
|
|
839
|
+
x("button", {
|
|
840
|
+
id: y(o),
|
|
841
841
|
role: "checkbox",
|
|
842
842
|
type: "button",
|
|
843
843
|
"aria-checked": t.indeterminate ? "mixed" : e.value,
|
|
844
844
|
disabled: t.disabled || t.readonly,
|
|
845
845
|
class: "q-checkbox__input",
|
|
846
|
-
onClick:
|
|
846
|
+
onClick: ne(s, ["prevent"]),
|
|
847
847
|
onKeydown: [
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
De(ne(s, ["prevent"]), ["space"]),
|
|
849
|
+
r[0] || (r[0] = De(ne(() => {
|
|
850
850
|
}, ["prevent"]), ["enter"]))
|
|
851
851
|
]
|
|
852
852
|
}, [
|
|
853
|
-
e.value || a.indeterminate ? (
|
|
854
|
-
], 40,
|
|
855
|
-
t.labelPlacement === "right" ? (
|
|
853
|
+
e.value || a.indeterminate ? (d(), C(y(X), Z({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : w("", !0)
|
|
854
|
+
], 40, Cn),
|
|
855
|
+
t.labelPlacement === "right" ? (d(), C(et, {
|
|
856
856
|
key: 1,
|
|
857
857
|
label: t.label
|
|
858
|
-
},
|
|
858
|
+
}, pe({ _: 2 }, [
|
|
859
859
|
a.$slots.extras ? {
|
|
860
860
|
name: "extras",
|
|
861
|
-
fn:
|
|
861
|
+
fn: _(() => [
|
|
862
862
|
p(a.$slots, "extras")
|
|
863
863
|
]),
|
|
864
864
|
key: "0"
|
|
865
865
|
} : void 0
|
|
866
|
-
]), 1032, ["label"])) :
|
|
866
|
+
]), 1032, ["label"])) : w("", !0)
|
|
867
867
|
], 2),
|
|
868
|
-
|
|
868
|
+
x("input", {
|
|
869
869
|
type: "checkbox",
|
|
870
870
|
tabindex: "-1",
|
|
871
871
|
"aria-hidden": "true",
|
|
872
872
|
class: "q-checkbox__native-input",
|
|
873
873
|
checked: !!e.value,
|
|
874
874
|
disabled: t.disabled || t.readonly
|
|
875
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, In)
|
|
876
876
|
], 64));
|
|
877
877
|
}
|
|
878
|
-
}),
|
|
878
|
+
}), Sn = L(Ln), Le = {
|
|
879
879
|
chevron: {
|
|
880
880
|
icon: "chevron-down"
|
|
881
881
|
}
|
|
882
|
-
},
|
|
882
|
+
}, Bn = /* @__PURE__ */ I({
|
|
883
|
+
__name: "QChevron",
|
|
884
|
+
props: /* @__PURE__ */ G({
|
|
885
|
+
class: {},
|
|
886
|
+
icons: { default: () => Le }
|
|
887
|
+
}, {
|
|
888
|
+
modelValue: { type: Boolean },
|
|
889
|
+
modelModifiers: {}
|
|
890
|
+
}),
|
|
891
|
+
emits: ["update:modelValue"],
|
|
892
|
+
setup(n) {
|
|
893
|
+
const t = n, e = K(n, "modelValue");
|
|
894
|
+
return (o, l) => (d(), C(y(X), Z({
|
|
895
|
+
class: ["q-chevron", { "q-chevron--expanded": e.value }]
|
|
896
|
+
}, t.icons.chevron), null, 16, ["class"]));
|
|
897
|
+
}
|
|
898
|
+
}), xe = L(Bn), Vn = {
|
|
899
|
+
...Le
|
|
900
|
+
}, Tn = {
|
|
883
901
|
key: 0,
|
|
884
902
|
class: "q-collapsible__header"
|
|
885
|
-
},
|
|
903
|
+
}, An = { class: "q-collapsible__title" }, En = { class: "q-collapsible__title-text" }, Dn = {
|
|
886
904
|
key: 1,
|
|
887
905
|
class: "q-collapsible--required"
|
|
888
|
-
},
|
|
906
|
+
}, Qn = {
|
|
889
907
|
key: 0,
|
|
890
908
|
class: "q-collapsible__subtitle"
|
|
891
|
-
},
|
|
909
|
+
}, zn = { class: "q-collapsible__content-inner" }, Fn = { class: "q-collapsible__content" }, Mn = /* @__PURE__ */ I({
|
|
892
910
|
__name: "QCollapsible",
|
|
893
911
|
props: /* @__PURE__ */ G({
|
|
894
|
-
id: {
|
|
912
|
+
id: {},
|
|
895
913
|
title: {},
|
|
896
914
|
subtitle: {},
|
|
897
915
|
width: { default: "fit-content" },
|
|
@@ -899,77 +917,83 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
899
917
|
spacing: {},
|
|
900
918
|
variant: {},
|
|
901
919
|
iconRight: { type: Boolean },
|
|
902
|
-
icons: { default: () =>
|
|
920
|
+
icons: { default: () => Vn }
|
|
903
921
|
}, {
|
|
904
922
|
modelValue: { type: Boolean },
|
|
905
923
|
modelModifiers: {}
|
|
906
924
|
}),
|
|
907
925
|
emits: ["update:modelValue"],
|
|
908
926
|
setup(n) {
|
|
909
|
-
const t = n, e = K(n, "modelValue"),
|
|
910
|
-
const
|
|
927
|
+
const t = n, e = K(n, "modelValue"), o = de(t.id), l = Ft(o), s = g(() => t.width === "block" ? "block" : void 0), a = g(() => {
|
|
928
|
+
const c = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, b = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
|
|
911
929
|
return [
|
|
912
930
|
"q-collapsible",
|
|
913
|
-
|
|
931
|
+
c,
|
|
914
932
|
b,
|
|
915
933
|
{
|
|
916
|
-
"q-collapsible--icon-right": t.iconRight
|
|
917
|
-
"q-collapsible--expanded": e.value
|
|
934
|
+
"q-collapsible--icon-right": t.iconRight
|
|
918
935
|
}
|
|
919
936
|
];
|
|
920
|
-
}),
|
|
937
|
+
}), r = g(() => [
|
|
921
938
|
"q-collapsible__content-wrapper",
|
|
922
939
|
{
|
|
923
940
|
"q-collapsible__content-show": e.value
|
|
924
941
|
}
|
|
925
|
-
]),
|
|
926
|
-
e.value = !e.value,
|
|
942
|
+
]), i = () => {
|
|
943
|
+
e.value = !e.value, l == null || l.toggle();
|
|
927
944
|
};
|
|
928
|
-
return
|
|
929
|
-
() =>
|
|
930
|
-
() => e.value =
|
|
931
|
-
), (
|
|
932
|
-
id:
|
|
945
|
+
return Y(
|
|
946
|
+
() => l == null ? void 0 : l.isActive.value,
|
|
947
|
+
() => e.value = l == null ? void 0 : l.isActive.value
|
|
948
|
+
), (c, b) => (d(), C(y(yt), {
|
|
949
|
+
id: y(o),
|
|
933
950
|
class: T(a.value),
|
|
934
951
|
width: s.value
|
|
935
952
|
}, {
|
|
936
|
-
header:
|
|
937
|
-
|
|
938
|
-
|
|
953
|
+
header: _(() => [
|
|
954
|
+
c.title ? (d(), h("div", Tn, [
|
|
955
|
+
U(y(re), {
|
|
939
956
|
"b-style": "tertiary",
|
|
940
957
|
class: "q-collapsible__btn",
|
|
941
|
-
onClick:
|
|
958
|
+
onClick: i
|
|
942
959
|
}, {
|
|
943
|
-
default:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
960
|
+
default: _(() => [
|
|
961
|
+
x("div", An, [
|
|
962
|
+
c.iconRight ? w("", !0) : p(c.$slots, "icon", { key: 0 }, () => [
|
|
963
|
+
U(y(xe), {
|
|
964
|
+
"model-value": e.value,
|
|
965
|
+
icons: t.icons
|
|
966
|
+
}, null, 8, ["model-value", "icons"])
|
|
947
967
|
]),
|
|
948
|
-
p(
|
|
949
|
-
|
|
950
|
-
t.required ? (
|
|
951
|
-
p(
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
968
|
+
p(c.$slots, "title.prepend"),
|
|
969
|
+
x("h4", En, z(c.title), 1),
|
|
970
|
+
t.required ? (d(), h("span", Dn, " * ")) : w("", !0),
|
|
971
|
+
p(c.$slots, "title.append"),
|
|
972
|
+
c.iconRight ? p(c.$slots, "icon", { key: 2 }, () => [
|
|
973
|
+
U(y(xe), {
|
|
974
|
+
"model-value": e.value,
|
|
975
|
+
class: "q-collapsible__chevron-right",
|
|
976
|
+
icons: t.icons
|
|
977
|
+
}, null, 8, ["model-value", "icons"])
|
|
978
|
+
]) : w("", !0)
|
|
955
979
|
]),
|
|
956
|
-
|
|
957
|
-
p(
|
|
958
|
-
|
|
980
|
+
c.$slots.subtitle || c.subtitle ? (d(), h("div", Qn, [
|
|
981
|
+
p(c.$slots, "subtitle", {}, () => [
|
|
982
|
+
ie(z(c.subtitle), 1)
|
|
959
983
|
])
|
|
960
|
-
])) :
|
|
984
|
+
])) : w("", !0)
|
|
961
985
|
]),
|
|
962
986
|
_: 3
|
|
963
987
|
})
|
|
964
|
-
])) :
|
|
988
|
+
])) : w("", !0)
|
|
965
989
|
]),
|
|
966
|
-
default:
|
|
967
|
-
|
|
968
|
-
class: T(
|
|
990
|
+
default: _(() => [
|
|
991
|
+
x("div", {
|
|
992
|
+
class: T(r.value)
|
|
969
993
|
}, [
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
p(
|
|
994
|
+
x("div", zn, [
|
|
995
|
+
x("div", Fn, [
|
|
996
|
+
p(c.$slots, "default")
|
|
973
997
|
])
|
|
974
998
|
])
|
|
975
999
|
], 2)
|
|
@@ -977,16 +1001,278 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
977
1001
|
_: 3
|
|
978
1002
|
}, 8, ["id", "class", "width"]));
|
|
979
1003
|
}
|
|
980
|
-
}),
|
|
1004
|
+
}), On = L(Mn), Un = {
|
|
1005
|
+
selectColor: "Select a color"
|
|
1006
|
+
}, Pn = ["id"], Nn = {
|
|
1007
|
+
key: 0,
|
|
1008
|
+
class: "q-field__label"
|
|
1009
|
+
}, Rn = ["for"], Gn = {
|
|
1010
|
+
key: 0,
|
|
1011
|
+
class: "q-field__prepend"
|
|
1012
|
+
}, Hn = {
|
|
1013
|
+
key: 1,
|
|
1014
|
+
class: "q-field__append"
|
|
1015
|
+
}, Kn = {
|
|
1016
|
+
key: 1,
|
|
1017
|
+
class: "q-field__extras"
|
|
1018
|
+
}, Wn = /* @__PURE__ */ I({
|
|
1019
|
+
inheritAttrs: !1,
|
|
1020
|
+
__name: "QField",
|
|
1021
|
+
props: {
|
|
1022
|
+
id: {},
|
|
1023
|
+
label: {},
|
|
1024
|
+
for: {},
|
|
1025
|
+
size: { default: "medium" },
|
|
1026
|
+
readonly: { type: Boolean },
|
|
1027
|
+
disabled: { type: Boolean },
|
|
1028
|
+
required: { type: Boolean },
|
|
1029
|
+
class: {}
|
|
1030
|
+
},
|
|
1031
|
+
setup(n, { expose: t }) {
|
|
1032
|
+
const e = n, o = de(e.id), l = B(null), s = g(() => e.required && !e.readonly && !e.disabled);
|
|
1033
|
+
return t({
|
|
1034
|
+
fieldRef: l
|
|
1035
|
+
}), (a, r) => (d(), h("div", {
|
|
1036
|
+
id: y(o),
|
|
1037
|
+
class: T([
|
|
1038
|
+
"q-field",
|
|
1039
|
+
`q-field--${e.size}`,
|
|
1040
|
+
{
|
|
1041
|
+
"q-field--readonly": e.readonly,
|
|
1042
|
+
"q-field--disabled": e.disabled,
|
|
1043
|
+
"q-field--required": s.value
|
|
1044
|
+
},
|
|
1045
|
+
e.class
|
|
1046
|
+
])
|
|
1047
|
+
}, [
|
|
1048
|
+
e.label ? (d(), h("div", Nn, [
|
|
1049
|
+
p(a.$slots, "label.prepend"),
|
|
1050
|
+
x("label", {
|
|
1051
|
+
for: e.for
|
|
1052
|
+
}, z(e.label), 9, Rn),
|
|
1053
|
+
p(a.$slots, "label.append")
|
|
1054
|
+
])) : w("", !0),
|
|
1055
|
+
p(a.$slots, "control", {}, () => [
|
|
1056
|
+
x("div", Z({
|
|
1057
|
+
ref_key: "fieldRef",
|
|
1058
|
+
ref: l,
|
|
1059
|
+
class: "q-field__control"
|
|
1060
|
+
}, a.$attrs), [
|
|
1061
|
+
a.$slots.prepend ? (d(), h("div", Gn, [
|
|
1062
|
+
p(a.$slots, "prepend")
|
|
1063
|
+
])) : w("", !0),
|
|
1064
|
+
p(a.$slots, "default"),
|
|
1065
|
+
a.$slots.append ? (d(), h("div", Hn, [
|
|
1066
|
+
p(a.$slots, "append")
|
|
1067
|
+
])) : w("", !0)
|
|
1068
|
+
], 16)
|
|
1069
|
+
]),
|
|
1070
|
+
a.$slots.extras ? (d(), h("div", Kn, [
|
|
1071
|
+
p(a.$slots, "extras")
|
|
1072
|
+
])) : w("", !0)
|
|
1073
|
+
], 10, Pn));
|
|
1074
|
+
}
|
|
1075
|
+
}), Se = L(Wn), jn = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xn = /* @__PURE__ */ I({
|
|
1076
|
+
inheritAttrs: !1,
|
|
1077
|
+
__name: "QTextField",
|
|
1078
|
+
props: /* @__PURE__ */ G({
|
|
1079
|
+
id: {},
|
|
1080
|
+
placeholder: {},
|
|
1081
|
+
label: {},
|
|
1082
|
+
size: {},
|
|
1083
|
+
maxLength: {},
|
|
1084
|
+
readonly: { type: Boolean },
|
|
1085
|
+
disabled: { type: Boolean },
|
|
1086
|
+
required: { type: Boolean },
|
|
1087
|
+
role: {},
|
|
1088
|
+
type: { default: "text" },
|
|
1089
|
+
class: {}
|
|
1090
|
+
}, {
|
|
1091
|
+
modelValue: {},
|
|
1092
|
+
modelModifiers: {}
|
|
1093
|
+
}),
|
|
1094
|
+
emits: ["update:modelValue"],
|
|
1095
|
+
setup(n, { expose: t }) {
|
|
1096
|
+
const e = n, o = K(n, "modelValue"), l = de(e.id), s = B(null), a = B(null), r = g(
|
|
1097
|
+
() => e.readonly || e.disabled ? void 0 : e.placeholder
|
|
1098
|
+
);
|
|
1099
|
+
return t({
|
|
1100
|
+
fieldRef: g(() => {
|
|
1101
|
+
var i;
|
|
1102
|
+
return (i = s.value) == null ? void 0 : i.fieldRef;
|
|
1103
|
+
}),
|
|
1104
|
+
inputRef: a
|
|
1105
|
+
}), (i, c) => (d(), C(y(Se), {
|
|
1106
|
+
ref_key: "fieldRef",
|
|
1107
|
+
ref: s,
|
|
1108
|
+
class: T(["q-text-field", e.class]),
|
|
1109
|
+
for: y(l),
|
|
1110
|
+
label: e.label,
|
|
1111
|
+
size: e.size,
|
|
1112
|
+
readonly: e.readonly,
|
|
1113
|
+
disabled: e.disabled,
|
|
1114
|
+
required: e.required
|
|
1115
|
+
}, pe({
|
|
1116
|
+
"label.prepend": _(() => [
|
|
1117
|
+
p(i.$slots, "label.prepend")
|
|
1118
|
+
]),
|
|
1119
|
+
"label.append": _(() => [
|
|
1120
|
+
p(i.$slots, "label.append")
|
|
1121
|
+
]),
|
|
1122
|
+
default: _(() => [
|
|
1123
|
+
at(x("input", Z({
|
|
1124
|
+
id: y(l),
|
|
1125
|
+
ref_key: "inputRef",
|
|
1126
|
+
ref: a,
|
|
1127
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => o.value = b),
|
|
1128
|
+
class: "q-text-field__input",
|
|
1129
|
+
type: e.type,
|
|
1130
|
+
role: e.role,
|
|
1131
|
+
required: e.required,
|
|
1132
|
+
placeholder: r.value,
|
|
1133
|
+
readonly: e.readonly,
|
|
1134
|
+
disabled: e.disabled,
|
|
1135
|
+
maxlength: e.maxLength
|
|
1136
|
+
}, i.$attrs), null, 16, jn), [
|
|
1137
|
+
[Bt, o.value]
|
|
1138
|
+
])
|
|
1139
|
+
]),
|
|
1140
|
+
_: 2
|
|
1141
|
+
}, [
|
|
1142
|
+
i.$slots.prepend ? {
|
|
1143
|
+
name: "prepend",
|
|
1144
|
+
fn: _(() => [
|
|
1145
|
+
p(i.$slots, "prepend")
|
|
1146
|
+
]),
|
|
1147
|
+
key: "0"
|
|
1148
|
+
} : void 0,
|
|
1149
|
+
i.$slots.append ? {
|
|
1150
|
+
name: "append",
|
|
1151
|
+
fn: _(() => [
|
|
1152
|
+
p(i.$slots, "append")
|
|
1153
|
+
]),
|
|
1154
|
+
key: "1"
|
|
1155
|
+
} : void 0,
|
|
1156
|
+
i.$slots.extras ? {
|
|
1157
|
+
name: "extras",
|
|
1158
|
+
fn: _(() => [
|
|
1159
|
+
p(i.$slots, "extras")
|
|
1160
|
+
]),
|
|
1161
|
+
key: "2"
|
|
1162
|
+
} : void 0
|
|
1163
|
+
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1164
|
+
}
|
|
1165
|
+
}), Re = L(Xn), Yn = ["readonly", "disabled", "aria-label"], Zn = /* @__PURE__ */ I({
|
|
1166
|
+
__name: "QColorPicker",
|
|
1167
|
+
props: /* @__PURE__ */ G({
|
|
1168
|
+
id: {},
|
|
1169
|
+
placeholder: {},
|
|
1170
|
+
label: {},
|
|
1171
|
+
size: { default: "small" },
|
|
1172
|
+
readonly: { type: Boolean },
|
|
1173
|
+
disabled: { type: Boolean },
|
|
1174
|
+
required: { type: Boolean },
|
|
1175
|
+
class: {},
|
|
1176
|
+
texts: { default: () => Un }
|
|
1177
|
+
}, {
|
|
1178
|
+
modelValue: {},
|
|
1179
|
+
modelModifiers: {}
|
|
1180
|
+
}),
|
|
1181
|
+
emits: ["update:modelValue"],
|
|
1182
|
+
setup(n) {
|
|
1183
|
+
const t = n, e = K(n, "modelValue"), o = B(""), l = B(""), s = g(() => t.readonly || t.disabled);
|
|
1184
|
+
function a(m) {
|
|
1185
|
+
return mt(m, !0);
|
|
1186
|
+
}
|
|
1187
|
+
function r(m) {
|
|
1188
|
+
const A = m.target;
|
|
1189
|
+
e.value = a(A.value) ? A.value : "";
|
|
1190
|
+
}
|
|
1191
|
+
function i() {
|
|
1192
|
+
a(l.value) ? e.value = l.value : (e.value = "", l.value = "");
|
|
1193
|
+
}
|
|
1194
|
+
function c(m) {
|
|
1195
|
+
m && a(m) ? o.value = m : o.value = "#000000";
|
|
1196
|
+
}
|
|
1197
|
+
Y(e, c, { immediate: !0 });
|
|
1198
|
+
function b(m) {
|
|
1199
|
+
m && a(m) ? l.value = m : l.value = "";
|
|
1200
|
+
}
|
|
1201
|
+
return Y(e, b, { immediate: !0 }), (m, A) => (d(), C(y(Re), {
|
|
1202
|
+
modelValue: l.value,
|
|
1203
|
+
"onUpdate:modelValue": A[1] || (A[1] = (P) => l.value = P),
|
|
1204
|
+
maxlength: "7",
|
|
1205
|
+
id: t.id,
|
|
1206
|
+
class: T(["q-color-picker", t.class]),
|
|
1207
|
+
label: t.label,
|
|
1208
|
+
size: t.size,
|
|
1209
|
+
readonly: t.readonly,
|
|
1210
|
+
disabled: t.disabled,
|
|
1211
|
+
required: t.required,
|
|
1212
|
+
placeholder: t.placeholder,
|
|
1213
|
+
onChange: i
|
|
1214
|
+
}, pe({
|
|
1215
|
+
"label.prepend": _(() => [
|
|
1216
|
+
p(m.$slots, "label.prepend")
|
|
1217
|
+
]),
|
|
1218
|
+
"label.append": _(() => [
|
|
1219
|
+
p(m.$slots, "label.append")
|
|
1220
|
+
]),
|
|
1221
|
+
prepend: _(() => [
|
|
1222
|
+
p(m.$slots, "prepend"),
|
|
1223
|
+
at(x("input", {
|
|
1224
|
+
"onUpdate:modelValue": A[0] || (A[0] = (P) => o.value = P),
|
|
1225
|
+
type: "color",
|
|
1226
|
+
class: "q-color-picker__swatch",
|
|
1227
|
+
readonly: t.readonly,
|
|
1228
|
+
disabled: s.value,
|
|
1229
|
+
"aria-label": t.texts.selectColor,
|
|
1230
|
+
onChange: r
|
|
1231
|
+
}, null, 40, Yn), [
|
|
1232
|
+
[Vt, o.value]
|
|
1233
|
+
])
|
|
1234
|
+
]),
|
|
1235
|
+
_: 2
|
|
1236
|
+
}, [
|
|
1237
|
+
m.$slots.append ? {
|
|
1238
|
+
name: "append",
|
|
1239
|
+
fn: _(() => [
|
|
1240
|
+
p(m.$slots, "append")
|
|
1241
|
+
]),
|
|
1242
|
+
key: "0"
|
|
1243
|
+
} : void 0,
|
|
1244
|
+
m.$slots.extras ? {
|
|
1245
|
+
name: "extras",
|
|
1246
|
+
fn: _(() => [
|
|
1247
|
+
p(m.$slots, "extras")
|
|
1248
|
+
]),
|
|
1249
|
+
key: "1"
|
|
1250
|
+
} : void 0
|
|
1251
|
+
]), 1032, ["modelValue", "id", "class", "label", "size", "readonly", "disabled", "required", "placeholder"]));
|
|
1252
|
+
}
|
|
1253
|
+
}), Jn = L(Zn), Ge = {
|
|
1254
|
+
clearValue: "Clear value"
|
|
1255
|
+
}, He = {
|
|
1256
|
+
clear: {
|
|
1257
|
+
icon: "close"
|
|
1258
|
+
}
|
|
1259
|
+
}, eo = {
|
|
1260
|
+
...Ge,
|
|
1261
|
+
noData: "No data available",
|
|
1262
|
+
showOptions: "Show options"
|
|
1263
|
+
}, to = {
|
|
1264
|
+
...Le,
|
|
1265
|
+
...He
|
|
1266
|
+
}, no = /* @__PURE__ */ I({
|
|
981
1267
|
__name: "QList",
|
|
982
1268
|
props: /* @__PURE__ */ G({
|
|
983
|
-
highlighted: { type: [String, Number, Boolean, Symbol]
|
|
1269
|
+
highlighted: { type: [String, Number, Boolean, Symbol] },
|
|
984
1270
|
items: {},
|
|
985
1271
|
groups: { default: () => [] },
|
|
986
1272
|
itemValue: { default: "key" },
|
|
987
1273
|
itemLabel: { default: "label" },
|
|
988
1274
|
disabled: { type: Boolean },
|
|
989
|
-
class: {
|
|
1275
|
+
class: {},
|
|
990
1276
|
selectable: { type: Boolean }
|
|
991
1277
|
}, {
|
|
992
1278
|
modelValue: {
|
|
@@ -996,143 +1282,161 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
996
1282
|
}),
|
|
997
1283
|
emits: ["update:modelValue"],
|
|
998
1284
|
setup(n, { expose: t }) {
|
|
999
|
-
const e = n,
|
|
1000
|
-
(
|
|
1001
|
-
) : [{ id: "", title: "" }]),
|
|
1002
|
-
function
|
|
1003
|
-
|
|
1004
|
-
}
|
|
1005
|
-
function u() {
|
|
1006
|
-
o.value = !0;
|
|
1285
|
+
const e = n, o = K(n, "modelValue"), l = B(!1), s = g(() => a.value.length > 1 ? "div" : "ul"), a = g(() => e.groups.length ? e.groups.filter(
|
|
1286
|
+
(k) => e.items.some((u) => u.group === k.id)
|
|
1287
|
+
) : [{ id: "", title: "" }]), r = B(null), i = B(null);
|
|
1288
|
+
function c(k) {
|
|
1289
|
+
o.value = k;
|
|
1007
1290
|
}
|
|
1008
1291
|
function b() {
|
|
1009
|
-
|
|
1292
|
+
l.value = !0;
|
|
1010
1293
|
}
|
|
1011
|
-
function
|
|
1012
|
-
|
|
1013
|
-
|
|
1294
|
+
function m() {
|
|
1295
|
+
l.value = !1;
|
|
1296
|
+
}
|
|
1297
|
+
function A(k) {
|
|
1298
|
+
var O;
|
|
1299
|
+
if ((O = r.value) != null && O.contains(k.relatedTarget))
|
|
1014
1300
|
return;
|
|
1015
|
-
let
|
|
1016
|
-
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1301
|
+
let u;
|
|
1302
|
+
o.value ? u = e.items.findIndex((H) => H[e.itemValue] === o.value) : u = j();
|
|
1303
|
+
const q = l.value;
|
|
1304
|
+
$(u, q);
|
|
1019
1305
|
}
|
|
1020
|
-
function
|
|
1021
|
-
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1306
|
+
function P(k) {
|
|
1307
|
+
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(k.key) && k.preventDefault(), k.key) {
|
|
1022
1308
|
case "ArrowDown":
|
|
1023
|
-
|
|
1309
|
+
N("next");
|
|
1024
1310
|
break;
|
|
1025
1311
|
case "ArrowUp":
|
|
1026
|
-
|
|
1312
|
+
N("prev");
|
|
1027
1313
|
break;
|
|
1028
1314
|
case "Home":
|
|
1029
|
-
|
|
1315
|
+
N("first");
|
|
1030
1316
|
break;
|
|
1031
1317
|
case "End":
|
|
1032
|
-
|
|
1318
|
+
N("last");
|
|
1033
1319
|
break;
|
|
1034
1320
|
}
|
|
1035
1321
|
}
|
|
1036
|
-
function
|
|
1037
|
-
switch (
|
|
1322
|
+
function N(k) {
|
|
1323
|
+
switch (k) {
|
|
1038
1324
|
case "next":
|
|
1039
1325
|
case "prev":
|
|
1040
|
-
|
|
1326
|
+
$(E(k));
|
|
1041
1327
|
break;
|
|
1042
1328
|
case "first":
|
|
1043
|
-
|
|
1329
|
+
$(j());
|
|
1044
1330
|
break;
|
|
1045
1331
|
case "last":
|
|
1046
|
-
|
|
1332
|
+
$(te());
|
|
1047
1333
|
break;
|
|
1048
1334
|
}
|
|
1049
1335
|
}
|
|
1050
|
-
function
|
|
1051
|
-
var
|
|
1052
|
-
(
|
|
1053
|
-
}
|
|
1054
|
-
function _() {
|
|
1055
|
-
var S;
|
|
1056
|
-
const v = (S = d.value) == null ? void 0 : S.querySelectorAll("li");
|
|
1057
|
-
return v ? Array.from(v) : [];
|
|
1336
|
+
function $(k, u = !1) {
|
|
1337
|
+
var O;
|
|
1338
|
+
(O = V()[k]) == null || O.focus({ preventScroll: u });
|
|
1058
1339
|
}
|
|
1059
|
-
function V(
|
|
1060
|
-
|
|
1340
|
+
function V() {
|
|
1341
|
+
var u;
|
|
1342
|
+
const k = (u = r.value) == null ? void 0 : u.querySelectorAll("li");
|
|
1343
|
+
return k ? Array.from(k) : [];
|
|
1061
1344
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1345
|
+
function D(k) {
|
|
1346
|
+
return V()[k];
|
|
1064
1347
|
}
|
|
1065
1348
|
function Q() {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
return
|
|
1075
|
-
}
|
|
1076
|
-
function
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1349
|
+
return V().indexOf(document.activeElement);
|
|
1350
|
+
}
|
|
1351
|
+
function j() {
|
|
1352
|
+
const k = V(), u = k.find((q) => ae(q));
|
|
1353
|
+
return u ? k.indexOf(u) : -1;
|
|
1354
|
+
}
|
|
1355
|
+
function te() {
|
|
1356
|
+
const k = V(), u = [...k].reverse().find((q) => ae(q));
|
|
1357
|
+
return u ? k.indexOf(u) : -1;
|
|
1358
|
+
}
|
|
1359
|
+
function S(k, u, q) {
|
|
1360
|
+
return u === "prev" && k <= 0 || u === "next" && k === q.length - 1;
|
|
1361
|
+
}
|
|
1362
|
+
function E(k) {
|
|
1363
|
+
const u = Q();
|
|
1364
|
+
return R(u, k);
|
|
1365
|
+
}
|
|
1366
|
+
function R(k, u) {
|
|
1367
|
+
const q = V();
|
|
1368
|
+
if (S(k, u, q))
|
|
1369
|
+
return k;
|
|
1370
|
+
let O = k + (u === "next" ? 1 : -1);
|
|
1371
|
+
for (; !ae(q[O]); ) {
|
|
1372
|
+
if (S(O, u, q))
|
|
1373
|
+
return k;
|
|
1374
|
+
O += u === "next" ? 1 : -1;
|
|
1089
1375
|
}
|
|
1090
|
-
return
|
|
1376
|
+
return O;
|
|
1091
1377
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return
|
|
1378
|
+
function ae(k) {
|
|
1379
|
+
return k.tabIndex === -2;
|
|
1094
1380
|
}
|
|
1095
|
-
function ce(
|
|
1096
|
-
return
|
|
1381
|
+
function ce(k) {
|
|
1382
|
+
return k ? e.items.filter((u) => u.group === k) : e.items;
|
|
1097
1383
|
}
|
|
1098
1384
|
return t({
|
|
1099
|
-
focusItem:
|
|
1100
|
-
getItem:
|
|
1101
|
-
getAdjacentItemIndex:
|
|
1102
|
-
getFirstFocusableItemIndex:
|
|
1103
|
-
getLastFocusableItemIndex:
|
|
1104
|
-
}), (
|
|
1385
|
+
focusItem: $,
|
|
1386
|
+
getItem: D,
|
|
1387
|
+
getAdjacentItemIndex: R,
|
|
1388
|
+
getFirstFocusableItemIndex: j,
|
|
1389
|
+
getLastFocusableItemIndex: te
|
|
1390
|
+
}), (k, u) => (d(), C(Ie(s.value), {
|
|
1105
1391
|
ref_key: "listRef",
|
|
1106
|
-
ref:
|
|
1392
|
+
ref: r,
|
|
1107
1393
|
class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
1108
1394
|
role: "listbox",
|
|
1109
1395
|
tabindex: e.disabled ? -1 : 0,
|
|
1110
|
-
onFocus:
|
|
1111
|
-
onMousedown:
|
|
1112
|
-
onMouseup:
|
|
1113
|
-
onKeydown:
|
|
1396
|
+
onFocus: A,
|
|
1397
|
+
onMousedown: b,
|
|
1398
|
+
onMouseup: m,
|
|
1399
|
+
onKeydown: P
|
|
1114
1400
|
}, {
|
|
1115
|
-
default:
|
|
1116
|
-
(
|
|
1117
|
-
id:
|
|
1118
|
-
key:
|
|
1119
|
-
title: a.value.length === 1 ? void 0 :
|
|
1401
|
+
default: _(() => [
|
|
1402
|
+
(d(!0), h(W, null, ye(a.value, (q, O) => (d(), C(y(gt), {
|
|
1403
|
+
id: q.id,
|
|
1404
|
+
key: q.id,
|
|
1405
|
+
title: a.value.length === 1 ? void 0 : q.title
|
|
1120
1406
|
}, {
|
|
1121
|
-
default:
|
|
1122
|
-
(
|
|
1123
|
-
key:
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1407
|
+
default: _(() => [
|
|
1408
|
+
(d(!0), h(W, null, ye(ce(q.id), (H, J) => (d(), C(y(bt), {
|
|
1409
|
+
key: H[e.itemValue],
|
|
1410
|
+
ref_for: !0,
|
|
1411
|
+
ref_key: "listItemsRef",
|
|
1412
|
+
ref: i,
|
|
1413
|
+
value: H[e.itemValue],
|
|
1414
|
+
label: H[e.itemLabel],
|
|
1415
|
+
description: H.description,
|
|
1416
|
+
icon: H.icon,
|
|
1417
|
+
disabled: e.disabled || q.disabled || H.disabled,
|
|
1418
|
+
highlighted: e.highlighted === H[e.itemValue],
|
|
1419
|
+
selected: k.selectable && o.value === H[e.itemValue],
|
|
1420
|
+
onSelect: c
|
|
1132
1421
|
}, {
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1422
|
+
append: _(() => {
|
|
1423
|
+
var ee, oe;
|
|
1424
|
+
return [
|
|
1425
|
+
p(k.$slots, "item.append", {
|
|
1426
|
+
item: H,
|
|
1427
|
+
element: (oe = (ee = i.value) == null ? void 0 : ee[J + O * a.value.length]) == null ? void 0 : oe.$el
|
|
1428
|
+
})
|
|
1429
|
+
];
|
|
1430
|
+
}),
|
|
1431
|
+
default: _(() => {
|
|
1432
|
+
var ee, oe;
|
|
1433
|
+
return [
|
|
1434
|
+
p(k.$slots, "item", {
|
|
1435
|
+
item: H,
|
|
1436
|
+
element: (oe = (ee = i.value) == null ? void 0 : ee[J + O * a.value.length]) == null ? void 0 : oe.$el
|
|
1437
|
+
})
|
|
1438
|
+
];
|
|
1439
|
+
}),
|
|
1136
1440
|
_: 2
|
|
1137
1441
|
}, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
1138
1442
|
]),
|
|
@@ -1142,39 +1446,39 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1142
1446
|
_: 3
|
|
1143
1447
|
}, 40, ["class", "tabindex"]));
|
|
1144
1448
|
}
|
|
1145
|
-
}),
|
|
1449
|
+
}), oo = {
|
|
1146
1450
|
check: {
|
|
1147
1451
|
icon: "check"
|
|
1148
1452
|
},
|
|
1149
1453
|
description: {
|
|
1150
1454
|
icon: "information-outline"
|
|
1151
1455
|
}
|
|
1152
|
-
},
|
|
1456
|
+
}, lo = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], so = { class: "q-list-item__container" }, ao = { class: "q-list-item__content" }, io = {
|
|
1153
1457
|
key: 0,
|
|
1154
1458
|
class: "q-list-item__description"
|
|
1155
|
-
},
|
|
1459
|
+
}, ro = { class: "q-list-item__check-container" }, co = /* @__PURE__ */ I({
|
|
1156
1460
|
__name: "QListItem",
|
|
1157
1461
|
props: {
|
|
1158
1462
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
1159
1463
|
label: {},
|
|
1160
|
-
icon: {
|
|
1464
|
+
icon: {},
|
|
1161
1465
|
selected: { type: Boolean },
|
|
1162
1466
|
highlighted: { type: Boolean },
|
|
1163
1467
|
disabled: { type: Boolean },
|
|
1164
|
-
description: {
|
|
1165
|
-
icons: { default: () =>
|
|
1468
|
+
description: {},
|
|
1469
|
+
icons: { default: () => oo }
|
|
1166
1470
|
},
|
|
1167
1471
|
emits: ["select"],
|
|
1168
1472
|
setup(n, { emit: t }) {
|
|
1169
|
-
const e = n,
|
|
1473
|
+
const e = n, o = t, l = de();
|
|
1170
1474
|
function s() {
|
|
1171
|
-
e.disabled ||
|
|
1475
|
+
e.disabled || o("select", e.value);
|
|
1172
1476
|
}
|
|
1173
|
-
function a(
|
|
1174
|
-
|
|
1477
|
+
function a(r) {
|
|
1478
|
+
r.key === "Tab" && s(), (r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
1175
1479
|
}
|
|
1176
|
-
return (
|
|
1177
|
-
id:
|
|
1480
|
+
return (r, i) => (d(), h("li", {
|
|
1481
|
+
id: y(l),
|
|
1178
1482
|
"data-key": e.value,
|
|
1179
1483
|
role: "option",
|
|
1180
1484
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -1189,701 +1493,646 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1189
1493
|
"aria-label": e.label,
|
|
1190
1494
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
1191
1495
|
onKeydown: a,
|
|
1192
|
-
onClick:
|
|
1496
|
+
onClick: ne(s, ["stop", "prevent"])
|
|
1193
1497
|
}, [
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1498
|
+
p(r.$slots, "prepend"),
|
|
1499
|
+
x("div", so, [
|
|
1500
|
+
x("div", ao, [
|
|
1501
|
+
p(r.$slots, "default", {}, () => [
|
|
1502
|
+
e.icon ? (d(), C(y(X), se(Z({ key: 0 }, e.icon)), null, 16)) : w("", !0),
|
|
1503
|
+
ie(" " + z(e.label), 1)
|
|
1199
1504
|
])
|
|
1200
1505
|
]),
|
|
1201
|
-
e.description ? (
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
])) :
|
|
1506
|
+
e.description ? (d(), h("div", io, [
|
|
1507
|
+
U(y(X), se(fe(e.icons.description)), null, 16),
|
|
1508
|
+
x("span", null, z(e.description), 1)
|
|
1509
|
+
])) : w("", !0)
|
|
1205
1510
|
]),
|
|
1206
|
-
|
|
1207
|
-
|
|
1511
|
+
p(r.$slots, "append"),
|
|
1512
|
+
x("div", ro, [
|
|
1513
|
+
e.selected ? (d(), C(y(X), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : w("", !0)
|
|
1208
1514
|
])
|
|
1209
|
-
], 42,
|
|
1515
|
+
], 42, lo));
|
|
1210
1516
|
}
|
|
1211
|
-
}),
|
|
1517
|
+
}), uo = ["data-key", "aria-labelledby"], fo = ["id"], po = /* @__PURE__ */ I({
|
|
1212
1518
|
__name: "QListItemGroup",
|
|
1213
1519
|
props: {
|
|
1214
1520
|
id: {},
|
|
1215
|
-
title: {
|
|
1521
|
+
title: {}
|
|
1216
1522
|
},
|
|
1217
1523
|
setup(n) {
|
|
1218
|
-
const t = n, e =
|
|
1219
|
-
return (
|
|
1524
|
+
const t = n, e = de();
|
|
1525
|
+
return (o, l) => (d(), h("ul", {
|
|
1220
1526
|
class: "q-list-item-group",
|
|
1221
1527
|
role: "group",
|
|
1222
1528
|
"data-key": t.id,
|
|
1223
|
-
"aria-labelledby": t.title ?
|
|
1529
|
+
"aria-labelledby": t.title ? y(e) : void 0
|
|
1224
1530
|
}, [
|
|
1225
|
-
t.title ? (
|
|
1531
|
+
t.title ? (d(), h("li", {
|
|
1226
1532
|
key: 0,
|
|
1227
|
-
id:
|
|
1533
|
+
id: y(e),
|
|
1228
1534
|
class: "q-list-item-group__title",
|
|
1229
1535
|
role: "presentation"
|
|
1230
|
-
},
|
|
1231
|
-
p(
|
|
1232
|
-
], 8,
|
|
1536
|
+
}, z(t.title), 9, fo)) : w("", !0),
|
|
1537
|
+
p(o.$slots, "default")
|
|
1538
|
+
], 8, uo));
|
|
1233
1539
|
}
|
|
1234
|
-
}),
|
|
1540
|
+
}), Be = L(no), bt = L(co), gt = L(po), ve = "data-scroll-locked", Te = "right-scroll-bar-position", Ae = "width-before-scroll-bar", mo = "with-scroll-bars-hidden", ho = "--removed-body-scroll-bar-size", vo = {
|
|
1235
1541
|
left: 0,
|
|
1236
1542
|
top: 0,
|
|
1237
1543
|
right: 0,
|
|
1238
1544
|
gap: 0
|
|
1239
|
-
},
|
|
1240
|
-
const t = window.getComputedStyle(document.body), e = t[n === "padding" ? "paddingLeft" : "marginLeft"],
|
|
1241
|
-
return [
|
|
1242
|
-
},
|
|
1545
|
+
}, Ee = (n) => parseInt(n || "", 10) || 0, yo = (n) => {
|
|
1546
|
+
const t = window.getComputedStyle(document.body), e = t[n === "padding" ? "paddingLeft" : "marginLeft"], o = t[n === "padding" ? "paddingTop" : "marginTop"], l = t[n === "padding" ? "paddingRight" : "marginRight"];
|
|
1547
|
+
return [Ee(e), Ee(o), Ee(l)];
|
|
1548
|
+
}, bo = (n = "margin") => {
|
|
1243
1549
|
if (typeof window > "u")
|
|
1244
|
-
return
|
|
1245
|
-
const t =
|
|
1550
|
+
return vo;
|
|
1551
|
+
const t = yo(n), e = document.documentElement.clientWidth, o = window.innerWidth;
|
|
1246
1552
|
return {
|
|
1247
1553
|
left: t[0],
|
|
1248
1554
|
top: t[1],
|
|
1249
1555
|
right: t[2],
|
|
1250
|
-
gap: Math.max(0,
|
|
1556
|
+
gap: Math.max(0, o - e + t[2] - t[0])
|
|
1251
1557
|
};
|
|
1252
1558
|
};
|
|
1253
|
-
function
|
|
1559
|
+
function go() {
|
|
1254
1560
|
return document ? document.createElement("style") : null;
|
|
1255
1561
|
}
|
|
1256
|
-
function
|
|
1562
|
+
function _o(n, t) {
|
|
1257
1563
|
n.appendChild(document.createTextNode(t));
|
|
1258
1564
|
}
|
|
1259
|
-
function
|
|
1565
|
+
function $o(n) {
|
|
1260
1566
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(n);
|
|
1261
1567
|
}
|
|
1262
|
-
const
|
|
1568
|
+
const ko = () => {
|
|
1263
1569
|
let n = 0, t = null;
|
|
1264
1570
|
return {
|
|
1265
1571
|
add: (e) => {
|
|
1266
|
-
n === 0 && (t =
|
|
1572
|
+
n === 0 && (t = go()) && (_o(t, e), $o(t)), n++;
|
|
1267
1573
|
},
|
|
1268
1574
|
remove: () => {
|
|
1269
1575
|
var e;
|
|
1270
1576
|
n--, !n && t && ((e = t.parentNode) == null || e.removeChild(t), t = null);
|
|
1271
1577
|
}
|
|
1272
1578
|
};
|
|
1273
|
-
},
|
|
1579
|
+
}, wo = /* @__PURE__ */ I({
|
|
1274
1580
|
__name: "QRemoveScrollBar",
|
|
1275
1581
|
props: {
|
|
1276
|
-
noRelative: { type: Boolean
|
|
1277
|
-
noImportant: { type: Boolean
|
|
1582
|
+
noRelative: { type: Boolean },
|
|
1583
|
+
noImportant: { type: Boolean },
|
|
1278
1584
|
gapMode: { default: "margin" }
|
|
1279
1585
|
},
|
|
1280
1586
|
setup(n) {
|
|
1281
|
-
const t = n, e =
|
|
1282
|
-
const s = parseInt(document.body.getAttribute(
|
|
1587
|
+
const t = n, e = ko(), o = () => {
|
|
1588
|
+
const s = parseInt(document.body.getAttribute(ve) || "0", 10);
|
|
1283
1589
|
return isFinite(s) ? s : 0;
|
|
1284
|
-
},
|
|
1285
|
-
.${
|
|
1286
|
-
overflow: hidden ${
|
|
1287
|
-
padding-right: ${
|
|
1590
|
+
}, l = ({ left: s, top: a, right: r, gap: i }, c, b = "margin", m) => `
|
|
1591
|
+
.${mo} {
|
|
1592
|
+
overflow: hidden ${m};
|
|
1593
|
+
padding-right: ${i}px ${m};
|
|
1288
1594
|
}
|
|
1289
|
-
body[${
|
|
1290
|
-
overflow: hidden ${
|
|
1595
|
+
body[${ve}] {
|
|
1596
|
+
overflow: hidden ${m};
|
|
1291
1597
|
overscroll-behavior: contain;
|
|
1292
1598
|
${[
|
|
1293
|
-
|
|
1599
|
+
c && `position: relative ${m};`,
|
|
1294
1600
|
b === "margin" && `
|
|
1295
1601
|
padding-left: ${s}px;
|
|
1296
1602
|
padding-top: ${a}px;
|
|
1297
|
-
padding-right: ${
|
|
1603
|
+
padding-right: ${r}px;
|
|
1298
1604
|
margin-left:0;
|
|
1299
1605
|
margin-top:0;
|
|
1300
|
-
margin-right: ${
|
|
1606
|
+
margin-right: ${i}px ${m};
|
|
1301
1607
|
`,
|
|
1302
|
-
b === "padding" && `padding-right: ${
|
|
1608
|
+
b === "padding" && `padding-right: ${i}px ${m};`
|
|
1303
1609
|
].filter(Boolean).join("")}
|
|
1304
1610
|
}
|
|
1305
1611
|
|
|
1306
|
-
.${
|
|
1307
|
-
right: ${
|
|
1612
|
+
.${Te} {
|
|
1613
|
+
right: ${i}px ${m};
|
|
1308
1614
|
}
|
|
1309
1615
|
|
|
1310
|
-
.${
|
|
1311
|
-
margin-right: ${
|
|
1616
|
+
.${Ae} {
|
|
1617
|
+
margin-right: ${i}px ${m};
|
|
1312
1618
|
}
|
|
1313
1619
|
|
|
1314
|
-
.${
|
|
1315
|
-
right: 0 ${
|
|
1620
|
+
.${Te} .${Te} {
|
|
1621
|
+
right: 0 ${m};
|
|
1316
1622
|
}
|
|
1317
1623
|
|
|
1318
|
-
.${
|
|
1319
|
-
margin-right: 0 ${
|
|
1624
|
+
.${Ae} .${Ae} {
|
|
1625
|
+
margin-right: 0 ${m};
|
|
1320
1626
|
}
|
|
1321
1627
|
|
|
1322
|
-
body[${
|
|
1323
|
-
${
|
|
1628
|
+
body[${ve}] {
|
|
1629
|
+
${ho}: ${i}px;
|
|
1324
1630
|
}
|
|
1325
1631
|
`;
|
|
1326
|
-
return
|
|
1327
|
-
document.body.setAttribute(
|
|
1328
|
-
const s =
|
|
1632
|
+
return Oe(() => {
|
|
1633
|
+
document.body.setAttribute(ve, (o() + 1).toString());
|
|
1634
|
+
const s = bo(t.gapMode);
|
|
1329
1635
|
e.add(
|
|
1330
|
-
|
|
1636
|
+
l(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
|
|
1331
1637
|
);
|
|
1332
|
-
}),
|
|
1333
|
-
const s =
|
|
1334
|
-
s <= 0 ? document.body.removeAttribute(
|
|
1638
|
+
}), Tt(() => {
|
|
1639
|
+
const s = o() - 1;
|
|
1640
|
+
s <= 0 ? document.body.removeAttribute(ve) : document.body.setAttribute(ve, s.toString()), e.remove();
|
|
1335
1641
|
}), (s, a) => p(s.$slots, "default");
|
|
1336
1642
|
}
|
|
1337
|
-
}),
|
|
1338
|
-
function
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1643
|
+
}), qo = L(wo), tt = "q-theme";
|
|
1644
|
+
function xo() {
|
|
1645
|
+
let n = document.getElementById(
|
|
1646
|
+
tt
|
|
1647
|
+
);
|
|
1648
|
+
return n || (n = document.createElement("style"), n.id = tt, document.head.appendChild(n)), n;
|
|
1649
|
+
}
|
|
1650
|
+
function Co(n) {
|
|
1651
|
+
let t = "";
|
|
1652
|
+
for (const o of n) {
|
|
1653
|
+
t += `.q-theme--${o.name} {
|
|
1654
|
+
`;
|
|
1655
|
+
const l = o.scheme;
|
|
1656
|
+
let s;
|
|
1657
|
+
for (s in l) {
|
|
1658
|
+
const a = l[s];
|
|
1659
|
+
if (a) {
|
|
1660
|
+
t += ` ${nt(s)}: ${a};
|
|
1661
|
+
`;
|
|
1662
|
+
const r = ht(a);
|
|
1663
|
+
t += ` ${nt(s)}-rgb: ${r.r} ${r.g} ${r.b};
|
|
1664
|
+
`;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
t += `}
|
|
1668
|
+
`;
|
|
1669
|
+
}
|
|
1670
|
+
const e = xo();
|
|
1671
|
+
e.textContent = t;
|
|
1672
|
+
}
|
|
1673
|
+
function nt(n) {
|
|
1674
|
+
return n ? `--q-theme-${ct(n)}` : "";
|
|
1675
|
+
}
|
|
1676
|
+
function _t(n, t) {
|
|
1677
|
+
const e = g(() => {
|
|
1678
|
+
const l = t.find((s) => s.name === n.value);
|
|
1679
|
+
if (!l)
|
|
1680
|
+
throw new Error(`Theme "${n}" not found`);
|
|
1681
|
+
return l;
|
|
1682
|
+
});
|
|
1683
|
+
return {
|
|
1684
|
+
name: n,
|
|
1685
|
+
current: e,
|
|
1686
|
+
themes: t
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1689
|
+
const Ke = Symbol.for("q-theme");
|
|
1690
|
+
function $t() {
|
|
1691
|
+
const n = Me(Ke);
|
|
1692
|
+
if (!n)
|
|
1693
|
+
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
1694
|
+
return n;
|
|
1695
|
+
}
|
|
1696
|
+
function Io(n) {
|
|
1697
|
+
const t = $t(), e = t.themes, o = _t(n, e);
|
|
1698
|
+
return Fe(Ke, o), o;
|
|
1699
|
+
}
|
|
1700
|
+
const Lo = /* @__PURE__ */ I({
|
|
1701
|
+
__name: "QThemeProvider",
|
|
1702
|
+
props: {
|
|
1703
|
+
theme: {}
|
|
1704
|
+
},
|
|
1705
|
+
setup(n) {
|
|
1706
|
+
const t = n, e = qe(t, "theme");
|
|
1707
|
+
return Io(e), (o, l) => (d(), h("div", {
|
|
1708
|
+
class: T(["q-theme-provider", `q-theme--${t.theme}`])
|
|
1709
|
+
}, [
|
|
1710
|
+
p(o.$slots, "default")
|
|
1711
|
+
], 2));
|
|
1712
|
+
}
|
|
1713
|
+
}), kt = L(Lo), we = 8;
|
|
1714
|
+
function So(n, t, e, o) {
|
|
1715
|
+
const l = (o == null ? void 0 : o.offset) ?? 0, s = (o == null ? void 0 : o.crossOffset) ?? 0, a = (o == null ? void 0 : o.placement) ?? "bottom", r = n.getBoundingClientRect(), i = t.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), b = Bo(r, i, a, l), m = Do(r, i, b), A = To(m, b, l), P = Ao(A, b, s), N = Vo(P, i, b);
|
|
1716
|
+
let $;
|
|
1717
|
+
if (o != null && o.arrow) {
|
|
1718
|
+
if (!c)
|
|
1343
1719
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
1344
|
-
|
|
1720
|
+
$ = Eo(N, r, i, c, b);
|
|
1345
1721
|
}
|
|
1346
|
-
return { overlayCoords:
|
|
1722
|
+
return { overlayCoords: N, arrowCoords: $, placement: b };
|
|
1347
1723
|
}
|
|
1348
|
-
function
|
|
1349
|
-
const
|
|
1350
|
-
if (
|
|
1351
|
-
const s =
|
|
1724
|
+
function Bo(n, t, e, o) {
|
|
1725
|
+
const l = ot(n, t, e, o);
|
|
1726
|
+
if (lt(l)) {
|
|
1727
|
+
const s = be(e), r = {
|
|
1352
1728
|
top: "bottom",
|
|
1353
1729
|
bottom: "top",
|
|
1354
1730
|
left: "right",
|
|
1355
1731
|
right: "left"
|
|
1356
|
-
}[s],
|
|
1732
|
+
}[s], i = ot(
|
|
1357
1733
|
n,
|
|
1358
1734
|
t,
|
|
1359
|
-
|
|
1360
|
-
|
|
1735
|
+
r,
|
|
1736
|
+
o
|
|
1361
1737
|
);
|
|
1362
|
-
if (
|
|
1738
|
+
if (lt(i))
|
|
1363
1739
|
return e;
|
|
1364
|
-
const
|
|
1365
|
-
return
|
|
1740
|
+
const c = Fo(e);
|
|
1741
|
+
return c ? `${r}-${c}` : r;
|
|
1366
1742
|
}
|
|
1367
1743
|
return e;
|
|
1368
1744
|
}
|
|
1369
|
-
function
|
|
1370
|
-
const
|
|
1371
|
-
return
|
|
1745
|
+
function Vo(n, t, e) {
|
|
1746
|
+
const o = Ce(e), l = (a, r, i) => Math.min(Math.max(a, r), i), s = { ...n };
|
|
1747
|
+
return o === "x" ? s.x = l(n.x, we, window.innerWidth - t.width - we) : s.y = l(n.y, we, window.innerHeight - t.height - we), s;
|
|
1748
|
+
}
|
|
1749
|
+
function To(n, t, e) {
|
|
1750
|
+
const o = be(t);
|
|
1751
|
+
return {
|
|
1752
|
+
x: n.x + (o === "left" ? -e : o === "right" ? e : 0),
|
|
1753
|
+
y: n.y + (o === "top" ? -e : o === "bottom" ? e : 0)
|
|
1754
|
+
};
|
|
1372
1755
|
}
|
|
1373
|
-
function
|
|
1374
|
-
const
|
|
1756
|
+
function Ao(n, t, e) {
|
|
1757
|
+
const o = be(t);
|
|
1375
1758
|
return {
|
|
1376
|
-
x: n.x + (
|
|
1377
|
-
y: n.y + (
|
|
1759
|
+
x: n.x + (o === "top" || o === "bottom" ? e : 0),
|
|
1760
|
+
y: n.y + (o === "right" || o === "left" ? e : 0)
|
|
1378
1761
|
};
|
|
1379
1762
|
}
|
|
1380
|
-
function
|
|
1381
|
-
if (
|
|
1382
|
-
const a = t.top + t.height / 2,
|
|
1383
|
-
if (
|
|
1763
|
+
function Eo(n, t, e, o, l) {
|
|
1764
|
+
if (Ce(l) === "y") {
|
|
1765
|
+
const a = t.top + t.height / 2, r = n.y + e.height / 2, i = r - a, c = e.height / 2 - i - o.height / 2 + 2;
|
|
1766
|
+
if (c > 0 && c < e.height - o.height)
|
|
1384
1767
|
return {
|
|
1385
|
-
y:
|
|
1768
|
+
y: c
|
|
1386
1769
|
};
|
|
1387
1770
|
} else {
|
|
1388
|
-
const a = t.left + t.width / 2,
|
|
1389
|
-
if (
|
|
1771
|
+
const a = t.left + t.width / 2, r = n.x + e.width / 2, i = r - a, c = e.width / 2 - i - o.width / 2 + 2;
|
|
1772
|
+
if (c > 0 && c < e.width - o.width)
|
|
1390
1773
|
return {
|
|
1391
|
-
x:
|
|
1774
|
+
x: c
|
|
1392
1775
|
};
|
|
1393
1776
|
}
|
|
1394
1777
|
}
|
|
1395
|
-
function
|
|
1396
|
-
const [
|
|
1397
|
-
let
|
|
1398
|
-
switch (
|
|
1778
|
+
function Do(n, t, e) {
|
|
1779
|
+
const [o, l] = e.split("-"), s = n.x + n.width / 2 - t.width / 2, a = n.y + n.height / 2 - t.height / 2;
|
|
1780
|
+
let r;
|
|
1781
|
+
switch (o) {
|
|
1399
1782
|
case "top":
|
|
1400
|
-
|
|
1783
|
+
r = { x: s, y: n.y - t.height };
|
|
1401
1784
|
break;
|
|
1402
1785
|
case "bottom":
|
|
1403
|
-
|
|
1786
|
+
r = { x: s, y: n.y + n.height };
|
|
1404
1787
|
break;
|
|
1405
1788
|
case "left":
|
|
1406
|
-
|
|
1789
|
+
r = { x: n.x - t.width, y: a };
|
|
1407
1790
|
break;
|
|
1408
1791
|
case "right":
|
|
1409
|
-
|
|
1792
|
+
r = { x: n.x + n.width, y: a };
|
|
1410
1793
|
break;
|
|
1411
1794
|
default:
|
|
1412
1795
|
throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
|
|
1413
1796
|
}
|
|
1414
|
-
if (!
|
|
1415
|
-
return
|
|
1416
|
-
const
|
|
1417
|
-
switch (
|
|
1797
|
+
if (!l)
|
|
1798
|
+
return r;
|
|
1799
|
+
const c = Ce(e) === "y" ? "height" : "width", b = Ce(e), m = n[c] / 2 - t[c] / 2;
|
|
1800
|
+
switch (l) {
|
|
1418
1801
|
case "start":
|
|
1419
|
-
|
|
1802
|
+
r[b] -= m;
|
|
1420
1803
|
break;
|
|
1421
1804
|
case "end":
|
|
1422
|
-
|
|
1805
|
+
r[b] += m;
|
|
1423
1806
|
break;
|
|
1424
1807
|
default:
|
|
1425
|
-
throw new Error(`[Quidgest UI] Invalid alignment value: ${
|
|
1808
|
+
throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
|
|
1426
1809
|
}
|
|
1427
|
-
return
|
|
1810
|
+
return r;
|
|
1428
1811
|
}
|
|
1429
|
-
function
|
|
1430
|
-
const
|
|
1812
|
+
function ot(n, t, e, o) {
|
|
1813
|
+
const l = be(e);
|
|
1431
1814
|
let s = 0;
|
|
1432
|
-
switch (
|
|
1815
|
+
switch (l) {
|
|
1433
1816
|
case "top":
|
|
1434
|
-
s = n.top - (t.height +
|
|
1817
|
+
s = n.top - (t.height + o);
|
|
1435
1818
|
break;
|
|
1436
1819
|
case "bottom":
|
|
1437
|
-
s = window.innerHeight - n.bottom - (t.height +
|
|
1820
|
+
s = window.innerHeight - n.bottom - (t.height + o);
|
|
1438
1821
|
break;
|
|
1439
1822
|
case "left":
|
|
1440
|
-
s = n.left - (t.width +
|
|
1823
|
+
s = n.left - (t.width + o);
|
|
1441
1824
|
break;
|
|
1442
1825
|
case "right":
|
|
1443
|
-
s = window.innerWidth - n.right - (t.width +
|
|
1826
|
+
s = window.innerWidth - n.right - (t.width + o);
|
|
1444
1827
|
break;
|
|
1445
1828
|
default:
|
|
1446
|
-
throw new Error(`[Quidgest UI] Invalid side value: ${
|
|
1829
|
+
throw new Error(`[Quidgest UI] Invalid side value: ${l}`);
|
|
1447
1830
|
}
|
|
1448
1831
|
return s;
|
|
1449
1832
|
}
|
|
1450
|
-
function
|
|
1833
|
+
function Qo(n) {
|
|
1451
1834
|
return n === "x" ? "y" : "x";
|
|
1452
1835
|
}
|
|
1453
|
-
function
|
|
1454
|
-
const t =
|
|
1836
|
+
function zo(n) {
|
|
1837
|
+
const t = be(n);
|
|
1455
1838
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1456
1839
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return
|
|
1840
|
+
function Ce(n) {
|
|
1841
|
+
return Qo(zo(n));
|
|
1459
1842
|
}
|
|
1460
|
-
function
|
|
1843
|
+
function be(n) {
|
|
1461
1844
|
const [t] = n.split("-");
|
|
1462
1845
|
return t;
|
|
1463
1846
|
}
|
|
1464
|
-
function
|
|
1847
|
+
function Fo(n) {
|
|
1465
1848
|
const [, t] = n.split("-");
|
|
1466
1849
|
return t;
|
|
1467
1850
|
}
|
|
1468
|
-
function
|
|
1851
|
+
function lt(n) {
|
|
1469
1852
|
return n < 0;
|
|
1470
1853
|
}
|
|
1471
|
-
function
|
|
1854
|
+
function Mo(n) {
|
|
1472
1855
|
return typeof n == "string" ? document.querySelector(n) : n;
|
|
1473
1856
|
}
|
|
1474
|
-
const
|
|
1857
|
+
const Oo = ["role"], Uo = /* @__PURE__ */ I({
|
|
1475
1858
|
inheritAttrs: !1,
|
|
1476
1859
|
__name: "QOverlay",
|
|
1477
1860
|
props: /* @__PURE__ */ G({
|
|
1478
|
-
anchor: {
|
|
1861
|
+
anchor: {},
|
|
1479
1862
|
appearance: { default: "regular" },
|
|
1480
1863
|
arrow: { type: Boolean },
|
|
1481
1864
|
attach: { default: "body" },
|
|
1482
1865
|
inline: { type: Boolean },
|
|
1483
1866
|
backdropBlur: { type: Boolean },
|
|
1484
|
-
backdropClass: {
|
|
1867
|
+
backdropClass: {},
|
|
1485
1868
|
delay: { default: 500 },
|
|
1486
1869
|
nonModal: { type: Boolean },
|
|
1487
1870
|
scrollLock: { type: Boolean },
|
|
1488
1871
|
offset: { default: 8 },
|
|
1872
|
+
crossOffset: { default: 0 },
|
|
1489
1873
|
persistent: { type: Boolean },
|
|
1490
1874
|
placement: { default: "right" },
|
|
1491
1875
|
spy: { type: Boolean },
|
|
1492
1876
|
transition: { default: "fade" },
|
|
1493
1877
|
trigger: { default: "click" },
|
|
1494
1878
|
width: { default: "auto" },
|
|
1495
|
-
class: {
|
|
1879
|
+
class: {}
|
|
1496
1880
|
}, {
|
|
1497
1881
|
modelValue: { type: Boolean },
|
|
1498
1882
|
modelModifiers: {}
|
|
1499
1883
|
}),
|
|
1500
1884
|
emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
|
|
1501
1885
|
setup(n, { emit: t }) {
|
|
1502
|
-
const e = n,
|
|
1886
|
+
const e = n, o = t, l = K(n, "modelValue"), s = $t(), a = g(() => [
|
|
1503
1887
|
"q-overlay",
|
|
1504
|
-
`q-overlay--${
|
|
1888
|
+
`q-overlay--${be(b.placement)}`,
|
|
1505
1889
|
{
|
|
1506
|
-
"q-overlay--independent":
|
|
1890
|
+
"q-overlay--independent": r.value,
|
|
1507
1891
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1508
1892
|
},
|
|
1509
1893
|
e.class
|
|
1510
|
-
]),
|
|
1894
|
+
]), r = g(() => e.anchor === void 0), i = g(() => (l.value || b.animating) && !e.nonModal), c = g(() => (l.value || b.animating) && e.scrollLock), b = Ze({
|
|
1511
1895
|
animating: !1,
|
|
1512
1896
|
top: 0,
|
|
1513
1897
|
left: 0,
|
|
1514
1898
|
width: 0,
|
|
1515
1899
|
placement: e.placement
|
|
1516
|
-
}),
|
|
1900
|
+
}), m = Ze({
|
|
1517
1901
|
top: void 0,
|
|
1518
1902
|
left: void 0,
|
|
1519
1903
|
hidden: !0
|
|
1520
|
-
}),
|
|
1521
|
-
|
|
1522
|
-
const
|
|
1523
|
-
if (
|
|
1524
|
-
const
|
|
1904
|
+
}), A = g(() => b.top !== 0 && b.left !== 0);
|
|
1905
|
+
Y(l, () => b.animating = !0);
|
|
1906
|
+
const P = g(() => {
|
|
1907
|
+
if (r.value) return;
|
|
1908
|
+
const v = u(), F = e.width === "anchor", M = F ? v == null ? void 0 : v.getBoundingClientRect().width : void 0;
|
|
1525
1909
|
return {
|
|
1526
|
-
top: `${
|
|
1527
|
-
left: `${
|
|
1528
|
-
width:
|
|
1910
|
+
top: `${b.top}px`,
|
|
1911
|
+
left: `${b.left}px`,
|
|
1912
|
+
width: M !== void 0 ? `${M}px` : void 0
|
|
1529
1913
|
};
|
|
1530
|
-
}),
|
|
1914
|
+
}), N = g(() => {
|
|
1531
1915
|
if (e.arrow)
|
|
1532
1916
|
return {
|
|
1533
|
-
top:
|
|
1534
|
-
left:
|
|
1535
|
-
opacity:
|
|
1917
|
+
top: m.top !== void 0 ? `${m.top}px` : void 0,
|
|
1918
|
+
left: m.left !== void 0 ? `${m.left}px` : void 0,
|
|
1919
|
+
opacity: m.hidden ? 0 : 1
|
|
1536
1920
|
};
|
|
1537
|
-
}),
|
|
1538
|
-
function
|
|
1539
|
-
const
|
|
1540
|
-
if (!
|
|
1921
|
+
}), $ = B(null), V = B(null);
|
|
1922
|
+
function D() {
|
|
1923
|
+
const v = u();
|
|
1924
|
+
if (!v || !V.value)
|
|
1541
1925
|
return;
|
|
1542
|
-
const
|
|
1926
|
+
const F = {
|
|
1543
1927
|
placement: e.placement,
|
|
1544
1928
|
width: e.width,
|
|
1545
1929
|
offset: e.offset,
|
|
1930
|
+
crossOffset: e.crossOffset,
|
|
1546
1931
|
arrow: e.arrow
|
|
1547
|
-
},
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
(
|
|
1551
|
-
|
|
1932
|
+
}, M = So(
|
|
1933
|
+
v,
|
|
1934
|
+
V.value,
|
|
1935
|
+
($ == null ? void 0 : $.value) ?? void 0,
|
|
1936
|
+
F
|
|
1552
1937
|
);
|
|
1553
|
-
|
|
1938
|
+
b.left = M.overlayCoords.x, b.top = M.overlayCoords.y, b.placement = M.placement, m.hidden = M.arrowCoords === void 0, M.arrowCoords && (m.top = M.arrowCoords.y, m.left = M.arrowCoords.x);
|
|
1554
1939
|
}
|
|
1555
|
-
|
|
1940
|
+
Y(
|
|
1556
1941
|
() => e.placement,
|
|
1557
|
-
() =>
|
|
1942
|
+
() => le(D)
|
|
1558
1943
|
);
|
|
1559
|
-
let
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1562
|
-
}
|
|
1563
|
-
function
|
|
1564
|
-
|
|
1565
|
-
}
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
},
|
|
1570
|
-
}
|
|
1571
|
-
function
|
|
1572
|
-
if (
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1944
|
+
let Q;
|
|
1945
|
+
function j() {
|
|
1946
|
+
S(0);
|
|
1947
|
+
}
|
|
1948
|
+
function te() {
|
|
1949
|
+
S(e.delay);
|
|
1950
|
+
}
|
|
1951
|
+
function S(v) {
|
|
1952
|
+
Q && R(), Q = window.setTimeout(() => {
|
|
1953
|
+
l.value = !0;
|
|
1954
|
+
}, v);
|
|
1955
|
+
}
|
|
1956
|
+
function E() {
|
|
1957
|
+
if (Q && R(), l.value = !1, e.anchor && e.trigger === "click") {
|
|
1958
|
+
const v = u();
|
|
1959
|
+
v == null || v.focus();
|
|
1575
1960
|
}
|
|
1576
1961
|
}
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
l("enter");
|
|
1962
|
+
function R() {
|
|
1963
|
+
clearTimeout(Q), Q = void 0;
|
|
1580
1964
|
}
|
|
1581
|
-
|
|
1582
|
-
function
|
|
1583
|
-
|
|
1965
|
+
Y(A, () => le(ae));
|
|
1966
|
+
function ae() {
|
|
1967
|
+
o("enter");
|
|
1584
1968
|
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1969
|
+
let ce;
|
|
1970
|
+
function k() {
|
|
1971
|
+
window.clearTimeout(ce), ce = window.setTimeout(() => b.animating = !1, 200), o("leave");
|
|
1587
1972
|
}
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1973
|
+
function u() {
|
|
1974
|
+
return e.anchor ? Mo(e.anchor) : null;
|
|
1975
|
+
}
|
|
1976
|
+
let q;
|
|
1977
|
+
function O() {
|
|
1978
|
+
const v = u();
|
|
1979
|
+
if (v)
|
|
1980
|
+
switch (q = new MutationObserver(D), q.observe(v, {
|
|
1593
1981
|
attributes: !1,
|
|
1594
1982
|
childList: !0,
|
|
1595
1983
|
characterData: !0,
|
|
1596
1984
|
subtree: !0
|
|
1597
1985
|
}), e.trigger) {
|
|
1598
1986
|
case "click":
|
|
1599
|
-
|
|
1987
|
+
v.addEventListener("click", j);
|
|
1600
1988
|
break;
|
|
1601
1989
|
case "hover":
|
|
1602
|
-
|
|
1990
|
+
v.addEventListener("mouseenter", te), v.addEventListener("mouseleave", E), v.addEventListener("focusin", j), v.addEventListener("focusout", E);
|
|
1603
1991
|
break;
|
|
1604
1992
|
}
|
|
1605
1993
|
}
|
|
1606
|
-
function
|
|
1607
|
-
const
|
|
1608
|
-
if (
|
|
1609
|
-
switch (
|
|
1994
|
+
function H() {
|
|
1995
|
+
const v = u();
|
|
1996
|
+
if (v)
|
|
1997
|
+
switch (q == null || q.disconnect(), e.trigger) {
|
|
1610
1998
|
case "click":
|
|
1611
|
-
|
|
1999
|
+
v.removeEventListener("click", j);
|
|
1612
2000
|
break;
|
|
1613
2001
|
case "hover":
|
|
1614
|
-
|
|
2002
|
+
v.removeEventListener("mouseenter", te), v.removeEventListener("mouseleave", E), v.removeEventListener("focusin", j), v.removeEventListener("focusout", E);
|
|
1615
2003
|
break;
|
|
1616
2004
|
}
|
|
1617
2005
|
}
|
|
1618
2006
|
function J() {
|
|
1619
|
-
window.addEventListener("resize",
|
|
2007
|
+
window.addEventListener("resize", D), e.scrollLock || window.addEventListener("scroll", D);
|
|
1620
2008
|
}
|
|
1621
|
-
function
|
|
1622
|
-
window.removeEventListener("resize",
|
|
2009
|
+
function ee() {
|
|
2010
|
+
window.removeEventListener("resize", D), e.scrollLock || window.removeEventListener("scroll", D);
|
|
1623
2011
|
}
|
|
1624
|
-
let
|
|
1625
|
-
function
|
|
1626
|
-
|
|
2012
|
+
let oe;
|
|
2013
|
+
function ke() {
|
|
2014
|
+
u() ? (D(), oe = window.setTimeout(ke, 100)) : E();
|
|
1627
2015
|
}
|
|
1628
|
-
function
|
|
1629
|
-
|
|
1630
|
-
var
|
|
1631
|
-
return (
|
|
2016
|
+
function Ve() {
|
|
2017
|
+
r.value || (J(), e.spy ? ke() : D()), (r.value || e.trigger === "click") && le(() => {
|
|
2018
|
+
var v;
|
|
2019
|
+
return (v = V.value) == null ? void 0 : v.focus();
|
|
1632
2020
|
});
|
|
1633
2021
|
}
|
|
1634
|
-
function
|
|
1635
|
-
|
|
1636
|
-
}
|
|
1637
|
-
function
|
|
1638
|
-
e.persistent ||
|
|
1639
|
-
}
|
|
1640
|
-
return
|
|
1641
|
-
|
|
1642
|
-
}),
|
|
1643
|
-
|
|
1644
|
-
}),
|
|
1645
|
-
|
|
1646
|
-
(
|
|
1647
|
-
|
|
2022
|
+
function ge() {
|
|
2023
|
+
r.value || ee(), e.spy && (clearTimeout(oe), oe = void 0), b.top = 0, b.left = 0;
|
|
2024
|
+
}
|
|
2025
|
+
function f() {
|
|
2026
|
+
e.persistent || E();
|
|
2027
|
+
}
|
|
2028
|
+
return Oe(() => {
|
|
2029
|
+
le(O);
|
|
2030
|
+
}), At(() => {
|
|
2031
|
+
H(), ge();
|
|
2032
|
+
}), Y(
|
|
2033
|
+
l,
|
|
2034
|
+
(v) => {
|
|
2035
|
+
le(() => v ? Ve() : ge());
|
|
1648
2036
|
},
|
|
1649
2037
|
{ immediate: !0 }
|
|
1650
|
-
), (
|
|
1651
|
-
(
|
|
1652
|
-
disabled: !
|
|
2038
|
+
), (v, F) => (d(), h(W, null, [
|
|
2039
|
+
(d(), C(Et, {
|
|
2040
|
+
disabled: !l.value && !b.animating || e.inline,
|
|
1653
2041
|
to: e.attach
|
|
1654
2042
|
}, [
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
class: T([
|
|
1658
|
-
e.backdropClass,
|
|
1659
|
-
"q-overlay__underlay",
|
|
1660
|
-
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1661
|
-
])
|
|
1662
|
-
}, null, 2)) : g("", !0),
|
|
1663
|
-
D(kt, {
|
|
1664
|
-
name: e.transition,
|
|
1665
|
-
appear: "",
|
|
1666
|
-
onLeave: ce
|
|
2043
|
+
U(y(kt), {
|
|
2044
|
+
theme: y(s).current.value.name
|
|
1667
2045
|
}, {
|
|
1668
|
-
default:
|
|
1669
|
-
|
|
2046
|
+
default: _(() => [
|
|
2047
|
+
i.value ? (d(), h("div", {
|
|
1670
2048
|
key: 0,
|
|
1671
|
-
class: T(
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
e.arrow ? (i(), f("div", {
|
|
2049
|
+
class: T([
|
|
2050
|
+
e.backdropClass,
|
|
2051
|
+
"q-overlay__underlay",
|
|
2052
|
+
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
2053
|
+
])
|
|
2054
|
+
}, null, 2)) : w("", !0),
|
|
2055
|
+
U(Dt, {
|
|
2056
|
+
name: e.transition,
|
|
2057
|
+
appear: "",
|
|
2058
|
+
onLeave: k
|
|
2059
|
+
}, {
|
|
2060
|
+
default: _(() => [
|
|
2061
|
+
l.value ? (d(), h("div", {
|
|
1685
2062
|
key: 0,
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
2063
|
+
class: T(a.value),
|
|
2064
|
+
style: ue(P.value)
|
|
2065
|
+
}, [
|
|
2066
|
+
x("div", Z({
|
|
2067
|
+
ref_key: "overlayRef",
|
|
2068
|
+
ref: V,
|
|
2069
|
+
class: "q-overlay__content",
|
|
2070
|
+
tabindex: "-1",
|
|
2071
|
+
role: i.value ? "dialog" : void 0
|
|
2072
|
+
}, v.$attrs, {
|
|
2073
|
+
onKeydown: De(f, ["escape"]),
|
|
2074
|
+
onBlur: f
|
|
2075
|
+
}), [
|
|
2076
|
+
e.arrow ? (d(), h("div", {
|
|
2077
|
+
key: 0,
|
|
2078
|
+
ref_key: "arrowRef",
|
|
2079
|
+
ref: $,
|
|
2080
|
+
role: "presentation",
|
|
2081
|
+
class: "q-overlay__arrow",
|
|
2082
|
+
style: ue(N.value)
|
|
2083
|
+
}, null, 4)) : w("", !0),
|
|
2084
|
+
p(v.$slots, "default")
|
|
2085
|
+
], 16, Oo)
|
|
2086
|
+
], 6)) : w("", !0)
|
|
2087
|
+
]),
|
|
2088
|
+
_: 3
|
|
2089
|
+
}, 8, ["name"])
|
|
1695
2090
|
]),
|
|
1696
2091
|
_: 3
|
|
1697
|
-
}, 8, ["
|
|
2092
|
+
}, 8, ["theme"])
|
|
1698
2093
|
], 8, ["disabled", "to"])),
|
|
1699
|
-
|
|
2094
|
+
c.value ? (d(), C(y(qo), { key: 0 })) : w("", !0)
|
|
1700
2095
|
], 64));
|
|
1701
2096
|
}
|
|
1702
|
-
}),
|
|
1703
|
-
|
|
1704
|
-
class: "q-field__label"
|
|
1705
|
-
}, fl = ["for"], pl = {
|
|
1706
|
-
key: 0,
|
|
1707
|
-
class: "q-field__prepend"
|
|
1708
|
-
}, ml = {
|
|
1709
|
-
key: 1,
|
|
1710
|
-
class: "q-field__append"
|
|
1711
|
-
}, hl = {
|
|
1712
|
-
key: 1,
|
|
1713
|
-
class: "q-field__extras"
|
|
1714
|
-
}, yl = /* @__PURE__ */ C({
|
|
1715
|
-
inheritAttrs: !1,
|
|
1716
|
-
__name: "QField",
|
|
2097
|
+
}), me = L(Uo), Po = /* @__PURE__ */ I({
|
|
2098
|
+
__name: "QClearButton",
|
|
1717
2099
|
props: {
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
size: { default: "medium" },
|
|
1722
|
-
readonly: { type: Boolean },
|
|
1723
|
-
disabled: { type: Boolean },
|
|
1724
|
-
required: { type: Boolean },
|
|
1725
|
-
class: { default: void 0 }
|
|
2100
|
+
class: {},
|
|
2101
|
+
icons: { default: () => He },
|
|
2102
|
+
texts: { default: () => Ge }
|
|
1726
2103
|
},
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
},
|
|
1741
|
-
e.class
|
|
1742
|
-
])
|
|
1743
|
-
}, [
|
|
1744
|
-
e.label ? (i(), f("div", cl, [
|
|
1745
|
-
p(a.$slots, "label.prepend"),
|
|
1746
|
-
q("label", {
|
|
1747
|
-
for: e.for
|
|
1748
|
-
}, E(e.label), 9, fl),
|
|
1749
|
-
p(a.$slots, "label.append")
|
|
1750
|
-
])) : g("", !0),
|
|
1751
|
-
p(a.$slots, "control", {}, () => [
|
|
1752
|
-
q("div", H({
|
|
1753
|
-
ref_key: "fieldRef",
|
|
1754
|
-
ref: o,
|
|
1755
|
-
class: "q-field__control"
|
|
1756
|
-
}, a.$attrs), [
|
|
1757
|
-
a.$slots.prepend ? (i(), f("div", pl, [
|
|
1758
|
-
p(a.$slots, "prepend")
|
|
1759
|
-
])) : g("", !0),
|
|
1760
|
-
p(a.$slots, "default"),
|
|
1761
|
-
a.$slots.append ? (i(), f("div", ml, [
|
|
1762
|
-
p(a.$slots, "append")
|
|
1763
|
-
])) : g("", !0)
|
|
1764
|
-
], 16)
|
|
1765
|
-
]),
|
|
1766
|
-
a.$slots.extras ? (i(), f("div", hl, [
|
|
1767
|
-
p(a.$slots, "extras")
|
|
1768
|
-
])) : g("", !0)
|
|
1769
|
-
], 10, ul));
|
|
1770
|
-
}
|
|
1771
|
-
}), Le = I(yl), vl = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], bl = /* @__PURE__ */ C({
|
|
1772
|
-
inheritAttrs: !1,
|
|
1773
|
-
__name: "QTextField",
|
|
1774
|
-
props: /* @__PURE__ */ G({
|
|
1775
|
-
id: { default: void 0 },
|
|
1776
|
-
placeholder: { default: "" },
|
|
1777
|
-
label: { default: "" },
|
|
1778
|
-
size: { default: void 0 },
|
|
1779
|
-
maxLength: { default: void 0 },
|
|
1780
|
-
readonly: { type: Boolean },
|
|
1781
|
-
disabled: { type: Boolean },
|
|
1782
|
-
required: { type: Boolean },
|
|
1783
|
-
role: { default: void 0 },
|
|
1784
|
-
type: { default: "text" },
|
|
1785
|
-
class: { default: void 0 }
|
|
1786
|
-
}, {
|
|
1787
|
-
modelValue: {},
|
|
1788
|
-
modelModifiers: {}
|
|
1789
|
-
}),
|
|
1790
|
-
emits: ["update:modelValue"],
|
|
1791
|
-
setup(n, { expose: t }) {
|
|
1792
|
-
const e = n, l = K(n, "modelValue"), o = ie(e.id), s = A(null), a = A(null), d = y(
|
|
1793
|
-
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1794
|
-
);
|
|
1795
|
-
return t({
|
|
1796
|
-
fieldRef: y(() => {
|
|
1797
|
-
var r;
|
|
1798
|
-
return (r = s.value) == null ? void 0 : r.fieldRef;
|
|
1799
|
-
}),
|
|
1800
|
-
inputRef: a
|
|
1801
|
-
}), (r, u) => (i(), B(m(Le), {
|
|
1802
|
-
ref_key: "fieldRef",
|
|
1803
|
-
ref: s,
|
|
1804
|
-
class: T(["q-text-field", e.class]),
|
|
1805
|
-
for: m(o),
|
|
1806
|
-
label: e.label,
|
|
1807
|
-
size: e.size,
|
|
1808
|
-
readonly: e.readonly,
|
|
1809
|
-
disabled: e.disabled,
|
|
1810
|
-
required: e.required
|
|
1811
|
-
}, ye({
|
|
1812
|
-
"label.prepend": w(() => [
|
|
1813
|
-
p(r.$slots, "label.prepend")
|
|
1814
|
-
]),
|
|
1815
|
-
"label.append": w(() => [
|
|
1816
|
-
p(r.$slots, "label.append")
|
|
1817
|
-
]),
|
|
1818
|
-
default: w(() => [
|
|
1819
|
-
wt(q("input", H({
|
|
1820
|
-
id: m(o),
|
|
1821
|
-
ref_key: "inputRef",
|
|
1822
|
-
ref: a,
|
|
1823
|
-
"onUpdate:modelValue": u[0] || (u[0] = (b) => l.value = b),
|
|
1824
|
-
class: "q-text-field__input",
|
|
1825
|
-
type: e.type,
|
|
1826
|
-
role: e.role,
|
|
1827
|
-
required: e.required,
|
|
1828
|
-
placeholder: d.value,
|
|
1829
|
-
readonly: e.readonly,
|
|
1830
|
-
disabled: e.disabled,
|
|
1831
|
-
maxlength: e.maxLength
|
|
1832
|
-
}, r.$attrs), null, 16, vl), [
|
|
1833
|
-
[qt, l.value]
|
|
1834
|
-
])
|
|
2104
|
+
emits: ["click"],
|
|
2105
|
+
setup(n, { emit: t }) {
|
|
2106
|
+
const e = n, o = t, l = (s) => o("click", s);
|
|
2107
|
+
return (s, a) => (d(), C(y(re), {
|
|
2108
|
+
class: "q-clear-btn",
|
|
2109
|
+
"aria-label": e.texts.clearValue,
|
|
2110
|
+
"b-style": "plain",
|
|
2111
|
+
borderless: "",
|
|
2112
|
+
tabindex: "-1",
|
|
2113
|
+
onClick: l
|
|
2114
|
+
}, {
|
|
2115
|
+
default: _(() => [
|
|
2116
|
+
U(y(X), se(fe(e.icons.clear)), null, 16)
|
|
1835
2117
|
]),
|
|
1836
|
-
_:
|
|
1837
|
-
}, [
|
|
1838
|
-
r.$slots.prepend ? {
|
|
1839
|
-
name: "prepend",
|
|
1840
|
-
fn: w(() => [
|
|
1841
|
-
p(r.$slots, "prepend")
|
|
1842
|
-
]),
|
|
1843
|
-
key: "0"
|
|
1844
|
-
} : void 0,
|
|
1845
|
-
r.$slots.append ? {
|
|
1846
|
-
name: "append",
|
|
1847
|
-
fn: w(() => [
|
|
1848
|
-
p(r.$slots, "append")
|
|
1849
|
-
]),
|
|
1850
|
-
key: "1"
|
|
1851
|
-
} : void 0,
|
|
1852
|
-
r.$slots.extras ? {
|
|
1853
|
-
name: "extras",
|
|
1854
|
-
fn: w(() => [
|
|
1855
|
-
p(r.$slots, "extras")
|
|
1856
|
-
]),
|
|
1857
|
-
key: "2"
|
|
1858
|
-
} : void 0
|
|
1859
|
-
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
2118
|
+
_: 1
|
|
2119
|
+
}, 8, ["aria-label"]));
|
|
1860
2120
|
}
|
|
1861
|
-
}),
|
|
1862
|
-
noData: "No data available",
|
|
1863
|
-
clearValue: "Clear value",
|
|
1864
|
-
showOptions: "Show options"
|
|
1865
|
-
}, _l = {
|
|
1866
|
-
chevron: {
|
|
1867
|
-
icon: "chevron-down"
|
|
1868
|
-
},
|
|
1869
|
-
clear: {
|
|
1870
|
-
icon: "close"
|
|
1871
|
-
}
|
|
1872
|
-
}, $l = ["data-key"], kl = {
|
|
2121
|
+
}), wt = L(Po), No = ["data-key"], Ro = {
|
|
1873
2122
|
key: 0,
|
|
1874
2123
|
class: "q-select__loader"
|
|
1875
|
-
},
|
|
2124
|
+
}, Go = {
|
|
1876
2125
|
key: 2,
|
|
1877
2126
|
class: "q-select__loader"
|
|
1878
|
-
},
|
|
2127
|
+
}, Ho = /* @__PURE__ */ I({
|
|
1879
2128
|
inheritAttrs: !1,
|
|
1880
2129
|
__name: "QCombobox",
|
|
1881
2130
|
props: /* @__PURE__ */ G({
|
|
1882
|
-
id: {
|
|
1883
|
-
placeholder: {
|
|
2131
|
+
id: {},
|
|
2132
|
+
placeholder: {},
|
|
1884
2133
|
selectionMode: { default: "automatic" },
|
|
1885
2134
|
filterMode: { default: "builtin" },
|
|
1886
|
-
label: {
|
|
2135
|
+
label: {},
|
|
1887
2136
|
clearable: { type: Boolean },
|
|
1888
2137
|
readonly: { type: Boolean },
|
|
1889
2138
|
disabled: { type: Boolean },
|
|
@@ -1893,11 +2142,11 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1893
2142
|
groups: { default: () => [] },
|
|
1894
2143
|
itemValue: { default: "key" },
|
|
1895
2144
|
itemLabel: { default: "label" },
|
|
1896
|
-
emptyValue: { type: [String, Number, Boolean, Symbol]
|
|
1897
|
-
size: {
|
|
1898
|
-
class: {
|
|
1899
|
-
icons: { default: () =>
|
|
1900
|
-
texts: { default: () =>
|
|
2145
|
+
emptyValue: { type: [String, Number, Boolean, Symbol] },
|
|
2146
|
+
size: {},
|
|
2147
|
+
class: {},
|
|
2148
|
+
icons: { default: () => to },
|
|
2149
|
+
texts: { default: () => eo }
|
|
1901
2150
|
}, {
|
|
1902
2151
|
modelValue: {
|
|
1903
2152
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1910,288 +2159,282 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1910
2159
|
}),
|
|
1911
2160
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1912
2161
|
setup(n, { expose: t, emit: e }) {
|
|
1913
|
-
const
|
|
1914
|
-
|
|
1915
|
-
const P =
|
|
1916
|
-
var
|
|
1917
|
-
return
|
|
1918
|
-
(
|
|
2162
|
+
const o = n, l = e, s = K(n, "modelValue"), a = K(n, "open"), r = K(n, "search"), i = B(void 0), c = B(null), b = B(null), m = B(null), A = B(null);
|
|
2163
|
+
Oe(S);
|
|
2164
|
+
const P = g(() => o.clearable && !o.readonly && !o.disabled), N = g(() => {
|
|
2165
|
+
var f;
|
|
2166
|
+
return o.filterMode === "manual" || !j.value ? o.items : (f = o.items) == null ? void 0 : f.filter(
|
|
2167
|
+
(v) => v[o.itemLabel].toLowerCase().startsWith(r.value.toLowerCase())
|
|
1919
2168
|
);
|
|
1920
|
-
}),
|
|
1921
|
-
var
|
|
1922
|
-
return (
|
|
1923
|
-
}), V =
|
|
1924
|
-
const
|
|
1925
|
-
if (
|
|
1926
|
-
return
|
|
1927
|
-
}), Q =
|
|
1928
|
-
var
|
|
1929
|
-
if (
|
|
2169
|
+
}), $ = g(() => {
|
|
2170
|
+
var f;
|
|
2171
|
+
return (f = o.items) == null ? void 0 : f.find((v) => v[o.itemValue] === s.value);
|
|
2172
|
+
}), V = g(() => $.value === void 0), D = g(() => {
|
|
2173
|
+
const f = i.value;
|
|
2174
|
+
if (f !== void 0 && N.value[f])
|
|
2175
|
+
return N.value[f];
|
|
2176
|
+
}), Q = g(() => {
|
|
2177
|
+
var v;
|
|
2178
|
+
if (i.value === void 0)
|
|
1930
2179
|
return;
|
|
1931
|
-
const
|
|
1932
|
-
return
|
|
1933
|
-
}),
|
|
1934
|
-
var
|
|
1935
|
-
return
|
|
2180
|
+
const f = (v = b.value) == null ? void 0 : v.getItem(i.value);
|
|
2181
|
+
return f == null ? void 0 : f.id;
|
|
2182
|
+
}), j = g(() => {
|
|
2183
|
+
var f;
|
|
2184
|
+
return r.value.length > 0 && r.value !== ((f = $.value) == null ? void 0 : f[o.itemLabel]);
|
|
1936
2185
|
});
|
|
1937
|
-
function
|
|
1938
|
-
s.value =
|
|
2186
|
+
function te(f) {
|
|
2187
|
+
s.value = f, R();
|
|
1939
2188
|
}
|
|
1940
|
-
function
|
|
1941
|
-
var
|
|
1942
|
-
const
|
|
1943
|
-
|
|
2189
|
+
function S() {
|
|
2190
|
+
var v;
|
|
2191
|
+
const f = ((v = $.value) == null ? void 0 : v[o.itemLabel]) || "";
|
|
2192
|
+
r.value !== f && (r.value = f);
|
|
1944
2193
|
}
|
|
1945
|
-
function
|
|
1946
|
-
a.value ||
|
|
2194
|
+
function E() {
|
|
2195
|
+
a.value || o.readonly || o.disabled || (l("before-show"), a.value = !0, ee());
|
|
1947
2196
|
}
|
|
1948
|
-
function
|
|
1949
|
-
a.value && (
|
|
2197
|
+
function R() {
|
|
2198
|
+
a.value && (l("before-hide"), a.value = !1, i.value = void 0);
|
|
1950
2199
|
}
|
|
1951
|
-
function
|
|
1952
|
-
a.value ?
|
|
2200
|
+
function ae() {
|
|
2201
|
+
a.value ? R() : k();
|
|
1953
2202
|
}
|
|
1954
|
-
function
|
|
1955
|
-
P.value && (s.value =
|
|
2203
|
+
function ce() {
|
|
2204
|
+
P.value && (s.value = o.emptyValue, i.value = void 0, ee());
|
|
1956
2205
|
}
|
|
1957
|
-
function
|
|
1958
|
-
if (
|
|
1959
|
-
const
|
|
1960
|
-
|
|
2206
|
+
function k() {
|
|
2207
|
+
if (E(), $.value !== void 0) {
|
|
2208
|
+
const f = N.value.indexOf($.value);
|
|
2209
|
+
f !== -1 && le(() => ge(f));
|
|
1961
2210
|
}
|
|
1962
2211
|
}
|
|
1963
|
-
function
|
|
1964
|
-
var
|
|
1965
|
-
if (!(!
|
|
1966
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1967
|
-
|
|
1968
|
-
else if (["ArrowDown", "ArrowUp"].includes(
|
|
1969
|
-
a.value ?
|
|
1970
|
-
if (
|
|
1971
|
-
|
|
2212
|
+
function u(f) {
|
|
2213
|
+
var v, F;
|
|
2214
|
+
if (!(!f.key || o.readonly || o.disabled))
|
|
2215
|
+
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && (f.preventDefault(), f.stopPropagation()), f.key === "Escape")
|
|
2216
|
+
S(), a.value && R();
|
|
2217
|
+
else if (["ArrowDown", "ArrowUp"].includes(f.key))
|
|
2218
|
+
a.value ? le(() => {
|
|
2219
|
+
if (i.value === void 0)
|
|
2220
|
+
q();
|
|
1972
2221
|
else {
|
|
1973
|
-
const
|
|
1974
|
-
|
|
2222
|
+
const M = f.key === "ArrowDown" ? "next" : "prev";
|
|
2223
|
+
H(i.value, M);
|
|
1975
2224
|
}
|
|
1976
|
-
}) : (
|
|
1977
|
-
|
|
2225
|
+
}) : (E(), le(() => {
|
|
2226
|
+
f.key === "ArrowDown" ? q() : O();
|
|
1978
2227
|
}));
|
|
1979
|
-
else if (
|
|
1980
|
-
if (
|
|
1981
|
-
|
|
1982
|
-
} else
|
|
2228
|
+
else if (f.key === "Enter") {
|
|
2229
|
+
if (D.value === void 0) return;
|
|
2230
|
+
te(D.value[o.itemValue]);
|
|
2231
|
+
} else f.key === "Home" ? i.value = (v = b.value) == null ? void 0 : v.getFirstFocusableItemIndex() : f.key === "End" ? i.value = (F = b.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(f.key) || f.key === "Backspace") && E();
|
|
1983
2232
|
}
|
|
1984
|
-
function
|
|
1985
|
-
var
|
|
2233
|
+
function q() {
|
|
2234
|
+
var f, v;
|
|
1986
2235
|
if (V.value)
|
|
1987
|
-
|
|
2236
|
+
i.value = (v = b.value) == null ? void 0 : v.getFirstFocusableItemIndex();
|
|
1988
2237
|
else {
|
|
1989
|
-
const F =
|
|
1990
|
-
(
|
|
2238
|
+
const F = N.value.findIndex(
|
|
2239
|
+
(M) => M[o.itemValue] === s.value
|
|
1991
2240
|
);
|
|
1992
|
-
F === -1 ?
|
|
2241
|
+
F === -1 ? i.value = (f = b.value) == null ? void 0 : f.getFirstFocusableItemIndex() : i.value = F;
|
|
1993
2242
|
}
|
|
1994
2243
|
}
|
|
1995
|
-
function
|
|
1996
|
-
var
|
|
1997
|
-
|
|
2244
|
+
function O() {
|
|
2245
|
+
var f;
|
|
2246
|
+
i.value = (f = b.value) == null ? void 0 : f.getLastFocusableItemIndex();
|
|
1998
2247
|
}
|
|
1999
|
-
function
|
|
2248
|
+
function H(f, v) {
|
|
2000
2249
|
var F;
|
|
2001
|
-
|
|
2250
|
+
i.value = (F = b.value) == null ? void 0 : F.getAdjacentItemIndex(f, v);
|
|
2002
2251
|
}
|
|
2003
|
-
function
|
|
2004
|
-
var
|
|
2005
|
-
const
|
|
2006
|
-
if (
|
|
2007
|
-
|
|
2252
|
+
function J(f) {
|
|
2253
|
+
var he, We, je, Xe;
|
|
2254
|
+
const v = ((he = m == null ? void 0 : m.value) == null ? void 0 : he.$el) === f.relatedTarget, F = (je = (We = c == null ? void 0 : c.value) == null ? void 0 : We.$el) == null ? void 0 : je.contains(f.relatedTarget), M = (Xe = A == null ? void 0 : A.value) == null ? void 0 : Xe.contains(f.relatedTarget);
|
|
2255
|
+
if (v || M || F) {
|
|
2256
|
+
f.preventDefault(), f.stopPropagation();
|
|
2008
2257
|
return;
|
|
2009
2258
|
}
|
|
2010
|
-
|
|
2259
|
+
R(), P.value && !r.value && (s.value = o.emptyValue), S();
|
|
2011
2260
|
}
|
|
2012
|
-
function
|
|
2013
|
-
var
|
|
2014
|
-
(
|
|
2261
|
+
function ee() {
|
|
2262
|
+
var f, v;
|
|
2263
|
+
(v = (f = c.value) == null ? void 0 : f.inputRef) == null || v.focus();
|
|
2015
2264
|
}
|
|
2016
|
-
function
|
|
2017
|
-
|
|
2265
|
+
function oe() {
|
|
2266
|
+
ee();
|
|
2018
2267
|
}
|
|
2019
2268
|
function ke() {
|
|
2020
|
-
|
|
2269
|
+
l("show");
|
|
2021
2270
|
}
|
|
2022
|
-
function
|
|
2023
|
-
|
|
2271
|
+
function Ve() {
|
|
2272
|
+
l("hide");
|
|
2024
2273
|
}
|
|
2025
|
-
function
|
|
2274
|
+
function ge(f) {
|
|
2026
2275
|
var F;
|
|
2027
|
-
const
|
|
2028
|
-
b.value && (b.value.$el.scrollTop =
|
|
2276
|
+
const v = (F = b.value) == null ? void 0 : F.getItem(f);
|
|
2277
|
+
b.value && (b.value.$el.scrollTop = v == null ? void 0 : v.offsetTop);
|
|
2029
2278
|
}
|
|
2030
|
-
return
|
|
2031
|
-
() =>
|
|
2032
|
-
(
|
|
2279
|
+
return Y(s, S), Y(
|
|
2280
|
+
() => o.items,
|
|
2281
|
+
(f, v) => {
|
|
2033
2282
|
if (!V.value) {
|
|
2034
|
-
const F =
|
|
2035
|
-
|
|
2283
|
+
const F = v.find((M) => M[o.itemValue] === s.value);
|
|
2284
|
+
r.value === (F == null ? void 0 : F[o.itemLabel]) && S();
|
|
2036
2285
|
}
|
|
2037
2286
|
},
|
|
2038
2287
|
{ deep: !0 }
|
|
2039
|
-
),
|
|
2040
|
-
|
|
2041
|
-
}),
|
|
2042
|
-
|
|
2043
|
-
}),
|
|
2044
|
-
() =>
|
|
2045
|
-
(
|
|
2046
|
-
!
|
|
2288
|
+
), Y(i, (f) => {
|
|
2289
|
+
f !== void 0 && ge(f);
|
|
2290
|
+
}), Y(r, (f) => {
|
|
2291
|
+
f && a.value && o.selectionMode === "automatic" && le(q);
|
|
2292
|
+
}), Y(
|
|
2293
|
+
() => o.loading,
|
|
2294
|
+
(f) => {
|
|
2295
|
+
!f && a.value && le(q);
|
|
2047
2296
|
}
|
|
2048
2297
|
), t({
|
|
2049
|
-
triggerEl:
|
|
2050
|
-
}), (
|
|
2298
|
+
triggerEl: c
|
|
2299
|
+
}), (f, v) => {
|
|
2051
2300
|
var F;
|
|
2052
|
-
return
|
|
2053
|
-
|
|
2054
|
-
id:
|
|
2301
|
+
return d(), h(W, null, [
|
|
2302
|
+
U(y(Re), Z({
|
|
2303
|
+
id: o.id,
|
|
2055
2304
|
ref_key: "triggerEl",
|
|
2056
|
-
ref:
|
|
2057
|
-
modelValue:
|
|
2058
|
-
"onUpdate:modelValue":
|
|
2059
|
-
label:
|
|
2060
|
-
required:
|
|
2305
|
+
ref: c,
|
|
2306
|
+
modelValue: r.value,
|
|
2307
|
+
"onUpdate:modelValue": v[0] || (v[0] = (M) => r.value = M),
|
|
2308
|
+
label: o.label,
|
|
2309
|
+
required: o.required,
|
|
2061
2310
|
role: "combobox",
|
|
2062
|
-
placeholder:
|
|
2311
|
+
placeholder: o.placeholder,
|
|
2063
2312
|
class: [
|
|
2064
2313
|
"q-combobox",
|
|
2065
2314
|
{
|
|
2066
|
-
"q-combobox--readonly":
|
|
2067
|
-
"q-combobox--disabled":
|
|
2068
|
-
"q-combobox--expanded": a.value
|
|
2315
|
+
"q-combobox--readonly": o.readonly,
|
|
2316
|
+
"q-combobox--disabled": o.disabled
|
|
2069
2317
|
},
|
|
2070
|
-
|
|
2318
|
+
o.class
|
|
2071
2319
|
],
|
|
2072
|
-
readonly:
|
|
2073
|
-
disabled:
|
|
2074
|
-
"data-loading":
|
|
2320
|
+
readonly: o.readonly,
|
|
2321
|
+
disabled: o.disabled,
|
|
2322
|
+
"data-loading": o.loading,
|
|
2075
2323
|
autocomplete: "off",
|
|
2076
2324
|
"aria-expanded": a.value,
|
|
2077
2325
|
"aria-haspopup": "listbox",
|
|
2078
2326
|
"aria-autocomplete": "list",
|
|
2079
2327
|
"aria-activedescendant": Q.value,
|
|
2080
|
-
size:
|
|
2081
|
-
},
|
|
2082
|
-
onClick:
|
|
2083
|
-
onFocusout:
|
|
2084
|
-
onKeydown:
|
|
2085
|
-
}),
|
|
2086
|
-
"label.prepend":
|
|
2087
|
-
p(
|
|
2328
|
+
size: o.size
|
|
2329
|
+
}, f.$attrs, {
|
|
2330
|
+
onClick: k,
|
|
2331
|
+
onFocusout: J,
|
|
2332
|
+
onKeydown: ne(u, ["stop"])
|
|
2333
|
+
}), pe({
|
|
2334
|
+
"label.prepend": _(() => [
|
|
2335
|
+
p(f.$slots, "label.prepend")
|
|
2088
2336
|
]),
|
|
2089
|
-
"label.append":
|
|
2090
|
-
p(
|
|
2337
|
+
"label.append": _(() => [
|
|
2338
|
+
p(f.$slots, "label.append")
|
|
2091
2339
|
]),
|
|
2092
|
-
append:
|
|
2093
|
-
p(
|
|
2094
|
-
P.value &&
|
|
2340
|
+
append: _(() => [
|
|
2341
|
+
p(f.$slots, "append"),
|
|
2342
|
+
P.value && r.value ? (d(), C(y(wt), {
|
|
2095
2343
|
key: 0,
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
onClick: v
|
|
2102
|
-
}, {
|
|
2103
|
-
default: w(() => [
|
|
2104
|
-
D(m(O), W(ne(l.icons.clear)), null, 16)
|
|
2105
|
-
]),
|
|
2106
|
-
_: 1
|
|
2107
|
-
}, 8, ["aria-label"])) : g("", !0),
|
|
2108
|
-
l.readonly ? g("", !0) : (i(), B(m(le), {
|
|
2344
|
+
icons: o.icons,
|
|
2345
|
+
texts: o.texts,
|
|
2346
|
+
onClick: ce
|
|
2347
|
+
}, null, 8, ["icons", "texts"])) : w("", !0),
|
|
2348
|
+
o.readonly ? w("", !0) : (d(), C(y(re), {
|
|
2109
2349
|
key: 1,
|
|
2110
2350
|
ref_key: "toggleRef",
|
|
2111
|
-
ref:
|
|
2351
|
+
ref: m,
|
|
2112
2352
|
class: "q-combobox__chevron",
|
|
2113
|
-
"aria-label":
|
|
2353
|
+
"aria-label": o.texts.showOptions,
|
|
2114
2354
|
"b-style": "plain",
|
|
2115
2355
|
borderless: "",
|
|
2116
2356
|
tabindex: "-1",
|
|
2117
|
-
disabled:
|
|
2118
|
-
onMousedown:
|
|
2357
|
+
disabled: o.disabled,
|
|
2358
|
+
onMousedown: ne(ae, ["stop", "prevent"])
|
|
2119
2359
|
}, {
|
|
2120
|
-
default:
|
|
2121
|
-
|
|
2360
|
+
default: _(() => [
|
|
2361
|
+
U(y(xe), {
|
|
2362
|
+
"model-value": a.value,
|
|
2363
|
+
icons: o.icons
|
|
2364
|
+
}, null, 8, ["model-value", "icons"])
|
|
2122
2365
|
]),
|
|
2123
2366
|
_: 1
|
|
2124
2367
|
}, 8, ["aria-label", "disabled"]))
|
|
2125
2368
|
]),
|
|
2126
2369
|
_: 2
|
|
2127
2370
|
}, [
|
|
2128
|
-
|
|
2371
|
+
f.$slots.prepend ? {
|
|
2129
2372
|
name: "prepend",
|
|
2130
|
-
fn:
|
|
2131
|
-
p(
|
|
2373
|
+
fn: _(() => [
|
|
2374
|
+
p(f.$slots, "prepend")
|
|
2132
2375
|
]),
|
|
2133
2376
|
key: "0"
|
|
2134
2377
|
} : void 0,
|
|
2135
|
-
|
|
2378
|
+
f.$slots.extras ? {
|
|
2136
2379
|
name: "extras",
|
|
2137
|
-
fn:
|
|
2138
|
-
p(
|
|
2380
|
+
fn: _(() => [
|
|
2381
|
+
p(f.$slots, "extras")
|
|
2139
2382
|
]),
|
|
2140
2383
|
key: "1"
|
|
2141
2384
|
} : void 0
|
|
2142
2385
|
]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
2143
|
-
|
|
2386
|
+
U(y(me), {
|
|
2144
2387
|
modelValue: a.value,
|
|
2145
|
-
"onUpdate:modelValue":
|
|
2388
|
+
"onUpdate:modelValue": v[2] || (v[2] = (M) => a.value = M),
|
|
2146
2389
|
spy: "",
|
|
2147
2390
|
"non-modal": "",
|
|
2148
2391
|
trigger: "manual",
|
|
2149
2392
|
placement: "bottom-start",
|
|
2150
2393
|
width: "anchor",
|
|
2151
2394
|
offset: 4,
|
|
2152
|
-
anchor: (F =
|
|
2395
|
+
anchor: (F = c.value) == null ? void 0 : F.$el,
|
|
2153
2396
|
onEnter: ke,
|
|
2154
|
-
onLeave:
|
|
2397
|
+
onLeave: Ve
|
|
2155
2398
|
}, {
|
|
2156
|
-
default:
|
|
2157
|
-
var
|
|
2399
|
+
default: _(() => {
|
|
2400
|
+
var M;
|
|
2158
2401
|
return [
|
|
2159
|
-
|
|
2402
|
+
x("div", {
|
|
2160
2403
|
ref_key: "contentRef",
|
|
2161
|
-
ref:
|
|
2404
|
+
ref: A,
|
|
2162
2405
|
class: "q-select__body",
|
|
2163
2406
|
"data-testid": "combobox-dropdown",
|
|
2164
|
-
"data-key":
|
|
2165
|
-
onFocusout:
|
|
2407
|
+
"data-key": o.id,
|
|
2408
|
+
onFocusout: J
|
|
2166
2409
|
}, [
|
|
2167
|
-
p(
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
])) :
|
|
2410
|
+
p(f.$slots, "body.prepend"),
|
|
2411
|
+
o.loading ? (d(), h("div", Ro, [
|
|
2412
|
+
U(y($e), { size: 24 })
|
|
2413
|
+
])) : N.value.length ? (d(), C(y(Be), {
|
|
2171
2414
|
key: 1,
|
|
2172
2415
|
ref_key: "listRef",
|
|
2173
2416
|
ref: b,
|
|
2174
2417
|
modelValue: s.value,
|
|
2175
2418
|
"onUpdate:modelValue": [
|
|
2176
|
-
|
|
2177
|
-
|
|
2419
|
+
v[1] || (v[1] = (he) => s.value = he),
|
|
2420
|
+
te
|
|
2178
2421
|
],
|
|
2179
2422
|
class: "q-select__items",
|
|
2180
2423
|
selectable: "",
|
|
2181
|
-
highlighted: (
|
|
2182
|
-
items:
|
|
2183
|
-
groups:
|
|
2184
|
-
"item-label":
|
|
2185
|
-
"item-value":
|
|
2186
|
-
onMouseup:
|
|
2424
|
+
highlighted: (M = D.value) == null ? void 0 : M[o.itemValue],
|
|
2425
|
+
items: N.value,
|
|
2426
|
+
groups: f.groups,
|
|
2427
|
+
"item-label": o.itemLabel,
|
|
2428
|
+
"item-value": o.itemValue,
|
|
2429
|
+
onMouseup: oe
|
|
2187
2430
|
}, {
|
|
2188
|
-
item:
|
|
2189
|
-
p(
|
|
2431
|
+
item: _(({ item: he }) => [
|
|
2432
|
+
p(f.$slots, "item", { item: he })
|
|
2190
2433
|
]),
|
|
2191
2434
|
_: 3
|
|
2192
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
2193
|
-
p(
|
|
2194
|
-
], 40,
|
|
2435
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (d(), h("div", Go, z(o.texts.noData), 1)),
|
|
2436
|
+
p(f.$slots, "body.append")
|
|
2437
|
+
], 40, No)
|
|
2195
2438
|
];
|
|
2196
2439
|
}),
|
|
2197
2440
|
_: 3
|
|
@@ -2199,7 +2442,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2199
2442
|
], 64);
|
|
2200
2443
|
};
|
|
2201
2444
|
}
|
|
2202
|
-
}),
|
|
2445
|
+
}), Ko = L(Ho), Wo = [
|
|
2203
2446
|
{
|
|
2204
2447
|
id: "button",
|
|
2205
2448
|
icon: {
|
|
@@ -2210,46 +2453,46 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2210
2453
|
label: "Ok"
|
|
2211
2454
|
}
|
|
2212
2455
|
}
|
|
2213
|
-
],
|
|
2456
|
+
], jo = {
|
|
2214
2457
|
icon: "check-circle-outline"
|
|
2215
|
-
},
|
|
2458
|
+
}, Xo = {
|
|
2216
2459
|
close: {
|
|
2217
2460
|
icon: "close"
|
|
2218
2461
|
}
|
|
2219
|
-
},
|
|
2462
|
+
}, Yo = { class: "q-dialog__header" }, Zo = { class: "q-dialog__header-title" }, Jo = { class: "q-dialog__body" }, el = {
|
|
2220
2463
|
key: 0,
|
|
2221
2464
|
class: "q-dialog__body-icon"
|
|
2222
|
-
},
|
|
2465
|
+
}, tl = { class: "q-dialog__body-text" }, nl = ["innerHTML"], ol = { key: 1 }, ll = { class: "q-dialog__body-actions" }, sl = /* @__PURE__ */ I({
|
|
2223
2466
|
__name: "QDialog",
|
|
2224
2467
|
props: /* @__PURE__ */ G({
|
|
2225
|
-
text: {
|
|
2468
|
+
text: {},
|
|
2226
2469
|
attach: { default: "body" },
|
|
2227
2470
|
inline: { type: Boolean },
|
|
2228
2471
|
backdropBlur: { type: Boolean, default: !0 },
|
|
2229
|
-
buttons: { default: () =>
|
|
2472
|
+
buttons: { default: () => Wo },
|
|
2230
2473
|
dismissible: { type: Boolean },
|
|
2231
2474
|
html: { type: Boolean, default: !0 },
|
|
2232
|
-
icon: { default: () =>
|
|
2233
|
-
id: {
|
|
2234
|
-
title: {
|
|
2235
|
-
class: {
|
|
2236
|
-
icons: { default: () =>
|
|
2475
|
+
icon: { default: () => jo },
|
|
2476
|
+
id: {},
|
|
2477
|
+
title: {},
|
|
2478
|
+
class: {},
|
|
2479
|
+
icons: { default: () => Xo }
|
|
2237
2480
|
}, {
|
|
2238
2481
|
modelValue: { type: Boolean },
|
|
2239
2482
|
modelModifiers: {}
|
|
2240
2483
|
}),
|
|
2241
2484
|
emits: ["update:modelValue"],
|
|
2242
2485
|
setup(n) {
|
|
2243
|
-
const t = n, e = K(n, "modelValue"),
|
|
2486
|
+
const t = n, e = K(n, "modelValue"), o = de(t.id), l = g(() => ["q-dialog", t.class]);
|
|
2244
2487
|
function s() {
|
|
2245
2488
|
e.value = !1;
|
|
2246
2489
|
}
|
|
2247
|
-
function a(
|
|
2248
|
-
var
|
|
2249
|
-
(
|
|
2490
|
+
function a(r) {
|
|
2491
|
+
var i;
|
|
2492
|
+
(i = r.action) == null || i.call(r), s();
|
|
2250
2493
|
}
|
|
2251
|
-
return (
|
|
2252
|
-
id:
|
|
2494
|
+
return (r, i) => (d(), C(y(me), {
|
|
2495
|
+
id: y(o),
|
|
2253
2496
|
"model-value": e.value,
|
|
2254
2497
|
inline: t.inline,
|
|
2255
2498
|
attach: t.attach,
|
|
@@ -2258,49 +2501,49 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2258
2501
|
"scroll-lock": "",
|
|
2259
2502
|
persistent: ""
|
|
2260
2503
|
}, {
|
|
2261
|
-
default:
|
|
2262
|
-
|
|
2263
|
-
class: T(
|
|
2504
|
+
default: _(() => [
|
|
2505
|
+
x("div", {
|
|
2506
|
+
class: T(l.value)
|
|
2264
2507
|
}, [
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
t.dismissible ? (
|
|
2508
|
+
x("div", Yo, [
|
|
2509
|
+
x("span", Zo, z(t.title), 1),
|
|
2510
|
+
t.dismissible ? (d(), C(y(re), {
|
|
2268
2511
|
key: 0,
|
|
2269
2512
|
"b-style": "tertiary",
|
|
2270
2513
|
onClick: s
|
|
2271
2514
|
}, {
|
|
2272
|
-
default:
|
|
2273
|
-
|
|
2515
|
+
default: _(() => [
|
|
2516
|
+
U(y(X), se(fe(t.icons.close)), null, 16)
|
|
2274
2517
|
]),
|
|
2275
2518
|
_: 1
|
|
2276
|
-
})) :
|
|
2519
|
+
})) : w("", !0)
|
|
2277
2520
|
]),
|
|
2278
|
-
p(
|
|
2279
|
-
|
|
2280
|
-
p(
|
|
2281
|
-
t.icon ? (
|
|
2282
|
-
|
|
2283
|
-
])) :
|
|
2521
|
+
p(r.$slots, "body.content", {}, () => [
|
|
2522
|
+
x("div", Jo, [
|
|
2523
|
+
p(r.$slots, "body.icon", {}, () => [
|
|
2524
|
+
t.icon ? (d(), h("span", el, [
|
|
2525
|
+
U(y(X), se(fe(t.icon)), null, 16)
|
|
2526
|
+
])) : w("", !0)
|
|
2284
2527
|
]),
|
|
2285
|
-
|
|
2286
|
-
t.html ? (
|
|
2528
|
+
x("div", tl, [
|
|
2529
|
+
t.html ? (d(), h("span", {
|
|
2287
2530
|
key: 0,
|
|
2288
2531
|
innerHTML: t.text
|
|
2289
|
-
}, null, 8,
|
|
2532
|
+
}, null, 8, nl)) : (d(), h("span", ol, z(t.text), 1))
|
|
2290
2533
|
]),
|
|
2291
|
-
p(
|
|
2534
|
+
p(r.$slots, "body.append")
|
|
2292
2535
|
])
|
|
2293
2536
|
]),
|
|
2294
|
-
|
|
2295
|
-
(
|
|
2296
|
-
key:
|
|
2297
|
-
onClick: () => a(
|
|
2537
|
+
x("div", ll, [
|
|
2538
|
+
(d(!0), h(W, null, ye(t.buttons, (c) => (d(), C(y(re), Z({ ref_for: !0 }, c.props, {
|
|
2539
|
+
key: c.id,
|
|
2540
|
+
onClick: () => a(c)
|
|
2298
2541
|
}), {
|
|
2299
|
-
default:
|
|
2300
|
-
|
|
2542
|
+
default: _(() => [
|
|
2543
|
+
c.icon ? (d(), C(y(X), Z({
|
|
2301
2544
|
key: 0,
|
|
2302
2545
|
ref_for: !0
|
|
2303
|
-
},
|
|
2546
|
+
}, c.icon), null, 16)) : w("", !0)
|
|
2304
2547
|
]),
|
|
2305
2548
|
_: 2
|
|
2306
2549
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -2310,80 +2553,247 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2310
2553
|
_: 3
|
|
2311
2554
|
}, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
|
|
2312
2555
|
}
|
|
2313
|
-
}),
|
|
2556
|
+
}), al = L(sl), il = {
|
|
2557
|
+
expand: {
|
|
2558
|
+
icon: "chevron-right"
|
|
2559
|
+
}
|
|
2560
|
+
}, rl = {
|
|
2561
|
+
key: 0,
|
|
2562
|
+
class: "q-dropdown-menu__extra"
|
|
2563
|
+
}, dl = /* @__PURE__ */ I({
|
|
2564
|
+
__name: "QDropdownMenuContent",
|
|
2565
|
+
props: /* @__PURE__ */ G({
|
|
2566
|
+
activator: {},
|
|
2567
|
+
appearance: { default: "regular" },
|
|
2568
|
+
inline: { type: Boolean },
|
|
2569
|
+
delay: { default: 500 },
|
|
2570
|
+
placement: { default: "right-start" },
|
|
2571
|
+
transition: { default: "fade" },
|
|
2572
|
+
class: {},
|
|
2573
|
+
items: {},
|
|
2574
|
+
groups: { default: () => [] },
|
|
2575
|
+
itemValue: { default: "key" },
|
|
2576
|
+
itemLabel: { default: "label" },
|
|
2577
|
+
icons: { default: () => il },
|
|
2578
|
+
trigger: { default: "click" },
|
|
2579
|
+
offset: { default: 0 },
|
|
2580
|
+
crossOffset: { default: -5 },
|
|
2581
|
+
depth: { default: 0 }
|
|
2582
|
+
}, {
|
|
2583
|
+
modelValue: { type: Boolean },
|
|
2584
|
+
modelModifiers: {}
|
|
2585
|
+
}),
|
|
2586
|
+
emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
|
|
2587
|
+
setup(n, { emit: t }) {
|
|
2588
|
+
const e = n, o = t, l = K(n, "modelValue"), s = B(void 0), a = B([]), r = B(""), i = g(() => e.depth !== 0 ? e.offset : 4), c = g(() => e.depth !== 0 ? e.crossOffset : void 0);
|
|
2589
|
+
let b;
|
|
2590
|
+
const m = B(null), A = B(null);
|
|
2591
|
+
function P(S) {
|
|
2592
|
+
s.value = S;
|
|
2593
|
+
const E = e.items.find((R) => R[e.itemValue] === S);
|
|
2594
|
+
E && (a.value = (E == null ? void 0 : E.items) ?? []), a.value.length || (o("select", S), s.value = void 0, $());
|
|
2595
|
+
}
|
|
2596
|
+
function N() {
|
|
2597
|
+
l.value || (l.value = !0);
|
|
2598
|
+
}
|
|
2599
|
+
function $() {
|
|
2600
|
+
l.value && (l.value = !1);
|
|
2601
|
+
}
|
|
2602
|
+
function V() {
|
|
2603
|
+
l.value ? $() : N();
|
|
2604
|
+
}
|
|
2605
|
+
function D(S) {
|
|
2606
|
+
if (S.key) {
|
|
2607
|
+
if (window.clearTimeout(b), ["Escape", "Tab", "Delete"].includes(S.key)) {
|
|
2608
|
+
$();
|
|
2609
|
+
return;
|
|
2610
|
+
}
|
|
2611
|
+
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(S.key) && (S.preventDefault(), S.stopPropagation()), /^[a-z]$/i.test(S.key)) {
|
|
2612
|
+
r.value += S.key.toLowerCase();
|
|
2613
|
+
for (let E = 0; E < e.items.length; E++) {
|
|
2614
|
+
const R = e.items[E];
|
|
2615
|
+
if (R[e.itemLabel] && R[e.itemLabel].toLowerCase().startsWith(r.value)) {
|
|
2616
|
+
te(E);
|
|
2617
|
+
break;
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
b = window.setTimeout(function() {
|
|
2622
|
+
r.value = "";
|
|
2623
|
+
}, 500);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
function Q(S) {
|
|
2627
|
+
var E;
|
|
2628
|
+
(E = A.value) != null && E.contains(S.relatedTarget) || $();
|
|
2629
|
+
}
|
|
2630
|
+
function j() {
|
|
2631
|
+
var S;
|
|
2632
|
+
(S = m.value) == null || S.$el.focus();
|
|
2633
|
+
}
|
|
2634
|
+
function te(S) {
|
|
2635
|
+
var E;
|
|
2636
|
+
(E = m.value) == null || E.focusItem(S);
|
|
2637
|
+
}
|
|
2638
|
+
return (S, E) => (d(), C(y(me), {
|
|
2639
|
+
"model-value": l.value,
|
|
2640
|
+
anchor: e.activator,
|
|
2641
|
+
appearance: e.appearance,
|
|
2642
|
+
inline: e.inline,
|
|
2643
|
+
delay: e.delay,
|
|
2644
|
+
offset: i.value,
|
|
2645
|
+
"cross-offset": c.value,
|
|
2646
|
+
placement: e.placement,
|
|
2647
|
+
transition: e.transition,
|
|
2648
|
+
class: T(e.class),
|
|
2649
|
+
trigger: e.trigger,
|
|
2650
|
+
"non-modal": "",
|
|
2651
|
+
"scroll-lock": "",
|
|
2652
|
+
persistent: "",
|
|
2653
|
+
"onUpdate:modelValue": V,
|
|
2654
|
+
onEnter: j
|
|
2655
|
+
}, {
|
|
2656
|
+
default: _(() => [
|
|
2657
|
+
x("div", {
|
|
2658
|
+
ref_key: "contentRef",
|
|
2659
|
+
ref: A,
|
|
2660
|
+
"data-testid": "dropdown-content",
|
|
2661
|
+
tabindex: "-1",
|
|
2662
|
+
onFocusout: Q,
|
|
2663
|
+
onKeydown: ne(D, ["stop"])
|
|
2664
|
+
}, [
|
|
2665
|
+
U(y(Be), {
|
|
2666
|
+
ref_key: "listRef",
|
|
2667
|
+
ref: m,
|
|
2668
|
+
class: "q-dropdown-menu__items",
|
|
2669
|
+
highlighted: s.value,
|
|
2670
|
+
items: e.items,
|
|
2671
|
+
groups: e.groups,
|
|
2672
|
+
"item-label": e.itemLabel,
|
|
2673
|
+
"item-value": e.itemValue,
|
|
2674
|
+
"onUpdate:modelValue": P
|
|
2675
|
+
}, {
|
|
2676
|
+
item: _(({ item: R }) => [
|
|
2677
|
+
p(S.$slots, "item", { item: R })
|
|
2678
|
+
]),
|
|
2679
|
+
"item.append": _(({ item: R }) => [
|
|
2680
|
+
p(S.$slots, "item.append", { item: R }, () => [
|
|
2681
|
+
R.extraInfo ? (d(), h("span", rl, z(R.extraInfo), 1)) : w("", !0)
|
|
2682
|
+
])
|
|
2683
|
+
]),
|
|
2684
|
+
_: 3
|
|
2685
|
+
}, 8, ["highlighted", "items", "groups", "item-label", "item-value"])
|
|
2686
|
+
], 544)
|
|
2687
|
+
]),
|
|
2688
|
+
_: 3
|
|
2689
|
+
}, 8, ["model-value", "anchor", "appearance", "inline", "delay", "offset", "cross-offset", "placement", "transition", "class", "trigger"]));
|
|
2690
|
+
}
|
|
2691
|
+
}), cl = /* @__PURE__ */ I({
|
|
2692
|
+
inheritAttrs: !1,
|
|
2693
|
+
__name: "QDropdownMenu",
|
|
2694
|
+
props: /* @__PURE__ */ G({
|
|
2695
|
+
activator: {},
|
|
2696
|
+
appearance: {},
|
|
2697
|
+
inline: { type: Boolean },
|
|
2698
|
+
delay: {},
|
|
2699
|
+
placement: {},
|
|
2700
|
+
transition: {},
|
|
2701
|
+
class: {},
|
|
2702
|
+
items: {},
|
|
2703
|
+
groups: {},
|
|
2704
|
+
itemValue: {},
|
|
2705
|
+
itemLabel: {},
|
|
2706
|
+
icons: {}
|
|
2707
|
+
}, {
|
|
2708
|
+
modelValue: { type: Boolean },
|
|
2709
|
+
modelModifiers: {}
|
|
2710
|
+
}),
|
|
2711
|
+
emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
|
|
2712
|
+
setup(n, { emit: t }) {
|
|
2713
|
+
const e = n, o = t, l = K(n, "modelValue");
|
|
2714
|
+
function s(a) {
|
|
2715
|
+
o("select", a);
|
|
2716
|
+
}
|
|
2717
|
+
return (a, r) => (d(), C(dl, Z(e, {
|
|
2718
|
+
modelValue: l.value,
|
|
2719
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => l.value = i),
|
|
2720
|
+
onSelect: s
|
|
2721
|
+
}), null, 16, ["modelValue"]));
|
|
2722
|
+
}
|
|
2723
|
+
}), ul = L(cl), fl = {
|
|
2314
2724
|
key: 0,
|
|
2315
2725
|
class: "q-input-group__prepend"
|
|
2316
|
-
},
|
|
2726
|
+
}, pl = { key: 0 }, ml = {
|
|
2317
2727
|
key: 1,
|
|
2318
2728
|
class: "q-input-group__append"
|
|
2319
|
-
},
|
|
2729
|
+
}, hl = { key: 0 }, vl = /* @__PURE__ */ I({
|
|
2320
2730
|
__name: "QInputGroup",
|
|
2321
2731
|
props: {
|
|
2322
|
-
id: {
|
|
2323
|
-
label: {
|
|
2732
|
+
id: {},
|
|
2733
|
+
label: {},
|
|
2324
2734
|
required: { type: Boolean },
|
|
2325
|
-
prependIcon: {
|
|
2326
|
-
appendIcon: {
|
|
2735
|
+
prependIcon: {},
|
|
2736
|
+
appendIcon: {},
|
|
2327
2737
|
size: { default: "large" },
|
|
2328
|
-
class: {
|
|
2738
|
+
class: {}
|
|
2329
2739
|
},
|
|
2330
2740
|
setup(n) {
|
|
2331
2741
|
const t = n;
|
|
2332
|
-
return
|
|
2742
|
+
return Ne({
|
|
2333
2743
|
QField: {
|
|
2334
2744
|
size: "block"
|
|
2335
2745
|
}
|
|
2336
|
-
}), (e,
|
|
2746
|
+
}), (e, o) => (d(), C(y(Se), {
|
|
2337
2747
|
id: t.id,
|
|
2338
2748
|
class: T(["q-input-group", t.class]),
|
|
2339
2749
|
label: t.label,
|
|
2340
2750
|
required: t.required,
|
|
2341
2751
|
size: t.size
|
|
2342
|
-
},
|
|
2343
|
-
default:
|
|
2344
|
-
e.$slots.prepend || t.prependIcon ? (
|
|
2345
|
-
t.prependIcon ? (
|
|
2346
|
-
|
|
2347
|
-
])) :
|
|
2752
|
+
}, pe({
|
|
2753
|
+
default: _(() => [
|
|
2754
|
+
e.$slots.prepend || t.prependIcon ? (d(), h("div", fl, [
|
|
2755
|
+
t.prependIcon ? (d(), h("span", pl, [
|
|
2756
|
+
U(y(X), se(fe(t.prependIcon)), null, 16)
|
|
2757
|
+
])) : w("", !0),
|
|
2348
2758
|
p(e.$slots, "prepend")
|
|
2349
|
-
])) :
|
|
2759
|
+
])) : w("", !0),
|
|
2350
2760
|
p(e.$slots, "default"),
|
|
2351
|
-
e.$slots.append || t.appendIcon ? (
|
|
2352
|
-
t.appendIcon ? (
|
|
2353
|
-
|
|
2354
|
-
])) :
|
|
2761
|
+
e.$slots.append || t.appendIcon ? (d(), h("div", ml, [
|
|
2762
|
+
t.appendIcon ? (d(), h("span", hl, [
|
|
2763
|
+
U(y(X), se(fe(t.appendIcon)), null, 16)
|
|
2764
|
+
])) : w("", !0),
|
|
2355
2765
|
p(e.$slots, "append")
|
|
2356
|
-
])) :
|
|
2766
|
+
])) : w("", !0)
|
|
2357
2767
|
]),
|
|
2358
2768
|
_: 2
|
|
2359
2769
|
}, [
|
|
2360
2770
|
e.$slots.extras ? {
|
|
2361
2771
|
name: "extras",
|
|
2362
|
-
fn:
|
|
2772
|
+
fn: _(() => [
|
|
2363
2773
|
p(e.$slots, "extras")
|
|
2364
2774
|
]),
|
|
2365
2775
|
key: "0"
|
|
2366
2776
|
} : void 0
|
|
2367
2777
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
2368
2778
|
}
|
|
2369
|
-
}),
|
|
2779
|
+
}), yl = L(vl), bl = /* @__PURE__ */ I({
|
|
2370
2780
|
__name: "QLineLoader",
|
|
2371
2781
|
props: {
|
|
2372
|
-
class: {
|
|
2782
|
+
class: {}
|
|
2373
2783
|
},
|
|
2374
2784
|
setup(n) {
|
|
2375
2785
|
const t = n;
|
|
2376
|
-
return (e,
|
|
2786
|
+
return (e, o) => (d(), h("div", {
|
|
2377
2787
|
class: T(["q-line-loader", t.class])
|
|
2378
2788
|
}, null, 2));
|
|
2379
2789
|
}
|
|
2380
|
-
}),
|
|
2790
|
+
}), gl = L(bl), _l = {
|
|
2381
2791
|
key: 0,
|
|
2382
2792
|
class: "q-popover__header"
|
|
2383
|
-
},
|
|
2793
|
+
}, $l = {
|
|
2384
2794
|
key: 1,
|
|
2385
2795
|
class: "q-popover__body"
|
|
2386
|
-
},
|
|
2796
|
+
}, kl = ["innerHTML"], wl = { key: 1 }, ql = /* @__PURE__ */ I({
|
|
2387
2797
|
inheritAttrs: !1,
|
|
2388
2798
|
__name: "QPopover",
|
|
2389
2799
|
props: /* @__PURE__ */ G({
|
|
@@ -2395,7 +2805,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2395
2805
|
html: { type: Boolean, default: !0 },
|
|
2396
2806
|
placement: { default: "right" },
|
|
2397
2807
|
text: {},
|
|
2398
|
-
title: {
|
|
2808
|
+
title: {}
|
|
2399
2809
|
}, {
|
|
2400
2810
|
modelValue: { type: Boolean },
|
|
2401
2811
|
modelModifiers: {}
|
|
@@ -2403,9 +2813,9 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2403
2813
|
emits: ["update:modelValue"],
|
|
2404
2814
|
setup(n) {
|
|
2405
2815
|
const t = n, e = K(n, "modelValue");
|
|
2406
|
-
return (
|
|
2816
|
+
return (o, l) => (d(), C(y(me), {
|
|
2407
2817
|
modelValue: e.value,
|
|
2408
|
-
"onUpdate:modelValue":
|
|
2818
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
|
|
2409
2819
|
class: "q-popover",
|
|
2410
2820
|
trigger: "click",
|
|
2411
2821
|
anchor: t.anchor,
|
|
@@ -2415,32 +2825,32 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2415
2825
|
disabled: t.disabled,
|
|
2416
2826
|
placement: t.placement
|
|
2417
2827
|
}, {
|
|
2418
|
-
default:
|
|
2419
|
-
t.title ||
|
|
2420
|
-
|
|
2421
|
-
p(
|
|
2422
|
-
])) :
|
|
2423
|
-
t.text ||
|
|
2424
|
-
t.html ? (
|
|
2828
|
+
default: _(() => [
|
|
2829
|
+
t.title || o.$slots.header ? (d(), h("h3", _l, [
|
|
2830
|
+
ie(z(t.title) + " ", 1),
|
|
2831
|
+
p(o.$slots, "header")
|
|
2832
|
+
])) : w("", !0),
|
|
2833
|
+
t.text || o.$slots.body ? (d(), h("div", $l, [
|
|
2834
|
+
t.html ? (d(), h("span", {
|
|
2425
2835
|
key: 0,
|
|
2426
2836
|
innerHTML: t.text
|
|
2427
|
-
}, null, 8,
|
|
2428
|
-
p(
|
|
2429
|
-
])) :
|
|
2837
|
+
}, null, 8, kl)) : (d(), h("span", wl, z(t.text), 1)),
|
|
2838
|
+
p(o.$slots, "body")
|
|
2839
|
+
])) : w("", !0)
|
|
2430
2840
|
]),
|
|
2431
2841
|
_: 3
|
|
2432
2842
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
2433
2843
|
}
|
|
2434
|
-
}),
|
|
2844
|
+
}), xl = L(ql), qt = {
|
|
2435
2845
|
emptyMessage: "Select a field to view details."
|
|
2436
|
-
},
|
|
2846
|
+
}, xt = {
|
|
2437
2847
|
open: {
|
|
2438
2848
|
icon: "minus-box"
|
|
2439
2849
|
},
|
|
2440
2850
|
close: {
|
|
2441
2851
|
icon: "plus-box"
|
|
2442
2852
|
}
|
|
2443
|
-
},
|
|
2853
|
+
}, Cl = { class: "q-property-list__table" }, Il = /* @__PURE__ */ I({
|
|
2444
2854
|
__name: "QPropertyList",
|
|
2445
2855
|
props: {
|
|
2446
2856
|
fields: { default: () => [] },
|
|
@@ -2449,246 +2859,254 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2449
2859
|
panelPosition: { default: "bottom" },
|
|
2450
2860
|
groups: { default: () => [] },
|
|
2451
2861
|
readonly: { type: Boolean },
|
|
2452
|
-
class: {
|
|
2453
|
-
icons: { default: () =>
|
|
2454
|
-
texts: { default: () =>
|
|
2862
|
+
class: {},
|
|
2863
|
+
icons: { default: () => xt },
|
|
2864
|
+
texts: { default: () => qt }
|
|
2455
2865
|
},
|
|
2456
|
-
emits: ["field-change"],
|
|
2866
|
+
emits: ["field-change", "select-field"],
|
|
2457
2867
|
setup(n, { emit: t }) {
|
|
2458
|
-
const e = n,
|
|
2459
|
-
(
|
|
2460
|
-
) : [{ id: "", title: "" }]),
|
|
2868
|
+
const e = n, o = t, l = B(e.groups.map(($) => $.id)), s = B(void 0), a = B(null), r = g(() => e.groups.length ? e.groups.filter(
|
|
2869
|
+
($) => e.fields.some((V) => V.group === $.id)
|
|
2870
|
+
) : [{ id: "", title: "" }]), i = g(() => [
|
|
2461
2871
|
e.class,
|
|
2462
2872
|
{
|
|
2463
2873
|
"q-property-list--side-panel": e.panelPosition === "right"
|
|
2464
2874
|
}
|
|
2465
2875
|
]);
|
|
2466
|
-
function
|
|
2467
|
-
var
|
|
2468
|
-
(
|
|
2876
|
+
function c() {
|
|
2877
|
+
var $;
|
|
2878
|
+
($ = a.value) != null && $.contains(document.activeElement) || (s.value = void 0);
|
|
2469
2879
|
}
|
|
2470
|
-
function b(
|
|
2471
|
-
return
|
|
2880
|
+
function b($) {
|
|
2881
|
+
return $ ? e.fields.filter((V) => V.group === $) : e.fields;
|
|
2472
2882
|
}
|
|
2473
|
-
function
|
|
2474
|
-
const V =
|
|
2475
|
-
V === -1 ?
|
|
2883
|
+
function m($) {
|
|
2884
|
+
const V = l.value.indexOf($);
|
|
2885
|
+
V === -1 ? l.value.push($) : l.value.splice(V, 1);
|
|
2476
2886
|
}
|
|
2477
|
-
function
|
|
2887
|
+
function A($) {
|
|
2478
2888
|
var Q;
|
|
2479
|
-
const V =
|
|
2889
|
+
const V = $.group && !l.value.includes($.group), D = ((Q = s.value) == null ? void 0 : Q.id) === $.id;
|
|
2480
2890
|
return [
|
|
2481
2891
|
{
|
|
2482
2892
|
"q-property-list__row--closed": V,
|
|
2483
|
-
"q-property-list__row--selected":
|
|
2893
|
+
"q-property-list__row--selected": D
|
|
2484
2894
|
}
|
|
2485
2895
|
];
|
|
2486
2896
|
}
|
|
2487
|
-
function P(
|
|
2488
|
-
s.value =
|
|
2897
|
+
function P($) {
|
|
2898
|
+
s.value = $, o("select-field", s.value.id);
|
|
2489
2899
|
}
|
|
2490
|
-
function
|
|
2491
|
-
e.readonly || (
|
|
2900
|
+
function N($, V) {
|
|
2901
|
+
e.readonly || ($.props.readonly ?? !1) || o("field-change", $, V);
|
|
2492
2902
|
}
|
|
2493
|
-
return (
|
|
2903
|
+
return ($, V) => (d(), h("div", {
|
|
2494
2904
|
ref_key: "componentRoot",
|
|
2495
2905
|
ref: a,
|
|
2496
2906
|
tabindex: "0",
|
|
2497
|
-
class: T(["q-property-list",
|
|
2498
|
-
onFocusout:
|
|
2907
|
+
class: T(["q-property-list", i.value]),
|
|
2908
|
+
onFocusout: c
|
|
2499
2909
|
}, [
|
|
2500
|
-
|
|
2501
|
-
V[0] || (V[0] =
|
|
2502
|
-
|
|
2503
|
-
|
|
2910
|
+
x("table", Cl, [
|
|
2911
|
+
V[0] || (V[0] = x("thead", { class: "q-property-list__header" }, [
|
|
2912
|
+
x("tr", null, [
|
|
2913
|
+
x("th", { colspan: "2" })
|
|
2504
2914
|
])
|
|
2505
2915
|
], -1)),
|
|
2506
|
-
|
|
2507
|
-
(
|
|
2508
|
-
key:
|
|
2916
|
+
x("tbody", null, [
|
|
2917
|
+
(d(!0), h(W, null, ye(r.value, (D) => (d(), h(W, {
|
|
2918
|
+
key: D.id
|
|
2509
2919
|
}, [
|
|
2510
|
-
|
|
2920
|
+
D.title ? (d(), C(y(It), {
|
|
2511
2921
|
key: 0,
|
|
2512
|
-
id:
|
|
2513
|
-
title:
|
|
2922
|
+
id: D.id,
|
|
2923
|
+
title: D.title,
|
|
2514
2924
|
icons: e.icons,
|
|
2515
2925
|
"no-toggle": e.noToggle,
|
|
2516
|
-
onToggleGroup:
|
|
2517
|
-
}, null, 8, ["id", "title", "icons", "no-toggle"])) :
|
|
2518
|
-
(
|
|
2926
|
+
onToggleGroup: m
|
|
2927
|
+
}, null, 8, ["id", "title", "icons", "no-toggle"])) : w("", !0),
|
|
2928
|
+
(d(!0), h(W, null, ye(b(D.id), (Q) => (d(), C(y(Ct), {
|
|
2519
2929
|
key: Q.id,
|
|
2520
|
-
class: T(
|
|
2930
|
+
class: T(A(Q)),
|
|
2521
2931
|
field: Q,
|
|
2932
|
+
"model-value": Q.props.modelValue,
|
|
2522
2933
|
readonly: e.readonly,
|
|
2523
2934
|
onFocus: P,
|
|
2524
|
-
|
|
2935
|
+
"onUpdate:modelValue": (j) => N(Q, j)
|
|
2525
2936
|
}, {
|
|
2526
|
-
default:
|
|
2527
|
-
p(
|
|
2937
|
+
default: _(() => [
|
|
2938
|
+
p($.$slots, Q.id, { field: Q })
|
|
2528
2939
|
]),
|
|
2529
2940
|
_: 2
|
|
2530
|
-
}, 1032, ["class", "field", "readonly"]))), 128))
|
|
2941
|
+
}, 1032, ["class", "field", "model-value", "readonly", "onUpdate:modelValue"]))), 128))
|
|
2531
2942
|
], 64))), 128))
|
|
2532
2943
|
])
|
|
2533
2944
|
]),
|
|
2534
|
-
e.noPanel ?
|
|
2945
|
+
e.noPanel ? w("", !0) : (d(), C(y(Lt), {
|
|
2535
2946
|
key: 0,
|
|
2536
2947
|
field: s.value,
|
|
2537
2948
|
texts: e.texts
|
|
2538
2949
|
}, {
|
|
2539
|
-
default:
|
|
2540
|
-
s.value ? p(
|
|
2950
|
+
default: _(() => [
|
|
2951
|
+
s.value ? p($.$slots, "panel", {
|
|
2541
2952
|
key: 0,
|
|
2542
2953
|
field: s.value
|
|
2543
|
-
}) :
|
|
2954
|
+
}) : w("", !0)
|
|
2544
2955
|
]),
|
|
2545
2956
|
_: 3
|
|
2546
2957
|
}, 8, ["field", "texts"]))
|
|
2547
2958
|
], 34));
|
|
2548
2959
|
}
|
|
2549
|
-
}),
|
|
2960
|
+
}), Ll = ["data-group"], Sl = {
|
|
2550
2961
|
key: 0,
|
|
2551
2962
|
class: "q-property-list-field__container"
|
|
2552
|
-
},
|
|
2963
|
+
}, Bl = /* @__PURE__ */ I({
|
|
2553
2964
|
__name: "QPropertyListRow",
|
|
2554
|
-
props: {
|
|
2965
|
+
props: /* @__PURE__ */ G({
|
|
2555
2966
|
field: {},
|
|
2556
2967
|
class: {},
|
|
2557
2968
|
readonly: { type: Boolean }
|
|
2558
|
-
},
|
|
2559
|
-
|
|
2969
|
+
}, {
|
|
2970
|
+
modelValue: {},
|
|
2971
|
+
modelModifiers: {}
|
|
2972
|
+
}),
|
|
2973
|
+
emits: /* @__PURE__ */ G(["focus"], ["update:modelValue"]),
|
|
2560
2974
|
setup(n, { emit: t }) {
|
|
2561
|
-
const e = n,
|
|
2562
|
-
var
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
}
|
|
2572
|
-
const u = y(() => ({
|
|
2975
|
+
const e = n, o = t, l = K(n, "modelValue"), s = g(() => ["q-property-list__row", e.class]), a = g(() => {
|
|
2976
|
+
var m;
|
|
2977
|
+
return [
|
|
2978
|
+
"q-property-list__cell",
|
|
2979
|
+
"q-property-list__cell-label",
|
|
2980
|
+
{
|
|
2981
|
+
"q-property-list__cell--required": (m = e.field.props) == null ? void 0 : m.required
|
|
2982
|
+
}
|
|
2983
|
+
];
|
|
2984
|
+
}), r = g(() => e.readonly || (e.field.props.readonly ?? !1)), i = g(() => ({
|
|
2573
2985
|
...e.field.props,
|
|
2574
|
-
readonly:
|
|
2986
|
+
readonly: r.value
|
|
2575
2987
|
}));
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2988
|
+
function c() {
|
|
2989
|
+
o("focus", e.field);
|
|
2990
|
+
}
|
|
2991
|
+
function b(m) {
|
|
2992
|
+
l.value = m;
|
|
2993
|
+
}
|
|
2994
|
+
return (m, A) => (d(), h("tr", {
|
|
2995
|
+
class: T(s.value),
|
|
2996
|
+
"data-group": e.field.group,
|
|
2997
|
+
onFocusin: c
|
|
2579
2998
|
}, [
|
|
2580
|
-
|
|
2581
|
-
class: T(
|
|
2582
|
-
onClick:
|
|
2583
|
-
},
|
|
2584
|
-
|
|
2999
|
+
x("td", {
|
|
3000
|
+
class: T(a.value),
|
|
3001
|
+
onClick: ne(c, ["prevent", "stop"])
|
|
3002
|
+
}, z(e.field.label), 3),
|
|
3003
|
+
x("td", {
|
|
2585
3004
|
class: "q-property-list__cell",
|
|
2586
|
-
onClick:
|
|
3005
|
+
onClick: ne(c, ["prevent", "stop"])
|
|
2587
3006
|
}, [
|
|
2588
|
-
p(
|
|
2589
|
-
e.field.component ? (
|
|
2590
|
-
(
|
|
2591
|
-
|
|
2592
|
-
"onUpdate:modelValue":
|
|
2593
|
-
|
|
2594
|
-
|
|
3007
|
+
p(m.$slots, "default", {}, () => [
|
|
3008
|
+
e.field.component ? (d(), h("div", Sl, [
|
|
3009
|
+
(d(), C(Ie(e.field.component), Z(i.value, {
|
|
3010
|
+
modelValue: l.value,
|
|
3011
|
+
"onUpdate:modelValue": [
|
|
3012
|
+
A[0] || (A[0] = (P) => l.value = P),
|
|
3013
|
+
b
|
|
3014
|
+
]
|
|
3015
|
+
}), null, 16, ["modelValue"]))
|
|
3016
|
+
])) : w("", !0)
|
|
2595
3017
|
])
|
|
2596
3018
|
])
|
|
2597
|
-
],
|
|
3019
|
+
], 42, Ll));
|
|
2598
3020
|
}
|
|
2599
|
-
}),
|
|
3021
|
+
}), Vl = ["data-key", "aria-labelledby"], Tl = ["id"], Al = { class: "q-property-list-group__content" }, El = /* @__PURE__ */ I({
|
|
2600
3022
|
__name: "QPropertyListGroup",
|
|
2601
3023
|
props: {
|
|
2602
3024
|
id: {},
|
|
2603
3025
|
title: {},
|
|
2604
|
-
noToggle: { type: Boolean
|
|
2605
|
-
icons: { default: () =>
|
|
3026
|
+
noToggle: { type: Boolean },
|
|
3027
|
+
icons: { default: () => xt },
|
|
2606
3028
|
texts: {}
|
|
2607
3029
|
},
|
|
2608
3030
|
emits: ["toggle-group"],
|
|
2609
3031
|
setup(n, { emit: t }) {
|
|
2610
|
-
const e = n,
|
|
3032
|
+
const e = n, o = t, l = B(!0), s = de(), a = g(() => l.value ? e.icons.open : e.icons.close), r = g(() => [
|
|
2611
3033
|
"q-property-list-group",
|
|
2612
3034
|
{
|
|
2613
3035
|
"q-property-list-group--no-toggle": e.noToggle
|
|
2614
3036
|
}
|
|
2615
3037
|
]);
|
|
2616
|
-
function
|
|
2617
|
-
e.noToggle || (
|
|
3038
|
+
function i() {
|
|
3039
|
+
e.noToggle || (l.value = !l.value, o("toggle-group", e.id));
|
|
2618
3040
|
}
|
|
2619
|
-
return (
|
|
2620
|
-
class: T(
|
|
3041
|
+
return (c, b) => (d(), h("tr", {
|
|
3042
|
+
class: T(r.value),
|
|
2621
3043
|
role: "group",
|
|
2622
3044
|
"data-key": e.id,
|
|
2623
|
-
"aria-labelledby":
|
|
2624
|
-
onClick:
|
|
3045
|
+
"aria-labelledby": y(s),
|
|
3046
|
+
onClick: i
|
|
2625
3047
|
}, [
|
|
2626
|
-
|
|
2627
|
-
id:
|
|
3048
|
+
x("td", {
|
|
3049
|
+
id: y(s),
|
|
2628
3050
|
colspan: "2"
|
|
2629
3051
|
}, [
|
|
2630
|
-
|
|
2631
|
-
e.noToggle ?
|
|
3052
|
+
x("div", Al, [
|
|
3053
|
+
e.noToggle ? w("", !0) : (d(), C(y(re), {
|
|
2632
3054
|
key: 0,
|
|
2633
3055
|
"b-style": "tertiary",
|
|
2634
3056
|
borderless: "",
|
|
2635
|
-
onClick:
|
|
3057
|
+
onClick: i
|
|
2636
3058
|
}, {
|
|
2637
|
-
default:
|
|
2638
|
-
|
|
3059
|
+
default: _(() => [
|
|
3060
|
+
U(y(X), se(fe(a.value)), null, 16)
|
|
2639
3061
|
]),
|
|
2640
3062
|
_: 1
|
|
2641
3063
|
})),
|
|
2642
|
-
|
|
3064
|
+
ie(" " + z(e.title), 1)
|
|
2643
3065
|
])
|
|
2644
|
-
], 8,
|
|
2645
|
-
], 10,
|
|
3066
|
+
], 8, Tl)
|
|
3067
|
+
], 10, Vl));
|
|
2646
3068
|
}
|
|
2647
|
-
}),
|
|
3069
|
+
}), Dl = { class: "q-property-list-panel__container" }, Ql = { class: "q-property-list-panel__label" }, zl = { class: "q-property-list-panel__description" }, Fl = {
|
|
2648
3070
|
key: 1,
|
|
2649
3071
|
class: "q-property-list-panel__empty"
|
|
2650
|
-
},
|
|
3072
|
+
}, Ml = /* @__PURE__ */ I({
|
|
2651
3073
|
__name: "QPropertyListPanel",
|
|
2652
3074
|
props: {
|
|
2653
|
-
field: {
|
|
3075
|
+
field: {},
|
|
2654
3076
|
icons: {},
|
|
2655
|
-
texts: { default: () =>
|
|
3077
|
+
texts: { default: () => qt }
|
|
2656
3078
|
},
|
|
2657
3079
|
setup(n) {
|
|
2658
3080
|
const t = n;
|
|
2659
|
-
return (e,
|
|
3081
|
+
return (e, o) => (d(), h("div", Dl, [
|
|
2660
3082
|
t.field ? p(e.$slots, "default", { key: 0 }, () => [
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
]) : (
|
|
3083
|
+
x("div", Ql, z(t.field.label), 1),
|
|
3084
|
+
x("div", zl, z(t.field.description), 1)
|
|
3085
|
+
]) : (d(), h("div", Fl, z(t.texts.emptyMessage), 1))
|
|
2664
3086
|
]));
|
|
2665
3087
|
}
|
|
2666
|
-
}),
|
|
3088
|
+
}), Ol = L(Il), Ct = L(Bl), It = L(El), Lt = L(Ml), Ul = {
|
|
3089
|
+
...Ge,
|
|
2667
3090
|
placeholder: "Choose...",
|
|
2668
|
-
clearValue: "Clear value",
|
|
2669
3091
|
showOptions: "Show options"
|
|
2670
|
-
},
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
clear: {
|
|
2675
|
-
icon: "close"
|
|
2676
|
-
}
|
|
2677
|
-
}, yo = {
|
|
3092
|
+
}, Pl = {
|
|
3093
|
+
...Le,
|
|
3094
|
+
...He
|
|
3095
|
+
}, Nl = {
|
|
2678
3096
|
key: 0,
|
|
2679
3097
|
class: "q-select__value"
|
|
2680
|
-
},
|
|
3098
|
+
}, Rl = {
|
|
2681
3099
|
key: 1,
|
|
2682
3100
|
class: "q-select__placeholder"
|
|
2683
|
-
},
|
|
3101
|
+
}, Gl = ["data-key"], Hl = {
|
|
2684
3102
|
key: 0,
|
|
2685
3103
|
class: "q-select__loader"
|
|
2686
|
-
},
|
|
3104
|
+
}, Kl = /* @__PURE__ */ I({
|
|
2687
3105
|
inheritAttrs: !1,
|
|
2688
3106
|
__name: "QSelect",
|
|
2689
3107
|
props: /* @__PURE__ */ G({
|
|
2690
|
-
id: {
|
|
2691
|
-
label: {
|
|
3108
|
+
id: {},
|
|
3109
|
+
label: {},
|
|
2692
3110
|
clearable: { type: Boolean },
|
|
2693
3111
|
readonly: { type: Boolean },
|
|
2694
3112
|
disabled: { type: Boolean },
|
|
@@ -2698,11 +3116,11 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2698
3116
|
groups: { default: () => [] },
|
|
2699
3117
|
itemValue: { default: "key" },
|
|
2700
3118
|
itemLabel: { default: "label" },
|
|
2701
|
-
emptyValue: { type: [String, Number, Boolean, Symbol]
|
|
2702
|
-
size: {
|
|
2703
|
-
class: {
|
|
2704
|
-
icons: { default: () =>
|
|
2705
|
-
texts: { default: () =>
|
|
3119
|
+
emptyValue: { type: [String, Number, Boolean, Symbol] },
|
|
3120
|
+
size: {},
|
|
3121
|
+
class: {},
|
|
3122
|
+
icons: { default: () => Pl },
|
|
3123
|
+
texts: { default: () => Ul }
|
|
2706
3124
|
}, {
|
|
2707
3125
|
modelValue: {
|
|
2708
3126
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -2711,82 +3129,82 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2711
3129
|
}),
|
|
2712
3130
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2713
3131
|
setup(n, { emit: t }) {
|
|
2714
|
-
const e = n,
|
|
3132
|
+
const e = n, o = t, l = K(n, "modelValue"), s = B(!1), a = B(""), r = B(null), i = B(null), c = B(null), b = g(() => m.value === void 0), m = g(
|
|
2715
3133
|
() => {
|
|
2716
|
-
var
|
|
2717
|
-
return (
|
|
3134
|
+
var u;
|
|
3135
|
+
return (u = e.items) == null ? void 0 : u.find((q) => q[e.itemValue] === l.value);
|
|
2718
3136
|
}
|
|
2719
|
-
),
|
|
2720
|
-
() =>
|
|
2721
|
-
), P =
|
|
3137
|
+
), A = g(
|
|
3138
|
+
() => m.value ? m.value[e.itemLabel] : ""
|
|
3139
|
+
), P = g(
|
|
2722
3140
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2723
3141
|
);
|
|
2724
|
-
function
|
|
2725
|
-
|
|
3142
|
+
function N(u) {
|
|
3143
|
+
l.value = u, Q();
|
|
2726
3144
|
}
|
|
2727
|
-
function
|
|
2728
|
-
P.value && (
|
|
3145
|
+
function $() {
|
|
3146
|
+
P.value && (N(e.emptyValue), ae());
|
|
2729
3147
|
}
|
|
2730
|
-
function V(
|
|
2731
|
-
var
|
|
2732
|
-
!((
|
|
3148
|
+
function V(u) {
|
|
3149
|
+
var q, O, H;
|
|
3150
|
+
!((q = c.value) != null && q.contains(u.relatedTarget)) && !((H = (O = r.value) == null ? void 0 : O.fieldRef) != null && H.contains(u.relatedTarget)) && Q();
|
|
2733
3151
|
}
|
|
2734
|
-
function
|
|
2735
|
-
s.value || (
|
|
3152
|
+
function D() {
|
|
3153
|
+
s.value || (o("before-show"), s.value = !0);
|
|
2736
3154
|
}
|
|
2737
3155
|
function Q() {
|
|
2738
|
-
s.value && (
|
|
2739
|
-
}
|
|
2740
|
-
function
|
|
2741
|
-
e.readonly || e.disabled || (s.value ? Q() :
|
|
2742
|
-
}
|
|
2743
|
-
let
|
|
2744
|
-
function
|
|
2745
|
-
if (!(!
|
|
2746
|
-
if (window.clearTimeout(
|
|
2747
|
-
a.value +=
|
|
2748
|
-
for (let
|
|
2749
|
-
if (e.items[
|
|
2750
|
-
|
|
3156
|
+
s.value && (o("before-hide"), s.value = !1);
|
|
3157
|
+
}
|
|
3158
|
+
function j() {
|
|
3159
|
+
e.readonly || e.disabled || (s.value ? Q() : D());
|
|
3160
|
+
}
|
|
3161
|
+
let te;
|
|
3162
|
+
function S(u) {
|
|
3163
|
+
if (!(!u.key || e.readonly || e.disabled)) {
|
|
3164
|
+
if (window.clearTimeout(te), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (s.value = !0), ["Escape", "Tab"].includes(u.key) && (s.value ? s.value = !1 : P.value && u.key === "Escape" && $()), u.key === "Delete" && e.clearable && $(), /^[a-z]$/i.test(u.key)) {
|
|
3165
|
+
a.value += u.key.toLowerCase();
|
|
3166
|
+
for (let q = 0; q < e.items.length; q++)
|
|
3167
|
+
if (e.items[q][e.itemLabel].toLowerCase().startsWith(a.value)) {
|
|
3168
|
+
k(q);
|
|
2751
3169
|
break;
|
|
2752
3170
|
}
|
|
2753
3171
|
}
|
|
2754
|
-
|
|
3172
|
+
te = window.setTimeout(function() {
|
|
2755
3173
|
a.value = "";
|
|
2756
3174
|
}, 500);
|
|
2757
3175
|
}
|
|
2758
3176
|
}
|
|
2759
|
-
function
|
|
2760
|
-
var
|
|
2761
|
-
e.loading ? (
|
|
3177
|
+
function E() {
|
|
3178
|
+
var u;
|
|
3179
|
+
e.loading ? (u = c.value) == null || u.focus() : ce(), o("show");
|
|
2762
3180
|
}
|
|
2763
|
-
function
|
|
2764
|
-
|
|
3181
|
+
function R() {
|
|
3182
|
+
ae(), o("hide");
|
|
2765
3183
|
}
|
|
2766
|
-
function
|
|
2767
|
-
var
|
|
2768
|
-
(
|
|
3184
|
+
function ae() {
|
|
3185
|
+
var u, q;
|
|
3186
|
+
(q = (u = r.value) == null ? void 0 : u.fieldRef) == null || q.focus();
|
|
2769
3187
|
}
|
|
2770
|
-
function
|
|
2771
|
-
var
|
|
2772
|
-
(
|
|
3188
|
+
function ce() {
|
|
3189
|
+
var u;
|
|
3190
|
+
(u = i.value) == null || u.$el.focus();
|
|
2773
3191
|
}
|
|
2774
|
-
function
|
|
2775
|
-
var
|
|
2776
|
-
(
|
|
3192
|
+
function k(u) {
|
|
3193
|
+
var q;
|
|
3194
|
+
(q = i.value) == null || q.focusItem(u);
|
|
2777
3195
|
}
|
|
2778
|
-
return
|
|
3196
|
+
return Y(
|
|
2779
3197
|
() => e.loading,
|
|
2780
|
-
(
|
|
2781
|
-
!
|
|
3198
|
+
(u) => {
|
|
3199
|
+
!u && s.value && le(ce);
|
|
2782
3200
|
}
|
|
2783
|
-
), (
|
|
2784
|
-
var
|
|
2785
|
-
return
|
|
2786
|
-
|
|
3201
|
+
), (u, q) => {
|
|
3202
|
+
var O, H;
|
|
3203
|
+
return d(), h(W, null, [
|
|
3204
|
+
U(y(Se), Z({
|
|
2787
3205
|
id: e.id,
|
|
2788
3206
|
ref_key: "triggerEl",
|
|
2789
|
-
ref:
|
|
3207
|
+
ref: r,
|
|
2790
3208
|
label: e.label,
|
|
2791
3209
|
required: e.required,
|
|
2792
3210
|
role: "combobox",
|
|
@@ -2795,8 +3213,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2795
3213
|
"q-select",
|
|
2796
3214
|
{
|
|
2797
3215
|
"q-select--readonly": e.readonly,
|
|
2798
|
-
"q-select--disabled": e.disabled
|
|
2799
|
-
"q-select--expanded": s.value
|
|
3216
|
+
"q-select--disabled": e.disabled
|
|
2800
3217
|
},
|
|
2801
3218
|
e.class
|
|
2802
3219
|
],
|
|
@@ -2806,27 +3223,19 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2806
3223
|
"aria-expanded": s.value,
|
|
2807
3224
|
"aria-haspopup": "listbox",
|
|
2808
3225
|
size: e.size
|
|
2809
|
-
},
|
|
2810
|
-
onClick:
|
|
2811
|
-
onKeydown:
|
|
2812
|
-
}),
|
|
2813
|
-
append:
|
|
2814
|
-
p(
|
|
2815
|
-
P.value &&
|
|
3226
|
+
}, u.$attrs, {
|
|
3227
|
+
onClick: j,
|
|
3228
|
+
onKeydown: ne(S, ["stop"])
|
|
3229
|
+
}), pe({
|
|
3230
|
+
append: _(() => [
|
|
3231
|
+
p(u.$slots, "append"),
|
|
3232
|
+
P.value && l.value ? (d(), C(y(wt), {
|
|
2816
3233
|
key: 0,
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
onClick: _
|
|
2823
|
-
}, {
|
|
2824
|
-
default: w(() => [
|
|
2825
|
-
D(m(O), W(ne(e.icons.clear)), null, 16)
|
|
2826
|
-
]),
|
|
2827
|
-
_: 1
|
|
2828
|
-
}, 8, ["aria-label"])) : g("", !0),
|
|
2829
|
-
e.readonly ? g("", !0) : (i(), B(m(le), {
|
|
3234
|
+
icons: e.icons,
|
|
3235
|
+
texts: e.texts,
|
|
3236
|
+
onClick: $
|
|
3237
|
+
}, null, 8, ["icons", "texts"])) : w("", !0),
|
|
3238
|
+
e.readonly ? w("", !0) : (d(), C(y(re), {
|
|
2830
3239
|
key: 1,
|
|
2831
3240
|
class: "q-select__chevron",
|
|
2832
3241
|
"aria-label": e.texts.showOptions,
|
|
@@ -2834,135 +3243,125 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2834
3243
|
borderless: "",
|
|
2835
3244
|
tabindex: "-1",
|
|
2836
3245
|
disabled: e.disabled,
|
|
2837
|
-
onClick:
|
|
3246
|
+
onClick: j
|
|
2838
3247
|
}, {
|
|
2839
|
-
default:
|
|
2840
|
-
|
|
3248
|
+
default: _(() => [
|
|
3249
|
+
U(y(xe), {
|
|
3250
|
+
"model-value": s.value,
|
|
3251
|
+
icons: e.icons
|
|
3252
|
+
}, null, 8, ["model-value", "icons"])
|
|
2841
3253
|
]),
|
|
2842
3254
|
_: 1
|
|
2843
3255
|
}, 8, ["aria-label", "disabled"]))
|
|
2844
3256
|
]),
|
|
2845
|
-
default:
|
|
2846
|
-
b.value ? (
|
|
2847
|
-
!e.readonly && !e.disabled ? (
|
|
2848
|
-
|
|
2849
|
-
], 64)) :
|
|
2850
|
-
])) : (
|
|
3257
|
+
default: _(() => [
|
|
3258
|
+
b.value ? (d(), h("span", Rl, [
|
|
3259
|
+
!e.readonly && !e.disabled ? (d(), h(W, { key: 0 }, [
|
|
3260
|
+
ie(z(e.texts.placeholder), 1)
|
|
3261
|
+
], 64)) : w("", !0)
|
|
3262
|
+
])) : (d(), h("span", Nl, z(A.value), 1))
|
|
2851
3263
|
]),
|
|
2852
3264
|
_: 2
|
|
2853
3265
|
}, [
|
|
2854
|
-
(
|
|
3266
|
+
(O = m.value) != null && O.icon || u.$slots.prepend ? {
|
|
2855
3267
|
name: "prepend",
|
|
2856
|
-
fn:
|
|
2857
|
-
var
|
|
3268
|
+
fn: _(() => {
|
|
3269
|
+
var J, ee;
|
|
2858
3270
|
return [
|
|
2859
|
-
p(
|
|
2860
|
-
(
|
|
3271
|
+
p(u.$slots, "prepend"),
|
|
3272
|
+
(J = m.value) != null && J.icon ? (d(), C(y(X), se(Z({ key: 0 }, (ee = m.value) == null ? void 0 : ee.icon)), null, 16)) : w("", !0)
|
|
2861
3273
|
];
|
|
2862
3274
|
}),
|
|
2863
3275
|
key: "0"
|
|
2864
3276
|
} : void 0,
|
|
2865
|
-
|
|
3277
|
+
u.$slots.extras ? {
|
|
2866
3278
|
name: "extras",
|
|
2867
|
-
fn:
|
|
2868
|
-
p(
|
|
3279
|
+
fn: _(() => [
|
|
3280
|
+
p(u.$slots, "extras")
|
|
2869
3281
|
]),
|
|
2870
3282
|
key: "1"
|
|
2871
3283
|
} : void 0
|
|
2872
3284
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2873
|
-
|
|
3285
|
+
U(y(me), {
|
|
2874
3286
|
modelValue: s.value,
|
|
2875
|
-
"onUpdate:modelValue":
|
|
3287
|
+
"onUpdate:modelValue": q[0] || (q[0] = (J) => s.value = J),
|
|
2876
3288
|
spy: "",
|
|
2877
3289
|
trigger: "manual",
|
|
2878
3290
|
placement: "bottom-start",
|
|
2879
3291
|
width: "anchor",
|
|
2880
3292
|
"scroll-lock": "",
|
|
2881
|
-
anchor: (
|
|
3293
|
+
anchor: (H = r.value) == null ? void 0 : H.$el,
|
|
2882
3294
|
offset: 2,
|
|
2883
|
-
onEnter:
|
|
2884
|
-
onLeave:
|
|
3295
|
+
onEnter: E,
|
|
3296
|
+
onLeave: R
|
|
2885
3297
|
}, {
|
|
2886
|
-
default:
|
|
2887
|
-
|
|
3298
|
+
default: _(() => [
|
|
3299
|
+
x("div", {
|
|
2888
3300
|
ref_key: "contentRef",
|
|
2889
|
-
ref:
|
|
3301
|
+
ref: c,
|
|
2890
3302
|
"data-testid": "combobox-dropdown",
|
|
2891
3303
|
"data-key": e.id,
|
|
2892
3304
|
class: "q-select__body",
|
|
2893
3305
|
tabindex: "-1",
|
|
2894
3306
|
onFocusout: V,
|
|
2895
|
-
onKeydown:
|
|
3307
|
+
onKeydown: ne(S, ["stop"])
|
|
2896
3308
|
}, [
|
|
2897
|
-
p(
|
|
2898
|
-
e.loading ? (
|
|
2899
|
-
|
|
2900
|
-
])) : (
|
|
3309
|
+
p(u.$slots, "body.prepend"),
|
|
3310
|
+
e.loading ? (d(), h("div", Hl, [
|
|
3311
|
+
U(y($e), { size: 24 })
|
|
3312
|
+
])) : (d(), C(y(Be), {
|
|
2901
3313
|
key: 1,
|
|
2902
3314
|
ref_key: "listRef",
|
|
2903
|
-
ref:
|
|
3315
|
+
ref: i,
|
|
2904
3316
|
class: "q-select__items",
|
|
2905
3317
|
selectable: "",
|
|
2906
|
-
"model-value":
|
|
3318
|
+
"model-value": l.value,
|
|
2907
3319
|
items: e.items,
|
|
2908
|
-
groups:
|
|
3320
|
+
groups: u.groups,
|
|
2909
3321
|
"item-label": e.itemLabel,
|
|
2910
3322
|
"item-value": e.itemValue,
|
|
2911
|
-
"onUpdate:modelValue":
|
|
3323
|
+
"onUpdate:modelValue": N
|
|
2912
3324
|
}, {
|
|
2913
|
-
item:
|
|
2914
|
-
p(
|
|
3325
|
+
item: _(({ item: J }) => [
|
|
3326
|
+
p(u.$slots, "item", { item: J })
|
|
2915
3327
|
]),
|
|
2916
3328
|
_: 3
|
|
2917
3329
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
2918
|
-
p(
|
|
2919
|
-
], 40,
|
|
3330
|
+
p(u.$slots, "body.append")
|
|
3331
|
+
], 40, Gl)
|
|
2920
3332
|
]),
|
|
2921
3333
|
_: 3
|
|
2922
3334
|
}, 8, ["modelValue", "anchor"])
|
|
2923
3335
|
], 64);
|
|
2924
3336
|
};
|
|
2925
3337
|
}
|
|
2926
|
-
}),
|
|
3338
|
+
}), Wl = L(Kl), jl = /* @__PURE__ */ I({
|
|
2927
3339
|
__name: "QSkeletonLoader",
|
|
2928
3340
|
props: {
|
|
2929
|
-
type: {
|
|
2930
|
-
width: {
|
|
2931
|
-
height: {
|
|
3341
|
+
type: {},
|
|
3342
|
+
width: {},
|
|
3343
|
+
height: {}
|
|
2932
3344
|
},
|
|
2933
3345
|
setup(n) {
|
|
2934
|
-
const t = n, e =
|
|
2935
|
-
const
|
|
3346
|
+
const t = n, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), o = g(() => {
|
|
3347
|
+
const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
|
|
2936
3348
|
return {
|
|
2937
|
-
width:
|
|
3349
|
+
width: l,
|
|
2938
3350
|
height: s
|
|
2939
3351
|
};
|
|
2940
3352
|
});
|
|
2941
|
-
return (
|
|
3353
|
+
return (l, s) => (d(), h("div", {
|
|
2942
3354
|
class: T(["q-skeleton-loader", e.value]),
|
|
2943
|
-
style:
|
|
3355
|
+
style: ue(o.value)
|
|
2944
3356
|
}, s[0] || (s[0] = [
|
|
2945
|
-
|
|
3357
|
+
x("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
2946
3358
|
]), 6));
|
|
2947
3359
|
}
|
|
2948
|
-
}),
|
|
2949
|
-
__name: "QThemeProvider",
|
|
2950
|
-
props: {
|
|
2951
|
-
theme: {}
|
|
2952
|
-
},
|
|
2953
|
-
setup(n) {
|
|
2954
|
-
const t = n;
|
|
2955
|
-
return (e, l) => (i(), f("div", {
|
|
2956
|
-
class: T(["q-theme-provider", `q-theme--${t.theme}`])
|
|
2957
|
-
}, [
|
|
2958
|
-
p(e.$slots, "default")
|
|
2959
|
-
], 2));
|
|
2960
|
-
}
|
|
2961
|
-
}), xo = I(qo), So = ["innerHTML"], Lo = /* @__PURE__ */ C({
|
|
3360
|
+
}), Xl = L(jl), Yl = ["innerHTML"], Zl = /* @__PURE__ */ I({
|
|
2962
3361
|
__name: "QTooltip",
|
|
2963
3362
|
props: /* @__PURE__ */ G({
|
|
2964
|
-
id: {
|
|
2965
|
-
anchor: {
|
|
3363
|
+
id: {},
|
|
3364
|
+
anchor: {},
|
|
2966
3365
|
appearance: { default: "inverted" },
|
|
2967
3366
|
arrow: { type: Boolean, default: !0 },
|
|
2968
3367
|
attach: { default: "body" },
|
|
@@ -2972,22 +3371,22 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2972
3371
|
html: { type: Boolean, default: !0 },
|
|
2973
3372
|
placement: { default: "right" },
|
|
2974
3373
|
text: {},
|
|
2975
|
-
icon: {
|
|
3374
|
+
icon: {},
|
|
2976
3375
|
trigger: { default: "hover" },
|
|
2977
|
-
class: {
|
|
3376
|
+
class: {}
|
|
2978
3377
|
}, {
|
|
2979
3378
|
modelValue: { type: Boolean },
|
|
2980
3379
|
modelModifiers: {}
|
|
2981
3380
|
}),
|
|
2982
3381
|
emits: ["update:modelValue"],
|
|
2983
3382
|
setup(n) {
|
|
2984
|
-
const t = n, e = K(n, "modelValue"),
|
|
2985
|
-
return (
|
|
2986
|
-
p(
|
|
2987
|
-
props: { "aria-describedby":
|
|
3383
|
+
const t = n, e = K(n, "modelValue"), o = de(t.id);
|
|
3384
|
+
return (l, s) => (d(), h(W, null, [
|
|
3385
|
+
p(l.$slots, "anchor", {
|
|
3386
|
+
props: { "aria-describedby": y(o) }
|
|
2988
3387
|
}),
|
|
2989
|
-
|
|
2990
|
-
id:
|
|
3388
|
+
U(y(me), {
|
|
3389
|
+
id: y(o),
|
|
2991
3390
|
"model-value": e.value,
|
|
2992
3391
|
anchor: t.anchor,
|
|
2993
3392
|
role: "tooltip",
|
|
@@ -3002,14 +3401,14 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
3002
3401
|
placement: t.placement,
|
|
3003
3402
|
trigger: t.trigger
|
|
3004
3403
|
}, {
|
|
3005
|
-
default:
|
|
3006
|
-
p(
|
|
3007
|
-
t.icon ? (
|
|
3008
|
-
t.html ? (
|
|
3404
|
+
default: _(() => [
|
|
3405
|
+
p(l.$slots, "default", {}, () => [
|
|
3406
|
+
t.icon ? (d(), C(y(X), se(Z({ key: 0 }, t.icon)), null, 16)) : w("", !0),
|
|
3407
|
+
t.html ? (d(), h("span", {
|
|
3009
3408
|
key: 1,
|
|
3010
3409
|
innerHTML: t.text
|
|
3011
|
-
}, null, 8,
|
|
3012
|
-
|
|
3410
|
+
}, null, 8, Yl)) : (d(), h(W, { key: 2 }, [
|
|
3411
|
+
ie(z(t.text), 1)
|
|
3013
3412
|
], 64))
|
|
3014
3413
|
])
|
|
3015
3414
|
]),
|
|
@@ -3017,130 +3416,84 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
3017
3416
|
}, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
3018
3417
|
], 64));
|
|
3019
3418
|
}
|
|
3020
|
-
}),
|
|
3419
|
+
}), Jl = L(Zl), es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3021
3420
|
__proto__: null,
|
|
3022
|
-
QAccordion:
|
|
3023
|
-
QBadge:
|
|
3024
|
-
QButton:
|
|
3025
|
-
QButtonGroup:
|
|
3026
|
-
QButtonToggle:
|
|
3027
|
-
QCard:
|
|
3028
|
-
QCheckbox:
|
|
3029
|
-
QCollapsible:
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
3059
|
-
return n;
|
|
3060
|
-
}
|
|
3061
|
-
function Mo(n) {
|
|
3062
|
-
const t = Io(), e = {
|
|
3063
|
-
activeTheme: A(n),
|
|
3064
|
-
themes: t.themes
|
|
3065
|
-
};
|
|
3066
|
-
return De(ge, e), e;
|
|
3067
|
-
}
|
|
3068
|
-
function To() {
|
|
3069
|
-
let n = document.getElementById(
|
|
3070
|
-
ge
|
|
3071
|
-
);
|
|
3072
|
-
return n || (n = document.createElement("style"), n.id = ge, document.head.appendChild(n)), n;
|
|
3073
|
-
}
|
|
3074
|
-
function Vo(n) {
|
|
3075
|
-
let t = "";
|
|
3076
|
-
for (const l of n) {
|
|
3077
|
-
t += `.q-theme--${l.name} {
|
|
3078
|
-
`;
|
|
3079
|
-
const o = l.scheme;
|
|
3080
|
-
let s;
|
|
3081
|
-
for (s in o) {
|
|
3082
|
-
const a = o[s];
|
|
3083
|
-
if (a) {
|
|
3084
|
-
t += ` ${Ze(s)}: ${a};
|
|
3085
|
-
`;
|
|
3086
|
-
const d = it(a);
|
|
3087
|
-
t += ` ${Ze(s)}-rgb: ${d.r} ${d.g} ${d.b};
|
|
3088
|
-
`;
|
|
3089
|
-
}
|
|
3090
|
-
}
|
|
3091
|
-
t += `}
|
|
3092
|
-
`;
|
|
3093
|
-
}
|
|
3094
|
-
const e = To();
|
|
3095
|
-
e.textContent = t;
|
|
3096
|
-
}
|
|
3097
|
-
function Ze(n) {
|
|
3098
|
-
return n ? `--q-theme-${lt(n)}` : "";
|
|
3099
|
-
}
|
|
3100
|
-
function Ao(n = {}) {
|
|
3421
|
+
QAccordion: Pt,
|
|
3422
|
+
QBadge: dn,
|
|
3423
|
+
QButton: re,
|
|
3424
|
+
QButtonGroup: vt,
|
|
3425
|
+
QButtonToggle: fn,
|
|
3426
|
+
QCard: yt,
|
|
3427
|
+
QCheckbox: Sn,
|
|
3428
|
+
QCollapsible: On,
|
|
3429
|
+
QColorPicker: Jn,
|
|
3430
|
+
QCombobox: Ko,
|
|
3431
|
+
QDialog: al,
|
|
3432
|
+
QDropdownMenu: ul,
|
|
3433
|
+
QField: Se,
|
|
3434
|
+
QIcon: X,
|
|
3435
|
+
QIconFont: ut,
|
|
3436
|
+
QIconImg: ft,
|
|
3437
|
+
QIconSvg: pt,
|
|
3438
|
+
QInputGroup: yl,
|
|
3439
|
+
QLineLoader: gl,
|
|
3440
|
+
QList: Be,
|
|
3441
|
+
QListItem: bt,
|
|
3442
|
+
QListItemGroup: gt,
|
|
3443
|
+
QOverlay: me,
|
|
3444
|
+
QPopover: xl,
|
|
3445
|
+
QPropertyList: Ol,
|
|
3446
|
+
QPropertyListGroup: It,
|
|
3447
|
+
QPropertyListPanel: Lt,
|
|
3448
|
+
QPropertyListRow: Ct,
|
|
3449
|
+
QSelect: Wl,
|
|
3450
|
+
QSkeletonLoader: Xl,
|
|
3451
|
+
QSpinnerLoader: $e,
|
|
3452
|
+
QTextField: Re,
|
|
3453
|
+
QThemeProvider: kt,
|
|
3454
|
+
QTooltip: Jl
|
|
3455
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3456
|
+
function ts(n = {}) {
|
|
3101
3457
|
return { install: (e) => {
|
|
3102
|
-
const
|
|
3103
|
-
for (const s in
|
|
3104
|
-
e.component(s,
|
|
3105
|
-
const
|
|
3106
|
-
e.provide(
|
|
3458
|
+
const o = n.components || {};
|
|
3459
|
+
for (const s in o)
|
|
3460
|
+
e.component(s, o[s]);
|
|
3461
|
+
const l = n.defaults || {};
|
|
3462
|
+
e.provide(Pe, B(l)), ns(e, n.themes);
|
|
3107
3463
|
} };
|
|
3108
3464
|
}
|
|
3109
|
-
function
|
|
3465
|
+
function ns(n, t) {
|
|
3110
3466
|
const e = [];
|
|
3111
|
-
let
|
|
3467
|
+
let o;
|
|
3112
3468
|
if (!t)
|
|
3113
|
-
|
|
3114
|
-
name:
|
|
3469
|
+
o = "default", e.push({
|
|
3470
|
+
name: o,
|
|
3115
3471
|
mode: "light",
|
|
3116
|
-
scheme:
|
|
3472
|
+
scheme: Qe
|
|
3117
3473
|
});
|
|
3118
3474
|
else
|
|
3119
|
-
for (const
|
|
3120
|
-
const a = { ...
|
|
3475
|
+
for (const l of t.themes) {
|
|
3476
|
+
const a = { ...l.mode === "light" ? Qe : it, ...l.colors };
|
|
3121
3477
|
e.push({
|
|
3122
|
-
name:
|
|
3123
|
-
mode:
|
|
3478
|
+
name: l.name,
|
|
3479
|
+
mode: l.mode,
|
|
3124
3480
|
scheme: a
|
|
3125
|
-
}),
|
|
3481
|
+
}), l.name === t.defaultTheme && (o = l.name);
|
|
3126
3482
|
}
|
|
3127
|
-
if (
|
|
3128
|
-
const o =
|
|
3129
|
-
|
|
3130
|
-
themes: e
|
|
3131
|
-
};
|
|
3132
|
-
Vo(e), Z(o.activeTheme, Qo, { immediate: !0 }), n.provide(ge, o);
|
|
3483
|
+
if (o) {
|
|
3484
|
+
const l = B(o), s = _t(l, e);
|
|
3485
|
+
Co(e), Y(s.name, os, { immediate: !0 }), n.provide(Ke, s);
|
|
3133
3486
|
}
|
|
3134
3487
|
}
|
|
3135
|
-
function
|
|
3136
|
-
const t = document.documentElement,
|
|
3137
|
-
t.className =
|
|
3488
|
+
function os(n) {
|
|
3489
|
+
const t = document.documentElement, o = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
|
|
3490
|
+
t.className = o.join(" "), t.classList.add(`q-theme--${n}`);
|
|
3138
3491
|
}
|
|
3139
|
-
const
|
|
3492
|
+
const as = (n = {}) => ts({ components: es, ...n });
|
|
3140
3493
|
export {
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3494
|
+
es as components,
|
|
3495
|
+
as as createFramework,
|
|
3496
|
+
Io as provideTheme,
|
|
3497
|
+
ss as templates,
|
|
3498
|
+
$t as useTheme
|
|
3146
3499
|
};
|