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
package/nuxt/index.ts
CHANGED
|
@@ -3,40 +3,79 @@ import { defu } from 'defu'
|
|
|
3
3
|
import { componentList } from '../components/component-list'
|
|
4
4
|
import { dirname } from 'node:path'
|
|
5
5
|
import { fileURLToPath } from 'node:url'
|
|
6
|
+
import type { AosOptions, ToasterOptions, ThemeHandlerOptions, vLazyImgOptions } from 'modules'
|
|
6
7
|
|
|
7
8
|
export interface MazUiNuxtOptions {
|
|
8
9
|
/**
|
|
9
|
-
* Enable auto
|
|
10
|
+
* Enable auto-import of main css file
|
|
10
11
|
* @default true
|
|
11
12
|
*/
|
|
12
13
|
injectCss?: boolean
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* Install aos plugin and enable auto-import of useAos composable
|
|
15
16
|
* @default false
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
injectAos?:
|
|
19
|
+
| boolean
|
|
20
|
+
| (Omit<AosOptions, 'router'> & {
|
|
21
|
+
/**
|
|
22
|
+
* Auto inject aos CSS file
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
injectCss?: boolean
|
|
26
|
+
/**
|
|
27
|
+
* Set `true` to re-run animations on page change
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
router?: boolean
|
|
31
|
+
})
|
|
18
32
|
/**
|
|
19
|
-
* Install
|
|
33
|
+
* Install toaster plugin and enable auto-import of useToast composable
|
|
20
34
|
* @default false
|
|
21
35
|
*/
|
|
22
|
-
|
|
23
|
-
// /**
|
|
24
|
-
// * Enable auto import of useCurrency composable
|
|
25
|
-
// * @default false
|
|
26
|
-
// */
|
|
27
|
-
// injectUseCurrency?: boolean
|
|
36
|
+
injectUseToast?: boolean | ToasterOptions
|
|
28
37
|
/**
|
|
29
|
-
*
|
|
38
|
+
* Install wait plugin and enable auto-import of useWait composable
|
|
30
39
|
* @default false
|
|
31
40
|
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
injectUseWait?: boolean
|
|
42
|
+
/**
|
|
43
|
+
* Enable auto-import of useThemeHandler composable
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
injectUseThemeHandler?: boolean | ThemeHandlerOptions
|
|
47
|
+
/**
|
|
48
|
+
* Enable auto-import of useIdleTimeout composable
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
injectUseIdleTimeout?: boolean
|
|
38
52
|
/**
|
|
39
|
-
* Enable auto
|
|
53
|
+
* Enable auto-import of useUserVisibility composable
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
injectUseUserVisibility?: boolean
|
|
57
|
+
/**
|
|
58
|
+
* Globally install of v-zoom-img directive
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
installVZoomImg?: boolean
|
|
62
|
+
/**
|
|
63
|
+
* Globally install of v-click-outside directive
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
installVClickOutside?: boolean
|
|
67
|
+
/**
|
|
68
|
+
* Globally install of v-fullscreen-img directive
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
installVFullscreenImg?: boolean
|
|
72
|
+
/**
|
|
73
|
+
* Globally install of v-lazy-img directive
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
installVLazyImg?: boolean | vLazyImgOptions
|
|
77
|
+
/**
|
|
78
|
+
* Enable auto-import of all components
|
|
40
79
|
* @default true
|
|
41
80
|
*/
|
|
42
81
|
injectComponents?: boolean
|
|
@@ -45,6 +84,11 @@ export interface MazUiNuxtOptions {
|
|
|
45
84
|
* @default true
|
|
46
85
|
*/
|
|
47
86
|
devtools?: boolean
|
|
87
|
+
// /**
|
|
88
|
+
// * Enable auto-import of useCurrency composable
|
|
89
|
+
// * @default false
|
|
90
|
+
// */
|
|
91
|
+
// injectUseCurrency?: boolean
|
|
48
92
|
}
|
|
49
93
|
|
|
50
94
|
declare module '@nuxt/schema' {
|
|
@@ -87,13 +131,6 @@ export default defineNuxtModule<MazUiNuxtOptions>({
|
|
|
87
131
|
nuxt.options.css = [resolve(path), ...nuxt.options.css]
|
|
88
132
|
}
|
|
89
133
|
|
|
90
|
-
if (moduleOptions.injectAosCss && process.env.MAZ_UI_DEV === 'true') {
|
|
91
|
-
// the library should be built
|
|
92
|
-
nuxt.options.css = [resolve('./../dist/css/aos.css'), ...nuxt.options.css]
|
|
93
|
-
} else if (moduleOptions.injectAosCss) {
|
|
94
|
-
nuxt.options.css = [resolve('./../css/aos.css'), ...nuxt.options.css]
|
|
95
|
-
}
|
|
96
|
-
|
|
97
134
|
if (moduleOptions.injectComponents) {
|
|
98
135
|
for (const componentName of componentList) {
|
|
99
136
|
addComponent({
|
|
@@ -106,16 +143,68 @@ export default defineNuxtModule<MazUiNuxtOptions>({
|
|
|
106
143
|
}
|
|
107
144
|
}
|
|
108
145
|
|
|
109
|
-
if (moduleOptions.
|
|
146
|
+
if (moduleOptions.injectAos) {
|
|
147
|
+
addPlugin(resolve(_dirname, './runtime/plugins/aos'))
|
|
148
|
+
|
|
149
|
+
addImports({
|
|
150
|
+
from: 'maz-ui',
|
|
151
|
+
name: 'useAos',
|
|
152
|
+
as: 'useAos',
|
|
153
|
+
})
|
|
154
|
+
|
|
155
|
+
const injectAosCSS =
|
|
156
|
+
typeof moduleOptions.injectAos === 'object' &&
|
|
157
|
+
typeof moduleOptions.injectAos.injectCss === 'boolean'
|
|
158
|
+
? moduleOptions.injectAos.injectCss
|
|
159
|
+
: true
|
|
160
|
+
|
|
161
|
+
if (
|
|
162
|
+
typeof moduleOptions.injectAos === 'object' &&
|
|
163
|
+
injectAosCSS &&
|
|
164
|
+
process.env.MAZ_UI_DEV === 'true'
|
|
165
|
+
) {
|
|
166
|
+
nuxt.options.css = [resolve('./../dist/css/aos.css'), ...nuxt.options.css]
|
|
167
|
+
} else if (typeof moduleOptions.injectAos === 'object' && injectAosCSS) {
|
|
168
|
+
nuxt.options.css = [resolve('./../css/aos.css'), ...nuxt.options.css]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (moduleOptions.injectUseToast) {
|
|
110
173
|
addPlugin(resolve(_dirname, './runtime/plugins/toaster'))
|
|
111
174
|
|
|
112
175
|
addImports({
|
|
113
|
-
from:
|
|
176
|
+
from: 'maz-ui',
|
|
114
177
|
name: 'useToast',
|
|
115
178
|
as: 'useToast',
|
|
116
179
|
})
|
|
117
180
|
}
|
|
118
181
|
|
|
182
|
+
if (moduleOptions.injectUseWait) {
|
|
183
|
+
addPlugin(resolve(_dirname, './runtime/plugins/wait'))
|
|
184
|
+
|
|
185
|
+
addImports({
|
|
186
|
+
from: 'maz-ui',
|
|
187
|
+
name: 'useWait',
|
|
188
|
+
as: 'useWait',
|
|
189
|
+
})
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (moduleOptions.installVZoomImg) {
|
|
193
|
+
addPlugin(resolve(_dirname, './runtime/plugins/v-zoom-img'))
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (moduleOptions.installVLazyImg) {
|
|
197
|
+
addPlugin(resolve(_dirname, './runtime/plugins/v-lazy-img'))
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (moduleOptions.installVClickOutside) {
|
|
201
|
+
addPlugin(resolve(_dirname, './runtime/plugins/v-click-outside'))
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (moduleOptions.installVFullscreenImg) {
|
|
205
|
+
addPlugin(resolve(_dirname, './runtime/plugins/v-fullscreen-img'))
|
|
206
|
+
}
|
|
207
|
+
|
|
119
208
|
// if (moduleOptions.injectUseCurrency) {
|
|
120
209
|
// addImports({
|
|
121
210
|
// from: 'maz-ui',
|
|
@@ -126,12 +215,28 @@ export default defineNuxtModule<MazUiNuxtOptions>({
|
|
|
126
215
|
|
|
127
216
|
if (moduleOptions.injectUseThemeHandler) {
|
|
128
217
|
addImports({
|
|
129
|
-
from: '
|
|
218
|
+
from: resolve(_dirname, './runtime/composables/use-theme-handler'),
|
|
130
219
|
name: 'useThemeHandler',
|
|
131
220
|
as: 'useThemeHandler',
|
|
132
221
|
})
|
|
133
222
|
}
|
|
134
223
|
|
|
224
|
+
if (moduleOptions.injectUseIdleTimeout) {
|
|
225
|
+
addImports({
|
|
226
|
+
from: 'maz-ui',
|
|
227
|
+
name: 'useIdleTimeout',
|
|
228
|
+
as: 'useIdleTimeout',
|
|
229
|
+
})
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if (moduleOptions.injectUseUserVisibility) {
|
|
233
|
+
addImports({
|
|
234
|
+
from: 'maz-ui',
|
|
235
|
+
name: 'useUserVisibility',
|
|
236
|
+
as: 'useUserVisibility',
|
|
237
|
+
})
|
|
238
|
+
}
|
|
239
|
+
|
|
135
240
|
// if (moduleOptions.installFullscreenImgDirective) {
|
|
136
241
|
// addPlugin(resolve(_dirname, './runtime/plugins/v-fullscreen-img'))
|
|
137
242
|
// }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useThemeHandler as useThemeHandlerComposable } from '../../../modules'
|
|
2
|
+
import { useNuxtApp } from 'nuxt/app'
|
|
3
|
+
|
|
4
|
+
export function useThemeHandler() {
|
|
5
|
+
const { $config } = useNuxtApp()
|
|
6
|
+
|
|
7
|
+
const themeHandlerOptions = $config.public.mazUi?.injectUseThemeHandler
|
|
8
|
+
|
|
9
|
+
const options = typeof themeHandlerOptions === 'object' ? themeHandlerOptions : undefined
|
|
10
|
+
|
|
11
|
+
return useThemeHandlerComposable(options)
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { installAos } from './../../../modules'
|
|
2
|
+
import { defineNuxtPlugin, useRouter } from 'nuxt/app'
|
|
3
|
+
|
|
4
|
+
export default defineNuxtPlugin(({ vueApp, $config }) => {
|
|
5
|
+
const aosOptions = $config.public.mazUi?.injectAos
|
|
6
|
+
const router = useRouter()
|
|
7
|
+
|
|
8
|
+
const options =
|
|
9
|
+
typeof aosOptions === 'object'
|
|
10
|
+
? { ...aosOptions, router: aosOptions.router ? router : undefined }
|
|
11
|
+
: {}
|
|
12
|
+
|
|
13
|
+
vueApp.use(installAos, options)
|
|
14
|
+
})
|
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { installToaster } from './../../../modules'
|
|
2
2
|
import { defineNuxtPlugin } from 'nuxt/app'
|
|
3
3
|
|
|
4
|
-
export default defineNuxtPlugin(({ vueApp }) => {
|
|
5
|
-
const
|
|
6
|
-
position: 'top',
|
|
7
|
-
timeout: 10_000,
|
|
8
|
-
persistent: false,
|
|
9
|
-
})
|
|
4
|
+
export default defineNuxtPlugin(({ vueApp, $config }) => {
|
|
5
|
+
const toasterOptions = $config.public.mazUi?.injectUseToast
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
const toasterServer = {
|
|
13
|
-
show: () => {},
|
|
14
|
-
success: () => {},
|
|
15
|
-
error: () => {},
|
|
16
|
-
warning: () => {},
|
|
17
|
-
info: () => {},
|
|
18
|
-
} as unknown as ToasterHandler
|
|
19
|
-
/* eslint-enable @typescript-eslint/no-empty-function */
|
|
7
|
+
const options = typeof toasterOptions === 'object' ? toasterOptions : undefined
|
|
20
8
|
|
|
21
|
-
|
|
22
|
-
provide: {
|
|
23
|
-
toast: (process.client ? instance : toasterServer) as ToasterHandler,
|
|
24
|
-
},
|
|
25
|
-
}
|
|
9
|
+
vueApp.use(installToaster, options)
|
|
26
10
|
})
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { vLazyImgInstall } from '../../../modules'
|
|
2
|
+
import { defineNuxtPlugin } from 'nuxt/app'
|
|
3
|
+
|
|
4
|
+
export default defineNuxtPlugin(({ vueApp, $config }) => {
|
|
5
|
+
const vLazyImgOptions = $config.public.mazUi?.installVLazyImg
|
|
6
|
+
|
|
7
|
+
const options = typeof vLazyImgOptions === 'object' ? vLazyImgOptions : undefined
|
|
8
|
+
|
|
9
|
+
vueApp.use(vLazyImgInstall, options)
|
|
10
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.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.mjs",
|
|
@@ -8,20 +8,20 @@
|
|
|
8
8
|
"types": "./types/modules/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"types": "./types/modules/index.d.ts",
|
|
12
|
+
"default": "./modules/index.mjs"
|
|
13
13
|
},
|
|
14
14
|
"./components": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"types": "./types/components/index.d.ts",
|
|
16
|
+
"default": "./components/index.mjs"
|
|
17
17
|
},
|
|
18
18
|
"./components/*": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"types": "./types/components/*.vue.d.ts",
|
|
20
|
+
"default": "./components/*"
|
|
21
21
|
},
|
|
22
22
|
"./nuxt": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"types": "./types/nuxt/index.d.ts",
|
|
24
|
+
"default": "./nuxt/index.ts"
|
|
25
25
|
},
|
|
26
26
|
"./styles": "./css/main.css",
|
|
27
27
|
"./aos-styles": "./css/aos.css",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"libphonenumber-js": "^1.9.44",
|
|
52
52
|
"nuxt": "^3.4.0",
|
|
53
53
|
"vue": "^3.0.0",
|
|
54
|
-
"vue-router": "^4.0.0"
|
|
54
|
+
"vue-router": "^4.0.0",
|
|
55
|
+
"vue-scrollto": "^2.0.0"
|
|
55
56
|
},
|
|
56
57
|
"peerDependenciesMeta": {
|
|
57
58
|
"dropzone": {
|
|
@@ -75,6 +76,9 @@
|
|
|
75
76
|
"@nuxt/kit": {
|
|
76
77
|
"optional": true
|
|
77
78
|
},
|
|
79
|
+
"vue-scrollto": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
78
82
|
"defu": {
|
|
79
83
|
"optional": true
|
|
80
84
|
}
|
|
@@ -87,18 +91,18 @@
|
|
|
87
91
|
"@nuxt/schema": "^3.7.3",
|
|
88
92
|
"@types/dropzone": "^5.7.4",
|
|
89
93
|
"@types/google.maps": "^3.54.1",
|
|
90
|
-
"@types/node": "^20.6.
|
|
94
|
+
"@types/node": "^20.6.3",
|
|
91
95
|
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
|
|
92
96
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
93
97
|
"@typescript-eslint/parser": "^6.7.2",
|
|
94
98
|
"@vitejs/plugin-vue": "^4.3.4",
|
|
95
|
-
"@vitest/coverage-v8": "^0.34.
|
|
99
|
+
"@vitest/coverage-v8": "^0.34.5",
|
|
96
100
|
"@vue/compiler-sfc": "^3.3.4",
|
|
97
101
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
98
102
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
99
103
|
"@vue/test-utils": "^2.4.1",
|
|
100
104
|
"@vue/tsconfig": "^0.4.0",
|
|
101
|
-
"autoprefixer": "^10.4.
|
|
105
|
+
"autoprefixer": "^10.4.16",
|
|
102
106
|
"c8": "^8.0.1",
|
|
103
107
|
"chalk": "^4.1.2",
|
|
104
108
|
"chart.js": "^4.4.0",
|
|
@@ -131,7 +135,7 @@
|
|
|
131
135
|
"replace-in-file": "^7.0.1",
|
|
132
136
|
"rimraf": "^5.0.1",
|
|
133
137
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
134
|
-
"sass": "^1.
|
|
138
|
+
"sass": "^1.68.0",
|
|
135
139
|
"semver": "^7.5.4",
|
|
136
140
|
"sirv": "^2.0.3",
|
|
137
141
|
"stylelint": "^15.10.3",
|
|
@@ -140,20 +144,21 @@
|
|
|
140
144
|
"stylelint-config-standard-scss": "^11.0.0",
|
|
141
145
|
"stylelint-config-tailwindcss": "^0.0.7",
|
|
142
146
|
"tailwindcss": "^3.3.3",
|
|
143
|
-
"terser": "^5.
|
|
147
|
+
"terser": "^5.20.0",
|
|
144
148
|
"ts-node": "^10.9.1",
|
|
145
149
|
"typescript": "^5.2.2",
|
|
146
150
|
"vite": "^4.4.9",
|
|
147
151
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
148
152
|
"vite-plugin-static-copy": "^0.17.0",
|
|
149
153
|
"vite-svg-loader": "^4.0.0",
|
|
150
|
-
"vitest": "^0.34.
|
|
154
|
+
"vitest": "^0.34.5",
|
|
151
155
|
"vitest-canvas-mock": "^0.3.3",
|
|
152
156
|
"vue": "^3.3.4",
|
|
153
157
|
"vue-chartjs": "^5.2.0",
|
|
154
158
|
"vue-loader": "^17.2.2",
|
|
155
159
|
"vue-router": "^4.2.4",
|
|
156
|
-
"vue-
|
|
160
|
+
"vue-scrollto": "^2.20.0",
|
|
161
|
+
"vue-tsc": "^1.8.13",
|
|
157
162
|
"vuedraggable": "^2.24.3"
|
|
158
163
|
},
|
|
159
164
|
"engines": {
|
|
@@ -126,15 +126,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
126
126
|
}>> & {
|
|
127
127
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
128
128
|
}, {
|
|
129
|
+
size: string;
|
|
129
130
|
caption: string | null | undefined;
|
|
131
|
+
alt: string;
|
|
130
132
|
src: string | null | undefined;
|
|
131
|
-
size: string;
|
|
132
|
-
target: string;
|
|
133
133
|
href: string;
|
|
134
|
-
|
|
134
|
+
target: string;
|
|
135
135
|
noLoader: boolean;
|
|
136
136
|
imageHeightFull: boolean;
|
|
137
|
-
|
|
137
|
+
to: Record<string, any>;
|
|
138
138
|
bordered: boolean;
|
|
139
139
|
clickable: boolean;
|
|
140
140
|
square: boolean;
|
|
@@ -75,8 +75,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
};
|
|
76
76
|
}>> & {
|
|
77
77
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
78
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
|
79
78
|
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
80
80
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
persistent: boolean;
|
|
@@ -56,8 +56,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
56
56
|
validator: (value: string) => boolean;
|
|
57
57
|
};
|
|
58
58
|
}>>, {
|
|
59
|
-
color: BadgeColor;
|
|
60
59
|
size: string;
|
|
60
|
+
color: BadgeColor;
|
|
61
61
|
nowrap: boolean;
|
|
62
62
|
outline: boolean;
|
|
63
63
|
pastel: boolean;
|
|
@@ -17,7 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
type: {
|
|
20
|
-
type: PropType<"button" | "
|
|
20
|
+
type: PropType<"button" | "submit" | "reset">;
|
|
21
21
|
default: string;
|
|
22
22
|
validator: (value: string) => boolean;
|
|
23
23
|
};
|
|
@@ -97,7 +97,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
97
97
|
default: string;
|
|
98
98
|
};
|
|
99
99
|
type: {
|
|
100
|
-
type: PropType<"button" | "
|
|
100
|
+
type: PropType<"button" | "submit" | "reset">;
|
|
101
101
|
default: string;
|
|
102
102
|
validator: (value: string) => boolean;
|
|
103
103
|
};
|
|
@@ -162,10 +162,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
162
162
|
default: boolean;
|
|
163
163
|
};
|
|
164
164
|
}>>, {
|
|
165
|
-
|
|
165
|
+
size: Size;
|
|
166
166
|
color: Color;
|
|
167
|
+
type: "button" | "submit" | "reset";
|
|
167
168
|
disabled: boolean;
|
|
168
|
-
size: Size;
|
|
169
169
|
loading: boolean;
|
|
170
170
|
noElevation: boolean;
|
|
171
171
|
outline: boolean;
|
|
@@ -158,20 +158,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
158
158
|
default: boolean;
|
|
159
159
|
};
|
|
160
160
|
}>>, {
|
|
161
|
-
elevation: boolean;
|
|
162
|
-
href: string;
|
|
163
161
|
orientation: string;
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
href: string;
|
|
163
|
+
zoom: boolean;
|
|
166
164
|
bordered: boolean;
|
|
167
165
|
noPadding: boolean;
|
|
168
166
|
images: MazGalleryImage[];
|
|
169
167
|
noRemaining: boolean;
|
|
168
|
+
scale: boolean;
|
|
170
169
|
hrefTarget: string;
|
|
171
170
|
footerAlign: string;
|
|
172
171
|
galleryWidth: string | number;
|
|
173
172
|
galleryHeight: string | number;
|
|
174
|
-
|
|
173
|
+
elevation: boolean;
|
|
174
|
+
radius: boolean;
|
|
175
175
|
imagesShowCount: number;
|
|
176
176
|
wrapperClass: string;
|
|
177
177
|
overflowHidden: boolean;
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
default: string;
|
|
41
41
|
};
|
|
42
42
|
updateMode: {
|
|
43
|
-
type: PropType<"default" | "
|
|
43
|
+
type: PropType<"default" | "none" | "reset" | "resize" | "hide" | "show" | "active">;
|
|
44
44
|
default: undefined;
|
|
45
45
|
};
|
|
46
46
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -83,13 +83,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
83
|
default: string;
|
|
84
84
|
};
|
|
85
85
|
updateMode: {
|
|
86
|
-
type: PropType<"default" | "
|
|
86
|
+
type: PropType<"default" | "none" | "reset" | "resize" | "hide" | "show" | "active">;
|
|
87
87
|
default: undefined;
|
|
88
88
|
};
|
|
89
89
|
}>>, {
|
|
90
90
|
options: Record<string, any>;
|
|
91
91
|
plugins: unknown[];
|
|
92
92
|
datasetIdKey: string;
|
|
93
|
-
updateMode: "default" | "
|
|
93
|
+
updateMode: "default" | "none" | "reset" | "resize" | "hide" | "show" | "active";
|
|
94
94
|
}, {}>;
|
|
95
95
|
export default _default;
|
|
@@ -38,9 +38,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
38
|
}>> & {
|
|
39
39
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}, {
|
|
41
|
-
id: string;
|
|
42
41
|
color: Color;
|
|
43
42
|
name: string;
|
|
43
|
+
id: string;
|
|
44
44
|
}, {}>, {
|
|
45
45
|
default?(_: {}): any;
|
|
46
46
|
}>;
|
|
@@ -48,8 +48,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
48
48
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
49
49
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
title: string;
|
|
52
51
|
size: string;
|
|
52
|
+
title: string;
|
|
53
53
|
backdropClass: string;
|
|
54
54
|
variant: "top" | "bottom" | "left" | "right";
|
|
55
55
|
noClose: boolean;
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
getUploadingFiles: () => Dropzone.DropzoneFile[];
|
|
76
76
|
getAddedFiles: () => Dropzone.DropzoneFile[];
|
|
77
77
|
getActiveFiles: () => Dropzone.DropzoneFile[];
|
|
78
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "error" | "paste" | "
|
|
78
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("success" | "reset" | "dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "error" | "paste" | "thumbnail" | "addedfile" | "addedfiles" | "removedfile" | "processing" | "processingmultiple" | "uploadprogress" | "totaluploadprogress" | "sending" | "sendingmultiple" | "canceled" | "canceledmultiple" | "complete" | "completemultiple" | "maxfilesexceeded" | "maxfilesreached" | "queuecomplete")[], "success" | "reset" | "dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "error" | "paste" | "thumbnail" | "addedfile" | "addedfiles" | "removedfile" | "processing" | "processingmultiple" | "uploadprogress" | "totaluploadprogress" | "sending" | "sendingmultiple" | "canceled" | "canceledmultiple" | "complete" | "completemultiple" | "maxfilesexceeded" | "maxfilesreached" | "queuecomplete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
79
|
options: {
|
|
80
80
|
type: PropType<MazDropzoneOptions>;
|
|
81
81
|
required: true;
|
|
@@ -121,8 +121,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
121
121
|
onMaxfilesreached?: ((...args: any[]) => any) | undefined;
|
|
122
122
|
onQueuecomplete?: ((...args: any[]) => any) | undefined;
|
|
123
123
|
}, {
|
|
124
|
-
height: string | number;
|
|
125
124
|
width: string | number;
|
|
125
|
+
height: string | number;
|
|
126
126
|
noDestroyOnUnmount: boolean;
|
|
127
127
|
}, {}>;
|
|
128
128
|
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Color } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
size: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: import("vue").PropType<Color>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
size: {
|
|
13
|
+
type: import("vue").PropType<string>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
color: {
|
|
17
|
+
type: import("vue").PropType<Color>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>>, {
|
|
21
|
+
size: string;
|
|
22
|
+
color: Color;
|
|
23
|
+
}, {}>, {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|