@syncfusion/ej2-base 24.1.46 → 24.2.3

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.
@@ -2065,10 +2065,12 @@ class DateParser {
2065
2065
  }
2066
2066
  }
2067
2067
  else {
2068
+ const cultureOptions = ['en-US', 'en-MH', 'en-MP'];
2068
2069
  // eslint-disable-next-line
2069
2070
  matchString = ((prop === 'month') && (!parseOptions.isIslamic) && (parseOptions.culture === 'en' || parseOptions.culture === 'en-GB' || parseOptions.culture === 'en-US'))
2070
2071
  ? matchString[0].toUpperCase() + matchString.substring(1).toLowerCase() : matchString;
2071
- matchString = ((prop !== 'month') && (prop === 'designator') && parseOptions.culture === 'en-GB') ? matchString.toLowerCase() : matchString;
2072
+ matchString = ((prop !== 'month') && (prop === 'designator') && parseOptions.culture && parseOptions.culture.indexOf('en-') !== -1 && cultureOptions.indexOf(parseOptions.culture) === -1)
2073
+ ? matchString.toLowerCase() : matchString;
2072
2074
  // eslint-disable-next-line
2073
2075
  retOptions[prop] = parseOptions[prop][matchString];
2074
2076
  }
@@ -5434,7 +5436,12 @@ class Base {
5434
5436
  destroy() {
5435
5437
  // eslint-disable-next-line
5436
5438
  this.element.ej2_instances =
5437
- this.element.ej2_instances ? this.element.ej2_instances.filter((i) => { return i !== this; })
5439
+ this.element.ej2_instances ? this.element.ej2_instances.filter((i) => {
5440
+ if (proxyToRaw) {
5441
+ return proxyToRaw(i) !== proxyToRaw(this);
5442
+ }
5443
+ return i !== this;
5444
+ })
5438
5445
  : [];
5439
5446
  removeClass([this.element], ['e-' + this.getModuleName()]);
5440
5447
  if (this.element.ej2_instances.length === 0) {
@@ -5495,6 +5502,8 @@ function removeChildInstance(element) {
5495
5502
  }
5496
5503
  }
5497
5504
  }
5505
+ let proxyToRaw;
5506
+ let setProxyToRaw = (toRaw) => { proxyToRaw = toRaw; };
5498
5507
 
5499
5508
  /**
5500
5509
  * Returns the Class Object
@@ -9294,7 +9303,7 @@ Touch = __decorate$5([
9294
9303
  /**
9295
9304
  * Template Engine
9296
9305
  */
9297
- const LINES = new RegExp('\\n\\s+|(?<=>)\\s{1,}(?=<)', 'g');
9306
+ const LINES = new RegExp('\\n|\\r|\\s\\s+', 'g');
9298
9307
  const QUOTES = new RegExp(/'|"/g);
9299
9308
  const IF_STMT = new RegExp('if ?\\(');
9300
9309
  const ELSEIF_STMT = new RegExp('else if ?\\(');
@@ -9944,5 +9953,5 @@ class SanitizeHtmlHelper {
9944
9953
  * Base modules
9945
9954
  */
9946
9955
 
9947
- 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 };
9956
+ 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 };
9948
9957
  //# sourceMappingURL=ej2-base.es2015.js.map