maz-ui 4.7.5 → 4.7.6
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/chunks/MazAccordion.CKnz73h4.js +1 -0
- package/dist/chunks/MazAlert.B8hE7wet.js +1 -0
- package/dist/chunks/MazAnimatedCounter.GLLYbZAz.js +1 -0
- package/dist/chunks/MazAnimatedElement._8NY8WgC.js +1 -0
- package/dist/chunks/MazAnimatedText.BSZ8FNf-.js +1 -0
- package/dist/chunks/MazAvatar.vO5VNPi8.js +1 -0
- package/dist/chunks/MazBackdrop.Cjbwi8-V.js +1 -0
- package/dist/chunks/MazBadge.BBZJgHXm.js +1 -0
- package/dist/chunks/MazBottomSheet.WgZ6qobx.js +1 -0
- package/dist/chunks/MazBtn.Cc9C1v2l.js +1 -0
- package/dist/chunks/MazBtnGroup.3B1XcqWM.js +1 -0
- package/dist/chunks/MazCard.YYC0LaHY.js +1 -0
- package/dist/chunks/MazCardSpotlight.SpZF61hl.js +1 -0
- package/dist/chunks/MazCarousel.1NT4jcvR.js +1 -0
- package/dist/chunks/MazChart.CDZ2PBTC.js +1 -0
- package/dist/chunks/MazCheckbox.DurIbKdf.js +1 -0
- package/dist/chunks/MazChecklist.D9ezwGpQ.js +1 -0
- package/dist/chunks/MazCircularProgressBar.rATx_hD9.js +1 -0
- package/dist/chunks/MazContainer.zXcfMOs-.js +1 -0
- package/dist/chunks/MazDatePicker.KUP34cbV.js +1 -0
- package/dist/chunks/MazDialog.CtKF3Xzo.js +1 -0
- package/dist/chunks/MazDialogConfirm.CAAHeBPE.js +1 -0
- package/dist/chunks/MazDrawer.Dc_RGG8a.js +1 -0
- package/dist/chunks/MazDropdown.2DUcivzO.js +1 -0
- package/dist/chunks/MazDropzone.CiWiPcFM.js +1 -0
- package/dist/chunks/MazExpandAnimation.CMMwtuQA.js +1 -0
- package/dist/chunks/MazFullscreenLoader.BIVRcZJ8.js +1 -0
- package/dist/chunks/MazGallery.CEmGy0K9.js +1 -0
- package/dist/chunks/MazIcon.ZWAk25ZX.js +1 -0
- package/dist/chunks/MazInput.DJjWLaKg.js +1 -0
- package/dist/chunks/MazInputCode.DKnl3i-X.js +1 -0
- package/dist/chunks/MazInputNumber.B42Mn-9h.js +1 -0
- package/dist/chunks/MazInputPhoneNumber.CLivThtK.js +1 -0
- package/dist/chunks/MazInputPrice.BeL-M944.js +1 -0
- package/dist/chunks/MazInputTags.CIVT9F6Q.js +1 -0
- package/dist/chunks/MazLazyImg.-EMwandx.js +1 -0
- package/dist/chunks/MazLink.BOpxMATj.js +1 -0
- package/dist/chunks/MazLoadingBar.C86AX2Tk.js +1 -0
- package/dist/chunks/MazPagination.CNNKXBsg.js +1 -0
- package/dist/chunks/MazPickerCalendarDays.CSZZbk5Z.js +1 -0
- package/dist/chunks/MazPickerCalendarGrid.DrUHBH6-.js +1 -0
- package/dist/chunks/MazPickerContainer.BZ74M74V.js +1 -0
- package/dist/chunks/MazPopover.Co8BEopX.js +1 -0
- package/dist/chunks/MazPullToRefresh.DMtb6Oa3.js +1 -0
- package/dist/chunks/MazRadio.75ipjTw2.js +1 -0
- package/dist/chunks/MazRadioButtons.DenHCgB3.js +1 -0
- package/dist/chunks/MazReadMore.CDXacQIw.js +1 -0
- package/dist/chunks/MazReadingProgressBar.828Y0mxA.js +1 -0
- package/dist/chunks/MazSelect.yYFAbBb5.js +1 -0
- package/dist/chunks/MazSelectCountry.DvVgk2es.js +1 -0
- package/dist/chunks/MazSkeleton.BewTYJC2.js +1 -0
- package/dist/chunks/MazSlider.BS5QHWK6.js +1 -0
- package/dist/chunks/MazSpinner.D3NN2pow.js +1 -0
- package/dist/chunks/MazStepper.DTu8HG9T.js +1 -0
- package/dist/chunks/MazSwitch.Dvmj-rTW.js +1 -0
- package/dist/chunks/MazTable.DnOehvN6.js +1 -0
- package/dist/chunks/MazTableCell.xbm2NGWL.js +1 -0
- package/dist/chunks/MazTableRow.B5dJiXk1.js +1 -0
- package/dist/chunks/MazTableTitle.DNA_1mCy.js +1 -0
- package/dist/chunks/MazTabs.-0-YP3QQ.js +1 -0
- package/dist/chunks/MazTabsBar.D2JVKMS7.js +1 -0
- package/dist/chunks/MazTabsContent.C9omK25X.js +1 -0
- package/dist/chunks/MazTabsContentItem.mJEAS5R8.js +1 -0
- package/dist/chunks/MazTextarea.BliEP5G5.js +1 -0
- package/dist/chunks/MazUiProvider.BgN8V0lD.js +1 -0
- package/dist/chunks/_plugin-vue_export-helper.ChmETRGw.js +1 -0
- package/dist/chunks/dialog.DexeIC3K.js +1 -0
- package/dist/chunks/dom-events.BPrKJiCz.js +1 -0
- package/dist/chunks/resolveLinkComponent.DAc3sqGH.js +1 -0
- package/dist/chunks/toast.UQ8RRuT9.js +1 -0
- package/dist/chunks/types.DDbvTVqf.js +1 -0
- package/dist/chunks/useMazInputPhoneNumber.B_qQ0ldP.js +1 -0
- package/dist/chunks/utils.B8bfGQxN.js +1 -0
- package/dist/chunks/vFullscreenImg.CZeRh3mw.js +1 -0
- package/dist/chunks/vLazyImg.CXmd3Lp0.js +1 -0
- package/dist/chunks/vZoomImg.CaAHb98S.js +124 -0
- package/dist/components/MazAccordion.js +1 -86
- package/dist/components/MazAlert.js +1 -85
- package/dist/components/MazAnimatedCounter.js +1 -73
- package/dist/components/MazAnimatedElement.js +1 -44
- package/dist/components/MazAnimatedText.js +1 -103
- package/dist/components/MazAvatar.js +1 -125
- package/dist/components/MazBackdrop.js +1 -163
- package/dist/components/MazBadge.js +1 -29
- package/dist/components/MazBottomSheet.js +1 -55
- package/dist/components/MazBtn.js +1 -109
- package/dist/components/MazBtnGroup.js +1 -44
- package/dist/components/MazCard.js +1 -184
- package/dist/components/MazCardSpotlight.js +1 -81
- package/dist/components/MazCarousel.js +1 -104
- package/dist/components/MazChart.js +1 -4
- package/dist/components/MazCheckbox.js +1 -128
- package/dist/components/MazChecklist.js +1 -133
- package/dist/components/MazCircularProgressBar.js +1 -131
- package/dist/components/MazContainer.js +1 -71
- package/dist/components/MazDatePicker/MazPickerCalendar.js +1 -113
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.js +1 -19
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.js +1 -181
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.js +1 -75
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.js +1 -90
- package/dist/components/MazDatePicker/MazPickerContainer.js +1 -116
- package/dist/components/MazDatePicker/MazPickerHeader.js +1 -126
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.js +1 -82
- package/dist/components/MazDatePicker/MazPickerShortcuts.js +1 -55
- package/dist/components/MazDatePicker/MazPickerTime.js +1 -178
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.js +1 -95
- package/dist/components/MazDatePicker.js +1 -466
- package/dist/components/MazDatePicker.vue.d.ts +2 -6
- package/dist/components/MazDialog.js +1 -115
- package/dist/components/MazDialog.vue.d.ts +2 -6
- package/dist/components/MazDialogConfirm.js +1 -6
- package/dist/components/MazDialogConfirm.vue.d.ts +2 -6
- package/dist/components/MazDrawer.js +1 -70
- package/dist/components/MazDropdown.js +1 -277
- package/dist/components/MazDropdown.vue.d.ts +2 -6
- package/dist/components/MazDropzone.js +1 -533
- package/dist/components/MazExpandAnimation.js +1 -46
- package/dist/components/MazFullscreenLoader.js +1 -38
- package/dist/components/MazGallery.js +1 -105
- package/dist/components/MazIcon.js +1 -114
- package/dist/components/MazInput.js +1 -256
- package/dist/components/MazInputCode.js +1 -152
- package/dist/components/MazInputNumber.js +1 -152
- package/dist/components/MazInputPhoneNumber/PhoneInput.js +1 -114
- package/dist/components/MazInputPhoneNumber.js +1 -253
- package/dist/components/MazInputPrice.js +1 -4
- package/dist/components/MazInputTags.js +1 -145
- package/dist/components/MazLazyImg.js +1 -62
- package/dist/components/MazLink.js +1 -80
- package/dist/components/MazLoadingBar.js +1 -24
- package/dist/components/MazPagination.js +1 -184
- package/dist/components/MazPopover.js +1 -326
- package/dist/components/MazPullToRefresh.js +1 -145
- package/dist/components/MazRadio.js +1 -103
- package/dist/components/MazRadioButtons.js +1 -135
- package/dist/components/MazReadMore.js +1 -110
- package/dist/components/MazReadingProgressBar.js +1 -68
- package/dist/components/MazSelect.js +1 -413
- package/dist/components/MazSelectCountry.js +1 -192
- package/dist/components/MazSkeleton.js +1 -50
- package/dist/components/MazSlider.js +1 -205
- package/dist/components/MazSpinner.js +1 -27
- package/dist/components/MazStepper.js +1 -170
- package/dist/components/MazSwitch.js +1 -4
- package/dist/components/MazTable.js +1 -8
- package/dist/components/MazTableCell.js +1 -18
- package/dist/components/MazTableRow.js +1 -26
- package/dist/components/MazTableTitle.js +1 -18
- package/dist/components/MazTabs.js +1 -4
- package/dist/components/MazTabsBar.js +1 -138
- package/dist/components/MazTabsContent.js +1 -4
- package/dist/components/MazTabsContentItem.js +1 -37
- package/dist/components/MazTextarea.js +1 -147
- package/dist/components/MazUiProvider.js +1 -4
- package/dist/components/index.js +1 -127
- package/dist/composables/index.js +1 -44
- package/dist/composables/useAos.js +1 -7
- package/dist/composables/useBreakpoints.js +1 -34
- package/dist/composables/useDialog.js +1 -7
- package/dist/composables/useDisplayNames.js +1 -111
- package/dist/composables/useDropzone.js +1 -66
- package/dist/composables/useFormField.js +1 -101
- package/dist/composables/useFormValidator.js +1 -163
- package/dist/composables/useFreezeValue.js +1 -8
- package/dist/composables/useIdleTimeout.js +1 -10
- package/dist/composables/useInjectStrict.js +1 -10
- package/dist/composables/useInstanceUniqId.js +1 -12
- package/dist/composables/useMountComponent.js +1 -16
- package/dist/composables/useMutationObserver.js +1 -37
- package/dist/composables/useReadingTime.js +1 -33
- package/dist/composables/useStringMatching.js +1 -42
- package/dist/composables/useSwipe.js +1 -26
- package/dist/composables/useTimer.js +1 -36
- package/dist/composables/useToast.js +1 -14
- package/dist/composables/useUserVisibility.js +1 -10
- package/dist/composables/useWait.js +1 -7
- package/dist/composables/useWindowSize.js +1 -21
- package/dist/directives/index.js +1 -19
- package/dist/directives/vClickOutside.js +1 -104
- package/dist/directives/vFullscreenImg.js +1 -10
- package/dist/directives/vLazyImg.js +1 -23
- package/dist/directives/vTooltip.js +1 -161
- package/dist/directives/vZoomImg.js +1 -286
- package/dist/index.js +1 -1
- package/dist/plugins/aos.js +1 -89
- package/dist/plugins/dialog.js +1 -61
- package/dist/plugins/index.js +1 -17
- package/dist/plugins/maz-ui.js +1 -11
- package/dist/plugins/toast.js +1 -261
- package/dist/plugins/wait.js +1 -43
- package/dist/resolvers/MazComponentsResolver.js +1 -18
- package/dist/resolvers/MazDirectivesResolver.js +1 -14
- package/dist/resolvers/MazModulesResolver.js +1 -76
- package/dist/resolvers/index.js +1 -8
- package/dist/tailwindcss/index.js +1 -20
- package/dist/tailwindcss/tailwind.config.js +1 -35
- package/dist/tailwindcss/utils/colors.js +1 -25
- package/dist/tailwindcss/variables/breakpoints.js +1 -29
- package/dist/tailwindcss/variables/colors.js +1 -33
- package/dist/tailwindcss/variables/design-tokens.js +1 -42
- package/dist/tailwindcss/variables/utilities.js +1 -20
- package/dist/tailwindcss/variables/z-indexes.js +1 -17
- package/package.json +12 -13
- package/dist/chunks/MazChart.vue_vue_type_script_setup_true_lang.DpG9UYdm.js +0 -50
- package/dist/chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.BB2rYkwY.js +0 -215
- package/dist/chunks/MazInputPrice.vue_vue_type_script_setup_true_lang.DcNkyw1C.js +0 -77
- package/dist/chunks/MazSwitch.vue_vue_type_style_index_0_lang.lYfYsI0R.js +0 -84
- package/dist/chunks/MazTable.vue_vue_type_script_setup_true_lang.ycpSYFvJ.js +0 -517
- package/dist/chunks/MazTabs.vue_vue_type_script_setup_true_lang.CiIFxs7J.js +0 -28
- package/dist/chunks/MazTabsContent.vue_vue_type_script_setup_true_lang.MO7zA8LZ.js +0 -26
- package/dist/chunks/MazUiProvider.vue_vue_type_script_setup_true_lang.DtnM1DOn.js +0 -34
- package/dist/chunks/_plugin-vue_export-helper.B--vMWp3.js +0 -9
- package/dist/chunks/dom-events.DTx6Kblx.js +0 -368
- package/dist/chunks/fullscreen-img.directive.BJieSSIt.js +0 -321
- package/dist/chunks/lazy-img.directive.GRfYbidn.js +0 -174
- package/dist/chunks/resolveLinkComponent.CKR2McYy.js +0 -8
- package/dist/chunks/types.D0Bp_UhS.js +0 -6
- package/dist/chunks/useMazInputPhoneNumber.Os-2y9bz.js +0 -157
- package/dist/chunks/utils.D89Q5cCP.js +0 -207
- /package/dist/assets/{fullscreen-img.DFp1SMPU.css → vFullscreenImg.DFp1SMPU.css} +0 -0
|
@@ -1,145 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MazTrash } from "@maz-ui/icons/lazy";
|
|
3
|
-
import { truthyFilter } from "@maz-ui/utils/helpers/truthyFilter";
|
|
4
|
-
import MazBtn from "./MazBtn.js";
|
|
5
|
-
import MazInput from "./MazInput.js";
|
|
6
|
-
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazInputTags.CLr2Z8JP.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "MazInputTags",
|
|
10
|
-
props: {
|
|
11
|
-
style: { type: [Boolean, null, String, Object, Array], default: void 0 },
|
|
12
|
-
class: { type: [Boolean, null, String, Object, Array], default: void 0 },
|
|
13
|
-
modelValue: { default: void 0 },
|
|
14
|
-
placeholder: { default: void 0 },
|
|
15
|
-
label: { default: void 0 },
|
|
16
|
-
disabled: { type: Boolean, default: !1 },
|
|
17
|
-
error: { type: Boolean, default: !1 },
|
|
18
|
-
success: { type: Boolean, default: !1 },
|
|
19
|
-
warning: { type: Boolean, default: !1 },
|
|
20
|
-
size: { default: "md" },
|
|
21
|
-
color: { default: "primary" },
|
|
22
|
-
block: { type: Boolean },
|
|
23
|
-
addTagsOnBlur: { type: Boolean, default: !0 },
|
|
24
|
-
hint: {}
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:model-value"],
|
|
27
|
-
setup(__props, { emit: __emit }) {
|
|
28
|
-
const props = __props, emits = __emit, isFocused = ref(!1), inputValue = ref(), tagsHoveredId = ref(), lastIdToDelete = ref(), currentDeleteTimeout = ref(), tags = computed(
|
|
29
|
-
() => props.modelValue?.map((tag) => ({
|
|
30
|
-
tag,
|
|
31
|
-
// eslint-disable-next-line sonarjs/pseudo-random
|
|
32
|
-
id: `${Date.now()}-${Math.random().toString(36).slice(2)}`
|
|
33
|
-
}))
|
|
34
|
-
);
|
|
35
|
-
function addTags(event) {
|
|
36
|
-
if (inputValue.value) {
|
|
37
|
-
lastIdToDelete.value = void 0, event.preventDefault();
|
|
38
|
-
const newValues = inputValue.value.trim().split(",").map((value) => value.trim() === "," ? void 0 : value.trim()).filter(truthyFilter).filter(
|
|
39
|
-
(value) => !props.modelValue?.filter(truthyFilter)?.includes(value)
|
|
40
|
-
);
|
|
41
|
-
emits(
|
|
42
|
-
"update:model-value",
|
|
43
|
-
props.modelValue ? [...props.modelValue, ...newValues] : [...newValues]
|
|
44
|
-
), inputValue.value = void 0;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const borderStyle = computed(() => {
|
|
48
|
-
if (props.error)
|
|
49
|
-
return "maz-border-destructive";
|
|
50
|
-
if (props.success)
|
|
51
|
-
return "maz-border-success";
|
|
52
|
-
if (props.warning)
|
|
53
|
-
return "maz-border-warning";
|
|
54
|
-
if (isFocused.value) {
|
|
55
|
-
if (props.color === "primary")
|
|
56
|
-
return "maz-border-primary";
|
|
57
|
-
if (props.color === "secondary")
|
|
58
|
-
return "maz-border-secondary";
|
|
59
|
-
if (props.color === "info")
|
|
60
|
-
return "maz-border-info";
|
|
61
|
-
if (props.color === "destructive")
|
|
62
|
-
return "maz-border-destructive";
|
|
63
|
-
if (props.color === "success")
|
|
64
|
-
return "maz-border-success";
|
|
65
|
-
if (props.color === "warning")
|
|
66
|
-
return "maz-border-warning";
|
|
67
|
-
}
|
|
68
|
-
return "";
|
|
69
|
-
});
|
|
70
|
-
function removeLastTag() {
|
|
71
|
-
inputValue.value || tags.value && tags.value?.length === 0 || (currentDeleteTimeout.value && clearTimeout(currentDeleteTimeout.value), lastIdToDelete.value ? (removeTag(lastIdToDelete.value), lastIdToDelete.value = void 0) : (lastIdToDelete.value = tags.value?.at(-1)?.id, currentDeleteTimeout.value = setTimeout(() => {
|
|
72
|
-
lastIdToDelete.value = void 0;
|
|
73
|
-
}, 2e3)));
|
|
74
|
-
}
|
|
75
|
-
function removeTag(id) {
|
|
76
|
-
const tagsArray = tags.value?.filter((tag) => tag.id !== id).map((tag) => tag.tag);
|
|
77
|
-
emits("update:model-value", tagsArray);
|
|
78
|
-
}
|
|
79
|
-
const buttonSize = computed(() => props.size === "mini" || props.size === "xs" ? "mini" : props.size === "sm" ? "xs" : props.size === "md" ? "sm" : props.size === "lg" ? "md" : props.size === "xl" ? "lg" : props.size);
|
|
80
|
-
return (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
81
|
-
class: normalizeClass(["m-input-tags m-reset-css", [borderStyle.value, `--${__props.color}`, `--${__props.size}`, props.class, { "--block": __props.block }]]),
|
|
82
|
-
style: normalizeStyle(__props.style),
|
|
83
|
-
onFocusCapture: _cache[4] || (_cache[4] = ($event) => isFocused.value = !0),
|
|
84
|
-
onBlurCapture: _cache[5] || (_cache[5] = ($event) => isFocused.value = !1)
|
|
85
|
-
}, [
|
|
86
|
-
createVNode(TransitionGroup, { name: "maz-tags" }, {
|
|
87
|
-
default: withCtx(() => [
|
|
88
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(tags.value, ({ tag, id }, i) => (openBlock(), createElementBlock("div", {
|
|
89
|
-
key: `tag-${i}`,
|
|
90
|
-
class: "m-input-tags__wrapper"
|
|
91
|
-
}, [
|
|
92
|
-
createVNode(MazBtn, {
|
|
93
|
-
class: "m-input-tags__tag",
|
|
94
|
-
disabled: __props.disabled,
|
|
95
|
-
size: buttonSize.value,
|
|
96
|
-
color: tagsHoveredId.value === id || lastIdToDelete.value === id ? "destructive" : __props.color,
|
|
97
|
-
"right-icon": tagsHoveredId.value === id || lastIdToDelete.value === id ? unref(MazTrash) : void 0,
|
|
98
|
-
onClick: withModifiers(($event) => removeTag(id), ["stop"]),
|
|
99
|
-
onMouseenter: ($event) => tagsHoveredId.value = id,
|
|
100
|
-
onFocus: ($event) => tagsHoveredId.value = id,
|
|
101
|
-
onMouseleave: _cache[0] || (_cache[0] = ($event) => tagsHoveredId.value = void 0),
|
|
102
|
-
onBlur: _cache[1] || (_cache[1] = ($event) => tagsHoveredId.value = void 0)
|
|
103
|
-
}, {
|
|
104
|
-
default: withCtx(() => [
|
|
105
|
-
createTextVNode(toDisplayString(tag), 1)
|
|
106
|
-
]),
|
|
107
|
-
_: 2
|
|
108
|
-
}, 1032, ["disabled", "size", "color", "right-icon", "onClick", "onMouseenter", "onFocus"])
|
|
109
|
-
]))), 128))
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}),
|
|
113
|
-
createVNode(MazInput, mergeProps({
|
|
114
|
-
key: "input-tags",
|
|
115
|
-
modelValue: inputValue.value,
|
|
116
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => inputValue.value = $event)
|
|
117
|
-
}, _ctx.$attrs, {
|
|
118
|
-
placeholder: __props.placeholder,
|
|
119
|
-
label: __props.label,
|
|
120
|
-
"aria-label": __props.label || __props.placeholder,
|
|
121
|
-
error: __props.error,
|
|
122
|
-
hint: __props.hint,
|
|
123
|
-
success: __props.success,
|
|
124
|
-
warning: __props.warning,
|
|
125
|
-
disabled: __props.disabled,
|
|
126
|
-
"top-label": void 0,
|
|
127
|
-
"assistive-text": void 0,
|
|
128
|
-
color: __props.color,
|
|
129
|
-
block: __props.block,
|
|
130
|
-
size: __props.size,
|
|
131
|
-
"input-classes": "maz-w-full",
|
|
132
|
-
border: !1,
|
|
133
|
-
class: "m-input-tags__input",
|
|
134
|
-
onKeydown: [
|
|
135
|
-
withKeys(addTags, ["enter"]),
|
|
136
|
-
withKeys(removeLastTag, ["delete"])
|
|
137
|
-
],
|
|
138
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => __props.addTagsOnBlur ? addTags($event) : void 0)
|
|
139
|
-
}), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
|
|
140
|
-
], 38));
|
|
141
|
-
}
|
|
142
|
-
}), MazInputTags = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3d536bea"]]);
|
|
143
|
-
export {
|
|
144
|
-
MazInputTags as default
|
|
145
|
-
};
|
|
1
|
+
import"../chunks/MazInput.DJjWLaKg.js";import"../chunks/MazBtn.Cc9C1v2l.js";import{t as MazInputTags_default}from"../chunks/MazInputTags.CIVT9F6Q.js";export{MazInputTags_default as default};
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { d as directive } from "../chunks/lazy-img.directive.GRfYbidn.js";
|
|
3
|
-
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazLazyImg.Dbt2sxHJ.css';const _hoisted_1 = ["data-lazy-srcset", "media"], _hoisted_2 = ["alt"], _hoisted_3 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "m-lazy-img-component-loader"
|
|
7
|
-
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "MazLazyImg",
|
|
10
|
-
props: {
|
|
11
|
-
style: { type: [Boolean, null, String, Object, Array], default: void 0 },
|
|
12
|
-
class: { type: [Boolean, null, String, Object, Array], default: void 0 },
|
|
13
|
-
src: { default: void 0 },
|
|
14
|
-
alt: { default: void 0 },
|
|
15
|
-
hideLoader: { type: Boolean },
|
|
16
|
-
observerOnce: { type: Boolean, default: !0 },
|
|
17
|
-
loadOnce: { type: Boolean },
|
|
18
|
-
imageHeightFull: { type: Boolean },
|
|
19
|
-
observerOptions: { default: void 0 },
|
|
20
|
-
fallbackSrc: { default: void 0 },
|
|
21
|
-
imgClass: { type: [Boolean, null, String, Object, Array] },
|
|
22
|
-
block: { type: Boolean }
|
|
23
|
-
},
|
|
24
|
-
emits: ["intersecting", "loading", "loaded", "error"],
|
|
25
|
-
setup(__props, { emit: __emit }) {
|
|
26
|
-
const props = __props, emits = __emit, MazSpinner = defineAsyncComponent(() => import("./MazSpinner.js")), sources = computed(() => typeof props.src == "string" ? [{ srcset: props.src }] : props.src?.sources);
|
|
27
|
-
return (_ctx, _cache) => withDirectives((openBlock(), createElementBlock("picture", {
|
|
28
|
-
class: normalizeClass(["m-lazy-img-component m-reset-css", [{ "--use-loader": !__props.hideLoader, "--height-full": __props.imageHeightFull, "--block": __props.block }, props.class]]),
|
|
29
|
-
style: normalizeStyle(__props.style)
|
|
30
|
-
}, [
|
|
31
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(sources.value, ({ srcset, media }, sourceIndex) => (openBlock(), createElementBlock("source", {
|
|
32
|
-
key: sourceIndex,
|
|
33
|
-
"data-lazy-srcset": srcset,
|
|
34
|
-
media
|
|
35
|
-
}, null, 8, _hoisted_1))), 128)),
|
|
36
|
-
createElementVNode("img", mergeProps(_ctx.$attrs, {
|
|
37
|
-
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
38
|
-
loading: "lazy",
|
|
39
|
-
alt: __props.alt,
|
|
40
|
-
class: __props.imgClass
|
|
41
|
-
}), null, 16, _hoisted_2),
|
|
42
|
-
__props.hideLoader ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
43
|
-
createVNode(unref(MazSpinner), { size: "2em" })
|
|
44
|
-
])),
|
|
45
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
46
|
-
], 6)), [
|
|
47
|
-
[unref(directive), {
|
|
48
|
-
loadOnce: __props.loadOnce,
|
|
49
|
-
observerOptions: __props.observerOptions,
|
|
50
|
-
fallbackSrc: __props.fallbackSrc,
|
|
51
|
-
observerOnce: __props.observerOnce,
|
|
52
|
-
onIntersecting: (el) => emits("intersecting", el),
|
|
53
|
-
onLoading: (el) => emits("loading", el),
|
|
54
|
-
onLoaded: (el) => emits("loaded", el),
|
|
55
|
-
onError: (el) => emits("error", el)
|
|
56
|
-
}]
|
|
57
|
-
]);
|
|
58
|
-
}
|
|
59
|
-
}), MazLazyImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e0df9318"]]);
|
|
60
|
-
export {
|
|
61
|
-
MazLazyImg as default
|
|
62
|
-
};
|
|
1
|
+
import{t as MazLazyImg_default}from"../chunks/MazLazyImg.-EMwandx.js";export{MazLazyImg_default as default};
|
|
@@ -1,80 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MazArrowTopRightOnSquare } from "@maz-ui/icons/lazy";
|
|
3
|
-
import { r as resolveLinkComponent } from "../chunks/resolveLinkComponent.CKR2McYy.js";
|
|
4
|
-
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
|
|
5
|
-
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
6
|
-
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazLink.Do1HqK7J.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
inheritAttrs: !1,
|
|
9
|
-
__name: "MazLink",
|
|
10
|
-
props: {
|
|
11
|
-
class: { type: [Boolean, null, String, Object, Array] },
|
|
12
|
-
style: { type: [Boolean, null, String, Object, Array] },
|
|
13
|
-
as: {},
|
|
14
|
-
id: {},
|
|
15
|
-
title: {},
|
|
16
|
-
href: {},
|
|
17
|
-
to: {},
|
|
18
|
-
color: { default: "primary" },
|
|
19
|
-
target: { default: "_self" },
|
|
20
|
-
download: {},
|
|
21
|
-
rel: {},
|
|
22
|
-
ariaLabel: {},
|
|
23
|
-
underline: { type: Boolean, default: !1 },
|
|
24
|
-
underlineHover: { type: Boolean, default: !0 },
|
|
25
|
-
autoExternal: { type: Boolean, default: !0 },
|
|
26
|
-
leftIcon: { type: [String, Function, Object] },
|
|
27
|
-
rightIcon: { type: [String, Function, Object] },
|
|
28
|
-
disabled: { type: Boolean }
|
|
29
|
-
},
|
|
30
|
-
setup(__props) {
|
|
31
|
-
const MazIcon = defineAsyncComponent(() => import("./MazIcon.js")), instanceId = useInstanceUniqId({
|
|
32
|
-
componentName: "MazLink",
|
|
33
|
-
providedId: __props.id
|
|
34
|
-
}), component = computed(() => __props.as ? __props.as : __props.to ? resolveLinkComponent() : __props.href ? "a" : "button"), isButton = computed(() => component.value === "button");
|
|
35
|
-
return (_ctx, _cache) => (openBlock(), createBlock(resolveDynamicComponent(component.value), mergeProps({
|
|
36
|
-
id: unref(instanceId),
|
|
37
|
-
class: ["m-link m-reset-css", [
|
|
38
|
-
{
|
|
39
|
-
"--underline": __props.underline,
|
|
40
|
-
"--underline-hover": !__props.underline && __props.underlineHover
|
|
41
|
-
},
|
|
42
|
-
__props.color !== "inherit" && `--${unref(getColor)(__props.color)}`,
|
|
43
|
-
__props.class
|
|
44
|
-
]],
|
|
45
|
-
to: __props.to,
|
|
46
|
-
href: __props.href,
|
|
47
|
-
title: __props.title,
|
|
48
|
-
target: !isButton.value && __props.target,
|
|
49
|
-
rel: !isButton.value && __props.rel,
|
|
50
|
-
download: !isButton.value && __props.download,
|
|
51
|
-
"aria-label": !isButton.value && __props.ariaLabel,
|
|
52
|
-
type: isButton.value && "button",
|
|
53
|
-
disabled: isButton.value && __props.disabled,
|
|
54
|
-
style: __props.style
|
|
55
|
-
}, _ctx.$attrs), {
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
58
|
-
typeof __props.leftIcon == "string" ? (openBlock(), createBlock(unref(MazIcon), {
|
|
59
|
-
key: 0,
|
|
60
|
-
name: __props.leftIcon
|
|
61
|
-
}, null, 8, ["name"])) : __props.leftIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.leftIcon), { key: 1 })) : createCommentVNode("", !0)
|
|
62
|
-
], !0),
|
|
63
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, !0),
|
|
64
|
-
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
65
|
-
typeof __props.rightIcon == "string" ? (openBlock(), createBlock(unref(MazIcon), {
|
|
66
|
-
key: 0,
|
|
67
|
-
name: __props.rightIcon
|
|
68
|
-
}, null, 8, ["name"])) : __props.rightIcon ? (openBlock(), createBlock(resolveDynamicComponent(__props.rightIcon), { key: 1 })) : createCommentVNode("", !0)
|
|
69
|
-
], !0),
|
|
70
|
-
__props.autoExternal && __props.target === "_blank" ? renderSlot(_ctx.$slots, "external-icon", { key: 0 }, () => [
|
|
71
|
-
createVNode(unref(MazArrowTopRightOnSquare))
|
|
72
|
-
], !0) : createCommentVNode("", !0)
|
|
73
|
-
]),
|
|
74
|
-
_: 3
|
|
75
|
-
}, 16, ["id", "class", "to", "href", "title", "target", "rel", "download", "aria-label", "type", "disabled", "style"]));
|
|
76
|
-
}
|
|
77
|
-
}), MazLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-99e23af9"]]);
|
|
78
|
-
export {
|
|
79
|
-
MazLink as default
|
|
80
|
-
};
|
|
1
|
+
import{t as MazLink_default}from"../chunks/MazLink.BOpxMATj.js";export{MazLink_default as default};
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazLoadingBar.DG0kqKP4.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "MazLoadingBar",
|
|
5
|
-
props: {
|
|
6
|
-
color: { default: "primary" },
|
|
7
|
-
height: { default: "0.125rem" }
|
|
8
|
-
},
|
|
9
|
-
setup(__props) {
|
|
10
|
-
const props = __props, colorCSSVariables = computed(() => ({
|
|
11
|
-
alpha: `hsl(var(--maz-${props.color}) / 20%)`,
|
|
12
|
-
main: `hsl(var(--maz-${props.color}))`
|
|
13
|
-
}));
|
|
14
|
-
return (_ctx, _cache) => (openBlock(), createElementBlock("div", {
|
|
15
|
-
class: "m-loading-bar m-reset-css",
|
|
16
|
-
style: normalizeStyle([{ "--loading-bar-height": __props.height, "--loading-bar-color": colorCSSVariables.value.alpha, "--loading-bar-main-color": colorCSSVariables.value.main }])
|
|
17
|
-
}, [..._cache[0] || (_cache[0] = [
|
|
18
|
-
createElementVNode("div", null, null, -1)
|
|
19
|
-
])], 4));
|
|
20
|
-
}
|
|
21
|
-
}), MazLoadingBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b0665f8b"]]);
|
|
22
|
-
export {
|
|
23
|
-
MazLoadingBar as default
|
|
24
|
-
};
|
|
1
|
+
import{t as MazLoadingBar_default}from"../chunks/MazLoadingBar.C86AX2Tk.js";export{MazLoadingBar_default as default};
|
|
@@ -1,184 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MazEllipsisHorizontal } from "@maz-ui/icons/lazy";
|
|
3
|
-
import { MazChevronDoubleLeft, MazChevronLeft } from "@maz-ui/icons/static";
|
|
4
|
-
import { useTranslations } from "@maz-ui/translations/composables/useTranslations";
|
|
5
|
-
import MazBtn from "./MazBtn.js";
|
|
6
|
-
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazPagination.CxP8VWxd.css';const _hoisted_1 = ["aria-label"], _hoisted_2 = { class: "maz-sr-only" }, _hoisted_3 = { class: "maz-sr-only" }, _hoisted_4 = ["id"], _hoisted_5 = { class: "maz-sr-only" }, _hoisted_6 = { class: "maz-sr-only" }, _hoisted_7 = { class: "maz-sr-only" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "MazPagination",
|
|
9
|
-
props: {
|
|
10
|
-
modelValue: { default: 1 },
|
|
11
|
-
buttonProps: {},
|
|
12
|
-
activeColor: { default: "background" },
|
|
13
|
-
size: { default: "md" },
|
|
14
|
-
totalPages: {},
|
|
15
|
-
pageRange: { default: 1 },
|
|
16
|
-
loading: { type: Boolean }
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:model-value"],
|
|
19
|
-
setup(__props, { emit: __emit }) {
|
|
20
|
-
const emits = __emit, DEFAULT_BUTTONS_PROPS = {
|
|
21
|
-
size: "md",
|
|
22
|
-
color: "background",
|
|
23
|
-
outlined: !0,
|
|
24
|
-
fab: !0
|
|
25
|
-
}, { t } = useTranslations(), buttonsPropsMerged = computed(() => ({
|
|
26
|
-
...DEFAULT_BUTTONS_PROPS,
|
|
27
|
-
...__props.buttonProps
|
|
28
|
-
})), previousPage = computed(() => __props.modelValue > 1 ? __props.modelValue - 1 : 1), nextPage = computed(
|
|
29
|
-
() => __props.modelValue < __props.totalPages ? __props.modelValue + 1 : __props.totalPages
|
|
30
|
-
), allPages = computed(
|
|
31
|
-
() => Array.from({ length: __props.totalPages }, (_, index) => {
|
|
32
|
-
const itemNumber = index + 1;
|
|
33
|
-
return {
|
|
34
|
-
number: itemNumber,
|
|
35
|
-
isActive: itemNumber === __props.modelValue,
|
|
36
|
-
loading: itemNumber === __props.modelValue && __props.loading
|
|
37
|
-
};
|
|
38
|
-
})
|
|
39
|
-
), firstOne = computed(
|
|
40
|
-
() => __props.modelValue - __props.pageRange > 1 ? allPages.value.slice(0, 1) : []
|
|
41
|
-
), lastOne = computed(
|
|
42
|
-
() => __props.modelValue < __props.totalPages - __props.pageRange ? allPages.value.slice(-1) : []
|
|
43
|
-
), rangeStartAt = computed(() => {
|
|
44
|
-
const baseStart = __props.modelValue - __props.pageRange - 1;
|
|
45
|
-
return baseStart < 0 ? 0 : baseStart > __props.totalPages - __props.pageRange ? __props.totalPages - __props.pageRange : baseStart;
|
|
46
|
-
}), rangeEndAt = computed(() => {
|
|
47
|
-
const baseEnd = __props.modelValue + __props.pageRange;
|
|
48
|
-
return baseEnd > __props.totalPages ? __props.totalPages : baseEnd < __props.pageRange ? __props.pageRange : baseEnd;
|
|
49
|
-
}), range = computed(() => allPages.value.slice(rangeStartAt.value, rangeEndAt.value)), firstDivider = computed(
|
|
50
|
-
() => __props.modelValue - __props.pageRange > 2 ? [{ divider: !0 }] : []
|
|
51
|
-
), lastDivider = computed(
|
|
52
|
-
() => __props.modelValue < __props.totalPages - __props.pageRange - 1 ? [{ divider: !0 }] : []
|
|
53
|
-
), pages = computed(() => [
|
|
54
|
-
...firstOne.value,
|
|
55
|
-
...firstDivider.value,
|
|
56
|
-
...range.value,
|
|
57
|
-
...lastDivider.value,
|
|
58
|
-
...lastOne.value
|
|
59
|
-
]);
|
|
60
|
-
function setPageNumber(page) {
|
|
61
|
-
page !== __props.modelValue && emits("update:model-value", page);
|
|
62
|
-
}
|
|
63
|
-
return (_ctx, _cache) => (openBlock(), createElementBlock("nav", {
|
|
64
|
-
class: "m-pagination m-reset-css",
|
|
65
|
-
role: "navigation",
|
|
66
|
-
"aria-label": unref(t)("pagination.navAriaLabel")
|
|
67
|
-
}, [
|
|
68
|
-
createElementVNode("ul", null, [
|
|
69
|
-
createElementVNode("li", null, [
|
|
70
|
-
createVNode(MazBtn, mergeProps(buttonsPropsMerged.value, {
|
|
71
|
-
disabled: __props.modelValue === 1,
|
|
72
|
-
"aria-label": "First Page, Page 1",
|
|
73
|
-
size: __props.size,
|
|
74
|
-
onClick: _cache[0] || (_cache[0] = ($event) => setPageNumber(1))
|
|
75
|
-
}), {
|
|
76
|
-
default: withCtx(() => [
|
|
77
|
-
createElementVNode("span", _hoisted_2, [
|
|
78
|
-
renderSlot(_ctx.$slots, "first-page-sr", { page: 1 }, () => [
|
|
79
|
-
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.firstPage", { page: 1 })), 1)
|
|
80
|
-
], !0)
|
|
81
|
-
]),
|
|
82
|
-
createVNode(unref(MazChevronDoubleLeft))
|
|
83
|
-
]),
|
|
84
|
-
_: 3
|
|
85
|
-
}, 16, ["disabled", "size"])
|
|
86
|
-
]),
|
|
87
|
-
createElementVNode("li", null, [
|
|
88
|
-
createVNode(MazBtn, mergeProps(buttonsPropsMerged.value, {
|
|
89
|
-
disabled: __props.modelValue === 1,
|
|
90
|
-
"aria-label": `Previous Page, Page ${previousPage.value}`,
|
|
91
|
-
size: __props.size,
|
|
92
|
-
onClick: _cache[1] || (_cache[1] = ($event) => setPageNumber(previousPage.value))
|
|
93
|
-
}), {
|
|
94
|
-
default: withCtx(() => [
|
|
95
|
-
createElementVNode("span", _hoisted_3, [
|
|
96
|
-
renderSlot(_ctx.$slots, "previous-page-sr", { page: previousPage.value }, () => [
|
|
97
|
-
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.previousPage", { page: previousPage.value })), 1)
|
|
98
|
-
], !0)
|
|
99
|
-
]),
|
|
100
|
-
createVNode(unref(MazChevronLeft))
|
|
101
|
-
]),
|
|
102
|
-
_: 3
|
|
103
|
-
}, 16, ["disabled", "aria-label", "size"])
|
|
104
|
-
]),
|
|
105
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(pages.value, (page, i) => (openBlock(), createElementBlock("li", {
|
|
106
|
-
id: "number" in page ? `button-${i}-${page.number}` : `ellipsis-${i}`,
|
|
107
|
-
key: "number" in page ? `button-${i}-${page.number}` : `ellipsis-${i}`
|
|
108
|
-
}, [
|
|
109
|
-
"number" in page ? (openBlock(), createBlock(MazBtn, mergeProps({
|
|
110
|
-
key: 0,
|
|
111
|
-
ref_for: !0
|
|
112
|
-
}, {
|
|
113
|
-
...buttonsPropsMerged.value,
|
|
114
|
-
color: page.isActive ? __props.activeColor : buttonsPropsMerged.value.color,
|
|
115
|
-
outlined: page.isActive ? !1 : buttonsPropsMerged.value.outlined
|
|
116
|
-
}, {
|
|
117
|
-
size: __props.size,
|
|
118
|
-
"aria-label": `Page ${page.number}`,
|
|
119
|
-
"aria-current": page.isActive ? "page" : void 0,
|
|
120
|
-
loading: page.loading,
|
|
121
|
-
class: { active: page.isActive },
|
|
122
|
-
onClick: ($event) => page.isActive ? void 0 : setPageNumber(page.number)
|
|
123
|
-
}), {
|
|
124
|
-
default: withCtx(() => [
|
|
125
|
-
createElementVNode("span", _hoisted_5, [
|
|
126
|
-
renderSlot(_ctx.$slots, "page-sr", {
|
|
127
|
-
page: page.number
|
|
128
|
-
}, () => [
|
|
129
|
-
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.page", { page: page.number })), 1)
|
|
130
|
-
], !0)
|
|
131
|
-
]),
|
|
132
|
-
createTextVNode(" " + toDisplayString(page.number), 1)
|
|
133
|
-
]),
|
|
134
|
-
_: 2
|
|
135
|
-
}, 1040, ["size", "aria-label", "aria-current", "loading", "class", "onClick"])) : page.divider ? (openBlock(), createElementBlock("div", mergeProps({
|
|
136
|
-
key: 1,
|
|
137
|
-
ref_for: !0
|
|
138
|
-
}, buttonsPropsMerged.value, { class: "flex-center flex p-2" }), [
|
|
139
|
-
createVNode(unref(MazEllipsisHorizontal))
|
|
140
|
-
], 16)) : createCommentVNode("", !0)
|
|
141
|
-
], 8, _hoisted_4))), 128)),
|
|
142
|
-
createElementVNode("li", null, [
|
|
143
|
-
createVNode(MazBtn, mergeProps(buttonsPropsMerged.value, {
|
|
144
|
-
disabled: __props.modelValue === __props.totalPages,
|
|
145
|
-
"aria-label": `Next Page, Page ${nextPage.value}`,
|
|
146
|
-
size: __props.size,
|
|
147
|
-
onClick: _cache[2] || (_cache[2] = ($event) => setPageNumber(nextPage.value))
|
|
148
|
-
}), {
|
|
149
|
-
default: withCtx(() => [
|
|
150
|
-
createElementVNode("span", _hoisted_6, [
|
|
151
|
-
renderSlot(_ctx.$slots, "next-page-sr", { page: nextPage.value }, () => [
|
|
152
|
-
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.nextPage", { page: nextPage.value })), 1)
|
|
153
|
-
], !0)
|
|
154
|
-
]),
|
|
155
|
-
createVNode(unref(MazChevronLeft), { class: "-maz-rotate-180" })
|
|
156
|
-
]),
|
|
157
|
-
_: 3
|
|
158
|
-
}, 16, ["disabled", "aria-label", "size"])
|
|
159
|
-
]),
|
|
160
|
-
createElementVNode("li", null, [
|
|
161
|
-
createVNode(MazBtn, mergeProps(buttonsPropsMerged.value, {
|
|
162
|
-
disabled: __props.modelValue === __props.totalPages,
|
|
163
|
-
"aria-label": `Next Page, Page ${__props.totalPages}`,
|
|
164
|
-
size: __props.size,
|
|
165
|
-
onClick: _cache[3] || (_cache[3] = ($event) => setPageNumber(__props.totalPages))
|
|
166
|
-
}), {
|
|
167
|
-
default: withCtx(() => [
|
|
168
|
-
createElementVNode("span", _hoisted_7, [
|
|
169
|
-
renderSlot(_ctx.$slots, "last-page-sr", { page: __props.totalPages }, () => [
|
|
170
|
-
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.lastPage", { page: __props.totalPages })), 1)
|
|
171
|
-
], !0)
|
|
172
|
-
]),
|
|
173
|
-
createVNode(unref(MazChevronDoubleLeft), { class: "-maz-rotate-180" })
|
|
174
|
-
]),
|
|
175
|
-
_: 3
|
|
176
|
-
}, 16, ["disabled", "aria-label", "size"])
|
|
177
|
-
])
|
|
178
|
-
])
|
|
179
|
-
], 8, _hoisted_1));
|
|
180
|
-
}
|
|
181
|
-
}), MazPagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d7ac69d1"]]);
|
|
182
|
-
export {
|
|
183
|
-
MazPagination as default
|
|
184
|
-
};
|
|
1
|
+
import"../chunks/MazBtn.Cc9C1v2l.js";import{t as MazPagination_default}from"../chunks/MazPagination.CNNKXBsg.js";export{MazPagination_default as default};
|