maz-ui 3.47.2-beta.0 → 3.47.2-beta.2
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/components/MazAccordion.mjs +36 -37
- package/components/MazAnimatedCounter.mjs +14 -16
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.mjs +23 -32
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +66 -71
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +162 -185
- package/components/MazExpandAnimation.mjs +20 -21
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +30 -31
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLink.mjs +18 -30
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.mjs +37 -42
- package/components/MazRadioButtons.mjs +61 -66
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +107 -116
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +24 -28
- package/components/MazTable.d.ts +6 -6
- package/components/MazTable.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTextarea.mjs +32 -34
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazBadge-CvIiiTdM.mjs → MazBadge-CqppWg2j.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-CGRvZmGd.mjs} +28 -29
- package/{modules/chunks/MazBtn-BSnVxud6.mjs → components/chunks/MazBtn-2VKM1wZu.mjs} +37 -49
- package/components/chunks/{MazBtn-DVkwISlp.mjs → MazBtn-40lm8-AL.mjs} +37 -49
- package/components/chunks/{MazBtn-DzBXfedt.mjs → MazBtn-BB1FyYWv.mjs} +35 -44
- package/components/chunks/{MazBtn-BO3G90L3.mjs → MazBtn-BMYXMZuX.mjs} +37 -49
- package/components/chunks/{MazBtn-DJOUeES7.mjs → MazBtn-BijEMn4r.mjs} +37 -49
- package/components/chunks/MazBtn-BmrcK2af.mjs +106 -0
- package/components/chunks/MazBtn-C72_1uvu.mjs +106 -0
- package/components/chunks/MazBtn-CWloP6MI.mjs +111 -0
- package/components/chunks/MazBtn-CcyV4DCc.mjs +106 -0
- package/components/chunks/MazBtn-DENEMy-c.mjs +106 -0
- package/components/chunks/MazBtn-DfqRZvbB.mjs +106 -0
- package/components/chunks/MazBtn-UnZQuu6P.mjs +106 -0
- package/components/chunks/MazBtn-cDJlUVVY.mjs +106 -0
- package/components/chunks/MazBtn-hUslV7wO.mjs +106 -0
- package/components/chunks/{MazCard-FSXmHyhj.mjs → MazCard-BYB8y1_u.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-DccWVW8H.mjs} +20 -21
- package/components/chunks/{MazCheckbox-2G4VkxDz.mjs → MazCheckbox-B22OcHt8.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Cq9gpTEw.mjs → MazCheckbox-DMogZVHl.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BmnqBHaY.mjs → MazCheckbox-Db6sPUbV.mjs} +1 -1
- package/components/chunks/{MazChecklist-CY1Cv70T.mjs → MazChecklist-C95Y4Hb-.mjs} +112 -118
- package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-khofH-7I.mjs} +66 -81
- package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +488 -0
- package/components/chunks/{MazExpandAnimation-Bkw_wFTi.mjs → MazExpandAnimation-MDimlZGj.mjs} +7 -8
- package/components/chunks/{MazGallery-BknvUeo1.mjs → MazGallery-CXQiXWFr.mjs} +32 -33
- package/components/chunks/{MazGallery-CZOokGAt.mjs → MazGallery-VTZUhBKC.mjs} +33 -34
- package/components/chunks/{MazIcon-z-jTiuyI.mjs → MazIcon-BF5TFzse.mjs} +1 -1
- package/components/chunks/{MazInput-oOA7gdLO.mjs → MazInput-DC3S-CVu.mjs} +44 -53
- package/components/chunks/{MazInput-BQoQSRyL.mjs → MazInput-DzWkS-g8.mjs} +40 -49
- package/components/chunks/{MazInput-CJQB68c-.mjs → MazInput-NE6H-10w.mjs} +42 -51
- package/components/chunks/{MazInputNumber-B4mQJcVB.mjs → MazInputNumber-DRXQXHRv.mjs} +168 -189
- package/components/chunks/{MazInputPrice-BrxE5WVf.mjs → MazInputPrice-DoTnDDIN.mjs} +49 -58
- package/components/chunks/{MazInputTags-BVCej_gW.mjs → MazInputTags-Dj3sW-e5.mjs} +181 -202
- package/components/chunks/{MazLink-Dl9ePCGm.mjs → MazLink-C_3Wya94.mjs} +19 -31
- package/components/chunks/{MazLoadingBar-Dwf55oHy.mjs → MazLoadingBar-DdjHRC7g.mjs} +1 -1
- package/components/chunks/MazPagination-BkT4_LLW.mjs +330 -0
- package/components/chunks/{MazPhoneNumberInput-Cd25AzXc.mjs → MazPhoneNumberInput-BbssOUzo.mjs} +500 -544
- package/components/chunks/{MazPicker-C78yxilJ.mjs → MazPicker-DwWiIYAR.mjs} +243 -264
- package/components/chunks/{MazPickerMonthSwitcher-CyHYx8TT.mjs → MazPickerMonthSwitcher-CmFFQoPA.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Bsi8cnox.mjs → MazPickerShortcuts-DaELz7aq.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DLUSMAtz.mjs → MazPickerYearSwitcher-m1_KXnpA.mjs} +1 -1
- package/components/chunks/{MazSelect-CQDoUpgp.mjs → MazSelect-BJ07NVXQ.mjs} +149 -170
- package/components/chunks/{MazSelect-uCJPMXF-.mjs → MazSelect-CDV9Fx6m.mjs} +124 -136
- package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-Bb3f2t6w.mjs} +1 -1
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BcB0szZB.mjs} +1 -1
- package/components/chunks/{MazSpinner-BT_717pD.mjs → MazSpinner-BpkPcfCt.mjs} +1 -1
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-BsYJDmi9.mjs} +1 -1
- package/components/chunks/{MazSpinner-B9OwpEP_.mjs → MazSpinner-BymqEMBk.mjs} +1 -1
- package/components/chunks/MazSpinner-C-64WJje.mjs +34 -0
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +34 -0
- package/components/chunks/{MazSpinner-EFo8dM46.mjs → MazSpinner-CfiIXW8y.mjs} +1 -1
- package/components/chunks/MazSpinner-CykRbNHD.mjs +34 -0
- package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-D3-pqOh3.mjs} +1 -1
- package/components/chunks/MazSpinner-DS58mtzm.mjs +34 -0
- package/components/chunks/{MazSpinner-2D0ZmAQz.mjs → MazSpinner-DmiLBQgR.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1Ip-Dwh.mjs → MazSpinner-Dmkr_r9u.mjs} +1 -1
- package/components/chunks/MazSpinner-DoRGA1RI.mjs +34 -0
- package/components/chunks/MazSpinner-eC03bFP5.mjs +34 -0
- package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-edxn0ncQ.mjs} +1 -1
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +34 -0
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +34 -0
- package/components/chunks/MazStepper-BREfkpUb.mjs +213 -0
- package/components/chunks/{MazTable-Cuz5QI08.mjs → MazTable-BJDPdIJB.mjs} +183 -227
- package/components/chunks/{MazTableCell-D_OTOJiy.mjs → MazTableCell-DILuUCTe.mjs} +1 -1
- package/components/chunks/{MazTableRow-BTcVAyOy.mjs → MazTableRow-D6H6-c8J.mjs} +1 -1
- package/components/chunks/{MazTableTitle-BDA9G6Zw.mjs → MazTableTitle-Ch-nyY1E.mjs} +1 -1
- package/components/chunks/MazTabsBar-CM-w7V97.mjs +193 -0
- package/components/chunks/{MazTransitionExpand-C-FHhOGB.mjs → MazTransitionExpand-PmUDa51_.mjs} +1 -1
- package/modules/chunks/MazBtn-B_Xlvgbg.cjs +1 -0
- package/modules/chunks/MazBtn-Dsr06Zgg.mjs +106 -0
- package/modules/chunks/{MazIcon-dhyR9Q8a.cjs → MazIcon-CkuzyufF.cjs} +1 -1
- package/modules/chunks/{MazIcon-DllGg8tw.mjs → MazIcon-DEgoQbMj.mjs} +1 -1
- package/modules/chunks/{MazSpinner-bdGjxsu6.mjs → MazSpinner-BurN-1pb.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CiIyZ8gs.cjs → MazSpinner-jP4QsCNE.cjs} +1 -1
- package/modules/chunks/index-CUNN0eIB.cjs +124 -0
- package/modules/chunks/{index-x2F1l5sr.mjs → index-CxFUggmu.mjs} +257 -292
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazTable.vue.d.ts +6 -6
- package/types/modules/composables/useFormValidator/types.d.ts +5 -1
- package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +2 -2
- package/types/modules/composables/useFormValidator/utils.d.ts +12 -12
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-C87UEsVs.mjs +0 -118
- package/components/chunks/MazBtn-C_l3xuAh.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DadFupkY.mjs +0 -118
- package/components/chunks/MazBtn-GGcGrIH4.mjs +0 -118
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazSpinner-C23CZ_Za.mjs +0 -34
- package/components/chunks/MazSpinner-CViChjTw.mjs +0 -34
- package/components/chunks/MazSpinner-CZMBhCOJ.mjs +0 -34
- package/components/chunks/MazSpinner-D4C84xZe.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-u8WQTgUR.mjs +0 -34
- package/components/chunks/MazSpinner-w-S5uCxg.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTabsBar-JkRzMDM6.mjs +0 -203
- package/modules/chunks/MazBtn-Bf9Cq5M7.cjs +0 -9
- package/modules/chunks/index-BPqjUr5e.cjs +0 -149
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
+
import { _ as L } from "./MazBottomSheet-CGRvZmGd.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const N = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, P = /* @__PURE__ */ w({
|
|
7
|
+
__name: "MazBtn",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "button" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
type: { default: "button" },
|
|
13
|
+
rounded: { type: Boolean },
|
|
14
|
+
roundedSize: { default: "lg" },
|
|
15
|
+
noRounded: { type: Boolean },
|
|
16
|
+
outline: { type: Boolean },
|
|
17
|
+
pastel: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
noUnderline: { type: Boolean },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
fab: { type: Boolean },
|
|
23
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
+
noPadding: { type: Boolean },
|
|
27
|
+
noElevation: { type: Boolean },
|
|
28
|
+
justify: { default: "center" }
|
|
29
|
+
},
|
|
30
|
+
setup(z) {
|
|
31
|
+
const n = z, b = v(() => import("./MazSpinner-BymqEMBk.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), m = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
+
disabled: m.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
M.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": m.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: F.value
|
|
59
|
+
}, {
|
|
60
|
+
default: R(() => [
|
|
61
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
+
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
+
key: 0,
|
|
64
|
+
name: e.leftIcon,
|
|
65
|
+
class: l([s.value])
|
|
66
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: l([s.value])
|
|
69
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
+
], !0),
|
|
71
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
+
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
+
key: 0,
|
|
74
|
+
name: e.icon,
|
|
75
|
+
class: l([s.value])
|
|
76
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: l([s.value])
|
|
79
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
+
], !0) : i("v-if", !0),
|
|
81
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
+
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
+
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
+
key: 0,
|
|
85
|
+
name: e.rightIcon,
|
|
86
|
+
class: l([s.value])
|
|
87
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: l([s.value])
|
|
90
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
+
], !0) : i("v-if", !0),
|
|
92
|
+
B.value ? (t(), A("div", N, [
|
|
93
|
+
D(d(b), {
|
|
94
|
+
size: "2em",
|
|
95
|
+
color: e.color
|
|
96
|
+
}, null, 8, ["color"])
|
|
97
|
+
])) : i("v-if", !0)
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
/* FORWARDED */
|
|
101
|
+
}, 8, ["disabled", "class", "type"]));
|
|
102
|
+
}
|
|
103
|
+
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
+
export {
|
|
105
|
+
q as default
|
|
106
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
+
import { _ as L } from "./MazChecklist-C95Y4Hb-.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const N = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, P = /* @__PURE__ */ w({
|
|
7
|
+
__name: "MazBtn",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "button" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
type: { default: "button" },
|
|
13
|
+
rounded: { type: Boolean },
|
|
14
|
+
roundedSize: { default: "lg" },
|
|
15
|
+
noRounded: { type: Boolean },
|
|
16
|
+
outline: { type: Boolean },
|
|
17
|
+
pastel: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
noUnderline: { type: Boolean },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
fab: { type: Boolean },
|
|
23
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
+
noPadding: { type: Boolean },
|
|
27
|
+
noElevation: { type: Boolean },
|
|
28
|
+
justify: { default: "center" }
|
|
29
|
+
},
|
|
30
|
+
setup(z) {
|
|
31
|
+
const n = z, b = v(() => import("./MazSpinner-Dmkr_r9u.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), m = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
+
disabled: m.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
M.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": m.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: F.value
|
|
59
|
+
}, {
|
|
60
|
+
default: R(() => [
|
|
61
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
+
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
+
key: 0,
|
|
64
|
+
name: e.leftIcon,
|
|
65
|
+
class: l([s.value])
|
|
66
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: l([s.value])
|
|
69
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
+
], !0),
|
|
71
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
+
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
+
key: 0,
|
|
74
|
+
name: e.icon,
|
|
75
|
+
class: l([s.value])
|
|
76
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: l([s.value])
|
|
79
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
+
], !0) : i("v-if", !0),
|
|
81
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
+
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
+
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
+
key: 0,
|
|
85
|
+
name: e.rightIcon,
|
|
86
|
+
class: l([s.value])
|
|
87
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: l([s.value])
|
|
90
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
+
], !0) : i("v-if", !0),
|
|
92
|
+
B.value ? (t(), A("div", N, [
|
|
93
|
+
D(d(b), {
|
|
94
|
+
size: "2em",
|
|
95
|
+
color: e.color
|
|
96
|
+
}, null, 8, ["color"])
|
|
97
|
+
])) : i("v-if", !0)
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
/* FORWARDED */
|
|
101
|
+
}, 8, ["disabled", "class", "type"]));
|
|
102
|
+
}
|
|
103
|
+
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
+
export {
|
|
105
|
+
q as default
|
|
106
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
+
import { _ as L } from "./MazCard-BYB8y1_u.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const N = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, P = /* @__PURE__ */ w({
|
|
7
|
+
__name: "MazBtn",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "button" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
type: { default: "button" },
|
|
13
|
+
rounded: { type: Boolean },
|
|
14
|
+
roundedSize: { default: "lg" },
|
|
15
|
+
noRounded: { type: Boolean },
|
|
16
|
+
outline: { type: Boolean },
|
|
17
|
+
pastel: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
noUnderline: { type: Boolean },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
fab: { type: Boolean },
|
|
23
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
+
noPadding: { type: Boolean },
|
|
27
|
+
noElevation: { type: Boolean },
|
|
28
|
+
justify: { default: "center" }
|
|
29
|
+
},
|
|
30
|
+
setup(z) {
|
|
31
|
+
const n = z, b = v(() => import("./MazSpinner-DmiLBQgR.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), m = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
+
disabled: m.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
M.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": m.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: F.value
|
|
59
|
+
}, {
|
|
60
|
+
default: R(() => [
|
|
61
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
+
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
+
key: 0,
|
|
64
|
+
name: e.leftIcon,
|
|
65
|
+
class: l([s.value])
|
|
66
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: l([s.value])
|
|
69
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
+
], !0),
|
|
71
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
+
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
+
key: 0,
|
|
74
|
+
name: e.icon,
|
|
75
|
+
class: l([s.value])
|
|
76
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: l([s.value])
|
|
79
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
+
], !0) : i("v-if", !0),
|
|
81
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
+
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
+
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
+
key: 0,
|
|
85
|
+
name: e.rightIcon,
|
|
86
|
+
class: l([s.value])
|
|
87
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: l([s.value])
|
|
90
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
+
], !0) : i("v-if", !0),
|
|
92
|
+
B.value ? (t(), A("div", N, [
|
|
93
|
+
D(d(b), {
|
|
94
|
+
size: "2em",
|
|
95
|
+
color: e.color
|
|
96
|
+
}, null, 8, ["color"])
|
|
97
|
+
])) : i("v-if", !0)
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
/* FORWARDED */
|
|
101
|
+
}, 8, ["disabled", "class", "type"]));
|
|
102
|
+
}
|
|
103
|
+
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
+
export {
|
|
105
|
+
q as default
|
|
106
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
+
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const N = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, P = /* @__PURE__ */ w({
|
|
7
|
+
__name: "MazBtn",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "button" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
type: { default: "button" },
|
|
13
|
+
rounded: { type: Boolean },
|
|
14
|
+
roundedSize: { default: "lg" },
|
|
15
|
+
noRounded: { type: Boolean },
|
|
16
|
+
outline: { type: Boolean },
|
|
17
|
+
pastel: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
noUnderline: { type: Boolean },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
fab: { type: Boolean },
|
|
23
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
+
noPadding: { type: Boolean },
|
|
27
|
+
noElevation: { type: Boolean },
|
|
28
|
+
justify: { default: "center" }
|
|
29
|
+
},
|
|
30
|
+
setup(z) {
|
|
31
|
+
const n = z, b = v(() => import("./MazSpinner-yr9xVdAa.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), m = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
+
disabled: m.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
M.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": m.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: F.value
|
|
59
|
+
}, {
|
|
60
|
+
default: R(() => [
|
|
61
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
+
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
+
key: 0,
|
|
64
|
+
name: e.leftIcon,
|
|
65
|
+
class: l([s.value])
|
|
66
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: l([s.value])
|
|
69
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
+
], !0),
|
|
71
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
+
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
+
key: 0,
|
|
74
|
+
name: e.icon,
|
|
75
|
+
class: l([s.value])
|
|
76
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: l([s.value])
|
|
79
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
+
], !0) : i("v-if", !0),
|
|
81
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
+
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
+
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
+
key: 0,
|
|
85
|
+
name: e.rightIcon,
|
|
86
|
+
class: l([s.value])
|
|
87
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: l([s.value])
|
|
90
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
+
], !0) : i("v-if", !0),
|
|
92
|
+
B.value ? (t(), A("div", N, [
|
|
93
|
+
D(d(b), {
|
|
94
|
+
size: "2em",
|
|
95
|
+
color: e.color
|
|
96
|
+
}, null, 8, ["color"])
|
|
97
|
+
])) : i("v-if", !0)
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
/* FORWARDED */
|
|
101
|
+
}, 8, ["disabled", "class", "type"]));
|
|
102
|
+
}
|
|
103
|
+
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
+
export {
|
|
105
|
+
q as default
|
|
106
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
+
import { _ as L } from "./MazInput-DzWkS-g8.mjs";
|
|
3
|
+
import '../assets/MazBtn.css';const N = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "m-btn-loader-container"
|
|
6
|
+
}, P = /* @__PURE__ */ w({
|
|
7
|
+
__name: "MazBtn",
|
|
8
|
+
props: {
|
|
9
|
+
variant: { default: "button" },
|
|
10
|
+
size: { default: "md" },
|
|
11
|
+
color: { default: "primary" },
|
|
12
|
+
type: { default: "button" },
|
|
13
|
+
rounded: { type: Boolean },
|
|
14
|
+
roundedSize: { default: "lg" },
|
|
15
|
+
noRounded: { type: Boolean },
|
|
16
|
+
outline: { type: Boolean },
|
|
17
|
+
pastel: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
noUnderline: { type: Boolean },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
disabled: { type: Boolean },
|
|
22
|
+
fab: { type: Boolean },
|
|
23
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
+
noPadding: { type: Boolean },
|
|
27
|
+
noElevation: { type: Boolean },
|
|
28
|
+
justify: { default: "center" }
|
|
29
|
+
},
|
|
30
|
+
setup(z) {
|
|
31
|
+
const n = z, b = v(() => import("./MazSpinner-DoRGA1RI.mjs")), c = v(() => import("./MazIcon-BbvBov5G.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
|
+
), m = o(
|
|
34
|
+
() => (n.loading || n.disabled) && y.value === "button"
|
|
35
|
+
), I = o(() => m.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), B = o(() => n.loading && n.variant === "button"), C = o(() => !!f["left-icon"] || n.leftIcon), p = o(() => !!f["right-icon"] || n.rightIcon), S = o(() => C.value || p.value), $ = o(() => n.icon || !!f.icon), F = o(() => y.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), M = o(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
36
|
+
return (e, U) => (t(), a(r(y.value), {
|
|
37
|
+
disabled: m.value || void 0,
|
|
38
|
+
class: l(["m-btn", [
|
|
39
|
+
`--${e.size}`,
|
|
40
|
+
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
41
|
+
j.value,
|
|
42
|
+
I.value,
|
|
43
|
+
k.value,
|
|
44
|
+
M.value,
|
|
45
|
+
{
|
|
46
|
+
"--block": e.block,
|
|
47
|
+
"--no-underline": e.noUnderline,
|
|
48
|
+
"--fab": e.fab,
|
|
49
|
+
"--loading": e.loading,
|
|
50
|
+
"--disabled": m.value,
|
|
51
|
+
"--icon": S.value,
|
|
52
|
+
"--rounded": e.rounded,
|
|
53
|
+
"--no-rounded": e.noRounded,
|
|
54
|
+
"--no-padding": e.noPadding,
|
|
55
|
+
"--no-elevation": e.noElevation
|
|
56
|
+
}
|
|
57
|
+
]]),
|
|
58
|
+
type: F.value
|
|
59
|
+
}, {
|
|
60
|
+
default: R(() => [
|
|
61
|
+
u(e.$slots, "left-icon", {}, () => [
|
|
62
|
+
typeof e.leftIcon == "string" ? (t(), a(d(c), {
|
|
63
|
+
key: 0,
|
|
64
|
+
name: e.leftIcon,
|
|
65
|
+
class: l([s.value])
|
|
66
|
+
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), a(r(e.leftIcon), {
|
|
67
|
+
key: 1,
|
|
68
|
+
class: l([s.value])
|
|
69
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
70
|
+
], !0),
|
|
71
|
+
$.value ? u(e.$slots, "icon", { key: 0 }, () => [
|
|
72
|
+
typeof e.icon == "string" ? (t(), a(d(c), {
|
|
73
|
+
key: 0,
|
|
74
|
+
name: e.icon,
|
|
75
|
+
class: l([s.value])
|
|
76
|
+
}, null, 8, ["name", "class"])) : e.icon ? (t(), a(r(e.icon), {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: l([s.value])
|
|
79
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
80
|
+
], !0) : i("v-if", !0),
|
|
81
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
82
|
+
p.value ? u(e.$slots, "right-icon", { key: 1 }, () => [
|
|
83
|
+
typeof e.rightIcon == "string" ? (t(), a(d(c), {
|
|
84
|
+
key: 0,
|
|
85
|
+
name: e.rightIcon,
|
|
86
|
+
class: l([s.value])
|
|
87
|
+
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), a(r(e.rightIcon), {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: l([s.value])
|
|
90
|
+
}, null, 8, ["class"])) : i("v-if", !0)
|
|
91
|
+
], !0) : i("v-if", !0),
|
|
92
|
+
B.value ? (t(), A("div", N, [
|
|
93
|
+
D(d(b), {
|
|
94
|
+
size: "2em",
|
|
95
|
+
color: e.color
|
|
96
|
+
}, null, 8, ["color"])
|
|
97
|
+
])) : i("v-if", !0)
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
/* FORWARDED */
|
|
101
|
+
}, 8, ["disabled", "class", "type"]));
|
|
102
|
+
}
|
|
103
|
+
}), q = /* @__PURE__ */ L(P, [["__scopeId", "data-v-d3a1ed01"]]);
|
|
104
|
+
export {
|
|
105
|
+
q as default
|
|
106
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, defineAsyncComponent as c, useSlots as H, computed as r, ref as N, watch as T, openBlock as a, createElementBlock as n, normalizeClass as u, createBlock as p, resolveDynamicComponent as w, withModifiers as _, withCtx as f, renderSlot as i, createTextVNode as j, toDisplayString as E, createCommentVNode as
|
|
1
|
+
import { defineComponent as A, defineAsyncComponent as c, useSlots as H, computed as r, ref as N, watch as T, openBlock as a, createElementBlock as n, normalizeClass as u, createBlock as p, resolveDynamicComponent as w, withModifiers as _, withCtx as f, renderSlot as i, createTextVNode as j, toDisplayString as E, createCommentVNode as s, unref as h, createVNode as $, mergeProps as P, createElementVNode as B, withDirectives as W, vShow as I } from "vue";
|
|
2
2
|
import '../assets/MazCard.css';const R = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "m-card__gallery__wrapper"
|
|
@@ -42,11 +42,11 @@ import '../assets/MazCard.css';const R = {
|
|
|
42
42
|
block: { type: Boolean }
|
|
43
43
|
},
|
|
44
44
|
setup(m) {
|
|
45
|
-
const o = m, v = c(() => import("./MazBtn-
|
|
45
|
+
const o = m, v = c(() => import("./MazBtn-UnZQuu6P.mjs")), g = c(() => import("./MazGallery-VTZUhBKC.mjs")), z = c(() => import("./MazTransitionExpand-PmUDa51_.mjs")), S = c(() => import("./chevron-down-BkvtON3b.mjs")), M = H(), t = r(() => o.collapsible || o.collapsable), l = N(t.value ? o.collapseOpen : !0), k = r(() => o.href || o.to);
|
|
46
46
|
T(
|
|
47
47
|
() => o.collapseOpen,
|
|
48
48
|
(e) => {
|
|
49
|
-
t.value && (
|
|
49
|
+
t.value && (l.value = e);
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
const C = r(() => ({
|
|
@@ -69,7 +69,7 @@ import '../assets/MazCard.css';const R = {
|
|
|
69
69
|
"m-card--no-scale": !e.scale,
|
|
70
70
|
"maz-elevation": e.elevation,
|
|
71
71
|
"--block": e.block,
|
|
72
|
-
"maz-overflow-hidden": e.overflowHidden || !
|
|
72
|
+
"maz-overflow-hidden": e.overflowHidden || !l.value,
|
|
73
73
|
"maz-rounded": e.radius,
|
|
74
74
|
"maz-border maz-border-solid maz-border-color-light": e.bordered
|
|
75
75
|
}
|
|
@@ -79,13 +79,13 @@ import '../assets/MazCard.css';const R = {
|
|
|
79
79
|
e.$slots.header || e.header || t.value ? (a(), p(w(t.value ? "button" : "div"), {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: u(["m-card__header maz-border-b maz-border-solid", [
|
|
82
|
-
|
|
82
|
+
l.value ? "maz-rounded-t maz-border-color-light" : "maz-border-transparent",
|
|
83
83
|
{ "--is-collapsible": t.value },
|
|
84
84
|
{ "maz-justify-end": (!e.$slots.header || !e.header) && t.value },
|
|
85
85
|
{ "maz-justify-between": e.$slots.header || e.header }
|
|
86
86
|
]]),
|
|
87
87
|
tabindex: "-1",
|
|
88
|
-
onClick: d[1] || (d[1] = _((V) => t.value ?
|
|
88
|
+
onClick: d[1] || (d[1] = _((V) => t.value ? l.value = !l.value : void 0, ["stop"]))
|
|
89
89
|
}, {
|
|
90
90
|
default: f(() => [
|
|
91
91
|
e.$slots.header || e.header ? i(e.$slots, "header", { key: 0 }, () => [
|
|
@@ -94,26 +94,26 @@ import '../assets/MazCard.css';const R = {
|
|
|
94
94
|
1
|
|
95
95
|
/* TEXT */
|
|
96
96
|
)
|
|
97
|
-
], !0) :
|
|
97
|
+
], !0) : s("v-if", !0),
|
|
98
98
|
t.value ? (a(), p(h(v), {
|
|
99
99
|
key: 1,
|
|
100
100
|
color: "transparent",
|
|
101
101
|
class: "maz-ml-2 maz-text-sm",
|
|
102
102
|
size: "xs",
|
|
103
|
-
onClick: d[0] || (d[0] = _((V) =>
|
|
103
|
+
onClick: d[0] || (d[0] = _((V) => l.value = !l.value, ["stop"]))
|
|
104
104
|
}, {
|
|
105
105
|
default: f(() => [
|
|
106
106
|
$(h(S), {
|
|
107
|
-
class: u([{ "--is-open":
|
|
107
|
+
class: u([{ "--is-open": l.value }, "m-card__collapse-icon maz-text-xl"])
|
|
108
108
|
}, null, 8, ["class"])
|
|
109
109
|
]),
|
|
110
110
|
_: 1
|
|
111
111
|
/* STABLE */
|
|
112
|
-
})) :
|
|
112
|
+
})) : s("v-if", !0)
|
|
113
113
|
]),
|
|
114
114
|
_: 3
|
|
115
115
|
/* FORWARDED */
|
|
116
|
-
}, 8, ["class"])) :
|
|
116
|
+
}, 8, ["class"])) : s("v-if", !0),
|
|
117
117
|
(a(), p(w(C.value.is), P(C.value, {
|
|
118
118
|
class: ["m-card__wrapper", [`m-card__wrapper--${e.orientation}`, { "m-card__link": k.value }]]
|
|
119
119
|
}), {
|
|
@@ -131,7 +131,7 @@ import '../assets/MazCard.css';const R = {
|
|
|
131
131
|
"no-remaining": e.noRemaining,
|
|
132
132
|
class: "m-card__gallery maz-flex-1"
|
|
133
133
|
}, null, 8, ["no-radius", "width", "height", "images-shown-count", "images", "no-zoom", "no-width", "no-height", "no-remaining"])
|
|
134
|
-
])) :
|
|
134
|
+
])) : s("v-if", !0),
|
|
135
135
|
B("div", G, [
|
|
136
136
|
(a(), p(w(t.value ? h(z) : "div"), null, {
|
|
137
137
|
default: f(() => [
|
|
@@ -144,19 +144,19 @@ import '../assets/MazCard.css';const R = {
|
|
|
144
144
|
i(e.$slots, "default", {}, () => [
|
|
145
145
|
e.$slots.title ? (a(), n("div", L, [
|
|
146
146
|
i(e.$slots, "title", {}, void 0, !0)
|
|
147
|
-
])) :
|
|
147
|
+
])) : s("v-if", !0),
|
|
148
148
|
e.$slots.subtitle ? (a(), n("div", q, [
|
|
149
149
|
i(e.$slots, "subtitle", {}, void 0, !0)
|
|
150
|
-
])) :
|
|
150
|
+
])) : s("v-if", !0),
|
|
151
151
|
e.$slots.content ? (a(), n("div", F, [
|
|
152
152
|
i(e.$slots, "content", {}, void 0, !0)
|
|
153
|
-
])) :
|
|
153
|
+
])) : s("v-if", !0)
|
|
154
154
|
], !0)
|
|
155
155
|
],
|
|
156
156
|
2
|
|
157
157
|
/* CLASS */
|
|
158
158
|
), [
|
|
159
|
-
[I,
|
|
159
|
+
[I, l.value]
|
|
160
160
|
])
|
|
161
161
|
]),
|
|
162
162
|
_: 3
|
|
@@ -183,11 +183,10 @@ import '../assets/MazCard.css';const R = {
|
|
|
183
183
|
],
|
|
184
184
|
2
|
|
185
185
|
/* CLASS */
|
|
186
|
-
)) :
|
|
186
|
+
)) : s("v-if", !0),
|
|
187
187
|
e.$slots.actions ? (a(), n("div", J, [
|
|
188
|
-
l(" @slot action of gallery "),
|
|
189
188
|
i(e.$slots, "actions", {}, void 0, !0)
|
|
190
|
-
])) :
|
|
189
|
+
])) : s("v-if", !0)
|
|
191
190
|
],
|
|
192
191
|
2
|
|
193
192
|
/* CLASS */
|