@quidgest/ui 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -8
- package/README.md +19 -0
- package/dist/json/api.json +1517 -86
- package/dist/manifest/components.json +0 -1
- package/dist/ui.css +59 -68
- package/dist/ui.esm.js +1031 -1043
- package/dist/ui.js +1000 -1013
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1000 -1013
- package/dist/ui.scss +83 -27
- package/esm/components/QAccordion/QAccordion.d.ts +3 -3
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +33 -30
- package/esm/components/QAccordion/QAccordionItem.d.ts +4 -1
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +37 -6
- package/esm/components/QAccordion/index.d.ts +20 -11
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAvatar/QAvatar.d.ts.map +1 -1
- package/esm/components/QAvatar/QAvatar.vue.js +19 -12
- package/esm/components/QAvatar/types.d.ts +2 -1
- package/esm/components/QAvatar/types.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +36 -37
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +18 -18
- package/esm/components/QCarousel/QCarousel.d.ts +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +99 -95
- package/esm/components/QCarousel/constants.d.ts +1 -0
- package/esm/components/QCarousel/constants.d.ts.map +1 -1
- package/esm/components/QCarousel/constants.js +2 -1
- package/esm/components/QCarousel/index.d.ts +3 -3
- package/esm/components/QCheckbox/QCheckbox.d.ts +0 -2
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +33 -36
- package/esm/components/QCheckbox/index.d.ts +0 -1
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +1 -2
- package/esm/components/QCombobox/QCombobox.d.ts +9 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +142 -134
- package/esm/components/QCombobox/index.d.ts +10 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +8 -0
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +199 -219
- package/esm/components/QDialog/QDialog.d.ts +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +4 -4
- package/esm/components/QDialog/QDialogProvider.d.ts.map +1 -1
- package/esm/components/QDialog/index.d.ts +6 -6
- package/esm/components/QDialog/types.d.ts +3 -3
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +136 -124
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +82 -79
- package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -1
- package/esm/components/QIcon/QSvgSymbol.vue.js +31 -31
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +67 -41
- package/esm/components/QInputGroup/types.d.ts +15 -1
- package/esm/components/QInputGroup/types.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +6 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +4 -1
- package/esm/components/QList/QListItem.d.ts +6 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +54 -41
- package/esm/components/QList/index.d.ts +6 -1
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/types.d.ts +16 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts +6 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +90 -95
- package/esm/components/QOverflow/index.d.ts +3 -3
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +125 -117
- package/esm/components/QOverlay/types.d.ts +9 -2
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +1 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +5 -0
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -0
- package/esm/components/QPasswordField/index.d.ts +6 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +10 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +184 -18
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/index.d.ts +92 -9
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +62 -60
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +2 -2
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +2 -2
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +46 -46
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +7 -7
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts +0 -6
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/gap.js +12 -18
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +11 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +5 -5
- package/esm/components/QSelect/QSelect.d.ts +157 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +240 -212
- package/esm/components/QSelect/index.d.ts +84 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +8 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +1 -2
- package/esm/components/QSidebar/QSidebarAnchor.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +1 -1
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +5 -5
- package/esm/components/QSidebar/context.d.ts +3 -3
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.d.ts +4 -4
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +9 -15
- package/esm/components/QSteps/index.d.ts +2 -2
- package/esm/components/QSteps/types.d.ts +2 -1
- package/esm/components/QSteps/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +2 -2
- package/esm/components/QTabs/QTabs.d.ts +4 -4
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +86 -85
- package/esm/components/QTabs/context.d.ts +3 -3
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/index.d.ts +2 -2
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +25 -24
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +7 -4
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +3 -3
- package/esm/components/QToggleGroup/QToggleGroup.d.ts +3 -3
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +34 -31
- package/esm/components/QToggleGroup/index.d.ts +8 -8
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/composables/defaults.d.ts +10 -0
- package/esm/composables/defaults.d.ts.map +1 -1
- package/esm/composables/defaults.js +8 -5
- package/esm/composables/useDialog/_internal.js +8 -11
- package/esm/composables/useDialog/index.js +1 -2
- package/esm/composables/useDialog/types.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.d.ts +1 -11
- package/esm/composables/useDropZone/index.d.ts.map +1 -1
- package/esm/composables/useDropZone/index.js +23 -26
- package/esm/composables/useGroup/index.d.ts.map +1 -1
- package/esm/composables/useGroup/index.js +15 -15
- package/esm/composables/useOverlayScope/index.d.ts +29 -0
- package/esm/composables/useOverlayScope/index.d.ts.map +1 -0
- package/esm/composables/useOverlayScope/index.js +23 -0
- package/esm/composables/useTextareaAutosize/index.d.ts +3 -1
- package/esm/composables/useTextareaAutosize/index.d.ts.map +1 -1
- package/esm/composables/useTextareaAutosize/index.js +6 -6
- package/esm/composables/useToast/_internal.js +10 -15
- package/esm/composables/useToast/index.js +1 -2
- package/esm/composables/useToast/types.d.ts.map +1 -1
- package/esm/framework.js +14 -12
- package/esm/index.d.ts +1 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/symbols/overlayScope.d.ts +4 -0
- package/esm/symbols/overlayScope.d.ts.map +1 -0
- package/esm/symbols/overlayScope.js +4 -0
- package/esm/types/component.d.ts +8 -0
- package/esm/types/component.d.ts.map +1 -1
- package/esm/types/index.d.ts +1 -1
- package/esm/types/index.d.ts.map +1 -1
- package/esm/utils/color/parse.d.ts.map +1 -1
- package/esm/utils/color/parse.js +3 -10
- package/esm/utils/date.d.ts +35 -13
- package/esm/utils/date.d.ts.map +1 -1
- package/esm/utils/date.js +313 -253
- package/esm/utils/mask.d.ts +1 -0
- package/esm/utils/mask.d.ts.map +1 -1
- package/esm/utils/mask.js +42 -100
- package/esm/utils/overlay.d.ts +13 -1
- package/esm/utils/overlay.d.ts.map +1 -1
- package/esm/utils/overlay.js +55 -41
- package/esm/utils/safeTriangle.d.ts.map +1 -1
- package/esm/utils/safeTriangle.js +2 -2
- package/esm/utils/setupPropsProxy.d.ts +3 -1
- package/esm/utils/setupPropsProxy.d.ts.map +1 -1
- package/esm/utils/setupPropsProxy.js +2 -2
- package/package.json +9 -6
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { useId as e } from "../../composables/useId/index.js";
|
|
2
2
|
import { useTheme as t } from "../../composables/theme.js";
|
|
3
3
|
import { QDismissibleLayer as n } from "../QDismissibleLayer/index.js";
|
|
4
|
-
import { QRemoveScrollBar as
|
|
5
|
-
import { QFocusWrap as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { QRemoveScrollBar as r } from "../QRemoveScrollBar/index.js";
|
|
5
|
+
import { QFocusWrap as i } from "../QFocusWrap/index.js";
|
|
6
|
+
import { useOverlayScopeItem as a } from "../../composables/useOverlayScope/index.js";
|
|
7
|
+
import { getElement as ee } from "../../utils/getElement.js";
|
|
8
|
+
import { computePosition as o, getSideFromPlacement as te, resolveOverlayOffset as ne } from "../../utils/overlay.js";
|
|
9
|
+
import { Fragment as s, Teleport as re, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as ie, createVNode as p, defineComponent as m, mergeProps as ae, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as oe, onMounted as se, openBlock as v, reactive as y, renderSlot as ce, toRef as le, unref as b, useTemplateRef as x, watch as S, withCtx as C, withModifiers as ue } from "vue";
|
|
9
10
|
//#region src/components/QOverlay/QOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
11
|
+
var w = ["id"], T = ["role"], E = /*@__PURE__*/ m({
|
|
11
12
|
inheritAttrs: !1,
|
|
12
13
|
__name: "QOverlay",
|
|
13
14
|
props: {
|
|
@@ -31,6 +32,7 @@ var ce = ["id"], le = ["role"], E = /*@__PURE__*/ f({
|
|
|
31
32
|
nonModal: { type: Boolean },
|
|
32
33
|
scrollLock: { type: Boolean },
|
|
33
34
|
persistent: { type: Boolean },
|
|
35
|
+
disabled: { type: Boolean },
|
|
34
36
|
spy: { type: Boolean },
|
|
35
37
|
trigger: { default: "click" },
|
|
36
38
|
focusWrap: { type: Boolean },
|
|
@@ -50,123 +52,124 @@ var ce = ["id"], le = ["role"], E = /*@__PURE__*/ f({
|
|
|
50
52
|
"enter",
|
|
51
53
|
"leave"
|
|
52
54
|
],
|
|
53
|
-
setup(
|
|
54
|
-
let D =
|
|
55
|
+
setup(m, { emit: E }) {
|
|
56
|
+
let D = m, O = E, de = e(le(D, "id")), { class: fe } = t(), k = l(() => [
|
|
55
57
|
"q-overlay",
|
|
56
|
-
`q-overlay--${te(
|
|
57
|
-
|
|
58
|
+
`q-overlay--${te(M.placement)}`,
|
|
59
|
+
fe.value,
|
|
58
60
|
{
|
|
59
61
|
"q-overlay--independent": A.value,
|
|
60
62
|
"q-overlay--inverted": D.appearance === "inverted",
|
|
61
63
|
"q-overlay--center": D.centerVertically
|
|
62
64
|
},
|
|
63
65
|
D.class
|
|
64
|
-
]), A =
|
|
66
|
+
]), A = l(() => D.anchor === void 0), j = l(() => D.modelValue && !D.nonModal), pe = l(() => (D.modelValue || M.animating) && D.scrollLock), me = l(() => !D.inline && (D.modelValue || M.animating)), M = y({
|
|
65
67
|
animating: !1,
|
|
66
68
|
top: 0,
|
|
67
69
|
left: 0,
|
|
68
70
|
width: 0,
|
|
69
71
|
placement: D.placement
|
|
70
|
-
}),
|
|
72
|
+
}), N = y({
|
|
71
73
|
top: void 0,
|
|
72
74
|
left: void 0,
|
|
73
75
|
hidden: !0
|
|
74
76
|
});
|
|
75
|
-
|
|
76
|
-
let
|
|
77
|
+
S(() => D.modelValue, ye);
|
|
78
|
+
let P = l(() => {
|
|
77
79
|
if (A.value) return;
|
|
78
80
|
let e = Y(), t = D.width === "anchor" ? e?.getBoundingClientRect().width : void 0;
|
|
79
81
|
return {
|
|
80
|
-
top: `${
|
|
81
|
-
left: `${
|
|
82
|
+
top: `${M.top}px`,
|
|
83
|
+
left: `${M.left}px`,
|
|
82
84
|
width: t === void 0 ? void 0 : `${t}px`
|
|
83
85
|
};
|
|
84
|
-
}),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
let t = {
|
|
86
|
+
}), F = l(() => ({
|
|
87
|
+
top: N.top === void 0 ? void 0 : `${N.top}px`,
|
|
88
|
+
left: N.left === void 0 ? void 0 : `${N.left}px`,
|
|
89
|
+
opacity: +!N.hidden
|
|
90
|
+
})), I = x("arrow"), L = x("overlay"), R = x("overlayContainer");
|
|
91
|
+
a(R);
|
|
92
|
+
function z() {
|
|
93
|
+
let e = Y(), t = L.value;
|
|
94
|
+
if (!e || !R.value || !t) return;
|
|
95
|
+
let n = {
|
|
95
96
|
placement: D.placement,
|
|
96
97
|
width: D.width,
|
|
97
|
-
offset: ne(D.offset,
|
|
98
|
+
offset: ne(D.offset, R.value),
|
|
98
99
|
crossOffset: D.crossOffset,
|
|
99
100
|
arrow: D.arrow
|
|
100
|
-
},
|
|
101
|
-
|
|
101
|
+
}, { scrollTop: r, scrollLeft: i } = t;
|
|
102
|
+
B(t, void 0);
|
|
103
|
+
let a = o(e, t, I?.value ?? void 0, n);
|
|
104
|
+
B(t, a.maxSize), t.scrollTop !== r && (t.scrollTop = r), t.scrollLeft !== i && (t.scrollLeft = i), M.left = a.overlayCoords.x, M.top = a.overlayCoords.y, M.placement = a.placement, N.hidden = a.arrowCoords === void 0, a.arrowCoords && (N.top = a.arrowCoords.y, N.left = a.arrowCoords.x);
|
|
102
105
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
function B(e, t) {
|
|
107
|
+
e.style.maxWidth = t ? `${t.width}px` : "", e.style.maxHeight = t ? `${t.height}px` : "", e.style.overflow = t ? "auto" : "";
|
|
108
|
+
}
|
|
109
|
+
S(() => D.placement, () => h(z));
|
|
110
|
+
let V;
|
|
111
|
+
function H() {
|
|
106
112
|
G(0);
|
|
107
113
|
}
|
|
114
|
+
function U() {
|
|
115
|
+
D.modelValue ? K() : H();
|
|
116
|
+
}
|
|
108
117
|
function W() {
|
|
109
118
|
G(D.delay);
|
|
110
119
|
}
|
|
111
120
|
function G(e) {
|
|
112
|
-
|
|
121
|
+
D.disabled || (V && q(), V = window.setTimeout(() => {
|
|
113
122
|
O("update:modelValue", !0);
|
|
114
|
-
}, e);
|
|
123
|
+
}, e));
|
|
115
124
|
}
|
|
116
125
|
function K() {
|
|
117
|
-
if (
|
|
126
|
+
if (V && q(), O("update:modelValue", !1), D.anchor && D.trigger === "click") {
|
|
118
127
|
let e = Y();
|
|
119
|
-
|
|
128
|
+
h(() => e?.focus());
|
|
120
129
|
}
|
|
121
130
|
}
|
|
131
|
+
S(() => D.disabled, (e) => {
|
|
132
|
+
e && (V && q(), D.modelValue && O("update:modelValue", !1));
|
|
133
|
+
});
|
|
122
134
|
function q() {
|
|
123
|
-
clearTimeout(
|
|
135
|
+
clearTimeout(V), V = void 0;
|
|
124
136
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
137
|
+
function he() {
|
|
138
|
+
h(Ee), O("enter");
|
|
127
139
|
}
|
|
128
|
-
function
|
|
140
|
+
function ge() {
|
|
129
141
|
J();
|
|
130
142
|
}
|
|
131
|
-
function
|
|
143
|
+
function _e() {
|
|
132
144
|
O("leave");
|
|
133
145
|
}
|
|
134
|
-
function
|
|
135
|
-
J(),
|
|
146
|
+
function ve() {
|
|
147
|
+
J(), $();
|
|
136
148
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
149
|
+
function ye() {
|
|
150
|
+
M.animating = !0;
|
|
139
151
|
}
|
|
140
152
|
function J() {
|
|
141
|
-
|
|
153
|
+
M.animating = !1;
|
|
142
154
|
}
|
|
143
155
|
function Y() {
|
|
144
|
-
return D.anchor ?
|
|
145
|
-
}
|
|
146
|
-
function X(e) {
|
|
147
|
-
D.persistent && e.preventDefault();
|
|
156
|
+
return D.anchor ? ee(D.anchor) : null;
|
|
148
157
|
}
|
|
149
|
-
function
|
|
158
|
+
function be(e) {
|
|
150
159
|
if (D.persistent) {
|
|
151
160
|
e.preventDefault();
|
|
152
161
|
return;
|
|
153
162
|
}
|
|
154
|
-
let t =
|
|
155
|
-
|
|
156
|
-
let n = e.detail.originalEvent.target;
|
|
157
|
-
if (Y()?.contains(n)) {
|
|
158
|
-
e.preventDefault();
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
e.detail.originalEvent.type === "focusin" && t && e.preventDefault();
|
|
163
|
+
let t = e.detail.originalEvent.target;
|
|
164
|
+
Y()?.contains(t) && e.preventDefault();
|
|
162
165
|
}
|
|
163
|
-
function
|
|
166
|
+
function xe() {
|
|
164
167
|
K();
|
|
165
168
|
}
|
|
166
|
-
let
|
|
167
|
-
function
|
|
169
|
+
let X;
|
|
170
|
+
function Se() {
|
|
168
171
|
let e = Y();
|
|
169
|
-
if (e) switch (
|
|
172
|
+
if (e) switch (X = new MutationObserver(z), X.observe(e, {
|
|
170
173
|
attributes: !1,
|
|
171
174
|
childList: !0,
|
|
172
175
|
characterData: !0,
|
|
@@ -176,77 +179,78 @@ var ce = ["id"], le = ["role"], E = /*@__PURE__*/ f({
|
|
|
176
179
|
e.addEventListener("click", U);
|
|
177
180
|
break;
|
|
178
181
|
case "hover":
|
|
179
|
-
e.addEventListener("mouseenter", W), e.addEventListener("mouseleave", K), e.addEventListener("focusin",
|
|
182
|
+
e.addEventListener("mouseenter", W), e.addEventListener("mouseleave", K), e.addEventListener("focusin", H), e.addEventListener("focusout", K);
|
|
180
183
|
break;
|
|
181
184
|
}
|
|
182
185
|
}
|
|
183
|
-
function
|
|
186
|
+
function Ce() {
|
|
184
187
|
let e = Y();
|
|
185
|
-
if (e) switch (
|
|
188
|
+
if (e) switch (X?.disconnect(), D.trigger) {
|
|
186
189
|
case "click":
|
|
187
190
|
e.removeEventListener("click", U);
|
|
188
191
|
break;
|
|
189
192
|
case "hover":
|
|
190
|
-
e.removeEventListener("mouseenter", W), e.removeEventListener("mouseleave", K), e.removeEventListener("focusin",
|
|
193
|
+
e.removeEventListener("mouseenter", W), e.removeEventListener("mouseleave", K), e.removeEventListener("focusin", H), e.removeEventListener("focusout", K);
|
|
191
194
|
break;
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
|
-
function
|
|
195
|
-
window.addEventListener("resize",
|
|
197
|
+
function we() {
|
|
198
|
+
window.addEventListener("resize", z), D.scrollLock || window.addEventListener("scroll", z);
|
|
196
199
|
}
|
|
197
|
-
function
|
|
198
|
-
window.removeEventListener("resize",
|
|
200
|
+
function Te() {
|
|
201
|
+
window.removeEventListener("resize", z), D.scrollLock || window.removeEventListener("scroll", z);
|
|
199
202
|
}
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
Y() ? (
|
|
203
|
+
let Z;
|
|
204
|
+
function Q() {
|
|
205
|
+
Y() ? (z(), Z = window.setTimeout(Q, 100)) : K();
|
|
203
206
|
}
|
|
204
|
-
function
|
|
205
|
-
A.value || (
|
|
207
|
+
function Ee() {
|
|
208
|
+
A.value || (we(), D.spy ? Q() : z()), (A.value || D.trigger === "click") && !D.initialFocus && !D.focusWithinOnActivate && L.value?.focus();
|
|
206
209
|
}
|
|
207
|
-
function
|
|
208
|
-
A.value ||
|
|
210
|
+
function $() {
|
|
211
|
+
A.value || Te(), D.spy && (clearTimeout(Z), Z = void 0);
|
|
209
212
|
}
|
|
210
|
-
return
|
|
211
|
-
|
|
212
|
-
}),
|
|
213
|
-
|
|
213
|
+
return se(() => {
|
|
214
|
+
h(Se);
|
|
215
|
+
}), oe(() => {
|
|
216
|
+
Ce(), $();
|
|
217
|
+
}), (e, t) => (v(), f(s, null, [(v(), u(re, {
|
|
218
|
+
disabled: !me.value,
|
|
214
219
|
to: D.attach
|
|
215
|
-
}, [
|
|
220
|
+
}, [p(c, {
|
|
216
221
|
name: "fade",
|
|
217
222
|
appear: ""
|
|
218
223
|
}, {
|
|
219
|
-
default:
|
|
224
|
+
default: C(() => [j.value ? (v(), f("div", {
|
|
220
225
|
key: 0,
|
|
221
|
-
class:
|
|
226
|
+
class: g([
|
|
222
227
|
D.backdropClass,
|
|
223
228
|
"q-overlay__underlay",
|
|
224
229
|
{ "q-overlay__underlay--blur": D.backdropBlur }
|
|
225
230
|
]),
|
|
226
|
-
onMousedown: t[0] ||=
|
|
227
|
-
}, null, 34)) :
|
|
231
|
+
onMousedown: t[0] ||= ue(() => {}, ["prevent"])
|
|
232
|
+
}, null, 34)) : d("v-if", !0)]),
|
|
228
233
|
_: 1
|
|
229
|
-
}),
|
|
234
|
+
}), p(c, {
|
|
230
235
|
name: D.transition,
|
|
231
236
|
appear: "",
|
|
232
|
-
onEnter:
|
|
233
|
-
onAfterEnter:
|
|
234
|
-
onLeave:
|
|
235
|
-
onAfterLeave:
|
|
237
|
+
onEnter: he,
|
|
238
|
+
onAfterEnter: ge,
|
|
239
|
+
onLeave: _e,
|
|
240
|
+
onAfterLeave: ve
|
|
236
241
|
}, {
|
|
237
|
-
default:
|
|
242
|
+
default: C(() => [D.modelValue ? (v(), f("div", {
|
|
238
243
|
key: 0,
|
|
239
|
-
id:
|
|
244
|
+
id: b(de),
|
|
240
245
|
ref: "overlayContainer",
|
|
241
246
|
tabindex: "-1",
|
|
242
|
-
class:
|
|
243
|
-
style:
|
|
244
|
-
}, [
|
|
245
|
-
onDismiss:
|
|
246
|
-
onInteractOutside:
|
|
247
|
-
onPointerDownOutside: X
|
|
247
|
+
class: g(k.value),
|
|
248
|
+
style: _(P.value)
|
|
249
|
+
}, [p(b(n), {
|
|
250
|
+
onDismiss: xe,
|
|
251
|
+
onInteractOutside: be
|
|
248
252
|
}, {
|
|
249
|
-
default:
|
|
253
|
+
default: C(() => [R.value ? (v(), u(b(i), {
|
|
250
254
|
key: 0,
|
|
251
255
|
active: !D.nonModal && D.modelValue && D.focusWrap,
|
|
252
256
|
"initial-focus": D.initialFocus,
|
|
@@ -254,18 +258,22 @@ var ce = ["id"], le = ["role"], E = /*@__PURE__*/ f({
|
|
|
254
258
|
"closing-focus": D.closingFocus,
|
|
255
259
|
"return-focus-on-deactivate": D.returnFocusOnDeactivate
|
|
256
260
|
}, {
|
|
257
|
-
default:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
261
|
+
default: C(() => [
|
|
262
|
+
ie("div", ae({
|
|
263
|
+
ref: "overlay",
|
|
264
|
+
class: "q-overlay__content",
|
|
265
|
+
tabindex: "-1",
|
|
266
|
+
role: j.value ? "dialog" : void 0
|
|
267
|
+
}, e.$attrs), [ce(e.$slots, "default")], 16, T),
|
|
268
|
+
d(" Outside the content, which scrolls when it is too large for the room it has "),
|
|
269
|
+
D.arrow ? (v(), f("div", {
|
|
270
|
+
key: 0,
|
|
271
|
+
ref: "arrow",
|
|
272
|
+
role: "presentation",
|
|
273
|
+
class: "q-overlay__arrow",
|
|
274
|
+
style: _(F.value)
|
|
275
|
+
}, null, 4)) : d("v-if", !0)
|
|
276
|
+
]),
|
|
269
277
|
_: 3
|
|
270
278
|
}, 8, [
|
|
271
279
|
"active",
|
|
@@ -273,11 +281,11 @@ var ce = ["id"], le = ["role"], E = /*@__PURE__*/ f({
|
|
|
273
281
|
"focus-within-on-activate",
|
|
274
282
|
"closing-focus",
|
|
275
283
|
"return-focus-on-deactivate"
|
|
276
|
-
])) :
|
|
284
|
+
])) : d("v-if", !0)]),
|
|
277
285
|
_: 3
|
|
278
|
-
})], 14,
|
|
286
|
+
})], 14, w)) : d("v-if", !0)]),
|
|
279
287
|
_: 3
|
|
280
|
-
}, 8, ["name"])], 8, ["disabled", "to"])),
|
|
288
|
+
}, 8, ["name"])], 8, ["disabled", "to"])), pe.value ? (v(), u(b(r), { key: 0 })) : d("v-if", !0)], 64));
|
|
281
289
|
}
|
|
282
290
|
});
|
|
283
291
|
//#endregion
|
|
@@ -118,12 +118,19 @@ export type QOverlayProps = QBaseComponentProps & {
|
|
|
118
118
|
*/
|
|
119
119
|
scrollLock?: boolean;
|
|
120
120
|
/**
|
|
121
|
-
* If enabled,
|
|
122
|
-
*
|
|
121
|
+
* If enabled, pressing outside the overlay, or moving focus out of it, does not close it.
|
|
122
|
+
* Escape still closes it, as a dialog must stay closable from the keyboard.
|
|
123
123
|
*
|
|
124
124
|
* @category Behavior
|
|
125
125
|
*/
|
|
126
126
|
persistent?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the overlay is disabled. Its anchor does not open it, and an open overlay
|
|
129
|
+
* closes when it becomes disabled.
|
|
130
|
+
*
|
|
131
|
+
* @category State
|
|
132
|
+
*/
|
|
133
|
+
disabled?: boolean;
|
|
127
134
|
/**
|
|
128
135
|
* Whether to spy on the real-time position of the anchor,
|
|
129
136
|
* to keep the position of the overlay up-to-date at all times.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEtD,YAAY,EACX,UAAU,IAAI,kBAAkB,EAChC,OAAO,IAAI,eAAe,EAC1B,IAAI,IAAI,YAAY,EACpB,IAAI,IAAI,YAAY,EACpB,SAAS,IAAI,iBAAiB,EAC9B,SAAS,IAAI,iBAAiB,EAC9B,MAAM,qBAAqB,CAAA;AAE5B,6DAA6D;AAC7D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,IAAI,CAAA;AAE5C,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IACjD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IAEvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAElC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE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AC,EAAE,OAAO,CAAA;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAAA;IAE1C;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAEnC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA"}
|
|
@@ -427,6 +427,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
427
427
|
};
|
|
428
428
|
};
|
|
429
429
|
texts: typeof DEFAULT_TEXTS;
|
|
430
|
+
autocomplete: "current-password" | "new-password" | (string & {});
|
|
430
431
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
431
432
|
field: ({
|
|
432
433
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QPasswordField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/QPasswordField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QPasswordField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/QPasswordField.vue"],"names":[],"mappings":"AAqEA;AAuLC,OAAO,EAAiB,aAAa,EAAE,MAAM,aAAa,CAAA;AAa1D,OAAO,KAAK,EAEX,mBAAmB,EAEnB,MAAM,GAAG,CAAA;AAKV,KAAK,WAAW,GAAG,mBAAmB,CAAC;AAgGxC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAkMT,OAAO,IAA6B;;iCAhBZ,GAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArBt6S,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -28,6 +28,7 @@ var O = /*@__PURE__*/ h({
|
|
|
28
28
|
maxLength: {},
|
|
29
29
|
toggle: { type: Boolean },
|
|
30
30
|
meter: { type: Boolean },
|
|
31
|
+
autocomplete: { default: "new-password" },
|
|
31
32
|
meterLevels: {},
|
|
32
33
|
rules: {},
|
|
33
34
|
texts: { default: () => a }
|
|
@@ -71,6 +72,8 @@ var O = /*@__PURE__*/ h({
|
|
|
71
72
|
class: a.class,
|
|
72
73
|
type: j.value,
|
|
73
74
|
placeholder: a.placeholder,
|
|
75
|
+
"max-length": a.maxLength,
|
|
76
|
+
autocomplete: a.autocomplete,
|
|
74
77
|
disabled: a.disabled,
|
|
75
78
|
readonly: a.readonly,
|
|
76
79
|
required: a.required,
|
|
@@ -125,6 +128,8 @@ var O = /*@__PURE__*/ h({
|
|
|
125
128
|
"class",
|
|
126
129
|
"type",
|
|
127
130
|
"placeholder",
|
|
131
|
+
"max-length",
|
|
132
|
+
"autocomplete",
|
|
128
133
|
"disabled",
|
|
129
134
|
"readonly",
|
|
130
135
|
"required",
|
|
@@ -5,6 +5,7 @@ declare const QPasswordField: {
|
|
|
5
5
|
} & Omit<import('..').QTextFieldProps, "type" | "texts" | "clearable"> & {
|
|
6
6
|
toggle?: boolean;
|
|
7
7
|
meter?: boolean;
|
|
8
|
+
autocomplete?: "current-password" | "new-password" | (string & {});
|
|
8
9
|
meterLevels?: import('./types').QPasswordFieldStrengthLevel[];
|
|
9
10
|
rules?: import('./types').QPasswordFieldRule[];
|
|
10
11
|
icons?: import('./types').QPasswordFieldIcons;
|
|
@@ -42,6 +43,7 @@ declare const QPasswordField: {
|
|
|
42
43
|
};
|
|
43
44
|
};
|
|
44
45
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
46
|
+
autocomplete: "current-password" | "new-password" | (string & {});
|
|
45
47
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
46
48
|
field: ({
|
|
47
49
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -431,6 +433,7 @@ declare const QPasswordField: {
|
|
|
431
433
|
} & Omit<import('..').QTextFieldProps, "type" | "texts" | "clearable"> & {
|
|
432
434
|
toggle?: boolean;
|
|
433
435
|
meter?: boolean;
|
|
436
|
+
autocomplete?: "current-password" | "new-password" | (string & {});
|
|
434
437
|
meterLevels?: import('./types').QPasswordFieldStrengthLevel[];
|
|
435
438
|
rules?: import('./types').QPasswordFieldRule[];
|
|
436
439
|
icons?: import('./types').QPasswordFieldIcons;
|
|
@@ -465,6 +468,7 @@ declare const QPasswordField: {
|
|
|
465
468
|
};
|
|
466
469
|
};
|
|
467
470
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
471
|
+
autocomplete: "current-password" | "new-password" | (string & {});
|
|
468
472
|
}>;
|
|
469
473
|
__isFragment?: never;
|
|
470
474
|
__isTeleport?: never;
|
|
@@ -475,6 +479,7 @@ declare const QPasswordField: {
|
|
|
475
479
|
} & Omit<import('..').QTextFieldProps, "type" | "texts" | "clearable"> & {
|
|
476
480
|
toggle?: boolean;
|
|
477
481
|
meter?: boolean;
|
|
482
|
+
autocomplete?: "current-password" | "new-password" | (string & {});
|
|
478
483
|
meterLevels?: import('./types').QPasswordFieldStrengthLevel[];
|
|
479
484
|
rules?: import('./types').QPasswordFieldRule[];
|
|
480
485
|
icons?: import('./types').QPasswordFieldIcons;
|
|
@@ -512,6 +517,7 @@ declare const QPasswordField: {
|
|
|
512
517
|
};
|
|
513
518
|
};
|
|
514
519
|
texts: typeof import('./constants').DEFAULT_TEXTS;
|
|
520
|
+
autocomplete: "current-password" | "new-password" | (string & {});
|
|
515
521
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
516
522
|
$slots: {
|
|
517
523
|
'label.prepend'?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAO240B,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAP990B,CAAA;AAGvD,OAAO,EAAE,cAAc,EAAE,CAAA;AAGzB,cAAc,SAAS,CAAA"}
|
|
@@ -65,6 +65,16 @@ export type QPasswordFieldProps = Omit<QTextFieldProps, 'type' | 'clearable' | '
|
|
|
65
65
|
* @category Behavior
|
|
66
66
|
*/
|
|
67
67
|
meter?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The `autocomplete` token for the input. Tells the browser what the field is for.
|
|
70
|
+
* Defaults to `new-password`, so the browser does not fill in a saved password.
|
|
71
|
+
* Browsers may still offer to generate or save a password.
|
|
72
|
+
* Use `current-password` on login fields.
|
|
73
|
+
* Most browsers ignore `off` on password fields.
|
|
74
|
+
*
|
|
75
|
+
* @category Behavior
|
|
76
|
+
*/
|
|
77
|
+
autocomplete?: 'current-password' | 'new-password' | (string & {});
|
|
68
78
|
/**
|
|
69
79
|
* Configuration for the password strength meter.
|
|
70
80
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,E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