indicator-ui 0.0.121 → 0.0.122
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.
|
@@ -11,10 +11,22 @@ type SaveFormatDateOptionsType = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Возвращать ли null при неудачном форматирование.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* default: false
|
|
15
15
|
* */
|
|
16
16
|
errorNull?: boolean;
|
|
17
|
-
locale?: Pick<Locale, "options" | "localize" | "formatLong">;
|
|
17
|
+
locale?: Pick<Locale, "options" | "localize" | "formatLong"> & Pick<Locale, "code">;
|
|
18
|
+
/**
|
|
19
|
+
* Таймзона, в которой находится стартовая дата.
|
|
20
|
+
*
|
|
21
|
+
* Пример: '+03:00'
|
|
22
|
+
* */
|
|
23
|
+
fromTimeZone?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Таймзона, в которой хотите видеть дату.
|
|
26
|
+
*
|
|
27
|
+
* Пример: '+03:00'
|
|
28
|
+
* */
|
|
29
|
+
toTimeZone?: string;
|
|
18
30
|
};
|
|
19
|
-
export declare function saveFormatDate(date: string | Date, { from, to, errorNull, locale }: SaveFormatDateOptionsType): string | Date;
|
|
31
|
+
export declare function saveFormatDate(date: string | Date, { from, to, errorNull, locale, toTimeZone, fromTimeZone }: SaveFormatDateOptionsType): string | Date;
|
|
20
32
|
export {};
|
|
@@ -10,7 +10,13 @@ type SaveParseDateOptionsType = {
|
|
|
10
10
|
* ```default: false```
|
|
11
11
|
* */
|
|
12
12
|
errorNull?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Таймзона, в которой находится стартовая дата.
|
|
15
|
+
*
|
|
16
|
+
* Пример: '+03:00'
|
|
17
|
+
* */
|
|
18
|
+
fromTimeZone?: string;
|
|
13
19
|
locale?: Pick<Locale, "options" | "formatLong" | "match">;
|
|
14
20
|
};
|
|
15
|
-
export declare function saveParseDate(date: string, { from, locale }: SaveParseDateOptionsType): Date | null;
|
|
21
|
+
export declare function saveParseDate(date: string, { from, locale, fromTimeZone }: SaveParseDateOptionsType): Date | null;
|
|
16
22
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "indicator-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.122",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/types/src/index.d.ts",
|
|
6
6
|
"style": "dist/index.css",
|
|
@@ -61,5 +61,8 @@
|
|
|
61
61
|
"files": [
|
|
62
62
|
"dist",
|
|
63
63
|
"docs"
|
|
64
|
-
]
|
|
64
|
+
],
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"date-fns-tz": "^3.2.0"
|
|
67
|
+
}
|
|
65
68
|
}
|