@syncfusion/ej2-base 22.2.12 → 23.1.38

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 (76) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bin/syncfusion-license.js +1 -1
  3. package/dist/ej2-base.min.js +3 -3
  4. package/dist/ej2-base.umd.min.js +3 -3
  5. package/dist/ej2-base.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-base.es2015.js +36 -15
  7. package/dist/es6/ej2-base.es2015.js.map +1 -1
  8. package/dist/es6/ej2-base.es5.js +27 -9
  9. package/dist/es6/ej2-base.es5.js.map +1 -1
  10. package/dist/global/ej2-base.min.js +3 -3
  11. package/dist/global/ej2-base.min.js.map +1 -1
  12. package/dist/global/index.d.ts +2 -2
  13. package/package.json +23 -10
  14. package/src/animation.d.ts +21 -4
  15. package/src/animation.js +22 -4
  16. package/src/sanitize-helper.js +1 -1
  17. package/src/validate-lic.js +3 -3
  18. package/styles/_bootstrap-dark-definition.scss +0 -1
  19. package/styles/_bootstrap-definition.scss +0 -1
  20. package/styles/_bootstrap4-definition.scss +0 -1
  21. package/styles/_bootstrap5-dark-definition.scss +0 -1
  22. package/styles/_bootstrap5-definition.scss +0 -1
  23. package/styles/_fabric-dark-definition.scss +0 -1
  24. package/styles/_fabric-definition.scss +0 -1
  25. package/styles/_fluent-dark-definition.scss +0 -1
  26. package/styles/_fluent-definition.scss +0 -1
  27. package/styles/_fusionnew-dark-definition.scss +0 -1
  28. package/styles/_fusionnew-definition.scss +0 -1
  29. package/styles/_highcontrast-definition.scss +0 -1
  30. package/styles/_highcontrast-light-definition.scss +0 -1
  31. package/styles/_material-dark-definition.scss +0 -1
  32. package/styles/_material-definition.scss +0 -1
  33. package/styles/_material3-dark-definition.scss +0 -1
  34. package/styles/_material3-definition.scss +0 -1
  35. package/styles/_tailwind-dark-definition.scss +0 -1
  36. package/styles/_tailwind-definition.scss +0 -1
  37. package/styles/bootstrap-dark.css +28 -1
  38. package/styles/bootstrap.css +28 -1
  39. package/styles/bootstrap4.css +28 -1
  40. package/styles/bootstrap5-dark.css +28 -1
  41. package/styles/bootstrap5.css +28 -1
  42. package/styles/definition/_bootstrap-dark.scss +44 -0
  43. package/styles/definition/_bootstrap.scss +45 -0
  44. package/styles/definition/_bootstrap4.scss +14 -0
  45. package/styles/definition/_bootstrap5-dark.scss +9 -0
  46. package/styles/definition/_bootstrap5.scss +9 -0
  47. package/styles/definition/_fabric-dark.scss +45 -0
  48. package/styles/definition/_fabric.scss +45 -0
  49. package/styles/definition/_fluent-dark.scss +9 -0
  50. package/styles/definition/_fluent.scss +9 -0
  51. package/styles/definition/_fusionnew-dark.scss +2 -0
  52. package/styles/definition/_fusionnew.scss +2 -0
  53. package/styles/definition/_highcontrast-light.scss +45 -0
  54. package/styles/definition/_highcontrast.scss +45 -0
  55. package/styles/definition/_material-dark.scss +44 -0
  56. package/styles/definition/_material.scss +45 -0
  57. package/styles/definition/_material3-dark.scss +9 -0
  58. package/styles/definition/_material3.scss +10 -0
  59. package/styles/definition/_tailwind-dark.scss +10 -0
  60. package/styles/definition/_tailwind.scss +10 -0
  61. package/styles/fabric-dark.css +28 -1
  62. package/styles/fabric.css +28 -1
  63. package/styles/fluent-dark.css +28 -1
  64. package/styles/fluent.css +28 -1
  65. package/styles/highcontrast-light.css +28 -1
  66. package/styles/highcontrast.css +28 -1
  67. package/styles/material-dark.css +28 -1
  68. package/styles/material.css +28 -1
  69. package/styles/material3-dark.css +28 -1
  70. package/styles/material3.css +28 -1
  71. package/styles/offline-theme/material-dark.css +28 -1
  72. package/styles/offline-theme/material.css +28 -1
  73. package/styles/offline-theme/tailwind-dark.css +28 -1
  74. package/styles/offline-theme/tailwind.css +28 -1
  75. package/styles/tailwind-dark.css +28 -1
  76. package/styles/tailwind.css +28 -1
