@syncfusion/ej2-base 33.1.45 → 33.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.1.45
3
+ * version : 33.2.3
4
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-base",
3
- "version": "33.1.45",
3
+ "version": "33.2.3",
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": "~33.1.44"
45
+ "@syncfusion/ej2-icons": "~33.2.3"
46
46
  },
47
47
  "devDependencies": {},
48
48
  "typings": "index.d.ts",
package/src/dom.js CHANGED
@@ -245,6 +245,9 @@ function executeScript(ele) {
245
245
  * @private
246
246
  */
247
247
  export function detach(element) {
248
+ if (isNullOrUndefined(element)) {
249
+ return;
250
+ }
248
251
  var parentNode = element.parentNode;
249
252
  if (parentNode) {
250
253
  return parentNode.removeChild(element);
@@ -258,9 +261,16 @@ export function detach(element) {
258
261
  * @private
259
262
  */
260
263
  export function remove(element) {
264
+ if (isNullOrUndefined(element)) {
265
+ return;
266
+ }
267
+ if (element.nodeType === Node.ELEMENT_NODE) {
268
+ EventHandler.clearEvents(element);
269
+ }
261
270
  var parentNode = element.parentNode;
262
- EventHandler.clearEvents(element);
263
- parentNode.removeChild(element);
271
+ if (parentNode) {
272
+ parentNode.removeChild(element);
273
+ }
264
274
  }
265
275
  /**
266
276
  * The function helps to set multiple attributes to an element
@@ -380,15 +390,18 @@ export function closest(element, selector) {
380
390
  * @private
381
391
  */
382
392
  export function siblings(element) {
383
- var siblings = [];
393
+ var result = [];
394
+ if (isNullOrUndefined(element) || !element.parentNode) {
395
+ return result;
396
+ }
384
397
  var childNodes = Array.prototype.slice.call(element.parentNode.childNodes);
385
398
  for (var _i = 0, childNodes_1 = childNodes; _i < childNodes_1.length; _i++) {
386
399
  var curNode = childNodes_1[_i];
387
400
  if (curNode.nodeType === Node.ELEMENT_NODE && element !== curNode) {
388
- siblings.push(curNode);
401
+ result.push(curNode);
389
402
  }
390
403
  }
391
- return siblings;
404
+ return result;
392
405
  }
393
406
  /**
394
407
  * set the value if not exist. Otherwise set the existing value
@@ -620,7 +620,7 @@ $utility-msg-info-close-icon-color-alt2: mapcolorvariable('utility-msg-info-clos
620
620
  $utility-appbar-bg-color-alt1: mapcolorvariable('utility-appbar-bg-color-alt1');
621
621
  $utility-appbar-color-alt1: mapcolorvariable('utility-appbar-color-alt1');
622
622
  $utility-appbar-border-color-alt1: mapcolorvariable('utility-appbar-border-color-alt1');
623
- $utility-appbar-hover-bg-color-alt1: mapcolorvariable('utility-appbar-border-color-alt2');
623
+ $utility-appbar-hover-bg-color-alt1: mapcolorvariable('utility-appbar-hover-bg-color-alt1');
624
624
 
625
625
  //dark
626
626
  $utility-appbar-bg-color-alt2: mapcolorvariable('utility-appbar-bg-color-alt2');
@@ -628,7 +628,7 @@ $utility-msg-info-close-icon-color-alt2: mapcolorvariable('utility-msg-info-clos
628
628
  $utility-appbar-bg-color-alt1: mapcolorvariable('utility-appbar-bg-color-alt1');
629
629
  $utility-appbar-color-alt1: mapcolorvariable('utility-appbar-color-alt1');
630
630
  $utility-appbar-border-color-alt1: mapcolorvariable('utility-appbar-border-color-alt1');
631
- $utility-appbar-hover-bg-color-alt1: mapcolorvariable('utility-appbar-border-color-alt2');
631
+ $utility-appbar-hover-bg-color-alt1: mapcolorvariable('utility-appbar-hover-bg-color-alt1');
632
632
 
633
633
  //dark
634
634
  $utility-appbar-bg-color-alt2: mapcolorvariable('utility-appbar-bg-color-alt2');
@@ -227,6 +227,7 @@ $table-bg-color-hover: rgba($on-surface, $opacity5) !default;
227
227
  $table-bg-color-pressed: rgba($on-surface, $opacity8) !default;
228
228
  $table-bg-color-selected: rgba($primary-container, .65) !default;
229
229
  $table-bg-color-selected-hover: rgba($on-surface, $opacity8) !default;
230
+ $table-bg-color-selected-hover-2: rgb(74, 61, 104) !default;
230
231
 
231
232
  $colorpicker-gradient-1: #f00 !default;
232
233
  $colorpicker-gradient-2: #ff0 !default;
@@ -241,6 +241,7 @@ $table-bg-color-hover: rgba($on-surface, $opacity5) !default;
241
241
  $table-bg-color-pressed: rgba($primary-container, .65) !default;
242
242
  $table-bg-color-selected: rgba($primary-container, .65) !default;
243
243
  $table-bg-color-selected-hover: rgba($on-surface, $opacity8) !default;
244
+ $table-bg-color-selected-hover-2: rgb(222, 215, 233) !default;
244
245
 
245
246
  $colorpicker-gradient-1: #f00 !default;
246
247
  $colorpicker-gradient-2: #ff0 !default;