maz-ui 4.1.7-beta.6 → 4.1.7-beta.8
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/MazAccordion.C7shz8tA.css +1 -0
- package/dist/assets/{MazBtn.D86vFfaR.css → MazBtn.DDnoE3K1.css} +1 -1
- package/dist/assets/MazDropzone.B5e-z_Ba.css +1 -0
- package/dist/assets/MazIcon.Cl1pfRbK.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.CdpSHmMr.css +1 -0
- package/dist/assets/{MazTable.DLVdp4na.css → MazTable.BKlwCDt4.css} +1 -1
- 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.C5f1ViA8.js → MazDatePicker.CYfNHwnV.js} +82 -82
- 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.C5WEfuse.js → MazDropdown.vue_vue_type_style_index_0_lang.qBaRy629.js} +41 -41
- 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.BFEXMmvC.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.BpHfGufN.js → MazPickerCalendar.BOSPVh7n.js} +26 -26
- package/dist/chunks/{MazPickerCalendarMonth.Cp41DoYR.js → MazPickerCalendarMonth.C-dBLRva.js} +4 -4
- package/dist/chunks/{MazPickerCalendarSwitcher.eONnlP4p.js → MazPickerCalendarSwitcher.CBt_inzB.js} +1 -1
- package/dist/chunks/{MazPickerHeader.8NgtJicu.js → MazPickerHeader.CPmuARqp.js} +4 -4
- package/dist/chunks/{MazPickerMonthSwitcher.Dlwz6t6Y.js → MazPickerMonthSwitcher.A5uh7cC7.js} +1 -1
- package/dist/chunks/{MazPickerShortcuts.B0CYBkxL.js → MazPickerShortcuts.iJe-kl_a.js} +2 -2
- package/dist/chunks/{MazPickerTime.C4lzgTv-.js → MazPickerTime.xQhgnYKJ.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.B1BVoF2x.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.BcmutVwQ.js → PhoneInput.DQZjDqMK.js} +12 -12
- package/dist/chunks/{fullscreen-img.directive.e2KyfwYA.js → fullscreen-img.directive.BqO7XUdi.js} +1 -1
- package/dist/chunks/plus.svg.CdiAbqRP.js +24 -0
- package/dist/components/MazAccordion.js +4 -5
- package/dist/components/MazAnimatedCounter.js +5 -5
- package/dist/components/MazAnimatedElement.js +1 -1
- package/dist/components/MazAnimatedText.js +12 -12
- 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 +17 -17
- package/dist/components/MazCardSpotlight.js +4 -4
- package/dist/components/MazCarousel.js +3 -3
- package/dist/components/MazChart.js +1 -1
- package/dist/components/MazCheckbox.js +13 -13
- package/dist/components/MazChecklist.js +15 -15
- package/dist/components/MazCircularProgressBar.js +11 -11
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDialog.js +9 -9
- package/dist/components/MazDialogConfirm.js +2 -2
- package/dist/components/MazDrawer.js +6 -6
- package/dist/components/MazDropdown.js +1 -1
- 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 +14 -14
- package/dist/components/MazIcon.js +29 -10
- package/dist/components/MazIcon.vue.d.ts +9 -2
- package/dist/components/MazInput.js +40 -40
- 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 +15 -15
- 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 +30 -30
- 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 +3 -3
- 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/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 +5 -5
- package/dist/resolvers/MazComponentsResolver.js +15 -0
- 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/composables/useDisplayNames.d.ts +2 -2
- package/dist/types/directives/vZoomImg/zoom-img.directive.d.ts +2 -2
- package/package.json +22 -23
- package/dist/assets/MazAccordion.DUQCf8vy.css +0 -1
- package/dist/assets/MazDropzone._2HwHowu.css +0 -1
- package/dist/assets/MazIcon.3Pn7omz5.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.BZJQGPhS.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, useAttrs, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, renderSlot, createElementBlock, createCommentVNode, unref, createTextVNode, toDisplayString, createVNode } from "vue";
|
|
2
2
|
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazBtn.
|
|
4
|
+
import '../assets/MazBtn.DDnoE3K1.css';const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "m-btn-loader-container"
|
|
7
7
|
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -27,61 +27,71 @@ import '../assets/MazBtn.D86vFfaR.css';const _hoisted_1 = {
|
|
|
27
27
|
setup(__props) {
|
|
28
28
|
const MazIcon = defineAsyncComponent(() => import("./MazIcon.js")), MazSpinner = defineAsyncComponent(() => import("./MazSpinner.js")), { href, to } = useAttrs(), component = computed(() => href ? "a" : to ? "router-link" : "button"), btnColorClass = computed(() => __props.pastel ? `--${getColor(__props.color)}-pastel` : __props.outlined ? `--${getColor(__props.color)}-outlined` : `--${getColor(__props.color)}`), isDisabled = computed(
|
|
29
29
|
() => (__props.loading || __props.disabled) && component.value === "button"
|
|
30
|
-
), cursorClass = computed(() => isDisabled.value ? "--cursor-default" : "--cursor-pointer"), btnType = computed(() => component.value === "button" ? __props.type : void 0),
|
|
30
|
+
), cursorClass = computed(() => isDisabled.value ? "--cursor-default" : "--cursor-pointer"), btnType = computed(() => component.value === "button" ? __props.type : void 0), iconSize = computed(() => ({
|
|
31
|
+
xl: "lg",
|
|
32
|
+
lg: "md",
|
|
33
|
+
md: "md",
|
|
34
|
+
sm: "sm",
|
|
35
|
+
xs: "xs",
|
|
36
|
+
mini: "1em"
|
|
37
|
+
})[__props.size] || "lg");
|
|
31
38
|
return (_ctx, _cache) => (openBlock(), createBlock(resolveDynamicComponent(component.value), {
|
|
32
39
|
disabled: isDisabled.value,
|
|
33
40
|
class: normalizeClass(["m-btn m-reset-css", [
|
|
34
|
-
`--${
|
|
35
|
-
!
|
|
41
|
+
`--${__props.size}`,
|
|
42
|
+
!__props.fab && __props.roundedSize && `--rounded-${__props.roundedSize}`,
|
|
36
43
|
btnColorClass.value,
|
|
37
44
|
cursorClass.value,
|
|
38
45
|
{
|
|
39
|
-
"--block":
|
|
40
|
-
"--fab":
|
|
41
|
-
"--loading":
|
|
42
|
-
"--no-padding": !
|
|
43
|
-
"--has-left-icon": !!
|
|
44
|
-
"--has-right-icon": !!
|
|
46
|
+
"--block": __props.block,
|
|
47
|
+
"--fab": __props.fab,
|
|
48
|
+
"--loading": __props.loading,
|
|
49
|
+
"--no-padding": !__props.padding,
|
|
50
|
+
"--has-left-icon": !!__props.leftIcon || !!_ctx.$slots["left-icon"],
|
|
51
|
+
"--has-right-icon": !!__props.rightIcon || !!_ctx.$slots["right-icon"]
|
|
45
52
|
}
|
|
46
53
|
]]),
|
|
47
|
-
style: normalizeStyle([`--justify: ${
|
|
54
|
+
style: normalizeStyle([`--justify: ${__props.justify}`, `--color: var(--maz-${__props.color})`]),
|
|
48
55
|
type: btnType.value
|
|
49
56
|
}, {
|
|
50
57
|
default: withCtx(() => [
|
|
51
58
|
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
52
|
-
typeof
|
|
59
|
+
typeof __props.leftIcon == "string" ? (openBlock(), createBlock(unref(MazIcon), {
|
|
53
60
|
key: 0,
|
|
54
|
-
name:
|
|
55
|
-
|
|
56
|
-
}, null, 8, ["name", "
|
|
61
|
+
name: __props.leftIcon,
|
|
62
|
+
size: iconSize.value
|
|
63
|
+
}, null, 8, ["name", "size"])) : __props.leftIcon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
57
64
|
key: 1,
|
|
58
|
-
|
|
59
|
-
|
|
65
|
+
icon: __props.leftIcon,
|
|
66
|
+
size: iconSize.value
|
|
67
|
+
}, null, 8, ["icon", "size"])) : createCommentVNode("", !0)
|
|
60
68
|
], !0),
|
|
61
69
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
62
|
-
typeof
|
|
70
|
+
typeof __props.icon == "string" ? (openBlock(), createBlock(unref(MazIcon), {
|
|
63
71
|
key: 0,
|
|
64
|
-
name:
|
|
65
|
-
|
|
66
|
-
}, null, 8, ["name", "
|
|
72
|
+
name: __props.icon,
|
|
73
|
+
size: iconSize.value
|
|
74
|
+
}, null, 8, ["name", "size"])) : __props.icon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
67
75
|
key: 1,
|
|
68
|
-
|
|
69
|
-
|
|
76
|
+
icon: __props.icon,
|
|
77
|
+
size: iconSize.value
|
|
78
|
+
}, null, 8, ["icon", "size"])) : createCommentVNode("", !0)
|
|
70
79
|
], !0),
|
|
71
80
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
72
|
-
createTextVNode(toDisplayString(
|
|
81
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
73
82
|
], !0),
|
|
74
83
|
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
75
|
-
typeof
|
|
84
|
+
typeof __props.rightIcon == "string" ? (openBlock(), createBlock(unref(MazIcon), {
|
|
76
85
|
key: 0,
|
|
77
|
-
name:
|
|
78
|
-
|
|
79
|
-
}, null, 8, ["name", "
|
|
86
|
+
name: __props.rightIcon,
|
|
87
|
+
size: iconSize.value
|
|
88
|
+
}, null, 8, ["name", "size"])) : __props.rightIcon ? (openBlock(), createBlock(unref(MazIcon), {
|
|
80
89
|
key: 1,
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
icon: __props.rightIcon,
|
|
91
|
+
size: iconSize.value
|
|
92
|
+
}, null, 8, ["icon", "size"])) : createCommentVNode("", !0)
|
|
83
93
|
], !0),
|
|
84
|
-
|
|
94
|
+
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
85
95
|
renderSlot(_ctx.$slots, "loader", {}, () => [
|
|
86
96
|
createVNode(unref(MazSpinner), { size: "2em" })
|
|
87
97
|
], !0)
|
|
@@ -90,7 +100,7 @@ import '../assets/MazBtn.D86vFfaR.css';const _hoisted_1 = {
|
|
|
90
100
|
_: 3
|
|
91
101
|
}, 8, ["disabled", "class", "style", "type"]));
|
|
92
102
|
}
|
|
93
|
-
}), MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
103
|
+
}), MazBtn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-566b18d0"]]);
|
|
94
104
|
export {
|
|
95
105
|
MazBtn as default
|
|
96
106
|
};
|
|
@@ -83,31 +83,31 @@ import '../assets/MazCard.CV__I-ku.css';const _hoisted_1 = {
|
|
|
83
83
|
class: normalizeClass(["m-card m-reset-css", [
|
|
84
84
|
{
|
|
85
85
|
"m-card--linked": isLinked.value,
|
|
86
|
-
"m-card--no-scale": !
|
|
87
|
-
"maz-shadow-elevation maz-drop-shadow-md":
|
|
88
|
-
"--block":
|
|
89
|
-
"maz-overflow-hidden":
|
|
90
|
-
"maz-rounded":
|
|
91
|
-
"maz-border maz-border-solid maz-border-divider":
|
|
86
|
+
"m-card--no-scale": !__props.scale,
|
|
87
|
+
"maz-shadow-elevation maz-drop-shadow-md": __props.elevation,
|
|
88
|
+
"--block": __props.block,
|
|
89
|
+
"maz-overflow-hidden": __props.overflowHidden || !collapseOpenModel.value,
|
|
90
|
+
"maz-rounded": __props.radius,
|
|
91
|
+
"maz-border maz-border-solid maz-border-divider": __props.bordered
|
|
92
92
|
}
|
|
93
93
|
]])
|
|
94
94
|
}, [
|
|
95
|
-
_ctx.$slots.title ||
|
|
95
|
+
_ctx.$slots.title || __props.title || __props.collapsible ? (openBlock(), createBlock(resolveDynamicComponent(__props.collapsible ? "button" : "div"), {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: normalizeClass(["m-card__header maz-border-b maz-border-solid", [
|
|
98
98
|
collapseOpenModel.value ? "maz-rounded-t maz-border-divider" : "maz-border-transparent",
|
|
99
|
-
{ "--is-collapsible":
|
|
100
|
-
{ "maz-justify-end": (!_ctx.$slots.title || !
|
|
101
|
-
{ "maz-justify-between": _ctx.$slots.title ||
|
|
99
|
+
{ "--is-collapsible": __props.collapsible },
|
|
100
|
+
{ "maz-justify-end": (!_ctx.$slots.title || !__props.title) && __props.collapsible },
|
|
101
|
+
{ "maz-justify-between": _ctx.$slots.title || __props.title }
|
|
102
102
|
]]),
|
|
103
103
|
tabindex: "-1",
|
|
104
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(($event) =>
|
|
104
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => __props.collapsible ? toggleCollapse() : void 0, ["stop"]))
|
|
105
105
|
}, {
|
|
106
106
|
default: withCtx(() => [
|
|
107
|
-
_ctx.$slots.title ||
|
|
108
|
-
createTextVNode(toDisplayString(
|
|
107
|
+
_ctx.$slots.title || __props.title ? renderSlot(_ctx.$slots, "title", { key: 0 }, () => [
|
|
108
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
109
109
|
], !0) : createCommentVNode("", !0),
|
|
110
|
-
|
|
110
|
+
__props.collapsible ? (openBlock(), createBlock(unref(MazBtn), {
|
|
111
111
|
key: 1,
|
|
112
112
|
color: "transparent",
|
|
113
113
|
class: "maz-ms-2 maz-text-sm",
|
|
@@ -125,7 +125,7 @@ import '../assets/MazCard.CV__I-ku.css';const _hoisted_1 = {
|
|
|
125
125
|
_: 3
|
|
126
126
|
}, 8, ["class"])) : createCommentVNode("", !0),
|
|
127
127
|
(openBlock(), createBlock(resolveDynamicComponent(wrapperData.value.is), mergeProps(wrapperData.value, {
|
|
128
|
-
class: ["m-card__wrapper", [`m-card__wrapper--${
|
|
128
|
+
class: ["m-card__wrapper", [`m-card__wrapper--${__props.orientation}`, { "m-card__link": isLinked.value }]]
|
|
129
129
|
}), {
|
|
130
130
|
default: withCtx(() => [
|
|
131
131
|
galleryOptions.value.images ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -135,14 +135,14 @@ import '../assets/MazCard.CV__I-ku.css';const _hoisted_1 = {
|
|
|
135
135
|
}, { class: "m-card__gallery" }), null, 16)
|
|
136
136
|
])) : createCommentVNode("", !0),
|
|
137
137
|
createElementVNode("div", _hoisted_2, [
|
|
138
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
138
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.collapsible ? unref(MazExpandAnimation) : "div"), {
|
|
139
139
|
modelValue: collapseOpenModel.value,
|
|
140
140
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => collapseOpenModel.value = $event),
|
|
141
141
|
class: "maz-h-full"
|
|
142
142
|
}, {
|
|
143
143
|
default: withCtx(() => [
|
|
144
144
|
createElementVNode("div", {
|
|
145
|
-
class: normalizeClass([[
|
|
145
|
+
class: normalizeClass([[__props.wrapperClass, { "maz-p-4": __props.padding }], "m-card__content__wrapper"])
|
|
146
146
|
}, [
|
|
147
147
|
_ctx.$slots["content-title"] ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
148
148
|
renderSlot(_ctx.$slots, "content-title", { collapseOpen: collapseOpenModel.value }, void 0, !0)
|
|
@@ -35,13 +35,13 @@ import '../assets/MazCardSpotlight.B7lFD7Pi.css';const _hoisted_1 = { class: "in
|
|
|
35
35
|
}), onUnmounted(() => {
|
|
36
36
|
globalThis.removeEventListener("mousemove", animateBlob);
|
|
37
37
|
}), (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
38
|
-
class: normalizeClass(["m-card-spotlight m-reset-css", { "maz-shadow-elevation maz-drop-shadow-md":
|
|
39
|
-
style: normalizeStyle({ backgroundColor: alphaColor20.value, "--inner-opacity":
|
|
38
|
+
class: normalizeClass(["m-card-spotlight m-reset-css", { "maz-shadow-elevation maz-drop-shadow-md": __props.elevation }]),
|
|
39
|
+
style: normalizeStyle({ backgroundColor: alphaColor20.value, "--inner-opacity": __props.innerOpacity })
|
|
40
40
|
}, [
|
|
41
41
|
createElementVNode("div", _hoisted_1, [
|
|
42
42
|
createElementVNode("div", {
|
|
43
|
-
class: normalizeClass(["content", [{ "maz-p-4":
|
|
44
|
-
style: normalizeStyle(
|
|
43
|
+
class: normalizeClass(["content", [{ "maz-p-4": __props.padding }, __props.contentClass]]),
|
|
44
|
+
style: normalizeStyle(__props.contentStyle)
|
|
45
45
|
}, [
|
|
46
46
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
47
47
|
], 6)
|
|
@@ -44,7 +44,7 @@ import '../assets/MazCarousel.-UuyHtHl.css';const _hoisted_1 = { key: 0 }, _hois
|
|
|
44
44
|
}
|
|
45
45
|
return (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
46
46
|
class: normalizeClass(["m-carousel m-reset-css", {
|
|
47
|
-
"--hide-scrollbar":
|
|
47
|
+
"--hide-scrollbar": __props.hideScrollbar
|
|
48
48
|
}])
|
|
49
49
|
}, [
|
|
50
50
|
hasHeader() ? (openBlock(), createElementBlock("div", {
|
|
@@ -53,10 +53,10 @@ import '../assets/MazCarousel.-UuyHtHl.css';const _hoisted_1 = { key: 0 }, _hois
|
|
|
53
53
|
}, [
|
|
54
54
|
hasTitle() ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
55
55
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
56
|
-
createElementVNode("h4", _hoisted_2, toDisplayString(
|
|
56
|
+
createElementVNode("h4", _hoisted_2, toDisplayString(__props.title), 1)
|
|
57
57
|
], !0)
|
|
58
58
|
])) : createCommentVNode("", !0),
|
|
59
|
-
|
|
59
|
+
__props.hideScrollButtons ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
60
60
|
createVNode(unref(MazBtn), {
|
|
61
61
|
color: "transparent",
|
|
62
62
|
class: normalizeClass(["m-carousel__btn", { "--muted": !isScrolled.value }]),
|
|
@@ -78,8 +78,8 @@ import '../assets/MazCheckbox.Di88TJ3e.css';const _hoisted_1 = ["for", "aria-che
|
|
|
78
78
|
}
|
|
79
79
|
return (_ctx, _cache) => (openBlock(), createElementBlock("label", {
|
|
80
80
|
for: unref(instanceId),
|
|
81
|
-
class: normalizeClass(["m-checkbox m-reset-css", [{ "--error":
|
|
82
|
-
style: normalizeStyle([
|
|
81
|
+
class: normalizeClass(["m-checkbox m-reset-css", [{ "--error": __props.error, "--warning": __props.warning, "--success": __props.success }, props.class]]),
|
|
82
|
+
style: normalizeStyle([__props.style, { "--checkbox-selected-color": checkboxSelectedColor.value, "--checkbox-box-shadow-color": checkboxBoxShadow.value }]),
|
|
83
83
|
role: "checkbox",
|
|
84
84
|
"aria-checked": isChecked.value,
|
|
85
85
|
tabindex: "0",
|
|
@@ -94,10 +94,10 @@ import '../assets/MazCheckbox.Di88TJ3e.css';const _hoisted_1 = ["for", "aria-che
|
|
|
94
94
|
checked: isChecked.value
|
|
95
95
|
}, _ctx.$attrs, {
|
|
96
96
|
tabindex: "-1",
|
|
97
|
-
disabled:
|
|
98
|
-
name:
|
|
97
|
+
disabled: __props.disabled,
|
|
98
|
+
name: __props.name,
|
|
99
99
|
type: "checkbox",
|
|
100
|
-
onChange: _cache[0] || (_cache[0] = ($event) => emitValue(
|
|
100
|
+
onChange: _cache[0] || (_cache[0] = ($event) => emitValue(__props.value ?? $event?.target?.checked))
|
|
101
101
|
}), null, 16, _hoisted_2),
|
|
102
102
|
createElementVNode("span", {
|
|
103
103
|
style: normalizeStyle({ width: checkboxSize.value, height: checkboxSize.value })
|
|
@@ -107,18 +107,18 @@ import '../assets/MazCheckbox.Di88TJ3e.css';const _hoisted_1 = ["for", "aria-che
|
|
|
107
107
|
style: normalizeStyle({ color: checkIconColor.value })
|
|
108
108
|
}, null, 8, ["class", "style"])
|
|
109
109
|
], 4),
|
|
110
|
-
|
|
111
|
-
renderSlot(_ctx.$slots, "default", { value:
|
|
112
|
-
createTextVNode(toDisplayString(
|
|
110
|
+
__props.label || _ctx.$slots.default || __props.hint ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
111
|
+
renderSlot(_ctx.$slots, "default", { value: __props.value }, () => [
|
|
112
|
+
createTextVNode(toDisplayString(__props.label), 1)
|
|
113
113
|
], !0),
|
|
114
|
-
|
|
114
|
+
__props.hint ? (openBlock(), createElementBlock("span", {
|
|
115
115
|
key: 0,
|
|
116
116
|
class: normalizeClass(["m-checkbox__hint", {
|
|
117
|
-
"--error":
|
|
118
|
-
"--success":
|
|
119
|
-
"--warning":
|
|
117
|
+
"--error": __props.error,
|
|
118
|
+
"--success": __props.success,
|
|
119
|
+
"--warning": __props.warning
|
|
120
120
|
}])
|
|
121
|
-
}, toDisplayString(
|
|
121
|
+
}, toDisplayString(__props.hint), 3)) : createCommentVNode("", !0)
|
|
122
122
|
])) : createCommentVNode("", !0)
|
|
123
123
|
], 46, _hoisted_1));
|
|
124
124
|
}
|
|
@@ -62,30 +62,30 @@ import '../assets/MazChecklist.3fMAXT5e.css';const _hoisted_1 = { class: "m-chec
|
|
|
62
62
|
}
|
|
63
63
|
return (_ctx, _cache) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
64
64
|
createElementVNode("label", {
|
|
65
|
-
for:
|
|
65
|
+
for: __props.search ? `${unref(id)}-query` : void 0,
|
|
66
66
|
class: "search-label"
|
|
67
67
|
}, [
|
|
68
|
-
_ctx.$slots.title ||
|
|
68
|
+
_ctx.$slots.title || __props.title ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
69
69
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
70
|
-
createTextVNode(toDisplayString(
|
|
70
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
71
71
|
], !0)
|
|
72
72
|
])) : createCommentVNode("", !0),
|
|
73
|
-
|
|
73
|
+
__props.search ? (openBlock(), createBlock(unref(MazInput), mergeProps({
|
|
74
74
|
key: 1,
|
|
75
75
|
id: `${unref(id)}-query`,
|
|
76
76
|
"model-value": internalQuery.value
|
|
77
|
-
}, typeof
|
|
78
|
-
color: typeof
|
|
79
|
-
"left-icon": typeof
|
|
80
|
-
debounce: typeof
|
|
81
|
-
name: typeof
|
|
82
|
-
placeholder: typeof
|
|
77
|
+
}, typeof __props.search == "object" ? __props.search : {}, {
|
|
78
|
+
color: typeof __props.search == "object" && __props.search.color ? __props.search.color : __props.color,
|
|
79
|
+
"left-icon": typeof __props.search == "object" ? __props.search.leftIcon ?? unref(MazMagnifyingGlass) : void 0,
|
|
80
|
+
debounce: typeof __props.search == "object" ? __props.search.debounce ?? 300 : void 0,
|
|
81
|
+
name: typeof __props.search == "object" ? __props.search.name ?? "search" : void 0,
|
|
82
|
+
placeholder: typeof __props.search == "object" && __props.search.placeholder ? __props.search.placeholder : messages.value.searchInput.placeholder,
|
|
83
83
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (event) => updateQuery(event))
|
|
84
84
|
}), null, 16, ["id", "model-value", "color", "left-icon", "debounce", "name", "placeholder"])) : createCommentVNode("", !0)
|
|
85
85
|
], 8, _hoisted_2),
|
|
86
86
|
createVNode(MazCardSpotlight, {
|
|
87
|
-
color:
|
|
88
|
-
elevation:
|
|
87
|
+
color: __props.color,
|
|
88
|
+
elevation: __props.elevation,
|
|
89
89
|
padding: !1,
|
|
90
90
|
"content-class": "card-content"
|
|
91
91
|
}, {
|
|
@@ -109,13 +109,13 @@ import '../assets/MazChecklist.3fMAXT5e.css';const _hoisted_1 = { class: "m-chec
|
|
|
109
109
|
}, [
|
|
110
110
|
createVNode(MazCheckbox, {
|
|
111
111
|
id: `${unref(id)}-checklist-item-${item.value}`,
|
|
112
|
-
"model-value":
|
|
112
|
+
"model-value": __props.modelValue,
|
|
113
113
|
value: item.value,
|
|
114
|
-
color:
|
|
114
|
+
color: __props.color,
|
|
115
115
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = (event) => emits("update:model-value", event))
|
|
116
116
|
}, null, 8, ["id", "model-value", "value", "color"]),
|
|
117
117
|
renderSlot(_ctx.$slots, "item", {
|
|
118
|
-
selectedValues:
|
|
118
|
+
selectedValues: __props.modelValue,
|
|
119
119
|
item
|
|
120
120
|
}, () => [
|
|
121
121
|
createElementVNode("span", _hoisted_8, toDisplayString(item.label), 1)
|
|
@@ -43,10 +43,10 @@ import '../assets/MazCircularProgressBar.BYf6ZShT.css';const _hoisted_1 = { clas
|
|
|
43
43
|
{
|
|
44
44
|
"--animation-duration": animationDuration.value,
|
|
45
45
|
"--dashoffset": dashoffset.value,
|
|
46
|
-
"--delay": `${
|
|
46
|
+
"--delay": `${__props.delay}ms`
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
fontSize:
|
|
49
|
+
fontSize: __props.size
|
|
50
50
|
}
|
|
51
51
|
])
|
|
52
52
|
}, [
|
|
@@ -56,16 +56,16 @@ import '../assets/MazCircularProgressBar.BYf6ZShT.css';const _hoisted_1 = { clas
|
|
|
56
56
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
57
57
|
])) : (openBlock(), createBlock(unref(MazAnimatedCounter), {
|
|
58
58
|
key: 1,
|
|
59
|
-
count:
|
|
60
|
-
duration:
|
|
61
|
-
delay:
|
|
62
|
-
once:
|
|
59
|
+
count: __props.percentage,
|
|
60
|
+
duration: __props.duration,
|
|
61
|
+
delay: __props.delay,
|
|
62
|
+
once: __props.once
|
|
63
63
|
}, createSlots({ _: 2 }, [
|
|
64
64
|
hasPrefix.value ? {
|
|
65
65
|
name: "prefix",
|
|
66
66
|
fn: withCtx(() => [
|
|
67
67
|
renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
68
|
-
createTextVNode(toDisplayString(
|
|
68
|
+
createTextVNode(toDisplayString(__props.prefix), 1)
|
|
69
69
|
], !0)
|
|
70
70
|
]),
|
|
71
71
|
key: "0"
|
|
@@ -74,7 +74,7 @@ import '../assets/MazCircularProgressBar.BYf6ZShT.css';const _hoisted_1 = { clas
|
|
|
74
74
|
name: "suffix",
|
|
75
75
|
fn: withCtx(() => [
|
|
76
76
|
renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
77
|
-
createTextVNode(toDisplayString(
|
|
77
|
+
createTextVNode(toDisplayString(__props.suffix), 1)
|
|
78
78
|
], !0)
|
|
79
79
|
]),
|
|
80
80
|
key: "1"
|
|
@@ -115,12 +115,12 @@ import '../assets/MazCircularProgressBar.BYf6ZShT.css';const _hoisted_1 = { clas
|
|
|
115
115
|
cx: "50",
|
|
116
116
|
cy: "50",
|
|
117
117
|
r: "46",
|
|
118
|
-
"stroke-width":
|
|
118
|
+
"stroke-width": __props.strokeWidth,
|
|
119
119
|
"stroke-dasharray": "290",
|
|
120
120
|
"stroke-dashoffset": hasBeenAnimated.value ? dashoffset.value : 290,
|
|
121
|
-
stroke:
|
|
121
|
+
stroke: __props.stroke ? __props.stroke : `url(#${unref(id)}-gradient)`,
|
|
122
122
|
fill: "none",
|
|
123
|
-
"stroke-linecap":
|
|
123
|
+
"stroke-linecap": __props.strokeLinecap
|
|
124
124
|
}, null, 8, _hoisted_7)
|
|
125
125
|
], 2))
|
|
126
126
|
], 4));
|
|
@@ -55,13 +55,13 @@ import '../assets/MazDialog.Cm3xd1Xp.css';const _hoisted_1 = {
|
|
|
55
55
|
}), (_ctx, _cache) => (openBlock(), createBlock(MazBackdrop, mergeProps(backdropProps, {
|
|
56
56
|
ref_key: "backdrop",
|
|
57
57
|
ref: backdrop,
|
|
58
|
-
"model-value":
|
|
58
|
+
"model-value": __props.modelValue,
|
|
59
59
|
"transition-name": "modal-anim",
|
|
60
60
|
"aria-labelledby": "dialogTitle",
|
|
61
61
|
"aria-describedby": "dialogDesc",
|
|
62
|
-
"close-on-escape":
|
|
62
|
+
"close-on-escape": __props.closeOnEscape,
|
|
63
63
|
"content-padding": "",
|
|
64
|
-
persistent:
|
|
64
|
+
persistent: __props.persistent,
|
|
65
65
|
justify: "center",
|
|
66
66
|
variant: "dialog",
|
|
67
67
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close", $event)),
|
|
@@ -70,21 +70,21 @@ import '../assets/MazDialog.Cm3xd1Xp.css';const _hoisted_1 = {
|
|
|
70
70
|
}), {
|
|
71
71
|
default: withCtx(({ close }) => [
|
|
72
72
|
createElementVNode("div", mergeProps({
|
|
73
|
-
class: ["m-dialog", { "--scrollable":
|
|
73
|
+
class: ["m-dialog", { "--scrollable": __props.scrollable }],
|
|
74
74
|
role: "dialog",
|
|
75
75
|
"aria-modal": "true",
|
|
76
|
-
style: [{ "--max-width":
|
|
76
|
+
style: [{ "--max-width": __props.maxWidth, "--min-width": __props.minWidth }]
|
|
77
77
|
}, wrapperAttrs.value), [
|
|
78
78
|
renderSlot(_ctx.$slots, "header", { close }, () => [
|
|
79
79
|
createElementVNode("div", {
|
|
80
|
-
class: normalizeClass(["m-dialog-header", { "--has-title": _ctx.$slots.title ||
|
|
80
|
+
class: normalizeClass(["m-dialog-header", { "--has-title": _ctx.$slots.title || __props.title }])
|
|
81
81
|
}, [
|
|
82
|
-
_ctx.$slots.title ||
|
|
82
|
+
_ctx.$slots.title || __props.title ? (openBlock(), createElementBlock("h2", _hoisted_1, [
|
|
83
83
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
84
|
-
createTextVNode(toDisplayString(
|
|
84
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
85
85
|
], !0)
|
|
86
86
|
])) : createCommentVNode("", !0),
|
|
87
|
-
!
|
|
87
|
+
!__props.hideCloseButton && !__props.persistent ? (openBlock(), createBlock(unref(MazBtn), {
|
|
88
88
|
key: 1,
|
|
89
89
|
color: "transparent",
|
|
90
90
|
size: "sm",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.
|
|
2
|
-
import { u } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as _sfc_main } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.BaOg5MoP.js";
|
|
2
|
+
import { u } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.BaOg5MoP.js";
|
|
3
3
|
export {
|
|
4
4
|
_sfc_main as default,
|
|
5
5
|
u as useMazDialogConfirm
|
|
@@ -18,11 +18,11 @@ import '../assets/MazDrawer.CtOq-ucH.css';const _hoisted_1 = { class: "m-drawer-
|
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const props = __props, MazBtn = defineAsyncComponent(() => import("./MazBtn.js")), justify = computed(() => props.variant === "left" ? "start" : props.variant === "right" ? "end" : "none"), align = computed(() => props.variant === "top" ? "start" : props.variant === "bottom" ? "end" : "none"), slots = useSlots(), hasTitle = computed(() => !!(props.title || slots.title));
|
|
20
20
|
return (_ctx, _cache) => (openBlock(), createBlock(MazBackdrop, {
|
|
21
|
-
"backdrop-class": ["m-drawer",
|
|
21
|
+
"backdrop-class": ["m-drawer", __props.backdropClass],
|
|
22
22
|
justify: justify.value,
|
|
23
23
|
align: align.value,
|
|
24
24
|
variant: "drawer",
|
|
25
|
-
"transition-name": `drawer-anim-${
|
|
25
|
+
"transition-name": `drawer-anim-${__props.variant}`,
|
|
26
26
|
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close")),
|
|
27
27
|
onOpen: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("open")),
|
|
28
28
|
onBeforeClose: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("before-close")),
|
|
@@ -30,9 +30,9 @@ import '../assets/MazDrawer.CtOq-ucH.css';const _hoisted_1 = { class: "m-drawer-
|
|
|
30
30
|
}, {
|
|
31
31
|
default: withCtx(({ close }) => [
|
|
32
32
|
createElementVNode("div", {
|
|
33
|
-
class: normalizeClass(["m-drawer-content-wrap", [`--${
|
|
33
|
+
class: normalizeClass(["m-drawer-content-wrap", [`--${__props.variant}`]]),
|
|
34
34
|
style: normalizeStyle({
|
|
35
|
-
"--maz-drawer-size":
|
|
35
|
+
"--maz-drawer-size": __props.size
|
|
36
36
|
})
|
|
37
37
|
}, [
|
|
38
38
|
createElementVNode("header", {
|
|
@@ -40,10 +40,10 @@ import '../assets/MazDrawer.CtOq-ucH.css';const _hoisted_1 = { class: "m-drawer-
|
|
|
40
40
|
}, [
|
|
41
41
|
createElementVNode("h4", _hoisted_1, [
|
|
42
42
|
renderSlot(_ctx.$slots, "title", { close }, () => [
|
|
43
|
-
createTextVNode(toDisplayString(
|
|
43
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
44
44
|
], !0)
|
|
45
45
|
]),
|
|
46
|
-
|
|
46
|
+
__props.hideCloseButton ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
47
47
|
createVNode(unref(MazBtn), {
|
|
48
48
|
size: "sm",
|
|
49
49
|
color: "transparent",
|