maz-ui 4.1.7-beta.5 → 4.1.7-beta.7
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/dist/assets/MazAnimatedElement.DnsacpuB.css +1 -0
- package/dist/assets/MazAnimatedText.DFwgvVgF.css +1 -0
- package/dist/assets/{MazBtn.D86vFfaR.css → MazBtn.DDnoE3K1.css} +1 -1
- package/dist/assets/MazCard.CV__I-ku.css +1 -0
- package/dist/assets/MazCarousel.-UuyHtHl.css +1 -0
- package/dist/assets/MazChecklist.3fMAXT5e.css +1 -0
- package/dist/assets/MazDatePicker.DIB3Fyyp.css +1 -0
- package/dist/assets/MazDialog.Cm3xd1Xp.css +1 -0
- package/dist/assets/MazDrawer.CtOq-ucH.css +1 -0
- package/dist/assets/MazDropzone.B5e-z_Ba.css +1 -0
- package/dist/assets/MazGallery.BcmVxLFj.css +1 -0
- package/dist/assets/MazIcon.Cl1pfRbK.css +1 -0
- package/dist/assets/MazInput.CHYQSgY8.css +1 -0
- package/dist/assets/MazPickerCalendar.CwCiPtzY.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.CdpSHmMr.css +1 -0
- package/dist/assets/MazPickerShortcuts.CCyYVPVa.css +1 -0
- package/dist/assets/MazPickerTime.ChkQASmb.css +1 -0
- package/dist/assets/MazPopover.BSKQcDPm.css +1 -0
- package/dist/assets/MazSelect.CvoR958a.css +1 -0
- package/dist/assets/{MazStepper.BwGwQqM1.css → MazStepper.Dg9khVJG.css} +1 -1
- package/dist/assets/{MazTable.DLVdp4na.css → MazTable.BKlwCDt4.css} +1 -1
- package/dist/assets/PhoneInput.C5t00d9H.css +1 -0
- package/dist/assets/toast.ClbXOwsL.css +1 -0
- package/dist/chunks/{MazChart.vue_vue_type_script_setup_true_lang.JSYXGyfn.js → MazChart.vue_vue_type_script_setup_true_lang.CUrokkc_.js} +5 -5
- package/dist/chunks/{MazDatePicker.DCC2WPu4.js → MazDatePicker.CYfNHwnV.js} +163 -52
- package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.BaOg5MoP.js} +4 -4
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.FpQyExxD.js → MazDropdown.vue_vue_type_style_index_0_lang.qBaRy629.js} +42 -42
- package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.D_OF4KbM.js} +20 -20
- package/dist/chunks/{MazInputPhoneNumber.DG6oYKQd.js → MazInputPhoneNumber.CbNnLvU_.js} +32 -32
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.CcQ71H1z.js} +6 -6
- package/dist/chunks/{MazPickerCalendar.T3pRXaFm.js → MazPickerCalendar.BOSPVh7n.js} +30 -28
- package/dist/chunks/{MazPickerCalendarMonth.CRNi_tj-.js → MazPickerCalendarMonth.C-dBLRva.js} +12 -8
- package/dist/chunks/{MazPickerCalendarSwitcher.CiQdIZe3.js → MazPickerCalendarSwitcher.CBt_inzB.js} +1 -1
- package/dist/chunks/{MazPickerHeader.DnyB1sNn.js → MazPickerHeader.CPmuARqp.js} +4 -4
- package/dist/chunks/{MazPickerMonthSwitcher.C4KCM1Lc.js → MazPickerMonthSwitcher.A5uh7cC7.js} +1 -1
- package/dist/chunks/{MazPickerShortcuts.CMySiKny.js → MazPickerShortcuts.iJe-kl_a.js} +4 -4
- package/dist/chunks/{MazPickerTime.Dt01JjvP.js → MazPickerTime.xQhgnYKJ.js} +3 -3
- package/dist/chunks/{MazPickerYearSwitcher.BjH4pP1G.js → MazPickerYearSwitcher.eQe37UOI.js} +1 -1
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js → MazSwitch.vue_vue_type_style_index_0_lang.DctlXsMK.js} +15 -15
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.lsJngJJn.js → MazTable.vue_vue_type_script_setup_true_lang.F9DFa_6O.js} +35 -35
- package/dist/chunks/{PhoneInput.CodUcksI.js → PhoneInput.DQZjDqMK.js} +14 -14
- package/dist/chunks/{fullscreen-img.directive.e2KyfwYA.js → fullscreen-img.directive.BqO7XUdi.js} +1 -1
- package/dist/components/MazAccordion.js +1 -1
- package/dist/components/MazAnimatedCounter.js +5 -5
- package/dist/components/MazAnimatedElement.js +20 -9
- package/dist/components/MazAnimatedText.js +34 -21
- package/dist/components/MazAvatar.js +25 -25
- package/dist/components/MazBackdrop.js +6 -6
- package/dist/components/MazBadge.js +4 -4
- package/dist/components/MazBottomSheet.js +3 -3
- package/dist/components/MazBtn.js +42 -32
- package/dist/components/MazCard.js +20 -20
- package/dist/components/MazCardSpotlight.js +4 -4
- package/dist/components/MazCarousel.js +5 -5
- package/dist/components/MazChart.js +1 -1
- package/dist/components/MazCheckbox.js +13 -13
- package/dist/components/MazChecklist.js +17 -17
- package/dist/components/MazCircularProgressBar.js +11 -11
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +1 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +8 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +8 -0
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDatePicker.vue.d.ts +3 -3
- package/dist/components/MazDialog.js +11 -11
- package/dist/components/MazDialogConfirm.js +2 -2
- package/dist/components/MazDrawer.js +8 -8
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropdown.vue.d.ts +0 -6
- package/dist/components/MazDropzone.js +132 -97
- package/dist/components/MazDropzone.vue.d.ts +10 -16
- package/dist/components/MazExpandAnimation.js +1 -1
- package/dist/components/MazFullscreenLoader.js +3 -3
- package/dist/components/MazGallery.js +16 -16
- package/dist/components/MazIcon.js +29 -10
- package/dist/components/MazIcon.vue.d.ts +9 -2
- package/dist/components/MazInput.js +42 -42
- package/dist/components/MazInputCode.js +11 -11
- package/dist/components/MazInputNumber.js +1 -1
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputTags.js +16 -16
- package/dist/components/MazInputTags.vue.d.ts +2 -2
- package/dist/components/MazLazyImg.js +9 -9
- package/dist/components/MazLink.js +18 -18
- package/dist/components/MazLoadingBar.js +1 -1
- package/dist/components/MazPagination.js +20 -20
- package/dist/components/MazPopover.js +17 -17
- package/dist/components/MazPopover.vue.d.ts +3 -4
- package/dist/components/MazPullToRefresh.js +2 -2
- package/dist/components/MazRadio.js +12 -12
- package/dist/components/MazRadioButtons.js +15 -15
- package/dist/components/MazReadingProgressBar.js +3 -3
- package/dist/components/MazSelect.js +60 -58
- package/dist/components/MazSelectCountry.js +34 -34
- package/dist/components/MazSlider.js +6 -6
- package/dist/components/MazSpinner.js +3 -3
- package/dist/components/MazStepper.js +5 -5
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableRow.js +2 -2
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTabsBar.js +3 -3
- package/dist/components/MazTextarea.js +17 -17
- package/dist/components/index.js +8 -8
- package/dist/composables/useDisplayNames.d.ts +2 -2
- package/dist/composables/useDisplayNames.js +1 -1
- package/dist/composables/useDropzone.js +10 -2
- package/dist/composables/useFormField.js +8 -1
- package/dist/css/main.css +1 -1
- package/dist/directives/index.js +1 -1
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +2 -2
- package/dist/plugins/dialog.js +1 -1
- package/dist/plugins/toast.js +7 -7
- package/dist/resolvers/MazComponentsResolver.js +15 -0
- package/dist/types/components/MazDatePicker/MazPickerCalendar.vue.d.ts +1 -0
- package/dist/types/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +8 -0
- package/dist/types/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +8 -0
- package/dist/types/components/MazDatePicker.vue.d.ts +3 -3
- package/dist/types/components/MazDropdown.vue.d.ts +0 -6
- package/dist/types/components/MazDropzone.vue.d.ts +10 -16
- package/dist/types/components/MazIcon.vue.d.ts +9 -2
- package/dist/types/components/MazInputTags.vue.d.ts +2 -2
- package/dist/types/components/MazPopover.vue.d.ts +3 -4
- package/dist/types/composables/useDisplayNames.d.ts +2 -2
- package/dist/types/directives/vZoomImg/zoom-img.directive.d.ts +2 -2
- package/package.json +22 -24
- package/dist/assets/MazAnimatedElement.B4mV3dWm.css +0 -1
- package/dist/assets/MazAnimatedText.CHvAudRU.css +0 -1
- package/dist/assets/MazCard.BrbmsHeG.css +0 -1
- package/dist/assets/MazCarousel.BLHpZIu5.css +0 -1
- package/dist/assets/MazChecklist.Bu8wERn6.css +0 -1
- package/dist/assets/MazDatePicker.D5Hzcubb.css +0 -1
- package/dist/assets/MazDialog.TS06kRcu.css +0 -1
- package/dist/assets/MazDrawer.Dodd-EmX.css +0 -1
- package/dist/assets/MazDropzone._2HwHowu.css +0 -1
- package/dist/assets/MazGallery.BTNB3D6k.css +0 -1
- package/dist/assets/MazIcon.3Pn7omz5.css +0 -1
- package/dist/assets/MazInput.XcKP5Xdf.css +0 -1
- package/dist/assets/MazPickerCalendar.e-eF8E7m.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.JSoAH1aF.css +0 -1
- package/dist/assets/MazPickerContainer.DmHuaFqE.css +0 -1
- package/dist/assets/MazPickerShortcuts.CCITP0TI.css +0 -1
- package/dist/assets/MazPickerTime.Cr8oNxbN.css +0 -1
- package/dist/assets/MazPopover.DJzd0Py3.css +0 -1
- package/dist/assets/MazSelect.DN6uB_nJ.css +0 -1
- package/dist/assets/PhoneInput.DkOXlrI9.css +0 -1
- package/dist/assets/toast.BZkWHzTC.css +0 -1
- package/dist/chunks/MazPickerContainer.NRaVsQzg.js +0 -115
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, defineAsyncComponent, ref, computed, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, createElementVNode, unref, mergeModels, useModel, useTemplateRef, onBeforeMount, watch, normalizeStyle, withCtx, createVNode, renderSlot, withDirectives, mergeProps, vShow } from "vue";
|
|
2
2
|
import { MazChevronDown, MazCalendar, MazClock } from "@maz-ui/icons";
|
|
3
3
|
import { useTranslations } from "@maz-ui/translations";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import customParseFormat from "dayjs/plugin/customParseFormat";
|
|
6
6
|
import isBetween from "dayjs/plugin/isBetween";
|
|
7
7
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
8
|
+
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
8
9
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
9
10
|
import weekday from "dayjs/plugin/weekday";
|
|
10
|
-
import
|
|
11
|
-
import '../assets/MazDatePicker.
|
|
11
|
+
import MazPopover from "../components/MazPopover.js";
|
|
12
|
+
import '../assets/MazDatePicker.DIB3Fyyp.css';const DEFAULT_OPTIONS = {
|
|
12
13
|
month: "short",
|
|
13
14
|
day: "numeric",
|
|
14
15
|
year: "numeric"
|
|
@@ -26,6 +27,116 @@ function formatDate(date, locale, options) {
|
|
|
26
27
|
throw new Error(`[maz-ui](FilterDate) ${error}`);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
30
|
+
const _hoisted_1 = { class: "m-date-picker-container__wrapper" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
31
|
+
__name: "MazPickerContainer",
|
|
32
|
+
props: {
|
|
33
|
+
modelValue: {},
|
|
34
|
+
calendarDate: {},
|
|
35
|
+
color: {},
|
|
36
|
+
locale: {},
|
|
37
|
+
hideHeader: { type: Boolean },
|
|
38
|
+
firstDayOfWeek: {},
|
|
39
|
+
double: { type: Boolean },
|
|
40
|
+
hasDate: { type: Boolean },
|
|
41
|
+
minDate: {},
|
|
42
|
+
maxDate: {},
|
|
43
|
+
inline: { type: Boolean },
|
|
44
|
+
shortcuts: { type: [Array, Boolean] },
|
|
45
|
+
shortcut: {},
|
|
46
|
+
hasTime: { type: Boolean },
|
|
47
|
+
format: {},
|
|
48
|
+
isHour12: { type: Boolean },
|
|
49
|
+
formatterOptions: {},
|
|
50
|
+
minuteInterval: {},
|
|
51
|
+
disabled: { type: Boolean },
|
|
52
|
+
disabledWeekly: {},
|
|
53
|
+
disabledHours: {},
|
|
54
|
+
disabledDates: {},
|
|
55
|
+
range: { type: Boolean }
|
|
56
|
+
},
|
|
57
|
+
emits: ["update:model-value", "update:calendar-date", "close"],
|
|
58
|
+
setup(__props, { emit: __emit }) {
|
|
59
|
+
const emits = __emit, MazPickerCalendar = defineAsyncComponent(() => import("./MazPickerCalendar.BOSPVh7n.js")), MazPickerHeader = defineAsyncComponent(() => import("./MazPickerHeader.CPmuARqp.js")), MazPickerTime = defineAsyncComponent(() => import("./MazPickerTime.xQhgnYKJ.js")), lastTimeValue = ref(typeof __props.modelValue == "string" && __props.hasTime ? dayjs(__props.modelValue).format("HH:mm") : "00:00");
|
|
60
|
+
function saveLastTimeValue(value) {
|
|
61
|
+
lastTimeValue.value = dayjs(value).format("HH:mm"), emits("update:model-value", value);
|
|
62
|
+
}
|
|
63
|
+
function emitDateValue(value) {
|
|
64
|
+
if (__props.hasTime) {
|
|
65
|
+
const date = dayjs(value).format("YYYY-MM-DD"), time = lastTimeValue.value || "00:00", timeEmitted = dayjs(`${date} ${time}`).format(__props.format);
|
|
66
|
+
emits("update:model-value", timeEmitted);
|
|
67
|
+
} else
|
|
68
|
+
emits("update:model-value", value);
|
|
69
|
+
}
|
|
70
|
+
const currentDate = computed({
|
|
71
|
+
get: () => __props.modelValue,
|
|
72
|
+
set: (value) => emits("update:model-value", value)
|
|
73
|
+
}), currentCalendarDate = computed({
|
|
74
|
+
get: () => __props.calendarDate,
|
|
75
|
+
set: (calendarDate) => emits("update:calendar-date", calendarDate)
|
|
76
|
+
});
|
|
77
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
78
|
+
class: normalizeClass(["m-date-picker-container", {
|
|
79
|
+
"--has-double": __props.double,
|
|
80
|
+
"--is-inline": __props.inline,
|
|
81
|
+
"--has-date": __props.hasDate
|
|
82
|
+
}])
|
|
83
|
+
}, [
|
|
84
|
+
__props.hideHeader ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(MazPickerHeader), {
|
|
85
|
+
key: 0,
|
|
86
|
+
color: __props.color,
|
|
87
|
+
"has-time": __props.hasTime,
|
|
88
|
+
"model-value": __props.modelValue,
|
|
89
|
+
locale: __props.locale,
|
|
90
|
+
"has-date": __props.hasDate,
|
|
91
|
+
"formatter-options": __props.formatterOptions,
|
|
92
|
+
double: __props.double,
|
|
93
|
+
"hide-shortcuts": !__props.shortcuts,
|
|
94
|
+
class: "m-date-picker-container__header"
|
|
95
|
+
}, null, 8, ["color", "has-time", "model-value", "locale", "has-date", "formatter-options", "double", "hide-shortcuts"])),
|
|
96
|
+
createElementVNode("div", _hoisted_1, [
|
|
97
|
+
__props.hasDate ? (openBlock(), createBlock(unref(MazPickerCalendar), {
|
|
98
|
+
key: 0,
|
|
99
|
+
"calendar-date": currentCalendarDate.value,
|
|
100
|
+
"onUpdate:calendarDate": _cache[0] || (_cache[0] = ($event) => currentCalendarDate.value = $event),
|
|
101
|
+
"model-value": currentDate.value,
|
|
102
|
+
color: __props.color,
|
|
103
|
+
locale: __props.locale,
|
|
104
|
+
"has-time": __props.hasTime,
|
|
105
|
+
double: __props.double,
|
|
106
|
+
"min-date": __props.minDate,
|
|
107
|
+
"max-date": __props.maxDate,
|
|
108
|
+
inline: __props.inline,
|
|
109
|
+
"first-day-of-week": __props.firstDayOfWeek,
|
|
110
|
+
disabled: __props.disabled,
|
|
111
|
+
"disabled-weekly": __props.disabledWeekly,
|
|
112
|
+
"disabled-dates": __props.disabledDates,
|
|
113
|
+
shortcuts: __props.shortcuts,
|
|
114
|
+
shortcut: __props.shortcut,
|
|
115
|
+
range: __props.range,
|
|
116
|
+
class: "m-date-picker-container__calendar",
|
|
117
|
+
"onUpdate:modelValue": emitDateValue
|
|
118
|
+
}, null, 8, ["calendar-date", "model-value", "color", "locale", "has-time", "double", "min-date", "max-date", "inline", "first-day-of-week", "disabled", "disabled-weekly", "disabled-dates", "shortcuts", "shortcut", "range"])) : createCommentVNode("", !0),
|
|
119
|
+
__props.hasTime ? (openBlock(), createBlock(unref(MazPickerTime), {
|
|
120
|
+
key: 1,
|
|
121
|
+
"model-value": currentDate.value,
|
|
122
|
+
color: __props.color,
|
|
123
|
+
locale: __props.locale,
|
|
124
|
+
"min-date": __props.minDate,
|
|
125
|
+
"max-date": __props.maxDate,
|
|
126
|
+
"has-date": __props.hasDate,
|
|
127
|
+
format: __props.format,
|
|
128
|
+
disabled: __props.disabled,
|
|
129
|
+
"disabled-hours": __props.disabledHours,
|
|
130
|
+
"minute-interval": __props.minuteInterval,
|
|
131
|
+
"formatter-options": __props.formatterOptions,
|
|
132
|
+
"is-hour12": __props.isHour12,
|
|
133
|
+
class: "m-date-picker-container__time",
|
|
134
|
+
"onUpdate:modelValue": saveLastTimeValue
|
|
135
|
+
}, null, 8, ["model-value", "color", "locale", "min-date", "max-date", "has-date", "format", "disabled", "disabled-hours", "minute-interval", "formatter-options", "is-hour12"])) : createCommentVNode("", !0)
|
|
136
|
+
])
|
|
137
|
+
], 2));
|
|
138
|
+
}
|
|
139
|
+
}), MazPickerContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c7326cea"]]);
|
|
29
140
|
dayjs.extend(weekday);
|
|
30
141
|
function getFormattedDate({
|
|
31
142
|
value,
|
|
@@ -203,7 +314,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
203
314
|
open: { type: Boolean, default: !1 },
|
|
204
315
|
label: {},
|
|
205
316
|
placeholder: {},
|
|
206
|
-
inputDateFormat: { default: () => ({ dateStyle: "medium", timeStyle: "
|
|
317
|
+
inputDateFormat: { default: () => ({ dateStyle: "medium", timeStyle: "short" }) },
|
|
207
318
|
inputDateTransformer: {},
|
|
208
319
|
locale: {},
|
|
209
320
|
hideHeader: { type: Boolean, default: !1 },
|
|
@@ -243,7 +354,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
243
354
|
setup(__props, { emit: __emit }) {
|
|
244
355
|
const props = __props, emits = __emit, { t, locale } = useTranslations();
|
|
245
356
|
dayjs.extend(customParseFormat), dayjs.extend(isBetween);
|
|
246
|
-
const MazInput = defineAsyncComponent(() => import("../components/MazInput.js")),
|
|
357
|
+
const MazInput = defineAsyncComponent(() => import("../components/MazInput.js")), instanceId = useInstanceUniqId({ componentName: "MazDatePicker", providedId: props.id }), currentValue = computed({
|
|
247
358
|
get: () => typeof props.modelValue == "object" || props.range ? {
|
|
248
359
|
start: typeof props.modelValue == "object" && props.modelValue.start ? dayjs(props.modelValue.start, props.format).format() : void 0,
|
|
249
360
|
end: typeof props.modelValue == "object" && props.modelValue.end ? dayjs(props.modelValue.end, props.format).format() : void 0
|
|
@@ -285,7 +396,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
285
396
|
() => props.format.includes("a") || props.format.includes("A") || props.format.includes("h")
|
|
286
397
|
), formatterOptions = computed(() => ({
|
|
287
398
|
...props.inputDateFormat,
|
|
288
|
-
timeStyle: props.inputDateFormat.timeStyle ??
|
|
399
|
+
timeStyle: hasTime.value ? props.inputDateFormat.timeStyle ?? "short" : void 0,
|
|
289
400
|
hour12: hasTime.value ? props.inputDateFormat.hour12 ?? isHour12.value : void 0
|
|
290
401
|
})), inputValue = computed(() => {
|
|
291
402
|
if (!currentValue.value)
|
|
@@ -370,58 +481,58 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
370
481
|
typeof value == "object" && (value.start || value.end) ? ((value.start && isValueDisabledWeekly({ value: value.start, disabledWeekly }) || value.start && isValueDisabledDate({ value: value.start, disabledDates }) || value.end && isValueDisabledWeekly({ value: value.end, disabledWeekly }) || value.end && isValueDisabledDate({ value: value.end, disabledDates })) && (currentValue.value = { start: void 0, end: void 0 }), (value.end && isValueDisabledWeekly({ value: value.end, disabledWeekly }) || value.end && isValueDisabledDate({ value: value.end, disabledDates })) && (currentValue.value = { start: value.start, end: void 0 })) : typeof value == "string" && value && (isValueDisabledWeekly({ value, disabledWeekly }) || isValueDisabledDate({ value, disabledDates })) && (currentValue.value = void 0);
|
|
371
482
|
},
|
|
372
483
|
{ immediate: !0 }
|
|
373
|
-
), (_ctx, _cache) =>
|
|
484
|
+
), (_ctx, _cache) => __props.inline ? (openBlock(), createBlock(MazPickerContainer, {
|
|
374
485
|
key: 1,
|
|
375
486
|
id: containerUniqueId.value,
|
|
376
487
|
modelValue: currentValue.value,
|
|
377
488
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => currentValue.value = $event),
|
|
378
489
|
"calendar-date": calendarDate.value,
|
|
379
490
|
"onUpdate:calendarDate": _cache[4] || (_cache[4] = ($event) => calendarDate.value = $event),
|
|
380
|
-
color:
|
|
491
|
+
color: __props.color,
|
|
381
492
|
locale: localeModel.value,
|
|
382
493
|
"has-date": hasDate.value,
|
|
383
494
|
double: hasDouble.value,
|
|
384
495
|
"has-time": hasTime.value,
|
|
385
496
|
"formatter-options": formatterOptions.value,
|
|
386
|
-
"hide-header":
|
|
387
|
-
"min-date":
|
|
388
|
-
format:
|
|
497
|
+
"hide-header": __props.hideHeader,
|
|
498
|
+
"min-date": __props.minDate,
|
|
499
|
+
format: __props.format,
|
|
389
500
|
"is-hour12": isHour12.value,
|
|
390
|
-
"max-date":
|
|
391
|
-
"disabled-weekly":
|
|
392
|
-
inline:
|
|
393
|
-
"first-day-of-week":
|
|
501
|
+
"max-date": __props.maxDate,
|
|
502
|
+
"disabled-weekly": __props.disabledWeekly,
|
|
503
|
+
inline: __props.inline,
|
|
504
|
+
"first-day-of-week": __props.firstDayOfWeek,
|
|
394
505
|
shortcuts: internalShortcuts.value,
|
|
395
|
-
shortcut:
|
|
396
|
-
disabled:
|
|
397
|
-
"disabled-hours":
|
|
398
|
-
"disabled-dates":
|
|
399
|
-
"minute-interval":
|
|
506
|
+
shortcut: __props.shortcut,
|
|
507
|
+
disabled: __props.disabled,
|
|
508
|
+
"disabled-hours": __props.disabledHours,
|
|
509
|
+
"disabled-dates": __props.disabledDates,
|
|
510
|
+
"minute-interval": __props.minuteInterval,
|
|
400
511
|
range: isRangeMode.value,
|
|
401
512
|
onClose: closeCalendar
|
|
402
|
-
}, null, 8, ["id", "modelValue", "calendar-date", "color", "locale", "has-date", "double", "has-time", "formatter-options", "hide-header", "min-date", "format", "is-hour12", "max-date", "disabled-weekly", "inline", "first-day-of-week", "shortcuts", "shortcut", "disabled", "disabled-hours", "disabled-dates", "minute-interval", "range"])) : (openBlock(), createBlock(
|
|
513
|
+
}, null, 8, ["id", "modelValue", "calendar-date", "color", "locale", "has-date", "double", "has-time", "formatter-options", "hide-header", "min-date", "format", "is-hour12", "max-date", "disabled-weekly", "inline", "first-day-of-week", "shortcuts", "shortcut", "disabled", "disabled-hours", "disabled-dates", "minute-interval", "range"])) : (openBlock(), createBlock(MazPopover, {
|
|
403
514
|
key: 0,
|
|
404
515
|
id: `${unref(instanceId)}-popover`,
|
|
405
516
|
ref: "popover",
|
|
406
517
|
modelValue: hasPickerOpen.value,
|
|
407
518
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => hasPickerOpen.value = $event),
|
|
408
519
|
class: normalizeClass(["m-date-picker m-reset-css", [
|
|
409
|
-
`m-date-picker--${
|
|
520
|
+
`m-date-picker--${__props.color}`,
|
|
410
521
|
{
|
|
411
522
|
"--is-open": hasPickerOpen.value,
|
|
412
|
-
"--is-disabled":
|
|
523
|
+
"--is-disabled": __props.disabled
|
|
413
524
|
},
|
|
414
525
|
props.class
|
|
415
526
|
]]),
|
|
416
|
-
style: normalizeStyle(
|
|
527
|
+
style: normalizeStyle(__props.style),
|
|
417
528
|
offset: 0,
|
|
418
529
|
trigger: "click",
|
|
419
|
-
transition:
|
|
420
|
-
disabled:
|
|
421
|
-
block:
|
|
422
|
-
position:
|
|
423
|
-
"prefer-position":
|
|
424
|
-
"fallback-position":
|
|
530
|
+
transition: __props.transition,
|
|
531
|
+
disabled: __props.disabled,
|
|
532
|
+
block: __props.block,
|
|
533
|
+
position: __props.pickerPosition,
|
|
534
|
+
"prefer-position": __props.pickerPreferPosition,
|
|
535
|
+
"fallback-position": __props.pickerFallbackPosition,
|
|
425
536
|
"position-reference": `#${unref(instanceId)}-popover .m-input-wrapper`
|
|
426
537
|
}, {
|
|
427
538
|
trigger: withCtx(({ isOpen, close, open: openPicker, toggle: togglePicker }) => [
|
|
@@ -435,14 +546,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
435
546
|
id: unref(instanceId),
|
|
436
547
|
"model-value": inputValue.value,
|
|
437
548
|
readonly: ""
|
|
438
|
-
}, { ...
|
|
549
|
+
}, { ...__props.inputProps, ..._ctx.$attrs }, {
|
|
439
550
|
block: "",
|
|
440
551
|
autocomplete: "off",
|
|
441
552
|
class: "m-date-picker__input",
|
|
442
|
-
label:
|
|
443
|
-
disabled:
|
|
444
|
-
placeholder:
|
|
445
|
-
color:
|
|
553
|
+
label: __props.label,
|
|
554
|
+
disabled: __props.disabled,
|
|
555
|
+
placeholder: __props.placeholder,
|
|
556
|
+
color: __props.color
|
|
446
557
|
}), {
|
|
447
558
|
"left-icon": withCtx(() => [
|
|
448
559
|
hasDate.value ? (openBlock(), createBlock(unref(MazCalendar), {
|
|
@@ -458,45 +569,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
458
569
|
]),
|
|
459
570
|
_: 1
|
|
460
571
|
}, 16, ["id", "model-value", "label", "disabled", "placeholder", "color"]), [
|
|
461
|
-
[vShow, !
|
|
572
|
+
[vShow, !__props.customElementSelector && !__props.inline]
|
|
462
573
|
])
|
|
463
574
|
], !0)
|
|
464
575
|
]),
|
|
465
576
|
default: withCtx(() => [
|
|
466
|
-
createVNode(
|
|
577
|
+
createVNode(MazPickerContainer, {
|
|
467
578
|
id: containerUniqueId.value,
|
|
468
579
|
modelValue: currentValue.value,
|
|
469
580
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentValue.value = $event),
|
|
470
581
|
"calendar-date": calendarDate.value,
|
|
471
582
|
"onUpdate:calendarDate": _cache[1] || (_cache[1] = ($event) => calendarDate.value = $event),
|
|
472
|
-
color:
|
|
583
|
+
color: __props.color,
|
|
473
584
|
locale: localeModel.value,
|
|
474
585
|
"has-date": hasDate.value,
|
|
475
586
|
double: hasDouble.value,
|
|
476
587
|
"has-time": hasTime.value,
|
|
477
588
|
"formatter-options": formatterOptions.value,
|
|
478
|
-
"hide-header":
|
|
479
|
-
"min-date":
|
|
480
|
-
format:
|
|
589
|
+
"hide-header": __props.hideHeader,
|
|
590
|
+
"min-date": __props.minDate,
|
|
591
|
+
format: __props.format,
|
|
481
592
|
"is-hour12": isHour12.value,
|
|
482
|
-
"max-date":
|
|
483
|
-
"disabled-weekly":
|
|
484
|
-
inline:
|
|
485
|
-
"first-day-of-week":
|
|
593
|
+
"max-date": __props.maxDate,
|
|
594
|
+
"disabled-weekly": __props.disabledWeekly,
|
|
595
|
+
inline: __props.inline,
|
|
596
|
+
"first-day-of-week": __props.firstDayOfWeek,
|
|
486
597
|
shortcuts: internalShortcuts.value,
|
|
487
|
-
shortcut:
|
|
488
|
-
disabled:
|
|
489
|
-
"disabled-hours":
|
|
490
|
-
"disabled-dates":
|
|
491
|
-
"minute-interval":
|
|
598
|
+
shortcut: __props.shortcut,
|
|
599
|
+
disabled: __props.disabled,
|
|
600
|
+
"disabled-hours": __props.disabledHours,
|
|
601
|
+
"disabled-dates": __props.disabledDates,
|
|
602
|
+
"minute-interval": __props.minuteInterval,
|
|
492
603
|
range: isRangeMode.value,
|
|
493
604
|
onClose: closeCalendar
|
|
494
605
|
}, null, 8, ["id", "modelValue", "calendar-date", "color", "locale", "has-date", "double", "has-time", "formatter-options", "hide-header", "min-date", "format", "is-hour12", "max-date", "disabled-weekly", "inline", "first-day-of-week", "shortcuts", "shortcut", "disabled", "disabled-hours", "disabled-dates", "minute-interval", "range"])
|
|
495
606
|
]),
|
|
496
607
|
_: 3
|
|
497
|
-
}, 8, ["id", "modelValue", "style", "class", "transition", "disabled", "block", "position", "position-reference"]));
|
|
608
|
+
}, 8, ["id", "modelValue", "style", "class", "transition", "disabled", "block", "position", "prefer-position", "fallback-position", "position-reference"]));
|
|
498
609
|
}
|
|
499
|
-
}), MazDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
610
|
+
}), MazDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-685a5a0f"]]);
|
|
500
611
|
export {
|
|
501
612
|
MazDatePicker as M,
|
|
502
613
|
findNearestNumberInList as a,
|
|
@@ -147,15 +147,15 @@ const _hoisted_1 = { class: "maz-flex maz-items-center maz-gap-2" }, _sfc_main =
|
|
|
147
147
|
ref_key: "dialog",
|
|
148
148
|
ref: dialog
|
|
149
149
|
}, { ..._ctx.$attrs, ...dialogProps }, {
|
|
150
|
-
"close-on-escape":
|
|
151
|
-
"model-value": currentModal.value?.isActive ??
|
|
150
|
+
"close-on-escape": __props.closeOnEscape,
|
|
151
|
+
"model-value": currentModal.value?.isActive ?? __props.modelValue ?? !1,
|
|
152
152
|
onClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close", $event)),
|
|
153
153
|
onOpen: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("open", $event)),
|
|
154
154
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(reject)(currentModal.value))
|
|
155
155
|
}), {
|
|
156
156
|
title: withCtx(() => [
|
|
157
157
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
158
|
-
createTextVNode(toDisplayString(
|
|
158
|
+
createTextVNode(toDisplayString(__props.title || currentData.value?.title), 1)
|
|
159
159
|
])
|
|
160
160
|
]),
|
|
161
161
|
default: withCtx(() => [
|
|
@@ -163,7 +163,7 @@ const _hoisted_1 = { class: "maz-flex maz-items-center maz-gap-2" }, _sfc_main =
|
|
|
163
163
|
accept: (reason) => unref(accept)(currentModal.value, reason),
|
|
164
164
|
reject: (reason) => unref(reject)(currentModal.value, reason)
|
|
165
165
|
}, () => [
|
|
166
|
-
createTextVNode(toDisplayString(
|
|
166
|
+
createTextVNode(toDisplayString(__props.message || currentData.value?.message), 1)
|
|
167
167
|
])
|
|
168
168
|
]),
|
|
169
169
|
footer: withCtx(() => [
|
|
@@ -16,7 +16,6 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
16
16
|
trigger: { default: "adaptive" },
|
|
17
17
|
color: { default: "transparent" },
|
|
18
18
|
position: { default: "auto" },
|
|
19
|
-
preferPosition: { default: "bottom-start" },
|
|
20
19
|
closeOnClick: { type: Boolean, default: !1 },
|
|
21
20
|
disabled: { type: Boolean, default: !1 },
|
|
22
21
|
chevron: { type: Boolean, default: !0 },
|
|
@@ -28,6 +27,7 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
28
27
|
dropdownIconAnimation: { type: Boolean, default: !0 },
|
|
29
28
|
size: { default: "md" },
|
|
30
29
|
transition: { default: "scale-pop" },
|
|
30
|
+
preferPosition: { default: "bottom-start" },
|
|
31
31
|
fallbackPosition: {},
|
|
32
32
|
ariaLabel: {},
|
|
33
33
|
announceChanges: { type: Boolean },
|
|
@@ -92,36 +92,36 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
92
92
|
isClient() && (value ? document.addEventListener("keydown", keydownHandler) : document.removeEventListener("keydown", keydownHandler));
|
|
93
93
|
}
|
|
94
94
|
), (_ctx, _cache) => (openBlock(), createBlock(MazPopover, {
|
|
95
|
-
trigger:
|
|
95
|
+
trigger: __props.trigger,
|
|
96
96
|
"model-value": isOpen.value,
|
|
97
97
|
class: normalizeClass(["m-dropdown m-reset-css", [__props.class]]),
|
|
98
98
|
role: "menu",
|
|
99
99
|
style: normalizeStyle(__props.style),
|
|
100
|
-
"prefer-position":
|
|
100
|
+
"prefer-position": __props.preferPosition,
|
|
101
101
|
color: "background",
|
|
102
|
-
position:
|
|
103
|
-
transition:
|
|
104
|
-
disabled:
|
|
105
|
-
offset:
|
|
106
|
-
delay:
|
|
107
|
-
"fallback-position":
|
|
108
|
-
persistent:
|
|
109
|
-
"hover-delay":
|
|
110
|
-
"panel-class":
|
|
111
|
-
"panel-style":
|
|
112
|
-
"close-on-escape":
|
|
113
|
-
"close-on-click":
|
|
114
|
-
"teleport-to":
|
|
115
|
-
"trap-focus":
|
|
116
|
-
"overlay-class":
|
|
117
|
-
"close-on-click-outside":
|
|
118
|
-
"aria-describedby":
|
|
119
|
-
"announce-changes":
|
|
120
|
-
"aria-label":
|
|
121
|
-
"aria-labelledby":
|
|
122
|
-
"position-reference":
|
|
123
|
-
"keep-open-on-hover":
|
|
124
|
-
block:
|
|
102
|
+
position: __props.position,
|
|
103
|
+
transition: __props.transition,
|
|
104
|
+
disabled: __props.disabled,
|
|
105
|
+
offset: __props.offset,
|
|
106
|
+
delay: __props.delay,
|
|
107
|
+
"fallback-position": __props.fallbackPosition,
|
|
108
|
+
persistent: __props.persistent,
|
|
109
|
+
"hover-delay": __props.hoverDelay,
|
|
110
|
+
"panel-class": __props.panelClass,
|
|
111
|
+
"panel-style": __props.panelStyle,
|
|
112
|
+
"close-on-escape": __props.closeOnEscape,
|
|
113
|
+
"close-on-click": __props.closeOnClick,
|
|
114
|
+
"teleport-to": __props.teleportTo,
|
|
115
|
+
"trap-focus": __props.trapFocus,
|
|
116
|
+
"overlay-class": __props.overlayClass,
|
|
117
|
+
"close-on-click-outside": __props.closeOnClickOutside,
|
|
118
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
119
|
+
"announce-changes": __props.announceChanges,
|
|
120
|
+
"aria-label": __props.ariaLabel,
|
|
121
|
+
"aria-labelledby": __props.ariaLabelledby,
|
|
122
|
+
"position-reference": __props.positionReference,
|
|
123
|
+
"keep-open-on-hover": __props.trigger === "hover" || __props.trigger === "adaptive",
|
|
124
|
+
block: __props.block,
|
|
125
125
|
"onUpdate:modelValue": setDropdown
|
|
126
126
|
}, {
|
|
127
127
|
trigger: withCtx(({ toggle, close, open, trigger: triggerType }) => [
|
|
@@ -137,7 +137,7 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
137
137
|
class: "maz-sr-only"
|
|
138
138
|
}, [
|
|
139
139
|
renderSlot(_ctx.$slots, "screen-reader-description", {}, () => [
|
|
140
|
-
createTextVNode(toDisplayString(
|
|
140
|
+
createTextVNode(toDisplayString(__props.screenReaderDescription || unref(t)("dropdown.screenReaderDescription")), 1)
|
|
141
141
|
])
|
|
142
142
|
], 8, _hoisted_2),
|
|
143
143
|
renderSlot(_ctx.$slots, "trigger", {
|
|
@@ -148,11 +148,11 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
148
148
|
}, () => [
|
|
149
149
|
createVNode(unref(MazBtn), mergeProps({
|
|
150
150
|
"aria-labelledby": `${unref(instanceId)}-labelspan`,
|
|
151
|
-
color:
|
|
152
|
-
disabled:
|
|
151
|
+
color: __props.color,
|
|
152
|
+
disabled: __props.disabled
|
|
153
153
|
}, _ctx.$attrs, {
|
|
154
|
-
block:
|
|
155
|
-
size:
|
|
154
|
+
block: __props.block,
|
|
155
|
+
size: __props.size,
|
|
156
156
|
onKeydown: [
|
|
157
157
|
withKeys(withModifiers(toggle, ["stop", "prevent"]), ["enter"]),
|
|
158
158
|
withKeys(withModifiers(toggle, ["stop", "prevent"]), ["space"])
|
|
@@ -164,7 +164,7 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
164
164
|
]),
|
|
165
165
|
_: 2
|
|
166
166
|
}, [
|
|
167
|
-
|
|
167
|
+
__props.chevron || _ctx.$slots["dropdown-icon"] ? {
|
|
168
168
|
name: "right-icon",
|
|
169
169
|
fn: withCtx(() => [
|
|
170
170
|
renderSlot(_ctx.$slots, "dropdown-icon", {
|
|
@@ -173,16 +173,16 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
173
173
|
close,
|
|
174
174
|
open
|
|
175
175
|
}, () => [
|
|
176
|
-
typeof
|
|
176
|
+
typeof __props.dropdownIcon == "string" ? (openBlock(), createBlock(unref(MazIcon), {
|
|
177
177
|
key: 0,
|
|
178
|
-
name:
|
|
179
|
-
class: normalizeClass([{ "--open": isOpen.value &&
|
|
180
|
-
}, null, 8, ["name", "class"])) :
|
|
178
|
+
name: __props.dropdownIcon,
|
|
179
|
+
class: normalizeClass([{ "--open": isOpen.value && __props.dropdownIconAnimation }, iconClassSize.value])
|
|
180
|
+
}, null, 8, ["name", "class"])) : __props.dropdownIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.dropdownIcon), {
|
|
181
181
|
key: 1,
|
|
182
|
-
class: normalizeClass([[{ "--open": isOpen.value &&
|
|
182
|
+
class: normalizeClass([[{ "--open": isOpen.value && __props.dropdownIconAnimation }, iconClassSize.value], "m-dropdown__icon"])
|
|
183
183
|
}, null, 8, ["class"])) : (openBlock(), createBlock(unref(MazChevronDown), {
|
|
184
184
|
key: 2,
|
|
185
|
-
class: normalizeClass([[{ "--open": isOpen.value &&
|
|
185
|
+
class: normalizeClass([[{ "--open": isOpen.value && __props.dropdownIconAnimation }, iconClassSize.value], "m-dropdown__icon"])
|
|
186
186
|
}, null, 8, ["class"]))
|
|
187
187
|
])
|
|
188
188
|
]),
|
|
@@ -197,18 +197,18 @@ import '../assets/MazDropdown.D90GEKDB.css';const _hoisted_1 = ["id", "aria-expa
|
|
|
197
197
|
id: `${unref(instanceId)}-menu`,
|
|
198
198
|
role: "menu",
|
|
199
199
|
"aria-label": "Menu",
|
|
200
|
-
class: normalizeClass(["m-dropdown__menu",
|
|
200
|
+
class: normalizeClass(["m-dropdown__menu", __props.menuPanelClass]),
|
|
201
201
|
tabindex: "-1",
|
|
202
|
-
style: normalizeStyle(
|
|
202
|
+
style: normalizeStyle(__props.menuPanelStyle)
|
|
203
203
|
}, [
|
|
204
204
|
renderSlot(_ctx.$slots, "dropdown", {
|
|
205
|
-
items:
|
|
205
|
+
items: __props.items,
|
|
206
206
|
open,
|
|
207
207
|
close,
|
|
208
208
|
isOpen: isOpen.value,
|
|
209
209
|
toggle
|
|
210
210
|
}, () => [
|
|
211
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
211
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(__props.items, (item, index) => renderSlot(_ctx.$slots, "menuitem", {
|
|
212
212
|
key: index,
|
|
213
213
|
item,
|
|
214
214
|
open,
|
|
@@ -62,15 +62,15 @@ import '../assets/MazInputNumber.C3rw4i2e.css';const _sfc_main = /* @__PURE__ */
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
return (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
65
|
-
class: normalizeClass(["m-input-number m-reset-css", [`m-input-number--${
|
|
66
|
-
style: normalizeStyle(
|
|
65
|
+
class: normalizeClass(["m-input-number m-reset-css", [`m-input-number--${__props.size}`, props.class, { "--block": __props.block }]]),
|
|
66
|
+
style: normalizeStyle(__props.style)
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
__props.hideButtons ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(MazBtn), {
|
|
69
69
|
key: 0,
|
|
70
70
|
color: "transparent",
|
|
71
|
-
size:
|
|
71
|
+
size: __props.size,
|
|
72
72
|
class: "m-input-number__button m-input-number__decrement-button",
|
|
73
|
-
disabled: decrementDisabled.value ||
|
|
73
|
+
disabled: decrementDisabled.value || __props.disabled,
|
|
74
74
|
onClick: decrement
|
|
75
75
|
}, {
|
|
76
76
|
default: withCtx(() => [
|
|
@@ -81,18 +81,18 @@ import '../assets/MazInputNumber.C3rw4i2e.css';const _sfc_main = /* @__PURE__ */
|
|
|
81
81
|
createVNode(MazInput, mergeProps({
|
|
82
82
|
"model-value": currentValue.value,
|
|
83
83
|
type: "number",
|
|
84
|
-
class: ["m-input-number__input", { "--no-buttons":
|
|
85
|
-
}, { ..._ctx.$attrs, ...
|
|
86
|
-
disabled:
|
|
87
|
-
min:
|
|
88
|
-
max:
|
|
89
|
-
step:
|
|
90
|
-
error:
|
|
91
|
-
success:
|
|
92
|
-
warning:
|
|
93
|
-
hint:
|
|
94
|
-
inputmode:
|
|
95
|
-
size:
|
|
84
|
+
class: ["m-input-number__input", { "--no-buttons": __props.hideButtons, "--text-center": __props.textCenter }]
|
|
85
|
+
}, { ..._ctx.$attrs, ...__props.inputProps }, {
|
|
86
|
+
disabled: __props.disabled,
|
|
87
|
+
min: __props.min,
|
|
88
|
+
max: __props.max,
|
|
89
|
+
step: __props.step,
|
|
90
|
+
error: __props.error,
|
|
91
|
+
success: __props.success,
|
|
92
|
+
warning: __props.warning,
|
|
93
|
+
hint: __props.hint,
|
|
94
|
+
inputmode: __props.inputmode,
|
|
95
|
+
size: __props.size,
|
|
96
96
|
block: "",
|
|
97
97
|
onKeydown: [
|
|
98
98
|
withKeys(withModifiers(increment, ["prevent"]), ["up"]),
|
|
@@ -104,12 +104,12 @@ import '../assets/MazInputNumber.C3rw4i2e.css';const _sfc_main = /* @__PURE__ */
|
|
|
104
104
|
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click", $event)),
|
|
105
105
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(emitDebounced)($event))
|
|
106
106
|
}), null, 16, ["model-value", "class", "disabled", "min", "max", "step", "error", "success", "warning", "hint", "inputmode", "size", "onKeydown"]),
|
|
107
|
-
|
|
107
|
+
__props.hideButtons ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(MazBtn), {
|
|
108
108
|
key: 1,
|
|
109
109
|
color: "transparent",
|
|
110
|
-
size:
|
|
110
|
+
size: __props.size,
|
|
111
111
|
class: "m-input-number__button m-input-number__increment-button",
|
|
112
|
-
disabled: incrementDisabled.value ||
|
|
112
|
+
disabled: incrementDisabled.value || __props.disabled,
|
|
113
113
|
onClick: increment
|
|
114
114
|
}, {
|
|
115
115
|
default: withCtx(() => [
|