@indigina/kendo 2.0.37 → 2.0.38

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.
@@ -1347,7 +1347,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
1347
1347
  }] } });
1348
1348
 
1349
1349
  class TreeViewNodeComponent {
1350
- constructor() {
1350
+ constructor(changeDetectorRef) {
1351
+ this.changeDetectorRef = changeDetectorRef;
1351
1352
  this.expanded = true;
1352
1353
  }
1353
1354
  ngOnInit() {
@@ -1360,21 +1361,23 @@ class TreeViewNodeComponent {
1360
1361
  if (this.hasExpand) {
1361
1362
  this.expanded = true;
1362
1363
  }
1364
+ this.changeDetectorRef.markForCheck();
1363
1365
  this.treeViewProps.forEach((x) => x.expandAll());
1364
1366
  }
1365
1367
  collapseAll() {
1366
1368
  if (this.hasExpand) {
1367
1369
  this.expanded = false;
1368
1370
  }
1371
+ this.changeDetectorRef.markForCheck();
1369
1372
  this.treeViewProps.forEach((x) => x.collapseAll());
1370
1373
  }
1371
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1374
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
1372
1375
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TreeViewNodeComponent, isStandalone: false, selector: "tree-view-node", inputs: { node: "node", hasExpand: "hasExpand" }, viewQueries: [{ propertyName: "treeViewProps", predicate: ["node"], descendants: true }], ngImport: i0, template: "<span class=\"tree-view-node\">\n <span class=\"bracket\">{{ node.brackets?.inside }}</span>\n @if (node.isPrimitive) {\n <span class=\"tree-view-prop\">\n {{ node.startTag }}\n <span [ngClass]=\"node.nodeType\">\n {{ node.value }}\n </span>\n {{ node.endTag }}\n </span>\n } @else {\n <span>\n @if (hasExpand) {\n <em\n [ngClass]=\"\n expanded\n ? 'fa fa-caret-down node-toggler'\n : 'fa fa-caret-right node-toggler'\n \"\n (click)=\"toggleExpand()\"\n ></em>\n }\n @if (!expanded && !node.startTag) {\n <span class=\"ellipsis\">...</span>\n }\n <ul [ngClass]=\"!expanded ? 'hidden' : ''\">\n @for (child of node.children; track child) {\n <li class=\"tree-view-prop\">\n <span class=\"prop-name\">{{ child.startTag }}</span>\n @if (child.isPrimitive) {\n <span [ngClass]=\"child.nodeType\">{{\n child.value\n }}</span>\n }\n @if (child.isComplex) {\n <tree-view-node\n [node]=\"child\"\n [hasExpand]=\"true\"\n #node\n ></tree-view-node>\n }\n <span class=\"prop-name\">{{ child.endTag }}</span>\n </li>\n }\n </ul>\n </span>\n }\n <span class=\"bracket\">{{ node.brackets?.outside }}</span>\n</span>\n", styles: ["*{font-size:14px}li{position:relative}.prop-name{color:#555;font-weight:700}.tree-view-prop{list-style-type:none;margin:4px 0;word-wrap:break-word}.tree-view-prop{position:relative;padding-left:20px}.tree-view-prop .number{color:#00f}.tree-view-prop .string{color:green}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TreeViewNodeComponent, selector: "tree-view-node", inputs: ["node", "hasExpand"] }] }); }
1373
1376
  }
1374
1377
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, decorators: [{
1375
1378
  type: Component,
1376
1379
  args: [{ selector: 'tree-view-node', standalone: false, template: "<span class=\"tree-view-node\">\n <span class=\"bracket\">{{ node.brackets?.inside }}</span>\n @if (node.isPrimitive) {\n <span class=\"tree-view-prop\">\n {{ node.startTag }}\n <span [ngClass]=\"node.nodeType\">\n {{ node.value }}\n </span>\n {{ node.endTag }}\n </span>\n } @else {\n <span>\n @if (hasExpand) {\n <em\n [ngClass]=\"\n expanded\n ? 'fa fa-caret-down node-toggler'\n : 'fa fa-caret-right node-toggler'\n \"\n (click)=\"toggleExpand()\"\n ></em>\n }\n @if (!expanded && !node.startTag) {\n <span class=\"ellipsis\">...</span>\n }\n <ul [ngClass]=\"!expanded ? 'hidden' : ''\">\n @for (child of node.children; track child) {\n <li class=\"tree-view-prop\">\n <span class=\"prop-name\">{{ child.startTag }}</span>\n @if (child.isPrimitive) {\n <span [ngClass]=\"child.nodeType\">{{\n child.value\n }}</span>\n }\n @if (child.isComplex) {\n <tree-view-node\n [node]=\"child\"\n [hasExpand]=\"true\"\n #node\n ></tree-view-node>\n }\n <span class=\"prop-name\">{{ child.endTag }}</span>\n </li>\n }\n </ul>\n </span>\n }\n <span class=\"bracket\">{{ node.brackets?.outside }}</span>\n</span>\n", styles: ["*{font-size:14px}li{position:relative}.prop-name{color:#555;font-weight:700}.tree-view-prop{list-style-type:none;margin:4px 0;word-wrap:break-word}.tree-view-prop{position:relative;padding-left:20px}.tree-view-prop .number{color:#00f}.tree-view-prop .string{color:green}\n"] }]
1377
- }], propDecorators: { treeViewProps: [{
1380
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { treeViewProps: [{
1378
1381
  type: ViewChildren,
1379
1382
  args: ['node']
1380
1383
  }], node: [{