@progress/kendo-angular-treeview 5.4.2-dev.202110181512 → 5.4.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.
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-treeview',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1634569830,
12
+ publishDate: 1638439762,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -52,9 +52,10 @@ var providers = [
52
52
  * Represents the [Kendo UI TreeView component for Angular]({% slug overview_treeview %}).
53
53
  *
54
54
  * @example
55
- * {% meta height:350 %}
56
- * {% embed_file basic-usage/app.component.ts preview %}
57
- * {% embed_file basic-usage/app.module.ts %}
55
+ * {% meta height:450 %}
56
+ * {% embed_file get-started/app.component.ts preview %}
57
+ * {% embed_file get-started/app.module.ts %}
58
+ * {% embed_file shared/main.ts %}
58
59
  * {% endmeta %}
59
60
  */
60
61
  var TreeViewComponent = /** @class */ (function () {
@@ -255,21 +256,33 @@ var TreeViewComponent = /** @class */ (function () {
255
256
  configurable: true
256
257
  });
257
258
  Object.defineProperty(TreeViewComponent.prototype, "nodeTemplateRef", {
259
+ get: function () {
260
+ return this._nodeTemplateRef || this.nodeTemplateQuery;
261
+ },
258
262
  /**
259
263
  * @hidden
264
+ *
265
+ * Defines the template for each node.
266
+ * Takes precedence over nested templates in the TreeView tag.
260
267
  */
261
268
  set: function (template) {
262
- this.nodeTemplate = template;
269
+ this._nodeTemplateRef = template;
263
270
  },
264
271
  enumerable: true,
265
272
  configurable: true
266
273
  });
267
274
  Object.defineProperty(TreeViewComponent.prototype, "loadMoreButtonTemplateRef", {
275
+ get: function () {
276
+ return this._loadMoreButtonTemplateRef || this.loadMoreButtonTemplateQuery;
277
+ },
268
278
  /**
269
279
  * @hidden
280
+ *
281
+ * Defines the template for each load-more button.
282
+ * Takes precedence over nested templates in the TreeView tag.
270
283
  */
271
284
  set: function (template) {
272
- this.loadMoreButtonTemplate = template;
285
+ this._loadMoreButtonTemplateRef = template;
273
286
  },
274
287
  enumerable: true,
275
288
  configurable: true
@@ -705,18 +718,18 @@ var TreeViewComponent = /** @class */ (function () {
705
718
  tslib_1.__metadata("design:type", EventEmitter)
706
719
  ], TreeViewComponent.prototype, "nodeDblClick", void 0);
707
720
  tslib_1.__decorate([
708
- ContentChild(NodeTemplateDirective, { static: true }),
721
+ ContentChild(NodeTemplateDirective, { static: false }),
709
722
  tslib_1.__metadata("design:type", NodeTemplateDirective)
710
- ], TreeViewComponent.prototype, "nodeTemplate", void 0);
723
+ ], TreeViewComponent.prototype, "nodeTemplateQuery", void 0);
711
724
  tslib_1.__decorate([
712
725
  Input('nodeTemplate'),
713
726
  tslib_1.__metadata("design:type", NodeTemplateDirective),
714
727
  tslib_1.__metadata("design:paramtypes", [NodeTemplateDirective])
715
728
  ], TreeViewComponent.prototype, "nodeTemplateRef", null);
716
729
  tslib_1.__decorate([
717
- ContentChild(LoadMoreButtonTemplateDirective, { static: true }),
730
+ ContentChild(LoadMoreButtonTemplateDirective, { static: false }),
718
731
  tslib_1.__metadata("design:type", LoadMoreButtonTemplateDirective)
719
- ], TreeViewComponent.prototype, "loadMoreButtonTemplate", void 0);
732
+ ], TreeViewComponent.prototype, "loadMoreButtonTemplateQuery", void 0);
720
733
  tslib_1.__decorate([
721
734
  Input('loadMoreButtonTemplate'),
722
735
  tslib_1.__metadata("design:type", LoadMoreButtonTemplateDirective),
@@ -789,7 +802,7 @@ var TreeViewComponent = /** @class */ (function () {
789
802
  exportAs: 'kendoTreeView',
790
803
  providers: providers,
791
804
  selector: 'kendo-treeview',
792
- template: "\n <kendo-textbox\n #filterInput\n *ngIf=\"filterable\"\n [value]=\"filter\"\n [clearButton]=\"true\"\n (valueChange)=\"filterChange.emit($event)\"\n [placeholder]=\"filterInputPlaceholder\"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class=\"k-icon k-i-search\"></span>\n </ng-template>\n </kendo-textbox>\n <ul class=\"k-treeview-lines\"\n kendoTreeViewGroup\n role=\"group\"\n [loadOnDemand]=\"loadOnDemand\"\n [checkboxes]=\"checkboxes\"\n [expandIcons]=\"expandIcons\"\n [selectable]=\"selectable\"\n [touchActions]=\"touchActions\"\n [children]=\"children\"\n [hasChildren]=\"hasChildren\"\n [isChecked]=\"isChecked\"\n [isDisabled]=\"isDisabled\"\n [isExpanded]=\"isExpanded\"\n [isSelected]=\"isSelected\"\n [isVisible]=\"isVisible\"\n [nodeTemplateRef]=\"nodeTemplate?.templateRef\"\n [loadMoreButtonTemplateRef]=\"loadMoreButtonTemplate?.templateRef\"\n [textField]=\"textField\"\n [nodes]=\"fetchNodes\"\n [loadMoreService]=\"loadMoreService\"\n [trackBy]=\"trackBy\"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n "
805
+ template: "\n <kendo-textbox\n #filterInput\n *ngIf=\"filterable\"\n [value]=\"filter\"\n [clearButton]=\"true\"\n (valueChange)=\"filterChange.emit($event)\"\n [placeholder]=\"filterInputPlaceholder\"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class=\"k-icon k-i-search\"></span>\n </ng-template>\n </kendo-textbox>\n <ul class=\"k-treeview-lines\"\n kendoTreeViewGroup\n role=\"group\"\n [loadOnDemand]=\"loadOnDemand\"\n [checkboxes]=\"checkboxes\"\n [expandIcons]=\"expandIcons\"\n [selectable]=\"selectable\"\n [touchActions]=\"touchActions\"\n [children]=\"children\"\n [hasChildren]=\"hasChildren\"\n [isChecked]=\"isChecked\"\n [isDisabled]=\"isDisabled\"\n [isExpanded]=\"isExpanded\"\n [isSelected]=\"isSelected\"\n [isVisible]=\"isVisible\"\n [nodeTemplateRef]=\"nodeTemplateRef?.templateRef\"\n [loadMoreButtonTemplateRef]=\"loadMoreButtonTemplateRef?.templateRef\"\n [textField]=\"textField\"\n [nodes]=\"fetchNodes\"\n [loadMoreService]=\"loadMoreService\"\n [trackBy]=\"trackBy\"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n "
793
806
  }),
794
807
  tslib_1.__metadata("design:paramtypes", [ElementRef,
795
808
  ChangeDetectorRef,