@unsource/ui 2.0.2 → 2.0.4

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.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,5 +1,5 @@
1
1
  import Moment from 'jalali-moment';
2
- import { Ajv } from 'ajv';
2
+ import Ajv from 'ajv';
3
3
  import type { CoinGateway, DiscountCode, Form, Transaction, Wallet } from '../types/models.js';
4
4
  import type { Address, MetaData, SocketJoinObject } from '../types/app.js';
5
5
  import type { RemovableRef } from '@vueuse/core';
@@ -18,7 +18,7 @@ import {
18
18
  useState
19
19
  } from "#imports";
20
20
  import Moment from "jalali-moment";
21
- import { Ajv } from "ajv";
21
+ import Ajv from "ajv";
22
22
  import { io } from "socket.io-client";
23
23
  import { digitsFaToEn, digitsArToEn } from "@persian-tools/persian-tools";
24
24
  import Big from "big.js";
@@ -1,3 +1,643 @@
1
1
  import 'vue3-toastify/dist/index.css';
2
- declare const _default: any;
2
+ declare const _default: import("#app").Plugin<{
3
+ toast: {
4
+ (content: import("vue3-toastify").Content, options?: import("vue3-toastify").ToastOptions): import("vue3-toastify").Id;
5
+ info(content: import("vue3-toastify").Content, options?: {
6
+ theme?: import("vue3-toastify").ToastTheme | undefined;
7
+ rtl?: boolean | undefined;
8
+ data?: {} | undefined;
9
+ role?: string | undefined;
10
+ icon?: import("vue3-toastify").IconType | undefined;
11
+ toastId?: import("vue3-toastify").Id | undefined;
12
+ updateId?: import("vue3-toastify").Id | undefined;
13
+ content?: import("vue3-toastify").Content;
14
+ delay?: number | undefined;
15
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
16
+ onClose?: (<T = {}>(props: T) => void) | undefined;
17
+ onClick?: ((event: MouseEvent) => void) | undefined;
18
+ toastStyle?: Record<string, any> | undefined;
19
+ progress?: number | undefined;
20
+ isLoading?: boolean | undefined;
21
+ dangerouslyHTMLString?: boolean | undefined;
22
+ containerId?: import("vue3-toastify").Id | undefined;
23
+ position?: import("vue3-toastify").ToastPosition | undefined;
24
+ autoClose?: number | boolean | undefined;
25
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
26
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
27
+ hideProgressBar?: boolean | undefined;
28
+ pauseOnHover?: boolean | undefined;
29
+ pauseOnFocusLoss?: boolean | undefined;
30
+ closeOnClick?: boolean | undefined;
31
+ toastClassName?: string | undefined;
32
+ bodyClassName?: string | undefined;
33
+ style?: Record<string, any> | undefined;
34
+ progressClassName?: string | undefined;
35
+ progressStyle?: Record<string, any> | undefined;
36
+ contentProps?: Record<string, any> | undefined;
37
+ expandCustomProps?: boolean | undefined;
38
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
39
+ }): import("vue3-toastify").Id;
40
+ error(content: import("vue3-toastify").Content, options?: {
41
+ theme?: import("vue3-toastify").ToastTheme | undefined;
42
+ rtl?: boolean | undefined;
43
+ data?: {} | undefined;
44
+ role?: string | undefined;
45
+ icon?: import("vue3-toastify").IconType | undefined;
46
+ toastId?: import("vue3-toastify").Id | undefined;
47
+ updateId?: import("vue3-toastify").Id | undefined;
48
+ content?: import("vue3-toastify").Content;
49
+ delay?: number | undefined;
50
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
51
+ onClose?: (<T = {}>(props: T) => void) | undefined;
52
+ onClick?: ((event: MouseEvent) => void) | undefined;
53
+ toastStyle?: Record<string, any> | undefined;
54
+ progress?: number | undefined;
55
+ isLoading?: boolean | undefined;
56
+ dangerouslyHTMLString?: boolean | undefined;
57
+ containerId?: import("vue3-toastify").Id | undefined;
58
+ position?: import("vue3-toastify").ToastPosition | undefined;
59
+ autoClose?: number | boolean | undefined;
60
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
61
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
62
+ hideProgressBar?: boolean | undefined;
63
+ pauseOnHover?: boolean | undefined;
64
+ pauseOnFocusLoss?: boolean | undefined;
65
+ closeOnClick?: boolean | undefined;
66
+ toastClassName?: string | undefined;
67
+ bodyClassName?: string | undefined;
68
+ style?: Record<string, any> | undefined;
69
+ progressClassName?: string | undefined;
70
+ progressStyle?: Record<string, any> | undefined;
71
+ contentProps?: Record<string, any> | undefined;
72
+ expandCustomProps?: boolean | undefined;
73
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
74
+ }): import("vue3-toastify").Id;
75
+ warning(content: import("vue3-toastify").Content, options?: {
76
+ theme?: import("vue3-toastify").ToastTheme | undefined;
77
+ rtl?: boolean | undefined;
78
+ data?: {} | undefined;
79
+ role?: string | undefined;
80
+ icon?: import("vue3-toastify").IconType | undefined;
81
+ toastId?: import("vue3-toastify").Id | undefined;
82
+ updateId?: import("vue3-toastify").Id | undefined;
83
+ content?: import("vue3-toastify").Content;
84
+ delay?: number | undefined;
85
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
86
+ onClose?: (<T = {}>(props: T) => void) | undefined;
87
+ onClick?: ((event: MouseEvent) => void) | undefined;
88
+ toastStyle?: Record<string, any> | undefined;
89
+ progress?: number | undefined;
90
+ isLoading?: boolean | undefined;
91
+ dangerouslyHTMLString?: boolean | undefined;
92
+ containerId?: import("vue3-toastify").Id | undefined;
93
+ position?: import("vue3-toastify").ToastPosition | undefined;
94
+ autoClose?: number | boolean | undefined;
95
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
96
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
97
+ hideProgressBar?: boolean | undefined;
98
+ pauseOnHover?: boolean | undefined;
99
+ pauseOnFocusLoss?: boolean | undefined;
100
+ closeOnClick?: boolean | undefined;
101
+ toastClassName?: string | undefined;
102
+ bodyClassName?: string | undefined;
103
+ style?: Record<string, any> | undefined;
104
+ progressClassName?: string | undefined;
105
+ progressStyle?: Record<string, any> | undefined;
106
+ contentProps?: Record<string, any> | undefined;
107
+ expandCustomProps?: boolean | undefined;
108
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
109
+ }): import("vue3-toastify").Id;
110
+ warn: (content: import("vue3-toastify").Content, options?: {
111
+ theme?: import("vue3-toastify").ToastTheme | undefined;
112
+ rtl?: boolean | undefined;
113
+ data?: {} | undefined;
114
+ role?: string | undefined;
115
+ icon?: import("vue3-toastify").IconType | undefined;
116
+ toastId?: import("vue3-toastify").Id | undefined;
117
+ updateId?: import("vue3-toastify").Id | undefined;
118
+ content?: import("vue3-toastify").Content;
119
+ delay?: number | undefined;
120
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
121
+ onClose?: (<T = {}>(props: T) => void) | undefined;
122
+ onClick?: ((event: MouseEvent) => void) | undefined;
123
+ toastStyle?: Record<string, any> | undefined;
124
+ progress?: number | undefined;
125
+ isLoading?: boolean | undefined;
126
+ dangerouslyHTMLString?: boolean | undefined;
127
+ containerId?: import("vue3-toastify").Id | undefined;
128
+ position?: import("vue3-toastify").ToastPosition | undefined;
129
+ autoClose?: number | boolean | undefined;
130
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
131
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
132
+ hideProgressBar?: boolean | undefined;
133
+ pauseOnHover?: boolean | undefined;
134
+ pauseOnFocusLoss?: boolean | undefined;
135
+ closeOnClick?: boolean | undefined;
136
+ toastClassName?: string | undefined;
137
+ bodyClassName?: string | undefined;
138
+ style?: Record<string, any> | undefined;
139
+ progressClassName?: string | undefined;
140
+ progressStyle?: Record<string, any> | undefined;
141
+ contentProps?: Record<string, any> | undefined;
142
+ expandCustomProps?: boolean | undefined;
143
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
144
+ }) => import("vue3-toastify").Id;
145
+ success(content: import("vue3-toastify").Content, options?: {
146
+ theme?: import("vue3-toastify").ToastTheme | undefined;
147
+ rtl?: boolean | undefined;
148
+ data?: {} | undefined;
149
+ role?: string | undefined;
150
+ icon?: import("vue3-toastify").IconType | undefined;
151
+ toastId?: import("vue3-toastify").Id | undefined;
152
+ updateId?: import("vue3-toastify").Id | undefined;
153
+ content?: import("vue3-toastify").Content;
154
+ delay?: number | undefined;
155
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
156
+ onClose?: (<T = {}>(props: T) => void) | undefined;
157
+ onClick?: ((event: MouseEvent) => void) | undefined;
158
+ toastStyle?: Record<string, any> | undefined;
159
+ progress?: number | undefined;
160
+ isLoading?: boolean | undefined;
161
+ dangerouslyHTMLString?: boolean | undefined;
162
+ containerId?: import("vue3-toastify").Id | undefined;
163
+ position?: import("vue3-toastify").ToastPosition | undefined;
164
+ autoClose?: number | boolean | undefined;
165
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
166
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
167
+ hideProgressBar?: boolean | undefined;
168
+ pauseOnHover?: boolean | undefined;
169
+ pauseOnFocusLoss?: boolean | undefined;
170
+ closeOnClick?: boolean | undefined;
171
+ toastClassName?: string | undefined;
172
+ bodyClassName?: string | undefined;
173
+ style?: Record<string, any> | undefined;
174
+ progressClassName?: string | undefined;
175
+ progressStyle?: Record<string, any> | undefined;
176
+ contentProps?: Record<string, any> | undefined;
177
+ expandCustomProps?: boolean | undefined;
178
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
179
+ }): import("vue3-toastify").Id;
180
+ loading(content: import("vue3-toastify").Content, options?: {
181
+ theme?: import("vue3-toastify").ToastTheme | undefined;
182
+ rtl?: boolean | undefined;
183
+ type?: import("vue3-toastify").ToastType | undefined;
184
+ data?: {} | undefined;
185
+ role?: string | undefined;
186
+ icon?: import("vue3-toastify").IconType | undefined;
187
+ disabledEnterTransition?: boolean | undefined;
188
+ toastId?: import("vue3-toastify").Id | undefined;
189
+ updateId?: import("vue3-toastify").Id | undefined;
190
+ content?: import("vue3-toastify").Content;
191
+ delay?: number | undefined;
192
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
193
+ onClose?: (<T = {}>(props: T) => void) | undefined;
194
+ onClick?: ((event: MouseEvent) => void) | undefined;
195
+ toastStyle?: Record<string, any> | undefined;
196
+ progress?: number | undefined;
197
+ dangerouslyHTMLString?: boolean | undefined;
198
+ containerId?: import("vue3-toastify").Id | undefined;
199
+ position?: import("vue3-toastify").ToastPosition | undefined;
200
+ autoClose?: number | boolean | undefined;
201
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
202
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
203
+ hideProgressBar?: boolean | undefined;
204
+ pauseOnHover?: boolean | undefined;
205
+ pauseOnFocusLoss?: boolean | undefined;
206
+ closeOnClick?: boolean | undefined;
207
+ toastClassName?: string | undefined;
208
+ bodyClassName?: string | undefined;
209
+ style?: Record<string, any> | undefined;
210
+ progressClassName?: string | undefined;
211
+ progressStyle?: Record<string, any> | undefined;
212
+ contentProps?: Record<string, any> | undefined;
213
+ expandCustomProps?: boolean | undefined;
214
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
215
+ }): import("vue3-toastify").Id;
216
+ dark(content: import("vue3-toastify").Content, options?: {
217
+ rtl?: boolean | undefined;
218
+ type?: import("vue3-toastify").ToastType | undefined;
219
+ data?: {} | undefined;
220
+ role?: string | undefined;
221
+ icon?: import("vue3-toastify").IconType | undefined;
222
+ disabledEnterTransition?: boolean | undefined;
223
+ toastId?: import("vue3-toastify").Id | undefined;
224
+ updateId?: import("vue3-toastify").Id | undefined;
225
+ content?: import("vue3-toastify").Content;
226
+ delay?: number | undefined;
227
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
228
+ onClose?: (<T = {}>(props: T) => void) | undefined;
229
+ onClick?: ((event: MouseEvent) => void) | undefined;
230
+ toastStyle?: Record<string, any> | undefined;
231
+ progress?: number | undefined;
232
+ isLoading?: boolean | undefined;
233
+ dangerouslyHTMLString?: boolean | undefined;
234
+ containerId?: import("vue3-toastify").Id | undefined;
235
+ position?: import("vue3-toastify").ToastPosition | undefined;
236
+ autoClose?: number | boolean | undefined;
237
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
238
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
239
+ hideProgressBar?: boolean | undefined;
240
+ pauseOnHover?: boolean | undefined;
241
+ pauseOnFocusLoss?: boolean | undefined;
242
+ closeOnClick?: boolean | undefined;
243
+ toastClassName?: string | undefined;
244
+ bodyClassName?: string | undefined;
245
+ style?: Record<string, any> | undefined;
246
+ progressClassName?: string | undefined;
247
+ progressStyle?: Record<string, any> | undefined;
248
+ contentProps?: Record<string, any> | undefined;
249
+ expandCustomProps?: boolean | undefined;
250
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
251
+ }): import("vue3-toastify").Id;
252
+ remove(toastId?: import("vue3-toastify").Id): void;
253
+ clearAll(containerId?: import("vue3-toastify").Id, withExitAnimation?: boolean): void;
254
+ isActive(toastId: import("vue3-toastify").Id): boolean;
255
+ update(toastId: import("vue3-toastify").Id, options?: import("vue3-toastify").UpdateOptions): void;
256
+ done(id: import("vue3-toastify").Id): void;
257
+ promise: <T = unknown>(promise: Promise<T> | (() => Promise<T>), { pending, error, success }: import("vue3-toastify").ToastPromiseParams<T>, options?: {
258
+ theme?: import("vue3-toastify").ToastTheme | undefined;
259
+ rtl?: boolean | undefined;
260
+ type?: import("vue3-toastify").ToastType | undefined;
261
+ data?: {} | undefined;
262
+ role?: string | undefined;
263
+ icon?: import("vue3-toastify").IconType | undefined;
264
+ disabledEnterTransition?: boolean | undefined;
265
+ toastId?: import("vue3-toastify").Id | undefined;
266
+ updateId?: import("vue3-toastify").Id | undefined;
267
+ content?: import("vue3-toastify").Content;
268
+ delay?: number | undefined;
269
+ onOpen?: (<T_1 = {}>(props: T_1) => void) | undefined;
270
+ onClose?: (<T_1 = {}>(props: T_1) => void) | undefined;
271
+ onClick?: ((event: MouseEvent) => void) | undefined;
272
+ toastStyle?: Record<string, any> | undefined;
273
+ progress?: number | undefined;
274
+ dangerouslyHTMLString?: boolean | undefined;
275
+ containerId?: import("vue3-toastify").Id | undefined;
276
+ position?: import("vue3-toastify").ToastPosition | undefined;
277
+ autoClose?: number | boolean | undefined;
278
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
279
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
280
+ hideProgressBar?: boolean | undefined;
281
+ pauseOnHover?: boolean | undefined;
282
+ pauseOnFocusLoss?: boolean | undefined;
283
+ closeOnClick?: boolean | undefined;
284
+ toastClassName?: string | undefined;
285
+ bodyClassName?: string | undefined;
286
+ style?: Record<string, any> | undefined;
287
+ progressClassName?: string | undefined;
288
+ progressStyle?: Record<string, any> | undefined;
289
+ contentProps?: Record<string, any> | undefined;
290
+ expandCustomProps?: boolean | undefined;
291
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
292
+ }) => Promise<T>;
293
+ POSITION: {
294
+ TOP_LEFT: import("vue3-toastify").ToastPosition;
295
+ TOP_RIGHT: import("vue3-toastify").ToastPosition;
296
+ TOP_CENTER: import("vue3-toastify").ToastPosition;
297
+ BOTTOM_LEFT: import("vue3-toastify").ToastPosition;
298
+ BOTTOM_RIGHT: import("vue3-toastify").ToastPosition;
299
+ BOTTOM_CENTER: import("vue3-toastify").ToastPosition;
300
+ };
301
+ THEME: {
302
+ AUTO: import("vue3-toastify").ToastTheme;
303
+ LIGHT: import("vue3-toastify").ToastTheme;
304
+ DARK: import("vue3-toastify").ToastTheme;
305
+ COLORED: import("vue3-toastify").ToastTheme;
306
+ };
307
+ TYPE: {
308
+ INFO: import("vue3-toastify").ToastType;
309
+ SUCCESS: import("vue3-toastify").ToastType;
310
+ WARNING: import("vue3-toastify").ToastType;
311
+ ERROR: import("vue3-toastify").ToastType;
312
+ DEFAULT: import("vue3-toastify").ToastType;
313
+ };
314
+ TRANSITIONS: {
315
+ FLIP: import("vue3-toastify").ToastTransition;
316
+ SLIDE: import("vue3-toastify").ToastTransition;
317
+ ZOOM: import("vue3-toastify").ToastTransition;
318
+ BOUNCE: import("vue3-toastify").ToastTransition;
319
+ NONE: import("vue3-toastify").ToastTransition;
320
+ };
321
+ };
322
+ }> & import("#app").ObjectPlugin<{
323
+ toast: {
324
+ (content: import("vue3-toastify").Content, options?: import("vue3-toastify").ToastOptions): import("vue3-toastify").Id;
325
+ info(content: import("vue3-toastify").Content, options?: {
326
+ theme?: import("vue3-toastify").ToastTheme | undefined;
327
+ rtl?: boolean | undefined;
328
+ data?: {} | undefined;
329
+ role?: string | undefined;
330
+ icon?: import("vue3-toastify").IconType | undefined;
331
+ toastId?: import("vue3-toastify").Id | undefined;
332
+ updateId?: import("vue3-toastify").Id | undefined;
333
+ content?: import("vue3-toastify").Content;
334
+ delay?: number | undefined;
335
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
336
+ onClose?: (<T = {}>(props: T) => void) | undefined;
337
+ onClick?: ((event: MouseEvent) => void) | undefined;
338
+ toastStyle?: Record<string, any> | undefined;
339
+ progress?: number | undefined;
340
+ isLoading?: boolean | undefined;
341
+ dangerouslyHTMLString?: boolean | undefined;
342
+ containerId?: import("vue3-toastify").Id | undefined;
343
+ position?: import("vue3-toastify").ToastPosition | undefined;
344
+ autoClose?: number | boolean | undefined;
345
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
346
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
347
+ hideProgressBar?: boolean | undefined;
348
+ pauseOnHover?: boolean | undefined;
349
+ pauseOnFocusLoss?: boolean | undefined;
350
+ closeOnClick?: boolean | undefined;
351
+ toastClassName?: string | undefined;
352
+ bodyClassName?: string | undefined;
353
+ style?: Record<string, any> | undefined;
354
+ progressClassName?: string | undefined;
355
+ progressStyle?: Record<string, any> | undefined;
356
+ contentProps?: Record<string, any> | undefined;
357
+ expandCustomProps?: boolean | undefined;
358
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
359
+ }): import("vue3-toastify").Id;
360
+ error(content: import("vue3-toastify").Content, options?: {
361
+ theme?: import("vue3-toastify").ToastTheme | undefined;
362
+ rtl?: boolean | undefined;
363
+ data?: {} | undefined;
364
+ role?: string | undefined;
365
+ icon?: import("vue3-toastify").IconType | undefined;
366
+ toastId?: import("vue3-toastify").Id | undefined;
367
+ updateId?: import("vue3-toastify").Id | undefined;
368
+ content?: import("vue3-toastify").Content;
369
+ delay?: number | undefined;
370
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
371
+ onClose?: (<T = {}>(props: T) => void) | undefined;
372
+ onClick?: ((event: MouseEvent) => void) | undefined;
373
+ toastStyle?: Record<string, any> | undefined;
374
+ progress?: number | undefined;
375
+ isLoading?: boolean | undefined;
376
+ dangerouslyHTMLString?: boolean | undefined;
377
+ containerId?: import("vue3-toastify").Id | undefined;
378
+ position?: import("vue3-toastify").ToastPosition | undefined;
379
+ autoClose?: number | boolean | undefined;
380
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
381
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
382
+ hideProgressBar?: boolean | undefined;
383
+ pauseOnHover?: boolean | undefined;
384
+ pauseOnFocusLoss?: boolean | undefined;
385
+ closeOnClick?: boolean | undefined;
386
+ toastClassName?: string | undefined;
387
+ bodyClassName?: string | undefined;
388
+ style?: Record<string, any> | undefined;
389
+ progressClassName?: string | undefined;
390
+ progressStyle?: Record<string, any> | undefined;
391
+ contentProps?: Record<string, any> | undefined;
392
+ expandCustomProps?: boolean | undefined;
393
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
394
+ }): import("vue3-toastify").Id;
395
+ warning(content: import("vue3-toastify").Content, options?: {
396
+ theme?: import("vue3-toastify").ToastTheme | undefined;
397
+ rtl?: boolean | undefined;
398
+ data?: {} | undefined;
399
+ role?: string | undefined;
400
+ icon?: import("vue3-toastify").IconType | undefined;
401
+ toastId?: import("vue3-toastify").Id | undefined;
402
+ updateId?: import("vue3-toastify").Id | undefined;
403
+ content?: import("vue3-toastify").Content;
404
+ delay?: number | undefined;
405
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
406
+ onClose?: (<T = {}>(props: T) => void) | undefined;
407
+ onClick?: ((event: MouseEvent) => void) | undefined;
408
+ toastStyle?: Record<string, any> | undefined;
409
+ progress?: number | undefined;
410
+ isLoading?: boolean | undefined;
411
+ dangerouslyHTMLString?: boolean | undefined;
412
+ containerId?: import("vue3-toastify").Id | undefined;
413
+ position?: import("vue3-toastify").ToastPosition | undefined;
414
+ autoClose?: number | boolean | undefined;
415
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
416
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
417
+ hideProgressBar?: boolean | undefined;
418
+ pauseOnHover?: boolean | undefined;
419
+ pauseOnFocusLoss?: boolean | undefined;
420
+ closeOnClick?: boolean | undefined;
421
+ toastClassName?: string | undefined;
422
+ bodyClassName?: string | undefined;
423
+ style?: Record<string, any> | undefined;
424
+ progressClassName?: string | undefined;
425
+ progressStyle?: Record<string, any> | undefined;
426
+ contentProps?: Record<string, any> | undefined;
427
+ expandCustomProps?: boolean | undefined;
428
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
429
+ }): import("vue3-toastify").Id;
430
+ warn: (content: import("vue3-toastify").Content, options?: {
431
+ theme?: import("vue3-toastify").ToastTheme | undefined;
432
+ rtl?: boolean | undefined;
433
+ data?: {} | undefined;
434
+ role?: string | undefined;
435
+ icon?: import("vue3-toastify").IconType | undefined;
436
+ toastId?: import("vue3-toastify").Id | undefined;
437
+ updateId?: import("vue3-toastify").Id | undefined;
438
+ content?: import("vue3-toastify").Content;
439
+ delay?: number | undefined;
440
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
441
+ onClose?: (<T = {}>(props: T) => void) | undefined;
442
+ onClick?: ((event: MouseEvent) => void) | undefined;
443
+ toastStyle?: Record<string, any> | undefined;
444
+ progress?: number | undefined;
445
+ isLoading?: boolean | undefined;
446
+ dangerouslyHTMLString?: boolean | undefined;
447
+ containerId?: import("vue3-toastify").Id | undefined;
448
+ position?: import("vue3-toastify").ToastPosition | undefined;
449
+ autoClose?: number | boolean | undefined;
450
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
451
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
452
+ hideProgressBar?: boolean | undefined;
453
+ pauseOnHover?: boolean | undefined;
454
+ pauseOnFocusLoss?: boolean | undefined;
455
+ closeOnClick?: boolean | undefined;
456
+ toastClassName?: string | undefined;
457
+ bodyClassName?: string | undefined;
458
+ style?: Record<string, any> | undefined;
459
+ progressClassName?: string | undefined;
460
+ progressStyle?: Record<string, any> | undefined;
461
+ contentProps?: Record<string, any> | undefined;
462
+ expandCustomProps?: boolean | undefined;
463
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
464
+ }) => import("vue3-toastify").Id;
465
+ success(content: import("vue3-toastify").Content, options?: {
466
+ theme?: import("vue3-toastify").ToastTheme | undefined;
467
+ rtl?: boolean | undefined;
468
+ data?: {} | undefined;
469
+ role?: string | undefined;
470
+ icon?: import("vue3-toastify").IconType | undefined;
471
+ toastId?: import("vue3-toastify").Id | undefined;
472
+ updateId?: import("vue3-toastify").Id | undefined;
473
+ content?: import("vue3-toastify").Content;
474
+ delay?: number | undefined;
475
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
476
+ onClose?: (<T = {}>(props: T) => void) | undefined;
477
+ onClick?: ((event: MouseEvent) => void) | undefined;
478
+ toastStyle?: Record<string, any> | undefined;
479
+ progress?: number | undefined;
480
+ isLoading?: boolean | undefined;
481
+ dangerouslyHTMLString?: boolean | undefined;
482
+ containerId?: import("vue3-toastify").Id | undefined;
483
+ position?: import("vue3-toastify").ToastPosition | undefined;
484
+ autoClose?: number | boolean | undefined;
485
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
486
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
487
+ hideProgressBar?: boolean | undefined;
488
+ pauseOnHover?: boolean | undefined;
489
+ pauseOnFocusLoss?: boolean | undefined;
490
+ closeOnClick?: boolean | undefined;
491
+ toastClassName?: string | undefined;
492
+ bodyClassName?: string | undefined;
493
+ style?: Record<string, any> | undefined;
494
+ progressClassName?: string | undefined;
495
+ progressStyle?: Record<string, any> | undefined;
496
+ contentProps?: Record<string, any> | undefined;
497
+ expandCustomProps?: boolean | undefined;
498
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
499
+ }): import("vue3-toastify").Id;
500
+ loading(content: import("vue3-toastify").Content, options?: {
501
+ theme?: import("vue3-toastify").ToastTheme | undefined;
502
+ rtl?: boolean | undefined;
503
+ type?: import("vue3-toastify").ToastType | undefined;
504
+ data?: {} | undefined;
505
+ role?: string | undefined;
506
+ icon?: import("vue3-toastify").IconType | undefined;
507
+ disabledEnterTransition?: boolean | undefined;
508
+ toastId?: import("vue3-toastify").Id | undefined;
509
+ updateId?: import("vue3-toastify").Id | undefined;
510
+ content?: import("vue3-toastify").Content;
511
+ delay?: number | undefined;
512
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
513
+ onClose?: (<T = {}>(props: T) => void) | undefined;
514
+ onClick?: ((event: MouseEvent) => void) | undefined;
515
+ toastStyle?: Record<string, any> | undefined;
516
+ progress?: number | undefined;
517
+ dangerouslyHTMLString?: boolean | undefined;
518
+ containerId?: import("vue3-toastify").Id | undefined;
519
+ position?: import("vue3-toastify").ToastPosition | undefined;
520
+ autoClose?: number | boolean | undefined;
521
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
522
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
523
+ hideProgressBar?: boolean | undefined;
524
+ pauseOnHover?: boolean | undefined;
525
+ pauseOnFocusLoss?: boolean | undefined;
526
+ closeOnClick?: boolean | undefined;
527
+ toastClassName?: string | undefined;
528
+ bodyClassName?: string | undefined;
529
+ style?: Record<string, any> | undefined;
530
+ progressClassName?: string | undefined;
531
+ progressStyle?: Record<string, any> | undefined;
532
+ contentProps?: Record<string, any> | undefined;
533
+ expandCustomProps?: boolean | undefined;
534
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
535
+ }): import("vue3-toastify").Id;
536
+ dark(content: import("vue3-toastify").Content, options?: {
537
+ rtl?: boolean | undefined;
538
+ type?: import("vue3-toastify").ToastType | undefined;
539
+ data?: {} | undefined;
540
+ role?: string | undefined;
541
+ icon?: import("vue3-toastify").IconType | undefined;
542
+ disabledEnterTransition?: boolean | undefined;
543
+ toastId?: import("vue3-toastify").Id | undefined;
544
+ updateId?: import("vue3-toastify").Id | undefined;
545
+ content?: import("vue3-toastify").Content;
546
+ delay?: number | undefined;
547
+ onOpen?: (<T = {}>(props: T) => void) | undefined;
548
+ onClose?: (<T = {}>(props: T) => void) | undefined;
549
+ onClick?: ((event: MouseEvent) => void) | undefined;
550
+ toastStyle?: Record<string, any> | undefined;
551
+ progress?: number | undefined;
552
+ isLoading?: boolean | undefined;
553
+ dangerouslyHTMLString?: boolean | undefined;
554
+ containerId?: import("vue3-toastify").Id | undefined;
555
+ position?: import("vue3-toastify").ToastPosition | undefined;
556
+ autoClose?: number | boolean | undefined;
557
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
558
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
559
+ hideProgressBar?: boolean | undefined;
560
+ pauseOnHover?: boolean | undefined;
561
+ pauseOnFocusLoss?: boolean | undefined;
562
+ closeOnClick?: boolean | undefined;
563
+ toastClassName?: string | undefined;
564
+ bodyClassName?: string | undefined;
565
+ style?: Record<string, any> | undefined;
566
+ progressClassName?: string | undefined;
567
+ progressStyle?: Record<string, any> | undefined;
568
+ contentProps?: Record<string, any> | undefined;
569
+ expandCustomProps?: boolean | undefined;
570
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
571
+ }): import("vue3-toastify").Id;
572
+ remove(toastId?: import("vue3-toastify").Id): void;
573
+ clearAll(containerId?: import("vue3-toastify").Id, withExitAnimation?: boolean): void;
574
+ isActive(toastId: import("vue3-toastify").Id): boolean;
575
+ update(toastId: import("vue3-toastify").Id, options?: import("vue3-toastify").UpdateOptions): void;
576
+ done(id: import("vue3-toastify").Id): void;
577
+ promise: <T = unknown>(promise: Promise<T> | (() => Promise<T>), { pending, error, success }: import("vue3-toastify").ToastPromiseParams<T>, options?: {
578
+ theme?: import("vue3-toastify").ToastTheme | undefined;
579
+ rtl?: boolean | undefined;
580
+ type?: import("vue3-toastify").ToastType | undefined;
581
+ data?: {} | undefined;
582
+ role?: string | undefined;
583
+ icon?: import("vue3-toastify").IconType | undefined;
584
+ disabledEnterTransition?: boolean | undefined;
585
+ toastId?: import("vue3-toastify").Id | undefined;
586
+ updateId?: import("vue3-toastify").Id | undefined;
587
+ content?: import("vue3-toastify").Content;
588
+ delay?: number | undefined;
589
+ onOpen?: (<T_1 = {}>(props: T_1) => void) | undefined;
590
+ onClose?: (<T_1 = {}>(props: T_1) => void) | undefined;
591
+ onClick?: ((event: MouseEvent) => void) | undefined;
592
+ toastStyle?: Record<string, any> | undefined;
593
+ progress?: number | undefined;
594
+ dangerouslyHTMLString?: boolean | undefined;
595
+ containerId?: import("vue3-toastify").Id | undefined;
596
+ position?: import("vue3-toastify").ToastPosition | undefined;
597
+ autoClose?: number | boolean | undefined;
598
+ closeButton?: import("vue3-toastify").CloseBtnType | undefined;
599
+ transition?: (import("vue3-toastify").ToastTransition | import("vue3-toastify").CSSTransitionProps) | undefined;
600
+ hideProgressBar?: boolean | undefined;
601
+ pauseOnHover?: boolean | undefined;
602
+ pauseOnFocusLoss?: boolean | undefined;
603
+ closeOnClick?: boolean | undefined;
604
+ toastClassName?: string | undefined;
605
+ bodyClassName?: string | undefined;
606
+ style?: Record<string, any> | undefined;
607
+ progressClassName?: string | undefined;
608
+ progressStyle?: Record<string, any> | undefined;
609
+ contentProps?: Record<string, any> | undefined;
610
+ expandCustomProps?: boolean | undefined;
611
+ useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
612
+ }) => Promise<T>;
613
+ POSITION: {
614
+ TOP_LEFT: import("vue3-toastify").ToastPosition;
615
+ TOP_RIGHT: import("vue3-toastify").ToastPosition;
616
+ TOP_CENTER: import("vue3-toastify").ToastPosition;
617
+ BOTTOM_LEFT: import("vue3-toastify").ToastPosition;
618
+ BOTTOM_RIGHT: import("vue3-toastify").ToastPosition;
619
+ BOTTOM_CENTER: import("vue3-toastify").ToastPosition;
620
+ };
621
+ THEME: {
622
+ AUTO: import("vue3-toastify").ToastTheme;
623
+ LIGHT: import("vue3-toastify").ToastTheme;
624
+ DARK: import("vue3-toastify").ToastTheme;
625
+ COLORED: import("vue3-toastify").ToastTheme;
626
+ };
627
+ TYPE: {
628
+ INFO: import("vue3-toastify").ToastType;
629
+ SUCCESS: import("vue3-toastify").ToastType;
630
+ WARNING: import("vue3-toastify").ToastType;
631
+ ERROR: import("vue3-toastify").ToastType;
632
+ DEFAULT: import("vue3-toastify").ToastType;
633
+ };
634
+ TRANSITIONS: {
635
+ FLIP: import("vue3-toastify").ToastTransition;
636
+ SLIDE: import("vue3-toastify").ToastTransition;
637
+ ZOOM: import("vue3-toastify").ToastTransition;
638
+ BOUNCE: import("vue3-toastify").ToastTransition;
639
+ NONE: import("vue3-toastify").ToastTransition;
640
+ };
641
+ };
642
+ }>;
3
643
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import Vue3Toastify, { toast } from "vue3-toastify";
2
2
  import "vue3-toastify/dist/index.css";
3
+ import { defineNuxtPlugin } from "#app";
3
4
  export default defineNuxtPlugin((nuxtApp) => {
4
5
  nuxtApp.vueApp.use(Vue3Toastify, { autoClose: 3e3, rtl: true, position: "top-right" });
5
6
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",
@@ -27,7 +27,8 @@
27
27
  "prepack": "nuxt-module-build build",
28
28
  "dev": "npm run dev:prepare && nuxi dev playground",
29
29
  "dev:build": "nuxi build playground",
30
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
30
+ "dev:prepare:main": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
31
+ "dev:prepare": "nuxt-module-build build && nuxi prepare playground",
31
32
  "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
32
33
  "lint": "eslint .",
33
34
  "test": "vitest run",
@@ -35,7 +36,6 @@
35
36
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
36
37
  },
37
38
  "dependencies": {
38
- "@iconify/tools": "^4.1.4",
39
39
  "@neshan-maps-platform/vue3-openlayers": "^2.0.1",
40
40
  "@nuxt/kit": "^3.19.3",
41
41
  "@nuxtjs/i18n": "^8.5.6",