@syncfusion/ej2-base 20.1.61 → 20.2.39

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +38 -7
  2. package/{README.md → ReadMe.md} +1 -1
  3. package/bin/syncfusion-license.js +2 -0
  4. package/dist/ej2-base.umd.min.js +1 -10
  5. package/dist/ej2-base.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-base.es2015.js +131 -29
  7. package/dist/es6/ej2-base.es2015.js.map +1 -1
  8. package/dist/es6/ej2-base.es5.js +131 -29
  9. package/dist/es6/ej2-base.es5.js.map +1 -1
  10. package/dist/global/ej2-base.min.js +1 -10
  11. package/dist/global/ej2-base.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/helpers/e2e/base.js +62 -52
  14. package/helpers/e2e/index.js +8 -6
  15. package/package.json +8 -113
  16. package/src/animation.d.ts +9 -0
  17. package/src/animation.js +24 -3
  18. package/src/component.js +1 -3
  19. package/src/draggable.d.ts +3 -0
  20. package/src/draggable.js +62 -13
  21. package/src/touch.js +4 -0
  22. package/src/validate-lic.js +39 -9
  23. package/styles/_fusionnew-dark-definition.scss +9 -0
  24. package/styles/_fusionnew-definition.scss +9 -0
  25. package/styles/_material3-dark-definition.scss +10 -0
  26. package/styles/_material3-definition.scss +9 -0
  27. package/styles/bootstrap-dark.css +31 -1
  28. package/styles/bootstrap.css +31 -1
  29. package/styles/bootstrap4.css +31 -1
  30. package/styles/bootstrap5-dark.css +31 -1
  31. package/styles/bootstrap5.css +31 -1
  32. package/styles/common/_core.scss +2 -1
  33. package/styles/definition/_fluent-dark.scss +5 -5
  34. package/styles/definition/_fusionnew-dark.scss +358 -0
  35. package/styles/definition/_fusionnew.scss +357 -0
  36. package/styles/definition/_material3-dark.scss +408 -0
  37. package/styles/definition/_material3.scss +357 -0
  38. package/styles/fabric-dark.css +31 -1
  39. package/styles/fabric.css +31 -1
  40. package/styles/fluent-dark.css +31 -1
  41. package/styles/fluent.css +31 -1
  42. package/styles/highcontrast-light.css +31 -1
  43. package/styles/highcontrast.css +31 -1
  44. package/styles/material-dark.css +31 -1
  45. package/styles/material.css +31 -1
  46. package/styles/tailwind-dark.css +31 -1
  47. package/styles/tailwind.css +31 -1
  48. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -60
  49. package/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -42
@@ -1,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 20.1.61
4
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  import * as _base from '@syncfusion/ej2-base';
11
2
 
