@syncfusion/ej2-base 28.2.4 → 28.2.9

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.
@@ -1725,6 +1725,7 @@ var IntlBase;
1725
1725
  const spaceGrouping = integerPart.replace(/ $/g, '').indexOf(' ') !== -1;
1726
1726
  cOptions.useGrouping = integerPart.indexOf(',') !== -1 || spaceGrouping;
1727
1727
  integerPart = integerPart.replace(/,/g, '');
1728
+ integerPart = (/\s$/.test(integerPart)) ? integerPart.replace(/ /g, '') : integerPart;
1728
1729
  const fractionPart = pattern[7];
1729
1730
  if (integerPart.indexOf('0') !== -1) {
1730
1731
  cOptions.minimumIntegerDigits = integerPart.length - integerPart.indexOf('0');
@@ -5275,8 +5276,7 @@ class DateFormat$1 {
5275
5276
  const numObject = getValue('parserObject.numbers', dependable);
5276
5277
  const dateObject = dependable.dateObject;
5277
5278
  const formatOptions = { isIslamic: IntlBase.islamicRegex.test(option.calendar) };
5278
- const firsDayOfWeekCollection = ['fr-CH'];
5279
- formatOptions.firstDayOfWeek = firsDayOfWeekCollection.indexOf(culture) !== -1 ? 1 : 0;
5279
+ formatOptions.firstDayOfWeek = IntlBase.getWeekData(culture, cldr);
5280
5280
  if (isBlazor() && option.isServerRendered) {
5281
5281
  option = IntlBase.compareBlazorDateFormats(option, culture);
5282
5282
  }