maz-ui 4.1.7-beta.3 → 4.1.7-beta.4
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/MazDatePicker.D5Hzcubb.css +1 -0
- package/dist/chunks/{MazDatePicker.DI69gr3i.js → MazDatePicker.CkJpZYHM.js} +4 -4
- package/dist/chunks/{MazPickerCalendar.DouWTWHn.js → MazPickerCalendar.4X9zAxOA.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.DKCt3__u.js → MazPickerCalendarMonth.LQs0NMnx.js} +1 -1
- package/dist/chunks/{MazPickerCalendarSwitcher.C01uOHRy.js → MazPickerCalendarSwitcher.5d6kOHZ6.js} +1 -1
- package/dist/chunks/{MazPickerContainer.CFRr8ziz.js → MazPickerContainer.Dt1Np6w2.js} +1 -1
- package/dist/chunks/{MazPickerHeader.CcE5eDEe.js → MazPickerHeader.B3prGklk.js} +1 -1
- package/dist/chunks/{MazPickerMonthSwitcher.BlPMSBuX.js → MazPickerMonthSwitcher.D1bsoD4Q.js} +1 -1
- package/dist/chunks/{MazPickerTime.D7KXPIQ7.js → MazPickerTime.DrdtXsuy.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.oPES1_VL.js → MazPickerYearSwitcher.mwQmfacb.js} +1 -1
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazInputPrice.vue.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/types/components/MazInputPrice.vue.d.ts +1 -1
- package/package.json +2 -2
- package/dist/assets/MazDatePicker.BK088IpL.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.m-date-picker[data-v-0d8032f3]{display:inline-block;position:relative}.m-date-picker__input[data-v-0d8032f3]{width:100%;height:100%}.m-date-picker .m-date-picker__button[data-v-0d8032f3]{cursor:not-allowed;background-color:#0000;justify-content:center;align-items:center;height:100%;padding-right:.25rem;display:flex}.m-date-picker .m-date-picker__button__chevron[data-v-0d8032f3]{--maz-tw-text-opacity:1;color:hsl(var(--maz-foreground)/var(--maz-tw-text-opacity,1));transition-property:transform;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-date-picker.--is-open .m-date-picker__button__chevron[data-v-0d8032f3]{transform:rotate(180deg)}.m-date-picker:not(.--is-disabled) .m-date-picker__button[data-v-0d8032f3]{cursor:pointer}.m-date-picker:not(.--is-disabled) .m-date-picker__input[data-v-0d8032f3] input{cursor:pointer!important}
|
|
@@ -8,7 +8,7 @@ import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
|
8
8
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
9
9
|
import weekday from "dayjs/plugin/weekday";
|
|
10
10
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
11
|
-
import '../assets/MazDatePicker.
|
|
11
|
+
import '../assets/MazDatePicker.D5Hzcubb.css';const DEFAULT_OPTIONS = {
|
|
12
12
|
month: "short",
|
|
13
13
|
day: "numeric",
|
|
14
14
|
year: "numeric"
|
|
@@ -243,7 +243,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
243
243
|
setup(__props, { emit: __emit }) {
|
|
244
244
|
const props = __props, emits = __emit, { t, locale } = useTranslations();
|
|
245
245
|
dayjs.extend(customParseFormat), dayjs.extend(isBetween);
|
|
246
|
-
const MazInput = defineAsyncComponent(() => import("../components/MazInput.js")), MazPopover = defineAsyncComponent(() => import("../components/MazPopover.js")), MazPickerContainer = defineAsyncComponent(() => import("./MazPickerContainer.
|
|
246
|
+
const MazInput = defineAsyncComponent(() => import("../components/MazInput.js")), MazPopover = defineAsyncComponent(() => import("../components/MazPopover.js")), MazPickerContainer = defineAsyncComponent(() => import("./MazPickerContainer.Dt1Np6w2.js")), instanceId = useInstanceUniqId({ componentName: "MazDatePicker", providedId: props.id }), currentValue = computed({
|
|
247
247
|
get: () => typeof props.modelValue == "object" || props.range ? {
|
|
248
248
|
start: typeof props.modelValue == "object" && props.modelValue.start ? dayjs(props.modelValue.start, props.format).format() : void 0,
|
|
249
249
|
end: typeof props.modelValue == "object" && props.modelValue.end ? dayjs(props.modelValue.end, props.format).format() : void 0
|
|
@@ -259,7 +259,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
259
259
|
const isRangeMode2 = typeof value == "object" || props.range;
|
|
260
260
|
props.autoClose && (!isRangeMode2 || isRangeMode2 && typeof value == "object" && value.end) && closeCalendar();
|
|
261
261
|
}
|
|
262
|
-
}), hasTime = computed(() => props.time || props.onlyTime), hasDouble = computed(() => props.double && !props.onlyTime), hasDate = computed(() => !props.onlyTime), isRangeMode = computed(() => typeof currentValue.value == "object" || props.range), internalShortcuts = computed(() => !isRangeMode.value || props.shortcuts === !1 ? !1 : getDefaultsShortcuts({
|
|
262
|
+
}), hasTime = computed(() => props.time || props.onlyTime), hasDouble = computed(() => props.double && !props.onlyTime), hasDate = computed(() => !props.onlyTime), isRangeMode = computed(() => typeof currentValue.value == "object" || props.range), internalShortcuts = computed(() => !isRangeMode.value || props.shortcuts === !1 ? !1 : props.shortcuts && Array.isArray(props.shortcuts) ? props.shortcuts : getDefaultsShortcuts({
|
|
263
263
|
lastSevenDays: t("datePicker.shortcuts.lastSevenDays"),
|
|
264
264
|
lastThirtyDays: t("datePicker.shortcuts.lastThirtyDays"),
|
|
265
265
|
thisWeek: t("datePicker.shortcuts.thisWeek"),
|
|
@@ -496,7 +496,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
496
496
|
_: 3
|
|
497
497
|
}, 8, ["id", "modelValue", "style", "class", "transition", "disabled", "block", "position", "position-reference"]));
|
|
498
498
|
}
|
|
499
|
-
}), MazDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
499
|
+
}), MazDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0d8032f3"]]);
|
|
500
500
|
export {
|
|
501
501
|
MazDatePicker as M,
|
|
502
502
|
findNearestNumberInList as a,
|
|
@@ -21,7 +21,7 @@ import '../assets/MazPickerCalendar.e-eF8E7m.css';const _hoisted_1 = { class: "m
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:model-value", "update:calendar-date"],
|
|
23
23
|
setup(__props, { emit: __emit }) {
|
|
24
|
-
const props = __props, emits = __emit, MazPickerCalendarMonth = defineAsyncComponent(() => import("./MazPickerCalendarMonth.
|
|
24
|
+
const props = __props, emits = __emit, MazPickerCalendarMonth = defineAsyncComponent(() => import("./MazPickerCalendarMonth.LQs0NMnx.js")), MazPickerCalendarSwitcher = defineAsyncComponent(() => import("./MazPickerCalendarSwitcher.5d6kOHZ6.js")), MazPickerMonthSwitcher = defineAsyncComponent(() => import("./MazPickerMonthSwitcher.D1bsoD4Q.js")), MazPickerShortcuts = defineAsyncComponent(() => import("./MazPickerShortcuts.CMySiKny.js")), MazPickerYearSwitcher = defineAsyncComponent(() => import("./MazPickerYearSwitcher.mwQmfacb.js")), hoverredDay = ref(), hasShortcuts = computed(
|
|
25
25
|
() => props.shortcuts && props.shortcuts.length > 0 && props.range
|
|
26
26
|
), monthSwitcherOpen = ref(!1), yearSwitcherOpen = ref(!1), currentValue = computed({
|
|
27
27
|
get: () => props.modelValue,
|
package/dist/chunks/{MazPickerCalendarMonth.DKCt3__u.js → MazPickerCalendarMonth.LQs0NMnx.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, Fragment, renderList, toDisplayString, useCssVars, ref, watch, createVNode, TransitionGroup, withCtx, normalizeClass, createBlock, createElementVNode } from "vue";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import { g as getDaysOfWeek, b as getDaysInMonth, c as getFirstDayOfMonth, d as isRangeValue, i as isSameDate, e as isValidDate, h as isSameDay } from "./MazDatePicker.
|
|
3
|
+
import { g as getDaysOfWeek, b as getDaysInMonth, c as getFirstDayOfMonth, d as isRangeValue, i as isSameDate, e as isValidDate, h as isSameDay } from "./MazDatePicker.CkJpZYHM.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
5
|
import { d as debounce } from "./debounce.Brzkn9pm.js";
|
|
6
6
|
import MazBtn from "../components/MazBtn.js";
|
package/dist/chunks/{MazPickerCalendarSwitcher.C01uOHRy.js → MazPickerCalendarSwitcher.5d6kOHZ6.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createVNode, withCtx, unref, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { MazChevronLeft } from "@maz-ui/icons";
|
|
3
3
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
4
|
-
import { f as formatDate } from "./MazDatePicker.
|
|
4
|
+
import { f as formatDate } from "./MazDatePicker.CkJpZYHM.js";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import MazBtn from "../components/MazBtn.js";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
@@ -30,7 +30,7 @@ import '../assets/MazPickerContainer.DmHuaFqE.css';const _hoisted_1 = { class: "
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["update:model-value", "update:calendar-date", "close"],
|
|
32
32
|
setup(__props, { emit: __emit }) {
|
|
33
|
-
const emits = __emit, MazPickerCalendar = defineAsyncComponent(() => import("./MazPickerCalendar.
|
|
33
|
+
const emits = __emit, MazPickerCalendar = defineAsyncComponent(() => import("./MazPickerCalendar.4X9zAxOA.js")), MazPickerHeader = defineAsyncComponent(() => import("./MazPickerHeader.B3prGklk.js")), MazPickerTime = defineAsyncComponent(() => import("./MazPickerTime.DrdtXsuy.js")), lastTimeValue = ref(typeof __props.modelValue == "string" && __props.hasTime ? dayjs(__props.modelValue).format("HH:mm") : "00:00");
|
|
34
34
|
function saveLastTimeValue(value) {
|
|
35
35
|
lastTimeValue.value = dayjs(value).format("HH:mm"), emits("update:model-value", value);
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, createElementBlock, openBlock, normalizeClass, createCommentVNode, createVNode, TransitionGroup, withCtx, Fragment, renderList, toDisplayString } from "vue";
|
|
2
2
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
3
|
-
import { f as formatDate } from "./MazDatePicker.
|
|
3
|
+
import { f as formatDate } from "./MazDatePicker.CkJpZYHM.js";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
6
|
import '../assets/MazPickerHeader.D7JXgA3q.css';const _hoisted_1 = {
|
package/dist/chunks/{MazPickerMonthSwitcher.BlPMSBuX.js → MazPickerMonthSwitcher.D1bsoD4Q.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createVNode, withModifiers, withCtx, unref, normalizeClass, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { MazXMark } from "@maz-ui/icons";
|
|
3
3
|
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
4
|
-
import { f as formatDate, i as isSameDate } from "./MazDatePicker.
|
|
4
|
+
import { f as formatDate, i as isSameDate } from "./MazDatePicker.CkJpZYHM.js";
|
|
5
5
|
import dayjs from "dayjs";
|
|
6
6
|
import MazBtn from "../components/MazBtn.js";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, watch, nextTick, createElementBlock, openBlock, normalizeClass, Fragment, renderList, createElementVNode, normalizeStyle, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
3
|
import MazBtn from "../components/MazBtn.js";
|
|
4
|
-
import { a as findNearestNumberInList, s as scrollToTarget } from "./MazDatePicker.
|
|
4
|
+
import { a as findNearestNumberInList, s as scrollToTarget } from "./MazDatePicker.CkJpZYHM.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
6
|
import '../assets/MazPickerTime.yINUjbDZ.css';const _hoisted_1 = { class: "m-date-picker-time__column__items" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "MazPickerTime",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, createElementBlock, openBlock, createElementVNode, createVNode, withModifiers, withCtx, unref, Fragment, renderList, createBlock, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { MazChevronLeft, MazXMark } from "@maz-ui/icons";
|
|
3
|
-
import { f as formatDate, i as isSameDate } from "./MazDatePicker.
|
|
3
|
+
import { f as formatDate, i as isSameDate } from "./MazDatePicker.CkJpZYHM.js";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import MazBtn from "../components/MazBtn.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
@@ -22,7 +22,7 @@ export interface MazInputPriceProps {
|
|
|
22
22
|
success?: boolean;
|
|
23
23
|
/** Will display the input in warning state. */
|
|
24
24
|
warning?: boolean;
|
|
25
|
-
/** Options for the currency helper - [see](https://maz-ui.com/
|
|
25
|
+
/** Options for the currency helper - [see](https://maz-ui.com/helpers/currency) */
|
|
26
26
|
currencyOptions?: Omit<FilterCurrencyOptions, 'currency'>;
|
|
27
27
|
}
|
|
28
28
|
declare const _default: import('vue').DefineComponent<MazInputPriceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
package/dist/components/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { _ } from "../chunks/MazChart.vue_vue_type_script_setup_true_lang.JSYXGy
|
|
|
14
14
|
import { default as default14 } from "./MazCheckbox.js";
|
|
15
15
|
import { default as default15 } from "./MazChecklist.js";
|
|
16
16
|
import { default as default16 } from "./MazCircularProgressBar.js";
|
|
17
|
-
import { M } from "../chunks/MazDatePicker.
|
|
17
|
+
import { M } from "../chunks/MazDatePicker.CkJpZYHM.js";
|
|
18
18
|
import { default as default17 } from "./MazDialog.js";
|
|
19
19
|
import { _ as _2, u } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js";
|
|
20
20
|
import { default as default18 } from "./MazDrawer.js";
|
|
@@ -22,7 +22,7 @@ export interface MazInputPriceProps {
|
|
|
22
22
|
success?: boolean;
|
|
23
23
|
/** Will display the input in warning state. */
|
|
24
24
|
warning?: boolean;
|
|
25
|
-
/** Options for the currency helper - [see](https://maz-ui.com/
|
|
25
|
+
/** Options for the currency helper - [see](https://maz-ui.com/helpers/currency) */
|
|
26
26
|
currencyOptions?: Omit<FilterCurrencyOptions, 'currency'>;
|
|
27
27
|
}
|
|
28
28
|
declare const _default: import('vue').DefineComponent<MazInputPriceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.7-beta.
|
|
4
|
+
"version": "4.1.7-beta.4",
|
|
5
5
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -249,5 +249,5 @@
|
|
|
249
249
|
"*.{js,ts,vue,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix",
|
|
250
250
|
"*.{vue,css,scss,postcss,pcss}": "stylelint --fix --allow-empty-input"
|
|
251
251
|
},
|
|
252
|
-
"gitHead": "
|
|
252
|
+
"gitHead": "5183ff1053430303793c92b606480965b39cfde3"
|
|
253
253
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.m-date-picker[data-v-e9e40141]{display:inline-block;position:relative}.m-date-picker__input[data-v-e9e40141]{width:100%;height:100%}.m-date-picker .m-date-picker__button[data-v-e9e40141]{cursor:not-allowed;background-color:#0000;justify-content:center;align-items:center;height:100%;padding-right:.25rem;display:flex}.m-date-picker .m-date-picker__button__chevron[data-v-e9e40141]{--maz-tw-text-opacity:1;color:hsl(var(--maz-foreground)/var(--maz-tw-text-opacity,1));transition-property:transform;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.m-date-picker.--is-open .m-date-picker__button__chevron[data-v-e9e40141]{transform:rotate(180deg)}.m-date-picker:not(.--is-disabled) .m-date-picker__button[data-v-e9e40141]{cursor:pointer}.m-date-picker:not(.--is-disabled) .m-date-picker__input[data-v-e9e40141] input{cursor:pointer!important}
|