@unsource/ui 2.8.7 → 2.8.10
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 +1 -1
- package/dist/module.mjs +24 -9
- package/dist/runtime/assets/main.css +1 -1
- package/dist/runtime/components/UnAuth.d.vue.ts +2 -2
- package/dist/runtime/components/UnAuth.vue +2 -2
- package/dist/runtime/components/UnAuth.vue.d.ts +2 -2
- package/dist/runtime/components/UnCard.d.vue.ts +16 -14
- package/dist/runtime/components/UnCard.vue +26 -2
- package/dist/runtime/components/UnCard.vue.d.ts +16 -14
- package/dist/runtime/components/UnCheckboxItem.d.vue.ts +1 -5
- package/dist/runtime/components/UnCheckboxItem.vue +4 -5
- package/dist/runtime/components/UnCheckboxItem.vue.d.ts +1 -5
- package/dist/runtime/components/UnCollapsible.d.vue.ts +2 -2
- package/dist/runtime/components/UnCollapsible.vue.d.ts +2 -2
- package/dist/runtime/components/UnFormItem.vue +1 -1
- package/dist/runtime/components/UnIRDatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/UnIRDatePicker.vue +1 -2
- package/dist/runtime/components/UnIRDatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/UnLabel.d.vue.ts +13 -13
- package/dist/runtime/components/UnLabel.vue +5 -5
- package/dist/runtime/components/UnLabel.vue.d.ts +13 -13
- package/dist/runtime/components/UnMap.vue +1 -1
- package/dist/runtime/components/UnMobileHeader.vue +0 -1
- package/dist/runtime/components/UnModal.vue +1 -1
- package/dist/runtime/components/UnMultiUploader.vue +0 -1
- package/dist/runtime/components/UnNavbar.vue +1 -1
- package/dist/runtime/components/UnNormalInput.d.vue.ts +1 -21
- package/dist/runtime/components/UnNormalInput.vue.d.ts +1 -21
- package/dist/runtime/components/UnNumberInput.vue +0 -1
- package/dist/runtime/components/UnNuxtIcon.d.vue.ts +0 -1
- package/dist/runtime/components/UnNuxtIcon.vue +1 -3
- package/dist/runtime/components/UnNuxtIcon.vue.d.ts +0 -1
- package/dist/runtime/components/UnProfile.d.vue.ts +2 -2
- package/dist/runtime/components/UnProfile.vue.d.ts +2 -2
- package/dist/runtime/components/UnRadioItem.d.vue.ts +1 -0
- package/dist/runtime/components/UnRadioItem.vue +8 -7
- package/dist/runtime/components/UnRadioItem.vue.d.ts +1 -0
- package/dist/runtime/components/UnSelect.d.vue.ts +0 -2
- package/dist/runtime/components/UnSelect.vue +2 -4
- package/dist/runtime/components/UnSelect.vue.d.ts +0 -2
- package/dist/runtime/components/UnSwiperControl.vue +0 -4
- package/dist/runtime/components/UnSwiperSlider.d.vue.ts +2 -2
- package/dist/runtime/components/UnSwiperSlider.vue.d.ts +2 -2
- package/dist/runtime/components/UnTransaction.vue +1 -0
- package/dist/runtime/components/UnUploadFile.d.vue.ts +2 -2
- package/dist/runtime/components/UnUploadFile.vue +1 -1
- package/dist/runtime/components/UnUploadFile.vue.d.ts +2 -2
- package/dist/runtime/components/UnWallet.vue +1 -0
- package/dist/runtime/composables/fetch.d.ts +38 -17
- package/dist/runtime/composables/fetch.js +20 -11
- package/dist/runtime/composables/global.d.ts +26 -24
- package/dist/runtime/composables/global.js +15 -33
- package/dist/runtime/composables/reuseable.d.ts +3 -16
- package/dist/runtime/composables/reuseable.js +7 -24
- package/dist/runtime/composables/services.js +3 -2
- package/dist/runtime/plugins/floating.client.d.ts +3 -0
- package/dist/runtime/plugins/floating.client.js +6 -0
- package/dist/runtime/plugins/toast.client.d.ts +14 -14
- package/dist/runtime/types/models.d.ts +476 -402
- package/package.json +8 -7
- package/dist/runtime/uno.config.d.ts +0 -2
- package/dist/runtime/uno.config.js +0 -60
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppSetting, Booking, BookingSetting,
|
|
1
|
+
import type { AppSetting, Booking, BookingSetting, InputOption, Provider, ServiceSettingType, ServiceSetting, User } from '../types/models.js';
|
|
2
2
|
export declare const useUser: () => import("@vueuse/shared").RemovableRef<User>;
|
|
3
3
|
export declare const useProvider: () => import("@vueuse/shared").RemovableRef<Partial<Provider>>;
|
|
4
4
|
export declare const useActiveBookings: () => import("@vueuse/shared").RemovableRef<Booking[]>;
|
|
@@ -30,21 +30,8 @@ export declare const useProviderId: () => import("#app").CookieRef<string | null
|
|
|
30
30
|
export declare const useCurrentProductIndex: (products: ServiceSetting[], p: Partial<ServiceSetting>) => number;
|
|
31
31
|
export declare const SettingToType: (setting: ServiceSetting) => ServiceSettingType;
|
|
32
32
|
export declare const NotInProcessBooking: (e: Booking["status"]) => boolean;
|
|
33
|
-
export declare const MinPrice: (bookingSetting: BookingSetting) => number |
|
|
33
|
+
export declare const MinPrice: (bookingSetting: BookingSetting) => number | object | null | undefined;
|
|
34
34
|
export declare const PriceDiscount: (product: ServiceSettingType | ServiceSetting) => number;
|
|
35
|
-
export declare const BookingServicesPrice: (booking: Booking) => number;
|
|
36
|
-
export declare const BookingServicesDiscountPrice: (booking: Booking) => number;
|
|
37
|
-
export declare const BookingItems: (booking: Booking, discount?: DiscountCode | undefined) => ({
|
|
38
|
-
label: string;
|
|
39
|
-
value: number;
|
|
40
|
-
bold?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
label: string;
|
|
43
|
-
value: number;
|
|
44
|
-
bold: boolean;
|
|
45
|
-
} | null)[];
|
|
46
|
-
export declare const BookingTotalPrice: (items: any[]) => number;
|
|
47
|
-
export declare const BookingPrice: (booking: Booking) => number;
|
|
48
35
|
export declare const authenticate: () => Promise<void>;
|
|
49
36
|
export declare const authenticateProvider: () => Promise<void>;
|
|
50
37
|
export declare const useConfig: () => import("@nuxt/schema").PublicRuntimeConfig;
|
|
@@ -52,7 +39,7 @@ export declare const useModuleConfig: () => unknown;
|
|
|
52
39
|
export declare const isProviderSide: (config: {
|
|
53
40
|
userType: string;
|
|
54
41
|
}) => boolean;
|
|
55
|
-
export declare const
|
|
42
|
+
export declare const isCoSide: (config: {
|
|
56
43
|
userType: string;
|
|
57
44
|
}) => boolean;
|
|
58
45
|
export declare const isUserSide: (config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Big from "big.js";
|
|
2
|
-
import { _pick, _round,
|
|
2
|
+
import { _pick, _round, navigateTo, useCookie, useLocalStorage, useRuntimeConfig, useState } from "#imports";
|
|
3
3
|
export const useUser = () => useLocalStorage("user", {});
|
|
4
4
|
export const useProvider = () => useLocalStorage("provider", {});
|
|
5
5
|
export const useActiveBookings = () => useLocalStorage("activeBookings", []);
|
|
@@ -10,7 +10,9 @@ export const useCatInView = () => useState("catView");
|
|
|
10
10
|
export const useToppingModal = () => useState("services");
|
|
11
11
|
export const useMeta = (v = null) => {
|
|
12
12
|
const meta = useState("meta", () => ({}));
|
|
13
|
-
|
|
13
|
+
if (v) {
|
|
14
|
+
meta.value = v;
|
|
15
|
+
}
|
|
14
16
|
return meta;
|
|
15
17
|
};
|
|
16
18
|
export const useReload = () => useState("reload", () => 0);
|
|
@@ -32,25 +34,6 @@ export const SettingToType = (setting) => ({
|
|
|
32
34
|
export const NotInProcessBooking = (e) => ["PENDING", "REJECTED", "COMPLETED", "CANCELLED"].includes(e || "");
|
|
33
35
|
export const MinPrice = (bookingSetting) => bookingSetting?.minPrice;
|
|
34
36
|
export const PriceDiscount = (product) => _round(new Big(product.price || 0).mul((product.discount || 0) / 100).toNumber());
|
|
35
|
-
export const BookingServicesPrice = (booking) => _sumBy(booking?.services, "price");
|
|
36
|
-
export const BookingServicesDiscountPrice = (booking) => _sum(booking.services?.map(PriceDiscount)) || 0;
|
|
37
|
-
export const BookingItems = (booking, discount = void 0) => booking ? [
|
|
38
|
-
{
|
|
39
|
-
label: "\u0645\u062C\u0645\u0648\u0639",
|
|
40
|
-
value: BookingServicesPrice(booking)
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: "\u0647\u0632\u06CC\u0646\u0647 \u0627\u0648\u0644\u06CC\u0647",
|
|
44
|
-
value: MinPrice(booking.booking) || 0
|
|
45
|
-
},
|
|
46
|
-
BookingServicesDiscountPrice(booking) || discount ? {
|
|
47
|
-
label: "\u062A\u062E\u0641\u06CC\u0641",
|
|
48
|
-
value: -1 * BookingServicesDiscountPrice(booking) - Math.min(discount?.maxPrice || 0, new Big(discount?.percent || 0).div(100).times(BookingServicesPrice(booking)).toNumber()),
|
|
49
|
-
bold: true
|
|
50
|
-
} : null
|
|
51
|
-
] : [];
|
|
52
|
-
export const BookingTotalPrice = (items) => _sumBy(items, "value");
|
|
53
|
-
export const BookingPrice = (booking) => BookingTotalPrice(BookingItems(booking));
|
|
54
37
|
export const authenticate = async () => {
|
|
55
38
|
const userId = useUserId();
|
|
56
39
|
if (!userId.value) {
|
|
@@ -72,10 +55,10 @@ export const useModuleConfig = () => {
|
|
|
72
55
|
return config.unsourceUi;
|
|
73
56
|
};
|
|
74
57
|
export const isProviderSide = (config) => {
|
|
75
|
-
return config?.userType
|
|
58
|
+
return ["PROVIDER", "SHOP"].includes(config?.userType);
|
|
76
59
|
};
|
|
77
|
-
export const
|
|
78
|
-
return
|
|
60
|
+
export const isCoSide = (config) => {
|
|
61
|
+
return ["COURIER", "PLACE"].includes(config?.userType);
|
|
79
62
|
};
|
|
80
63
|
export const isUserSide = (config) => {
|
|
81
64
|
return config?.userType === "USER";
|
|
@@ -45,6 +45,7 @@ export const getCoin = async (id = null) => {
|
|
|
45
45
|
export const getBanner = async (cat) => {
|
|
46
46
|
if (!cat) return null;
|
|
47
47
|
const { result } = await useGet(`/Banner/categoryKey/${cat}`, {
|
|
48
|
+
// @ts-ignore
|
|
48
49
|
headers: {
|
|
49
50
|
"no-error": true
|
|
50
51
|
}
|
|
@@ -75,6 +76,7 @@ export const getCategorySection = async (data) => {
|
|
|
75
76
|
export const getOption = async (key, params = {}) => {
|
|
76
77
|
const { result } = await useGet(`/InputOption/key/${key}`, {
|
|
77
78
|
params,
|
|
79
|
+
// @ts-ignore
|
|
78
80
|
headers: {
|
|
79
81
|
"no-error": true
|
|
80
82
|
}
|
|
@@ -128,9 +130,8 @@ export const getTransactions = async (q = {}) => {
|
|
|
128
130
|
return result;
|
|
129
131
|
};
|
|
130
132
|
export const saveUser = async (user) => {
|
|
131
|
-
let res;
|
|
132
133
|
const userId = useUserId();
|
|
133
|
-
res = await usePut(`/user/${userId.value}`, user, { headers: { "no-error": true } });
|
|
134
|
+
const res = await usePut(`/user/${userId.value}`, user, { headers: { "no-error": true } });
|
|
134
135
|
await getUserInfo();
|
|
135
136
|
return res.result;
|
|
136
137
|
};
|
|
@@ -3,7 +3,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
3
3
|
toast: {
|
|
4
4
|
(content: import("vue3-toastify").Content, options?: import("vue3-toastify").ToastOptions): import("vue3-toastify").Id;
|
|
5
5
|
info(content: import("vue3-toastify").Content, options?: {
|
|
6
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
7
6
|
rtl?: boolean | undefined;
|
|
8
7
|
data?: {} | undefined;
|
|
9
8
|
role?: string | undefined;
|
|
@@ -33,12 +32,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
33
32
|
style?: Record<string, any> | undefined;
|
|
34
33
|
progressClassName?: string | undefined;
|
|
35
34
|
progressStyle?: Record<string, any> | undefined;
|
|
35
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
36
36
|
contentProps?: Record<string, any> | undefined;
|
|
37
37
|
expandCustomProps?: boolean | undefined;
|
|
38
38
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
39
39
|
}): import("vue3-toastify").Id;
|
|
40
40
|
error(content: import("vue3-toastify").Content, options?: {
|
|
41
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
42
41
|
rtl?: boolean | undefined;
|
|
43
42
|
data?: {} | undefined;
|
|
44
43
|
role?: string | undefined;
|
|
@@ -68,12 +67,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
68
67
|
style?: Record<string, any> | undefined;
|
|
69
68
|
progressClassName?: string | undefined;
|
|
70
69
|
progressStyle?: Record<string, any> | undefined;
|
|
70
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
71
71
|
contentProps?: Record<string, any> | undefined;
|
|
72
72
|
expandCustomProps?: boolean | undefined;
|
|
73
73
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
74
74
|
}): import("vue3-toastify").Id;
|
|
75
75
|
warning(content: import("vue3-toastify").Content, options?: {
|
|
76
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
77
76
|
rtl?: boolean | undefined;
|
|
78
77
|
data?: {} | undefined;
|
|
79
78
|
role?: string | undefined;
|
|
@@ -103,12 +102,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
103
102
|
style?: Record<string, any> | undefined;
|
|
104
103
|
progressClassName?: string | undefined;
|
|
105
104
|
progressStyle?: Record<string, any> | undefined;
|
|
105
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
106
106
|
contentProps?: Record<string, any> | undefined;
|
|
107
107
|
expandCustomProps?: boolean | undefined;
|
|
108
108
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
109
109
|
}): import("vue3-toastify").Id;
|
|
110
110
|
warn: (content: import("vue3-toastify").Content, options?: {
|
|
111
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
112
111
|
rtl?: boolean | undefined;
|
|
113
112
|
data?: {} | undefined;
|
|
114
113
|
role?: string | undefined;
|
|
@@ -138,12 +137,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
138
137
|
style?: Record<string, any> | undefined;
|
|
139
138
|
progressClassName?: string | undefined;
|
|
140
139
|
progressStyle?: Record<string, any> | undefined;
|
|
140
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
141
141
|
contentProps?: Record<string, any> | undefined;
|
|
142
142
|
expandCustomProps?: boolean | undefined;
|
|
143
143
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
144
144
|
}) => import("vue3-toastify").Id;
|
|
145
145
|
success(content: import("vue3-toastify").Content, options?: {
|
|
146
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
147
146
|
rtl?: boolean | undefined;
|
|
148
147
|
data?: {} | undefined;
|
|
149
148
|
role?: string | undefined;
|
|
@@ -173,12 +172,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
173
172
|
style?: Record<string, any> | undefined;
|
|
174
173
|
progressClassName?: string | undefined;
|
|
175
174
|
progressStyle?: Record<string, any> | undefined;
|
|
175
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
176
176
|
contentProps?: Record<string, any> | undefined;
|
|
177
177
|
expandCustomProps?: boolean | undefined;
|
|
178
178
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
179
179
|
}): import("vue3-toastify").Id;
|
|
180
180
|
loading(content: import("vue3-toastify").Content, options?: {
|
|
181
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
182
181
|
rtl?: boolean | undefined;
|
|
183
182
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
184
183
|
data?: {} | undefined;
|
|
@@ -209,6 +208,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
209
208
|
style?: Record<string, any> | undefined;
|
|
210
209
|
progressClassName?: string | undefined;
|
|
211
210
|
progressStyle?: Record<string, any> | undefined;
|
|
211
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
212
212
|
contentProps?: Record<string, any> | undefined;
|
|
213
213
|
expandCustomProps?: boolean | undefined;
|
|
214
214
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
@@ -255,7 +255,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
255
255
|
update(toastId: import("vue3-toastify").Id, options?: import("vue3-toastify").UpdateOptions): void;
|
|
256
256
|
done(id: import("vue3-toastify").Id): void;
|
|
257
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
258
|
rtl?: boolean | undefined;
|
|
260
259
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
261
260
|
data?: {} | undefined;
|
|
@@ -286,6 +285,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
286
285
|
style?: Record<string, any> | undefined;
|
|
287
286
|
progressClassName?: string | undefined;
|
|
288
287
|
progressStyle?: Record<string, any> | undefined;
|
|
288
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
289
289
|
contentProps?: Record<string, any> | undefined;
|
|
290
290
|
expandCustomProps?: boolean | undefined;
|
|
291
291
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
@@ -323,7 +323,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
323
323
|
toast: {
|
|
324
324
|
(content: import("vue3-toastify").Content, options?: import("vue3-toastify").ToastOptions): import("vue3-toastify").Id;
|
|
325
325
|
info(content: import("vue3-toastify").Content, options?: {
|
|
326
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
327
326
|
rtl?: boolean | undefined;
|
|
328
327
|
data?: {} | undefined;
|
|
329
328
|
role?: string | undefined;
|
|
@@ -353,12 +352,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
353
352
|
style?: Record<string, any> | undefined;
|
|
354
353
|
progressClassName?: string | undefined;
|
|
355
354
|
progressStyle?: Record<string, any> | undefined;
|
|
355
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
356
356
|
contentProps?: Record<string, any> | undefined;
|
|
357
357
|
expandCustomProps?: boolean | undefined;
|
|
358
358
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
359
359
|
}): import("vue3-toastify").Id;
|
|
360
360
|
error(content: import("vue3-toastify").Content, options?: {
|
|
361
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
362
361
|
rtl?: boolean | undefined;
|
|
363
362
|
data?: {} | undefined;
|
|
364
363
|
role?: string | undefined;
|
|
@@ -388,12 +387,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
388
387
|
style?: Record<string, any> | undefined;
|
|
389
388
|
progressClassName?: string | undefined;
|
|
390
389
|
progressStyle?: Record<string, any> | undefined;
|
|
390
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
391
391
|
contentProps?: Record<string, any> | undefined;
|
|
392
392
|
expandCustomProps?: boolean | undefined;
|
|
393
393
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
394
394
|
}): import("vue3-toastify").Id;
|
|
395
395
|
warning(content: import("vue3-toastify").Content, options?: {
|
|
396
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
397
396
|
rtl?: boolean | undefined;
|
|
398
397
|
data?: {} | undefined;
|
|
399
398
|
role?: string | undefined;
|
|
@@ -423,12 +422,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
423
422
|
style?: Record<string, any> | undefined;
|
|
424
423
|
progressClassName?: string | undefined;
|
|
425
424
|
progressStyle?: Record<string, any> | undefined;
|
|
425
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
426
426
|
contentProps?: Record<string, any> | undefined;
|
|
427
427
|
expandCustomProps?: boolean | undefined;
|
|
428
428
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
429
429
|
}): import("vue3-toastify").Id;
|
|
430
430
|
warn: (content: import("vue3-toastify").Content, options?: {
|
|
431
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
432
431
|
rtl?: boolean | undefined;
|
|
433
432
|
data?: {} | undefined;
|
|
434
433
|
role?: string | undefined;
|
|
@@ -458,12 +457,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
458
457
|
style?: Record<string, any> | undefined;
|
|
459
458
|
progressClassName?: string | undefined;
|
|
460
459
|
progressStyle?: Record<string, any> | undefined;
|
|
460
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
461
461
|
contentProps?: Record<string, any> | undefined;
|
|
462
462
|
expandCustomProps?: boolean | undefined;
|
|
463
463
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
464
464
|
}) => import("vue3-toastify").Id;
|
|
465
465
|
success(content: import("vue3-toastify").Content, options?: {
|
|
466
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
467
466
|
rtl?: boolean | undefined;
|
|
468
467
|
data?: {} | undefined;
|
|
469
468
|
role?: string | undefined;
|
|
@@ -493,12 +492,12 @@ declare const _default: import("#app").Plugin<{
|
|
|
493
492
|
style?: Record<string, any> | undefined;
|
|
494
493
|
progressClassName?: string | undefined;
|
|
495
494
|
progressStyle?: Record<string, any> | undefined;
|
|
495
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
496
496
|
contentProps?: Record<string, any> | undefined;
|
|
497
497
|
expandCustomProps?: boolean | undefined;
|
|
498
498
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
499
499
|
}): import("vue3-toastify").Id;
|
|
500
500
|
loading(content: import("vue3-toastify").Content, options?: {
|
|
501
|
-
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
502
501
|
rtl?: boolean | undefined;
|
|
503
502
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
504
503
|
data?: {} | undefined;
|
|
@@ -529,6 +528,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
529
528
|
style?: Record<string, any> | undefined;
|
|
530
529
|
progressClassName?: string | undefined;
|
|
531
530
|
progressStyle?: Record<string, any> | undefined;
|
|
531
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
532
532
|
contentProps?: Record<string, any> | undefined;
|
|
533
533
|
expandCustomProps?: boolean | undefined;
|
|
534
534
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
@@ -575,7 +575,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
575
575
|
update(toastId: import("vue3-toastify").Id, options?: import("vue3-toastify").UpdateOptions): void;
|
|
576
576
|
done(id: import("vue3-toastify").Id): void;
|
|
577
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
578
|
rtl?: boolean | undefined;
|
|
580
579
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
581
580
|
data?: {} | undefined;
|
|
@@ -606,6 +605,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
606
605
|
style?: Record<string, any> | undefined;
|
|
607
606
|
progressClassName?: string | undefined;
|
|
608
607
|
progressStyle?: Record<string, any> | undefined;
|
|
608
|
+
theme?: import("vue3-toastify").ToastTheme | undefined;
|
|
609
609
|
contentProps?: Record<string, any> | undefined;
|
|
610
610
|
expandCustomProps?: boolean | undefined;
|
|
611
611
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|