maz-ui 3.12.2 → 3.14.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.d.ts +4 -4
- package/components/MazBackdrop.d.ts +1 -1
- package/components/MazBadge.d.ts +1 -1
- package/components/MazBottomSheet.mjs +5 -4
- package/components/MazBtn.d.ts +4 -4
- package/components/MazBtn.mjs +5 -4
- package/components/MazCard.d.ts +5 -5
- package/components/MazCard.mjs +5 -4
- package/components/MazCarousel.mjs +34 -33
- package/components/MazChart.d.ts +3 -3
- package/components/MazCheckbox.d.ts +1 -1
- package/components/MazCheckbox.mjs +7 -9
- package/components/MazDialog.mjs +5 -4
- package/components/MazDialogPromise.mjs +5 -4
- package/components/MazDrawer.d.ts +1 -1
- package/components/MazDrawer.mjs +5 -4
- package/components/MazDropzone.d.ts +2 -2
- package/components/MazFullscreenLoader.d.ts +31 -0
- package/components/MazFullscreenLoader.mjs +74 -0
- package/components/MazGallery.d.ts +4 -4
- package/components/MazIcon.d.ts +1 -1
- package/components/MazIcon.mjs +6 -4
- package/components/MazInput.d.ts +8 -8
- package/components/MazInput.mjs +18 -20
- package/components/MazInputNumber.d.ts +1 -1
- package/components/MazInputNumber.mjs +9 -11
- package/components/MazInputPrice.d.ts +1 -1
- package/components/MazInputPrice.mjs +57 -59
- package/components/MazInputTags.d.ts +3 -3
- package/components/MazInputTags.mjs +9 -11
- package/components/MazPhoneNumberInput.d.ts +3 -3
- package/components/MazPhoneNumberInput.mjs +23 -22
- package/components/MazPicker.d.ts +3 -3
- package/components/MazPicker.mjs +81 -83
- package/components/MazSelect.d.ts +7 -7
- package/components/MazSelect.mjs +27 -26
- package/components/MazSlider.d.ts +2 -2
- package/components/MazSpinner.d.ts +1 -1
- package/components/MazStepper.mjs +6 -4
- package/components/MazSwitch.d.ts +2 -2
- package/components/MazTabsBar.mjs +5 -4
- package/components/MazTabsContent.mjs +6 -4
- package/components/MazTabsContentItem.mjs +7 -5
- package/components/MazTextarea.d.ts +4 -4
- package/components/MazTextarea.mjs +13 -14
- package/components/component-list.mjs +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.mjs +1 -0
- package/css/main.css +1 -1
- package/modules/index.mjs +590 -143
- package/nuxt/index.ts +133 -28
- package/nuxt/runtime/composables/use-theme-handler.ts +12 -0
- package/nuxt/runtime/plugins/aos.ts +14 -0
- package/nuxt/runtime/plugins/toaster.ts +5 -21
- package/nuxt/runtime/plugins/v-click-outside.ts +6 -0
- package/nuxt/runtime/plugins/v-fullscreen-img.ts +6 -0
- package/nuxt/runtime/plugins/v-lazy-img.ts +10 -0
- package/nuxt/runtime/plugins/v-zoom-img.ts +6 -0
- package/nuxt/runtime/plugins/wait.ts +6 -0
- package/package.json +22 -17
- package/types/components/MazAvatar.vue.d.ts +4 -4
- package/types/components/MazBackdrop.vue.d.ts +1 -1
- package/types/components/MazBadge.vue.d.ts +1 -1
- package/types/components/MazBtn.vue.d.ts +4 -4
- package/types/components/MazCard.vue.d.ts +5 -5
- package/types/components/MazChart.vue.d.ts +3 -3
- package/types/components/MazCheckbox.vue.d.ts +1 -1
- package/types/components/MazDrawer.vue.d.ts +1 -1
- package/types/components/MazDropzone.vue.d.ts +2 -2
- package/types/components/MazFullscreenLoader.vue.d.ts +31 -0
- package/types/components/MazGallery.vue.d.ts +4 -4
- package/types/components/MazIcon.vue.d.ts +1 -1
- package/types/components/MazInput.vue.d.ts +8 -8
- package/types/components/MazInputNumber.vue.d.ts +1 -1
- package/types/components/MazInputPrice.vue.d.ts +1 -1
- package/types/components/MazInputTags.vue.d.ts +3 -3
- package/types/components/MazPhoneNumberInput.vue.d.ts +3 -3
- package/types/components/MazPicker.vue.d.ts +3 -3
- package/types/components/MazSelect.vue.d.ts +7 -7
- package/types/components/MazSlider.vue.d.ts +2 -2
- package/types/components/MazSpinner.vue.d.ts +1 -1
- package/types/components/MazSwitch.vue.d.ts +2 -2
- package/types/components/MazTextarea.vue.d.ts +4 -4
- package/types/components/index.d.ts +1 -0
- package/types/modules/composables/index.d.ts +7 -7
- package/types/modules/composables/use-aos.d.ts +2 -0
- package/types/modules/composables/{idle-timeout.d.ts → use-idle-timeout.d.ts} +1 -4
- package/types/modules/composables/{instance-uniq-id.d.ts → use-instance-uniq-id.d.ts} +1 -3
- package/types/modules/composables/use-toast.d.ts +2 -0
- package/types/modules/composables/{user-visibilty.d.ts → use-user-visibilty.d.ts} +1 -4
- package/types/modules/composables/use-wait.d.ts +2 -0
- package/types/modules/directives/index.d.ts +2 -0
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +102 -0
- package/types/modules/directives/v-fullscreen-img/fullscreen-img.directive.d.ts +2 -0
- package/types/modules/directives/v-fullscreen-img/fullscreen-img.handler.d.ts +35 -0
- package/types/modules/directives/v-fullscreen-img/index.d.ts +7 -0
- package/types/modules/helpers/idle-timeout/types.d.ts +16 -1
- package/types/modules/helpers/mount-component.d.ts +2 -1
- package/types/modules/helpers/user-visibility/types.d.ts +12 -1
- package/types/modules/plugins/aos/index.d.ts +7 -6
- package/types/modules/plugins/index.d.ts +1 -1
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +12 -12
- package/types/modules/plugins/toaster/index.d.ts +1 -1
- package/types/modules/plugins/toaster/toaster-handler.d.ts +2 -2
- package/types/modules/plugins/toaster/types.d.ts +5 -4
- package/types/nuxt/index.d.ts +55 -8
- package/types/nuxt/runtime/composables/use-theme-handler.d.ts +9 -0
- package/types/nuxt/runtime/plugins/aos.d.ts +2 -0
- package/types/nuxt/runtime/plugins/toaster.d.ts +1 -6
- package/types/nuxt/runtime/plugins/v-click-outside.d.ts +2 -0
- package/types/nuxt/runtime/plugins/v-fullscreen-img.d.ts +2 -0
- package/types/nuxt/runtime/plugins/v-lazy-img.d.ts +2 -0
- package/types/nuxt/runtime/plugins/v-zoom-img.d.ts +2 -0
- package/types/nuxt/runtime/plugins/wait.d.ts +2 -0
- package/nuxt/runtime/composables/use-toast.ts +0 -8
- package/types/modules/composables/aos.d.ts +0 -4
- package/types/modules/composables/toaster.d.ts +0 -4
- package/types/modules/composables/wait.d.ts +0 -4
- package/types/nuxt/runtime/composables/use-toast.d.ts +0 -2
- /package/types/modules/composables/{theme-handler.d.ts → use-theme-handler.d.ts} +0 -0
|
@@ -6,5 +6,5 @@ export declare function createToaster(app: App, options?: ToasterOptions): Toast
|
|
|
6
6
|
export declare const installToaster: {
|
|
7
7
|
install(app: App, options?: ToasterOptions): void;
|
|
8
8
|
};
|
|
9
|
-
export type { ToasterOptions, ToasterPositions } from './types';
|
|
9
|
+
export type { ToasterOptions, ToasterPosition, ToasterPositions } from './types';
|
|
10
10
|
export { ToasterHandler } from './toaster-handler';
|
|
@@ -5,8 +5,8 @@ export interface LocalToasterOptions extends ToasterOptions {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class ToasterHandler {
|
|
7
7
|
private readonly app;
|
|
8
|
-
private readonly globalOptions
|
|
9
|
-
constructor(app: App, globalOptions
|
|
8
|
+
private readonly globalOptions?;
|
|
9
|
+
constructor(app: App, globalOptions?: ToasterOptions | undefined);
|
|
10
10
|
private show;
|
|
11
11
|
private getLocalOptions;
|
|
12
12
|
success(message: string, options?: ToasterOptions): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
export type ToasterPosition = 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
|
|
2
|
+
export type ToasterPositions = ToasterPosition;
|
|
3
|
+
export type ToasterOptions = {
|
|
4
|
+
position?: ToasterPosition;
|
|
4
5
|
timeout?: number;
|
|
5
6
|
persistent?: boolean;
|
|
6
|
-
}
|
|
7
|
+
};
|
package/types/nuxt/index.d.ts
CHANGED
|
@@ -1,26 +1,73 @@
|
|
|
1
|
+
import type { AosOptions, ToasterOptions, ThemeHandlerOptions, vLazyImgOptions } from 'modules';
|
|
1
2
|
export interface MazUiNuxtOptions {
|
|
2
3
|
/**
|
|
3
|
-
* Enable auto
|
|
4
|
+
* Enable auto-import of main css file
|
|
4
5
|
* @default true
|
|
5
6
|
*/
|
|
6
7
|
injectCss?: boolean;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* Install aos plugin and enable auto-import of useAos composable
|
|
9
10
|
* @default false
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
+
injectAos?: boolean | (Omit<AosOptions, 'router'> & {
|
|
13
|
+
/**
|
|
14
|
+
* Auto inject aos CSS file
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
injectCss?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Set `true` to re-run animations on page change
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
router?: boolean;
|
|
23
|
+
});
|
|
12
24
|
/**
|
|
13
|
-
* Install
|
|
25
|
+
* Install toaster plugin and enable auto-import of useToast composable
|
|
14
26
|
* @default false
|
|
15
27
|
*/
|
|
16
|
-
|
|
28
|
+
injectUseToast?: boolean | ToasterOptions;
|
|
17
29
|
/**
|
|
18
|
-
*
|
|
30
|
+
* Install wait plugin and enable auto-import of useWait composable
|
|
19
31
|
* @default false
|
|
20
32
|
*/
|
|
21
|
-
|
|
33
|
+
injectUseWait?: boolean;
|
|
22
34
|
/**
|
|
23
|
-
* Enable auto
|
|
35
|
+
* Enable auto-import of useThemeHandler composable
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
injectUseThemeHandler?: boolean | ThemeHandlerOptions;
|
|
39
|
+
/**
|
|
40
|
+
* Enable auto-import of useIdleTimeout composable
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
injectUseIdleTimeout?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Enable auto-import of useUserVisibility composable
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
injectUseUserVisibility?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Globally install of v-zoom-img directive
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
installVZoomImg?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Globally install of v-click-outside directive
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
installVClickOutside?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Globally install of v-fullscreen-img directive
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
installVFullscreenImg?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Globally install of v-lazy-img directive
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
installVLazyImg?: boolean | vLazyImgOptions;
|
|
69
|
+
/**
|
|
70
|
+
* Enable auto-import of all components
|
|
24
71
|
* @default true
|
|
25
72
|
*/
|
|
26
73
|
injectComponents?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function useThemeHandler(): {
|
|
2
|
+
autoSetTheme: () => void;
|
|
3
|
+
toggleTheme: () => void;
|
|
4
|
+
setDarkTheme: () => void;
|
|
5
|
+
setLightTheme: () => void;
|
|
6
|
+
hasDarkTheme: import("vue").ComputedRef<boolean>;
|
|
7
|
+
hasLightTheme: import("vue").ComputedRef<boolean>;
|
|
8
|
+
theme: import("vue").Ref<string | undefined>;
|
|
9
|
+
};
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: import("nuxt/app").Plugin<{
|
|
3
|
-
toast: ToasterHandler;
|
|
4
|
-
}> & import("nuxt/app").ObjectPlugin<{
|
|
5
|
-
toast: ToasterHandler;
|
|
6
|
-
}>;
|
|
1
|
+
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
|
|
7
2
|
export default _default;
|
|
File without changes
|