@syncfusion/ej2-base 25.2.7 → 26.1.35-7502
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/{README.md → ReadMe.md} +100 -100
- package/bin/syncfusion-license.js +104 -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 +268 -486
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +307 -522
- 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/dist/ts/undefined +67 -0
- package/e2e/crypto.js +16 -16
- package/e2e/index.d.ts +27 -27
- package/e2e/m.protractor.config.js +286 -286
- package/e2e/modified-protractor/protractor.config.js +316 -316
- package/e2e/protractor.config.js +389 -389
- package/helpers/e2e/index.js +3 -3
- package/license +10 -10
- package/package.json +225 -161
- package/src/ajax.d.ts +1 -1
- package/src/ajax.js +3 -7
- package/src/animation-model.d.ts +41 -41
- package/src/animation.d.ts +1 -1
- package/src/animation.js +20 -22
- 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-model.d.ts +16 -16
- package/src/component.d.ts +4 -0
- package/src/component.js +28 -36
- package/src/dom.js +4 -11
- package/src/draggable-model.d.ts +113 -113
- package/src/draggable.js +20 -41
- package/src/droppable-model.d.ts +23 -23
- package/src/droppable.js +19 -20
- package/src/event-handler.js +2 -6
- package/src/fetch.js +1 -2
- package/src/hijri-parser.js +3 -3
- package/src/internationalization.d.ts +4 -0
- 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 +9 -1
- package/src/intl/intl-base.js +19 -18
- package/src/intl/number-formatter.js +14 -7
- package/src/intl/number-parser.js +2 -6
- package/src/intl/parser-base.js +6 -11
- package/src/keyboard-model.d.ts +16 -16
- package/src/keyboard.js +19 -20
- 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-model.d.ts +39 -39
- package/src/touch.js +22 -27
- package/src/util.d.ts +4 -4
- package/src/util.js +12 -37
- package/src/validate-lic.js +4 -3
- package/styles/_all.scss +2 -2
- package/styles/_bds-dark-definition.scss +16 -15
- package/styles/_bds-definition.scss +16 -15
- package/styles/_bootstrap-dark-definition.scss +42 -42
- package/styles/_bootstrap-definition.scss +42 -42
- package/styles/_bootstrap4-definition.scss +11 -11
- package/styles/_bootstrap5-dark-definition.scss +9 -9
- package/styles/_bootstrap5-definition.scss +8 -8
- package/styles/_bootstrap5.3-dark-definition.scss +8 -0
- package/styles/_bootstrap5.3-definition.scss +8 -0
- package/styles/_fabric-dark-definition.scss +42 -42
- package/styles/_fabric-definition.scss +42 -42
- package/styles/_fluent-dark-definition.scss +9 -9
- package/styles/_fluent-definition.scss +9 -9
- 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/_fusionnew-dark-definition.scss +8 -8
- package/styles/_fusionnew-definition.scss +8 -8
- package/styles/_highcontrast-definition.scss +42 -42
- package/styles/_highcontrast-light-definition.scss +42 -42
- package/styles/_material-dark-definition.scss +49 -48
- package/styles/_material-definition.scss +50 -49
- package/styles/_material3-dark-definition.scss +15 -14
- package/styles/_material3-definition.scss +16 -15
- package/styles/_tailwind-dark-definition.scss +16 -15
- package/styles/_tailwind-definition.scss +16 -15
- package/styles/_tailwind3-dark-definition.scss +15 -0
- package/styles/_tailwind3-definition.scss +15 -0
- package/styles/animation/_all.scss +535 -560
- package/styles/bds-lite.css +3408 -0
- package/styles/bds-lite.scss +3 -0
- package/styles/bds.css +3408 -0
- package/styles/bds.scss +3 -0
- package/styles/bootstrap-dark-lite.css +3749 -0
- package/styles/bootstrap-dark-lite.scss +3 -0
- package/styles/bootstrap-dark.css +1075 -169
- package/styles/bootstrap-lite.css +3749 -0
- package/styles/bootstrap-lite.scss +3 -0
- package/styles/bootstrap.css +1075 -169
- package/styles/bootstrap4-lite.css +3390 -0
- package/styles/bootstrap4-lite.scss +3 -0
- package/styles/bootstrap4.css +1063 -169
- package/styles/bootstrap5-dark-lite.css +2966 -0
- package/styles/bootstrap5-dark-lite.scss +3 -0
- package/styles/bootstrap5-dark.css +1068 -171
- package/styles/bootstrap5-lite.css +2966 -0
- package/styles/bootstrap5-lite.scss +3 -0
- package/styles/bootstrap5.3-lite.css +3559 -0
- package/styles/bootstrap5.3-lite.scss +3 -0
- package/styles/bootstrap5.3.css +3559 -0
- package/styles/bootstrap5.3.scss +3 -0
- package/styles/bootstrap5.css +1066 -169
- package/styles/common/_all.scss +2 -2
- package/styles/common/_core.scss +111 -117
- package/styles/common/_mixin.scss +11 -9
- package/styles/definition/_bds-dark.scss +1193 -1178
- package/styles/definition/_bds.scss +1488 -1458
- package/styles/definition/_bootstrap-dark.scss +213 -219
- package/styles/definition/_bootstrap.scss +208 -215
- package/styles/definition/_bootstrap4.scss +159 -167
- package/styles/definition/_bootstrap5-dark.scss +481 -494
- package/styles/definition/_bootstrap5.3-dark.scss +1232 -0
- package/styles/definition/_bootstrap5.3.scss +1579 -0
- package/styles/definition/_bootstrap5.scss +481 -495
- package/styles/definition/_fabric-dark.scss +194 -200
- package/styles/definition/_fabric.scss +192 -198
- package/styles/definition/_fluent-dark.scss +494 -557
- package/styles/definition/_fluent.scss +494 -558
- package/styles/definition/_fluent2-dark.scss +1523 -0
- package/styles/definition/_fluent2-highcontrast.scss +1523 -0
- package/styles/definition/_fluent2.scss +2295 -0
- package/styles/definition/_fusionnew-dark.scss +330 -362
- package/styles/definition/_fusionnew.scss +331 -363
- package/styles/definition/_highcontrast-light.scss +189 -193
- package/styles/definition/_highcontrast.scss +189 -195
- package/styles/definition/_material-dark.scss +193 -198
- package/styles/definition/_material.scss +186 -192
- package/styles/definition/_material3-dark.scss +660 -710
- package/styles/definition/_material3.scss +729 -792
- package/styles/definition/_tailwind-dark.scss +445 -488
- package/styles/definition/_tailwind.scss +443 -485
- package/styles/definition/_tailwind3-dark.scss +1622 -0
- package/styles/definition/_tailwind3.scss +2093 -0
- package/styles/fabric-dark-lite.css +3734 -0
- package/styles/fabric-dark-lite.scss +3 -0
- package/styles/fabric-dark.css +1075 -169
- package/styles/fabric-lite.css +3734 -0
- package/styles/fabric-lite.scss +3 -0
- package/styles/fabric.css +1075 -169
- package/styles/fluent-dark-lite.css +2966 -0
- package/styles/fluent-dark-lite.scss +3 -0
- package/styles/fluent-dark.css +1066 -169
- package/styles/fluent-lite.css +2966 -0
- package/styles/fluent-lite.scss +3 -0
- package/styles/fluent.css +1066 -169
- package/styles/fluent2-lite.css +4017 -0
- package/styles/fluent2-lite.scss +3 -0
- package/styles/fluent2.css +4017 -0
- package/styles/fluent2.scss +3 -0
- package/styles/highcontrast-light-lite.css +3725 -0
- package/styles/highcontrast-light-lite.scss +3 -0
- package/styles/highcontrast-light.css +1075 -169
- package/styles/highcontrast-lite.css +3725 -0
- package/styles/highcontrast-lite.scss +3 -0
- package/styles/highcontrast.css +1075 -169
- package/styles/material-dark-lite.css +3702 -0
- package/styles/material-dark-lite.scss +3 -0
- package/styles/material-dark.css +1075 -169
- package/styles/material-lite.css +3702 -0
- package/styles/material-lite.scss +3 -0
- package/styles/material.css +1075 -169
- package/styles/material3-dark-lite.css +3021 -0
- package/styles/material3-dark-lite.scss +3 -0
- package/styles/material3-dark.css +1066 -170
- package/styles/material3-lite.css +3077 -0
- package/styles/material3-lite.scss +3 -0
- package/styles/material3.css +1066 -170
- package/styles/offline-theme/material-dark.css +1075 -169
- package/styles/offline-theme/material.css +1075 -169
- package/styles/offline-theme/tailwind-dark.css +1067 -170
- package/styles/offline-theme/tailwind.css +1067 -170
- package/styles/tailwind-dark-lite.css +2967 -0
- package/styles/tailwind-dark-lite.scss +3 -0
- package/styles/tailwind-dark.css +1067 -170
- package/styles/tailwind-lite.css +2967 -0
- package/styles/tailwind-lite.scss +3 -0
- package/styles/tailwind.css +1067 -170
- package/styles/tailwind3-lite.css +3775 -0
- package/styles/tailwind3-lite.scss +3 -0
- package/styles/tailwind3.css +3775 -0
- package/styles/tailwind3.scss +3 -0
- package/.eslintrc.json +0 -260
- package/CHANGELOG.md +0 -649
- package/tslint.json +0 -111
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
|
*
|
|
@@ -1421,8 +1377,7 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1421
1377
|
var numObject = dependable.numericObject;
|
|
1422
1378
|
dOptions.numberMapper = isBlazor() ? extend({}, numObject) :
|
|
1423
1379
|
ParserBase.getNumberMapper(dependable.parserObject, ParserBase.getNumberingSystem(cldr), true);
|
|
1424
|
-
dOptions.currencySymbol = isBlazor() ? getValue('currencySymbol', numObject) : IntlBase.getCurrencySymbol(dependable.numericObject, fOptions.currency || defaultCurrencyCode, option.altSymbol);
|
|
1425
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1380
|
+
dOptions.currencySymbol = isBlazor() ? getValue('currencySymbol', numObject) : IntlBase.getCurrencySymbol(dependable.numericObject, fOptions.currency || defaultCurrencyCode, option.altSymbol, option.ignoreCurrency);
|
|
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,25 +1566,31 @@ 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 {
|
|
1616
1573
|
break;
|
|
1617
1574
|
}
|
|
1618
1575
|
}
|
|
1619
|
-
|
|
1576
|
+
// removes the dot and trailing zero
|
|
1577
|
+
var decimalSeparator = (dOptions).numberMapper.numberSymbols[mapper[3]] || '.';
|
|
1578
|
+
if (decimalPart === '') {
|
|
1579
|
+
fValue = temp[0];
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
fValue = temp[0] + decimalSeparator + decimalPart;
|
|
1583
|
+
}
|
|
1620
1584
|
}
|
|
1621
1585
|
}
|
|
1622
1586
|
if (curData.type === 'scientific') {
|
|
1623
1587
|
fValue = value.toExponential(curData.maximumFractionDigits);
|
|
1624
|
-
fValue = fValue.replace('e', dOptions.numberMapper.numberSymbols[mapper
|
|
1588
|
+
fValue = fValue.replace('e', dOptions.numberMapper.numberSymbols[mapper[4]]);
|
|
1625
1589
|
}
|
|
1626
|
-
fValue = fValue.replace('.', dOptions.numberMapper.numberSymbols[mapper
|
|
1590
|
+
fValue = fValue.replace('.', dOptions.numberMapper.numberSymbols[mapper[3]]);
|
|
1627
1591
|
fValue = curData.format === '#,###,,;(#,###,,)' ? this.customPivotFormat(parseInt(fValue, 10)) : fValue;
|
|
1628
1592
|
if (curData.useGrouping) {
|
|
1629
|
-
|
|
1630
|
-
fValue = this.groupNumbers(fValue, curData.groupData.primary, curData.groupSeparator || ',', dOptions.numberMapper.numberSymbols[mapper$1[3]] || '.', curData.groupData.secondary);
|
|
1593
|
+
fValue = this.groupNumbers(fValue, curData.groupData.primary, curData.groupSeparator || ',', dOptions.numberMapper.numberSymbols[mapper[3]] || '.', curData.groupData.secondary);
|
|
1631
1594
|
}
|
|
1632
1595
|
fValue = ParserBase.convertValueParts(fValue, IntlBase.latnParseRegex, dOptions.numberMapper.mapper);
|
|
1633
1596
|
if (curData.nlead === 'N/A') {
|
|
@@ -1753,7 +1716,6 @@ var NumberFormat = /** @__PURE__ @class */ (function () {
|
|
|
1753
1716
|
NumberFormat.customPivotFormat = function (value) {
|
|
1754
1717
|
if (value >= 500000) {
|
|
1755
1718
|
value /= 1000000;
|
|
1756
|
-
// eslint-disable-next-line
|
|
1757
1719
|
var _a = value.toString().split('.'), integer = _a[0], decimal = _a[1];
|
|
1758
1720
|
return decimal && +decimal.substring(0, 1) >= 5
|
|
1759
1721
|
? Math.ceil(value).toString()
|
|
@@ -1775,7 +1737,6 @@ var timeSetter$1 = {
|
|
|
1775
1737
|
milliseconds: 'setMilliseconds'
|
|
1776
1738
|
};
|
|
1777
1739
|
var month = 'months';
|
|
1778
|
-
/* tslint:disable no-any */
|
|
1779
1740
|
/**
|
|
1780
1741
|
* Date Parser.
|
|
1781
1742
|
*
|
|
@@ -1816,17 +1777,15 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1816
1777
|
var zCorrectTemp = 0;
|
|
1817
1778
|
var isgmtTraversed = false;
|
|
1818
1779
|
var nRegx = numOptions.numericRegex;
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
ParserBase.getNumberMapper(dependable.parserObject, ParserBase.getNumberingSystem(cldr));
|
|
1780
|
+
var numMapper = isBlazor() ? dependable.parserObject.numbers
|
|
1781
|
+
: ParserBase.getNumberMapper(dependable.parserObject, ParserBase.getNumberingSystem(cldr));
|
|
1822
1782
|
for (var i = 0; i < length_1; i++) {
|
|
1823
1783
|
var str = patternMatch[parseInt(i.toString(), 10)];
|
|
1824
1784
|
var len = str.length;
|
|
1825
1785
|
var char = (str[0] === 'K') ? 'h' : str[0];
|
|
1826
1786
|
var isNumber = void 0;
|
|
1827
1787
|
var canUpdate = void 0;
|
|
1828
|
-
|
|
1829
|
-
var charKey = datePartMatcher[char];
|
|
1788
|
+
var charKey = datePartMatcher["" + char];
|
|
1830
1789
|
var optional = (len === 2) ? '' : '?';
|
|
1831
1790
|
if (isgmtTraversed) {
|
|
1832
1791
|
gmtCorrection = zCorrectTemp;
|
|
@@ -1834,22 +1793,18 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1834
1793
|
}
|
|
1835
1794
|
switch (char) {
|
|
1836
1795
|
case 'E':
|
|
1837
|
-
case 'c':
|
|
1838
|
-
// eslint-disable-next-line
|
|
1796
|
+
case 'c': {
|
|
1839
1797
|
var weekData = void 0;
|
|
1840
1798
|
if (isBlazor()) {
|
|
1841
|
-
|
|
1842
|
-
weekData = getValue('days.' + IntlBase.monthIndex[len], dependable.dateObject);
|
|
1799
|
+
weekData = getValue('days.' + IntlBase.monthIndex["" + len], dependable.dateObject);
|
|
1843
1800
|
}
|
|
1844
1801
|
else {
|
|
1845
|
-
|
|
1846
|
-
weekData = dependable.dateObject[IntlBase.days][standalone$1][IntlBase.monthIndex[len]];
|
|
1802
|
+
weekData = dependable.dateObject["" + IntlBase.days]["" + standalone$1][IntlBase.monthIndex["" + len]];
|
|
1847
1803
|
}
|
|
1848
|
-
// eslint-disable-next-line
|
|
1849
1804
|
var weekObject = ParserBase.reverseObject(weekData);
|
|
1850
|
-
// tslint:enable
|
|
1851
1805
|
regexString += '(' + Object.keys(weekObject).join('|') + ')';
|
|
1852
1806
|
break;
|
|
1807
|
+
}
|
|
1853
1808
|
case 'M':
|
|
1854
1809
|
case 'L':
|
|
1855
1810
|
case 'd':
|
|
@@ -1862,17 +1817,13 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1862
1817
|
if ((char === 'M' || char === 'L') && len > 2) {
|
|
1863
1818
|
var monthData = void 0;
|
|
1864
1819
|
if (isBlazor()) {
|
|
1865
|
-
|
|
1866
|
-
monthData = getValue('months.' + IntlBase.monthIndex[len], dependable.dateObject);
|
|
1820
|
+
monthData = getValue('months.' + IntlBase.monthIndex["" + len], dependable.dateObject);
|
|
1867
1821
|
}
|
|
1868
1822
|
else {
|
|
1869
|
-
|
|
1870
|
-
monthData = dependable.dateObject[month][standalone$1][IntlBase.monthIndex[len]];
|
|
1823
|
+
monthData = dependable.dateObject["" + month]["" + standalone$1][IntlBase.monthIndex["" + len]];
|
|
1871
1824
|
}
|
|
1872
|
-
|
|
1873
|
-
parseOptions[charKey]
|
|
1874
|
-
// eslint-disable-next-line
|
|
1875
|
-
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + ')';
|
|
1825
|
+
parseOptions["" + charKey] = ParserBase.reverseObject(monthData);
|
|
1826
|
+
regexString += '(' + Object.keys(parseOptions["" + charKey]).join('|') + ')';
|
|
1876
1827
|
}
|
|
1877
1828
|
else if (char === 'f') {
|
|
1878
1829
|
if (len > 3) {
|
|
@@ -1889,11 +1840,11 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1889
1840
|
parseOptions.hour12 = true;
|
|
1890
1841
|
}
|
|
1891
1842
|
break;
|
|
1892
|
-
case 'W':
|
|
1893
|
-
// eslint-disable-next-line
|
|
1843
|
+
case 'W': {
|
|
1894
1844
|
var opt = len === 1 ? '?' : '';
|
|
1895
1845
|
regexString += '(' + nRegx + opt + nRegx + ')';
|
|
1896
1846
|
break;
|
|
1847
|
+
}
|
|
1897
1848
|
case 'y':
|
|
1898
1849
|
canUpdate = isNumber = true;
|
|
1899
1850
|
if (len === 2) {
|
|
@@ -1903,48 +1854,41 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1903
1854
|
regexString += '(' + nRegx + '{' + len + ',})';
|
|
1904
1855
|
}
|
|
1905
1856
|
break;
|
|
1906
|
-
case 'a':
|
|
1857
|
+
case 'a': {
|
|
1907
1858
|
canUpdate = true;
|
|
1908
|
-
// eslint-disable-next-line
|
|
1909
1859
|
var periodValur = isBlazor() ?
|
|
1910
1860
|
getValue('dayPeriods', dependable.dateObject) :
|
|
1911
1861
|
getValue('dayPeriods.format.wide', dependable.dateObject);
|
|
1912
|
-
|
|
1913
|
-
parseOptions[charKey]
|
|
1914
|
-
// eslint-disable-next-line
|
|
1915
|
-
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + ')';
|
|
1862
|
+
parseOptions["" + charKey] = ParserBase.reverseObject(periodValur);
|
|
1863
|
+
regexString += '(' + Object.keys(parseOptions["" + charKey]).join('|') + ')';
|
|
1916
1864
|
break;
|
|
1917
|
-
|
|
1865
|
+
}
|
|
1866
|
+
case 'G': {
|
|
1918
1867
|
canUpdate = true;
|
|
1919
|
-
// eslint-disable-next-line
|
|
1920
1868
|
var eText = (len <= 3) ? 'eraAbbr' : (len === 4) ? 'eraNames' : 'eraNarrow';
|
|
1921
|
-
|
|
1922
|
-
parseOptions[charKey] = ParserBase.reverseObject(isBlazor() ?
|
|
1869
|
+
parseOptions["" + charKey] = ParserBase.reverseObject(isBlazor() ?
|
|
1923
1870
|
getValue('eras', dependable.dateObject) : getValue('eras.' + eText, dependable.dateObject));
|
|
1924
|
-
|
|
1925
|
-
regexString += '(' + Object.keys(parseOptions[charKey]).join('|') + '?)';
|
|
1871
|
+
regexString += '(' + Object.keys(parseOptions["" + charKey]).join('|') + '?)';
|
|
1926
1872
|
break;
|
|
1927
|
-
|
|
1928
|
-
|
|
1873
|
+
}
|
|
1874
|
+
case 'z': {
|
|
1929
1875
|
var tval = new Date().getTimezoneOffset();
|
|
1930
1876
|
canUpdate = (tval !== 0);
|
|
1931
|
-
|
|
1932
|
-
parseOptions[charKey]
|
|
1933
|
-
// eslint-disable-next-line
|
|
1934
|
-
var tzone = parseOptions[charKey];
|
|
1877
|
+
parseOptions["" + charKey] = getValue('dates.timeZoneNames', dependable.parserObject);
|
|
1878
|
+
var tzone = parseOptions["" + charKey];
|
|
1935
1879
|
hourOnly = (len < 4);
|
|
1936
|
-
// eslint-disable-next-line
|
|
1937
1880
|
var hpattern = hourOnly ? '+H;-H' : tzone.hourFormat;
|
|
1938
1881
|
hpattern = hpattern.replace(/:/g, numMapper.timeSeparator);
|
|
1939
1882
|
regexString += '(' + this.parseTimeZoneRegx(hpattern, tzone, nRegx) + ')?';
|
|
1940
1883
|
isgmtTraversed = true;
|
|
1941
1884
|
zCorrectTemp = hourOnly ? 6 : 12;
|
|
1942
1885
|
break;
|
|
1943
|
-
|
|
1944
|
-
|
|
1886
|
+
}
|
|
1887
|
+
case '\'': {
|
|
1945
1888
|
var iString = str.replace(/'/g, '');
|
|
1946
1889
|
regexString += '(' + iString + ')?';
|
|
1947
1890
|
break;
|
|
1891
|
+
}
|
|
1948
1892
|
default:
|
|
1949
1893
|
regexString += '([\\D])';
|
|
1950
1894
|
break;
|
|
@@ -1976,7 +1920,6 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1976
1920
|
if (is2DigitYear) {
|
|
1977
1921
|
tYear = parseInt((dobj.year + '').slice(0, 2) + ystrig, 10);
|
|
1978
1922
|
}
|
|
1979
|
-
// tslint:disable-next-line
|
|
1980
1923
|
var dateObject = HijriParser.toGregorian(tYear || dobj.year, tMonth || dobj.month, tDate || dobj.date);
|
|
1981
1924
|
parsedDateParts.year = dateObject.getFullYear();
|
|
1982
1925
|
parsedDateParts.month = dateObject.getMonth() + 1;
|
|
@@ -1985,7 +1928,6 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
1985
1928
|
return _this.getDateObject(parsedDateParts);
|
|
1986
1929
|
};
|
|
1987
1930
|
};
|
|
1988
|
-
/* tslint:disable */
|
|
1989
1931
|
/**
|
|
1990
1932
|
* Returns date object for provided date options
|
|
1991
1933
|
*
|
|
@@ -2010,8 +1952,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2010
1952
|
}
|
|
2011
1953
|
for (var _i = 0, tKeys_1 = tKeys; _i < tKeys_1.length; _i++) {
|
|
2012
1954
|
var key = tKeys_1[_i];
|
|
2013
|
-
|
|
2014
|
-
var tValue = options[key];
|
|
1955
|
+
var tValue = options["" + key];
|
|
2015
1956
|
if (isUndefined(tValue) && key === 'day') {
|
|
2016
1957
|
res.setDate(1);
|
|
2017
1958
|
}
|
|
@@ -2023,8 +1964,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2023
1964
|
}
|
|
2024
1965
|
var pDate = res.getDate();
|
|
2025
1966
|
res.setDate(1);
|
|
2026
|
-
|
|
2027
|
-
res[timeSetter$1[key]](tValue);
|
|
1967
|
+
res[timeSetter$1["" + key]](tValue);
|
|
2028
1968
|
var lDate = new Date(res.getFullYear(), tValue + 1, 0).getDate();
|
|
2029
1969
|
res.setDate(pDate < lDate ? pDate : lDate);
|
|
2030
1970
|
}
|
|
@@ -2035,8 +1975,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2035
1975
|
return null;
|
|
2036
1976
|
}
|
|
2037
1977
|
}
|
|
2038
|
-
|
|
2039
|
-
res[timeSetter$1[key]](tValue);
|
|
1978
|
+
res["" + timeSetter$1["" + key]](tValue);
|
|
2040
1979
|
}
|
|
2041
1980
|
}
|
|
2042
1981
|
}
|
|
@@ -2078,8 +2017,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2078
2017
|
var curObject = parseOptions.evalposition["" + prop];
|
|
2079
2018
|
var matchString = matches[curObject.pos];
|
|
2080
2019
|
if (curObject.isNumber) {
|
|
2081
|
-
|
|
2082
|
-
retOptions[prop] = this.internalNumberParser(matchString, num);
|
|
2020
|
+
retOptions["" + prop] = this.internalNumberParser(matchString, num);
|
|
2083
2021
|
}
|
|
2084
2022
|
else {
|
|
2085
2023
|
if (prop === 'timeZone' && !isUndefined(matchString)) {
|
|
@@ -2100,14 +2038,11 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2100
2038
|
}
|
|
2101
2039
|
else {
|
|
2102
2040
|
var cultureOptions = ['en-US', 'en-MH', 'en-MP'];
|
|
2103
|
-
// eslint-disable-next-line
|
|
2104
2041
|
matchString = ((prop === 'month') && (!parseOptions.isIslamic) && (parseOptions.culture === 'en' || parseOptions.culture === 'en-GB' || parseOptions.culture === 'en-US'))
|
|
2105
2042
|
? matchString[0].toUpperCase() + matchString.substring(1).toLowerCase() : matchString;
|
|
2106
|
-
// eslint-disable-next-line
|
|
2107
2043
|
matchString = ((prop !== 'month') && (prop === 'designator') && parseOptions.culture && parseOptions.culture.indexOf('en-') !== -1 && cultureOptions.indexOf(parseOptions.culture) === -1)
|
|
2108
2044
|
? matchString.toLowerCase() : matchString;
|
|
2109
|
-
|
|
2110
|
-
retOptions[prop] = parseOptions[prop][matchString];
|
|
2045
|
+
retOptions["" + prop] = parseOptions["" + prop]["" + matchString];
|
|
2111
2046
|
}
|
|
2112
2047
|
}
|
|
2113
2048
|
}
|
|
@@ -2143,7 +2078,6 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2143
2078
|
var pattern = tZone.gmtFormat;
|
|
2144
2079
|
var ret;
|
|
2145
2080
|
var cRegex = '(' + nRegex + ')' + '(' + nRegex + ')';
|
|
2146
|
-
var splitStr;
|
|
2147
2081
|
ret = hourFormat.replace('+', '\\+');
|
|
2148
2082
|
if (hourFormat.indexOf('HH') !== -1) {
|
|
2149
2083
|
ret = ret.replace(/HH|mm/g, '(' + cRegex + ')');
|
|
@@ -2151,8 +2085,7 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2151
2085
|
else {
|
|
2152
2086
|
ret = ret.replace(/H|m/g, '(' + cRegex + '?)');
|
|
2153
2087
|
}
|
|
2154
|
-
|
|
2155
|
-
splitStr = (ret.split(';').map(function (str) {
|
|
2088
|
+
var splitStr = (ret.split(';').map(function (str) {
|
|
2156
2089
|
return pattern.replace('{0}', str);
|
|
2157
2090
|
}));
|
|
2158
2091
|
ret = splitStr.join('|') + '|' + tZone.gmtZeroFormat;
|
|
@@ -2181,9 +2114,8 @@ var DateParser = /** @__PURE__ @class */ (function () {
|
|
|
2181
2114
|
return DateParser;
|
|
2182
2115
|
}());
|
|
2183
2116
|
|
|
2184
|
-
var regExp
|
|
2185
|
-
|
|
2186
|
-
var parseRegex = new regExp$1('^([^0-9]*)' + '(([0-9,]*[0-9]+)(\.[0-9]+)?)' + '([Ee][+-]?[0-9]+)?([^0-9]*)$');
|
|
2117
|
+
var regExp = RegExp;
|
|
2118
|
+
var parseRegex = new regExp('^([^0-9]*)' + '(([0-9,]*[0-9]+)(.[0-9]+)?)' + '([Ee][+-]?[0-9]+)?([^0-9]*)$');
|
|
2187
2119
|
var groupRegex = /,/g;
|
|
2188
2120
|
var keys = ['minusSign', 'infinity'];
|
|
2189
2121
|
/**
|
|
@@ -2206,7 +2138,6 @@ var NumberParser = /** @__PURE__ @class */ (function () {
|
|
|
2206
2138
|
var _this = this;
|
|
2207
2139
|
var dependable = IntlBase.getDependables(cldr, culture, '', true);
|
|
2208
2140
|
var parseOptions = { custom: true };
|
|
2209
|
-
var numOptions;
|
|
2210
2141
|
if ((IntlBase.formatRegex.test(option.format)) || !(option.format)) {
|
|
2211
2142
|
extend(parseOptions, IntlBase.getProperNumericSkeleton(option.format || 'N'));
|
|
2212
2143
|
parseOptions.custom = false;
|
|
@@ -2220,10 +2151,8 @@ var NumberParser = /** @__PURE__ @class */ (function () {
|
|
|
2220
2151
|
extend(parseOptions, IntlBase.customFormat(option.format, null, null));
|
|
2221
2152
|
}
|
|
2222
2153
|
var numbers = getValue('numbers', dependable.parserObject);
|
|
2223
|
-
|
|
2224
|
-
numOptions = ParserBase.getCurrentNumericOptions(dependable.parserObject, ParserBase.getNumberingSystem(cldr), true, isBlazor());
|
|
2154
|
+
var numOptions = ParserBase.getCurrentNumericOptions(dependable.parserObject, ParserBase.getNumberingSystem(cldr), true, isBlazor());
|
|
2225
2155
|
parseOptions.symbolRegex = ParserBase.getSymbolRegex(Object.keys(numOptions.symbolMatch));
|
|
2226
|
-
// eslint-disable-next-line
|
|
2227
2156
|
parseOptions.infinity = numOptions.symbolNumberSystem[keys[1]];
|
|
2228
2157
|
var symbolpattern;
|
|
2229
2158
|
if (!isBlazor()) {
|
|
@@ -2316,6 +2245,7 @@ var NumberParser = /** @__PURE__ @class */ (function () {
|
|
|
2316
2245
|
return NumberParser;
|
|
2317
2246
|
}());
|
|
2318
2247
|
|
|
2248
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
|
|
2319
2249
|
var Observer = /** @__PURE__ @class */ (function () {
|
|
2320
2250
|
function Observer(context) {
|
|
2321
2251
|
this.ranArray = [];
|
|
@@ -2456,7 +2386,6 @@ var Observer = /** @__PURE__ @class */ (function () {
|
|
|
2456
2386
|
}
|
|
2457
2387
|
}
|
|
2458
2388
|
};
|
|
2459
|
-
// eslint-disable-next-line
|
|
2460
2389
|
Observer.prototype.dateReviver = function (key, value) {
|
|
2461
2390
|
var dPattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;
|
|
2462
2391
|
if (isBlazor && typeof value === 'string' && value.match(dPattern) !== null) {
|
|
@@ -2487,12 +2416,10 @@ var Observer = /** @__PURE__ @class */ (function () {
|
|
|
2487
2416
|
* @returns {void} ?
|
|
2488
2417
|
*/
|
|
2489
2418
|
Observer.prototype.offIntlEvents = function () {
|
|
2490
|
-
// eslint-disable-next-line
|
|
2491
2419
|
var eventsArr = this.boundedEvents['notifyExternalChange'];
|
|
2492
2420
|
if (eventsArr) {
|
|
2493
2421
|
for (var i = 0; i < eventsArr.length; i++) {
|
|
2494
|
-
|
|
2495
|
-
var curContext = eventsArr["" + i].context;
|
|
2422
|
+
var curContext = eventsArr[parseInt(i.toString(), 10)].context;
|
|
2496
2423
|
if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) {
|
|
2497
2424
|
this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
|
|
2498
2425
|
i--;
|
|
@@ -2510,8 +2437,7 @@ var Observer = /** @__PURE__ @class */ (function () {
|
|
|
2510
2437
|
* @returns {boolean} ?
|
|
2511
2438
|
*/
|
|
2512
2439
|
Observer.prototype.notExist = function (prop) {
|
|
2513
|
-
|
|
2514
|
-
return this.boundedEvents.hasOwnProperty(prop) === false || this.boundedEvents[prop].length <= 0;
|
|
2440
|
+
return Object.prototype.hasOwnProperty.call(this.boundedEvents, prop) === false || this.boundedEvents["" + prop].length <= 0;
|
|
2515
2441
|
};
|
|
2516
2442
|
/**
|
|
2517
2443
|
* Returns if the handler is present.
|
|
@@ -2558,7 +2484,7 @@ var defaultCulture = 'en-US';
|
|
|
2558
2484
|
* @private
|
|
2559
2485
|
*/
|
|
2560
2486
|
var defaultCurrencyCode = 'USD';
|
|
2561
|
-
var mapper = ['numericObject', 'dateObject'];
|
|
2487
|
+
var mapper$1 = ['numericObject', 'dateObject'];
|
|
2562
2488
|
/**
|
|
2563
2489
|
* Internationalization class provides support to parse and format the number and date object to the desired format.
|
|
2564
2490
|
* ```typescript
|
|
@@ -2782,10 +2708,8 @@ function enableRtl(status) {
|
|
|
2782
2708
|
* @private
|
|
2783
2709
|
*/
|
|
2784
2710
|
function getNumericObject(locale, type) {
|
|
2785
|
-
|
|
2786
|
-
var
|
|
2787
|
-
// eslint-disable-next-line
|
|
2788
|
-
var dateObject = IntlBase.getDependables(cldrData, locale, '')[mapper[1]];
|
|
2711
|
+
var numObject = IntlBase.getDependables(cldrData, locale, '', true)[mapper$1[0]];
|
|
2712
|
+
var dateObject = IntlBase.getDependables(cldrData, locale, '')[mapper$1[1]];
|
|
2789
2713
|
var numSystem = getValue('defaultNumberingSystem', numObject);
|
|
2790
2714
|
var symbPattern = isBlazor() ? getValue('numberSymbols', numObject) : getValue('symbols-numberSystem-' + numSystem, numObject);
|
|
2791
2715
|
var pattern = IntlBase.getSymbolPattern(type || 'decimal', numSystem, numObject, false);
|
|
@@ -2801,9 +2725,7 @@ function getNumericObject(locale, type) {
|
|
|
2801
2725
|
* @private
|
|
2802
2726
|
*/
|
|
2803
2727
|
function getNumberDependable(locale, currency) {
|
|
2804
|
-
// eslint-disable-next-line
|
|
2805
2728
|
var numObject = IntlBase.getDependables(cldrData, locale, '', true);
|
|
2806
|
-
// eslint-disable-next-line
|
|
2807
2729
|
return IntlBase.getCurrencySymbol(numObject.numericObject, currency);
|
|
2808
2730
|
}
|
|
2809
2731
|
/**
|
|
@@ -2815,11 +2737,11 @@ function getNumberDependable(locale, currency) {
|
|
|
2815
2737
|
* @private
|
|
2816
2738
|
*/
|
|
2817
2739
|
function getDefaultDateObject(mode) {
|
|
2818
|
-
|
|
2819
|
-
return IntlBase.getDependables(cldrData, '', mode, false)[mapper[1]];
|
|
2740
|
+
return IntlBase.getDependables(cldrData, '', mode, false)[mapper$1[1]];
|
|
2820
2741
|
}
|
|
2821
2742
|
|
|
2822
|
-
|
|
2743
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
|
|
2744
|
+
var regExp$1 = RegExp;
|
|
2823
2745
|
var blazorCultureFormats = {
|
|
2824
2746
|
'en-US': {
|
|
2825
2747
|
'd': 'M/d/y',
|
|
@@ -2844,13 +2766,13 @@ var blazorCultureFormats = {
|
|
|
2844
2766
|
/**
|
|
2845
2767
|
* Date base common constants and function for date parser and formatter.
|
|
2846
2768
|
*/
|
|
2847
|
-
// eslint-disable-next-line
|
|
2769
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
2848
2770
|
var IntlBase;
|
|
2849
2771
|
(function (IntlBase) {
|
|
2850
|
-
|
|
2851
|
-
// tslint:disable-next-line:max-line-length.
|
|
2772
|
+
// eslint-disable-next-line security/detect-unsafe-regex
|
|
2852
2773
|
IntlBase.negativeDataRegex = /^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2853
|
-
|
|
2774
|
+
// eslint-disable-next-line security/detect-unsafe-regex
|
|
2775
|
+
IntlBase.customRegex = /^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0# ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
2854
2776
|
IntlBase.latnParseRegex = /0|1|2|3|4|5|6|7|8|9/g;
|
|
2855
2777
|
var fractionRegex = /[0-9]/g;
|
|
2856
2778
|
IntlBase.defaultCurrency = '$';
|
|
@@ -2881,8 +2803,8 @@ var IntlBase;
|
|
|
2881
2803
|
'fri': 5,
|
|
2882
2804
|
'sat': 6
|
|
2883
2805
|
};
|
|
2884
|
-
IntlBase.formatRegex = new regExp(
|
|
2885
|
-
IntlBase.currencyFormatRegex = new regExp(
|
|
2806
|
+
IntlBase.formatRegex = new regExp$1('(^[ncpae]{1})([0-1]?[0-9]|20)?$', 'i');
|
|
2807
|
+
IntlBase.currencyFormatRegex = new regExp$1('(^[ca]{1})([0-1]?[0-9]|20)?$', 'i');
|
|
2886
2808
|
IntlBase.curWithoutNumberRegex = /(c|a)$/ig;
|
|
2887
2809
|
var typeMapper = {
|
|
2888
2810
|
'$': 'isCurrency',
|
|
@@ -2893,7 +2815,6 @@ var IntlBase;
|
|
|
2893
2815
|
};
|
|
2894
2816
|
IntlBase.dateParseRegex = /([a-z])\1*|'([^']|'')+'|''|./gi;
|
|
2895
2817
|
IntlBase.basicPatterns = ['short', 'medium', 'long', 'full'];
|
|
2896
|
-
/* tslint:disable:quotemark */
|
|
2897
2818
|
IntlBase.defaultObject = {
|
|
2898
2819
|
'dates': {
|
|
2899
2820
|
'calendars': {
|
|
@@ -3444,7 +3365,6 @@ var IntlBase;
|
|
|
3444
3365
|
}
|
|
3445
3366
|
}
|
|
3446
3367
|
};
|
|
3447
|
-
/* tslint:enable:quotemark */
|
|
3448
3368
|
IntlBase.monthIndex = {
|
|
3449
3369
|
3: 'abbreviated',
|
|
3450
3370
|
4: 'wide',
|
|
@@ -3588,7 +3508,7 @@ var IntlBase;
|
|
|
3588
3508
|
var ret = {};
|
|
3589
3509
|
var pattern = matches[1].toUpperCase();
|
|
3590
3510
|
ret.isAccount = (pattern === 'A');
|
|
3591
|
-
ret.type = IntlBase.patternMatcher[pattern];
|
|
3511
|
+
ret.type = IntlBase.patternMatcher["" + pattern];
|
|
3592
3512
|
if (skeleton.length > 1) {
|
|
3593
3513
|
ret.fractionDigits = parseInt(matches[2], 10);
|
|
3594
3514
|
}
|
|
@@ -3652,11 +3572,12 @@ var IntlBase;
|
|
|
3652
3572
|
* @param {Object} numericObject ?
|
|
3653
3573
|
* @param {string} currencyCode ?
|
|
3654
3574
|
* @param {string} altSymbol ?
|
|
3575
|
+
* @param {string} ignoreCurrency ?
|
|
3655
3576
|
* @returns {string} ?
|
|
3656
3577
|
*/
|
|
3657
|
-
function getCurrencySymbol(numericObject, currencyCode, altSymbol) {
|
|
3578
|
+
function getCurrencySymbol(numericObject, currencyCode, altSymbol, ignoreCurrency) {
|
|
3658
3579
|
var symbol = altSymbol ? ('.' + altSymbol) : '.symbol';
|
|
3659
|
-
var getCurrency = getValue('currencies.' + currencyCode + symbol, numericObject) ||
|
|
3580
|
+
var getCurrency = ignoreCurrency ? '$' : getValue('currencies.' + currencyCode + symbol, numericObject) ||
|
|
3660
3581
|
getValue('currencies.' + currencyCode + '.symbol-alt-narrow', numericObject) || '$';
|
|
3661
3582
|
return getCurrency;
|
|
3662
3583
|
}
|
|
@@ -3675,7 +3596,7 @@ var IntlBase;
|
|
|
3675
3596
|
var formatSplit = format.split(';');
|
|
3676
3597
|
var data = ['pData', 'nData', 'zeroData'];
|
|
3677
3598
|
for (var i = 0; i < formatSplit.length; i++) {
|
|
3678
|
-
options[data[i]] = customNumberFormat(formatSplit[i], dOptions, obj);
|
|
3599
|
+
options["" + data[parseInt(i.toString(), 10)]] = customNumberFormat(formatSplit[parseInt(i.toString(), 10)], dOptions, obj);
|
|
3679
3600
|
}
|
|
3680
3601
|
if (isNullOrUndefined(options.nData)) {
|
|
3681
3602
|
options.nData = extend({}, options.pData);
|
|
@@ -3703,8 +3624,8 @@ var IntlBase;
|
|
|
3703
3624
|
cOptions.nlead = pattern[1];
|
|
3704
3625
|
cOptions.nend = pattern[10];
|
|
3705
3626
|
var integerPart = pattern[6];
|
|
3706
|
-
var spaceCapture = integerPart.match(
|
|
3707
|
-
var spaceGrouping = integerPart.replace(
|
|
3627
|
+
var spaceCapture = integerPart.match(/ $/g) ? true : false;
|
|
3628
|
+
var spaceGrouping = integerPart.replace(/ $/g, '').indexOf(' ') !== -1;
|
|
3708
3629
|
cOptions.useGrouping = integerPart.indexOf(',') !== -1 || spaceGrouping;
|
|
3709
3630
|
integerPart = integerPart.replace(/,/g, '');
|
|
3710
3631
|
var fractionPart = pattern[7];
|
|
@@ -3758,8 +3679,8 @@ var IntlBase;
|
|
|
3758
3679
|
var part = parts[parseInt(i.toString(), 10)];
|
|
3759
3680
|
var loc = part.indexOf(actual);
|
|
3760
3681
|
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;
|
|
3682
|
+
options["" + typeMapper[parseInt(i.toString(), 10)]] = part.substr(0, loc) + symbol + part.substr(loc + 1);
|
|
3683
|
+
options["" + typeMapper["" + actual]] = true;
|
|
3763
3684
|
options.type = options.isCurrency ? 'currency' : 'percent';
|
|
3764
3685
|
break;
|
|
3765
3686
|
}
|
|
@@ -3775,7 +3696,7 @@ var IntlBase;
|
|
|
3775
3696
|
* @returns {string} ?
|
|
3776
3697
|
*/
|
|
3777
3698
|
function getDateSeparator(dateObj) {
|
|
3778
|
-
var value = (getValue('dateFormats.short', dateObj) || '').match(/[
|
|
3699
|
+
var value = (getValue('dateFormats.short', dateObj) || '').match(/[dM]([^dM])[dM]/i);
|
|
3779
3700
|
return value ? value[1] : '/';
|
|
3780
3701
|
}
|
|
3781
3702
|
IntlBase.getDateSeparator = getDateSeparator;
|
|
@@ -3797,7 +3718,7 @@ var IntlBase;
|
|
|
3797
3718
|
var actualPattern = options.format || getResultantPattern(options.skeleton, dependable.dateObject, options.type);
|
|
3798
3719
|
if (isExcelFormat) {
|
|
3799
3720
|
actualPattern = actualPattern.replace(patternRegex, function (pattern) {
|
|
3800
|
-
return patternMatch[pattern];
|
|
3721
|
+
return patternMatch["" + pattern];
|
|
3801
3722
|
});
|
|
3802
3723
|
if (actualPattern.indexOf('z') !== -1) {
|
|
3803
3724
|
var tLength = actualPattern.match(/z/g).length;
|
|
@@ -3840,6 +3761,7 @@ var IntlBase;
|
|
|
3840
3761
|
}
|
|
3841
3762
|
return actual;
|
|
3842
3763
|
}
|
|
3764
|
+
IntlBase.processSymbol = processSymbol;
|
|
3843
3765
|
/**
|
|
3844
3766
|
* Returns Native Number pattern
|
|
3845
3767
|
*
|
|
@@ -4098,7 +4020,7 @@ var Ajax = /** @__PURE__ @class */ (function () {
|
|
|
4098
4020
|
* Send the request to server.
|
|
4099
4021
|
*
|
|
4100
4022
|
* @param {any} data - To send the user data
|
|
4101
|
-
* @
|
|
4023
|
+
* @returns {Promise} ?
|
|
4102
4024
|
*/
|
|
4103
4025
|
Ajax.prototype.send = function (data) {
|
|
4104
4026
|
var _this = this;
|
|
@@ -4193,22 +4115,19 @@ var Ajax = /** @__PURE__ @class */ (function () {
|
|
|
4193
4115
|
* @returns {string} ?
|
|
4194
4116
|
*/
|
|
4195
4117
|
Ajax.prototype.getResponseHeader = function (key) {
|
|
4196
|
-
var responseHeaders;
|
|
4197
|
-
var header;
|
|
4198
|
-
// eslint-disable-next-line
|
|
4199
|
-
responseHeaders = {};
|
|
4118
|
+
var responseHeaders = {};
|
|
4200
4119
|
var headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
|
|
4201
4120
|
while (headers) {
|
|
4202
4121
|
responseHeaders[headers[1].toLowerCase()] = headers[2];
|
|
4203
4122
|
headers = headerRegex.exec(this.httpRequest.getAllResponseHeaders());
|
|
4204
4123
|
}
|
|
4205
|
-
|
|
4206
|
-
header = responseHeaders[key.toLowerCase()];
|
|
4124
|
+
var header = responseHeaders[key.toLowerCase()];
|
|
4207
4125
|
return isNullOrUndefined(header) ? null : header;
|
|
4208
4126
|
};
|
|
4209
4127
|
return Ajax;
|
|
4210
4128
|
}());
|
|
4211
4129
|
|
|
4130
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4212
4131
|
/**
|
|
4213
4132
|
* The Fetch class provides a way to make asynchronous network requests, typically to retrieve resources from a server.
|
|
4214
4133
|
* ```typescript
|
|
@@ -4298,11 +4217,9 @@ var Fetch = /** @__PURE__ @class */ (function () {
|
|
|
4298
4217
|
}
|
|
4299
4218
|
}
|
|
4300
4219
|
return response[responseType]();
|
|
4301
|
-
// eslint-disable-next-line
|
|
4302
4220
|
}).then(function (data) {
|
|
4303
4221
|
_this.triggerEvent(_this['onSuccess'], data, _this);
|
|
4304
4222
|
return data;
|
|
4305
|
-
// eslint-disable-next-line
|
|
4306
4223
|
}).catch(function (error) {
|
|
4307
4224
|
var returnVal = {};
|
|
4308
4225
|
if (_this.emitError) {
|
|
@@ -4324,6 +4241,7 @@ var Fetch = /** @__PURE__ @class */ (function () {
|
|
|
4324
4241
|
return Fetch;
|
|
4325
4242
|
}());
|
|
4326
4243
|
|
|
4244
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4327
4245
|
var REGX_MOBILE = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i;
|
|
4328
4246
|
var REGX_IE = /msie|trident/i;
|
|
4329
4247
|
var REGX_IE11 = /Trident\/7\./;
|
|
@@ -4366,8 +4284,7 @@ var Browser = /** @__PURE__ @class */ (function () {
|
|
|
4366
4284
|
browserInfo.name = (clientInfo[1].toLowerCase() === 'crios' ? 'chrome' : browserInfo.name);
|
|
4367
4285
|
browserInfo.version = clientInfo[2];
|
|
4368
4286
|
browserInfo.culture.name = browserInfo.culture.language = navigator.language;
|
|
4369
|
-
|
|
4370
|
-
if (!!Browser.userAgent.match(REGX_IE11)) {
|
|
4287
|
+
if (Browser.userAgent.match(REGX_IE11)) {
|
|
4371
4288
|
browserInfo.name = 'msie';
|
|
4372
4289
|
break;
|
|
4373
4290
|
}
|
|
@@ -4384,10 +4301,9 @@ var Browser = /** @__PURE__ @class */ (function () {
|
|
|
4384
4301
|
* To get events from the browser
|
|
4385
4302
|
*
|
|
4386
4303
|
* @param {string} event - type of event triggered.
|
|
4387
|
-
* @returns {
|
|
4304
|
+
* @returns {string} ?
|
|
4388
4305
|
*/
|
|
4389
4306
|
Browser.getEvent = function (event) {
|
|
4390
|
-
// eslint-disable-next-line
|
|
4391
4307
|
var events = {
|
|
4392
4308
|
start: {
|
|
4393
4309
|
isPointer: 'pointerdown', isTouch: 'touchstart', isDevice: 'mousedown'
|
|
@@ -4813,12 +4729,8 @@ var EventHandler = /** @__PURE__ @class */ (function () {
|
|
|
4813
4729
|
* @returns {void} ?
|
|
4814
4730
|
*/
|
|
4815
4731
|
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);
|
|
4732
|
+
var eventData = EventHandler.addOrGetEventData(element);
|
|
4733
|
+
var copyData = extend([], undefined, eventData);
|
|
4822
4734
|
for (var i = 0; i < copyData.length; i++) {
|
|
4823
4735
|
var parseValue = copyData[parseInt(i.toString(), 10)];
|
|
4824
4736
|
element.removeEventListener(parseValue.name, parseValue.debounce);
|
|
@@ -4846,9 +4758,7 @@ var EventHandler = /** @__PURE__ @class */ (function () {
|
|
|
4846
4758
|
return EventHandler;
|
|
4847
4759
|
}());
|
|
4848
4760
|
|
|
4849
|
-
|
|
4850
|
-
* Functions related to dom operations.
|
|
4851
|
-
*/
|
|
4761
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4852
4762
|
var SVG_REG = /^svg|^path|^g/;
|
|
4853
4763
|
/**
|
|
4854
4764
|
* Function to create Html element.
|
|
@@ -5049,7 +4959,6 @@ function executeScript(ele) {
|
|
|
5049
4959
|
* @returns {any} ?
|
|
5050
4960
|
* @private
|
|
5051
4961
|
*/
|
|
5052
|
-
// eslint-disable-next-line
|
|
5053
4962
|
function detach(element) {
|
|
5054
4963
|
var parentNode = element.parentNode;
|
|
5055
4964
|
if (parentNode) {
|
|
@@ -5076,7 +4985,6 @@ function remove(element) {
|
|
|
5076
4985
|
* @returns {Element} ?
|
|
5077
4986
|
* @private
|
|
5078
4987
|
*/
|
|
5079
|
-
// eslint-disable-next-line
|
|
5080
4988
|
function attributes(element, attributes) {
|
|
5081
4989
|
var keys = Object.keys(attributes);
|
|
5082
4990
|
var ele = element;
|
|
@@ -5104,7 +5012,6 @@ function attributes(element, attributes) {
|
|
|
5104
5012
|
* @returns {any} ?
|
|
5105
5013
|
* @private
|
|
5106
5014
|
*/
|
|
5107
|
-
// eslint-disable-next-line
|
|
5108
5015
|
function select(selector, context, needsVDOM) {
|
|
5109
5016
|
if (context === void 0) { context = document; }
|
|
5110
5017
|
selector = querySelectId(selector);
|
|
@@ -5119,7 +5026,6 @@ function select(selector, context, needsVDOM) {
|
|
|
5119
5026
|
* @returns {HTMLElement[]} ?
|
|
5120
5027
|
* @private
|
|
5121
5028
|
*/
|
|
5122
|
-
// eslint-disable-next-line
|
|
5123
5029
|
function selectAll(selector, context, needsVDOM) {
|
|
5124
5030
|
if (context === void 0) { context = document; }
|
|
5125
5031
|
selector = querySelectId(selector);
|
|
@@ -5236,8 +5142,7 @@ function getAttributeOrDefault(element, property, value) {
|
|
|
5236
5142
|
function setStyleAttribute(element, attrs) {
|
|
5237
5143
|
if (attrs !== undefined) {
|
|
5238
5144
|
Object.keys(attrs).forEach(function (key) {
|
|
5239
|
-
|
|
5240
|
-
element.style[key] = attrs[key];
|
|
5145
|
+
element.style["" + key] = attrs["" + key];
|
|
5241
5146
|
});
|
|
5242
5147
|
}
|
|
5243
5148
|
}
|
|
@@ -5263,7 +5168,6 @@ function classList(element, addClasses, removeClasses) {
|
|
|
5263
5168
|
* @private
|
|
5264
5169
|
*/
|
|
5265
5170
|
function matches(element, selector) {
|
|
5266
|
-
// eslint-disable-next-line
|
|
5267
5171
|
var matches = element.matches || element.msMatchesSelector || element.webkitMatchesSelector;
|
|
5268
5172
|
if (matches) {
|
|
5269
5173
|
return matches.call(element, selector);
|
|
@@ -5291,11 +5195,10 @@ function includeInnerHTML(ele, innerHTML) {
|
|
|
5291
5195
|
* @returns {any} ?
|
|
5292
5196
|
* @private
|
|
5293
5197
|
*/
|
|
5294
|
-
// eslint-disable-next-line
|
|
5295
5198
|
function containsClass(ele, className) {
|
|
5296
5199
|
if (isObject(ele)) {
|
|
5297
|
-
|
|
5298
|
-
return new
|
|
5200
|
+
var regExp = RegExp;
|
|
5201
|
+
return new regExp('\\b' + className + '\\b', 'i').test(ele.attributes.className);
|
|
5299
5202
|
}
|
|
5300
5203
|
else {
|
|
5301
5204
|
return ele.classList.contains(className);
|
|
@@ -5309,7 +5212,6 @@ function containsClass(ele, className) {
|
|
|
5309
5212
|
* @returns {any} ?
|
|
5310
5213
|
* @private
|
|
5311
5214
|
*/
|
|
5312
|
-
// eslint-disable-next-line
|
|
5313
5215
|
function cloneNode(element, deep) {
|
|
5314
5216
|
if (isObject(element)) {
|
|
5315
5217
|
if (deep) {
|
|
@@ -5321,12 +5223,13 @@ function cloneNode(element, deep) {
|
|
|
5321
5223
|
}
|
|
5322
5224
|
}
|
|
5323
5225
|
|
|
5226
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5324
5227
|
var isColEName = new RegExp(']');
|
|
5325
|
-
/* tslint:enable:no-any */
|
|
5326
5228
|
/**
|
|
5327
5229
|
* Base library module is common module for Framework modules like touch,keyboard and etc.,
|
|
5328
5230
|
*
|
|
5329
5231
|
* @private
|
|
5232
|
+
* @returns {void} ?
|
|
5330
5233
|
*/
|
|
5331
5234
|
var Base = /** @__PURE__ @class */ (function () {
|
|
5332
5235
|
/**
|
|
@@ -5347,7 +5250,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5347
5250
|
this.bulkChanges = {};
|
|
5348
5251
|
this.refreshing = false;
|
|
5349
5252
|
this.ignoreCollectionWatch = false;
|
|
5350
|
-
// eslint-disable-next-line
|
|
5351
5253
|
this.finalUpdate = function () { };
|
|
5352
5254
|
this.childChangedProperties = {};
|
|
5353
5255
|
this.modelObserver = new Observer(this);
|
|
@@ -5400,7 +5302,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5400
5302
|
* @param {Object} parent ?
|
|
5401
5303
|
* @returns {void} ?
|
|
5402
5304
|
*/
|
|
5403
|
-
// tslint:disable-next-line:no-any
|
|
5404
5305
|
Base.callChildDataBind = function (obj, parent) {
|
|
5405
5306
|
var keys = Object.keys(obj);
|
|
5406
5307
|
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
|
@@ -5441,7 +5342,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5441
5342
|
this.isProtectedOnChange = prevDetection;
|
|
5442
5343
|
}
|
|
5443
5344
|
};
|
|
5444
|
-
/* tslint:disable:no-any */
|
|
5445
5345
|
Base.prototype.serverDataBind = function (newChanges) {
|
|
5446
5346
|
if (!isBlazor()) {
|
|
5447
5347
|
return;
|
|
@@ -5454,10 +5354,8 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5454
5354
|
this.bulkChanges = {};
|
|
5455
5355
|
}
|
|
5456
5356
|
};
|
|
5457
|
-
/* tslint:enable:no-any */
|
|
5458
5357
|
Base.prototype.saveChanges = function (key, newValue, oldValue) {
|
|
5459
5358
|
if (isBlazor()) {
|
|
5460
|
-
// tslint:disable-next-line:no-any
|
|
5461
5359
|
var newChanges = {};
|
|
5462
5360
|
newChanges["" + key] = newValue;
|
|
5463
5361
|
this.serverDataBind(newChanges);
|
|
@@ -5575,7 +5473,7 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5575
5473
|
*/
|
|
5576
5474
|
Base.prototype.destroy = function () {
|
|
5577
5475
|
var _this = this;
|
|
5578
|
-
// eslint-disable-next-line
|
|
5476
|
+
// eslint-disable-next-line camelcase
|
|
5579
5477
|
this.element.ej2_instances =
|
|
5580
5478
|
this.element.ej2_instances ?
|
|
5581
5479
|
this.element.ej2_instances.filter(function (i) {
|
|
@@ -5603,7 +5501,6 @@ var Base = /** @__PURE__ @class */ (function () {
|
|
|
5603
5501
|
* @param {string} comp Specifies the component module name or Component.
|
|
5604
5502
|
* @returns {any} ?
|
|
5605
5503
|
*/
|
|
5606
|
-
// tslint:disable-next-line:no-any
|
|
5607
5504
|
function getComponent(elem, comp) {
|
|
5608
5505
|
var instance;
|
|
5609
5506
|
var i;
|
|
@@ -5617,7 +5514,6 @@ function getComponent(elem, comp) {
|
|
|
5617
5514
|
}
|
|
5618
5515
|
}
|
|
5619
5516
|
else {
|
|
5620
|
-
// tslint:disable-next-line:no-any
|
|
5621
5517
|
if (instance instanceof comp) {
|
|
5622
5518
|
return instance;
|
|
5623
5519
|
}
|
|
@@ -5629,16 +5525,13 @@ function getComponent(elem, comp) {
|
|
|
5629
5525
|
* Function to remove the child instances.
|
|
5630
5526
|
*
|
|
5631
5527
|
* @param {HTMLElement} element ?
|
|
5632
|
-
* @
|
|
5528
|
+
* @returns {void} ?
|
|
5633
5529
|
* @private
|
|
5634
5530
|
*/
|
|
5635
|
-
// tslint:disable-next-line:no-any
|
|
5636
5531
|
function removeChildInstance(element) {
|
|
5637
|
-
// tslint:disable-next-line:no-any
|
|
5638
5532
|
var childEle = [].slice.call(element.getElementsByClassName('e-control'));
|
|
5639
5533
|
for (var i = 0; i < childEle.length; i++) {
|
|
5640
5534
|
var compName = childEle[parseInt(i.toString(), 10)].classList[1].split('e-')[1];
|
|
5641
|
-
// tslint:disable-next-line:no-any
|
|
5642
5535
|
var compInstance = getComponent(childEle[parseInt(i.toString(), 10)], compName);
|
|
5643
5536
|
if (!isUndefined(compInstance)) {
|
|
5644
5537
|
compInstance.destroy();
|
|
@@ -5648,6 +5541,7 @@ function removeChildInstance(element) {
|
|
|
5648
5541
|
var proxyToRaw;
|
|
5649
5542
|
var setProxyToRaw = function (toRaw) { proxyToRaw = toRaw; };
|
|
5650
5543
|
|
|
5544
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5651
5545
|
/**
|
|
5652
5546
|
* Returns the Class Object
|
|
5653
5547
|
*
|
|
@@ -5657,10 +5551,8 @@ var setProxyToRaw = function (toRaw) { proxyToRaw = toRaw; };
|
|
|
5657
5551
|
* @param {Object[]} type ?
|
|
5658
5552
|
* @returns {ClassObject} ?
|
|
5659
5553
|
*/
|
|
5660
|
-
// eslint-disable-next-line
|
|
5661
5554
|
function getObject(instance, curKey, defaultValue, type) {
|
|
5662
|
-
|
|
5663
|
-
if (!instance.properties.hasOwnProperty(curKey) || !(instance.properties[curKey] instanceof type)) {
|
|
5555
|
+
if (!Object.prototype.hasOwnProperty.call(instance.properties, curKey) || !(instance.properties["" + curKey] instanceof type)) {
|
|
5664
5556
|
instance.properties["" + curKey] = createInstance(type, [instance, curKey, defaultValue]);
|
|
5665
5557
|
}
|
|
5666
5558
|
return instance.properties["" + curKey];
|
|
@@ -5676,7 +5568,6 @@ function getObject(instance, curKey, defaultValue, type) {
|
|
|
5676
5568
|
* @param {boolean} isFactory ?
|
|
5677
5569
|
* @returns {Object[]} ?
|
|
5678
5570
|
*/
|
|
5679
|
-
// eslint-disable-next-line
|
|
5680
5571
|
function getObjectArray(instance, curKey, defaultValue, type, isSetter, isFactory) {
|
|
5681
5572
|
var result = [];
|
|
5682
5573
|
var len = defaultValue ? defaultValue.length : 0;
|
|
@@ -5705,8 +5596,7 @@ function getObjectArray(instance, curKey, defaultValue, type, isSetter, isFactor
|
|
|
5705
5596
|
*/
|
|
5706
5597
|
function propertyGetter(defaultValue, curKey) {
|
|
5707
5598
|
return function () {
|
|
5708
|
-
|
|
5709
|
-
if (!this.properties.hasOwnProperty(curKey)) {
|
|
5599
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5710
5600
|
this.properties["" + curKey] = defaultValue;
|
|
5711
5601
|
}
|
|
5712
5602
|
return this.properties["" + curKey];
|
|
@@ -5722,8 +5612,7 @@ function propertyGetter(defaultValue, curKey) {
|
|
|
5722
5612
|
function propertySetter(defaultValue, curKey) {
|
|
5723
5613
|
return function (newValue) {
|
|
5724
5614
|
if (this.properties["" + curKey] !== newValue) {
|
|
5725
|
-
|
|
5726
|
-
var oldVal = this.properties.hasOwnProperty(curKey) ? this.properties[curKey] : defaultValue;
|
|
5615
|
+
var oldVal = Object.prototype.hasOwnProperty.call(this.properties, curKey) ? this.properties["" + curKey] : defaultValue;
|
|
5727
5616
|
this.saveChanges(curKey, newValue, oldVal);
|
|
5728
5617
|
this.properties["" + curKey] = newValue;
|
|
5729
5618
|
}
|
|
@@ -5737,7 +5626,6 @@ function propertySetter(defaultValue, curKey) {
|
|
|
5737
5626
|
* @param {Object[]} type ?
|
|
5738
5627
|
* @returns {void} ?
|
|
5739
5628
|
*/
|
|
5740
|
-
// eslint-disable-next-line
|
|
5741
5629
|
function complexGetter(defaultValue, curKey, type) {
|
|
5742
5630
|
return function () {
|
|
5743
5631
|
return getObject(this, curKey, defaultValue, type);
|
|
@@ -5763,12 +5651,10 @@ function complexSetter(defaultValue, curKey, type) {
|
|
|
5763
5651
|
* @param {FunctionConstructor} type ?
|
|
5764
5652
|
* @returns {void} ?
|
|
5765
5653
|
*/
|
|
5766
|
-
// eslint-disable-next-line
|
|
5767
5654
|
function complexFactoryGetter(defaultValue, curKey, type) {
|
|
5768
5655
|
return function () {
|
|
5769
5656
|
var curType = type({});
|
|
5770
|
-
|
|
5771
|
-
if (this.properties.hasOwnProperty(curKey)) {
|
|
5657
|
+
if (Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5772
5658
|
return this.properties["" + curKey];
|
|
5773
5659
|
}
|
|
5774
5660
|
else {
|
|
@@ -5799,15 +5685,13 @@ function complexFactorySetter(defaultValue, curKey, type) {
|
|
|
5799
5685
|
function complexArrayGetter(defaultValue, curKey, type) {
|
|
5800
5686
|
return function () {
|
|
5801
5687
|
var _this = this;
|
|
5802
|
-
|
|
5803
|
-
if (!this.properties.hasOwnProperty(curKey)) {
|
|
5688
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5804
5689
|
var defCollection = getObjectArray(this, curKey, defaultValue, type, false);
|
|
5805
5690
|
this.properties["" + curKey] = defCollection;
|
|
5806
5691
|
}
|
|
5807
5692
|
var ignore = ((this.controlParent !== undefined && this.controlParent.ignoreCollectionWatch)
|
|
5808
5693
|
|| this.ignoreCollectionWatch);
|
|
5809
|
-
|
|
5810
|
-
if (!this.properties[curKey].hasOwnProperty('push') && !ignore) {
|
|
5694
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties["" + curKey], 'push') && !ignore) {
|
|
5811
5695
|
['push', 'pop'].forEach(function (extendFunc) {
|
|
5812
5696
|
var descriptor = {
|
|
5813
5697
|
value: complexArrayDefinedCallback(extendFunc, curKey, type, _this.properties["" + curKey]).bind(_this),
|
|
@@ -5816,8 +5700,7 @@ function complexArrayGetter(defaultValue, curKey, type) {
|
|
|
5816
5700
|
Object.defineProperty(_this.properties["" + curKey], extendFunc, descriptor);
|
|
5817
5701
|
});
|
|
5818
5702
|
}
|
|
5819
|
-
|
|
5820
|
-
if (!this.properties[curKey].hasOwnProperty('isComplexArray')) {
|
|
5703
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties["" + curKey], 'isComplexArray')) {
|
|
5821
5704
|
Object.defineProperty(this.properties["" + curKey], 'isComplexArray', { value: true });
|
|
5822
5705
|
}
|
|
5823
5706
|
return this.properties["" + curKey];
|
|
@@ -5849,8 +5732,7 @@ function complexArraySetter(defaultValue, curKey, type) {
|
|
|
5849
5732
|
*/
|
|
5850
5733
|
function complexArrayFactorySetter(defaultValue, curKey, type) {
|
|
5851
5734
|
return function (newValue) {
|
|
5852
|
-
|
|
5853
|
-
var oldValueCollection = this.properties.hasOwnProperty(curKey) ? this.properties[curKey] : defaultValue;
|
|
5735
|
+
var oldValueCollection = Object.prototype.hasOwnProperty.call(this.properties, curKey) ? this.properties["" + curKey] : defaultValue;
|
|
5854
5736
|
var newValCollection = getObjectArray(this, curKey, newValue, type, true, true);
|
|
5855
5737
|
this.saveChanges(curKey, newValCollection, oldValueCollection);
|
|
5856
5738
|
this.properties["" + curKey] = newValCollection;
|
|
@@ -5866,8 +5748,7 @@ function complexArrayFactorySetter(defaultValue, curKey, type) {
|
|
|
5866
5748
|
function complexArrayFactoryGetter(defaultValue, curKey, type) {
|
|
5867
5749
|
return function () {
|
|
5868
5750
|
var curType = type({});
|
|
5869
|
-
|
|
5870
|
-
if (!this.properties.hasOwnProperty(curKey)) {
|
|
5751
|
+
if (!Object.prototype.hasOwnProperty.call(this.properties, curKey)) {
|
|
5871
5752
|
var defCollection = getObjectArray(this, curKey, defaultValue, curType, false);
|
|
5872
5753
|
this.properties["" + curKey] = defCollection;
|
|
5873
5754
|
}
|
|
@@ -5883,7 +5764,6 @@ function complexArrayFactoryGetter(defaultValue, curKey, type) {
|
|
|
5883
5764
|
* @returns {Object} ?
|
|
5884
5765
|
*/
|
|
5885
5766
|
function complexArrayDefinedCallback(dFunc, curKey, type, prop) {
|
|
5886
|
-
/* tslint:disable no-function-expression */
|
|
5887
5767
|
return function () {
|
|
5888
5768
|
var newValue = [];
|
|
5889
5769
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -5895,16 +5775,16 @@ function complexArrayDefinedCallback(dFunc, curKey, type, prop) {
|
|
|
5895
5775
|
for (var i = 0; i < newValue.length; i++) {
|
|
5896
5776
|
var newValueParse = newValue[parseInt(i.toString(), 10)];
|
|
5897
5777
|
Array.prototype["" + dFunc].apply(prop, [newValueParse]);
|
|
5898
|
-
var
|
|
5899
|
-
this.serverDataBind(
|
|
5778
|
+
var model = getArrayModel(keyString + (prop.length - 1), newValueParse, !this.controlParent, dFunc);
|
|
5779
|
+
this.serverDataBind(model, newValue[parseInt(i.toString(), 10)], false, dFunc);
|
|
5900
5780
|
}
|
|
5901
5781
|
break;
|
|
5902
|
-
case 'pop':
|
|
5782
|
+
case 'pop': {
|
|
5903
5783
|
Array.prototype["" + dFunc].apply(prop);
|
|
5904
|
-
// eslint-disable-next-line
|
|
5905
5784
|
var model = getArrayModel(keyString + prop.length, null, !this.controlParent, dFunc);
|
|
5906
5785
|
this.serverDataBind(model, { ejsAction: 'pop' }, false, dFunc);
|
|
5907
5786
|
break;
|
|
5787
|
+
}
|
|
5908
5788
|
}
|
|
5909
5789
|
return prop;
|
|
5910
5790
|
};
|
|
@@ -5929,16 +5809,11 @@ function getArrayModel(keyString, value, isControlParent, arrayFunction) {
|
|
|
5929
5809
|
}
|
|
5930
5810
|
return modelObject;
|
|
5931
5811
|
}
|
|
5932
|
-
// eslint-disable-next-line
|
|
5933
5812
|
/**
|
|
5934
5813
|
* Method used to create property. General syntax below.
|
|
5935
5814
|
*
|
|
5936
5815
|
* @param {Object} defaultValue - Specifies the default value of property.
|
|
5937
5816
|
* @returns {PropertyDecorator} ?
|
|
5938
|
-
* ```
|
|
5939
|
-
* @Property('TypeScript')
|
|
5940
|
-
* propertyName: Type;
|
|
5941
|
-
* ```
|
|
5942
5817
|
* @private
|
|
5943
5818
|
*/
|
|
5944
5819
|
function Property(defaultValue) {
|
|
@@ -6088,25 +5963,8 @@ function Event$1() {
|
|
|
6088
5963
|
*
|
|
6089
5964
|
* @param {Function} classConstructor ?
|
|
6090
5965
|
* @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
5966
|
* @private
|
|
6108
5967
|
*/
|
|
6109
|
-
// eslint-disable-next-line
|
|
6110
5968
|
function NotifyPropertyChanges(classConstructor) {
|
|
6111
5969
|
/** Need to code */
|
|
6112
5970
|
}
|
|
@@ -6134,13 +5992,11 @@ function addPropertyCollection(target, key, propertyType, defaultValue, type) {
|
|
|
6134
5992
|
eventNames: []
|
|
6135
5993
|
};
|
|
6136
5994
|
}
|
|
6137
|
-
// eslint-disable-next-line
|
|
6138
5995
|
target.propList[propertyType + 's'].push({
|
|
6139
5996
|
propertyName: key,
|
|
6140
5997
|
defaultValue: defaultValue,
|
|
6141
5998
|
type: type
|
|
6142
5999
|
});
|
|
6143
|
-
// eslint-disable-next-line
|
|
6144
6000
|
target.propList[propertyType + 'Names'].push(key);
|
|
6145
6001
|
}
|
|
6146
6002
|
/**
|
|
@@ -6209,8 +6065,7 @@ function CreateBuilder(component) {
|
|
|
6209
6065
|
return this;
|
|
6210
6066
|
};
|
|
6211
6067
|
var instanceFunction = function (element) {
|
|
6212
|
-
|
|
6213
|
-
if (!builderFunction.prototype.hasOwnProperty('create')) {
|
|
6068
|
+
if (!Object.prototype.hasOwnProperty.call(builderFunction, 'create')) {
|
|
6214
6069
|
builderFunction.prototype = getBuilderProperties(component);
|
|
6215
6070
|
builderFunction.prototype.create = function () {
|
|
6216
6071
|
var temp = extend({}, {}, this.properties);
|
|
@@ -6231,8 +6086,7 @@ function CreateBuilder(component) {
|
|
|
6231
6086
|
* @private
|
|
6232
6087
|
*/
|
|
6233
6088
|
function getParentContext(context, prefix) {
|
|
6234
|
-
|
|
6235
|
-
if (context.hasOwnProperty('parentObj') === false) {
|
|
6089
|
+
if (Object.prototype.hasOwnProperty.call(context, 'parentObj') === false) {
|
|
6236
6090
|
return { context: context, prefix: prefix };
|
|
6237
6091
|
}
|
|
6238
6092
|
else {
|
|
@@ -6244,25 +6098,25 @@ function getParentContext(context, prefix) {
|
|
|
6244
6098
|
}
|
|
6245
6099
|
}
|
|
6246
6100
|
|
|
6247
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6248
|
-
var extendStatics = function (d, b) {
|
|
6249
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6250
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6251
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6252
|
-
return extendStatics(d, b);
|
|
6253
|
-
};
|
|
6254
|
-
return function (d, b) {
|
|
6255
|
-
extendStatics(d, b);
|
|
6256
|
-
function __() { this.constructor = d; }
|
|
6257
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6258
|
-
};
|
|
6259
|
-
})();
|
|
6260
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6261
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6262
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6263
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6264
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6265
|
-
};
|
|
6101
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
6102
|
+
var extendStatics = function (d, b) {
|
|
6103
|
+
extendStatics = Object.setPrototypeOf ||
|
|
6104
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6105
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6106
|
+
return extendStatics(d, b);
|
|
6107
|
+
};
|
|
6108
|
+
return function (d, b) {
|
|
6109
|
+
extendStatics(d, b);
|
|
6110
|
+
function __() { this.constructor = d; }
|
|
6111
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6112
|
+
};
|
|
6113
|
+
})();
|
|
6114
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6115
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6116
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6117
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6118
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6119
|
+
};
|
|
6266
6120
|
/**
|
|
6267
6121
|
* The Animation framework provide options to animate the html DOM elements
|
|
6268
6122
|
* ```typescript
|
|
@@ -6322,7 +6176,7 @@ var Animation = /** @__PURE__ @class */ (function (_super) {
|
|
|
6322
6176
|
*
|
|
6323
6177
|
* @param {HTMLElement} element - Element which needs to be stop the animation.
|
|
6324
6178
|
* @param {AnimationOptions} model - Handling the animation model at stop function.
|
|
6325
|
-
* @
|
|
6179
|
+
* @returns {void}
|
|
6326
6180
|
*/
|
|
6327
6181
|
Animation.stop = function (element, model) {
|
|
6328
6182
|
element.style.animation = '';
|
|
@@ -6452,7 +6306,6 @@ var Animation = /** @__PURE__ @class */ (function (_super) {
|
|
|
6452
6306
|
* @param {AnimationModel} oldProp ?
|
|
6453
6307
|
* @returns {void} ?
|
|
6454
6308
|
*/
|
|
6455
|
-
// eslint-disable-next-line
|
|
6456
6309
|
Animation.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
6457
6310
|
// no code needed
|
|
6458
6311
|
};
|
|
@@ -6641,7 +6494,6 @@ function removeRipple(e, eventArgs) {
|
|
|
6641
6494
|
if (eventArgs.parent !== element) {
|
|
6642
6495
|
EventHandler.remove(element, 'mouseleave', rippleLeaveHandler);
|
|
6643
6496
|
}
|
|
6644
|
-
/* tslint:disable:align */
|
|
6645
6497
|
setTimeout(function () {
|
|
6646
6498
|
if (rippleElement && rippleElement.parentNode) {
|
|
6647
6499
|
rippleElement.parentNode.removeChild(rippleElement);
|
|
@@ -6699,9 +6551,7 @@ var GlobalAnimationMode;
|
|
|
6699
6551
|
GlobalAnimationMode["Disable"] = "Disable";
|
|
6700
6552
|
})(GlobalAnimationMode || (GlobalAnimationMode = {}));
|
|
6701
6553
|
|
|
6702
|
-
|
|
6703
|
-
* Module loading operations
|
|
6704
|
-
*/
|
|
6554
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6705
6555
|
var MODULE_SUFFIX = 'Module';
|
|
6706
6556
|
var ModuleLoader = /** @__PURE__ @class */ (function () {
|
|
6707
6557
|
function ModuleLoader(parent) {
|
|
@@ -6818,10 +6668,12 @@ var ModuleLoader = /** @__PURE__ @class */ (function () {
|
|
|
6818
6668
|
return ModuleLoader;
|
|
6819
6669
|
}());
|
|
6820
6670
|
|
|
6671
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6821
6672
|
/**
|
|
6822
6673
|
* To detect the changes for inner properties.
|
|
6823
6674
|
*
|
|
6824
6675
|
* @private
|
|
6676
|
+
* @returns {void} ?
|
|
6825
6677
|
*/
|
|
6826
6678
|
var ChildProperty = /** @__PURE__ @class */ (function () {
|
|
6827
6679
|
function ChildProperty(parent, propName, defaultValue, isArray) {
|
|
@@ -6830,7 +6682,6 @@ var ChildProperty = /** @__PURE__ @class */ (function () {
|
|
|
6830
6682
|
this.changedProperties = {};
|
|
6831
6683
|
this.childChangedProperties = {};
|
|
6832
6684
|
this.oldProperties = {};
|
|
6833
|
-
// eslint-disable-next-line
|
|
6834
6685
|
this.finalUpdate = function () { };
|
|
6835
6686
|
this.callChildDataBind = getValue('callChildDataBind', Base);
|
|
6836
6687
|
this.parentObj = parent;
|
|
@@ -6974,7 +6825,6 @@ var ChildProperty = /** @__PURE__ @class */ (function () {
|
|
|
6974
6825
|
}
|
|
6975
6826
|
};
|
|
6976
6827
|
ChildProperty.prototype.getParentKey = function (isSaveChanges) {
|
|
6977
|
-
// eslint-disable-next-line
|
|
6978
6828
|
var index = '';
|
|
6979
6829
|
var propName = this.propName;
|
|
6980
6830
|
/* istanbul ignore next */
|
|
@@ -7007,7 +6857,7 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
7007
6857
|
function LicenseValidator(key) {
|
|
7008
6858
|
this.isValidated = false;
|
|
7009
6859
|
this.isLicensed = true;
|
|
7010
|
-
this.version = '
|
|
6860
|
+
this.version = '{syncfusionReleaseversion}';
|
|
7011
6861
|
this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i;
|
|
7012
6862
|
this.errors = {
|
|
7013
6863
|
noLicense: '<span>This application was built using a trial version of Syncfusion Essential Studio.' +
|
|
@@ -7111,7 +6961,7 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
7111
6961
|
}
|
|
7112
6962
|
}
|
|
7113
6963
|
if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
|
|
7114
|
-
accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=
|
|
6964
|
+
accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs={versionencodedData}&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information';
|
|
7115
6965
|
var errorDiv = createElement('div', {
|
|
7116
6966
|
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
6967
|
});
|
|
@@ -7176,7 +7026,8 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
|
|
|
7176
7026
|
var charKey = decodeStr[decodeStr.length - 1];
|
|
7177
7027
|
var decryptedKey = [];
|
|
7178
7028
|
for (var i = 0; i < decodeStr.length; i++) {
|
|
7179
|
-
decryptedKey[
|
|
7029
|
+
decryptedKey[parseInt(i.toString(), 10)] = decodeStr[parseInt(i.toString(), 10)].charCodeAt(0)
|
|
7030
|
+
- charKey.charCodeAt(0);
|
|
7180
7031
|
}
|
|
7181
7032
|
for (var i = 0; i < decryptedKey.length; i++) {
|
|
7182
7033
|
buffr += String.fromCharCode(decryptedKey[parseInt(i.toString(), 10)]);
|
|
@@ -7253,25 +7104,25 @@ var createLicenseOverlay = function () {
|
|
|
7253
7104
|
}
|
|
7254
7105
|
};
|
|
7255
7106
|
|
|
7256
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
7257
|
-
var extendStatics = function (d, b) {
|
|
7258
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7259
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7260
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7261
|
-
return extendStatics(d, b);
|
|
7262
|
-
};
|
|
7263
|
-
return function (d, b) {
|
|
7264
|
-
extendStatics(d, b);
|
|
7265
|
-
function __() { this.constructor = d; }
|
|
7266
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7267
|
-
};
|
|
7268
|
-
})();
|
|
7269
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7270
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7271
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7272
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7273
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7274
|
-
};
|
|
7107
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
7108
|
+
var extendStatics = function (d, b) {
|
|
7109
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7110
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7111
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7112
|
+
return extendStatics(d, b);
|
|
7113
|
+
};
|
|
7114
|
+
return function (d, b) {
|
|
7115
|
+
extendStatics(d, b);
|
|
7116
|
+
function __() { this.constructor = d; }
|
|
7117
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7118
|
+
};
|
|
7119
|
+
})();
|
|
7120
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7121
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7122
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7123
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7124
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7125
|
+
};
|
|
7275
7126
|
var componentCount = 0;
|
|
7276
7127
|
var lastPageID;
|
|
7277
7128
|
var lastHistoryLen = 0;
|
|
@@ -7313,6 +7164,9 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7313
7164
|
_this.isStringTemplate = false;
|
|
7314
7165
|
_this.needsID = false;
|
|
7315
7166
|
_this.isReactHybrid = false;
|
|
7167
|
+
_this.isAngular = false;
|
|
7168
|
+
_this.isReact = false;
|
|
7169
|
+
_this.isVue = false;
|
|
7316
7170
|
if (isNullOrUndefined(_this.enableRtl)) {
|
|
7317
7171
|
_this.setProperties({ 'enableRtl': rightToLeft }, true);
|
|
7318
7172
|
}
|
|
@@ -7321,7 +7175,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7321
7175
|
}
|
|
7322
7176
|
_this.moduleLoader = new ModuleLoader(_this);
|
|
7323
7177
|
_this.localObserver = new Observer(_this);
|
|
7324
|
-
// tslint:disable-next-line:no-function-constructor-with-string-args
|
|
7325
7178
|
onIntlChange.on('notifyExternalChange', _this.detectFunction, _this, _this.randomId);
|
|
7326
7179
|
// Based on the considered control list we have count the instance
|
|
7327
7180
|
if (typeof window !== 'undefined' && typeof document !== 'undefined' && !validateLicense()) {
|
|
@@ -7391,7 +7244,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7391
7244
|
*/
|
|
7392
7245
|
Component.prototype.getRootElement = function () {
|
|
7393
7246
|
if (this.isReactHybrid) {
|
|
7394
|
-
// eslint-disable-next-line
|
|
7395
7247
|
return this.actualElement;
|
|
7396
7248
|
}
|
|
7397
7249
|
else {
|
|
@@ -7403,7 +7255,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7403
7255
|
*
|
|
7404
7256
|
* @returns {any} ?
|
|
7405
7257
|
*/
|
|
7406
|
-
// eslint-disable-next-line
|
|
7407
7258
|
Component.prototype.getLocalData = function () {
|
|
7408
7259
|
var eleId = this.getModuleName() + this.element.id;
|
|
7409
7260
|
if (versionBasedStatePersistence) {
|
|
@@ -7478,7 +7329,8 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7478
7329
|
treegrid: ['filter'],
|
|
7479
7330
|
gantt: ['tooltip'],
|
|
7480
7331
|
chart: ['Export', 'Zoom'],
|
|
7481
|
-
accumulationchart: ['Export']
|
|
7332
|
+
accumulationchart: ['Export'],
|
|
7333
|
+
'query-builder': 'all'
|
|
7482
7334
|
};
|
|
7483
7335
|
var component = this.getModuleName();
|
|
7484
7336
|
if (this.requiredModules && (!ignoredComponents["" + component] || ignoredComponents["" + component] !== 'all')) {
|
|
@@ -7516,8 +7368,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7516
7368
|
Component.prototype.renderComplete = function (wrapperElement) {
|
|
7517
7369
|
if (isBlazor()) {
|
|
7518
7370
|
var sfBlazor = 'sfBlazor';
|
|
7519
|
-
|
|
7520
|
-
window[sfBlazor].renderComplete(this.element, wrapperElement);
|
|
7371
|
+
window["" + sfBlazor].renderComplete(this.element, wrapperElement);
|
|
7521
7372
|
}
|
|
7522
7373
|
this.isRendered = true;
|
|
7523
7374
|
};
|
|
@@ -7621,7 +7472,6 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7621
7472
|
* @returns {any} ?
|
|
7622
7473
|
* @private
|
|
7623
7474
|
*/
|
|
7624
|
-
// eslint-disable-next-line
|
|
7625
7475
|
Component.prototype.createElement = function (tagName, prop, isVDOM) {
|
|
7626
7476
|
return createElement(tagName, prop);
|
|
7627
7477
|
};
|
|
@@ -7632,15 +7482,12 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7632
7482
|
* @returns {void} .
|
|
7633
7483
|
* @private
|
|
7634
7484
|
*/
|
|
7635
|
-
// eslint-disable-next-line
|
|
7636
7485
|
Component.prototype.triggerStateChange = function (handler, argument) {
|
|
7637
7486
|
if (this.isReactHybrid) {
|
|
7638
|
-
// eslint-disable-next-line
|
|
7639
7487
|
this.setState();
|
|
7640
7488
|
this.currentContext = { calls: handler, args: argument };
|
|
7641
7489
|
}
|
|
7642
7490
|
};
|
|
7643
|
-
// tslint: enable: no-any
|
|
7644
7491
|
Component.prototype.injectModules = function () {
|
|
7645
7492
|
if (this.injectedModules && this.injectedModules.length) {
|
|
7646
7493
|
this.moduleLoader.inject(this.requiredModules(), this.injectedModules);
|
|
@@ -7675,13 +7522,11 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7675
7522
|
}
|
|
7676
7523
|
}
|
|
7677
7524
|
};
|
|
7678
|
-
// eslint-disable-next-line
|
|
7679
7525
|
Component.prototype.renderReactTemplates = function (callback) {
|
|
7680
7526
|
if (!isNullOrUndefined(callback)) {
|
|
7681
7527
|
callback();
|
|
7682
7528
|
}
|
|
7683
7529
|
};
|
|
7684
|
-
// eslint-disable-next-line
|
|
7685
7530
|
Component.prototype.clearTemplate = function (templateName, index) {
|
|
7686
7531
|
//No Code
|
|
7687
7532
|
};
|
|
@@ -7713,9 +7558,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7713
7558
|
var persistObj = {};
|
|
7714
7559
|
for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
|
|
7715
7560
|
var key = options_1[_i];
|
|
7716
|
-
var objValue =
|
|
7717
|
-
// eslint-disable-next-line
|
|
7718
|
-
objValue = getValue(key, this);
|
|
7561
|
+
var objValue = getValue(key, this);
|
|
7719
7562
|
if (!isUndefined(objValue)) {
|
|
7720
7563
|
setValue(key, this.getActualProperties(objValue), persistObj);
|
|
7721
7564
|
}
|
|
@@ -7739,8 +7582,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7739
7582
|
var newObj = {};
|
|
7740
7583
|
var _loop_1 = function (key) {
|
|
7741
7584
|
if (ignoreList.indexOf(key) === -1) {
|
|
7742
|
-
|
|
7743
|
-
var value = obj[key];
|
|
7585
|
+
var value = obj["" + key];
|
|
7744
7586
|
if (typeof value === 'object' && !(value instanceof Array)) {
|
|
7745
7587
|
var newList = ignoreList.filter(function (str) {
|
|
7746
7588
|
var regExp = RegExp;
|
|
@@ -7788,25 +7630,25 @@ var Component = /** @__PURE__ @class */ (function (_super) {
|
|
|
7788
7630
|
}
|
|
7789
7631
|
})();
|
|
7790
7632
|
|
|
7791
|
-
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
7792
|
-
var extendStatics = function (d, b) {
|
|
7793
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7794
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7795
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7796
|
-
return extendStatics(d, b);
|
|
7797
|
-
};
|
|
7798
|
-
return function (d, b) {
|
|
7799
|
-
extendStatics(d, b);
|
|
7800
|
-
function __() { this.constructor = d; }
|
|
7801
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7802
|
-
};
|
|
7803
|
-
})();
|
|
7804
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7805
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7806
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7807
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7808
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7809
|
-
};
|
|
7633
|
+
var __extends$2 = (undefined && undefined.__extends) || (function () {
|
|
7634
|
+
var extendStatics = function (d, b) {
|
|
7635
|
+
extendStatics = Object.setPrototypeOf ||
|
|
7636
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7637
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7638
|
+
return extendStatics(d, b);
|
|
7639
|
+
};
|
|
7640
|
+
return function (d, b) {
|
|
7641
|
+
extendStatics(d, b);
|
|
7642
|
+
function __() { this.constructor = d; }
|
|
7643
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
7644
|
+
};
|
|
7645
|
+
})();
|
|
7646
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7647
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7648
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7649
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7650
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7651
|
+
};
|
|
7810
7652
|
var defaultPosition = { left: 0, top: 0, bottom: 0, right: 0 };
|
|
7811
7653
|
var isDraggedObject = { isDragged: false };
|
|
7812
7654
|
/**
|
|
@@ -7853,7 +7695,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7853
7695
|
_this.prevTop = 0;
|
|
7854
7696
|
_this.dragProcessStarted = false;
|
|
7855
7697
|
_this.eleTop = 0;
|
|
7856
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7857
7698
|
_this.tapHoldTimer = 0;
|
|
7858
7699
|
_this.externalInitialize = false;
|
|
7859
7700
|
_this.diffY = 0;
|
|
@@ -7939,7 +7780,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7939
7780
|
return this.getScrollableParent(element.parentNode, axis);
|
|
7940
7781
|
}
|
|
7941
7782
|
};
|
|
7942
|
-
/* eslint-disable */
|
|
7943
7783
|
Draggable.prototype.getScrollableValues = function () {
|
|
7944
7784
|
this.parentScrollX = 0;
|
|
7945
7785
|
this.parentScrollY = 0;
|
|
@@ -7947,7 +7787,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7947
7787
|
var verticalScrollParent = this.getScrollableParent(this.element.parentNode, 'vertical');
|
|
7948
7788
|
var horizontalScrollParent = this.getScrollableParent(this.element.parentNode, 'horizontal');
|
|
7949
7789
|
};
|
|
7950
|
-
/* eslint-enable */
|
|
7951
7790
|
Draggable.prototype.initialize = function (evt, curTarget) {
|
|
7952
7791
|
this.currentStateTarget = evt.target;
|
|
7953
7792
|
if (this.isDragStarted()) {
|
|
@@ -7960,8 +7799,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7960
7799
|
this.target = (evt.currentTarget || curTarget);
|
|
7961
7800
|
this.dragProcessStarted = false;
|
|
7962
7801
|
if (this.abort) {
|
|
7963
|
-
/* tslint:disable no-any */
|
|
7964
|
-
// eslint-disable-next-line
|
|
7965
7802
|
var abortSelectors = this.abort;
|
|
7966
7803
|
if (typeof abortSelectors === 'string') {
|
|
7967
7804
|
abortSelectors = [abortSelectors];
|
|
@@ -8032,7 +7869,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8032
7869
|
}
|
|
8033
7870
|
/* istanbul ignore next */
|
|
8034
7871
|
if (this.isReplaceDragEle) {
|
|
8035
|
-
// eslint-disable-next-line
|
|
8036
7872
|
element = this.currentStateCheck(evt.target, element);
|
|
8037
7873
|
}
|
|
8038
7874
|
this.offset = this.calculateParentPosition(element);
|
|
@@ -8149,7 +7985,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8149
7985
|
top: (rect.top + window.pageYOffset) - parseInt(style.marginTop, 10)
|
|
8150
7986
|
};
|
|
8151
7987
|
};
|
|
8152
|
-
// tslint:disable-next-line:max-func-body-length
|
|
8153
7988
|
Draggable.prototype.intDrag = function (evt) {
|
|
8154
7989
|
if (!isUndefined(evt.changedTouches) && (evt.changedTouches.length !== 1)) {
|
|
8155
7990
|
return;
|
|
@@ -8174,7 +8009,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8174
8009
|
}
|
|
8175
8010
|
var eleObj = this.checkTargetElement(evt);
|
|
8176
8011
|
if (eleObj.target && eleObj.instance) {
|
|
8177
|
-
/* tslint:disable no-any */
|
|
8178
8012
|
var flag = true;
|
|
8179
8013
|
if (this.hoverObject) {
|
|
8180
8014
|
if (this.hoverObject.instance !== eleObj.instance) {
|
|
@@ -8185,7 +8019,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8185
8019
|
}
|
|
8186
8020
|
}
|
|
8187
8021
|
if (flag) {
|
|
8188
|
-
// eslint-disable-next-line
|
|
8189
8022
|
eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
|
|
8190
8023
|
eleObj.instance.intOver(evt, eleObj.target);
|
|
8191
8024
|
this.hoverObject = eleObj;
|
|
@@ -8334,8 +8167,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8334
8167
|
if (elements.length === 0) {
|
|
8335
8168
|
elements = this.getPathElements(evt);
|
|
8336
8169
|
}
|
|
8337
|
-
/* tslint:disable no-any */
|
|
8338
|
-
// eslint-disable-next-line
|
|
8339
8170
|
var scrollParent = this.getScrollParent(elements, false);
|
|
8340
8171
|
if (this.elementInViewport(this.helperElement)) {
|
|
8341
8172
|
this.getScrollPosition(scrollParent, draEleTop);
|
|
@@ -8357,11 +8188,7 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8357
8188
|
this.pageX = pagex;
|
|
8358
8189
|
this.pageY = pagey;
|
|
8359
8190
|
};
|
|
8360
|
-
/* tslint:disable no-any */
|
|
8361
|
-
// eslint-disable-next-line
|
|
8362
8191
|
Draggable.prototype.getScrollParent = function (node, reverse) {
|
|
8363
|
-
/* tslint:disable no-any */
|
|
8364
|
-
// eslint-disable-next-line
|
|
8365
8192
|
var nodeEl = reverse ? node.reverse() : node;
|
|
8366
8193
|
var hasScroll;
|
|
8367
8194
|
for (var i = nodeEl.length - 1; i >= 0; i--) {
|
|
@@ -8445,7 +8272,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8445
8272
|
var eleObj = this.checkTargetElement(evt);
|
|
8446
8273
|
if (eleObj.target && eleObj.instance) {
|
|
8447
8274
|
eleObj.instance.dragStopCalled = true;
|
|
8448
|
-
// eslint-disable-next-line
|
|
8449
8275
|
eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
|
|
8450
8276
|
eleObj.instance.intDrop(evt, eleObj.target);
|
|
8451
8277
|
}
|
|
@@ -8457,7 +8283,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8457
8283
|
* @returns {void}
|
|
8458
8284
|
* @private
|
|
8459
8285
|
*/
|
|
8460
|
-
// eslint-disable-next-line
|
|
8461
8286
|
Draggable.prototype.intDestroy = function (evt) {
|
|
8462
8287
|
this.dragProcessStarted = false;
|
|
8463
8288
|
this.toggleEvents();
|
|
@@ -8472,7 +8297,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8472
8297
|
}
|
|
8473
8298
|
};
|
|
8474
8299
|
// triggers when property changed
|
|
8475
|
-
// eslint-disable-next-line
|
|
8476
8300
|
Draggable.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
8477
8301
|
//No Code to handle
|
|
8478
8302
|
};
|
|
@@ -8503,7 +8327,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8503
8327
|
eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
|
|
8504
8328
|
eleHeightBound = ele.scrollHeight ? (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
|
|
8505
8329
|
var keys = ['Top', 'Left', 'Bottom', 'Right'];
|
|
8506
|
-
/* eslint-disable */
|
|
8507
8330
|
var styles = getComputedStyle(ele);
|
|
8508
8331
|
for (var i = 0; i < keys.length; i++) {
|
|
8509
8332
|
var key = keys[parseInt(i.toString(), 10)];
|
|
@@ -8513,7 +8336,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8513
8336
|
this.borderWidth["" + lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
|
|
8514
8337
|
this.padding["" + lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
|
|
8515
8338
|
}
|
|
8516
|
-
/* eslint-enable */
|
|
8517
8339
|
if (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) {
|
|
8518
8340
|
top = elementArea.top + document.scrollingElement.scrollTop;
|
|
8519
8341
|
}
|
|
@@ -8554,8 +8376,6 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8554
8376
|
return elem;
|
|
8555
8377
|
};
|
|
8556
8378
|
Draggable.prototype.getMousePosition = function (evt, isdragscroll) {
|
|
8557
|
-
/* tslint:disable no-any */
|
|
8558
|
-
// eslint-disable-next-line
|
|
8559
8379
|
var dragEle = evt.srcElement !== undefined ? evt.srcElement : evt.target;
|
|
8560
8380
|
var intCoord = this.getCoordinates(evt);
|
|
8561
8381
|
var pageX;
|
|
@@ -8722,25 +8542,25 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8722
8542
|
return Draggable;
|
|
8723
8543
|
}(Base));
|
|
8724
8544
|
|
|
8725
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
8726
|
-
var extendStatics = function (d, b) {
|
|
8727
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8728
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8729
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8730
|
-
return extendStatics(d, b);
|
|
8731
|
-
};
|
|
8732
|
-
return function (d, b) {
|
|
8733
|
-
extendStatics(d, b);
|
|
8734
|
-
function __() { this.constructor = d; }
|
|
8735
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8736
|
-
};
|
|
8737
|
-
})();
|
|
8738
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8739
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8740
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8741
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8742
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8743
|
-
};
|
|
8545
|
+
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
8546
|
+
var extendStatics = function (d, b) {
|
|
8547
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8548
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8549
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8550
|
+
return extendStatics(d, b);
|
|
8551
|
+
};
|
|
8552
|
+
return function (d, b) {
|
|
8553
|
+
extendStatics(d, b);
|
|
8554
|
+
function __() { this.constructor = d; }
|
|
8555
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8556
|
+
};
|
|
8557
|
+
})();
|
|
8558
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8559
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8560
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8561
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8562
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8563
|
+
};
|
|
8744
8564
|
/**
|
|
8745
8565
|
* Droppable Module provides support to enable droppable functionality in Dom Elements.
|
|
8746
8566
|
* ```html
|
|
@@ -8773,7 +8593,6 @@ var Droppable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8773
8593
|
EventHandler.add(this.element, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDrop, this);
|
|
8774
8594
|
};
|
|
8775
8595
|
// triggers when property changed
|
|
8776
|
-
// eslint-disable-next-line
|
|
8777
8596
|
Droppable.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
8778
8597
|
//No Code to handle
|
|
8779
8598
|
};
|
|
@@ -8856,25 +8675,25 @@ var Droppable = /** @__PURE__ @class */ (function (_super) {
|
|
|
8856
8675
|
return Droppable;
|
|
8857
8676
|
}(Base));
|
|
8858
8677
|
|
|
8859
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
8860
|
-
var extendStatics = function (d, b) {
|
|
8861
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8862
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8863
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8864
|
-
return extendStatics(d, b);
|
|
8865
|
-
};
|
|
8866
|
-
return function (d, b) {
|
|
8867
|
-
extendStatics(d, b);
|
|
8868
|
-
function __() { this.constructor = d; }
|
|
8869
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8870
|
-
};
|
|
8871
|
-
})();
|
|
8872
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8873
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8874
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8875
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8876
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8877
|
-
};
|
|
8678
|
+
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
8679
|
+
var extendStatics = function (d, b) {
|
|
8680
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8681
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8682
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8683
|
+
return extendStatics(d, b);
|
|
8684
|
+
};
|
|
8685
|
+
return function (d, b) {
|
|
8686
|
+
extendStatics(d, b);
|
|
8687
|
+
function __() { this.constructor = d; }
|
|
8688
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8689
|
+
};
|
|
8690
|
+
})();
|
|
8691
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8692
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8693
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8694
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8695
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8696
|
+
};
|
|
8878
8697
|
var keyCode = {
|
|
8879
8698
|
'backspace': 8,
|
|
8880
8699
|
'tab': 9,
|
|
@@ -8995,7 +8814,6 @@ var KeyboardEvents = /** @__PURE__ @class */ (function (_super) {
|
|
|
8995
8814
|
* @returns {void} ?
|
|
8996
8815
|
* @private
|
|
8997
8816
|
*/
|
|
8998
|
-
// eslint-disable-next-line
|
|
8999
8817
|
KeyboardEvents.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
9000
8818
|
// No code are needed
|
|
9001
8819
|
};
|
|
@@ -9163,25 +8981,25 @@ var L10n = /** @__PURE__ @class */ (function () {
|
|
|
9163
8981
|
return L10n;
|
|
9164
8982
|
}());
|
|
9165
8983
|
|
|
9166
|
-
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
9167
|
-
var extendStatics = function (d, b) {
|
|
9168
|
-
extendStatics = Object.setPrototypeOf ||
|
|
9169
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9170
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
9171
|
-
return extendStatics(d, b);
|
|
9172
|
-
};
|
|
9173
|
-
return function (d, b) {
|
|
9174
|
-
extendStatics(d, b);
|
|
9175
|
-
function __() { this.constructor = d; }
|
|
9176
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9177
|
-
};
|
|
9178
|
-
})();
|
|
9179
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
9180
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9181
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9182
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9183
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9184
|
-
};
|
|
8984
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
8985
|
+
var extendStatics = function (d, b) {
|
|
8986
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8987
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8988
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
8989
|
+
return extendStatics(d, b);
|
|
8990
|
+
};
|
|
8991
|
+
return function (d, b) {
|
|
8992
|
+
extendStatics(d, b);
|
|
8993
|
+
function __() { this.constructor = d; }
|
|
8994
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8995
|
+
};
|
|
8996
|
+
})();
|
|
8997
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8998
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8999
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9000
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9001
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9002
|
+
};
|
|
9185
9003
|
/**
|
|
9186
9004
|
* SwipeSettings is a framework module that provides support to handle swipe event like swipe up, swipe right, etc..,
|
|
9187
9005
|
*/
|
|
@@ -9330,10 +9148,8 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9330
9148
|
velocity: _this.getVelocity(point)
|
|
9331
9149
|
};
|
|
9332
9150
|
if (_this.isTouchMoved) {
|
|
9333
|
-
var eSwipeArgs = void 0;
|
|
9334
9151
|
var tDistance = _this.swipeSettings.swipeThresholdDistance;
|
|
9335
|
-
|
|
9336
|
-
eSwipeArgs = extend(eSwipeArgs, _this.defaultArgs, swipeArgs);
|
|
9152
|
+
var eSwipeArgs = extend(undefined, _this.defaultArgs, swipeArgs);
|
|
9337
9153
|
var canTrigger = false;
|
|
9338
9154
|
var ele = _this.element;
|
|
9339
9155
|
var scrollBool = _this.isScrollable(ele);
|
|
@@ -9372,7 +9188,6 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9372
9188
|
* @param {TouchModel} oldProp ?
|
|
9373
9189
|
* @returns {void} ?
|
|
9374
9190
|
*/
|
|
9375
|
-
// eslint-disable-next-line
|
|
9376
9191
|
Touch.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
9377
9192
|
//No Code to handle
|
|
9378
9193
|
};
|
|
@@ -9429,11 +9244,9 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9429
9244
|
Touch.prototype.tapHoldEvent = function (evt) {
|
|
9430
9245
|
this.tapCount = 0;
|
|
9431
9246
|
this.touchAction = true;
|
|
9432
|
-
var eTapArgs;
|
|
9433
9247
|
EventHandler.remove(this.element, Browser.touchMoveEvent, this.moveEvent);
|
|
9434
9248
|
EventHandler.remove(this.element, Browser.touchEndEvent, this.endEvent);
|
|
9435
|
-
|
|
9436
|
-
eTapArgs = { originalEvent: evt };
|
|
9249
|
+
var eTapArgs = { originalEvent: evt };
|
|
9437
9250
|
this.trigger('tapHold', eTapArgs);
|
|
9438
9251
|
EventHandler.remove(this.element, Browser.touchCancelEvent, this.cancelEvent);
|
|
9439
9252
|
};
|
|
@@ -9472,7 +9285,6 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9472
9285
|
var interval = newT - this.tStampStart;
|
|
9473
9286
|
return Math.sqrt(xDist * xDist + yDist * yDist) / interval;
|
|
9474
9287
|
};
|
|
9475
|
-
// eslint-disable-next-line
|
|
9476
9288
|
Touch.prototype.checkSwipe = function (ele, flag) {
|
|
9477
9289
|
var keys = ['scroll', 'offset'];
|
|
9478
9290
|
var temp = flag ? ['Height', 'Top'] : ['Width', 'Left'];
|
|
@@ -9513,6 +9325,7 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
|
|
|
9513
9325
|
return Touch;
|
|
9514
9326
|
}(Base));
|
|
9515
9327
|
|
|
9328
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9516
9329
|
/**
|
|
9517
9330
|
* Template Engine
|
|
9518
9331
|
*/
|
|
@@ -9535,14 +9348,6 @@ var SINGLE_SLASH = /\\/gi;
|
|
|
9535
9348
|
var DOUBLE_SLASH = /\\\\/gi;
|
|
9536
9349
|
var WORDFUNC = new RegExp('[\\w"\'@#$.\\s+]+', 'g');
|
|
9537
9350
|
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
9351
|
// /**
|
|
9547
9352
|
// * To render the template string from the given data.
|
|
9548
9353
|
// * @param {string} template - String Template.
|
|
@@ -9568,17 +9373,15 @@ var WINDOWFUNC = /\window\./gm;
|
|
|
9568
9373
|
* @returns {string} ?
|
|
9569
9374
|
* @private
|
|
9570
9375
|
*/
|
|
9571
|
-
function compile
|
|
9376
|
+
function compile(template, helper, ignorePrefix) {
|
|
9572
9377
|
if (typeof template === 'function') {
|
|
9573
9378
|
return template;
|
|
9574
9379
|
}
|
|
9575
9380
|
else {
|
|
9576
9381
|
var argName = 'data';
|
|
9577
9382
|
var evalExpResult = evalExp(template, argName, helper, ignorePrefix);
|
|
9578
|
-
/* eslint-disable */
|
|
9579
9383
|
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 */
|
|
9384
|
+
var fnCode = 'var str="' + evalExpResult + '";' + condtion + ' return str;';
|
|
9582
9385
|
var fn = new Function(argName, fnCode);
|
|
9583
9386
|
return fn.bind(helper);
|
|
9584
9387
|
}
|
|
@@ -9622,9 +9425,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9622
9425
|
else {
|
|
9623
9426
|
str = str.replace(/\\?"/g, '\\"');
|
|
9624
9427
|
}
|
|
9625
|
-
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp,
|
|
9626
|
-
// eslint-disable-next-line
|
|
9627
|
-
function (match, cnt, offset, matchStr) {
|
|
9428
|
+
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp, function (match, cnt, offset, matchStr) {
|
|
9628
9429
|
var SPECIAL_CHAR = /@|#|\$/gm;
|
|
9629
9430
|
var matches = cnt.match(CALL_FUNCTION);
|
|
9630
9431
|
// matches to detect any function calls
|
|
@@ -9647,12 +9448,10 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9647
9448
|
//handling for condition
|
|
9648
9449
|
var rlStr_1 = matches[1].split(' of ');
|
|
9649
9450
|
// replace for each into actual JavaScript
|
|
9650
|
-
// eslint-disable-next-line
|
|
9651
9451
|
cnt = '"; ' + cnt.replace(matches[1], function (mtc) {
|
|
9652
9452
|
localKeys.push(rlStr_1[0]);
|
|
9653
9453
|
localKeys.push(rlStr_1[0] + 'Index');
|
|
9654
9454
|
varCOunt = varCOunt + 1;
|
|
9655
|
-
// tslint:disable-next-line
|
|
9656
9455
|
return 'var i' + varCOunt + '=0; i' + varCOunt + ' < ' + addNameSpace(rlStr_1[1], true, nameSpace, localKeys, ignorePrefix) + '.length; i' + varCOunt + '++';
|
|
9657
9456
|
}) + '{ \n ' + rlStr_1[0] + '= ' + addNameSpace(rlStr_1[1], true, nameSpace, localKeys, ignorePrefix)
|
|
9658
9457
|
+ '[i' + varCOunt + ']; \n var ' + rlStr_1[0] + 'Index=i' + varCOunt + '; \n str = str + "';
|
|
@@ -9660,8 +9459,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9660
9459
|
else {
|
|
9661
9460
|
//helper function handling
|
|
9662
9461
|
var fnStr = cnt.split('(');
|
|
9663
|
-
|
|
9664
|
-
var fNameSpace = (helper && helper.hasOwnProperty(fnStr[0]) ? 'this.' : 'global');
|
|
9462
|
+
var fNameSpace = (helper && Object.prototype.hasOwnProperty.call(helper, fnStr[0]) ? 'this.' : 'global');
|
|
9665
9463
|
fNameSpace = (/\./.test(fnStr[0]) ? '' : fNameSpace);
|
|
9666
9464
|
var ftArray = matches[1].split(',');
|
|
9667
9465
|
if (matches[1].length !== 0 && !(/data/).test(ftArray[0]) && !(/window./).test(ftArray[0])) {
|
|
@@ -9672,7 +9470,6 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9672
9470
|
if (WINDOWFUNC.test(cnt) && arrObj.test(cnt) || splRegexp.test(cnt)) {
|
|
9673
9471
|
var splArrRegexp = /@|\$|#|\]\./gm;
|
|
9674
9472
|
if (splArrRegexp.test(cnt)) {
|
|
9675
|
-
// tslint:disable-next-line
|
|
9676
9473
|
cnt = '"+ ' + (fNameSpace === 'global' ? '' : fNameSpace) + cnt.replace(matches[1], rlStr.replace(WORDFUNC, function (strs) {
|
|
9677
9474
|
return HandleSpecialCharArrObj(strs, nameSpace, localKeys, ignorePrefix);
|
|
9678
9475
|
})) + '+ "';
|
|
@@ -9688,9 +9485,8 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9688
9485
|
else if (ELSE_STMT.test(cnt)) {
|
|
9689
9486
|
// handling else condition
|
|
9690
9487
|
cnt = '"; ' + cnt.replace(ELSE_STMT, '} else { \n str = str + "');
|
|
9691
|
-
// eslint-disable-next-line
|
|
9692
9488
|
}
|
|
9693
|
-
else if (
|
|
9489
|
+
else if (cnt.match(IF_OR_FOR)) {
|
|
9694
9490
|
// close condition
|
|
9695
9491
|
cnt = cnt.replace(IF_OR_FOR, '"; \n } \n str = str + "');
|
|
9696
9492
|
}
|
|
@@ -9755,17 +9551,20 @@ function NameSpaceArrObj(str, addNS, nameSpace, ignoreList) {
|
|
|
9755
9551
|
function NameSpaceForspecialChar(str, addNS, nameSpace, ignoreList) {
|
|
9756
9552
|
return ((addNS && !(NOT_NUMBER.test(str)) && ignoreList.indexOf(str.split('.')[0]) === -1) ? nameSpace + '["' + str : str);
|
|
9757
9553
|
}
|
|
9758
|
-
|
|
9554
|
+
/**
|
|
9555
|
+
* Replace double slashes to single slash.
|
|
9556
|
+
*
|
|
9557
|
+
* @param {string} tempStr ?
|
|
9558
|
+
* @returns {any} ?
|
|
9559
|
+
*/
|
|
9759
9560
|
function SlashReplace(tempStr) {
|
|
9760
9561
|
var double = '\\\\';
|
|
9761
9562
|
if (tempStr.match(DOUBLE_SLASH)) {
|
|
9762
|
-
|
|
9763
|
-
tempStr = tempStr;
|
|
9563
|
+
return tempStr;
|
|
9764
9564
|
}
|
|
9765
9565
|
else {
|
|
9766
|
-
|
|
9566
|
+
return tempStr.replace(SINGLE_SLASH, double);
|
|
9767
9567
|
}
|
|
9768
|
-
return tempStr;
|
|
9769
9568
|
}
|
|
9770
9569
|
/**
|
|
9771
9570
|
*
|
|
@@ -9796,9 +9595,7 @@ function HandleSpecialCharArrObj(str, nameSpaceNew, keys, ignorePrefix) {
|
|
|
9796
9595
|
}
|
|
9797
9596
|
}
|
|
9798
9597
|
|
|
9799
|
-
|
|
9800
|
-
* Template Engine Bridge
|
|
9801
|
-
*/
|
|
9598
|
+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
|
|
9802
9599
|
var HAS_ROW = /^[\n\r.]+<tr|^<tr/;
|
|
9803
9600
|
var HAS_SVG = /^[\n\r.]+<svg|^<path|^<g/;
|
|
9804
9601
|
var blazorTemplates = {};
|
|
@@ -9818,10 +9615,8 @@ function getRandomId() {
|
|
|
9818
9615
|
* @returns {NodeList} ?
|
|
9819
9616
|
* @private
|
|
9820
9617
|
*/
|
|
9821
|
-
|
|
9822
|
-
function compile$$1(templateString, helper, ignorePrefix) {
|
|
9618
|
+
function compile$1(templateString, helper, ignorePrefix) {
|
|
9823
9619
|
var compiler = engineObj.compile(templateString, helper, ignorePrefix);
|
|
9824
|
-
// eslint-disable-next-line
|
|
9825
9620
|
return function (data, component, propName, templateId, isStringTemplate, index, element, root) {
|
|
9826
9621
|
var result = compiler(data, component, propName, element, root);
|
|
9827
9622
|
var blazorTemplateId = 'BlazorTemplateId';
|
|
@@ -9847,9 +9642,7 @@ function compile$$1(templateString, helper, ignorePrefix) {
|
|
|
9847
9642
|
data["" + blazorTemplateId] = blazorId;
|
|
9848
9643
|
blazorTemplates["" + templateId].push(data);
|
|
9849
9644
|
}
|
|
9850
|
-
// eslint-disable-next-line
|
|
9851
9645
|
return propName === 'rowTemplate' ? [createElement('tr', { id: blazorId, className: 'e-blazor-template' })] :
|
|
9852
|
-
// eslint-disable-next-line
|
|
9853
9646
|
[createElement('div', { id: blazorId, className: 'e-blazor-template' })];
|
|
9854
9647
|
}
|
|
9855
9648
|
if (typeof result === 'string') {
|
|
@@ -9895,7 +9688,6 @@ function updateBlazorTemplate(templateId, templateName, comp, isEmpty, callBack)
|
|
|
9895
9688
|
function resetBlazorTemplate(templateId, templateName, index) {
|
|
9896
9689
|
var templateDiv = document.getElementById(templateId);
|
|
9897
9690
|
if (templateDiv) {
|
|
9898
|
-
// eslint-disable-next-line
|
|
9899
9691
|
var innerTemplates = templateDiv.getElementsByClassName('blazor-inner-template');
|
|
9900
9692
|
for (var i = 0; i < innerTemplates.length; i++) {
|
|
9901
9693
|
var tempId = ' ';
|
|
@@ -9948,7 +9740,6 @@ function getTemplateEngine() {
|
|
|
9948
9740
|
* @returns {Function} ?
|
|
9949
9741
|
* @private
|
|
9950
9742
|
*/
|
|
9951
|
-
// eslint-disable-next-line
|
|
9952
9743
|
function initializeCSPTemplate(template, helper) {
|
|
9953
9744
|
var boundFunc;
|
|
9954
9745
|
template.prototype.CSPTemplate = true;
|
|
@@ -9965,10 +9756,9 @@ function initializeCSPTemplate(template, helper) {
|
|
|
9965
9756
|
var Engine = /** @__PURE__ @class */ (function () {
|
|
9966
9757
|
function Engine() {
|
|
9967
9758
|
}
|
|
9968
|
-
// eslint-disable-next-line
|
|
9969
9759
|
Engine.prototype.compile = function (templateString, helper, ignorePrefix) {
|
|
9970
9760
|
if (helper === void 0) { helper = {}; }
|
|
9971
|
-
return compile
|
|
9761
|
+
return compile(templateString, helper);
|
|
9972
9762
|
};
|
|
9973
9763
|
return Engine;
|
|
9974
9764
|
}());
|
|
@@ -10153,7 +9943,6 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
|
|
|
10153
9943
|
};
|
|
10154
9944
|
SanitizeHtmlHelper.removeXssAttrs = function () {
|
|
10155
9945
|
var _this = this;
|
|
10156
|
-
// eslint-disable-next-line
|
|
10157
9946
|
this.removeAttrs.forEach(function (item, index) {
|
|
10158
9947
|
var elements = _this.wrapElement.querySelectorAll(item.selector);
|
|
10159
9948
|
if (elements.length > 0) {
|
|
@@ -10166,9 +9955,5 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
|
|
|
10166
9955
|
return SanitizeHtmlHelper;
|
|
10167
9956
|
}());
|
|
10168
9957
|
|
|
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 };
|
|
9958
|
+
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
9959
|
//# sourceMappingURL=ej2-base.es5.js.map
|