@syncfusion/ej2-base 20.1.61 → 20.2.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6129,11 +6129,21 @@ var Animation = /** @__PURE__ @class */ (function (_super) {
6129
6129
  * @returns {void}
6130
6130
  */
6131
6131
  Animation.delayAnimation = function (model) {
6132
- if (model.delay) {
6133
- setTimeout(function () { Animation_1.applyAnimation(model); }, model.delay);
6132
+ if (animationMode === 'Disable') {
6133
+ if (model.begin) {
6134
+ model.begin.call(this, model);
6135
+ }
6136
+ if (model.end) {
6137
+ model.end.call(this, model);
6138
+ }
6134
6139
  }
6135
6140
  else {
6136
- Animation_1.applyAnimation(model);
6141
+ if (model.delay) {
6142
+ setTimeout(function () { Animation_1.applyAnimation(model); }, model.delay);
6143
+ }
6144
+ else {
6145
+ Animation_1.applyAnimation(model);
6146
+ }
6137
6147
  }
6138
6148
  };
6139
6149
  /**
@@ -6438,6 +6448,17 @@ function enableRipple(isRipple) {
6438
6448
  isRippleEnabled = isRipple;
6439
6449
  return isRippleEnabled;
6440
6450
  }
6451
+ /**
6452
+ * Defines the Modes of Global animation.
6453
+ * @private
6454
+ */
6455
+ var animationMode = '';
6456
+ /**
6457
+ * Method for set the Global animation modes for Syncfusion Blazor components.
6458
+ */
6459
+ function setGlobalAnimation(value) {
6460
+ animationMode = value;
6461
+ }
6441
6462
 
6442
6463
  /**
6443
6464
  * Module loading operations
@@ -6732,7 +6753,7 @@ var bypassKey = [115, 121, 110, 99, 102, 117, 115, 105,
6732
6753
  var LicenseValidator = /** @__PURE__ @class */ (function () {
6733
6754
  function LicenseValidator(key) {
6734
6755
  this.isValidated = false;
6735
- this.version = '20.1';
6756
+ this.version = '20.2';
6736
6757
  this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats/i;
6737
6758
  this.errors = {
6738
6759
  noLicense: 'This application was built using a trial version of Syncfusion Essential Studio.' +
@@ -6765,6 +6786,16 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
6765
6786
  getKey: get
6766
6787
  };
6767
6788
  })();
6789
+ /**
6790
+ * To manage npx licensing operation.
6791
+ */
6792
+ this.npxManager = (function () {
6793
+ var npxLicKey = "npxKeyReplace";
6794
+ function get() { return npxLicKey; }
6795
+ return {
6796
+ getKey: get
6797
+ };
6798
+ })();
6768
6799
  this.manager.setKey(key);
6769
6800
  }
6770
6801
  /**
@@ -6773,7 +6804,7 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
6773
6804
  LicenseValidator.prototype.validate = function () {
6774
6805
  if (!this.isValidated && (containerObject && !getValue(convertToChar(bypassKey), containerObject) && !getValue('Blazor', containerObject))) {
6775
6806
  var validateMsg = void 0;
6776
- if (this.manager && this.manager.getKey()) {
6807
+ if ((this.manager && this.manager.getKey()) || (this.npxManager && this.npxManager.getKey() != 'npxKeyReplace')) {
6777
6808
  var result = this.getInfoFromKey();
6778
6809
  if (result && result.length) {
6779
6810
  for (var _i = 0, result_1 = result; _i < result_1.length; _i++) {
@@ -6839,14 +6870,22 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
6839
6870
  */
6840
6871
  LicenseValidator.prototype.getInfoFromKey = function () {
6841
6872
  try {
6842
- var licKey = this.manager.getKey();
6843
- var licKeySplit = licKey.split(';');
6873
+ var licKey = '';
6844
6874
  var pkey = [5439488, 7929856, 5111808, 6488064, 4587520, 7667712, 5439488,
6845
6875
  6881280, 5177344, 7208960, 4194304, 4456448, 6619136, 7733248, 5242880, 7077888,
6846
6876
  6356992, 7602176, 4587520, 7274496, 7471104, 7143424];
6847
6877
  var decryptedStr = [];
6848
6878
  var resultArray = [];
6849
6879
  var invalidPlatform = false;
6880
+ var isNpxKey = false;
6881
+ if (this.manager.getKey()) {
6882
+ licKey = this.manager.getKey();
6883
+ }
6884
+ else {
6885
+ isNpxKey = true;
6886
+ licKey = this.npxManager.getKey().split('npxKeyReplace')[1];
6887
+ }
6888
+ var licKeySplit = licKey.split(';');
6850
6889
  for (var _i = 0, licKeySplit_1 = licKeySplit; _i < licKeySplit_1.length; _i++) {
6851
6890
  var lKey = licKeySplit_1[_i];
6852
6891
  var decodeStr = this.getDecryptedData(lKey);
@@ -6855,12 +6894,24 @@ var LicenseValidator = /** @__PURE__ @class */ (function () {
6855
6894
  }
6856
6895
  var k = 0;
6857
6896
  var buffr = '';
6858
- for (var i = 0; i < decodeStr.length; i++, k++) {
6859
- if (k === pkey.length) {
6860
- k = 0;
6897
+ if (!isNpxKey) {
6898
+ for (var i = 0; i < decodeStr.length; i++, k++) {
6899
+ if (k === pkey.length) {
6900
+ k = 0;
6901
+ }
6902
+ var c = decodeStr.charCodeAt(i);
6903
+ buffr += String.fromCharCode(c ^ (pkey[k] >> 16));
6904
+ }
6905
+ }
6906
+ else {
6907
+ var charKey = decodeStr[decodeStr.length - 1];
6908
+ var decryptedKey = [];
6909
+ for (var i = 0; i < decodeStr.length; i++) {
6910
+ decryptedKey[i] = decodeStr[i].charCodeAt(0) - charKey.charCodeAt(0);
6911
+ }
6912
+ for (var i = 0; i < decryptedKey.length; i++) {
6913
+ buffr += String.fromCharCode(decryptedKey[i]);
6861
6914
  }
6862
- var c = decodeStr.charCodeAt(i);
6863
- buffr += String.fromCharCode(c ^ (pkey[k] >> 16));
6864
6915
  }
6865
6916
  if (this.platform.test(buffr)) {
6866
6917
  decryptedStr = buffr.split(';');
@@ -6979,9 +7030,7 @@ var Component = /** @__PURE__ @class */ (function (_super) {
6979
7030
  _this.localObserver = new Observer(_this);
6980
7031
  // tslint:disable-next-line:no-function-constructor-with-string-args
6981
7032
  onIntlChange.on('notifyExternalChange', _this.detectFunction, _this, _this.randomId);
6982
- if (typeof window !== "undefined" && typeof document !== "undefined") {
6983
- validateLicense();
6984
- }
7033
+ validateLicense();
6985
7034
  if (!isUndefined(selector)) {
6986
7035
  _this.appendTo();
6987
7036
  }
@@ -9599,5 +9648,5 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
9599
9648
  * Base modules
9600
9649
  */
9601
9650
 
9602
- export { blazorCultureFormats, IntlBase, Ajax, Animation, rippleEffect, isRippleEnabled, enableRipple, Base, getComponent, removeChildInstance, 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, 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, registerLicense, validateLicense, getVersion };
9651
+ export { blazorCultureFormats, IntlBase, Ajax, Animation, rippleEffect, isRippleEnabled, enableRipple, animationMode, setGlobalAnimation, Base, getComponent, removeChildInstance, 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, 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, registerLicense, validateLicense, getVersion };
9603
9652
  //# sourceMappingURL=ej2-base.es5.js.map