maz-ui 5.1.0-beta.1 → 5.1.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/dist/assets/MazSelect.JjmE1lGO.css +2 -0
- package/dist/assets/{MazSlider.B6IG9SKD.css → MazSlider.Cn29GnTJ.css} +1 -1
- package/dist/chunks/{MazDialogConfirm.CewOLyYr.js → MazDialogConfirm.BL59GDsx.js} +8 -2
- package/dist/chunks/{MazDropzone.BaPph4gM.js → MazDropzone.D180OqDW.js} +1 -1
- package/dist/chunks/{MazInputPhoneNumber.CFe6CXyv.js → MazInputPhoneNumber.BXFEI-eS.js} +1 -1
- package/dist/chunks/{MazLink.D2hozdtA.js → MazLink.DhJZNmks.js} +1 -1
- package/dist/chunks/{MazReadMore.cBAr5X_C.js → MazReadMore.DzcNsBeO.js} +1 -1
- package/dist/chunks/{MazSelect.C90-uZWy.js → MazSelect.DC-7menA.js} +2 -2
- package/dist/chunks/{MazSelectCountry.DRKCTdop.js → MazSelectCountry.5G-rdIHV.js} +1 -1
- package/dist/chunks/{MazSlider.xqineNAn.js → MazSlider.BhyTD25K.js} +13 -10
- package/dist/chunks/{dialog.CZ2L20Jb.js → dialog.bL4e40zE.js} +1 -1
- package/dist/components/MazDialogConfirm.js +1 -1
- package/dist/components/MazDialogConfirm.vue.d.ts +4 -4
- package/dist/components/MazDropzone.js +1 -1
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazLink.js +1 -1
- package/dist/components/MazLink.vue.d.ts +1 -1
- package/dist/components/MazReadMore.js +1 -1
- package/dist/components/MazSelect.js +1 -1
- package/dist/components/MazSelectCountry.js +1 -1
- package/dist/components/MazSlider.js +1 -1
- package/dist/components/index.js +8 -8
- package/dist/css/main.css +1 -1
- package/dist/plugins/dialog.js +1 -1
- package/dist/plugins/index.js +1 -1
- package/docs/components/maz-dialog-confirm.md +2 -2
- package/docs/components/maz-dropdown.md +1 -1
- package/docs/components/maz-link.md +1 -1
- package/docs/components/maz-select-country.md +2 -2
- package/docs/composables/use-dialog.md +2 -1
- package/docs/ecosystem/icons/index.md +22 -22
- package/docs/guide/ai-agents.md +21 -2
- package/docs/manifest.json +1 -1
- package/docs/plugins/dialog.md +9 -5
- package/package.json +2 -2
- package/dist/assets/MazSelect.D0EtY2Ea.css +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-b1e7789f],[data-v-b1e7789f]:before,[data-v-b1e7789f]:after{--tw-duration:initial;--tw-ease:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-scrollbar-thumb:#0000;--tw-scrollbar-track:#0000}[data-v-b1e7789f]::backdrop{--tw-duration:initial;--tw-ease:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-scrollbar-thumb:#0000;--tw-scrollbar-track:#0000}}}.m-select.--disabled .m-select-input[data-v-b1e7789f]{cursor:var(--maz-disabled-cursor)}.m-select[data-v-b1e7789f]:not(.--disabled) .m-input-input{cursor:pointer}.m-select.--is-open .m-select-chevron[data-v-b1e7789f]{transform:rotate(180deg)}.m-select button.maz-custom[data-v-b1e7789f]{cursor:pointer;appearance:none;--tw-border-style:none;border-style:none}.m-select button.maz-custom[data-v-b1e7789f]:disabled{cursor:var(--maz-disabled-cursor)}.m-select-chevron[data-v-b1e7789f]{color:var(--maz-color-muted,var(--maz-muted));transition-property:all;transition-timing-function:var(--tw-ease,var(--ease-out));transition-duration:var(--tw-duration,var(--duration-normal));--tw-duration:.3s;--tw-ease:var(--maz-easing-out,cubic-bezier(.4, 0, .2, 1));transition-duration:.3s;transition-timing-function:var(--maz-easing-out,cubic-bezier(.4, 0, .2, 1));font-size:1.2em}.m-select-input[data-v-b1e7789f]{cursor:pointer;width:100%;height:100%}.m-select-input[data-v-b1e7789f] input{caret-color:#0000}.m-select-input__toggle-button[data-v-b1e7789f]{height:100%;padding-block:var(--maz-space);background-color:#0000;justify-content:center;align-items:center;padding-inline-start:0;padding-inline-end:calc(var(--maz-space) * 2);display:flex}.m-select-list[data-v-b1e7789f]{z-index:1050;gap:var(--maz-space);border-radius:var(--maz-rounded-md);background-color:var(--maz-container-bg,var(--maz-surface));--tw-shadow:var(--maz-shadow-style-elevation);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-drop-shadow-size:drop-shadow(0 3px 3px var(--tw-drop-shadow-color,#0000001f));--tw-drop-shadow:drop-shadow(var(--maz-drop-shadow-md,0 3px 3px #0000001f));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);flex-direction:column;min-inline-size:3.5rem;display:flex;overflow:hidden}.m-select-list-item[data-v-b1e7789f]{cursor:pointer;align-items:center;gap:calc(var(--maz-space) * 3);text-overflow:ellipsis;white-space:nowrap;border-radius:var(--maz-rounded-md);border-style:var(--tw-border-style);border-width:var(--maz-border-width);--tw-border-style:solid;width:100%;padding-inline:calc(var(--maz-space) * 3);padding-block:calc(var(--maz-space) * 2);text-align:start;--tw-outline-style:none;background-color:#0000;border-style:solid;border-color:#0000;outline-style:none;display:flex;overflow:hidden}@media (forced-colors:active){.m-select-list-item[data-v-b1e7789f]{outline-offset:2px;outline:2px solid #0000}}.m-select-list-item[data-v-b1e7789f]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--ease-out));transition-duration:var(--tw-duration,var(--duration-normal));--tw-duration:.3s;--tw-ease:var(--maz-easing-in-out,cubic-bezier(.4, 0, .2, 1));transition-duration:.3s;transition-timing-function:var(--maz-easing-in-out,cubic-bezier(.4, 0, .2, 1))}.m-select-list-item[data-v-b1e7789f]:focus-within{background-color:var(--maz-color-surface-600,oklch(from var(--maz-surface) clamp(0, calc(l - .05), 1) c h))}@media (hover:hover){.m-select-list-item[data-v-b1e7789f]:hover{background-color:var(--maz-color-surface-600,oklch(from var(--maz-surface) clamp(0, calc(l - .05), 1) c h))}}.m-select-list-item[data-v-b1e7789f]:where(.dark,.dark *):focus-within{background-color:var(--maz-color-surface-400,oklch(from var(--maz-surface) clamp(0, calc(l + .06), 1) c h))}@media (hover:hover){.m-select-list-item[data-v-b1e7789f]:where(.dark,.dark *):hover{background-color:var(--maz-color-surface-400,oklch(from var(--maz-surface) clamp(0, calc(l + .06), 1) c h))}}.m-select-list-item span[data-v-b1e7789f]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.m-select-list-item.--is-none-value[data-v-b1e7789f]{color:var(--maz-color-muted,var(--maz-muted))}.m-select-list-item.--is-selected[data-v-b1e7789f]{color:var(--selected-text-color);background-color:var(--selected-bg-color)}.m-select-list-item.--is-selected[data-v-b1e7789f]:focus-within{outline:var(--selected-text-color) solid var(--maz-border-width);outline-offset:2px}.m-select-list-item.--is-selected.--transparent[data-v-b1e7789f]{background-color:var(--maz-color-surface,var(--maz-surface))}.m-select-list__no-results[data-v-b1e7789f]{padding:calc(var(--maz-space) * 4);justify-content:center;align-items:center;display:flex}.m-select-list__scroll-wrapper[data-v-b1e7789f]{gap:var(--maz-space);padding:calc(var(--maz-space) * 2);flex-direction:column;flex:1;display:flex;overflow:auto}.m-select-list__scroll-wrapper[data-v-b1e7789f]::-webkit-scrollbar{inline-size:.1875rem}.m-select-list__scroll-wrapper[data-v-b1e7789f]::-webkit-scrollbar-track{background:0 0}.m-select-list__scroll-wrapper[data-v-b1e7789f]::-webkit-scrollbar-thumb{background-color:var(--maz-color-surface-600,oklch(from var(--maz-surface) clamp(0, calc(l - .05), 1) c h))}.m-select-list__scroll-wrapper[data-v-b1e7789f]::-webkit-scrollbar-thumb:where(){background-color:var(--maz-color-surface-400,oklch(from var(--maz-surface) clamp(0, calc(l + .06), 1) c h))}.m-select-list__scroll-wrapper[data-v-b1e7789f]::-webkit-scrollbar-thumb{border-radius:1000px}.m-select-list__scroll-wrapper[data-v-b1e7789f]{scrollbar-width:thin;--tw-scrollbar-thumb:var(--maz-color-surface-600,oklch(from var(--maz-surface) clamp(0, calc(l - .05), 1) c h));--tw-scrollbar-track:transparent;scrollbar-color:var(--tw-scrollbar-thumb) var(--tw-scrollbar-track)}.m-select-list__search-wrapper[data-v-b1e7789f]{padding-inline:calc(var(--maz-space) * 2);padding-top:calc(var(--maz-space) * 2)}.m-select-list-optgroup[data-v-b1e7789f]{padding:calc(var(--maz-space) * .5);text-align:start;color:var(--maz-color-muted,var(--maz-muted));flex:none;font-size:.875em}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-scrollbar-thumb{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-scrollbar-track{syntax:"<color>";inherits:false;initial-value:#0000}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-slider[data-v-
|
|
1
|
+
.m-slider[data-v-ceee4776]{padding-block:1em;padding-inline:1.5rem}.m-slider__btn[data-v-ceee4776]{cursor:pointer;z-index:1;-webkit-user-select:none;user-select:none;outline:none;padding-block:.25em;padding-inline:.5em;font-size:.8em;font-weight:700;line-height:1;transition:box-shadow .3s ease-in-out,inline-size .3s ease-in-out,transform .3s ease-in-out,background-color .3s ease-in-out;position:absolute}.m-slider__btn span[data-v-ceee4776]{margin-inline:.25em}.m-slider__btn.active-cursor[data-v-ceee4776]{border-color:var(--m-slider-color);transform:scale(1.3)}.m-slider__btn[data-v-ceee4776]:before{content:attr(data-label);color:var(--maz-foreground);font-size:.8em;font-weight:500;position:absolute;inset-block-start:-1.5em}.m-slider__divider[data-v-ceee4776]{border-radius:2em;block-size:100%;position:absolute}.m-slider__bar[data-v-ceee4776]{background-color:var(--m-slider-color);block-size:.5em}
|
|
@@ -65,10 +65,16 @@ var MazDialogConfirm_default = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
message: {},
|
|
66
66
|
rejectText: {},
|
|
67
67
|
rejectProps: {},
|
|
68
|
-
hideRejectButton: {
|
|
68
|
+
hideRejectButton: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: () => void 0
|
|
71
|
+
},
|
|
69
72
|
acceptText: {},
|
|
70
73
|
acceptProps: {},
|
|
71
|
-
hideAcceptButton: {
|
|
74
|
+
hideAcceptButton: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: () => void 0
|
|
77
|
+
},
|
|
72
78
|
buttons: {},
|
|
73
79
|
modelValue: { type: Boolean },
|
|
74
80
|
hideCloseButton: { type: Boolean },
|
|
@@ -3,7 +3,7 @@ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-hel
|
|
|
3
3
|
import { useDropzone } from "../composables/useDropzone.js";
|
|
4
4
|
import { t as MazBtn_default } from "./MazBtn.D-Tj7I_e.js";
|
|
5
5
|
import { t as MazIcon_default } from "./MazIcon.DBLUM6Ze.js";
|
|
6
|
-
import { t as MazLink_default } from "./MazLink.
|
|
6
|
+
import { t as MazLink_default } from "./MazLink.DhJZNmks.js";
|
|
7
7
|
import { Fragment, Transition, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, onBeforeMount, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, withCtx, withModifiers } from "vue";
|
|
8
8
|
import { useTranslations } from "@maz-ui/translations/composables/useTranslations";
|
|
9
9
|
import { sleep } from "@maz-ui/utils/helpers/sleep";
|
|
@@ -2,7 +2,7 @@ import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.B-B36dWQ.js";
|
|
3
3
|
import { useGlobalConfig } from "../composables/useGlobalConfig.js";
|
|
4
4
|
import { t as SIZE_TEXT_CLASS } from "./constants.DmWr5JHV.js";
|
|
5
|
-
import { t as MazSelectCountry_default } from "./MazSelectCountry.
|
|
5
|
+
import { t as MazSelectCountry_default } from "./MazSelectCountry.5G-rdIHV.js";
|
|
6
6
|
import { n as useMazInputPhoneNumber, r as useLibphonenumber, t as PhoneInput_default } from "./PhoneInput.ANohH9a_.js";
|
|
7
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeMount, onMounted, openBlock, provide, ref, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
8
|
import { useTranslations } from "@maz-ui/translations/composables/useTranslations";
|
|
@@ -100,7 +100,7 @@ var MazLink_default = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
target: isButton.value ? void 0 : __props.target,
|
|
101
101
|
rel: isButton.value ? void 0 : __props.rel,
|
|
102
102
|
download: isButton.value ? void 0 : __props.download,
|
|
103
|
-
"aria-label":
|
|
103
|
+
"aria-label": __props.ariaLabel,
|
|
104
104
|
type: isButton.value ? "button" : void 0,
|
|
105
105
|
disabled: isButton.value ? __props.disabled : void 0,
|
|
106
106
|
style: __props.style
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.B-B36dWQ.js";
|
|
3
|
-
import { t as MazLink_default } from "./MazLink.
|
|
3
|
+
import { t as MazLink_default } from "./MazLink.DhJZNmks.js";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
5
5
|
import { useTranslations } from "@maz-ui/translations/composables/useTranslations";
|
|
6
6
|
import '../assets/MazReadMore.CEE-TnkG.css';//#region src/components/MazReadMore.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -15,7 +15,7 @@ import { MazMagnifyingGlass } from "@maz-ui/icons/lazy/MazMagnifyingGlass";
|
|
|
15
15
|
import { MazNoSymbol } from "@maz-ui/icons/lazy/MazNoSymbol";
|
|
16
16
|
import { MazChevronDown } from "@maz-ui/icons/raw/MazChevronDown";
|
|
17
17
|
import { debounceCallback } from "@maz-ui/utils/helpers/debounceCallback";
|
|
18
|
-
import '../assets/MazSelect.
|
|
18
|
+
import '../assets/MazSelect.JjmE1lGO.css';//#region src/components/MazSelect.vue?vue&type=script&setup=true&lang.ts
|
|
19
19
|
var _hoisted_1 = ["disabled", "aria-label"];
|
|
20
20
|
var _hoisted_2 = ["id"];
|
|
21
21
|
var _hoisted_3 = {
|
|
@@ -473,6 +473,6 @@ var MazSelect_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
473
473
|
"position-reference"
|
|
474
474
|
]));
|
|
475
475
|
}
|
|
476
|
-
}), [["__scopeId", "data-v-
|
|
476
|
+
}), [["__scopeId", "data-v-b1e7789f"]]);
|
|
477
477
|
//#endregion
|
|
478
478
|
export { MazSelect_default as t };
|
|
@@ -2,7 +2,7 @@ import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.B-B36dWQ.js";
|
|
3
3
|
import { useDisplayNames } from "../composables/useDisplayNames.js";
|
|
4
4
|
import { useGlobalConfig } from "../composables/useGlobalConfig.js";
|
|
5
|
-
import { t as MazSelect_default } from "./MazSelect.
|
|
5
|
+
import { t as MazSelect_default } from "./MazSelect.DC-7menA.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, renderSlot, shallowReactive, toDisplayString, unref, withCtx } from "vue";
|
|
7
7
|
import { useTranslations } from "@maz-ui/translations/composables/useTranslations";
|
|
8
8
|
import { getBrowserLocale } from "@maz-ui/utils/helpers/getBrowserLocale";
|
|
@@ -2,7 +2,7 @@ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-hel
|
|
|
2
2
|
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, toDisplayString, unref, watch } from "vue";
|
|
3
3
|
import { useTranslations } from "@maz-ui/translations/composables/useTranslations";
|
|
4
4
|
import { debounce } from "@maz-ui/utils/helpers/debounce";
|
|
5
|
-
import '../assets/MazSlider.
|
|
5
|
+
import '../assets/MazSlider.Cn29GnTJ.css';//#region src/components/MazSlider/utils.ts
|
|
6
6
|
function getOffset(elem) {
|
|
7
7
|
let doc = document.documentElement;
|
|
8
8
|
let body = document.body;
|
|
@@ -109,8 +109,12 @@ var MazSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
109
109
|
emitValue === !0 && checkValues(), await calcPos(), await nextTick();
|
|
110
110
|
for (let [index] of computedValue.value.entries()) setBtnDividers(index);
|
|
111
111
|
}
|
|
112
|
+
function decimalsOf(value) {
|
|
113
|
+
return String(value).split(".")[1]?.length ?? 0;
|
|
114
|
+
}
|
|
112
115
|
function roundToStep(value) {
|
|
113
|
-
|
|
116
|
+
let snapped = Math.round((value - __props.min) / __props.step) * __props.step + __props.min;
|
|
117
|
+
return Number(snapped.toFixed(Math.max(decimalsOf(__props.step), decimalsOf(__props.min))));
|
|
114
118
|
}
|
|
115
119
|
function getCursorBounds(i) {
|
|
116
120
|
let values = tmpValues.value ?? [];
|
|
@@ -126,11 +130,11 @@ var MazSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
126
130
|
let { lower, upper } = getCursorBounds(i);
|
|
127
131
|
switch (event.key) {
|
|
128
132
|
case "ArrowLeft":
|
|
129
|
-
case "ArrowDown": return isBetween(current - __props.step, values[i - 1], values[i + 1], "minus") ? Math.max(__props.min, current - __props.step) : current;
|
|
133
|
+
case "ArrowDown": return isBetween(current - __props.step, values[i - 1], values[i + 1], "minus") ? Math.max(__props.min, roundToStep(current - __props.step)) : current;
|
|
130
134
|
case "ArrowRight":
|
|
131
|
-
case "ArrowUp": return isBetween(current + __props.step, values[i - 1], values[i + 1], "plus") ? Math.min(__props.max, current + __props.step) : current;
|
|
132
|
-
case "PageDown": return Math.max(lower, current - __props.step * PAGE_STEP_MULTIPLIER);
|
|
133
|
-
case "PageUp": return Math.min(upper, current + __props.step * PAGE_STEP_MULTIPLIER);
|
|
135
|
+
case "ArrowUp": return isBetween(current + __props.step, values[i - 1], values[i + 1], "plus") ? Math.min(__props.max, roundToStep(current + __props.step)) : current;
|
|
136
|
+
case "PageDown": return Math.max(lower, roundToStep(current - __props.step * PAGE_STEP_MULTIPLIER));
|
|
137
|
+
case "PageUp": return Math.min(upper, roundToStep(current + __props.step * PAGE_STEP_MULTIPLIER));
|
|
134
138
|
case "Home": return lower;
|
|
135
139
|
case "End": return upper;
|
|
136
140
|
default: return;
|
|
@@ -189,9 +193,8 @@ var MazSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
189
193
|
let barWidth = MazSlider.value?.clientWidth;
|
|
190
194
|
if (typeof barWidth == "number") return __props.log ? buttonPositions.value?.map((pos) => {
|
|
191
195
|
let position = pos / (barWidth / __props.max);
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}) : buttonPositions.value?.map((pos) => roundToStep(Math.round(pos / (barWidth / range.value)) + __props.min));
|
|
196
|
+
return roundToStep(Math.exp((position - __props.min) * scale.value + minLog.value));
|
|
197
|
+
}) : buttonPositions.value?.map((pos) => roundToStep(pos / (barWidth / range.value) + __props.min));
|
|
195
198
|
console.warn("[maz-ui][MazSlider] ref component not found");
|
|
196
199
|
}
|
|
197
200
|
function handleMousedown(_event, i) {
|
|
@@ -254,6 +257,6 @@ var MazSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
254
257
|
onKeydown: ($event) => cursorKeyDown($event, i)
|
|
255
258
|
}, [createElementVNode("span", _hoisted_2, toDisplayString(tmpValues.value?.[i]), 1)], 46, _hoisted_1))), 128))], 512)], 38));
|
|
256
259
|
}
|
|
257
|
-
}), [["__scopeId", "data-v-
|
|
260
|
+
}), [["__scopeId", "data-v-ceee4776"]]);
|
|
258
261
|
//#endregion
|
|
259
262
|
export { MazSlider_default as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMountComponent } from "../composables/useMountComponent.js";
|
|
2
|
-
import { n as useMazDialogConfirm, t as MazDialogConfirm_default } from "./MazDialogConfirm.
|
|
2
|
+
import { n as useMazDialogConfirm, t as MazDialogConfirm_default } from "./MazDialogConfirm.BL59GDsx.js";
|
|
3
3
|
//#region src/plugins/dialog/DialogHandler.ts
|
|
4
4
|
var DEFAULT_OPTIONS = { identifier: "main-dialog" };
|
|
5
5
|
var DialogHandler = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default, n as useMazDialogConfirm } from "../chunks/MazDialogConfirm.
|
|
1
|
+
export { t as default, n as useMazDialogConfirm } from "../chunks/MazDialogConfirm.BL59GDsx.js";
|
|
@@ -28,8 +28,8 @@ export interface MazDialogConfirmInternalProps {
|
|
|
28
28
|
*/
|
|
29
29
|
rejectProps?: Omit<MazBtnProps, 'type'> & MazDialogConfirmButton;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @default
|
|
31
|
+
* Hide the reject button (unset: the value of `useMazDialogConfirm().data`, else shown)
|
|
32
|
+
* @default false
|
|
33
33
|
*/
|
|
34
34
|
hideRejectButton?: boolean;
|
|
35
35
|
/**
|
|
@@ -44,8 +44,8 @@ export interface MazDialogConfirmInternalProps {
|
|
|
44
44
|
*/
|
|
45
45
|
acceptProps?: Omit<MazBtnProps, 'type'> & MazDialogConfirmButton;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @default
|
|
47
|
+
* Hide the accept button (unset: the value of `useMazDialogConfirm().data`, else shown)
|
|
48
|
+
* @default false
|
|
49
49
|
*/
|
|
50
50
|
hideAcceptButton?: boolean;
|
|
51
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../chunks/MazDropzone.
|
|
1
|
+
export { t as default } from "../chunks/MazDropzone.D180OqDW.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../chunks/MazInputPhoneNumber.
|
|
1
|
+
export { t as default } from "../chunks/MazInputPhoneNumber.BXFEI-eS.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../chunks/MazLink.
|
|
1
|
+
export { t as default } from "../chunks/MazLink.DhJZNmks.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../chunks/MazReadMore.
|
|
1
|
+
export { t as default } from "../chunks/MazReadMore.DzcNsBeO.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../chunks/MazSelect.
|
|
1
|
+
export { t as default } from "../chunks/MazSelect.DC-7menA.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../chunks/MazSelectCountry.
|
|
1
|
+
export { t as default } from "../chunks/MazSelectCountry.5G-rdIHV.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../chunks/MazSlider.
|
|
1
|
+
export { t as default } from "../chunks/MazSlider.BhyTD25K.js";
|
package/dist/components/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { t as MazTableCell_default } from "../chunks/MazTableCell.OwOUKRab.js";
|
|
|
18
18
|
import { t as MazSwitch_default } from "../chunks/MazSwitch.Bj75VysV.js";
|
|
19
19
|
import { t as MazStepper_default } from "../chunks/MazStepper.CL201lqy.js";
|
|
20
20
|
import { t as MazSpinner_default } from "../chunks/MazSpinner.D0eNHEya.js";
|
|
21
|
-
import { t as MazSlider_default } from "../chunks/MazSlider.
|
|
21
|
+
import { t as MazSlider_default } from "../chunks/MazSlider.BhyTD25K.js";
|
|
22
22
|
import { t as MazSkeleton_default } from "../chunks/MazSkeleton.Dk1ShoT0.js";
|
|
23
23
|
import { t as MazSidebarTrigger_default } from "../chunks/MazSidebarTrigger.VxskTpDJ.js";
|
|
24
24
|
import { t as MazSidebarSeparator_default } from "../chunks/MazSidebarSeparator.BVS6wzJY.js";
|
|
@@ -31,11 +31,11 @@ import { t as MazSidebarGroup_default } from "../chunks/MazSidebarGroup.C1ixIGr9
|
|
|
31
31
|
import { t as MazSidebarFooter_default } from "../chunks/MazSidebarFooter.DbS0RtEi.js";
|
|
32
32
|
import { t as MazSidebarContent_default } from "../chunks/MazSidebarContent.DOJEyefq.js";
|
|
33
33
|
import { t as MazInput_default } from "../chunks/MazInput.BQfzcw_q.js";
|
|
34
|
-
import { t as MazSelect_default } from "../chunks/MazSelect.
|
|
35
|
-
import { t as MazSelectCountry_default } from "../chunks/MazSelectCountry.
|
|
34
|
+
import { t as MazSelect_default } from "../chunks/MazSelect.DC-7menA.js";
|
|
35
|
+
import { t as MazSelectCountry_default } from "../chunks/MazSelectCountry.5G-rdIHV.js";
|
|
36
36
|
import { t as MazReadingProgressBar_default } from "../chunks/MazReadingProgressBar.BXHLxb3v.js";
|
|
37
|
-
import { t as MazLink_default } from "../chunks/MazLink.
|
|
38
|
-
import { t as MazReadMore_default } from "../chunks/MazReadMore.
|
|
37
|
+
import { t as MazLink_default } from "../chunks/MazLink.DhJZNmks.js";
|
|
38
|
+
import { t as MazReadMore_default } from "../chunks/MazReadMore.DzcNsBeO.js";
|
|
39
39
|
import { t as MazRadioButtons_default } from "../chunks/MazRadioButtons.C8vKqNk9.js";
|
|
40
40
|
import { t as MazRadio_default } from "../chunks/MazRadio.CVxRnTEz.js";
|
|
41
41
|
import { t as MazPullToRefresh_default } from "../chunks/MazPullToRefresh.CkEm7Jkc.js";
|
|
@@ -47,17 +47,17 @@ import { t as MazLoadingBar_default } from "../chunks/MazLoadingBar.D3ML3lHn.js"
|
|
|
47
47
|
import { t as MazLazyImg_default } from "../chunks/MazLazyImg.hu7v_r8B.js";
|
|
48
48
|
import { t as MazInputTags_default } from "../chunks/MazInputTags.B8Qp88Pt.js";
|
|
49
49
|
import { t as MazInputPrice_default } from "../chunks/MazInputPrice.NyXazUwp.js";
|
|
50
|
-
import { t as MazInputPhoneNumber_default } from "../chunks/MazInputPhoneNumber.
|
|
50
|
+
import { t as MazInputPhoneNumber_default } from "../chunks/MazInputPhoneNumber.BXFEI-eS.js";
|
|
51
51
|
import { t as MazInputNumber_default } from "../chunks/MazInputNumber.TWhoHOl1.js";
|
|
52
52
|
import { t as MazInputCode_default } from "../chunks/MazInputCode.u6HfKh59.js";
|
|
53
53
|
import { t as MazGallery_default } from "../chunks/MazGallery.CKRCfgEa.js";
|
|
54
54
|
import { t as MazFullscreenLoader_default } from "../chunks/MazFullscreenLoader.CJ83xq4d.js";
|
|
55
55
|
import { t as MazExpandAnimation_default } from "../chunks/MazExpandAnimation.Etwl_dOy.js";
|
|
56
|
-
import { t as MazDropzone_default } from "../chunks/MazDropzone.
|
|
56
|
+
import { t as MazDropzone_default } from "../chunks/MazDropzone.D180OqDW.js";
|
|
57
57
|
import { t as MazBackdrop_default } from "../chunks/MazBackdrop.q3njgeNN.js";
|
|
58
58
|
import { t as MazDrawer_default } from "../chunks/MazDrawer.CC8zomfx.js";
|
|
59
59
|
import { t as MazDialog_default } from "../chunks/MazDialog.C12rD3uC.js";
|
|
60
|
-
import { n as useMazDialogConfirm, t as MazDialogConfirm_default } from "../chunks/MazDialogConfirm.
|
|
60
|
+
import { n as useMazDialogConfirm, t as MazDialogConfirm_default } from "../chunks/MazDialogConfirm.BL59GDsx.js";
|
|
61
61
|
import { t as MazDatePicker_default } from "../chunks/MazDatePicker.BskcqfkP.js";
|
|
62
62
|
import { t as MazContainer_default } from "../chunks/MazContainer.CII2qDCA.js";
|
|
63
63
|
import { t as MazCodeHighlight_default } from "../chunks/MazCodeHighlight.3EUuol1S.js";
|