@syncfusion/ej2-navigations 32.2.6 → 32.2.7

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 : 32.2.3
3
+ * version : 32.2.7
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-navigations",
3
- "version": "32.2.6",
3
+ "version": "32.2.7",
4
4
  "description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -9,11 +9,11 @@
9
9
  "es2015": "./dist/es6/ej2-navigations.es5.js",
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~32.2.6",
12
- "@syncfusion/ej2-buttons": "~32.2.3",
12
+ "@syncfusion/ej2-buttons": "~32.2.7",
13
13
  "@syncfusion/ej2-data": "~32.2.3",
14
- "@syncfusion/ej2-inputs": "~32.2.3",
15
- "@syncfusion/ej2-lists": "~32.2.6",
16
- "@syncfusion/ej2-popups": "~32.2.6"
14
+ "@syncfusion/ej2-inputs": "~32.2.7",
15
+ "@syncfusion/ej2-lists": "~32.2.7",
16
+ "@syncfusion/ej2-popups": "~32.2.7"
17
17
  },
18
18
  "devDependencies": {},
19
19
  "keywords": [
@@ -563,6 +563,12 @@ var Sidebar = /** @class */ (function (_super) {
563
563
  if (!this.getState()) {
564
564
  this.setDock();
565
565
  }
566
+ if (!this.enableDock) {
567
+ removeClass([this.element], DOCKER);
568
+ }
569
+ else {
570
+ addClass([this.element], DOCKER);
571
+ }
566
572
  break;
567
573
  case 'zIndex':
568
574
  this.setZindex();
package/src/tab/tab.js CHANGED
@@ -1046,9 +1046,11 @@ var Tab = /** @class */ (function (_super) {
1046
1046
  }
1047
1047
  else if (this.heightAdjustMode === 'Fill') {
1048
1048
  addClass([this.element], [CLS_FILL]);
1049
- setStyle(this.element, { 'height': '100%' });
1049
+ var parent_1 = this.element.parentElement;
1050
+ var heightVal = parent_1.style.height || parent_1.getAttribute('height');
1051
+ setStyle(this.element, { 'height': heightVal != null ? heightVal : '100%' });
1050
1052
  this.loadContentElement();
1051
- this.cntEle.style.height = 'calc(100% - ' + this.hdrEle.offsetHeight + 'px)';
1053
+ this.cntEle.style.height = heightVal != null ? "calc(" + heightVal + " - " + this.hdrEle.offsetHeight + "px)" : 'calc(100vh - ' + this.hdrEle.offsetHeight + 'px)';
1052
1054
  }
1053
1055
  else if (this.heightAdjustMode === 'Auto') {
1054
1056
  if (this.isTemplate === true) {
@@ -307,11 +307,23 @@ export interface TreeViewModel extends ComponentModel{
307
307
  * });
308
308
  * treeObj.appendTo('#tree');
309
309
  * ```
310
+ * **Note:** To correctly remove untrusted HTML values, `disableHtmlEncode` must also be set to true. When `enableHtmlSanitizer` is set to false, `disableHtmlEncode` must also be set to false.
310
311
  *
311
312
  * @default true
312
313
  */
313
314
  enableHtmlSanitizer?: boolean;
314
315
 
316
+ /**
317
+ * Enables rendering of raw text content in the Treeview component without HTML encoding.
318
+ * When set to true, the text will be displayed exactly as provided (including HTML tags or special characters),
319
+ * instead of being encoded or truncated (e.g., `hiiih<hihi` will be shown as-is).
320
+ *
321
+ * **Note:** To preserve and render raw HTML content correctly, `enableHtmlSanitizer` must also be set to false.
322
+ *
323
+ * @default true
324
+ */
325
+ disableHtmlEncode?: boolean;
326
+
315
327
  /**
316
328
  * Enables or disables persisting TreeView state between page reloads. If enabled, following APIs will persist.
317
329
  * 1. `selectedNodes` - Represents the nodes that are selected in the TreeView component.
@@ -693,10 +693,21 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
693
693
  * });
694
694
  * treeObj.appendTo('#tree');
695
695
  * ```
696
+ * **Note:** To correctly remove untrusted HTML values, `disableHtmlEncode` must also be set to true. When `enableHtmlSanitizer` is set to false, `disableHtmlEncode` must also be set to false.
696
697
  *
697
698
  * @default true
698
699
  */
699
700
  enableHtmlSanitizer: boolean;
701
+ /**
702
+ * Enables rendering of raw text content in the Treeview component without HTML encoding.
703
+ * When set to true, the text will be displayed exactly as provided (including HTML tags or special characters),
704
+ * instead of being encoded or truncated (e.g., `hiiih<hihi` will be shown as-is).
705
+ *
706
+ * **Note:** To preserve and render raw HTML content correctly, `enableHtmlSanitizer` must also be set to false.
707
+ *
708
+ * @default true
709
+ */
710
+ disableHtmlEncode: boolean;
700
711
  /**
701
712
  * Enables or disables persisting TreeView state between page reloads. If enabled, following APIs will persist.
702
713
  * 1. `selectedNodes` - Represents the nodes that are selected in the TreeView component.
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Component, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper, animationMode } from '@syncfusion/ej2-base';
20
+ import { Component, isUndefined, Browser, compile, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';
21
21
  import { Property, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';
22
22
  import { Event, EventHandler, KeyboardEvents } from '@syncfusion/ej2-base';
23
23
  import { rippleEffect, Animation, remove } from '@syncfusion/ej2-base';
@@ -285,6 +285,7 @@ var TreeView = /** @class */ (function (_super) {
285
285
  _this.beforeNodeCreate(e);
286
286
  },
287
287
  enableHtmlSanitizer: this.enableHtmlSanitizer,
288
+ disableHtmlEncode: this.disableHtmlEncode,
288
289
  itemNavigable: this.fullRowNavigable
289
290
  };
290
291
  this.updateListProp(this.fields);
@@ -3375,12 +3376,7 @@ var TreeView = /** @class */ (function (_super) {
3375
3376
  this.renderReactTemplates();
3376
3377
  }
3377
3378
  else {
3378
- if (this.enableHtmlSanitizer) {
3379
- txtEle.innerText = SanitizeHtmlHelper.sanitize(newText);
3380
- }
3381
- else {
3382
- txtEle.innerHTML = newText;
3383
- }
3379
+ txtEle[ListBase.getDomSetter(this.listBaseOption)] = ListBase.getSanitizedText(newText, this.listBaseOption);
3384
3380
  }
3385
3381
  if (isInput) {
3386
3382
  removeClass([liEle], EDITING);
@@ -5824,6 +5820,9 @@ var TreeView = /** @class */ (function (_super) {
5824
5820
  __decorate([
5825
5821
  Property(true)
5826
5822
  ], TreeView.prototype, "enableHtmlSanitizer", void 0);
5823
+ __decorate([
5824
+ Property(true)
5825
+ ], TreeView.prototype, "disableHtmlEncode", void 0);
5827
5826
  __decorate([
5828
5827
  Property(false)
5829
5828
  ], TreeView.prototype, "enablePersistence", void 0);