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
|
@@ -64,8 +64,8 @@ const _hoisted_1 = {
|
|
|
64
64
|
emits: ["update:model-value", "update:search-query", "update:page", "update:page-size"],
|
|
65
65
|
setup(__props, { emit: __emit }) {
|
|
66
66
|
useCssVars((_ctx) => ({
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
v4b21767b: _ctx.tableLayout,
|
|
68
|
+
v5a9d2380: _ctx.captionSide
|
|
69
69
|
}));
|
|
70
70
|
const props = __props, emits = __emit, MazBtn = defineAsyncComponent(() => import("../components/MazBtn.js")), MazCheckbox = defineAsyncComponent(() => import("../components/MazCheckbox.js")), MazInput = defineAsyncComponent(() => import("../components/MazInput.js")), MazLoadingBar = defineAsyncComponent(() => import("../components/MazLoadingBar.js")), MazSelect = defineAsyncComponent(() => import("../components/MazSelect.js")), MazTableCell = defineAsyncComponent(() => import("../components/MazTableCell.js")), MazTableRowComponent = defineAsyncComponent(() => import("../components/MazTableRow.js")), MazTableTitle = defineAsyncComponent(() => import("../components/MazTableTitle.js")), { t } = useTranslations(), messages = computed(() => ({
|
|
71
71
|
noResults: props.translations?.noResults ?? t("table.noResults"),
|
|
@@ -233,29 +233,29 @@ const _hoisted_1 = {
|
|
|
233
233
|
class: normalizeClass(["m-table m-reset-css", { "--has-header": hasHeader.value }])
|
|
234
234
|
}, [
|
|
235
235
|
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
236
|
-
|
|
236
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
237
237
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
238
|
-
createElementVNode("span", _hoisted_3, toDisplayString(
|
|
238
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1)
|
|
239
239
|
], !0)
|
|
240
240
|
])) : createCommentVNode("", !0),
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
__props.search ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
242
|
+
__props.hideSearchBy ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(MazSelect), {
|
|
243
243
|
key: 0,
|
|
244
244
|
modelValue: searchByKey.value,
|
|
245
245
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchByKey.value = $event),
|
|
246
|
-
"rounded-size":
|
|
247
|
-
color:
|
|
246
|
+
"rounded-size": __props.roundedSize,
|
|
247
|
+
color: __props.color,
|
|
248
248
|
style: { width: "8rem" },
|
|
249
249
|
placeholder: messages.value.searchByInput.placeholder,
|
|
250
|
-
size:
|
|
250
|
+
size: __props.inputSize ?? unref(size),
|
|
251
251
|
options: searchByOptions.value
|
|
252
252
|
}, null, 8, ["modelValue", "rounded-size", "color", "placeholder", "size", "options"])),
|
|
253
253
|
createVNode(unref(MazInput), {
|
|
254
254
|
modelValue: searchQueryModel.value,
|
|
255
255
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchQueryModel.value = $event),
|
|
256
|
-
size:
|
|
257
|
-
"rounded-size":
|
|
258
|
-
color:
|
|
256
|
+
size: __props.inputSize ?? unref(size),
|
|
257
|
+
"rounded-size": __props.roundedSize,
|
|
258
|
+
color: __props.color,
|
|
259
259
|
debounce: 300,
|
|
260
260
|
placeholder: messages.value.searchInput.placeholder,
|
|
261
261
|
"left-icon": unref(MazMagnifyingGlass)
|
|
@@ -263,17 +263,17 @@ const _hoisted_1 = {
|
|
|
263
263
|
])) : createCommentVNode("", !0)
|
|
264
264
|
])) : createCommentVNode("", !0),
|
|
265
265
|
createElementVNode("div", {
|
|
266
|
-
class: normalizeClass(["m-table-wrapper", [`--rounded-${
|
|
267
|
-
"--scrollable":
|
|
266
|
+
class: normalizeClass(["m-table-wrapper", [`--rounded-${__props.roundedSize}`, {
|
|
267
|
+
"--scrollable": __props.scrollable
|
|
268
268
|
}]])
|
|
269
269
|
}, [
|
|
270
270
|
createElementVNode("table", {
|
|
271
|
-
class: normalizeClass([{ "--elevation":
|
|
272
|
-
style: normalizeStyle(
|
|
271
|
+
class: normalizeClass([{ "--elevation": __props.elevation, "--has-layout": __props.tableLayout }, __props.tableClass]),
|
|
272
|
+
style: normalizeStyle(__props.tableStyle)
|
|
273
273
|
}, [
|
|
274
|
-
|
|
274
|
+
__props.caption || _ctx.$slots.caption ? (openBlock(), createElementBlock("caption", _hoisted_5, [
|
|
275
275
|
renderSlot(_ctx.$slots, "caption", {}, () => [
|
|
276
|
-
createTextVNode(toDisplayString(
|
|
276
|
+
createTextVNode(toDisplayString(__props.caption), 1)
|
|
277
277
|
], !0)
|
|
278
278
|
])) : createCommentVNode("", !0),
|
|
279
279
|
headersNormalized.value ? (openBlock(), createElementBlock("thead", _hoisted_6, [
|
|
@@ -303,11 +303,11 @@ const _hoisted_1 = {
|
|
|
303
303
|
headers: header.thHeaders,
|
|
304
304
|
style: normalizeStyle({ width: header.width, textAlign: header.align }),
|
|
305
305
|
class: normalizeClass(["maz-group", [
|
|
306
|
-
{ "--hidden": header.hidden, "--sortable": header.sortable ??
|
|
306
|
+
{ "--hidden": header.hidden, "--sortable": header.sortable ?? __props.sortable },
|
|
307
307
|
header.classes,
|
|
308
308
|
`--${unref(size)}`
|
|
309
309
|
]]),
|
|
310
|
-
onClick: ($event) => (header.sortable ??
|
|
310
|
+
onClick: ($event) => (header.sortable ?? __props.sortable) && sortColumn(columnIndex)
|
|
311
311
|
}, {
|
|
312
312
|
default: withCtx(() => [
|
|
313
313
|
createElementVNode("span", {
|
|
@@ -323,7 +323,7 @@ const _hoisted_1 = {
|
|
|
323
323
|
}, () => [
|
|
324
324
|
createTextVNode(toDisplayString(header.label), 1)
|
|
325
325
|
], !0),
|
|
326
|
-
header.sortable ??
|
|
326
|
+
header.sortable ?? __props.sortable ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
327
327
|
createVNode(unref(MazArrowUp), {
|
|
328
328
|
class: normalizeClass(["m-table-sort-icon maz-hidden group-hover:maz-block", {
|
|
329
329
|
"--sorted": columnIndex === sortedColumnIndex.value,
|
|
@@ -354,9 +354,9 @@ const _hoisted_1 = {
|
|
|
354
354
|
})
|
|
355
355
|
], !0)
|
|
356
356
|
])) : createCommentVNode("", !0),
|
|
357
|
-
|
|
357
|
+
__props.loading ? (openBlock(), createBlock(unref(MazLoadingBar), {
|
|
358
358
|
key: 2,
|
|
359
|
-
color:
|
|
359
|
+
color: __props.color,
|
|
360
360
|
class: "!maz-absolute"
|
|
361
361
|
}, null, 8, ["color"])) : createCommentVNode("", !0),
|
|
362
362
|
createElementVNode("tbody", {
|
|
@@ -441,16 +441,16 @@ const _hoisted_1 = {
|
|
|
441
441
|
], 2),
|
|
442
442
|
hasFooter.value ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
443
443
|
_cache[4] || (_cache[4] = createElementVNode("div", { class: "m-table-spacer" }, null, -1)),
|
|
444
|
-
|
|
444
|
+
__props.pagination ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
445
445
|
createElementVNode("div", _hoisted_11, [
|
|
446
446
|
createElementVNode("span", _hoisted_12, toDisplayString(messages.value.pagination.rowsPerPage), 1),
|
|
447
447
|
createVNode(unref(MazSelect), {
|
|
448
448
|
modelValue: pageSizeModel.value,
|
|
449
449
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => pageSizeModel.value = $event),
|
|
450
450
|
options: pageSizeOptions.value,
|
|
451
|
-
"rounded-size":
|
|
452
|
-
size:
|
|
453
|
-
color:
|
|
451
|
+
"rounded-size": __props.roundedSize,
|
|
452
|
+
size: __props.inputSize ?? unref(size),
|
|
453
|
+
color: __props.color,
|
|
454
454
|
"list-position": "top",
|
|
455
455
|
style: { width: "5rem" }
|
|
456
456
|
}, null, 8, ["modelValue", "options", "rounded-size", "size", "color"])
|
|
@@ -459,9 +459,9 @@ const _hoisted_1 = {
|
|
|
459
459
|
createElementVNode("div", _hoisted_14, [
|
|
460
460
|
createVNode(unref(MazBtn), {
|
|
461
461
|
disabled: currentPageModel.value === 1,
|
|
462
|
-
size:
|
|
462
|
+
size: __props.inputSize ?? unref(size),
|
|
463
463
|
color: "transparent",
|
|
464
|
-
"rounded-size":
|
|
464
|
+
"rounded-size": __props.roundedSize,
|
|
465
465
|
onClick: firstPage
|
|
466
466
|
}, {
|
|
467
467
|
default: withCtx(() => [
|
|
@@ -471,9 +471,9 @@ const _hoisted_1 = {
|
|
|
471
471
|
}, 8, ["disabled", "size", "rounded-size"]),
|
|
472
472
|
createVNode(unref(MazBtn), {
|
|
473
473
|
disabled: currentPageModel.value === 1,
|
|
474
|
-
size:
|
|
474
|
+
size: __props.inputSize ?? unref(size),
|
|
475
475
|
color: "transparent",
|
|
476
|
-
"rounded-size":
|
|
476
|
+
"rounded-size": __props.roundedSize,
|
|
477
477
|
onClick: previousPage
|
|
478
478
|
}, {
|
|
479
479
|
default: withCtx(() => [
|
|
@@ -483,9 +483,9 @@ const _hoisted_1 = {
|
|
|
483
483
|
}, 8, ["disabled", "size", "rounded-size"]),
|
|
484
484
|
createVNode(unref(MazBtn), {
|
|
485
485
|
disabled: currentPageModel.value === totalPagesInternal.value,
|
|
486
|
-
size:
|
|
486
|
+
size: __props.inputSize ?? unref(size),
|
|
487
487
|
color: "transparent",
|
|
488
|
-
"rounded-size":
|
|
488
|
+
"rounded-size": __props.roundedSize,
|
|
489
489
|
onClick: nextPage
|
|
490
490
|
}, {
|
|
491
491
|
default: withCtx(() => [
|
|
@@ -495,9 +495,9 @@ const _hoisted_1 = {
|
|
|
495
495
|
}, 8, ["disabled", "size", "rounded-size"]),
|
|
496
496
|
createVNode(unref(MazBtn), {
|
|
497
497
|
disabled: currentPageModel.value === totalPagesInternal.value,
|
|
498
|
-
size:
|
|
498
|
+
size: __props.inputSize ?? unref(size),
|
|
499
499
|
color: "transparent",
|
|
500
|
-
"rounded-size":
|
|
500
|
+
"rounded-size": __props.roundedSize,
|
|
501
501
|
onClick: lastPage
|
|
502
502
|
}, {
|
|
503
503
|
default: withCtx(() => [
|
|
@@ -2,7 +2,7 @@ import { defineComponent, mergeModels, useModel, ref, computed, onMounted, useTe
|
|
|
2
2
|
import { useTranslations } from "@maz-ui/translations";
|
|
3
3
|
import { useInjectStrict } from "../composables/useInjectStrict.js";
|
|
4
4
|
import MazInput from "../components/MazInput.js";
|
|
5
|
-
import { u as useLibphonenumber, a as useMazInputPhoneNumber } from "./MazInputPhoneNumber.
|
|
5
|
+
import { u as useLibphonenumber, a as useMazInputPhoneNumber } from "./MazInputPhoneNumber.CbNnLvU_.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
7
|
import '../assets/PhoneInput.C5t00d9H.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "PhoneInput",
|
|
@@ -84,23 +84,23 @@ import '../assets/PhoneInput.C5t00d9H.css';const _sfc_main = /* @__PURE__ */ def
|
|
|
84
84
|
focus: () => {
|
|
85
85
|
inputRef.value?.$el.querySelector("input")?.focus();
|
|
86
86
|
}
|
|
87
|
-
}), (_ctx, _cache) => (openBlock(), createBlock(MazInput, mergeProps({ id:
|
|
87
|
+
}), (_ctx, _cache) => (openBlock(), createBlock(MazInput, mergeProps({ id: __props.id }, { ..._ctx.$attrs, ...inputProps.value }, {
|
|
88
88
|
ref: "input",
|
|
89
89
|
modelValue: displayedPhoneNumber.value,
|
|
90
90
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => displayedPhoneNumber.value = $event),
|
|
91
|
-
disabled:
|
|
92
|
-
color:
|
|
93
|
-
error:
|
|
94
|
-
size:
|
|
95
|
-
success:
|
|
91
|
+
disabled: __props.disabled,
|
|
92
|
+
color: __props.color,
|
|
93
|
+
error: __props.error,
|
|
94
|
+
size: __props.size,
|
|
95
|
+
success: __props.success,
|
|
96
96
|
block: "",
|
|
97
|
-
name:
|
|
98
|
-
inputmode:
|
|
99
|
-
autocomplete:
|
|
97
|
+
name: __props.name,
|
|
98
|
+
inputmode: __props.inputmode,
|
|
99
|
+
autocomplete: __props.autocomplete,
|
|
100
100
|
class: ["m-phone-input", [
|
|
101
101
|
{
|
|
102
|
-
"--border-radius":
|
|
103
|
-
"--error":
|
|
102
|
+
"--border-radius": __props.hasRadius,
|
|
103
|
+
"--error": __props.error || !unref(results).isValid,
|
|
104
104
|
"--focused": inputFocused.value
|
|
105
105
|
}
|
|
106
106
|
]],
|
package/dist/chunks/{fullscreen-img.directive.e2KyfwYA.js → fullscreen-img.directive.BqO7XUdi.js}
RENAMED
|
@@ -223,7 +223,7 @@ import '../assets/fullscreen-img.BGt9mY2g.css';const _hoisted_1 = ["onKeypress"]
|
|
|
223
223
|
tabindex: "0",
|
|
224
224
|
class: normalizeClass([imageZoomClasses.value]),
|
|
225
225
|
onLoad: onImageLoaded,
|
|
226
|
-
onClick: _cache[2] || (_cache[2] = withModifiers(($event) =>
|
|
226
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => __props.zoom && toggleZoom(), ["stop"]))
|
|
227
227
|
}, null, 42, _hoisted_3),
|
|
228
228
|
withDirectives(createVNode(MazSpinner, { class: "m-fullscreen-img-loader" }, null, 512), [
|
|
229
229
|
[vShow, showLoader.value]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 24 24"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
11
|
+
createElementVNode("path", {
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"stroke-width": "1.5",
|
|
16
|
+
d: "M12 4.5v15m7.5-7.5h-15"
|
|
17
|
+
}, null, -1)
|
|
18
|
+
])]);
|
|
19
|
+
}
|
|
20
|
+
const plus = { render };
|
|
21
|
+
export {
|
|
22
|
+
plus as default,
|
|
23
|
+
render
|
|
24
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, ref, createElementBlock, openBlock, Fragment, renderList, createBlock, withCtx, createElementVNode, createVNode, unref, renderSlot, normalizeClass } from "vue";
|
|
2
|
-
import { MazPlus } from "@maz-ui/icons";
|
|
1
|
+
import { markRaw, defineAsyncComponent, defineComponent, useSlots, computed, ref, createElementBlock, openBlock, Fragment, renderList, createBlock, withCtx, createElementVNode, createVNode, unref, renderSlot, normalizeClass } from "vue";
|
|
3
2
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
4
3
|
import MazCardSpotlight from "./MazCardSpotlight.js";
|
|
5
4
|
import MazExpandAnimation from "./MazExpandAnimation.js";
|
|
6
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazAccordion.
|
|
6
|
+
import '../assets/MazAccordion.C7shz8tA.css';const MazPlus = markRaw(defineAsyncComponent(() => import("../chunks/plus.svg.CdiAbqRP.js"))), _hoisted_1 = {
|
|
8
7
|
class: "m-accordion m-reset-css",
|
|
9
8
|
role: "presentation"
|
|
10
9
|
}, _hoisted_2 = ["id", "aria-controls", "aria-expanded", "onClick"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -61,7 +60,7 @@ import '../assets/MazAccordion.DUQCf8vy.css';const _hoisted_1 = {
|
|
|
61
60
|
}, {
|
|
62
61
|
default: withCtx(() => [
|
|
63
62
|
createElementVNode("div", {
|
|
64
|
-
class: normalizeClass(["m-accordion__content",
|
|
63
|
+
class: normalizeClass(["m-accordion__content", __props.contentClass])
|
|
65
64
|
}, [
|
|
66
65
|
renderSlot(_ctx.$slots, "content", {
|
|
67
66
|
isOpen: isStepOpen(step)
|
|
@@ -78,7 +77,7 @@ import '../assets/MazAccordion.DUQCf8vy.css';const _hoisted_1 = {
|
|
|
78
77
|
}, 1024))), 128))
|
|
79
78
|
]));
|
|
80
79
|
}
|
|
81
|
-
}), MazAccordion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
80
|
+
}), MazAccordion = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-88424696"]]);
|
|
82
81
|
export {
|
|
83
82
|
MazAccordion as default
|
|
84
83
|
};
|
|
@@ -55,19 +55,19 @@ import '../assets/MazAnimatedCounter.LK7oyUrl.css';const _hoisted_1 = { class: "
|
|
|
55
55
|
}, [
|
|
56
56
|
createElementVNode("span", _hoisted_1, [
|
|
57
57
|
renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
58
|
-
createTextVNode(toDisplayString(
|
|
58
|
+
createTextVNode(toDisplayString(__props.prefix), 1)
|
|
59
59
|
], !0),
|
|
60
|
-
createTextVNode(toDisplayString(
|
|
60
|
+
createTextVNode(toDisplayString(__props.count), 1),
|
|
61
61
|
renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
62
|
-
createTextVNode(toDisplayString(
|
|
62
|
+
createTextVNode(toDisplayString(__props.suffix), 1)
|
|
63
63
|
], !0)
|
|
64
64
|
]),
|
|
65
65
|
renderSlot(_ctx.$slots, "prefix", {}, () => [
|
|
66
|
-
createTextVNode(toDisplayString(
|
|
66
|
+
createTextVNode(toDisplayString(__props.prefix), 1)
|
|
67
67
|
], !0),
|
|
68
68
|
createTextVNode(toDisplayString(currentCount.value), 1),
|
|
69
69
|
renderSlot(_ctx.$slots, "suffix", {}, () => [
|
|
70
|
-
createTextVNode(toDisplayString(
|
|
70
|
+
createTextVNode(toDisplayString(__props.suffix), 1)
|
|
71
71
|
], !0)
|
|
72
72
|
], 512));
|
|
73
73
|
}
|
|
@@ -32,7 +32,7 @@ import '../assets/MazAnimatedElement.DnsacpuB.css';const _sfc_main = /* @__PURE_
|
|
|
32
32
|
ref: element,
|
|
33
33
|
class: "m-animated-element m-reset-css --invisible",
|
|
34
34
|
style: normalizeStyle({
|
|
35
|
-
animationDuration: `${
|
|
35
|
+
animationDuration: `${__props.duration}ms`
|
|
36
36
|
})
|
|
37
37
|
}, [
|
|
38
38
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
@@ -41,13 +41,13 @@ import '../assets/MazAnimatedText.DFwgvVgF.css';const _hoisted_1 = { class: "m-r
|
|
|
41
41
|
}), onBeforeUnmount(() => {
|
|
42
42
|
observer?.disconnect(), animationFrameId && clearTimeout(animationFrameId);
|
|
43
43
|
}), (_ctx, _cache) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
44
|
-
isClient.value ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
44
|
+
isClient.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps({
|
|
45
45
|
key: 0,
|
|
46
46
|
ref_key: "element",
|
|
47
47
|
ref: element
|
|
48
48
|
}, _ctx.$attrs, {
|
|
49
49
|
class: "m-animated-text__root",
|
|
50
|
-
style: { columnGap: `${
|
|
50
|
+
style: { columnGap: `${__props.columnGap}rem`, rowGap: `${__props.rowGap}rem` }
|
|
51
51
|
}), {
|
|
52
52
|
default: withCtx(() => [
|
|
53
53
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(words.value, (word, index) => (openBlock(), createElementBlock("span", {
|
|
@@ -55,31 +55,31 @@ import '../assets/MazAnimatedText.DFwgvVgF.css';const _hoisted_1 = { class: "m-r
|
|
|
55
55
|
class: "m-animated-text__word"
|
|
56
56
|
}, [
|
|
57
57
|
createElementVNode("span", {
|
|
58
|
-
class: normalizeClass(["m-animated-text__word-inner", animatedWords.value[index] ? `maz-animate-slide-${
|
|
58
|
+
class: normalizeClass(["m-animated-text__word-inner", animatedWords.value[index] ? `maz-animate-slide-${__props.direction}-blur` : "maz-invisible"]),
|
|
59
59
|
style: normalizeStyle({
|
|
60
|
-
animationDuration: `${
|
|
60
|
+
animationDuration: `${__props.duration}ms`
|
|
61
61
|
})
|
|
62
62
|
}, toDisplayString(word), 7)
|
|
63
63
|
]))), 128)),
|
|
64
|
-
|
|
64
|
+
__props.lastWord ? (openBlock(), createElementBlock("span", {
|
|
65
65
|
key: 0,
|
|
66
|
-
class: normalizeClass(["m-animated-text__last-word", animatedWords.value[wordCount.value] ? `maz-animate-slide-${
|
|
66
|
+
class: normalizeClass(["m-animated-text__last-word", animatedWords.value[wordCount.value] ? `maz-animate-slide-${__props.direction}-blur` : "maz-invisible"]),
|
|
67
67
|
style: normalizeStyle({
|
|
68
|
-
animationDuration: `${
|
|
68
|
+
animationDuration: `${__props.duration}ms`
|
|
69
69
|
})
|
|
70
70
|
}, [
|
|
71
71
|
createElementVNode("span", _hoisted_2, [
|
|
72
72
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "m-animated-text__last-word-inner-gradient" }, null, -1)),
|
|
73
|
-
createElementVNode("span", _hoisted_3, toDisplayString(
|
|
73
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.lastWord), 1)
|
|
74
74
|
])
|
|
75
75
|
], 6)) : createCommentVNode("", !0)
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
|
-
}, 16, ["style"])) : (openBlock(), createBlock(resolveDynamicComponent(
|
|
78
|
+
}, 16, ["style"])) : (openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps({ key: 1 }, _ctx.$attrs, { class: "maz-invisible maz-inline-flex" }), {
|
|
79
79
|
default: withCtx(() => [
|
|
80
|
-
createTextVNode(toDisplayString(
|
|
81
|
-
|
|
82
|
-
createTextVNode(toDisplayString(
|
|
80
|
+
createTextVNode(toDisplayString(__props.text) + " ", 1),
|
|
81
|
+
__props.lastWord ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
82
|
+
createTextVNode(toDisplayString(__props.lastWord), 1)
|
|
83
83
|
], 64)) : createCommentVNode("", !0)
|
|
84
84
|
]),
|
|
85
85
|
_: 1
|
|
@@ -47,39 +47,39 @@ import '../assets/MazAvatar.DTiCyWfl.css';const _hoisted_1 = ["tabindex"], _hois
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
return (_ctx, _cache) => (openBlock(), createBlock(resolveDynamicComponent(componentType.value), {
|
|
50
|
-
style: normalizeStyle([{ fontSize:
|
|
50
|
+
style: normalizeStyle([{ fontSize: __props.size }, __props.style]),
|
|
51
51
|
class: normalizeClass(["m-avatar m-reset-css", [
|
|
52
52
|
{
|
|
53
53
|
"--has-link": isLink.value
|
|
54
54
|
},
|
|
55
55
|
props.class
|
|
56
56
|
]]),
|
|
57
|
-
href:
|
|
58
|
-
to:
|
|
59
|
-
target: isLink.value ?
|
|
57
|
+
href: __props.href,
|
|
58
|
+
to: __props.to,
|
|
59
|
+
target: isLink.value ? __props.target : void 0
|
|
60
60
|
}, {
|
|
61
61
|
default: withCtx(() => [
|
|
62
62
|
createElementVNode("div", {
|
|
63
63
|
class: normalizeClass(["m-avatar__wrapper", [
|
|
64
64
|
{
|
|
65
|
-
"--has-shadow": !
|
|
66
|
-
"--bordered":
|
|
67
|
-
"--clickable":
|
|
68
|
-
"--has-initial": !
|
|
65
|
+
"--has-shadow": !__props.noElevation,
|
|
66
|
+
"--bordered": __props.bordered,
|
|
67
|
+
"--clickable": __props.clickable,
|
|
68
|
+
"--has-initial": !__props.src && __props.caption
|
|
69
69
|
},
|
|
70
|
-
`--rounded-${
|
|
70
|
+
`--rounded-${__props.square ? "none" : __props.roundedSize}`
|
|
71
71
|
]]),
|
|
72
|
-
tabindex:
|
|
72
|
+
tabindex: __props.clickable ? 0 : -1
|
|
73
73
|
}, [
|
|
74
74
|
shouldDisplayImg.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
75
|
-
|
|
75
|
+
__props.loading === "intersecting" ? (openBlock(), createBlock(unref(MazLazyImg), mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
76
76
|
class: "m-avatar__picture maz-w-full maz-max-w-full",
|
|
77
|
-
src:
|
|
78
|
-
alt:
|
|
77
|
+
src: __props.src,
|
|
78
|
+
alt: __props.alt,
|
|
79
79
|
"image-height-full": "",
|
|
80
|
-
"hide-loader":
|
|
81
|
-
"fallback-src":
|
|
82
|
-
onClick: _cache[0] || (_cache[0] = ($event) =>
|
|
80
|
+
"hide-loader": __props.hideLoader,
|
|
81
|
+
"fallback-src": __props.fallbackSrc,
|
|
82
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.clickable ? _ctx.$emit("click", $event) : null),
|
|
83
83
|
onError: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("error", $event)),
|
|
84
84
|
onLoaded: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("loaded", $event)),
|
|
85
85
|
onLoading: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("loading", $event)),
|
|
@@ -87,32 +87,32 @@ import '../assets/MazAvatar.DTiCyWfl.css';const _hoisted_1 = ["tabindex"], _hois
|
|
|
87
87
|
}), null, 16, ["src", "alt", "hide-loader", "fallback-src"])) : (openBlock(), createElementBlock("img", {
|
|
88
88
|
key: 1,
|
|
89
89
|
class: "m-avatar__picture maz-w-full maz-max-w-full",
|
|
90
|
-
src:
|
|
91
|
-
alt:
|
|
92
|
-
loading:
|
|
90
|
+
src: __props.src ?? __props.fallbackSrc,
|
|
91
|
+
alt: __props.alt,
|
|
92
|
+
loading: __props.loading,
|
|
93
93
|
onError: handleImageError
|
|
94
94
|
}, null, 40, _hoisted_2))
|
|
95
95
|
], 64)) : createCommentVNode("", !0),
|
|
96
|
-
|
|
97
|
-
createElementVNode("span", _hoisted_3, toDisplayString(getInitials(
|
|
96
|
+
__props.caption && !__props.src ? renderSlot(_ctx.$slots, "round-text", { key: 1 }, () => [
|
|
97
|
+
createElementVNode("span", _hoisted_3, toDisplayString(getInitials(__props.caption)), 1)
|
|
98
98
|
], !0) : createCommentVNode("", !0),
|
|
99
|
-
|
|
99
|
+
__props.clickable ? (openBlock(), createElementBlock("button", {
|
|
100
100
|
key: 2,
|
|
101
101
|
type: "button",
|
|
102
102
|
tabindex: "-1",
|
|
103
103
|
class: "m-avatar__button",
|
|
104
104
|
style: normalizeStyle({
|
|
105
|
-
backgroundColor:
|
|
105
|
+
backgroundColor: __props.src ? `hsl(var(--maz-${__props.buttonColor}) / 60%)` : `hsl(var(--maz-${__props.buttonColor}))`
|
|
106
106
|
}),
|
|
107
107
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click", $event))
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
__props.hideClickableIcon ? createCommentVNode("", !0) : renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
110
110
|
createVNode(unref(MazPencil), { class: "m-avatar__button__icon" })
|
|
111
111
|
], !0)
|
|
112
112
|
], 4)) : createCommentVNode("", !0)
|
|
113
113
|
], 10, _hoisted_1),
|
|
114
114
|
renderSlot(_ctx.$slots, "caption", {}, () => [
|
|
115
|
-
|
|
115
|
+
__props.showCaption && __props.caption ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(__props.caption), 1)) : createCommentVNode("", !0)
|
|
116
116
|
], !0)
|
|
117
117
|
]),
|
|
118
118
|
_: 3
|
|
@@ -121,12 +121,12 @@ import '../assets/MazBackdrop.09bziTPM.css';const _hoisted_1 = ["aria-labelledby
|
|
|
121
121
|
*/
|
|
122
122
|
onKeyPress
|
|
123
123
|
}), (_ctx, _cache) => (openBlock(), createBlock(Teleport, {
|
|
124
|
-
to:
|
|
124
|
+
to: __props.teleportSelector,
|
|
125
125
|
disabled: !present.value
|
|
126
126
|
}, [
|
|
127
127
|
createVNode(Transition, {
|
|
128
128
|
appear: "",
|
|
129
|
-
name:
|
|
129
|
+
name: __props.transitionName,
|
|
130
130
|
onAfterEnter: onBackdropAnimationEnter,
|
|
131
131
|
onAfterLeave: onBackdropAnimationLeave
|
|
132
132
|
}, {
|
|
@@ -135,14 +135,14 @@ import '../assets/MazBackdrop.09bziTPM.css';const _hoisted_1 = ["aria-labelledby
|
|
|
135
135
|
key: 0,
|
|
136
136
|
class: "m-backdrop --present m-reset-css"
|
|
137
137
|
}, _ctx.$attrs, {
|
|
138
|
-
class: [
|
|
139
|
-
"aria-labelledby":
|
|
140
|
-
"aria-describedby":
|
|
138
|
+
class: [__props.backdropClass, __props.variant && `--variant-${__props.variant}`, { "--persistent": __props.persistent }],
|
|
139
|
+
"aria-labelledby": __props.ariaLabelledby,
|
|
140
|
+
"aria-describedby": __props.ariaDescribedby
|
|
141
141
|
}), [
|
|
142
142
|
createElementVNode("div", _hoisted_2, [
|
|
143
143
|
createElementVNode("div", _hoisted_3, [
|
|
144
144
|
createElementVNode("div", {
|
|
145
|
-
class: normalizeClass(["m-backdrop-content", [
|
|
145
|
+
class: normalizeClass(["m-backdrop-content", [__props.backdropContentClass, `--justify-${__props.justify}`, `--align-${__props.align}`, { "--padding": __props.contentPadding }]]),
|
|
146
146
|
role: "button",
|
|
147
147
|
tabindex: "-1",
|
|
148
148
|
onPointerdown: withModifiers(close, ["self"])
|
|
@@ -14,11 +14,11 @@ import '../assets/MazBadge.CmPr9rE1.css';const _sfc_main = /* @__PURE__ */ defin
|
|
|
14
14
|
setup(__props) {
|
|
15
15
|
return (_ctx, _cache) => (openBlock(), createElementBlock("span", {
|
|
16
16
|
class: normalizeClass(["m-badge m-reset-css", [
|
|
17
|
-
`--${unref(getColor)(
|
|
18
|
-
{ "--outlined":
|
|
19
|
-
`--rounded-${
|
|
17
|
+
`--${unref(getColor)(__props.color)}`,
|
|
18
|
+
{ "--outlined": __props.outlined, "--pastel": __props.pastel, "--nowrap": __props.nowrap },
|
|
19
|
+
`--rounded-${__props.roundedSize}`
|
|
20
20
|
]]),
|
|
21
|
-
style: normalizeStyle({ fontSize:
|
|
21
|
+
style: normalizeStyle({ fontSize: __props.size })
|
|
22
22
|
}, [
|
|
23
23
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
24
24
|
], 6));
|
|
@@ -13,7 +13,7 @@ import '../assets/MazBottomSheet.DKDf6Eet.css';const _sfc_main = /* @__PURE__ */
|
|
|
13
13
|
setup(__props, { emit: __emit }) {
|
|
14
14
|
const emits = __emit, MazBtn = defineAsyncComponent(() => import("./MazBtn.js"));
|
|
15
15
|
return (_ctx, _cache) => (openBlock(), createBlock(MazBackdrop, {
|
|
16
|
-
"model-value":
|
|
16
|
+
"model-value": __props.modelValue,
|
|
17
17
|
"transition-name": "bottom-sheet-anim",
|
|
18
18
|
"backdrop-class": "--bottom-sheet",
|
|
19
19
|
"content-padding": !1,
|
|
@@ -27,11 +27,11 @@ import '../assets/MazBottomSheet.DKDf6Eet.css';const _sfc_main = /* @__PURE__ */
|
|
|
27
27
|
default: withCtx(({ close }) => [
|
|
28
28
|
createElementVNode("div", {
|
|
29
29
|
class: normalizeClass(["m-bottom-sheet__container", {
|
|
30
|
-
"--padding":
|
|
30
|
+
"--padding": __props.padding
|
|
31
31
|
}])
|
|
32
32
|
}, [
|
|
33
33
|
renderSlot(_ctx.$slots, "default", { close }, void 0, !0),
|
|
34
|
-
|
|
34
|
+
__props.hideCloseButton ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(MazBtn), {
|
|
35
35
|
key: 0,
|
|
36
36
|
size: "sm",
|
|
37
37
|
class: "m-bottom-sheet__close",
|