@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.
@@ -2095,10 +2095,12 @@ var DateParser = /** @__PURE__ @class */ (function () {
2095
2095
  }
2096
2096
  }
2097
2097
  else {
2098
+ var cultureOptions = ['en-US', 'en-MH', 'en-MP'];
2098
2099
  // eslint-disable-next-line
2099
2100
  matchString = ((prop === 'month') && (!parseOptions.isIslamic) && (parseOptions.culture === 'en' || parseOptions.culture === 'en-GB' || parseOptions.culture === 'en-US'))
2100
2101
  ? matchString[0].toUpperCase() + matchString.substring(1).toLowerCase() : matchString;
2101
- matchString = ((prop !== 'month') && (prop === 'designator') && parseOptions.culture === 'en-GB') ? matchString.toLowerCase() : matchString;
2102
+ matchString = ((prop !== 'month') && (prop === 'designator') && parseOptions.culture && parseOptions.culture.indexOf('en-') !== -1 && cultureOptions.indexOf(parseOptions.culture) === -1)
2103
+ ? matchString.toLowerCase() : matchString;
2102
2104
  // eslint-disable-next-line
2103
2105
  retOptions[prop] = parseOptions[prop][matchString];
2104
2106
  }
@@ -5575,7 +5577,12 @@ var Base = /** @__PURE__ @class */ (function () {
5575
5577
  var _this = this;
5576
5578
  // eslint-disable-next-line
5577
5579
  this.element.ej2_instances =
5578
- this.element.ej2_instances ? this.element.ej2_instances.filter(function (i) { return i !== _this; })
5580
+ this.element.ej2_instances ? this.element.ej2_instances.filter(function (i) {
5581
+ if (proxyToRaw) {
5582
+ return proxyToRaw(i) !== proxyToRaw(_this);
5583
+ }
5584
+ return i !== _this;
5585
+ })
5579
5586
  : [];
5580
5587
  removeClass([this.element], ['e-' + this.getModuleName()]);
5581
5588
  if (this.element.ej2_instances.length === 0) {
@@ -5637,6 +5644,8 @@ function removeChildInstance(element) {
5637
5644
  }
5638
5645
  }
5639
5646
  }
5647
+ var proxyToRaw;
5648
+ var setProxyToRaw = function (toRaw) { proxyToRaw = toRaw; };
5640
5649
 
5641
5650
  /**
5642
5651
  * Returns the Class Object
@@ -9442,7 +9451,7 @@ var Touch = /** @__PURE__ @class */ (function (_super) {
9442
9451
  /**
9443
9452
  * Template Engine
9444
9453
  */
9445
- var LINES = new RegExp('\\n\\s+|(?<=>)\\s{1,}(?=<)', 'g');
9454
+ var LINES = new RegExp('\\n|\\r|\\s\\s+', 'g');
9446
9455
  var QUOTES = new RegExp(/'|"/g);
9447
9456
  var IF_STMT = new RegExp('if ?\\(');
9448
9457
  var ELSEIF_STMT = new RegExp('else if ?\\(');
@@ -10073,5 +10082,5 @@ var SanitizeHtmlHelper = /** @__PURE__ @class */ (function () {
10073
10082
  * Base modules
10074
10083
  */
10075
10084
 
10076
- 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 };
10085
+ 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 };
10077
10086
  //# sourceMappingURL=ej2-base.es5.js.map