@quidgest/ui 0.26.0 → 0.27.1
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 +34 -0
- package/dist/json/api.json +487 -155
- package/dist/manifest/components.json +3 -0
- package/dist/ui.css +1016 -141
- package/dist/ui.esm.js +994 -942
- package/dist/ui.js +1235 -1186
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1235 -1186
- package/dist/ui.scss +1266 -157
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +19 -18
- package/esm/components/QAccordion/QAccordionItem.vue.js +4 -4
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +58 -55
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +17 -16
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts +81 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb.vue.js +85 -0
- package/esm/components/QBreadcrumbs/QBreadcrumb2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts +22 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +74 -0
- package/esm/components/QBreadcrumbs/QBreadcrumbs2.vue.js +5 -0
- package/esm/components/QBreadcrumbs/constants.d.ts +20 -0
- package/esm/components/QBreadcrumbs/constants.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/constants.js +10 -0
- package/esm/components/QBreadcrumbs/context.d.ts +103 -0
- package/esm/components/QBreadcrumbs/context.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/context.js +4 -0
- package/esm/components/QBreadcrumbs/index.d.ts +108 -0
- package/esm/components/QBreadcrumbs/index.d.ts.map +1 -0
- package/esm/components/QBreadcrumbs/index.js +7 -0
- package/esm/components/QBreadcrumbs/types.d.ts +100 -0
- package/esm/components/QBreadcrumbs/types.d.ts.map +1 -0
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +55 -52
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +16 -15
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +51 -52
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +119 -115
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +10 -14
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +52 -51
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +48 -47
- package/esm/components/QCombobox/QCombobox.d.ts +6 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +119 -116
- package/esm/components/QCombobox/index.d.ts +3 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +468 -429
- package/esm/components/QDateTimePicker/constants.d.ts +5 -0
- package/esm/components/QDateTimePicker/constants.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/constants.js +5 -0
- package/esm/components/QDialog/QDialog.d.ts +2 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +84 -65
- package/esm/components/QDialog/constants.d.ts +6 -1
- package/esm/components/QDialog/constants.d.ts.map +1 -1
- package/esm/components/QDialog/constants.js +6 -2
- package/esm/components/QDialog/index.d.ts +6 -0
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +13 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.d.ts.map +1 -1
- package/esm/components/QDivider/QDivider.vue.js +22 -21
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +8 -6
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +126 -125
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +36 -34
- package/esm/components/QFileUpload/QFileUpload.vue.js +16 -16
- package/esm/components/QGauge/QGauge.d.ts +1 -1
- package/esm/components/QGauge/QGauge.d.ts.map +1 -1
- package/esm/components/QGauge/QGauge.vue.js +9 -9
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +20 -19
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +13 -12
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +12 -11
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +19 -18
- package/esm/components/QIcon/QSvgSymbol.d.ts +54 -0
- package/esm/components/QIcon/QSvgSymbol.d.ts.map +1 -0
- package/esm/components/QIcon/QSvgSymbol.vue.js +76 -0
- package/esm/components/QIcon/QSvgSymbol2.vue.js +5 -0
- package/esm/components/QIcon/utils/svgSource.d.ts +18 -0
- package/esm/components/QIcon/utils/svgSource.d.ts.map +1 -0
- package/esm/components/QIcon/utils/svgSource.js +27 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +30 -29
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +20 -19
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +14 -13
- package/esm/components/QList/QList.d.ts +4 -4
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -135
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +42 -40
- package/esm/components/QList/QListItemGroup.d.ts +1 -1
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +2 -2
- package/esm/components/QList/types.d.ts +6 -0
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +20 -19
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +53 -53
- package/esm/components/QOverflow/QOverflow.d.ts +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +10 -10
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +139 -138
- package/esm/components/QPasswordField/QPasswordField.d.ts +2 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +63 -60
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +1 -1
- package/esm/components/QPasswordField/constants.d.ts +4 -0
- package/esm/components/QPasswordField/constants.d.ts.map +1 -1
- package/esm/components/QPasswordField/constants.js +4 -1
- 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 +7 -1
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +7 -5
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +88 -88
- package/esm/components/QPhoneField/index.d.ts +3 -2
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +51 -28
- package/esm/components/QProgress/QProgress.vue.js +3 -3
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +65 -55
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +8 -4
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +31 -28
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +13 -12
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +41 -16
- package/esm/components/QPropertyList/constants.d.ts +2 -0
- package/esm/components/QPropertyList/constants.d.ts.map +1 -1
- package/esm/components/QPropertyList/constants.js +5 -1
- package/esm/components/QPropertyList/index.d.ts +16 -4
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +19 -18
- package/esm/components/QSelect/QSelect.d.ts +6 -4
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +129 -124
- package/esm/components/QSelect/index.d.ts +3 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts +1 -1
- package/esm/components/QSidebar/QSidebar.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebar.vue.js +68 -67
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +8 -8
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +40 -36
- package/esm/components/QSidebar/context.d.ts +1 -1
- package/esm/components/QSidebar/context.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +8 -0
- package/esm/components/QSidebar/types.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +15 -14
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QStepHeader.d.ts +58 -0
- package/esm/components/QSteps/QStepHeader.d.ts.map +1 -0
- package/esm/components/QSteps/QStepHeader.vue.js +49 -0
- package/esm/components/QSteps/QStepHeader2.vue.js +5 -0
- package/esm/components/QSteps/QSteps.d.ts +269 -0
- package/esm/components/QSteps/QSteps.d.ts.map +1 -0
- package/esm/components/QSteps/QSteps.vue.js +260 -0
- package/esm/components/QSteps/QSteps2.vue.js +5 -0
- package/esm/components/QSteps/QStepsNav.d.ts +59 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -0
- package/esm/components/QSteps/QStepsNav.vue.js +42 -0
- package/esm/components/QSteps/QStepsNav2.vue.js +5 -0
- package/esm/components/QSteps/constants.d.ts +28 -0
- package/esm/components/QSteps/constants.d.ts.map +1 -0
- package/esm/components/QSteps/constants.js +16 -0
- package/esm/components/QSteps/index.d.ts +228 -0
- package/esm/components/QSteps/index.d.ts.map +1 -0
- package/esm/components/QSteps/index.js +6 -0
- package/esm/components/QSteps/types.d.ts +190 -0
- package/esm/components/QSteps/types.d.ts.map +1 -0
- package/esm/components/QSwitch/QSwitch.vue.js +3 -3
- package/esm/components/QTabs/QTab.d.ts +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +10 -12
- package/esm/components/QTabs/QTabs.d.ts +1 -1
- package/esm/components/QTabs/QTabs.d.ts.map +1 -1
- package/esm/components/QTabs/QTabs.vue.js +108 -107
- package/esm/components/QTabs/context.d.ts +1 -1
- package/esm/components/QTabs/context.d.ts.map +1 -1
- package/esm/components/QTabs/types.d.ts +1 -1
- package/esm/components/QTextArea/QTextArea.d.ts +1 -1
- package/esm/components/QTextArea/index.d.ts +3 -3
- package/esm/components/QThemeProvider/QThemeProvider.vue.js +3 -3
- package/esm/components/QToast/QToast.d.ts +2 -1
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +95 -78
- package/esm/components/QToast/QToaster.d.ts.map +1 -1
- package/esm/components/QToast/QToaster.vue.js +20 -19
- package/esm/components/QToast/constants.d.ts +3 -0
- package/esm/components/QToast/constants.d.ts.map +1 -1
- package/esm/components/QToast/constants.js +2 -2
- package/esm/components/QToast/index.d.ts +6 -0
- package/esm/components/QToast/index.d.ts.map +1 -1
- package/esm/components/QToast/types.d.ts +7 -1
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.d.ts.map +1 -1
- package/esm/components/QToggle/QToggle.vue.js +52 -15
- package/esm/components/QToggleGroup/QToggleGroup.d.ts.map +1 -1
- package/esm/components/QToggleGroup/QToggleGroup.vue.js +21 -20
- package/esm/components/QTooltip/QTooltip.vue.js +5 -5
- package/esm/components/__internal__/QChevron/QChevron.d.ts.map +1 -1
- package/esm/components/__internal__/QChevron/QChevron.vue.js +16 -15
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QClearButton/QClearButton.vue.js +19 -18
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +108 -103
- package/esm/composables/useColor/index.d.ts +2 -0
- package/esm/composables/useColor/index.d.ts.map +1 -1
- package/esm/composables/useColor/index.js +49 -39
- package/esm/composables/useColor/types.d.ts +15 -0
- package/esm/composables/useColor/types.d.ts.map +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/utils/color/contrast.d.ts +20 -0
- package/esm/utils/color/contrast.d.ts.map +1 -1
- package/esm/utils/color/contrast.js +24 -13
- package/esm/utils/color/merge.js +8 -8
- package/esm/utils/index.js +56 -54
- package/package.json +12 -6
- package/esm/components/QIcon/InlineSvg.d.ts +0 -110
- package/esm/components/QIcon/InlineSvg.d.ts.map +0 -1
- package/esm/components/QIcon/InlineSvg.js +0 -95
- package/esm/utils/time.d.ts +0 -36
- package/esm/utils/time.d.ts.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { useTheme as t } from "../../composables/theme.js";
|
|
3
|
+
import { QDismissibleLayer as n } from "../QDismissibleLayer/index.js";
|
|
4
|
+
import { QRemoveScrollBar as ee } from "../QRemoveScrollBar/index.js";
|
|
5
|
+
import { QFocusWrap as r } from "../QFocusWrap/index.js";
|
|
6
|
+
import { getElement as i } from "../../utils/getElement.js";
|
|
7
|
+
import { computePosition as a, getSideFromPlacement as te, resolveOverlayOffset as ne } from "../../utils/overlay.js";
|
|
8
|
+
import { Fragment as re, Teleport as ie, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as ae, createVNode as d, defineComponent as f, mergeProps as oe, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, reactive as y, renderSlot as b, toRef as x, unref as S, useTemplateRef as C, watch as w, withCtx as T, withModifiers as se } from "vue";
|
|
8
9
|
//#region src/components/QOverlay/QOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
+
var ce = ["id"], le = ["role"], E = /*@__PURE__*/ f({
|
|
10
11
|
inheritAttrs: !1,
|
|
11
12
|
__name: "QOverlay",
|
|
12
13
|
props: {
|
|
@@ -49,222 +50,222 @@ var D = ["id"], O = ["role"], k = /*@__PURE__*/ g({
|
|
|
49
50
|
"enter",
|
|
50
51
|
"leave"
|
|
51
52
|
],
|
|
52
|
-
setup(
|
|
53
|
-
let
|
|
53
|
+
setup(f, { emit: E }) {
|
|
54
|
+
let D = f, O = E, ue = e(x(D, "id")), { class: de } = t(), k = s(() => [
|
|
54
55
|
"q-overlay",
|
|
55
|
-
`q-overlay--${
|
|
56
|
-
|
|
56
|
+
`q-overlay--${te(P.placement)}`,
|
|
57
|
+
de.value,
|
|
57
58
|
{
|
|
58
|
-
"q-overlay--independent":
|
|
59
|
-
"q-overlay--inverted":
|
|
60
|
-
"q-overlay--center":
|
|
59
|
+
"q-overlay--independent": A.value,
|
|
60
|
+
"q-overlay--inverted": D.appearance === "inverted",
|
|
61
|
+
"q-overlay--center": D.centerVertically
|
|
61
62
|
},
|
|
62
|
-
|
|
63
|
-
]),
|
|
63
|
+
D.class
|
|
64
|
+
]), A = s(() => D.anchor === void 0), j = s(() => D.modelValue && !D.nonModal), M = s(() => (D.modelValue || P.animating) && D.scrollLock), N = s(() => !D.inline && (D.modelValue || P.animating)), P = y({
|
|
64
65
|
animating: !1,
|
|
65
66
|
top: 0,
|
|
66
67
|
left: 0,
|
|
67
68
|
width: 0,
|
|
68
|
-
placement:
|
|
69
|
-
}),
|
|
69
|
+
placement: D.placement
|
|
70
|
+
}), F = y({
|
|
70
71
|
top: void 0,
|
|
71
72
|
left: void 0,
|
|
72
73
|
hidden: !0
|
|
73
74
|
});
|
|
74
|
-
w(() =>
|
|
75
|
-
let
|
|
76
|
-
if (
|
|
77
|
-
let e =
|
|
75
|
+
w(() => D.modelValue, ge);
|
|
76
|
+
let I = s(() => {
|
|
77
|
+
if (A.value) return;
|
|
78
|
+
let e = Y(), t = D.width === "anchor" ? e?.getBoundingClientRect().width : void 0;
|
|
78
79
|
return {
|
|
79
|
-
top: `${
|
|
80
|
-
left: `${
|
|
80
|
+
top: `${P.top}px`,
|
|
81
|
+
left: `${P.left}px`,
|
|
81
82
|
width: t === void 0 ? void 0 : `${t}px`
|
|
82
83
|
};
|
|
83
|
-
}),
|
|
84
|
-
if (
|
|
85
|
-
top:
|
|
86
|
-
left:
|
|
87
|
-
opacity: +!
|
|
84
|
+
}), L = s(() => {
|
|
85
|
+
if (D.arrow) return {
|
|
86
|
+
top: F.top === void 0 ? void 0 : `${F.top}px`,
|
|
87
|
+
left: F.left === void 0 ? void 0 : `${F.left}px`,
|
|
88
|
+
opacity: +!F.hidden
|
|
88
89
|
};
|
|
89
|
-
}),
|
|
90
|
-
function
|
|
91
|
-
let e =
|
|
92
|
-
if (!e || !
|
|
90
|
+
}), R = C("arrow"), z = C("overlay"), B = C("overlayContainer");
|
|
91
|
+
function V() {
|
|
92
|
+
let e = Y();
|
|
93
|
+
if (!e || !B.value) return;
|
|
93
94
|
let t = {
|
|
94
|
-
placement:
|
|
95
|
-
width:
|
|
96
|
-
offset:
|
|
97
|
-
crossOffset:
|
|
98
|
-
arrow:
|
|
99
|
-
}, n =
|
|
100
|
-
|
|
95
|
+
placement: D.placement,
|
|
96
|
+
width: D.width,
|
|
97
|
+
offset: ne(D.offset, B.value),
|
|
98
|
+
crossOffset: D.crossOffset,
|
|
99
|
+
arrow: D.arrow
|
|
100
|
+
}, n = a(e, B.value, R?.value ?? void 0, t);
|
|
101
|
+
P.left = n.overlayCoords.x, P.top = n.overlayCoords.y, P.placement = n.placement, F.hidden = n.arrowCoords === void 0, n.arrowCoords && (F.top = n.arrowCoords.y, F.left = n.arrowCoords.x);
|
|
101
102
|
}
|
|
102
|
-
w(() =>
|
|
103
|
-
let
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
w(() => D.placement, () => p(V));
|
|
104
|
+
let H;
|
|
105
|
+
function U() {
|
|
106
|
+
G(0);
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
108
|
+
function W() {
|
|
109
|
+
G(D.delay);
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
function G(e) {
|
|
112
|
+
H && q(), H = window.setTimeout(() => {
|
|
113
|
+
O("update:modelValue", !0);
|
|
113
114
|
}, e);
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
-
if (
|
|
117
|
-
let e =
|
|
118
|
-
|
|
116
|
+
function K() {
|
|
117
|
+
if (H && q(), O("update:modelValue", !1), D.anchor && D.trigger === "click") {
|
|
118
|
+
let e = Y();
|
|
119
|
+
p(() => e?.focus());
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
-
clearTimeout(
|
|
122
|
+
function q() {
|
|
123
|
+
clearTimeout(H), H = void 0;
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
125
|
+
function fe() {
|
|
126
|
+
p(Ce), O("enter");
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
128
|
+
function pe() {
|
|
129
|
+
J();
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
131
|
+
function me() {
|
|
132
|
+
O("leave");
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
134
|
+
function he() {
|
|
135
|
+
J(), we();
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
137
|
+
function ge() {
|
|
138
|
+
P.animating = !0;
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
140
|
+
function J() {
|
|
141
|
+
P.animating = !1;
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
143
|
+
function Y() {
|
|
144
|
+
return D.anchor ? i(D.anchor) : null;
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
146
|
+
function X(e) {
|
|
147
|
+
D.persistent && e.preventDefault();
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
-
if (
|
|
149
|
+
function _e(e) {
|
|
150
|
+
if (D.persistent) {
|
|
150
151
|
e.preventDefault();
|
|
151
152
|
return;
|
|
152
153
|
}
|
|
153
154
|
let t = !1;
|
|
154
155
|
e.defaultPrevented || e.detail.originalEvent.type === "pointerdown" && (t = !0);
|
|
155
156
|
let n = e.detail.originalEvent.target;
|
|
156
|
-
if (
|
|
157
|
+
if (Y()?.contains(n)) {
|
|
157
158
|
e.preventDefault();
|
|
158
159
|
return;
|
|
159
160
|
}
|
|
160
161
|
e.detail.originalEvent.type === "focusin" && t && e.preventDefault();
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
163
|
+
function ve() {
|
|
164
|
+
K();
|
|
164
165
|
}
|
|
165
166
|
let Z;
|
|
166
|
-
function
|
|
167
|
-
let e =
|
|
168
|
-
if (e) switch (Z = new MutationObserver(
|
|
167
|
+
function ye() {
|
|
168
|
+
let e = Y();
|
|
169
|
+
if (e) switch (Z = new MutationObserver(V), Z.observe(e, {
|
|
169
170
|
attributes: !1,
|
|
170
171
|
childList: !0,
|
|
171
172
|
characterData: !0,
|
|
172
173
|
subtree: !0
|
|
173
|
-
}),
|
|
174
|
+
}), D.trigger) {
|
|
174
175
|
case "click":
|
|
175
|
-
e.addEventListener("click",
|
|
176
|
+
e.addEventListener("click", U);
|
|
176
177
|
break;
|
|
177
178
|
case "hover":
|
|
178
|
-
e.addEventListener("mouseenter",
|
|
179
|
+
e.addEventListener("mouseenter", W), e.addEventListener("mouseleave", K), e.addEventListener("focusin", U), e.addEventListener("focusout", K);
|
|
179
180
|
break;
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
-
let e =
|
|
184
|
-
if (e) switch (Z?.disconnect(),
|
|
183
|
+
function be() {
|
|
184
|
+
let e = Y();
|
|
185
|
+
if (e) switch (Z?.disconnect(), D.trigger) {
|
|
185
186
|
case "click":
|
|
186
|
-
e.removeEventListener("click",
|
|
187
|
+
e.removeEventListener("click", U);
|
|
187
188
|
break;
|
|
188
189
|
case "hover":
|
|
189
|
-
e.removeEventListener("mouseenter",
|
|
190
|
+
e.removeEventListener("mouseenter", W), e.removeEventListener("mouseleave", K), e.removeEventListener("focusin", U), e.removeEventListener("focusout", K);
|
|
190
191
|
break;
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
-
window.addEventListener("resize",
|
|
194
|
+
function xe() {
|
|
195
|
+
window.addEventListener("resize", V), D.scrollLock || window.addEventListener("scroll", V);
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
-
window.removeEventListener("resize",
|
|
197
|
+
function Se() {
|
|
198
|
+
window.removeEventListener("resize", V), D.scrollLock || window.removeEventListener("scroll", V);
|
|
198
199
|
}
|
|
199
200
|
let Q;
|
|
200
201
|
function $() {
|
|
201
|
-
|
|
202
|
+
Y() ? (V(), Q = window.setTimeout($, 100)) : K();
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
204
|
+
function Ce() {
|
|
205
|
+
A.value || (xe(), D.spy ? $() : V()), (A.value || D.trigger === "click") && !D.initialFocus && !D.focusWithinOnActivate && z.value?.focus();
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
207
|
+
function we() {
|
|
208
|
+
A.value || Se(), D.spy && (clearTimeout(Q), Q = void 0);
|
|
208
209
|
}
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
}),
|
|
212
|
-
disabled: !
|
|
213
|
-
to:
|
|
214
|
-
}, [
|
|
210
|
+
return _(() => {
|
|
211
|
+
p(ye);
|
|
212
|
+
}), g(be), (e, t) => (v(), u(re, null, [(v(), c(ie, {
|
|
213
|
+
disabled: !N.value,
|
|
214
|
+
to: D.attach
|
|
215
|
+
}, [d(o, {
|
|
215
216
|
name: "fade",
|
|
216
217
|
appear: ""
|
|
217
218
|
}, {
|
|
218
|
-
default: T(() => [
|
|
219
|
+
default: T(() => [j.value ? (v(), u("div", {
|
|
219
220
|
key: 0,
|
|
220
|
-
class:
|
|
221
|
-
|
|
221
|
+
class: m([
|
|
222
|
+
D.backdropClass,
|
|
222
223
|
"q-overlay__underlay",
|
|
223
|
-
{ "q-overlay__underlay--blur":
|
|
224
|
+
{ "q-overlay__underlay--blur": D.backdropBlur }
|
|
224
225
|
]),
|
|
225
|
-
onMousedown:
|
|
226
|
-
}, null, 34)) :
|
|
226
|
+
onMousedown: t[0] ||= se(() => {}, ["prevent"])
|
|
227
|
+
}, null, 34)) : l("v-if", !0)]),
|
|
227
228
|
_: 1
|
|
228
|
-
}),
|
|
229
|
-
name:
|
|
229
|
+
}), d(o, {
|
|
230
|
+
name: D.transition,
|
|
230
231
|
appear: "",
|
|
231
|
-
onEnter:
|
|
232
|
-
onAfterEnter:
|
|
233
|
-
onLeave:
|
|
234
|
-
onAfterLeave:
|
|
232
|
+
onEnter: fe,
|
|
233
|
+
onAfterEnter: pe,
|
|
234
|
+
onLeave: me,
|
|
235
|
+
onAfterLeave: he
|
|
235
236
|
}, {
|
|
236
|
-
default: T(() => [
|
|
237
|
+
default: T(() => [D.modelValue ? (v(), u("div", {
|
|
237
238
|
key: 0,
|
|
238
|
-
id:
|
|
239
|
+
id: S(ue),
|
|
239
240
|
ref: "overlayContainer",
|
|
240
241
|
tabindex: "-1",
|
|
241
|
-
class:
|
|
242
|
-
style:
|
|
243
|
-
}, [
|
|
244
|
-
onDismiss:
|
|
245
|
-
onInteractOutside:
|
|
246
|
-
onPointerDownOutside:
|
|
242
|
+
class: m(k.value),
|
|
243
|
+
style: h(I.value)
|
|
244
|
+
}, [d(S(n), {
|
|
245
|
+
onDismiss: ve,
|
|
246
|
+
onInteractOutside: _e,
|
|
247
|
+
onPointerDownOutside: X
|
|
247
248
|
}, {
|
|
248
|
-
default: T(() => [
|
|
249
|
+
default: T(() => [B.value ? (v(), c(S(r), {
|
|
249
250
|
key: 0,
|
|
250
|
-
active: !
|
|
251
|
-
"initial-focus":
|
|
252
|
-
"focus-within-on-activate":
|
|
253
|
-
"closing-focus":
|
|
254
|
-
"return-focus-on-deactivate":
|
|
251
|
+
active: !D.nonModal && D.modelValue && D.focusWrap,
|
|
252
|
+
"initial-focus": D.initialFocus,
|
|
253
|
+
"focus-within-on-activate": D.focusWithinOnActivate,
|
|
254
|
+
"closing-focus": D.closingFocus,
|
|
255
|
+
"return-focus-on-deactivate": D.returnFocusOnDeactivate
|
|
255
256
|
}, {
|
|
256
|
-
default: T(() => [
|
|
257
|
+
default: T(() => [ae("div", oe({
|
|
257
258
|
ref: "overlay",
|
|
258
259
|
class: "q-overlay__content",
|
|
259
260
|
tabindex: "-1",
|
|
260
|
-
role:
|
|
261
|
-
}, e.$attrs), [
|
|
261
|
+
role: j.value ? "dialog" : void 0
|
|
262
|
+
}, e.$attrs), [D.arrow ? (v(), u("div", {
|
|
262
263
|
key: 0,
|
|
263
264
|
ref: "arrow",
|
|
264
265
|
role: "presentation",
|
|
265
266
|
class: "q-overlay__arrow",
|
|
266
|
-
style:
|
|
267
|
-
}, null, 4)) :
|
|
267
|
+
style: h(L.value)
|
|
268
|
+
}, null, 4)) : l("v-if", !0), b(e.$slots, "default")], 16, le)]),
|
|
268
269
|
_: 3
|
|
269
270
|
}, 8, [
|
|
270
271
|
"active",
|
|
@@ -272,12 +273,12 @@ var D = ["id"], O = ["role"], k = /*@__PURE__*/ g({
|
|
|
272
273
|
"focus-within-on-activate",
|
|
273
274
|
"closing-focus",
|
|
274
275
|
"return-focus-on-deactivate"
|
|
275
|
-
])) :
|
|
276
|
+
])) : l("v-if", !0)]),
|
|
276
277
|
_: 3
|
|
277
|
-
})], 14,
|
|
278
|
+
})], 14, ce)) : l("v-if", !0)]),
|
|
278
279
|
_: 3
|
|
279
|
-
}, 8, ["name"])], 8, ["disabled", "to"])),
|
|
280
|
+
}, 8, ["name"])], 8, ["disabled", "to"])), M.value ? (v(), c(S(ee), { key: 0 })) : l("v-if", !0)], 64));
|
|
280
281
|
}
|
|
281
282
|
});
|
|
282
283
|
//#endregion
|
|
283
|
-
export {
|
|
284
|
+
export { E as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DEFAULT_TEXTS } from './constants';
|
|
1
2
|
import { QPasswordFieldProps } from '.';
|
|
2
3
|
type __VLS_Props = QPasswordFieldProps;
|
|
3
4
|
type __VLS_PublicProps = {
|
|
@@ -220,6 +221,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
220
221
|
"onUpdate:masked"?: ((value: boolean) => any) | undefined;
|
|
221
222
|
}>, {
|
|
222
223
|
icons: import('./types').QPasswordFieldIcons;
|
|
224
|
+
texts: typeof DEFAULT_TEXTS;
|
|
223
225
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
224
226
|
fieldRef: ({
|
|
225
227
|
$: 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":"AA8DA;AAgLC,OAAO,EAAiB,aAAa,EAAE,MAAM,aAAa,CAAA;AAc1D,OAAO,KAAK,EAEX,mBAAmB,EAEnB,MAAM,GAAG,CAAA;AAKV,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA8FxC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,WAAW,CAAC;AAMhB,iBAAS,cAAc;WAoLT,OAAO,IAA6B;;iCAhBZ,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAyEg6T,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAxDrjU;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA8B26T,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArBpjU,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"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import i from "./
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { useId as e } from "../../composables/useId/index.js";
|
|
2
|
+
import { QButton as t } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as n } from "../QIcon/index.js";
|
|
4
|
+
import { QTextField as r } from "../QTextField/index.js";
|
|
5
|
+
import { DEFAULT_ICONS as i, DEFAULT_TEXTS as a } from "./constants.js";
|
|
6
|
+
import o from "./QPasswordFieldMessages2.vue.js";
|
|
7
|
+
import s from "./QPasswordFieldMeterOverlay2.vue.js";
|
|
8
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createSlots as p, createVNode as m, defineComponent as h, guardReactiveProps as g, mergeModels as _, mergeProps as v, normalizeProps as y, openBlock as b, ref as x, renderSlot as S, toRef as C, unref as w, useModel as T, withCtx as E } from "vue";
|
|
8
9
|
//#region src/components/QPasswordField/QPasswordField.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
+
var D = /*@__PURE__*/ h({
|
|
10
11
|
inheritAttrs: !1,
|
|
11
12
|
__name: "QPasswordField",
|
|
12
|
-
props: /*@__PURE__*/
|
|
13
|
+
props: /*@__PURE__*/ _({
|
|
13
14
|
id: {},
|
|
14
15
|
class: {},
|
|
15
16
|
label: {},
|
|
@@ -26,7 +27,8 @@ var w = /*@__PURE__*/ p({
|
|
|
26
27
|
meter: { type: Boolean },
|
|
27
28
|
meterLevels: {},
|
|
28
29
|
rules: {},
|
|
29
|
-
icons: { default: () =>
|
|
30
|
+
icons: { default: () => i },
|
|
31
|
+
texts: { default: () => a }
|
|
30
32
|
}, {
|
|
31
33
|
modelValue: {},
|
|
32
34
|
modelModifiers: {},
|
|
@@ -37,77 +39,78 @@ var w = /*@__PURE__*/ p({
|
|
|
37
39
|
maskedModifiers: {}
|
|
38
40
|
}),
|
|
39
41
|
emits: ["update:modelValue", "update:masked"],
|
|
40
|
-
setup(
|
|
41
|
-
let
|
|
42
|
-
function
|
|
42
|
+
setup(i) {
|
|
43
|
+
let a = i, h = T(i, "modelValue"), _ = T(i, "masked"), D = e(C(a, "id")), O = x(null), k = x(!1), A = l(() => _.value ? "password" : "text"), j = l(() => a.rules?.reduce((e, t) => e + t.weight, 0)), M = l(() => N(h.value, a.rules));
|
|
44
|
+
function N(e, t) {
|
|
43
45
|
if (!e || !t) return;
|
|
44
46
|
let n = 0, r = [];
|
|
45
47
|
return t.forEach((t) => {
|
|
46
48
|
let i = t.test instanceof RegExp ? t.test.test(e) : t.test(e);
|
|
47
49
|
i === !0 ? n += t.weight : typeof i == "string" && r.push(i);
|
|
48
50
|
}), {
|
|
49
|
-
score:
|
|
51
|
+
score: j.value ? n / j.value : 0,
|
|
50
52
|
messages: r
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
55
|
+
function P() {
|
|
56
|
+
_.value = !_.value;
|
|
55
57
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
+
function F() {
|
|
59
|
+
k.value = !0;
|
|
58
60
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
+
function I() {
|
|
62
|
+
k.value = !1;
|
|
61
63
|
}
|
|
62
|
-
return (
|
|
63
|
-
id:
|
|
64
|
+
return (e, i) => (b(), f(c, null, [m(w(r), v({
|
|
65
|
+
id: w(D),
|
|
64
66
|
ref_key: "fieldRef",
|
|
65
|
-
ref:
|
|
67
|
+
ref: O,
|
|
66
68
|
modelValue: h.value,
|
|
67
|
-
"onUpdate:modelValue":
|
|
68
|
-
class:
|
|
69
|
-
type:
|
|
70
|
-
placeholder:
|
|
71
|
-
disabled:
|
|
72
|
-
readonly:
|
|
73
|
-
required:
|
|
74
|
-
label:
|
|
75
|
-
size:
|
|
76
|
-
invalid:
|
|
77
|
-
},
|
|
78
|
-
onFocusin:
|
|
79
|
-
onFocusout:
|
|
80
|
-
}),
|
|
81
|
-
"label.prepend":
|
|
82
|
-
"label.append":
|
|
69
|
+
"onUpdate:modelValue": i[0] ||= (e) => h.value = e,
|
|
70
|
+
class: a.class,
|
|
71
|
+
type: A.value,
|
|
72
|
+
placeholder: a.placeholder,
|
|
73
|
+
disabled: a.disabled,
|
|
74
|
+
readonly: a.readonly,
|
|
75
|
+
required: a.required,
|
|
76
|
+
label: a.label,
|
|
77
|
+
size: a.size,
|
|
78
|
+
invalid: a.invalid || !!M.value?.messages.length
|
|
79
|
+
}, e.$attrs, {
|
|
80
|
+
onFocusin: F,
|
|
81
|
+
onFocusout: I
|
|
82
|
+
}), p({
|
|
83
|
+
"label.prepend": E(() => [S(e.$slots, "label.prepend")]),
|
|
84
|
+
"label.append": E(() => [S(e.$slots, "label.append")]),
|
|
83
85
|
_: 2
|
|
84
86
|
}, [
|
|
85
|
-
|
|
87
|
+
e.$slots.prepend ? {
|
|
86
88
|
name: "prepend",
|
|
87
|
-
fn:
|
|
89
|
+
fn: E(() => [S(e.$slots, "prepend")]),
|
|
88
90
|
key: "0"
|
|
89
91
|
} : void 0,
|
|
90
|
-
|
|
92
|
+
a.toggle ? {
|
|
91
93
|
name: "append",
|
|
92
|
-
fn:
|
|
94
|
+
fn: E(() => [S(e.$slots, "append"), m(w(t), {
|
|
93
95
|
size: "small",
|
|
94
96
|
borderless: "",
|
|
95
97
|
"data-testid": "q-password-toggle",
|
|
96
|
-
disabled:
|
|
97
|
-
|
|
98
|
+
disabled: a.disabled,
|
|
99
|
+
"aria-label": _.value ? a.texts.show : a.texts.hide,
|
|
100
|
+
onClick: P
|
|
98
101
|
}, {
|
|
99
|
-
default:
|
|
102
|
+
default: E(() => [m(w(n), y(g(_.value ? a.icons.show : a.icons.hide)), null, 16)]),
|
|
100
103
|
_: 1
|
|
101
|
-
}, 8, ["disabled"])]),
|
|
104
|
+
}, 8, ["disabled", "aria-label"])]),
|
|
102
105
|
key: "1"
|
|
103
106
|
} : void 0,
|
|
104
|
-
|
|
107
|
+
e.$slots.extras || a.rules && !a.meter ? {
|
|
105
108
|
name: "extras",
|
|
106
|
-
fn:
|
|
109
|
+
fn: E(() => [S(e.$slots, "extras", {}, () => [M.value?.messages.length ? (b(), u(o, {
|
|
107
110
|
key: 0,
|
|
108
111
|
class: "q-password-field__inline-messages",
|
|
109
|
-
messages:
|
|
110
|
-
}, null, 8, ["messages"])) :
|
|
112
|
+
messages: M.value.messages
|
|
113
|
+
}, null, 8, ["messages"])) : d("v-if", !0)])]),
|
|
111
114
|
key: "2"
|
|
112
115
|
} : void 0
|
|
113
116
|
]), 1040, [
|
|
@@ -122,22 +125,22 @@ var w = /*@__PURE__*/ p({
|
|
|
122
125
|
"label",
|
|
123
126
|
"size",
|
|
124
127
|
"invalid"
|
|
125
|
-
]),
|
|
128
|
+
]), a.meter && a.meterLevels && M.value ? (b(), u(s, {
|
|
126
129
|
key: 0,
|
|
127
|
-
modelValue:
|
|
128
|
-
"onUpdate:modelValue":
|
|
129
|
-
score:
|
|
130
|
-
levels:
|
|
131
|
-
messages:
|
|
132
|
-
anchor:
|
|
130
|
+
modelValue: k.value,
|
|
131
|
+
"onUpdate:modelValue": i[1] ||= (e) => k.value = e,
|
|
132
|
+
score: M.value.score,
|
|
133
|
+
levels: a.meterLevels,
|
|
134
|
+
messages: M.value.messages,
|
|
135
|
+
anchor: O.value?.$el
|
|
133
136
|
}, null, 8, [
|
|
134
137
|
"modelValue",
|
|
135
138
|
"score",
|
|
136
139
|
"levels",
|
|
137
140
|
"messages",
|
|
138
141
|
"anchor"
|
|
139
|
-
])) :
|
|
142
|
+
])) : d("v-if", !0)], 64));
|
|
140
143
|
}
|
|
141
144
|
});
|
|
142
145
|
//#endregion
|
|
143
|
-
export {
|
|
146
|
+
export { D as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;CAOY,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/constants.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;CAGQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAOY,CAAA"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
//#region src/components/QPasswordField/constants.ts
|
|
2
2
|
var e = {
|
|
3
|
+
show: "Show password",
|
|
4
|
+
hide: "Hide password"
|
|
5
|
+
}, t = {
|
|
3
6
|
show: { icon: "eye" },
|
|
4
7
|
hide: { icon: "eye-off" }
|
|
5
8
|
};
|
|
6
9
|
//#endregion
|
|
7
|
-
export {
|
|
10
|
+
export { t as DEFAULT_ICONS, e as DEFAULT_TEXTS };
|