maz-ui 3.47.2-beta.20 → 3.47.2-beta.21
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/MazChecklist.mjs +1 -1
- package/components/MazInput.d.ts +2 -0
- 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/MazPhoneNumberInput/PhoneInput.vue.d.ts +9 -20
- package/components/MazPhoneNumberInput/types.d.ts +2 -1
- package/components/MazPhoneNumberInput/useLibphonenumber.d.ts +8 -3
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/chunks/{MazBtn-Db6ai-Mv.mjs → MazBtn-4-B-zs6Y.mjs} +2 -2
- package/components/chunks/{MazBtn-B5ioqwkK.mjs → MazBtn-C6zsmGnw.mjs} +2 -2
- package/components/chunks/MazBtn-C7yEnuOD.mjs +103 -0
- package/components/chunks/{MazBtn-CElHmZjv.mjs → MazBtn-DAXwt847.mjs} +2 -2
- package/components/chunks/{MazBtn-BrfhtojY.mjs → MazBtn-DOWVQgpN.mjs} +2 -2
- package/components/chunks/{MazBtn-C4nwxs9T.mjs → MazBtn-DZaVjTvW.mjs} +2 -2
- package/components/chunks/{MazCheckbox-B5ZcWc3y.mjs → MazCheckbox-BNvSeNBP.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BDPgDiU3.mjs → MazCheckbox-CCma_qyQ.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BeLByOEa.mjs → MazCheckbox-eOEEACaM.mjs} +1 -1
- package/components/chunks/{MazChecklist-BurPprmw.mjs → MazChecklist-Bb_70sf5.mjs} +1 -1
- package/components/chunks/{MazIcon-CaXpmvN2.mjs → MazIcon-kLACGOa2.mjs} +1 -1
- package/components/chunks/{MazInput-BT-mbJfZ.mjs → MazInput-BM4n-byz.mjs} +18 -18
- package/components/chunks/{MazInput-BTIdtLkD.mjs → MazInput-BcutbP8N.mjs} +11 -11
- package/components/chunks/{MazInput-BfWJoPre.mjs → MazInput-C9Qh4Gt3.mjs} +10 -10
- package/components/chunks/{MazInputNumber-R0RzDeyD.mjs → MazInputNumber-DgjOMiOt.mjs} +40 -40
- package/components/chunks/{MazInputPrice-CKSdqO4X.mjs → MazInputPrice-D6fJN9yv.mjs} +41 -41
- package/components/chunks/{MazInputTags-D6jQ2-Ia.mjs → MazInputTags-DthGSyHQ.mjs} +51 -51
- package/components/chunks/{MazLoadingBar-D3pDBJSb.mjs → MazLoadingBar-C2qPjfEQ.mjs} +1 -1
- package/components/chunks/MazPhoneNumberInput-BQjByOtQ.mjs +1813 -0
- package/components/chunks/{MazPicker-CwiuW5Pv.mjs → MazPicker-BljfUneI.mjs} +11 -11
- package/components/chunks/{MazPickerMonthSwitcher-C65el7R0.mjs → MazPickerMonthSwitcher-CEVb4BXw.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DbrOoszH.mjs → MazPickerShortcuts-DayGMC9m.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-D9lqntyR.mjs → MazPickerYearSwitcher-DC1lFIbp.mjs} +1 -1
- package/components/chunks/{MazSelect-CyWAOXo4.mjs → MazSelect-CH3JdigO.mjs} +54 -54
- package/components/chunks/{MazSelect-CbT4tFqV.mjs → MazSelect-D3KXcHJS.mjs} +3 -3
- package/components/chunks/MazSpinner-B5JChIrj.mjs +34 -0
- package/components/chunks/{MazSpinner-N-1gjTUE.mjs → MazSpinner-BBZoDxwq.mjs} +1 -1
- package/components/chunks/{MazSpinner-DYE8e9xl.mjs → MazSpinner-BIPm54-3.mjs} +1 -1
- package/components/chunks/{MazSpinner-CS1_l-tv.mjs → MazSpinner-C-ln9ldX.mjs} +1 -1
- package/components/chunks/{MazSpinner-BDda3YzZ.mjs → MazSpinner-C11EOZZd.mjs} +1 -1
- package/components/chunks/{MazSpinner-CwmaAuL1.mjs → MazSpinner-CCc9ajpj.mjs} +1 -1
- package/components/chunks/{MazSpinner-C2-JMhVh.mjs → MazSpinner-CgKOIkQQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-mtv0dluJ.mjs → MazSpinner-CwdlrYSt.mjs} +1 -1
- package/components/chunks/MazSpinner-DoPIk0St.mjs +34 -0
- package/components/chunks/{MazTable-hA0HicaL.mjs → MazTable-BU3Hluiu.mjs} +1 -1
- package/components/chunks/{MazTableCell-DkCidYWY.mjs → MazTableCell-DKMZAanm.mjs} +1 -1
- package/components/chunks/{MazTableRow-BAl6Fzm8.mjs → MazTableRow-CDHpmXfw.mjs} +1 -1
- package/components/chunks/{MazTableTitle-CY_LNDOk.mjs → MazTableTitle-BSFZ84Ob.mjs} +1 -1
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/nuxt/index.json +1 -1
- package/package.json +2 -2
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +9 -20
- package/types/components/MazPhoneNumberInput/types.d.ts +2 -1
- package/types/components/MazPhoneNumberInput/useLibphonenumber.d.ts +8 -3
- package/components/MazPhoneNumberInput.d.ts +0 -283
- package/components/chunks/MazBtn-D4NOcykx.mjs +0 -103
- package/components/chunks/MazPhoneNumberInput-DibUhBpk.mjs +0 -1809
- package/components/chunks/MazSpinner-DudoF-cG.mjs +0 -34
- package/components/chunks/MazSpinner-EAz0nFxC.mjs +0 -34
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -283
|
@@ -16,7 +16,7 @@ function re(i, u) {
|
|
|
16
16
|
const se = ["for"], ie = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "m-input-wrapper-left"
|
|
19
|
-
}, ue = ["id", "
|
|
19
|
+
}, ue = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], de = { key: 0 }, fe = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "m-input-wrapper-right"
|
|
22
22
|
}, ce = /* @__PURE__ */ X({
|
|
@@ -55,11 +55,12 @@ const se = ["for"], ie = {
|
|
|
55
55
|
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
56
56
|
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
57
57
|
roundedSize: { default: void 0 },
|
|
58
|
-
block: { type: Boolean }
|
|
58
|
+
block: { type: Boolean },
|
|
59
|
+
autocomplete: {}
|
|
59
60
|
},
|
|
60
61
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
61
62
|
setup(i, { emit: u }) {
|
|
62
|
-
const t = i, n = u, v = p(() => import("./MazBtn-
|
|
63
|
+
const t = i, n = u, v = p(() => import("./MazBtn-DZaVjTvW.mjs")), B = p(() => import("./MazIcon-_hN-Kivn.mjs")), T = p(() => import("./eye-slash-BoO00xzs.mjs")), q = p(() => import("./eye-f8zAUc30.mjs")), D = p(() => import("./check-BmubdHc_.mjs")), b = g(!1), c = g(!1), $ = g(), C = le({
|
|
63
64
|
componentName: "MazInput",
|
|
64
65
|
providedId: t.id
|
|
65
66
|
});
|
|
@@ -186,19 +187,18 @@ const se = ["for"], ie = {
|
|
|
186
187
|
class: m(["m-input-wrapper-input", [`--${e.size}`, { "--top-label": !!e.topLabel }]])
|
|
187
188
|
},
|
|
188
189
|
[
|
|
189
|
-
_(I("input", ee({
|
|
190
|
-
id: r(C),
|
|
190
|
+
_(I("input", ee({ id: r(C) }, e.$attrs, {
|
|
191
191
|
ref_key: "input",
|
|
192
192
|
ref: $,
|
|
193
193
|
"onUpdate:modelValue": l[0] || (l[0] = (z) => y.value = z),
|
|
194
|
-
|
|
195
|
-
name: e.name
|
|
196
|
-
}, e.$attrs, {
|
|
197
|
-
inputmode: e.inputmode,
|
|
194
|
+
name: e.name,
|
|
198
195
|
placeholder: P.value,
|
|
199
196
|
"aria-label": e.label || e.placeholder,
|
|
197
|
+
type: E.value,
|
|
198
|
+
inputmode: e.inputmode,
|
|
200
199
|
disabled: e.disabled,
|
|
201
200
|
readonly: e.readonly,
|
|
201
|
+
autocomplete: e.autocomplete,
|
|
202
202
|
required: e.required,
|
|
203
203
|
class: "m-input-input"
|
|
204
204
|
}, te({
|
|
@@ -317,7 +317,7 @@ const se = ["for"], ie = {
|
|
|
317
317
|
for (const [n, v] of u)
|
|
318
318
|
t[n] = v;
|
|
319
319
|
return t;
|
|
320
|
-
}, ve = /* @__PURE__ */ pe(ce, [["__scopeId", "data-v-
|
|
320
|
+
}, ve = /* @__PURE__ */ pe(ce, [["__scopeId", "data-v-1443c13f"]]);
|
|
321
321
|
export {
|
|
322
322
|
ve as M,
|
|
323
323
|
pe as _
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { openBlock as a, createElementBlock as v, createElementVNode as M, defineComponent as L, defineAsyncComponent as I, useAttrs as ne, computed as i, createBlock as m, resolveDynamicComponent as C, normalizeClass as
|
|
2
|
-
import '../assets/MazInputNumber.css';function R(
|
|
1
|
+
import { openBlock as a, createElementBlock as v, createElementVNode as M, defineComponent as L, defineAsyncComponent as I, useAttrs as ne, computed as i, createBlock as m, resolveDynamicComponent as C, normalizeClass as f, normalizeStyle as A, withCtx as N, renderSlot as w, unref as d, createCommentVNode as s, createVNode as S, useId as oe, ref as P, onMounted as le, useSlots as ae, toDisplayString as E, withDirectives as re, mergeProps as U, toHandlers as ie, vModelDynamic as se, createTextVNode as ue, withModifiers as D, withKeys as q } from "vue";
|
|
2
|
+
import '../assets/MazInputNumber.css';function R(p, l) {
|
|
3
3
|
let t;
|
|
4
4
|
return function(...u) {
|
|
5
5
|
clearTimeout(t), t = setTimeout(() => {
|
|
6
|
-
|
|
6
|
+
p.apply(this, u);
|
|
7
7
|
}, l);
|
|
8
8
|
};
|
|
9
9
|
}
|
|
@@ -14,7 +14,7 @@ const de = {
|
|
|
14
14
|
fill: "none",
|
|
15
15
|
viewBox: "0 0 24 24"
|
|
16
16
|
};
|
|
17
|
-
function me(
|
|
17
|
+
function me(p, l) {
|
|
18
18
|
return a(), v("svg", de, l[0] || (l[0] = [
|
|
19
19
|
M(
|
|
20
20
|
"path",
|
|
@@ -31,15 +31,15 @@ function me(f, l) {
|
|
|
31
31
|
)
|
|
32
32
|
]));
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const pe = { render: me }, fe = {
|
|
35
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
36
36
|
width: "1em",
|
|
37
37
|
height: "1em",
|
|
38
38
|
fill: "none",
|
|
39
39
|
viewBox: "0 0 24 24"
|
|
40
40
|
};
|
|
41
|
-
function ce(
|
|
42
|
-
return a(), v("svg",
|
|
41
|
+
function ce(p, l) {
|
|
42
|
+
return a(), v("svg", fe, l[0] || (l[0] = [
|
|
43
43
|
M(
|
|
44
44
|
"path",
|
|
45
45
|
{
|
|
@@ -82,13 +82,13 @@ const ve = { render: ce }, be = {
|
|
|
82
82
|
noElevation: { type: Boolean },
|
|
83
83
|
justify: { default: "center" }
|
|
84
84
|
},
|
|
85
|
-
setup(
|
|
86
|
-
const l =
|
|
85
|
+
setup(p) {
|
|
86
|
+
const l = p, t = I(() => import("./MazSpinner-B5JChIrj.mjs")), u = I(() => import("./MazIcon-_hN-Kivn.mjs")), { href: r, to: $ } = ne(), h = i(() => r ? "a" : $ ? "router-link" : "button"), V = i(() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`), g = i(
|
|
87
87
|
() => (l.loading || l.disabled) && h.value === "button"
|
|
88
88
|
), z = i(() => g.value ? "--cursor-default" : "--cursor-pointer"), b = i(() => `--is-${l.variant}`), k = i(() => l.loading && l.variant === "button"), B = i(() => h.value === "button" ? l.type : void 0), n = i(() => l.size === "xl" ? "maz-text-3xl" : l.size === "lg" ? "maz-text-2xl" : l.size === "md" ? "maz-text-xl" : l.size === "sm" ? "maz-text-lg" : l.size === "xs" ? "maz-text-base" : l.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
89
89
|
return (o, c) => (a(), m(C(h.value), {
|
|
90
90
|
disabled: g.value || void 0,
|
|
91
|
-
class:
|
|
91
|
+
class: f(["m-btn", [
|
|
92
92
|
`--${o.size}`,
|
|
93
93
|
!o.fab && !o.rounded && o.roundedSize && `--rounded-${o.roundedSize}`,
|
|
94
94
|
V.value,
|
|
@@ -114,20 +114,20 @@ const ve = { render: ce }, be = {
|
|
|
114
114
|
typeof o.leftIcon == "string" ? (a(), m(d(u), {
|
|
115
115
|
key: 0,
|
|
116
116
|
name: o.leftIcon,
|
|
117
|
-
class:
|
|
117
|
+
class: f([n.value])
|
|
118
118
|
}, null, 8, ["name", "class"])) : o.leftIcon ? (a(), m(C(o.leftIcon), {
|
|
119
119
|
key: 1,
|
|
120
|
-
class:
|
|
120
|
+
class: f([n.value])
|
|
121
121
|
}, null, 8, ["class"])) : s("v-if", !0)
|
|
122
122
|
], !0),
|
|
123
123
|
w(o.$slots, "icon", {}, () => [
|
|
124
124
|
typeof o.icon == "string" ? (a(), m(d(u), {
|
|
125
125
|
key: 0,
|
|
126
126
|
name: o.icon,
|
|
127
|
-
class:
|
|
127
|
+
class: f([n.value])
|
|
128
128
|
}, null, 8, ["name", "class"])) : o.icon ? (a(), m(C(o.icon), {
|
|
129
129
|
key: 1,
|
|
130
|
-
class:
|
|
130
|
+
class: f([n.value])
|
|
131
131
|
}, null, 8, ["class"])) : s("v-if", !0)
|
|
132
132
|
], !0),
|
|
133
133
|
w(o.$slots, "default", {}, void 0, !0),
|
|
@@ -135,10 +135,10 @@ const ve = { render: ce }, be = {
|
|
|
135
135
|
typeof o.rightIcon == "string" ? (a(), m(d(u), {
|
|
136
136
|
key: 0,
|
|
137
137
|
name: o.rightIcon,
|
|
138
|
-
class:
|
|
138
|
+
class: f([n.value])
|
|
139
139
|
}, null, 8, ["name", "class"])) : o.rightIcon ? (a(), m(C(o.rightIcon), {
|
|
140
140
|
key: 1,
|
|
141
|
-
class:
|
|
141
|
+
class: f([n.value])
|
|
142
142
|
}, null, 8, ["class"])) : s("v-if", !0)
|
|
143
143
|
], !0),
|
|
144
144
|
k.value ? (a(), v("div", be, [
|
|
@@ -152,8 +152,8 @@ const ve = { render: ce }, be = {
|
|
|
152
152
|
/* FORWARDED */
|
|
153
153
|
}, 8, ["disabled", "class", "style", "type"]));
|
|
154
154
|
}
|
|
155
|
-
}), K = (
|
|
156
|
-
const t =
|
|
155
|
+
}), K = (p, l) => {
|
|
156
|
+
const t = p.__vccOpts || p;
|
|
157
157
|
for (const [u, r] of l)
|
|
158
158
|
t[u] = r;
|
|
159
159
|
return t;
|
|
@@ -162,15 +162,15 @@ const ve = { render: ce }, be = {
|
|
|
162
162
|
default: O
|
|
163
163
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
164
164
|
function ze({
|
|
165
|
-
componentName:
|
|
165
|
+
componentName: p,
|
|
166
166
|
providedId: l
|
|
167
167
|
}) {
|
|
168
|
-
return i(() => l ?? `${
|
|
168
|
+
return i(() => l ?? `${p}-${oe().replace(/:/g, "")}`);
|
|
169
169
|
}
|
|
170
170
|
const he = ["for"], ke = {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: "m-input-wrapper-left"
|
|
173
|
-
}, Be = ["id", "
|
|
173
|
+
}, Be = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], Ie = { key: 0 }, we = {
|
|
174
174
|
key: 1,
|
|
175
175
|
class: "m-input-wrapper-right"
|
|
176
176
|
}, $e = /* @__PURE__ */ L({
|
|
@@ -209,11 +209,12 @@ const he = ["for"], ke = {
|
|
|
209
209
|
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
210
210
|
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
211
211
|
roundedSize: { default: void 0 },
|
|
212
|
-
block: { type: Boolean }
|
|
212
|
+
block: { type: Boolean },
|
|
213
|
+
autocomplete: {}
|
|
213
214
|
},
|
|
214
215
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
215
|
-
setup(
|
|
216
|
-
const t =
|
|
216
|
+
setup(p, { emit: l }) {
|
|
217
|
+
const t = p, u = l, r = I(() => Promise.resolve().then(() => ge)), $ = I(() => import("./MazIcon-_hN-Kivn.mjs")), h = I(() => import("./eye-slash-BoO00xzs.mjs")), V = I(() => import("./eye-f8zAUc30.mjs")), g = I(() => import("./check-BmubdHc_.mjs")), z = P(!1), b = P(!1), k = P(), B = ze({
|
|
217
218
|
componentName: "MazInput",
|
|
218
219
|
providedId: t.id
|
|
219
220
|
});
|
|
@@ -289,7 +290,7 @@ const he = ["for"], ke = {
|
|
|
289
290
|
return (e, y) => (a(), v(
|
|
290
291
|
"div",
|
|
291
292
|
{
|
|
292
|
-
class:
|
|
293
|
+
class: f(["m-input", [
|
|
293
294
|
{
|
|
294
295
|
"--is-focused": b.value || e.borderActive,
|
|
295
296
|
"--should-up": Q.value,
|
|
@@ -314,7 +315,7 @@ const he = ["for"], ke = {
|
|
|
314
315
|
M(
|
|
315
316
|
"div",
|
|
316
317
|
{
|
|
317
|
-
class:
|
|
318
|
+
class: f(["m-input-wrapper", [
|
|
318
319
|
e.inputClasses,
|
|
319
320
|
c.value,
|
|
320
321
|
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius },
|
|
@@ -337,22 +338,21 @@ const he = ["for"], ke = {
|
|
|
337
338
|
M(
|
|
338
339
|
"div",
|
|
339
340
|
{
|
|
340
|
-
class:
|
|
341
|
+
class: f(["m-input-wrapper-input", [`--${e.size}`, { "--top-label": !!e.topLabel }]])
|
|
341
342
|
},
|
|
342
343
|
[
|
|
343
|
-
re(M("input", U({
|
|
344
|
-
id: d(B),
|
|
344
|
+
re(M("input", U({ id: d(B) }, e.$attrs, {
|
|
345
345
|
ref_key: "input",
|
|
346
346
|
ref: k,
|
|
347
347
|
"onUpdate:modelValue": y[0] || (y[0] = (F) => T.value = F),
|
|
348
|
-
|
|
349
|
-
name: e.name
|
|
350
|
-
}, e.$attrs, {
|
|
351
|
-
inputmode: e.inputmode,
|
|
348
|
+
name: e.name,
|
|
352
349
|
placeholder: Y.value,
|
|
353
350
|
"aria-label": e.label || e.placeholder,
|
|
351
|
+
type: o.value,
|
|
352
|
+
inputmode: e.inputmode,
|
|
354
353
|
disabled: e.disabled,
|
|
355
354
|
readonly: e.readonly,
|
|
355
|
+
autocomplete: e.autocomplete,
|
|
356
356
|
required: e.required,
|
|
357
357
|
class: "m-input-input"
|
|
358
358
|
}, ie({
|
|
@@ -369,7 +369,7 @@ const he = ["for"], ke = {
|
|
|
369
369
|
"span",
|
|
370
370
|
{
|
|
371
371
|
key: 0,
|
|
372
|
-
class:
|
|
372
|
+
class: f(["m-input-label", [
|
|
373
373
|
{
|
|
374
374
|
"maz-text-danger-600": e.error,
|
|
375
375
|
"maz-text-success-600": e.success,
|
|
@@ -448,7 +448,7 @@ const he = ["for"], ke = {
|
|
|
448
448
|
"div",
|
|
449
449
|
{
|
|
450
450
|
key: 1,
|
|
451
|
-
class:
|
|
451
|
+
class: f(["m-input-bottom-text", [
|
|
452
452
|
{
|
|
453
453
|
"maz-text-danger-600": e.error,
|
|
454
454
|
"maz-text-success-600": e.success,
|
|
@@ -466,7 +466,7 @@ const he = ["for"], ke = {
|
|
|
466
466
|
/* CLASS, STYLE */
|
|
467
467
|
));
|
|
468
468
|
}
|
|
469
|
-
}), Ce = /* @__PURE__ */ K($e, [["__scopeId", "data-v-
|
|
469
|
+
}), Ce = /* @__PURE__ */ K($e, [["__scopeId", "data-v-1443c13f"]]), Ve = /* @__PURE__ */ L({
|
|
470
470
|
inheritAttrs: !1,
|
|
471
471
|
__name: "MazInputNumber",
|
|
472
472
|
props: {
|
|
@@ -488,8 +488,8 @@ const he = ["for"], ke = {
|
|
|
488
488
|
warning: { type: Boolean }
|
|
489
489
|
},
|
|
490
490
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
491
|
-
setup(
|
|
492
|
-
const t =
|
|
491
|
+
setup(p, { emit: l }) {
|
|
492
|
+
const t = p, u = l, r = i({
|
|
493
493
|
get: () => t.modelValue,
|
|
494
494
|
set: (n) => g(n)
|
|
495
495
|
});
|
|
@@ -527,7 +527,7 @@ const he = ["for"], ke = {
|
|
|
527
527
|
return (n, o) => (a(), v(
|
|
528
528
|
"div",
|
|
529
529
|
{
|
|
530
|
-
class:
|
|
530
|
+
class: f(["m-input-number", [`m-input-number--${n.size}`, t.class, { "--block": n.block }]]),
|
|
531
531
|
style: A(n.style)
|
|
532
532
|
},
|
|
533
533
|
[
|
|
@@ -541,7 +541,7 @@ const he = ["for"], ke = {
|
|
|
541
541
|
onClick: B
|
|
542
542
|
}, {
|
|
543
543
|
default: N(() => [
|
|
544
|
-
S(d(
|
|
544
|
+
S(d(pe), { class: "m-input-number__button__icon" })
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
|
547
547
|
/* STABLE */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import '../assets/MazInputPrice.css';const
|
|
1
|
+
import { openBlock as u, createElementBlock as v, createElementVNode as C, computed as s, useId as X, defineComponent as L, defineAsyncComponent as z, ref as k, onMounted as O, useSlots as Z, normalizeClass as w, normalizeStyle as x, unref as f, toDisplayString as A, createCommentVNode as i, renderSlot as E, createBlock as y, resolveDynamicComponent as D, withDirectives as _, mergeProps as ee, toHandlers as te, vModelDynamic as oe, createTextVNode as re, withModifiers as ne, withCtx as P, createVNode as q, watch as ae, withKeys as le, nextTick as ue } from "vue";
|
|
2
|
+
import '../assets/MazInputPrice.css';const ie = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
5
5
|
height: "1em",
|
|
@@ -7,7 +7,7 @@ import '../assets/MazInputPrice.css';const ue = {
|
|
|
7
7
|
viewBox: "0 0 24 24"
|
|
8
8
|
};
|
|
9
9
|
function se(l, n) {
|
|
10
|
-
return
|
|
10
|
+
return u(), v("svg", ie, n[0] || (n[0] = [
|
|
11
11
|
C(
|
|
12
12
|
"path",
|
|
13
13
|
{
|
|
@@ -71,7 +71,7 @@ function ye(l, n) {
|
|
|
71
71
|
const be = ["for"], he = {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "m-input-wrapper-left"
|
|
74
|
-
}, ge = ["id", "
|
|
74
|
+
}, ge = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], ze = { key: 0 }, we = {
|
|
75
75
|
key: 1,
|
|
76
76
|
class: "m-input-wrapper-right"
|
|
77
77
|
}, ke = /* @__PURE__ */ L({
|
|
@@ -110,11 +110,12 @@ const be = ["for"], he = {
|
|
|
110
110
|
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
111
111
|
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
112
112
|
roundedSize: { default: void 0 },
|
|
113
|
-
block: { type: Boolean }
|
|
113
|
+
block: { type: Boolean },
|
|
114
|
+
autocomplete: {}
|
|
114
115
|
},
|
|
115
116
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
116
117
|
setup(l, { emit: n }) {
|
|
117
|
-
const t = l, r = n, d = z(() => import("./MazBtn-
|
|
118
|
+
const t = l, r = n, d = z(() => import("./MazBtn-4-B-zs6Y.mjs")), h = z(() => import("./MazIcon-_hN-Kivn.mjs")), M = z(() => import("./eye-slash-BoO00xzs.mjs")), I = z(() => import("./eye-f8zAUc30.mjs")), B = z(() => import("./check-BmubdHc_.mjs")), p = k(!1), b = k(!1), g = k(), V = ve({
|
|
118
119
|
componentName: "MazInput",
|
|
119
120
|
providedId: t.id
|
|
120
121
|
});
|
|
@@ -187,7 +188,7 @@ const be = ["for"], he = {
|
|
|
187
188
|
function Q(e) {
|
|
188
189
|
return r("input", e);
|
|
189
190
|
}
|
|
190
|
-
return (e, m) => (
|
|
191
|
+
return (e, m) => (u(), v(
|
|
191
192
|
"div",
|
|
192
193
|
{
|
|
193
194
|
class: w(["m-input", [
|
|
@@ -207,11 +208,11 @@ const be = ["for"], he = {
|
|
|
207
208
|
style: x(e.style)
|
|
208
209
|
},
|
|
209
210
|
[
|
|
210
|
-
e.topLabel ? (
|
|
211
|
+
e.topLabel ? (u(), v("label", {
|
|
211
212
|
key: 0,
|
|
212
213
|
for: f(V),
|
|
213
214
|
class: "m-input-top-label"
|
|
214
|
-
}, A(e.topLabel), 9, be)) :
|
|
215
|
+
}, A(e.topLabel), 9, be)) : i("v-if", !0),
|
|
215
216
|
C(
|
|
216
217
|
"div",
|
|
217
218
|
{
|
|
@@ -223,37 +224,36 @@ const be = ["for"], he = {
|
|
|
223
224
|
]])
|
|
224
225
|
},
|
|
225
226
|
[
|
|
226
|
-
Y() ? (
|
|
227
|
+
Y() ? (u(), v("div", he, [
|
|
227
228
|
e.$slots["left-icon"] || e.leftIcon ? E(e.$slots, "left-icon", { key: 0 }, () => [
|
|
228
|
-
typeof e.leftIcon == "string" ? (
|
|
229
|
+
typeof e.leftIcon == "string" ? (u(), y(f(h), {
|
|
229
230
|
key: 0,
|
|
230
231
|
name: e.leftIcon,
|
|
231
232
|
class: "maz-text-xl maz-text-muted"
|
|
232
|
-
}, null, 8, ["name"])) : e.leftIcon ? (
|
|
233
|
+
}, null, 8, ["name"])) : e.leftIcon ? (u(), y(D(e.leftIcon), {
|
|
233
234
|
key: 1,
|
|
234
235
|
class: "maz-text-xl maz-text-muted"
|
|
235
|
-
})) :
|
|
236
|
-
], !0) :
|
|
237
|
-
])) :
|
|
236
|
+
})) : i("v-if", !0)
|
|
237
|
+
], !0) : i("v-if", !0)
|
|
238
|
+
])) : i("v-if", !0),
|
|
238
239
|
C(
|
|
239
240
|
"div",
|
|
240
241
|
{
|
|
241
242
|
class: w(["m-input-wrapper-input", [`--${e.size}`, { "--top-label": !!e.topLabel }]])
|
|
242
243
|
},
|
|
243
244
|
[
|
|
244
|
-
_(C("input", ee({
|
|
245
|
-
id: f(V),
|
|
245
|
+
_(C("input", ee({ id: f(V) }, e.$attrs, {
|
|
246
246
|
ref_key: "input",
|
|
247
247
|
ref: g,
|
|
248
248
|
"onUpdate:modelValue": m[0] || (m[0] = ($) => N.value = $),
|
|
249
|
-
|
|
250
|
-
name: e.name
|
|
251
|
-
}, e.$attrs, {
|
|
252
|
-
inputmode: e.inputmode,
|
|
249
|
+
name: e.name,
|
|
253
250
|
placeholder: c.value,
|
|
254
251
|
"aria-label": e.label || e.placeholder,
|
|
252
|
+
type: S.value,
|
|
253
|
+
inputmode: e.inputmode,
|
|
255
254
|
disabled: e.disabled,
|
|
256
255
|
readonly: e.readonly,
|
|
256
|
+
autocomplete: e.autocomplete,
|
|
257
257
|
required: e.required,
|
|
258
258
|
class: "m-input-input"
|
|
259
259
|
}, te({
|
|
@@ -266,7 +266,7 @@ const be = ["for"], he = {
|
|
|
266
266
|
}), null, 16, ge), [
|
|
267
267
|
[oe, N.value]
|
|
268
268
|
]),
|
|
269
|
-
e.label || e.hint ? (
|
|
269
|
+
e.label || e.hint ? (u(), v(
|
|
270
270
|
"span",
|
|
271
271
|
{
|
|
272
272
|
key: 0,
|
|
@@ -284,27 +284,27 @@ const be = ["for"], he = {
|
|
|
284
284
|
1
|
|
285
285
|
/* TEXT */
|
|
286
286
|
),
|
|
287
|
-
e.required ? (
|
|
287
|
+
e.required ? (u(), v("sup", ze, "*")) : i("v-if", !0)
|
|
288
288
|
],
|
|
289
289
|
2
|
|
290
290
|
/* CLASS */
|
|
291
|
-
)) :
|
|
291
|
+
)) : i("v-if", !0)
|
|
292
292
|
],
|
|
293
293
|
2
|
|
294
294
|
/* CLASS */
|
|
295
295
|
),
|
|
296
|
-
K() ? (
|
|
296
|
+
K() ? (u(), v("div", we, [
|
|
297
297
|
e.$slots["right-icon"] || e.rightIcon ? E(e.$slots, "right-icon", { key: 0 }, () => [
|
|
298
|
-
typeof e.rightIcon == "string" ? (
|
|
298
|
+
typeof e.rightIcon == "string" ? (u(), y(f(h), {
|
|
299
299
|
key: 0,
|
|
300
300
|
name: e.rightIcon,
|
|
301
301
|
class: "maz-text-xl maz-text-muted"
|
|
302
|
-
}, null, 8, ["name"])) : e.rightIcon ? (
|
|
302
|
+
}, null, 8, ["name"])) : e.rightIcon ? (u(), y(D(e.rightIcon), {
|
|
303
303
|
key: 1,
|
|
304
304
|
class: "maz-text-xl maz-text-muted"
|
|
305
|
-
})) :
|
|
306
|
-
], !0) :
|
|
307
|
-
T.value ? (
|
|
305
|
+
})) : i("v-if", !0)
|
|
306
|
+
], !0) : i("v-if", !0),
|
|
307
|
+
T.value ? (u(), y(f(d), {
|
|
308
308
|
key: 1,
|
|
309
309
|
color: "transparent",
|
|
310
310
|
tabindex: "-1",
|
|
@@ -312,17 +312,17 @@ const be = ["for"], he = {
|
|
|
312
312
|
onClick: m[2] || (m[2] = ne(($) => p.value = !p.value, ["stop"]))
|
|
313
313
|
}, {
|
|
314
314
|
default: P(() => [
|
|
315
|
-
p.value ? (
|
|
315
|
+
p.value ? (u(), y(f(M), {
|
|
316
316
|
key: 0,
|
|
317
317
|
class: "maz-text-xl maz-text-muted"
|
|
318
|
-
})) : (
|
|
318
|
+
})) : (u(), y(f(I), {
|
|
319
319
|
key: 1,
|
|
320
320
|
class: "maz-text-xl maz-text-muted"
|
|
321
321
|
}))
|
|
322
322
|
]),
|
|
323
323
|
_: 1
|
|
324
324
|
/* STABLE */
|
|
325
|
-
})) :
|
|
325
|
+
})) : i("v-if", !0),
|
|
326
326
|
e.$slots["valid-button"] || e.validButton ? E(e.$slots, "valid-button", { key: 2 }, () => [
|
|
327
327
|
q(f(d), {
|
|
328
328
|
color: "transparent",
|
|
@@ -339,13 +339,13 @@ const be = ["for"], he = {
|
|
|
339
339
|
_: 1
|
|
340
340
|
/* STABLE */
|
|
341
341
|
}, 8, ["disabled", "loading"])
|
|
342
|
-
], !0) :
|
|
343
|
-
])) :
|
|
342
|
+
], !0) : i("v-if", !0)
|
|
343
|
+
])) : i("v-if", !0)
|
|
344
344
|
],
|
|
345
345
|
2
|
|
346
346
|
/* CLASS */
|
|
347
347
|
),
|
|
348
|
-
e.assistiveText ? (
|
|
348
|
+
e.assistiveText ? (u(), v(
|
|
349
349
|
"div",
|
|
350
350
|
{
|
|
351
351
|
key: 1,
|
|
@@ -361,7 +361,7 @@ const be = ["for"], he = {
|
|
|
361
361
|
A(e.assistiveText),
|
|
362
362
|
3
|
|
363
363
|
/* TEXT, CLASS */
|
|
364
|
-
)) :
|
|
364
|
+
)) : i("v-if", !0)
|
|
365
365
|
],
|
|
366
366
|
6
|
|
367
367
|
/* CLASS, STYLE */
|
|
@@ -372,7 +372,7 @@ const be = ["for"], he = {
|
|
|
372
372
|
for (const [r, d] of n)
|
|
373
373
|
t[r] = d;
|
|
374
374
|
return t;
|
|
375
|
-
}, Be = /* @__PURE__ */ Ie(ke, [["__scopeId", "data-v-
|
|
375
|
+
}, Be = /* @__PURE__ */ Ie(ke, [["__scopeId", "data-v-1443c13f"]]), Te = /* @__PURE__ */ L({
|
|
376
376
|
__name: "MazInputPrice",
|
|
377
377
|
props: {
|
|
378
378
|
modelValue: { default: void 0 },
|
|
@@ -411,7 +411,7 @@ const be = ["for"], he = {
|
|
|
411
411
|
});
|
|
412
412
|
async function g(o) {
|
|
413
413
|
const c = p(o);
|
|
414
|
-
r("update:model-value", c), await
|
|
414
|
+
r("update:model-value", c), await ue(), r("formatted", B.value);
|
|
415
415
|
}
|
|
416
416
|
O(() => {
|
|
417
417
|
g(t.modelValue);
|
|
@@ -428,7 +428,7 @@ const be = ["for"], he = {
|
|
|
428
428
|
function F(o) {
|
|
429
429
|
d.value = p(o);
|
|
430
430
|
}
|
|
431
|
-
return (o, c) => (
|
|
431
|
+
return (o, c) => (u(), y(Be, {
|
|
432
432
|
"model-value": b.value,
|
|
433
433
|
class: "maz-input-price",
|
|
434
434
|
block: o.block,
|
|
@@ -443,7 +443,7 @@ const be = ["for"], he = {
|
|
|
443
443
|
"onUpdate:modelValue": c[1] || (c[1] = (a) => F(a))
|
|
444
444
|
}, {
|
|
445
445
|
"left-icon": P(() => [
|
|
446
|
-
o.noIcon ?
|
|
446
|
+
o.noIcon ? i("v-if", !0) : E(o.$slots, "left-icon", { key: 0 }, () => [
|
|
447
447
|
q(f(de), { class: "maz-text-xl" })
|
|
448
448
|
])
|
|
449
449
|
]),
|