@unsource/ui 2.8.8 → 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 +2 -2
- package/dist/runtime/components/UnFormList.d.vue.ts +1 -1
- package/dist/runtime/components/UnFormList.vue.d.ts +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/UnInput.d.vue.ts +1 -1
- package/dist/runtime/components/UnInput.vue +1 -1
- package/dist/runtime/components/UnInput.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 +4 -4
- package/dist/runtime/components/UnUploadFile.vue +1 -1
- package/dist/runtime/components/UnUploadFile.vue.d.ts +4 -4
- 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 +58 -15
- package/dist/runtime/composables/global.js +11 -30
- package/dist/runtime/composables/reuseable.d.ts +6 -19
- package/dist/runtime/composables/reuseable.js +7 -24
- package/dist/runtime/composables/services.d.ts +2 -2
- 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 +30 -30
- package/dist/runtime/types/models.d.ts +401 -110
- package/package.json +6 -5
- package/dist/runtime/uno.config.d.ts +0 -2
- package/dist/runtime/uno.config.js +0 -60
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_fromPairs,
|
|
3
3
|
_get,
|
|
4
|
-
_has,
|
|
5
4
|
_mergeWith,
|
|
6
5
|
_set,
|
|
7
6
|
_toPairs,
|
|
@@ -23,6 +22,7 @@ import { useModuleConfig, useToken, useUserId } from "./reuseable.js";
|
|
|
23
22
|
import Moment from "jalali-moment";
|
|
24
23
|
import Handlebars from "handlebars";
|
|
25
24
|
import Ajv from "ajv";
|
|
25
|
+
import Big from "big.js";
|
|
26
26
|
export const moment = Moment;
|
|
27
27
|
export const ajv = new Ajv();
|
|
28
28
|
export const logger = (...args) => console.log("logger=>>>", ...args);
|
|
@@ -83,21 +83,9 @@ export const toLocal = (number, decimal = 8) => {
|
|
|
83
83
|
};
|
|
84
84
|
export const copyData = async (string) => {
|
|
85
85
|
const { $toast } = useNuxtApp();
|
|
86
|
+
const { t } = useI18n();
|
|
86
87
|
await navigator.clipboard.writeText(string);
|
|
87
|
-
$toast.success("Copied :)");
|
|
88
|
-
};
|
|
89
|
-
export const mapper = (data, map, keys = _keys(map)) => {
|
|
90
|
-
const value = {};
|
|
91
|
-
const mapKeys = Object.keys(map);
|
|
92
|
-
for (const key of keys) {
|
|
93
|
-
const v = _get(data, key);
|
|
94
|
-
_set(value, key, v);
|
|
95
|
-
}
|
|
96
|
-
for (const key of mapKeys) {
|
|
97
|
-
const v = _has(data, key) && _get(map, [key, "handler"])?.(data[key]) || _get(data, key);
|
|
98
|
-
_set(value, map[key]?.label || key, v);
|
|
99
|
-
}
|
|
100
|
-
return value;
|
|
88
|
+
$toast.success(t("Copied :)"));
|
|
101
89
|
};
|
|
102
90
|
export const deg2rad = (deg) => {
|
|
103
91
|
return deg * (Math.PI / 180);
|
|
@@ -153,7 +141,7 @@ export const timeToMinutes = (timeString = "") => {
|
|
|
153
141
|
export const minutesToTime = (m = 0) => {
|
|
154
142
|
const hour = Math.floor(m / 60) + "";
|
|
155
143
|
const minute = Math.round(m % 60) + "";
|
|
156
|
-
return `${hour.padStart(2, 0)}:${minute.padStart(2, 0)}`;
|
|
144
|
+
return `${hour.padStart(2, "0")}:${minute.padStart(2, "0")}`;
|
|
157
145
|
};
|
|
158
146
|
export const useSocketIo = () => {
|
|
159
147
|
const moduleConfig = useModuleConfig();
|
|
@@ -199,17 +187,6 @@ export const setMeta = (data) => {
|
|
|
199
187
|
const metaData = useState("meta-data");
|
|
200
188
|
metaData.value = data;
|
|
201
189
|
};
|
|
202
|
-
export const encrypt = (text, passphrase) => {
|
|
203
|
-
return AES.encrypt(text, passphrase).toString();
|
|
204
|
-
};
|
|
205
|
-
export const decrypt = (ciphertext, passphrase) => {
|
|
206
|
-
const bytes = AES.decrypt(ciphertext, passphrase);
|
|
207
|
-
try {
|
|
208
|
-
return bytes.toString(enc);
|
|
209
|
-
} catch (e) {
|
|
210
|
-
return "";
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
190
|
export const useWallets = async (isActive = void 0, id = void 0) => {
|
|
214
191
|
const userId = id ? { value: id } : useUserId();
|
|
215
192
|
const wallet = id ? ref([]) : useState("wallet", () => []);
|
|
@@ -223,12 +200,12 @@ export const useWallets = async (isActive = void 0, id = void 0) => {
|
|
|
223
200
|
}
|
|
224
201
|
});
|
|
225
202
|
const { result: coins } = await useGet("/coin", { params: { "$w.walletable": true } });
|
|
226
|
-
wallet.value = currentWallets
|
|
203
|
+
wallet.value = currentWallets?.filter((e) => !e.coin?.platforms?.length || e.coin?.platforms?.includes(window.APP_CODE || moduleConfig?.APP_CODE)) || [];
|
|
227
204
|
const wallets = coins?.map((e) => ({
|
|
228
205
|
balance: 0,
|
|
229
206
|
coinId: e.id,
|
|
230
207
|
userId: userId.value
|
|
231
|
-
})).filter((c) => !
|
|
208
|
+
})).filter((c) => !currentWallets?.find((w) => w.coinId === c.coinId));
|
|
232
209
|
if (wallets?.length) {
|
|
233
210
|
await usePost("/wallet", wallets);
|
|
234
211
|
const { result: w } = await useGet("/wallet", {
|
|
@@ -260,6 +237,7 @@ export const getDiscountInfo = async (code, shop = null) => {
|
|
|
260
237
|
params: {
|
|
261
238
|
"$i.transactions": true
|
|
262
239
|
},
|
|
240
|
+
// @ts-ignore
|
|
263
241
|
headers: {
|
|
264
242
|
"no-error": true
|
|
265
243
|
}
|
|
@@ -332,13 +310,14 @@ export const discountedPrice = (price, discount = null) => {
|
|
|
332
310
|
return price;
|
|
333
311
|
}
|
|
334
312
|
const d = new Big(discount.percent).mul(price).div(100);
|
|
335
|
-
return d > discount.maxPrice ? discount.maxPrice : d;
|
|
313
|
+
return d > (discount.maxPrice || Infinity) ? discount.maxPrice : d;
|
|
336
314
|
};
|
|
337
315
|
export const formattedAddress = async ([lng, lat]) => {
|
|
338
316
|
const result = await $fetch(
|
|
339
317
|
`https://api.neshan.org/v5/reverse?lat=${lat}&lng=${lng}`,
|
|
340
318
|
{
|
|
341
319
|
method: "GET",
|
|
320
|
+
// @ts-ignore
|
|
342
321
|
headers: {
|
|
343
322
|
"Api-Key": window.NESHAN_API_KEY
|
|
344
323
|
}
|
|
@@ -351,6 +330,7 @@ export const geoCodingAddress = async (address, coords) => {
|
|
|
351
330
|
`https://api.neshan.org/v1/search?term=${address}&lat=${coords[1]}&lng=${coords[0]}`,
|
|
352
331
|
{
|
|
353
332
|
method: "GET",
|
|
333
|
+
// @ts-ignore
|
|
354
334
|
headers: {
|
|
355
335
|
"Api-Key": window.NESHAN_API_KEY
|
|
356
336
|
}
|
|
@@ -373,6 +353,7 @@ export const setOptions = async (f, ctx = {}) => {
|
|
|
373
353
|
...f,
|
|
374
354
|
input: {
|
|
375
355
|
...f.input,
|
|
356
|
+
// @ts-ignore
|
|
376
357
|
options: (result ?? []).map((e) => _fromPairs(_toPairs(f.input?.externalOptionsKeys).map((p) => [p[0], _get(e, p[1])])))
|
|
377
358
|
}
|
|
378
359
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { 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
|
-
export declare const useProvider: () => import("@vueuse/shared").RemovableRef<Provider
|
|
3
|
+
export declare const useProvider: () => import("@vueuse/shared").RemovableRef<Partial<Provider>>;
|
|
4
4
|
export declare const useActiveBookings: () => import("@vueuse/shared").RemovableRef<Booking[]>;
|
|
5
5
|
export declare const useCurrentOrderIndex: (providerId: string, activeBookings: Booking[]) => number;
|
|
6
|
-
export declare const useSettings: () => import("@vueuse/shared").RemovableRef<AppSetting
|
|
6
|
+
export declare const useSettings: () => import("@vueuse/shared").RemovableRef<Partial<AppSetting>>;
|
|
7
7
|
export declare const useHaveLocation: () => import("vue").Ref<boolean, boolean>;
|
|
8
8
|
export declare const useCatInView: () => import("vue").Ref<[InputOption, ServiceSetting[]], [InputOption, ServiceSetting[]]>;
|
|
9
|
-
export declare const useToppingModal: () => import("vue").Ref<
|
|
9
|
+
export declare const useToppingModal: () => import("vue").Ref<ServiceSetting | null, ServiceSetting | null>;
|
|
10
10
|
export declare const useMeta: (v?: {
|
|
11
11
|
backward?: any;
|
|
12
12
|
title?: string;
|
|
@@ -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) =>
|
|
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";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Section, Profile, Transaction, Slider, User, Banner, Coin } from '../types/models.js';
|
|
1
|
+
import type { Form, InputOption, Section, Profile, Transaction, Slider, User, Banner, Coin } from '../types/models.js';
|
|
2
2
|
export declare const getForms: (name: string) => Promise<Form[] | undefined>;
|
|
3
3
|
export declare const getUserInfo: () => Promise<User | null>;
|
|
4
4
|
export declare const getCoin: (id?: string | null) => Promise<Coin | undefined>;
|
|
5
5
|
export declare const getBanner: (cat: string) => Promise<Banner | null | undefined>;
|
|
6
6
|
export declare const getSections: () => Promise<Section | never[]>;
|
|
7
7
|
export declare const getCategorySection: (data: Slider) => Promise<InputOption[]>;
|
|
8
|
-
export declare const getOption: (key: string, params?: {}) => Promise<
|
|
8
|
+
export declare const getOption: (key: string, params?: {}) => Promise<InputOption | null>;
|
|
9
9
|
export declare const getOptions: (key: string) => Promise<InputOption[]>;
|
|
10
10
|
export declare const getMyTransactions: (q?: {}) => Promise<Transaction[] | undefined>;
|
|
11
11
|
export declare const getTransactions: (q?: {}) => Promise<Transaction[] | undefined>;
|
|
@@ -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,10 +3,10 @@ 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;
|
|
9
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
10
10
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
11
11
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
12
12
|
content?: import("vue3-toastify").Content;
|
|
@@ -32,16 +32,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
32
32
|
style?: Record<string, any> | undefined;
|
|
33
33
|
progressClassName?: string | undefined;
|
|
34
34
|
progressStyle?: Record<string, any> | undefined;
|
|
35
|
-
|
|
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;
|
|
44
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
45
45
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
46
46
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
47
47
|
content?: import("vue3-toastify").Content;
|
|
@@ -67,16 +67,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
67
67
|
style?: Record<string, any> | undefined;
|
|
68
68
|
progressClassName?: string | undefined;
|
|
69
69
|
progressStyle?: Record<string, any> | undefined;
|
|
70
|
-
|
|
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;
|
|
79
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
80
80
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
81
81
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
82
82
|
content?: import("vue3-toastify").Content;
|
|
@@ -102,16 +102,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
102
102
|
style?: Record<string, any> | undefined;
|
|
103
103
|
progressClassName?: string | undefined;
|
|
104
104
|
progressStyle?: Record<string, any> | undefined;
|
|
105
|
-
|
|
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;
|
|
114
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
115
115
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
116
116
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
117
117
|
content?: import("vue3-toastify").Content;
|
|
@@ -137,16 +137,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
137
137
|
style?: Record<string, any> | undefined;
|
|
138
138
|
progressClassName?: string | undefined;
|
|
139
139
|
progressStyle?: Record<string, any> | undefined;
|
|
140
|
-
|
|
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;
|
|
149
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
150
150
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
151
151
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
152
152
|
content?: import("vue3-toastify").Content;
|
|
@@ -172,17 +172,17 @@ declare const _default: import("#app").Plugin<{
|
|
|
172
172
|
style?: Record<string, any> | undefined;
|
|
173
173
|
progressClassName?: string | undefined;
|
|
174
174
|
progressStyle?: Record<string, any> | undefined;
|
|
175
|
-
|
|
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;
|
|
185
184
|
role?: string | undefined;
|
|
185
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
186
186
|
disabledEnterTransition?: boolean | undefined;
|
|
187
187
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
188
188
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
@@ -208,7 +208,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
208
208
|
style?: Record<string, any> | undefined;
|
|
209
209
|
progressClassName?: string | undefined;
|
|
210
210
|
progressStyle?: Record<string, any> | undefined;
|
|
211
|
-
|
|
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;
|
|
@@ -218,6 +218,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
218
218
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
219
219
|
data?: {} | undefined;
|
|
220
220
|
role?: string | undefined;
|
|
221
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
221
222
|
disabledEnterTransition?: boolean | undefined;
|
|
222
223
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
223
224
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
@@ -244,7 +245,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
244
245
|
style?: Record<string, any> | undefined;
|
|
245
246
|
progressClassName?: string | undefined;
|
|
246
247
|
progressStyle?: Record<string, any> | undefined;
|
|
247
|
-
icon?: import("vue3-toastify").IconType | undefined;
|
|
248
248
|
contentProps?: Record<string, any> | undefined;
|
|
249
249
|
expandCustomProps?: boolean | undefined;
|
|
250
250
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
@@ -255,11 +255,11 @@ 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;
|
|
262
261
|
role?: string | undefined;
|
|
262
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
263
263
|
disabledEnterTransition?: boolean | undefined;
|
|
264
264
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
265
265
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
@@ -285,7 +285,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
285
285
|
style?: Record<string, any> | undefined;
|
|
286
286
|
progressClassName?: string | undefined;
|
|
287
287
|
progressStyle?: Record<string, any> | undefined;
|
|
288
|
-
|
|
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,10 +323,10 @@ 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;
|
|
329
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
330
330
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
331
331
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
332
332
|
content?: import("vue3-toastify").Content;
|
|
@@ -352,16 +352,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
352
352
|
style?: Record<string, any> | undefined;
|
|
353
353
|
progressClassName?: string | undefined;
|
|
354
354
|
progressStyle?: Record<string, any> | undefined;
|
|
355
|
-
|
|
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;
|
|
364
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
365
365
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
366
366
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
367
367
|
content?: import("vue3-toastify").Content;
|
|
@@ -387,16 +387,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
387
387
|
style?: Record<string, any> | undefined;
|
|
388
388
|
progressClassName?: string | undefined;
|
|
389
389
|
progressStyle?: Record<string, any> | undefined;
|
|
390
|
-
|
|
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;
|
|
399
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
400
400
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
401
401
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
402
402
|
content?: import("vue3-toastify").Content;
|
|
@@ -422,16 +422,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
422
422
|
style?: Record<string, any> | undefined;
|
|
423
423
|
progressClassName?: string | undefined;
|
|
424
424
|
progressStyle?: Record<string, any> | undefined;
|
|
425
|
-
|
|
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;
|
|
434
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
435
435
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
436
436
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
437
437
|
content?: import("vue3-toastify").Content;
|
|
@@ -457,16 +457,16 @@ declare const _default: import("#app").Plugin<{
|
|
|
457
457
|
style?: Record<string, any> | undefined;
|
|
458
458
|
progressClassName?: string | undefined;
|
|
459
459
|
progressStyle?: Record<string, any> | undefined;
|
|
460
|
-
|
|
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;
|
|
469
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
470
470
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
471
471
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
472
472
|
content?: import("vue3-toastify").Content;
|
|
@@ -492,17 +492,17 @@ declare const _default: import("#app").Plugin<{
|
|
|
492
492
|
style?: Record<string, any> | undefined;
|
|
493
493
|
progressClassName?: string | undefined;
|
|
494
494
|
progressStyle?: Record<string, any> | undefined;
|
|
495
|
-
|
|
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;
|
|
505
504
|
role?: string | undefined;
|
|
505
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
506
506
|
disabledEnterTransition?: boolean | undefined;
|
|
507
507
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
508
508
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
@@ -528,7 +528,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
528
528
|
style?: Record<string, any> | undefined;
|
|
529
529
|
progressClassName?: string | undefined;
|
|
530
530
|
progressStyle?: Record<string, any> | undefined;
|
|
531
|
-
|
|
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;
|
|
@@ -538,6 +538,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
538
538
|
type?: import("vue3-toastify").ToastType | undefined;
|
|
539
539
|
data?: {} | undefined;
|
|
540
540
|
role?: string | undefined;
|
|
541
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
541
542
|
disabledEnterTransition?: boolean | undefined;
|
|
542
543
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
543
544
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
@@ -564,7 +565,6 @@ declare const _default: import("#app").Plugin<{
|
|
|
564
565
|
style?: Record<string, any> | undefined;
|
|
565
566
|
progressClassName?: string | undefined;
|
|
566
567
|
progressStyle?: Record<string, any> | undefined;
|
|
567
|
-
icon?: import("vue3-toastify").IconType | undefined;
|
|
568
568
|
contentProps?: Record<string, any> | undefined;
|
|
569
569
|
expandCustomProps?: boolean | undefined;
|
|
570
570
|
useHandler?: ((app: import("vue").App<Element>) => void) | undefined;
|
|
@@ -575,11 +575,11 @@ 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;
|
|
582
581
|
role?: string | undefined;
|
|
582
|
+
icon?: import("vue3-toastify").IconType | undefined;
|
|
583
583
|
disabledEnterTransition?: boolean | undefined;
|
|
584
584
|
toastId?: import("vue3-toastify").Id | undefined;
|
|
585
585
|
updateId?: import("vue3-toastify").Id | undefined;
|
|
@@ -605,7 +605,7 @@ declare const _default: import("#app").Plugin<{
|
|
|
605
605
|
style?: Record<string, any> | undefined;
|
|
606
606
|
progressClassName?: string | undefined;
|
|
607
607
|
progressStyle?: Record<string, any> | undefined;
|
|
608
|
-
|
|
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;
|