@syncfusion/ej2-base 31.1.20 → 31.2.2

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.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 31.1.20
4
- * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
3
+ * version : 31.2.2
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-base",
3
- "version": "31.1.20",
3
+ "version": "31.2.2",
4
4
  "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -42,7 +42,7 @@
42
42
  "syncfusion-license": "bin/syncfusion-license.js"
43
43
  },
44
44
  "dependencies": {
45
- "@syncfusion/ej2-icons": "~31.1.17"
45
+ "@syncfusion/ej2-icons": "~31.2.2"
46
46
  },
47
47
  "devDependencies": {},
48
48
  "typings": "index.d.ts",
@@ -39,6 +39,13 @@ export declare class DateParser {
39
39
  * @returns {number} ?
40
40
  */
41
41
  private static internalNumberParser;
42
+ /**
43
+ * Escapes all regex metacharacters in a string, preserving the {0} placeholder.
44
+ *
45
+ * @param {string} str ? - The input string to escape.
46
+ * @returns {string} ? - The escaped string with {0} preserved.
47
+ */
48
+ private static escapeRegex;
42
49
  /**
43
50
  * Returns parsed time zone RegExp for provided hour format and time zone
44
51
  *
@@ -343,6 +343,19 @@ var DateParser = /** @class */ (function () {
343
343
  }
344
344
  return null;
345
345
  };
346
+ /**
347
+ * Escapes all regex metacharacters in a string, preserving the {0} placeholder.
348
+ *
349
+ * @param {string} str ? - The input string to escape.
350
+ * @returns {string} ? - The escaped string with {0} preserved.
351
+ */
352
+ DateParser.escapeRegex = function (str) {
353
+ var tempPlaceholder = '__TEMP__';
354
+ var tempStr = str.replace('{0}', tempPlaceholder);
355
+ var metaChars = /[.*+?^${}()|[\]\\]/g;
356
+ var escapedStr = tempStr.replace(metaChars, '\\$&');
357
+ return escapedStr.replace(tempPlaceholder, '{0}');
358
+ };
346
359
  /**
347
360
  * Returns parsed time zone RegExp for provided hour format and time zone
348
361
  *
@@ -362,10 +375,12 @@ var DateParser = /** @class */ (function () {
362
375
  else {
363
376
  ret = ret.replace(/H|m/g, '(' + cRegex + '?)');
364
377
  }
378
+ pattern = this.escapeRegex(pattern);
365
379
  var splitStr = (ret.split(';').map(function (str) {
366
380
  return pattern.replace('{0}', str);
367
381
  }));
368
- ret = splitStr.join('|') + '|' + tZone.gmtZeroFormat;
382
+ var gmtZeroFormat = this.escapeRegex(tZone.gmtZeroFormat);
383
+ ret = splitStr.join('|') + '|' + gmtZeroFormat;
369
384
  return ret;
370
385
  };
371
386
  /**
@@ -1836,7 +1836,7 @@
1836
1836
  --color-sf-text-tertiary: #475467;
1837
1837
  --color-sf-text-tertiary-hover: #344054;
1838
1838
  --color-sf-text-tertiary-on-brand: #eaecf0;
1839
- --color-sf-text-quarterary: #101828;
1839
+ --color-sf-text-quarterary: #667085;
1840
1840
  --color-sf-text-quarterary-on-brand: #101828;
1841
1841
  --color-sf-text-white: #fff;
1842
1842
  --color-sf-text-disabled: #667085;
package/styles/bds.css CHANGED
@@ -1836,7 +1836,7 @@
1836
1836
  --color-sf-text-tertiary: #475467;
1837
1837
  --color-sf-text-tertiary-hover: #344054;
1838
1838
  --color-sf-text-tertiary-on-brand: #eaecf0;
1839
- --color-sf-text-quarterary: #101828;
1839
+ --color-sf-text-quarterary: #667085;
1840
1840
  --color-sf-text-quarterary-on-brand: #101828;
1841
1841
  --color-sf-text-white: #fff;
1842
1842
  --color-sf-text-disabled: #667085;
@@ -34,7 +34,7 @@
34
34
  --color-sf-text-tertiary: #{#475467};
35
35
  --color-sf-text-tertiary-hover: #{#344054};
36
36
  --color-sf-text-tertiary-on-brand: #{#eaecf0};
37
- --color-sf-text-quarterary: #{#101828};
37
+ --color-sf-text-quarterary: #{#667085};
38
38
  --color-sf-text-quarterary-on-brand: #{#101828};
39
39
  --color-sf-text-white: #{#fff};
40
40
  --color-sf-text-disabled: #{#667085};