@unsource/ui 2.0.5 → 2.0.6
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,4 +1,4 @@
|
|
|
1
|
-
import Moment from 'jalali-moment';
|
|
1
|
+
import * as Moment from 'jalali-moment';
|
|
2
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';
|
|
@@ -20,23 +20,23 @@ export declare const copyData: (string: string) => Promise<void>;
|
|
|
20
20
|
export declare const mapper: (data: Record<string, any>, map: Record<string, any>, keys?: string[]) => Record<string, any>;
|
|
21
21
|
export declare const deg2rad: (deg: number) => number;
|
|
22
22
|
export declare const getDistanceFromLatLonInKm: (lat1: number, lon1: number, lat2: number, lon2: number) => number;
|
|
23
|
-
export declare const isoToNormal: (time: string) =>
|
|
24
|
-
export declare const isoToMonth: (time: string) =>
|
|
25
|
-
export declare const isoToDateTime: (time: string) =>
|
|
26
|
-
export declare const isoToHumanDateTime: (time: string) =>
|
|
27
|
-
export declare const isoToTime: (time: string) =>
|
|
28
|
-
export declare const isoToDate: (time: string) =>
|
|
29
|
-
export declare const isoToStandard: (time: string) =>
|
|
23
|
+
export declare const isoToNormal: (time: string) => any;
|
|
24
|
+
export declare const isoToMonth: (time: string) => any;
|
|
25
|
+
export declare const isoToDateTime: (time: string) => any;
|
|
26
|
+
export declare const isoToHumanDateTime: (time: string) => any;
|
|
27
|
+
export declare const isoToTime: (time: string) => any;
|
|
28
|
+
export declare const isoToDate: (time: string) => any;
|
|
29
|
+
export declare const isoToStandard: (time: string) => any;
|
|
30
30
|
export declare const dataToRange: (data: any[] | undefined) => [string, string];
|
|
31
31
|
export declare const subIsoDate: (du: string) => string;
|
|
32
|
-
export declare const isExpire: (time: any) =>
|
|
32
|
+
export declare const isExpire: (time: any) => any;
|
|
33
33
|
export declare const remainToExpire: (timestamp: any, time: string) => string[];
|
|
34
34
|
export declare const timeToDurationShort: (timeString?: string) => string;
|
|
35
35
|
export declare const timeToMinutes: (timeString?: string) => number;
|
|
36
36
|
export declare const minutesToTime: (m?: number) => string;
|
|
37
37
|
export declare const useSocketIo: () => import("socket.io-client").Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
|
|
38
38
|
export declare const watchSocket: (socket: any, joinObject: SocketJoinObject, dataHandler: any, loading?: import("vue").Ref<boolean, boolean>, initHandler?: () => Promise<void>) => void;
|
|
39
|
-
export declare const lastAct: (time: string) =>
|
|
39
|
+
export declare const lastAct: (time: string) => any;
|
|
40
40
|
export declare const setMeta: (data: MetaData) => void;
|
|
41
41
|
export declare const encrypt: (text: any, passphrase: any) => any;
|
|
42
42
|
export declare const decrypt: (ciphertext: any, passphrase: any) => any;
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
usePut,
|
|
18
18
|
useState
|
|
19
19
|
} from "#imports";
|
|
20
|
-
import Moment from "jalali-moment";
|
|
20
|
+
import * as Moment from "jalali-moment";
|
|
21
21
|
import Ajv from "ajv";
|
|
22
22
|
import { io } from "socket.io-client";
|
|
23
23
|
import { digitsFaToEn, digitsArToEn } from "@persian-tools/persian-tools";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsource/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "nuxt ui kit for unsource env",
|
|
6
6
|
"repository": "https://github.com/alisa2142/unsource-ui",
|
|
@@ -43,7 +43,19 @@
|
|
|
43
43
|
"@types/big.js": "^6.2.2",
|
|
44
44
|
"@vueuse/components": "^13.9.0",
|
|
45
45
|
"@vueuse/core": "^13.9.0",
|
|
46
|
-
"@vueuse/nuxt": "^13.9.0"
|
|
46
|
+
"@vueuse/nuxt": "^13.9.0",
|
|
47
|
+
"ajv": "^8.17.1",
|
|
48
|
+
"big.js": "^7.0.1",
|
|
49
|
+
"handlebars": "^4.7.8",
|
|
50
|
+
"jalali-moment": "^3.3.11",
|
|
51
|
+
"numeral": "^2.0.6",
|
|
52
|
+
"nuxt-lodash": "^2.5.3",
|
|
53
|
+
"nuxt-swiper": "^1.2.2",
|
|
54
|
+
"persian-number": "^1.6.0",
|
|
55
|
+
"socket.io-client": "^4.8.1",
|
|
56
|
+
"swiper": "^11.2.10",
|
|
57
|
+
"unocss-preset-scrollbar": "^3.2.0",
|
|
58
|
+
"vue3-toastify": "^0.2.8"
|
|
47
59
|
},
|
|
48
60
|
"peerDependencies": {
|
|
49
61
|
"ajv": "^8.17.1",
|