@syncfusion/ej2-base 25.2.7 → 26.1.36
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 +3 -2
- package/{README.md → ReadMe.md} +1 -1
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +1 -10
- package/dist/ej2-base.umd.min.js +1 -10
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +340 -566
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +181 -404
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +1 -10
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +225 -161
- package/src/ajax.d.ts +1 -1
- package/src/ajax.js +3 -7
- package/src/animation.d.ts +1 -1
- package/src/animation.js +1 -3
- package/src/base.d.ts +2 -1
- package/src/base.js +4 -13
- package/src/browser.d.ts +1 -1
- package/src/browser.js +3 -4
- package/src/child-property.d.ts +1 -0
- package/src/child-property.js +2 -2
- package/src/component.d.ts +4 -0
- package/src/component.js +9 -17
- package/src/dom.js +4 -11
- package/src/draggable.js +1 -22
- package/src/droppable.js +0 -1
- package/src/event-handler.js +2 -6
- package/src/fetch.js +1 -2
- package/src/hijri-parser.js +3 -3
- package/src/internationalization.js +0 -5
- package/src/intl/date-formatter.js +19 -33
- package/src/intl/date-parser.js +33 -62
- package/src/intl/intl-base.d.ts +7 -0
- package/src/intl/intl-base.js +16 -16
- package/src/intl/number-formatter.js +5 -5
- package/src/intl/number-parser.js +2 -6
- package/src/intl/parser-base.js +6 -11
- package/src/keyboard.js +0 -1
- package/src/module-loader.js +1 -0
- package/src/notify-property-change.d.ts +0 -20
- package/src/notify-property-change.js +16 -55
- package/src/observer.js +3 -6
- package/src/sanitize-helper.js +0 -1
- package/src/template-engine.js +1 -7
- package/src/template.js +13 -18
- package/src/touch.js +3 -8
- package/src/util.d.ts +4 -4
- package/src/util.js +12 -37
- package/src/validate-lic.js +4 -3
- package/styles/_bootstrap5.3-dark-definition.scss +8 -0
- package/styles/_bootstrap5.3-definition.scss +8 -0
- package/styles/_fluent2-dark-definition.scss +9 -0
- package/styles/_fluent2-definition.scss +9 -0
- package/styles/_fluent2-highcontrast-definition.scss +9 -0
- package/styles/animation/_all.scss +0 -1
- package/styles/bootstrap-dark.css +865 -143
- package/styles/bootstrap.css +865 -143
- package/styles/bootstrap4.css +865 -143
- package/styles/bootstrap5-dark.css +865 -143
- package/styles/bootstrap5.css +865 -143
- package/styles/common/_core.scss +3 -7
- package/styles/definition/_bds-dark.scss +45 -156
- package/styles/definition/_bds.scss +71 -202
- package/styles/definition/_bootstrap-dark.scss +1 -13
- package/styles/definition/_bootstrap.scss +0 -13
- package/styles/definition/_bootstrap4.scss +24 -38
- package/styles/definition/_bootstrap5-dark.scss +69 -88
- package/styles/definition/_bootstrap5.3-dark.scss +853 -0
- package/styles/definition/_bootstrap5.3.scss +1486 -0
- package/styles/definition/_bootstrap5.scss +64 -84
- package/styles/definition/_fabric-dark.scss +0 -12
- package/styles/definition/_fabric.scss +0 -12
- package/styles/definition/_fluent-dark.scss +27 -96
- package/styles/definition/_fluent.scss +27 -97
- package/styles/definition/_fluent2-dark.scss +1506 -0
- package/styles/definition/_fluent2-highcontrast.scss +1506 -0
- package/styles/definition/_fluent2.scss +2264 -0
- package/styles/definition/_fusionnew-dark.scss +40 -78
- package/styles/definition/_fusionnew.scss +36 -75
- package/styles/definition/_highcontrast-light.scss +0 -10
- package/styles/definition/_highcontrast.scss +0 -12
- package/styles/definition/_material-dark.scss +0 -11
- package/styles/definition/_material.scss +1 -13
- package/styles/definition/_material3-dark.scss +15 -71
- package/styles/definition/_material3.scss +15 -84
- package/styles/definition/_tailwind-dark.scss +17 -66
- package/styles/definition/_tailwind.scss +18 -66
- package/styles/fabric-dark.css +865 -143
- package/styles/fabric.css +865 -143
- package/styles/fluent-dark.css +865 -143
- package/styles/fluent.css +865 -143
- package/styles/fluent2.css +3825 -0
- package/styles/fluent2.scss +3 -0
- package/styles/highcontrast-light.css +865 -143
- package/styles/highcontrast.css +865 -143
- package/styles/material-dark.css +865 -143
- package/styles/material.css +865 -143
- package/styles/material3-dark.css +865 -144
- package/styles/material3.css +865 -144
- package/styles/offline-theme/material-dark.css +865 -143
- package/styles/offline-theme/material.css +865 -143
- package/styles/offline-theme/tailwind-dark.css +866 -144
- package/styles/offline-theme/tailwind.css +866 -144
- package/styles/tailwind-dark.css +866 -144
- package/styles/tailwind.css +866 -144
- package/CHANGELOG.md +0 -649
package/dist/es6/ej2-base.es5.js
CHANGED
|
@@ -18,7 +18,6 @@ function disableBlazorMode() {
|
|
|
18
18
|
* @returns {any} ?
|
|
19
19
|
* @private
|
|
20
20
|
*/
|
|
21
|
-
// eslint-disable-next-line
|
|
22
21
|
function createInstance(classFunction, params) {
|
|
23
22
|
var arrayParam = params;
|
|
24
23
|
arrayParam.unshift(undefined);
|
|
@@ -33,12 +32,10 @@ function createInstance(classFunction, params) {
|
|
|
33
32
|
*/
|
|
34
33
|
function setImmediate(handler) {
|
|
35
34
|
var unbind;
|
|
36
|
-
// eslint-disable-next-line
|
|
37
35
|
var num = new Uint16Array(5);
|
|
38
36
|
var intCrypto = window.msCrypto || window.crypto;
|
|
39
37
|
intCrypto.getRandomValues(num);
|
|
40
38
|
var secret = 'ej2' + combineArray(num);
|
|
41
|
-
// eslint-disable-next-line
|
|
42
39
|
var messageHandler = function (event) {
|
|
43
40
|
if (event.source === window && typeof event.data === 'string' && event.data.length <= 32 && event.data === secret) {
|
|
44
41
|
handler();
|
|
@@ -60,9 +57,7 @@ function setImmediate(handler) {
|
|
|
60
57
|
* @returns {any} ?
|
|
61
58
|
* @private
|
|
62
59
|
*/
|
|
63
|
-
// eslint-disable-next-line
|
|
64
60
|
function getValue(nameSpace, obj) {
|
|
65
|
-
// eslint-disable-next-line
|
|
66
61
|
var value = obj;
|
|
67
62
|
var splits = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
|
|
68
63
|
for (var i = 0; i < splits.length && !isUndefined(value); i++) {
|
|
@@ -79,12 +74,9 @@ function getValue(nameSpace, obj) {
|
|
|
79
74
|
* @returns {any} ?
|
|
80
75
|
* @private
|
|
81
76
|
*/
|
|
82
|
-
// eslint-disable-next-line
|
|
83
77
|
function setValue(nameSpace, value, obj) {
|
|
84
78
|
var keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
|
|
85
|
-
// eslint-disable-next-line
|
|
86
79
|
var start = obj || {};
|
|
87
|
-
// eslint-disable-next-line
|
|
88
80
|
var fromObj = start;
|
|
89
81
|
var i;
|
|
90
82
|
var length = keys.length;
|
|
@@ -109,14 +101,12 @@ function setValue(nameSpace, value, obj) {
|
|
|
109
101
|
* @returns {void} ?
|
|
110
102
|
* @private
|
|
111
103
|
*/
|
|
112
|
-
// eslint-disable-next-line
|
|
113
104
|
function deleteObject(obj, key) {
|
|
114
105
|
delete obj["" + key];
|
|
115
106
|
}
|
|
116
107
|
/**
|
|
117
108
|
*@private
|
|
118
109
|
*/
|
|
119
|
-
// eslint-disable-next-line
|
|
120
110
|
var containerObject = typeof window !== 'undefined' ? window : {};
|
|
121
111
|
/**
|
|
122
112
|
* Check weather the given argument is only object.
|
|
@@ -125,7 +115,6 @@ var containerObject = typeof window !== 'undefined' ? window : {};
|
|
|
125
115
|
* @returns {boolean} ?
|
|
126
116
|
* @private
|
|
127
117
|
*/
|
|
128
|
-
// eslint-disable-next-line
|
|
129
118
|
function isObject(obj) {
|
|
130
119
|
var objCon = {};
|
|
131
120
|
return (!isNullOrUndefined(obj) && obj.constructor === objCon.constructor);
|
|
@@ -138,10 +127,8 @@ function isObject(obj) {
|
|
|
138
127
|
* @returns {any} ?
|
|
139
128
|
* @private
|
|
140
129
|
*/
|
|
141
|
-
// eslint-disable-next-line
|
|
142
130
|
function getEnumValue(enumObject, enumValue) {
|
|
143
|
-
|
|
144
|
-
return enumObject[enumValue];
|
|
131
|
+
return enumObject["" + enumValue];
|
|
145
132
|
}
|
|
146
133
|
/**
|
|
147
134
|
* Merge the source object into destination object.
|
|
@@ -182,28 +169,25 @@ function merge(source, destination) {
|
|
|
182
169
|
function extend(copied, first, second, deep) {
|
|
183
170
|
var result = copied && typeof copied === 'object' ? copied : {};
|
|
184
171
|
var length = arguments.length;
|
|
172
|
+
var args = [copied, first, second, deep];
|
|
185
173
|
if (deep) {
|
|
186
174
|
length = length - 1;
|
|
187
175
|
}
|
|
188
176
|
var _loop_1 = function (i) {
|
|
189
|
-
|
|
190
|
-
if (!arguments_1[i]) {
|
|
177
|
+
if (!args[parseInt(i.toString(), 10)]) {
|
|
191
178
|
return "continue";
|
|
192
179
|
}
|
|
193
|
-
|
|
194
|
-
var obj1 = arguments_1[i];
|
|
180
|
+
var obj1 = args[parseInt(i.toString(), 10)];
|
|
195
181
|
Object.keys(obj1).forEach(function (key) {
|
|
196
182
|
var src = result["" + key];
|
|
197
183
|
var copy = obj1["" + key];
|
|
198
184
|
var clone;
|
|
199
185
|
var isArrayChanged = Array.isArray(copy) && Array.isArray(src) && (copy.length !== src.length);
|
|
200
|
-
// eslint-disable-next-line
|
|
201
186
|
var blazorEventExtend = isBlazor() ? (!(src instanceof Event) && !isArrayChanged) : true;
|
|
202
187
|
if (deep && blazorEventExtend && (isObject(copy) || Array.isArray(copy))) {
|
|
203
188
|
if (isObject(copy)) {
|
|
204
189
|
clone = src ? src : {};
|
|
205
|
-
|
|
206
|
-
if (Array.isArray(clone) && clone.hasOwnProperty('isComplexArray')) {
|
|
190
|
+
if (Array.isArray(clone) && Object.prototype.hasOwnProperty.call(clone, 'isComplexArray')) {
|
|
207
191
|
extend(clone, {}, copy, deep);
|
|
208
192
|
}
|
|
209
193
|
else {
|
|
@@ -213,7 +197,6 @@ function extend(copied, first, second, deep) {
|
|
|
213
197
|
else {
|
|
214
198
|
/* istanbul ignore next */
|
|
215
199
|
clone = isBlazor() ? src && Object.keys(copy).length : src ? src : [];
|
|
216
|
-
// eslint-disable-next-line
|
|
217
200
|
result["" + key] = extend([], clone, copy, (clone && clone.length) || (copy && copy.length));
|
|
218
201
|
}
|
|
219
202
|
}
|
|
@@ -222,7 +205,6 @@ function extend(copied, first, second, deep) {
|
|
|
222
205
|
}
|
|
223
206
|
});
|
|
224
207
|
};
|
|
225
|
-
var arguments_1 = arguments;
|
|
226
208
|
for (var i = 1; i < length; i++) {
|
|
227
209
|
_loop_1(i);
|
|
228
210
|
}
|
|
@@ -231,7 +213,7 @@ function extend(copied, first, second, deep) {
|
|
|
231
213
|
/**
|
|
232
214
|
* To check whether the object is null or undefined.
|
|
233
215
|
*
|
|
234
|
-
* @param {
|
|
216
|
+
* @param {any} value - To check the object is null or undefined
|
|
235
217
|
* @returns {boolean} ?
|
|
236
218
|
* @private
|
|
237
219
|
*/
|
|
@@ -241,7 +223,7 @@ function isNullOrUndefined(value) {
|
|
|
241
223
|
/**
|
|
242
224
|
* To check whether the object is undefined.
|
|
243
225
|
*
|
|
244
|
-
* @param {
|
|
226
|
+
* @param {any} value - To check the object is undefined
|
|
245
227
|
* @returns {boolean} ?
|
|
246
228
|
* @private
|
|
247
229
|
*/
|
|
@@ -267,12 +249,13 @@ function getUniqueID(definedName) {
|
|
|
267
249
|
* @private
|
|
268
250
|
*/
|
|
269
251
|
function debounce(eventFunction, delay) {
|
|
270
|
-
// eslint-disable-next-line
|
|
271
252
|
var out;
|
|
272
253
|
return function () {
|
|
273
254
|
var _this = this;
|
|
274
|
-
|
|
275
|
-
var
|
|
255
|
+
var args = [];
|
|
256
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
257
|
+
args[_i] = arguments[_i];
|
|
258
|
+
}
|
|
276
259
|
var later = function () {
|
|
277
260
|
out = null;
|
|
278
261
|
return eventFunction.apply(_this, args);
|
|
@@ -288,7 +271,6 @@ function debounce(eventFunction, delay) {
|
|
|
288
271
|
* @returns {string} ?
|
|
289
272
|
* @private
|
|
290
273
|
*/
|
|
291
|
-
// eslint-disable-next-line
|
|
292
274
|
function queryParams(data) {
|
|
293
275
|
var array = [];
|
|
294
276
|
var keys = Object.keys(data);
|
|
@@ -346,8 +328,7 @@ function throwError(message) {
|
|
|
346
328
|
throw new Error(message);
|
|
347
329
|
}
|
|
348
330
|
catch (e) {
|
|
349
|
-
|
|
350
|
-
throw e.message + '\n' + e.stack;
|
|
331
|
+
throw new Error(e.message + '\n' + e.stack);
|
|
351
332
|
}
|
|
352
333
|
}
|
|
353
334
|
/**
|
|
@@ -379,7 +360,6 @@ function print(element, printWindow) {
|
|
|
379
360
|
'<script> (function() { window.ready = true; })(); </script>' + '</body></html>');
|
|
380
361
|
printWindow.document.close();
|
|
381
362
|
printWindow.focus();
|
|
382
|
-
// eslint-disable-next-line
|
|
383
363
|
var interval = setInterval(function () {
|
|
384
364
|
if (printWindow.ready) {
|
|
385
365
|
printWindow.print();
|
|
@@ -443,9 +423,7 @@ function getElement(element) {
|
|
|
443
423
|
* @returns {Object} ?
|
|
444
424
|
* @private
|
|
445
425
|
*/
|
|
446
|
-
// eslint-disable-next-line
|
|
447
426
|
function getInstance(element, component) {
|
|
448
|
-
// eslint-disable-next-line
|
|
449
427
|
var elem = (typeof (element) === 'string') ? document.querySelector(element) : element;
|
|
450
428
|
if (elem["" + instances]) {
|
|
451
429
|
for (var _i = 0, _a = elem["" + instances]; _i < _a.length; _i++) {
|
|
@@ -466,7 +444,6 @@ function getInstance(element, component) {
|
|
|
466
444
|
* @private
|
|
467
445
|
*/
|
|
468
446
|
function addInstance(element, instance) {
|
|
469
|
-
// eslint-disable-next-line
|
|
470
447
|
var elem = (typeof (element) === 'string') ? document.querySelector(element) : element;
|
|
471
448
|
if (elem["" + instances]) {
|
|
472
449
|
elem["" + instances].push(instance);
|
|
@@ -481,12 +458,10 @@ function addInstance(element, instance) {
|
|
|
481
458
|
* @returns {any} ?
|
|
482
459
|
* @private
|
|
483
460
|
*/
|
|
484
|
-
// eslint-disable-next-line
|
|
485
461
|
function uniqueID() {
|
|
486
462
|
if ((typeof window) === 'undefined') {
|
|
487
463
|
return;
|
|
488
464
|
}
|
|
489
|
-
// eslint-disable-next-line
|
|
490
465
|
var num = new Uint16Array(5);
|
|
491
466
|
var intCrypto = window.msCrypto || window.crypto;
|
|
492
467
|
return intCrypto.getRandomValues(num);
|
|
@@ -504,6 +479,7 @@ function combineArray(num) {
|
|
|
504
479
|
return ret;
|
|
505
480
|
}
|
|
506
481
|
|
|
482
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
507
483
|
/**
|
|
508
484
|
* Parser
|
|
509
485
|
*/
|
|
@@ -564,10 +540,8 @@ var ParserBase = /** @__PURE__ @class */ (function () {
|
|
|
564
540
|
var res = {};
|
|
565
541
|
for (var _i = 0, propKeys_1 = propKeys; _i < propKeys_1.length; _i++) {
|
|
566
542
|
var key = propKeys_1[_i];
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
// eslint-disable-next-line
|
|
570
|
-
res[prop[key]] = key;
|
|
543
|
+
if (!Object.prototype.hasOwnProperty.call(res, prop["" + key])) {
|
|
544
|
+
res[prop["" + key]] = key;
|
|
571
545
|
}
|
|
572
546
|
}
|
|
573
547
|
return res;
|
|
@@ -595,8 +569,7 @@ var ParserBase = /** @__PURE__ @class */ (function () {
|
|
|
595
569
|
var ret = {};
|
|
596
570
|
for (var _i = 0, matchKeys_1 = matchKeys; _i < matchKeys_1.length; _i++) {
|
|
597
571
|
var key = matchKeys_1[_i];
|
|
598
|
-
|
|
599
|
-
ret[prop[key]] = defaultNumberSymbols[key];
|
|
572
|
+
ret[prop["" + key]] = defaultNumberSymbols["" + key];
|
|
600
573
|
}
|
|
601
574
|
return ret;
|
|
602
575
|
};
|
|
@@ -629,8 +602,7 @@ var ParserBase = /** @__PURE__ @class */ (function () {
|
|
|
629
602
|
*/
|
|
630
603
|
ParserBase.convertValueParts = function (value, regex, obj) {
|
|
631
604
|
return value.replace(regex, function (str) {
|
|
632
|
-
|
|
633
|
-
return obj[str];
|
|
605
|
+
return obj["" + str];
|
|
634
606
|
});
|
|
635
607
|
};
|
|
636
608
|
/**
|
|
@@ -682,7 +654,6 @@ var ParserBase = /** @__PURE__ @class */ (function () {
|
|
|
682
654
|
* @param {boolean} isNumber ?
|
|
683
655
|
* @returns {NumberMapper} ?
|
|
684
656
|
*/
|
|
685
|
-
// eslint-disable-next-line
|
|
686
657
|
ParserBase.getNumberMapper = function (curObj, numberSystem, isNumber) {
|
|
687
658
|
var ret = { mapper: {} };
|
|
688
659
|
var cur = this.getDefaultNumberingSystem(curObj);
|
|
@@ -694,8 +665,7 @@ var ParserBase = /** @__PURE__ @class */ (function () {
|
|
|
694
665
|
if (!isUndefined(digits)) {
|
|
695
666
|
for (var _i = 0, latnNumberSystem_1 = latnNumberSystem; _i < latnNumberSystem_1.length; _i++) {
|
|
696
667
|
var i = latnNumberSystem_1[_i];
|
|
697
|
-
|
|
698
|
-
ret.mapper[i] = digits[i];
|
|
668
|
+
ret.mapper[parseInt(i.toString(), 10)] = digits[parseInt(i.toString(), 10)];
|
|
699
669
|
}
|
|
700
670
|
}
|
|
701
671
|
}
|
|
@@ -877,7 +847,7 @@ function getBlazorCurrencySymbol(currencyCode) {
|
|
|
877
847
|
/***
|
|
878
848
|
* Hijri parser
|
|
879
849
|
*/
|
|
880
|
-
// eslint-disable-next-line
|
|
850
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
881
851
|
var HijriParser;
|
|
882
852
|
(function (HijriParser) {
|
|
883
853
|
var dateCorrection = [28607, 28636, 28665, 28695, 28724, 28754, 28783, 28813, 28843, 28872, 28901, 28931, 28960, 28990,
|
|
@@ -993,7 +963,7 @@ var HijriParser;
|
|
|
993
963
|
tYear -= 1;
|
|
994
964
|
tMonth += 12;
|
|
995
965
|
}
|
|
996
|
-
var yPrefix = Math.floor(tYear / 100
|
|
966
|
+
var yPrefix = Math.floor(tYear / 100);
|
|
997
967
|
var julilanOffset = yPrefix - Math.floor(yPrefix / 4.) - 2;
|
|
998
968
|
var julianNumber = Math.floor(365.25 * (tYear + 4716)) + Math.floor(30.6001 * (tMonth + 1)) + day - julilanOffset - 1524;
|
|
999
969
|
yPrefix = Math.floor((julianNumber - 1867216.25) / 36524.25);
|
|
@@ -1012,7 +982,7 @@ var HijriParser;
|
|
|
1012
982
|
year = c - 4716;
|
|
1013
983
|
var modifiedJulianDate = julianNumber - 2400000;
|
|
1014
984
|
// date calculation for year after 2077
|
|
1015
|
-
var iyear = 10631
|
|
985
|
+
var iyear = 10631 / 30;
|
|
1016
986
|
var z = julianNumber - 1948084;
|
|
1017
987
|
var cyc = Math.floor(z / 10631.);
|
|
1018
988
|
z = z - 10631 * cyc;
|
|
@@ -1082,7 +1052,6 @@ var HijriParser;
|
|
|
1082
1052
|
var abbreviateRegexGlobal = /\/MMMMM|MMMM|MMM|a|LLLL|LLL|EEEEE|EEEE|E|K|cccc|ccc|WW|W|G+|z+/gi;
|
|
1083
1053
|
var standalone = 'stand-alone';
|
|
1084
1054
|
var weekdayKey = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
|
|
1085
|
-
|
|
1086
1055
|
var timeSetter = {
|
|
1087
1056
|
m: 'getMinutes',
|
|
1088
1057
|
h: 'getHours',
|
|
@@ -1109,7 +1078,6 @@ var datePartMatcher = {
|
|
|
1109
1078
|
'f': 'milliseconds'
|
|
1110
1079
|
};
|
|
1111
1080
|
var timeSeparator = 'timeSeparator';
|
|
1112
|
-
/* tslint:disable no-any */
|
|
1113
1081
|
/**
|
|
1114
1082
|
* Date Format is a framework provides support for date formatting.
|
|
1115
1083
|
*
|
|
@@ -1161,34 +1129,30 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1161
1129
|
case 'E':
|
|
1162
1130
|
case 'c':
|
|
1163
1131
|
if (isBlazor()) {
|
|
1164
|
-
|
|
1165
|
-
formatOptions.weekday = getValue('days.' + IntlBase.monthIndex[len], dateObject);
|
|
1132
|
+
formatOptions.weekday = getValue('days.' + IntlBase.monthIndex["" + len], dateObject);
|
|
1166
1133
|
}
|
|
1167
1134
|
else {
|
|
1168
|
-
|
|
1169
|
-
formatOptions.weekday = dependable.dateObject[IntlBase.days][standalone][IntlBase.monthIndex[len]];
|
|
1135
|
+
formatOptions.weekday = dependable.dateObject["" + IntlBase.days]["" + standalone][IntlBase.monthIndex["" + len]];
|
|
1170
1136
|
}
|
|
1171
1137
|
break;
|
|
1172
1138
|
case 'M':
|
|
1173
1139
|
case 'L':
|
|
1174
1140
|
if (isBlazor()) {
|
|
1175
|
-
|
|
1176
|
-
formatOptions.month = getValue('months.' + IntlBase.monthIndex[len], dateObject);
|
|
1141
|
+
formatOptions.month = getValue('months.' + IntlBase.monthIndex["" + len], dateObject);
|
|
1177
1142
|
}
|
|
1178
1143
|
else {
|
|
1179
|
-
|
|
1180
|
-
formatOptions.month = dependable.dateObject[IntlBase.month][standalone][IntlBase.monthIndex[len]];
|
|
1144
|
+
formatOptions.month = dependable.dateObject["" + IntlBase.month]["" + standalone][IntlBase.monthIndex["" + len]];
|
|
1181
1145
|
}
|
|
1182
1146
|
break;
|
|
1183
1147
|
case 'a':
|
|
1184
1148
|
formatOptions.designator = isBlazor() ?
|
|
1185
1149
|
getValue('dayPeriods', dateObject) : getValue('dayPeriods.format.wide', dateObject);
|
|
1186
1150
|
break;
|
|
1187
|
-
case 'G':
|
|
1188
|
-
// eslint-disable-next-line
|
|
1151
|
+
case 'G': {
|
|
1189
1152
|
var eText = (len <= 3) ? 'eraAbbr' : (len === 4) ? 'eraNames' : 'eraNarrow';
|
|
1190
1153
|
formatOptions.era = isBlazor() ? getValue('eras', dateObject) : getValue('eras.' + eText, dependable.dateObject);
|
|
1191
1154
|
break;
|
|
1155
|
+
}
|
|
1192
1156
|
case 'z':
|
|
1193
1157
|
formatOptions.timeZone = getValue('dates.timeZoneNames', dependable.parserObject);
|
|
1194
1158
|
break;
|
|
@@ -1231,8 +1195,7 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1231
1195
|
case 'L':
|
|
1232
1196
|
curval = dObject.month;
|
|
1233
1197
|
if (length_1 > 2) {
|
|
1234
|
-
|
|
1235
|
-
ret += options.month[curval];
|
|
1198
|
+
ret += options.month["" + curval];
|
|
1236
1199
|
}
|
|
1237
1200
|
else {
|
|
1238
1201
|
isNumber = true;
|
|
@@ -1240,8 +1203,7 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1240
1203
|
break;
|
|
1241
1204
|
case 'E':
|
|
1242
1205
|
case 'c':
|
|
1243
|
-
|
|
1244
|
-
ret += options.weekday[weekdayKey[value.getDay()]];
|
|
1206
|
+
ret += options.weekday["" + weekdayKey[value.getDay()]];
|
|
1245
1207
|
break;
|
|
1246
1208
|
case 'H':
|
|
1247
1209
|
case 'h':
|
|
@@ -1256,8 +1218,7 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1256
1218
|
else if (char === 'f') {
|
|
1257
1219
|
isNumber = false;
|
|
1258
1220
|
processNumber = true;
|
|
1259
|
-
|
|
1260
|
-
curvalstr = value[timeSetter[char]]().toString();
|
|
1221
|
+
curvalstr = value["" + timeSetter["" + char]]().toString();
|
|
1261
1222
|
curvalstr = curvalstr.substring(0, length_1);
|
|
1262
1223
|
var curlength = curvalstr.length;
|
|
1263
1224
|
if (length_1 !== curlength) {
|
|
@@ -1271,8 +1232,7 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1271
1232
|
curstr += curvalstr;
|
|
1272
1233
|
}
|
|
1273
1234
|
else {
|
|
1274
|
-
|
|
1275
|
-
curval = value[timeSetter[char]]();
|
|
1235
|
+
curval = value["" + timeSetter["" + char]]();
|
|
1276
1236
|
}
|
|
1277
1237
|
if (char === 'h') {
|
|
1278
1238
|
curval = curval % 12 || 12;
|
|
@@ -1285,30 +1245,25 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1285
1245
|
curstr = curstr.substr(curstr.length - 2);
|
|
1286
1246
|
}
|
|
1287
1247
|
break;
|
|
1288
|
-
case 'a':
|
|
1289
|
-
// eslint-disable-next-line
|
|
1248
|
+
case 'a': {
|
|
1290
1249
|
var desig = value.getHours() < 12 ? 'am' : 'pm';
|
|
1291
|
-
|
|
1292
|
-
ret += options.designator[desig];
|
|
1250
|
+
ret += options.designator["" + desig];
|
|
1293
1251
|
break;
|
|
1294
|
-
|
|
1295
|
-
|
|
1252
|
+
}
|
|
1253
|
+
case 'G': {
|
|
1296
1254
|
var dec = value.getFullYear() < 0 ? 0 : 1;
|
|
1297
|
-
|
|
1298
|
-
var retu = options.era[dec];
|
|
1255
|
+
var retu = options.era["" + dec];
|
|
1299
1256
|
if (isNullOrUndefined(retu)) {
|
|
1300
|
-
// eslint-disable-next-line
|
|
1301
1257
|
retu = options.era[dec ? 0 : 1];
|
|
1302
1258
|
}
|
|
1303
1259
|
ret += retu || '';
|
|
1304
1260
|
break;
|
|
1261
|
+
}
|
|
1305
1262
|
case '\'':
|
|
1306
1263
|
ret += (match === '\'\'') ? '\'' : match.replace(/'/g, '');
|
|
1307
1264
|
break;
|
|
1308
|
-
case 'z':
|
|
1309
|
-
// eslint-disable-next-line
|
|
1265
|
+
case 'z': {
|
|
1310
1266
|
var timezone = value.getTimezoneOffset();
|
|
1311
|
-
// eslint-disable-next-line
|
|
1312
1267
|
var pattern_1 = (length_1 < 4) ? '+H;-H' : options.timeZone.hourFormat;
|
|
1313
1268
|
pattern_1 = pattern_1.replace(/:/g, options.numMapper.timeSeparator);
|
|
1314
1269
|
if (timezone === 0) {
|
|
@@ -1320,9 +1275,9 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1320
1275
|
}
|
|
1321
1276
|
curstr = options.timeZone.gmtFormat.replace(/\{0\}/, curstr);
|
|
1322
1277
|
break;
|
|
1278
|
+
}
|
|
1323
1279
|
case ':':
|
|
1324
|
-
|
|
1325
|
-
ret += options.numMapper.numberSymbols[timeSeparator];
|
|
1280
|
+
ret += options.numMapper.numberSymbols["" + timeSeparator];
|
|
1326
1281
|
break;
|
|
1327
1282
|
case '/':
|
|
1328
1283
|
ret += options.dateSeperator;
|
|
@@ -1386,6 +1341,7 @@ var DateFormat = /** @__PURE__ @class */ (function () {
|
|
|
1386
1341
|
return DateFormat;
|
|
1387
1342
|
}());
|
|
1388
1343
|
|
|
1344
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1389
1345
|
var errorText = {
|
|
1390
1346
|
'ms': 'minimumSignificantDigits',
|
|
1391
1347
|
'ls': 'maximumSignificantDigits',
|
|
@@ -1394,7 +1350,7 @@ var errorText = {
|
|
|
1394
1350
|
};
|
|
1395
1351
|
var percentSign = 'percentSign';
|
|
1396
1352
|
var minusSign = 'minusSign';
|
|
1397
|
-
var mapper
|
|
1353
|
+
var mapper = ['infinity', 'nan', 'group', 'decimal', 'exponential'];
|
|
1398
1354
|
/**
|
|
1399
1355
|
* Module for number formatting.
|
|
1400
1356
|
*
|
|
@@ -1422,7 +1378,6 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1422
1378
|
dOptions.numberMapper = isBlazor() ? extend({}, numObject) :
|
|
1423
1379
|
ParserBase.getNumberMapper(dependable.parserObject, ParserBase.getNumberingSystem(cldr), true);
|
|
1424
1380
|
dOptions.currencySymbol = isBlazor() ? getValue('currencySymbol', numObject) : IntlBase.getCurrencySymbol(dependable.numericObject, fOptions.currency || defaultCurrencyCode, option.altSymbol);
|
|
1425
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1426
1381
|
dOptions.percentSymbol = isBlazor() ? getValue('numberSymbols.percentSign', numObject) :
|
|
1427
1382
|
dOptions.numberMapper.numberSymbols["" + percentSign];
|
|
1428
1383
|
dOptions.minusSymbol = isBlazor() ? getValue('numberSymbols.minusSign', numObject) :
|
|
@@ -1430,6 +1385,9 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1430
1385
|
var symbols = dOptions.numberMapper.numberSymbols;
|
|
1431
1386
|
if ((option.format) && !(IntlBase.formatRegex.test(option.format))) {
|
|
1432
1387
|
cOptions = IntlBase.customFormat(option.format, dOptions, dependable.numericObject);
|
|
1388
|
+
if (!isUndefined(fOptions.useGrouping) && fOptions.useGrouping) {
|
|
1389
|
+
fOptions.useGrouping = cOptions.pData.useGrouping;
|
|
1390
|
+
}
|
|
1433
1391
|
}
|
|
1434
1392
|
else {
|
|
1435
1393
|
extend(fOptions, IntlBase.getProperNumericSkeleton(option.format || 'N'));
|
|
@@ -1454,7 +1412,7 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1454
1412
|
cOptions.nData = IntlBase.getFormatData(split[1] || '-' + split[0], true, dOptions.currencySymbol);
|
|
1455
1413
|
cOptions.pData = IntlBase.getFormatData(split[0], false, dOptions.currencySymbol);
|
|
1456
1414
|
if (fOptions.useGrouping) {
|
|
1457
|
-
fOptions.groupSeparator = symbols[mapper
|
|
1415
|
+
fOptions.groupSeparator = symbols[mapper[2]];
|
|
1458
1416
|
fOptions.groupData = this.getGroupingDetails(split[0]);
|
|
1459
1417
|
}
|
|
1460
1418
|
}
|
|
@@ -1485,10 +1443,10 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1485
1443
|
extend(cOptions.pData, fOptions);
|
|
1486
1444
|
return function (value) {
|
|
1487
1445
|
if (isNaN(value)) {
|
|
1488
|
-
return symbols[mapper
|
|
1446
|
+
return symbols[mapper[1]];
|
|
1489
1447
|
}
|
|
1490
1448
|
else if (!isFinite(value)) {
|
|
1491
|
-
return symbols[mapper
|
|
1449
|
+
return symbols[mapper[0]];
|
|
1492
1450
|
}
|
|
1493
1451
|
return _this.intNumberFormatter(value, cOptions, dOptions, option);
|
|
1494
1452
|
};
|
|
@@ -1529,7 +1487,6 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1529
1487
|
var decide = isFraction ? 'f' : 's';
|
|
1530
1488
|
var dint = 0;
|
|
1531
1489
|
var str1 = errorText['l' + decide];
|
|
1532
|
-
// eslint-disable-next-line
|
|
1533
1490
|
var str2 = errorText['m' + decide];
|
|
1534
1491
|
if (!isUndefined(val1)) {
|
|
1535
1492
|
this.checkRange(val1, str1, isFraction);
|
|
@@ -1609,7 +1566,7 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1609
1566
|
var decimalPart = temp[1];
|
|
1610
1567
|
var len = decimalPart.length;
|
|
1611
1568
|
for (var i = len - 1; i >= 0; i--) {
|
|
1612
|
-
if (decimalPart[
|
|
1569
|
+
if (decimalPart[parseInt(i.toString(), 10)] === '0' && i >= curData.minimumFractionDigits) {
|
|
1613
1570
|
decimalPart = decimalPart.slice(0, i);
|
|
1614
1571
|
}
|
|
1615
1572
|
else {
|
|
@@ -1621,13 +1578,12 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1621
1578
|
}
|
|
1622
1579
|
if (curData.type === 'scientific') {
|
|
1623
1580
|
fValue = value.toExponential(curData.maximumFractionDigits);
|
|
1624
|
-
fValue = fValue.replace('e', dOptions.numberMapper.numberSymbols[mapper
|
|
1581
|
+
fValue = fValue.replace('e', dOptions.numberMapper.numberSymbols[mapper[4]]);
|
|
1625
1582
|
}
|
|
1626
|
-
fValue = fValue.replace('.', dOptions.numberMapper.numberSymbols[mapper
|
|
1583
|
+
fValue = fValue.replace('.', dOptions.numberMapper.numberSymbols[mapper[3]]);
|
|
1627
1584
|
fValue = curData.format === '#,###,,;(#,###,,)' ? this.customPivotFormat(parseInt(fValue, 10)) : fValue;
|
|
1628
1585
|
if (curData.useGrouping) {
|
|
1629
|
-
|
|
1630
|
-
fValue = this.groupNumbers(fValue, curData.groupData.primary, curData.groupSeparator || ',', dOptions.numberMapper.numberSymbols[mapper$1[3]] || '.', curData.groupData.secondary);
|
|
1586
|
+
fValue = this.groupNumbers(fValue, curData.groupData.primary, curData.groupSeparator || ',', dOptions.numberMapper.numberSymbols[mapper[3]] || '.', curData.groupData.secondary);
|
|
1631
1587
|
}
|
|
1632
1588
|
fValue = ParserBase.convertValueParts(fValue, IntlBase.latnParseRegex, dOptions.numberMapper.mapper);
|
|
1633
1589
|
if (curData.nlead === 'N/A') {
|
|
@@ -1753,7 +1709,6 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1753
1709
|
NumberFormat.customPivotFormat = function (value) {
|
|
1754
1710
|
if (value >= 500000) {
|
|
1755
1711
|
value /= 1000000;
|
|
1756
|
-
// eslint-disable-next-line
|
|
1757
1712
|
var _a = value.toString().split('.'), integer = _a[0], decimal = _a[1];
|
|
1758
1713
|
return decimal && +decimal.substring(0, 1) >= 5
|
|
1759
1714
|
? Math.ceil(value).toString()
|
|
@@ -1775,7 +1730,6 @@ var timeSetter$1 = {
|
|
|
1775
1730
|
milliseconds: 'setMilliseconds'
|
|
1776
1731
|
};
|
|
1777
1732
|
var month = 'months';
|
|
1778
|
-
/* tslint:disable no-any */
|
|
1779
1733
|
/**
|
|
1780
1734
|
* Date Parser.
|
|
1781
1735
|
*
|
|
@@ -1816,17 +1770,15 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1816
1770
|
var zCorrectTemp = 0;
|
|
1817
1771
|
var isgmtTraversed = false;
|
|
1818
1772
|
var nRegx = numOptions.numericRegex;
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
ParserBase.getNumberMapper(dependable.parserObject, ParserBase.getNumberingSystem(cldr));
|
|
1773
|
+
var numMapper = isBlazor() ? dependable.parserObject.numbers
|
|
1774
|
+
: ParserBase.getNumberMapper(dependable.parserObject, ParserBase.getNumberingSystem(cldr));
|
|
1822
1775
|
for (var i = 0; i < length_1; i++) {
|
|
1823
1776
|
var str = patternMatch[parseInt(i.toString(), 10)];
|
|
1824
1777
|
var len = str.length;
|
|
1825
1778
|
var char = (str[0] === 'K') ? 'h' : str[0];
|
|
1826
1779
|
var isNumber = void 0;
|
|
1827
1780
|
var canUpdate = void 0;
|
|
1828
|
-
|
|
1829
|
-
var charKey = datePartMatcher[char];
|
|
1781
|
+
var charKey = datePartMatcher["" + char];
|
|
1830
1782
|
var optional = (len === 2) ? '' : '?';
|
|
1831
1783
|
if (isgmtTraversed) {
|
|
1832
1784
|
gmtCorrection = zCorrectTemp;
|
|
@@ -1834,22 +1786,18 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1834
1786
|
}
|
|
1835
1787
|
switch (char) {
|
|
1836
1788
|
case 'E':
|
|
1837
|
-
case 'c':
|
|
1838
|
-
// eslint-disable-next-line
|
|
1789
|
+
case 'c': {
|
|
1839
1790
|
var weekData = void 0;
|
|
1840
1791
|
if (isBlazor()) {
|
|
1841
|
-
|
|
1842
|
-
weekData = getValue('days.' + IntlBase.monthIndex[len], dependable.dateObject);
|
|
1792
|
+
weekData = getValue('days.' + IntlBase.monthIndex["" + len], dependable.dateObject);
|
|
1843
1793
|
}
|
|
1844
1794
|
else {
|
|
1845
|
-
|
|
1846
|
-
weekData = dependable.dateObject[IntlBase.days][standalone$1][IntlBase.monthIndex[len]];
|
|
1795
|
+
weekData = dependable.dateObject["" + IntlBase.days]["" + standalone$1][IntlBase.monthIndex["" + len]];
|
|
1847
1796
|
}
|
|
1848
|
-
// eslint-disable-next-line
|
|
1849
1797
|
var weekObject = ParserBase.reverseObject(weekData);
|
|
1850
|
-
// tslint:enable
|
|
1851
1798
|
regexString += '(' + Object.keys(weekObject).join('|') + ')';
|
|
1852
1799
|
break;
|
|
1800
|
+
}
|
|
1853
1801
|
case 'M':
|
|
1854
1802
|
case 'L':
|
|
1855
1803
|
case 'd':
|
|
@@ -1862,17 +1810,13 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1862
1810
|
if ((char === 'M' || char === 'L') && len > 2) {
|
|
1863
1811
|
var monthData = void 0;
|
|
1864
1812
|
if (isBlazor()) {
|
|
1865
|
-
|
|
1866
|
-
monthData = getValue('months.' + IntlBase.monthIndex[len], dependable.dateObject);
|
|
1813
|
+
monthData = getValue('months.' + IntlBase.monthIndex["" + len], dependable.dateObject);
|
|
1867
1814
|
}
|
|
1868
1815
|
else {
|
|
1869
|
-
|
|
1870
|
-
monthData = dependable.dateObject[month][standalone$1][IntlBase.monthIndex[len]];
|
|
1816
|
+
monthData = dependable.dateObject["" + month]["" + standalone$1][IntlBase.monthIndex["" + len]];
|
|
1871
1817
|
}
|
|
1872
|
-
|
|
1873
|
-
parseOptions[charKey]
|
|
1874
|
-
// eslint-disable-next-line
|
|
1875
|
-
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + ')';
|
|
1818
|
+
parseOptions["" + charKey] = ParserBase.reverseObject(monthData);
|
|
1819
|
+
regexString += '(' + Object.keys(parseOptions["" + charKey]).join('|') + ')';
|
|
1876
1820
|
}
|
|
1877
1821
|
else if (char === 'f') {
|
|
1878
1822
|
if (len > 3) {
|
|
@@ -1889,11 +1833,11 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1889
1833
|
parseOptions.hour12 = true;
|
|
1890
1834
|
}
|
|
1891
1835
|
break;
|
|
1892
|
-
case 'W':
|
|
1893
|
-
// eslint-disable-next-line
|
|
1836
|
+
case 'W': {
|
|
1894
1837
|
var opt = len === 1 ? '?' : '';
|
|
1895
1838
|
regexString += '(' + nRegx + opt + nRegx + ')';
|
|
1896
1839
|
break;
|
|
1840
|
+
}
|
|
1897
1841
|
case 'y':
|
|
1898
1842
|
canUpdate = isNumber = true;
|
|
1899
1843
|
if (len === 2) {
|
|
@@ -1903,48 +1847,41 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1903
1847
|
regexString += '(' + nRegx + '{' + len + ',})';
|
|
1904
1848
|
}
|
|
1905
1849
|
break;
|
|
1906
|
-
case 'a':
|
|
1850
|
+
case 'a': {
|
|
1907
1851
|
canUpdate = true;
|
|
1908
|
-
// eslint-disable-next-line
|
|
1909
1852
|
var periodValur = isBlazor() ?
|
|
1910
1853
|
getValue('dayPeriods', dependable.dateObject) :
|
|
1911
1854
|
getValue('dayPeriods.format.wide', dependable.dateObject);
|
|
1912
|
-
|
|
1913
|
-
parseOptions[charKey]
|
|
1914
|
-
// eslint-disable-next-line
|
|
1915
|
-
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + ')';
|
|
1855
|
+
parseOptions["" + charKey] = ParserBase.reverseObject(periodValur);
|
|
1856
|
+
regexString += '(' + Object.keys(parseOptions["" + charKey]).join('|') + ')';
|
|
1916
1857
|
break;
|
|
1917
|
-
|
|
1858
|
+
}
|
|
1859
|
+
case 'G': {
|
|
1918
1860
|
canUpdate = true;
|
|
1919
|
-
// eslint-disable-next-line
|
|
1920
1861
|
var eText = (len <= 3) ? 'eraAbbr' : (len === 4) ? 'eraNames' : 'eraNarrow';
|
|
1921
|
-
|
|
1922
|
-
parseOptions[charKey] = ParserBase.reverseObject(isBlazor() ?
|
|
1862
|
+
parseOptions["" + charKey] = ParserBase.reverseObject(isBlazor() ?
|
|
1923
1863
|
getValue('eras', dependable.dateObject) : getValue('eras.' + eText, dependable.dateObject));
|
|
1924
|
-
|
|
1925
|
-
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + '?)';
|
|
1864
|
+
regexString += '(' + Object.keys(parseOptions["" + charKey]).join('|') + '?)';
|
|
1926
1865
|
break;
|
|
1927
|
-
|
|
1928
|
-
|
|
1866
|
+
}
|
|
1867
|
+
case 'z': {
|
|
1929
1868
|
var tval = new Date().getTimezoneOffset();
|
|
1930
1869
|
canUpdate = (tval !== 0);
|
|
1931
|
-
|
|
1932
|
-
parseOptions[charKey]
|
|
1933
|
-
// eslint-disable-next-line
|
|
1934
|
-
var tzone = parseOptions[charKey];
|
|
1870
|
+
parseOptions["" + charKey] = getValue('dates.timeZoneNames', dependable.parserObject);
|
|
1871
|
+
var tzone = parseOptions["" + charKey];
|
|
1935
1872
|
hourOnly = (len < 4);
|
|
1936
|
-
// eslint-disable-next-line
|
|
1937
1873
|
var hpattern = hourOnly ? '+H;-H' : tzone.hourFormat;
|
|
1938
1874
|
hpattern = hpattern.replace(/:/g, numMapper.timeSeparator);
|
|
1939
1875
|
regexString += '(' + this.parseTimeZoneRegx(hpattern, tzone, nRegx) + ')?';
|
|
1940
1876
|
isgmtTraversed = true;
|
|
1941
1877
|
zCorrectTemp = hourOnly ? 6 : 12;
|
|
1942
1878
|
break;
|
|
1943
|
-
|
|
1944
|
-
|
|
1879
|
+
}
|
|
1880
|
+
case '\'': {
|
|
1945
1881
|
var iString = str.replace(/'/g, '');
|
|
1946
1882
|
regexString += '(' + iString + ')?';
|
|
1947
1883
|
break;
|
|
1884
|
+
}
|
|
1948
1885
|
default:
|
|
1949
1886
|
regexString += '([\\D])';
|
|
1950
1887
|
break;
|
|
@@ -1976,7 +1913,6 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1976
1913
|
if (is2DigitYear) {
|
|
1977
1914
|
tYear = parseInt((dobj.year + '').slice(0, 2) + ystrig, 10);
|
|
1978
1915
|
}
|
|
1979
|
-
// tslint:disable-next-line
|
|
1980
1916
|
var dateObject = HijriParser.toGregorian(tYear || dobj.year, tMonth || dobj.month, tDate || dobj.date);
|
|
1981
1917
|
parsedDateParts.year = dateObject.getFullYear();
|
|
1982
1918
|
parsedDateParts.month = dateObject.getMonth() + 1;
|
|
@@ -1985,7 +1921,6 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1985
1921
|
return _this.getDateObject(parsedDateParts);
|
|
1986
1922
|
};
|
|
1987
1923
|
};
|
|
1988
|
-
/* tslint:disable */
|
|
1989
1924
|
/**
|
|
1990
1925
|
* Returns date object for provided date options
|
|
1991
1926
|
*
|
|
@@ -2010,8 +1945,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2010
1945
|
}
|
|
2011
1946
|
for (var _i = 0, tKeys_1 = tKeys; _i < tKeys_1.length; _i++) {
|
|
2012
1947
|
var key = tKeys_1[_i];
|
|
2013
|
-
|
|
2014
|
-
var tValue = options[key];
|
|
1948
|
+
var tValue = options["" + key];
|
|
2015
1949
|
if (isUndefined(tValue) && key === 'day') {
|
|
2016
1950
|
res.setDate(1);
|
|
2017
1951
|
}
|
|
@@ -2023,8 +1957,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2023
1957
|
}
|
|
2024
1958
|
var pDate = res.getDate();
|
|
2025
1959
|
res.setDate(1);
|
|
2026
|
-
|
|
2027
|
-
res[timeSetter$1[key]](tValue);
|
|
1960
|
+
res[timeSetter$1["" + key]](tValue);
|
|
2028
1961
|
var lDate = new Date(res.getFullYear(), tValue + 1, 0).getDate();
|
|
2029
1962
|
res.setDate(pDate < lDate ? pDate : lDate);
|
|
2030
1963
|
}
|
|
@@ -2035,8 +1968,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2035
1968
|
return null;
|
|
2036
1969
|
}
|
|
2037
1970
|
}
|
|
2038
|
-
|
|
2039
|
-
res[timeSetter$1[key]](tValue);
|
|
1971
|
+
res["" + timeSetter$1["" + key]](tValue);
|
|
2040
1972
|
}
|
|
2041
1973
|
}
|
|
2042
1974
|
}
|
|
@@ -2078,8 +2010,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2078
2010
|
var curObject = parseOptions.evalposition["" + prop];
|
|
2079
2011
|
var matchString = matches[curObject.pos];
|
|
2080
2012
|
if (curObject.isNumber) {
|
|
2081
|
-
|
|
2082
|
-
retOptions[prop] = this.internalNumberParser(matchString, num);
|
|
2013
|
+
retOptions["" + prop] = this.internalNumberParser(matchString, num);
|
|
2083
2014
|
}
|
|
2084
2015
|
else {
|
|
2085
2016
|
if (prop === 'timeZone' && !isUndefined(matchString)) {
|
|
@@ -2100,14 +2031,11 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2100
2031
|
}
|
|
2101
2032
|
else {
|
|
2102
2033
|
var cultureOptions = ['en-US', 'en-MH', 'en-MP'];
|
|
2103
|
-
// eslint-disable-next-line
|
|
2104
2034
|
matchString = ((prop === 'month') && (!parseOptions.isIslamic) && (parseOptions.culture === 'en' || parseOptions.culture === 'en-GB' || parseOptions.culture === 'en-US'))
|
|
2105
2035
|
? matchString[0].toUpperCase() + matchString.substring(1).toLowerCase() : matchString;
|
|
2106
|
-
// eslint-disable-next-line
|
|
2107
2036
|
matchString = ((prop !== 'month') && (prop === 'designator') && parseOptions.culture && parseOptions.culture.indexOf('en-') !== -1 && cultureOptions.indexOf(parseOptions.culture) === -1)
|
|
2108
2037
|
? matchString.toLowerCase() : matchString;
|
|
2109
|
-
|
|
2110
|
-
retOptions[prop] = parseOptions[prop][matchString];
|
|
2038
|
+
retOptions["" + prop] = parseOptions["" + prop]["" + matchString];
|
|
2111
2039
|
}
|
|
2112
2040
|
}
|
|
2113
2041
|
}
|
|
@@ -2143,7 +2071,6 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2143
2071
|
var pattern = tZone.gmtFormat;
|
|
2144
2072
|
var ret;
|
|
2145
2073
|
var cRegex = '(' + nRegex + ')' + '(' + nRegex + ')';
|
|
2146
|
-
var splitStr;
|
|
2147
2074
|
ret = hourFormat.replace('+', '\\+');
|
|
2148
2075
|
if (hourFormat.indexOf('HH') !== -1) {
|
|
2149
2076
|
ret = ret.replace(/HH|mm/g, '(' + cRegex + ')');
|
|
@@ -2151,8 +2078,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2151
2078
|
else {
|
|
2152
2079
|
ret = ret.replace(/H|m/g, '(' + cRegex + '?)');
|
|
2153
2080
|
}
|
|
2154
|
-
|
|
2155
|
-
splitStr = (ret.split(';').map(function (str) {
|
|
2081
|
+
var splitStr = (ret.split(';').map(function (str) {
|
|
2156
2082
|
return pattern.replace('{0}', str);
|
|
2157
2083
|
}));
|
|
2158
2084
|
ret = splitStr.join('|') + '|' + tZone.gmtZeroFormat;
|
|
@@ -2181,9 +2107,8 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2181
2107
|
return DateParser;
|
|
2182
2108
|
}());
|
|
2183
2109
|
|
|
2184
|
-
var regExp
|
|
2185
|
-
|
|
2186
|
-
var parseRegex = new regExp$1('^([^0-9]*)' + '(([0-9,]*[0-9]+)(\.[0-9]+)?)' + '([Ee][+-]?[0-9]+)?([^0-9]*)$');
|
|
2110
|
+
var regExp = RegExp;
|
|
2111
|
+
var parseRegex = new regExp('^([^0-9]*)' + '(([0-9,]*[0-9]+)(.[0-9]+)?)' + '([Ee][+-]?[0-9]+)?([^0-9]*)$');
|
|
2187
2112
|
var groupRegex = /,/g;
|
|
2188
2113
|
var keys = ['minusSign', 'infinity'];
|
|
2189
2114
|
/**
|
|
@@ -2206,7 +2131,6 @@ var NumberParser = /** @__PURE__ @class */ (function () {
|
|
|
2206
2131
|
var _this = this;
|
|
2207
2132
|
var dependable = IntlBase.getDependables(cldr, culture, '', true);
|
|
2208
2133
|
var parseOptions = { custom: true };
|
|
2209
|
-
var numOptions;
|
|
2210
2134
|
if ((IntlBase.formatRegex.test(option.format)) || !(option.format)) {
|
|
2211
2135
|
extend(parseOptions, IntlBase.getProperNumericSkeleton(option.format || 'N'));
|
|
2212
2136
|
parseOptions.custom = false;
|
|
@@ -2220,10 +2144,8 @@ var NumberParser = /** @__PURE__ @class */ (function () {
|
|
|
2220
2144
|
extend(parseOptions, IntlBase.customFormat(option.format, null, null));
|
|
2221
2145
|
}
|
|
2222
2146
|
var numbers = getValue('numbers', dependable.parserObject);
|
|
2223
|
-
|
|
2224
|
-
numOptions = ParserBase.getCurrentNumericOptions(dependable.parserObject, ParserBase.getNumberingSystem(cldr), true, isBlazor());
|
|
2147
|
+
var numOptions = ParserBase.getCurrentNumericOptions(dependable.parserObject, ParserBase.getNumberingSystem(cldr), true, isBlazor());
|
|
2225
2148
|
parseOptions.symbolRegex = ParserBase.getSymbolRegex(Object.keys(numOptions.symbolMatch));
|
|
2226
|
-
// eslint-disable-next-line
|
|
2227
2149
|
parseOptions.infinity = numOptions.symbolNumberSystem[keys[1]];
|
|
2228
2150
|
var symbolpattern;
|
|
2229
2151
|
if (!isBlazor()) {
|
|
@@ -2316,6 +2238,7 @@ var NumberParser = /** @__PURE__ @class */ (function () {
|
|
|
2316
2238
|
return NumberParser;
|
|
2317
2239
|
}());
|
|
2318
2240
|
|
|
2241
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
|
|
2319
2242
|
var Observer = /** @__PURE__ @class */ (function () {
|
|
2320
2243
|
function Observer(context) {
|
|
2321
2244
|
this.ranArray = [];
|
|
@@ -2456,7 +2379,6 @@ var Observer = /** @__PURE__ @class */ (function () {
|
|
|
2456
2379
|
}
|
|
2457
2380
|
}
|
|
2458
2381
|
};
|
|
2459
|
-
// eslint-disable-next-line
|
|
2460
2382
|
Observer.prototype.dateReviver = function (key, value) {
|
|
2461
2383
|
var dPattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;
|
|
2462
2384
|
if (isBlazor && typeof value === 'string' && value.match(dPattern) !== null) {
|
|
@@ -2487,12 +2409,10 @@ var Observer = /** @__PURE__ @class */ (function () {
|
|
|
2487
2409
|
* @returns {void} ?
|
|
2488
2410
|
*/
|
|
2489
2411
|
Observer.prototype.offIntlEvents = function () {
|
|
2490
|
-
// eslint-disable-next-line
|
|
2491
2412
|
var eventsArr = this.boundedEvents['notifyExternalChange'];
|
|
2492
2413
|
if (eventsArr) {
|
|
2493
2414
|
for (var i = 0; i < eventsArr.length; i++) {
|
|
2494
|
-
|
|
2495
|
-
var curContext = eventsArr["" + i].context;
|
|
2415
|
+
var curContext = eventsArr[parseInt(i.toString(), 10)].context;
|
|
2496
2416
|
if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) {
|
|
2497
2417
|
this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
|
|
2498
2418
|
i--;
|
|
@@ -2510,8 +2430,7 @@ var Observer = /** @__PURE__ @class */ (function () {
|
|
|
2510
2430
|
* @returns {boolean} ?
|
|
2511
2431
|
*/
|
|
2512
2432
|
Observer.prototype.notExist = function (prop) {
|
|
2513
|
-
|
|
2514
|
-
return this.boundedEvents.hasOwnProperty(prop) === false || this.boundedEvents[prop].length <= 0;
|
|
2433
|
+
return Object.prototype.hasOwnProperty.call(this.boundedEvents, prop) === false || this.boundedEvents["" + prop].length <= 0;
|
|
2515
2434
|
};
|
|
2516
2435
|
/**
|
|
2517
2436
|
* Returns if the handler is present.
|
|
@@ -2558,7 +2477,7 @@ var defaultCulture = 'en-US';
|
|
|
2558
2477
|
* @private
|
|
2559
2478
|
*/
|
|
2560
2479
|
var defaultCurrencyCode = 'USD';
|
|
2561
|
-
var mapper = ['numericObject', 'dateObject'];
|
|
2480
|
+
var mapper$1 = ['numericObject', 'dateObject'];
|
|
2562
2481
|
/**
|
|
2563
2482
|
* Internationalization class provides support to parse and format the number and date object to the desired format.
|
|
2564
2483
|
* ```typescript
|
|
@@ -2782,10 +2701,8 @@ function enableRtl(status) {
|
|
|
2782
2701
|
* @private
|
|
2783
2702
|
*/
|
|
2784
2703
|
function getNumericObject(locale, type) {
|
|
2785
|
-
|
|
2786
|
-
var
|
|
2787
|
-
// eslint-disable-next-line
|
|
2788
|
-
var dateObject = IntlBase.getDependables(cldrData, locale, '')[mapper[1]];
|
|
2704
|
+
var numObject = IntlBase.getDependables(cldrData, locale, '', true)[mapper$1[0]];
|
|
2705
|
+
var dateObject = IntlBase.getDependables(cldrData, locale, '')[mapper$1[1]];
|
|
2789
2706
|
var numSystem = getValue('defaultNumberingSystem', numObject);
|
|
2790
2707
|
var symbPattern = isBlazor() ? getValue('numberSymbols', numObject) : getValue('symbols-numberSystem-' + numSystem, numObject);
|
|
2791
2708
|
var pattern = IntlBase.getSymbolPattern(type || 'decimal', numSystem, numObject, false);
|
|
@@ -2801,9 +2718,7 @@ function getNumericObject(locale, type) {
|
|
|
2801
2718
|
* @private
|
|
2802
2719
|
*/
|
|
2803
2720
|
function getNumberDependable(locale, currency) {
|
|
2804
|
-
// eslint-disable-next-line
|
|
2805
2721
|
var numObject = IntlBase.getDependables(cldrData, locale, '', true);
|
|
2806
|
-
// eslint-disable-next-line
|
|
2807
2722
|
return IntlBase.getCurrencySymbol(numObject.numericObject, currency);
|
|
2808
2723
|
}
|
|
2809
2724
|
/**
|
|
@@ -2815,11 +2730,11 @@ function getNumberDependable(locale, currency) {
|
|
|
2815
2730
|
* @private
|
|
2816
2731
|
*/
|
|
2817
2732
|
function getDefaultDateObject(mode) {
|
|
2818
|
-
|
|
2819
|
-
return IntlBase.getDependables(cldrData, '', mode, false)[mapper[1]];
|
|
2733
|
+
return IntlBase.getDependables(cldrData, '', mode, false)[mapper$1[1]];
|
|
2820
2734
|
}
|
|
2821
2735
|
|
|
2822
|
-
|
|
2736
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
|
|
2737
|
+
var regExp$1 = RegExp;
|
|
2823
2738
|
var blazorCultureFormats = {
|
|
2824
2739
|
'en-US': {
|
|
2825
2740
|
'd': 'M/d/y',
|
|
@@ -2844,13 +2759,13 @@ var blazorCultureFormats = {
|
|
|
2844
2759
|
/**
|
|
2845
2760
|
* Date base common constants and function for date parser and formatter.
|
|
2846
2761
|
*/
|
|
2847
|
-
// eslint-disable-next-line
|
|
2762
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
2848
2763
|
var IntlBase;
|
|
2849
2764
|
(function (IntlBase) {
|
|
2850
|
-
|
|
2851
|
-
// tslint:disable-next-line:max-line-length.
|
|
2765
|
+
// eslint-disable-next-line security/detect-unsafe-regex
|
|
2852
2766
|
IntlBase.negativeDataRegex = /^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2853
|
-
|
|
2767
|
+
// eslint-disable-next-line security/detect-unsafe-regex
|
|
2768
|
+
IntlBase.customRegex = /^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0# ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2854
2769
|
IntlBase.latnParseRegex = /0|1|2|3|4|5|6|7|8|9/g;
|
|
2855
2770
|
var fractionRegex = /[0-9]/g;
|
|
2856
2771
|
IntlBase.defaultCurrency = '$';
|
|
@@ -2881,8 +2796,8 @@ var IntlBase;
|
|
|
2881
2796
|
'fri': 5,
|
|
2882
2797
|
'sat': 6
|
|
2883
2798
|
};
|
|
2884
|
-
IntlBase.formatRegex = new regExp(
|
|
2885
|
-
IntlBase.currencyFormatRegex = new regExp(
|
|
2799
|
+
IntlBase.formatRegex = new regExp$1('(^[ncpae]{1})([0-1]?[0-9]|20)?$', 'i');
|
|
2800
|
+
IntlBase.currencyFormatRegex = new regExp$1('(^[ca]{1})([0-1]?[0-9]|20)?$', 'i');
|
|
2886
2801
|
IntlBase.curWithoutNumberRegex = /(c|a)$/ig;
|
|
2887
2802
|
var typeMapper = {
|
|
2888
2803
|
'$': 'isCurrency',
|
|
@@ -2893,7 +2808,6 @@ var IntlBase;
|
|
|
2893
2808
|
};
|
|
2894
2809
|
IntlBase.dateParseRegex = /([a-z])\1*|'([^']|'')+'|''|./gi;
|
|
2895
2810
|
IntlBase.basicPatterns = ['short', 'medium', 'long', 'full'];
|
|
2896
|
-
/* tslint:disable:quotemark */
|
|
2897
2811
|
IntlBase.defaultObject = {
|
|
2898
2812
|
'dates': {
|
|
2899
2813
|
'calendars': {
|
|
@@ -3444,7 +3358,6 @@ var IntlBase;
|
|
|
3444
3358
|
}
|
|
3445
3359
|
}
|
|
3446
3360
|
};
|
|
3447
|
-
/* tslint:enable:quotemark */
|
|
3448
3361
|
IntlBase.monthIndex = {
|
|
3449
3362
|
3: 'abbreviated',
|
|
3450
3363
|
4: 'wide',
|
|
@@ -3588,7 +3501,7 @@ var IntlBase;
|
|
|
3588
3501
|
var ret = {};
|
|
3589
3502
|
var pattern = matches[1].toUpperCase();
|
|
3590
3503
|
ret.isAccount = (pattern === 'A');
|
|
3591
|
-
ret.type = IntlBase.patternMatcher[pattern];
|
|
3504
|
+
ret.type = IntlBase.patternMatcher["" + pattern];
|
|
3592
3505
|
if (skeleton.length > 1) {
|
|
3593
3506
|
ret.fractionDigits = parseInt(matches[2], 10);
|
|
3594
3507
|
}
|
|
@@ -3675,7 +3588,7 @@ var IntlBase;
|
|
|
3675
3588
|
var formatSplit = format.split(';');
|
|
3676
3589
|
var data = ['pData', 'nData', 'zeroData'];
|
|
3677
3590
|
for (var i = 0; i < formatSplit.length; i++) {
|
|
3678
|
-
options[data[i]] = customNumberFormat(formatSplit[i], dOptions, obj);
|
|
3591
|
+
options["" + data[parseInt(i.toString(), 10)]] = customNumberFormat(formatSplit[parseInt(i.toString(), 10)], dOptions, obj);
|
|
3679
3592
|
}
|
|
3680
3593
|
if (isNullOrUndefined(options.nData)) {
|
|
3681
3594
|
options.nData = extend({}, options.pData);
|
|
@@ -3703,8 +3616,8 @@ var IntlBase;
|
|
|
3703
3616
|
cOptions.nlead = pattern[1];
|
|
3704
3617
|
cOptions.nend = pattern[10];
|
|
3705
3618
|
var integerPart = pattern[6];
|
|
3706
|
-
var spaceCapture = integerPart.match(
|
|
3707
|
-
var spaceGrouping = integerPart.replace(
|
|
3619
|
+
var spaceCapture = integerPart.match(/ $/g) ? true : false;
|
|
3620
|
+
var spaceGrouping = integerPart.replace(/ $/g, '').indexOf(' ') !== -1;
|
|
3708
3621
|
cOptions.useGrouping = integerPart.indexOf(',') !== -1 || spaceGrouping;
|
|
3709
3622
|
integerPart = integerPart.replace(/,/g, '');
|
|
3710
3623
|
var fractionPart = pattern[7];
|
|
@@ -3758,8 +3671,8 @@ var IntlBase;
|
|
|
3758
3671
|
var part = parts[parseInt(i.toString(), 10)];
|
|
3759
3672
|
var loc = part.indexOf(actual);
|
|
3760
3673
|
if ((loc !== -1) && ((loc < part.indexOf('\'')) || (loc > part.lastIndexOf('\'')))) {
|
|
3761
|
-
options[typeMapper[i]] = part.substr(0, loc) + symbol + part.substr(loc + 1);
|
|
3762
|
-
options[typeMapper[actual]] = true;
|
|
3674
|
+
options["" + typeMapper[parseInt(i.toString(), 10)]] = part.substr(0, loc) + symbol + part.substr(loc + 1);
|
|
3675
|
+
options["" + typeMapper["" + actual]] = true;
|
|
3763
3676
|
options.type = options.isCurrency ? 'currency' : 'percent';
|
|
3764
3677
|
break;
|
|
3765
3678
|
}
|
|
@@ -3775,7 +3688,7 @@ var IntlBase;
|
|
|
3775
3688
|
* @returns {string} ?
|
|
3776
3689
|
*/
|
|
3777
3690
|
function getDateSeparator(dateObj) {
|
|
3778
|
-
var value = (getValue('dateFormats.short', dateObj) || '').match(/[
|
|
3691
|
+
var value = (getValue('dateFormats.short', dateObj) || '').match(/[dM]([^dM])[dM]/i);
|
|
3779
3692
|
return value ? value[1] : '/';
|
|
3780
3693
|
}
|
|
3781
3694
|
IntlBase.getDateSeparator = getDateSeparator;
|
|
@@ -3797,7 +3710,7 @@ var IntlBase;
|
|
|
3797
3710
|
var actualPattern = options.format || getResultantPattern(options.skeleton, dependable.dateObject, options.type);
|
|
3798
3711
|
if (isExcelFormat) {
|
|
3799
3712
|
actualPattern = actualPattern.replace(patternRegex, function (pattern) {
|
|
3800
|
-
return patternMatch[pattern];
|
|
3713
|
+
return patternMatch["" + pattern];
|
|
3801
3714
|
});
|
|
3802
3715
|
if (actualPattern.indexOf('z') !== -1) {
|
|
3803
3716
|
var tLength = actualPattern.match(/z/g).length;
|
|
@@ -3840,6 +3753,7 @@ var IntlBase;
|
|
|
3840
3753
|
}
|
|
3841
3754
|
return actual;
|
|
3842
3755
|
}
|
|
3756
|
+
IntlBase.processSymbol = processSymbol;
|
|
3843
3757
|
/**
|
|
3844
3758
|
* Returns Native Number pattern
|
|
3845
3759
|
*
|
|
@@ -4098,7 +4012,7 @@ var Ajax = /** @__PURE__ @class */ (function () {
|
|
|
4098
4012
|
* Send the request to server.
|
|
4099
4013
|
*
|
|
4100
4014
|
* @param {any} data - To send the user data
|
|
4101
|
-
* @
|
|
4015
|
+
* @returns {Promise} ?
|
|
4102
4016
|
*/
|
|
4103
4017
|
Ajax.prototype.send = function (data) {
|
|
4104
4018
|
var _this = this;
|
|
@@ -4193,22 +4107,19 @@ var Ajax = /** @__PURE__ @class */ (function () {
|
|
|
4193
4107
|
* @returns {string} ?
|
|
4194
4108
|
*/
|
|
4195
4109
|
Ajax.prototype.getResponseHeader = function (key) {
|
|
4196
|
-
var responseHeaders;
|
|
4197
|
-
var header;
|
|
4198
|
-
// eslint-disable-next-line
|
|
4199
|
-
responseHeaders = {};
|
|
4110
|
+
var responseHeaders = {};
|
|
4200
4111
|
var headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
|
|
4201
4112
|
while (headers) {
|
|
4202
4113
|
responseHeaders[headers[1].toLowerCase()] = headers[2];
|
|
4203
4114
|
headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
|
|
4204
4115
|
}
|
|
4205
|
-
|
|
4206
|
-
header = responseHeaders[key.toLowerCase()];
|
|
4116
|
+
var header = responseHeaders[key.toLowerCase()];
|
|
4207
4117
|
return isNullOrUndefined(header) ? null : header;
|
|
4208
4118
|
};
|
|
4209
4119
|
return Ajax;
|
|
4210
4120
|
}());
|
|
4211
4121
|
|
|
4122
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4212
4123
|
/**
|
|
4213
4124
|
* The Fetch class provides a way to make asynchronous network requests, typically to retrieve resources from a server.
|
|
4214
4125
|
* ```typescript
|
|
@@ -4298,11 +4209,9 @@ var Fetch = /** @__PURE__ @class */ (function () {
|
|
|
4298
4209
|
}
|
|
4299
4210
|
}
|
|
4300
4211
|
return response[responseType]();
|
|
4301
|
-
// eslint-disable-next-line
|
|
4302
4212
|
}).then(function (data) {
|
|
4303
4213
|
_this.triggerEvent(_this['onSuccess'], data, _this);
|
|
4304
4214
|
return data;
|
|
4305
|
-
// eslint-disable-next-line
|
|
4306
4215
|
}).catch(function (error) {
|
|
4307
4216
|
var returnVal = {};
|
|
4308
4217
|
if (_this.emitError) {
|
|
@@ -4324,6 +4233,7 @@ var Fetch = /** @__PURE__ @class */ (function () {
|
|
|
4324
4233
|
return Fetch;
|
|
4325
4234
|
}());
|
|
4326
4235
|
|
|
4236
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4327
4237
|
var REGX_MOBILE = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i;
|
|
4328
4238
|
var REGX_IE = /msie|trident/i;
|
|
4329
4239
|
var REGX_IE11 = /Trident\/7\./;
|
|
@@ -4366,8 +4276,7 @@ var Browser = /** @__PURE__ @class */ (function () {
|
|
|
4366
4276
|
browserInfo.name = (clientInfo[1].toLowerCase() === 'crios' ? 'chrome' : browserInfo.name);
|
|
4367
4277
|
browserInfo.version = clientInfo[2];
|
|
4368
4278
|
browserInfo.culture.name = browserInfo.culture.language = navigator.language;
|
|
4369
|
-
|
|
4370
|
-
if (!!Browser.userAgent.match(REGX_IE11)) {
|
|
4279
|
+
if (Browser.userAgent.match(REGX_IE11)) {
|
|
4371
4280
|
browserInfo.name = 'msie';
|
|
4372
4281
|
break;
|
|
4373
4282
|
}
|
|
@@ -4384,10 +4293,9 @@ var Browser = /** @__PURE__ @class */ (function () {
|
|
|
4384
4293
|
* To get events from the browser
|
|
4385
4294
|
*
|
|
4386
4295
|
* @param {string} event - type of event triggered.
|
|
4387
|
-
* @returns {
|
|
4296
|
+
* @returns {string} ?
|
|
4388
4297
|
*/
|
|
4389
4298
|
Browser.getEvent = function (event) {
|
|
4390
|
-
// eslint-disable-next-line
|
|
4391
4299
|
var events = {
|
|
4392
4300
|
start: {
|
|
4393
4301
|
isPointer: 'pointerdown', isTouch: 'touchstart', isDevice: 'mousedown'
|
|
@@ -4813,12 +4721,8 @@ var EventHandler = /** @__PURE__ @class */ (function () {
|
|
|
4813
4721
|
* @returns {void} ?
|
|
4814
4722
|
*/
|
|
4815
4723
|
EventHandler.clearEvents = function (element) {
|
|
4816
|
-
var eventData;
|
|
4817
|
-
var copyData;
|
|
4818
|
-
// eslint-disable-next-line
|
|
4819
|
-
eventData = EventHandler.addOrGetEventData(element);
|
|
4820
|
-
// eslint-disable-next-line
|
|
4821
|
-
copyData = extend([], copyData, eventData);
|
|
4724
|
+
var eventData = EventHandler.addOrGetEventData(element);
|
|
4725
|
+
var copyData = extend([], undefined, eventData);
|
|
4822
4726
|
for (var i = 0; i < copyData.length; i++) {
|
|
4823
4727
|
var parseValue = copyData[parseInt(i.toString(), 10)];
|
|
4824
4728
|
element.removeEventListener(parseValue.name, parseValue.debounce);
|
|
@@ -4846,9 +4750,7 @@ var EventHandler = /** @__PURE__ @class */ (function () {
|
|
|
4846
4750
|
return EventHandler;
|
|
4847
4751
|
}());
|
|
4848
4752
|
|
|
4849
|
-
|
|
4850
|
-
* Functions related to dom operations.
|
|
4851
|
-
*/
|
|
4753
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4852
4754
|
var SVG_REG = /^svg|^path|^g/;
|
|
4853
4755
|
/**
|
|
4854
4756
|
* Function to create Html element.
|
|
@@ -5049,7 +4951,6 @@ function executeScript(ele) {
|
|
|
5049
4951
|
* @returns {any} ?
|
|
5050
4952
|
* @private
|
|
5051
4953
|
*/
|
|
5052
|
-
// eslint-disable-next-line
|
|
5053
4954
|
function detach(element) {
|
|
5054
4955
|
var parentNode = element.parentNode;
|
|
5055
4956
|
if (parentNode) {
|
|
@@ -5076,7 +4977,6 @@ function remove(element) {
|
|
|
5076
4977
|
* @returns {Element} ?
|
|
5077
4978
|
* @private
|
|
5078
4979
|
*/
|
|
5079
|
-
// eslint-disable-next-line
|
|
5080
4980
|
function attributes(element, attributes) {
|
|
5081
4981
|
var keys = Object.keys(attributes);
|
|
5082
4982
|
var ele = element;
|
|
@@ -5104,7 +5004,6 @@ function attributes(element, attributes) {
|
|
|
5104
5004
|
* @returns {any} ?
|
|
5105
5005
|
* @private
|
|
5106
5006
|
*/
|
|
5107
|
-
// eslint-disable-next-line
|
|
5108
5007
|
function select(selector, context, needsVDOM) {
|
|
5109
5008
|
if (context === void 0) { context = document; }
|
|
5110
5009
|
selector = querySelectId(selector);
|
|
@@ -5119,7 +5018,6 @@ function select(selector, context, needsVDOM) {
|
|
|
5119
5018
|
* @returns {HTMLElement[]} ?
|
|
5120
5019
|
* @private
|
|
5121
5020
|
*/
|
|
5122
|
-
// eslint-disable-next-line
|
|
5123
5021
|
function selectAll(selector, context, needsVDOM) {
|
|
5124
5022
|
if (context === void 0) { context = document; }
|
|
5125
5023
|
selector = querySelectId(selector);
|
|
@@ -5236,8 +5134,7 @@ function getAttributeOrDefault(element, property, value) {
|
|
|
5236
5134
|
function setStyleAttribute(element, attrs) {
|
|
5237
5135
|
if (attrs !== undefined) {
|
|
5238
5136
|
Object.keys(attrs).forEach(function (key) {
|
|
5239
|
-
|
|
5240
|
-
element.style[key] = attrs[key];
|
|
5137
|
+
element.style["" + key] = attrs["" + key];
|
|
5241
5138
|
});
|
|
5242
5139
|
}
|
|
5243
5140
|
}
|
|
@@ -5263,7 +5160,6 @@ function classList(element, addClasses, removeClasses) {
|
|
|
5263
5160
|
* @private
|
|
5264
5161
|
*/
|
|
5265
5162
|
function matches(element, selector) {
|
|
5266
|
-
// eslint-disable-next-line
|
|
5267
5163
|
var matches = element.matches || element.msMatchesSelector || element.webkitMatchesSelector;
|
|
5268
5164
|
if (matches) {
|
|
5269
5165
|
return matches.call(element, selector);
|
|
@@ -5291,11 +5187,10 @@ function includeInnerHTML(ele, innerHTML) {
|
|
|
5291
5187
|
* @returns {any} ?
|
|
5292
5188
|
* @private
|
|
5293
5189
|
*/
|
|
5294
|
-
// eslint-disable-next-line
|
|
5295
5190
|
function containsClass(ele, className) {
|
|
5296
5191
|
if (isObject(ele)) {
|
|
5297
|
-
|
|
5298
|
-
return new
|
|
5192
|
+
var regExp = RegExp;
|
|
5193
|
+
return new regExp('\\b' + className + '\\b', 'i').test(ele.attributes.className);
|
|
5299
5194
|
}
|
|
5300
5195
|
else {
|
|
5301
5196
|
return ele.classList.contains(className);
|
|
@@ -5309,7 +5204,6 @@ function containsClass(ele, className) {
|
|
|
5309
5204
|
* @returns {any} ?
|
|
5310
5205
|
* @private
|
|
5311
5206
|
*/
|
|
5312
|
-
// eslint-disable-next-line
|
|
5313
5207
|
function cloneNode(element, deep) {
|
|
5314
5208
|
if (isObject(element)) {
|
|
5315
5209
|
if (deep) {
|
|
@@ -5321,12 +5215,13 @@ function cloneNode(element, deep) {
|
|
|
5321
5215
|
}
|
|
5322
5216
|
}
|
|
5323
5217
|
|
|
5218
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5324
5219
|
var isColEName = new RegExp(']');
|
|
5325
|
-
/* tslint:enable:no-any */
|
|
5326
5220
|
/**
|
|
5327
5221
|
* Base library module is common module for Framework modules like touch,keyboard and etc.,
|
|
5328
5222
|
*
|
|
5329
5223
|
* @private
|
|
5224
|
+
* @returns {void} ?
|
|
5330
5225
|
*/
|
|
5331
5226
|
var Base = /** @__PURE__ @class */ (function () {
|
|
5332
5227
|
/**
|
|
@@ -5347,7 +5242,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5347
5242
|
this.bulkChanges = {};
|
|
5348
5243
|
this.refreshing = false;
|
|
5349
5244
|
this.ignoreCollectionWatch = false;
|
|
5350
|
-
// eslint-disable-next-line
|
|
5351
5245
|
this.finalUpdate = function () { };
|
|
5352
5246
|
this.childChangedProperties = {};
|
|
5353
5247
|
this.modelObserver = new Observer(this);
|
|
@@ -5400,7 +5294,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5400
5294
|
* @param {Object} parent ?
|
|
5401
5295
|
* @returns {void} ?
|
|
5402
5296
|
*/
|
|
5403
|
-
// tslint:disable-next-line:no-any
|
|
5404
5297
|
Base.callChildDataBind = function (obj, parent) {
|
|
5405
5298
|
var keys = Object.keys(obj);
|
|
5406
5299
|
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
|
@@ -5441,7 +5334,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5441
5334
|
this.isProtectedOnChange = prevDetection;
|
|
5442
5335
|
}
|
|
5443
5336
|
};
|
|
5444
|
-
/* tslint:disable:no-any */
|
|
5445
5337
|
Base.prototype.serverDataBind = function (newChanges) {
|
|
5446
5338
|
if (!isBlazor()) {
|
|
5447
5339
|
return;
|
|
@@ -5454,10 +5346,8 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5454
5346
|
this.bulkChanges = {};
|
|
5455
5347
|
}
|
|
5456
5348
|
};
|
|
5457
|
-
/* tslint:enable:no-any */
|
|
5458
5349
|
Base.prototype.saveChanges = function (key, newValue, oldValue) {
|
|
5459
5350
|
if (isBlazor()) {
|
|
5460
|
-
// tslint:disable-next-line:no-any
|
|
5461
5351
|
var newChanges = {};
|
|
5462
5352
|
newChanges["" + key] = newValue;
|
|
5463
5353
|
this.serverDataBind(newChanges);
|
|
@@ -5575,7 +5465,7 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5575
5465
|
*/
|
|
5576
5466
|
Base.prototype.destroy = function () {
|
|
5577
5467
|
var _this = this;
|
|
5578
|
-
// eslint-disable-next-line
|
|
5468
|
+
// eslint-disable-next-line camelcase
|
|
5579
5469
|
this.element.ej2_instances =
|
|
5580
5470
|
this.element.ej2_instances ?
|
|
5581
5471
|
this.element.ej2_instances.filter(function (i) {
|
|
@@ -5603,7 +5493,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5603
5493
|
* @param {string} comp Specifies the component module name or Component.
|
|
5604
5494
|
* @returns {any} ?
|
|
5605
5495
|
*/
|
|
5606
|
-
// tslint:disable-next-line:no-any
|
|
5607
5496
|
function getComponent(elem, comp) {
|
|
5608
5497
|
var instance;
|
|
5609
5498
|
var i;
|
|
@@ -5617,7 +5506,6 @@ function getComponent(elem, comp) {
|
|
|
5617
5506
|
}
|
|
5618
5507
|
}
|
|
5619
5508
|
else {
|
|
5620
|
-
// tslint:disable-next-line:no-any
|
|
5621
5509
|
if (instance instanceof comp) {
|
|
5622
5510
|
return instance;
|
|
5623
5511
|
}
|
|
@@ -5629,16 +5517,13 @@ function getComponent(elem, comp) {
|
|
|
5629
5517
|
* Function to remove the child instances.
|
|
5630
5518
|
*
|
|
5631
5519
|
* @param {HTMLElement} element ?
|
|
5632
|
-
* @
|
|
5520
|
+
* @returns {void} ?
|
|
5633
5521
|
* @private
|
|
5634
5522
|
*/
|
|
5635
|
-
// tslint:disable-next-line:no-any
|
|
5636
5523
|
function removeChildInstance(element) {
|
|
5637
|
-
// tslint:disable-next-line:no-any
|
|
5638
5524
|
var childEle = [].slice.call(element.getElementsByClassName('e-control'));
|
|
5639
5525
|
for (var i = 0; i < childEle.length; i++) {
|
|
5640
5526
|
var compName = childEle[parseInt(i.toString(), 10)].classList[1].split('e-')[1];
|
|
5641
|
-
// tslint:disable-next-line:no-any
|
|
5642
5527
|
var compInstance = getComponent(childEle[parseInt(i.toString(), 10)], compName);
|
|
5643
5528
|
if (!isUndefined(compInstance)) {
|
|
5644
5529
|
compInstance.destroy();
|
|
@@ -5648,6 +5533,7 @@ function removeChildInstance(element) {
|
|
|
5648
5533
|
var proxyToRaw;
|
|
5649
5534
|
var setProxyToRaw = function (toRaw) { proxyToRaw = toRaw; };
|
|
5650
5535
|
|
|
5536
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5651
5537
|
/**
|
|
5652
5538
|
* Returns the Class Object
|
|
5653
5539
|
*
|
|
@@ -5657,10 +5543,8 @@ var setProxyToRaw = function (toRaw) { proxyToRaw = toRaw; };
|
|
|
5657
5543
|
* @param {Object[]} type ?
|
|
5658
5544
|
* @returns {ClassObject} ?
|
|
5659
5545
|
*/
|
|
5660
|
-
// eslint-disable-next-line
|
|
5661
5546
|
function getObject(instance, curKey, defaultValue, type) {
|
|
5662
|
-
|
|
5663
|
-
if (!instance.properties.hasOwnProperty(curKey) || !(instance.properties[curKey] instanceof type)) {
|
|
5547
|
+
if (!Object.prototype.hasOwnProperty.call(instance.properties, curKey) || !(instance.properties["" + curKey] instanceof type)) {
|
|
5664
5548
|
instance.properties["" + curKey] = createInstance(type, [instance, curKey, defaultValue]);
|
|
5665
5549
|
}
|
|
5666
5550
|
return instance.properties["" + curKey];
|
|
@@ -5676,7 +5560,6 @@ function getObject(instance, curKey, defaultValue, type) {
|
|
|
5676
5560
|
* @param {boolean} isFactory ?
|
|
5677
5561
|
* @returns {Object[]} ?
|
|
5678
5562
|
*/
|
|
5679
|
-
// eslint-disable-next-line
|
|
5680
5563
|
function getObjectArray(instance, curKey, defaultValue, type, isSetter, isFactory) {
|
|
5681
5564
|
var result = [];
|
|
5682
5565
|
var len = defaultValue ? defaultValue.length : 0;
|
|
@@ -5705,8 +5588,7 @@ function getObjectArray(instance, curKey, defaultValue, type, isSetter, isFactor
|
|
|
5705
5588
|
*/
|
|
5706
5589
|
function propertyGetter(defaultValue, curKey) {
|
|
5707
5590
|
return function () {
|
|
5708
|
-
|
|
5709
|
-
if (!this.properties.hasOwnProperty(curKey)) {
|
|
5591
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5710
5592
|
this.properties["" + curKey] = defaultValue;
|
|
5711
5593
|
}
|
|
5712
5594
|
return this.properties["" + curKey];
|
|
@@ -5722,8 +5604,7 @@ function propertyGetter(defaultValue, curKey) {
|
|
|
5722
5604
|
function propertySetter(defaultValue, curKey) {
|
|
5723
5605
|
return function (newValue) {
|
|
5724
5606
|
if (this.properties["" + curKey] !== newValue) {
|
|
5725
|
-
|
|
5726
|
-
var oldVal = this.properties.hasOwnProperty(curKey) ? this.properties[curKey] : defaultValue;
|
|
5607
|
+
var oldVal = Object.prototype.hasOwnProperty.call(this.properties, curKey) ? this.properties["" + curKey] : defaultValue;
|
|
5727
5608
|
this.saveChanges(curKey, newValue, oldVal);
|
|
5728
5609
|
this.properties["" + curKey] = newValue;
|
|
5729
5610
|
}
|
|
@@ -5737,7 +5618,6 @@ function propertySetter(defaultValue, curKey) {
|
|
|
5737
5618
|
* @param {Object[]} type ?
|
|
5738
5619
|
* @returns {void} ?
|
|
5739
5620
|
*/
|
|
5740
|
-
// eslint-disable-next-line
|
|
5741
5621
|
function complexGetter(defaultValue, curKey, type) {
|
|
5742
5622
|
return function () {
|
|
5743
5623
|
return getObject(this, curKey, defaultValue, type);
|
|
@@ -5763,12 +5643,10 @@ function complexSetter(defaultValue, curKey, type) {
|
|
|
5763
5643
|
* @param {FunctionConstructor} type ?
|
|
5764
5644
|
* @returns {void} ?
|
|
5765
5645
|
*/
|
|
5766
|
-
// eslint-disable-next-line
|
|
5767
5646
|
function complexFactoryGetter(defaultValue, curKey, type) {
|
|
5768
5647
|
return function () {
|
|
5769
5648
|
var curType = type({});
|
|
5770
|
-
|
|
5771
|
-
if (this.properties.hasOwnProperty(curKey)) {
|
|
5649
|
+
if (Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5772
5650
|
return this.properties["" + curKey];
|
|
5773
5651
|
}
|
|
5774
5652
|
else {
|
|
@@ -5799,15 +5677,13 @@ function complexFactorySetter(defaultValue, curKey, type) {
|
|
|
5799
5677
|
function complexArrayGetter(defaultValue, curKey, type) {
|
|
5800
5678
|
return function () {
|
|
5801
5679
|
var _this = this;
|
|
5802
|
-
|
|
5803
|
-
if (!this.properties.hasOwnProperty(curKey)) {
|
|
5680
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5804
5681
|
var defCollection = getObjectArray(this, curKey, defaultValue, type, false);
|
|
5805
5682
|
this.properties["" + curKey] = defCollection;
|
|
5806
5683
|
}
|
|
5807
5684
|
var ignore = ((this.controlParent !== undefined && this.controlParent.ignoreCollectionWatch)
|
|
5808
5685
|
|| this.ignoreCollectionWatch);
|
|
5809
|
-
|
|
5810
|
-
if (!this.properties[curKey].hasOwnProperty('push') && !ignore) {
|
|
5686
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties["" + curKey], 'push') && !ignore) {
|
|
5811
5687
|
['push', 'pop'].forEach(function (extendFunc) {
|
|
5812
5688
|
var descriptor = {
|
|
5813
5689
|
value: complexArrayDefinedCallback(extendFunc, curKey, type, _this.properties["" + curKey]).bind(_this),
|
|
@@ -5816,8 +5692,7 @@ function complexArrayGetter(defaultValue, curKey, type) {
|
|
|
5816
5692
|
Object.defineProperty(_this.properties["" + curKey], extendFunc, descriptor);
|
|
5817
5693
|
});
|
|
5818
5694
|
}
|
|
5819
|
-
|
|
5820
|
-
if (!this.properties[curKey].hasOwnProperty('isComplexArray')) {
|
|
5695
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties["" + curKey], 'isComplexArray')) {
|
|
5821
5696
|
Object.defineProperty(this.properties["" + curKey], 'isComplexArray', { value: true });
|
|
5822
5697
|
}
|
|
5823
5698
|
return this.properties["" + curKey];
|
|
@@ -5849,8 +5724,7 @@ function complexArraySetter(defaultValue, curKey, type) {
|
|
|
5849
5724
|
*/
|
|
5850
5725
|
function complexArrayFactorySetter(defaultValue, curKey, type) {
|
|
5851
5726
|
return function (newValue) {
|
|
5852
|
-
|
|
5853
|
-
var oldValueCollection = this.properties.hasOwnProperty(curKey) ? this.properties[curKey] : defaultValue;
|
|
5727
|
+
var oldValueCollection = Object.prototype.hasOwnProperty.call(this.properties, curKey) ? this.properties["" + curKey] : defaultValue;
|
|
5854
5728
|
var newValCollection = getObjectArray(this, curKey, newValue, type, true, true);
|
|
5855
5729
|
this.saveChanges(curKey, newValCollection, oldValueCollection);
|
|
5856
5730
|
this.properties["" + curKey] = newValCollection;
|
|
@@ -5866,8 +5740,7 @@ function complexArrayFactorySetter(defaultValue, curKey, type) {
|
|
|
5866
5740
|
function complexArrayFactoryGetter(defaultValue, curKey, type) {
|
|
5867
5741
|
return function () {
|
|
5868
5742
|
var curType = type({});
|
|
5869
|
-
|
|
5870
|
-
if (!this.properties.hasOwnProperty(curKey)) {
|
|
5743
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5871
5744
|
var defCollection = getObjectArray(this, curKey, defaultValue, curType, false);
|
|
5872
5745
|
this.properties["" + curKey] = defCollection;
|
|
5873
5746
|
}
|
|
@@ -5883,7 +5756,6 @@ function complexArrayFactoryGetter(defaultValue, curKey, type) {
|
|
|
5883
5756
|
* @returns {Object} ?
|
|
5884
5757
|
*/
|
|
5885
5758
|
function complexArrayDefinedCallback(dFunc, curKey, type, prop) {
|
|
5886
|
-
/* tslint:disable no-function-expression */
|
|
5887
5759
|
return function () {
|
|
5888
5760
|
var newValue = [];
|
|
5889
5761
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -5895,16 +5767,16 @@ function complexArrayDefinedCallback(dFunc, curKey, type, prop) {
|
|
|
5895
5767
|
for (var i = 0; i < newValue.length; i++) {
|
|
5896
5768
|
var newValueParse = newValue[parseInt(i.toString(), 10)];
|
|
5897
5769
|
Array.prototype["" + dFunc].apply(prop, [newValueParse]);
|
|
5898
|
-
var
|
|
5899
|
-
this.serverDataBind(
|
|
5770
|
+
var model = getArrayModel(keyString + (prop.length - 1), newValueParse, !this.controlParent, dFunc);
|
|
5771
|
+
this.serverDataBind(model, newValue[parseInt(i.toString(), 10)], false, dFunc);
|
|
5900
5772
|
}
|
|
5901
5773
|
break;
|
|
5902
|
-
case 'pop':
|
|
5774
|
+
case 'pop': {
|
|
5903
5775
|
Array.prototype["" + dFunc].apply(prop);
|
|
5904
|
-
// eslint-disable-next-line
|
|
5905
5776
|
var model = getArrayModel(keyString + prop.length, null, !this.controlParent, dFunc);
|
|
5906
5777
|
this.serverDataBind(model, { ejsAction: 'pop' }, false, dFunc);
|
|
5907
5778
|
break;
|
|
5779
|
+
}
|
|
5908
5780
|
}
|
|
5909
5781
|
return prop;
|
|
5910
5782
|
};
|
|
@@ -5929,16 +5801,11 @@ function getArrayModel(keyString, value, isControlParent, arrayFunction) {
|
|
|
5929
5801
|
}
|
|
5930
5802
|
return modelObject;
|
|
5931
5803
|
}
|
|
5932
|
-
// eslint-disable-next-line
|
|
5933
5804
|
/**
|
|
5934
5805
|
* Method used to create property. General syntax below.
|
|
5935
5806
|
*
|
|
5936
5807
|
* @param {Object} defaultValue - Specifies the default value of property.
|
|
5937
5808
|
* @returns {PropertyDecorator} ?
|
|
5938
|
-
* ```
|
|
5939
|
-
* @Property('TypeScript')
|
|
5940
|
-
* propertyName: Type;
|
|
5941
|
-
* ```
|
|
5942
5809
|
* @private
|
|
5943
5810
|
*/
|
|
5944
5811
|
function Property(defaultValue) {
|
|
@@ -6088,25 +5955,8 @@ function Event$1() {
|
|
|
6088
5955
|
*
|
|
6089
5956
|
* @param {Function} classConstructor ?
|
|
6090
5957
|
* @returns {void} ?
|
|
6091
|
-
* ```
|
|
6092
|
-
* @NotifyPropertyChanges
|
|
6093
|
-
* class DemoClass implements INotifyPropertyChanged {
|
|
6094
|
-
*
|
|
6095
|
-
* @Property()
|
|
6096
|
-
* property1: string;
|
|
6097
|
-
*
|
|
6098
|
-
* dataBind: () => void;
|
|
6099
|
-
*
|
|
6100
|
-
* constructor() { }
|
|
6101
|
-
*
|
|
6102
|
-
* onPropertyChanged(newProp: any, oldProp: any) {
|
|
6103
|
-
* // Called when property changed
|
|
6104
|
-
* }
|
|
6105
|
-
* }
|
|
6106
|
-
* ```
|
|
6107
5958
|
* @private
|
|
6108
5959
|
*/
|
|
6109
|
-
// eslint-disable-next-line
|
|
6110
5960
|
function NotifyPropertyChanges(classConstructor) {
|
|
6111
5961
|
/** Need to code */
|
|
6112
5962
|
}
|
|
@@ -6134,13 +5984,11 @@ function addPropertyCollection(target, key, propertyType, defaultValue, type) {
|
|
|
6134
5984
|
eventNames: []
|
|
6135
5985
|
};
|
|
6136
5986
|
}
|
|
6137
|
-
// eslint-disable-next-line
|
|
6138
5987
|
target.propList[propertyType + 's'].push({
|
|
6139
5988
|
propertyName: key,
|
|
6140
5989
|
defaultValue: defaultValue,
|
|
6141
5990
|
type: type
|
|
6142
5991
|
});
|
|
6143
|
-
// eslint-disable-next-line
|
|
6144
5992
|
target.propList[propertyType + 'Names'].push(key);
|
|
6145
5993
|
}
|
|
6146
5994
|
/**
|
|
@@ -6209,8 +6057,7 @@ function CreateBuilder(component) {
|
|
|
6209
6057
|
return this;
|
|
6210
6058
|
};
|
|
6211
6059
|
var instanceFunction = function (element) {
|
|
6212
|
-
|
|
6213
|
-
if (!builderFunction.prototype.hasOwnProperty('create')) {
|
|
6060
|
+
if (!Object.prototype.hasOwnProperty.call(builderFunction, 'create')) {
|
|
6214
6061
|
builderFunction.prototype = getBuilderProperties(component);
|
|
6215
6062
|
builderFunction.prototype.create = function () {
|
|
6216
6063
|
var temp = extend({}, {}, this.properties);
|
|
@@ -6231,8 +6078,7 @@ function CreateBuilder(component) {
|
|
|
6231
6078
|
* @private
|
|
6232
6079
|
*/
|
|
6233
6080
|
function getParentContext(context, prefix) {
|
|
6234
|
-
|
|
6235
|
-
if (context.hasOwnProperty('parentObj') === false) {
|
|
6081
|
+
if (Object.prototype.hasOwnProperty.call(context, 'parentObj') === false) {
|
|
6236
6082
|
return { context: context, prefix: prefix };
|
|
6237
6083
|
}
|
|
6238
6084
|
else {
|
|
@@ -6322,7 +6168,7 @@ var Animation = /** @__PURE__ @class */ (function (_super) {
|
|
|
6322
6168
|
*
|
|
6323
6169
|
* @param {HTMLElement} element - Element which needs to be stop the animation.
|
|
6324
6170
|
* @param {AnimationOptions} model - Handling the animation model at stop function.
|
|
6325
|
-
* @
|
|
6171
|
+
* @returns {void}
|
|
6326
6172
|
*/
|
|
6327
6173
|
Animation.stop = function (element, model) {
|
|
6328
6174
|
element.style.animation = '';
|
|
@@ -6452,7 +6298,6 @@ var Animation = /** @__PURE__ @class */ (function (_super) {
|
|
|
6452
6298
|
* @param {AnimationModel} oldProp ?
|
|
6453
6299
|
* @returns {void} ?
|
|
6454
6300
|
*/
|
|
6455
|
-
// eslint-disable-next-line
|
|
6456
6301
|
Animation.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
6457
6302
|
// no code needed
|
|
6458
6303
|
};
|
|
@@ -6641,7 +6486,6 @@ function removeRipple(e, eventArgs) {
|
|
|
6641
6486
|
if (eventArgs.parent !== element) {
|
|
6642
6487
|
EventHandler.remove(element, 'mouseleave', rippleLeaveHandler);
|
|
6643
6488
|
}
|
|
6644
|
-
/* tslint:disable:align */
|
|
6645
6489
|
setTimeout(function () {
|
|
6646
6490
|
if (rippleElement && rippleElement.parentNode) {
|
|
6647
6491
|
rippleElement.parentNode.removeChild(rippleElement);
|
|
@@ -6699,9 +6543,7 @@ var GlobalAnimationMode;
|
|
|
6699
6543
|
GlobalAnimationMode["Disable"] = "Disable";
|
|
6700
6544
|
})(GlobalAnimationMode || (GlobalAnimationMode = {}));
|
|
6701
6545
|
|
|
6702
|
-
|
|
6703
|
-
* Module loading operations
|
|
6704
|
-
*/
|
|
6546
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6705
6547
|
var MODULE_SUFFIX = 'Module';
|
|
6706
6548
|
var ModuleLoader = /** @__PURE__ @class */ (function () {
|
|
6707
6549
|
function ModuleLoader(parent) {
|
|
@@ -6818,10 +6660,12 @@ var ModuleLoader = /** @__PURE__ @class */ (function () {
|
|
|
6818
6660
|
return ModuleLoader;
|
|
6819
6661
|
}());
|
|
6820
6662
|
|
|
6663
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6821
6664
|
/**
|
|
6822
6665
|
* To detect the changes for inner properties.
|
|
6823
6666
|
*
|
|
6824
6667
|
* @private
|
|
6668
|
+
* @returns {void} ?
|
|
6825
6669
|
*/
|
|
6826
6670
|
var ChildProperty = /** @__PURE__ @class */ (function () {
|
|
6827
6671
|
function ChildProperty(parent, propName, defaultValue, isArray) {
|
|
@@ -6830,7 +6674,6 @@ var ChildProperty = /** @__PURE__ @class */ (function () {
|
|
|
6830
6674
|
this.changedProperties = {};
|
|
6831
6675
|
this.childChangedProperties = {};
|
|
6832
6676
|
this.oldProperties = {};
|
|
6833
|
-
// eslint-disable-next-line
|
|
6834
6677
|
this.finalUpdate = function () { };
|
|
6835
6678
|
this.callChildDataBind = getValue('callChildDataBind', Base);
|
|
6836
6679
|
this.parentObj = parent;
|
|
@@ -6974,7 +6817,6 @@ var ChildProperty = /** @__PURE__ @class */ (function () {
|
|
|
6974
6817
|
}
|
|
6975
6818
|
};
|
|
6976
6819
|
ChildProperty.prototype.getParentKey = function (isSaveChanges) {
|
|
6977
|
-
// eslint-disable-next-line
|
|
6978
6820
|
var index = '';
|
|
6979
6821
|
var propName = this.propName;
|
|
6980
6822
|
/* istanbul ignore next */
|
|
@@ -7007,7 +6849,7 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
7007
6849
|
function LicenseValidator(key) {
|
|
7008
6850
|
this.isValidated = false;
|
|
7009
6851
|
this.isLicensed = true;
|
|
7010
|
-
this.version = '
|
|
6852
|
+
this.version = '26';
|
|
7011
6853
|
this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i;
|
|
7012
6854
|
this.errors = {
|
|
7013
6855
|
noLicense: '<span>This application was built using a trial version of Syncfusion Essential Studio.' +
|
|
@@ -7111,7 +6953,7 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
7111
6953
|
}
|
|
7112
6954
|
}
|
|
7113
6955
|
if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
|
|
7114
|
-
accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=
|
|
6956
|
+
accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjY=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information';
|
|
7115
6957
|
var errorDiv = createElement('div', {
|
|
7116
6958
|
innerHTML: "<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>" + validateMsg + ' ' + '<a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href=' + accountURL + '>Claim your free account</a>'
|
|
7117
6959
|
});
|
|
@@ -7176,7 +7018,8 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
7176
7018
|
var charKey = decodeStr[decodeStr.length - 1];
|
|
7177
7019
|
var decryptedKey = [];
|
|
7178
7020
|
for (var i = 0; i < decodeStr.length; i++) {
|
|
7179
|
-
decryptedKey[
|
|
7021
|
+
decryptedKey[parseInt(i.toString(), 10)] = decodeStr[parseInt(i.toString(), 10)].charCodeAt(0)
|
|
7022
|
+
- charKey.charCodeAt(0);
|
|
7180
7023
|
}
|
|
7181
7024
|
for (var i = 0; i < decryptedKey.length; i++) {
|
|
7182
7025
|
buffr += String.fromCharCode(decryptedKey[parseInt(i.toString(), 10)]);
|
|
@@ -7313,6 +7156,9 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7313
7156
|
_this.isStringTemplate = false;
|
|
7314
7157
|
_this.needsID = false;
|
|
7315
7158
|
_this.isReactHybrid = false;
|
|
7159
|
+
_this.isAngular = false;
|
|
7160
|
+
_this.isReact = false;
|
|
7161
|
+
_this.isVue = false;
|
|
7316
7162
|
if (isNullOrUndefined(_this.enableRtl)) {
|
|
7317
7163
|
_this.setProperties({ 'enableRtl': rightToLeft }, true);
|
|
7318
7164
|
}
|
|
@@ -7321,7 +7167,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7321
7167
|
}
|
|
7322
7168
|
_this.moduleLoader = new ModuleLoader(_this);
|
|
7323
7169
|
_this.localObserver = new Observer(_this);
|
|
7324
|
-
// tslint:disable-next-line:no-function-constructor-with-string-args
|
|
7325
7170
|
onIntlChange.on('notifyExternalChange', _this.detectFunction, _this, _this.randomId);
|
|
7326
7171
|
// Based on the considered control list we have count the instance
|
|
7327
7172
|
if (typeof window !== 'undefined' && typeof document !== 'undefined' && !validateLicense()) {
|
|
@@ -7391,7 +7236,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7391
7236
|
*/
|
|
7392
7237
|
Component.prototype.getRootElement = function () {
|
|
7393
7238
|
if (this.isReactHybrid) {
|
|
7394
|
-
// eslint-disable-next-line
|
|
7395
7239
|
return this.actualElement;
|
|
7396
7240
|
}
|
|
7397
7241
|
else {
|
|
@@ -7403,7 +7247,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7403
7247
|
*
|
|
7404
7248
|
* @returns {any} ?
|
|
7405
7249
|
*/
|
|
7406
|
-
// eslint-disable-next-line
|
|
7407
7250
|
Component.prototype.getLocalData = function () {
|
|
7408
7251
|
var eleId = this.getModuleName() + this.element.id;
|
|
7409
7252
|
if (versionBasedStatePersistence) {
|
|
@@ -7478,7 +7321,8 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7478
7321
|
treegrid: ['filter'],
|
|
7479
7322
|
gantt: ['tooltip'],
|
|
7480
7323
|
chart: ['Export', 'Zoom'],
|
|
7481
|
-
accumulationchart: ['Export']
|
|
7324
|
+
accumulationchart: ['Export'],
|
|
7325
|
+
'query-builder': 'all'
|
|
7482
7326
|
};
|
|
7483
7327
|
var component = this.getModuleName();
|
|
7484
7328
|
if (this.requiredModules && (!ignoredComponents["" + component] || ignoredComponents["" + component] !== 'all')) {
|
|
@@ -7516,8 +7360,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7516
7360
|
Component.prototype.renderComplete = function (wrapperElement) {
|
|
7517
7361
|
if (isBlazor()) {
|
|
7518
7362
|
var sfBlazor = 'sfBlazor';
|
|
7519
|
-
|
|
7520
|
-
window[sfBlazor].renderComplete(this.element, wrapperElement);
|
|
7363
|
+
window["" + sfBlazor].renderComplete(this.element, wrapperElement);
|
|
7521
7364
|
}
|
|
7522
7365
|
this.isRendered = true;
|
|
7523
7366
|
};
|
|
@@ -7621,7 +7464,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7621
7464
|
* @returns {any} ?
|
|
7622
7465
|
* @private
|
|
7623
7466
|
*/
|
|
7624
|
-
// eslint-disable-next-line
|
|
7625
7467
|
Component.prototype.createElement = function (tagName, prop, isVDOM) {
|
|
7626
7468
|
return createElement(tagName, prop);
|
|
7627
7469
|
};
|
|
@@ -7632,15 +7474,12 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7632
7474
|
* @returns {void} .
|
|
7633
7475
|
* @private
|
|
7634
7476
|
*/
|
|
7635
|
-
// eslint-disable-next-line
|
|
7636
7477
|
Component.prototype.triggerStateChange = function (handler, argument) {
|
|
7637
7478
|
if (this.isReactHybrid) {
|
|
7638
|
-
// eslint-disable-next-line
|
|
7639
7479
|
this.setState();
|
|
7640
7480
|
this.currentContext = { calls: handler, args: argument };
|
|
7641
7481
|
}
|
|
7642
7482
|
};
|
|
7643
|
-
// tslint: enable: no-any
|
|
7644
7483
|
Component.prototype.injectModules = function () {
|
|
7645
7484
|
if (this.injectedModules && this.injectedModules.length) {
|
|
7646
7485
|
this.moduleLoader.inject(this.requiredModules(), this.injectedModules);
|
|
@@ -7675,13 +7514,11 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7675
7514
|
}
|
|
7676
7515
|
}
|
|
7677
7516
|
};
|
|
7678
|
-
// eslint-disable-next-line
|
|
7679
7517
|
Component.prototype.renderReactTemplates = function (callback) {
|
|
7680
7518
|
if (!isNullOrUndefined(callback)) {
|
|
7681
7519
|
callback();
|
|
7682
7520
|
}
|
|
7683
7521
|
};
|
|
7684
|
-
// eslint-disable-next-line
|
|
7685
7522
|
Component.prototype.clearTemplate = function (templateName, index) {
|
|
7686
7523
|
//No Code
|
|
7687
7524
|
};
|
|
@@ -7713,9 +7550,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7713
7550
|
var persistObj = {};
|
|
7714
7551
|
for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
|
|
7715
7552
|
var key = options_1[_i];
|
|
7716
|
-
var objValue =
|
|
7717
|
-
// eslint-disable-next-line
|
|
7718
|
-
objValue = getValue(key, this);
|
|
7553
|
+
var objValue = getValue(key, this);
|
|
7719
7554
|
if (!isUndefined(objValue)) {
|
|
7720
7555
|
setValue(key, this.getActualProperties(objValue), persistObj);
|
|
7721
7556
|
}
|
|
@@ -7739,8 +7574,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7739
7574
|
var newObj = {};
|
|
7740
7575
|
var _loop_1 = function (key) {
|
|
7741
7576
|
if (ignoreList.indexOf(key) === -1) {
|
|
7742
|
-
|
|
7743
|
-
var value = obj[key];
|
|
7577
|
+
var value = obj["" + key];
|
|
7744
7578
|
if (typeof value === 'object' && !(value instanceof Array)) {
|
|
7745
7579
|
var newList = ignoreList.filter(function (str) {
|
|
7746
7580
|
var regExp = RegExp;
|
|
@@ -7853,7 +7687,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7853
7687
|
_this.prevTop = 0;
|
|
7854
7688
|
_this.dragProcessStarted = false;
|
|
7855
7689
|
_this.eleTop = 0;
|
|
7856
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7857
7690
|
_this.tapHoldTimer = 0;
|
|
7858
7691
|
_this.externalInitialize = false;
|
|
7859
7692
|
_this.diffY = 0;
|
|
@@ -7939,7 +7772,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7939
7772
|
return this.getScrollableParent(element.parentNode, axis);
|
|
7940
7773
|
}
|
|
7941
7774
|
};
|
|
7942
|
-
/* eslint-disable */
|
|
7943
7775
|
Draggable.prototype.getScrollableValues = function () {
|
|
7944
7776
|
this.parentScrollX = 0;
|
|
7945
7777
|
this.parentScrollY = 0;
|
|
@@ -7947,7 +7779,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7947
7779
|
var verticalScrollParent = this.getScrollableParent(this.element.parentNode, 'vertical');
|
|
7948
7780
|
var horizontalScrollParent = this.getScrollableParent(this.element.parentNode, 'horizontal');
|
|
7949
7781
|
};
|
|
7950
|
-
/* eslint-enable */
|
|
7951
7782
|
Draggable.prototype.initialize = function (evt, curTarget) {
|
|
7952
7783
|
this.currentStateTarget = evt.target;
|
|
7953
7784
|
if (this.isDragStarted()) {
|
|
@@ -7960,8 +7791,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7960
7791
|
this.target = (evt.currentTarget || curTarget);
|
|
7961
7792
|
this.dragProcessStarted = false;
|
|
7962
7793
|
if (this.abort) {
|
|
7963
|
-
/* tslint:disable no-any */
|
|
7964
|
-
// eslint-disable-next-line
|
|
7965
7794
|
var abortSelectors = this.abort;
|
|
7966
7795
|
if (typeof abortSelectors === 'string') {
|
|
7967
7796
|
abortSelectors = [abortSelectors];
|
|
@@ -8032,7 +7861,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8032
7861
|
}
|
|
8033
7862
|
/* istanbul ignore next */
|
|
8034
7863
|
if (this.isReplaceDragEle) {
|
|
8035
|
-
// eslint-disable-next-line
|
|
8036
7864
|
element = this.currentStateCheck(evt.target, element);
|
|
8037
7865
|
}
|
|
8038
7866
|
this.offset = this.calculateParentPosition(element);
|
|
@@ -8149,7 +7977,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8149
7977
|
top: (rect.top + window.pageYOffset) - parseInt(style.marginTop, 10)
|
|
8150
7978
|
};
|
|
8151
7979
|
};
|
|
8152
|
-
// tslint:disable-next-line:max-func-body-length
|
|
8153
7980
|
Draggable.prototype.intDrag = function (evt) {
|
|
8154
7981
|
if (!isUndefined(evt.changedTouches) && (evt.changedTouches.length !== 1)) {
|
|
8155
7982
|
return;
|
|
@@ -8174,7 +8001,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8174
8001
|
}
|
|
8175
8002
|
var eleObj = this.checkTargetElement(evt);
|
|
8176
8003
|
if (eleObj.target && eleObj.instance) {
|
|
8177
|
-
/* tslint:disable no-any */
|
|
8178
8004
|
var flag = true;
|
|
8179
8005
|
if (this.hoverObject) {
|
|
8180
8006
|
if (this.hoverObject.instance !== eleObj.instance) {
|
|
@@ -8185,7 +8011,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8185
8011
|
}
|
|
8186
8012
|
}
|
|
8187
8013
|
if (flag) {
|
|
8188
|
-
// eslint-disable-next-line
|
|
8189
8014
|
eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
|
|
8190
8015
|
eleObj.instance.intOver(evt, eleObj.target);
|
|
8191
8016
|
this.hoverObject = eleObj;
|
|
@@ -8334,8 +8159,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8334
8159
|
if (elements.length === 0) {
|
|
8335
8160
|
elements = this.getPathElements(evt);
|
|
8336
8161
|
}
|
|
8337
|
-
/* tslint:disable no-any */
|
|
8338
|
-
// eslint-disable-next-line
|
|
8339
8162
|
var scrollParent = this.getScrollParent(elements, false);
|
|
8340
8163
|
if (this.elementInViewport(this.helperElement)) {
|
|
8341
8164
|
this.getScrollPosition(scrollParent, draEleTop);
|
|
@@ -8357,11 +8180,7 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8357
8180
|
this.pageX = pagex;
|
|
8358
8181
|
this.pageY = pagey;
|
|
8359
8182
|
};
|
|
8360
|
-
/* tslint:disable no-any */
|
|
8361
|
-
// eslint-disable-next-line
|
|
8362
8183
|
Draggable.prototype.getScrollParent = function (node, reverse) {
|
|
8363
|
-
/* tslint:disable no-any */
|
|
8364
|
-
// eslint-disable-next-line
|
|
8365
8184
|
var nodeEl = reverse ? node.reverse() : node;
|
|
8366
8185
|
var hasScroll;
|
|
8367
8186
|
for (var i = nodeEl.length - 1; i >= 0; i--) {
|
|
@@ -8445,7 +8264,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8445
8264
|
var eleObj = this.checkTargetElement(evt);
|
|
8446
8265
|
if (eleObj.target && eleObj.instance) {
|
|
8447
8266
|
eleObj.instance.dragStopCalled = true;
|
|
8448
|
-
// eslint-disable-next-line
|
|
8449
8267
|
eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
|
|
8450
8268
|
eleObj.instance.intDrop(evt, eleObj.target);
|
|
8451
8269
|
}
|
|
@@ -8457,7 +8275,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8457
8275
|
* @returns {void}
|
|
8458
8276
|
* @private
|
|
8459
8277
|
*/
|
|
8460
|
-
// eslint-disable-next-line
|
|
8461
8278
|
Draggable.prototype.intDestroy = function (evt) {
|
|
8462
8279
|
this.dragProcessStarted = false;
|
|
8463
8280
|
this.toggleEvents();
|
|
@@ -8472,7 +8289,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8472
8289
|
}
|
|
8473
8290
|
};
|
|
8474
8291
|
// triggers when property changed
|
|
8475
|
-
// eslint-disable-next-line
|
|
8476
8292
|
Draggable.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
8477
8293
|
//No Code to handle
|
|
8478
8294
|
};
|
|
@@ -8503,7 +8319,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8503
8319
|
eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
|
|
8504
8320
|
eleHeightBound = ele.scrollHeight ? (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
|
|
8505
8321
|
var keys = ['Top', 'Left', 'Bottom', 'Right'];
|
|
8506
|
-
/* eslint-disable */
|
|
8507
8322
|
var styles = getComputedStyle(ele);
|
|
8508
8323
|
for (var i = 0; i < keys.length; i++) {
|
|
8509
8324
|
var key = keys[parseInt(i.toString(), 10)];
|
|
@@ -8513,7 +8328,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8513
8328
|
this.borderWidth["" + lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
|
|
8514
8329
|
this.padding["" + lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
|
|
8515
8330
|
}
|
|
8516
|
-
/* eslint-enable */
|
|
8517
8331
|
if (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) {
|
|
8518
8332
|
top = elementArea.top + document.scrollingElement.scrollTop;
|
|
8519
8333
|
}
|
|
@@ -8554,8 +8368,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8554
8368
|
return elem;
|
|
8555
8369
|
};
|
|
8556
8370
|
Draggable.prototype.getMousePosition = function (evt, isdragscroll) {
|
|
8557
|
-
/* tslint:disable no-any */
|
|
8558
|
-
// eslint-disable-next-line
|
|
8559
8371
|
var dragEle = evt.srcElement !== undefined ? evt.srcElement : evt.target;
|
|
8560
8372
|
var intCoord = this.getCoordinates(evt);
|
|
8561
8373
|
var pageX;
|
|
@@ -8773,7 +8585,6 @@ var Droppable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8773
8585
|
EventHandler.add(this.element, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDrop, this);
|
|
8774
8586
|
};
|
|
8775
8587
|
// triggers when property changed
|
|
8776
|
-
// eslint-disable-next-line
|
|
8777
8588
|
Droppable.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
8778
8589
|
//No Code to handle
|
|
8779
8590
|
};
|
|
@@ -8995,7 +8806,6 @@ var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
|
|
|
8995
8806
|
* @returns {void} ?
|
|
8996
8807
|
* @private
|
|
8997
8808
|
*/
|
|
8998
|
-
// eslint-disable-next-line
|
|
8999
8809
|
KeyboardEvents.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
9000
8810
|
// No code are needed
|
|
9001
8811
|
};
|
|
@@ -9330,10 +9140,8 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9330
9140
|
velocity: _this.getVelocity(point)
|
|
9331
9141
|
};
|
|
9332
9142
|
if (_this.isTouchMoved) {
|
|
9333
|
-
var eSwipeArgs = void 0;
|
|
9334
9143
|
var tDistance = _this.swipeSettings.swipeThresholdDistance;
|
|
9335
|
-
|
|
9336
|
-
eSwipeArgs = extend(eSwipeArgs, _this.defaultArgs, swipeArgs);
|
|
9144
|
+
var eSwipeArgs = extend(undefined, _this.defaultArgs, swipeArgs);
|
|
9337
9145
|
var canTrigger = false;
|
|
9338
9146
|
var ele = _this.element;
|
|
9339
9147
|
var scrollBool = _this.isScrollable(ele);
|
|
@@ -9372,7 +9180,6 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9372
9180
|
* @param {TouchModel} oldProp ?
|
|
9373
9181
|
* @returns {void} ?
|
|
9374
9182
|
*/
|
|
9375
|
-
// eslint-disable-next-line
|
|
9376
9183
|
Touch.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
9377
9184
|
//No Code to handle
|
|
9378
9185
|
};
|
|
@@ -9429,11 +9236,9 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9429
9236
|
Touch.prototype.tapHoldEvent = function (evt) {
|
|
9430
9237
|
this.tapCount = 0;
|
|
9431
9238
|
this.touchAction = true;
|
|
9432
|
-
var eTapArgs;
|
|
9433
9239
|
EventHandler.remove(this.element, Browser.touchMoveEvent, this.moveEvent);
|
|
9434
9240
|
EventHandler.remove(this.element, Browser.touchEndEvent, this.endEvent);
|
|
9435
|
-
|
|
9436
|
-
eTapArgs = { originalEvent: evt };
|
|
9241
|
+
var eTapArgs = { originalEvent: evt };
|
|
9437
9242
|
this.trigger('tapHold', eTapArgs);
|
|
9438
9243
|
EventHandler.remove(this.element, Browser.touchCancelEvent, this.cancelEvent);
|
|
9439
9244
|
};
|
|
@@ -9472,7 +9277,6 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9472
9277
|
var interval = newT - this.tStampStart;
|
|
9473
9278
|
return Math.sqrt(xDist * xDist + yDist * yDist) / interval;
|
|
9474
9279
|
};
|
|
9475
|
-
// eslint-disable-next-line
|
|
9476
9280
|
Touch.prototype.checkSwipe = function (ele, flag) {
|
|
9477
9281
|
var keys = ['scroll', 'offset'];
|
|
9478
9282
|
var temp = flag ? ['Height', 'Top'] : ['Width', 'Left'];
|
|
@@ -9513,6 +9317,7 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9513
9317
|
return Touch;
|
|
9514
9318
|
}(Base));
|
|
9515
9319
|
|
|
9320
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9516
9321
|
/**
|
|
9517
9322
|
* Template Engine
|
|
9518
9323
|
*/
|
|
@@ -9535,14 +9340,6 @@ var SINGLE_SLASH = /\\/gi;
|
|
|
9535
9340
|
var DOUBLE_SLASH = /\\\\/gi;
|
|
9536
9341
|
var WORDFUNC = new RegExp('[\\w"\'@#$.\\s+]+', 'g');
|
|
9537
9342
|
var WINDOWFUNC = /\window\./gm;
|
|
9538
|
-
/**
|
|
9539
|
-
* The function to set regular expression for template expression string.
|
|
9540
|
-
*
|
|
9541
|
-
* @param {RegExp} value - Value expression.
|
|
9542
|
-
* @returns {RegExp} ?
|
|
9543
|
-
* @private
|
|
9544
|
-
*/
|
|
9545
|
-
|
|
9546
9343
|
// /**
|
|
9547
9344
|
// * To render the template string from the given data.
|
|
9548
9345
|
// * @param {string} template - String Template.
|
|
@@ -9568,17 +9365,15 @@ var WINDOWFUNC = /\window\./gm;
|
|
|
9568
9365
|
* @returns {string} ?
|
|
9569
9366
|
* @private
|
|
9570
9367
|
*/
|
|
9571
|
-
function compile
|
|
9368
|
+
function compile(template, helper, ignorePrefix) {
|
|
9572
9369
|
if (typeof template === 'function') {
|
|
9573
9370
|
return template;
|
|
9574
9371
|
}
|
|
9575
9372
|
else {
|
|
9576
9373
|
var argName = 'data';
|
|
9577
9374
|
var evalExpResult = evalExp(template, argName, helper, ignorePrefix);
|
|
9578
|
-
/* eslint-disable */
|
|
9579
9375
|
var condtion = "var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-\u25A0\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-\u25A0\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n ";
|
|
9580
|
-
var fnCode = 'var str
|
|
9581
|
-
/* eslint-enable */
|
|
9376
|
+
var fnCode = 'var str="' + evalExpResult + '";' + condtion + ' return str;';
|
|
9582
9377
|
var fn = new Function(argName, fnCode);
|
|
9583
9378
|
return fn.bind(helper);
|
|
9584
9379
|
}
|
|
@@ -9622,9 +9417,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9622
9417
|
else {
|
|
9623
9418
|
str = str.replace(/\\?"/g, '\\"');
|
|
9624
9419
|
}
|
|
9625
|
-
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp,
|
|
9626
|
-
// eslint-disable-next-line
|
|
9627
|
-
function (match, cnt, offset, matchStr) {
|
|
9420
|
+
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp, function (match, cnt, offset, matchStr) {
|
|
9628
9421
|
var SPECIAL_CHAR = /@|#|\$/gm;
|
|
9629
9422
|
var matches = cnt.match(CALL_FUNCTION);
|
|
9630
9423
|
// matches to detect any function calls
|
|
@@ -9647,12 +9440,10 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9647
9440
|
//handling for condition
|
|
9648
9441
|
var rlStr_1 = matches[1].split(' of ');
|
|
9649
9442
|
// replace for each into actual JavaScript
|
|
9650
|
-
// eslint-disable-next-line
|
|
9651
9443
|
cnt = '"; ' + cnt.replace(matches[1], function (mtc) {
|
|
9652
9444
|
localKeys.push(rlStr_1[0]);
|
|
9653
9445
|
localKeys.push(rlStr_1[0] + 'Index');
|
|
9654
9446
|
varCOunt = varCOunt + 1;
|
|
9655
|
-
// tslint:disable-next-line
|
|
9656
9447
|
return 'var i' + varCOunt + '=0; i' + varCOunt + ' < ' + addNameSpace(rlStr_1[1], true, nameSpace, localKeys, ignorePrefix) + '.length; i' + varCOunt + '++';
|
|
9657
9448
|
}) + '{ \n ' + rlStr_1[0] + '= ' + addNameSpace(rlStr_1[1], true, nameSpace, localKeys, ignorePrefix)
|
|
9658
9449
|
+ '[i' + varCOunt + ']; \n var ' + rlStr_1[0] + 'Index=i' + varCOunt + '; \n str = str + "';
|
|
@@ -9660,8 +9451,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9660
9451
|
else {
|
|
9661
9452
|
//helper function handling
|
|
9662
9453
|
var fnStr = cnt.split('(');
|
|
9663
|
-
|
|
9664
|
-
var fNameSpace = (helper && helper.hasOwnProperty(fnStr[0]) ? 'this.' : 'global');
|
|
9454
|
+
var fNameSpace = (helper && Object.prototype.hasOwnProperty.call(helper, fnStr[0]) ? 'this.' : 'global');
|
|
9665
9455
|
fNameSpace = (/\./.test(fnStr[0]) ? '' : fNameSpace);
|
|
9666
9456
|
var ftArray = matches[1].split(',');
|
|
9667
9457
|
if (matches[1].length !== 0 && !(/data/).test(ftArray[0]) && !(/window./).test(ftArray[0])) {
|
|
@@ -9672,7 +9462,6 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9672
9462
|
if (WINDOWFUNC.test(cnt) && arrObj.test(cnt) || splRegexp.test(cnt)) {
|
|
9673
9463
|
var splArrRegexp = /@|\$|#|\]\./gm;
|
|
9674
9464
|
if (splArrRegexp.test(cnt)) {
|
|
9675
|
-
// tslint:disable-next-line
|
|
9676
9465
|
cnt = '"+ ' + (fNameSpace === 'global' ? '' : fNameSpace) + cnt.replace(matches[1], rlStr.replace(WORDFUNC, function (strs) {
|
|
9677
9466
|
return HandleSpecialCharArrObj(strs, nameSpace, localKeys, ignorePrefix);
|
|
9678
9467
|
})) + '+ "';
|
|
@@ -9688,9 +9477,8 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9688
9477
|
else if (ELSE_STMT.test(cnt)) {
|
|
9689
9478
|
// handling else condition
|
|
9690
9479
|
cnt = '"; ' + cnt.replace(ELSE_STMT, '} else { \n str = str + "');
|
|
9691
|
-
// eslint-disable-next-line
|
|
9692
9480
|
}
|
|
9693
|
-
else if (
|
|
9481
|
+
else if (cnt.match(IF_OR_FOR)) {
|
|
9694
9482
|
// close condition
|
|
9695
9483
|
cnt = cnt.replace(IF_OR_FOR, '"; \n } \n str = str + "');
|
|
9696
9484
|
}
|
|
@@ -9755,17 +9543,20 @@ function NameSpaceArrObj(str, addNS, nameSpace, ignoreList) {
|
|
|
9755
9543
|
function NameSpaceForspecialChar(str, addNS, nameSpace, ignoreList) {
|
|
9756
9544
|
return ((addNS && !(NOT_NUMBER.test(str)) && ignoreList.indexOf(str.split('.')[0]) === -1) ? nameSpace + '["' + str : str);
|
|
9757
9545
|
}
|
|
9758
|
-
|
|
9546
|
+
/**
|
|
9547
|
+
* Replace double slashes to single slash.
|
|
9548
|
+
*
|
|
9549
|
+
* @param {string} tempStr ?
|
|
9550
|
+
* @returns {any} ?
|
|
9551
|
+
*/
|
|
9759
9552
|
function SlashReplace(tempStr) {
|
|
9760
9553
|
var double = '\\\\';
|
|
9761
9554
|
if (tempStr.match(DOUBLE_SLASH)) {
|
|
9762
|
-
|
|
9763
|
-
tempStr = tempStr;
|
|
9555
|
+
return tempStr;
|
|
9764
9556
|
}
|
|
9765
9557
|
else {
|
|
9766
|
-
|
|
9558
|
+
return tempStr.replace(SINGLE_SLASH, double);
|
|
9767
9559
|
}
|
|
9768
|
-
return tempStr;
|
|
9769
9560
|
}
|
|
9770
9561
|
/**
|
|
9771
9562
|
*
|
|
@@ -9796,9 +9587,7 @@ function HandleSpecialCharArrObj(str, nameSpaceNew, keys, ignorePrefix) {
|
|
|
9796
9587
|
}
|
|
9797
9588
|
}
|
|
9798
9589
|
|
|
9799
|
-
|
|
9800
|
-
* Template Engine Bridge
|
|
9801
|
-
*/
|
|
9590
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
|
|
9802
9591
|
var HAS_ROW = /^[\n\r.]+<tr|^<tr/;
|
|
9803
9592
|
var HAS_SVG = /^[\n\r.]+<svg|^<path|^<g/;
|
|
9804
9593
|
var blazorTemplates = {};
|
|
@@ -9818,10 +9607,8 @@ function getRandomId() {
|
|
|
9818
9607
|
* @returns {NodeList} ?
|
|
9819
9608
|
* @private
|
|
9820
9609
|
*/
|
|
9821
|
-
|
|
9822
|
-
function compile$$1(templateString, helper, ignorePrefix) {
|
|
9610
|
+
function compile$1(templateString, helper, ignorePrefix) {
|
|
9823
9611
|
var compiler = engineObj.compile(templateString, helper, ignorePrefix);
|
|
9824
|
-
// eslint-disable-next-line
|
|
9825
9612
|
return function (data, component, propName, templateId, isStringTemplate, index, element, root) {
|
|
9826
9613
|
var result = compiler(data, component, propName, element, root);
|
|
9827
9614
|
var blazorTemplateId = 'BlazorTemplateId';
|
|
@@ -9847,9 +9634,7 @@ function compile$$1(templateString, helper, ignorePrefix) {
|
|
|
9847
9634
|
data["" + blazorTemplateId] = blazorId;
|
|
9848
9635
|
blazorTemplates["" + templateId].push(data);
|
|
9849
9636
|
}
|
|
9850
|
-
// eslint-disable-next-line
|
|
9851
9637
|
return propName === 'rowTemplate' ? [createElement('tr', { id: blazorId, className: 'e-blazor-template' })] :
|
|
9852
|
-
// eslint-disable-next-line
|
|
9853
9638
|
[createElement('div', { id: blazorId, className: 'e-blazor-template' })];
|
|
9854
9639
|
}
|
|
9855
9640
|
if (typeof result === 'string') {
|
|
@@ -9895,7 +9680,6 @@ function updateBlazorTemplate(templateId, templateName, comp, isEmpty, callBack)
|
|
|
9895
9680
|
function resetBlazorTemplate(templateId, templateName, index) {
|
|
9896
9681
|
var templateDiv = document.getElementById(templateId);
|
|
9897
9682
|
if (templateDiv) {
|
|
9898
|
-
// eslint-disable-next-line
|
|
9899
9683
|
var innerTemplates = templateDiv.getElementsByClassName('blazor-inner-template');
|
|
9900
9684
|
for (var i = 0; i < innerTemplates.length; i++) {
|
|
9901
9685
|
var tempId = ' ';
|
|
@@ -9948,7 +9732,6 @@ function getTemplateEngine() {
|
|
|
9948
9732
|
* @returns {Function} ?
|
|
9949
9733
|
* @private
|
|
9950
9734
|
*/
|
|
9951
|
-
// eslint-disable-next-line
|
|
9952
9735
|
function initializeCSPTemplate(template, helper) {
|
|
9953
9736
|
var boundFunc;
|
|
9954
9737
|
template.prototype.CSPTemplate = true;
|
|
@@ -9965,10 +9748,9 @@ function initializeCSPTemplate(template, helper) {
|
|
|
9965
9748
|
var Engine = /** @__PURE__ @class */ (function () {
|
|
9966
9749
|
function Engine() {
|
|
9967
9750
|
}
|
|
9968
|
-
// eslint-disable-next-line
|
|
9969
9751
|
Engine.prototype.compile = function (templateString, helper, ignorePrefix) {
|
|
9970
9752
|
if (helper === void 0) { helper = {}; }
|
|
9971
|
-
return compile
|
|
9753
|
+
return compile(templateString, helper);
|
|
9972
9754
|
};
|
|
9973
9755
|
return Engine;
|
|
9974
9756
|
}());
|
|
@@ -10153,7 +9935,6 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
|
|
|
10153
9935
|
};
|
|
10154
9936
|
SanitizeHtmlHelper.removeXssAttrs = function () {
|
|
10155
9937
|
var _this = this;
|
|
10156
|
-
// eslint-disable-next-line
|
|
10157
9938
|
this.removeAttrs.forEach(function (item, index) {
|
|
10158
9939
|
var elements = _this.wrapElement.querySelectorAll(item.selector);
|
|
10159
9940
|
if (elements.length > 0) {
|
|
@@ -10166,9 +9947,5 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
|
|
|
10166
9947
|
return SanitizeHtmlHelper;
|
|
10167
9948
|
}());
|
|
10168
9949
|
|
|
10169
|
-
|
|
10170
|
-
* Base modules
|
|
10171
|
-
*/
|
|
10172
|
-
|
|
10173
|
-
export { blazorCultureFormats, IntlBase, Ajax, Fetch, Animation, rippleEffect, isRippleEnabled, enableRipple, animationMode, setGlobalAnimation, GlobalAnimationMode, Base, getComponent, removeChildInstance, proxyToRaw, setProxyToRaw, Browser, versionBasedStatePersistence, enableVersionBasedPersistence, Component, ChildProperty, Position, Draggable, Droppable, EventHandler, onIntlChange, rightToLeft, cldrData, defaultCulture, defaultCurrencyCode, Internationalization, setCulture, setCurrencyCode, loadCldr, enableRtl, getNumericObject, getNumberDependable, getDefaultDateObject, KeyboardEvents, L10n, ModuleLoader, Property, Complex, ComplexFactory, Collection, CollectionFactory, Event$1 as Event, NotifyPropertyChanges, CreateBuilder, SwipeSettings, Touch, HijriParser, blazorTemplates, getRandomId, compile$$1 as compile, updateBlazorTemplate, resetBlazorTemplate, setTemplateEngine, getTemplateEngine, initializeCSPTemplate, disableBlazorMode, createInstance, setImmediate, getValue, setValue, deleteObject, containerObject, isObject, getEnumValue, merge, extend, isNullOrUndefined, isUndefined, getUniqueID, debounce, queryParams, isObjectArray, compareElementParent, throwError, print, formatUnit, enableBlazorMode, isBlazor, getElement, getInstance, addInstance, uniqueID, createElement, addClass, removeClass, isVisible, prepend, append, detach, remove, attributes, select, selectAll, closest, siblings, getAttributeOrDefault, setStyleAttribute, classList, matches, includeInnerHTML, containsClass, cloneNode, Observer, SanitizeHtmlHelper, componentList, registerLicense, validateLicense, getVersion, createLicenseOverlay };
|
|
9950
|
+
export { Ajax, Animation, Base, Browser, ChildProperty, Collection, CollectionFactory, Complex, ComplexFactory, Component, CreateBuilder, Draggable, Droppable, Event$1 as Event, EventHandler, Fetch, GlobalAnimationMode, HijriParser, Internationalization, IntlBase, KeyboardEvents, L10n, ModuleLoader, NotifyPropertyChanges, Observer, Position, Property, SanitizeHtmlHelper, SwipeSettings, Touch, addClass, addInstance, animationMode, append, attributes, blazorCultureFormats, blazorTemplates, classList, cldrData, cloneNode, closest, compareElementParent, compile$1 as compile, componentList, containerObject, containsClass, createElement, createInstance, createLicenseOverlay, debounce, defaultCulture, defaultCurrencyCode, deleteObject, detach, disableBlazorMode, enableBlazorMode, enableRipple, enableRtl, enableVersionBasedPersistence, extend, formatUnit, getAttributeOrDefault, getComponent, getDefaultDateObject, getElement, getEnumValue, getInstance, getNumberDependable, getNumericObject, getRandomId, getTemplateEngine, getUniqueID, getValue, getVersion, includeInnerHTML, initializeCSPTemplate, isBlazor, isNullOrUndefined, isObject, isObjectArray, isRippleEnabled, isUndefined, isVisible, loadCldr, matches, merge, onIntlChange, prepend, print, proxyToRaw, queryParams, registerLicense, remove, removeChildInstance, removeClass, resetBlazorTemplate, rightToLeft, rippleEffect, select, selectAll, setCulture, setCurrencyCode, setGlobalAnimation, setImmediate, setProxyToRaw, setStyleAttribute, setTemplateEngine, setValue, siblings, throwError, uniqueID, updateBlazorTemplate, validateLicense, versionBasedStatePersistence };
|
|
10174
9951
|
//# sourceMappingURL=ej2-base.es5.js.map
|