@quidgest/ui 0.14.11 → 0.14.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +74 -39
- package/dist/ui.esm.js +1731 -1578
- package/dist/ui.js +24 -24
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +170 -163
- package/dist/ui.scss +61 -40
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +2 -2
- package/esm/components/QAccordion/index.d.ts +33 -2
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +7 -7
- package/esm/components/QBadge/index.d.ts +39 -2
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +0 -2
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +18 -18
- package/esm/components/QButton/index.d.ts +36 -2
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +1 -3
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +7 -7
- package/esm/components/QButtonGroup/index.d.ts +17 -2
- package/esm/components/QButtonGroup/index.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +1 -1
- package/esm/components/QButtonToggle/index.d.ts +31 -2
- package/esm/components/QButtonToggle/index.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts +4 -9
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +34 -34
- package/esm/components/QCard/index.d.ts +34 -2
- package/esm/components/QCard/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -3
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +19 -19
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts +1 -3
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -7
- package/esm/components/QCheckbox/index.d.ts +79 -2
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +8 -4
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +2 -3
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +54 -60
- package/esm/components/QCollapsible/index.d.ts +47 -2
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +5 -4
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.js +4 -5
- package/esm/components/QColorPicker/QColorPicker.d.ts +34 -0
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -0
- package/esm/components/QColorPicker/QColorPicker.vue.js +97 -0
- package/esm/components/QColorPicker/QColorPicker.vue2.js +4 -0
- package/esm/components/QColorPicker/index.d.ts +48 -0
- package/esm/components/QColorPicker/index.d.ts.map +1 -0
- package/esm/components/QColorPicker/index.js +6 -0
- package/esm/components/QColorPicker/types.d.ts +44 -0
- package/esm/components/QColorPicker/types.d.ts.map +1 -0
- package/esm/components/QColorPicker/types.js +6 -0
- package/esm/components/QCombobox/QCombobox.d.ts +682 -82
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +156 -174
- package/esm/components/QCombobox/index.d.ts +1395 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +14 -6
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QCombobox/types.js +9 -11
- package/esm/components/QDialog/QDialog.d.ts +3 -7
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +33 -33
- package/esm/components/QDialog/index.d.ts +56 -2
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +5 -3
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +2 -2
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +232 -11
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +5 -5
- package/esm/components/QDropdownMenu/index.d.ts +12 -2
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +5 -4
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +5 -7
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +25 -25
- package/esm/components/QField/index.d.ts +37 -2
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.d.ts +0 -2
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +8 -8
- package/esm/components/QIcon/QIconFont.d.ts +0 -3
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +10 -10
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +4 -4
- package/esm/components/QIcon/QIconSvg.d.ts +0 -2
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +10 -10
- package/esm/components/QIcon/index.d.ts +16 -8
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +0 -5
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
- package/esm/components/QInputGroup/index.d.ts +26 -2
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts +1 -3
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +3 -3
- package/esm/components/QLineLoader/index.d.ts +1 -2
- package/esm/components/QLineLoader/index.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +70 -9
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +21 -21
- package/esm/components/QList/QListItem.d.ts +0 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +20 -20
- package/esm/components/QList/QListItemGroup.d.ts +1 -3
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/QListItemGroup.vue.js +6 -6
- package/esm/components/QList/index.d.ts +189 -6
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +8 -3
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +4 -4
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +125 -115
- package/esm/components/QOverlay/index.d.ts +78 -2
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +0 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +6 -6
- package/esm/components/QPopover/index.d.ts +49 -2
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +8 -5
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +42 -41
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +0 -1
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +9 -9
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +0 -1
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +9 -9
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +15 -18
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +59 -54
- package/esm/components/QPropertyList/index.d.ts +117 -8
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/types.d.ts +8 -4
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +0 -2
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +11 -11
- package/esm/components/QRemoveScrollBar/index.d.ts +23 -2
- package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +309 -29
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +112 -129
- package/esm/components/QSelect/index.d.ts +314 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +13 -5
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSelect/types.js +9 -11
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -5
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +13 -13
- package/esm/components/QSkeletonLoader/index.d.ts +1 -2
- package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +0 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +8 -8
- package/esm/components/QSpinnerLoader/index.d.ts +3 -2
- package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +79 -22
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +18 -18
- package/esm/components/QTextField/index.d.ts +122 -2
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +9 -8
- package/esm/components/QThemeProvider/index.d.ts +17 -2
- package/esm/components/QThemeProvider/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/types.d.ts +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +0 -4
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +17 -17
- package/esm/components/QTooltip/index.d.ts +62 -2
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.d.ts +14 -0
- package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -0
- package/esm/components/__internal__/QChevron/QChevron.vue.js +23 -0
- package/esm/components/__internal__/QChevron/QChevron.vue2.js +4 -0
- package/esm/components/__internal__/QChevron/index.d.ts +13 -0
- package/esm/components/__internal__/QChevron/index.d.ts.map +1 -0
- package/esm/components/__internal__/QChevron/index.js +6 -0
- package/esm/components/__internal__/QChevron/types.d.ts +16 -0
- package/esm/components/__internal__/QChevron/types.d.ts.map +1 -0
- package/esm/components/__internal__/QChevron/types.js +8 -0
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts +11 -0
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -0
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +39 -0
- package/esm/components/__internal__/QClearButton/QClearButton.vue2.js +4 -0
- package/esm/components/__internal__/QClearButton/index.d.ts +12 -0
- package/esm/components/__internal__/QClearButton/index.d.ts.map +1 -0
- package/esm/components/__internal__/QClearButton/index.js +6 -0
- package/esm/components/__internal__/QClearButton/types.d.ts +23 -0
- package/esm/components/__internal__/QClearButton/types.d.ts.map +1 -0
- package/esm/components/__internal__/QClearButton/types.js +11 -0
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +48 -46
- package/esm/composables/group.js +5 -5
- package/esm/composables/theme.d.ts +54 -6
- package/esm/composables/theme.d.ts.map +1 -1
- package/esm/composables/theme.js +10 -12
- package/esm/framework.d.ts +17 -20
- package/esm/framework.d.ts.map +1 -1
- package/esm/framework.js +22 -25
- package/esm/index.d.ts +1 -0
- package/esm/templates/theme.js +16 -16
- package/esm/utils/color.d.ts +2 -1
- package/esm/utils/color.d.ts.map +1 -1
- package/esm/utils/color.js +19 -19
- package/esm/utils/setupPropsProxy.d.ts +22 -9
- package/esm/utils/setupPropsProxy.d.ts.map +1 -1
- package/esm/utils/setupPropsProxy.js +22 -22
- package/esm/utils/theme.d.ts +13 -1
- package/esm/utils/theme.d.ts.map +1 -1
- package/esm/utils/theme.js +40 -24
- package/package.json +18 -22
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 De = {
|
|
|
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 De = {
|
|
|
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
97
|
const Pe = "q-defaults";
|
|
98
|
-
function
|
|
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 St = { class: "q-accordion" }, Bt = /* @__PURE__ */ S({
|
|
|
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
|
-
const e =
|
|
163
|
-
return
|
|
164
|
-
p(
|
|
162
|
+
const e = K(n, "modelValue");
|
|
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 (
|
|
204
|
-
class:
|
|
205
|
-
style:
|
|
203
|
+
return (o, l) => (d(), h("div", {
|
|
204
|
+
class: T(["q-spinner-loader", t.class]),
|
|
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 Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
|
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 Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
|
245
245
|
e.class
|
|
246
246
|
];
|
|
247
247
|
});
|
|
248
|
-
return (
|
|
248
|
+
return (r, i) => (d(), h("button", {
|
|
249
249
|
type: "button",
|
|
250
|
-
class:
|
|
251
|
-
disabled:
|
|
252
|
-
onClick:
|
|
250
|
+
class: T(a.value),
|
|
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 (
|
|
290
|
-
class:
|
|
289
|
+
return (o, l) => (d(), C(Ie(e.value), {
|
|
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:
|
|
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 Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
|
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
|
-
class:
|
|
327
|
-
style:
|
|
328
|
-
}, null, 14,
|
|
326
|
+
class: T(["q-icon", "q-icon__img", t.class]),
|
|
327
|
+
style: ue(e.value)
|
|
328
|
+
}, null, 14, Xt));
|
|
329
329
|
}
|
|
330
|
-
}), _e = {},
|
|
330
|
+
}), _e = {}, Zt = I({
|
|
331
331
|
name: "InlineSvg",
|
|
332
332
|
emits: {
|
|
333
333
|
loaded: (n) => typeof n == "object",
|
|
@@ -338,9 +338,9 @@ const Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
|
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 Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
|
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,7 +408,7 @@ const Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
|
408
408
|
*/
|
|
409
409
|
async getSource(n) {
|
|
410
410
|
try {
|
|
411
|
-
_e[n] || (_e[n] =
|
|
411
|
+
_e[n] || (_e[n] = en(this.download(n))), this.svgElSource && _e[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
412
412
|
const t = await _e[n];
|
|
413
413
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
414
414
|
} catch (t) {
|
|
@@ -435,96 +435,96 @@ const Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
|
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 (
|
|
478
|
-
class:
|
|
477
|
+
return (r, i) => (d(), C(y(Zt), {
|
|
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 i = (
|
|
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 c =
|
|
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
|
|
527
|
+
case o:
|
|
528
528
|
a = (t - e) / c + 4;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
@@ -532,88 +532,88 @@ function Wt(n) {
|
|
|
532
532
|
}
|
|
533
533
|
return {
|
|
534
534
|
h: Math.round(a * 360),
|
|
535
|
-
s: Math.round(
|
|
535
|
+
s: Math.round(r * 100),
|
|
536
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 i =
|
|
555
|
+
), s = g(() => {
|
|
556
|
+
const i = l.value ? `q-badge--${e.color}` : void 0;
|
|
557
557
|
return ["q-badge", `q-badge--${e.variant}`, i, { "q-badge--pill": e.pill }];
|
|
558
|
-
}), a =
|
|
558
|
+
}), a = g(() => {
|
|
559
559
|
let i, c;
|
|
560
|
-
if (!
|
|
560
|
+
if (!l.value)
|
|
561
561
|
if (i = e.color, e.variant === "tonal")
|
|
562
562
|
c = e.color;
|
|
563
563
|
else {
|
|
564
|
-
const
|
|
565
|
-
c =
|
|
564
|
+
const b = ht(i), m = ln(b);
|
|
565
|
+
c = sn(m.l);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
568
|
"--q-badge-color": i,
|
|
569
569
|
"--q-badge-text-color": c
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
|
-
function
|
|
573
|
-
|
|
572
|
+
function r() {
|
|
573
|
+
o("click:remove");
|
|
574
574
|
}
|
|
575
|
-
return (i, c) => (
|
|
576
|
-
class:
|
|
575
|
+
return (i, c) => (d(), h("span", {
|
|
576
|
+
class: T(s.value),
|
|
577
577
|
role: "presentation",
|
|
578
|
-
style:
|
|
578
|
+
style: ue(a.value)
|
|
579
579
|
}, [
|
|
580
|
-
c[0] || (c[0] =
|
|
581
|
-
|
|
580
|
+
c[0] || (c[0] = x("div", { class: "q-badge__underlay" }, null, -1)),
|
|
581
|
+
x("div", an, [
|
|
582
582
|
p(i.$slots, "default"),
|
|
583
|
-
e.removable ? (
|
|
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
590
|
default: _(() => [
|
|
591
|
-
|
|
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,
|
|
616
|
-
class:
|
|
615
|
+
}), (e, o) => (d(), h("div", {
|
|
616
|
+
class: T([
|
|
617
617
|
"q-btn-group",
|
|
618
618
|
{
|
|
619
619
|
"q-btn-group--elevated": t.elevated
|
|
@@ -624,7 +624,7 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ S({
|
|
|
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: {},
|
|
@@ -639,30 +639,30 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ S({
|
|
|
639
639
|
}),
|
|
640
640
|
emits: ["update:modelValue"],
|
|
641
641
|
setup(n) {
|
|
642
|
-
const t = n, e =
|
|
643
|
-
function l
|
|
644
|
-
e.value ===
|
|
642
|
+
const t = n, e = K(n, "modelValue");
|
|
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
|
-
class:
|
|
648
|
+
class: T(t.class),
|
|
649
649
|
disabled: t.disabled,
|
|
650
650
|
borderless: t.borderless,
|
|
651
651
|
elevated: t.elevated,
|
|
652
652
|
role: "listbox"
|
|
653
653
|
}, {
|
|
654
654
|
default: _(() => [
|
|
655
|
-
(
|
|
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
664
|
default: _(() => [
|
|
665
|
-
p(
|
|
665
|
+
p(l.$slots, a.key)
|
|
666
666
|
]),
|
|
667
667
|
_: 2
|
|
668
668
|
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
|
|
@@ -670,47 +670,47 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ S({
|
|
|
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 i = t.width ? `q-card--${t.width}` : void 0, c = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0,
|
|
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
711
|
i,
|
|
712
712
|
c,
|
|
713
|
-
|
|
713
|
+
b,
|
|
714
714
|
{
|
|
715
715
|
"q-card--clickable": s.value,
|
|
716
716
|
"q-card--loading": t.loading,
|
|
@@ -718,94 +718,94 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
718
718
|
"q-card--disabled": t.disabled
|
|
719
719
|
}
|
|
720
720
|
];
|
|
721
|
-
}), s =
|
|
721
|
+
}), s = g(() => !!e.onClick || t.href), a = g(() => t.disabled || t.loading), r = (i) => {
|
|
722
722
|
a.value && i.stopImmediatePropagation();
|
|
723
723
|
};
|
|
724
|
-
return (i, c) => (
|
|
725
|
-
id:
|
|
726
|
-
class:
|
|
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
730
|
default: _(() => [
|
|
731
|
-
t.loading ? (
|
|
731
|
+
t.loading ? (d(), C(y($e), {
|
|
732
732
|
key: 0,
|
|
733
733
|
size: 36
|
|
734
|
-
})) : (
|
|
735
|
-
|
|
734
|
+
})) : (d(), h(W, { key: 1 }, [
|
|
735
|
+
x("div", mn, [
|
|
736
736
|
p(i.$slots, "header", {}, () => [
|
|
737
737
|
p(i.$slots, "header.prepend"),
|
|
738
|
-
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (
|
|
738
|
+
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (d(), h("div", hn, [
|
|
739
739
|
p(i.$slots, "header.content.prepend"),
|
|
740
|
-
|
|
741
|
-
i.$slots.title || t.title ? (
|
|
742
|
-
i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (
|
|
743
|
-
|
|
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
|
-
i.$slots.subtitle || t.subtitle ? (
|
|
747
|
-
i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (
|
|
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
752
|
p(i.$slots, "header.content.append")
|
|
753
|
-
])) :
|
|
753
|
+
])) : w("", !0),
|
|
754
754
|
p(i.$slots, "header.append")
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
|
-
|
|
757
|
+
x("div", gn, [
|
|
758
758
|
p(i.$slots, "default")
|
|
759
759
|
]),
|
|
760
|
-
i.$slots.footer ? (
|
|
760
|
+
i.$slots.footer ? (d(), h("div", _n, [
|
|
761
761
|
p(i.$slots, "footer")
|
|
762
|
-
])) :
|
|
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 =
|
|
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,14 +820,14 @@ 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:
|
|
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
833
|
fn: _(() => [
|
|
@@ -835,27 +835,27 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
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
861
|
fn: _(() => [
|
|
@@ -863,35 +863,53 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
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,76 +917,82 @@ 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 =
|
|
910
|
-
const c = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0,
|
|
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
942
|
]), i = () => {
|
|
926
|
-
e.value = !e.value,
|
|
943
|
+
e.value = !e.value, l == null || l.toggle();
|
|
927
944
|
};
|
|
928
|
-
return
|
|
929
|
-
() =>
|
|
930
|
-
() => e.value =
|
|
931
|
-
), (c,
|
|
932
|
-
id:
|
|
933
|
-
class:
|
|
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),
|
|
950
|
+
class: T(a.value),
|
|
934
951
|
width: s.value
|
|
935
952
|
}, {
|
|
936
953
|
header: _(() => [
|
|
937
|
-
c.title ? (
|
|
938
|
-
|
|
954
|
+
c.title ? (d(), h("div", Tn, [
|
|
955
|
+
U(y(re), {
|
|
939
956
|
"b-style": "tertiary",
|
|
940
957
|
class: "q-collapsible__btn",
|
|
941
958
|
onClick: i
|
|
942
959
|
}, {
|
|
943
960
|
default: _(() => [
|
|
944
|
-
|
|
945
|
-
c.iconRight ?
|
|
946
|
-
|
|
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
968
|
p(c.$slots, "title.prepend"),
|
|
949
|
-
|
|
950
|
-
t.required ? (
|
|
969
|
+
x("h4", En, z(c.title), 1),
|
|
970
|
+
t.required ? (d(), h("span", Dn, " * ")) : w("", !0),
|
|
951
971
|
p(c.$slots, "title.append"),
|
|
952
972
|
c.iconRight ? p(c.$slots, "icon", { key: 2 }, () => [
|
|
953
|
-
|
|
954
|
-
|
|
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
|
-
c.$slots.subtitle || c.subtitle ? (
|
|
980
|
+
c.$slots.subtitle || c.subtitle ? (d(), h("div", Qn, [
|
|
957
981
|
p(c.$slots, "subtitle", {}, () => [
|
|
958
|
-
|
|
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
990
|
default: _(() => [
|
|
967
|
-
|
|
968
|
-
class:
|
|
991
|
+
x("div", {
|
|
992
|
+
class: T(r.value)
|
|
969
993
|
}, [
|
|
970
|
-
|
|
971
|
-
|
|
994
|
+
x("div", zn, [
|
|
995
|
+
x("div", Fn, [
|
|
972
996
|
p(c.$slots, "default")
|
|
973
997
|
])
|
|
974
998
|
])
|
|
@@ -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,158 +1282,158 @@ 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 c(
|
|
1003
|
-
|
|
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;
|
|
1004
1290
|
}
|
|
1005
|
-
function
|
|
1006
|
-
|
|
1291
|
+
function b() {
|
|
1292
|
+
l.value = !0;
|
|
1007
1293
|
}
|
|
1008
|
-
function
|
|
1009
|
-
|
|
1294
|
+
function m() {
|
|
1295
|
+
l.value = !1;
|
|
1010
1296
|
}
|
|
1011
|
-
function
|
|
1012
|
-
var
|
|
1013
|
-
if ((
|
|
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 q =
|
|
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
|
-
(
|
|
1336
|
+
function $(k, u = !1) {
|
|
1337
|
+
var O;
|
|
1338
|
+
(O = V()[k]) == null || O.focus({ preventScroll: u });
|
|
1053
1339
|
}
|
|
1054
|
-
function
|
|
1055
|
-
var
|
|
1056
|
-
const
|
|
1057
|
-
return
|
|
1340
|
+
function V() {
|
|
1341
|
+
var u;
|
|
1342
|
+
const k = (u = r.value) == null ? void 0 : u.querySelectorAll("li");
|
|
1343
|
+
return k ? Array.from(k) : [];
|
|
1058
1344
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1345
|
+
function D(k) {
|
|
1346
|
+
return V()[k];
|
|
1061
1347
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1348
|
+
function Q() {
|
|
1349
|
+
return V().indexOf(document.activeElement);
|
|
1064
1350
|
}
|
|
1065
|
-
function
|
|
1066
|
-
const
|
|
1067
|
-
return
|
|
1351
|
+
function j() {
|
|
1352
|
+
const k = V(), u = k.find((q) => ae(q));
|
|
1353
|
+
return u ? k.indexOf(u) : -1;
|
|
1068
1354
|
}
|
|
1069
1355
|
function te() {
|
|
1070
|
-
const
|
|
1071
|
-
return
|
|
1072
|
-
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1075
|
-
}
|
|
1076
|
-
function E(
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1079
|
-
}
|
|
1080
|
-
function
|
|
1081
|
-
const q =
|
|
1082
|
-
if (
|
|
1083
|
-
return
|
|
1084
|
-
let
|
|
1085
|
-
for (; !
|
|
1086
|
-
if (
|
|
1087
|
-
return
|
|
1088
|
-
|
|
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:
|
|
1385
|
+
focusItem: $,
|
|
1386
|
+
getItem: D,
|
|
1387
|
+
getAdjacentItemIndex: R,
|
|
1388
|
+
getFirstFocusableItemIndex: j,
|
|
1103
1389
|
getLastFocusableItemIndex: te
|
|
1104
|
-
}), (
|
|
1390
|
+
}), (k, u) => (d(), C(Ie(s.value), {
|
|
1105
1391
|
ref_key: "listRef",
|
|
1106
|
-
ref:
|
|
1107
|
-
class:
|
|
1392
|
+
ref: r,
|
|
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
1401
|
default: _(() => [
|
|
1116
|
-
(
|
|
1402
|
+
(d(!0), h(W, null, ye(a.value, (q, O) => (d(), C(y(gt), {
|
|
1117
1403
|
id: q.id,
|
|
1118
1404
|
key: q.id,
|
|
1119
1405
|
title: a.value.length === 1 ? void 0 : q.title
|
|
1120
1406
|
}, {
|
|
1121
1407
|
default: _(() => [
|
|
1122
|
-
(
|
|
1123
|
-
key:
|
|
1408
|
+
(d(!0), h(W, null, ye(ce(q.id), (H, J) => (d(), C(y(bt), {
|
|
1409
|
+
key: H[e.itemValue],
|
|
1124
1410
|
ref_for: !0,
|
|
1125
1411
|
ref_key: "listItemsRef",
|
|
1126
1412
|
ref: i,
|
|
1127
|
-
value:
|
|
1128
|
-
label:
|
|
1129
|
-
description:
|
|
1130
|
-
icon:
|
|
1131
|
-
disabled: e.disabled || q.disabled ||
|
|
1132
|
-
highlighted: e.highlighted ===
|
|
1133
|
-
selected:
|
|
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],
|
|
1134
1420
|
onSelect: c
|
|
1135
1421
|
}, {
|
|
1136
1422
|
append: _(() => {
|
|
1137
|
-
var
|
|
1423
|
+
var ee, oe;
|
|
1138
1424
|
return [
|
|
1139
|
-
p(
|
|
1140
|
-
item:
|
|
1141
|
-
element: (
|
|
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
|
|
1142
1428
|
})
|
|
1143
1429
|
];
|
|
1144
1430
|
}),
|
|
1145
1431
|
default: _(() => {
|
|
1146
|
-
var
|
|
1432
|
+
var ee, oe;
|
|
1147
1433
|
return [
|
|
1148
|
-
p(
|
|
1149
|
-
item:
|
|
1150
|
-
element: (
|
|
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
|
|
1151
1437
|
})
|
|
1152
1438
|
];
|
|
1153
1439
|
}),
|
|
@@ -1160,43 +1446,43 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1160
1446
|
_: 3
|
|
1161
1447
|
}, 40, ["class", "tabindex"]));
|
|
1162
1448
|
}
|
|
1163
|
-
}),
|
|
1449
|
+
}), oo = {
|
|
1164
1450
|
check: {
|
|
1165
1451
|
icon: "check"
|
|
1166
1452
|
},
|
|
1167
1453
|
description: {
|
|
1168
1454
|
icon: "information-outline"
|
|
1169
1455
|
}
|
|
1170
|
-
},
|
|
1456
|
+
}, lo = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], so = { class: "q-list-item__container" }, ao = { class: "q-list-item__content" }, io = {
|
|
1171
1457
|
key: 0,
|
|
1172
1458
|
class: "q-list-item__description"
|
|
1173
|
-
},
|
|
1459
|
+
}, ro = { class: "q-list-item__check-container" }, co = /* @__PURE__ */ I({
|
|
1174
1460
|
__name: "QListItem",
|
|
1175
1461
|
props: {
|
|
1176
1462
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
1177
1463
|
label: {},
|
|
1178
|
-
icon: {
|
|
1464
|
+
icon: {},
|
|
1179
1465
|
selected: { type: Boolean },
|
|
1180
1466
|
highlighted: { type: Boolean },
|
|
1181
1467
|
disabled: { type: Boolean },
|
|
1182
|
-
description: {
|
|
1183
|
-
icons: { default: () =>
|
|
1468
|
+
description: {},
|
|
1469
|
+
icons: { default: () => oo }
|
|
1184
1470
|
},
|
|
1185
1471
|
emits: ["select"],
|
|
1186
1472
|
setup(n, { emit: t }) {
|
|
1187
|
-
const e = n,
|
|
1473
|
+
const e = n, o = t, l = de();
|
|
1188
1474
|
function s() {
|
|
1189
|
-
e.disabled ||
|
|
1475
|
+
e.disabled || o("select", e.value);
|
|
1190
1476
|
}
|
|
1191
|
-
function a(
|
|
1192
|
-
|
|
1477
|
+
function a(r) {
|
|
1478
|
+
r.key === "Tab" && s(), (r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
1193
1479
|
}
|
|
1194
|
-
return (
|
|
1195
|
-
id:
|
|
1480
|
+
return (r, i) => (d(), h("li", {
|
|
1481
|
+
id: y(l),
|
|
1196
1482
|
"data-key": e.value,
|
|
1197
1483
|
role: "option",
|
|
1198
1484
|
tabindex: e.disabled ? void 0 : -2,
|
|
1199
|
-
class:
|
|
1485
|
+
class: T([
|
|
1200
1486
|
"q-list-item",
|
|
1201
1487
|
{
|
|
1202
1488
|
"q-list-item--disabled": e.disabled,
|
|
@@ -1207,308 +1493,378 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1207
1493
|
"aria-label": e.label,
|
|
1208
1494
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
1209
1495
|
onKeydown: a,
|
|
1210
|
-
onClick:
|
|
1496
|
+
onClick: ne(s, ["stop", "prevent"])
|
|
1211
1497
|
}, [
|
|
1212
|
-
p(
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
p(
|
|
1216
|
-
e.icon ? (
|
|
1217
|
-
|
|
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)
|
|
1218
1504
|
])
|
|
1219
1505
|
]),
|
|
1220
|
-
e.description ? (
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
])) :
|
|
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)
|
|
1224
1510
|
]),
|
|
1225
|
-
p(
|
|
1226
|
-
|
|
1227
|
-
e.selected ? (
|
|
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)
|
|
1228
1514
|
])
|
|
1229
|
-
], 42,
|
|
1515
|
+
], 42, lo));
|
|
1230
1516
|
}
|
|
1231
|
-
}),
|
|
1517
|
+
}), uo = ["data-key", "aria-labelledby"], fo = ["id"], po = /* @__PURE__ */ I({
|
|
1232
1518
|
__name: "QListItemGroup",
|
|
1233
1519
|
props: {
|
|
1234
1520
|
id: {},
|
|
1235
|
-
title: {
|
|
1521
|
+
title: {}
|
|
1236
1522
|
},
|
|
1237
1523
|
setup(n) {
|
|
1238
|
-
const t = n, e =
|
|
1239
|
-
return (
|
|
1524
|
+
const t = n, e = de();
|
|
1525
|
+
return (o, l) => (d(), h("ul", {
|
|
1240
1526
|
class: "q-list-item-group",
|
|
1241
1527
|
role: "group",
|
|
1242
1528
|
"data-key": t.id,
|
|
1243
|
-
"aria-labelledby": t.title ?
|
|
1529
|
+
"aria-labelledby": t.title ? y(e) : void 0
|
|
1244
1530
|
}, [
|
|
1245
|
-
t.title ? (
|
|
1531
|
+
t.title ? (d(), h("li", {
|
|
1246
1532
|
key: 0,
|
|
1247
|
-
id:
|
|
1533
|
+
id: y(e),
|
|
1248
1534
|
class: "q-list-item-group__title",
|
|
1249
1535
|
role: "presentation"
|
|
1250
|
-
},
|
|
1251
|
-
p(
|
|
1252
|
-
], 8,
|
|
1536
|
+
}, z(t.title), 9, fo)) : w("", !0),
|
|
1537
|
+
p(o.$slots, "default")
|
|
1538
|
+
], 8, uo));
|
|
1253
1539
|
}
|
|
1254
|
-
}),
|
|
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 = {
|
|
1255
1541
|
left: 0,
|
|
1256
1542
|
top: 0,
|
|
1257
1543
|
right: 0,
|
|
1258
1544
|
gap: 0
|
|
1259
|
-
},
|
|
1260
|
-
const t = window.getComputedStyle(document.body), e = t[n === "padding" ? "paddingLeft" : "marginLeft"],
|
|
1261
|
-
return [
|
|
1262
|
-
},
|
|
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") => {
|
|
1263
1549
|
if (typeof window > "u")
|
|
1264
|
-
return
|
|
1265
|
-
const t =
|
|
1550
|
+
return vo;
|
|
1551
|
+
const t = yo(n), e = document.documentElement.clientWidth, o = window.innerWidth;
|
|
1266
1552
|
return {
|
|
1267
1553
|
left: t[0],
|
|
1268
1554
|
top: t[1],
|
|
1269
1555
|
right: t[2],
|
|
1270
|
-
gap: Math.max(0,
|
|
1556
|
+
gap: Math.max(0, o - e + t[2] - t[0])
|
|
1271
1557
|
};
|
|
1272
1558
|
};
|
|
1273
|
-
function
|
|
1559
|
+
function go() {
|
|
1274
1560
|
return document ? document.createElement("style") : null;
|
|
1275
1561
|
}
|
|
1276
|
-
function
|
|
1562
|
+
function _o(n, t) {
|
|
1277
1563
|
n.appendChild(document.createTextNode(t));
|
|
1278
1564
|
}
|
|
1279
|
-
function
|
|
1565
|
+
function $o(n) {
|
|
1280
1566
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(n);
|
|
1281
1567
|
}
|
|
1282
|
-
const
|
|
1568
|
+
const ko = () => {
|
|
1283
1569
|
let n = 0, t = null;
|
|
1284
1570
|
return {
|
|
1285
1571
|
add: (e) => {
|
|
1286
|
-
n === 0 && (t =
|
|
1572
|
+
n === 0 && (t = go()) && (_o(t, e), $o(t)), n++;
|
|
1287
1573
|
},
|
|
1288
1574
|
remove: () => {
|
|
1289
1575
|
var e;
|
|
1290
1576
|
n--, !n && t && ((e = t.parentNode) == null || e.removeChild(t), t = null);
|
|
1291
1577
|
}
|
|
1292
1578
|
};
|
|
1293
|
-
},
|
|
1579
|
+
}, wo = /* @__PURE__ */ I({
|
|
1294
1580
|
__name: "QRemoveScrollBar",
|
|
1295
1581
|
props: {
|
|
1296
|
-
noRelative: { type: Boolean
|
|
1297
|
-
noImportant: { type: Boolean
|
|
1582
|
+
noRelative: { type: Boolean },
|
|
1583
|
+
noImportant: { type: Boolean },
|
|
1298
1584
|
gapMode: { default: "margin" }
|
|
1299
1585
|
},
|
|
1300
1586
|
setup(n) {
|
|
1301
|
-
const t = n, e =
|
|
1302
|
-
const s = parseInt(document.body.getAttribute(
|
|
1587
|
+
const t = n, e = ko(), o = () => {
|
|
1588
|
+
const s = parseInt(document.body.getAttribute(ve) || "0", 10);
|
|
1303
1589
|
return isFinite(s) ? s : 0;
|
|
1304
|
-
},
|
|
1305
|
-
.${
|
|
1306
|
-
overflow: hidden ${
|
|
1307
|
-
padding-right: ${i}px ${
|
|
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};
|
|
1308
1594
|
}
|
|
1309
|
-
body[${
|
|
1310
|
-
overflow: hidden ${
|
|
1595
|
+
body[${ve}] {
|
|
1596
|
+
overflow: hidden ${m};
|
|
1311
1597
|
overscroll-behavior: contain;
|
|
1312
1598
|
${[
|
|
1313
|
-
c && `position: relative ${
|
|
1314
|
-
|
|
1599
|
+
c && `position: relative ${m};`,
|
|
1600
|
+
b === "margin" && `
|
|
1315
1601
|
padding-left: ${s}px;
|
|
1316
1602
|
padding-top: ${a}px;
|
|
1317
|
-
padding-right: ${
|
|
1603
|
+
padding-right: ${r}px;
|
|
1318
1604
|
margin-left:0;
|
|
1319
1605
|
margin-top:0;
|
|
1320
|
-
margin-right: ${i}px ${
|
|
1606
|
+
margin-right: ${i}px ${m};
|
|
1321
1607
|
`,
|
|
1322
|
-
|
|
1608
|
+
b === "padding" && `padding-right: ${i}px ${m};`
|
|
1323
1609
|
].filter(Boolean).join("")}
|
|
1324
1610
|
}
|
|
1325
1611
|
|
|
1326
|
-
.${
|
|
1327
|
-
right: ${i}px ${
|
|
1612
|
+
.${Te} {
|
|
1613
|
+
right: ${i}px ${m};
|
|
1328
1614
|
}
|
|
1329
1615
|
|
|
1330
|
-
.${
|
|
1331
|
-
margin-right: ${i}px ${
|
|
1616
|
+
.${Ae} {
|
|
1617
|
+
margin-right: ${i}px ${m};
|
|
1332
1618
|
}
|
|
1333
1619
|
|
|
1334
|
-
.${
|
|
1335
|
-
right: 0 ${
|
|
1620
|
+
.${Te} .${Te} {
|
|
1621
|
+
right: 0 ${m};
|
|
1336
1622
|
}
|
|
1337
1623
|
|
|
1338
|
-
.${
|
|
1339
|
-
margin-right: 0 ${
|
|
1624
|
+
.${Ae} .${Ae} {
|
|
1625
|
+
margin-right: 0 ${m};
|
|
1340
1626
|
}
|
|
1341
1627
|
|
|
1342
|
-
body[${
|
|
1343
|
-
${
|
|
1628
|
+
body[${ve}] {
|
|
1629
|
+
${ho}: ${i}px;
|
|
1344
1630
|
}
|
|
1345
1631
|
`;
|
|
1346
1632
|
return Oe(() => {
|
|
1347
|
-
document.body.setAttribute(
|
|
1348
|
-
const s =
|
|
1633
|
+
document.body.setAttribute(ve, (o() + 1).toString());
|
|
1634
|
+
const s = bo(t.gapMode);
|
|
1349
1635
|
e.add(
|
|
1350
|
-
|
|
1636
|
+
l(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
|
|
1351
1637
|
);
|
|
1352
|
-
}),
|
|
1353
|
-
const s =
|
|
1354
|
-
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();
|
|
1355
1641
|
}), (s, a) => p(s.$slots, "default");
|
|
1356
1642
|
}
|
|
1357
|
-
}),
|
|
1358
|
-
function
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
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) {
|
|
1362
1718
|
if (!c)
|
|
1363
1719
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
1364
|
-
|
|
1720
|
+
$ = Eo(N, r, i, c, b);
|
|
1365
1721
|
}
|
|
1366
|
-
return { overlayCoords:
|
|
1722
|
+
return { overlayCoords: N, arrowCoords: $, placement: b };
|
|
1367
1723
|
}
|
|
1368
|
-
function
|
|
1369
|
-
const
|
|
1370
|
-
if (
|
|
1371
|
-
const s = be(e),
|
|
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 = {
|
|
1372
1728
|
top: "bottom",
|
|
1373
1729
|
bottom: "top",
|
|
1374
1730
|
left: "right",
|
|
1375
1731
|
right: "left"
|
|
1376
|
-
}[s], i =
|
|
1732
|
+
}[s], i = ot(
|
|
1377
1733
|
n,
|
|
1378
1734
|
t,
|
|
1379
|
-
|
|
1380
|
-
|
|
1735
|
+
r,
|
|
1736
|
+
o
|
|
1381
1737
|
);
|
|
1382
|
-
if (
|
|
1738
|
+
if (lt(i))
|
|
1383
1739
|
return e;
|
|
1384
|
-
const c =
|
|
1385
|
-
return c ? `${
|
|
1740
|
+
const c = Fo(e);
|
|
1741
|
+
return c ? `${r}-${c}` : r;
|
|
1386
1742
|
}
|
|
1387
1743
|
return e;
|
|
1388
1744
|
}
|
|
1389
|
-
function
|
|
1390
|
-
const
|
|
1391
|
-
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;
|
|
1392
1748
|
}
|
|
1393
|
-
function
|
|
1394
|
-
const
|
|
1749
|
+
function To(n, t, e) {
|
|
1750
|
+
const o = be(t);
|
|
1395
1751
|
return {
|
|
1396
|
-
x: n.x + (
|
|
1397
|
-
y: n.y + (
|
|
1752
|
+
x: n.x + (o === "left" ? -e : o === "right" ? e : 0),
|
|
1753
|
+
y: n.y + (o === "top" ? -e : o === "bottom" ? e : 0)
|
|
1398
1754
|
};
|
|
1399
1755
|
}
|
|
1400
|
-
function
|
|
1401
|
-
const
|
|
1756
|
+
function Ao(n, t, e) {
|
|
1757
|
+
const o = be(t);
|
|
1402
1758
|
return {
|
|
1403
|
-
x: n.x + (
|
|
1404
|
-
y: n.y + (
|
|
1759
|
+
x: n.x + (o === "top" || o === "bottom" ? e : 0),
|
|
1760
|
+
y: n.y + (o === "right" || o === "left" ? e : 0)
|
|
1405
1761
|
};
|
|
1406
1762
|
}
|
|
1407
|
-
function
|
|
1408
|
-
if (
|
|
1409
|
-
const a = t.top + t.height / 2,
|
|
1410
|
-
if (c > 0 && c < e.height -
|
|
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)
|
|
1411
1767
|
return {
|
|
1412
1768
|
y: c
|
|
1413
1769
|
};
|
|
1414
1770
|
} else {
|
|
1415
|
-
const a = t.left + t.width / 2,
|
|
1416
|
-
if (c > 0 && c < e.width -
|
|
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)
|
|
1417
1773
|
return {
|
|
1418
1774
|
x: c
|
|
1419
1775
|
};
|
|
1420
1776
|
}
|
|
1421
1777
|
}
|
|
1422
|
-
function
|
|
1423
|
-
const [
|
|
1424
|
-
let
|
|
1425
|
-
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) {
|
|
1426
1782
|
case "top":
|
|
1427
|
-
|
|
1783
|
+
r = { x: s, y: n.y - t.height };
|
|
1428
1784
|
break;
|
|
1429
1785
|
case "bottom":
|
|
1430
|
-
|
|
1786
|
+
r = { x: s, y: n.y + n.height };
|
|
1431
1787
|
break;
|
|
1432
1788
|
case "left":
|
|
1433
|
-
|
|
1789
|
+
r = { x: n.x - t.width, y: a };
|
|
1434
1790
|
break;
|
|
1435
1791
|
case "right":
|
|
1436
|
-
|
|
1792
|
+
r = { x: n.x + n.width, y: a };
|
|
1437
1793
|
break;
|
|
1438
1794
|
default:
|
|
1439
1795
|
throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
|
|
1440
1796
|
}
|
|
1441
|
-
if (!
|
|
1442
|
-
return
|
|
1443
|
-
const c =
|
|
1444
|
-
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) {
|
|
1445
1801
|
case "start":
|
|
1446
|
-
|
|
1802
|
+
r[b] -= m;
|
|
1447
1803
|
break;
|
|
1448
1804
|
case "end":
|
|
1449
|
-
|
|
1805
|
+
r[b] += m;
|
|
1450
1806
|
break;
|
|
1451
1807
|
default:
|
|
1452
|
-
throw new Error(`[Quidgest UI] Invalid alignment value: ${
|
|
1808
|
+
throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
|
|
1453
1809
|
}
|
|
1454
|
-
return
|
|
1810
|
+
return r;
|
|
1455
1811
|
}
|
|
1456
|
-
function
|
|
1457
|
-
const
|
|
1812
|
+
function ot(n, t, e, o) {
|
|
1813
|
+
const l = be(e);
|
|
1458
1814
|
let s = 0;
|
|
1459
|
-
switch (
|
|
1815
|
+
switch (l) {
|
|
1460
1816
|
case "top":
|
|
1461
|
-
s = n.top - (t.height +
|
|
1817
|
+
s = n.top - (t.height + o);
|
|
1462
1818
|
break;
|
|
1463
1819
|
case "bottom":
|
|
1464
|
-
s = window.innerHeight - n.bottom - (t.height +
|
|
1820
|
+
s = window.innerHeight - n.bottom - (t.height + o);
|
|
1465
1821
|
break;
|
|
1466
1822
|
case "left":
|
|
1467
|
-
s = n.left - (t.width +
|
|
1823
|
+
s = n.left - (t.width + o);
|
|
1468
1824
|
break;
|
|
1469
1825
|
case "right":
|
|
1470
|
-
s = window.innerWidth - n.right - (t.width +
|
|
1826
|
+
s = window.innerWidth - n.right - (t.width + o);
|
|
1471
1827
|
break;
|
|
1472
1828
|
default:
|
|
1473
|
-
throw new Error(`[Quidgest UI] Invalid side value: ${
|
|
1829
|
+
throw new Error(`[Quidgest UI] Invalid side value: ${l}`);
|
|
1474
1830
|
}
|
|
1475
1831
|
return s;
|
|
1476
1832
|
}
|
|
1477
|
-
function
|
|
1833
|
+
function Qo(n) {
|
|
1478
1834
|
return n === "x" ? "y" : "x";
|
|
1479
1835
|
}
|
|
1480
|
-
function
|
|
1836
|
+
function zo(n) {
|
|
1481
1837
|
const t = be(n);
|
|
1482
1838
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1483
1839
|
}
|
|
1484
|
-
function
|
|
1485
|
-
return
|
|
1840
|
+
function Ce(n) {
|
|
1841
|
+
return Qo(zo(n));
|
|
1486
1842
|
}
|
|
1487
1843
|
function be(n) {
|
|
1488
1844
|
const [t] = n.split("-");
|
|
1489
1845
|
return t;
|
|
1490
1846
|
}
|
|
1491
|
-
function
|
|
1847
|
+
function Fo(n) {
|
|
1492
1848
|
const [, t] = n.split("-");
|
|
1493
1849
|
return t;
|
|
1494
1850
|
}
|
|
1495
|
-
function
|
|
1851
|
+
function lt(n) {
|
|
1496
1852
|
return n < 0;
|
|
1497
1853
|
}
|
|
1498
|
-
function
|
|
1854
|
+
function Mo(n) {
|
|
1499
1855
|
return typeof n == "string" ? document.querySelector(n) : n;
|
|
1500
1856
|
}
|
|
1501
|
-
const
|
|
1857
|
+
const Oo = ["role"], Uo = /* @__PURE__ */ I({
|
|
1502
1858
|
inheritAttrs: !1,
|
|
1503
1859
|
__name: "QOverlay",
|
|
1504
1860
|
props: /* @__PURE__ */ G({
|
|
1505
|
-
anchor: {
|
|
1861
|
+
anchor: {},
|
|
1506
1862
|
appearance: { default: "regular" },
|
|
1507
1863
|
arrow: { type: Boolean },
|
|
1508
1864
|
attach: { default: "body" },
|
|
1509
1865
|
inline: { type: Boolean },
|
|
1510
1866
|
backdropBlur: { type: Boolean },
|
|
1511
|
-
backdropClass: {
|
|
1867
|
+
backdropClass: {},
|
|
1512
1868
|
delay: { default: 500 },
|
|
1513
1869
|
nonModal: { type: Boolean },
|
|
1514
1870
|
scrollLock: { type: Boolean },
|
|
@@ -1520,402 +1876,263 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
1520
1876
|
transition: { default: "fade" },
|
|
1521
1877
|
trigger: { default: "click" },
|
|
1522
1878
|
width: { default: "auto" },
|
|
1523
|
-
class: {
|
|
1879
|
+
class: {}
|
|
1524
1880
|
}, {
|
|
1525
1881
|
modelValue: { type: Boolean },
|
|
1526
1882
|
modelModifiers: {}
|
|
1527
1883
|
}),
|
|
1528
1884
|
emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
|
|
1529
1885
|
setup(n, { emit: t }) {
|
|
1530
|
-
const e = n,
|
|
1886
|
+
const e = n, o = t, l = K(n, "modelValue"), s = $t(), a = g(() => [
|
|
1531
1887
|
"q-overlay",
|
|
1532
|
-
`q-overlay--${be(
|
|
1888
|
+
`q-overlay--${be(b.placement)}`,
|
|
1533
1889
|
{
|
|
1534
|
-
"q-overlay--independent":
|
|
1890
|
+
"q-overlay--independent": r.value,
|
|
1535
1891
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1536
1892
|
},
|
|
1537
1893
|
e.class
|
|
1538
|
-
]),
|
|
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({
|
|
1539
1895
|
animating: !1,
|
|
1540
1896
|
top: 0,
|
|
1541
1897
|
left: 0,
|
|
1542
1898
|
width: 0,
|
|
1543
1899
|
placement: e.placement
|
|
1544
|
-
}),
|
|
1900
|
+
}), m = Ze({
|
|
1545
1901
|
top: void 0,
|
|
1546
1902
|
left: void 0,
|
|
1547
1903
|
hidden: !0
|
|
1548
|
-
}),
|
|
1549
|
-
|
|
1550
|
-
const
|
|
1551
|
-
if (
|
|
1552
|
-
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;
|
|
1553
1909
|
return {
|
|
1554
|
-
top: `${
|
|
1555
|
-
left: `${
|
|
1556
|
-
width:
|
|
1910
|
+
top: `${b.top}px`,
|
|
1911
|
+
left: `${b.left}px`,
|
|
1912
|
+
width: M !== void 0 ? `${M}px` : void 0
|
|
1557
1913
|
};
|
|
1558
|
-
}),
|
|
1914
|
+
}), N = g(() => {
|
|
1559
1915
|
if (e.arrow)
|
|
1560
1916
|
return {
|
|
1561
|
-
top:
|
|
1562
|
-
left:
|
|
1563
|
-
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
|
|
1564
1920
|
};
|
|
1565
|
-
}),
|
|
1566
|
-
function
|
|
1567
|
-
const
|
|
1568
|
-
if (!
|
|
1921
|
+
}), $ = B(null), V = B(null);
|
|
1922
|
+
function D() {
|
|
1923
|
+
const v = u();
|
|
1924
|
+
if (!v || !V.value)
|
|
1569
1925
|
return;
|
|
1570
|
-
const
|
|
1926
|
+
const F = {
|
|
1571
1927
|
placement: e.placement,
|
|
1572
1928
|
width: e.width,
|
|
1573
1929
|
offset: e.offset,
|
|
1574
1930
|
crossOffset: e.crossOffset,
|
|
1575
1931
|
arrow: e.arrow
|
|
1576
|
-
},
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
(
|
|
1580
|
-
|
|
1932
|
+
}, M = So(
|
|
1933
|
+
v,
|
|
1934
|
+
V.value,
|
|
1935
|
+
($ == null ? void 0 : $.value) ?? void 0,
|
|
1936
|
+
F
|
|
1581
1937
|
);
|
|
1582
|
-
|
|
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);
|
|
1583
1939
|
}
|
|
1584
|
-
|
|
1940
|
+
Y(
|
|
1585
1941
|
() => e.placement,
|
|
1586
|
-
() =>
|
|
1942
|
+
() => le(D)
|
|
1587
1943
|
);
|
|
1588
|
-
let
|
|
1589
|
-
function
|
|
1590
|
-
|
|
1944
|
+
let Q;
|
|
1945
|
+
function j() {
|
|
1946
|
+
S(0);
|
|
1591
1947
|
}
|
|
1592
|
-
function
|
|
1593
|
-
|
|
1948
|
+
function te() {
|
|
1949
|
+
S(e.delay);
|
|
1594
1950
|
}
|
|
1595
|
-
function
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
},
|
|
1951
|
+
function S(v) {
|
|
1952
|
+
Q && R(), Q = window.setTimeout(() => {
|
|
1953
|
+
l.value = !0;
|
|
1954
|
+
}, v);
|
|
1599
1955
|
}
|
|
1600
|
-
function
|
|
1601
|
-
if (
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1956
|
+
function E() {
|
|
1957
|
+
if (Q && R(), l.value = !1, e.anchor && e.trigger === "click") {
|
|
1958
|
+
const v = u();
|
|
1959
|
+
v == null || v.focus();
|
|
1604
1960
|
}
|
|
1605
1961
|
}
|
|
1606
|
-
function
|
|
1607
|
-
clearTimeout(
|
|
1962
|
+
function R() {
|
|
1963
|
+
clearTimeout(Q), Q = void 0;
|
|
1608
1964
|
}
|
|
1609
|
-
|
|
1610
|
-
function
|
|
1611
|
-
|
|
1965
|
+
Y(A, () => le(ae));
|
|
1966
|
+
function ae() {
|
|
1967
|
+
o("enter");
|
|
1612
1968
|
}
|
|
1613
|
-
let
|
|
1614
|
-
function
|
|
1615
|
-
window.clearTimeout(
|
|
1969
|
+
let ce;
|
|
1970
|
+
function k() {
|
|
1971
|
+
window.clearTimeout(ce), ce = window.setTimeout(() => b.animating = !1, 200), o("leave");
|
|
1616
1972
|
}
|
|
1617
|
-
function
|
|
1618
|
-
return e.anchor ?
|
|
1973
|
+
function u() {
|
|
1974
|
+
return e.anchor ? Mo(e.anchor) : null;
|
|
1619
1975
|
}
|
|
1620
|
-
let
|
|
1621
|
-
function
|
|
1622
|
-
const
|
|
1623
|
-
if (
|
|
1624
|
-
switch (
|
|
1976
|
+
let q;
|
|
1977
|
+
function O() {
|
|
1978
|
+
const v = u();
|
|
1979
|
+
if (v)
|
|
1980
|
+
switch (q = new MutationObserver(D), q.observe(v, {
|
|
1625
1981
|
attributes: !1,
|
|
1626
1982
|
childList: !0,
|
|
1627
1983
|
characterData: !0,
|
|
1628
1984
|
subtree: !0
|
|
1629
1985
|
}), e.trigger) {
|
|
1630
1986
|
case "click":
|
|
1631
|
-
|
|
1987
|
+
v.addEventListener("click", j);
|
|
1632
1988
|
break;
|
|
1633
1989
|
case "hover":
|
|
1634
|
-
|
|
1990
|
+
v.addEventListener("mouseenter", te), v.addEventListener("mouseleave", E), v.addEventListener("focusin", j), v.addEventListener("focusout", E);
|
|
1635
1991
|
break;
|
|
1636
1992
|
}
|
|
1637
1993
|
}
|
|
1638
|
-
function
|
|
1639
|
-
const
|
|
1640
|
-
if (
|
|
1641
|
-
switch (
|
|
1994
|
+
function H() {
|
|
1995
|
+
const v = u();
|
|
1996
|
+
if (v)
|
|
1997
|
+
switch (q == null || q.disconnect(), e.trigger) {
|
|
1642
1998
|
case "click":
|
|
1643
|
-
|
|
1999
|
+
v.removeEventListener("click", j);
|
|
1644
2000
|
break;
|
|
1645
2001
|
case "hover":
|
|
1646
|
-
|
|
2002
|
+
v.removeEventListener("mouseenter", te), v.removeEventListener("mouseleave", E), v.removeEventListener("focusin", j), v.removeEventListener("focusout", E);
|
|
1647
2003
|
break;
|
|
1648
2004
|
}
|
|
1649
2005
|
}
|
|
1650
|
-
function
|
|
1651
|
-
window.addEventListener("resize",
|
|
2006
|
+
function J() {
|
|
2007
|
+
window.addEventListener("resize", D), e.scrollLock || window.addEventListener("scroll", D);
|
|
1652
2008
|
}
|
|
1653
|
-
function
|
|
1654
|
-
window.removeEventListener("resize",
|
|
2009
|
+
function ee() {
|
|
2010
|
+
window.removeEventListener("resize", D), e.scrollLock || window.removeEventListener("scroll", D);
|
|
1655
2011
|
}
|
|
1656
|
-
let
|
|
1657
|
-
function
|
|
1658
|
-
|
|
2012
|
+
let oe;
|
|
2013
|
+
function ke() {
|
|
2014
|
+
u() ? (D(), oe = window.setTimeout(ke, 100)) : E();
|
|
1659
2015
|
}
|
|
1660
|
-
function
|
|
1661
|
-
|
|
1662
|
-
var
|
|
1663
|
-
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();
|
|
1664
2020
|
});
|
|
1665
2021
|
}
|
|
1666
|
-
function we() {
|
|
1667
|
-
a.value || Y(), e.spy && (clearTimeout(W), W = void 0), c.top = 0, c.left = 0;
|
|
1668
|
-
}
|
|
1669
2022
|
function ge() {
|
|
1670
|
-
|
|
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();
|
|
1671
2027
|
}
|
|
1672
2028
|
return Oe(() => {
|
|
1673
|
-
|
|
1674
|
-
}),
|
|
1675
|
-
|
|
1676
|
-
}),
|
|
1677
|
-
|
|
1678
|
-
(
|
|
1679
|
-
|
|
2029
|
+
le(O);
|
|
2030
|
+
}), At(() => {
|
|
2031
|
+
H(), ge();
|
|
2032
|
+
}), Y(
|
|
2033
|
+
l,
|
|
2034
|
+
(v) => {
|
|
2035
|
+
le(() => v ? Ve() : ge());
|
|
1680
2036
|
},
|
|
1681
2037
|
{ immediate: !0 }
|
|
1682
|
-
), (
|
|
1683
|
-
(
|
|
1684
|
-
disabled: !
|
|
2038
|
+
), (v, F) => (d(), h(W, null, [
|
|
2039
|
+
(d(), C(Et, {
|
|
2040
|
+
disabled: !l.value && !b.animating || e.inline,
|
|
1685
2041
|
to: e.attach
|
|
1686
2042
|
}, [
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
class: A([
|
|
1690
|
-
e.backdropClass,
|
|
1691
|
-
"q-overlay__underlay",
|
|
1692
|
-
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1693
|
-
])
|
|
1694
|
-
}, null, 2)) : $("", !0),
|
|
1695
|
-
O(kt, {
|
|
1696
|
-
name: e.transition,
|
|
1697
|
-
appear: "",
|
|
1698
|
-
onLeave: ce
|
|
2043
|
+
U(y(kt), {
|
|
2044
|
+
theme: y(s).current.value.name
|
|
1699
2045
|
}, {
|
|
1700
2046
|
default: _(() => [
|
|
1701
|
-
|
|
2047
|
+
i.value ? (d(), h("div", {
|
|
1702
2048
|
key: 0,
|
|
1703
|
-
class:
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
e.arrow ? (u(), m("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", {
|
|
1717
2062
|
key: 0,
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
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"])
|
|
1727
2090
|
]),
|
|
1728
2091
|
_: 3
|
|
1729
|
-
}, 8, ["
|
|
2092
|
+
}, 8, ["theme"])
|
|
1730
2093
|
], 8, ["disabled", "to"])),
|
|
1731
|
-
|
|
2094
|
+
c.value ? (d(), C(y(qo), { key: 0 })) : w("", !0)
|
|
1732
2095
|
], 64));
|
|
1733
2096
|
}
|
|
1734
|
-
}),
|
|
1735
|
-
|
|
1736
|
-
class: "q-field__label"
|
|
1737
|
-
}, pl = ["for"], ml = {
|
|
1738
|
-
key: 0,
|
|
1739
|
-
class: "q-field__prepend"
|
|
1740
|
-
}, hl = {
|
|
1741
|
-
key: 1,
|
|
1742
|
-
class: "q-field__append"
|
|
1743
|
-
}, vl = {
|
|
1744
|
-
key: 1,
|
|
1745
|
-
class: "q-field__extras"
|
|
1746
|
-
}, yl = /* @__PURE__ */ S({
|
|
1747
|
-
inheritAttrs: !1,
|
|
1748
|
-
__name: "QField",
|
|
2097
|
+
}), me = L(Uo), Po = /* @__PURE__ */ I({
|
|
2098
|
+
__name: "QClearButton",
|
|
1749
2099
|
props: {
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
size: { default: "medium" },
|
|
1754
|
-
readonly: { type: Boolean },
|
|
1755
|
-
disabled: { type: Boolean },
|
|
1756
|
-
required: { type: Boolean },
|
|
1757
|
-
class: { default: void 0 }
|
|
2100
|
+
class: {},
|
|
2101
|
+
icons: { default: () => He },
|
|
2102
|
+
texts: { default: () => Ge }
|
|
1758
2103
|
},
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
"q-field--disabled": e.disabled,
|
|
1771
|
-
"q-field--required": s.value
|
|
1772
|
-
},
|
|
1773
|
-
e.class
|
|
1774
|
-
])
|
|
1775
|
-
}, [
|
|
1776
|
-
e.label ? (u(), m("div", fl, [
|
|
1777
|
-
p(a.$slots, "label.prepend"),
|
|
1778
|
-
w("label", {
|
|
1779
|
-
for: e.for
|
|
1780
|
-
}, Q(e.label), 9, pl),
|
|
1781
|
-
p(a.$slots, "label.append")
|
|
1782
|
-
])) : $("", !0),
|
|
1783
|
-
p(a.$slots, "control", {}, () => [
|
|
1784
|
-
w("div", X({
|
|
1785
|
-
ref_key: "fieldRef",
|
|
1786
|
-
ref: o,
|
|
1787
|
-
class: "q-field__control"
|
|
1788
|
-
}, a.$attrs), [
|
|
1789
|
-
a.$slots.prepend ? (u(), m("div", ml, [
|
|
1790
|
-
p(a.$slots, "prepend")
|
|
1791
|
-
])) : $("", !0),
|
|
1792
|
-
p(a.$slots, "default"),
|
|
1793
|
-
a.$slots.append ? (u(), m("div", hl, [
|
|
1794
|
-
p(a.$slots, "append")
|
|
1795
|
-
])) : $("", !0)
|
|
1796
|
-
], 16)
|
|
1797
|
-
]),
|
|
1798
|
-
a.$slots.extras ? (u(), m("div", vl, [
|
|
1799
|
-
p(a.$slots, "extras")
|
|
1800
|
-
])) : $("", !0)
|
|
1801
|
-
], 10, cl));
|
|
1802
|
-
}
|
|
1803
|
-
}), Se = C(yl), bl = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], gl = /* @__PURE__ */ S({
|
|
1804
|
-
inheritAttrs: !1,
|
|
1805
|
-
__name: "QTextField",
|
|
1806
|
-
props: /* @__PURE__ */ G({
|
|
1807
|
-
id: { default: void 0 },
|
|
1808
|
-
placeholder: { default: "" },
|
|
1809
|
-
label: { default: "" },
|
|
1810
|
-
size: { default: void 0 },
|
|
1811
|
-
maxLength: { default: void 0 },
|
|
1812
|
-
readonly: { type: Boolean },
|
|
1813
|
-
disabled: { type: Boolean },
|
|
1814
|
-
required: { type: Boolean },
|
|
1815
|
-
role: { default: void 0 },
|
|
1816
|
-
type: { default: "text" },
|
|
1817
|
-
class: { default: void 0 }
|
|
1818
|
-
}, {
|
|
1819
|
-
modelValue: {},
|
|
1820
|
-
modelModifiers: {}
|
|
1821
|
-
}),
|
|
1822
|
-
emits: ["update:modelValue"],
|
|
1823
|
-
setup(n, { expose: t }) {
|
|
1824
|
-
const e = n, l = j(n, "modelValue"), o = ue(e.id), s = V(null), a = V(null), d = y(
|
|
1825
|
-
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1826
|
-
);
|
|
1827
|
-
return t({
|
|
1828
|
-
fieldRef: y(() => {
|
|
1829
|
-
var i;
|
|
1830
|
-
return (i = s.value) == null ? void 0 : i.fieldRef;
|
|
1831
|
-
}),
|
|
1832
|
-
inputRef: a
|
|
1833
|
-
}), (i, c) => (u(), I(h(Se), {
|
|
1834
|
-
ref_key: "fieldRef",
|
|
1835
|
-
ref: s,
|
|
1836
|
-
class: A(["q-text-field", e.class]),
|
|
1837
|
-
for: h(o),
|
|
1838
|
-
label: e.label,
|
|
1839
|
-
size: e.size,
|
|
1840
|
-
readonly: e.readonly,
|
|
1841
|
-
disabled: e.disabled,
|
|
1842
|
-
required: e.required
|
|
1843
|
-
}, ye({
|
|
1844
|
-
"label.prepend": _(() => [
|
|
1845
|
-
p(i.$slots, "label.prepend")
|
|
1846
|
-
]),
|
|
1847
|
-
"label.append": _(() => [
|
|
1848
|
-
p(i.$slots, "label.append")
|
|
1849
|
-
]),
|
|
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
|
+
}, {
|
|
1850
2115
|
default: _(() => [
|
|
1851
|
-
|
|
1852
|
-
id: h(o),
|
|
1853
|
-
ref_key: "inputRef",
|
|
1854
|
-
ref: a,
|
|
1855
|
-
"onUpdate:modelValue": c[0] || (c[0] = (v) => l.value = v),
|
|
1856
|
-
class: "q-text-field__input",
|
|
1857
|
-
type: e.type,
|
|
1858
|
-
role: e.role,
|
|
1859
|
-
required: e.required,
|
|
1860
|
-
placeholder: d.value,
|
|
1861
|
-
readonly: e.readonly,
|
|
1862
|
-
disabled: e.disabled,
|
|
1863
|
-
maxlength: e.maxLength
|
|
1864
|
-
}, i.$attrs), null, 16, bl), [
|
|
1865
|
-
[qt, l.value]
|
|
1866
|
-
])
|
|
2116
|
+
U(y(X), se(fe(e.icons.clear)), null, 16)
|
|
1867
2117
|
]),
|
|
1868
|
-
_:
|
|
1869
|
-
}, [
|
|
1870
|
-
i.$slots.prepend ? {
|
|
1871
|
-
name: "prepend",
|
|
1872
|
-
fn: _(() => [
|
|
1873
|
-
p(i.$slots, "prepend")
|
|
1874
|
-
]),
|
|
1875
|
-
key: "0"
|
|
1876
|
-
} : void 0,
|
|
1877
|
-
i.$slots.append ? {
|
|
1878
|
-
name: "append",
|
|
1879
|
-
fn: _(() => [
|
|
1880
|
-
p(i.$slots, "append")
|
|
1881
|
-
]),
|
|
1882
|
-
key: "1"
|
|
1883
|
-
} : void 0,
|
|
1884
|
-
i.$slots.extras ? {
|
|
1885
|
-
name: "extras",
|
|
1886
|
-
fn: _(() => [
|
|
1887
|
-
p(i.$slots, "extras")
|
|
1888
|
-
]),
|
|
1889
|
-
key: "2"
|
|
1890
|
-
} : void 0
|
|
1891
|
-
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
2118
|
+
_: 1
|
|
2119
|
+
}, 8, ["aria-label"]));
|
|
1892
2120
|
}
|
|
1893
|
-
}),
|
|
1894
|
-
noData: "No data available",
|
|
1895
|
-
clearValue: "Clear value",
|
|
1896
|
-
showOptions: "Show options"
|
|
1897
|
-
}, $l = {
|
|
1898
|
-
chevron: {
|
|
1899
|
-
icon: "chevron-down"
|
|
1900
|
-
},
|
|
1901
|
-
clear: {
|
|
1902
|
-
icon: "close"
|
|
1903
|
-
}
|
|
1904
|
-
}, kl = ["data-key"], wl = {
|
|
2121
|
+
}), wt = L(Po), No = ["data-key"], Ro = {
|
|
1905
2122
|
key: 0,
|
|
1906
2123
|
class: "q-select__loader"
|
|
1907
|
-
},
|
|
2124
|
+
}, Go = {
|
|
1908
2125
|
key: 2,
|
|
1909
2126
|
class: "q-select__loader"
|
|
1910
|
-
},
|
|
2127
|
+
}, Ho = /* @__PURE__ */ I({
|
|
1911
2128
|
inheritAttrs: !1,
|
|
1912
2129
|
__name: "QCombobox",
|
|
1913
2130
|
props: /* @__PURE__ */ G({
|
|
1914
|
-
id: {
|
|
1915
|
-
placeholder: {
|
|
2131
|
+
id: {},
|
|
2132
|
+
placeholder: {},
|
|
1916
2133
|
selectionMode: { default: "automatic" },
|
|
1917
2134
|
filterMode: { default: "builtin" },
|
|
1918
|
-
label: {
|
|
2135
|
+
label: {},
|
|
1919
2136
|
clearable: { type: Boolean },
|
|
1920
2137
|
readonly: { type: Boolean },
|
|
1921
2138
|
disabled: { type: Boolean },
|
|
@@ -1925,11 +2142,11 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
1925
2142
|
groups: { default: () => [] },
|
|
1926
2143
|
itemValue: { default: "key" },
|
|
1927
2144
|
itemLabel: { default: "label" },
|
|
1928
|
-
emptyValue: { type: [String, Number, Boolean, Symbol]
|
|
1929
|
-
size: {
|
|
1930
|
-
class: {
|
|
1931
|
-
icons: { default: () =>
|
|
1932
|
-
texts: { default: () =>
|
|
2145
|
+
emptyValue: { type: [String, Number, Boolean, Symbol] },
|
|
2146
|
+
size: {},
|
|
2147
|
+
class: {},
|
|
2148
|
+
icons: { default: () => to },
|
|
2149
|
+
texts: { default: () => eo }
|
|
1933
2150
|
}, {
|
|
1934
2151
|
modelValue: {
|
|
1935
2152
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1942,288 +2159,282 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
1942
2159
|
}),
|
|
1943
2160
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1944
2161
|
setup(n, { expose: t, emit: e }) {
|
|
1945
|
-
const
|
|
1946
|
-
Oe(
|
|
1947
|
-
const
|
|
1948
|
-
var
|
|
1949
|
-
return
|
|
1950
|
-
(
|
|
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())
|
|
1951
2168
|
);
|
|
1952
|
-
}),
|
|
1953
|
-
var
|
|
1954
|
-
return (
|
|
1955
|
-
}),
|
|
1956
|
-
const
|
|
1957
|
-
if (
|
|
1958
|
-
return
|
|
1959
|
-
}),
|
|
1960
|
-
var
|
|
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;
|
|
1961
2178
|
if (i.value === void 0)
|
|
1962
2179
|
return;
|
|
1963
|
-
const
|
|
1964
|
-
return
|
|
1965
|
-
}),
|
|
1966
|
-
var
|
|
1967
|
-
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]);
|
|
1968
2185
|
});
|
|
1969
|
-
function te(
|
|
1970
|
-
s.value =
|
|
2186
|
+
function te(f) {
|
|
2187
|
+
s.value = f, R();
|
|
1971
2188
|
}
|
|
1972
|
-
function
|
|
1973
|
-
var
|
|
1974
|
-
const
|
|
1975
|
-
|
|
2189
|
+
function S() {
|
|
2190
|
+
var v;
|
|
2191
|
+
const f = ((v = $.value) == null ? void 0 : v[o.itemLabel]) || "";
|
|
2192
|
+
r.value !== f && (r.value = f);
|
|
1976
2193
|
}
|
|
1977
2194
|
function E() {
|
|
1978
|
-
a.value ||
|
|
2195
|
+
a.value || o.readonly || o.disabled || (l("before-show"), a.value = !0, ee());
|
|
1979
2196
|
}
|
|
1980
|
-
function
|
|
1981
|
-
a.value && (
|
|
2197
|
+
function R() {
|
|
2198
|
+
a.value && (l("before-hide"), a.value = !1, i.value = void 0);
|
|
1982
2199
|
}
|
|
1983
|
-
function
|
|
1984
|
-
a.value ?
|
|
2200
|
+
function ae() {
|
|
2201
|
+
a.value ? R() : k();
|
|
1985
2202
|
}
|
|
1986
2203
|
function ce() {
|
|
1987
|
-
|
|
2204
|
+
P.value && (s.value = o.emptyValue, i.value = void 0, ee());
|
|
1988
2205
|
}
|
|
1989
|
-
function
|
|
1990
|
-
if (E(),
|
|
1991
|
-
const
|
|
1992
|
-
|
|
2206
|
+
function k() {
|
|
2207
|
+
if (E(), $.value !== void 0) {
|
|
2208
|
+
const f = N.value.indexOf($.value);
|
|
2209
|
+
f !== -1 && le(() => ge(f));
|
|
1993
2210
|
}
|
|
1994
2211
|
}
|
|
1995
|
-
function f
|
|
1996
|
-
var
|
|
1997
|
-
if (!(!
|
|
1998
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1999
|
-
|
|
2000
|
-
else if (["ArrowDown", "ArrowUp"].includes(
|
|
2001
|
-
a.value ?
|
|
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(() => {
|
|
2002
2219
|
if (i.value === void 0)
|
|
2003
2220
|
q();
|
|
2004
2221
|
else {
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2222
|
+
const M = f.key === "ArrowDown" ? "next" : "prev";
|
|
2223
|
+
H(i.value, M);
|
|
2007
2224
|
}
|
|
2008
|
-
}) : (E(),
|
|
2009
|
-
|
|
2225
|
+
}) : (E(), le(() => {
|
|
2226
|
+
f.key === "ArrowDown" ? q() : O();
|
|
2010
2227
|
}));
|
|
2011
|
-
else if (
|
|
2012
|
-
if (
|
|
2013
|
-
te(
|
|
2014
|
-
} 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();
|
|
2015
2232
|
}
|
|
2016
2233
|
function q() {
|
|
2017
|
-
var
|
|
2018
|
-
if (
|
|
2019
|
-
i.value = (
|
|
2234
|
+
var f, v;
|
|
2235
|
+
if (V.value)
|
|
2236
|
+
i.value = (v = b.value) == null ? void 0 : v.getFirstFocusableItemIndex();
|
|
2020
2237
|
else {
|
|
2021
|
-
const
|
|
2022
|
-
(
|
|
2238
|
+
const F = N.value.findIndex(
|
|
2239
|
+
(M) => M[o.itemValue] === s.value
|
|
2023
2240
|
);
|
|
2024
|
-
|
|
2241
|
+
F === -1 ? i.value = (f = b.value) == null ? void 0 : f.getFirstFocusableItemIndex() : i.value = F;
|
|
2025
2242
|
}
|
|
2026
2243
|
}
|
|
2027
|
-
function
|
|
2028
|
-
var
|
|
2029
|
-
i.value = (
|
|
2244
|
+
function O() {
|
|
2245
|
+
var f;
|
|
2246
|
+
i.value = (f = b.value) == null ? void 0 : f.getLastFocusableItemIndex();
|
|
2030
2247
|
}
|
|
2031
|
-
function
|
|
2032
|
-
var
|
|
2033
|
-
i.value = (
|
|
2248
|
+
function H(f, v) {
|
|
2249
|
+
var F;
|
|
2250
|
+
i.value = (F = b.value) == null ? void 0 : F.getAdjacentItemIndex(f, v);
|
|
2034
2251
|
}
|
|
2035
|
-
function
|
|
2036
|
-
var
|
|
2037
|
-
const
|
|
2038
|
-
if (
|
|
2039
|
-
|
|
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();
|
|
2040
2257
|
return;
|
|
2041
2258
|
}
|
|
2042
|
-
|
|
2043
|
-
}
|
|
2044
|
-
function W() {
|
|
2045
|
-
var r, L;
|
|
2046
|
-
(L = (r = c.value) == null ? void 0 : r.inputRef) == null || L.focus();
|
|
2259
|
+
R(), P.value && !r.value && (s.value = o.emptyValue), S();
|
|
2047
2260
|
}
|
|
2048
|
-
function
|
|
2049
|
-
|
|
2261
|
+
function ee() {
|
|
2262
|
+
var f, v;
|
|
2263
|
+
(v = (f = c.value) == null ? void 0 : f.inputRef) == null || v.focus();
|
|
2050
2264
|
}
|
|
2051
|
-
function
|
|
2052
|
-
|
|
2265
|
+
function oe() {
|
|
2266
|
+
ee();
|
|
2053
2267
|
}
|
|
2054
|
-
function
|
|
2055
|
-
|
|
2268
|
+
function ke() {
|
|
2269
|
+
l("show");
|
|
2056
2270
|
}
|
|
2057
|
-
function
|
|
2058
|
-
|
|
2059
|
-
const L = (T = v.value) == null ? void 0 : T.getItem(r);
|
|
2060
|
-
v.value && (v.value.$el.scrollTop = L == null ? void 0 : L.offsetTop);
|
|
2271
|
+
function Ve() {
|
|
2272
|
+
l("hide");
|
|
2061
2273
|
}
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
(
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2274
|
+
function ge(f) {
|
|
2275
|
+
var F;
|
|
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);
|
|
2278
|
+
}
|
|
2279
|
+
return Y(s, S), Y(
|
|
2280
|
+
() => o.items,
|
|
2281
|
+
(f, v) => {
|
|
2282
|
+
if (!V.value) {
|
|
2283
|
+
const F = v.find((M) => M[o.itemValue] === s.value);
|
|
2284
|
+
r.value === (F == null ? void 0 : F[o.itemLabel]) && S();
|
|
2068
2285
|
}
|
|
2069
2286
|
},
|
|
2070
2287
|
{ deep: !0 }
|
|
2071
|
-
),
|
|
2072
|
-
|
|
2073
|
-
}),
|
|
2074
|
-
|
|
2075
|
-
}),
|
|
2076
|
-
() =>
|
|
2077
|
-
(
|
|
2078
|
-
!
|
|
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);
|
|
2079
2296
|
}
|
|
2080
2297
|
), t({
|
|
2081
2298
|
triggerEl: c
|
|
2082
|
-
}), (
|
|
2083
|
-
var
|
|
2084
|
-
return
|
|
2085
|
-
|
|
2086
|
-
id:
|
|
2299
|
+
}), (f, v) => {
|
|
2300
|
+
var F;
|
|
2301
|
+
return d(), h(W, null, [
|
|
2302
|
+
U(y(Re), Z({
|
|
2303
|
+
id: o.id,
|
|
2087
2304
|
ref_key: "triggerEl",
|
|
2088
2305
|
ref: c,
|
|
2089
|
-
modelValue:
|
|
2090
|
-
"onUpdate:modelValue":
|
|
2091
|
-
label:
|
|
2092
|
-
required:
|
|
2306
|
+
modelValue: r.value,
|
|
2307
|
+
"onUpdate:modelValue": v[0] || (v[0] = (M) => r.value = M),
|
|
2308
|
+
label: o.label,
|
|
2309
|
+
required: o.required,
|
|
2093
2310
|
role: "combobox",
|
|
2094
|
-
placeholder:
|
|
2311
|
+
placeholder: o.placeholder,
|
|
2095
2312
|
class: [
|
|
2096
2313
|
"q-combobox",
|
|
2097
2314
|
{
|
|
2098
|
-
"q-combobox--readonly":
|
|
2099
|
-
"q-combobox--disabled":
|
|
2100
|
-
"q-combobox--expanded": a.value
|
|
2315
|
+
"q-combobox--readonly": o.readonly,
|
|
2316
|
+
"q-combobox--disabled": o.disabled
|
|
2101
2317
|
},
|
|
2102
|
-
|
|
2318
|
+
o.class
|
|
2103
2319
|
],
|
|
2104
|
-
readonly:
|
|
2105
|
-
disabled:
|
|
2106
|
-
"data-loading":
|
|
2320
|
+
readonly: o.readonly,
|
|
2321
|
+
disabled: o.disabled,
|
|
2322
|
+
"data-loading": o.loading,
|
|
2107
2323
|
autocomplete: "off",
|
|
2108
2324
|
"aria-expanded": a.value,
|
|
2109
2325
|
"aria-haspopup": "listbox",
|
|
2110
2326
|
"aria-autocomplete": "list",
|
|
2111
|
-
"aria-activedescendant":
|
|
2112
|
-
size:
|
|
2113
|
-
},
|
|
2114
|
-
onClick:
|
|
2115
|
-
onFocusout:
|
|
2116
|
-
onKeydown:
|
|
2117
|
-
}),
|
|
2327
|
+
"aria-activedescendant": Q.value,
|
|
2328
|
+
size: o.size
|
|
2329
|
+
}, f.$attrs, {
|
|
2330
|
+
onClick: k,
|
|
2331
|
+
onFocusout: J,
|
|
2332
|
+
onKeydown: ne(u, ["stop"])
|
|
2333
|
+
}), pe({
|
|
2118
2334
|
"label.prepend": _(() => [
|
|
2119
|
-
p(
|
|
2335
|
+
p(f.$slots, "label.prepend")
|
|
2120
2336
|
]),
|
|
2121
2337
|
"label.append": _(() => [
|
|
2122
|
-
p(
|
|
2338
|
+
p(f.$slots, "label.append")
|
|
2123
2339
|
]),
|
|
2124
2340
|
append: _(() => [
|
|
2125
|
-
p(
|
|
2126
|
-
|
|
2341
|
+
p(f.$slots, "append"),
|
|
2342
|
+
P.value && r.value ? (d(), C(y(wt), {
|
|
2127
2343
|
key: 0,
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
"b-style": "plain",
|
|
2131
|
-
borderless: "",
|
|
2132
|
-
tabindex: "-1",
|
|
2344
|
+
icons: o.icons,
|
|
2345
|
+
texts: o.texts,
|
|
2133
2346
|
onClick: ce
|
|
2134
|
-
},
|
|
2135
|
-
|
|
2136
|
-
O(h(N), J(se(l.icons.clear)), null, 16)
|
|
2137
|
-
]),
|
|
2138
|
-
_: 1
|
|
2139
|
-
}, 8, ["aria-label"])) : $("", !0),
|
|
2140
|
-
l.readonly ? $("", !0) : (u(), I(h(ae), {
|
|
2347
|
+
}, null, 8, ["icons", "texts"])) : w("", !0),
|
|
2348
|
+
o.readonly ? w("", !0) : (d(), C(y(re), {
|
|
2141
2349
|
key: 1,
|
|
2142
2350
|
ref_key: "toggleRef",
|
|
2143
|
-
ref:
|
|
2351
|
+
ref: m,
|
|
2144
2352
|
class: "q-combobox__chevron",
|
|
2145
|
-
"aria-label":
|
|
2353
|
+
"aria-label": o.texts.showOptions,
|
|
2146
2354
|
"b-style": "plain",
|
|
2147
2355
|
borderless: "",
|
|
2148
2356
|
tabindex: "-1",
|
|
2149
|
-
disabled:
|
|
2150
|
-
onMousedown:
|
|
2357
|
+
disabled: o.disabled,
|
|
2358
|
+
onMousedown: ne(ae, ["stop", "prevent"])
|
|
2151
2359
|
}, {
|
|
2152
2360
|
default: _(() => [
|
|
2153
|
-
|
|
2361
|
+
U(y(xe), {
|
|
2362
|
+
"model-value": a.value,
|
|
2363
|
+
icons: o.icons
|
|
2364
|
+
}, null, 8, ["model-value", "icons"])
|
|
2154
2365
|
]),
|
|
2155
2366
|
_: 1
|
|
2156
2367
|
}, 8, ["aria-label", "disabled"]))
|
|
2157
2368
|
]),
|
|
2158
2369
|
_: 2
|
|
2159
2370
|
}, [
|
|
2160
|
-
|
|
2371
|
+
f.$slots.prepend ? {
|
|
2161
2372
|
name: "prepend",
|
|
2162
2373
|
fn: _(() => [
|
|
2163
|
-
p(
|
|
2374
|
+
p(f.$slots, "prepend")
|
|
2164
2375
|
]),
|
|
2165
2376
|
key: "0"
|
|
2166
2377
|
} : void 0,
|
|
2167
|
-
|
|
2378
|
+
f.$slots.extras ? {
|
|
2168
2379
|
name: "extras",
|
|
2169
2380
|
fn: _(() => [
|
|
2170
|
-
p(
|
|
2381
|
+
p(f.$slots, "extras")
|
|
2171
2382
|
]),
|
|
2172
2383
|
key: "1"
|
|
2173
2384
|
} : void 0
|
|
2174
2385
|
]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
2175
|
-
|
|
2386
|
+
U(y(me), {
|
|
2176
2387
|
modelValue: a.value,
|
|
2177
|
-
"onUpdate:modelValue":
|
|
2388
|
+
"onUpdate:modelValue": v[2] || (v[2] = (M) => a.value = M),
|
|
2178
2389
|
spy: "",
|
|
2179
2390
|
"non-modal": "",
|
|
2180
2391
|
trigger: "manual",
|
|
2181
2392
|
placement: "bottom-start",
|
|
2182
2393
|
width: "anchor",
|
|
2183
2394
|
offset: 4,
|
|
2184
|
-
anchor: (
|
|
2185
|
-
onEnter:
|
|
2186
|
-
onLeave:
|
|
2395
|
+
anchor: (F = c.value) == null ? void 0 : F.$el,
|
|
2396
|
+
onEnter: ke,
|
|
2397
|
+
onLeave: Ve
|
|
2187
2398
|
}, {
|
|
2188
2399
|
default: _(() => {
|
|
2189
|
-
var
|
|
2400
|
+
var M;
|
|
2190
2401
|
return [
|
|
2191
|
-
|
|
2402
|
+
x("div", {
|
|
2192
2403
|
ref_key: "contentRef",
|
|
2193
|
-
ref:
|
|
2404
|
+
ref: A,
|
|
2194
2405
|
class: "q-select__body",
|
|
2195
2406
|
"data-testid": "combobox-dropdown",
|
|
2196
|
-
"data-key":
|
|
2197
|
-
onFocusout:
|
|
2407
|
+
"data-key": o.id,
|
|
2408
|
+
onFocusout: J
|
|
2198
2409
|
}, [
|
|
2199
|
-
p(
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
])) :
|
|
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), {
|
|
2203
2414
|
key: 1,
|
|
2204
2415
|
ref_key: "listRef",
|
|
2205
|
-
ref:
|
|
2416
|
+
ref: b,
|
|
2206
2417
|
modelValue: s.value,
|
|
2207
2418
|
"onUpdate:modelValue": [
|
|
2208
|
-
|
|
2419
|
+
v[1] || (v[1] = (he) => s.value = he),
|
|
2209
2420
|
te
|
|
2210
2421
|
],
|
|
2211
2422
|
class: "q-select__items",
|
|
2212
2423
|
selectable: "",
|
|
2213
|
-
highlighted: (
|
|
2214
|
-
items:
|
|
2215
|
-
groups:
|
|
2216
|
-
"item-label":
|
|
2217
|
-
"item-value":
|
|
2218
|
-
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
|
|
2219
2430
|
}, {
|
|
2220
|
-
item: _(({ item:
|
|
2221
|
-
p(
|
|
2431
|
+
item: _(({ item: he }) => [
|
|
2432
|
+
p(f.$slots, "item", { item: he })
|
|
2222
2433
|
]),
|
|
2223
2434
|
_: 3
|
|
2224
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
2225
|
-
p(
|
|
2226
|
-
], 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)
|
|
2227
2438
|
];
|
|
2228
2439
|
}),
|
|
2229
2440
|
_: 3
|
|
@@ -2231,7 +2442,7 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2231
2442
|
], 64);
|
|
2232
2443
|
};
|
|
2233
2444
|
}
|
|
2234
|
-
}),
|
|
2445
|
+
}), Ko = L(Ho), Wo = [
|
|
2235
2446
|
{
|
|
2236
2447
|
id: "button",
|
|
2237
2448
|
icon: {
|
|
@@ -2242,46 +2453,46 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2242
2453
|
label: "Ok"
|
|
2243
2454
|
}
|
|
2244
2455
|
}
|
|
2245
|
-
],
|
|
2456
|
+
], jo = {
|
|
2246
2457
|
icon: "check-circle-outline"
|
|
2247
|
-
},
|
|
2458
|
+
}, Xo = {
|
|
2248
2459
|
close: {
|
|
2249
2460
|
icon: "close"
|
|
2250
2461
|
}
|
|
2251
|
-
},
|
|
2462
|
+
}, Yo = { class: "q-dialog__header" }, Zo = { class: "q-dialog__header-title" }, Jo = { class: "q-dialog__body" }, el = {
|
|
2252
2463
|
key: 0,
|
|
2253
2464
|
class: "q-dialog__body-icon"
|
|
2254
|
-
},
|
|
2465
|
+
}, tl = { class: "q-dialog__body-text" }, nl = ["innerHTML"], ol = { key: 1 }, ll = { class: "q-dialog__body-actions" }, sl = /* @__PURE__ */ I({
|
|
2255
2466
|
__name: "QDialog",
|
|
2256
2467
|
props: /* @__PURE__ */ G({
|
|
2257
|
-
text: {
|
|
2468
|
+
text: {},
|
|
2258
2469
|
attach: { default: "body" },
|
|
2259
2470
|
inline: { type: Boolean },
|
|
2260
2471
|
backdropBlur: { type: Boolean, default: !0 },
|
|
2261
|
-
buttons: { default: () =>
|
|
2472
|
+
buttons: { default: () => Wo },
|
|
2262
2473
|
dismissible: { type: Boolean },
|
|
2263
2474
|
html: { type: Boolean, default: !0 },
|
|
2264
|
-
icon: { default: () =>
|
|
2265
|
-
id: {
|
|
2266
|
-
title: {
|
|
2267
|
-
class: {
|
|
2268
|
-
icons: { default: () =>
|
|
2475
|
+
icon: { default: () => jo },
|
|
2476
|
+
id: {},
|
|
2477
|
+
title: {},
|
|
2478
|
+
class: {},
|
|
2479
|
+
icons: { default: () => Xo }
|
|
2269
2480
|
}, {
|
|
2270
2481
|
modelValue: { type: Boolean },
|
|
2271
2482
|
modelModifiers: {}
|
|
2272
2483
|
}),
|
|
2273
2484
|
emits: ["update:modelValue"],
|
|
2274
2485
|
setup(n) {
|
|
2275
|
-
const t = n, e =
|
|
2486
|
+
const t = n, e = K(n, "modelValue"), o = de(t.id), l = g(() => ["q-dialog", t.class]);
|
|
2276
2487
|
function s() {
|
|
2277
2488
|
e.value = !1;
|
|
2278
2489
|
}
|
|
2279
|
-
function a(
|
|
2490
|
+
function a(r) {
|
|
2280
2491
|
var i;
|
|
2281
|
-
(i =
|
|
2492
|
+
(i = r.action) == null || i.call(r), s();
|
|
2282
2493
|
}
|
|
2283
|
-
return (
|
|
2284
|
-
id:
|
|
2494
|
+
return (r, i) => (d(), C(y(me), {
|
|
2495
|
+
id: y(o),
|
|
2285
2496
|
"model-value": e.value,
|
|
2286
2497
|
inline: t.inline,
|
|
2287
2498
|
attach: t.attach,
|
|
@@ -2291,48 +2502,48 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2291
2502
|
persistent: ""
|
|
2292
2503
|
}, {
|
|
2293
2504
|
default: _(() => [
|
|
2294
|
-
|
|
2295
|
-
class:
|
|
2505
|
+
x("div", {
|
|
2506
|
+
class: T(l.value)
|
|
2296
2507
|
}, [
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
t.dismissible ? (
|
|
2508
|
+
x("div", Yo, [
|
|
2509
|
+
x("span", Zo, z(t.title), 1),
|
|
2510
|
+
t.dismissible ? (d(), C(y(re), {
|
|
2300
2511
|
key: 0,
|
|
2301
2512
|
"b-style": "tertiary",
|
|
2302
2513
|
onClick: s
|
|
2303
2514
|
}, {
|
|
2304
2515
|
default: _(() => [
|
|
2305
|
-
|
|
2516
|
+
U(y(X), se(fe(t.icons.close)), null, 16)
|
|
2306
2517
|
]),
|
|
2307
2518
|
_: 1
|
|
2308
|
-
})) :
|
|
2519
|
+
})) : w("", !0)
|
|
2309
2520
|
]),
|
|
2310
|
-
p(
|
|
2311
|
-
|
|
2312
|
-
p(
|
|
2313
|
-
t.icon ? (
|
|
2314
|
-
|
|
2315
|
-
])) :
|
|
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)
|
|
2316
2527
|
]),
|
|
2317
|
-
|
|
2318
|
-
t.html ? (
|
|
2528
|
+
x("div", tl, [
|
|
2529
|
+
t.html ? (d(), h("span", {
|
|
2319
2530
|
key: 0,
|
|
2320
2531
|
innerHTML: t.text
|
|
2321
|
-
}, null, 8,
|
|
2532
|
+
}, null, 8, nl)) : (d(), h("span", ol, z(t.text), 1))
|
|
2322
2533
|
]),
|
|
2323
|
-
p(
|
|
2534
|
+
p(r.$slots, "body.append")
|
|
2324
2535
|
])
|
|
2325
2536
|
]),
|
|
2326
|
-
|
|
2327
|
-
(
|
|
2537
|
+
x("div", ll, [
|
|
2538
|
+
(d(!0), h(W, null, ye(t.buttons, (c) => (d(), C(y(re), Z({ ref_for: !0 }, c.props, {
|
|
2328
2539
|
key: c.id,
|
|
2329
2540
|
onClick: () => a(c)
|
|
2330
2541
|
}), {
|
|
2331
2542
|
default: _(() => [
|
|
2332
|
-
c.icon ? (
|
|
2543
|
+
c.icon ? (d(), C(y(X), Z({
|
|
2333
2544
|
key: 0,
|
|
2334
2545
|
ref_for: !0
|
|
2335
|
-
}, c.icon), null, 16)) :
|
|
2546
|
+
}, c.icon), null, 16)) : w("", !0)
|
|
2336
2547
|
]),
|
|
2337
2548
|
_: 2
|
|
2338
2549
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -2342,28 +2553,28 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2342
2553
|
_: 3
|
|
2343
2554
|
}, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
|
|
2344
2555
|
}
|
|
2345
|
-
}),
|
|
2556
|
+
}), al = L(sl), il = {
|
|
2346
2557
|
expand: {
|
|
2347
2558
|
icon: "chevron-right"
|
|
2348
2559
|
}
|
|
2349
|
-
},
|
|
2560
|
+
}, rl = {
|
|
2350
2561
|
key: 0,
|
|
2351
2562
|
class: "q-dropdown-menu__extra"
|
|
2352
|
-
},
|
|
2563
|
+
}, dl = /* @__PURE__ */ I({
|
|
2353
2564
|
__name: "QDropdownMenuContent",
|
|
2354
2565
|
props: /* @__PURE__ */ G({
|
|
2355
|
-
activator: {
|
|
2566
|
+
activator: {},
|
|
2356
2567
|
appearance: { default: "regular" },
|
|
2357
2568
|
inline: { type: Boolean },
|
|
2358
2569
|
delay: { default: 500 },
|
|
2359
2570
|
placement: { default: "right-start" },
|
|
2360
2571
|
transition: { default: "fade" },
|
|
2361
|
-
class: {
|
|
2572
|
+
class: {},
|
|
2362
2573
|
items: {},
|
|
2363
2574
|
groups: { default: () => [] },
|
|
2364
2575
|
itemValue: { default: "key" },
|
|
2365
2576
|
itemLabel: { default: "label" },
|
|
2366
|
-
icons: { default: () =>
|
|
2577
|
+
icons: { default: () => il },
|
|
2367
2578
|
trigger: { default: "click" },
|
|
2368
2579
|
offset: { default: 0 },
|
|
2369
2580
|
crossOffset: { default: -5 },
|
|
@@ -2374,58 +2585,58 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2374
2585
|
}),
|
|
2375
2586
|
emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
|
|
2376
2587
|
setup(n, { emit: t }) {
|
|
2377
|
-
const e = n,
|
|
2378
|
-
let
|
|
2379
|
-
const
|
|
2380
|
-
function
|
|
2381
|
-
s.value =
|
|
2382
|
-
const E = e.items.find((
|
|
2383
|
-
E && (a.value = (E == null ? void 0 : E.items) ?? []), a.value.length || (
|
|
2384
|
-
}
|
|
2385
|
-
function
|
|
2386
|
-
|
|
2387
|
-
}
|
|
2388
|
-
function
|
|
2389
|
-
|
|
2390
|
-
}
|
|
2391
|
-
function
|
|
2392
|
-
|
|
2393
|
-
}
|
|
2394
|
-
function
|
|
2395
|
-
if (
|
|
2396
|
-
if (window.clearTimeout(
|
|
2397
|
-
|
|
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
|
+
$();
|
|
2398
2609
|
return;
|
|
2399
2610
|
}
|
|
2400
|
-
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
2401
|
-
|
|
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();
|
|
2402
2613
|
for (let E = 0; E < e.items.length; E++) {
|
|
2403
|
-
const
|
|
2404
|
-
if (
|
|
2614
|
+
const R = e.items[E];
|
|
2615
|
+
if (R[e.itemLabel] && R[e.itemLabel].toLowerCase().startsWith(r.value)) {
|
|
2405
2616
|
te(E);
|
|
2406
2617
|
break;
|
|
2407
2618
|
}
|
|
2408
2619
|
}
|
|
2409
2620
|
}
|
|
2410
|
-
|
|
2411
|
-
|
|
2621
|
+
b = window.setTimeout(function() {
|
|
2622
|
+
r.value = "";
|
|
2412
2623
|
}, 500);
|
|
2413
2624
|
}
|
|
2414
2625
|
}
|
|
2415
|
-
function
|
|
2626
|
+
function Q(S) {
|
|
2416
2627
|
var E;
|
|
2417
|
-
(E =
|
|
2628
|
+
(E = A.value) != null && E.contains(S.relatedTarget) || $();
|
|
2418
2629
|
}
|
|
2419
|
-
function
|
|
2420
|
-
var
|
|
2421
|
-
(
|
|
2630
|
+
function j() {
|
|
2631
|
+
var S;
|
|
2632
|
+
(S = m.value) == null || S.$el.focus();
|
|
2422
2633
|
}
|
|
2423
|
-
function te(
|
|
2634
|
+
function te(S) {
|
|
2424
2635
|
var E;
|
|
2425
|
-
(E =
|
|
2636
|
+
(E = m.value) == null || E.focusItem(S);
|
|
2426
2637
|
}
|
|
2427
|
-
return (
|
|
2428
|
-
"model-value":
|
|
2638
|
+
return (S, E) => (d(), C(y(me), {
|
|
2639
|
+
"model-value": l.value,
|
|
2429
2640
|
anchor: e.activator,
|
|
2430
2641
|
appearance: e.appearance,
|
|
2431
2642
|
inline: e.inline,
|
|
@@ -2434,40 +2645,40 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2434
2645
|
"cross-offset": c.value,
|
|
2435
2646
|
placement: e.placement,
|
|
2436
2647
|
transition: e.transition,
|
|
2437
|
-
class:
|
|
2648
|
+
class: T(e.class),
|
|
2438
2649
|
trigger: e.trigger,
|
|
2439
2650
|
"non-modal": "",
|
|
2440
2651
|
"scroll-lock": "",
|
|
2441
2652
|
persistent: "",
|
|
2442
|
-
"onUpdate:modelValue":
|
|
2443
|
-
onEnter:
|
|
2653
|
+
"onUpdate:modelValue": V,
|
|
2654
|
+
onEnter: j
|
|
2444
2655
|
}, {
|
|
2445
2656
|
default: _(() => [
|
|
2446
|
-
|
|
2657
|
+
x("div", {
|
|
2447
2658
|
ref_key: "contentRef",
|
|
2448
|
-
ref:
|
|
2659
|
+
ref: A,
|
|
2449
2660
|
"data-testid": "dropdown-content",
|
|
2450
2661
|
tabindex: "-1",
|
|
2451
|
-
onFocusout:
|
|
2452
|
-
onKeydown:
|
|
2662
|
+
onFocusout: Q,
|
|
2663
|
+
onKeydown: ne(D, ["stop"])
|
|
2453
2664
|
}, [
|
|
2454
|
-
|
|
2665
|
+
U(y(Be), {
|
|
2455
2666
|
ref_key: "listRef",
|
|
2456
|
-
ref:
|
|
2667
|
+
ref: m,
|
|
2457
2668
|
class: "q-dropdown-menu__items",
|
|
2458
2669
|
highlighted: s.value,
|
|
2459
2670
|
items: e.items,
|
|
2460
2671
|
groups: e.groups,
|
|
2461
2672
|
"item-label": e.itemLabel,
|
|
2462
2673
|
"item-value": e.itemValue,
|
|
2463
|
-
"onUpdate:modelValue":
|
|
2674
|
+
"onUpdate:modelValue": P
|
|
2464
2675
|
}, {
|
|
2465
|
-
item: _(({ item:
|
|
2466
|
-
p(
|
|
2676
|
+
item: _(({ item: R }) => [
|
|
2677
|
+
p(S.$slots, "item", { item: R })
|
|
2467
2678
|
]),
|
|
2468
|
-
"item.append": _(({ item:
|
|
2469
|
-
p(
|
|
2470
|
-
|
|
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)
|
|
2471
2682
|
])
|
|
2472
2683
|
]),
|
|
2473
2684
|
_: 3
|
|
@@ -2477,7 +2688,7 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2477
2688
|
_: 3
|
|
2478
2689
|
}, 8, ["model-value", "anchor", "appearance", "inline", "delay", "offset", "cross-offset", "placement", "transition", "class", "trigger"]));
|
|
2479
2690
|
}
|
|
2480
|
-
}),
|
|
2691
|
+
}), cl = /* @__PURE__ */ I({
|
|
2481
2692
|
inheritAttrs: !1,
|
|
2482
2693
|
__name: "QDropdownMenu",
|
|
2483
2694
|
props: /* @__PURE__ */ G({
|
|
@@ -2499,60 +2710,60 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2499
2710
|
}),
|
|
2500
2711
|
emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
|
|
2501
2712
|
setup(n, { emit: t }) {
|
|
2502
|
-
const e = n,
|
|
2713
|
+
const e = n, o = t, l = K(n, "modelValue");
|
|
2503
2714
|
function s(a) {
|
|
2504
|
-
|
|
2715
|
+
o("select", a);
|
|
2505
2716
|
}
|
|
2506
|
-
return (a,
|
|
2507
|
-
modelValue:
|
|
2508
|
-
"onUpdate:modelValue":
|
|
2717
|
+
return (a, r) => (d(), C(dl, Z(e, {
|
|
2718
|
+
modelValue: l.value,
|
|
2719
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => l.value = i),
|
|
2509
2720
|
onSelect: s
|
|
2510
2721
|
}), null, 16, ["modelValue"]));
|
|
2511
2722
|
}
|
|
2512
|
-
}),
|
|
2723
|
+
}), ul = L(cl), fl = {
|
|
2513
2724
|
key: 0,
|
|
2514
2725
|
class: "q-input-group__prepend"
|
|
2515
|
-
},
|
|
2726
|
+
}, pl = { key: 0 }, ml = {
|
|
2516
2727
|
key: 1,
|
|
2517
2728
|
class: "q-input-group__append"
|
|
2518
|
-
},
|
|
2729
|
+
}, hl = { key: 0 }, vl = /* @__PURE__ */ I({
|
|
2519
2730
|
__name: "QInputGroup",
|
|
2520
2731
|
props: {
|
|
2521
|
-
id: {
|
|
2522
|
-
label: {
|
|
2732
|
+
id: {},
|
|
2733
|
+
label: {},
|
|
2523
2734
|
required: { type: Boolean },
|
|
2524
|
-
prependIcon: {
|
|
2525
|
-
appendIcon: {
|
|
2735
|
+
prependIcon: {},
|
|
2736
|
+
appendIcon: {},
|
|
2526
2737
|
size: { default: "large" },
|
|
2527
|
-
class: {
|
|
2738
|
+
class: {}
|
|
2528
2739
|
},
|
|
2529
2740
|
setup(n) {
|
|
2530
2741
|
const t = n;
|
|
2531
|
-
return
|
|
2742
|
+
return Ne({
|
|
2532
2743
|
QField: {
|
|
2533
2744
|
size: "block"
|
|
2534
2745
|
}
|
|
2535
|
-
}), (e,
|
|
2746
|
+
}), (e, o) => (d(), C(y(Se), {
|
|
2536
2747
|
id: t.id,
|
|
2537
|
-
class:
|
|
2748
|
+
class: T(["q-input-group", t.class]),
|
|
2538
2749
|
label: t.label,
|
|
2539
2750
|
required: t.required,
|
|
2540
2751
|
size: t.size
|
|
2541
|
-
},
|
|
2752
|
+
}, pe({
|
|
2542
2753
|
default: _(() => [
|
|
2543
|
-
e.$slots.prepend || t.prependIcon ? (
|
|
2544
|
-
t.prependIcon ? (
|
|
2545
|
-
|
|
2546
|
-
])) :
|
|
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),
|
|
2547
2758
|
p(e.$slots, "prepend")
|
|
2548
|
-
])) :
|
|
2759
|
+
])) : w("", !0),
|
|
2549
2760
|
p(e.$slots, "default"),
|
|
2550
|
-
e.$slots.append || t.appendIcon ? (
|
|
2551
|
-
t.appendIcon ? (
|
|
2552
|
-
|
|
2553
|
-
])) :
|
|
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),
|
|
2554
2765
|
p(e.$slots, "append")
|
|
2555
|
-
])) :
|
|
2766
|
+
])) : w("", !0)
|
|
2556
2767
|
]),
|
|
2557
2768
|
_: 2
|
|
2558
2769
|
}, [
|
|
@@ -2565,24 +2776,24 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2565
2776
|
} : void 0
|
|
2566
2777
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
2567
2778
|
}
|
|
2568
|
-
}),
|
|
2779
|
+
}), yl = L(vl), bl = /* @__PURE__ */ I({
|
|
2569
2780
|
__name: "QLineLoader",
|
|
2570
2781
|
props: {
|
|
2571
|
-
class: {
|
|
2782
|
+
class: {}
|
|
2572
2783
|
},
|
|
2573
2784
|
setup(n) {
|
|
2574
2785
|
const t = n;
|
|
2575
|
-
return (e,
|
|
2576
|
-
class:
|
|
2786
|
+
return (e, o) => (d(), h("div", {
|
|
2787
|
+
class: T(["q-line-loader", t.class])
|
|
2577
2788
|
}, null, 2));
|
|
2578
2789
|
}
|
|
2579
|
-
}),
|
|
2790
|
+
}), gl = L(bl), _l = {
|
|
2580
2791
|
key: 0,
|
|
2581
2792
|
class: "q-popover__header"
|
|
2582
|
-
},
|
|
2793
|
+
}, $l = {
|
|
2583
2794
|
key: 1,
|
|
2584
2795
|
class: "q-popover__body"
|
|
2585
|
-
},
|
|
2796
|
+
}, kl = ["innerHTML"], wl = { key: 1 }, ql = /* @__PURE__ */ I({
|
|
2586
2797
|
inheritAttrs: !1,
|
|
2587
2798
|
__name: "QPopover",
|
|
2588
2799
|
props: /* @__PURE__ */ G({
|
|
@@ -2594,17 +2805,17 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2594
2805
|
html: { type: Boolean, default: !0 },
|
|
2595
2806
|
placement: { default: "right" },
|
|
2596
2807
|
text: {},
|
|
2597
|
-
title: {
|
|
2808
|
+
title: {}
|
|
2598
2809
|
}, {
|
|
2599
2810
|
modelValue: { type: Boolean },
|
|
2600
2811
|
modelModifiers: {}
|
|
2601
2812
|
}),
|
|
2602
2813
|
emits: ["update:modelValue"],
|
|
2603
2814
|
setup(n) {
|
|
2604
|
-
const t = n, e =
|
|
2605
|
-
return (
|
|
2815
|
+
const t = n, e = K(n, "modelValue");
|
|
2816
|
+
return (o, l) => (d(), C(y(me), {
|
|
2606
2817
|
modelValue: e.value,
|
|
2607
|
-
"onUpdate:modelValue":
|
|
2818
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
|
|
2608
2819
|
class: "q-popover",
|
|
2609
2820
|
trigger: "click",
|
|
2610
2821
|
anchor: t.anchor,
|
|
@@ -2615,31 +2826,31 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2615
2826
|
placement: t.placement
|
|
2616
2827
|
}, {
|
|
2617
2828
|
default: _(() => [
|
|
2618
|
-
t.title ||
|
|
2619
|
-
|
|
2620
|
-
p(
|
|
2621
|
-
])) :
|
|
2622
|
-
t.text ||
|
|
2623
|
-
t.html ? (
|
|
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", {
|
|
2624
2835
|
key: 0,
|
|
2625
2836
|
innerHTML: t.text
|
|
2626
|
-
}, null, 8,
|
|
2627
|
-
p(
|
|
2628
|
-
])) :
|
|
2837
|
+
}, null, 8, kl)) : (d(), h("span", wl, z(t.text), 1)),
|
|
2838
|
+
p(o.$slots, "body")
|
|
2839
|
+
])) : w("", !0)
|
|
2629
2840
|
]),
|
|
2630
2841
|
_: 3
|
|
2631
2842
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
2632
2843
|
}
|
|
2633
|
-
}),
|
|
2844
|
+
}), xl = L(ql), qt = {
|
|
2634
2845
|
emptyMessage: "Select a field to view details."
|
|
2635
|
-
},
|
|
2846
|
+
}, xt = {
|
|
2636
2847
|
open: {
|
|
2637
2848
|
icon: "minus-box"
|
|
2638
2849
|
},
|
|
2639
2850
|
close: {
|
|
2640
2851
|
icon: "plus-box"
|
|
2641
2852
|
}
|
|
2642
|
-
},
|
|
2853
|
+
}, Cl = { class: "q-property-list__table" }, Il = /* @__PURE__ */ I({
|
|
2643
2854
|
__name: "QPropertyList",
|
|
2644
2855
|
props: {
|
|
2645
2856
|
fields: { default: () => [] },
|
|
@@ -2648,246 +2859,254 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2648
2859
|
panelPosition: { default: "bottom" },
|
|
2649
2860
|
groups: { default: () => [] },
|
|
2650
2861
|
readonly: { type: Boolean },
|
|
2651
|
-
class: {
|
|
2652
|
-
icons: { default: () =>
|
|
2653
|
-
texts: { default: () =>
|
|
2862
|
+
class: {},
|
|
2863
|
+
icons: { default: () => xt },
|
|
2864
|
+
texts: { default: () => qt }
|
|
2654
2865
|
},
|
|
2655
|
-
emits: ["field-change"],
|
|
2866
|
+
emits: ["field-change", "select-field"],
|
|
2656
2867
|
setup(n, { emit: t }) {
|
|
2657
|
-
const e = n,
|
|
2658
|
-
(
|
|
2659
|
-
) : [{ id: "", title: "" }]), i =
|
|
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(() => [
|
|
2660
2871
|
e.class,
|
|
2661
2872
|
{
|
|
2662
2873
|
"q-property-list--side-panel": e.panelPosition === "right"
|
|
2663
2874
|
}
|
|
2664
2875
|
]);
|
|
2665
2876
|
function c() {
|
|
2666
|
-
var
|
|
2667
|
-
(
|
|
2877
|
+
var $;
|
|
2878
|
+
($ = a.value) != null && $.contains(document.activeElement) || (s.value = void 0);
|
|
2668
2879
|
}
|
|
2669
|
-
function
|
|
2670
|
-
return
|
|
2880
|
+
function b($) {
|
|
2881
|
+
return $ ? e.fields.filter((V) => V.group === $) : e.fields;
|
|
2671
2882
|
}
|
|
2672
|
-
function
|
|
2673
|
-
const
|
|
2674
|
-
|
|
2883
|
+
function m($) {
|
|
2884
|
+
const V = l.value.indexOf($);
|
|
2885
|
+
V === -1 ? l.value.push($) : l.value.splice(V, 1);
|
|
2675
2886
|
}
|
|
2676
|
-
function
|
|
2677
|
-
var
|
|
2678
|
-
const
|
|
2887
|
+
function A($) {
|
|
2888
|
+
var Q;
|
|
2889
|
+
const V = $.group && !l.value.includes($.group), D = ((Q = s.value) == null ? void 0 : Q.id) === $.id;
|
|
2679
2890
|
return [
|
|
2680
2891
|
{
|
|
2681
|
-
"q-property-list__row--closed":
|
|
2682
|
-
"q-property-list__row--selected":
|
|
2892
|
+
"q-property-list__row--closed": V,
|
|
2893
|
+
"q-property-list__row--selected": D
|
|
2683
2894
|
}
|
|
2684
2895
|
];
|
|
2685
2896
|
}
|
|
2686
|
-
function
|
|
2687
|
-
s.value =
|
|
2897
|
+
function P($) {
|
|
2898
|
+
s.value = $, o("select-field", s.value.id);
|
|
2688
2899
|
}
|
|
2689
|
-
function
|
|
2690
|
-
e.readonly || (
|
|
2900
|
+
function N($, V) {
|
|
2901
|
+
e.readonly || ($.props.readonly ?? !1) || o("field-change", $, V);
|
|
2691
2902
|
}
|
|
2692
|
-
return (
|
|
2903
|
+
return ($, V) => (d(), h("div", {
|
|
2693
2904
|
ref_key: "componentRoot",
|
|
2694
2905
|
ref: a,
|
|
2695
2906
|
tabindex: "0",
|
|
2696
|
-
class:
|
|
2907
|
+
class: T(["q-property-list", i.value]),
|
|
2697
2908
|
onFocusout: c
|
|
2698
2909
|
}, [
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
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" })
|
|
2703
2914
|
])
|
|
2704
2915
|
], -1)),
|
|
2705
|
-
|
|
2706
|
-
(
|
|
2707
|
-
key:
|
|
2916
|
+
x("tbody", null, [
|
|
2917
|
+
(d(!0), h(W, null, ye(r.value, (D) => (d(), h(W, {
|
|
2918
|
+
key: D.id
|
|
2708
2919
|
}, [
|
|
2709
|
-
|
|
2920
|
+
D.title ? (d(), C(y(It), {
|
|
2710
2921
|
key: 0,
|
|
2711
|
-
id:
|
|
2712
|
-
title:
|
|
2922
|
+
id: D.id,
|
|
2923
|
+
title: D.title,
|
|
2713
2924
|
icons: e.icons,
|
|
2714
2925
|
"no-toggle": e.noToggle,
|
|
2715
|
-
onToggleGroup:
|
|
2716
|
-
}, null, 8, ["id", "title", "icons", "no-toggle"])) :
|
|
2717
|
-
(
|
|
2718
|
-
key:
|
|
2719
|
-
class: A(
|
|
2720
|
-
field:
|
|
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), {
|
|
2929
|
+
key: Q.id,
|
|
2930
|
+
class: T(A(Q)),
|
|
2931
|
+
field: Q,
|
|
2932
|
+
"model-value": Q.props.modelValue,
|
|
2721
2933
|
readonly: e.readonly,
|
|
2722
|
-
onFocus:
|
|
2723
|
-
|
|
2934
|
+
onFocus: P,
|
|
2935
|
+
"onUpdate:modelValue": (j) => N(Q, j)
|
|
2724
2936
|
}, {
|
|
2725
2937
|
default: _(() => [
|
|
2726
|
-
p(
|
|
2938
|
+
p($.$slots, Q.id, { field: Q })
|
|
2727
2939
|
]),
|
|
2728
2940
|
_: 2
|
|
2729
|
-
}, 1032, ["class", "field", "readonly"]))), 128))
|
|
2941
|
+
}, 1032, ["class", "field", "model-value", "readonly", "onUpdate:modelValue"]))), 128))
|
|
2730
2942
|
], 64))), 128))
|
|
2731
2943
|
])
|
|
2732
2944
|
]),
|
|
2733
|
-
e.noPanel ?
|
|
2945
|
+
e.noPanel ? w("", !0) : (d(), C(y(Lt), {
|
|
2734
2946
|
key: 0,
|
|
2735
2947
|
field: s.value,
|
|
2736
2948
|
texts: e.texts
|
|
2737
2949
|
}, {
|
|
2738
2950
|
default: _(() => [
|
|
2739
|
-
s.value ? p(
|
|
2951
|
+
s.value ? p($.$slots, "panel", {
|
|
2740
2952
|
key: 0,
|
|
2741
2953
|
field: s.value
|
|
2742
|
-
}) :
|
|
2954
|
+
}) : w("", !0)
|
|
2743
2955
|
]),
|
|
2744
2956
|
_: 3
|
|
2745
2957
|
}, 8, ["field", "texts"]))
|
|
2746
2958
|
], 34));
|
|
2747
2959
|
}
|
|
2748
|
-
}),
|
|
2960
|
+
}), Ll = ["data-group"], Sl = {
|
|
2749
2961
|
key: 0,
|
|
2750
2962
|
class: "q-property-list-field__container"
|
|
2751
|
-
},
|
|
2963
|
+
}, Bl = /* @__PURE__ */ I({
|
|
2752
2964
|
__name: "QPropertyListRow",
|
|
2753
|
-
props: {
|
|
2965
|
+
props: /* @__PURE__ */ G({
|
|
2754
2966
|
field: {},
|
|
2755
2967
|
class: {},
|
|
2756
2968
|
readonly: { type: Boolean }
|
|
2757
|
-
},
|
|
2758
|
-
|
|
2969
|
+
}, {
|
|
2970
|
+
modelValue: {},
|
|
2971
|
+
modelModifiers: {}
|
|
2972
|
+
}),
|
|
2973
|
+
emits: /* @__PURE__ */ G(["focus"], ["update:modelValue"]),
|
|
2759
2974
|
setup(n, { emit: t }) {
|
|
2760
|
-
const e = n,
|
|
2761
|
-
var
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
}
|
|
2771
|
-
const c = 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(() => ({
|
|
2772
2985
|
...e.field.props,
|
|
2773
|
-
readonly:
|
|
2986
|
+
readonly: r.value
|
|
2774
2987
|
}));
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
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
|
|
2778
2998
|
}, [
|
|
2779
|
-
|
|
2780
|
-
class:
|
|
2781
|
-
onClick:
|
|
2782
|
-
},
|
|
2783
|
-
|
|
2999
|
+
x("td", {
|
|
3000
|
+
class: T(a.value),
|
|
3001
|
+
onClick: ne(c, ["prevent", "stop"])
|
|
3002
|
+
}, z(e.field.label), 3),
|
|
3003
|
+
x("td", {
|
|
2784
3004
|
class: "q-property-list__cell",
|
|
2785
|
-
onClick:
|
|
3005
|
+
onClick: ne(c, ["prevent", "stop"])
|
|
2786
3006
|
}, [
|
|
2787
|
-
p(
|
|
2788
|
-
e.field.component ? (
|
|
2789
|
-
(
|
|
2790
|
-
|
|
2791
|
-
"onUpdate:modelValue":
|
|
2792
|
-
|
|
2793
|
-
|
|
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)
|
|
2794
3017
|
])
|
|
2795
3018
|
])
|
|
2796
|
-
],
|
|
3019
|
+
], 42, Ll));
|
|
2797
3020
|
}
|
|
2798
|
-
}),
|
|
3021
|
+
}), Vl = ["data-key", "aria-labelledby"], Tl = ["id"], Al = { class: "q-property-list-group__content" }, El = /* @__PURE__ */ I({
|
|
2799
3022
|
__name: "QPropertyListGroup",
|
|
2800
3023
|
props: {
|
|
2801
3024
|
id: {},
|
|
2802
3025
|
title: {},
|
|
2803
|
-
noToggle: { type: Boolean
|
|
2804
|
-
icons: { default: () =>
|
|
3026
|
+
noToggle: { type: Boolean },
|
|
3027
|
+
icons: { default: () => xt },
|
|
2805
3028
|
texts: {}
|
|
2806
3029
|
},
|
|
2807
3030
|
emits: ["toggle-group"],
|
|
2808
3031
|
setup(n, { emit: t }) {
|
|
2809
|
-
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(() => [
|
|
2810
3033
|
"q-property-list-group",
|
|
2811
3034
|
{
|
|
2812
3035
|
"q-property-list-group--no-toggle": e.noToggle
|
|
2813
3036
|
}
|
|
2814
3037
|
]);
|
|
2815
3038
|
function i() {
|
|
2816
|
-
e.noToggle || (
|
|
3039
|
+
e.noToggle || (l.value = !l.value, o("toggle-group", e.id));
|
|
2817
3040
|
}
|
|
2818
|
-
return (c,
|
|
2819
|
-
class:
|
|
3041
|
+
return (c, b) => (d(), h("tr", {
|
|
3042
|
+
class: T(r.value),
|
|
2820
3043
|
role: "group",
|
|
2821
3044
|
"data-key": e.id,
|
|
2822
|
-
"aria-labelledby":
|
|
3045
|
+
"aria-labelledby": y(s),
|
|
2823
3046
|
onClick: i
|
|
2824
3047
|
}, [
|
|
2825
|
-
|
|
2826
|
-
id:
|
|
3048
|
+
x("td", {
|
|
3049
|
+
id: y(s),
|
|
2827
3050
|
colspan: "2"
|
|
2828
3051
|
}, [
|
|
2829
|
-
|
|
2830
|
-
e.noToggle ?
|
|
3052
|
+
x("div", Al, [
|
|
3053
|
+
e.noToggle ? w("", !0) : (d(), C(y(re), {
|
|
2831
3054
|
key: 0,
|
|
2832
3055
|
"b-style": "tertiary",
|
|
2833
3056
|
borderless: "",
|
|
2834
3057
|
onClick: i
|
|
2835
3058
|
}, {
|
|
2836
3059
|
default: _(() => [
|
|
2837
|
-
|
|
3060
|
+
U(y(X), se(fe(a.value)), null, 16)
|
|
2838
3061
|
]),
|
|
2839
3062
|
_: 1
|
|
2840
3063
|
})),
|
|
2841
|
-
|
|
3064
|
+
ie(" " + z(e.title), 1)
|
|
2842
3065
|
])
|
|
2843
|
-
], 8,
|
|
2844
|
-
], 10,
|
|
3066
|
+
], 8, Tl)
|
|
3067
|
+
], 10, Vl));
|
|
2845
3068
|
}
|
|
2846
|
-
}),
|
|
3069
|
+
}), Dl = { class: "q-property-list-panel__container" }, Ql = { class: "q-property-list-panel__label" }, zl = { class: "q-property-list-panel__description" }, Fl = {
|
|
2847
3070
|
key: 1,
|
|
2848
3071
|
class: "q-property-list-panel__empty"
|
|
2849
|
-
},
|
|
3072
|
+
}, Ml = /* @__PURE__ */ I({
|
|
2850
3073
|
__name: "QPropertyListPanel",
|
|
2851
3074
|
props: {
|
|
2852
|
-
field: {
|
|
3075
|
+
field: {},
|
|
2853
3076
|
icons: {},
|
|
2854
|
-
texts: { default: () =>
|
|
3077
|
+
texts: { default: () => qt }
|
|
2855
3078
|
},
|
|
2856
3079
|
setup(n) {
|
|
2857
3080
|
const t = n;
|
|
2858
|
-
return (e,
|
|
3081
|
+
return (e, o) => (d(), h("div", Dl, [
|
|
2859
3082
|
t.field ? p(e.$slots, "default", { key: 0 }, () => [
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
]) : (
|
|
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))
|
|
2863
3086
|
]));
|
|
2864
3087
|
}
|
|
2865
|
-
}),
|
|
3088
|
+
}), Ol = L(Il), Ct = L(Bl), It = L(El), Lt = L(Ml), Ul = {
|
|
3089
|
+
...Ge,
|
|
2866
3090
|
placeholder: "Choose...",
|
|
2867
|
-
clearValue: "Clear value",
|
|
2868
3091
|
showOptions: "Show options"
|
|
2869
|
-
},
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
clear: {
|
|
2874
|
-
icon: "close"
|
|
2875
|
-
}
|
|
2876
|
-
}, ko = {
|
|
3092
|
+
}, Pl = {
|
|
3093
|
+
...Le,
|
|
3094
|
+
...He
|
|
3095
|
+
}, Nl = {
|
|
2877
3096
|
key: 0,
|
|
2878
3097
|
class: "q-select__value"
|
|
2879
|
-
},
|
|
3098
|
+
}, Rl = {
|
|
2880
3099
|
key: 1,
|
|
2881
3100
|
class: "q-select__placeholder"
|
|
2882
|
-
},
|
|
3101
|
+
}, Gl = ["data-key"], Hl = {
|
|
2883
3102
|
key: 0,
|
|
2884
3103
|
class: "q-select__loader"
|
|
2885
|
-
},
|
|
3104
|
+
}, Kl = /* @__PURE__ */ I({
|
|
2886
3105
|
inheritAttrs: !1,
|
|
2887
3106
|
__name: "QSelect",
|
|
2888
3107
|
props: /* @__PURE__ */ G({
|
|
2889
|
-
id: {
|
|
2890
|
-
label: {
|
|
3108
|
+
id: {},
|
|
3109
|
+
label: {},
|
|
2891
3110
|
clearable: { type: Boolean },
|
|
2892
3111
|
readonly: { type: Boolean },
|
|
2893
3112
|
disabled: { type: Boolean },
|
|
@@ -2897,11 +3116,11 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2897
3116
|
groups: { default: () => [] },
|
|
2898
3117
|
itemValue: { default: "key" },
|
|
2899
3118
|
itemLabel: { default: "label" },
|
|
2900
|
-
emptyValue: { type: [String, Number, Boolean, Symbol]
|
|
2901
|
-
size: {
|
|
2902
|
-
class: {
|
|
2903
|
-
icons: { default: () =>
|
|
2904
|
-
texts: { default: () =>
|
|
3119
|
+
emptyValue: { type: [String, Number, Boolean, Symbol] },
|
|
3120
|
+
size: {},
|
|
3121
|
+
class: {},
|
|
3122
|
+
icons: { default: () => Pl },
|
|
3123
|
+
texts: { default: () => Ul }
|
|
2905
3124
|
}, {
|
|
2906
3125
|
modelValue: {
|
|
2907
3126
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -2910,43 +3129,43 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2910
3129
|
}),
|
|
2911
3130
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2912
3131
|
setup(n, { emit: t }) {
|
|
2913
|
-
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(
|
|
2914
3133
|
() => {
|
|
2915
|
-
var
|
|
2916
|
-
return (
|
|
3134
|
+
var u;
|
|
3135
|
+
return (u = e.items) == null ? void 0 : u.find((q) => q[e.itemValue] === l.value);
|
|
2917
3136
|
}
|
|
2918
|
-
),
|
|
2919
|
-
() =>
|
|
2920
|
-
),
|
|
3137
|
+
), A = g(
|
|
3138
|
+
() => m.value ? m.value[e.itemLabel] : ""
|
|
3139
|
+
), P = g(
|
|
2921
3140
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2922
3141
|
);
|
|
2923
|
-
function
|
|
2924
|
-
|
|
3142
|
+
function N(u) {
|
|
3143
|
+
l.value = u, Q();
|
|
2925
3144
|
}
|
|
2926
|
-
function
|
|
2927
|
-
|
|
3145
|
+
function $() {
|
|
3146
|
+
P.value && (N(e.emptyValue), ae());
|
|
2928
3147
|
}
|
|
2929
|
-
function
|
|
2930
|
-
var q,
|
|
2931
|
-
!((q = c.value) != null && q.contains(
|
|
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();
|
|
2932
3151
|
}
|
|
2933
|
-
function
|
|
2934
|
-
s.value || (
|
|
3152
|
+
function D() {
|
|
3153
|
+
s.value || (o("before-show"), s.value = !0);
|
|
2935
3154
|
}
|
|
2936
|
-
function
|
|
2937
|
-
s.value && (
|
|
3155
|
+
function Q() {
|
|
3156
|
+
s.value && (o("before-hide"), s.value = !1);
|
|
2938
3157
|
}
|
|
2939
|
-
function
|
|
2940
|
-
e.readonly || e.disabled || (s.value ?
|
|
3158
|
+
function j() {
|
|
3159
|
+
e.readonly || e.disabled || (s.value ? Q() : D());
|
|
2941
3160
|
}
|
|
2942
3161
|
let te;
|
|
2943
|
-
function
|
|
2944
|
-
if (!(!
|
|
2945
|
-
if (window.clearTimeout(te), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
2946
|
-
a.value +=
|
|
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();
|
|
2947
3166
|
for (let q = 0; q < e.items.length; q++)
|
|
2948
3167
|
if (e.items[q][e.itemLabel].toLowerCase().startsWith(a.value)) {
|
|
2949
|
-
|
|
3168
|
+
k(q);
|
|
2950
3169
|
break;
|
|
2951
3170
|
}
|
|
2952
3171
|
}
|
|
@@ -2956,36 +3175,36 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2956
3175
|
}
|
|
2957
3176
|
}
|
|
2958
3177
|
function E() {
|
|
2959
|
-
var
|
|
2960
|
-
e.loading ? (
|
|
3178
|
+
var u;
|
|
3179
|
+
e.loading ? (u = c.value) == null || u.focus() : ce(), o("show");
|
|
2961
3180
|
}
|
|
2962
|
-
function
|
|
2963
|
-
|
|
3181
|
+
function R() {
|
|
3182
|
+
ae(), o("hide");
|
|
2964
3183
|
}
|
|
2965
|
-
function
|
|
2966
|
-
var
|
|
2967
|
-
(q = (
|
|
3184
|
+
function ae() {
|
|
3185
|
+
var u, q;
|
|
3186
|
+
(q = (u = r.value) == null ? void 0 : u.fieldRef) == null || q.focus();
|
|
2968
3187
|
}
|
|
2969
3188
|
function ce() {
|
|
2970
|
-
var
|
|
2971
|
-
(
|
|
3189
|
+
var u;
|
|
3190
|
+
(u = i.value) == null || u.$el.focus();
|
|
2972
3191
|
}
|
|
2973
|
-
function
|
|
3192
|
+
function k(u) {
|
|
2974
3193
|
var q;
|
|
2975
|
-
(q = i.value) == null || q.focusItem(
|
|
3194
|
+
(q = i.value) == null || q.focusItem(u);
|
|
2976
3195
|
}
|
|
2977
|
-
return
|
|
3196
|
+
return Y(
|
|
2978
3197
|
() => e.loading,
|
|
2979
|
-
(
|
|
2980
|
-
!
|
|
3198
|
+
(u) => {
|
|
3199
|
+
!u && s.value && le(ce);
|
|
2981
3200
|
}
|
|
2982
|
-
), (
|
|
2983
|
-
var
|
|
2984
|
-
return
|
|
2985
|
-
|
|
3201
|
+
), (u, q) => {
|
|
3202
|
+
var O, H;
|
|
3203
|
+
return d(), h(W, null, [
|
|
3204
|
+
U(y(Se), Z({
|
|
2986
3205
|
id: e.id,
|
|
2987
3206
|
ref_key: "triggerEl",
|
|
2988
|
-
ref:
|
|
3207
|
+
ref: r,
|
|
2989
3208
|
label: e.label,
|
|
2990
3209
|
required: e.required,
|
|
2991
3210
|
role: "combobox",
|
|
@@ -2994,8 +3213,7 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
2994
3213
|
"q-select",
|
|
2995
3214
|
{
|
|
2996
3215
|
"q-select--readonly": e.readonly,
|
|
2997
|
-
"q-select--disabled": e.disabled
|
|
2998
|
-
"q-select--expanded": s.value
|
|
3216
|
+
"q-select--disabled": e.disabled
|
|
2999
3217
|
},
|
|
3000
3218
|
e.class
|
|
3001
3219
|
],
|
|
@@ -3005,27 +3223,19 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
3005
3223
|
"aria-expanded": s.value,
|
|
3006
3224
|
"aria-haspopup": "listbox",
|
|
3007
3225
|
size: e.size
|
|
3008
|
-
},
|
|
3009
|
-
onClick:
|
|
3010
|
-
onKeydown:
|
|
3011
|
-
}),
|
|
3226
|
+
}, u.$attrs, {
|
|
3227
|
+
onClick: j,
|
|
3228
|
+
onKeydown: ne(S, ["stop"])
|
|
3229
|
+
}), pe({
|
|
3012
3230
|
append: _(() => [
|
|
3013
|
-
p(
|
|
3014
|
-
|
|
3231
|
+
p(u.$slots, "append"),
|
|
3232
|
+
P.value && l.value ? (d(), C(y(wt), {
|
|
3015
3233
|
key: 0,
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
onClick: g
|
|
3022
|
-
}, {
|
|
3023
|
-
default: _(() => [
|
|
3024
|
-
O(h(N), J(se(e.icons.clear)), null, 16)
|
|
3025
|
-
]),
|
|
3026
|
-
_: 1
|
|
3027
|
-
}, 8, ["aria-label"])) : $("", !0),
|
|
3028
|
-
e.readonly ? $("", !0) : (u(), I(h(ae), {
|
|
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), {
|
|
3029
3239
|
key: 1,
|
|
3030
3240
|
class: "q-select__chevron",
|
|
3031
3241
|
"aria-label": e.texts.showOptions,
|
|
@@ -3033,135 +3243,125 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
3033
3243
|
borderless: "",
|
|
3034
3244
|
tabindex: "-1",
|
|
3035
3245
|
disabled: e.disabled,
|
|
3036
|
-
onClick:
|
|
3246
|
+
onClick: j
|
|
3037
3247
|
}, {
|
|
3038
3248
|
default: _(() => [
|
|
3039
|
-
|
|
3249
|
+
U(y(xe), {
|
|
3250
|
+
"model-value": s.value,
|
|
3251
|
+
icons: e.icons
|
|
3252
|
+
}, null, 8, ["model-value", "icons"])
|
|
3040
3253
|
]),
|
|
3041
3254
|
_: 1
|
|
3042
3255
|
}, 8, ["aria-label", "disabled"]))
|
|
3043
3256
|
]),
|
|
3044
3257
|
default: _(() => [
|
|
3045
|
-
|
|
3046
|
-
!e.readonly && !e.disabled ? (
|
|
3047
|
-
|
|
3048
|
-
], 64)) :
|
|
3049
|
-
])) : (
|
|
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))
|
|
3050
3263
|
]),
|
|
3051
3264
|
_: 2
|
|
3052
3265
|
}, [
|
|
3053
|
-
(
|
|
3266
|
+
(O = m.value) != null && O.icon || u.$slots.prepend ? {
|
|
3054
3267
|
name: "prepend",
|
|
3055
3268
|
fn: _(() => {
|
|
3056
|
-
var
|
|
3269
|
+
var J, ee;
|
|
3057
3270
|
return [
|
|
3058
|
-
p(
|
|
3059
|
-
(
|
|
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)
|
|
3060
3273
|
];
|
|
3061
3274
|
}),
|
|
3062
3275
|
key: "0"
|
|
3063
3276
|
} : void 0,
|
|
3064
|
-
|
|
3277
|
+
u.$slots.extras ? {
|
|
3065
3278
|
name: "extras",
|
|
3066
3279
|
fn: _(() => [
|
|
3067
|
-
p(
|
|
3280
|
+
p(u.$slots, "extras")
|
|
3068
3281
|
]),
|
|
3069
3282
|
key: "1"
|
|
3070
3283
|
} : void 0
|
|
3071
3284
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
3072
|
-
|
|
3285
|
+
U(y(me), {
|
|
3073
3286
|
modelValue: s.value,
|
|
3074
|
-
"onUpdate:modelValue": q[0] || (q[0] = (
|
|
3287
|
+
"onUpdate:modelValue": q[0] || (q[0] = (J) => s.value = J),
|
|
3075
3288
|
spy: "",
|
|
3076
3289
|
trigger: "manual",
|
|
3077
3290
|
placement: "bottom-start",
|
|
3078
3291
|
width: "anchor",
|
|
3079
3292
|
"scroll-lock": "",
|
|
3080
|
-
anchor: (
|
|
3293
|
+
anchor: (H = r.value) == null ? void 0 : H.$el,
|
|
3081
3294
|
offset: 2,
|
|
3082
3295
|
onEnter: E,
|
|
3083
|
-
onLeave:
|
|
3296
|
+
onLeave: R
|
|
3084
3297
|
}, {
|
|
3085
3298
|
default: _(() => [
|
|
3086
|
-
|
|
3299
|
+
x("div", {
|
|
3087
3300
|
ref_key: "contentRef",
|
|
3088
3301
|
ref: c,
|
|
3089
3302
|
"data-testid": "combobox-dropdown",
|
|
3090
3303
|
"data-key": e.id,
|
|
3091
3304
|
class: "q-select__body",
|
|
3092
3305
|
tabindex: "-1",
|
|
3093
|
-
onFocusout:
|
|
3094
|
-
onKeydown:
|
|
3306
|
+
onFocusout: V,
|
|
3307
|
+
onKeydown: ne(S, ["stop"])
|
|
3095
3308
|
}, [
|
|
3096
|
-
p(
|
|
3097
|
-
e.loading ? (
|
|
3098
|
-
|
|
3099
|
-
])) : (
|
|
3309
|
+
p(u.$slots, "body.prepend"),
|
|
3310
|
+
e.loading ? (d(), h("div", Hl, [
|
|
3311
|
+
U(y($e), { size: 24 })
|
|
3312
|
+
])) : (d(), C(y(Be), {
|
|
3100
3313
|
key: 1,
|
|
3101
3314
|
ref_key: "listRef",
|
|
3102
3315
|
ref: i,
|
|
3103
3316
|
class: "q-select__items",
|
|
3104
3317
|
selectable: "",
|
|
3105
|
-
"model-value":
|
|
3318
|
+
"model-value": l.value,
|
|
3106
3319
|
items: e.items,
|
|
3107
|
-
groups:
|
|
3320
|
+
groups: u.groups,
|
|
3108
3321
|
"item-label": e.itemLabel,
|
|
3109
3322
|
"item-value": e.itemValue,
|
|
3110
|
-
"onUpdate:modelValue":
|
|
3323
|
+
"onUpdate:modelValue": N
|
|
3111
3324
|
}, {
|
|
3112
|
-
item: _(({ item:
|
|
3113
|
-
p(
|
|
3325
|
+
item: _(({ item: J }) => [
|
|
3326
|
+
p(u.$slots, "item", { item: J })
|
|
3114
3327
|
]),
|
|
3115
3328
|
_: 3
|
|
3116
3329
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
3117
|
-
p(
|
|
3118
|
-
], 40,
|
|
3330
|
+
p(u.$slots, "body.append")
|
|
3331
|
+
], 40, Gl)
|
|
3119
3332
|
]),
|
|
3120
3333
|
_: 3
|
|
3121
3334
|
}, 8, ["modelValue", "anchor"])
|
|
3122
3335
|
], 64);
|
|
3123
3336
|
};
|
|
3124
3337
|
}
|
|
3125
|
-
}),
|
|
3338
|
+
}), Wl = L(Kl), jl = /* @__PURE__ */ I({
|
|
3126
3339
|
__name: "QSkeletonLoader",
|
|
3127
3340
|
props: {
|
|
3128
|
-
type: {
|
|
3129
|
-
width: {
|
|
3130
|
-
height: {
|
|
3341
|
+
type: {},
|
|
3342
|
+
width: {},
|
|
3343
|
+
height: {}
|
|
3131
3344
|
},
|
|
3132
3345
|
setup(n) {
|
|
3133
|
-
const t = n, e =
|
|
3134
|
-
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;
|
|
3135
3348
|
return {
|
|
3136
|
-
width:
|
|
3349
|
+
width: l,
|
|
3137
3350
|
height: s
|
|
3138
3351
|
};
|
|
3139
3352
|
});
|
|
3140
|
-
return (
|
|
3141
|
-
class:
|
|
3142
|
-
style:
|
|
3353
|
+
return (l, s) => (d(), h("div", {
|
|
3354
|
+
class: T(["q-skeleton-loader", e.value]),
|
|
3355
|
+
style: ue(o.value)
|
|
3143
3356
|
}, s[0] || (s[0] = [
|
|
3144
|
-
|
|
3357
|
+
x("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
3145
3358
|
]), 6));
|
|
3146
3359
|
}
|
|
3147
|
-
}),
|
|
3148
|
-
__name: "QThemeProvider",
|
|
3149
|
-
props: {
|
|
3150
|
-
theme: {}
|
|
3151
|
-
},
|
|
3152
|
-
setup(n) {
|
|
3153
|
-
const t = n;
|
|
3154
|
-
return (e, l) => (u(), m("div", {
|
|
3155
|
-
class: A(["q-theme-provider", `q-theme--${t.theme}`])
|
|
3156
|
-
}, [
|
|
3157
|
-
p(e.$slots, "default")
|
|
3158
|
-
], 2));
|
|
3159
|
-
}
|
|
3160
|
-
}), Vo = C(Co), To = ["innerHTML"], Ao = /* @__PURE__ */ S({
|
|
3360
|
+
}), Xl = L(jl), Yl = ["innerHTML"], Zl = /* @__PURE__ */ I({
|
|
3161
3361
|
__name: "QTooltip",
|
|
3162
3362
|
props: /* @__PURE__ */ G({
|
|
3163
|
-
id: {
|
|
3164
|
-
anchor: {
|
|
3363
|
+
id: {},
|
|
3364
|
+
anchor: {},
|
|
3165
3365
|
appearance: { default: "inverted" },
|
|
3166
3366
|
arrow: { type: Boolean, default: !0 },
|
|
3167
3367
|
attach: { default: "body" },
|
|
@@ -3171,22 +3371,22 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
3171
3371
|
html: { type: Boolean, default: !0 },
|
|
3172
3372
|
placement: { default: "right" },
|
|
3173
3373
|
text: {},
|
|
3174
|
-
icon: {
|
|
3374
|
+
icon: {},
|
|
3175
3375
|
trigger: { default: "hover" },
|
|
3176
|
-
class: {
|
|
3376
|
+
class: {}
|
|
3177
3377
|
}, {
|
|
3178
3378
|
modelValue: { type: Boolean },
|
|
3179
3379
|
modelModifiers: {}
|
|
3180
3380
|
}),
|
|
3181
3381
|
emits: ["update:modelValue"],
|
|
3182
3382
|
setup(n) {
|
|
3183
|
-
const t = n, e =
|
|
3184
|
-
return (
|
|
3185
|
-
p(
|
|
3186
|
-
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) }
|
|
3187
3387
|
}),
|
|
3188
|
-
|
|
3189
|
-
id:
|
|
3388
|
+
U(y(me), {
|
|
3389
|
+
id: y(o),
|
|
3190
3390
|
"model-value": e.value,
|
|
3191
3391
|
anchor: t.anchor,
|
|
3192
3392
|
role: "tooltip",
|
|
@@ -3195,20 +3395,20 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
3195
3395
|
arrow: t.arrow,
|
|
3196
3396
|
attach: t.attach,
|
|
3197
3397
|
inline: t.inline,
|
|
3198
|
-
class:
|
|
3398
|
+
class: T(["q-tooltip", t.class]),
|
|
3199
3399
|
delay: t.delay,
|
|
3200
3400
|
disabled: t.disabled,
|
|
3201
3401
|
placement: t.placement,
|
|
3202
3402
|
trigger: t.trigger
|
|
3203
3403
|
}, {
|
|
3204
3404
|
default: _(() => [
|
|
3205
|
-
p(
|
|
3206
|
-
t.icon ? (
|
|
3207
|
-
t.html ? (
|
|
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", {
|
|
3208
3408
|
key: 1,
|
|
3209
3409
|
innerHTML: t.text
|
|
3210
|
-
}, null, 8,
|
|
3211
|
-
|
|
3410
|
+
}, null, 8, Yl)) : (d(), h(W, { key: 2 }, [
|
|
3411
|
+
ie(z(t.text), 1)
|
|
3212
3412
|
], 64))
|
|
3213
3413
|
])
|
|
3214
3414
|
]),
|
|
@@ -3216,131 +3416,84 @@ const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
|
3216
3416
|
}, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
3217
3417
|
], 64));
|
|
3218
3418
|
}
|
|
3219
|
-
}),
|
|
3419
|
+
}), Jl = L(Zl), es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3220
3420
|
__proto__: null,
|
|
3221
|
-
QAccordion:
|
|
3222
|
-
QBadge:
|
|
3223
|
-
QButton:
|
|
3224
|
-
QButtonGroup:
|
|
3225
|
-
QButtonToggle:
|
|
3226
|
-
QCard:
|
|
3227
|
-
QCheckbox:
|
|
3228
|
-
QCollapsible:
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
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,
|
|
3232
3433
|
QField: Se,
|
|
3233
|
-
QIcon:
|
|
3234
|
-
QIconFont:
|
|
3235
|
-
QIconImg:
|
|
3236
|
-
QIconSvg:
|
|
3237
|
-
QInputGroup:
|
|
3238
|
-
QLineLoader:
|
|
3239
|
-
QList:
|
|
3240
|
-
QListItem:
|
|
3241
|
-
QListItemGroup:
|
|
3242
|
-
QOverlay:
|
|
3243
|
-
QPopover:
|
|
3244
|
-
QPropertyList:
|
|
3245
|
-
QPropertyListGroup:
|
|
3246
|
-
QPropertyListPanel:
|
|
3247
|
-
QPropertyListRow:
|
|
3248
|
-
QSelect:
|
|
3249
|
-
QSkeletonLoader:
|
|
3250
|
-
QSpinnerLoader:
|
|
3251
|
-
QTextField:
|
|
3252
|
-
QThemeProvider:
|
|
3253
|
-
QTooltip:
|
|
3254
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
3255
|
-
function
|
|
3256
|
-
const n = ze($e);
|
|
3257
|
-
if (!n)
|
|
3258
|
-
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
3259
|
-
return n;
|
|
3260
|
-
}
|
|
3261
|
-
function Ro(n) {
|
|
3262
|
-
const t = Qo(), e = {
|
|
3263
|
-
activeTheme: V(n),
|
|
3264
|
-
themes: t.themes
|
|
3265
|
-
};
|
|
3266
|
-
return Me($e, e), e;
|
|
3267
|
-
}
|
|
3268
|
-
function Mo() {
|
|
3269
|
-
let n = document.getElementById(
|
|
3270
|
-
$e
|
|
3271
|
-
);
|
|
3272
|
-
return n || (n = document.createElement("style"), n.id = $e, document.head.appendChild(n)), n;
|
|
3273
|
-
}
|
|
3274
|
-
function zo(n) {
|
|
3275
|
-
let t = "";
|
|
3276
|
-
for (const l of n) {
|
|
3277
|
-
t += `.q-theme--${l.name} {
|
|
3278
|
-
`;
|
|
3279
|
-
const o = l.scheme;
|
|
3280
|
-
let s;
|
|
3281
|
-
for (s in o) {
|
|
3282
|
-
const a = o[s];
|
|
3283
|
-
if (a) {
|
|
3284
|
-
t += ` ${Ze(s)}: ${a};
|
|
3285
|
-
`;
|
|
3286
|
-
const d = it(a);
|
|
3287
|
-
t += ` ${Ze(s)}-rgb: ${d.r} ${d.g} ${d.b};
|
|
3288
|
-
`;
|
|
3289
|
-
}
|
|
3290
|
-
}
|
|
3291
|
-
t += `}
|
|
3292
|
-
`;
|
|
3293
|
-
}
|
|
3294
|
-
const e = Mo();
|
|
3295
|
-
e.textContent = t;
|
|
3296
|
-
}
|
|
3297
|
-
function Ze(n) {
|
|
3298
|
-
return n ? `--q-theme-${lt(n)}` : "";
|
|
3299
|
-
}
|
|
3300
|
-
function Oo(n = {}) {
|
|
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 = {}) {
|
|
3301
3457
|
return { install: (e) => {
|
|
3302
|
-
const
|
|
3303
|
-
for (const s in
|
|
3304
|
-
e.component(s,
|
|
3305
|
-
const
|
|
3306
|
-
e.provide(Pe,
|
|
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);
|
|
3307
3463
|
} };
|
|
3308
3464
|
}
|
|
3309
|
-
function
|
|
3465
|
+
function ns(n, t) {
|
|
3310
3466
|
const e = [];
|
|
3311
|
-
let
|
|
3467
|
+
let o;
|
|
3312
3468
|
if (!t)
|
|
3313
|
-
|
|
3314
|
-
name:
|
|
3469
|
+
o = "default", e.push({
|
|
3470
|
+
name: o,
|
|
3315
3471
|
mode: "light",
|
|
3316
|
-
scheme:
|
|
3472
|
+
scheme: Qe
|
|
3317
3473
|
});
|
|
3318
3474
|
else
|
|
3319
|
-
for (const
|
|
3320
|
-
const a = { ...
|
|
3475
|
+
for (const l of t.themes) {
|
|
3476
|
+
const a = { ...l.mode === "light" ? Qe : it, ...l.colors };
|
|
3321
3477
|
e.push({
|
|
3322
|
-
name:
|
|
3323
|
-
mode:
|
|
3478
|
+
name: l.name,
|
|
3479
|
+
mode: l.mode,
|
|
3324
3480
|
scheme: a
|
|
3325
|
-
}),
|
|
3481
|
+
}), l.name === t.defaultTheme && (o = l.name);
|
|
3326
3482
|
}
|
|
3327
|
-
if (
|
|
3328
|
-
const o =
|
|
3329
|
-
|
|
3330
|
-
themes: e
|
|
3331
|
-
};
|
|
3332
|
-
zo(e), ne(o.activeTheme, Po, { immediate: !0 }), n.provide($e, 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);
|
|
3333
3486
|
}
|
|
3334
3487
|
}
|
|
3335
|
-
function
|
|
3336
|
-
const t = document.documentElement,
|
|
3337
|
-
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}`);
|
|
3338
3491
|
}
|
|
3339
|
-
const
|
|
3492
|
+
const as = (n = {}) => ts({ components: es, ...n });
|
|
3340
3493
|
export {
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3494
|
+
es as components,
|
|
3495
|
+
as as createFramework,
|
|
3496
|
+
Io as provideTheme,
|
|
3497
|
+
ss as templates,
|
|
3498
|
+
$t as useTheme
|
|
3346
3499
|
};
|