12
3
  export declare namespace ej {
@@ -1,56 +1,66 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * Base E2E Helper Function
5
- */
6
- class TestHelper {
7
- selector(arg) {
8
- return (this.wrapperFn ? this.wrapperFn(arg) : arg);
9
- }
10
- setModel(property, value) {
11
- return Mapper.setModel(this.id, this.selector.bind(this), property, value);
12
- }
13
- getModel(property) {
14
- return Mapper.getModel(this.id, this.selector.bind(this), property);
15
- }
16
- invoke(fName, args = []) {
17
- return Mapper.invoke(this.id, this.selector.bind(this), fName, args);
18
- }
19
- eventHandler(eventName, callback) {
20
- return this.selector('#' + this.id).then((ele) => {
21
- var inst = ele[0].ej2_instances[0];
22
- return inst[eventName] = callback;
23
- });
24
- }
25
- }
26
- exports.TestHelper = TestHelper;
27
- class Mapper {
28
- static setModel(id, selector, property, value) {
29
- let result;
30
- if (cy) {
31
- result = selector('#' + id).then((ele) => {
32
- return ele[0].ej2_instances[0][property] = value;
33
- });
34
- }
35
- return result;
36
- }
37
- static getModel(id, selector, property) {
38
- let result;
39
- if (cy) {
40
- result = selector('#' + id).then((ele) => {
41
- return ele[0].ej2_instances[0][property];
42
- });
1
+ define(["require", "exports"], function (require, exports) {
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ /**
5
+ * Base E2E Helper Function
6
+ */
7
+ var TestHelper = /** @class */ (function () {
8
+ function TestHelper() {
43
9
  }
44
- return result;
45
- }
46
- static invoke(id, selector, fName, args = []) {
47
- let result;
48
- if (cy) {
49
- result = selector('#' + id).then((ele) => {
10
+ TestHelper.prototype.selector = function (arg) {
11
+ return (this.wrapperFn ? this.wrapperFn(arg) : arg);
12
+ };
13
+ TestHelper.prototype.setModel = function (property, value) {
14
+ return Mapper.setModel(this.id, this.selector.bind(this), property, value);
15
+ };
16
+ TestHelper.prototype.getModel = function (property) {
17
+ return Mapper.getModel(this.id, this.selector.bind(this), property);
18
+ };
19
+ TestHelper.prototype.invoke = function (fName, args) {
20
+ if (args === void 0) { args = []; }
21
+ return Mapper.invoke(this.id, this.selector.bind(this), fName, args);
22
+ };
23
+ TestHelper.prototype.eventHandler = function (eventName, callback) {
24
+ return this.selector('#' + this.id).then(function (ele) {
50
25
  var inst = ele[0].ej2_instances[0];
51
- return inst[fName].call(inst, args);
26
+ return inst[eventName] = callback;
52
27
  });
28
+ };
29
+ return TestHelper;
30
+ }());
31
+ exports.TestHelper = TestHelper;
32
+ var Mapper = /** @class */ (function () {
33
+ function Mapper() {
53
34
  }
54
- return result;
55
- }
56
- }
35
+ Mapper.setModel = function (id, selector, property, value) {
36
+ var result;
37
+ if (cy) {
38
+ result = selector('#' + id).then(function (ele) {
39
+ return ele[0].ej2_instances[0][property] = value;
40
+ });
41
+ }
42
+ return result;
43
+ };
44
+ Mapper.getModel = function (id, selector, property) {
45
+ var result;
46
+ if (cy) {
47
+ result = selector('#' + id).then(function (ele) {
48
+ return ele[0].ej2_instances[0][property];
49
+ });
50
+ }
51
+ return result;
52
+ };
53
+ Mapper.invoke = function (id, selector, fName, args) {
54
+ if (args === void 0) { args = []; }
55
+ var result;
56
+ if (cy) {
57
+ result = selector('#' + id).then(function (ele) {
58
+ var inst = ele[0].ej2_instances[0];
59
+ return inst[fName].call(inst, args);
60
+ });
61
+ }
62
+ return result;
63
+ };
64
+ return Mapper;
65
+ }());
66
+ });
@@ -1,6 +1,8 @@
1
- "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./base"));
1
+ define(["require", "exports", "./base"], function (require, exports, base_1) {
2
+ "use strict";
3
+ function __export(m) {
4
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5
+ }
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ __export(base_1);
8
+ });
package/package.json CHANGED
@@ -1,122 +1,17 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@20.1.60",
4
- "_inBundle": false,
5
- "_integrity": "sha512-zC2wM5B6njaoNto8nbgEuBFsye4ltVtE42S/8lZ2E7igzcbhbBofBXShDx/EEFHbV2d9aQFM398Ua5rajKjeVw==",
6
- "_location": "/@syncfusion/ej2-base",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-base@*",
12
- "name": "@syncfusion/ej2-base",
13
- "escapedName": "@syncfusion%2fej2-base",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-base",
23
- "/@syncfusion/ej2-angular-buttons",
24
- "/@syncfusion/ej2-angular-charts",
25
- "/@syncfusion/ej2-angular-diagrams",
26
- "/@syncfusion/ej2-angular-documenteditor",
27
- "/@syncfusion/ej2-angular-dropdowns",
28
- "/@syncfusion/ej2-angular-grids",
29
- "/@syncfusion/ej2-angular-inputs",
30
- "/@syncfusion/ej2-angular-layouts",
31
- "/@syncfusion/ej2-angular-navigations",
32
- "/@syncfusion/ej2-angular-notifications",
33
- "/@syncfusion/ej2-angular-pdfviewer",
34
- "/@syncfusion/ej2-angular-pivotview",
35
- "/@syncfusion/ej2-angular-richtexteditor",
36
- "/@syncfusion/ej2-angular-schedule",
37
- "/@syncfusion/ej2-angular-spreadsheet",
38
- "/@syncfusion/ej2-barcode-generator",
39
- "/@syncfusion/ej2-buttons",
40
- "/@syncfusion/ej2-calendars",
41
- "/@syncfusion/ej2-charts",
42
- "/@syncfusion/ej2-circulargauge",
43
- "/@syncfusion/ej2-data",
44
- "/@syncfusion/ej2-diagrams",
45
- "/@syncfusion/ej2-documenteditor",
46
- "/@syncfusion/ej2-drawings",
47
- "/@syncfusion/ej2-dropdowns",
48
- "/@syncfusion/ej2-excel-export",
49
- "/@syncfusion/ej2-filemanager",
50
- "/@syncfusion/ej2-gantt",
51
- "/@syncfusion/ej2-grids",
52
- "/@syncfusion/ej2-heatmap",
53
- "/@syncfusion/ej2-inplace-editor",
54
- "/@syncfusion/ej2-inputs",
55
- "/@syncfusion/ej2-kanban",
56
- "/@syncfusion/ej2-layouts",
57
- "/@syncfusion/ej2-lineargauge",
58
- "/@syncfusion/ej2-lists",
59
- "/@syncfusion/ej2-maps",
60
- "/@syncfusion/ej2-navigations",
61
- "/@syncfusion/ej2-notifications",
62
- "/@syncfusion/ej2-pdfviewer",
63
- "/@syncfusion/ej2-pivotview",
64
- "/@syncfusion/ej2-popups",
65
- "/@syncfusion/ej2-progressbar",
66
- "/@syncfusion/ej2-querybuilder",
67
- "/@syncfusion/ej2-react-base",
68
- "/@syncfusion/ej2-react-buttons",
69
- "/@syncfusion/ej2-react-charts",
70
- "/@syncfusion/ej2-react-diagrams",
71
- "/@syncfusion/ej2-react-documenteditor",
72
- "/@syncfusion/ej2-react-dropdowns",
73
- "/@syncfusion/ej2-react-grids",
74
- "/@syncfusion/ej2-react-inputs",
75
- "/@syncfusion/ej2-react-layouts",
76
- "/@syncfusion/ej2-react-navigations",
77
- "/@syncfusion/ej2-react-notifications",
78
- "/@syncfusion/ej2-react-pdfviewer",
79
- "/@syncfusion/ej2-react-pivotview",
80
- "/@syncfusion/ej2-react-richtexteditor",
81
- "/@syncfusion/ej2-react-schedule",
82
- "/@syncfusion/ej2-react-spreadsheet",
83
- "/@syncfusion/ej2-richtexteditor",
84
- "/@syncfusion/ej2-schedule",
85
- "/@syncfusion/ej2-splitbuttons",
86
- "/@syncfusion/ej2-spreadsheet",
87
- "/@syncfusion/ej2-svg-base",
88
- "/@syncfusion/ej2-treegrid",
89
- "/@syncfusion/ej2-treemap",
90
- "/@syncfusion/ej2-vue-base",
91
- "/@syncfusion/ej2-vue-buttons",
92
- "/@syncfusion/ej2-vue-charts",
93
- "/@syncfusion/ej2-vue-diagrams",
94
- "/@syncfusion/ej2-vue-documenteditor",
95
- "/@syncfusion/ej2-vue-dropdowns",
96
- "/@syncfusion/ej2-vue-grids",
97
- "/@syncfusion/ej2-vue-inputs",
98
- "/@syncfusion/ej2-vue-layouts",
99
- "/@syncfusion/ej2-vue-navigations",
100
- "/@syncfusion/ej2-vue-notifications",
101
- "/@syncfusion/ej2-vue-pdfviewer",
102
- "/@syncfusion/ej2-vue-pivotview",
103
- "/@syncfusion/ej2-vue-richtexteditor",
104
- "/@syncfusion/ej2-vue-schedule",
105
- "/@syncfusion/ej2-vue-spreadsheet"
106
- ],
107
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-20.1.60.tgz",
108
- "_shasum": "888eacdd993cbaae6cc551288a0af355374e38c1",
109
- "_spec": "@syncfusion/ej2-base@*",
110
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
2
+
111
3
  "author": {
112
4
  "name": "Syncfusion Inc."
113
5
  },
6
+ "bin": {
7
+ "syncfusion-license": "bin/syncfusion-license.js"
8
+ },
114
9
  "bugs": {
115
10
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
116
11
  },
117
12
  "bundleDependencies": false,
118
13
  "dependencies": {
119
- "@syncfusion/ej2-icons": "~20.1.55"
14
+ "@syncfusion/ej2-icons": "~20.2.38"
120
15
  },
121
16
  "deprecated": false,
122
17
  "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
@@ -156,7 +51,7 @@
156
51
  "type": "git",
157
52
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
158
53
  },
54
+ "sideEffects": true,
159
55
  "typings": "index.d.ts",
160
- "version": "20.1.61",
161
- "sideEffects": true
162
- }
56
+ "version": "20.2.39"
57
+ }
@@ -194,3 +194,12 @@ export declare let isRippleEnabled: boolean;
194
194
  * @returns {boolean} ?
