maz-ui 3.22.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazInput.d.ts +38 -22
- package/components/MazInput.mjs +1 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +41 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.d.ts +33 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTextarea.d.ts +17 -17
- package/components/MazTextarea.mjs +7 -8
- package/components/assets/MazInput.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/MazSelect.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/chunks/{MazBtn-001d4174.mjs → MazBtn-0e02f0da.mjs} +2 -2
- package/components/chunks/{MazBtn-a3a285eb.mjs → MazBtn-2f4fa942.mjs} +2 -2
- package/components/chunks/{MazBtn-97d9e521.mjs → MazBtn-30723941.mjs} +2 -2
- package/components/chunks/{MazBtn-080c9397.mjs → MazBtn-4e1e116e.mjs} +2 -2
- package/components/chunks/{MazBtn-7f413085.mjs → MazBtn-b42e3575.mjs} +2 -2
- package/components/chunks/{MazBtn-29a43072.mjs → MazBtn-f48da79c.mjs} +2 -2
- package/components/chunks/{MazCheckbox-0595c207.mjs → MazCheckbox-9fa9179a.mjs} +1 -1
- package/components/chunks/{MazCheckbox-90f20e7f.mjs → MazCheckbox-e0bbe6ec.mjs} +1 -1
- package/components/chunks/MazInput-713b00d0.mjs +326 -0
- package/components/chunks/MazInput-b9386887.mjs +341 -0
- package/components/chunks/MazInput-c33627dd.mjs +334 -0
- package/components/chunks/{MazInputPrice-eb36a7dd.mjs → MazInputPrice-452297f5.mjs} +171 -191
- package/components/chunks/{MazInputTags-24164d56.mjs → MazInputTags-7a463b81.mjs} +176 -196
- package/components/chunks/{MazPhoneNumberInput-4cec4ade.mjs → MazPhoneNumberInput-31bc05f9.mjs} +241 -226
- package/components/chunks/{MazPicker-9f4c724c.mjs → MazPicker-50fc11d1.mjs} +4 -4
- package/components/chunks/{MazPickerCalendar-35fe36ab.mjs → MazPickerCalendar-cacb361c.mjs} +5 -5
- package/components/chunks/{MazPickerHeader-d8687abf.mjs → MazPickerHeader-63d45179.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-739ed62a.mjs → MazPickerMonthSwitcher-913c6e2c.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-68622fe8.mjs → MazPickerShortcuts-c6fabfc6.mjs} +2 -2
- package/components/chunks/{MazPickerTime-031062b2.mjs → MazPickerTime-5e4475da.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-2a006a30.mjs → MazPickerYearSwitcher-dd4fa89c.mjs} +3 -3
- package/components/chunks/{MazSelect-757bffd7.mjs → MazSelect-2e5cd411.mjs} +199 -206
- package/components/chunks/{MazSpinner-d356ad25.mjs → MazSpinner-100c99b8.mjs} +1 -1
- package/components/chunks/{MazSpinner-7bd9b831.mjs → MazSpinner-191ad23b.mjs} +1 -1
- package/components/chunks/{MazSpinner-89743727.mjs → MazSpinner-339a9006.mjs} +1 -1
- package/components/chunks/{MazSpinner-85c86950.mjs → MazSpinner-8859d658.mjs} +1 -1
- package/components/chunks/{MazSpinner-d669a3af.mjs → MazSpinner-cb6f99f3.mjs} +1 -1
- package/components/chunks/{MazSpinner-ac429216.mjs → MazSpinner-db6fc59d.mjs} +1 -1
- package/css/main.css +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazInput.vue.d.ts +38 -22
- package/types/components/MazPhoneNumberInput.vue.d.ts +41 -1
- package/types/components/MazSelect.vue.d.ts +33 -1
- package/types/components/MazTextarea.vue.d.ts +17 -17
- package/components/chunks/MazInput-12a098d4.mjs +0 -361
- package/components/chunks/MazInput-20ea773f.mjs +0 -354
- package/components/chunks/MazInput-4313d3cc.mjs +0 -346
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../assets/MazInputPrice.css";
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, defineComponent, defineAsyncComponent, ref, getCurrentInstance, onMounted, useSlots, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, unref, createCommentVNode, withDirectives, mergeProps, toHandlers, vModelDynamic, createTextVNode, toDisplayString, createBlock, withModifiers, withCtx, nextTick, onBeforeMount } from "vue";
|
|
3
3
|
const DEFAULT_OPTIONS = {
|
|
4
4
|
style: "currency",
|
|
5
5
|
minimumFractionDigits: 2,
|
|
@@ -51,21 +51,25 @@ const useInstanceUniqId = ({
|
|
|
51
51
|
}) => {
|
|
52
52
|
return computed(() => providedId ?? `${componentName}-${instance == null ? void 0 : instance.uid}`);
|
|
53
53
|
};
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
const _hoisted_1$1 = {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "m-input-wrapper-left"
|
|
57
|
+
};
|
|
58
|
+
const _hoisted_2 = { class: "m-input-wrapper-input" };
|
|
59
|
+
const _hoisted_3 = ["id", "type", "name", "placeholder", "aria-label", "disabled", "readonly", "required"];
|
|
60
|
+
const _hoisted_4 = { key: 0 };
|
|
61
|
+
const _hoisted_5 = {
|
|
62
|
+
key: 1,
|
|
63
|
+
class: "m-input-wrapper-right"
|
|
64
|
+
};
|
|
65
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
66
|
+
...{
|
|
67
|
+
inheritAttrs: false
|
|
66
68
|
},
|
|
67
|
-
|
|
69
|
+
__name: "MazInput",
|
|
68
70
|
props: {
|
|
71
|
+
style: { type: [String, Array, Object], default: void 0 },
|
|
72
|
+
class: { type: String, default: void 0 },
|
|
69
73
|
modelValue: {
|
|
70
74
|
type: [String, Number, Boolean],
|
|
71
75
|
default: void 0
|
|
@@ -124,7 +128,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
124
128
|
rightIcon: { type: String, default: void 0 }
|
|
125
129
|
},
|
|
126
130
|
emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
|
|
127
|
-
setup(
|
|
131
|
+
setup(__props, { emit: __emit }) {
|
|
132
|
+
const MazBtn = defineAsyncComponent(() => import("./MazBtn-4e1e116e.mjs"));
|
|
133
|
+
const MazIcon = defineAsyncComponent(() => import("./MazIcon-bda198b4.mjs"));
|
|
134
|
+
const EyeOffIcon = defineAsyncComponent(() => import("./eye-slash-342420ff.mjs"));
|
|
135
|
+
const EyeIcon = defineAsyncComponent(() => import("./eye-fbb13657.mjs"));
|
|
136
|
+
const CheckIcon = defineAsyncComponent(() => import("./check-f2fcce10.mjs"));
|
|
137
|
+
const props = __props;
|
|
138
|
+
const emits = __emit;
|
|
128
139
|
const hasPasswordVisible = ref(false);
|
|
129
140
|
const isFocused = ref(false);
|
|
130
141
|
const input = ref();
|
|
@@ -140,6 +151,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
140
151
|
(_a = input.value) == null ? void 0 : _a.focus();
|
|
141
152
|
}
|
|
142
153
|
});
|
|
154
|
+
const inheritClasses = computed(() => props.class);
|
|
143
155
|
const isPasswordType = computed(() => props.type === "password");
|
|
144
156
|
const inputType = computed(() => hasPasswordVisible.value ? "text" : props.type);
|
|
145
157
|
const borderStyle = computed(() => {
|
|
@@ -171,6 +183,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
171
183
|
}
|
|
172
184
|
return "--default-border";
|
|
173
185
|
});
|
|
186
|
+
const slots = useSlots();
|
|
174
187
|
const computedPlaceholder = computed(() => {
|
|
175
188
|
const { required, placeholder } = props;
|
|
176
189
|
if (!placeholder)
|
|
@@ -193,44 +206,162 @@ const _sfc_main$1 = defineComponent({
|
|
|
193
206
|
return !!slots["left-icon"] || !!props.leftIcon;
|
|
194
207
|
};
|
|
195
208
|
const focus = (event) => {
|
|
196
|
-
|
|
209
|
+
emits("focus", event);
|
|
197
210
|
isFocused.value = true;
|
|
198
211
|
};
|
|
199
212
|
const blur = (event) => {
|
|
200
|
-
|
|
213
|
+
emits("blur", event);
|
|
201
214
|
isFocused.value = false;
|
|
202
215
|
};
|
|
203
|
-
const change = (event) =>
|
|
216
|
+
const change = (event) => emits("change", event);
|
|
204
217
|
const debounceEmitValue = debounce((value) => {
|
|
205
|
-
|
|
218
|
+
emits("update:model-value", value);
|
|
206
219
|
}, props.debounceDelay);
|
|
207
220
|
const emitValue = (value) => {
|
|
208
221
|
if (props.debounce)
|
|
209
222
|
return debounceEmitValue(value);
|
|
210
|
-
|
|
223
|
+
emits("update:model-value", value);
|
|
211
224
|
};
|
|
212
|
-
return {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
return (_ctx, _cache) => {
|
|
226
|
+
return openBlock(), createElementBlock(
|
|
227
|
+
"div",
|
|
228
|
+
{
|
|
229
|
+
class: normalizeClass(["m-input", [
|
|
230
|
+
{
|
|
231
|
+
"--is-focused": isFocused.value || __props.borderActive,
|
|
232
|
+
"--should-up": shouldUp.value,
|
|
233
|
+
"--has-label": hasLabel.value,
|
|
234
|
+
"--is-disabled": __props.disabled,
|
|
235
|
+
"--is-readonly": __props.readonly,
|
|
236
|
+
"--has-z-2": __props.error || __props.warning || __props.success,
|
|
237
|
+
"--has-state": __props.error || __props.warning || __props.success
|
|
238
|
+
},
|
|
239
|
+
inheritClasses.value,
|
|
240
|
+
`--${__props.color}`,
|
|
241
|
+
`--${__props.size}`
|
|
242
|
+
]]),
|
|
243
|
+
style: normalizeStyle(__props.style)
|
|
244
|
+
},
|
|
245
|
+
[
|
|
246
|
+
createElementVNode(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
class: normalizeClass(["m-input-wrapper", [__props.inputClasses, borderStyle.value, { "maz-rounded": !__props.noRadius }]])
|
|
250
|
+
},
|
|
251
|
+
[
|
|
252
|
+
hasLeftPart() ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
253
|
+
_ctx.$slots["left-icon"] || __props.leftIcon ? renderSlot(_ctx.$slots, "left-icon", { key: 0 }, () => [
|
|
254
|
+
createVNode(unref(MazIcon), {
|
|
255
|
+
name: __props.leftIcon,
|
|
256
|
+
class: "maz-text-xl maz-text-muted"
|
|
257
|
+
}, null, 8, ["name"])
|
|
258
|
+
], true) : createCommentVNode("v-if", true)
|
|
259
|
+
])) : createCommentVNode("v-if", true),
|
|
260
|
+
createElementVNode("div", _hoisted_2, [
|
|
261
|
+
withDirectives(createElementVNode("input", mergeProps({
|
|
262
|
+
id: unref(instanceId),
|
|
263
|
+
ref_key: "input",
|
|
264
|
+
ref: input,
|
|
265
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
266
|
+
type: inputType.value,
|
|
267
|
+
name: __props.name
|
|
268
|
+
}, _ctx.$attrs, {
|
|
269
|
+
placeholder: computedPlaceholder.value,
|
|
270
|
+
"aria-label": __props.label || __props.placeholder,
|
|
271
|
+
disabled: __props.disabled,
|
|
272
|
+
readonly: __props.readonly,
|
|
273
|
+
required: __props.required,
|
|
274
|
+
class: "m-input-input"
|
|
275
|
+
}, toHandlers({
|
|
276
|
+
blur,
|
|
277
|
+
focus,
|
|
278
|
+
change
|
|
279
|
+
}, true), {
|
|
280
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click", $event))
|
|
281
|
+
}), null, 16, _hoisted_3), [
|
|
282
|
+
[vModelDynamic, inputValue.value]
|
|
283
|
+
]),
|
|
284
|
+
__props.label || __props.hint ? (openBlock(), createElementBlock(
|
|
285
|
+
"span",
|
|
286
|
+
{
|
|
287
|
+
key: 0,
|
|
288
|
+
ref: "label",
|
|
289
|
+
class: normalizeClass(["m-input-label", [
|
|
290
|
+
{
|
|
291
|
+
"maz-text-danger-600": __props.error,
|
|
292
|
+
"maz-text-success-600": __props.success,
|
|
293
|
+
"maz-text-warning-600": __props.warning
|
|
294
|
+
}
|
|
295
|
+
]])
|
|
296
|
+
},
|
|
297
|
+
[
|
|
298
|
+
createTextVNode(
|
|
299
|
+
toDisplayString(__props.hint || __props.label) + " ",
|
|
300
|
+
1
|
|
301
|
+
/* TEXT */
|
|
302
|
+
),
|
|
303
|
+
__props.required ? (openBlock(), createElementBlock("sup", _hoisted_4, "*")) : createCommentVNode("v-if", true)
|
|
304
|
+
],
|
|
305
|
+
2
|
|
306
|
+
/* CLASS */
|
|
307
|
+
)) : createCommentVNode("v-if", true)
|
|
308
|
+
]),
|
|
309
|
+
hasRightPart() ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
310
|
+
_ctx.$slots["right-icon"] || __props.rightIcon ? renderSlot(_ctx.$slots, "right-icon", { key: 0 }, () => [
|
|
311
|
+
createVNode(unref(MazIcon), {
|
|
312
|
+
name: __props.rightIcon,
|
|
313
|
+
class: "maz-text-xl maz-text-muted"
|
|
314
|
+
}, null, 8, ["name"])
|
|
315
|
+
], true) : createCommentVNode("v-if", true),
|
|
316
|
+
isPasswordType.value ? (openBlock(), createBlock(unref(MazBtn), {
|
|
317
|
+
key: 1,
|
|
318
|
+
color: "transparent",
|
|
319
|
+
tabindex: "-1",
|
|
320
|
+
size: "mini",
|
|
321
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => hasPasswordVisible.value = !hasPasswordVisible.value, ["stop"]))
|
|
322
|
+
}, {
|
|
323
|
+
default: withCtx(() => [
|
|
324
|
+
hasPasswordVisible.value ? (openBlock(), createBlock(unref(EyeOffIcon), {
|
|
325
|
+
key: 0,
|
|
326
|
+
class: "maz-text-xl maz-text-muted"
|
|
327
|
+
})) : (openBlock(), createBlock(unref(EyeIcon), {
|
|
328
|
+
key: 1,
|
|
329
|
+
class: "maz-text-xl maz-text-muted"
|
|
330
|
+
}))
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
/* STABLE */
|
|
334
|
+
})) : createCommentVNode("v-if", true),
|
|
335
|
+
_ctx.$slots["valid-button"] || __props.validButton ? renderSlot(_ctx.$slots, "valid-button", { key: 2 }, () => [
|
|
336
|
+
createVNode(unref(MazBtn), {
|
|
337
|
+
color: "transparent",
|
|
338
|
+
disabled: __props.disabled,
|
|
339
|
+
tabindex: "-1",
|
|
340
|
+
loading: __props.validButtonLoading,
|
|
341
|
+
class: "m-input-valid-button",
|
|
342
|
+
size: "mini",
|
|
343
|
+
type: "submit"
|
|
344
|
+
}, {
|
|
345
|
+
default: withCtx(() => [
|
|
346
|
+
createVNode(unref(CheckIcon), { class: "maz-text-2xl maz-text-normal" })
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
/* STABLE */
|
|
350
|
+
}, 8, ["disabled", "loading"])
|
|
351
|
+
], true) : createCommentVNode("v-if", true)
|
|
352
|
+
])) : createCommentVNode("v-if", true)
|
|
353
|
+
],
|
|
354
|
+
2
|
|
355
|
+
/* CLASS */
|
|
356
|
+
)
|
|
357
|
+
],
|
|
358
|
+
6
|
|
359
|
+
/* CLASS, STYLE */
|
|
360
|
+
);
|
|
230
361
|
};
|
|
231
362
|
}
|
|
232
363
|
});
|
|
233
|
-
const
|
|
364
|
+
const MazInput_vue_vue_type_style_index_0_scoped_32fa5093_lang = "";
|
|
234
365
|
const _export_sfc = (sfc, props) => {
|
|
235
366
|
const target = sfc.__vccOpts || sfc;
|
|
236
367
|
for (const [key, val] of props) {
|
|
@@ -238,158 +369,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
238
369
|
}
|
|
239
370
|
return target;
|
|
240
371
|
};
|
|
241
|
-
const
|
|
242
|
-
key: 0,
|
|
243
|
-
class: "m-input-wrapper-left"
|
|
244
|
-
};
|
|
245
|
-
const _hoisted_2 = { class: "m-input-wrapper-input" };
|
|
246
|
-
const _hoisted_3 = ["id", "type", "name", "placeholder", "aria-label", "disabled", "readonly", "required"];
|
|
247
|
-
const _hoisted_4 = { key: 0 };
|
|
248
|
-
const _hoisted_5 = {
|
|
249
|
-
key: 1,
|
|
250
|
-
class: "m-input-wrapper-right"
|
|
251
|
-
};
|
|
252
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
253
|
-
const _component_MazIcon = resolveComponent("MazIcon");
|
|
254
|
-
const _component_EyeOffIcon = resolveComponent("EyeOffIcon");
|
|
255
|
-
const _component_EyeIcon = resolveComponent("EyeIcon");
|
|
256
|
-
const _component_MazBtn = resolveComponent("MazBtn");
|
|
257
|
-
const _component_CheckIcon = resolveComponent("CheckIcon");
|
|
258
|
-
return openBlock(), createElementBlock(
|
|
259
|
-
"div",
|
|
260
|
-
{
|
|
261
|
-
class: normalizeClass(["m-input", [
|
|
262
|
-
{
|
|
263
|
-
"--is-focused": _ctx.isFocused || _ctx.borderActive,
|
|
264
|
-
"--should-up": _ctx.shouldUp,
|
|
265
|
-
"--has-label": _ctx.hasLabel,
|
|
266
|
-
"--is-disabled": _ctx.disabled,
|
|
267
|
-
"--is-readonly": _ctx.readonly,
|
|
268
|
-
"--has-z-2": _ctx.error || _ctx.warning || _ctx.success,
|
|
269
|
-
"--has-state": _ctx.error || _ctx.warning || _ctx.success
|
|
270
|
-
},
|
|
271
|
-
_ctx.$attrs.class,
|
|
272
|
-
`--${_ctx.color}`,
|
|
273
|
-
`--${_ctx.size}`
|
|
274
|
-
]])
|
|
275
|
-
},
|
|
276
|
-
[
|
|
277
|
-
createElementVNode(
|
|
278
|
-
"div",
|
|
279
|
-
{
|
|
280
|
-
class: normalizeClass(["m-input-wrapper", [_ctx.inputClasses, _ctx.borderStyle, { "maz-rounded": !_ctx.noRadius }]])
|
|
281
|
-
},
|
|
282
|
-
[
|
|
283
|
-
_ctx.hasLeftPart() ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
284
|
-
_ctx.$slots["left-icon"] || _ctx.leftIcon ? renderSlot(_ctx.$slots, "left-icon", { key: 0 }, () => [
|
|
285
|
-
createVNode(_component_MazIcon, {
|
|
286
|
-
name: _ctx.leftIcon,
|
|
287
|
-
class: "maz-text-xl maz-text-muted"
|
|
288
|
-
}, null, 8, ["name"])
|
|
289
|
-
], true) : createCommentVNode("v-if", true)
|
|
290
|
-
])) : createCommentVNode("v-if", true),
|
|
291
|
-
createElementVNode("div", _hoisted_2, [
|
|
292
|
-
withDirectives(createElementVNode("input", mergeProps({
|
|
293
|
-
id: _ctx.instanceId,
|
|
294
|
-
ref: "input",
|
|
295
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
|
|
296
|
-
type: _ctx.inputType,
|
|
297
|
-
name: _ctx.name
|
|
298
|
-
}, _ctx.$attrs, {
|
|
299
|
-
placeholder: _ctx.computedPlaceholder,
|
|
300
|
-
"aria-label": _ctx.label || _ctx.placeholder,
|
|
301
|
-
disabled: _ctx.disabled,
|
|
302
|
-
readonly: _ctx.readonly,
|
|
303
|
-
required: _ctx.required,
|
|
304
|
-
class: "m-input-input"
|
|
305
|
-
}, toHandlers({
|
|
306
|
-
blur: _ctx.blur,
|
|
307
|
-
focus: _ctx.focus,
|
|
308
|
-
change: _ctx.change
|
|
309
|
-
}, true), {
|
|
310
|
-
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click", $event))
|
|
311
|
-
}), null, 16, _hoisted_3), [
|
|
312
|
-
[vModelDynamic, _ctx.inputValue]
|
|
313
|
-
]),
|
|
314
|
-
_ctx.label || _ctx.hint ? (openBlock(), createElementBlock(
|
|
315
|
-
"span",
|
|
316
|
-
{
|
|
317
|
-
key: 0,
|
|
318
|
-
ref: "label",
|
|
319
|
-
class: normalizeClass(["m-input-label", [
|
|
320
|
-
{
|
|
321
|
-
"maz-text-danger-600": _ctx.error,
|
|
322
|
-
"maz-text-success-600": _ctx.success,
|
|
323
|
-
"maz-text-warning-600": _ctx.warning
|
|
324
|
-
}
|
|
325
|
-
]])
|
|
326
|
-
},
|
|
327
|
-
[
|
|
328
|
-
createTextVNode(
|
|
329
|
-
toDisplayString(_ctx.hint || _ctx.label) + " ",
|
|
330
|
-
1
|
|
331
|
-
/* TEXT */
|
|
332
|
-
),
|
|
333
|
-
_ctx.required ? (openBlock(), createElementBlock("sup", _hoisted_4, "*")) : createCommentVNode("v-if", true)
|
|
334
|
-
],
|
|
335
|
-
2
|
|
336
|
-
/* CLASS */
|
|
337
|
-
)) : createCommentVNode("v-if", true)
|
|
338
|
-
]),
|
|
339
|
-
_ctx.hasRightPart() ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
340
|
-
_ctx.$slots["right-icon"] || _ctx.rightIcon ? renderSlot(_ctx.$slots, "right-icon", { key: 0 }, () => [
|
|
341
|
-
createVNode(_component_MazIcon, {
|
|
342
|
-
name: _ctx.rightIcon,
|
|
343
|
-
class: "maz-text-xl maz-text-muted"
|
|
344
|
-
}, null, 8, ["name"])
|
|
345
|
-
], true) : createCommentVNode("v-if", true),
|
|
346
|
-
_ctx.isPasswordType ? (openBlock(), createBlock(_component_MazBtn, {
|
|
347
|
-
key: 1,
|
|
348
|
-
color: "transparent",
|
|
349
|
-
tabindex: "-1",
|
|
350
|
-
size: "mini",
|
|
351
|
-
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => _ctx.hasPasswordVisible = !_ctx.hasPasswordVisible, ["stop"]))
|
|
352
|
-
}, {
|
|
353
|
-
default: withCtx(() => [
|
|
354
|
-
_ctx.hasPasswordVisible ? (openBlock(), createBlock(_component_EyeOffIcon, {
|
|
355
|
-
key: 0,
|
|
356
|
-
class: "maz-text-xl maz-text-muted"
|
|
357
|
-
})) : (openBlock(), createBlock(_component_EyeIcon, {
|
|
358
|
-
key: 1,
|
|
359
|
-
class: "maz-text-xl maz-text-muted"
|
|
360
|
-
}))
|
|
361
|
-
]),
|
|
362
|
-
_: 1
|
|
363
|
-
/* STABLE */
|
|
364
|
-
})) : createCommentVNode("v-if", true),
|
|
365
|
-
_ctx.$slots["valid-button"] || _ctx.validButton ? renderSlot(_ctx.$slots, "valid-button", { key: 2 }, () => [
|
|
366
|
-
createVNode(_component_MazBtn, {
|
|
367
|
-
color: "transparent",
|
|
368
|
-
disabled: _ctx.disabled,
|
|
369
|
-
tabindex: "-1",
|
|
370
|
-
loading: _ctx.validButtonLoading,
|
|
371
|
-
class: "m-input-valid-button",
|
|
372
|
-
size: "mini",
|
|
373
|
-
type: "submit"
|
|
374
|
-
}, {
|
|
375
|
-
default: withCtx(() => [
|
|
376
|
-
createVNode(_component_CheckIcon, { class: "maz-text-2xl maz-text-normal" })
|
|
377
|
-
]),
|
|
378
|
-
_: 1
|
|
379
|
-
/* STABLE */
|
|
380
|
-
}, 8, ["disabled", "loading"])
|
|
381
|
-
], true) : createCommentVNode("v-if", true)
|
|
382
|
-
])) : createCommentVNode("v-if", true)
|
|
383
|
-
],
|
|
384
|
-
2
|
|
385
|
-
/* CLASS */
|
|
386
|
-
)
|
|
387
|
-
],
|
|
388
|
-
2
|
|
389
|
-
/* CLASS */
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
const MazInput = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-18b53f70"]]);
|
|
372
|
+
const MazInput = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-32fa5093"]]);
|
|
393
373
|
const _hoisted_1 = /* @__PURE__ */ createElementVNode(
|
|
394
374
|
"svg",
|
|
395
375
|
{
|