@syncfusion/ej2-base 25.2.7 → 26.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -2
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +197 -423
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +182 -405
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +72 -8
- package/src/ajax.d.ts +1 -1
- package/src/ajax.js +3 -7
- package/src/animation.d.ts +1 -1
- package/src/animation.js +1 -3
- package/src/base.d.ts +2 -1
- package/src/base.js +4 -13
- package/src/browser.d.ts +1 -1
- package/src/browser.js +3 -4
- package/src/child-property.d.ts +1 -0
- package/src/child-property.js +2 -2
- package/src/component.d.ts +4 -0
- package/src/component.js +9 -17
- package/src/dom.js +4 -11
- package/src/draggable.js +1 -22
- package/src/droppable.js +0 -1
- package/src/event-handler.js +2 -6
- package/src/fetch.js +1 -2
- package/src/hijri-parser.js +3 -3
- package/src/internationalization.js +0 -5
- package/src/intl/date-formatter.js +19 -33
- package/src/intl/date-parser.js +33 -62
- package/src/intl/intl-base.d.ts +7 -0
- package/src/intl/intl-base.js +16 -16
- package/src/intl/number-formatter.js +5 -5
- package/src/intl/number-parser.js +2 -6
- package/src/intl/parser-base.js +6 -11
- package/src/keyboard.js +0 -1
- package/src/module-loader.js +1 -0
- package/src/notify-property-change.d.ts +0 -20
- package/src/notify-property-change.js +16 -55
- package/src/observer.js +3 -6
- package/src/sanitize-helper.js +0 -1
- package/src/template-engine.js +1 -7
- package/src/template.js +13 -18
- package/src/touch.js +3 -8
- package/src/util.d.ts +4 -4
- package/src/util.js +13 -38
- package/src/validate-lic.js +4 -3
- package/styles/_bootstrap5.3-dark-definition.scss +8 -0
- package/styles/_bootstrap5.3-definition.scss +8 -0
- package/styles/_fluent2-dark-definition.scss +9 -0
- package/styles/_fluent2-definition.scss +9 -0
- package/styles/_fluent2-highcontrast-definition.scss +9 -0
- package/styles/animation/_all.scss +0 -1
- package/styles/bootstrap-dark.css +865 -143
- package/styles/bootstrap.css +865 -143
- package/styles/bootstrap4.css +865 -143
- package/styles/bootstrap5-dark.css +865 -143
- package/styles/bootstrap5.css +865 -143
- package/styles/common/_core.scss +3 -7
- package/styles/definition/_bds-dark.scss +45 -156
- package/styles/definition/_bds.scss +71 -202
- package/styles/definition/_bootstrap-dark.scss +1 -13
- package/styles/definition/_bootstrap.scss +0 -13
- package/styles/definition/_bootstrap4.scss +24 -38
- package/styles/definition/_bootstrap5-dark.scss +69 -88
- package/styles/definition/_bootstrap5.3-dark.scss +853 -0
- package/styles/definition/_bootstrap5.3.scss +1486 -0
- package/styles/definition/_bootstrap5.scss +64 -84
- package/styles/definition/_fabric-dark.scss +0 -12
- package/styles/definition/_fabric.scss +0 -12
- package/styles/definition/_fluent-dark.scss +27 -96
- package/styles/definition/_fluent.scss +27 -97
- package/styles/definition/_fluent2-dark.scss +1506 -0
- package/styles/definition/_fluent2-highcontrast.scss +1506 -0
- package/styles/definition/_fluent2.scss +2264 -0
- package/styles/definition/_fusionnew-dark.scss +40 -78
- package/styles/definition/_fusionnew.scss +36 -75
- package/styles/definition/_highcontrast-light.scss +0 -10
- package/styles/definition/_highcontrast.scss +0 -12
- package/styles/definition/_material-dark.scss +0 -11
- package/styles/definition/_material.scss +1 -13
- package/styles/definition/_material3-dark.scss +15 -71
- package/styles/definition/_material3.scss +15 -84
- package/styles/definition/_tailwind-dark.scss +17 -66
- package/styles/definition/_tailwind.scss +18 -66
- package/styles/fabric-dark.css +865 -143
- package/styles/fabric.css +865 -143
- package/styles/fluent-dark.css +865 -143
- package/styles/fluent.css +865 -143
- package/styles/fluent2.css +3825 -0
- package/styles/fluent2.scss +3 -0
- package/styles/highcontrast-light.css +865 -143
- package/styles/highcontrast.css +865 -143
- package/styles/material-dark.css +865 -143
- package/styles/material.css +865 -143
- package/styles/material3-dark.css +865 -144
- package/styles/material3.css +865 -144
- package/styles/offline-theme/material-dark.css +865 -143
- package/styles/offline-theme/material.css +865 -143
- package/styles/offline-theme/tailwind-dark.css +866 -144
- package/styles/offline-theme/tailwind.css +866 -144
- package/styles/tailwind-dark.css +866 -144
- package/styles/tailwind.css +866 -144
- package/CHANGELOG.md +0 -649
package/src/template.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
/**
|
|
2
3
|
* Template Engine
|
|
3
4
|
*/
|
|
@@ -65,10 +66,8 @@ export function compile(template, helper, ignorePrefix) {
|
|
|
65
66
|
else {
|
|
66
67
|
var argName = 'data';
|
|
67
68
|
var evalExpResult = evalExp(template, argName, helper, ignorePrefix);
|
|
68
|
-
/* eslint-disable */
|
|
69
69
|
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 ";
|
|
70
|
-
var fnCode = 'var str
|
|
71
|
-
/* eslint-enable */
|
|
70
|
+
var fnCode = 'var str="' + evalExpResult + '";' + condtion + ' return str;';
|
|
72
71
|
var fn = new Function(argName, fnCode);
|
|
73
72
|
return fn.bind(helper);
|
|
74
73
|
}
|
|
@@ -112,9 +111,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
112
111
|
else {
|
|
113
112
|
str = str.replace(/\\?"/g, '\\"');
|
|
114
113
|
}
|
|
115
|
-
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp,
|
|
116
|
-
// eslint-disable-next-line
|
|
117
|
-
function (match, cnt, offset, matchStr) {
|
|
114
|
+
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp, function (match, cnt, offset, matchStr) {
|
|
118
115
|
var SPECIAL_CHAR = /@|#|\$/gm;
|
|
119
116
|
var matches = cnt.match(CALL_FUNCTION);
|
|
120
117
|
// matches to detect any function calls
|
|
@@ -137,12 +134,10 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
137
134
|
//handling for condition
|
|
138
135
|
var rlStr_1 = matches[1].split(' of ');
|
|
139
136
|
// replace for each into actual JavaScript
|
|
140
|
-
// eslint-disable-next-line
|
|
141
137
|
cnt = '"; ' + cnt.replace(matches[1], function (mtc) {
|
|
142
138
|
localKeys.push(rlStr_1[0]);
|
|
143
139
|
localKeys.push(rlStr_1[0] + 'Index');
|
|
144
140
|
varCOunt = varCOunt + 1;
|
|
145
|
-
// tslint:disable-next-line
|
|
146
141
|
return 'var i' + varCOunt + '=0; i' + varCOunt + ' < ' + addNameSpace(rlStr_1[1], true, nameSpace, localKeys, ignorePrefix) + '.length; i' + varCOunt + '++';
|
|
147
142
|
}) + '{ \n ' + rlStr_1[0] + '= ' + addNameSpace(rlStr_1[1], true, nameSpace, localKeys, ignorePrefix)
|
|
148
143
|
+ '[i' + varCOunt + ']; \n var ' + rlStr_1[0] + 'Index=i' + varCOunt + '; \n str = str + "';
|
|
@@ -150,8 +145,7 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
150
145
|
else {
|
|
151
146
|
//helper function handling
|
|
152
147
|
var fnStr = cnt.split('(');
|
|
153
|
-
|
|
154
|
-
var fNameSpace = (helper && helper.hasOwnProperty(fnStr[0]) ? 'this.' : 'global');
|
|
148
|
+
var fNameSpace = (helper && Object.prototype.hasOwnProperty.call(helper, fnStr[0]) ? 'this.' : 'global');
|
|
155
149
|
fNameSpace = (/\./.test(fnStr[0]) ? '' : fNameSpace);
|
|
156
150
|
var ftArray = matches[1].split(',');
|
|
157
151
|
if (matches[1].length !== 0 && !(/data/).test(ftArray[0]) && !(/window./).test(ftArray[0])) {
|
|
@@ -162,7 +156,6 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
162
156
|
if (WINDOWFUNC.test(cnt) && arrObj.test(cnt) || splRegexp.test(cnt)) {
|
|
163
157
|
var splArrRegexp = /@|\$|#|\]\./gm;
|
|
164
158
|
if (splArrRegexp.test(cnt)) {
|
|
165
|
-
// tslint:disable-next-line
|
|
166
159
|
cnt = '"+ ' + (fNameSpace === 'global' ? '' : fNameSpace) + cnt.replace(matches[1], rlStr.replace(WORDFUNC, function (strs) {
|
|
167
160
|
return HandleSpecialCharArrObj(strs, nameSpace, localKeys, ignorePrefix);
|
|
168
161
|
})) + '+ "';
|
|
@@ -178,9 +171,8 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
178
171
|
else if (ELSE_STMT.test(cnt)) {
|
|
179
172
|
// handling else condition
|
|
180
173
|
cnt = '"; ' + cnt.replace(ELSE_STMT, '} else { \n str = str + "');
|
|
181
|
-
// eslint-disable-next-line
|
|
182
174
|
}
|
|
183
|
-
else if (
|
|
175
|
+
else if (cnt.match(IF_OR_FOR)) {
|
|
184
176
|
// close condition
|
|
185
177
|
cnt = cnt.replace(IF_OR_FOR, '"; \n } \n str = str + "');
|
|
186
178
|
}
|
|
@@ -245,17 +237,20 @@ function NameSpaceArrObj(str, addNS, nameSpace, ignoreList) {
|
|
|
245
237
|
function NameSpaceForspecialChar(str, addNS, nameSpace, ignoreList) {
|
|
246
238
|
return ((addNS && !(NOT_NUMBER.test(str)) && ignoreList.indexOf(str.split('.')[0]) === -1) ? nameSpace + '["' + str : str);
|
|
247
239
|
}
|
|
248
|
-
|
|
240
|
+
/**
|
|
241
|
+
* Replace double slashes to single slash.
|
|
242
|
+
*
|
|
243
|
+
* @param {string} tempStr ?
|
|
244
|
+
* @returns {any} ?
|
|
245
|
+
*/
|
|
249
246
|
function SlashReplace(tempStr) {
|
|
250
247
|
var double = '\\\\';
|
|
251
248
|
if (tempStr.match(DOUBLE_SLASH)) {
|
|
252
|
-
|
|
253
|
-
tempStr = tempStr;
|
|
249
|
+
return tempStr;
|
|
254
250
|
}
|
|
255
251
|
else {
|
|
256
|
-
|
|
252
|
+
return tempStr.replace(SINGLE_SLASH, double);
|
|
257
253
|
}
|
|
258
|
-
return tempStr;
|
|
259
254
|
}
|
|
260
255
|
/**
|
|
261
256
|
*
|
package/src/touch.js
CHANGED
|
@@ -17,6 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
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;
|
|
18
18
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
19
|
};
|
|
20
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
20
21
|
import { extend } from './util';
|
|
21
22
|
import { Property, Complex, NotifyPropertyChanges, Event } from './notify-property-change';
|
|
22
23
|
import { Browser } from './browser';
|
|
@@ -172,10 +173,8 @@ var Touch = /** @class */ (function (_super) {
|
|
|
172
173
|
velocity: _this.getVelocity(point)
|
|
173
174
|
};
|
|
174
175
|
if (_this.isTouchMoved) {
|
|
175
|
-
var eSwipeArgs = void 0;
|
|
176
176
|
var tDistance = _this.swipeSettings.swipeThresholdDistance;
|
|
177
|
-
|
|
178
|
-
eSwipeArgs = extend(eSwipeArgs, _this.defaultArgs, swipeArgs);
|
|
177
|
+
var eSwipeArgs = extend(undefined, _this.defaultArgs, swipeArgs);
|
|
179
178
|
var canTrigger = false;
|
|
180
179
|
var ele = _this.element;
|
|
181
180
|
var scrollBool = _this.isScrollable(ele);
|
|
@@ -214,7 +213,6 @@ var Touch = /** @class */ (function (_super) {
|
|
|
214
213
|
* @param {TouchModel} oldProp ?
|
|
215
214
|
* @returns {void} ?
|
|
216
215
|
*/
|
|
217
|
-
// eslint-disable-next-line
|
|
218
216
|
Touch.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
219
217
|
//No Code to handle
|
|
220
218
|
};
|
|
@@ -271,11 +269,9 @@ var Touch = /** @class */ (function (_super) {
|
|
|
271
269
|
Touch.prototype.tapHoldEvent = function (evt) {
|
|
272
270
|
this.tapCount = 0;
|
|
273
271
|
this.touchAction = true;
|
|
274
|
-
var eTapArgs;
|
|
275
272
|
EventHandler.remove(this.element, Browser.touchMoveEvent, this.moveEvent);
|
|
276
273
|
EventHandler.remove(this.element, Browser.touchEndEvent, this.endEvent);
|
|
277
|
-
|
|
278
|
-
eTapArgs = { originalEvent: evt };
|
|
274
|
+
var eTapArgs = { originalEvent: evt };
|
|
279
275
|
this.trigger('tapHold', eTapArgs);
|
|
280
276
|
EventHandler.remove(this.element, Browser.touchCancelEvent, this.cancelEvent);
|
|
281
277
|
};
|
|
@@ -314,7 +310,6 @@ var Touch = /** @class */ (function (_super) {
|
|
|
314
310
|
var interval = newT - this.tStampStart;
|
|
315
311
|
return Math.sqrt(xDist * xDist + yDist * yDist) / interval;
|
|
316
312
|
};
|
|
317
|
-
// eslint-disable-next-line
|
|
318
313
|
Touch.prototype.checkSwipe = function (ele, flag) {
|
|
319
314
|
var keys = ['scroll', 'offset'];
|
|
320
315
|
var temp = flag ? ['Height', 'Top'] : ['Width', 'Left'];
|
package/src/util.d.ts
CHANGED
|
@@ -100,19 +100,19 @@ export declare function extend(copied: Object, first: Object, second?: Object, d
|
|
|
100
100
|
/**
|
|
101
101
|
* To check whether the object is null or undefined.
|
|
102
102
|
*
|
|
103
|
-
* @param {
|
|
103
|
+
* @param {any} value - To check the object is null or undefined
|
|
104
104
|
* @returns {boolean} ?
|
|
105
105
|
* @private
|
|
106
106
|
*/
|
|
107
|
-
export declare function isNullOrUndefined(value:
|
|
107
|
+
export declare function isNullOrUndefined<T>(value: T): boolean;
|
|
108
108
|
/**
|
|
109
109
|
* To check whether the object is undefined.
|
|
110
110
|
*
|
|
111
|
-
* @param {
|
|
111
|
+
* @param {any} value - To check the object is undefined
|
|
112
112
|
* @returns {boolean} ?
|
|
113
113
|
* @private
|
|
114
114
|
*/
|
|
115
|
-
export declare function isUndefined(value:
|
|
115
|
+
export declare function isUndefined<T>(value: T): boolean;
|
|
116
116
|
/**
|
|
117
117
|
* To return the generated unique name
|
|
118
118
|
*
|
package/src/util.js
CHANGED
|
@@ -18,7 +18,6 @@ export function disableBlazorMode() {
|
|
|
18
18
|
* @returns {any} ?
|
|
19
19
|
* @private
|
|
20
20
|
*/
|
|
21
|
-
// eslint-disable-next-line
|
|
22
21
|
export function createInstance(classFunction, params) {
|
|
23
22
|
var arrayParam = params;
|
|
24
23
|
arrayParam.unshift(undefined);
|
|
@@ -33,12 +32,10 @@ export function createInstance(classFunction, params) {
|
|
|
33
32
|
*/
|
|
34
33
|
export 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 @@ export function setImmediate(handler) {
|
|
|
60
57
|
* @returns {any} ?
|
|
61
58
|
* @private
|
|
62
59
|
*/
|
|
63
|
-
// eslint-disable-next-line
|
|
64
60
|
export 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 @@ export function getValue(nameSpace, obj) {
|
|
|
79
74
|
* @returns {any} ?
|
|
80
75
|
* @private
|
|
81
76
|
*/
|
|
82
|
-
// eslint-disable-next-line
|
|
83
77
|
export 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 @@ export function setValue(nameSpace, value, obj) {
|
|
|
109
101
|
* @returns {void} ?
|
|
110
102
|
* @private
|
|
111
103
|
*/
|
|
112
|
-
// eslint-disable-next-line
|
|
113
104
|
export 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
|
export var containerObject = typeof window !== 'undefined' ? window : {};
|
|
121
111
|
/**
|
|
122
112
|
* Check weather the given argument is only object.
|
|
@@ -125,7 +115,6 @@ export var containerObject = typeof window !== 'undefined' ? window : {};
|
|
|
125
115
|
* @returns {boolean} ?
|
|
126
116
|
* @private
|
|
127
117
|
*/
|
|
128
|
-
// eslint-disable-next-line
|
|
129
118
|
export function isObject(obj) {
|
|
130
119
|
var objCon = {};
|
|
131
120
|
return (!isNullOrUndefined(obj) && obj.constructor === objCon.constructor);
|
|
@@ -138,10 +127,8 @@ export function isObject(obj) {
|
|
|
138
127
|
* @returns {any} ?
|
|
139
128
|
* @private
|
|
140
129
|
*/
|
|
141
|
-
// eslint-disable-next-line
|
|
142
130
|
export 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 @@ export function merge(source, destination) {
|
|
|
182
169
|
export 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 @@ export 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 @@ export 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 @@ export 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,12 +223,12 @@ export 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
|
*/
|
|
248
230
|
export function isUndefined(value) {
|
|
249
|
-
return ('undefined' === typeof value);
|
|
231
|
+
return ('undefined' === typeof value || value === null);
|
|
250
232
|
}
|
|
251
233
|
/**
|
|
252
234
|
* To return the generated unique name
|
|
@@ -267,12 +249,13 @@ export function getUniqueID(definedName) {
|
|
|
267
249
|
* @private
|
|
268
250
|
*/
|
|
269
251
|
export 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 @@ export function debounce(eventFunction, delay) {
|
|
|
288
271
|
* @returns {string} ?
|
|
289
272
|
* @private
|
|
290
273
|
*/
|
|
291
|
-
// eslint-disable-next-line
|
|
292
274
|
export function queryParams(data) {
|
|
293
275
|
var array = [];
|
|
294
276
|
var keys = Object.keys(data);
|
|
@@ -346,8 +328,7 @@ export 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 @@ export 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 @@ export function getElement(element) {
|
|
|
443
423
|
* @returns {Object} ?
|
|
444
424
|
* @private
|
|
445
425
|
*/
|
|
446
|
-
// eslint-disable-next-line
|
|
447
426
|
export 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 @@ export function getInstance(element, component) {
|
|
|
466
444
|
* @private
|
|
467
445
|
*/
|
|
468
446
|
export 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 @@ export function addInstance(element, instance) {
|
|
|
481
458
|
* @returns {any} ?
|
|
482
459
|
* @private
|
|
483
460
|
*/
|
|
484
|
-
// eslint-disable-next-line
|
|
485
461
|
export 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);
|
package/src/validate-lic.js
CHANGED
|
@@ -14,7 +14,7 @@ var LicenseValidator = /** @class */ (function () {
|
|
|
14
14
|
function LicenseValidator(key) {
|
|
15
15
|
this.isValidated = false;
|
|
16
16
|
this.isLicensed = true;
|
|
17
|
-
this.version = '
|
|
17
|
+
this.version = '26';
|
|
18
18
|
this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i;
|
|
19
19
|
this.errors = {
|
|
20
20
|
noLicense: '<span>This application was built using a trial version of Syncfusion Essential Studio.' +
|
|
@@ -118,7 +118,7 @@ var LicenseValidator = /** @class */ (function () {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
|
|
121
|
-
accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=
|
|
121
|
+
accountURL = (validateURL && validateURL !== '') ? validateURL : 'https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjY=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information';
|
|
122
122
|
var errorDiv = createElement('div', {
|
|
123
123
|
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>'
|
|
124
124
|
});
|
|
@@ -183,7 +183,8 @@ var LicenseValidator = /** @class */ (function () {
|
|
|
183
183
|
var charKey = decodeStr[decodeStr.length - 1];
|
|
184
184
|
var decryptedKey = [];
|
|
185
185
|
for (var i = 0; i < decodeStr.length; i++) {
|
|
186
|
-
decryptedKey[
|
|
186
|
+
decryptedKey[parseInt(i.toString(), 10)] = decodeStr[parseInt(i.toString(), 10)].charCodeAt(0)
|
|
187
|
+
- charKey.charCodeAt(0);
|
|
187
188
|
}
|
|
188
189
|
for (var i = 0; i < decryptedKey.length; i++) {
|
|
189
190
|
buffr += String.fromCharCode(decryptedKey[parseInt(i.toString(), 10)]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@import 'definition/bootstrap5.3-dark.scss';
|
|
2
|
+
|
|
3
|
+
$font-size: 12px !default;
|
|
4
|
+
$font-weight: 400 !default;
|
|
5
|
+
$error-font-color: $danger !default;
|
|
6
|
+
$warning-font-color: $yellow !default;
|
|
7
|
+
$success-font-color: #198754 !default;
|
|
8
|
+
$information-font-color: #0dcaf0 !default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@import 'definition/bootstrap5.3.scss';
|
|
2
|
+
|
|
3
|
+
$font-size: 12px !default;
|
|
4
|
+
$font-weight: 400 !default;
|
|
5
|
+
$error-font-color: $danger !default;
|
|
6
|
+
$warning-font-color: $yellow !default;
|
|
7
|
+
$success-font-color: #198754 !default;
|
|
8
|
+
$information-font-color: #0dcaf0 !default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import 'definition/fluent2-dark.scss';
|
|
2
|
+
|
|
3
|
+
$font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif !default;
|
|
4
|
+
$font-size: 12px !default;
|
|
5
|
+
$font-weight: 400 !default;
|
|
6
|
+
$error-font-color: $danger !default;
|
|
7
|
+
$warning-font-color: $orange20 !default;
|
|
8
|
+
$success-font-color: $green20 !default;
|
|
9
|
+
$information-font-color: $white !default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import 'definition/fluent2.scss';
|
|
2
|
+
|
|
3
|
+
$font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif !default;
|
|
4
|
+
$font-size: 12px !default;
|
|
5
|
+
$font-weight: 400 !default;
|
|
6
|
+
$error-font-color: $danger !default;
|
|
7
|
+
$warning-font-color: $orange20 !default;
|
|
8
|
+
$success-font-color: $green20 !default;
|
|
9
|
+
$information-font-color: $white !default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@import 'definition/fluent2-highcontrast.scss';
|
|
2
|
+
|
|
3
|
+
$font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif !default;
|
|
4
|
+
$font-size: 12px !default;
|
|
5
|
+
$font-weight: 400 !default;
|
|
6
|
+
$error-font-color: $danger !default;
|
|
7
|
+
$warning-font-color: $orange20 !default;
|
|
8
|
+
$success-font-color: $green20 !default;
|
|
9
|
+
$information-font-color: $white !default;
|