@unsource/ui 2.0.4 → 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,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.0.4",
4
+ "version": "2.0.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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) => string;
24
- export declare const isoToMonth: (time: string) => string;
25
- export declare const isoToDateTime: (time: string) => string;
26
- export declare const isoToHumanDateTime: (time: string) => string;
27
- export declare const isoToTime: (time: string) => string;
28
- export declare const isoToDate: (time: string) => string;
29
- export declare const isoToStandard: (time: string) => 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) => boolean;
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) => 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.4",
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",
@@ -57,6 +57,20 @@
57
57
  "unocss-preset-scrollbar": "^3.2.0",
58
58
  "vue3-toastify": "^0.2.8"
59
59
  },
60
+ "peerDependencies": {
61
+ "ajv": "^8.17.1",
62
+ "big.js": "^7.0.1",
63
+ "handlebars": "^4.7.8",
64
+ "jalali-moment": "^3.3.11",
65
+ "numeral": "^2.0.6",
66
+ "nuxt-lodash": "^2.5.3",
67
+ "nuxt-swiper": "^1.2.2",
68
+ "persian-number": "^1.6.0",
69
+ "socket.io-client": "^4.8.1",
70
+ "swiper": "^11.2.10",
71
+ "unocss-preset-scrollbar": "^3.2.0",
72
+ "vue3-toastify": "^0.2.8"
73
+ },
60
74
  "devDependencies": {
61
75
  "@nuxt/devtools": "^2.6.5",
62
76
  "@nuxt/vite-builder": "~3.15.4",