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.
Files changed (120) hide show
  1. package/components/MazAvatar.d.ts +4 -4
  2. package/components/MazBackdrop.d.ts +1 -1
  3. package/components/MazBadge.d.ts +1 -1
  4. package/components/MazBottomSheet.mjs +5 -4
  5. package/components/MazBtn.d.ts +4 -4
  6. package/components/MazBtn.mjs +5 -4
  7. package/components/MazCard.d.ts +5 -5
  8. package/components/MazCard.mjs +5 -4
  9. package/components/MazCarousel.mjs +34 -33
  10. package/components/MazChart.d.ts +3 -3
  11. package/components/MazCheckbox.d.ts +1 -1
  12. package/components/MazCheckbox.mjs +7 -9
  13. package/components/MazDialog.mjs +5 -4
  14. package/components/MazDialogPromise.mjs +5 -4
  15. package/components/MazDrawer.d.ts +1 -1
  16. package/components/MazDrawer.mjs +5 -4
  17. package/components/MazDropzone.d.ts +2 -2
  18. package/components/MazFullscreenLoader.d.ts +31 -0
  19. package/components/MazFullscreenLoader.mjs +74 -0
  20. package/components/MazGallery.d.ts +4 -4
  21. package/components/MazIcon.d.ts +1 -1
  22. package/components/MazIcon.mjs +6 -4
  23. package/components/MazInput.d.ts +8 -8
  24. package/components/MazInput.mjs +18 -20
  25. package/components/MazInputNumber.d.ts +1 -1
  26. package/components/MazInputNumber.mjs +9 -11
  27. package/components/MazInputPrice.d.ts +1 -1
  28. package/components/MazInputPrice.mjs +57 -59
  29. package/components/MazInputTags.d.ts +3 -3
  30. package/components/MazInputTags.mjs +9 -11
  31. package/components/MazPhoneNumberInput.d.ts +3 -3
  32. package/components/MazPhoneNumberInput.mjs +23 -22
  33. package/components/MazPicker.d.ts +3 -3
  34. package/components/MazPicker.mjs +81 -83
  35. package/components/MazSelect.d.ts +7 -7
  36. package/components/MazSelect.mjs +27 -26
  37. package/components/MazSlider.d.ts +2 -2
  38. package/components/MazSpinner.d.ts +1 -1
  39. package/components/MazStepper.mjs +6 -4
  40. package/components/MazSwitch.d.ts +2 -2
  41. package/components/MazTabsBar.mjs +5 -4
  42. package/components/MazTabsContent.mjs +6 -4
  43. package/components/MazTabsContentItem.mjs +7 -5
  44. package/components/MazTextarea.d.ts +4 -4
  45. package/components/MazTextarea.mjs +13 -14
  46. package/components/component-list.mjs +1 -0
  47. package/components/index.d.ts +1 -0
  48. package/components/index.mjs +1 -0
  49. package/css/main.css +1 -1
  50. package/modules/index.mjs +590 -143
  51. package/nuxt/index.ts +133 -28
  52. package/nuxt/runtime/composables/use-theme-handler.ts +12 -0
  53. package/nuxt/runtime/plugins/aos.ts +14 -0
  54. package/nuxt/runtime/plugins/toaster.ts +5 -21
  55. package/nuxt/runtime/plugins/v-click-outside.ts +6 -0
  56. package/nuxt/runtime/plugins/v-fullscreen-img.ts +6 -0
  57. package/nuxt/runtime/plugins/v-lazy-img.ts +10 -0
  58. package/nuxt/runtime/plugins/v-zoom-img.ts +6 -0
  59. package/nuxt/runtime/plugins/wait.ts +6 -0
  60. package/package.json +22 -17
  61. package/types/components/MazAvatar.vue.d.ts +4 -4
  62. package/types/components/MazBackdrop.vue.d.ts +1 -1
  63. package/types/components/MazBadge.vue.d.ts +1 -1
  64. package/types/components/MazBtn.vue.d.ts +4 -4
  65. package/types/components/MazCard.vue.d.ts +5 -5
  66. package/types/components/MazChart.vue.d.ts +3 -3
  67. package/types/components/MazCheckbox.vue.d.ts +1 -1
  68. package/types/components/MazDrawer.vue.d.ts +1 -1
  69. package/types/components/MazDropzone.vue.d.ts +2 -2
  70. package/types/components/MazFullscreenLoader.vue.d.ts +31 -0
  71. package/types/components/MazGallery.vue.d.ts +4 -4
  72. package/types/components/MazIcon.vue.d.ts +1 -1
  73. package/types/components/MazInput.vue.d.ts +8 -8
  74. package/types/components/MazInputNumber.vue.d.ts +1 -1
  75. package/types/components/MazInputPrice.vue.d.ts +1 -1
  76. package/types/components/MazInputTags.vue.d.ts +3 -3
  77. package/types/components/MazPhoneNumberInput.vue.d.ts +3 -3
  78. package/types/components/MazPicker.vue.d.ts +3 -3
  79. package/types/components/MazSelect.vue.d.ts +7 -7
  80. package/types/components/MazSlider.vue.d.ts +2 -2
  81. package/types/components/MazSpinner.vue.d.ts +1 -1
  82. package/types/components/MazSwitch.vue.d.ts +2 -2
  83. package/types/components/MazTextarea.vue.d.ts +4 -4
  84. package/types/components/index.d.ts +1 -0
  85. package/types/modules/composables/index.d.ts +7 -7
  86. package/types/modules/composables/use-aos.d.ts +2 -0
  87. package/types/modules/composables/{idle-timeout.d.ts → use-idle-timeout.d.ts} +1 -4
  88. package/types/modules/composables/{instance-uniq-id.d.ts → use-instance-uniq-id.d.ts} +1 -3
  89. package/types/modules/composables/use-toast.d.ts +2 -0
  90. package/types/modules/composables/{user-visibilty.d.ts → use-user-visibilty.d.ts} +1 -4
  91. package/types/modules/composables/use-wait.d.ts +2 -0
  92. package/types/modules/directives/index.d.ts +2 -0
  93. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +102 -0
  94. package/types/modules/directives/v-fullscreen-img/fullscreen-img.directive.d.ts +2 -0
  95. package/types/modules/directives/v-fullscreen-img/fullscreen-img.handler.d.ts +35 -0
  96. package/types/modules/directives/v-fullscreen-img/index.d.ts +7 -0
  97. package/types/modules/helpers/idle-timeout/types.d.ts +16 -1
  98. package/types/modules/helpers/mount-component.d.ts +2 -1
  99. package/types/modules/helpers/user-visibility/types.d.ts +12 -1
  100. package/types/modules/plugins/aos/index.d.ts +7 -6
  101. package/types/modules/plugins/index.d.ts +1 -1
  102. package/types/modules/plugins/toaster/MazToast.vue.d.ts +12 -12
  103. package/types/modules/plugins/toaster/index.d.ts +1 -1
  104. package/types/modules/plugins/toaster/toaster-handler.d.ts +2 -2
  105. package/types/modules/plugins/toaster/types.d.ts +5 -4
  106. package/types/nuxt/index.d.ts +55 -8
  107. package/types/nuxt/runtime/composables/use-theme-handler.d.ts +9 -0
  108. package/types/nuxt/runtime/plugins/aos.d.ts +2 -0
  109. package/types/nuxt/runtime/plugins/toaster.d.ts +1 -6
  110. package/types/nuxt/runtime/plugins/v-click-outside.d.ts +2 -0
  111. package/types/nuxt/runtime/plugins/v-fullscreen-img.d.ts +2 -0
  112. package/types/nuxt/runtime/plugins/v-lazy-img.d.ts +2 -0
  113. package/types/nuxt/runtime/plugins/v-zoom-img.d.ts +2 -0
  114. package/types/nuxt/runtime/plugins/wait.d.ts +2 -0
  115. package/nuxt/runtime/composables/use-toast.ts +0 -8
  116. package/types/modules/composables/aos.d.ts +0 -4
  117. package/types/modules/composables/toaster.d.ts +0 -4
  118. package/types/modules/composables/wait.d.ts +0 -4
  119. package/types/nuxt/runtime/composables/use-toast.d.ts +0 -2
  120. /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: ToasterOptions);
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 ToasterPositions = 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
2
- export interface ToasterOptions {
3
- position?: ToasterPositions;
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
+ };
@@ -1,26 +1,73 @@
1
+ import type { AosOptions, ToasterOptions, ThemeHandlerOptions, vLazyImgOptions } from 'modules';
1
2
  export interface MazUiNuxtOptions {
2
3
  /**
3
- * Enable auto import of main css file
4
+ * Enable auto-import of main css file
4
5
  * @default true
5
6
  */
6
7
  injectCss?: boolean;
7
8
  /**
8
- * Enable auto import of main css file
9
+ * Install aos plugin and enable auto-import of useAos composable
9
10
  * @default false
10
11
  */
11
- injectAosCss?: boolean;
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 the toaster plugin and enable auto import of toaster composable
25
+ * Install toaster plugin and enable auto-import of useToast composable
14
26
  * @default false
15
27
  */
16
- injectToaster?: boolean;
28
+ injectUseToast?: boolean | ToasterOptions;
17
29
  /**
18
- * Enable auto import of useTheme composable
30
+ * Install wait plugin and enable auto-import of useWait composable
19
31
  * @default false
20
32
  */
21
- injectUseThemeHandler?: boolean;
33
+ injectUseWait?: boolean;
22
34
  /**
23
- * Enable auto import of all components
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
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -1,7 +1,2 @@
1
- import { ToasterHandler } from './../../../modules';
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;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
+ export default _default;
@@ -1,8 +0,0 @@
1
- import type { ToasterHandler } from './../../../modules'
2
- import { useNuxtApp } from 'nuxt/app'
3
-
4
- export function useToast() {
5
- const { $toast } = useNuxtApp()
6
-
7
- return $toast as ToasterHandler
8
- }
@@ -1,4 +0,0 @@
1
- import type { AosHandler } from '../plugins/aos';
2
- export declare const useAos: () => {
3
- aos: AosHandler;
4
- };
@@ -1,4 +0,0 @@
1
- import type { ToasterHandler } from '../plugins/toaster';
2
- export declare const useToast: () => {
3
- toast: ToasterHandler;
4
- };
@@ -1,4 +0,0 @@
1
- import type { WaitHandler } from '../plugins/wait';
2
- export declare const useWait: () => {
3
- wait: WaitHandler;
4
- };
@@ -1,2 +0,0 @@
1
- import type { ToasterHandler } from './../../../modules';
2
- export declare function useToast(): ToasterHandler;