maz-ui 3.23.4 → 3.24.0
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/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +3 -3
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +9 -9
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +6 -6
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +4 -0
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.d.ts +1 -0
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadioButtons.mjs +49 -38
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPickerCalendar.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/chunks/{MazAvatar-1636f58b.mjs → MazAvatar-a0310614.mjs} +7 -7
- package/components/chunks/{MazBottomSheet-c24f92f8.mjs → MazBottomSheet-656778f3.mjs} +1 -1
- package/components/chunks/{MazBtn-2d1d1ba5.mjs → MazBtn-1abd74e1.mjs} +3 -3
- package/components/chunks/{MazBtn-683effc1.mjs → MazBtn-1b5325b4.mjs} +3 -3
- package/components/chunks/{MazBtn-5e426592.mjs → MazBtn-28eb4f51.mjs} +3 -3
- package/components/chunks/{MazBtn-1e61862b.mjs → MazBtn-4242d8bf.mjs} +3 -3
- package/components/chunks/MazBtn-54c46d7a.mjs +153 -0
- package/components/chunks/MazBtn-55bdce06.mjs +153 -0
- package/components/chunks/MazBtn-5b3c390b.mjs +153 -0
- package/components/chunks/{MazBtn-3d74f737.mjs → MazBtn-5c7f35e9.mjs} +3 -3
- package/components/chunks/{MazBtn-4a447126.mjs → MazBtn-6df3ecd9.mjs} +3 -3
- package/components/chunks/{MazBtn-7706b2da.mjs → MazBtn-7313b190.mjs} +9 -9
- package/components/chunks/{MazBtn-555928ed.mjs → MazBtn-8d15228e.mjs} +3 -3
- package/components/chunks/{MazBtn-6ce4cfd3.mjs → MazBtn-ab3967b5.mjs} +1 -1
- package/components/chunks/{MazBtn-124f3700.mjs → MazBtn-edeb8105.mjs} +3 -3
- package/components/chunks/MazBtn-fbc2b2c9.mjs +153 -0
- package/components/chunks/{MazCard-bcc36489.mjs → MazCard-cb88998a.mjs} +3 -3
- package/components/chunks/{MazCarousel-6da75122.mjs → MazCarousel-4a1f2f1b.mjs} +1 -1
- package/components/chunks/{MazCheckbox-3a2b48b4.mjs → MazCheckbox-0df95780.mjs} +6 -6
- package/components/chunks/{MazCheckbox-040dc2c4.mjs → MazCheckbox-4ccd0b53.mjs} +6 -6
- package/components/chunks/{MazDialog-44eda544.mjs → MazDialog-e80585a6.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-eec5acde.mjs → MazDialogPromise-0769de39.mjs} +2 -2
- package/components/chunks/{MazDrawer-b628b37e.mjs → MazDrawer-ff505fb8.mjs} +1 -1
- package/components/chunks/MazDropdown-0dea4e44.mjs +352 -0
- package/components/chunks/{MazGallery-6b8ecedf.mjs → MazGallery-eb620533.mjs} +1 -1
- package/components/chunks/{MazIcon-95e31ff8.mjs → MazIcon-b0ad5b4c.mjs} +1 -1
- package/components/chunks/{MazInput-1ed4f946.mjs → MazInput-14d96bc3.mjs} +2 -2
- package/components/chunks/{MazInput-c51881ea.mjs → MazInput-a4884812.mjs} +2 -2
- package/components/chunks/{MazInput-8a217995.mjs → MazInput-d0d28579.mjs} +3 -3
- package/components/chunks/{MazInputPrice-cd348d46.mjs → MazInputPrice-a94b17c3.mjs} +2 -2
- package/components/chunks/MazInputTags-d8514b7b.mjs +595 -0
- package/components/chunks/{MazLazyImg-47d3449a.mjs → MazLazyImg-632c3f0c.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-e1bf46f9.mjs → MazPhoneNumberInput-b32334b7.mjs} +138 -135
- package/components/chunks/{MazPicker-e4620d8b.mjs → MazPicker-9b2f5212.mjs} +49 -49
- package/components/chunks/{MazPickerCalendar-da62262c.mjs → MazPickerCalendar-fd08a0bd.mjs} +7 -7
- package/components/chunks/{MazPickerHeader-a2e041eb.mjs → MazPickerHeader-b353cef2.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-5bf8bd08.mjs → MazPickerMonthSwitcher-ec404758.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-7f95430e.mjs → MazPickerShortcuts-e9c8b46e.mjs} +2 -2
- package/components/chunks/{MazPickerTime-717402ae.mjs → MazPickerTime-a94a2ad1.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-85f97b6d.mjs → MazPickerYearSwitcher-4ab742f7.mjs} +3 -3
- package/components/chunks/{MazSelect-6ff6bb96.mjs → MazSelect-a0d29d46.mjs} +3 -3
- package/components/chunks/{MazSpinner-51aa73ca.mjs → MazSpinner-05b867f0.mjs} +1 -1
- package/components/chunks/MazSpinner-151ca8af.mjs +39 -0
- package/components/chunks/{MazSpinner-059ee1d2.mjs → MazSpinner-37cda5f1.mjs} +1 -1
- package/components/chunks/{MazSpinner-6d1d24d5.mjs → MazSpinner-38548063.mjs} +1 -1
- package/components/chunks/MazSpinner-3b9cd6bd.mjs +39 -0
- package/components/chunks/MazSpinner-691d6fe4.mjs +39 -0
- package/components/chunks/MazSpinner-70afb16b.mjs +39 -0
- package/components/chunks/MazSpinner-8ecee924.mjs +39 -0
- package/components/chunks/MazSpinner-9fc0d858.mjs +39 -0
- package/components/chunks/{MazSpinner-13403729.mjs → MazSpinner-a936fb87.mjs} +1 -1
- package/components/chunks/MazSpinner-d37b29f0.mjs +39 -0
- package/components/chunks/{MazSpinner-054f948c.mjs → MazSpinner-ea39af30.mjs} +1 -1
- package/components/chunks/{MazSpinner-452a1534.mjs → MazSpinner-ef90ca5e.mjs} +1 -1
- package/components/chunks/{MazSpinner-4c02cfd2.mjs → MazSpinner-f54688d1.mjs} +1 -1
- package/components/chunks/MazSpinner-fa0d644a.mjs +39 -0
- package/components/chunks/{MazSpinner-d9ef329f.mjs → MazSpinner-fa796159.mjs} +1 -1
- package/components/chunks/{MazTabsBar-27965f16.mjs → MazTabsBar-3fc93e3c.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-cd24498f.mjs → MazTransitionExpand-9d45da0e.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-760c3b29.mjs → MazBtn-6d482774.mjs} +3 -3
- package/modules/chunks/{MazBtn-2f302422.cjs → MazBtn-9e80b611.cjs} +1 -1
- package/modules/chunks/{MazIcon-599a907f.cjs → MazIcon-84d2e299.cjs} +1 -1
- package/modules/chunks/{MazIcon-0bd6b78e.mjs → MazIcon-c59e858b.mjs} +1 -1
- package/modules/chunks/{MazSpinner-6ffa8db1.cjs → MazSpinner-108d3dc0.cjs} +1 -1
- package/modules/chunks/{MazSpinner-03bd76bd.mjs → MazSpinner-dcb0164b.mjs} +1 -1
- package/modules/chunks/check-circle-59c383ed.mjs +30 -0
- package/modules/chunks/check-circle-8c27a70a.cjs +1 -0
- package/modules/chunks/exclamation-circle-a33311d2.cjs +1 -0
- package/modules/chunks/exclamation-circle-e2620aab.mjs +30 -0
- package/modules/chunks/exclamation-triangle-21bf116a.mjs +30 -0
- package/modules/chunks/exclamation-triangle-df9f85b0.cjs +1 -0
- package/modules/chunks/index-4ffeaf8e.cjs +124 -0
- package/modules/chunks/{index-6a90ef88.mjs → index-67003347.mjs} +598 -508
- package/modules/chunks/information-circle-9fe4430a.cjs +1 -0
- package/modules/chunks/information-circle-b8051b19.mjs +30 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +18 -17
- package/nuxt/index.d.mts +5 -0
- package/nuxt/index.d.ts +5 -0
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +14 -0
- package/nuxt/runtime/plugins/maz-icon-path.mjs +2 -1
- package/package.json +4 -4
- package/tailwindcss/tailwind.config.ts +0 -1
- package/types/components/MazBtn.vue.d.ts +3 -3
- package/types/components/MazDialogPromise.vue.d.ts +6 -6
- package/types/components/MazDropdown.vue.d.ts +4 -0
- package/types/components/MazInputTags.vue.d.ts +1 -0
- package/types/modules/composables/index.d.ts +1 -0
- package/types/modules/composables/use-timer.d.ts +12 -0
- package/types/modules/plugins/aos/index.d.ts +12 -12
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +6 -6
- package/types/modules/plugins/toaster/toaster-handler.d.ts +2 -1
- package/components/chunks/MazBtn-571454f6.mjs +0 -153
- package/components/chunks/MazBtn-6905cc39.mjs +0 -153
- package/components/chunks/MazBtn-74656d5b.mjs +0 -153
- package/components/chunks/MazBtn-a7a913dd.mjs +0 -153
- package/components/chunks/MazBtn-fb3c7af8.mjs +0 -153
- package/components/chunks/MazDropdown-6f2248b0.mjs +0 -345
- package/components/chunks/MazInputTags-aa95fae7.mjs +0 -446
- package/components/chunks/MazSpinner-6e7c4705.mjs +0 -39
- package/components/chunks/MazSpinner-7895f54f.mjs +0 -39
- package/components/chunks/MazSpinner-7eee202e.mjs +0 -39
- package/components/chunks/MazSpinner-805e14a6.mjs +0 -39
- package/components/chunks/MazSpinner-85080b43.mjs +0 -39
- package/components/chunks/MazSpinner-c67b05bb.mjs +0 -39
- package/components/chunks/MazSpinner-caa33afc.mjs +0 -39
- package/components/chunks/MazSpinner-cb8fbe9a.mjs +0 -39
- package/modules/chunks/index-794680d2.cjs +0 -124
- package/types/modules/plugins/toaster/timer.d.ts +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24"},n=e.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"},null,-1),r=[n];function t(l,c){return e.openBlock(),e.createElementBlock("svg",o,[...r])}const i={render:t};exports.default=i;exports.render=t;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
width: "1em",
|
|
5
|
+
height: "1em",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 24 24"
|
|
8
|
+
}, r = /* @__PURE__ */ t(
|
|
9
|
+
"path",
|
|
10
|
+
{
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
"stroke-linecap": "round",
|
|
13
|
+
"stroke-linejoin": "round",
|
|
14
|
+
"stroke-width": "1.5",
|
|
15
|
+
d: "m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"
|
|
16
|
+
},
|
|
17
|
+
null,
|
|
18
|
+
-1
|
|
19
|
+
/* HOISTED */
|
|
20
|
+
), i = [
|
|
21
|
+
r
|
|
22
|
+
];
|
|
23
|
+
function l(c, s) {
|
|
24
|
+
return e(), o("svg", n, [...i]);
|
|
25
|
+
}
|
|
26
|
+
const a = { render: l };
|
|
27
|
+
export {
|
|
28
|
+
a as default,
|
|
29
|
+
l as render
|
|
30
|
+
};
|
package/modules/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-4ffeaf8e.cjs");exports.AosHandler=e.AosHandler;exports.IdleTimeout=e.IdleTimeout;exports.ScriptLoader=e.ScriptLoader;exports.ToasterHandler=e.ToasterHandler;exports.UserVisibility=e.UserVisibility;exports.WaitHandler=e.WaitHandler;Object.defineProperty(exports,"aosInstance",{enumerable:!0,get:()=>e.instance$1});exports.capitalize=e.capitalize;exports.countryCodeToUnicodeFlag=e.countryCodeToUnicodeFlag;exports.currency=e.currency;exports.date=e.date;exports.debounce=e.debounce;exports.injectStrict=e.injectStrict;exports.installAos=e.plugin$5;exports.installDirectives=e.installDirectives;exports.installFilters=e.installFilters;exports.installToaster=e.installToaster;exports.installWait=e.plugin$4;exports.isClient=e.isClient;exports.mount=e.mount;exports.number=e.number;exports.sleep=e.sleep;Object.defineProperty(exports,"toastInstance",{enumerable:!0,get:()=>e.toastInstance});exports.truthyFilter=e.truthyFilter;exports.useAos=e.useAos;exports.useIdleTimeout=e.useIdleTimeout;exports.useInstanceUniqId=e.useInstanceUniqId;exports.useMazDialogPromise=e.useMazDialogPromise;exports.useThemeHandler=e.useThemeHandler;exports.useTimer=e.useTimer;exports.useToast=e.useToast;exports.useUserVisibility=e.useUserVisibility;exports.useWait=e.useWait;exports.vClickOutside=e.directive;exports.vClickOutsideInstall=e.plugin;exports.vClosable=e.directive$1;exports.vClosableInstall=e.plugin$3;exports.vFullscreenImg=e.vFullscreenImg;exports.vFullscreenImgInstall=e.vFullscreenImgInstall;exports.vLazyImg=e.vLazyImg;exports.vLazyImgInstall=e.plugin$1;exports.vZoomImg=e.vZoomImg;exports.vZoomImgInstall=e.plugin$2;exports.waitInstance=e.instance;
|
package/modules/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as
|
|
1
|
+
import { B as e, I as l, S as t, T as i, U as n, W as o, D as r, q as u, c, r as I, u as m, d, i as v, C as g, b as T, o as y, x as b, z as C, a as F, m as p, w as z, s as H, y as U, t as A, G as L, K as W, F as h, M as k, E as D, N as S, J as f, L as j, H as q, e as w, p as x, l as M, n as O, j as V, k as Z, v as B, f as E, g as G, h as J, A as K } from "./chunks/index-67003347.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AosHandler,
|
|
4
4
|
l as IdleTimeout,
|
|
@@ -14,8 +14,8 @@ export {
|
|
|
14
14
|
d as debounce,
|
|
15
15
|
v as injectStrict,
|
|
16
16
|
g as installAos,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
T as installDirectives,
|
|
18
|
+
y as installFilters,
|
|
19
19
|
b as installToaster,
|
|
20
20
|
C as installWait,
|
|
21
21
|
F as isClient,
|
|
@@ -29,18 +29,19 @@ export {
|
|
|
29
29
|
h as useInstanceUniqId,
|
|
30
30
|
k as useMazDialogPromise,
|
|
31
31
|
D as useThemeHandler,
|
|
32
|
-
S as
|
|
33
|
-
f as
|
|
34
|
-
j as
|
|
35
|
-
q as
|
|
36
|
-
w as
|
|
37
|
-
x as
|
|
38
|
-
M as
|
|
39
|
-
O as
|
|
40
|
-
V as
|
|
41
|
-
Z as
|
|
42
|
-
B as
|
|
43
|
-
E as
|
|
44
|
-
G as
|
|
45
|
-
J as
|
|
32
|
+
S as useTimer,
|
|
33
|
+
f as useToast,
|
|
34
|
+
j as useUserVisibility,
|
|
35
|
+
q as useWait,
|
|
36
|
+
w as vClickOutside,
|
|
37
|
+
x as vClickOutsideInstall,
|
|
38
|
+
M as vClosable,
|
|
39
|
+
O as vClosableInstall,
|
|
40
|
+
V as vFullscreenImg,
|
|
41
|
+
Z as vFullscreenImgInstall,
|
|
42
|
+
B as vLazyImg,
|
|
43
|
+
E as vLazyImgInstall,
|
|
44
|
+
G as vZoomImg,
|
|
45
|
+
J as vZoomImgInstall,
|
|
46
|
+
K as waitInstance
|
|
46
47
|
};
|
package/nuxt/index.d.mts
CHANGED
|
@@ -48,6 +48,11 @@ interface MazUiNuxtOptions {
|
|
|
48
48
|
* @default false
|
|
49
49
|
*/
|
|
50
50
|
injectUseUserVisibility?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Enable auto-import of useTimer composable
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
injectUseTimer?: boolean;
|
|
51
56
|
/**
|
|
52
57
|
* Globally install of v-zoom-img directive
|
|
53
58
|
* @default false
|
package/nuxt/index.d.ts
CHANGED
|
@@ -48,6 +48,11 @@ interface MazUiNuxtOptions {
|
|
|
48
48
|
* @default false
|
|
49
49
|
*/
|
|
50
50
|
injectUseUserVisibility?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Enable auto-import of useTimer composable
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
injectUseTimer?: boolean;
|
|
51
56
|
/**
|
|
52
57
|
* Globally install of v-zoom-img directive
|
|
53
58
|
* @default false
|
package/nuxt/index.json
CHANGED
package/nuxt/index.mjs
CHANGED
|
@@ -177,6 +177,20 @@ const module = defineNuxtModule({
|
|
|
177
177
|
as: "useUserVisibility"
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
+
if (moduleOptions.injectUseUserVisibility) {
|
|
181
|
+
addImports({
|
|
182
|
+
from: "maz-ui",
|
|
183
|
+
name: "useUserVisibility",
|
|
184
|
+
as: "useUserVisibility"
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
if (moduleOptions.injectUseTimer) {
|
|
188
|
+
addImports({
|
|
189
|
+
from: "maz-ui",
|
|
190
|
+
name: "useTimer",
|
|
191
|
+
as: "useTimer"
|
|
192
|
+
});
|
|
193
|
+
}
|
|
180
194
|
if (moduleOptions.defaultMazIconPath) {
|
|
181
195
|
addPlugin(resolve(_dirname, "./runtime/plugins/maz-icon-path"));
|
|
182
196
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from "#imports";
|
|
2
|
-
export default defineNuxtPlugin(({ $config }) => {
|
|
2
|
+
export default defineNuxtPlugin(({ $config, vueApp }) => {
|
|
3
3
|
const defaultMazIconPath = $config.public.mazUi?.defaultMazIconPath;
|
|
4
|
+
vueApp.provide("mazIconPath", defaultMazIconPath);
|
|
4
5
|
return {
|
|
5
6
|
provide: {
|
|
6
7
|
mazIconPath: defaultMazIconPath
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.0",
|
|
4
4
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
5
5
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
6
6
|
"main": "./modules/index.cjs",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"@nuxt/kit": "^3.8.1",
|
|
111
111
|
"@nuxt/schema": "^3.8.1",
|
|
112
112
|
"@types/dropzone": "^5.7.7",
|
|
113
|
-
"@types/google.maps": "^3.54.
|
|
114
|
-
"@vitejs/plugin-vue": "^4.
|
|
113
|
+
"@types/google.maps": "^3.54.8",
|
|
114
|
+
"@vitejs/plugin-vue": "^4.5.0",
|
|
115
115
|
"@vitest/coverage-v8": "^0.34.6",
|
|
116
116
|
"@vue/compiler-sfc": "^3.3.8",
|
|
117
117
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"vite": "^4.5.0",
|
|
158
158
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
159
159
|
"vite-plugin-lib-inject-css": "^1.3.0",
|
|
160
|
-
"vite-plugin-static-copy": "^0.17.
|
|
160
|
+
"vite-plugin-static-copy": "^0.17.1",
|
|
161
161
|
"vite-svg-loader": "^4.0.0",
|
|
162
162
|
"vitest": "^0.34.6",
|
|
163
163
|
"vitest-canvas-mock": "^0.3.3",
|
|
@@ -3,7 +3,7 @@ import type { Color, Size } from './types';
|
|
|
3
3
|
export type { Color, Size };
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
variant: {
|
|
6
|
-
type:
|
|
6
|
+
type: PropType<"button" | "link">;
|
|
7
7
|
default: string;
|
|
8
8
|
validator: (value: string) => boolean;
|
|
9
9
|
};
|
|
@@ -83,7 +83,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
83
83
|
};
|
|
84
84
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
85
85
|
variant: {
|
|
86
|
-
type:
|
|
86
|
+
type: PropType<"button" | "link">;
|
|
87
87
|
default: string;
|
|
88
88
|
validator: (value: string) => boolean;
|
|
89
89
|
};
|
|
@@ -166,7 +166,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
166
166
|
color: Color;
|
|
167
167
|
type: "button" | "submit" | "reset";
|
|
168
168
|
disabled: boolean;
|
|
169
|
-
variant:
|
|
169
|
+
variant: "button" | "link";
|
|
170
170
|
rounded: boolean;
|
|
171
171
|
noRounded: boolean;
|
|
172
172
|
outline: boolean;
|
|
@@ -2,16 +2,16 @@ import { type PropType } from 'vue';
|
|
|
2
2
|
import { type Color, type Size } from './types';
|
|
3
3
|
import { type DialogData } from './../modules/composables/use-maz-dialog-promise';
|
|
4
4
|
export type DialogButton = {
|
|
5
|
-
|
|
5
|
+
text: string;
|
|
6
6
|
type: 'resolve' | 'reject';
|
|
7
|
+
block?: boolean;
|
|
7
8
|
color?: Color;
|
|
8
|
-
size?: Size;
|
|
9
|
-
text: string;
|
|
10
|
-
outline?: boolean;
|
|
11
|
-
rounded?: boolean;
|
|
12
9
|
disabled?: boolean;
|
|
13
10
|
loading?: boolean;
|
|
14
|
-
|
|
11
|
+
outline?: boolean;
|
|
12
|
+
response?: string | boolean;
|
|
13
|
+
rounded?: boolean;
|
|
14
|
+
size?: Size;
|
|
15
15
|
};
|
|
16
16
|
export { useMazDialogPromise, type DialogState, type DialogData, } from './../modules/composables/use-maz-dialog-promise';
|
|
17
17
|
export type { Color, Size } from './types';
|
|
@@ -27,6 +27,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
noCloseOnClick?: boolean | undefined;
|
|
28
28
|
/** Disable menu */
|
|
29
29
|
disabled?: boolean | undefined;
|
|
30
|
+
/** Remove chevron icon in main button */
|
|
31
|
+
noChevron?: boolean | undefined;
|
|
30
32
|
}>, {
|
|
31
33
|
id: string;
|
|
32
34
|
trigger: string;
|
|
@@ -52,6 +54,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
52
54
|
noCloseOnClick?: boolean | undefined;
|
|
53
55
|
/** Disable menu */
|
|
54
56
|
disabled?: boolean | undefined;
|
|
57
|
+
/** Remove chevron icon in main button */
|
|
58
|
+
noChevron?: boolean | undefined;
|
|
55
59
|
}>, {
|
|
56
60
|
id: string;
|
|
57
61
|
trigger: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TimerOptions {
|
|
2
|
+
timeout: number;
|
|
3
|
+
callback?: () => unknown;
|
|
4
|
+
remainingTimeUpdate?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const useTimer: ({ timeout, callback, remainingTimeUpdate }: TimerOptions) => {
|
|
7
|
+
remainingTime: import("vue").Ref<number>;
|
|
8
|
+
start: () => void;
|
|
9
|
+
pause: () => void;
|
|
10
|
+
resume: () => void;
|
|
11
|
+
stop: () => void;
|
|
12
|
+
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
import type { Router } from 'vue-router';
|
|
3
3
|
export type AosOptions = {
|
|
4
|
-
router?: Router;
|
|
5
|
-
delay?: number;
|
|
6
|
-
observer?: IntersectionObserverInit;
|
|
7
4
|
animation?: {
|
|
8
|
-
once?: boolean;
|
|
9
|
-
duration?: number;
|
|
10
5
|
delay?: number;
|
|
6
|
+
duration?: number;
|
|
7
|
+
once?: boolean;
|
|
11
8
|
};
|
|
9
|
+
delay?: number;
|
|
10
|
+
observer?: IntersectionObserverInit;
|
|
11
|
+
router?: Router;
|
|
12
12
|
};
|
|
13
13
|
interface ClassOptions extends Omit<AosOptions, 'router'> {
|
|
14
|
+
animation: {
|
|
15
|
+
delay: number;
|
|
16
|
+
duration: number;
|
|
17
|
+
once: boolean;
|
|
18
|
+
};
|
|
14
19
|
delay: number;
|
|
15
20
|
observer: IntersectionObserverInit & {
|
|
16
|
-
threshold: number | number[];
|
|
17
21
|
rootMargin: string;
|
|
18
|
-
|
|
19
|
-
animation: {
|
|
20
|
-
once: boolean;
|
|
21
|
-
duration: number;
|
|
22
|
-
delay: number;
|
|
22
|
+
threshold: number | number[];
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export declare class AosHandler {
|
|
26
26
|
options: ClassOptions;
|
|
27
27
|
constructor(options?: Omit<AosOptions, 'router'>);
|
|
28
|
+
private handleIntersect;
|
|
28
29
|
private handleObserver;
|
|
29
30
|
runAnimations(): Promise<void> | undefined;
|
|
30
|
-
private handleIntersect;
|
|
31
31
|
}
|
|
32
32
|
export declare let instance: AosHandler;
|
|
33
33
|
export declare const plugin: {
|
|
@@ -22,9 +22,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
24
|
type: {
|
|
25
|
-
type: PropType<"info" | "success" | "warning" | "danger" |
|
|
25
|
+
type: PropType<"info" | "success" | "warning" | "danger" | "theme">;
|
|
26
26
|
default: string;
|
|
27
|
-
validator: (value: string) => boolean;
|
|
28
27
|
};
|
|
29
28
|
message: {
|
|
30
29
|
type: StringConstructor;
|
|
@@ -45,6 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
44
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
45
|
close: (...args: any[]) => void;
|
|
47
46
|
click: (...args: any[]) => void;
|
|
47
|
+
open: (...args: any[]) => void;
|
|
48
48
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
49
|
position: {
|
|
50
50
|
type: PropType<ToasterPosition>;
|
|
@@ -67,9 +67,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
default: boolean;
|
|
68
68
|
};
|
|
69
69
|
type: {
|
|
70
|
-
type: PropType<"info" | "success" | "warning" | "danger" |
|
|
70
|
+
type: PropType<"info" | "success" | "warning" | "danger" | "theme">;
|
|
71
71
|
default: string;
|
|
72
|
-
validator: (value: string) => boolean;
|
|
73
72
|
};
|
|
74
73
|
message: {
|
|
75
74
|
type: StringConstructor;
|
|
@@ -90,11 +89,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
89
|
}>> & {
|
|
91
90
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
92
91
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
93
93
|
}, {
|
|
94
|
-
type: "info" | "success" | "warning" | "danger" |
|
|
94
|
+
type: "info" | "success" | "warning" | "danger" | "theme";
|
|
95
95
|
link: ToasterLink;
|
|
96
|
-
position: ToasterPosition;
|
|
97
96
|
timeout: number;
|
|
97
|
+
position: ToasterPosition;
|
|
98
98
|
persistent: boolean;
|
|
99
99
|
action: ToasterAction;
|
|
100
100
|
maxToasts: number | boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
import type { ToasterOptions } from './types';
|
|
3
3
|
export interface LocalToasterOptions extends ToasterOptions {
|
|
4
|
-
type
|
|
4
|
+
type: 'success' | 'info' | 'warning' | 'danger' | 'theme';
|
|
5
5
|
}
|
|
6
6
|
export declare class ToasterHandler {
|
|
7
7
|
private readonly app;
|
|
@@ -9,6 +9,7 @@ export declare class ToasterHandler {
|
|
|
9
9
|
constructor(app: App, globalOptions?: ToasterOptions | undefined);
|
|
10
10
|
private show;
|
|
11
11
|
private getLocalOptions;
|
|
12
|
+
message(message: string, options?: ToasterOptions): void;
|
|
12
13
|
success(message: string, options?: ToasterOptions): void;
|
|
13
14
|
error(message: string, options?: ToasterOptions): void;
|
|
14
15
|
info(message: string, options?: ToasterOptions): void;
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import "../assets/MazBtn.css";
|
|
2
|
-
import { defineComponent as M, defineAsyncComponent as p, useAttrs as E, useSlots as L, onBeforeMount as P, computed as t, openBlock as o, createBlock as u, resolveDynamicComponent as R, mergeProps as w, withCtx as A, createElementBlock as m, normalizeClass as s, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
-
import { _ as N } from "./MazInputPrice-cd348d46.mjs";
|
|
4
|
-
const U = /* @__PURE__ */ M({
|
|
5
|
-
__name: "MazBtn",
|
|
6
|
-
props: {
|
|
7
|
-
variant: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "button",
|
|
10
|
-
validator: (e) => ["button", "link"].includes(e)
|
|
11
|
-
},
|
|
12
|
-
size: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "md",
|
|
15
|
-
validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
|
|
16
|
-
},
|
|
17
|
-
color: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "primary"
|
|
20
|
-
},
|
|
21
|
-
type: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "button",
|
|
24
|
-
validator: (e) => ["button", "submit", "reset"].includes(e)
|
|
25
|
-
},
|
|
26
|
-
rounded: { type: Boolean, default: !1 },
|
|
27
|
-
noRounded: { type: Boolean, default: !1 },
|
|
28
|
-
outline: { type: Boolean, default: !1 },
|
|
29
|
-
pastel: { type: Boolean, default: !1 },
|
|
30
|
-
block: { type: Boolean, default: !1 },
|
|
31
|
-
noUnderline: { type: Boolean, default: !1 },
|
|
32
|
-
noLeading: { type: Boolean, default: !1 },
|
|
33
|
-
loading: { type: Boolean, default: !1 },
|
|
34
|
-
disabled: { type: Boolean, default: !1 },
|
|
35
|
-
fab: { type: Boolean, default: !1 },
|
|
36
|
-
icon: { type: String, default: void 0 },
|
|
37
|
-
leftIcon: { type: String, default: void 0 },
|
|
38
|
-
rightIcon: { type: String, default: void 0 },
|
|
39
|
-
noPadding: { type: Boolean, default: !1 },
|
|
40
|
-
noElevation: { type: Boolean, default: !1 }
|
|
41
|
-
},
|
|
42
|
-
setup(e) {
|
|
43
|
-
const z = p(() => import("./MazSpinner-13403729.mjs")), c = p(() => import("./MazIcon-52a76873.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
|
-
P(() => {
|
|
45
|
-
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
|
-
});
|
|
47
|
-
const f = t(() => B ? "a" : h ? "router-link" : "button"), k = t(
|
|
48
|
-
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
49
|
-
), v = t(
|
|
50
|
-
() => (n.loading || n.disabled) && f.value === "button"
|
|
51
|
-
), I = t(() => v.value ? "--cursor-default" : "--cursor-pointer"), x = t(() => `--is-${n.variant}`), l = t(() => n.loading && n.variant === "button"), y = t(() => !!b["left-icon"] || n.leftIcon), g = t(() => !!b["right-icon"] || n.rightIcon), C = t(() => y.value || g.value), S = t(() => n.fab && n.icon), $ = t(() => f.value === "button" ? n.type : void 0);
|
|
52
|
-
return (i, V) => (o(), u(R(f.value), w(i.$attrs, {
|
|
53
|
-
disabled: v.value,
|
|
54
|
-
class: ["m-btn", [
|
|
55
|
-
`--${e.size}`,
|
|
56
|
-
k.value,
|
|
57
|
-
I.value,
|
|
58
|
-
x.value,
|
|
59
|
-
{
|
|
60
|
-
"--block": e.block,
|
|
61
|
-
"--no-underline": e.noUnderline,
|
|
62
|
-
"--no-leading": e.noLeading,
|
|
63
|
-
"--fab": e.fab,
|
|
64
|
-
"--loading": e.loading,
|
|
65
|
-
"--disabled": v.value,
|
|
66
|
-
"--icon": C.value,
|
|
67
|
-
"--rounded": e.rounded,
|
|
68
|
-
"--no-rounded": e.noRounded,
|
|
69
|
-
"--no-padding": e.noPadding,
|
|
70
|
-
"--no-elevation": e.noElevation
|
|
71
|
-
}
|
|
72
|
-
]],
|
|
73
|
-
type: $.value
|
|
74
|
-
}), {
|
|
75
|
-
default: A(() => [
|
|
76
|
-
y.value ? (o(), m(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
key: 0,
|
|
80
|
-
class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
81
|
-
},
|
|
82
|
-
[
|
|
83
|
-
r(i.$slots, "left-icon", {}, () => [
|
|
84
|
-
e.leftIcon ? (o(), u(d(c), {
|
|
85
|
-
key: 0,
|
|
86
|
-
name: e.leftIcon
|
|
87
|
-
}, null, 8, ["name"])) : a("v-if", !0)
|
|
88
|
-
], !0)
|
|
89
|
-
],
|
|
90
|
-
2
|
|
91
|
-
/* CLASS */
|
|
92
|
-
)) : a("v-if", !0),
|
|
93
|
-
S.value ? (o(), m(
|
|
94
|
-
"div",
|
|
95
|
-
{
|
|
96
|
-
key: 1,
|
|
97
|
-
class: s(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
98
|
-
},
|
|
99
|
-
[
|
|
100
|
-
r(i.$slots, "icon", {}, () => [
|
|
101
|
-
e.icon ? (o(), u(d(c), {
|
|
102
|
-
key: 0,
|
|
103
|
-
name: e.icon
|
|
104
|
-
}, null, 8, ["name"])) : a("v-if", !0)
|
|
105
|
-
], !0)
|
|
106
|
-
],
|
|
107
|
-
2
|
|
108
|
-
/* CLASS */
|
|
109
|
-
)) : a("v-if", !0),
|
|
110
|
-
D(
|
|
111
|
-
"span",
|
|
112
|
-
{
|
|
113
|
-
class: s(["maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
114
|
-
},
|
|
115
|
-
[
|
|
116
|
-
r(i.$slots, "default", {}, void 0, !0)
|
|
117
|
-
],
|
|
118
|
-
2
|
|
119
|
-
/* CLASS */
|
|
120
|
-
),
|
|
121
|
-
g.value ? (o(), m(
|
|
122
|
-
"div",
|
|
123
|
-
{
|
|
124
|
-
key: 2,
|
|
125
|
-
class: s(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
126
|
-
},
|
|
127
|
-
[
|
|
128
|
-
r(i.$slots, "right-icon", {}, () => [
|
|
129
|
-
e.rightIcon ? (o(), u(d(c), {
|
|
130
|
-
key: 0,
|
|
131
|
-
name: e.rightIcon
|
|
132
|
-
}, null, 8, ["name"])) : a("v-if", !0)
|
|
133
|
-
], !0)
|
|
134
|
-
],
|
|
135
|
-
2
|
|
136
|
-
/* CLASS */
|
|
137
|
-
)) : a("v-if", !0),
|
|
138
|
-
l.value ? (o(), u(d(z), {
|
|
139
|
-
key: 3,
|
|
140
|
-
size: "2em",
|
|
141
|
-
color: e.color,
|
|
142
|
-
class: "maz-absolute"
|
|
143
|
-
}, null, 8, ["color"])) : a("v-if", !0)
|
|
144
|
-
]),
|
|
145
|
-
_: 3
|
|
146
|
-
/* FORWARDED */
|
|
147
|
-
}, 16, ["disabled", "class", "type"]));
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
const q = /* @__PURE__ */ N(U, [["__scopeId", "data-v-06ad874b"]]);
|
|
151
|
-
export {
|
|
152
|
-
q as default
|
|
153
|
-
};
|