nhb-toolbox 4.31.2 → 4.31.4
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/CHANGELOG.md +8 -0
- package/dist/cjs/hash/Cipher.js +5 -10
- package/dist/cjs/hash/utils.js +6 -5
- package/dist/cjs/object/basics.js +2 -2
- package/dist/cjs/stylog/console.log.js +1 -1
- package/dist/dts/colors/Color.d.ts +2 -2
- package/dist/dts/colors/css-colors.d.ts +157 -157
- package/dist/dts/date/constants.d.ts +71 -71
- package/dist/dts/date/helpers.d.ts +1 -1
- package/dist/dts/date/timezone.d.ts +2266 -2266
- package/dist/dts/http-status/constants.d.ts +372 -372
- package/dist/dts/number/constants.d.ts +186 -186
- package/dist/dts/object/countries.d.ts +1199 -1199
- package/dist/dts/types/index.d.ts +1 -1
- package/dist/esm/hash/Cipher.js +5 -10
- package/dist/esm/hash/utils.js +6 -5
- package/dist/esm/object/basics.js +2 -2
- package/dist/esm/stylog/console.log.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
All notable changes to the package will be documented here.
|
|
6
6
|
|
|
7
|
+
## [4.31.4] - 2026-07-14
|
|
8
|
+
|
|
9
|
+
- **Fixed** issue with `bytesToBase64` utility not encoding bytes to base64 properly.
|
|
10
|
+
|
|
11
|
+
## [4.31.3] - 2026-07-09
|
|
12
|
+
|
|
13
|
+
- **Fixed** issue with `Stylog` not printing styles properly using `log()` method.
|
|
14
|
+
|
|
7
15
|
## [4.31.2] - 2026-06-28
|
|
8
16
|
|
|
9
17
|
- **Updated** tsdoc for `relativeTimePlugin` `Chronos` instance methods.
|
package/dist/cjs/hash/Cipher.js
CHANGED
|
@@ -27,16 +27,13 @@ class Cipher {
|
|
|
27
27
|
}
|
|
28
28
|
encrypt(text) {
|
|
29
29
|
const plain = (0, utils_1.utf8ToBytes)(text);
|
|
30
|
-
const seed = (0, utils_1.utf8ToBytes)(
|
|
30
|
+
const seed = (0, utils_1.utf8ToBytes)(`${Date.now()}-${Math.random()}`);
|
|
31
31
|
const ivFull = (0, utils_1.sha256Bytes)(seed);
|
|
32
32
|
const iv = ivFull.subarray(0, 16);
|
|
33
33
|
const keystream = this.#genKeystream(plain, iv);
|
|
34
|
-
const ct =
|
|
35
|
-
for (let i = 0; i < plain.length; i++)
|
|
36
|
-
ct[i] = plain[i] ^ keystream[i];
|
|
34
|
+
const ct = plain.map((byte, i) => byte ^ keystream[i]);
|
|
37
35
|
const tag = (0, utils_1.hmacSha256)(this.#macKey, (0, utils_1.concatBytes)(iv, ct));
|
|
38
|
-
|
|
39
|
-
return (0, utils_1.bytesToBase64)(blob);
|
|
36
|
+
return (0, utils_1.bytesToBase64)((0, utils_1.concatBytes)(iv, ct, tag));
|
|
40
37
|
}
|
|
41
38
|
isValid(token) {
|
|
42
39
|
if (!(0, specials_1.isBase64)(token))
|
|
@@ -61,12 +58,10 @@ class Cipher {
|
|
|
61
58
|
const ct = blob.subarray(16, blob.length - 32);
|
|
62
59
|
const expectedTag = (0, utils_1.hmacSha256)(this.#macKey, (0, utils_1.concatBytes)(iv, ct));
|
|
63
60
|
if (!(0, helpers_1._constantTimeEquals)(expectedTag, tag)) {
|
|
64
|
-
throw new Error('Key in the token is tampered or invalid!
|
|
61
|
+
throw new Error('Key in the token is tampered or invalid!');
|
|
65
62
|
}
|
|
66
63
|
const keystream = this.#genKeystream(ct, iv);
|
|
67
|
-
const pt =
|
|
68
|
-
for (let i = 0; i < ct.length; i++)
|
|
69
|
-
pt[i] = ct[i] ^ keystream[i];
|
|
64
|
+
const pt = ct.map((byte, i) => byte ^ keystream[i]);
|
|
70
65
|
return (0, utils_1.bytesToUtf8)(pt);
|
|
71
66
|
}
|
|
72
67
|
}
|
package/dist/cjs/hash/utils.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.uint8To32ArrayBE = uint8To32ArrayBE;
|
|
|
12
12
|
exports.intTo4BytesBE = intTo4BytesBE;
|
|
13
13
|
exports.bytesToHex = bytesToHex;
|
|
14
14
|
exports.hexToBytes = hexToBytes;
|
|
15
|
+
const primitives_1 = require("../guards/primitives");
|
|
15
16
|
const specials_1 = require("../guards/specials");
|
|
16
17
|
const helpers_1 = require("./helpers");
|
|
17
18
|
function randomHex(length, uppercase = false) {
|
|
@@ -100,14 +101,14 @@ function bytesToBase64(bytes) {
|
|
|
100
101
|
const o2 = bytes[i++];
|
|
101
102
|
const o3 = bytes[i++];
|
|
102
103
|
const h1 = o1 >> 2;
|
|
103
|
-
const h2 = ((o1 & 3) << 4) | (o2 >> 4);
|
|
104
|
-
const h3 = ((o2 & 15) << 2) | (o3 >> 6);
|
|
105
|
-
const h4 = o3 & 63;
|
|
104
|
+
const h2 = ((o1 & 3) << 4) | (!(0, primitives_1.isUndefined)(o2) ? o2 >> 4 : 0);
|
|
105
|
+
const h3 = !(0, primitives_1.isUndefined)(o2) ? ((o2 & 15) << 2) | (!(0, primitives_1.isUndefined)(o3) ? o3 >> 6 : 0) : 0;
|
|
106
|
+
const h4 = !(0, primitives_1.isUndefined)(o3) ? o3 & 63 : 0;
|
|
106
107
|
out +=
|
|
107
108
|
_b64chars[h1] +
|
|
108
109
|
_b64chars[h2] +
|
|
109
|
-
_b64chars[
|
|
110
|
-
_b64chars[
|
|
110
|
+
_b64chars[(0, primitives_1.isUndefined)(o2) ? 64 : h3] +
|
|
111
|
+
_b64chars[(0, primitives_1.isUndefined)(o3) ? 64 : h4];
|
|
111
112
|
}
|
|
112
113
|
return out;
|
|
113
114
|
}
|
|
@@ -22,9 +22,9 @@ function countObjectFields(obj) {
|
|
|
22
22
|
return Object.keys(obj)?.length;
|
|
23
23
|
return 0;
|
|
24
24
|
}
|
|
25
|
-
function extractObjectKeys(obj,
|
|
25
|
+
function extractObjectKeys(obj, _tuple) {
|
|
26
26
|
const keys = (0, non_primitives_1.isNotEmptyObject)(obj) ? Object.keys(obj) : [];
|
|
27
|
-
return
|
|
27
|
+
return keys;
|
|
28
28
|
}
|
|
29
29
|
function extractObjectKeysDeep(obj) {
|
|
30
30
|
function _getDeepKeys(candidate) {
|
|
@@ -162,12 +162,12 @@ export declare class Color {
|
|
|
162
162
|
*/
|
|
163
163
|
constructor(color?: ColorType | CSSColor);
|
|
164
164
|
/** Iterates over the color representations (`Hex`, `RGB`, `HSL`). */
|
|
165
|
-
[Symbol.iterator](): Generator<
|
|
165
|
+
[Symbol.iterator](): Generator<HSL | HSLA | RGB | RGBA | Hex6 | Hex8, void, unknown>;
|
|
166
166
|
/**
|
|
167
167
|
* Allows the color to be used in string and number contexts.
|
|
168
168
|
* @param hint The hint to determine the conversion type.
|
|
169
169
|
*/
|
|
170
|
-
[Symbol.toPrimitive](hint: string): number |
|
|
170
|
+
[Symbol.toPrimitive](hint: string): number | this | Hex8;
|
|
171
171
|
/**
|
|
172
172
|
* @instance Convert the color to string.
|
|
173
173
|
* @returns The `Hex8` representation of the color.
|
|
@@ -1,160 +1,160 @@
|
|
|
1
1
|
/** List of CSS Colors as Object with color name as key and hex code as value */
|
|
2
2
|
export declare const CSS_COLORS: Readonly<{
|
|
3
|
-
readonly black:
|
|
4
|
-
readonly silver:
|
|
5
|
-
readonly gray:
|
|
6
|
-
readonly white:
|
|
7
|
-
readonly maroon:
|
|
8
|
-
readonly red:
|
|
9
|
-
readonly purple:
|
|
10
|
-
readonly fuchsia:
|
|
11
|
-
readonly green:
|
|
12
|
-
readonly lime:
|
|
13
|
-
readonly olive:
|
|
14
|
-
readonly yellow:
|
|
15
|
-
readonly navy:
|
|
16
|
-
readonly blue:
|
|
17
|
-
readonly teal:
|
|
18
|
-
readonly aqua:
|
|
19
|
-
readonly aliceblue:
|
|
20
|
-
readonly antiquewhite:
|
|
21
|
-
readonly aquamarine:
|
|
22
|
-
readonly azure:
|
|
23
|
-
readonly beige:
|
|
24
|
-
readonly bisque:
|
|
25
|
-
readonly blanchedalmond:
|
|
26
|
-
readonly blueviolet:
|
|
27
|
-
readonly brown:
|
|
28
|
-
readonly burlywood:
|
|
29
|
-
readonly cadetblue:
|
|
30
|
-
readonly chartreuse:
|
|
31
|
-
readonly chocolate:
|
|
32
|
-
readonly coral:
|
|
33
|
-
readonly cornflowerblue:
|
|
34
|
-
readonly cornsilk:
|
|
35
|
-
readonly crimson:
|
|
36
|
-
readonly cyan:
|
|
37
|
-
readonly darkblue:
|
|
38
|
-
readonly darkcyan:
|
|
39
|
-
readonly darkgoldenrod:
|
|
40
|
-
readonly darkgray:
|
|
41
|
-
readonly darkgreen:
|
|
42
|
-
readonly darkgrey:
|
|
43
|
-
readonly darkkhaki:
|
|
44
|
-
readonly darkmagenta:
|
|
45
|
-
readonly darkolivegreen:
|
|
46
|
-
readonly darkorange:
|
|
47
|
-
readonly darkorchid:
|
|
48
|
-
readonly darkred:
|
|
49
|
-
readonly darksalmon:
|
|
50
|
-
readonly darkseagreen:
|
|
51
|
-
readonly darkslateblue:
|
|
52
|
-
readonly darkslategray:
|
|
53
|
-
readonly darkslategrey:
|
|
54
|
-
readonly darkturquoise:
|
|
55
|
-
readonly darkviolet:
|
|
56
|
-
readonly deeppink:
|
|
57
|
-
readonly deepskyblue:
|
|
58
|
-
readonly dimgray:
|
|
59
|
-
readonly dimgrey:
|
|
60
|
-
readonly dodgerblue:
|
|
61
|
-
readonly firebrick:
|
|
62
|
-
readonly floralwhite:
|
|
63
|
-
readonly forestgreen:
|
|
64
|
-
readonly gainsboro:
|
|
65
|
-
readonly ghostwhite:
|
|
66
|
-
readonly gold:
|
|
67
|
-
readonly goldenrod:
|
|
68
|
-
readonly greenyellow:
|
|
69
|
-
readonly grey:
|
|
70
|
-
readonly honeydew:
|
|
71
|
-
readonly hotpink:
|
|
72
|
-
readonly indianred:
|
|
73
|
-
readonly indigo:
|
|
74
|
-
readonly ivory:
|
|
75
|
-
readonly khaki:
|
|
76
|
-
readonly lavender:
|
|
77
|
-
readonly lavenderblush:
|
|
78
|
-
readonly lawngreen:
|
|
79
|
-
readonly lemonchiffon:
|
|
80
|
-
readonly lightblue:
|
|
81
|
-
readonly lightcoral:
|
|
82
|
-
readonly lightcyan:
|
|
83
|
-
readonly lightgoldenrodyellow:
|
|
84
|
-
readonly lightgray:
|
|
85
|
-
readonly lightgreen:
|
|
86
|
-
readonly lightgrey:
|
|
87
|
-
readonly lightpink:
|
|
88
|
-
readonly lightsalmon:
|
|
89
|
-
readonly lightseagreen:
|
|
90
|
-
readonly lightskyblue:
|
|
91
|
-
readonly lightslategray:
|
|
92
|
-
readonly lightslategrey:
|
|
93
|
-
readonly lightsteelblue:
|
|
94
|
-
readonly lightyellow:
|
|
95
|
-
readonly limegreen:
|
|
96
|
-
readonly linen:
|
|
97
|
-
readonly magenta:
|
|
98
|
-
readonly mediumaquamarine:
|
|
99
|
-
readonly mediumblue:
|
|
100
|
-
readonly mediumorchid:
|
|
101
|
-
readonly mediumpurple:
|
|
102
|
-
readonly mediumseagreen:
|
|
103
|
-
readonly mediumslateblue:
|
|
104
|
-
readonly mediumspringgreen:
|
|
105
|
-
readonly mediumturquoise:
|
|
106
|
-
readonly mediumvioletred:
|
|
107
|
-
readonly midnightblue:
|
|
108
|
-
readonly mintcream:
|
|
109
|
-
readonly mistyrose:
|
|
110
|
-
readonly moccasin:
|
|
111
|
-
readonly navajowhite:
|
|
112
|
-
readonly oldlace:
|
|
113
|
-
readonly olivedrab:
|
|
114
|
-
readonly orange:
|
|
115
|
-
readonly orangered:
|
|
116
|
-
readonly orchid:
|
|
117
|
-
readonly palegoldenrod:
|
|
118
|
-
readonly palegreen:
|
|
119
|
-
readonly paleturquoise:
|
|
120
|
-
readonly palevioletred:
|
|
121
|
-
readonly papayawhip:
|
|
122
|
-
readonly peachpuff:
|
|
123
|
-
readonly peru:
|
|
124
|
-
readonly pink:
|
|
125
|
-
readonly plum:
|
|
126
|
-
readonly powderblue:
|
|
127
|
-
readonly rebeccapurple:
|
|
128
|
-
readonly rosybrown:
|
|
129
|
-
readonly royalblue:
|
|
130
|
-
readonly saddlebrown:
|
|
131
|
-
readonly salmon:
|
|
132
|
-
readonly sandybrown:
|
|
133
|
-
readonly seagreen:
|
|
134
|
-
readonly seashell:
|
|
135
|
-
readonly sienna:
|
|
136
|
-
readonly skyblue:
|
|
137
|
-
readonly slateblue:
|
|
138
|
-
readonly slategray:
|
|
139
|
-
readonly slategrey:
|
|
140
|
-
readonly snow:
|
|
141
|
-
readonly springgreen:
|
|
142
|
-
readonly steelblue:
|
|
143
|
-
readonly tan:
|
|
144
|
-
readonly thistle:
|
|
145
|
-
readonly tomato:
|
|
146
|
-
readonly transparent:
|
|
147
|
-
readonly turquoise:
|
|
148
|
-
readonly violet:
|
|
149
|
-
readonly wheat:
|
|
150
|
-
readonly whitesmoke:
|
|
151
|
-
readonly yellowgreen:
|
|
152
|
-
readonly grape:
|
|
153
|
-
readonly dark:
|
|
154
|
-
readonly volcano:
|
|
155
|
-
readonly geekblue:
|
|
156
|
-
readonly success:
|
|
157
|
-
readonly info:
|
|
158
|
-
readonly warning:
|
|
159
|
-
readonly error:
|
|
3
|
+
readonly black: '#000000';
|
|
4
|
+
readonly silver: '#C0C0C0';
|
|
5
|
+
readonly gray: '#808080';
|
|
6
|
+
readonly white: '#FFFFFF';
|
|
7
|
+
readonly maroon: '#800000';
|
|
8
|
+
readonly red: '#FF0000';
|
|
9
|
+
readonly purple: '#800080';
|
|
10
|
+
readonly fuchsia: '#FF00FF';
|
|
11
|
+
readonly green: '#008000';
|
|
12
|
+
readonly lime: '#00FF00';
|
|
13
|
+
readonly olive: '#808000';
|
|
14
|
+
readonly yellow: '#FFFF00';
|
|
15
|
+
readonly navy: '#000080';
|
|
16
|
+
readonly blue: '#0000FF';
|
|
17
|
+
readonly teal: '#008080';
|
|
18
|
+
readonly aqua: '#00FFFF';
|
|
19
|
+
readonly aliceblue: '#F0F8FF';
|
|
20
|
+
readonly antiquewhite: '#FAEBD7';
|
|
21
|
+
readonly aquamarine: '#7FFFD4';
|
|
22
|
+
readonly azure: '#F0FFFF';
|
|
23
|
+
readonly beige: '#F5F5DC';
|
|
24
|
+
readonly bisque: '#FFE4C4';
|
|
25
|
+
readonly blanchedalmond: '#FFEBCD';
|
|
26
|
+
readonly blueviolet: '#8A2BE2';
|
|
27
|
+
readonly brown: '#A52A2A';
|
|
28
|
+
readonly burlywood: '#DEB887';
|
|
29
|
+
readonly cadetblue: '#5F9EA0';
|
|
30
|
+
readonly chartreuse: '#7FFF00';
|
|
31
|
+
readonly chocolate: '#D2691E';
|
|
32
|
+
readonly coral: '#FF7F50';
|
|
33
|
+
readonly cornflowerblue: '#6495ED';
|
|
34
|
+
readonly cornsilk: '#FFF8DC';
|
|
35
|
+
readonly crimson: '#DC143C';
|
|
36
|
+
readonly cyan: '#00FFFF';
|
|
37
|
+
readonly darkblue: '#00008B';
|
|
38
|
+
readonly darkcyan: '#008B8B';
|
|
39
|
+
readonly darkgoldenrod: '#B8860B';
|
|
40
|
+
readonly darkgray: '#A9A9A9';
|
|
41
|
+
readonly darkgreen: '#006400';
|
|
42
|
+
readonly darkgrey: '#A9A9A9';
|
|
43
|
+
readonly darkkhaki: '#BDB76B';
|
|
44
|
+
readonly darkmagenta: '#8B008B';
|
|
45
|
+
readonly darkolivegreen: '#556B2F';
|
|
46
|
+
readonly darkorange: '#FF8C00';
|
|
47
|
+
readonly darkorchid: '#9932CC';
|
|
48
|
+
readonly darkred: '#8B0000';
|
|
49
|
+
readonly darksalmon: '#E9967A';
|
|
50
|
+
readonly darkseagreen: '#8FBC8F';
|
|
51
|
+
readonly darkslateblue: '#483D8B';
|
|
52
|
+
readonly darkslategray: '#2F4F4F';
|
|
53
|
+
readonly darkslategrey: '#2F4F4F';
|
|
54
|
+
readonly darkturquoise: '#00CED1';
|
|
55
|
+
readonly darkviolet: '#9400D3';
|
|
56
|
+
readonly deeppink: '#FF1493';
|
|
57
|
+
readonly deepskyblue: '#00BFFF';
|
|
58
|
+
readonly dimgray: '#696969';
|
|
59
|
+
readonly dimgrey: '#696969';
|
|
60
|
+
readonly dodgerblue: '#1E90FF';
|
|
61
|
+
readonly firebrick: '#B22222';
|
|
62
|
+
readonly floralwhite: '#FFFAF0';
|
|
63
|
+
readonly forestgreen: '#228B22';
|
|
64
|
+
readonly gainsboro: '#DCDCDC';
|
|
65
|
+
readonly ghostwhite: '#F8F8FF';
|
|
66
|
+
readonly gold: '#FFD700';
|
|
67
|
+
readonly goldenrod: '#DAA520';
|
|
68
|
+
readonly greenyellow: '#ADFF2F';
|
|
69
|
+
readonly grey: '#808080';
|
|
70
|
+
readonly honeydew: '#F0FFF0';
|
|
71
|
+
readonly hotpink: '#FF69B4';
|
|
72
|
+
readonly indianred: '#CD5C5C';
|
|
73
|
+
readonly indigo: '#4B0082';
|
|
74
|
+
readonly ivory: '#FFFFF0';
|
|
75
|
+
readonly khaki: '#F0E68C';
|
|
76
|
+
readonly lavender: '#E6E6FA';
|
|
77
|
+
readonly lavenderblush: '#FFF0F5';
|
|
78
|
+
readonly lawngreen: '#7CFC00';
|
|
79
|
+
readonly lemonchiffon: '#FFFACD';
|
|
80
|
+
readonly lightblue: '#ADD8E6';
|
|
81
|
+
readonly lightcoral: '#F08080';
|
|
82
|
+
readonly lightcyan: '#E0FFFF';
|
|
83
|
+
readonly lightgoldenrodyellow: '#FAFAD2';
|
|
84
|
+
readonly lightgray: '#D3D3D3';
|
|
85
|
+
readonly lightgreen: '#90EE90';
|
|
86
|
+
readonly lightgrey: '#D3D3D3';
|
|
87
|
+
readonly lightpink: '#FFB6C1';
|
|
88
|
+
readonly lightsalmon: '#FFA07A';
|
|
89
|
+
readonly lightseagreen: '#20B2AA';
|
|
90
|
+
readonly lightskyblue: '#87CEFA';
|
|
91
|
+
readonly lightslategray: '#778899';
|
|
92
|
+
readonly lightslategrey: '#778899';
|
|
93
|
+
readonly lightsteelblue: '#B0C4DE';
|
|
94
|
+
readonly lightyellow: '#FFFFE0';
|
|
95
|
+
readonly limegreen: '#32CD32';
|
|
96
|
+
readonly linen: '#FAF0E6';
|
|
97
|
+
readonly magenta: '#FF00FF';
|
|
98
|
+
readonly mediumaquamarine: '#66CDAA';
|
|
99
|
+
readonly mediumblue: '#0000CD';
|
|
100
|
+
readonly mediumorchid: '#BA55D3';
|
|
101
|
+
readonly mediumpurple: '#9370DB';
|
|
102
|
+
readonly mediumseagreen: '#3CB371';
|
|
103
|
+
readonly mediumslateblue: '#7B68EE';
|
|
104
|
+
readonly mediumspringgreen: '#00FA9A';
|
|
105
|
+
readonly mediumturquoise: '#48D1CC';
|
|
106
|
+
readonly mediumvioletred: '#C71585';
|
|
107
|
+
readonly midnightblue: '#191970';
|
|
108
|
+
readonly mintcream: '#F5FFFA';
|
|
109
|
+
readonly mistyrose: '#FFE4E1';
|
|
110
|
+
readonly moccasin: '#FFE4B5';
|
|
111
|
+
readonly navajowhite: '#FFDEAD';
|
|
112
|
+
readonly oldlace: '#FDF5E6';
|
|
113
|
+
readonly olivedrab: '#6B8E23';
|
|
114
|
+
readonly orange: '#FFA500';
|
|
115
|
+
readonly orangered: '#FF4500';
|
|
116
|
+
readonly orchid: '#DA70D6';
|
|
117
|
+
readonly palegoldenrod: '#EEE8AA';
|
|
118
|
+
readonly palegreen: '#98FB98';
|
|
119
|
+
readonly paleturquoise: '#AFEEEE';
|
|
120
|
+
readonly palevioletred: '#DB7093';
|
|
121
|
+
readonly papayawhip: '#FFEFD5';
|
|
122
|
+
readonly peachpuff: '#FFDAB9';
|
|
123
|
+
readonly peru: '#CD853F';
|
|
124
|
+
readonly pink: '#FFC0CB';
|
|
125
|
+
readonly plum: '#DDA0DD';
|
|
126
|
+
readonly powderblue: '#B0E0E6';
|
|
127
|
+
readonly rebeccapurple: '#663399';
|
|
128
|
+
readonly rosybrown: '#BC8F8F';
|
|
129
|
+
readonly royalblue: '#4169E1';
|
|
130
|
+
readonly saddlebrown: '#8B4513';
|
|
131
|
+
readonly salmon: '#FA8072';
|
|
132
|
+
readonly sandybrown: '#F4A460';
|
|
133
|
+
readonly seagreen: '#2E8B57';
|
|
134
|
+
readonly seashell: '#FFF5EE';
|
|
135
|
+
readonly sienna: '#A0522D';
|
|
136
|
+
readonly skyblue: '#87CEEB';
|
|
137
|
+
readonly slateblue: '#6A5ACD';
|
|
138
|
+
readonly slategray: '#708090';
|
|
139
|
+
readonly slategrey: '#708090';
|
|
140
|
+
readonly snow: '#FFFAFA';
|
|
141
|
+
readonly springgreen: '#00FF7F';
|
|
142
|
+
readonly steelblue: '#4682B4';
|
|
143
|
+
readonly tan: '#D2B48C';
|
|
144
|
+
readonly thistle: '#D8BFD8';
|
|
145
|
+
readonly tomato: '#FF6347';
|
|
146
|
+
readonly transparent: '#00000000';
|
|
147
|
+
readonly turquoise: '#40E0D0';
|
|
148
|
+
readonly violet: '#EE82EE';
|
|
149
|
+
readonly wheat: '#F5DEB3';
|
|
150
|
+
readonly whitesmoke: '#F5F5F5';
|
|
151
|
+
readonly yellowgreen: '#9ACD32';
|
|
152
|
+
readonly grape: '#CC5DE8';
|
|
153
|
+
readonly dark: '#3B3B3B';
|
|
154
|
+
readonly volcano: '#FA541C';
|
|
155
|
+
readonly geekblue: '#2F54EB';
|
|
156
|
+
readonly success: '#4CAF50';
|
|
157
|
+
readonly info: '#2196F3';
|
|
158
|
+
readonly warning: '#FF9800';
|
|
159
|
+
readonly error: '#F44336';
|
|
160
160
|
}>;
|
|
@@ -17,7 +17,7 @@ export declare const SECOND_FORMATS: readonly ["ss", "s"];
|
|
|
17
17
|
export declare const MILLISECOND_FORMATS: readonly ["ms", "mss"];
|
|
18
18
|
export declare const TIME_FORMATS: readonly ["a", "A"];
|
|
19
19
|
export declare const EXTRA_FORMATS: readonly ["Z", "ZZ", "S", "SS"];
|
|
20
|
-
export declare const SORTED_TIME_FORMATS: readonly ("
|
|
20
|
+
export declare const SORTED_TIME_FORMATS: readonly ("A" | "D" | "DD" | "Do" | "H" | "HH" | "M" | "MM" | "S" | "SS" | "YY" | "YYYY" | "Z" | "ZZ" | "a" | "d" | "dd" | "ddd" | "h" | "hh" | "m" | "mm" | "mmm" | "mmmm" | "ms" | "mss" | "s" | "ss" | "yy" | "yyyy")[];
|
|
21
21
|
/** Ranges for day parts. */
|
|
22
22
|
export declare const DATE_PART_RANGES: Readonly<Record<DayPart, [ClockHour, ClockHour]>>;
|
|
23
23
|
/** Western Zodiac Signs */
|
|
@@ -43,7 +43,7 @@ export declare const TIME_UNIT_VARIANTS: Readonly<{
|
|
|
43
43
|
readonly millisecond: readonly ["ms", "msec", "msecs", "millisecond", "milliseconds"];
|
|
44
44
|
}>;
|
|
45
45
|
/** Map to different time units to milliseconds */
|
|
46
|
-
export declare const MS_MAP: Readonly<Record<"
|
|
46
|
+
export declare const MS_MAP: Readonly<Record<"d" | "day" | "days" | "h" | "hour" | "hours" | "hr" | "hrs" | "m" | "millisecond" | "milliseconds" | "min" | "mins" | "minute" | "minutes" | "mo" | "month" | "months" | "ms" | "msec" | "msecs" | "s" | "sec" | "second" | "seconds" | "secs" | "w" | "week" | "weeks" | "y" | "year" | "years" | "yr" | "yrs", number>>;
|
|
47
47
|
/** List of locale calendars supported by {@link Intl} API */
|
|
48
48
|
export declare const LOCALE_CALENDARS: readonly ["buddhist", "chinese", "coptic", "dangi", "ethioaa", "ethiopic", "gregory", "hebrew", "indian", "islamic", "islamic-civil", "islamic-rgsa", "islamic-tbla", "islamic-umalqura", "iso8601", "japanese", "persian", "roc"];
|
|
49
49
|
/** List of locale numbering systems supported by {@link Intl} API */
|
|
@@ -63,101 +63,101 @@ export declare const BN_MONTH_TABLES: Readonly<{
|
|
|
63
63
|
}>;
|
|
64
64
|
/** List of Bangla season names in Bangla and English */
|
|
65
65
|
export declare const BN_SEASONS: readonly [{
|
|
66
|
-
readonly bn:
|
|
67
|
-
readonly en:
|
|
66
|
+
readonly bn: 'গ্রীষ্ম';
|
|
67
|
+
readonly en: 'Grisma (Summer)';
|
|
68
68
|
}, {
|
|
69
|
-
readonly bn:
|
|
70
|
-
readonly en:
|
|
69
|
+
readonly bn: 'বর্ষা';
|
|
70
|
+
readonly en: 'Barsa (Monsoon)';
|
|
71
71
|
}, {
|
|
72
|
-
readonly bn:
|
|
73
|
-
readonly en:
|
|
72
|
+
readonly bn: 'শরৎ';
|
|
73
|
+
readonly en: 'Sarat (Autumn)';
|
|
74
74
|
}, {
|
|
75
|
-
readonly bn:
|
|
76
|
-
readonly en:
|
|
75
|
+
readonly bn: 'হেমন্ত';
|
|
76
|
+
readonly en: 'Hemanta (Late-Autumn)';
|
|
77
77
|
}, {
|
|
78
|
-
readonly bn:
|
|
79
|
-
readonly en:
|
|
78
|
+
readonly bn: 'শীত';
|
|
79
|
+
readonly en: 'Shhit (Winter)';
|
|
80
80
|
}, {
|
|
81
|
-
readonly bn:
|
|
82
|
-
readonly en:
|
|
81
|
+
readonly bn: 'বসন্ত';
|
|
82
|
+
readonly en: 'Basanta (Spring)';
|
|
83
83
|
}];
|
|
84
84
|
/** List of Bangla day names in Bangla and English */
|
|
85
85
|
export declare const BN_DAYS: readonly [{
|
|
86
|
-
readonly bn:
|
|
87
|
-
readonly en:
|
|
88
|
-
readonly short:
|
|
86
|
+
readonly bn: 'রবিবার';
|
|
87
|
+
readonly en: 'Robibar (Sunday)';
|
|
88
|
+
readonly short: 'র';
|
|
89
89
|
}, {
|
|
90
|
-
readonly bn:
|
|
91
|
-
readonly en:
|
|
92
|
-
readonly short:
|
|
90
|
+
readonly bn: 'সোমবার';
|
|
91
|
+
readonly en: 'Shombar (Monday)';
|
|
92
|
+
readonly short: 'সো';
|
|
93
93
|
}, {
|
|
94
|
-
readonly bn:
|
|
95
|
-
readonly en:
|
|
96
|
-
readonly short:
|
|
94
|
+
readonly bn: 'মঙ্গলবার';
|
|
95
|
+
readonly en: 'Mongolbar (Tuesday)';
|
|
96
|
+
readonly short: 'ম';
|
|
97
97
|
}, {
|
|
98
|
-
readonly bn:
|
|
99
|
-
readonly en:
|
|
100
|
-
readonly short:
|
|
98
|
+
readonly bn: 'বুধবার';
|
|
99
|
+
readonly en: 'Budhbar (Wednesday)';
|
|
100
|
+
readonly short: 'বু';
|
|
101
101
|
}, {
|
|
102
|
-
readonly bn:
|
|
103
|
-
readonly en:
|
|
104
|
-
readonly short:
|
|
102
|
+
readonly bn: 'বৃহস্পতিবার';
|
|
103
|
+
readonly en: 'Brihoshpotibar (Thursday)';
|
|
104
|
+
readonly short: 'বৃ';
|
|
105
105
|
}, {
|
|
106
|
-
readonly bn:
|
|
107
|
-
readonly en:
|
|
108
|
-
readonly short:
|
|
106
|
+
readonly bn: 'শুক্রবার';
|
|
107
|
+
readonly en: 'Shukrobar (Friday)';
|
|
108
|
+
readonly short: 'শু';
|
|
109
109
|
}, {
|
|
110
|
-
readonly bn:
|
|
111
|
-
readonly en:
|
|
112
|
-
readonly short:
|
|
110
|
+
readonly bn: 'শনিবার';
|
|
111
|
+
readonly en: 'Shonibar (Saturday)';
|
|
112
|
+
readonly short: 'শ';
|
|
113
113
|
}];
|
|
114
114
|
/** List of Bangla month names in Bangla and English */
|
|
115
115
|
export declare const BN_MONTHS: readonly [{
|
|
116
|
-
readonly bn:
|
|
117
|
-
readonly en:
|
|
118
|
-
readonly short:
|
|
116
|
+
readonly bn: 'বৈশাখ';
|
|
117
|
+
readonly en: 'Boishakh';
|
|
118
|
+
readonly short: 'বৈ';
|
|
119
119
|
}, {
|
|
120
|
-
readonly bn:
|
|
121
|
-
readonly en:
|
|
122
|
-
readonly short:
|
|
120
|
+
readonly bn: 'জ্যৈষ্ঠ';
|
|
121
|
+
readonly en: 'Joishtho';
|
|
122
|
+
readonly short: 'জ্য';
|
|
123
123
|
}, {
|
|
124
|
-
readonly bn:
|
|
125
|
-
readonly en:
|
|
126
|
-
readonly short:
|
|
124
|
+
readonly bn: 'আষাঢ়';
|
|
125
|
+
readonly en: 'Asharh';
|
|
126
|
+
readonly short: 'আ';
|
|
127
127
|
}, {
|
|
128
|
-
readonly bn:
|
|
129
|
-
readonly en:
|
|
130
|
-
readonly short:
|
|
128
|
+
readonly bn: 'শ্রাবণ';
|
|
129
|
+
readonly en: 'Srabon';
|
|
130
|
+
readonly short: 'শ্রা';
|
|
131
131
|
}, {
|
|
132
|
-
readonly bn:
|
|
133
|
-
readonly en:
|
|
134
|
-
readonly short:
|
|
132
|
+
readonly bn: 'ভাদ্র';
|
|
133
|
+
readonly en: 'Bhadro';
|
|
134
|
+
readonly short: 'ভা';
|
|
135
135
|
}, {
|
|
136
|
-
readonly bn:
|
|
137
|
-
readonly en:
|
|
138
|
-
readonly short:
|
|
136
|
+
readonly bn: 'আশ্বিন';
|
|
137
|
+
readonly en: 'Ashwin';
|
|
138
|
+
readonly short: 'আ';
|
|
139
139
|
}, {
|
|
140
|
-
readonly bn:
|
|
141
|
-
readonly en:
|
|
142
|
-
readonly short:
|
|
140
|
+
readonly bn: 'কার্তিক';
|
|
141
|
+
readonly en: 'Kartik';
|
|
142
|
+
readonly short: 'কা';
|
|
143
143
|
}, {
|
|
144
|
-
readonly bn:
|
|
145
|
-
readonly en:
|
|
146
|
-
readonly short:
|
|
144
|
+
readonly bn: 'অগ্রহায়ণ';
|
|
145
|
+
readonly en: 'Ogrohayon';
|
|
146
|
+
readonly short: 'অ';
|
|
147
147
|
}, {
|
|
148
|
-
readonly bn:
|
|
149
|
-
readonly en:
|
|
150
|
-
readonly short:
|
|
148
|
+
readonly bn: 'পৌষ';
|
|
149
|
+
readonly en: 'Poush';
|
|
150
|
+
readonly short: 'পৌ';
|
|
151
151
|
}, {
|
|
152
|
-
readonly bn:
|
|
153
|
-
readonly en:
|
|
154
|
-
readonly short:
|
|
152
|
+
readonly bn: 'মাঘ';
|
|
153
|
+
readonly en: 'Magh';
|
|
154
|
+
readonly short: 'মা';
|
|
155
155
|
}, {
|
|
156
|
-
readonly bn:
|
|
157
|
-
readonly en:
|
|
158
|
-
readonly short:
|
|
156
|
+
readonly bn: 'ফাল্গুন';
|
|
157
|
+
readonly en: 'Falgun';
|
|
158
|
+
readonly short: 'ফা';
|
|
159
159
|
}, {
|
|
160
|
-
readonly bn:
|
|
161
|
-
readonly en:
|
|
162
|
-
readonly short:
|
|
160
|
+
readonly bn: 'চৈত্র';
|
|
161
|
+
readonly en: 'Choitro';
|
|
162
|
+
readonly short: 'চৈ';
|
|
163
163
|
}];
|