adata-ui 3.1.89 → 3.1.90
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/dist/module.d.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +15 -4
- package/dist/runtime/components/header/LangSwitcher.vue +1 -1
- package/dist/runtime/composables/useHreflangLinks.d.ts +1 -0
- package/dist/runtime/composables/useHreflangLinks.js +12 -0
- package/dist/runtime/plugins/hreflang.d.ts +2 -0
- package/dist/runtime/plugins/hreflang.js +5 -0
- package/dist/runtime/plugins/toast.d.ts +24 -24
- package/package.json +1 -1
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -20,7 +20,8 @@ const module = defineNuxtModule({
|
|
|
20
20
|
_nuxt.options.runtimeConfig.public.adataUI = defu(
|
|
21
21
|
_nuxt.options.runtimeConfig.public.adataUI ?? {},
|
|
22
22
|
{
|
|
23
|
-
localize: _options.localize
|
|
23
|
+
localize: _options.localize,
|
|
24
|
+
baseUrl: _options.baseUrl
|
|
24
25
|
}
|
|
25
26
|
);
|
|
26
27
|
_nuxt.options.nitro = defu(_nuxt.options.nitro || {}, { publicAssets: [] });
|
|
@@ -67,10 +68,20 @@ const module = defineNuxtModule({
|
|
|
67
68
|
src: resolver.resolve("./runtime/plugins/toast"),
|
|
68
69
|
mode: "client"
|
|
69
70
|
});
|
|
70
|
-
|
|
71
|
+
addPlugin(resolver.resolve("./runtime/plugins/hreflang"));
|
|
72
|
+
const i18nOptions = {
|
|
71
73
|
defaultLocale: "ru",
|
|
72
|
-
strategy: "prefix_except_default"
|
|
73
|
-
|
|
74
|
+
strategy: "prefix_except_default",
|
|
75
|
+
locales: [
|
|
76
|
+
{ code: "ru", language: "ru-RU" },
|
|
77
|
+
{ code: "en", language: "en-US" },
|
|
78
|
+
{ code: "kk", language: "kk-KZ" }
|
|
79
|
+
]
|
|
80
|
+
};
|
|
81
|
+
if (_options.baseUrl) {
|
|
82
|
+
i18nOptions.baseUrl = _options.baseUrl;
|
|
83
|
+
}
|
|
84
|
+
await installModule("@nuxtjs/i18n", i18nOptions);
|
|
74
85
|
addPlugin(resolver.resolve("./runtime/i18n"));
|
|
75
86
|
addImportsDir(resolver.resolve("./runtime/composables"));
|
|
76
87
|
extendViteConfig((config) => {
|
|
@@ -24,7 +24,7 @@ onClickOutside(langSwitcher, () => {
|
|
|
24
24
|
{{ t(`lang.${locale}.short`) }}
|
|
25
25
|
</button>
|
|
26
26
|
<div
|
|
27
|
-
v-
|
|
27
|
+
v-if="isOpen"
|
|
28
28
|
:class="['absolute z-20 bg-white shadow rounded-md p-2 right-0 lg:right-auto lg:left-0 left-auto flex flex-col dark:bg-gray-900']"
|
|
29
29
|
>
|
|
30
30
|
<nuxt-link
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHreflangLinks: () => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useHead, useLocaleHead, useRuntimeConfig } from "#imports";
|
|
2
|
+
export const useHreflangLinks = () => {
|
|
3
|
+
const config = useRuntimeConfig();
|
|
4
|
+
const baseUrl = config.public?.adataUI?.baseUrl;
|
|
5
|
+
if (!baseUrl) return;
|
|
6
|
+
const i18nHead = useLocaleHead();
|
|
7
|
+
useHead(() => ({
|
|
8
|
+
htmlAttrs: { lang: i18nHead.value.htmlAttrs?.lang },
|
|
9
|
+
link: [...i18nHead.value.link || []],
|
|
10
|
+
meta: [...i18nHead.value.meta || []]
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
@@ -6,9 +6,10 @@ declare const _default: import("#app").Plugin<{
|
|
|
6
6
|
info(content: import("vue3-toastify").Content, options?: {
|
|
7
7
|
progress?: number | undefined;
|
|
8
8
|
data?: {} | undefined;
|
|
9
|
+
style?: Record<string, any> | undefined;
|
|
10
|
+
content?: import("vue3-toastify").Content;
|
|
9
11
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
10
12
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
11
|
-
content?: import("vue3-toastify").Content;
|
|
12
13
|
delay?: number | undefined;
|
|
13
14
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
14
15
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -28,7 +29,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
28
29
|
closeOnClick?: boolean | undefined;
|
|
29
30
|
toastClassName?: string | undefined;
|
|
30
31
|
bodyClassName?: string | undefined;
|
|
31
|
-
style?: Record<string, any> | undefined;
|
|
32
32
|
progressClassName?: string | undefined;
|
|
33
33
|
progressStyle?: Record<string, any> | undefined;
|
|
34
34
|
role?: string | undefined;
|
|
@@ -41,9 +41,10 @@ declare const _default: import("#app").Plugin<{
|
|
|
41
41
|
warning(content: import("vue3-toastify").Content, options?: {
|
|
42
42
|
progress?: number | undefined;
|
|
43
43
|
data?: {} | undefined;
|
|
44
|
+
style?: Record<string, any> | undefined;
|
|
45
|
+
content?: import("vue3-toastify").Content;
|
|
44
46
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
45
47
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
46
|
-
content?: import("vue3-toastify").Content;
|
|
47
48
|
delay?: number | undefined;
|
|
48
49
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
49
50
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -63,7 +64,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
63
64
|
closeOnClick?: boolean | undefined;
|
|
64
65
|
toastClassName?: string | undefined;
|
|
65
66
|
bodyClassName?: string | undefined;
|
|
66
|
-
style?: Record<string, any> | undefined;
|
|
67
67
|
progressClassName?: string | undefined;
|
|
68
68
|
progressStyle?: Record<string, any> | undefined;
|
|
69
69
|
role?: string | undefined;
|
|
@@ -76,9 +76,10 @@ declare const _default: import("#app").Plugin<{
|
|
|
76
76
|
warn: (content: import("vue3-toastify").Content, options?: {
|
|
77
77
|
progress?: number | undefined;
|
|
78
78
|
data?: {} | undefined;
|
|
79
|
+
style?: Record<string, any> | undefined;
|
|
80
|
+
content?: import("vue3-toastify").Content;
|
|
79
81
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
80
82
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
81
|
-
content?: import("vue3-toastify").Content;
|
|
82
83
|
delay?: number | undefined;
|
|
83
84
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
84
85
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -98,7 +99,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
98
99
|
closeOnClick?: boolean | undefined;
|
|
99
100
|
toastClassName?: string | undefined;
|
|
100
101
|
bodyClassName?: string | undefined;
|
|
101
|
-
style?: Record<string, any> | undefined;
|
|
102
102
|
progressClassName?: string | undefined;
|
|
103
103
|
progressStyle?: Record<string, any> | undefined;
|
|
104
104
|
role?: string | undefined;
|
|
@@ -111,11 +111,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
111
111
|
loading(content: import("vue3-toastify").Content, options?: {
|
|
112
112
|
progress?: number | undefined;
|
|
113
113
|
data?: {} | undefined;
|
|
114
|
+
style?: Record<string, any> | undefined;
|
|
115
|
+
content?: import("vue3-toastify").Content;
|
|
114
116
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
115
117
|
disabledEnterTransition?: boolean | undefined;
|
|
116
118
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
117
119
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
118
|
-
content?: import("vue3-toastify").Content;
|
|
119
120
|
delay?: number | undefined;
|
|
120
121
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
121
122
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -134,7 +135,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
134
135
|
closeOnClick?: boolean | undefined;
|
|
135
136
|
toastClassName?: string | undefined;
|
|
136
137
|
bodyClassName?: string | undefined;
|
|
137
|
-
style?: Record<string, any> | undefined;
|
|
138
138
|
progressClassName?: string | undefined;
|
|
139
139
|
progressStyle?: Record<string, any> | undefined;
|
|
140
140
|
role?: string | undefined;
|
|
@@ -147,11 +147,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
147
147
|
dark(content: import("vue3-toastify").Content, options?: {
|
|
148
148
|
progress?: number | undefined;
|
|
149
149
|
data?: {} | undefined;
|
|
150
|
+
style?: Record<string, any> | undefined;
|
|
151
|
+
content?: import("vue3-toastify").Content;
|
|
150
152
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
151
153
|
disabledEnterTransition?: boolean | undefined;
|
|
152
154
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
153
155
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
154
|
-
content?: import("vue3-toastify").Content;
|
|
155
156
|
delay?: number | undefined;
|
|
156
157
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
157
158
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -171,7 +172,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
171
172
|
closeOnClick?: boolean | undefined;
|
|
172
173
|
toastClassName?: string | undefined;
|
|
173
174
|
bodyClassName?: string | undefined;
|
|
174
|
-
style?: Record<string, any> | undefined;
|
|
175
175
|
progressClassName?: string | undefined;
|
|
176
176
|
progressStyle?: Record<string, any> | undefined;
|
|
177
177
|
role?: string | undefined;
|
|
@@ -188,11 +188,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
188
188
|
promise: <T = unknown>(promise: Promise<T> | (() => Promise<T>), { pending, error, success }: import("vue3-toastify").ToastPromiseParams<T>, options?: {
|
|
189
189
|
progress?: number | undefined;
|
|
190
190
|
data?: {} | undefined;
|
|
191
|
+
style?: Record<string, any> | undefined;
|
|
192
|
+
content?: import("vue3-toastify").Content;
|
|
191
193
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
192
194
|
disabledEnterTransition?: boolean | undefined;
|
|
193
195
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
194
196
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
195
|
-
content?: import("vue3-toastify").Content;
|
|
196
197
|
delay?: number | undefined;
|
|
197
198
|
onOpen?: (<T_1 = {}>(props: T_1) => void) | undefined;
|
|
198
199
|
onClose?: (<T_1 = {}>(props: T_1) => void) | undefined;
|
|
@@ -211,7 +212,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
211
212
|
closeOnClick?: boolean | undefined;
|
|
212
213
|
toastClassName?: string | undefined;
|
|
213
214
|
bodyClassName?: string | undefined;
|
|
214
|
-
style?: Record<string, any> | undefined;
|
|
215
215
|
progressClassName?: string | undefined;
|
|
216
216
|
progressStyle?: Record<string, any> | undefined;
|
|
217
217
|
role?: string | undefined;
|
|
@@ -257,9 +257,10 @@ declare const _default: import("#app").Plugin<{
|
|
|
257
257
|
info(content: import("vue3-toastify").Content, options?: {
|
|
258
258
|
progress?: number | undefined;
|
|
259
259
|
data?: {} | undefined;
|
|
260
|
+
style?: Record<string, any> | undefined;
|
|
261
|
+
content?: import("vue3-toastify").Content;
|
|
260
262
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
261
263
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
262
|
-
content?: import("vue3-toastify").Content;
|
|
263
264
|
delay?: number | undefined;
|
|
264
265
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
265
266
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -279,7 +280,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
279
280
|
closeOnClick?: boolean | undefined;
|
|
280
281
|
toastClassName?: string | undefined;
|
|
281
282
|
bodyClassName?: string | undefined;
|
|
282
|
-
style?: Record<string, any> | undefined;
|
|
283
283
|
progressClassName?: string | undefined;
|
|
284
284
|
progressStyle?: Record<string, any> | undefined;
|
|
285
285
|
role?: string | undefined;
|
|
@@ -292,9 +292,10 @@ declare const _default: import("#app").Plugin<{
|
|
|
292
292
|
warning(content: import("vue3-toastify").Content, options?: {
|
|
293
293
|
progress?: number | undefined;
|
|
294
294
|
data?: {} | undefined;
|
|
295
|
+
style?: Record<string, any> | undefined;
|
|
296
|
+
content?: import("vue3-toastify").Content;
|
|
295
297
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
296
298
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
297
|
-
content?: import("vue3-toastify").Content;
|
|
298
299
|
delay?: number | undefined;
|
|
299
300
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
300
301
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -314,7 +315,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
314
315
|
closeOnClick?: boolean | undefined;
|
|
315
316
|
toastClassName?: string | undefined;
|
|
316
317
|
bodyClassName?: string | undefined;
|
|
317
|
-
style?: Record<string, any> | undefined;
|
|
318
318
|
progressClassName?: string | undefined;
|
|
319
319
|
progressStyle?: Record<string, any> | undefined;
|
|
320
320
|
role?: string | undefined;
|
|
@@ -327,9 +327,10 @@ declare const _default: import("#app").Plugin<{
|
|
|
327
327
|
warn: (content: import("vue3-toastify").Content, options?: {
|
|
328
328
|
progress?: number | undefined;
|
|
329
329
|
data?: {} | undefined;
|
|
330
|
+
style?: Record<string, any> | undefined;
|
|
331
|
+
content?: import("vue3-toastify").Content;
|
|
330
332
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
331
333
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
332
|
-
content?: import("vue3-toastify").Content;
|
|
333
334
|
delay?: number | undefined;
|
|
334
335
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
335
336
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -349,7 +350,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
349
350
|
closeOnClick?: boolean | undefined;
|
|
350
351
|
toastClassName?: string | undefined;
|
|
351
352
|
bodyClassName?: string | undefined;
|
|
352
|
-
style?: Record<string, any> | undefined;
|
|
353
353
|
progressClassName?: string | undefined;
|
|
354
354
|
progressStyle?: Record<string, any> | undefined;
|
|
355
355
|
role?: string | undefined;
|
|
@@ -362,11 +362,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
362
362
|
loading(content: import("vue3-toastify").Content, options?: {
|
|
363
363
|
progress?: number | undefined;
|
|
364
364
|
data?: {} | undefined;
|
|
365
|
+
style?: Record<string, any> | undefined;
|
|
366
|
+
content?: import("vue3-toastify").Content;
|
|
365
367
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
366
368
|
disabledEnterTransition?: boolean | undefined;
|
|
367
369
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
368
370
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
369
|
-
content?: import("vue3-toastify").Content;
|
|
370
371
|
delay?: number | undefined;
|
|
371
372
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
372
373
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -385,7 +386,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
385
386
|
closeOnClick?: boolean | undefined;
|
|
386
387
|
toastClassName?: string | undefined;
|
|
387
388
|
bodyClassName?: string | undefined;
|
|
388
|
-
style?: Record<string, any> | undefined;
|
|
389
389
|
progressClassName?: string | undefined;
|
|
390
390
|
progressStyle?: Record<string, any> | undefined;
|
|
391
391
|
role?: string | undefined;
|
|
@@ -398,11 +398,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
398
398
|
dark(content: import("vue3-toastify").Content, options?: {
|
|
399
399
|
progress?: number | undefined;
|
|
400
400
|
data?: {} | undefined;
|
|
401
|
+
style?: Record<string, any> | undefined;
|
|
402
|
+
content?: import("vue3-toastify").Content;
|
|
401
403
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
402
404
|
disabledEnterTransition?: boolean | undefined;
|
|
403
405
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
404
406
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
405
|
-
content?: import("vue3-toastify").Content;
|
|
406
407
|
delay?: number | undefined;
|
|
407
408
|
onOpen?: (<T = {}>(props: T) => void) | undefined;
|
|
408
409
|
onClose?: (<T = {}>(props: T) => void) | undefined;
|
|
@@ -422,7 +423,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
422
423
|
closeOnClick?: boolean | undefined;
|
|
423
424
|
toastClassName?: string | undefined;
|
|
424
425
|
bodyClassName?: string | undefined;
|
|
425
|
-
style?: Record<string, any> | undefined;
|
|
426
426
|
progressClassName?: string | undefined;
|
|
427
427
|
progressStyle?: Record<string, any> | undefined;
|
|
428
428
|
role?: string | undefined;
|
|
@@ -439,11 +439,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
439
439
|
promise: <T = unknown>(promise: Promise<T> | (() => Promise<T>), { pending, error, success }: import("vue3-toastify").ToastPromiseParams<T>, options?: {
|
|
440
440
|
progress?: number | undefined;
|
|
441
441
|
data?: {} | undefined;
|
|
442
|
+
style?: Record<string, any> | undefined;
|
|
443
|
+
content?: import("vue3-toastify").Content;
|
|
442
444
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
443
445
|
disabledEnterTransition?: boolean | undefined;
|
|
444
446
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
445
447
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
446
|
-
content?: import("vue3-toastify").Content;
|
|
447
448
|
delay?: number | undefined;
|
|
448
449
|
onOpen?: (<T_1 = {}>(props: T_1) => void) | undefined;
|
|
449
450
|
onClose?: (<T_1 = {}>(props: T_1) => void) | undefined;
|
|
@@ -462,7 +463,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
462
463
|
closeOnClick?: boolean | undefined;
|
|
463
464
|
toastClassName?: string | undefined;
|
|
464
465
|
bodyClassName?: string | undefined;
|
|
465
|
-
style?: Record<string, any> | undefined;
|
|
466
466
|
progressClassName?: string | undefined;
|
|
467
467
|
progressStyle?: Record<string, any> | undefined;
|
|
468
468
|
role?: string | undefined;
|