@syncfusion/ej2-base 19.2.55 → 19.3.47
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/.eslintrc.json +1 -1
- package/CHANGELOG.md +1 -89
- package/README.md +1 -1
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +2650 -2401
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +3186 -2948
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/e2e/crypto.js +1 -1
- package/e2e/index.d.ts +0 -3
- package/e2e/m.protractor.config.js +1 -1
- package/e2e/protractor.config.js +1 -1
- package/helpers/e2e/base.js +3 -3
- package/package.json +7 -64
- package/src/ajax.d.ts +24 -10
- package/src/ajax.js +14 -6
- package/src/animation-model.d.ts +12 -4
- package/src/animation.d.ts +37 -12
- package/src/animation.js +48 -22
- package/src/base.d.ts +31 -11
- package/src/base.js +34 -16
- package/src/browser.d.ts +63 -25
- package/src/browser.js +60 -15
- package/src/child-property.d.ts +21 -10
- package/src/child-property.js +23 -13
- package/src/component-model.d.ts +4 -1
- package/src/component.d.ts +42 -5
- package/src/component.js +52 -35
- package/src/dom.d.ts +76 -25
- package/src/dom.js +128 -124
- package/src/draggable-model.d.ts +5 -0
- package/src/draggable.d.ts +4 -1
- package/src/draggable.js +8 -2
- package/src/droppable-model.d.ts +7 -4
- package/src/droppable.d.ts +7 -3
- package/src/droppable.js +1 -0
- package/src/event-handler.d.ts +10 -6
- package/src/event-handler.js +11 -7
- package/src/hijri-parser.d.ts +12 -0
- package/src/hijri-parser.js +111 -90
- package/src/internationalization.d.ts +54 -21
- package/src/internationalization.js +55 -18
- package/src/intl/date-formatter.d.ts +19 -8
- package/src/intl/date-formatter.js +36 -13
- package/src/intl/date-parser.d.ts +30 -23
- package/src/intl/date-parser.js +61 -42
- package/src/intl/intl-base.d.ts +123 -46
- package/src/intl/intl-base.js +451 -377
- package/src/intl/number-formatter.d.ts +45 -34
- package/src/intl/number-formatter.js +47 -35
- package/src/intl/number-parser.d.ts +11 -8
- package/src/intl/number-parser.js +14 -11
- package/src/intl/parser-base.d.ts +38 -13
- package/src/intl/parser-base.js +45 -16
- package/src/keyboard-model.d.ts +5 -2
- package/src/keyboard.d.ts +26 -8
- package/src/keyboard.js +24 -9
- package/src/l10n.d.ts +16 -7
- package/src/l10n.js +16 -7
- package/src/module-loader.d.ts +13 -8
- package/src/module-loader.js +13 -9
- package/src/notify-property-change.d.ts +19 -7
- package/src/notify-property-change.js +140 -24
- package/src/observer.d.ts +17 -5
- package/src/observer.js +19 -7
- package/src/sanitize-helper.d.ts +1 -0
- package/src/sanitize-helper.js +1 -1
- package/src/template-engine.d.ts +30 -4
- package/src/template-engine.js +37 -12
- package/src/template.d.ts +8 -3
- package/src/template.js +67 -19
- package/src/touch-model.d.ts +11 -4
- package/src/touch.d.ts +51 -9
- package/src/touch.js +45 -13
- package/src/util.d.ts +67 -37
- package/src/util.js +99 -49
- package/styles/_bootstrap-definition.scss +0 -1
- package/styles/_bootstrap5-dark-definition.scss +10 -0
- package/styles/_bootstrap5-definition.scss +9 -0
- package/styles/_fabric-dark-definition.scss +0 -1
- package/styles/_highcontrast-light-definition.scss +1 -0
- package/styles/_material-definition.scss +1 -0
- package/styles/bootstrap-dark.css +2613 -32
- package/styles/bootstrap.css +2613 -32
- package/styles/bootstrap4.css +2149 -32
- package/styles/bootstrap5-dark.css +2157 -0
- package/styles/bootstrap5-dark.scss +3 -0
- package/styles/bootstrap5.css +2157 -0
- package/styles/bootstrap5.scss +3 -0
- package/styles/common/_core.scss +28 -63
- package/styles/definition/_bootstrap-dark.scss +3 -3
- package/styles/definition/_bootstrap.scss +1 -1
- package/styles/definition/_bootstrap5-dark.scss +357 -0
- package/styles/definition/_bootstrap5.scss +356 -0
- package/styles/definition/_material-dark.scss +1 -1
- package/styles/definition/_tailwind-dark.scss +18 -1
- package/styles/definition/_tailwind.scss +17 -0
- package/styles/fabric-dark.css +2589 -32
- package/styles/fabric.css +2589 -32
- package/styles/highcontrast-light.css +2573 -32
- package/styles/highcontrast.css +2573 -32
- package/styles/material-dark.css +2549 -32
- package/styles/material.css +2549 -32
- package/styles/tailwind-dark.css +2221 -32
- package/styles/tailwind.css +2221 -32
- package/src/virtual-dom.d.ts +0 -32
- package/src/virtual-dom.js +0 -449
package/src/intl/date-parser.js
CHANGED
|
@@ -3,13 +3,8 @@ import { ParserBase as parser } from './parser-base';
|
|
|
3
3
|
import { isUndefined, throwError, getValue, isNullOrUndefined, isBlazor } from '../util';
|
|
4
4
|
import { datePartMatcher } from './date-formatter';
|
|
5
5
|
import { HijriParser } from '../hijri-parser';
|
|
6
|
-
var number = 'numbers';
|
|
7
|
-
var defNoSystem = 'defaultNumberingSystem';
|
|
8
|
-
var noSystem = 'numberingSystem';
|
|
9
6
|
var standalone = 'stand-alone';
|
|
10
|
-
var curWeekDay = 'curWeekDay';
|
|
11
7
|
var latnRegex = /^[0-9]*$/;
|
|
12
|
-
var abbreviateRegex = /\/MMMMM|MMMM|MMM|a|LLLL|LLL|EEEEE|EEEE|E|ccc/;
|
|
13
8
|
var timeSetter = {
|
|
14
9
|
minute: 'setMinutes',
|
|
15
10
|
hour: 'setHours',
|
|
@@ -22,6 +17,7 @@ var month = 'months';
|
|
|
22
17
|
/* tslint:disable no-any */
|
|
23
18
|
/**
|
|
24
19
|
* Date Parser.
|
|
20
|
+
*
|
|
25
21
|
* @private
|
|
26
22
|
*/
|
|
27
23
|
var DateParser = /** @class */ (function () {
|
|
@@ -29,16 +25,15 @@ var DateParser = /** @class */ (function () {
|
|
|
29
25
|
}
|
|
30
26
|
/**
|
|
31
27
|
* Returns the parser function for given skeleton.
|
|
32
|
-
*
|
|
33
|
-
* @param {
|
|
34
|
-
* @param {
|
|
35
|
-
*
|
|
28
|
+
*
|
|
29
|
+
* @param {string} culture - Specifies the culture name to be which formatting.
|
|
30
|
+
* @param {DateFormatOptions} option - Specific the format in which string date will be parsed.
|
|
31
|
+
* @param {Object} cldr - Specifies the global cldr data collection.
|
|
32
|
+
* @returns {Function} ?
|
|
36
33
|
*/
|
|
37
|
-
// tslint:disable-next-line:max-func-body-length
|
|
38
34
|
DateParser.dateParser = function (culture, option, cldr) {
|
|
39
35
|
var _this = this;
|
|
40
36
|
var dependable = base.getDependables(cldr, culture, option.calendar);
|
|
41
|
-
// tslint:disable-next-line
|
|
42
37
|
var numOptions = parser.getCurrentNumericOptions(dependable.parserObject, parser.getNumberingSystem(cldr), false, isBlazor());
|
|
43
38
|
var parseOptions = {};
|
|
44
39
|
if (isBlazor() && option.isServerRendered) {
|
|
@@ -60,7 +55,7 @@ var DateParser = /** @class */ (function () {
|
|
|
60
55
|
var zCorrectTemp = 0;
|
|
61
56
|
var isgmtTraversed = false;
|
|
62
57
|
var nRegx = numOptions.numericRegex;
|
|
63
|
-
//
|
|
58
|
+
// eslint-disable-next-line
|
|
64
59
|
var numMapper = isBlazor() ? dependable.parserObject.numbers :
|
|
65
60
|
parser.getNumberMapper(dependable.parserObject, parser.getNumberingSystem(cldr));
|
|
66
61
|
for (var i = 0; i < length_1; i++) {
|
|
@@ -69,7 +64,7 @@ var DateParser = /** @class */ (function () {
|
|
|
69
64
|
var char = (str[0] === 'K') ? 'h' : str[0];
|
|
70
65
|
var isNumber = void 0;
|
|
71
66
|
var canUpdate = void 0;
|
|
72
|
-
//
|
|
67
|
+
// eslint-disable-next-line
|
|
73
68
|
var charKey = datePartMatcher[char];
|
|
74
69
|
var optional = (len === 2) ? '' : '?';
|
|
75
70
|
if (isgmtTraversed) {
|
|
@@ -79,14 +74,17 @@ var DateParser = /** @class */ (function () {
|
|
|
79
74
|
switch (char) {
|
|
80
75
|
case 'E':
|
|
81
76
|
case 'c':
|
|
82
|
-
//
|
|
77
|
+
// eslint-disable-next-line
|
|
83
78
|
var weekData = void 0;
|
|
84
79
|
if (isBlazor()) {
|
|
80
|
+
// eslint-disable-next-line
|
|
85
81
|
weekData = getValue('days.' + base.monthIndex[len], dependable.dateObject);
|
|
86
82
|
}
|
|
87
83
|
else {
|
|
84
|
+
// eslint-disable-next-line
|
|
88
85
|
weekData = dependable.dateObject[base.days][standalone][base.monthIndex[len]];
|
|
89
86
|
}
|
|
87
|
+
// eslint-disable-next-line
|
|
90
88
|
var weekObject = parser.reverseObject(weekData);
|
|
91
89
|
// tslint:enable
|
|
92
90
|
regexString += '(' + Object.keys(weekObject).join('|') + ')';
|
|
@@ -103,16 +101,16 @@ var DateParser = /** @class */ (function () {
|
|
|
103
101
|
if ((char === 'M' || char === 'L') && len > 2) {
|
|
104
102
|
var monthData = void 0;
|
|
105
103
|
if (isBlazor()) {
|
|
106
|
-
|
|
104
|
+
// eslint-disable-next-line
|
|
107
105
|
monthData = getValue('months.' + base.monthIndex[len], dependable.dateObject);
|
|
108
106
|
}
|
|
109
107
|
else {
|
|
110
|
-
|
|
108
|
+
// eslint-disable-next-line
|
|
111
109
|
monthData = dependable.dateObject[month][standalone][base.monthIndex[len]];
|
|
112
110
|
}
|
|
113
|
-
//
|
|
111
|
+
// eslint-disable-next-line
|
|
114
112
|
parseOptions[charKey] = parser.reverseObject(monthData);
|
|
115
|
-
|
|
113
|
+
// eslint-disable-next-line
|
|
116
114
|
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + ')';
|
|
117
115
|
}
|
|
118
116
|
else if (char === 'f') {
|
|
@@ -131,6 +129,7 @@ var DateParser = /** @class */ (function () {
|
|
|
131
129
|
}
|
|
132
130
|
break;
|
|
133
131
|
case 'W':
|
|
132
|
+
// eslint-disable-next-line
|
|
134
133
|
var opt = len === 1 ? '?' : '';
|
|
135
134
|
regexString += '(' + nRegx + opt + nRegx + ')';
|
|
136
135
|
break;
|
|
@@ -145,25 +144,35 @@ var DateParser = /** @class */ (function () {
|
|
|
145
144
|
break;
|
|
146
145
|
case 'a':
|
|
147
146
|
canUpdate = true;
|
|
147
|
+
// eslint-disable-next-line
|
|
148
148
|
var periodValur = isBlazor() ?
|
|
149
149
|
getValue('dayPeriods', dependable.dateObject) :
|
|
150
150
|
getValue('dayPeriods.format.wide', dependable.dateObject);
|
|
151
|
+
// eslint-disable-next-line
|
|
151
152
|
parseOptions[charKey] = parser.reverseObject(periodValur);
|
|
153
|
+
// eslint-disable-next-line
|
|
152
154
|
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + ')';
|
|
153
155
|
break;
|
|
154
156
|
case 'G':
|
|
155
157
|
canUpdate = true;
|
|
158
|
+
// eslint-disable-next-line
|
|
156
159
|
var eText = (len <= 3) ? 'eraAbbr' : (len === 4) ? 'eraNames' : 'eraNarrow';
|
|
160
|
+
// eslint-disable-next-line
|
|
157
161
|
parseOptions[charKey] = parser.reverseObject(isBlazor() ?
|
|
158
162
|
getValue('eras', dependable.dateObject) : getValue('eras.' + eText, dependable.dateObject));
|
|
163
|
+
// eslint-disable-next-line
|
|
159
164
|
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + '?)';
|
|
160
165
|
break;
|
|
161
166
|
case 'z':
|
|
167
|
+
// eslint-disable-next-line
|
|
162
168
|
var tval = new Date().getTimezoneOffset();
|
|
163
169
|
canUpdate = (tval !== 0);
|
|
170
|
+
// eslint-disable-next-line
|
|
164
171
|
parseOptions[charKey] = getValue('dates.timeZoneNames', dependable.parserObject);
|
|
172
|
+
// eslint-disable-next-line
|
|
165
173
|
var tzone = parseOptions[charKey];
|
|
166
174
|
hourOnly = (len < 4);
|
|
175
|
+
// eslint-disable-next-line
|
|
167
176
|
var hpattern = hourOnly ? '+H;-H' : tzone.hourFormat;
|
|
168
177
|
hpattern = hpattern.replace(/:/g, numMapper.timeSeparator);
|
|
169
178
|
regexString += '(' + this.parseTimeZoneRegx(hpattern, tzone, nRegx) + ')?';
|
|
@@ -171,7 +180,8 @@ var DateParser = /** @class */ (function () {
|
|
|
171
180
|
zCorrectTemp = hourOnly ? 6 : 12;
|
|
172
181
|
break;
|
|
173
182
|
case '\'':
|
|
174
|
-
|
|
183
|
+
// eslint-disable-next-line
|
|
184
|
+
var iString = str.replace(/'/g, '');
|
|
175
185
|
regexString += '(' + iString + ')?';
|
|
176
186
|
break;
|
|
177
187
|
default:
|
|
@@ -216,9 +226,10 @@ var DateParser = /** @class */ (function () {
|
|
|
216
226
|
/* tslint:disable */
|
|
217
227
|
/**
|
|
218
228
|
* Returns date object for provided date options
|
|
219
|
-
*
|
|
220
|
-
* @param {
|
|
221
|
-
* @
|
|
229
|
+
*
|
|
230
|
+
* @param {DateParts} options ?
|
|
231
|
+
* @param {Date} value ?
|
|
232
|
+
* @returns {Date} ?
|
|
222
233
|
*/
|
|
223
234
|
DateParser.getDateObject = function (options, value) {
|
|
224
235
|
var res = value || new Date();
|
|
@@ -237,8 +248,9 @@ var DateParser = /** @class */ (function () {
|
|
|
237
248
|
}
|
|
238
249
|
for (var _i = 0, tKeys_1 = tKeys; _i < tKeys_1.length; _i++) {
|
|
239
250
|
var key = tKeys_1[_i];
|
|
251
|
+
// eslint-disable-next-line
|
|
240
252
|
var tValue = options[key];
|
|
241
|
-
if (isUndefined(tValue) && key ===
|
|
253
|
+
if (isUndefined(tValue) && key === 'day') {
|
|
242
254
|
res.setDate(1);
|
|
243
255
|
}
|
|
244
256
|
if (!isUndefined(tValue)) {
|
|
@@ -249,6 +261,7 @@ var DateParser = /** @class */ (function () {
|
|
|
249
261
|
}
|
|
250
262
|
var pDate = res.getDate();
|
|
251
263
|
res.setDate(1);
|
|
264
|
+
// eslint-disable-next-line
|
|
252
265
|
res[timeSetter[key]](tValue);
|
|
253
266
|
var lDate = new Date(res.getFullYear(), tValue + 1, 0).getDate();
|
|
254
267
|
res.setDate(pDate < lDate ? pDate : lDate);
|
|
@@ -260,6 +273,7 @@ var DateParser = /** @class */ (function () {
|
|
|
260
273
|
return null;
|
|
261
274
|
}
|
|
262
275
|
}
|
|
276
|
+
// eslint-disable-next-line
|
|
263
277
|
res[timeSetter[key]](tValue);
|
|
264
278
|
}
|
|
265
279
|
}
|
|
@@ -283,15 +297,15 @@ var DateParser = /** @class */ (function () {
|
|
|
283
297
|
};
|
|
284
298
|
/**
|
|
285
299
|
* Returns date parsing options for provided value along with parse and numeric options
|
|
286
|
-
*
|
|
287
|
-
* @param {
|
|
288
|
-
* @param {
|
|
289
|
-
* @
|
|
300
|
+
*
|
|
301
|
+
* @param {string} value ?
|
|
302
|
+
* @param {ParseOptions} parseOptions ?
|
|
303
|
+
* @param {NumericOptions} num ?
|
|
304
|
+
* @returns {DateParts} ?
|
|
290
305
|
*/
|
|
291
306
|
DateParser.internalDateParse = function (value, parseOptions, num) {
|
|
292
307
|
var matches = value.match(parseOptions.parserRegex);
|
|
293
308
|
var retOptions = { 'hour': 0, 'minute': 0, 'second': 0 };
|
|
294
|
-
var nRegx = num.numericRegex;
|
|
295
309
|
if (isNullOrUndefined(matches)) {
|
|
296
310
|
return null;
|
|
297
311
|
}
|
|
@@ -302,6 +316,7 @@ var DateParser = /** @class */ (function () {
|
|
|
302
316
|
var curObject = parseOptions.evalposition[prop];
|
|
303
317
|
var matchString = matches[curObject.pos];
|
|
304
318
|
if (curObject.isNumber) {
|
|
319
|
+
// eslint-disable-next-line
|
|
305
320
|
retOptions[prop] = this.internalNumberParser(matchString, num);
|
|
306
321
|
}
|
|
307
322
|
else {
|
|
@@ -322,8 +337,10 @@ var DateParser = /** @class */ (function () {
|
|
|
322
337
|
}
|
|
323
338
|
}
|
|
324
339
|
else {
|
|
340
|
+
// eslint-disable-next-line
|
|
325
341
|
matchString = ((prop === 'month') && (!parseOptions.isIslamic) && (parseOptions.culture === 'en' || parseOptions.culture === 'en-GB' || parseOptions.culture === 'en-US'))
|
|
326
342
|
? matchString[0].toUpperCase() + matchString.substring(1).toLowerCase() : matchString;
|
|
343
|
+
// eslint-disable-next-line
|
|
327
344
|
retOptions[prop] = parseOptions[prop][matchString];
|
|
328
345
|
}
|
|
329
346
|
}
|
|
@@ -336,9 +353,10 @@ var DateParser = /** @class */ (function () {
|
|
|
336
353
|
};
|
|
337
354
|
/**
|
|
338
355
|
* Returns parsed number for provided Numeric string and Numeric Options
|
|
339
|
-
*
|
|
340
|
-
* @param {
|
|
341
|
-
* @
|
|
356
|
+
*
|
|
357
|
+
* @param {string} value ?
|
|
358
|
+
* @param {NumericOptions} option ?
|
|
359
|
+
* @returns {number} ?
|
|
342
360
|
*/
|
|
343
361
|
DateParser.internalNumberParser = function (value, option) {
|
|
344
362
|
value = parser.convertValueParts(value, option.numberParseRegex, option.numericPair);
|
|
@@ -349,15 +367,15 @@ var DateParser = /** @class */ (function () {
|
|
|
349
367
|
};
|
|
350
368
|
/**
|
|
351
369
|
* Returns parsed time zone RegExp for provided hour format and time zone
|
|
352
|
-
*
|
|
353
|
-
* @param {
|
|
354
|
-
* @param {
|
|
355
|
-
* @
|
|
370
|
+
*
|
|
371
|
+
* @param {string} hourFormat ?
|
|
372
|
+
* @param {base.TimeZoneOptions} tZone ?
|
|
373
|
+
* @param {string} nRegex ?
|
|
374
|
+
* @returns {string} ?
|
|
356
375
|
*/
|
|
357
376
|
DateParser.parseTimeZoneRegx = function (hourFormat, tZone, nRegex) {
|
|
358
377
|
var pattern = tZone.gmtFormat;
|
|
359
378
|
var ret;
|
|
360
|
-
var result;
|
|
361
379
|
var cRegex = '(' + nRegex + ')' + '(' + nRegex + ')';
|
|
362
380
|
var splitStr;
|
|
363
381
|
ret = hourFormat.replace('+', '\\+');
|
|
@@ -367,6 +385,7 @@ var DateParser = /** @class */ (function () {
|
|
|
367
385
|
else {
|
|
368
386
|
ret = ret.replace(/H|m/g, '(' + cRegex + '?)');
|
|
369
387
|
}
|
|
388
|
+
// eslint-disable-next-line
|
|
370
389
|
splitStr = (ret.split(';').map(function (str) {
|
|
371
390
|
return pattern.replace('{0}', str);
|
|
372
391
|
}));
|
|
@@ -375,11 +394,12 @@ var DateParser = /** @class */ (function () {
|
|
|
375
394
|
};
|
|
376
395
|
/**
|
|
377
396
|
* Returns zone based value.
|
|
378
|
-
*
|
|
379
|
-
* @param {
|
|
380
|
-
* @param {string}
|
|
381
|
-
* @param {
|
|
382
|
-
* @
|
|
397
|
+
*
|
|
398
|
+
* @param {boolean} flag ?
|
|
399
|
+
* @param {string} val1 ?
|
|
400
|
+
* @param {string} val2 ?
|
|
401
|
+
* @param {NumericOptions} num ?
|
|
402
|
+
* @returns {number} ?
|
|
383
403
|
*/
|
|
384
404
|
DateParser.getZoneValue = function (flag, val1, val2, num) {
|
|
385
405
|
var ival = flag ? val1 : val2;
|
|
@@ -395,4 +415,3 @@ var DateParser = /** @class */ (function () {
|
|
|
395
415
|
return DateParser;
|
|
396
416
|
}());
|
|
397
417
|
export { DateParser };
|
|
398
|
-
/* tslint:enable */
|
package/src/intl/intl-base.d.ts
CHANGED
|
@@ -63,11 +63,14 @@ export declare namespace IntlBase {
|
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* Returns the resultant pattern based on the skeleton, dateObject and the type provided
|
|
66
|
+
*
|
|
66
67
|
* @private
|
|
67
|
-
* @param {string} skeleton
|
|
68
|
-
* @param {Object} dateObject
|
|
69
|
-
* @param {string} type
|
|
70
|
-
* @
|
|
68
|
+
* @param {string} skeleton ?
|
|
69
|
+
* @param {Object} dateObject ?
|
|
70
|
+
* @param {string} type ?
|
|
71
|
+
* @param {boolean} isIslamic ?
|
|
72
|
+
* @param {string} blazorCulture ?
|
|
73
|
+
* @returns {string} ?
|
|
71
74
|
*/
|
|
72
75
|
function getResultantPattern(skeleton: string, dateObject: Object, type: string, isIslamic?: boolean, blazorCulture?: string): string;
|
|
73
76
|
interface DateObject {
|
|
@@ -77,103 +80,177 @@ export declare namespace IntlBase {
|
|
|
77
80
|
}
|
|
78
81
|
/**
|
|
79
82
|
* Returns the dependable object for provided cldr data and culture
|
|
83
|
+
*
|
|
80
84
|
* @private
|
|
81
|
-
* @param {Object} cldr
|
|
82
|
-
* @param {string} culture
|
|
83
|
-
* @param {
|
|
84
|
-
* @
|
|
85
|
+
* @param {Object} cldr ?
|
|
86
|
+
* @param {string} culture ?
|
|
87
|
+
* @param {string} mode ?
|
|
88
|
+
* @param {boolean} isNumber ?
|
|
89
|
+
* @returns {any} ?
|
|
85
90
|
*/
|
|
86
91
|
function getDependables(cldr: Object, culture: string, mode: string, isNumber?: boolean): Dependables;
|
|
87
92
|
/**
|
|
88
93
|
* Returns the symbol pattern for provided parameters
|
|
94
|
+
*
|
|
89
95
|
* @private
|
|
90
|
-
* @param {string} type
|
|
91
|
-
* @param {string} numSystem
|
|
92
|
-
* @param {Object} obj
|
|
93
|
-
* @param {boolean} isAccount
|
|
94
|
-
* @returns {string}
|
|
96
|
+
* @param {string} type ?
|
|
97
|
+
* @param {string} numSystem ?
|
|
98
|
+
* @param {Object} obj ?
|
|
99
|
+
* @param {boolean} isAccount ?
|
|
100
|
+
* @returns {string} ?
|
|
95
101
|
*/
|
|
96
102
|
function getSymbolPattern(type: string, numSystem: string, obj: Object, isAccount: boolean): string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @param {string} format ?
|
|
106
|
+
* @returns {string} ?
|
|
107
|
+
*/
|
|
97
108
|
function ConvertDateToWeekFormat(format: string): string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @param {DateFormatOptions} formatOptions ?
|
|
112
|
+
* @param {string} culture ?
|
|
113
|
+
* @returns {DateFormatOptions} ?
|
|
114
|
+
*/
|
|
98
115
|
function compareBlazorDateFormats(formatOptions: DateFormatOptions, culture?: string): DateFormatOptions;
|
|
99
116
|
/**
|
|
100
117
|
* Returns proper numeric skeleton
|
|
118
|
+
*
|
|
101
119
|
* @private
|
|
102
|
-
* @param {string} skeleton
|
|
103
|
-
* @returns {
|
|
120
|
+
* @param {string} skeleton ?
|
|
121
|
+
* @returns {any} ?
|
|
104
122
|
*/
|
|
105
123
|
function getProperNumericSkeleton(skeleton: string): NumericSkeleton;
|
|
106
124
|
/**
|
|
107
125
|
* Returns format data for number formatting like minimum fraction, maximum fraction, etc..,
|
|
126
|
+
*
|
|
108
127
|
* @private
|
|
109
|
-
* @param {string} pattern
|
|
110
|
-
* @param {boolean} needFraction
|
|
111
|
-
* @param {string} cSymbol
|
|
112
|
-
* @param {boolean} fractionOnly
|
|
113
|
-
* @returns {
|
|
128
|
+
* @param {string} pattern ?
|
|
129
|
+
* @param {boolean} needFraction ?
|
|
130
|
+
* @param {string} cSymbol ?
|
|
131
|
+
* @param {boolean} fractionOnly ?
|
|
132
|
+
* @returns {any} ?
|
|
114
133
|
*/
|
|
115
134
|
function getFormatData(pattern: string, needFraction: boolean, cSymbol: string, fractionOnly?: boolean): NegativeData;
|
|
116
135
|
/**
|
|
117
|
-
*
|
|
136
|
+
* Changes currency symbol
|
|
137
|
+
*
|
|
118
138
|
* @private
|
|
119
|
-
* @param {
|
|
120
|
-
* @param {string}
|
|
121
|
-
* @returns {string}
|
|
139
|
+
* @param {string} val ?
|
|
140
|
+
* @param {string} sym ?
|
|
141
|
+
* @returns {string} ?
|
|
142
|
+
*/
|
|
143
|
+
function changeCurrencySymbol(val: string, sym: string): string;
|
|
144
|
+
/**
|
|
145
|
+
* Returns currency symbol based on currency code ?
|
|
146
|
+
*
|
|
147
|
+
* @private
|
|
148
|
+
* @param {Object} numericObject ?
|
|
149
|
+
* @param {string} currencyCode ?
|
|
150
|
+
* @param {string} altSymbol ?
|
|
151
|
+
* @returns {string} ?
|
|
122
152
|
*/
|
|
123
153
|
function getCurrencySymbol(numericObject: Object, currencyCode: string, altSymbol?: string): string;
|
|
124
154
|
/**
|
|
125
155
|
* Returns formatting options for custom number format
|
|
156
|
+
*
|
|
126
157
|
* @private
|
|
127
|
-
* @param {string} format
|
|
128
|
-
* @param {CommonOptions} dOptions
|
|
129
|
-
* @param {
|
|
130
|
-
* @returns {
|
|
158
|
+
* @param {string} format ?
|
|
159
|
+
* @param {CommonOptions} dOptions ?
|
|
160
|
+
* @param {any} obj ?
|
|
161
|
+
* @returns {any} ?
|
|
131
162
|
*/
|
|
132
163
|
function customFormat(format: string, dOptions: CommonOptions, obj: Dependables): GenericFormatOptions;
|
|
164
|
+
/**
|
|
165
|
+
* Returns custom formatting options
|
|
166
|
+
*
|
|
167
|
+
* @private
|
|
168
|
+
* @param {string} format ?
|
|
169
|
+
* @param {CommonOptions} dOptions ?
|
|
170
|
+
* @param {Object} numObject ?
|
|
171
|
+
* @returns {any} ?
|
|
172
|
+
*/
|
|
173
|
+
function customNumberFormat(format: string, dOptions?: CommonOptions, numObject?: Object): NegativeData;
|
|
133
174
|
/**
|
|
134
175
|
* Returns formatting options for currency or percent type
|
|
176
|
+
*
|
|
135
177
|
* @private
|
|
136
|
-
* @param {string[]} parts
|
|
137
|
-
* @param {string} actual
|
|
138
|
-
* @param {string} symbol
|
|
139
|
-
* @returns {
|
|
178
|
+
* @param {string[]} parts ?
|
|
179
|
+
* @param {string} actual ?
|
|
180
|
+
* @param {string} symbol ?
|
|
181
|
+
* @returns {any} ?
|
|
140
182
|
*/
|
|
141
183
|
function isCurrencyPercent(parts: string[], actual: string, symbol: string): NegativeData;
|
|
142
184
|
/**
|
|
143
185
|
* Returns culture based date separator
|
|
186
|
+
*
|
|
144
187
|
* @private
|
|
145
|
-
* @param {Object} dateObj
|
|
146
|
-
* @returns {string}
|
|
188
|
+
* @param {Object} dateObj ?
|
|
189
|
+
* @returns {string} ?
|
|
147
190
|
*/
|
|
148
191
|
function getDateSeparator(dateObj: Object): string;
|
|
149
192
|
/**
|
|
150
193
|
* Returns Native Date Time pattern
|
|
194
|
+
*
|
|
151
195
|
* @private
|
|
152
|
-
* @param {string} culture
|
|
153
|
-
* @param {DateFormatOptions} options
|
|
154
|
-
* @param {Object} cldr
|
|
155
|
-
* @
|
|
196
|
+
* @param {string} culture ?
|
|
197
|
+
* @param {DateFormatOptions} options ?
|
|
198
|
+
* @param {Object} cldr ?
|
|
199
|
+
* @param {boolean} isExcelFormat ?
|
|
200
|
+
* @returns {string} ?
|
|
156
201
|
*/
|
|
157
202
|
function getActualDateTimeFormat(culture: string, options: DateFormatOptions, cldr?: Object, isExcelFormat?: boolean): string;
|
|
158
203
|
/**
|
|
159
204
|
* Returns Native Number pattern
|
|
205
|
+
*
|
|
160
206
|
* @private
|
|
161
|
-
* @param {string} culture
|
|
162
|
-
* @param {NumberFormatOptions} options
|
|
163
|
-
* @param {Object} cldr
|
|
164
|
-
* @
|
|
207
|
+
* @param {string} culture ?
|
|
208
|
+
* @param {NumberFormatOptions} options ?
|
|
209
|
+
* @param {Object} cldr ?
|
|
210
|
+
* @param {boolean} isExcel ?
|
|
211
|
+
* @returns {string} ?
|
|
212
|
+
*/
|
|
213
|
+
function getActualNumberFormat(culture: string, options: NumberFormatOptions, cldr?: Object, isExcel?: boolean): string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @param {string} pattern ?
|
|
217
|
+
* @param {number} minDigits ?
|
|
218
|
+
* @param {number} maxDigits ?
|
|
219
|
+
* @returns {string} ?
|
|
220
|
+
*/
|
|
221
|
+
function fractionDigitsPattern(pattern: string, minDigits: number, maxDigits?: number): string;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @param {string} pattern ?
|
|
225
|
+
* @param {number} digits ?
|
|
226
|
+
* @returns {string} ?
|
|
227
|
+
*/
|
|
228
|
+
function minimumIntegerPattern(pattern: string, digits: number): string;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @param {string} pattern ?
|
|
232
|
+
* @returns {string} ?
|
|
233
|
+
*/
|
|
234
|
+
function groupingPattern(pattern: string): string;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @param {string} culture ?
|
|
238
|
+
* @param {Object} cldr ?
|
|
239
|
+
* @returns {number} ?
|
|
165
240
|
*/
|
|
166
|
-
function getActualNumberFormat(culture: string, options: NumberFormatOptions, cldr?: Object, isExcel?: Boolean): string;
|
|
167
241
|
function getWeekData(culture: string, cldr?: Object): number;
|
|
168
242
|
/**
|
|
169
243
|
* @private
|
|
170
|
-
* @param pData
|
|
171
|
-
* @param aCurrency
|
|
172
|
-
* @param rCurrency
|
|
244
|
+
* @param {any} pData ?
|
|
245
|
+
* @param {string} aCurrency ?
|
|
246
|
+
* @param {string} rCurrency ?
|
|
247
|
+
* @returns {void} ?
|
|
173
248
|
*/
|
|
174
249
|
function replaceBlazorCurrency(pData: NegativeData[], aCurrency: string, rCurrency: string): void;
|
|
175
250
|
/**
|
|
176
251
|
* @private
|
|
252
|
+
* @param {Date} date ?
|
|
253
|
+
* @returns {number} ?
|
|
177
254
|
*/
|
|
178
255
|
function getWeekOfYear(date: Date): number;
|
|
179
256
|
}
|