@quidgest/ui 0.29.0 → 0.30.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 +59 -0
- package/README.md +2 -20
- package/dist/json/api.json +1059 -803
- package/dist/ui.css +77 -29
- package/dist/ui.esm.js +1093 -994
- package/dist/ui.min.css +1 -1
- package/dist/ui.scss +75 -24
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordion.vue.js +2 -0
- package/esm/components/QAccordion/QAccordionItem.d.ts.map +1 -1
- package/esm/components/QAccordion/QAccordionItem.vue.js +3 -0
- package/esm/components/QAccordion/index.d.ts +3 -0
- package/esm/components/QAccordion/index.d.ts.map +1 -1
- package/esm/components/QAccordion/types.d.ts +8 -0
- package/esm/components/QAccordion/types.d.ts.map +1 -1
- package/esm/components/QAlert/QAlert.d.ts +1 -1
- package/esm/components/QAlert/index.d.ts +3 -3
- package/esm/components/QAvatar/QAvatar.d.ts +1 -1
- package/esm/components/QAvatar/index.d.ts +3 -3
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +23 -13
- package/esm/components/QBadgeIndicator/types.d.ts +13 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.d.ts.map +1 -1
- package/esm/components/QBreadcrumbs/QBreadcrumbs.vue.js +31 -31
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +54 -48
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +48 -32
- package/esm/components/QCard/types.d.ts +9 -0
- package/esm/components/QCard/types.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.d.ts +1 -0
- package/esm/components/QCarousel/QCarousel.d.ts.map +1 -1
- package/esm/components/QCarousel/QCarousel.vue.js +84 -80
- package/esm/components/QCarousel/index.d.ts +6 -0
- package/esm/components/QCarousel/index.d.ts.map +1 -1
- package/esm/components/QCarousel/types.d.ts +9 -1
- package/esm/components/QCarousel/types.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +9 -1
- package/esm/components/QCheckbox/index.d.ts +3 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCheckbox/types.d.ts +8 -0
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.d.ts +1 -0
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +55 -47
- package/esm/components/QCollapsible/index.d.ts +6 -0
- package/esm/components/QCollapsible/index.d.ts.map +1 -1
- package/esm/components/QCollapsible/types.d.ts +9 -0
- package/esm/components/QCollapsible/types.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.d.ts.map +1 -1
- package/esm/components/QColorPicker/QColorPicker.vue.js +4 -1
- package/esm/components/QColorPicker/index.d.ts +3 -0
- package/esm/components/QColorPicker/index.d.ts.map +1 -1
- package/esm/components/QColorPicker/types.d.ts +7 -0
- package/esm/components/QColorPicker/types.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +7 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +258 -235
- package/esm/components/QCombobox/constants.d.ts +1 -0
- package/esm/components/QCombobox/constants.d.ts.map +1 -1
- package/esm/components/QCombobox/constants.js +1 -0
- package/esm/components/QCombobox/index.d.ts +11 -0
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +180 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +637 -542
- package/esm/components/QDateTimePicker/index.d.ts +90 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +2 -0
- package/esm/components/QDialog/types.d.ts +3 -1
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +3 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +84 -27
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +9 -2
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +168 -135
- package/esm/components/QDropdownMenu/ids.d.ts +8 -0
- package/esm/components/QDropdownMenu/ids.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/ids.js +6 -0
- package/esm/components/QDropdownMenu/index.d.ts +9 -3
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/types.d.ts +3 -1
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +2 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +68 -61
- package/esm/components/QField/ids.d.ts +15 -0
- package/esm/components/QField/ids.d.ts.map +1 -0
- package/esm/components/QField/ids.js +10 -0
- package/esm/components/QField/index.d.ts +2 -0
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.d.ts +355 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +118 -88
- package/esm/components/QFileUpload/constants.d.ts +2 -0
- package/esm/components/QFileUpload/constants.d.ts.map +1 -1
- package/esm/components/QFileUpload/constants.js +3 -1
- package/esm/components/QFileUpload/index.d.ts +182 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +2 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +1 -0
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +5 -0
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +48 -41
- package/esm/components/QInputGroup/index.d.ts +3 -0
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +21 -19
- package/esm/components/QLabel/ids.d.ts +9 -0
- package/esm/components/QLabel/ids.d.ts.map +1 -0
- package/esm/components/QLabel/ids.js +6 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +15 -14
- package/esm/components/QList/QList.d.ts +3 -3
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +135 -117
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +54 -50
- package/esm/components/QList/context.d.ts +8 -0
- package/esm/components/QList/context.d.ts.map +1 -0
- package/esm/components/QList/context.js +4 -0
- package/esm/components/QMeter/QMeter.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +38 -19
- package/esm/components/QMeter/index.d.ts +2 -10
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QMeter/types.d.ts +9 -1
- package/esm/components/QMeter/types.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.d.ts.map +1 -1
- package/esm/components/QObfuscation/QObfuscation.vue.js +42 -26
- package/esm/components/QObfuscation/index.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.d.ts.map +1 -1
- package/esm/components/QOverflow/QOverflow.vue.js +94 -73
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +162 -132
- package/esm/components/QPasswordField/QPasswordField.d.ts +4 -0
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +72 -66
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +4 -2
- package/esm/components/QPasswordField/index.d.ts +2 -0
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/types.d.ts +4 -0
- package/esm/components/QPasswordField/types.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.d.ts +34 -3
- package/esm/components/QPhoneField/QPhoneField.d.ts.map +1 -1
- package/esm/components/QPhoneField/QPhoneField.vue.js +98 -102
- package/esm/components/QPhoneField/constants.d.ts +2 -1
- package/esm/components/QPhoneField/constants.d.ts.map +1 -1
- package/esm/components/QPhoneField/constants.js +1 -1
- package/esm/components/QPhoneField/index.d.ts +26 -8
- package/esm/components/QPhoneField/index.d.ts.map +1 -1
- package/esm/components/QPhoneField/types.d.ts +5 -2
- package/esm/components/QPhoneField/types.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/index.d.ts +3 -3
- package/esm/components/QProgress/QProgress.d.ts.map +1 -1
- package/esm/components/QProgress/QProgress.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +53 -41
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -1
- package/esm/components/QSection/QSection.d.ts.map +1 -1
- package/esm/components/QSection/QSection.vue.js +3 -2
- package/esm/components/QSection/types.d.ts +3 -4
- package/esm/components/QSection/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +6 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +405 -355
- package/esm/components/QSelect/constants.d.ts +2 -0
- package/esm/components/QSelect/constants.d.ts.map +1 -1
- package/esm/components/QSelect/constants.js +3 -1
- package/esm/components/QSelect/index.d.ts +8 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.d.ts +1 -0
- package/esm/components/QSidebar/QSidebarItem.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarItem.vue.js +3 -0
- package/esm/components/QSidebar/QSidebarPanel.d.ts.map +1 -1
- package/esm/components/QSidebar/QSidebarPanel.vue.js +93 -32
- package/esm/components/QSidebar/index.d.ts +3 -0
- package/esm/components/QSidebar/index.d.ts.map +1 -1
- package/esm/components/QSidebar/types.d.ts +20 -1
- 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 +16 -15
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +11 -10
- package/esm/components/QSteps/QSteps.d.ts +3 -2
- package/esm/components/QSteps/QSteps.d.ts.map +1 -1
- package/esm/components/QSteps/QSteps.vue.js +171 -152
- package/esm/components/QSteps/QStepsNav.d.ts +7 -0
- package/esm/components/QSteps/QStepsNav.d.ts.map +1 -1
- package/esm/components/QSteps/QStepsNav.vue.js +29 -15
- package/esm/components/QSteps/constants.d.ts +4 -2
- package/esm/components/QSteps/constants.d.ts.map +1 -1
- package/esm/components/QSteps/constants.js +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts +2 -0
- package/esm/components/QSwitch/QSwitch.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +12 -2
- package/esm/components/QSwitch/index.d.ts +4 -0
- package/esm/components/QSwitch/index.d.ts.map +1 -1
- package/esm/components/QSwitch/types.d.ts +8 -0
- package/esm/components/QSwitch/types.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.d.ts.map +1 -1
- package/esm/components/QTabs/QTab.vue.js +1 -0
- package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
- package/esm/components/QTextArea/QTextArea.vue.js +6 -2
- package/esm/components/QTextField/QTextField.d.ts +4 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +5 -3
- package/esm/components/QTextField/index.d.ts +2 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QToast/QToast.d.ts +1 -0
- package/esm/components/QToast/QToast.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +89 -85
- 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 +8 -0
- package/esm/components/QToast/types.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +19 -11
- package/esm/components/__internal__/QClearButton/QClearButton.d.ts.map +1 -1
- package/esm/components/__internal__/QHelpPopover/QHelpPopover.d.ts.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/utils/focus.d.ts +10 -0
- package/esm/utils/focus.d.ts.map +1 -1
- package/esm/utils/focus.js +5 -2
- package/esm/utils/loader.d.ts +19 -0
- package/esm/utils/loader.d.ts.map +1 -0
- package/esm/utils/loader.js +6 -0
- package/package.json +24 -23
- package/dist/ui.js +0 -1846
- package/dist/ui.min.js +0 -1846
|
@@ -25,15 +25,12 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "q-phone-field__flag-fallback",
|
|
27
27
|
"aria-hidden": "true"
|
|
28
|
-
}, _e = { class: "q-phone-field__country-name" }, ve = { class: "q-phone-field__item-code" }, ye =
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "q-phone-field__empty"
|
|
31
|
-
}, be = [
|
|
28
|
+
}, _e = { class: "q-phone-field__country-name" }, ve = { class: "q-phone-field__item-code" }, ye = [
|
|
32
29
|
"name",
|
|
33
30
|
"value",
|
|
34
31
|
"form",
|
|
35
32
|
"disabled"
|
|
36
|
-
],
|
|
33
|
+
], be = ["id"], xe = {
|
|
37
34
|
key: 0,
|
|
38
35
|
class: "q-phone-field__validation-message",
|
|
39
36
|
role: "alert"
|
|
@@ -82,22 +79,22 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
82
79
|
"update:open"
|
|
83
80
|
]),
|
|
84
81
|
setup(a, { expose: o, emit: se }) {
|
|
85
|
-
let v = a, A = se,
|
|
86
|
-
function
|
|
82
|
+
let v = a, A = se, Se = de(), j = E(a, "modelValue"), M = E(a, "country"), N = E(a, "open"), Ce = /^[+\d\s().-]+$/;
|
|
83
|
+
function we(e) {
|
|
87
84
|
let t = e?.toUpperCase();
|
|
88
85
|
return t && d(t) ? t : void 0;
|
|
89
86
|
}
|
|
90
|
-
function
|
|
91
|
-
if (e) return
|
|
87
|
+
function Te(e) {
|
|
88
|
+
if (e) return we(e.split(/[-_]/).slice(1).find((e) => /^[A-Za-z]{2}$/.test(e)));
|
|
92
89
|
}
|
|
93
|
-
let P = ue(), F = e(le(v, "id")),
|
|
90
|
+
let P = ue(), F = e(le(v, "id")), Ee = p(() => `${F.value}_group`), De = p(() => `${F.value}_input`), Oe = p(() => `${F.value}_country`), I = p(() => `${F.value}_validation`), ke = p(() => typeof P.name == "string" && P.name ? P.name : void 0), Ae = p(() => typeof P.form == "string" && P.form ? P.form : void 0), je = p(() => Object.fromEntries(Object.entries(P).filter(([e]) => ![
|
|
94
91
|
"aria-describedby",
|
|
95
92
|
"aria-label",
|
|
96
93
|
"name"
|
|
97
|
-
].includes(e)))),
|
|
94
|
+
].includes(e)))), Me = p(() => {
|
|
98
95
|
let e = P["aria-label"];
|
|
99
96
|
return typeof e == "string" && e ? e : v.label ? void 0 : v.texts.phoneNumber;
|
|
100
|
-
}),
|
|
97
|
+
}), Ne = D("field"), Pe = D("input"), Fe = D("countrySelect"), Ie = D("searchField"), Le = p(() => Ne.value?.fieldRef ?? null), L = p(() => Pe.value?.inputRef ?? null), R = S(""), z = S(""), B = S(), V = S(""), Re = S(!1), H = !1, ze = p(() => {
|
|
101
98
|
try {
|
|
102
99
|
return new Intl.DisplayNames([v.locale], { type: "region" });
|
|
103
100
|
} catch {
|
|
@@ -105,13 +102,13 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
105
102
|
}
|
|
106
103
|
});
|
|
107
104
|
function U(e) {
|
|
108
|
-
let t =
|
|
105
|
+
let t = ze.value.of(e);
|
|
109
106
|
return !t || t === e ? e : t;
|
|
110
107
|
}
|
|
111
108
|
let W = p(() => {
|
|
112
109
|
let e = v.countries ?? ne(), t = e.filter((t, n) => d(t) && e.indexOf(t) === n);
|
|
113
|
-
return v.countries ? t : t.sort(
|
|
114
|
-
}),
|
|
110
|
+
return v.countries ? t : t.sort(Xe);
|
|
111
|
+
}), Be = p(() => W.value.map((e) => {
|
|
115
112
|
let t = U(e), n = f(e);
|
|
116
113
|
return {
|
|
117
114
|
key: e,
|
|
@@ -119,52 +116,52 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
119
116
|
name: t,
|
|
120
117
|
callingCode: n,
|
|
121
118
|
hasFlag: c(e),
|
|
122
|
-
searchValue:
|
|
119
|
+
searchValue: Ye(`${t} ${e} +${n}`)
|
|
123
120
|
};
|
|
124
|
-
})),
|
|
125
|
-
let e =
|
|
126
|
-
return e ?
|
|
127
|
-
}), G = p(() => B.value ? f(B.value) : V.value),
|
|
121
|
+
})), Ve = p(() => {
|
|
122
|
+
let e = Ye(z.value);
|
|
123
|
+
return e ? Be.value.filter((t) => t.searchValue.includes(e)) : Be.value;
|
|
124
|
+
}), G = p(() => B.value ? f(B.value) : V.value), He = p(() => B.value ? c(B.value) : !1), Ue = p({
|
|
128
125
|
get: () => B.value,
|
|
129
126
|
set: (e) => {
|
|
130
|
-
e &&
|
|
127
|
+
e && dt(e);
|
|
131
128
|
}
|
|
132
|
-
}),
|
|
129
|
+
}), We = p(() => !B.value || !G.value ? v.texts.selectCountry : `${v.texts.selectCountry}: ${U(B.value)} (+${G.value})`), Ge = p(() => {
|
|
133
130
|
if (v.readonly || v.disabled) return;
|
|
134
131
|
if (v.placeholder !== void 0) return v.placeholder;
|
|
135
132
|
if (!B.value) return;
|
|
136
133
|
let e = re(B.value, ee);
|
|
137
134
|
if (e) return Y(e.formatInternational(), e.countryCallingCode).replace(/\d/g, "0");
|
|
138
|
-
}),
|
|
135
|
+
}), Ke = p(() => v.clearable && !!j.value && !v.readonly && !v.disabled), K = p(() => {
|
|
139
136
|
let e = j.value ? l(j.value, { extract: !1 }) : void 0, t = e?.country ?? B.value, n = e?.countryCallingCode ?? G.value, r = e && !e.country && e.countryCallingCode && (e.isPossible() || e.isValid()) ? v.countries === void 0 : t ? W.value.includes(t) : !!n && W.value.some((e) => f(e) === n);
|
|
140
137
|
return {
|
|
141
138
|
isPossible: !!e?.isPossible(),
|
|
142
139
|
isValid: !!e?.isValid(),
|
|
143
140
|
isAllowedCountry: r
|
|
144
141
|
};
|
|
145
|
-
}),
|
|
146
|
-
if (
|
|
147
|
-
}),
|
|
148
|
-
function
|
|
142
|
+
}), qe = p(() => v.autoValidate && Re.value && !v.readonly && !v.disabled && (v.required && !j.value || !!j.value && (!K.value.isValid || !K.value.isAllowedCountry))), q = p(() => v.invalid || qe.value), J = p(() => {
|
|
143
|
+
if (qe.value) return j.value ? K.value.isValid ? v.texts.unsupportedCountry : v.texts.invalidNumber : v.texts.requiredNumber;
|
|
144
|
+
}), Je = p(() => [P["aria-describedby"], J.value || Se.extras ? I.value : void 0].filter(Boolean).join(" ") || void 0);
|
|
145
|
+
function Ye(e) {
|
|
149
146
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
|
|
150
147
|
}
|
|
151
|
-
function
|
|
148
|
+
function Xe(e, t) {
|
|
152
149
|
try {
|
|
153
150
|
return U(e).localeCompare(U(t), v.locale);
|
|
154
151
|
} catch {
|
|
155
152
|
return U(e).localeCompare(U(t), "en-US");
|
|
156
153
|
}
|
|
157
154
|
}
|
|
158
|
-
function
|
|
155
|
+
function Ze(e) {
|
|
159
156
|
return te(e.trim().replace(/^00/, "+"));
|
|
160
157
|
}
|
|
161
|
-
function
|
|
158
|
+
function Qe(e, t) {
|
|
162
159
|
let n = e.getNumber(), r = e.getCountry() ?? n?.country;
|
|
163
160
|
if (r) return r;
|
|
164
161
|
let i = e.getCallingCode(), a = n?.nationalNumber ?? "", o = n?.getPossibleCountries() ?? [];
|
|
165
162
|
return t && (o.includes(t) || a && i && f(t) === i) ? t : o.length === 1 ? o[0] : void 0;
|
|
166
163
|
}
|
|
167
|
-
function
|
|
164
|
+
function $e(e, t, n) {
|
|
168
165
|
if (!e) return "";
|
|
169
166
|
let r = n ? l(n, { extract: !1 }) : void 0;
|
|
170
167
|
if (r && (r.isPossible() || r.isValid())) return Y(r.formatInternational(), r.countryCallingCode);
|
|
@@ -175,50 +172,50 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
175
172
|
function Y(e, t) {
|
|
176
173
|
return e.slice(`+${t}`.length).trim();
|
|
177
174
|
}
|
|
178
|
-
function
|
|
175
|
+
function et(e) {
|
|
179
176
|
let t = e.trim();
|
|
180
|
-
return /\d/.test(t) &&
|
|
177
|
+
return /\d/.test(t) && Ce.test(t) && (t.match(/\+/g) ?? []).length <= 1 && (!t.includes("+") || t.startsWith("+"));
|
|
181
178
|
}
|
|
182
179
|
let X;
|
|
183
180
|
function Z(e) {
|
|
184
181
|
j.value !== e && (X = e, j.value = e, j.value === e && (X = void 0));
|
|
185
182
|
}
|
|
186
|
-
function
|
|
183
|
+
function tt(e) {
|
|
187
184
|
M.value !== e && (M.value = e);
|
|
188
185
|
}
|
|
189
186
|
function Q(e, t = "") {
|
|
190
|
-
B.value = e, V.value = e ? f(e) : t,
|
|
187
|
+
B.value = e, V.value = e ? f(e) : t, tt(e);
|
|
191
188
|
}
|
|
192
|
-
function
|
|
189
|
+
function nt() {
|
|
193
190
|
if (M.value && W.value.includes(M.value)) return M.value;
|
|
194
191
|
if (v.defaultCountry && W.value.includes(v.defaultCountry)) return v.defaultCountry;
|
|
195
|
-
let e =
|
|
192
|
+
let e = Te(v.locale);
|
|
196
193
|
return e && W.value.includes(e) ? e : W.value[0];
|
|
197
194
|
}
|
|
198
|
-
function
|
|
199
|
-
let n =
|
|
195
|
+
function rt(e, t) {
|
|
196
|
+
let n = Ze(e);
|
|
200
197
|
if (!n) {
|
|
201
198
|
R.value = "", t && Z("");
|
|
202
199
|
return;
|
|
203
200
|
}
|
|
204
201
|
let r = new u();
|
|
205
202
|
r.input(n);
|
|
206
|
-
let i = r.getNumber(), a = r.getCallingCode() ?? "", o =
|
|
207
|
-
Q(o, a), R.value =
|
|
203
|
+
let i = r.getNumber(), a = r.getCallingCode() ?? "", o = Qe(r, B.value), s = r.getNumberValue()?.toString() ?? n, c = i?.nationalNumber ?? (a ? n.slice(`+${a}`.length) : n);
|
|
204
|
+
Q(o, a), R.value = $e(c, o, s), t && Z(s);
|
|
208
205
|
}
|
|
209
|
-
function
|
|
210
|
-
if (B.value || Q(
|
|
206
|
+
function it(e) {
|
|
207
|
+
if (B.value || Q(nt()), !e) {
|
|
211
208
|
R.value = "";
|
|
212
209
|
return;
|
|
213
210
|
}
|
|
214
211
|
let t = e.trim();
|
|
215
212
|
if (t.startsWith("+") || t.startsWith("00")) {
|
|
216
|
-
|
|
213
|
+
rt(t, !0);
|
|
217
214
|
return;
|
|
218
215
|
}
|
|
219
|
-
|
|
216
|
+
at(t);
|
|
220
217
|
}
|
|
221
|
-
function
|
|
218
|
+
function at(e, t) {
|
|
222
219
|
let n = te(e).replace(/^\+/, "").replace(/\D/g, "");
|
|
223
220
|
if (!n) {
|
|
224
221
|
R.value = "", Z(""), $(t);
|
|
@@ -229,7 +226,7 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
229
226
|
let i = r ? f(r) : V.value;
|
|
230
227
|
Z(i ? `+${i}${n}` : `+${n}`), $(t);
|
|
231
228
|
}
|
|
232
|
-
function
|
|
229
|
+
function ot(e) {
|
|
233
230
|
let t = e.selectionStart ?? e.value.length;
|
|
234
231
|
return {
|
|
235
232
|
digitOffset: (e.value.slice(0, t).match(/\d/g) ?? []).length,
|
|
@@ -253,57 +250,57 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
253
250
|
for (let [i, a] of [...t.value].entries()) if (/\d/.test(a) && (n += 1), r = i + 1, n >= e.digitOffset) break;
|
|
254
251
|
t.setSelectionRange(r, r);
|
|
255
252
|
}
|
|
256
|
-
function
|
|
257
|
-
let t = e.value, n =
|
|
253
|
+
function st(e) {
|
|
254
|
+
let t = e.value, n = ot(e);
|
|
258
255
|
if (t.trim().startsWith("+") || t.trim().startsWith("00")) {
|
|
259
|
-
|
|
256
|
+
rt(t, !0), e.value = R.value, $(n);
|
|
260
257
|
return;
|
|
261
258
|
}
|
|
262
|
-
|
|
259
|
+
at(t, n), e.value = R.value;
|
|
263
260
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
261
|
+
function ct(e) {
|
|
262
|
+
st(e.target);
|
|
266
263
|
}
|
|
267
|
-
function
|
|
264
|
+
function lt(e) {
|
|
268
265
|
if (v.readonly || v.disabled) {
|
|
269
266
|
e.preventDefault();
|
|
270
267
|
return;
|
|
271
268
|
}
|
|
272
269
|
let t = e.clipboardData?.getData("text/plain") ?? e.clipboardData?.getData("text");
|
|
273
|
-
if (t === void 0 || (e.preventDefault(), !
|
|
270
|
+
if (t === void 0 || (e.preventDefault(), !et(t))) return;
|
|
274
271
|
let n = e.currentTarget, r = n.selectionStart ?? n.value.length, i = n.selectionEnd ?? r, a = `${n.value.slice(0, r)}${t}${n.value.slice(i)}`;
|
|
275
|
-
if (!
|
|
272
|
+
if (!et(a)) return;
|
|
276
273
|
n.value = a;
|
|
277
274
|
let o = r + t.length;
|
|
278
|
-
n.setSelectionRange(o, o),
|
|
275
|
+
n.setSelectionRange(o, o), st(n);
|
|
279
276
|
}
|
|
280
|
-
function
|
|
277
|
+
function ut() {
|
|
281
278
|
return (j.value ? l(j.value, { extract: !1 }) : void 0)?.nationalNumber ?? R.value.replace(/\D/g, "");
|
|
282
279
|
}
|
|
283
|
-
function
|
|
280
|
+
function dt(e) {
|
|
284
281
|
if (v.readonly || v.disabled || !W.value.includes(e)) return;
|
|
285
|
-
let t =
|
|
282
|
+
let t = ut(), n = f(e);
|
|
286
283
|
if (H = N.value, t) {
|
|
287
284
|
let r = `+${n}${t}`, i = new u();
|
|
288
285
|
i.input(r);
|
|
289
|
-
let a =
|
|
290
|
-
Q(a, n), R.value =
|
|
286
|
+
let a = Qe(i, e) ?? e;
|
|
287
|
+
Q(a, n), R.value = $e(t, a, r), Z(r);
|
|
291
288
|
} else Q(e, n);
|
|
292
289
|
N.value = !1;
|
|
293
290
|
}
|
|
294
|
-
function
|
|
295
|
-
["ArrowDown", "ArrowUp"].includes(e.key) && (e.preventDefault(),
|
|
291
|
+
function ft(e) {
|
|
292
|
+
e.altKey || e.ctrlKey || e.metaKey || ["ArrowDown", "ArrowUp"].includes(e.key) && (e.preventDefault(), Fe.value?.focusList());
|
|
296
293
|
}
|
|
297
|
-
async function
|
|
298
|
-
await y(),
|
|
294
|
+
async function pt() {
|
|
295
|
+
await y(), Ie.value?.inputRef?.focus();
|
|
299
296
|
}
|
|
300
|
-
function
|
|
297
|
+
function mt() {
|
|
301
298
|
z.value = "", H && (H = !1, y(() => L.value?.focus()));
|
|
302
299
|
}
|
|
303
|
-
function
|
|
304
|
-
|
|
300
|
+
function ht() {
|
|
301
|
+
Re.value = !0;
|
|
305
302
|
}
|
|
306
|
-
function
|
|
303
|
+
function gt(e) {
|
|
307
304
|
R.value = "", Z(""), A("click:clear", e), y(() => L.value?.focus());
|
|
308
305
|
}
|
|
309
306
|
return O(j, (e) => {
|
|
@@ -311,23 +308,23 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
311
308
|
X = void 0;
|
|
312
309
|
return;
|
|
313
310
|
}
|
|
314
|
-
X = void 0,
|
|
311
|
+
X = void 0, it(e);
|
|
315
312
|
}, {
|
|
316
313
|
immediate: !0,
|
|
317
314
|
flush: "sync"
|
|
318
315
|
}), O(M, (e) => {
|
|
319
|
-
e && d(e) && W.value.includes(e) && e !== B.value &&
|
|
316
|
+
e && d(e) && W.value.includes(e) && e !== B.value && dt(e);
|
|
320
317
|
}, { flush: "sync" }), O(W, () => {
|
|
321
|
-
!j.value && !W.value.includes(B.value) && Q(
|
|
318
|
+
!j.value && !W.value.includes(B.value) && Q(nt());
|
|
322
319
|
}), O(K, (e) => A("validity-change", e), { immediate: !0 }), o({
|
|
323
|
-
fieldRef:
|
|
320
|
+
fieldRef: Le,
|
|
324
321
|
inputRef: L,
|
|
325
322
|
validity: K
|
|
326
323
|
}), (e, a) => (x(), ae(T(i), {
|
|
327
|
-
id:
|
|
324
|
+
id: Ee.value,
|
|
328
325
|
ref: "field",
|
|
329
326
|
class: b(["q-phone-field", v.class]),
|
|
330
|
-
for:
|
|
327
|
+
for: De.value,
|
|
331
328
|
label: v.label,
|
|
332
329
|
"label-position": v.labelPosition,
|
|
333
330
|
size: v.size,
|
|
@@ -344,29 +341,29 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
344
341
|
"label.append": k(() => [C(e.$slots, "label.append")]),
|
|
345
342
|
default: k(({ describedBy: i }) => [
|
|
346
343
|
_(T(s), {
|
|
347
|
-
id:
|
|
344
|
+
id: Oe.value,
|
|
348
345
|
ref: "countrySelect",
|
|
349
|
-
modelValue:
|
|
350
|
-
"onUpdate:modelValue": a[1] ||= (e) =>
|
|
346
|
+
modelValue: Ue.value,
|
|
347
|
+
"onUpdate:modelValue": a[1] ||= (e) => Ue.value = e,
|
|
351
348
|
open: N.value,
|
|
352
349
|
"onUpdate:open": a[2] ||= (e) => N.value = e,
|
|
353
350
|
class: "q-phone-field__country-select",
|
|
354
351
|
"item-label": "label",
|
|
355
352
|
"item-value": "key",
|
|
356
353
|
size: "mini",
|
|
357
|
-
items:
|
|
358
|
-
"overlay-anchor":
|
|
354
|
+
items: Ve.value,
|
|
355
|
+
"overlay-anchor": Le.value,
|
|
359
356
|
readonly: v.readonly,
|
|
360
357
|
disabled: v.disabled || W.value.length === 0,
|
|
361
358
|
inline: v.inline,
|
|
362
359
|
"select-on-tab": !1,
|
|
363
360
|
icons: v.icons,
|
|
364
361
|
texts: v.texts,
|
|
365
|
-
"aria-label":
|
|
366
|
-
onShow:
|
|
367
|
-
onHide:
|
|
362
|
+
"aria-label": We.value,
|
|
363
|
+
onShow: pt,
|
|
364
|
+
onHide: mt
|
|
368
365
|
}, {
|
|
369
|
-
prepend: k(() => [
|
|
366
|
+
prepend: k(() => [He.value && B.value ? (x(), h("span", {
|
|
370
367
|
key: 0,
|
|
371
368
|
class: b(["q-phone-field__flag", `flag:${B.value}`]),
|
|
372
369
|
"aria-hidden": "true"
|
|
@@ -384,7 +381,7 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
384
381
|
placeholder: v.texts.searchCountry,
|
|
385
382
|
icons: v.icons,
|
|
386
383
|
texts: v.texts,
|
|
387
|
-
onKeydown:
|
|
384
|
+
onKeydown: ft
|
|
388
385
|
}, null, 8, [
|
|
389
386
|
"modelValue",
|
|
390
387
|
"aria-label",
|
|
@@ -401,7 +398,6 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
401
398
|
g("span", _e, w(e.name), 1),
|
|
402
399
|
g("span", ve, "+" + w(e.callingCode), 1)
|
|
403
400
|
]),
|
|
404
|
-
"body.append": k(() => [He.value.length === 0 ? (x(), h("div", ye, w(v.texts.noCountries), 1)) : m("v-if", !0)]),
|
|
405
401
|
_: 1
|
|
406
402
|
}, 8, [
|
|
407
403
|
"id",
|
|
@@ -416,7 +412,7 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
416
412
|
"texts",
|
|
417
413
|
"aria-label"
|
|
418
414
|
]),
|
|
419
|
-
_(T(r), ce(
|
|
415
|
+
_(T(r), ce(je.value, {
|
|
420
416
|
id: T(F),
|
|
421
417
|
ref: "input",
|
|
422
418
|
modelValue: R.value,
|
|
@@ -427,26 +423,26 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
427
423
|
autocomplete: "tel",
|
|
428
424
|
size: "block",
|
|
429
425
|
required: v.required,
|
|
430
|
-
placeholder:
|
|
426
|
+
placeholder: Ge.value,
|
|
431
427
|
readonly: v.readonly,
|
|
432
428
|
disabled: v.disabled,
|
|
433
429
|
invalid: q.value,
|
|
434
430
|
icons: v.icons,
|
|
435
431
|
texts: v.texts,
|
|
436
|
-
"aria-label":
|
|
432
|
+
"aria-label": Me.value,
|
|
437
433
|
"aria-invalid": q.value || void 0,
|
|
438
|
-
"aria-describedby": T(t)(i,
|
|
439
|
-
onInput:
|
|
440
|
-
onPaste:
|
|
441
|
-
onBlur:
|
|
442
|
-
}), oe({ _: 2 }, [e.$slots.append ||
|
|
434
|
+
"aria-describedby": T(t)(i, Je.value),
|
|
435
|
+
onInput: ct,
|
|
436
|
+
onPaste: lt,
|
|
437
|
+
onBlur: ht
|
|
438
|
+
}), oe({ _: 2 }, [e.$slots.append || Ke.value ? {
|
|
443
439
|
name: "append",
|
|
444
|
-
fn: k(() => [C(e.$slots, "append"),
|
|
440
|
+
fn: k(() => [C(e.$slots, "append"), Ke.value ? (x(), ae(T(n), {
|
|
445
441
|
key: 0,
|
|
446
442
|
"data-testid": "q-phone-field__clear-button",
|
|
447
443
|
icons: v.icons,
|
|
448
444
|
texts: v.texts,
|
|
449
|
-
onClick:
|
|
445
|
+
onClick: gt
|
|
450
446
|
}, null, 8, ["icons", "texts"])) : m("v-if", !0)]),
|
|
451
447
|
key: "0"
|
|
452
448
|
} : void 0]), 1040, [
|
|
@@ -464,14 +460,14 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
464
460
|
"aria-describedby"
|
|
465
461
|
]),
|
|
466
462
|
m(" The visible input contains a national display value; submit the E.164 model instead. "),
|
|
467
|
-
|
|
463
|
+
ke.value ? (x(), h("input", {
|
|
468
464
|
key: 0,
|
|
469
465
|
type: "hidden",
|
|
470
|
-
name:
|
|
466
|
+
name: ke.value,
|
|
471
467
|
value: j.value,
|
|
472
|
-
form:
|
|
468
|
+
form: Ae.value,
|
|
473
469
|
disabled: v.disabled
|
|
474
|
-
}, null, 8,
|
|
470
|
+
}, null, 8, ye)) : m("v-if", !0)
|
|
475
471
|
]),
|
|
476
472
|
_: 2
|
|
477
473
|
}, [e.$slots.extras || J.value ? {
|
|
@@ -480,7 +476,7 @@ var fe = { class: "q-phone-field__flag-code" }, pe = {
|
|
|
480
476
|
message: J.value,
|
|
481
477
|
validity: K.value,
|
|
482
478
|
validationId: I.value
|
|
483
|
-
}, () => [J.value ? (x(), h("span",
|
|
479
|
+
}, () => [J.value ? (x(), h("span", xe, w(J.value), 1)) : m("v-if", !0)])], 8, be)]),
|
|
484
480
|
key: "0"
|
|
485
481
|
} : void 0]), 1032, [
|
|
486
482
|
"id",
|
|
@@ -22,7 +22,7 @@ export declare const DEFAULT_TEXTS: {
|
|
|
22
22
|
phoneNumber: string;
|
|
23
23
|
selectCountry: string;
|
|
24
24
|
searchCountry: string;
|
|
25
|
-
|
|
25
|
+
noData: string;
|
|
26
26
|
requiredNumber: string;
|
|
27
27
|
invalidNumber: string;
|
|
28
28
|
unsupportedCountry: string;
|
|
@@ -30,6 +30,7 @@ export declare const DEFAULT_TEXTS: {
|
|
|
30
30
|
showHelp: string;
|
|
31
31
|
placeholder: string;
|
|
32
32
|
showOptions: string;
|
|
33
|
+
loading: string;
|
|
33
34
|
remove: string;
|
|
34
35
|
};
|
|
35
36
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPhoneField/constants.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;CAKY,CAAA;AAGtC,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/QPhoneField/constants.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;CAKY,CAAA;AAGtC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAYQ,CAAA"}
|
|
@@ -16,7 +16,7 @@ var c = {
|
|
|
16
16
|
phoneNumber: "Phone number",
|
|
17
17
|
selectCountry: "Select country",
|
|
18
18
|
searchCountry: "Search by country or calling code",
|
|
19
|
-
|
|
19
|
+
noData: "No countries found",
|
|
20
20
|
requiredNumber: "The phone number is required.",
|
|
21
21
|
invalidNumber: "Enter a valid phone number.",
|
|
22
22
|
unsupportedCountry: "This number country is not available."
|
|
@@ -29,7 +29,7 @@ declare const QPhoneField: {
|
|
|
29
29
|
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
30
30
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
31
31
|
"onValidity-change"?: ((validity: import('./types').QPhoneFieldValidity) => any) | undefined;
|
|
32
|
-
"onUpdate:country"?: ((value: import('
|
|
32
|
+
"onUpdate:country"?: ((value: import('./types').QPhoneCountryCode | undefined) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
fieldRef: import('vue').ComputedRef<HTMLElement | null>;
|
|
35
35
|
inputRef: import('vue').ComputedRef<HTMLInputElement | null>;
|
|
@@ -39,7 +39,7 @@ declare const QPhoneField: {
|
|
|
39
39
|
"click:clear": (event: Event) => any;
|
|
40
40
|
"update:open": (value: boolean) => any;
|
|
41
41
|
"validity-change": (validity: import('./types').QPhoneFieldValidity) => any;
|
|
42
|
-
"update:country": (value: import('
|
|
42
|
+
"update:country": (value: import('./types').QPhoneCountryCode | undefined) => any;
|
|
43
43
|
}, import('vue').PublicProps, {
|
|
44
44
|
icons: {
|
|
45
45
|
help: {
|
|
@@ -71,7 +71,7 @@ declare const QPhoneField: {
|
|
|
71
71
|
phoneNumber: string;
|
|
72
72
|
selectCountry: string;
|
|
73
73
|
searchCountry: string;
|
|
74
|
-
|
|
74
|
+
noData: string;
|
|
75
75
|
requiredNumber: string;
|
|
76
76
|
invalidNumber: string;
|
|
77
77
|
unsupportedCountry: string;
|
|
@@ -79,6 +79,7 @@ declare const QPhoneField: {
|
|
|
79
79
|
showHelp: string;
|
|
80
80
|
placeholder: string;
|
|
81
81
|
showOptions: string;
|
|
82
|
+
loading: string;
|
|
82
83
|
remove: string;
|
|
83
84
|
};
|
|
84
85
|
locale: string;
|
|
@@ -294,10 +295,12 @@ declare const QPhoneField: {
|
|
|
294
295
|
'label.append'?(_: {}): any;
|
|
295
296
|
control?(_: {
|
|
296
297
|
describedBy: string | undefined;
|
|
298
|
+
invalid: boolean;
|
|
297
299
|
}): any;
|
|
298
300
|
prepend?(_: {}): any;
|
|
299
301
|
default?(_: {
|
|
300
302
|
describedBy: string | undefined;
|
|
303
|
+
invalid: boolean;
|
|
301
304
|
}): any;
|
|
302
305
|
append?(_: {}): any;
|
|
303
306
|
extras?(_: {}): any;
|
|
@@ -349,6 +352,7 @@ declare const QPhoneField: {
|
|
|
349
352
|
prepend?(_: {}): any;
|
|
350
353
|
default?(_: {
|
|
351
354
|
describedBy: string | undefined;
|
|
355
|
+
invalid: boolean;
|
|
352
356
|
}): any;
|
|
353
357
|
append?(_: {}): any;
|
|
354
358
|
extras?(_: {}): any;
|
|
@@ -397,6 +401,8 @@ declare const QPhoneField: {
|
|
|
397
401
|
} & {
|
|
398
402
|
placeholder: string;
|
|
399
403
|
showOptions: string;
|
|
404
|
+
loading: string;
|
|
405
|
+
noData: string;
|
|
400
406
|
remove: string;
|
|
401
407
|
clearValue: string;
|
|
402
408
|
showHelp: string;
|
|
@@ -614,10 +620,12 @@ declare const QPhoneField: {
|
|
|
614
620
|
'label.append'?(_: {}): any;
|
|
615
621
|
control?(_: {
|
|
616
622
|
describedBy: string | undefined;
|
|
623
|
+
invalid: boolean;
|
|
617
624
|
}): any;
|
|
618
625
|
prepend?(_: {}): any;
|
|
619
626
|
default?(_: {
|
|
620
627
|
describedBy: string | undefined;
|
|
628
|
+
invalid: boolean;
|
|
621
629
|
}): any;
|
|
622
630
|
append?(_: {}): any;
|
|
623
631
|
extras?(_: {}): any;
|
|
@@ -1120,6 +1128,8 @@ declare const QPhoneField: {
|
|
|
1120
1128
|
} & {
|
|
1121
1129
|
placeholder: string;
|
|
1122
1130
|
showOptions: string;
|
|
1131
|
+
loading: string;
|
|
1132
|
+
noData: string;
|
|
1123
1133
|
remove: string;
|
|
1124
1134
|
clearValue: string;
|
|
1125
1135
|
showHelp: string;
|
|
@@ -1179,6 +1189,8 @@ declare const QPhoneField: {
|
|
|
1179
1189
|
} & {
|
|
1180
1190
|
placeholder: string;
|
|
1181
1191
|
showOptions: string;
|
|
1192
|
+
loading: string;
|
|
1193
|
+
noData: string;
|
|
1182
1194
|
remove: string;
|
|
1183
1195
|
clearValue: string;
|
|
1184
1196
|
showHelp: string;
|
|
@@ -1475,10 +1487,12 @@ declare const QPhoneField: {
|
|
|
1475
1487
|
'label.append'?(_: {}): any;
|
|
1476
1488
|
control?(_: {
|
|
1477
1489
|
describedBy: string | undefined;
|
|
1490
|
+
invalid: boolean;
|
|
1478
1491
|
}): any;
|
|
1479
1492
|
prepend?(_: {}): any;
|
|
1480
1493
|
default?(_: {
|
|
1481
1494
|
describedBy: string | undefined;
|
|
1495
|
+
invalid: boolean;
|
|
1482
1496
|
}): any;
|
|
1483
1497
|
append?(_: {}): any;
|
|
1484
1498
|
extras?(_: {}): any;
|
|
@@ -1850,10 +1864,12 @@ declare const QPhoneField: {
|
|
|
1850
1864
|
'label.append'?(_: {}): any;
|
|
1851
1865
|
control?(_: {
|
|
1852
1866
|
describedBy: string | undefined;
|
|
1867
|
+
invalid: boolean;
|
|
1853
1868
|
}): any;
|
|
1854
1869
|
prepend?(_: {}): any;
|
|
1855
1870
|
default?(_: {
|
|
1856
1871
|
describedBy: string | undefined;
|
|
1872
|
+
invalid: boolean;
|
|
1857
1873
|
}): any;
|
|
1858
1874
|
append?(_: {}): any;
|
|
1859
1875
|
extras?(_: {}): any;
|
|
@@ -2031,7 +2047,7 @@ declare const QPhoneField: {
|
|
|
2031
2047
|
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
2032
2048
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
2033
2049
|
"onValidity-change"?: ((validity: import('./types').QPhoneFieldValidity) => any) | undefined;
|
|
2034
|
-
"onUpdate:country"?: ((value: import('
|
|
2050
|
+
"onUpdate:country"?: ((value: import('./types').QPhoneCountryCode | undefined) => any) | undefined;
|
|
2035
2051
|
}>, {
|
|
2036
2052
|
fieldRef: import('vue').ComputedRef<HTMLElement | null>;
|
|
2037
2053
|
inputRef: import('vue').ComputedRef<HTMLInputElement | null>;
|
|
@@ -2067,7 +2083,7 @@ declare const QPhoneField: {
|
|
|
2067
2083
|
phoneNumber: string;
|
|
2068
2084
|
selectCountry: string;
|
|
2069
2085
|
searchCountry: string;
|
|
2070
|
-
|
|
2086
|
+
noData: string;
|
|
2071
2087
|
requiredNumber: string;
|
|
2072
2088
|
invalidNumber: string;
|
|
2073
2089
|
unsupportedCountry: string;
|
|
@@ -2075,6 +2091,7 @@ declare const QPhoneField: {
|
|
|
2075
2091
|
showHelp: string;
|
|
2076
2092
|
placeholder: string;
|
|
2077
2093
|
showOptions: string;
|
|
2094
|
+
loading: string;
|
|
2078
2095
|
remove: string;
|
|
2079
2096
|
};
|
|
2080
2097
|
locale: string;
|
|
@@ -2113,7 +2130,7 @@ declare const QPhoneField: {
|
|
|
2113
2130
|
"onClick:clear"?: ((event: Event) => any) | undefined;
|
|
2114
2131
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
2115
2132
|
"onValidity-change"?: ((validity: import('./types').QPhoneFieldValidity) => any) | undefined;
|
|
2116
|
-
"onUpdate:country"?: ((value: import('
|
|
2133
|
+
"onUpdate:country"?: ((value: import('./types').QPhoneCountryCode | undefined) => any) | undefined;
|
|
2117
2134
|
}>, {
|
|
2118
2135
|
fieldRef: import('vue').ComputedRef<HTMLElement | null>;
|
|
2119
2136
|
inputRef: import('vue').ComputedRef<HTMLInputElement | null>;
|
|
@@ -2123,7 +2140,7 @@ declare const QPhoneField: {
|
|
|
2123
2140
|
"click:clear": (event: Event) => any;
|
|
2124
2141
|
"update:open": (value: boolean) => any;
|
|
2125
2142
|
"validity-change": (validity: import('./types').QPhoneFieldValidity) => any;
|
|
2126
|
-
"update:country": (value: import('
|
|
2143
|
+
"update:country": (value: import('./types').QPhoneCountryCode | undefined) => any;
|
|
2127
2144
|
}, string, {
|
|
2128
2145
|
icons: {
|
|
2129
2146
|
help: {
|
|
@@ -2155,7 +2172,7 @@ declare const QPhoneField: {
|
|
|
2155
2172
|
phoneNumber: string;
|
|
2156
2173
|
selectCountry: string;
|
|
2157
2174
|
searchCountry: string;
|
|
2158
|
-
|
|
2175
|
+
noData: string;
|
|
2159
2176
|
requiredNumber: string;
|
|
2160
2177
|
invalidNumber: string;
|
|
2161
2178
|
unsupportedCountry: string;
|
|
@@ -2163,6 +2180,7 @@ declare const QPhoneField: {
|
|
|
2163
2180
|
showHelp: string;
|
|
2164
2181
|
placeholder: string;
|
|
2165
2182
|
showOptions: string;
|
|
2183
|
+
loading: string;
|
|
2166
2184
|
remove: string;
|
|
2167
2185
|
};
|
|
2168
2186
|
locale: string;
|