maz-ui 3.46.1-beta.5 → 3.47.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 (155) hide show
  1. package/components/MazAccordion.mjs +30 -30
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.d.ts +5 -0
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCardSpotlight.mjs +15 -15
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazChecklist.d.ts +79 -0
  9. package/components/MazChecklist.mjs +4 -0
  10. package/components/MazDialog.mjs +1 -1
  11. package/components/MazDialogPromise.d.ts +2 -0
  12. package/components/MazDialogPromise.mjs +1 -1
  13. package/components/MazDrawer.mjs +1 -1
  14. package/components/MazDropdown.mjs +1 -1
  15. package/components/MazInput.mjs +1 -1
  16. package/components/MazInputNumber.mjs +1 -1
  17. package/components/MazInputPrice.mjs +1 -1
  18. package/components/MazInputTags.mjs +1 -1
  19. package/components/MazPagination.mjs +1 -1
  20. package/components/MazPhoneNumberInput.mjs +1 -1
  21. package/components/MazPicker.d.ts +1 -1
  22. package/components/MazPicker.mjs +1 -1
  23. package/components/MazPullToRefresh.d.ts +2 -2
  24. package/components/MazSelect.mjs +1 -1
  25. package/components/MazTable.d.ts +2 -2
  26. package/components/MazTable.mjs +1 -1
  27. package/components/assets/MazAccordion.css +1 -1
  28. package/components/assets/MazBtn.css +1 -1
  29. package/components/assets/MazCardSpotlight.css +1 -1
  30. package/components/assets/MazChecklist.css +1 -0
  31. package/components/assets/MazDialog.css +1 -1
  32. package/components/assets/MazDialogPromise.css +1 -1
  33. package/components/assets/MazDropdown.css +1 -1
  34. package/components/assets/MazInputNumber.css +1 -1
  35. package/components/assets/MazInputTags.css +1 -1
  36. package/components/assets/MazPagination.css +1 -1
  37. package/components/assets/MazPicker.css +1 -1
  38. package/components/assets/MazSelect.css +1 -1
  39. package/components/assets/MazTable.css +1 -1
  40. package/components/assets/MazTabsBar.css +1 -1
  41. package/components/chunks/{MazBottomSheet-s9lLaK1M.mjs → MazBottomSheet-BvdiOa8P.mjs} +1 -1
  42. package/components/chunks/{MazBtn-BMmuCciQ.mjs → MazBtn-4g56EBmg.mjs} +20 -18
  43. package/components/chunks/MazBtn-4jMQE2G-.mjs +118 -0
  44. package/components/chunks/MazBtn-B3i4Ypas.mjs +118 -0
  45. package/components/chunks/MazBtn-B7rKmEGw.mjs +118 -0
  46. package/components/chunks/MazBtn-BAxR_dt3.mjs +118 -0
  47. package/components/chunks/MazBtn-BF48_wJx.mjs +118 -0
  48. package/components/chunks/{MazBtn-CHABo63Y.mjs → MazBtn-BRdMg4tc.mjs} +21 -19
  49. package/components/chunks/MazBtn-BvirhKh3.mjs +123 -0
  50. package/components/chunks/{MazBtn-BXdap6JU.mjs → MazBtn-CEOWwReA.mjs} +21 -19
  51. package/components/chunks/MazBtn-CGYoHDXm.mjs +118 -0
  52. package/components/chunks/{MazBtn-DarjZUV4.mjs → MazBtn-CVDDOeLF.mjs} +40 -38
  53. package/components/chunks/MazBtn-D6T9wOxO.mjs +118 -0
  54. package/components/chunks/MazBtn-DYMxHlYa.mjs +118 -0
  55. package/components/chunks/MazBtn-D_IQO-P2.mjs +118 -0
  56. package/components/chunks/{MazCard-BaJ5Ee3I.mjs → MazCard-StYuQv11.mjs} +1 -1
  57. package/components/chunks/{MazCarousel-Bb4fpVqN.mjs → MazCarousel-DEO7Tz8F.mjs} +1 -1
  58. package/components/chunks/{MazCheckbox-8n6NtRBb.mjs → MazCheckbox-CtiUQoBe.mjs} +1 -1
  59. package/components/chunks/MazCheckbox-D9RW0OPf.mjs +146 -0
  60. package/components/chunks/{MazCheckbox-C4diNXJq.mjs → MazCheckbox-TiwCiE2s.mjs} +1 -1
  61. package/components/chunks/MazChecklist-B9bw1Mn4.mjs +484 -0
  62. package/components/chunks/{MazDialog-Bv2PzQBz.mjs → MazDialog-C3urFx7y.mjs} +50 -54
  63. package/components/chunks/{MazDialogPromise-BZLP9sXZ.mjs → MazDialogPromise-BuOWwo6n.mjs} +40 -44
  64. package/components/chunks/{MazGallery-C9secrXc.mjs → MazGallery-DLNvXEka.mjs} +2 -2
  65. package/components/chunks/{MazIcon-BaJm2s8_.mjs → MazIcon-DjMuw8Bz.mjs} +1 -1
  66. package/components/chunks/{MazIcon-CudB1a0D.mjs → MazIcon-DyrYf9Sl.mjs} +1 -1
  67. package/components/chunks/{MazInput-B3RzuuNv.mjs → MazInput-BZ2U145p.mjs} +1 -1
  68. package/components/chunks/MazInput-Bq_SbBRE.mjs +290 -0
  69. package/components/chunks/MazInput-_rEW9XWJ.mjs +291 -0
  70. package/components/chunks/{MazInputNumber-mLgq5obR.mjs → MazInputNumber-G8880Neu.mjs} +173 -171
  71. package/components/chunks/{MazInputPrice-DhYRBqTS.mjs → MazInputPrice-DROLM9PX.mjs} +1 -1
  72. package/components/chunks/{MazInputTags-DinwbXaD.mjs → MazInputTags-BRmcZBo4.mjs} +170 -168
  73. package/components/chunks/MazLoadingBar-DHFjKEEm.mjs +32 -0
  74. package/components/chunks/{MazPagination-Cqnr19iI.mjs → MazPagination-6MyYnTer.mjs} +132 -130
  75. package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-r6OjPeRI.mjs} +3 -3
  76. package/components/chunks/{MazPicker-DA92HhwS.mjs → MazPicker-B28fQccE.mjs} +536 -534
  77. package/components/chunks/{MazPickerMonthSwitcher-CPWkw0Hq.mjs → MazPickerMonthSwitcher-DrtbXCca.mjs} +1 -1
  78. package/components/chunks/{MazPickerShortcuts-Fwcoqg5M.mjs → MazPickerShortcuts-TbhHaKoJ.mjs} +1 -1
  79. package/components/chunks/{MazPickerYearSwitcher-DfSXPGfT.mjs → MazPickerYearSwitcher-KwUBj6Cb.mjs} +1 -1
  80. package/components/chunks/{MazSelect-DPTuyc26.mjs → MazSelect-BvC9QQ6M.mjs} +2 -2
  81. package/components/chunks/MazSelect-DyQC9j4n.mjs +568 -0
  82. package/components/chunks/{MazSpinner-BCQzF6j-.mjs → MazSpinner-3vO8e4FF.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-BEqvmPiV.mjs → MazSpinner-B0291afs.mjs} +1 -1
  84. package/components/chunks/MazSpinner-B0aGd8rG.mjs +37 -0
  85. package/components/chunks/{MazSpinner-C2ok6AlJ.mjs → MazSpinner-BziSiJFV.mjs} +1 -1
  86. package/components/chunks/MazSpinner-CKX-8iim.mjs +37 -0
  87. package/components/chunks/MazSpinner-CQ2XrZIS.mjs +37 -0
  88. package/components/chunks/{MazSpinner-B-mc1FWS.mjs → MazSpinner-CRW667yE.mjs} +1 -1
  89. package/components/chunks/{MazSpinner-CVBz5HIx.mjs → MazSpinner-D-7IOf2L.mjs} +1 -1
  90. package/components/chunks/MazSpinner-D0t4IJyq.mjs +37 -0
  91. package/components/chunks/{MazSpinner-CFJmcsGl.mjs → MazSpinner-D5hiFgo4.mjs} +1 -1
  92. package/components/chunks/{MazSpinner-DEdQlQr1.mjs → MazSpinner-DkXUB0w5.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-BpjK60ul.mjs → MazSpinner-DyVjCwmM.mjs} +1 -1
  94. package/components/chunks/MazSpinner-HZYglQFY.mjs +37 -0
  95. package/components/chunks/{MazSpinner-BCHAzmqS.mjs → MazSpinner-JpzVmSvW.mjs} +1 -1
  96. package/components/chunks/MazSpinner-Nu5h2A6E.mjs +37 -0
  97. package/components/chunks/MazSpinner-S6Bx7B15.mjs +37 -0
  98. package/components/chunks/MazSpinner-wR0F3mAY.mjs +37 -0
  99. package/components/chunks/MazTable-DozpABdn.mjs +692 -0
  100. package/components/chunks/MazTableCell-DPgvJ7vY.mjs +23 -0
  101. package/components/chunks/MazTableRow-CCcjwAV1.mjs +30 -0
  102. package/components/chunks/MazTableTitle-Df7F9Cjh.mjs +23 -0
  103. package/components/chunks/{MazTransitionExpand-BoTQeNNf.mjs → MazTransitionExpand--vHzXjx7.mjs} +1 -1
  104. package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
  105. package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
  106. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
  107. package/components/index.d.ts +1 -0
  108. package/components/index.mjs +1 -0
  109. package/css/main.css +1 -1
  110. package/modules/assets/MazBtn.css +1 -1
  111. package/modules/assets/index.css +1 -1
  112. package/{components/chunks/MazBtn-CXxOU7fp.mjs → modules/chunks/MazBtn-BVxI1WwF.mjs} +21 -19
  113. package/modules/chunks/{MazBtn-BG2dUdHV.cjs → MazBtn-DrB5FzZN.cjs} +3 -3
  114. package/modules/chunks/{MazIcon-RkWxQ8JM.cjs → MazIcon-BMJqOZnG.cjs} +1 -1
  115. package/modules/chunks/{MazIcon-BqfELHOt.mjs → MazIcon-b8WRy8OV.mjs} +1 -1
  116. package/modules/chunks/{MazSpinner-GfL807jq.cjs → MazSpinner-6H0uaGkV.cjs} +1 -1
  117. package/modules/chunks/{MazSpinner-DgSRxVEo.mjs → MazSpinner-B-Tki1aV.mjs} +1 -1
  118. package/modules/chunks/{index-aKGx1nxl.mjs → index-Ch4k74ro.mjs} +1150 -954
  119. package/modules/chunks/index-G8fhXnFU.cjs +149 -0
  120. package/modules/index.cjs +1 -1
  121. package/modules/index.mjs +37 -35
  122. package/nuxt/index.d.mts +20 -20
  123. package/nuxt/index.d.ts +20 -20
  124. package/nuxt/index.json +1 -1
  125. package/nuxt/index.mjs +26 -5
  126. package/package.json +1 -1
  127. package/resolvers/index.cjs +1 -1
  128. package/resolvers/index.mjs +3 -1
  129. package/types/components/MazBtn.vue.d.ts +5 -0
  130. package/types/components/MazChecklist.vue.d.ts +79 -0
  131. package/types/components/MazDialogPromise.vue.d.ts +2 -0
  132. package/types/components/MazPicker.vue.d.ts +1 -1
  133. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  134. package/types/components/MazTable.vue.d.ts +2 -2
  135. package/types/components/index.d.ts +1 -0
  136. package/types/modules/composables/index.d.ts +1 -0
  137. package/types/modules/composables/useLanguageDisplayNames.d.ts +17 -0
  138. package/types/modules/helpers/normalize-string.d.ts +1 -2
  139. package/components/chunks/MazBtn-CVB5qDjV.mjs +0 -121
  140. package/components/chunks/MazBtn-CZSXnr3w.mjs +0 -116
  141. package/components/chunks/MazBtn-CwYBz6QO.mjs +0 -116
  142. package/components/chunks/MazBtn-DIE2eM-g.mjs +0 -116
  143. package/components/chunks/MazBtn-DKD-ZMaF.mjs +0 -116
  144. package/components/chunks/MazBtn-OKT5-Y4s.mjs +0 -116
  145. package/components/chunks/MazBtn-e3abHT2L.mjs +0 -116
  146. package/components/chunks/MazSpinner-BoG1T_ZX.mjs +0 -37
  147. package/components/chunks/MazSpinner-DhHVVBJE.mjs +0 -37
  148. package/components/chunks/MazSpinner-DuGaC-cw.mjs +0 -37
  149. package/components/chunks/MazSpinner-Iwon82He.mjs +0 -37
  150. package/components/chunks/MazSpinner-JbfjMNFL.mjs +0 -37
  151. package/components/chunks/MazSpinner-QgcgF5j5.mjs +0 -37
  152. package/components/chunks/MazSpinner-yQGVxaFm.mjs +0 -37
  153. package/components/chunks/MazTable-CrtVI-dp.mjs +0 -2015
  154. package/modules/chunks/MazBtn-BeqYSSYI.mjs +0 -116
  155. package/modules/chunks/index-CE2CsQsx.cjs +0 -149