@@ -6142,7 +6142,7 @@ let Animation = Animation_1 = class Animation extends Base {
6142
6142
  * @returns {void}
6143
6143
  */
6144
6144
  static delayAnimation(model) {
6145
- if (animationMode === 'Disable') {
6145
+ if (animationMode === 'Disable' || animationMode === GlobalAnimationMode.Disable) {
6146
6146
  if (model.begin) {
6147
6147
  model.begin.call(this, model);
6148
6148
  }
@@ -6465,16 +6465,34 @@ function enableRipple(isRipple) {
6465
6465
  *
6466
6466
  * @private
6467
6467
  */
6468
- let animationMode = '';
6468
+ let animationMode;
6469
6469
  /**
6470
- * Method for set the Global animation modes for Syncfusion Blazor components.
6470
+ * This method is used to enable or disable the animation for all components.
6471
6471
  *
6472
- * @param {string} value - Specifies the animation mode.
6472
+ * @param {string|GlobalAnimationMode} value - Specifies the value to enable or disable the animation for all components. When set to 'enable', it enables the animation for all components, regardless of the individual component's animation settings. When set to 'disable', it disables the animation for all components, regardless of the individual component's animation settings.
6473
6473
  * @returns {void}
6474
6474
  */
6475
6475
  function setGlobalAnimation(value) {
6476
6476
  animationMode = value;
6477
6477
  }
6478
+ /**
6479
+ * Defines the global animation modes for all components.
6480
+ */
6481
+ var GlobalAnimationMode;
6482
+ (function (GlobalAnimationMode) {
6483
+ /**
6484
+ * Defines the global animation mode as Default. Animation is enabled or disabled based on the component's animation settings.
6485
+ */
6486
+ GlobalAnimationMode["Default"] = "Default";
6487
+ /**
6488
+ * Defines the global animation mode as Enable. Enables the animation for all components, regardless of the individual component's animation settings.
6489
+ */
6490
+ GlobalAnimationMode["Enable"] = "Enable";
6491
+ /**
6492
+ * Defines the global animation mode as Disable. Disables the animation for all components, regardless of the individual component's animation settings.
6493
+ */
6494
+ GlobalAnimationMode["Disable"] = "Disable";
6495
+ })(GlobalAnimationMode || (GlobalAnimationMode = {}));
6478
6496
 
6479
6497
  /**
6480
6498
  * Module loading operations
@@ -6766,7 +6784,7 @@ class LicenseValidator {
6766
6784
  constructor(key) {
6767
6785
  this.isValidated = false;
6768
6786
  this.isLicensed = true;
6769
- this.version = '22';
6787
+ this.version = '23';
6770
6788
  this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i;
6771
6789
  this.errors = {
6772
6790
  noLicense: '<span>This application was built using a trial version of Syncfusion Essential Studio.' +
@@ -6867,7 +6885,7 @@ class LicenseValidator {
6867
6885
  }
6868
6886
  }
6869
6887
  if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
6870
- accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjI=&utm_source=license&utm_medium=listing&utm_campaign=license-information";
6888
+ accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjM=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information";
6871
6889
  const errorDiv = createElement('div', {
6872
6890
  innerHTML: `<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style="top: 6px;
6873
6891
  position: absolute;
@@ -7075,23 +7093,26 @@ border-top-right-radius: 20px;
7075
7093
  line-height: 180%;
7076
7094
  ">
7077
7095
  <li><span>Access to a 30-day free trial of any of our products.</span></li>
7078
- <li><span>Access to 24x5 support by developers via the <a href="https://support.syncfusion.com/create?utm_source=license&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7096
+ <li><span>Access to 24x5 support by developers via the <a href="https://support.syncfusion.com/create?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7079
7097
  color: #0D6EFD;
7080
- font-weight: 500;">support tickets</a>, <a href="https://www.syncfusion.com/forums?utm_source=license&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7098
+ font-weight: 500;">support tickets</a>, <a href="https://www.syncfusion.com/forums?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7081
7099
  color: #0D6EFD;
7082
- font-weight: 500;">forum</a>, <a href="https://www.syncfusion.com/feedback?utm_source=license&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7100
+ font-weight: 500;">forum</a>, <a href="https://www.syncfusion.com/feedback?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information
7101
+ " style="text-decoration: none;
7083
7102
  color: #0D6EFD;
7084
7103
  font-weight: 500;">feature &amp; feedback page</a> and chat.</span></li>
7085
- <li><span>200+ <a href="https://www.syncfusion.com/succinctly-free-ebooks?utm_source=license&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7104
+ <li><span>200+ <a href="https://www.syncfusion.com/succinctly-free-ebooks?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7086
7105
  color: #0D6EFD;
7087
7106
  font-weight: 500;">ebooks </a>on the latest technologies, industry trends, and research topics.</span>
7088
7107
  </li>
7089
- <li><span>Largest collection of over 7,000 flat and wireframe icons for free with Syncfusion <a href="https://www.syncfusion.com/downloads/metrostudio?utm_source=license&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7108
+ <li><span>Largest collection of over 7,000 flat and wireframe icons for free with Syncfusion <a href="https://www.syncfusion.com/downloads/metrostudio?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information
7109
+ " style="text-decoration: none;
7090
7110
  color: #0D6EFD;
7091
7111
  font-weight: 500;">Metro Studio.</a></span></li>
7092
- <li><span>Free and unlimited access to Syncfusion technical <a href="https://www.syncfusion.com/blogs/?utm_source=license&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7112
+ <li><span>Free and unlimited access to Syncfusion technical <a href="https://www.syncfusion.com/blogs/?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information
7113
+ " style="text-decoration: none;
7093
7114
  color: #0D6EFD;
7094
- font-weight: 500;">blogs</a> and <a href="https://www.syncfusion.com/resources/techportal/whitepapers?utm_source=license&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7115
+ font-weight: 500;">blogs</a> and <a href="https://www.syncfusion.com/resources/techportal/whitepapers?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;
7095
7116
  color: #0D6EFD;
7096
7117
  font-weight: 500;">whitepapers.</a></span></li>
7097
7118
  </ul>
@@ -9845,7 +9866,7 @@ class SanitizeHtmlHelper {
9845
9866
  this.removeXssAttrs();
9846
9867
  const tempEleValue = this.wrapElement.innerHTML;
9847
9868
  this.removeElement();
9848
- return tempEleValue.replace('&amp;', '&');
9869
+ return tempEleValue.replace(/&amp;/g, '&');
9849
9870
  }
9850
9871
  static removeElement() {
9851
9872
  // Removes an element's attibute to avoid html tag validation
@@ -9900,5 +9921,5 @@ class SanitizeHtmlHelper {
9900
9921
  * Base modules
9901
9922
  */
9902
9923
 
9903
- export { blazorCultureFormats, IntlBase, Ajax, Fetch, 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, 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 };
9924
+ export { blazorCultureFormats, IntlBase, Ajax, Fetch, Animation, rippleEffect, isRippleEnabled, enableRipple, animationMode, setGlobalAnimation, GlobalAnimationMode, 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, 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 };
9904
9925
  //# sourceMappingURL=ej2-base.es2015.js.map