maz-ui 3.44.0 → 3.44.2
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/components/MazAccordion.mjs +25 -25
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +9 -9
- package/components/MazCarousel.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.mjs +22 -22
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazReadingProgressBar.mjs +1 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.mjs +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazAvatar-BU1nJFcV.mjs → MazAvatar-CoT6WIl0.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DUOIusEi.mjs → MazBottomSheet-DpI8wFgc.mjs} +1 -1
- package/components/chunks/MazBtn-BIVlttu0.mjs +150 -0
- package/components/chunks/MazBtn-BQ7aH6Qe.mjs +158 -0
- package/components/chunks/{MazBtn-5BSKOcqG.mjs → MazBtn-BXDpaXn1.mjs} +44 -44
- package/components/chunks/MazBtn-C7RDTnn-.mjs +150 -0
- package/components/chunks/{MazBtn-BY8WCtM7.mjs → MazBtn-CPkNymJj.mjs} +44 -44
- package/components/chunks/{MazBtn-C5G78zLg.mjs → MazBtn-CQSo596y.mjs} +44 -44
- package/components/chunks/MazBtn-D2tIsob2.mjs +150 -0
- package/components/chunks/MazBtn-DRTBFUgW.mjs +150 -0
- package/components/chunks/{MazBtn-f1mBXJeU.mjs → MazBtn-Dfz-5FeI.mjs} +23 -26
- package/components/chunks/{MazBtn-CeVwyYR5.mjs → MazBtn-Vas62hFD.mjs} +44 -44
- package/components/chunks/MazBtn-gE-drZkE.mjs +150 -0
- package/components/chunks/{MazCard-BWxV_Z-i.mjs → MazCard-BBwohtCJ.mjs} +1 -1
- package/components/chunks/{MazCarousel-D5EmW7Sa.mjs → MazCarousel-DJ_nQfy4.mjs} +1 -1
- package/components/chunks/{MazCheckbox-D3PXkt75.mjs → MazCheckbox-BK1MX0uq.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BWiMbecz.mjs → MazCheckbox-D3Fm-BFu.mjs} +1 -1
- package/components/chunks/{MazDialog-CLWKCphI.mjs → MazDialog-DXaeCp-b.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-DVOJwdVp.mjs → MazDialogPromise-Bgxjg9ss.mjs} +2 -2
- package/components/chunks/{MazDropzone-Dm2IirHm.mjs → MazDropzone-D0W0dlgY.mjs} +2 -3
- package/components/chunks/{MazGallery-Bn9p1gNb.mjs → MazGallery-CBE4wD7D.mjs} +3 -4
- package/components/chunks/{MazGallery-BlfPe8WG.mjs → MazGallery-Din0Z37d.mjs} +4 -5
- package/components/chunks/{MazIcon-D3umgnku.mjs → MazIcon-CTjWIkTp.mjs} +1 -1
- package/components/chunks/{MazIcon-B8A0hQAH.mjs → MazIcon-CUOwXGOK.mjs} +1 -1
- package/components/chunks/{MazInput-BpsE-mdg.mjs → MazInput-D177bUMh.mjs} +44 -44
- package/components/chunks/{MazInputNumber-DGBYbDSX.mjs → MazInputNumber-CstQGS8u.mjs} +121 -121
- package/components/chunks/{MazInputPrice-j2BNMeFp.mjs → MazInputPrice-Bp7ie9jm.mjs} +48 -48
- package/components/chunks/{MazInputTags-CJofVaj5.mjs → MazInputTags-C7nZucYu.mjs} +63 -63
- package/components/chunks/{MazLazyImg-Dboc6Xfz.mjs → MazLazyImg-DADMg49z.mjs} +3 -4
- package/components/chunks/{MazLazyImg-BFG6FIJZ.mjs → MazLazyImg-xLPMdfif.mjs} +4 -5
- package/components/chunks/{MazPagination-C6ZehQSZ.mjs → MazPagination-NbHR41CQ.mjs} +44 -44
- package/components/chunks/{MazPhoneNumberInput-DpWoNQfx.mjs → MazPhoneNumberInput-BGo-vcnD.mjs} +61 -61
- package/components/chunks/{MazPicker-ia2BEmm5.mjs → MazPicker-CJBezF2t.mjs} +173 -198
- package/components/chunks/{MazPickerMonthSwitcher-CKtfZ_m-.mjs → MazPickerMonthSwitcher-DZPHWTJt.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Cc9VoqBw.mjs → MazPickerShortcuts-CBEmYjPG.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-0b5Wrem9.mjs → MazPickerYearSwitcher-Ynp2qf3F.mjs} +1 -1
- package/components/chunks/{MazSelect-COJoKXbV.mjs → MazSelect-D4TuCHwj.mjs} +29 -29
- package/components/chunks/{MazSpinner-BaAMq7LI.mjs → MazSpinner--h9DYpGx.mjs} +1 -1
- package/components/chunks/{MazSpinner-BZOjTZBN.mjs → MazSpinner-6pxbKImG.mjs} +1 -1
- package/components/chunks/{MazSpinner-RvDGcBng.mjs → MazSpinner-BVd7-OTu.mjs} +1 -1
- package/components/chunks/MazSpinner-C6T_enKo.mjs +37 -0
- package/components/chunks/{MazSpinner-DkXequnp.mjs → MazSpinner-C8x7LsHq.mjs} +1 -1
- package/components/chunks/{MazSpinner-V-bFi71W.mjs → MazSpinner-CLz4ccD0.mjs} +1 -1
- package/components/chunks/MazSpinner-CmJlBqgH.mjs +37 -0
- package/components/chunks/MazSpinner-D4gpZ7vL.mjs +37 -0
- package/components/chunks/{MazSpinner-CNIlbDfg.mjs → MazSpinner-D8k_MENa.mjs} +1 -1
- package/components/chunks/MazSpinner-DGxqly6h.mjs +37 -0
- package/components/chunks/{MazSpinner-9Jue6cel.mjs → MazSpinner-DVkxyBoy.mjs} +1 -1
- package/components/chunks/{MazSpinner-BGPOws6a.mjs → MazSpinner-DjR5FVqo.mjs} +1 -1
- package/components/chunks/MazSpinner-DnVHWljy.mjs +37 -0
- package/components/chunks/{MazSpinner-C41VyUup.mjs → MazSpinner-DneKNmrs.mjs} +1 -1
- package/components/chunks/MazSpinner-Q02SOFkL.mjs +37 -0
- package/components/chunks/{MazSpinner-EA5ejB8F.mjs → MazSpinner-T1t1bpbm.mjs} +1 -1
- package/components/chunks/{MazSpinner-BWYdqSMP.mjs → MazSpinner-dFnsq52G.mjs} +1 -1
- package/components/chunks/MazSpinner-iA4Rz7K5.mjs +37 -0
- package/components/chunks/{MazSpinner-DHQH6Bhz.mjs → MazSpinner-rAqBu92m.mjs} +1 -1
- package/components/chunks/MazSpinner-va5G9enA.mjs +37 -0
- package/components/chunks/{MazTable-DRUj_PZp.mjs → MazTable-BPMuTZbS.mjs} +305 -305
- package/components/chunks/{MazTransitionExpand-B08cSrmL.mjs → MazTransitionExpand-CYyEf_hd.mjs} +1 -1
- package/css/main.css +2 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-1g7UvzQ_.mjs +150 -0
- package/modules/chunks/{MazBtn-BbCGGxkK.cjs → MazBtn-BKk3IsoH.cjs} +2 -2
- package/modules/chunks/{MazIcon-BDSXZYZ8.cjs → MazIcon-BEnQqDG6.cjs} +1 -1
- package/modules/chunks/{MazIcon-C2ch3jUS.mjs → MazIcon-BdDO3aVl.mjs} +1 -1
- package/modules/chunks/{MazSpinner-C9_xSbZZ.mjs → MazSpinner--BVvGFIO.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BiyFRA4w.cjs → MazSpinner-PMlxvkWb.cjs} +1 -1
- package/modules/chunks/index-D5F2dSFa.cjs +124 -0
- package/modules/chunks/{index-Cwbjspv3.mjs → index-D7R1dvsf.mjs} +347 -347
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +3 -3
- package/nuxt/index.mjs +1 -1
- package/nuxt/types.d.mts +6 -12
- package/nuxt/types.d.ts +6 -12
- package/package.json +10 -10
- package/types/modules/composables/use-timer.d.ts +6 -1
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +2 -2
- package/components/chunks/MazBtn-B1-sTc7F.mjs +0 -155
- package/components/chunks/MazBtn-ColLVUca.mjs +0 -150
- package/components/chunks/MazBtn-DJhQqzja.mjs +0 -150
- package/components/chunks/MazBtn-DuY28-0U.mjs +0 -150
- package/components/chunks/MazBtn-h3WmmaEO.mjs +0 -150
- package/components/chunks/MazBtn-zyRLUViT.mjs +0 -150
- package/components/chunks/MazSpinner-Bad2n-0k.mjs +0 -37
- package/components/chunks/MazSpinner-C6StE-Mb.mjs +0 -37
- package/components/chunks/MazSpinner-Cz2DHV6g.mjs +0 -37
- package/components/chunks/MazSpinner-D4CdHpP2.mjs +0 -37
- package/components/chunks/MazSpinner-DRj2VpGA.mjs +0 -37
- package/components/chunks/MazSpinner-aPFlrc5E.mjs +0 -37
- package/components/chunks/MazSpinner-nOD-7_sU.mjs +0 -37
- package/components/chunks/MazSpinner-yZGK-AQe.mjs +0 -37
- package/modules/chunks/MazBtn-UBHTKqaN.mjs +0 -150
- package/modules/chunks/index-tnjajVkX.cjs +0 -124
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, defineAsyncComponent as N, useAttrs as H, useSlots as J, onBeforeMount as K, computed as t, openBlock as i, createBlock as
|
|
1
|
+
import { defineComponent as q, defineAsyncComponent as N, useAttrs as H, useSlots as J, onBeforeMount as K, computed as t, openBlock as i, createBlock as c, resolveDynamicComponent as D, normalizeClass as S, withCtx as V, createElementBlock as b, createCommentVNode as s, renderSlot as p, unref as m, createElementVNode as d, createVNode as v, mergeProps as $, createTextVNode as k, toDisplayString as A, Fragment as Q, renderList as W } from "vue";
|
|
2
2
|
import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
3
3
|
__name: "MazBtn",
|
|
4
4
|
props: {
|
|
@@ -16,15 +16,15 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
16
16
|
loading: { type: Boolean },
|
|
17
17
|
disabled: { type: Boolean },
|
|
18
18
|
fab: { type: Boolean },
|
|
19
|
-
icon: { default: void 0 },
|
|
20
|
-
leftIcon: { default: void 0 },
|
|
21
|
-
rightIcon: { default: void 0 },
|
|
19
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
20
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
21
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
22
22
|
noPadding: { type: Boolean },
|
|
23
23
|
noElevation: { type: Boolean },
|
|
24
24
|
contentClass: { default: void 0 }
|
|
25
25
|
},
|
|
26
26
|
setup(P) {
|
|
27
|
-
const l = P, e = N(() => import("./MazSpinner-
|
|
27
|
+
const l = P, e = N(() => import("./MazSpinner-C6T_enKo.mjs")), f = N(() => import("./MazIcon-BDGxCy9M.mjs")), { href: h, to: T } = H(), C = J();
|
|
28
28
|
K(() => {
|
|
29
29
|
l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
30
30
|
});
|
|
@@ -32,10 +32,10 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
32
32
|
() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
|
|
33
33
|
), g = t(
|
|
34
34
|
() => (l.loading || l.disabled) && B.value === "button"
|
|
35
|
-
), z = t(() => g.value ? "--cursor-default" : "--cursor-pointer"), I = t(() => `--is-${l.variant}`), y = t(() => l.loading && l.variant === "button"), E = t(() => !!C["left-icon"] || l.leftIcon),
|
|
36
|
-
return (a,
|
|
35
|
+
), z = t(() => g.value ? "--cursor-default" : "--cursor-pointer"), I = t(() => `--is-${l.variant}`), y = t(() => l.loading && l.variant === "button"), E = t(() => !!C["left-icon"] || l.leftIcon), F = t(() => !!C["right-icon"] || l.rightIcon), L = t(() => E.value || F.value), U = t(() => l.fab && (l.icon || !!C.icon)), j = t(() => B.value === "button" ? l.type : void 0);
|
|
36
|
+
return (a, w) => (i(), c(D(B.value), {
|
|
37
37
|
disabled: g.value || void 0,
|
|
38
|
-
class:
|
|
38
|
+
class: S(["m-btn", [
|
|
39
39
|
`--${a.size}`,
|
|
40
40
|
!a.fab && a.roundedSize && `--rounded-${a.roundedSize}`,
|
|
41
41
|
r.value,
|
|
@@ -47,31 +47,31 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
47
47
|
"--fab": a.fab,
|
|
48
48
|
"--loading": a.loading,
|
|
49
49
|
"--disabled": g.value,
|
|
50
|
-
"--icon":
|
|
50
|
+
"--icon": L.value,
|
|
51
51
|
"--rounded": a.rounded,
|
|
52
52
|
"--no-rounded": a.noRounded,
|
|
53
53
|
"--no-padding": a.noPadding,
|
|
54
54
|
"--no-elevation": a.noElevation
|
|
55
55
|
}
|
|
56
56
|
]]),
|
|
57
|
-
type:
|
|
57
|
+
type: j.value
|
|
58
58
|
}, {
|
|
59
59
|
default: V(() => [
|
|
60
60
|
E.value ? (i(), b(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
key: 0,
|
|
64
|
-
class:
|
|
64
|
+
class: S(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": y.value }])
|
|
65
65
|
},
|
|
66
66
|
[
|
|
67
67
|
s(`
|
|
68
68
|
@slot left-icon - The icon to display on the left of the button
|
|
69
69
|
`),
|
|
70
|
-
|
|
71
|
-
typeof a.leftIcon == "string" ? (i(),
|
|
70
|
+
p(a.$slots, "left-icon", {}, () => [
|
|
71
|
+
typeof a.leftIcon == "string" ? (i(), c(m(f), {
|
|
72
72
|
key: 0,
|
|
73
73
|
name: a.leftIcon
|
|
74
|
-
}, null, 8, ["name"])) : a.leftIcon ? (i(),
|
|
74
|
+
}, null, 8, ["name"])) : a.leftIcon ? (i(), c(D(a.leftIcon), { key: 1 })) : s("v-if", !0)
|
|
75
75
|
], !0)
|
|
76
76
|
],
|
|
77
77
|
2
|
|
@@ -81,17 +81,17 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
83
83
|
key: 1,
|
|
84
|
-
class:
|
|
84
|
+
class: S(["m-btn__icon", { "maz-invisible": y.value }])
|
|
85
85
|
},
|
|
86
86
|
[
|
|
87
87
|
s(`
|
|
88
88
|
@slot icon - The icon to display on the fab button
|
|
89
89
|
`),
|
|
90
|
-
|
|
91
|
-
typeof a.icon == "string" ? (i(),
|
|
90
|
+
p(a.$slots, "icon", {}, () => [
|
|
91
|
+
typeof a.icon == "string" ? (i(), c(m(f), {
|
|
92
92
|
key: 0,
|
|
93
93
|
name: a.icon
|
|
94
|
-
}, null, 8, ["name"])) : a.icon ? (i(),
|
|
94
|
+
}, null, 8, ["name"])) : a.icon ? (i(), c(D(a.icon), { key: 1 })) : s("v-if", !0)
|
|
95
95
|
], !0)
|
|
96
96
|
],
|
|
97
97
|
2
|
|
@@ -101,38 +101,38 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
101
101
|
"span",
|
|
102
102
|
{
|
|
103
103
|
key: 2,
|
|
104
|
-
class:
|
|
104
|
+
class: S([{ "maz-invisible": y.value }, a.contentClass])
|
|
105
105
|
},
|
|
106
106
|
[
|
|
107
107
|
s(`
|
|
108
108
|
@slot default - The content of the button
|
|
109
109
|
`),
|
|
110
|
-
|
|
110
|
+
p(a.$slots, "default", {}, void 0, !0)
|
|
111
111
|
],
|
|
112
112
|
2
|
|
113
113
|
/* CLASS */
|
|
114
114
|
)) : s("v-if", !0),
|
|
115
|
-
|
|
115
|
+
F.value ? (i(), b(
|
|
116
116
|
"div",
|
|
117
117
|
{
|
|
118
118
|
key: 3,
|
|
119
|
-
class:
|
|
119
|
+
class: S(["m-btn__icon-right", { "maz-invisible": y.value }])
|
|
120
120
|
},
|
|
121
121
|
[
|
|
122
122
|
s(`
|
|
123
123
|
@slot right-icon - The icon to display on the right of the button
|
|
124
124
|
`),
|
|
125
|
-
|
|
126
|
-
typeof a.rightIcon == "string" ? (i(),
|
|
125
|
+
p(a.$slots, "right-icon", {}, () => [
|
|
126
|
+
typeof a.rightIcon == "string" ? (i(), c(m(f), {
|
|
127
127
|
key: 0,
|
|
128
128
|
name: a.rightIcon
|
|
129
|
-
}, null, 8, ["name"])) : a.rightIcon ? (i(),
|
|
129
|
+
}, null, 8, ["name"])) : a.rightIcon ? (i(), c(D(a.rightIcon), { key: 1 })) : s("v-if", !0)
|
|
130
130
|
], !0)
|
|
131
131
|
],
|
|
132
132
|
2
|
|
133
133
|
/* CLASS */
|
|
134
134
|
)) : s("v-if", !0),
|
|
135
|
-
y.value ? (i(),
|
|
135
|
+
y.value ? (i(), c(m(e), {
|
|
136
136
|
key: 4,
|
|
137
137
|
class: "m-btn-loader",
|
|
138
138
|
size: "2em",
|
|
@@ -190,15 +190,15 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
190
190
|
() => e.modelValue - e.pageRange > 1 ? I.value.slice(0, 1) : []
|
|
191
191
|
), E = t(
|
|
192
192
|
() => e.modelValue < e.totalPages - e.pageRange ? I.value.slice(-1) : []
|
|
193
|
-
),
|
|
193
|
+
), F = t(() => e.modelValue - e.pageRange - 1 < 0 ? 0 : e.modelValue - e.pageRange - 1 > e.totalPages - e.pageRange ? e.totalPages - e.pageRange : e.modelValue - e.pageRange - 1), L = t(
|
|
194
194
|
() => e.modelValue + e.pageRange > e.totalPages ? e.totalPages : e.modelValue + e.pageRange < e.pageRange ? e.pageRange : e.modelValue + e.pageRange
|
|
195
|
-
), U = t(() => I.value.slice(
|
|
195
|
+
), U = t(() => I.value.slice(F.value, L.value)), j = t(
|
|
196
196
|
() => e.modelValue - e.pageRange > 2 ? [{ divider: !0 }] : []
|
|
197
197
|
), a = t(
|
|
198
198
|
() => e.modelValue < e.totalPages - e.pageRange - 1 ? [{ divider: !0 }] : []
|
|
199
|
-
),
|
|
199
|
+
), w = t(() => [
|
|
200
200
|
...y.value,
|
|
201
|
-
...
|
|
201
|
+
...j.value,
|
|
202
202
|
...U.value,
|
|
203
203
|
...a.value,
|
|
204
204
|
...E.value
|
|
@@ -223,7 +223,7 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
223
223
|
@slot Accessible text for screen reader of the previous page button
|
|
224
224
|
@binding {number} page - first page number
|
|
225
225
|
`),
|
|
226
|
-
|
|
226
|
+
p(o.$slots, "first-page-sr", { page: 1 }, () => [
|
|
227
227
|
k("First Page, page 1")
|
|
228
228
|
], !0)
|
|
229
229
|
]),
|
|
@@ -248,9 +248,9 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
248
248
|
@slot Accessible text for screen reader of the first page button
|
|
249
249
|
@binding {number} page - previous page number
|
|
250
250
|
`),
|
|
251
|
-
|
|
251
|
+
p(o.$slots, "previous-page-sr", { page: g.value }, () => [
|
|
252
252
|
k(
|
|
253
|
-
" Previous Page, page " +
|
|
253
|
+
" Previous Page, page " + A(g.value),
|
|
254
254
|
1
|
|
255
255
|
/* TEXT */
|
|
256
256
|
)
|
|
@@ -265,11 +265,11 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
265
265
|
(i(!0), b(
|
|
266
266
|
Q,
|
|
267
267
|
null,
|
|
268
|
-
W(
|
|
269
|
-
id: "number" in n ? `button-${
|
|
270
|
-
key: "number" in n ? `button-${
|
|
268
|
+
W(w.value, (n, O) => (i(), b("li", {
|
|
269
|
+
id: "number" in n ? `button-${O}-${n.number}` : `ellipsis-${O}`,
|
|
270
|
+
key: "number" in n ? `button-${O}-${n.number}` : `ellipsis-${O}`
|
|
271
271
|
}, [
|
|
272
|
-
"number" in n ? (i(),
|
|
272
|
+
"number" in n ? (i(), c(M, $({
|
|
273
273
|
key: 0,
|
|
274
274
|
ref_for: !0
|
|
275
275
|
}, {
|
|
@@ -292,18 +292,18 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
292
292
|
@slot Accessible text for screen reader of the current page button
|
|
293
293
|
@binding {number} page - current page number
|
|
294
294
|
`),
|
|
295
|
-
|
|
295
|
+
p(o.$slots, "page-sr", {
|
|
296
296
|
page: n.number
|
|
297
297
|
}, () => [
|
|
298
298
|
k(
|
|
299
|
-
"Page " +
|
|
299
|
+
"Page " + A(n.number),
|
|
300
300
|
1
|
|
301
301
|
/* TEXT */
|
|
302
302
|
)
|
|
303
303
|
], !0)
|
|
304
304
|
]),
|
|
305
305
|
k(
|
|
306
|
-
" " +
|
|
306
|
+
" " + A(n.number),
|
|
307
307
|
1
|
|
308
308
|
/* TEXT */
|
|
309
309
|
)
|
|
@@ -341,9 +341,9 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
341
341
|
@slot Accessible text for screen reader of the next page button
|
|
342
342
|
@binding {number} page - next page number
|
|
343
343
|
`),
|
|
344
|
-
|
|
344
|
+
p(o.$slots, "next-page-sr", { page: z.value }, () => [
|
|
345
345
|
k(
|
|
346
|
-
"Next Page, page " +
|
|
346
|
+
"Next Page, page " + A(z.value),
|
|
347
347
|
1
|
|
348
348
|
/* TEXT */
|
|
349
349
|
)
|
|
@@ -370,9 +370,9 @@ import '../assets/MazPagination.css';const X = /* @__PURE__ */ q({
|
|
|
370
370
|
@slot Accessible text for screen reader of the last page button
|
|
371
371
|
@binding {number} page - last page number
|
|
372
372
|
`),
|
|
373
|
-
|
|
373
|
+
p(o.$slots, "last-page-sr", { page: o.totalPages }, () => [
|
|
374
374
|
k(
|
|
375
|
-
"Last Page, page " +
|
|
375
|
+
"Last Page, page " + A(o.totalPages),
|
|
376
376
|
1
|
|
377
377
|
/* TEXT */
|
|
378
378
|
)
|
package/components/chunks/{MazPhoneNumberInput-DpWoNQfx.mjs → MazPhoneNumberInput-BGo-vcnD.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as He, computed as m, defineComponent as ae, defineAsyncComponent as q, ref as B, onMounted as ge, useSlots as We, openBlock as V, createElementBlock as L, normalizeClass as N, normalizeStyle as te, createElementVNode as j, createCommentVNode as g, renderSlot as R, createBlock as O, unref as P, resolveDynamicComponent as Se, withDirectives as Pe, mergeProps as re, toHandlers as Qe, vModelDynamic as Ge, createTextVNode as ve, toDisplayString as X, withModifiers as oe, withCtx as H, createVNode as Z, useCssVars as Je, onBeforeMount as Ze, nextTick as ne, Transition as Xe, Fragment as Ie, renderList as xe, inject as _e, mergeModels as ke, useModel as eo, provide as oo, watch as fe } from "vue";
|
|
2
2
|
import { getCountries as Ae, getCountryCallingCode as ue, isSupportedCountry as to, parsePhoneNumberFromString as lo, AsYouType as no, getExampleNumber as ao } from "libphonenumber-js";
|
|
3
3
|
import '../assets/MazPhoneNumberInput.css';function be({
|
|
4
4
|
componentName: n,
|
|
5
5
|
providedId: l
|
|
6
6
|
}) {
|
|
7
|
-
const e =
|
|
7
|
+
const e = He();
|
|
8
8
|
return m(() => l ?? `${n}-${e == null ? void 0 : e.uid}`);
|
|
9
9
|
}
|
|
10
10
|
let pe = null;
|
|
@@ -197,14 +197,14 @@ const yo = {
|
|
|
197
197
|
validButtonLoading: { type: Boolean, default: !1 },
|
|
198
198
|
autoFocus: { type: Boolean, default: !1 },
|
|
199
199
|
borderActive: { type: Boolean, default: !1 },
|
|
200
|
-
leftIcon: { default: void 0 },
|
|
201
|
-
rightIcon: { default: void 0 },
|
|
200
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
201
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
202
202
|
roundedSize: { default: void 0 },
|
|
203
203
|
block: { type: Boolean }
|
|
204
204
|
},
|
|
205
205
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
206
206
|
setup(n, { emit: l }) {
|
|
207
|
-
const e = n, t = l, d = q(() => import("./MazBtn-
|
|
207
|
+
const e = n, t = l, d = q(() => import("./MazBtn-gE-drZkE.mjs")), f = q(() => import("./MazIcon-CUOwXGOK.mjs")), b = q(() => import("./eye-slash-tjfxO0LK.mjs")), k = q(() => import("./eye-DqO_Jx56.mjs")), K = q(() => import("./check-7UA4j2f2.mjs")), A = B(!1), y = B(!1), S = B(), s = be({
|
|
208
208
|
componentName: "MazInput",
|
|
209
209
|
providedId: e.id
|
|
210
210
|
});
|
|
@@ -240,7 +240,7 @@ const yo = {
|
|
|
240
240
|
}
|
|
241
241
|
return "--default-border";
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), D = We(), W = m(() => {
|
|
244
244
|
const { required: r, placeholder: F } = e;
|
|
245
245
|
if (F)
|
|
246
246
|
return r ? `${F} *` : F;
|
|
@@ -260,10 +260,10 @@ const yo = {
|
|
|
260
260
|
set: (r) => z(r)
|
|
261
261
|
}), G = m(() => (!!e.label || !!e.hint) && (y.value || !!Q.value || !!e.placeholder || ["date", "month", "week"].includes(e.type))), a = m(() => !!e.label || !!e.hint);
|
|
262
262
|
function $() {
|
|
263
|
-
return !!
|
|
263
|
+
return !!D["right-icon"] || p.value || !!D["valid-button"] || e.validButton || !!e.rightIcon;
|
|
264
264
|
}
|
|
265
265
|
function E() {
|
|
266
|
-
return !!
|
|
266
|
+
return !!D["left-icon"] || !!e.leftIcon;
|
|
267
267
|
}
|
|
268
268
|
function M(r) {
|
|
269
269
|
t("focus", r), y.value = !0;
|
|
@@ -295,7 +295,7 @@ const yo = {
|
|
|
295
295
|
style: te(r.style)
|
|
296
296
|
},
|
|
297
297
|
[
|
|
298
|
-
|
|
298
|
+
j(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
class: N(["m-input-wrapper", [
|
|
@@ -310,18 +310,18 @@ const yo = {
|
|
|
310
310
|
@slot left-icon - The icon to display on the left of the input
|
|
311
311
|
`),
|
|
312
312
|
r.$slots["left-icon"] || r.leftIcon ? R(r.$slots, "left-icon", { key: 0 }, () => [
|
|
313
|
-
typeof r.leftIcon == "string" ? (V(),
|
|
313
|
+
typeof r.leftIcon == "string" ? (V(), O(P(f), {
|
|
314
314
|
key: 0,
|
|
315
315
|
name: r.leftIcon,
|
|
316
316
|
class: "maz-text-xl maz-text-muted"
|
|
317
|
-
}, null, 8, ["name"])) : r.leftIcon ? (V(),
|
|
317
|
+
}, null, 8, ["name"])) : r.leftIcon ? (V(), O(Se(r.leftIcon), {
|
|
318
318
|
key: 1,
|
|
319
319
|
class: "maz-text-xl maz-text-muted"
|
|
320
320
|
})) : g("v-if", !0)
|
|
321
321
|
], !0) : g("v-if", !0)
|
|
322
322
|
])) : g("v-if", !0),
|
|
323
|
-
|
|
324
|
-
Pe(
|
|
323
|
+
j("div", vo, [
|
|
324
|
+
Pe(j("input", re({
|
|
325
325
|
id: P(s),
|
|
326
326
|
ref_key: "input",
|
|
327
327
|
ref: S,
|
|
@@ -374,27 +374,27 @@ const yo = {
|
|
|
374
374
|
@slot right-icon - The icon to display on the right of the input
|
|
375
375
|
`),
|
|
376
376
|
r.$slots["right-icon"] || r.rightIcon ? R(r.$slots, "right-icon", { key: 0 }, () => [
|
|
377
|
-
typeof r.rightIcon == "string" ? (V(),
|
|
377
|
+
typeof r.rightIcon == "string" ? (V(), O(P(f), {
|
|
378
378
|
key: 0,
|
|
379
379
|
name: r.rightIcon,
|
|
380
380
|
class: "maz-text-xl maz-text-muted"
|
|
381
|
-
}, null, 8, ["name"])) : r.rightIcon ? (V(),
|
|
381
|
+
}, null, 8, ["name"])) : r.rightIcon ? (V(), O(Se(r.rightIcon), {
|
|
382
382
|
key: 1,
|
|
383
383
|
class: "maz-text-xl maz-text-muted"
|
|
384
384
|
})) : g("v-if", !0)
|
|
385
385
|
], !0) : g("v-if", !0),
|
|
386
|
-
p.value ? (V(),
|
|
386
|
+
p.value ? (V(), O(P(d), {
|
|
387
387
|
key: 1,
|
|
388
388
|
color: "transparent",
|
|
389
389
|
tabindex: "-1",
|
|
390
390
|
size: "mini",
|
|
391
391
|
onClick: F[2] || (F[2] = oe((J) => A.value = !A.value, ["stop"]))
|
|
392
392
|
}, {
|
|
393
|
-
default:
|
|
394
|
-
A.value ? (V(),
|
|
393
|
+
default: H(() => [
|
|
394
|
+
A.value ? (V(), O(P(b), {
|
|
395
395
|
key: 0,
|
|
396
396
|
class: "maz-text-xl maz-text-muted"
|
|
397
|
-
})) : (V(),
|
|
397
|
+
})) : (V(), O(P(k), {
|
|
398
398
|
key: 1,
|
|
399
399
|
class: "maz-text-xl maz-text-muted"
|
|
400
400
|
}))
|
|
@@ -415,7 +415,7 @@ const yo = {
|
|
|
415
415
|
size: "mini",
|
|
416
416
|
type: "submit"
|
|
417
417
|
}, {
|
|
418
|
-
default:
|
|
418
|
+
default: H(() => [
|
|
419
419
|
Z(P(K), { class: "maz-text-2xl maz-text-normal" })
|
|
420
420
|
]),
|
|
421
421
|
_: 1
|
|
@@ -466,11 +466,11 @@ const yo = {
|
|
|
466
466
|
emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
|
|
467
467
|
setup(n, { expose: l, emit: e }) {
|
|
468
468
|
Je((o) => ({
|
|
469
|
-
"
|
|
470
|
-
|
|
471
|
-
"
|
|
469
|
+
"792163ea": w.value,
|
|
470
|
+
e9859fae: s.value,
|
|
471
|
+
"42d9f8d1": p.value
|
|
472
472
|
}));
|
|
473
|
-
const t = n, d = e, f = q(() => import("./MazCheckbox-
|
|
473
|
+
const t = n, d = e, f = q(() => import("./MazCheckbox-BK1MX0uq.mjs")), b = q(() => import("./magnifying-glass-DZGg7953.mjs")), k = q(() => import("./chevron-down-CzMH-gFW.mjs")), K = q(() => import("./no-symbol-QAqP9IlR.mjs"));
|
|
474
474
|
l({
|
|
475
475
|
/** Method to open the option list */
|
|
476
476
|
openList: _,
|
|
@@ -485,7 +485,7 @@ const yo = {
|
|
|
485
485
|
() => S.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
|
|
486
486
|
), w = m(
|
|
487
487
|
() => S.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
|
|
488
|
-
), I = m(() => A.value || t.open),
|
|
488
|
+
), I = m(() => A.value || t.open), D = be({
|
|
489
489
|
componentName: "MazSelect",
|
|
490
490
|
providedId: t.id
|
|
491
491
|
});
|
|
@@ -582,10 +582,10 @@ const yo = {
|
|
|
582
582
|
var o, u;
|
|
583
583
|
(u = ((o = G.value) == null ? void 0 : o.$el).querySelector("input")) == null || u.focus();
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Oe(o) {
|
|
586
586
|
A.value ? x(o) : Ce();
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function De(o) {
|
|
589
589
|
var u, c;
|
|
590
590
|
r.value = o, (c = ((u = a.value) == null ? void 0 : u.$el).querySelector("input")) == null || c.focus();
|
|
591
591
|
}
|
|
@@ -601,11 +601,11 @@ const yo = {
|
|
|
601
601
|
}
|
|
602
602
|
function Ye(o) {
|
|
603
603
|
const u = o.key;
|
|
604
|
-
/^[\dA-Za-z\u0400-\u04FF]$/.test(u) ? (o.preventDefault(), _(o), t.search ?
|
|
604
|
+
/^[\dA-Za-z\u0400-\u04FF]$/.test(u) ? (o.preventDefault(), _(o), t.search ? De(u) : Ue(u)) : Ve(o);
|
|
605
605
|
}
|
|
606
606
|
function Ve(o) {
|
|
607
607
|
const u = o.code, c = ["ArrowUp", "ArrowDown"].includes(u), i = ["Enter", "Space"].includes(u), C = u === "Escape" && I.value;
|
|
608
|
-
c ? qe(o, y.value) : i ?
|
|
608
|
+
c ? qe(o, y.value) : i ? je(o, y.value) : C && x(o);
|
|
609
609
|
}
|
|
610
610
|
function qe(o, u) {
|
|
611
611
|
var C;
|
|
@@ -615,7 +615,7 @@ const yo = {
|
|
|
615
615
|
const i = (C = Y.value) == null ? void 0 : C.length;
|
|
616
616
|
i && (typeof u == "number" ? u === i - 1 && c === "ArrowDown" ? y.value = 0 : u === 0 && c === "ArrowUp" ? y.value = i - 1 : y.value = c === "ArrowDown" ? u + 1 : u - 1 : y.value = c === "ArrowDown" ? 0 : i - 1, de(y.value));
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function je(o, u) {
|
|
619
619
|
var i, C, T;
|
|
620
620
|
if (o.preventDefault(), !I.value)
|
|
621
621
|
return _(o);
|
|
@@ -672,7 +672,7 @@ const yo = {
|
|
|
672
672
|
},
|
|
673
673
|
[
|
|
674
674
|
Z(he, re({
|
|
675
|
-
id: P(
|
|
675
|
+
id: P(D),
|
|
676
676
|
ref_key: "mazInputComponent",
|
|
677
677
|
ref: G,
|
|
678
678
|
class: "m-select-input"
|
|
@@ -691,13 +691,13 @@ const yo = {
|
|
|
691
691
|
onChange: u[0] || (u[0] = (i) => d("change", i)),
|
|
692
692
|
onKeydown: Ye
|
|
693
693
|
}), {
|
|
694
|
-
"right-icon":
|
|
695
|
-
|
|
694
|
+
"right-icon": H(() => [
|
|
695
|
+
j("button", {
|
|
696
696
|
tabindex: "-1",
|
|
697
697
|
type: "button",
|
|
698
698
|
class: "m-select-input__toggle-button maz-custom",
|
|
699
699
|
"aria-label": `${I.value ? "collapse" : "expand"} list of options`,
|
|
700
|
-
onClick: oe(
|
|
700
|
+
onClick: oe(Oe, ["stop"])
|
|
701
701
|
}, [
|
|
702
702
|
Z(P(k), { class: "m-select-chevron maz-text-xl" })
|
|
703
703
|
], 8, Co)
|
|
@@ -706,7 +706,7 @@ const yo = {
|
|
|
706
706
|
/* STABLE */
|
|
707
707
|
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "disabled"]),
|
|
708
708
|
Z(Xe, { name: le.value }, {
|
|
709
|
-
default:
|
|
709
|
+
default: H(() => [
|
|
710
710
|
I.value ? (V(), L(
|
|
711
711
|
"div",
|
|
712
712
|
{
|
|
@@ -725,7 +725,7 @@ const yo = {
|
|
|
725
725
|
})
|
|
726
726
|
},
|
|
727
727
|
[
|
|
728
|
-
o.search ? (V(),
|
|
728
|
+
o.search ? (V(), O(he, {
|
|
729
729
|
key: 0,
|
|
730
730
|
ref_key: "searchInputComponent",
|
|
731
731
|
ref: a,
|
|
@@ -748,7 +748,7 @@ const yo = {
|
|
|
748
748
|
@slot No results slot - Displayed when no results corresponding with search query
|
|
749
749
|
`),
|
|
750
750
|
!Y.value || Y.value.length <= 0 ? R(o.$slots, "no-results", { key: 1 }, () => [
|
|
751
|
-
|
|
751
|
+
j("span", Vo, [
|
|
752
752
|
Z(P(K), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
753
753
|
])
|
|
754
754
|
], !0) : (V(), L("div", wo, [
|
|
@@ -767,7 +767,7 @@ const yo = {
|
|
|
767
767
|
key: 0,
|
|
768
768
|
label: i.label
|
|
769
769
|
}, () => [
|
|
770
|
-
|
|
770
|
+
j(
|
|
771
771
|
"span",
|
|
772
772
|
So,
|
|
773
773
|
X(i.label),
|
|
@@ -788,7 +788,7 @@ const yo = {
|
|
|
788
788
|
style: te(o.itemHeight ? { height: `${o.itemHeight}px` } : void 0),
|
|
789
789
|
onClick: oe((T) => we(i), ["prevent", "stop"])
|
|
790
790
|
}, [
|
|
791
|
-
o.multiple ? (V(),
|
|
791
|
+
o.multiple ? (V(), O(P(f), {
|
|
792
792
|
key: 0,
|
|
793
793
|
tabindex: "-1",
|
|
794
794
|
"model-value": M(i),
|
|
@@ -804,7 +804,7 @@ const yo = {
|
|
|
804
804
|
option: i,
|
|
805
805
|
isSelected: M(i)
|
|
806
806
|
}, () => [
|
|
807
|
-
|
|
807
|
+
j(
|
|
808
808
|
"span",
|
|
809
809
|
null,
|
|
810
810
|
X(i[o.optionLabelKey]),
|
|
@@ -840,7 +840,7 @@ const yo = {
|
|
|
840
840
|
]);
|
|
841
841
|
};
|
|
842
842
|
}
|
|
843
|
-
}), $o = /* @__PURE__ */ se(ko, [["__scopeId", "data-v-
|
|
843
|
+
}), $o = /* @__PURE__ */ se(ko, [["__scopeId", "data-v-cc87f1d6"]]);
|
|
844
844
|
function Me(n) {
|
|
845
845
|
return !!n;
|
|
846
846
|
}
|
|
@@ -1044,11 +1044,11 @@ const Eo = ["id"], Lo = {
|
|
|
1044
1044
|
"exclude-selectors": [`#country-selector-flag-button-${s.id}`, ...s.excludeSelectors ?? []],
|
|
1045
1045
|
"onUpdate:modelValue": p[0] || (p[0] = (w) => s.$emit("update:model-value", w))
|
|
1046
1046
|
}), {
|
|
1047
|
-
"no-results":
|
|
1047
|
+
"no-results": H(() => [
|
|
1048
1048
|
R(s.$slots, "no-results", {}, void 0, !0)
|
|
1049
1049
|
]),
|
|
1050
|
-
default:
|
|
1051
|
-
|
|
1050
|
+
default: H(({ option: w, isSelected: I }) => [
|
|
1051
|
+
j(
|
|
1052
1052
|
"div",
|
|
1053
1053
|
{
|
|
1054
1054
|
class: N(["m-country-selector__select__item maz-flex maz-items-center maz-gap-1 maz-truncate", {
|
|
@@ -1085,7 +1085,7 @@ const Eo = ["id"], Lo = {
|
|
|
1085
1085
|
3
|
|
1086
1086
|
/* TEXT, CLASS */
|
|
1087
1087
|
)) : g("v-if", !0),
|
|
1088
|
-
|
|
1088
|
+
j(
|
|
1089
1089
|
"span",
|
|
1090
1090
|
{
|
|
1091
1091
|
class: N(["maz-flex-1 maz-truncate", { "maz-font-semibold": I }])
|
|
@@ -1152,11 +1152,11 @@ function Ro(n, l) {
|
|
|
1152
1152
|
throw new Error(`[MazPhoneNumberInput](getAsYouTypeFormat) ${e}`);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
async function
|
|
1155
|
+
async function Oo() {
|
|
1156
1156
|
const { default: n } = await import("./examples.mobile.json-JpNGylGv.mjs");
|
|
1157
1157
|
return n;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function Do(n, l) {
|
|
1160
1160
|
var e;
|
|
1161
1161
|
try {
|
|
1162
1162
|
return n && l ? (e = ao(l, n)) == null ? void 0 : e.formatNational() : void 0;
|
|
@@ -1171,8 +1171,8 @@ function Re() {
|
|
|
1171
1171
|
return {
|
|
1172
1172
|
getAsYouTypeFormat: Ro,
|
|
1173
1173
|
getPhoneNumberResults: No,
|
|
1174
|
-
getPhoneNumberExamplesFile:
|
|
1175
|
-
getPhoneNumberExample:
|
|
1174
|
+
getPhoneNumberExamplesFile: Oo,
|
|
1175
|
+
getPhoneNumberExample: Do,
|
|
1176
1176
|
isSameCountryCallingCode: n,
|
|
1177
1177
|
isCountryAvailable: Ko,
|
|
1178
1178
|
getCountries: Ae,
|
|
@@ -1222,7 +1222,7 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1222
1222
|
} : {
|
|
1223
1223
|
label: p.value
|
|
1224
1224
|
}), I = B();
|
|
1225
|
-
async function
|
|
1225
|
+
async function D() {
|
|
1226
1226
|
try {
|
|
1227
1227
|
if (y.value)
|
|
1228
1228
|
return;
|
|
@@ -1239,8 +1239,8 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1239
1239
|
k.value.start = h == null ? void 0 : h.selectionStart, k.value.end = h == null ? void 0 : h.selectionEnd, k.value.cursorAtEnd = z && typeof k.value.start == "number" && z.length > 0 ? k.value.start >= z.length : !0;
|
|
1240
1240
|
}
|
|
1241
1241
|
return ge(() => {
|
|
1242
|
-
e.noExample ||
|
|
1243
|
-
}), (v, z) => (V(),
|
|
1242
|
+
e.noExample || D();
|
|
1243
|
+
}), (v, z) => (V(), O(he, re({
|
|
1244
1244
|
id: v.id,
|
|
1245
1245
|
ref_key: "PhoneInputRef",
|
|
1246
1246
|
ref: I,
|
|
@@ -1275,7 +1275,7 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1275
1275
|
placeholder: "Phone number",
|
|
1276
1276
|
example: "Example:"
|
|
1277
1277
|
}
|
|
1278
|
-
},
|
|
1278
|
+
}, jo = /* @__PURE__ */ ae({
|
|
1279
1279
|
name: "MazPhoneNumberInput",
|
|
1280
1280
|
inheritAttrs: !1,
|
|
1281
1281
|
__name: "MazPhoneNumberInput",
|
|
@@ -1352,10 +1352,10 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1352
1352
|
z($);
|
|
1353
1353
|
}
|
|
1354
1354
|
});
|
|
1355
|
-
const
|
|
1355
|
+
const D = B();
|
|
1356
1356
|
function W() {
|
|
1357
1357
|
var a;
|
|
1358
|
-
return (a =
|
|
1358
|
+
return (a = D.value) == null ? void 0 : a.$el.querySelector("input");
|
|
1359
1359
|
}
|
|
1360
1360
|
async function Q() {
|
|
1361
1361
|
var a;
|
|
@@ -1462,7 +1462,7 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1462
1462
|
style: te(a.style)
|
|
1463
1463
|
},
|
|
1464
1464
|
[
|
|
1465
|
-
a.noCountrySelector ? g("v-if", !0) : (V(),
|
|
1465
|
+
a.noCountrySelector ? g("v-if", !0) : (V(), O(To, {
|
|
1466
1466
|
key: 0,
|
|
1467
1467
|
id: P(y),
|
|
1468
1468
|
"model-value": s.value,
|
|
@@ -1486,20 +1486,20 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1486
1486
|
width: a.countrySelectorWidth,
|
|
1487
1487
|
"onUpdate:modelValue": v
|
|
1488
1488
|
}, {
|
|
1489
|
-
"no-results":
|
|
1489
|
+
"no-results": H(() => [
|
|
1490
1490
|
g(`
|
|
1491
1491
|
@slot Replace the "no results" icon in the country selector list
|
|
1492
1492
|
`),
|
|
1493
1493
|
R(a.$slots, "no-results", {}, void 0, !0)
|
|
1494
1494
|
]),
|
|
1495
|
-
"selector-flag":
|
|
1495
|
+
"selector-flag": H(({ countryCode: M }) => [
|
|
1496
1496
|
g(`
|
|
1497
1497
|
@slot Country selector flag
|
|
1498
1498
|
@binding {String} country-code - current selected country code - Ex: \`"FR"\`
|
|
1499
1499
|
`),
|
|
1500
1500
|
R(a.$slots, "selector-flag", { countryCode: M }, void 0, !0)
|
|
1501
1501
|
]),
|
|
1502
|
-
"country-list-flag":
|
|
1502
|
+
"country-list-flag": H(({ isSelected: M, option: U }) => [
|
|
1503
1503
|
g(`
|
|
1504
1504
|
@slot Country list flag
|
|
1505
1505
|
@binding {String} country-code - country code of option - Ex: \`"FR"\`
|
|
@@ -1518,7 +1518,7 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1518
1518
|
Z(Yo, re({
|
|
1519
1519
|
id: P(y),
|
|
1520
1520
|
ref_key: "PhoneInputRef",
|
|
1521
|
-
ref:
|
|
1521
|
+
ref: D,
|
|
1522
1522
|
"model-value": S.value,
|
|
1523
1523
|
color: a.color,
|
|
1524
1524
|
size: a.size,
|
|
@@ -1546,7 +1546,7 @@ const Uo = /* @__PURE__ */ ae({
|
|
|
1546
1546
|
);
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
}), Qo = /* @__PURE__ */ se(
|
|
1549
|
+
}), Qo = /* @__PURE__ */ se(jo, [["__scopeId", "data-v-b88dc7cd"]]);
|
|
1550
1550
|
export {
|
|
1551
1551
|
Qo as M,
|
|
1552
1552
|
se as _,
|