package/nuxt/index.d.ts CHANGED
@@ -9,7 +9,7 @@ interface MazUiNuxtOptions {
9
9
  injectCss?: boolean;
10
10
  /**
11
11
  * Install aos plugin and enable auto-import of useAos composable
12
- * @default false
12
+ * @default true
13
13
  */
14
14
  injectAos?: boolean | (Omit<AosOptions, 'router'> & {
15
15
  /**
@@ -25,92 +25,92 @@ interface MazUiNuxtOptions {
25
25
  });
26
26
  /**
27
27
  * Install toaster plugin and enable auto-import of useToast composable
28
- * @default false
28
+ * @default true
29
29
  */
30
30
  injectUseToast?: boolean | ToasterOptions;
31
31
  /**
32
32
  * Install dialog plugin and enable auto-import of useToast composable
33
- * @default false
33
+ * @default true
34
34
  */
35
35
  injectUseDialog?: boolean | DialogOptions;
36
36
  /**
37
37
  * Install wait plugin and enable auto-import of useWait composable
38
- * @default false
38
+ * @default true
39
39
  */
40
40
  injectUseWait?: boolean;
41
41
  /**
42
42
  * Enable auto-import of useSwipe composable
43
- * @default false
43
+ * @default true
44
44
  */
45
45
  injectUseSwiper?: boolean;
46
46
  /**
47
47
  * Enable auto-import of useThemeHandler composable
48
- * @default false
48
+ * @default true
49
49
  */
50
50
  injectUseThemeHandler?: boolean | ThemeHandlerOptions;
51
51
  /**
52
52
  * Enable auto-import of useIdleTimeout composable
53
- * @default false
53
+ * @default true
54
54
  */
55
55
  injectUseIdleTimeout?: boolean;
56
56
  /**
57
57
  * Enable auto-import of useUserVisibility composable
58
- * @default false
58
+ * @default true
59
59
  */
60
60
  injectUseUserVisibility?: boolean;
61
61
  /**
62
62
  * Enable auto-import of useTimer composable
63
- * @default false
63
+ * @default true
64
64
  */
65
65
  injectUseTimer?: boolean;
66
66
  /**
67
67
  * Enable auto-import of useWindowSize composable
68
- * @default false
68
+ * @default true
69
69
  */
70
70
  injectUseWindowSize?: boolean;
71
71
  /**
72
72
  * Enable auto-import of useBreakpoints composable
73
- * @default false
73
+ * @default true
74
74
  */
75
75
  injectUseBreakpoints?: boolean;
76
76
  /**
77
77
  * Enable auto-import of useReadingTime composable
78
- * @default false
78
+ * @default true
79
79
  */
80
80
  injectUseReadingTime?: boolean;
81
81
  /**
82
82
  * Enable auto-import of useStringMatching composable
83
- * @default false
83
+ * @default true
84
84
  */
85
85
  injectUseStringMatching?: boolean;
86
86
  /**
87
87
  * Enable auto-import of useFormValidator and useFormField composables
88
- * @default false
88
+ * @default true
89
89
  */
90
90
  injectUseFormValidator?: boolean;
91
91
  /**
92
92
  * Globally install of v-zoom-img directive
93
- * @default false
93
+ * @default true
94
94
  */
95
95
  installVZoomImg?: boolean;
96
96
  /**
97
97
  * Globally install of v-click-outside directive
98
- * @default false
98
+ * @default true
99
99
  */
100
100
  installVClickOutside?: boolean;
101
101
  /**
102
102
  * Globally install of v-fullscreen-img directive
103
- * @default false
103
+ * @default true
104
104
  */
105
105
  installVFullscreenImg?: boolean;
106
106
  /**
107
107
  * Globally install of v-lazy-img directive
108
- * @default false
108
+ * @default true
109
109
  */
110
110
  installVLazyImg?: boolean | vLazyImgOptions;
111
111
  /**
112
112
  * Globally install of v-tooltip directive
113
- * @default false
113
+ * @default true
114
114
  */
115
115
  installVTooltip?: boolean | vTooltipOptions;
116
116
  /**
@@ -120,7 +120,7 @@ interface MazUiNuxtOptions {
120
120
  injectComponents?: boolean;
121
121
  /**
122
122
  * Default path to public svg icons folder for `<MazIcon />` component
123
- * @default undefined
123
+ * @default ''
124
124
  */
125
125
  defaultMazIconPath?: string;
126
126
  /**
package/nuxt/index.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "3.46.1-beta.5",
7
+ "version": "3.47.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
package/nuxt/index.mjs CHANGED
@@ -79,6 +79,31 @@ async function getComponentList() {
79
79
  }
80
80
 
81
81
  const _dirname = dirname(fileURLToPath(import.meta.url));
82
+ const defaults = {
83
+ defaultMazIconPath: "",
84
+ devtools: true,
85
+ injectAos: true,
86
+ injectComponents: true,
87
+ injectCss: true,
88
+ injectUseDialog: true,
89
+ injectUseIdleTimeout: true,
90
+ injectUseReadingTime: true,
91
+ injectUseWindowSize: true,
92
+ injectUseBreakpoints: true,
93
+ injectUseUserVisibility: true,
94
+ injectUseStringMatching: true,
95
+ injectUseTimer: true,
96
+ injectUseThemeHandler: true,
97
+ injectUseToast: true,
98
+ injectUseWait: true,
99
+ injectUseSwiper: true,
100
+ installVClickOutside: true,
101
+ installVFullscreenImg: true,
102
+ installVLazyImg: true,
103
+ installVTooltip: true,
104
+ installVZoomImg: true,
105
+ injectUseFormValidator: true
106
+ };
82
107
  const module = defineNuxtModule({
83
108
  meta: {
84
109
  name: "maz-ui",
@@ -87,11 +112,7 @@ const module = defineNuxtModule({
87
112
  nuxt: ">=3.0.0"
88
113
  }
89
114
  },
90
- defaults: {
91
- devtools: true,
92
- injectCss: true,
93
- injectComponents: true
94
- },
115
+ defaults,
95
116
  async setup(options, nuxt) {
96
117
  const { resolve } = createResolver(import.meta.url);
97
118
  nuxt.options.build.transpile = ["maz-ui", ...nuxt.options.build.transpile];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maz-ui",
3
3
  "type": "module",
4
- "version": "3.46.1-beta.5",
4
+ "version": "3.47.0",
5
5
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(){return{type:"directive",resolve:e=>({from:"maz-ui",as:`v${e}`,name:`v${e}`})}}const n=["capitalize","checkAvailability","countryCodeToUnicodeFlag","currency","date","debounce","injectStrict","isClient","normalizeString","number","sleep","throttle","truthyFilter","useAos","useBreakpoints","useFormField","useFormValidator","useIdleTimeout","useInstanceUniqId","useReadingTime","useStringMatching","useSwipe","useThemeHandler","useTimer","useToast","useUserVisibility","useWait","useWindowSize"];function r(){return e=>{if(n.includes(e))return{from:"maz-ui",name:e}}}function u(e){return e.replaceAll(/-(\w)/g,(a,t)=>t?t.toUpperCase():"")}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function s(e){return o(u(e))}function l(){return{type:"component",resolve:e=>{if(/^(Maz[A-Z])/.test(e))return{from:`maz-ui/components/${e}`};if(/^(maz-[a-z])/.test(e))return{from:`maz-ui/components/${s(e)}`}}}}exports.UnpluginDirectivesResolver=i;exports.UnpluginModulesResolver=r;exports.UnpluginVueComponentsResolver=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(){return{type:"directive",resolve:e=>({from:"maz-ui",as:`v${e}`,name:`v${e}`})}}const r=["capitalize","checkAvailability","countryCodeToUnicodeFlag","currency","date","debounce","injectStrict","isClient","normalizeString","number","sleep","throttle","truthyFilter","useAos","useBreakpoints","useFormField","useFormValidator","useIdleTimeout","useInstanceUniqId","useReadingTime","useStringMatching","useSwipe","useThemeHandler","useTimer","useToast","useUserVisibility","useWait","useWindowSize","useFormValidator","useFormField"];function n(){return e=>{if(r.includes(e))return{from:"maz-ui",name:e}}}function u(e){return e.replaceAll(/-(\w)/g,(a,i)=>i?i.toUpperCase():"")}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function s(e){return o(u(e))}function l(){return{type:"component",resolve:e=>{if(/^(Maz[A-Z])/.test(e))return{from:`maz-ui/components/${e}`};if(/^(maz-[a-z])/.test(e))return{from:`maz-ui/components/${s(e)}`}}}}exports.UnpluginDirectivesResolver=t;exports.UnpluginModulesResolver=n;exports.UnpluginVueComponentsResolver=l;
@@ -32,7 +32,9 @@ const i = [
32
32
  "useToast",
33
33
  "useUserVisibility",
34
34
  "useWait",
35
- "useWindowSize"
35
+ "useWindowSize",
36
+ "useFormValidator",
37
+ "useFormField"
36
38
  ];
37
39
  function l() {
38
40
  return (e) => {
@@ -98,6 +98,10 @@ export interface Props {
98
98
  * @default false
99
99
  */
100
100
  noElevation?: boolean;
101
+ /**
102
+ * Choose how the elements are aligned in the button
103
+ */
104
+ justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
101
105
  }
102
106
  declare function __VLS_template(): {
103
107
  slots: {
@@ -119,6 +123,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
119
123
  icon: string | Icon;
120
124
  leftIcon: string | Icon;
121
125
  rightIcon: string | Icon;
126
+ justify: "start" | "end" | "center" | "between" | "around" | "evenly";
122
127
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
123
128
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
124
129
  export default _default;
@@ -0,0 +1,79 @@
1
+ import type { Color, Props as MazInputProps } from './MazInput.vue';
2
+ import { type NormalizeStringOptions } from '../modules/helpers/normalize-string';
3
+ export type ItemOption = {
4
+ label: string;
5
+ value: string;
6
+ } & Record<string, any>;
7
+ export interface MazCheckListProps<T, O> {
8
+ /**
9
+ * The model value of the checklist (selected items)
10
+ */
11
+ modelValue?: T[];
12
+ /**
13
+ * The query to filter the items (model)
14
+ */
15
+ query?: string;
16
+ /**
17
+ * The list of items to display
18
+ */
19
+ items?: O[];
20
+ /**
21
+ * The title of the checklist
22
+ */
23
+ title?: string;
24
+ /**
25
+ * Add elevation to the card
26
+ * @default false
27
+ */
28
+ elevation?: boolean;
29
+ /**
30
+ * The search input options
31
+ * @default { enabled: false }
32
+ */
33
+ search?: {
34
+ enabled?: boolean;
35
+ } & MazInputProps<string>;
36
+ /**
37
+ * The options to normalize the search query
38
+ */
39
+ searchOptions?: NormalizeStringOptions;
40
+ /**
41
+ * The color of the checklist (card, checkbox and search input)
42
+ * @default primary
43
+ */
44
+ color?: Color;
45
+ }
46
+ export type { NormalizeStringOptions } from '../modules/helpers/normalize-string';
47
+ export type { Color } from './MazInput.vue';
48
+ declare const _default: <T extends string, O extends ItemOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
49
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
50
+ readonly "onUpdate:model-value"?: ((value?: T[] | undefined) => any) | undefined;
51
+ readonly "onUpdate:query"?: ((value?: string | undefined) => any) | undefined;
52
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{}> & Readonly<{
53
+ "onUpdate:model-value"?: ((value?: T[] | undefined) => any) | undefined;
54
+ "onUpdate:query"?: ((value?: string | undefined) => any) | undefined;
55
+ }>, never>, "onUpdate:model-value" | "onUpdate:query"> & MazCheckListProps<T, O>> & import("vue").PublicProps;
56
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
57
+ attrs: any;
58
+ slots: {
59
+ title?(_: {}): any;
60
+ "no-results"?(_: {}): any;
61
+ "no-results-text"?(_: {}): any;
62
+ item?(_: {
63
+ selectedValues: T[];
64
+ item: {
65
+ label: string;
66
+ value: string;
67
+ };
68
+ }): any;
69
+ };
70
+ emit: ((evt: "update:model-value", value?: T[] | undefined) => void) & ((evt: "update:query", value?: string | undefined) => void);
71
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
72
+ [key: string]: any;
73
+ }> & {
74
+ __ctx?: Awaited<typeof __VLS_setup>;
75
+ };
76
+ export default _default;
77
+ type __VLS_PrettifyLocal<T> = {
78
+ [K in keyof T]: T[K];
79
+ } & {};
@@ -23,6 +23,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Ma
23
23
  onOpen?: ((value?: void | undefined) => any) | undefined;
24
24
  }>, {
25
25
  data: DialogData;
26
+ message: string;
27
+ identifier: string;
26
28
  buttons: DialogCustomButton[];
27
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
28
30
  title?(_: {}): any;
@@ -93,9 +93,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
93
93
  format: string;
94
94
  modelValue: string | Partial<import("./MazPicker/types").RangeValue>;
95
95
  open: boolean;
96
+ locale: string;
96
97
  double: boolean;
97
98
  inline: boolean;
98
- locale: string;
99
99
  placeholder: string;
100
100
  noUseBrowserLocale: boolean;
101
101
  minDate: string;
@@ -24,14 +24,14 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
24
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
25
  error: (...args: any[]) => void;
26
26
  loaded: (...args: any[]) => void;
27
- response: (...args: any[]) => void;
28
27
  start: (...args: any[]) => void;
28
+ response: (...args: any[]) => void;
29
29
  finish: (...args: any[]) => void;
30
30
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
31
31
  onError?: ((...args: any[]) => any) | undefined;
32
32
  onLoaded?: ((...args: any[]) => any) | undefined;
33
- onResponse?: ((...args: any[]) => any) | undefined;
34
33
  onStart?: ((...args: any[]) => any) | undefined;
34
+ onResponse?: ((...args: any[]) => any) | undefined;
35
35
  onFinish?: ((...args: any[]) => any) | undefined;
36
36
  }>, {
37
37
  disabled: boolean;
@@ -53,7 +53,7 @@ export interface MazTableProps {
53
53
  * Size of the search inputs
54
54
  * @values `'xl' | 'lg' | 'md' | 'sm' | 'xs' | 'mini'`
55
55
  */
56
- searchInputSize?: Size;
56
+ inputSize?: Size;
57
57
  /** title of the table */
58
58
  title?: string;
59
59
  /** headers of the table */
@@ -199,9 +199,9 @@ declare const __VLS_component: import("vue").DefineComponent<MazTableProps, {},
199
199
  searchQuery: string;
200
200
  captionSide: "top" | "bottom";
201
201
  tableLayout: "auto" | "fixed";
202
- headers: Header[];
203
202
  tableClass: HTMLAttributes["class"];
204
203
  tableStyle: string | false | import("vue").CSSProperties | StyleValue[] | null;
204
+ headers: Header[];
205
205
  headersAlign: "center" | "left" | "right" | "justify" | "char";
206
206
  rows: Row[];
207
207
  searchByPlaceholder: string;
@@ -10,6 +10,7 @@ export { default as MazCardSpotlight } from './MazCardSpotlight.vue';
10
10
  export { default as MazCarousel } from './MazCarousel.vue';
11
11
  export { default as MazChart } from './MazChart.vue';
12
12
  export { default as MazCheckbox } from './MazCheckbox.vue';
13
+ export { default as MazChecklist } from './MazChecklist.vue';
13
14
  export { default as MazCircularProgressBar } from './MazCircularProgressBar.vue';
14
15
  export { default as MazDialog } from './MazDialog.vue';
15
16
  export { default as MazDialogPromise } from './MazDialogPromise.vue';
@@ -4,6 +4,7 @@ export * from './useDialog';
4
4
  export * from './useFormValidator';
5
5
  export * from './useIdleTimeout';
6
6
  export * from './useInstanceUniqId';
7
+ export * from './useLanguageDisplayNames';
7
8
  export * from './useReadingTime';
8
9
  export * from './useStringMatching';
9
10
  export * from './useSwipe';
@@ -0,0 +1,17 @@
1
+ import { type MaybeRefOrGetter } from 'vue';
2
+ export declare const isoCodes: readonly ["af-ZA", "sq-AL", "ar-DZ", "ar-BH", "ar-EG", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-AE", "ar-YE", "hy-AM", "Cy-az-AZ", "Lt-az-AZ", "eu-ES", "be-BY", "bg-BG", "ca-ES", "zh-CN", "zh-HK", "zh-MO", "zh-SG", "zh-TW", "zh-CHS", "zh-CHT", "hr-HR", "cs-CZ", "da-DK", "div-MV", "nl-BE", "nl-NL", "en-AU", "en-BZ", "en-CA", "en-CB", "en-IE", "en-JM", "en-NZ", "en-PH", "en-ZA", "en-TT", "en-GB", "en-US", "en-ZW", "et-EE", "fo-FO", "fa-IR", "fi-FI", "fr-BE", "fr-CA", "fr-FR", "fr-LU", "fr-MC", "fr-CH", "gl-ES", "ka-GE", "de-AT", "de-DE", "de-LI", "de-LU", "de-CH", "el-GR", "gu-IN", "he-IL", "hi-IN", "hu-HU", "is-IS", "id-ID", "it-IT", "it-CH", "ja-JP", "kn-IN", "kk-KZ", "kok-IN", "ko-KR", "ky-KZ", "lv-LV", "lt-LT", "mk-MK", "ms-BN", "ms-MY", "mr-IN", "mn-MN", "nb-NO", "nn-NO", "pl-PL", "pt-BR", "pt-PT", "pa-IN", "ro-RO", "ru-RU", "sa-IN", "Cy-sr-SP", "Lt-sr-SP", "sk-SK", "sl-SI", "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-DO", "es-EC", "es-SV", "es-GT", "es-HN", "es-MX", "es-NI", "es-PA", "es-PY", "es-PE", "es-PR", "es-ES", "es-UY", "es-VE", "sw-KE", "sv-FI", "sv-SE", "syr-SY", "ta-IN", "tt-RU", "te-IN", "th-TH", "tr-TR", "uk-UA", "ur-PK", "Cy-uz-UZ", "Lt-uz-UZ", "vi-VN"];
3
+ export type IsoCode = (typeof isoCodes)[number];
4
+ export declare function useLanguageDisplayNames(mainLocale?: MaybeRefOrGetter<string>): {
5
+ getLanguageDisplayName: ({ isoCode, locale }: {
6
+ isoCode?: MaybeRefOrGetter<string>;
7
+ locale?: MaybeRefOrGetter<string>;
8
+ }) => import("vue").ComputedRef<string | undefined>;
9
+ getAllPossibleLanguages: (locale?: MaybeRefOrGetter<string>) => import("vue").ComputedRef<{
10
+ language: string;
11
+ code: string;
12
+ }[]>;
13
+ getLanguageDisplayNamesForIsoCodes: (locale?: MaybeRefOrGetter<string>) => import("vue").ComputedRef<({
14
+ language: string;
15
+ code: "af-ZA" | "sq-AL" | "ar-DZ" | "ar-BH" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-AE" | "ar-YE" | "hy-AM" | "Cy-az-AZ" | "Lt-az-AZ" | "eu-ES" | "be-BY" | "bg-BG" | "ca-ES" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-TW" | "zh-CHS" | "zh-CHT" | "hr-HR" | "cs-CZ" | "da-DK" | "div-MV" | "nl-BE" | "nl-NL" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-ZA" | "en-TT" | "en-GB" | "en-US" | "en-ZW" | "et-EE" | "fo-FO" | "fa-IR" | "fi-FI" | "fr-BE" | "fr-CA" | "fr-FR" | "fr-LU" | "fr-MC" | "fr-CH" | "gl-ES" | "ka-GE" | "de-AT" | "de-DE" | "de-LI" | "de-LU" | "de-CH" | "el-GR" | "gu-IN" | "he-IL" | "hi-IN" | "hu-HU" | "is-IS" | "id-ID" | "it-IT" | "it-CH" | "ja-JP" | "kn-IN" | "kk-KZ" | "kok-IN" | "ko-KR" | "ky-KZ" | "lv-LV" | "lt-LT" | "mk-MK" | "ms-BN" | "ms-MY" | "mr-IN" | "mn-MN" | "nb-NO" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "pa-IN" | "ro-RO" | "ru-RU" | "sa-IN" | "Cy-sr-SP" | "Lt-sr-SP" | "sk-SK" | "sl-SI" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-SV" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PY" | "es-PE" | "es-PR" | "es-ES" | "es-UY" | "es-VE" | "sw-KE" | "sv-FI" | "sv-SE" | "syr-SY" | "ta-IN" | "tt-RU" | "te-IN" | "th-TH" | "tr-TR" | "uk-UA" | "ur-PK" | "Cy-uz-UZ" | "Lt-uz-UZ" | "vi-VN";
16
+ } | undefined)[]>;
17
+ };
@@ -1,4 +1,4 @@
1
- interface NormalizeStringOptions {
1
+ export interface NormalizeStringOptions {
2
2
  /**
3
3
  * Remove accents from the string
4
4
  * @default true
@@ -45,4 +45,3 @@ interface NormalizeStringOptions {
45
45
  customNormalizationForms?: string[];
46
46
  }
47
47
  export declare function normalizeString(input: string | number | boolean, options?: NormalizeStringOptions): string;
48
- export {};
@@ -1,121 +0,0 @@
1
- import { defineComponent as F, defineAsyncComponent as g, useAttrs as O, useSlots as j, computed as n, openBlock as l, createBlock as a, resolveDynamicComponent as d, normalizeClass as s, withCtx as E, createCommentVNode as t, renderSlot as f, unref as p, createElementBlock as R, createVNode as A } from "vue";
2
- import '../assets/MazBtn.css';const D = {
3
- key: 2,
4
- class: "m-btn-loader-container"
5
- }, L = /* @__PURE__ */ F({
6
- __name: "MazBtn",
7
- props: {
8
- variant: { default: "button" },
9
- size: { default: "md" },
10
- color: { default: "primary" },
11
- type: { default: "button" },
12
- rounded: { type: Boolean },
13
- roundedSize: { default: "lg" },
14
- noRounded: { type: Boolean },
15
- outline: { type: Boolean },
16
- pastel: { type: Boolean },
17
- block: { type: Boolean },
18
- noUnderline: { type: Boolean },
19
- loading: { type: Boolean },
20
- disabled: { type: Boolean },
21
- fab: { type: Boolean },
22
- icon: { type: [String, Function, Object], default: void 0 },
23
- leftIcon: { type: [String, Function, Object], default: void 0 },
24
- rightIcon: { type: [String, Function, Object], default: void 0 },
25
- noPadding: { type: Boolean },
26
- noElevation: { type: Boolean }
27
- },
28
- setup(u) {
29
- const o = u, c = g(() => import("./MazSpinner-C2ok6AlJ.mjs")), r = g(() => import("./MazIcon-BbvBov5G.mjs")), { href: v, to: z } = O(), m = j(), y = n(() => v ? "a" : z ? "router-link" : "button"), I = n(
30
- () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
31
- ), b = n(
32
- () => (o.loading || o.disabled) && y.value === "button"
33
- ), k = n(() => b.value ? "--cursor-default" : "--cursor-pointer"), B = n(() => `--is-${o.variant}`), C = n(() => o.loading && o.variant === "button"), S = n(() => !!m["left-icon"] || o.leftIcon), h = n(() => !!m["right-icon"] || o.rightIcon), $ = n(() => S.value || h.value), M = n(() => o.icon || !!m.icon), T = n(() => y.value === "button" ? o.type : void 0), i = n(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "md");
34
- return (e, P) => (l(), a(d(y.value), {
35
- disabled: b.value || void 0,
36
- class: s(["m-btn", [
37
- `--${e.size}`,
38
- !e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
39
- I.value,
40
- k.value,
41
- B.value,
42
- {
43
- "--block": e.block,
44
- "--no-underline": e.noUnderline,
45
- "--fab": e.fab,
46
- "--loading": e.loading,
47
- "--disabled": b.value,
48
- "--icon": $.value,
49
- "--rounded": e.rounded,
50
- "--no-rounded": e.noRounded,
51
- "--no-padding": e.noPadding,
52
- "--no-elevation": e.noElevation
53
- }
54
- ]]),
55
- type: T.value
56
- }, {
57
- default: E(() => [
58
- t(`
59
- @slot left-icon - The icon to display on the left of the button
60
- `),
61
- f(e.$slots, "left-icon", {}, () => [
62
- typeof e.leftIcon == "string" ? (l(), a(p(r), {
63
- key: 0,
64
- name: e.leftIcon,
65
- class: s([i.value])
66
- }, null, 8, ["name", "class"])) : e.leftIcon ? (l(), a(d(e.leftIcon), {
67
- key: 1,
68
- class: s([i.value])
69
- }, null, 8, ["class"])) : t("v-if", !0)
70
- ], !0),
71
- t(`
72
- @slot icon - The icon to display on the fab button
73
- `),
74
- M.value ? f(e.$slots, "icon", { key: 0 }, () => [
75
- typeof e.icon == "string" ? (l(), a(p(r), {
76
- key: 0,
77
- name: e.icon,
78
- class: s([i.value])
79
- }, null, 8, ["name", "class"])) : e.icon ? (l(), a(d(e.icon), {
80
- key: 1,
81
- class: s([i.value])
82
- }, null, 8, ["class"])) : t("v-if", !0)
83
- ], !0) : t("v-if", !0),
84
- t(`
85
- @slot default - The content of the button
86
- `),
87
- f(e.$slots, "default", {}, void 0, !0),
88
- t(`
89
- @slot left-icon - The icon to display on the left of the button
90
- `),
91
- h.value ? f(e.$slots, "right-icon", { key: 1 }, () => [
92
- typeof e.rightIcon == "string" ? (l(), a(p(r), {
93
- key: 0,
94
- name: e.rightIcon,
95
- class: s([i.value])
96
- }, null, 8, ["name", "class"])) : e.rightIcon ? (l(), a(d(e.rightIcon), {
97
- key: 1,
98
- class: s([i.value])
99
- }, null, 8, ["class"])) : t("v-if", !0)
100
- ], !0) : t("v-if", !0),
101
- C.value ? (l(), R("div", D, [
102
- A(p(c), {
103
- size: "2em",
104
- color: e.color
105
- }, null, 8, ["color"])
106
- ])) : t("v-if", !0)
107
- ]),
108
- _: 3
109
- /* FORWARDED */
110
- }, 8, ["disabled", "class", "type"]));
111
- }
112
- }), N = (u, o) => {
113
- const c = u.__vccOpts || u;
114
- for (const [r, v] of o)
115
- c[r] = v;
116
- return c;
117
- }, V = /* @__PURE__ */ N(L, [["__scopeId", "data-v-8deef21f"]]);
118
- export {
119
- V as M,
120
- N as _
121
- };