195
195
  */
196
196
  export declare function enableRipple(isRipple: boolean): boolean;
197
+ /**
198
+ * Defines the Modes of Global animation.
199
+ * @private
200
+ */
201
+ export declare let animationMode: string;
202
+ /**
203
+ * Method for set the Global animation modes for Syncfusion Blazor components.
204
+ */
205
+ export declare function setGlobalAnimation(value: string): void;
package/src/animation.js CHANGED
@@ -103,11 +103,21 @@ var Animation = /** @class */ (function (_super) {
103
103
  * @returns {void}
104
104
  */
105
105
  Animation.delayAnimation = function (model) {
106
- if (model.delay) {
107
- setTimeout(function () { Animation_1.applyAnimation(model); }, model.delay);
106
+ if (animationMode === 'Disable') {
107
+ if (model.begin) {
108
+ model.begin.call(this, model);
109
+ }
110
+ if (model.end) {
111
+ model.end.call(this, model);
112
+ }
108
113
  }
109
114
  else {
110
- Animation_1.applyAnimation(model);
115
+ if (model.delay) {
116
+ setTimeout(function () { Animation_1.applyAnimation(model); }, model.delay);
117
+ }
118
+ else {
119
+ Animation_1.applyAnimation(model);
120
+ }
111
121
  }
112
122
  };
113
123
  /**
@@ -413,3 +423,14 @@ export function enableRipple(isRipple) {
413
423
  isRippleEnabled = isRipple;
414
424
  return isRippleEnabled;
415
425
  }
426
+ /**
427
+ * Defines the Modes of Global animation.
428
+ * @private
429
+ */
430
+ export var animationMode = '';
431
+ /**
432
+ * Method for set the Global animation modes for Syncfusion Blazor components.
433
+ */
434
+ export function setGlobalAnimation(value) {
435
+ animationMode = value;
436
+ }
package/src/component.js CHANGED
@@ -71,9 +71,7 @@ var Component = /** @class */ (function (_super) {
71
71
  _this.localObserver = new Observer(_this);
72
72
  // tslint:disable-next-line:no-function-constructor-with-string-args
73
73
  onIntlChange.on('notifyExternalChange', _this.detectFunction, _this, _this.randomId);
74
- if (typeof window !== "undefined" && typeof document !== "undefined") {
75
- validateLicense();
76
- }
74
+ validateLicense();
77
75
  if (!isUndefined(selector)) {
78
76
  _this.appendTo();
79
77
  }
@@ -331,6 +331,9 @@ export declare class Draggable extends Base<HTMLElement> implements INotifyPrope
331
331
  private getProcessedPositionValue;
332
332
  private calculateParentPosition;
333
333
  private intDrag;
334
+ private getScrollParent;
335
+ private getScrollPosition;
336
+ private getPathElements;
334
337
  private triggerOutFunction;
335
338
  private getDragPosition;
336
339
  private getDocumentWidthHeight;
package/src/draggable.js CHANGED
@@ -510,23 +510,30 @@ var Draggable = /** @class */ (function (_super) {
510
510
  draEleTop -= this.parentScrollY;
511
511
  draEleLeft -= this.parentScrollX;
512
512
  }
513
- if (this.helperElement.classList.contains('e-treeview')) {
514
- var body = document.body;
515
- var html = document.documentElement;
516
- var tempHeight = Math.max(body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
517
- var tempWidth = Math.max(body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
518
- if (draEleTop > tempHeight) {
519
- draEleTop = tempHeight;
520
- }
521
- if (draEleLeft > tempWidth) {
522
- draEleLeft = tempWidth;
523
- }
524
- }
525
513
  var dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
526
514
  setStyleAttribute(helperElement, this.getDragPosition(dragValue));
527
- if (!this.elementInViewport(helperElement) && this.enableAutoScroll) {
515
+ if (!this.elementInViewport(helperElement) && this.enableAutoScroll && !this.helperElement.classList.contains('e-treeview')) {
528
516
  this.helperElement.scrollIntoView();
529
517
  }
518
+ var elements = document.querySelectorAll(':hover');
519
+ if (this.enableAutoScroll && this.helperElement.classList.contains('e-treeview')) {
520
+ if (elements.length === 0) {
521
+ elements = this.getPathElements(evt);
522
+ }
523
+ /* tslint:disable no-any */
524
+ var scrollParent = this.getScrollParent(elements, false);
525
+ if (this.elementInViewport(this.helperElement)) {
526
+ this.getScrollPosition(scrollParent, draEleTop);
527
+ }
528
+ else if (!this.elementInViewport(this.helperElement)) {
529
+ elements = [].slice.call(document.querySelectorAll(':hover'));
530
+ if (elements.length === 0) {
531
+ elements = this.getPathElements(evt);
532
+ }
533
+ scrollParent = this.getScrollParent(elements, true);
534
+ this.getScrollPosition(scrollParent, draEleTop);
535
+ }
536
+ }
530
537
  this.dragProcessStarted = true;
531
538
  this.prevLeft = left;
532
539
  this.prevTop = top;
@@ -535,6 +542,48 @@ var Draggable = /** @class */ (function (_super) {
535
542
  this.pageX = pagex;
536
543
  this.pageY = pagey;
537
544
  };
545
+ /* tslint:disable no-any */
546
+ Draggable.prototype.getScrollParent = function (node, reverse) {
547
+ /* tslint:disable no-any */
548
+ var nodeEl = reverse ? node.reverse() : node;
549
+ var hasScroll;
550
+ for (var i = nodeEl.length - 1; i >= 0; i--) {
551
+ hasScroll = window.getComputedStyle(nodeEl[i])['overflow-y'];
552
+ if ((hasScroll === 'auto' || hasScroll === 'scroll')
553
+ && nodeEl[i].scrollHeight > nodeEl[i].clientHeight) {
554
+ return nodeEl[i];
555
+ }
556
+ }
557
+ hasScroll = window.getComputedStyle(document.scrollingElement)['overflow-y'];
558
+ if (hasScroll === 'visible') {
559
+ document.scrollingElement.style.overflow = 'auto';
560
+ return document.scrollingElement;
561
+ }
562
+ };
563
+ Draggable.prototype.getScrollPosition = function (nodeEle, draEleTop) {
564
+ if (nodeEle && nodeEle === document.scrollingElement) {
565
+ if ((nodeEle.clientHeight - nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight) < draEleTop
566
+ && nodeEle.getBoundingClientRect().height > draEleTop) {
567
+ nodeEle.scrollTop += this.helperElement.clientHeight;
568
+ }
569
+ else if (nodeEle.scrollHeight - nodeEle.clientHeight > draEleTop) {
570
+ nodeEle.scrollTop -= this.helperElement.clientHeight;
571
+ }
572
+ }
573
+ else if (nodeEle && nodeEle !== document.scrollingElement) {
574
+ if ((nodeEle.clientHeight + nodeEle.getBoundingClientRect().top - this.helperElement.clientHeight) < draEleTop) {
575
+ nodeEle.scrollTop += this.helperElement.clientHeight;
576
+ }
577
+ else if (nodeEle.getBoundingClientRect().top > (draEleTop - this.helperElement.clientHeight)) {
578
+ nodeEle.scrollTop -= this.helperElement.clientHeight;
579
+ }
580
+ }
581
+ };
582
+ Draggable.prototype.getPathElements = function (evt) {
583
+ var elementTop = evt.clientX > 0 ? evt.clientX : 0;
584
+ var elementLeft = evt.clientY > 0 ? evt.clientY : 0;
585
+ return document.elementsFromPoint(elementTop, elementLeft);
586
+ };
538
587
  Draggable.prototype.triggerOutFunction = function (evt, eleObj) {
539
588
  this.hoverObject.instance.intOut(evt, eleObj.target);
540
589
  this.hoverObject.instance.dragData[this.scope] = null;
package/src/touch.js CHANGED
@@ -157,6 +157,10 @@ var Touch = /** @class */ (function (_super) {
157
157
  diffX = Math.floor(diffX < 0 ? -1 * diffX : diffX);
158
158
  diffY = Math.floor(diffY < 0 ? -1 * diffY : diffX);
159
159
  _this.isTouchMoved = diffX > 1 || diffY > 1;
160
+ var isFirefox = (/Firefox/).test(Browser.userAgent);
161
+ if (isFirefox && point.clientX === 0 && point.clientY === 0 && evt.type === 'mouseup') {
162
+ _this.isTouchMoved = false;
163
+ }
160
164
  _this.endPoint = point;
161
165
  _this.calcPoints(evt);
162
166
  var swipeArgs = {
@@ -10,7 +10,7 @@ var bypassKey = [115, 121, 110, 99, 102, 117, 115, 105,
10
10
  var LicenseValidator = /** @class */ (function () {
11
11
  function LicenseValidator(key) {
12
12
  this.isValidated = false;
13
- this.version = '20.1';
13
+ this.version = '20.2';
14
14
  this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats/i;
15
15
  this.errors = {
16
16
  noLicense: 'This application was built using a trial version of Syncfusion Essential Studio.' +
@@ -43,6 +43,16 @@ var LicenseValidator = /** @class */ (function () {
43
43
  getKey: get
44
44
  };
45
45
  })();
46
+ /**
47
+ * To manage npx licensing operation.
48
+ */
49
+ this.npxManager = (function () {
50
+ var npxLicKey = "npxKeyReplace";
51
+ function get() { return npxLicKey; }
52
+ return {
53
+ getKey: get
54
+ };
55
+ })();
46
56
  this.manager.setKey(key);
47
57
  }
48
58
  /**
@@ -51,7 +61,7 @@ var LicenseValidator = /** @class */ (function () {
51
61
  LicenseValidator.prototype.validate = function () {
52
62
  if (!this.isValidated && (containerObject && !getValue(convertToChar(bypassKey), containerObject) && !getValue('Blazor', containerObject))) {
53
63
  var validateMsg = void 0;
54
- if (this.manager && this.manager.getKey()) {
64
+ if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey() != 'npxKeyReplace')) {
55
65
  var result = this.getInfoFromKey();
56
66
  if (result && result.length) {
57
67
  for (var _i = 0, result_1 = result; _i < result_1.length; _i++) {
@@ -117,14 +127,22 @@ var LicenseValidator = /** @class */ (function () {
117
127
  */
118
128
  LicenseValidator.prototype.getInfoFromKey = function () {
119
129
  try {
120
- var licKey = this.manager.getKey();
121
- var licKeySplit = licKey.split(';');
130
+ var licKey = '';
122
131
  var pkey = [5439488, 7929856, 5111808, 6488064, 4587520, 7667712, 5439488,
123
132
  6881280, 5177344, 7208960, 4194304, 4456448, 6619136, 7733248, 5242880, 7077888,
124
133
  6356992, 7602176, 4587520, 7274496, 7471104, 7143424];
125
134
  var decryptedStr = [];
126
135
  var resultArray = [];
127
136
  var invalidPlatform = false;
137
+ var isNpxKey = false;
138
+ if (this.manager.getKey()) {
139
+ licKey = this.manager.getKey();
140
+ }
141
+ else {
142
+ isNpxKey = true;
143
+ licKey = this.npxManager.getKey().split('npxKeyReplace')[1];
144
+ }
145
+ var licKeySplit = licKey.split(';');
128
146
  for (var _i = 0, licKeySplit_1 = licKeySplit; _i < licKeySplit_1.length; _i++) {
129
147
  var lKey = licKeySplit_1[_i];
130
148
  var decodeStr = this.getDecryptedData(lKey);
@@ -133,12 +151,24 @@ var LicenseValidator = /** @class */ (function () {
133
151
  }
134
152
  var k = 0;
135
153
  var buffr = '';
136
- for (var i = 0; i < decodeStr.length; i++, k++) {
137
- if (k === pkey.length) {
138
- k = 0;
154
+ if (!isNpxKey) {
155
+ for (var i = 0; i < decodeStr.length; i++, k++) {
156
+ if (k === pkey.length) {
157
+ k = 0;
158
+ }
159
+ var c = decodeStr.charCodeAt(i);
160
+ buffr += String.fromCharCode(c ^ (pkey[k] >> 16));
161
+ }
162
+ }
163
+ else {
164
+ var charKey = decodeStr[decodeStr.length - 1];
165
+ var decryptedKey = [];
166
+ for (var i = 0; i < decodeStr.length; i++) {
167
+ decryptedKey[i] = decodeStr[i].charCodeAt(0) - charKey.charCodeAt(0);
168
+ }
169
+ for (var i = 0; i < decryptedKey.length; i++) {
170
+ buffr += String.fromCharCode(decryptedKey[i]);
139
171
  }
140
- var c = decodeStr.charCodeAt(i);
141
- buffr += String.fromCharCode(c ^ (pkey[k] >> 16));
142
172
  }
143
173
  if (this.platform.test(buffr)) {
144
174
  decryptedStr = buffr.split(';');
@@ -0,0 +1,9 @@
1
+ @import 'common/mixin.scss';
2
+ @import 'definition/fusionnew-dark.scss';
3
+
4
+ $font-size: 12px !default;
5
+ $font-weight: 400 !default;
6
+ $error-font-color: $danger !default;
7
+ $warning-font-color: $yellow !default;
8
+ $success-font-color: #198754 !default;
9
+ $information-font-color: #0dcaf0 !default;
@@ -0,0 +1,9 @@
1
+ @import 'common/mixin.scss';
2
+ @import 'definition/fusionnew.scss';
3
+
4
+ $font-size: 12px !default;
5
+ $font-weight: 400 !default;
6
+ $error-font-color: $danger !default;
7
+ $warning-font-color: $yellow !default;
8
+ $success-font-color: #198754 !default;
9
+ $information-font-color: #0dcaf0 !default;
@@ -0,0 +1,10 @@
1
+ @import 'common/mixin.scss';
2
+ @import 'definition/fluent-dark.scss';
3
+
4
+ $font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif !default;
5
+ $font-size: 12px !default;
6
+ $font-weight: 400 !default;
7
+ $error-font-color: $danger !default;
8
+ $warning-font-color: $orange20 !default;
9
+ $success-font-color: $green20 !default;
10
+ $information-font-color: $white !default;
@@ -0,0 +1,9 @@
1
+ @import 'common/mixin.scss';
2
+ @import 'definition/material3.scss';
3
+
4
+ $font-size: 12px !default;
5
+ $font-weight: 400 !default;
6
+ $error-font-color: $danger !default;
7
+ $warning-font-color: $yellow !default;
8
+ $success-font-color: #198754 !default;
9
+ $information-font-color: #0dcaf0 !default;