@progress/kendo-angular-treeview 7.1.5 → 11.0.0-develop.80
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.
- package/NOTICE.txt +3 -3
- package/check-mode.d.ts +1 -1
- package/check.directive.d.ts +1 -1
- package/checkable-settings.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +1 -1
- package/checkbox/checkbox.module.d.ts +1 -1
- package/checkbox/checked-state.d.ts +1 -1
- package/data-bound-component.d.ts +1 -1
- package/data-change-notification.service.d.ts +1 -1
- package/default-callbacks.d.ts +1 -1
- package/disable.directive.d.ts +1 -1
- package/drag-and-drop/drag-and-drop-editing.directive.d.ts +1 -1
- package/drag-and-drop/drag-and-drop-utils.d.ts +1 -1
- package/drag-and-drop/drag-and-drop.directive.d.ts +1 -1
- package/drag-and-drop/drag-clue/drag-clue-template.directive.d.ts +1 -1
- package/drag-and-drop/drag-clue/drag-clue.component.d.ts +1 -1
- package/drag-and-drop/drag-clue/drag-clue.service.d.ts +3 -3
- package/drag-and-drop/drop-hint/drop-hint-template.directive.d.ts +1 -1
- package/drag-and-drop/drop-hint/drop-hint.component.d.ts +1 -1
- package/drag-and-drop/drop-hint/drop-hint.service.d.ts +1 -1
- package/drag-and-drop/editing-services/drag-and-drop-asset.service.d.ts +1 -1
- package/drag-and-drop/editing-services/flat-editing.service.d.ts +1 -1
- package/drag-and-drop/editing-services/hierarchy-editing.service.d.ts +1 -1
- package/drag-and-drop/models/drop-action.d.ts +1 -1
- package/drag-and-drop/models/drop-position.d.ts +1 -1
- package/drag-and-drop/models/editing-service.d.ts +1 -1
- package/drag-and-drop/models/preventable-event.d.ts +1 -1
- package/drag-and-drop/models/scroll-direction.d.ts +1 -1
- package/drag-and-drop/models/scroll-settings.d.ts +1 -1
- package/drag-and-drop/models/tree-item-filter-state.d.ts +1 -1
- package/drag-and-drop/models/treeitem-add-remove-args.d.ts +1 -1
- package/drag-and-drop/models/treeitem-drag-event.d.ts +1 -1
- package/drag-and-drop/models/treeitem-drag-start-event.d.ts +1 -1
- package/drag-and-drop/models/treeitem-drop-event.d.ts +1 -1
- package/drag-and-drop/models.d.ts +1 -1
- package/{esm2015/checkbox/checked-state.js → esm2020/check-mode.mjs} +1 -1
- package/{esm2015/check.directive.js → esm2020/check.directive.mjs} +7 -6
- package/{esm2015/check-mode.js → esm2020/checkable-settings.mjs} +1 -1
- package/{esm2015/checkbox/checkbox.component.js → esm2020/checkbox/checkbox.component.mjs} +5 -5
- package/{esm2015/checkbox/checkbox.module.js → esm2020/checkbox/checkbox.module.mjs} +5 -5
- package/{esm2015/drag-and-drop/models/editing-service.js → esm2020/checkbox/checked-state.mjs} +1 -1
- package/{esm2015/data-bound-component.js → esm2020/data-bound-component.mjs} +4 -4
- package/{esm2015/data-change-notification.service.js → esm2020/data-change-notification.service.mjs} +1 -1
- package/{esm2015/default-callbacks.js → esm2020/default-callbacks.mjs} +1 -1
- package/{esm2015/disable.directive.js → esm2020/disable.directive.mjs} +6 -5
- package/{esm2015/drag-and-drop/drag-and-drop-editing.directive.js → esm2020/drag-and-drop/drag-and-drop-editing.directive.mjs} +5 -4
- package/{esm2015/drag-and-drop/drag-and-drop-utils.js → esm2020/drag-and-drop/drag-and-drop-utils.mjs} +6 -2
- package/{esm2015/drag-and-drop/drag-and-drop.directive.js → esm2020/drag-and-drop/drag-and-drop.directive.mjs} +6 -5
- package/{esm2015/drag-and-drop/drag-clue/drag-clue-template.directive.js → esm2020/drag-and-drop/drag-clue/drag-clue-template.directive.mjs} +5 -5
- package/{esm2015/drag-and-drop/drag-clue/drag-clue.component.js → esm2020/drag-and-drop/drag-clue/drag-clue.component.mjs} +5 -5
- package/{esm2015/drag-and-drop/drag-clue/drag-clue.service.js → esm2020/drag-and-drop/drag-clue/drag-clue.service.mjs} +5 -5
- package/{esm2015/drag-and-drop/drop-hint/drop-hint-template.directive.js → esm2020/drag-and-drop/drop-hint/drop-hint-template.directive.mjs} +5 -5
- package/{esm2015/drag-and-drop/drop-hint/drop-hint.component.js → esm2020/drag-and-drop/drop-hint/drop-hint.component.mjs} +5 -5
- package/{esm2015/drag-and-drop/drop-hint/drop-hint.service.js → esm2020/drag-and-drop/drop-hint/drop-hint.service.mjs} +5 -5
- package/{esm2015/drag-and-drop/editing-services/drag-and-drop-asset.service.js → esm2020/drag-and-drop/editing-services/drag-and-drop-asset.service.mjs} +4 -4
- package/{esm2015/drag-and-drop/editing-services/flat-editing.service.js → esm2020/drag-and-drop/editing-services/flat-editing.service.mjs} +1 -1
- package/{esm2015/drag-and-drop/editing-services/hierarchy-editing.service.js → esm2020/drag-and-drop/editing-services/hierarchy-editing.service.mjs} +1 -1
- package/{esm2015/drag-and-drop/models/drop-action.js → esm2020/drag-and-drop/models/drop-action.mjs} +1 -1
- package/{esm2015/drag-and-drop/models/drop-position.js → esm2020/drag-and-drop/models/drop-position.mjs} +1 -1
- package/{esm2015/checkable-settings.js → esm2020/drag-and-drop/models/editing-service.mjs} +1 -1
- package/{esm2015/drag-and-drop/models/preventable-event.js → esm2020/drag-and-drop/models/preventable-event.mjs} +1 -1
- package/{esm2015/drag-and-drop/models/scroll-direction.js → esm2020/drag-and-drop/models/scroll-direction.mjs} +1 -1
- package/esm2020/drag-and-drop/models/scroll-settings.mjs +5 -0
- package/esm2020/drag-and-drop/models/tree-item-filter-state.mjs +5 -0
- package/esm2020/drag-and-drop/models/treeitem-add-remove-args.mjs +5 -0
- package/{esm2015/drag-and-drop/models/treeitem-drag-event.js → esm2020/drag-and-drop/models/treeitem-drag-event.mjs} +1 -1
- package/{esm2015/drag-and-drop/models/treeitem-drag-start-event.js → esm2020/drag-and-drop/models/treeitem-drag-start-event.mjs} +1 -1
- package/{esm2015/drag-and-drop/models/treeitem-drop-event.js → esm2020/drag-and-drop/models/treeitem-drop-event.mjs} +1 -1
- package/{esm2015/drag-and-drop/models.js → esm2020/drag-and-drop/models.mjs} +1 -1
- package/{esm2015/expand-state.service.js → esm2020/expand-state.service.mjs} +4 -4
- package/{esm2015/expand.directive.js → esm2020/expand.directive.mjs} +9 -8
- package/{esm2015/expandable-component.js → esm2020/expandable-component.mjs} +4 -4
- package/esm2020/filter-expand-settings.interface.mjs +5 -0
- package/esm2020/filter-state.interface.mjs +5 -0
- package/{esm2015/filtering-base.js → esm2020/filtering-base.mjs} +9 -5
- package/{esm2015/flat-binding.directive.js → esm2020/flat-binding.directive.mjs} +6 -5
- package/{esm2015/funcs.js → esm2020/funcs.mjs} +1 -1
- package/{esm2015/hierarchy-binding.directive.js → esm2020/hierarchy-binding.directive.mjs} +13 -11
- package/{esm2015/index-builder.service.js → esm2020/index-builder.service.mjs} +4 -4
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/load-more/load-more-button-template.directive.js → esm2020/load-more/load-more-button-template.directive.mjs} +5 -5
- package/esm2020/load-more/load-more-request-args.mjs +5 -0
- package/{esm2015/load-more/load-more-utils.js → esm2020/load-more/load-more-utils.mjs} +1 -1
- package/{esm2015/load-more/load-more.directive.js → esm2020/load-more/load-more.directive.mjs} +5 -4
- package/esm2020/load-more/load-more.service.mjs +5 -0
- package/{esm2015/loading-indicator.directive.js → esm2020/loading-indicator.directive.mjs} +7 -5
- package/{esm2015/loading-notification.service.js → esm2020/loading-notification.service.mjs} +4 -4
- package/esm2020/navigation/navigation-item.interface.mjs +5 -0
- package/{esm2015/navigation/navigation-model.js → esm2020/navigation/navigation-model.mjs} +1 -1
- package/esm2020/navigation/navigation-state.interface.mjs +5 -0
- package/{esm2015/navigation/navigation.service.js → esm2020/navigation/navigation.service.mjs} +5 -4
- package/{esm2015/node-children.service.js → esm2020/node-children.service.mjs} +4 -4
- package/esm2020/node-click-event.interface.mjs +5 -0
- package/{esm2015/node-template.directive.js → esm2020/node-template.directive.mjs} +5 -5
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/kendo-angular-treeview.js → esm2020/progress-kendo-angular-treeview.mjs} +2 -2
- package/{esm2015/selection/select.directive.js → esm2020/selection/select.directive.mjs} +9 -8
- package/esm2020/selection/selectable-settings.mjs +5 -0
- package/esm2020/selection/selection-mode.mjs +5 -0
- package/{esm2015/selection/selection.service.js → esm2020/selection/selection.service.mjs} +4 -4
- package/{esm2015/shared.module.js → esm2020/shared.module.mjs} +5 -5
- package/esm2020/size.mjs +5 -0
- package/esm2020/treeitem-lookup.interface.mjs +5 -0
- package/esm2020/treeitem.interface.mjs +5 -0
- package/{esm2015/treeview-filter-settings.js → esm2020/treeview-filter-settings.mjs} +1 -1
- package/{esm2015/treeview-group.component.js → esm2020/treeview-group.component.mjs} +12 -5
- package/{esm2015/treeview-item-content.directive.js → esm2020/treeview-item-content.directive.mjs} +9 -7
- package/{esm2015/treeview-item.directive.js → esm2020/treeview-item.directive.mjs} +10 -5
- package/{esm2015/treeview-lookup.service.js → esm2020/treeview-lookup.service.mjs} +4 -4
- package/{esm2015/treeview.component.js → esm2020/treeview.component.mjs} +5 -5
- package/{esm2015/treeview.module.js → esm2020/treeview.module.mjs} +5 -5
- package/{esm2015/utils.js → esm2020/utils.mjs} +1 -1
- package/expand-state.service.d.ts +1 -1
- package/expand.directive.d.ts +1 -1
- package/expandable-component.d.ts +1 -1
- package/fesm2015/progress-kendo-angular-treeview.mjs +5465 -0
- package/{fesm2015/kendo-angular-treeview.js → fesm2020/progress-kendo-angular-treeview.mjs} +224 -218
- package/filter-expand-settings.interface.d.ts +1 -1
- package/filter-state.interface.d.ts +1 -1
- package/filtering-base.d.ts +1 -1
- package/flat-binding.directive.d.ts +1 -1
- package/funcs.d.ts +1 -1
- package/hierarchy-binding.directive.d.ts +5 -5
- package/index-builder.service.d.ts +1 -1
- package/{main.d.ts → index.d.ts} +1 -1
- package/load-more/load-more-button-template.directive.d.ts +1 -1
- package/load-more/load-more-request-args.d.ts +1 -1
- package/load-more/load-more-utils.d.ts +1 -1
- package/load-more/load-more.directive.d.ts +1 -1
- package/load-more/load-more.service.d.ts +1 -1
- package/loading-indicator.directive.d.ts +1 -1
- package/loading-notification.service.d.ts +1 -1
- package/navigation/navigation-item.interface.d.ts +1 -1
- package/navigation/navigation-model.d.ts +1 -1
- package/navigation/navigation-state.interface.d.ts +1 -1
- package/navigation/navigation.service.d.ts +1 -1
- package/node-children.service.d.ts +1 -1
- package/node-click-event.interface.d.ts +1 -1
- package/node-template.directive.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +30 -57
- package/{kendo-angular-treeview.d.ts → progress-kendo-angular-treeview.d.ts} +2 -2
- package/schematics/ngAdd/index.js +1 -5
- package/selection/select.directive.d.ts +1 -1
- package/selection/selectable-settings.d.ts +1 -1
- package/selection/selection-mode.d.ts +1 -1
- package/selection/selection.service.d.ts +1 -1
- package/shared.module.d.ts +1 -1
- package/size.d.ts +1 -1
- package/treeitem-lookup.interface.d.ts +1 -1
- package/treeitem.interface.d.ts +1 -1
- package/treeview-filter-settings.d.ts +1 -1
- package/treeview-group.component.d.ts +1 -1
- package/treeview-item-content.directive.d.ts +1 -1
- package/treeview-item.directive.d.ts +1 -1
- package/treeview-lookup.service.d.ts +1 -1
- package/treeview.component.d.ts +1 -1
- package/treeview.module.d.ts +1 -1
- package/utils.d.ts +1 -1
- package/bundles/kendo-angular-treeview.umd.js +0 -5
- package/esm2015/drag-and-drop/models/scroll-settings.js +0 -5
- package/esm2015/drag-and-drop/models/tree-item-filter-state.js +0 -5
- package/esm2015/drag-and-drop/models/treeitem-add-remove-args.js +0 -5
- package/esm2015/filter-expand-settings.interface.js +0 -5
- package/esm2015/filter-state.interface.js +0 -5
- package/esm2015/load-more/load-more-request-args.js +0 -5
- package/esm2015/load-more/load-more.service.js +0 -5
- package/esm2015/navigation/navigation-item.interface.js +0 -5
- package/esm2015/navigation/navigation-state.interface.js +0 -5
- package/esm2015/node-click-event.interface.js +0 -5
- package/esm2015/selection/selectable-settings.js +0 -5
- package/esm2015/selection/selection-mode.js +0 -5
- package/esm2015/size.js +0 -5
- package/esm2015/treeitem-lookup.interface.js +0 -5
- package/esm2015/treeitem.interface.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("@progress/kendo-licensing"),require("@progress/kendo-common"),require("@progress/kendo-angular-inputs"),require("@angular/animations"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-draggable")):"function"==typeof define&&define.amd?define("KendoAngularTreeview",["exports","@angular/core","@progress/kendo-angular-common","@progress/kendo-angular-l10n","rxjs","@progress/kendo-licensing","@progress/kendo-common","@progress/kendo-angular-inputs","@angular/animations","rxjs/operators","@angular/common","@progress/kendo-draggable"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularTreeview={},e.ng.core,e.KendoAngularCommon,e.KendoAngularL10N,e.rxjs,e.KendoLicensing,e.KendoCommon,e.KendoAngularInputs,e.ng.animations,e.rxjs.operators,e.ng.common,e.KendoDraggable)}(this,function(l,h,p,e,u,R,g,A,t,r,j,z){"use strict";function K(n){var i;return n&&n.__esModule?n:(i=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i))}var n=K(h),L=K(e),i=K(A),o=K(j),_={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1668698257,version:"",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"},H=(G.prototype.notify=function(){this.changes.emit()},G);function G(){this.changes=new h.EventEmitter}function Z(){return!1}function q(){return"none"}function X(){return!1}function U(){return!0}function Y(){return!1}function $(){return!0}function Q(e,t){return t}W.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},W.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})};var s=W;function W(){this.changes=new u.Subject}s.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,deps:[],target:n.ɵɵFactoryTarget.Injectable}),s.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:s,decorators:[{type:h.Injectable}]});J.prototype.nodeIndex=function(e,t){return""+(t=void 0===t?"":t)+(t?this.INDEX_SEPARATOR:"")+(e=void 0===e?"":e)},J.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},J.prototype.lastLevelIndex=function(e){e=(e=void 0===e?"":e).split(this.INDEX_SEPARATOR);return e.length?parseInt(e[e.length-1],10):NaN},J.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length};var a=J;function J(){this.INDEX_SEPARATOR="_"}a.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:a,deps:[],target:n.ɵɵFactoryTarget.Injectable}),a.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:a}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:a,decorators:[{type:h.Injectable}]});te.prototype.notifyLoaded=function(e){this.changes.next(e)};var ee=te;function te(){this.changes=new u.Subject}ee.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:ee,deps:[],target:n.ɵɵFactoryTarget.Injectable}),ee.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:ee}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:ee,decorators:[{type:h.Injectable}]});function ne(e,t){if(document.documentElement.contains(e))for(var n=e;null!==n&&1===n.nodeType;){if(we(n,t))return n;n=n.parentElement||n.parentNode}return null}function ie(){}function oe(e){return null==e}function re(e){return Array.isArray(e)}function se(e){return"boolean"==typeof e}function ae(e){var t="li.k-treeview-item";return p.isDocumentAvailable()?e.closest?e.closest(t):ne(e,t):null}function de(e){var t,n,i;return!!e.tagName&&(t=e.tagName.toLowerCase(),n="-1"===(i=e.getAttribute("tabIndex")),i=null!==i&&!n,Se.test(t)?!e.disabled&&!n:i)}function ce(e){if(p.isDocumentAvailable()){for(var t=e;t&&!we(t,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)t=t.parentNode;return t?we(t,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0}}function le(e){return m(ne(e,".k-treeview-leaf.k-treeview-load-more-button"))}function pe(e,t){return Boolean(function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}(e,function(e){return e===t}))}function he(e){return e.nativeElement.querySelector('li[tabindex="0"]')}function ue(e){return e?e.getAttribute("data-treeindex"):""}function ge(e){return(e||{}).index}function me(e,t){return!m(e)&&!m(t)||m(e)&&m(t)&&e.item.dataItem===t.item.dataItem}function c(e){return m(e)?e.item.dataItem:e}function fe(e){return e&&Array.isArray(e)&&0!==e.length}function ye(e,r,t,s,a){var d=t.operator,c=t.ignoreCase,l=t.mode,p=(void 0===a&&(a=0),"string"==typeof s?s:s[a]);e.forEach(function(e){var n,i,o,t=("string"==typeof d?(n=p,i=d,o=c,function(e,t){return Ne(Oe[i],o)(g.getter(n)(e),t)}):d)(e.dataItem,r);e.isMatch=t,e.visible=t,e.containsMatches=!1,t&&Te(e.parent),e.children&&0<e.children.length&&("strict"!==l&&t?Ve(e.children):ye(e.children,r,{operator:d,ignoreCase:c,mode:l},s,a+1))})}function ve(e,t){return[e,t].filter(function(e){return m(e)}).join("_")}function be(e,t){var n;return m(e)&&0!==e.children.length?(n=e.children,(n=m(t)?n.filter(t):n).forEach(function(e){return n=n.concat(be(e,t))}),n):[]}function Ie(e,t){return e.size===t.size&&Array.from(e).every(function(e){return t.has(e)})}function xe(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}function De(e){return e||{}}function ke(e){return(e||{}).children||[]}function Ce(e){if(Array.isArray(e)&&0!==e.length)for(var t=e.length-1;0<=t;--t){var n=e[t];if(n.visible)return n}return null}var Se=/^(?:a|input|select|option|textarea|button|object)$/i,we=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},m=function(e){return null!=e},Te=function(e){m(e)&&(e.containsMatches=!0,e.visible=!0,m(e.parent))&&!e.parent.containsMatches&&Te(e.parent)},Ve=function(e){e.forEach(function(e){e.visible=!0,e.children&&Ve(e.children)})},Oe={contains:function(e,t){return 0<=e.indexOf(t)},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return 0<=e.indexOf(t,e.length-t.length)},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},Ne=function(n,i){return function(e,t){return i?n(e.toLowerCase(),t.toLowerCase()):n(e,t)}},Ee=(d.prototype.firstVisibleNode=function(){return(this.nodes||[]).find(function(e){return e.visible})},d.prototype.lastVisibleNode=function(){for(var e=Ce(this.nodes);m(e)&&0<ke(e).length;){var t=ke(e),t=Ce(t);if(!m(t))return e;e=t}return e},d.prototype.closestNode=function(e){var t=De(this.findNode(e)).prev||this.firstVisibleNode();return(t||{}).index===e?this.visibleSibling(t,1):t},d.prototype.firstFocusableNode=function(){return this.nodes.find(function(e){return!e.disabled&&e.visible})},d.prototype.findNode=function(e){return this.find(e,this.nodes)},d.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},d.prototype.findVisibleChild=function(e){e=this.findNode(e);return ke(e).find(function(e){return e.visible})},d.prototype.findVisiblePrev=function(e){var e=e.index,t=this.findParent(e),n=this.ib.lastLevelIndex(e),i=this.container(t).slice(0,n).every(function(e){return!e.visible});if(0===n||i)return t;var n=this.findNode(e),o=this.visibleSibling(n,-1);if(o)for(var r=this.container(o);0<r.length&&r.some(function(e){return e.visible});)o=Ce(r),r=this.container(o);return o},d.prototype.findVisibleNext=function(e){var t=this.container(e),n=t.some(function(e){return e.visible});return 0!==t.length&&n?t.find(function(e){return e.visible}):this.visibleSibling(e,1)},d.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var r=this.ib.level(t),s=this.findParent(t);!s&&1!==r||this.insert({id:e,children:[],index:t,parent:s,disabled:n,loadMoreButton:i,visible:o},s)},d.prototype.unregisterItem=function(e,t){t=this.find(t,this.nodes);t&&t.id===e&&(e=this.container(t.parent)).splice(e.indexOf(t),1)},d.prototype.childLevel=function(e){e=e.filter(function(e){return m(e)});return e&&e.length?this.ib.level(e[0].index):1},d.prototype.container=function(e){return e?e.children:this.nodes},d.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),n=n===this.ib.level(e),t=t.find(function(e){return e&&e.index===i});return t?n?t:this.find(e,t.children):null},d.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},d.prototype.visibleSibling=function(e,t){if(!e)return null;for(var n=this.findParent(e.index),i=this.container(n),o=i.indexOf(e)+t,r=i[o];m(r);){if(r.visible)return r;r=i[o+=t]}return this.visibleSibling(n,t)},d);function d(){this.ib=new a,this.nodes=[]}Object.defineProperty(y.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"activeIndex",{get:function(){return ge(this.activeItem)||null},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&0<this.activeItem.children.length},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!1,configurable:!0}),y.prototype.activate=function(e,t){void 0===t&&(t=!1),this.navigable&&e&&!this.isActive(ge(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.shouldScroll=t,this.notifyMove())},y.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},y.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},y.prototype.activateClosest=function(e){e&&ge(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},y.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},y.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},y.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},y.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},y.prototype.notifyLoadMore=function(e){m(e)&&this.loadMore.next(e)},y.prototype.isActive=function(e){return!!e&&this.isFocused&&this.activeIndex===e},y.prototype.isFocusable=function(e){return ge(this.focusableItem)===e},y.prototype.isDisabled=function(e){return!!e&&this.model.findNode(e).disabled},y.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var r=this.model.findNode(t);m(r)&&(this.model.unregisterItem(r.id,r.index),this.isActive(t))&&this.deactivate(),this.model.registerItem(e,t,n,i,o)},y.prototype.updateItem=function(e,t,n){void 0===n&&(n=!0);var i=this.model.findNode(e);m(i)&&this.isActive(e)&&this.deactivate(),i.disabled=t,i.visible=n},y.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},y.prototype.move=function(e){var t;this.navigable&&(t=this.actions[e.keyCode])&&(t(e),e.preventDefault())},y.prototype.expand=function(e){var t=e.expand,e=e.intercept,n=ge(this.activeItem);n&&!e(n)&&this.notifyExpand(t)},y.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(ge(this.activeItem))),!0)},y.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(ge(this.activeItem))),!0)},y.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},y.prototype.notifyMove=function(){this.moves.next(this.navigationState())},y.prototype.navigationState=function(e){return{expand:e=void 0===e?!1:e,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}},y.prototype.handleEnter=function(e){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):!(e.ctrlKey||e.metaKey)&&"multiple"===this.selection?this.deselectAllButCurrentItem.next({dataItem:this.activeItem,index:this.activeIndex}):this.selectIndex(this.activeIndex))},y.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))};var f=y;function y(e){var t=this;this.localization=e,this.expands=new u.Subject,this.moves=new u.Subject,this.checks=new u.Subject,this.selects=new u.Subject,this.deselectAllButCurrentItem=new u.Subject,this.loadMore=new u.Subject,this.navigable=!0,this.selection="single",this.actions=((e={})[p.Keys.ArrowUp]=function(){return t.activate(t.model.findVisiblePrev(t.focusableItem),!0)},e[p.Keys.ArrowDown]=function(){return t.activate(t.model.findVisibleNext(t.focusableItem),!0)},e[p.Keys.ArrowLeft]=function(){return!t.isLoadMoreButton&&t.expand({expand:t.localization.rtl,intercept:t.localization.rtl?t.moveToFirstVisibleChild:t.moveToParent})},e[p.Keys.ArrowRight]=function(){return!t.isLoadMoreButton&&t.expand({expand:!t.localization.rtl,intercept:t.localization.rtl?t.moveToParent:t.moveToFirstVisibleChild})},e[p.Keys.Home]=function(){return t.activate(t.model.firstVisibleNode(),!0)},e[p.Keys.End]=function(){return t.activate(t.model.lastVisibleNode(),!0)},e[p.Keys.Enter]=function(e){return t.handleEnter(e)},e[p.Keys.Space]=function(){return t.handleSpace()},e),this.isFocused=!1,this.shouldScroll=!1,this._model=new Ee,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}f.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f,deps:[{token:L.LocalizationService}],target:n.ɵɵFactoryTarget.Injectable}),f.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:f,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:L.LocalizationService}]}});Fe.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})};var Me=Fe;function Fe(){this.changes=new u.Subject}Me.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Me,deps:[],target:n.ɵɵFactoryTarget.Injectable}),Me.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Me}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Me,decorators:[{type:h.Injectable}]});var v=function(e){this.templateRef=e},b=(v.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:v,deps:[{token:n.TemplateRef,optional:!0}],target:n.ɵɵFactoryTarget.Directive}),v.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:v,selector:"[kendoTreeViewNodeTemplate]",ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:v,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewNodeTemplate]"}]}],ctorParameters:function(){return[{type:n.TemplateRef,decorators:[{type:h.Optional}]}]}}),function(e){this.templateRef=e}),I=(b.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:b,deps:[{token:n.TemplateRef,optional:!0}],target:n.ɵɵFactoryTarget.Directive}),b.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"[kendoTreeViewLoadMoreButtonTemplate]",ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:b,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewLoadMoreButtonTemplate]"}]}],ctorParameters:function(){return[{type:n.TemplateRef,decorators:[{type:h.Optional}]}]}}),function(){}),Pe=(I.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:I,deps:[],target:n.ɵɵFactoryTarget.Injectable}),I.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:I}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:I,decorators:[{type:h.Injectable}]}),function(){}),x=(Pe.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Pe,deps:[],target:n.ɵɵFactoryTarget.Injectable}),Pe.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Pe}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Pe,decorators:[{type:h.Injectable}]}),Be.prototype.isFirstSelected=function(e){return this.firstIndex===e},Be.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},Be.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},Be);function Be(){this.changes=new u.Subject}x.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:x,deps:[],target:n.ɵɵFactoryTarget.Injectable}),x.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:x}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:x,decorators:[{type:h.Injectable}]});var Re=/\d+$/,D=(k.prototype.reset=function(){this.map.clear()},k.prototype.registerItem=function(e,t){t={children:[],item:e,parent:this.item(ge(t))};this.map.set(e.index,t)},k.prototype.registerChildren=function(e,t){e=this.item(e);e&&(e.children=t)},k.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent)&&n.parent.children&&(n.parent.children=n.parent.children.filter(function(e){return e.dataItem!==t}))},k.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},k.prototype.itemLookup=function(e){e=this.item(e);return e?{children:this.mapChildren(e.children),item:e.item,parent:e.parent}:null},k.prototype.hasItem=function(e){return this.map.has(e)},k.prototype.item=function(e){return this.map.get(e)||null},k.prototype.addToParent=function(e,t){var n;t&&(t=this.item(t.index),n=parseInt(Re.exec(e.index)[0],10),t.children=t.children||[],t.children.splice(n,0,e))},k.prototype.mapChildren=function(e){var i=this;return(e=void 0===e?[]:e).map(function(e){var e=i.item(e.index),t=e.item,n=e.parent,e=e.children;return{children:i.mapChildren(e),item:t,parent:n}})},k);function k(){this.map=new Map}D.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:D,deps:[],target:n.ɵɵFactoryTarget.Injectable}),D.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:D}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:D,decorators:[{type:h.Injectable}]});Object.defineProperty(Ae.prototype,"classWrapper",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"checkBoxClasses",{get:function(){return"k-checkbox "+(this.size?xe("checkbox",this.size):"")+" k-rounded-md"},enumerable:!1,configurable:!0}),Ae.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},Ae.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},Ae.prototype.handleChange=function(e){e=e.target.checked?"checked":"none";this.checkState=e,this.changeDetector.detectChanges(),this.checkStateChange.emit(e)};var C=Ae;function Ae(e,t,n){this.element=e,this.renderer=t,this.changeDetector=n,this.id="_"+p.guid(),this.tabindex=0,this.size="medium",this.checkStateChange=new h.EventEmitter,this.checkState="none"}C.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:C,deps:[{token:n.ElementRef},{token:n.Renderer2},{token:n.ChangeDetectorRef}],target:n.ɵɵFactoryTarget.Component}),C.ɵcmp=n.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"kendo-checkbox",inputs:{id:"id",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText",tabindex:"tabindex",size:"size"},outputs:{checkStateChange:"checkStateChange"},host:{properties:{"class.k-checkbox-wrapper":"this.classWrapper"}},ngImport:n,template:'\n <input\n type="checkbox"\n [class]="checkBoxClasses"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n role="none"\n [attr.aria-hidden]="\'true\'"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n ',isInline:!0}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:C,decorators:[{type:h.Component,args:[{selector:"kendo-checkbox",template:'\n <input\n type="checkbox"\n [class]="checkBoxClasses"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n role="none"\n [attr.aria-hidden]="\'true\'"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}]}],ctorParameters:function(){return[{type:n.ElementRef},{type:n.Renderer2},{type:n.ChangeDetectorRef}]},propDecorators:{classWrapper:[{type:h.HostBinding,args:["class.k-checkbox-wrapper"]}],id:[{type:h.Input}],isChecked:[{type:h.Input}],node:[{type:h.Input}],index:[{type:h.Input}],labelText:[{type:h.Input}],tabindex:[{type:h.Input}],size:[{type:h.Input}],checkStateChange:[{type:h.Output}]}});function je(e,t){return{dataItem:t,index:e}}var ze=0,S=(Object.defineProperty(w.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"treeItem",{get:function(){return je(this.index,this.dataItem)},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?je(this.parentIndex,this.parentDataItem):null},enumerable:!1,configurable:!0}),w.prototype.ngOnInit=function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.updateTabIndex()},w.prototype.ngOnChanges=function(e){var t=e.index;p.anyChanged(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),p.anyChanged(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},w.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,t){return t.unsubscribe(),e},[])},w.prototype.subscribe=function(){var t=this;this.subscriptions=[this.navigationService.moves.subscribe(function(e){t.updateTabIndex(),t.focusItem(e.shouldScroll)}),this.navigationService.expands.pipe(r.filter(function(e){return e.index===t.index&&!t.isDisabled})).subscribe(function(e){e=e.expand;return t.expand(e)})]},w.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},w.prototype.activateItem=function(){var e,t,n;this.isDisabled||(e=this.navigationService,t=this.selectionService,n=this.index,t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n))},w.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},w.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},w.prototype.focusItem=function(e){void 0===e&&(e=!1),this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!e})},w.prototype.moveLookupItem=function(e){var t=(e=void 0===e?{}:e).dataItem,n=e.index,i=e.parentDataItem,e=e.parentIndex;n&&n.firstChange||!t&&!n&&!i&&!e||(t=(n||{}).previousValue||this.index,this.lookupService.replaceItem(t,this.treeItem,this.parentTreeItem))},w.prototype.moveNavigationItem=function(e){var t=(e=void 0===e?{}:e).currentValue,n=e.firstChange,e=e.previousValue;!n&&m(t)&&m(e)&&(this.navigationService.unregisterItem(this.id,e),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},w.prototype.updateNodeAvailability=function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.updateItem(this.index,this.isDisabled,this.isVisible)},w.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},w.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},w.prototype.setAttribute=function(e,t){m(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},w);function w(e,t,n,i,o,r,s){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=o,this.renderer=r,this.ib=s,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=ze++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}S.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:S,deps:[{token:n.ElementRef},{token:s},{token:f},{token:x},{token:D},{token:n.Renderer2},{token:a}],target:n.ɵɵFactoryTarget.Directive}),S.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:S,selector:"[kendoTreeViewItem]",inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:S,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewItem]"}]}],ctorParameters:function(){return[{type:n.ElementRef},{type:s},{type:f},{type:x},{type:D},{type:n.Renderer2},{type:a}]},propDecorators:{dataItem:[{type:h.Input}],index:[{type:h.Input}],parentDataItem:[{type:h.Input}],parentIndex:[{type:h.Input}],role:[{type:h.Input}],loadOnDemand:[{type:h.Input}],checkable:[{type:h.Input}],selectable:[{type:h.Input}],expandable:[{type:h.Input}],isChecked:[{type:h.Input}],isDisabled:[{type:h.Input}],isVisible:[{type:h.Input}],isExpanded:[{type:h.Input}],isSelected:[{type:h.Input}]}});Object.defineProperty(Le.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!1,configurable:!0}),Le.prototype.ngOnInit=function(){var t=this,n=this.loadingService.changes.pipe(r.filter(function(e){return e===t.index}));this.subscription=this.expandService.changes.pipe(r.filter(function(e){return e.index===t.index}),r.tap(function(e){!e.expand&&t.loading&&(t.loading=!1)}),r.filter(function(e){return e.expand}),r.switchMap(function(e){return u.of(e).pipe(r.delay(100),r.takeUntil(n))})).subscribe(function(){return t.loading=!0}),this.subscription.add(n.subscribe(function(){return t.loading=!1}))},Le.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};var Ke=Le;function Le(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}Ke.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Ke,deps:[{token:s},{token:ee},{token:n.ChangeDetectorRef}],target:n.ɵɵFactoryTarget.Directive}),Ke.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ke,selector:"[kendoTreeViewLoading]",inputs:{index:["kendoTreeViewLoading","index"]},host:{properties:{"class.k-i-loading":"this.loading"}},ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Ke,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewLoading]"}]}],ctorParameters:function(){return[{type:s},{type:ee},{type:n.ChangeDetectorRef}]},propDecorators:{loading:[{type:h.HostBinding,args:["class.k-i-loading"]}],index:[{type:h.Input,args:["kendoTreeViewLoading"]}]}});He.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},He.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},He.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-focus")},He.prototype.updateSelectionClass=function(e){this.render(e,"k-selected")},He.prototype.render=function(e,t){this.renderer[e?"addClass":"removeClass"](this.element.nativeElement,t)};var _e=He;function He(e,t,n,i){var o=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=Y,this.subscriptions=new u.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(r.filter(function(e){return e===o.index})).subscribe(function(e){return o.selectionService.select(e,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))}))}_e.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:_e,deps:[{token:n.ElementRef},{token:f},{token:x},{token:n.Renderer2}],target:n.ɵɵFactoryTarget.Directive}),_e.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:_e,selector:"[kendoTreeViewItemContent]",inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:_e,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewItemContent]"}]}],ctorParameters:function(){return[{type:n.ElementRef},{type:f},{type:x},{type:n.Renderer2}]},propDecorators:{dataItem:[{type:h.Input}],index:[{type:h.Input}],initialSelection:[{type:h.Input}],isSelected:[{type:h.Input}]}});var Ge="k-treeview-top",Ze="k-treeview-mid",qe="k-treeview-bot",Xe=(Object.defineProperty(T.prototype,"moreNodesAvailable",{get:function(){return!(!m(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"pageSize",{get:function(){return m(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"data",{get:function(){var e;return m(this.pageSize)?(e=0<this.pageSize?this.pageSize:0,this._data.slice(0,e)):this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"hasTemplate",{get:function(){return m(this.nodeTemplateRef)},enumerable:!1,configurable:!0}),T.prototype.expandNode=function(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)},T.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},T.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},T.prototype.nodeText=function(e){var t=re(this.textField)?this.textField[0]:this.textField;return g.getter(t)(e)},T.prototype.ngOnDestroy=function(){m(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),m(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},T.prototype.ngOnInit=function(){var t=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(r.filter(function(e){return e===t.loadMoreButtonIndex})).subscribe(this.loadMoreNodes.bind(this)))},T.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},T.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(r.catchError(function(){return n.loadingService.notifyLoaded(t),u.EMPTY}),r.tap(function(){return n.loadingService.notifyLoaded(t)}))},Object.defineProperty(T.prototype,"nextFields",{get:function(){return re(this.textField)?1<this.textField.length?this.textField.slice(1):this.textField:[this.textField]},enumerable:!1,configurable:!0}),T.prototype.loadMoreNodes=function(){m(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},T.prototype.isItemDisabled=function(e,t){return this.disabled&&!this.disableParentNodesOnly||this.isDisabled(e,this.nodeIndex(t))},T.prototype.setItemClasses=function(e,t){return 1===e?this.parentIndex?qe:Ge+" "+qe:0===t?Ge:!(0<t&&t<e-1)&&t===this.totalNodesCount-1?qe:Ze},T.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},T.prototype.fetchMoreNodes=function(){var n=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,m(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(r.finalize(function(){return n.loadingMoreNodes=!1})).subscribe(function(e){var t;Array.isArray(e)&&0<e.length&&(t=n.loadMoreButtonIndex,n.pageSize+=e.length,n.data=n.data.concat(e),n.navigationService.isActive(t))&&(n.changeDetectorRef.detectChanges(),n.reselectItemAt(t))}))},T.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},T.prototype.mapToTreeItem=function(e){var n=this;return this.parentIndex?e.map(function(e,t){return{dataItem:e,index:n.nodeIndex(t)}}):[]},T.prototype.emitChildrenLoaded=function(e){this.parentIndex&&(e=e.filter(function(e){return e.dataItem}),this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},e))},T.prototype.subscribeToNodesChange=function(){var t=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(e){t.data=e,t.initialNodesLoaded=!0})},T.prototype.reselectItemAt=function(e){m(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},T.prototype.registerLoadedNodes=function(e){e=this.mapToTreeItem(e=void 0===e?[]:e);this.loadOnDemand&&this.setNodeChildren(e),this.emitChildrenLoaded(e)},T);function T(e,t,n,i,o,r,s,a){var d=this;this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=o,this.nodeChildrenService=r,this.dataChangeNotification=s,this.changeDetectorRef=a,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this.isItemExpandable=function(e,t){return d.expandDisabledNodes||!d.isItemDisabled(e,t)},this._data=[],this.singleRecordSubscriptions=new u.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return u.of([])},this.hasChildren=function(){return!1}}Xe.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Xe,deps:[{token:s},{token:ee},{token:a},{token:D},{token:f},{token:Me},{token:H},{token:n.ChangeDetectorRef}],target:n.ɵɵFactoryTarget.Component}),Xe.ɵcmp=n.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Xe,selector:"[kendoTreeViewGroup]",inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",disableParentNodesOnly:"disableParentNodesOnly",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",expandDisabledNodes:"expandDisabledNodes",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},host:{properties:{"class.k-treeview-group":"this.kGroupClass","attr.role":"this.role"}},usesOnChanges:!0,ngImport:n,template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="isItemDisabled(node, index)"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div [ngClass]="setItemClasses(data.length, index)">\n <span\n [class.k-disabled]="!isItemExpandable(node, index)"\n class="k-treeview-toggle"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n <span\n class="k-icon"\n [class.k-i-caret-alt-down]="isExpanded(node, nodeIndex(index))"\n [class.k-i-caret-alt-right]="!isExpanded(node, nodeIndex(index))"\n >\n </span>\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [class.k-disabled]="isItemDisabled(node, index)"\n [size]="size"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n [tabindex]="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-treeview-leaf"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n [class.k-disabled]="isItemDisabled(node, index)"\n >\n <span class="k-treeview-leaf-text">\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\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 [disabled]="isItemDisabled(node, index)"\n [expandDisabledNodes]="expandDisabledNodes"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n [disableParentNodesOnly]="disableParentNodesOnly"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-treeview-bot">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-caret-alt-right"\n >\n </span>\n <span\n class="k-treeview-leaf k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <span class="k-treeview-leaf-text">\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </span>\n </div>\n </li>\n ',isInline:!0,components:[{type:C,selector:"kendo-checkbox",inputs:["id","isChecked","node","index","labelText","tabindex","size"],outputs:["checkStateChange"]},{type:Xe,selector:"[kendoTreeViewGroup]",inputs:["checkboxes","expandIcons","disabled","selectable","touchActions","disableParentNodesOnly","loadOnDemand","trackBy","nodes","textField","parentDataItem","parentIndex","nodeTemplateRef","loadMoreButtonTemplateRef","loadMoreService","size","expandDisabledNodes","isChecked","isDisabled","isExpanded","isVisible","isSelected","children","hasChildren"]}],directives:[{type:o.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:S,selector:"[kendoTreeViewItem]",inputs:["dataItem","index","parentDataItem","parentIndex","role","loadOnDemand","checkable","selectable","expandable","isChecked","isDisabled","isVisible","isExpanded","isSelected"]},{type:o.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:o.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:Ke,selector:"[kendoTreeViewLoading]",inputs:["kendoTreeViewLoading"]},{type:_e,selector:"[kendoTreeViewItemContent]",inputs:["dataItem","index","initialSelection","isSelected"]},{type:o.NgSwitch,selector:"[ngSwitch]",inputs:["ngSwitch"]},{type:o.NgSwitchCase,selector:"[ngSwitchCase]",inputs:["ngSwitchCase"]},{type:o.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:o.NgSwitchDefault,selector:"[ngSwitchDefault]"}],animations:[t.trigger("toggle",[t.transition("void => *",[t.style({height:0}),t.animate("0.1s ease-in",t.style({height:"*"}))]),t.transition("* => void",[t.style({height:"*"}),t.animate("0.1s ease-in",t.style({height:0}))])])]}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Xe,decorators:[{type:h.Component,args:[{animations:[t.trigger("toggle",[t.transition("void => *",[t.style({height:0}),t.animate("0.1s ease-in",t.style({height:"*"}))]),t.transition("* => void",[t.style({height:"*"}),t.animate("0.1s ease-in",t.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="isItemDisabled(node, index)"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div [ngClass]="setItemClasses(data.length, index)">\n <span\n [class.k-disabled]="!isItemExpandable(node, index)"\n class="k-treeview-toggle"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n <span\n class="k-icon"\n [class.k-i-caret-alt-down]="isExpanded(node, nodeIndex(index))"\n [class.k-i-caret-alt-right]="!isExpanded(node, nodeIndex(index))"\n >\n </span>\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [class.k-disabled]="isItemDisabled(node, index)"\n [size]="size"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n [tabindex]="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-treeview-leaf"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n [class.k-disabled]="isItemDisabled(node, index)"\n >\n <span class="k-treeview-leaf-text">\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\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 [disabled]="isItemDisabled(node, index)"\n [expandDisabledNodes]="expandDisabledNodes"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n [disableParentNodesOnly]="disableParentNodesOnly"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-treeview-bot">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-caret-alt-right"\n >\n </span>\n <span\n class="k-treeview-leaf k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <span class="k-treeview-leaf-text">\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </span>\n </div>\n </li>\n '}]}],ctorParameters:function(){return[{type:s},{type:ee},{type:a},{type:D},{type:f},{type:Me},{type:H},{type:n.ChangeDetectorRef}]},propDecorators:{kGroupClass:[{type:h.HostBinding,args:["class.k-treeview-group"]}],role:[{type:h.HostBinding,args:["attr.role"]}],checkboxes:[{type:h.Input}],expandIcons:[{type:h.Input}],disabled:[{type:h.Input}],selectable:[{type:h.Input}],touchActions:[{type:h.Input}],disableParentNodesOnly:[{type:h.Input}],loadOnDemand:[{type:h.Input}],trackBy:[{type:h.Input}],nodes:[{type:h.Input}],textField:[{type:h.Input}],parentDataItem:[{type:h.Input}],parentIndex:[{type:h.Input}],nodeTemplateRef:[{type:h.Input}],loadMoreButtonTemplateRef:[{type:h.Input}],loadMoreService:[{type:h.Input}],size:[{type:h.Input}],expandDisabledNodes:[{type:h.Input}],isChecked:[{type:h.Input}],isDisabled:[{type:h.Input}],isExpanded:[{type:h.Input}],isVisible:[{type:h.Input}],isSelected:[{type:h.Input}],children:[{type:h.Input}],hasChildren:[{type:h.Input}]}});var t=[s,a,D,ee,Me,f,x,H,e.LocalizationService,{provide:e.L10N_PREFIX,useValue:"kendo.treeview"},{provide:I,useExisting:h.forwardRef(function(){return V})},{provide:Pe,useExisting:h.forwardRef(function(){return V})}],V=(Object.defineProperty(O.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"nodeTemplateRef",{get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"loadMoreButtonTemplateRef",{get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hasChildren",{get:function(){return this._hasChildren||Z},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isChecked",{get:function(){return this._isChecked||q},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isExpanded",{get:function(){return this._isExpanded||U},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"isSelected",{get:function(){return this._isSelected||Y},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"size",{get:function(){return this._size},set:function(e){var t=e||"medium";"none"!==this.size&&this.renderer.removeClass(this.element.nativeElement,xe("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,xe("treeview",t)),this._size=e},enumerable:!1,configurable:!0}),O.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),p.anyChanged(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},O.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})},O.prototype.ngOnInit=function(){var i=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(e){return i.childrenLoaded.emit(e)})),this.subscriptions.add(this.expandService.changes.subscribe(function(e){var t=e.index,n=e.dataItem;return(e.expand?i.expand:i.collapse).emit({index:t,dataItem:n})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(e){return i.checkedChange.emit(i.treeViewLookupService.itemLookup(e))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(e){p.hasObservers(i.selectionChange)&&i.ngZone.run(function(){i.selectionChange.emit(e)})})),this.element&&this.ngZone.runOutsideAngular(function(){i.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,xe("treeview",this.size))},O.prototype.blur=function(){var e;p.isDocumentAvailable()&&(e=he(this.element),document.activeElement===e)&&e.blur()},O.prototype.focus=function(e){e=e||ge(this.navigationService.focusableItem),this.navigationService.activateIndex(e),e=he(this.element);e&&e.focus()},O.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},O.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},O.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},O.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},O.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},O.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},O.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},O.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},O.prototype.focusHandler=function(e){var t,n=this;we(e.target,".k-treeview-item")?t=e.target:de(e.target)||(t=ae(e.target)),t&&(t=ue(e.target),this.navigationService.isDisabled(t)||(this.navigationService.activateIndex(t),!this.isActive&&p.hasObservers(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0))},O.prototype.blurHandler=function(e){var t=this;!this.isActive||!we(e.target,".k-treeview-item")||e.relatedTarget&&we(e.relatedTarget,".k-treeview-item")&&pe(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,p.hasObservers(this.onBlur)&&this.ngZone.run(function(){t.onBlur.emit()}))},O.prototype.clickHandler=function(t){var n,i=this,e=t.target;"contextmenu"===t.type&&!p.hasObservers(this.nodeClick)||"click"===t.type&&!p.hasObservers(this.nodeClick)&&!p.hasObservers(this.selectionChange)&&!le(e)||"dblclick"===t.type&&!p.hasObservers(this.nodeDblClick)||de(e)||!ce(e)&&!le(e)||!pe(e,this.element.nativeElement)||(n=ue(ae(e)))&&!this.navigationService.isDisabled(n)&&this.ngZone.run(function(){var e=i.treeViewLookupService.itemLookup(n);if("click"===t.type){if(i.navigationService.model.findNode(n).loadMoreButton)return void i.navigationService.notifyLoadMore(n);i.navigationService.selectIndex(n)}("dblclick"===t.type?i.nodeDblClick:i.nodeClick).emit({item:e.item,originalEvent:t,type:t.type})})},O.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run(function(){t.navigationService.move(e)})},O.prototype.verifyLoadMoreService=function(){if(h.isDevMode()&&!m(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},O.prototype.registerLookupItems=function(e,n){var i,o=this;void 0===n&&(n=null),m(e)&&0!==e.length&&(i=ge(n),e=e.map(function(e,t){return t=t,n=i,m(e=e)?{dataItem:e,index:ve(n,t)}:null;var n}),m(n)&&this.treeViewLookupService.registerChildren(i,e),e.forEach(function(t){o.treeViewLookupService.registerItem(t,n),o.hasChildren(t.dataItem)&&o.children(t.dataItem).subscribe(function(e){return o.registerLookupItems(e,t)})}))},O);function O(e,t,n,i,o,r,s,a,d,c,l){var p=this;this.element=e,this.changeDetectorRef=t,this.expandService=n,this.navigationService=i,this.nodeChildrenService=o,this.selectionService=r,this.treeViewLookupService=s,this.ngZone=a,this.renderer=d,this.dataChangeNotification=c,this.localization=l,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return p.data},this.childrenLoaded=new h.EventEmitter,this.onBlur=new h.EventEmitter,this.onFocus=new h.EventEmitter,this.expand=new h.EventEmitter,this.collapse=new h.EventEmitter,this.nodeDragStart=new h.EventEmitter,this.nodeDrag=new h.EventEmitter,this.filterStateChange=new h.EventEmitter,this.nodeDrop=new h.EventEmitter,this.nodeDragEnd=new h.EventEmitter,this.addItem=new h.EventEmitter,this.removeItem=new h.EventEmitter,this.checkedChange=new h.EventEmitter,this.selectionChange=new h.EventEmitter,this.filterChange=new h.EventEmitter,this.nodeClick=new h.EventEmitter,this.nodeDblClick=new h.EventEmitter,this.trackBy=Q,this.isDisabled=X,this.isVisible=$,this.navigable=!0,this.children=function(){return u.of([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.disableParentNodesOnly=!1,this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new u.BehaviorSubject([]),this._animate=!0,this._size="medium",this.subscriptions=new u.Subscription,this.domSubscriptions=[],R.validatePackage(_)}V.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:V,deps:[{token:n.ElementRef},{token:n.ChangeDetectorRef},{token:s},{token:f},{token:Me},{token:x},{token:D},{token:n.NgZone},{token:n.Renderer2},{token:H},{token:L.LocalizationService}],target:n.ɵɵFactoryTarget.Component}),V.ɵcmp=n.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:V,selector:"kendo-treeview",inputs:{filterInputPlaceholder:"filterInputPlaceholder",expandDisabledNodes:"expandDisabledNodes",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size",disableParentNodesOnly:"disableParentNodesOnly"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},host:{properties:{"class.k-treeview":"this.classNames","attr.role":"this.role","attr.dir":"this.direction","@.disabled":"this.animate"}},providers:t,queries:[{propertyName:"nodeTemplateQuery",first:!0,predicate:v,descendants:!0},{propertyName:"loadMoreButtonTemplateQuery",first:!0,predicate:b,descendants:!0}],viewQueries:[{propertyName:"assetsContainer",first:!0,predicate:["assetsContainer"],descendants:!0,read:h.ViewContainerRef,static:!0}],exportAs:["kendoTreeView"],usesOnChanges:!0,ngImport:n,template:'\n <span\n class="k-treeview-filter"\n *ngIf="filterable"\n >\n <kendo-textbox\n [size]="size"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-input-icon k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n </span>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [size]="size"\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 [disableParentNodesOnly]="disableParentNodesOnly"\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 [expandDisabledNodes]="expandDisabledNodes"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n ',isInline:!0,components:[{type:i.TextBoxComponent,selector:"kendo-textbox",inputs:["focusableId","title","disabled","readonly","tabindex","value","selectOnFocus","showSuccessIcon","showErrorIcon","clearButton","successIcon","errorIcon","clearButtonIcon","size","rounded","fillMode","tabIndex","placeholder","maxlength"],outputs:["valueChange","inputFocus","inputBlur","focus","blur"],exportAs:["kendoTextBox"]},{type:Xe,selector:"[kendoTreeViewGroup]",inputs:["checkboxes","expandIcons","disabled","selectable","touchActions","disableParentNodesOnly","loadOnDemand","trackBy","nodes","textField","parentDataItem","parentIndex","nodeTemplateRef","loadMoreButtonTemplateRef","loadMoreService","size","expandDisabledNodes","isChecked","isDisabled","isExpanded","isVisible","isSelected","children","hasChildren"]}],directives:[{type:o.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:i.TextBoxPrefixTemplateDirective,selector:"[kendoTextBoxPrefixTemplate]"}],changeDetection:n.ChangeDetectionStrategy.Default}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:V,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:t,selector:"kendo-treeview",template:'\n <span\n class="k-treeview-filter"\n *ngIf="filterable"\n >\n <kendo-textbox\n [size]="size"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-input-icon k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n </span>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [size]="size"\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 [disableParentNodesOnly]="disableParentNodesOnly"\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 [expandDisabledNodes]="expandDisabledNodes"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}]}],ctorParameters:function(){return[{type:n.ElementRef},{type:n.ChangeDetectorRef},{type:s},{type:f},{type:Me},{type:x},{type:D},{type:n.NgZone},{type:n.Renderer2},{type:H},{type:L.LocalizationService}]},propDecorators:{classNames:[{type:h.HostBinding,args:["class.k-treeview"]}],role:[{type:h.HostBinding,args:["attr.role"]}],direction:[{type:h.HostBinding,args:["attr.dir"]}],assetsContainer:[{type:h.ViewChild,args:["assetsContainer",{read:h.ViewContainerRef,static:!0}]}],filterInputPlaceholder:[{type:h.Input}],expandDisabledNodes:[{type:h.Input}],animate:[{type:h.Input},{type:h.HostBinding,args:["@.disabled"]}],childrenLoaded:[{type:h.Output}],onBlur:[{type:h.Output,args:["blur"]}],onFocus:[{type:h.Output,args:["focus"]}],expand:[{type:h.Output}],collapse:[{type:h.Output}],nodeDragStart:[{type:h.Output}],nodeDrag:[{type:h.Output}],filterStateChange:[{type:h.Output}],nodeDrop:[{type:h.Output}],nodeDragEnd:[{type:h.Output}],addItem:[{type:h.Output}],removeItem:[{type:h.Output}],checkedChange:[{type:h.Output}],selectionChange:[{type:h.Output}],filterChange:[{type:h.Output}],nodeClick:[{type:h.Output}],nodeDblClick:[{type:h.Output}],nodeTemplateQuery:[{type:h.ContentChild,args:[v,{static:!1}]}],nodeTemplateRef:[{type:h.Input,args:["nodeTemplate"]}],loadMoreButtonTemplateQuery:[{type:h.ContentChild,args:[b,{static:!1}]}],loadMoreButtonTemplateRef:[{type:h.Input,args:["loadMoreButtonTemplate"]}],trackBy:[{type:h.Input}],nodes:[{type:h.Input}],textField:[{type:h.Input}],hasChildren:[{type:h.Input}],isChecked:[{type:h.Input}],isDisabled:[{type:h.Input}],isExpanded:[{type:h.Input}],isSelected:[{type:h.Input}],isVisible:[{type:h.Input}],navigable:[{type:h.Input}],children:[{type:h.Input}],loadOnDemand:[{type:h.Input}],filterable:[{type:h.Input}],filter:[{type:h.Input}],size:[{type:h.Input}],disableParentNodesOnly:[{type:h.Input}]}});var Ue=function(e,t){return(Ue=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ye(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function $e(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Qe(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;Object.defineProperty(N.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"options",{get:function(){var e,t={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};return m(this.checkable)&&"string"!=typeof this.checkable?(e=se(this.checkable)?{enabled:this.checkable}:this.checkable,Object.assign(t,e)):t},enumerable:!1,configurable:!0}),N.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick()),p.isChanged("checkedKeys",e,!1)&&e.checkedKeys.currentValue!==this.lastChange&&(this.state=new Set(e.checkedKeys.currentValue))},N.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},N.prototype.isItemChecked=function(e,t){return this.checkKey?this.state.has(this.itemKey({dataItem:e,index:t}))?"checked":"none":this.isIndexChecked(t)},N.prototype.isIndexChecked=function(e){var i,t,n,o=Array.from(this.state).filter((i=e,function(e){return i===e||!!e.split&&e.split("_").reduce(function(e,t){var n=e.key,e=e.result;return i===(n+=t)||e?{result:!0}:{key:n+="_",result:!1}},{key:"",result:!1}).result}));return t=e,0<o.filter(function(e){return e===t}).length?"checked":(n=(e=this.options).mode,e=e.checkParents,"multiple"===n&&e&&o.length?"indeterminate":"none")},N.prototype.itemKey=function(e){return m(this.checkKey)?"string"==typeof this.checkKey&&m(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},N.prototype.check=function(e){var t=this.options,n=t.enabled,t=t.mode,t=this.checkActions[t]||ie;n&&t(e)},N.prototype.checkSingle=function(e){var e=this.itemKey(e.item),t=this.state.has(e);this.state.clear(),t||this.state.add(e),this.notify()},N.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},N.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe(function(e){"click"===e.type&&(e=t.treeView.itemLookup(e.item.index),t.check(e))}))},N.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},N.prototype.checkNode=function(e){var t,n,i,o=this;m(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)&&(t=this.itemKey(e.item),m(t))&&(n=[t],this.options.checkChildren&&(e=be(e,function(e){e=e.item;return o.treeView.disableParentNodesOnly||o.options.checkDisabledChildren?o.treeView.isVisible(e.dataItem,e.index):o.treeView.isVisible(e.dataItem,e.index)&&!o.treeView.isDisabled(e.dataItem,e.index)}),n.push.apply(n,Qe([],$e(e.filter(function(e){return o.options.checkDisabledChildren||!o.treeView.isDisabled(e.item.dataItem,e.item.index)}).map(function(e){e=e.item;return o.itemKey(e)}))))),i=!this.state.has(t),n.forEach(function(e){i?o.state.add(e):o.state.delete(e)}))},N.prototype.checkParents=function(e){var t=this;if(m(e))for(var n=e;n;){var i=this.itemKey(n.item),o=this.treeView.isDisabled(n.item.dataItem,n.item.index),r=n.children.every(function(e){return t.state.has(t.itemKey(e))});o&&!this.options.checkDisabledChildren||!r?this.state.delete(i):this.state.add(i),n=n.parent}},N.prototype.allChildrenSelected=function(e){var n=this;return e.every(function(e){var t=n.allChildrenSelected(e.children);return n.state.has(n.itemKey(e.item))&&t})},N.prototype.notify=function(){this.lastChange=Array.from(this.state),this.checkedKeysChange.emit(this.lastChange)},N.prototype.addCheckedItemsChildren=function(e){var t,n,i=this;m(e)&&0!==e.length&&(t=this.state.size,n=new Set,e.forEach(function(t){var e=i.itemKey(t.item);i.state.has(e)&&t.children.forEach(function(e){(!i.treeView.isDisabled(t.item.dataItem,t.item.index)&&!i.treeView.isDisabled(e.dataItem,e.index)||i.treeView.disableParentNodesOnly||i.options.checkDisabledChildren)&&i.state.add(i.itemKey(e)),i.treeView.disableParentNodesOnly&&!i.options.checkDisabledChildren&&i.treeView.isDisabled(e.dataItem,e.index)&&n.add(i.itemKey(e))})}),n.forEach(function(e){return i.state.delete(e)}),t!==this.state.size)&&this.zone.run(function(){return i.notify()})};e=N;function N(e,t){var n=this,i=(this.treeView=e,this.zone=t,this.checkedKeysChange=new h.EventEmitter,this.subscriptions=new u.Subscription,this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this.state=new Set,this.subscriptions.add(this.treeView.checkedChange.subscribe(function(e){return n.check(e)})),[]);this.subscriptions.add(this.treeView.childrenLoaded.pipe(r.filter(function(){return n.options.checkChildren&&n.treeView.loadOnDemand}),r.tap(function(e){return i.push(e)}),r.switchMap(function(){return n.zone.onStable.pipe(r.take(1))})).subscribe(function(){return n.addCheckedItemsChildren(i)})),this.treeView.isChecked=this.isItemChecked.bind(this)}e.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:e,deps:[{token:V},{token:n.NgZone}],target:n.ɵɵFactoryTarget.Directive}),e.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:e,selector:"[kendoTreeViewCheckable]",inputs:{isChecked:"isChecked",checkKey:["checkBy","checkKey"],checkedKeys:"checkedKeys",checkable:["kendoTreeViewCheckable","checkable"]},outputs:{checkedKeysChange:"checkedKeysChange"},usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:e,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewCheckable]"}]}],ctorParameters:function(){return[{type:V},{type:n.NgZone}]},propDecorators:{isChecked:[{type:h.Input}],checkKey:[{type:h.Input,args:["checkBy"]}],checkedKeys:[{type:h.Input}],checkable:[{type:h.Input,args:["kendoTreeViewCheckable"]}],checkedKeysChange:[{type:h.Output}]}});Object.defineProperty(We.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!1,configurable:!0}),We.prototype.ngOnChanges=function(e){e=(e=void 0===e?{}:e).disabledKeys;e&&!e.firstChange&&this.cdr.markForCheck()},We.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index};i=We;function We(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return-1<n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))}}i.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:i,deps:[{token:V},{token:n.ChangeDetectorRef}],target:n.ɵɵFactoryTarget.Directive}),i.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,selector:"[kendoTreeViewDisable]",inputs:{isDisabled:"isDisabled",disableKey:["kendoTreeViewDisable","disableKey"],disabledKeys:"disabledKeys"},usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:i,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewDisable]"}]}],ctorParameters:function(){return[{type:V},{type:n.ChangeDetectorRef}]},propDecorators:{isDisabled:[{type:h.Input}],disableKey:[{type:h.Input,args:["kendoTreeViewDisable"]}],disabledKeys:[{type:h.Input}]}});var Je={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},t=(Object.defineProperty(et.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!1,configurable:!0}),Object.defineProperty(et.prototype,"filterExpandSettings",{get:function(){var e=se(this.expandOnFilter)?{enabled:this.expandOnFilter}:Object.assign(Object.assign({},this.expandOnFilter),{enabled:!0});return Object.assign({},Je,e)},enumerable:!1,configurable:!0}),et.prototype.ngOnChanges=function(e){p.isChanged("expandedKeys",e,!1)&&e.expandedKeys.currentValue!==this.lastChange&&(this.state=new Set(e.expandedKeys.currentValue))},et.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},et.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},et.prototype.toggleExpand=function(e){var t=e.index,n=e.dataItem,e=e.expand,t=this.itemKey({index:t,dataItem:n}),n=this.state.has(t),i=!1;n&&!e?(this.state.delete(t),i=!0):!n&&e&&(this.state.add(t),i=!0),i&&this.notify()},et.prototype.handleAutoExpand=function(e){var n=this,t=e.nodes,i=e.matchCount,e=e.term;if(this.filterExpandSettings.enabled){var o=this.filterExpandSettings,r=o.maxAutoExpandResults,s=o.expandMatches,o=o.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=new Set(this.state)),this.isFiltered&&!e||-1!==r&&r<i){switch(o){case"initial":Ie(this.state,this.originalExpandedKeys)||(this.state=this.originalExpandedKeys,this.notify());break;case"all":this.state=new Set(t.reduce(function(e,t){return n.getEveryExpandKey(e,t),e},[])),this.notify();break;case"unchanged":break;default:0!==this.state.size&&(this.state.clear(),this.notify())}this.isFiltered=!1}else{e=new Set(t.reduce(function(e,t){return n.updateExpandedNodes(e,t,s),e},[]));Ie(this.state,e)||(this.state=e,this.notify()),this.isFiltered=!0}}},et.prototype.notify=function(){this.lastChange=Array.from(this.state),this.expandedKeysChange.emit(this.lastChange)},et);function et(e){var i=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new h.EventEmitter,this.subscriptions=new u.Subscription,this.state=new Set,this.originalExpandedKeys=new Set,this.isFiltered=!1,this.updateExpandedNodes=function(t,e,n){(e.containsMatches||e.isMatch&&n&&fe(e.children))&&t.push(i.itemKey({dataItem:e.dataItem,index:e.index})),fe(e.children)&&e.children.forEach(function(e){i.updateExpandedNodes(t,e,n)})},this.getEveryExpandKey=function(t,e){fe(e.children)&&t.push(i.itemKey({dataItem:e.dataItem,index:e.index})),fe(e.children)&&e.children.forEach(function(e){i.getEveryExpandKey(t,e)})},this.subscriptions.add(u.merge(this.component.expand.pipe(r.map(function(e){return Object.assign({expand:!0},e)})),this.component.collapse.pipe(r.map(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(e,t){return i.state.has(i.itemKey({dataItem:e,index:t}))}}t.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:t,deps:[{token:Pe}],target:n.ɵɵFactoryTarget.Directive}),t.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoTreeViewExpandable]",inputs:{isExpanded:"isExpanded",expandKey:["expandBy","expandKey"],expandOnFilter:"expandOnFilter",expandedKeys:"expandedKeys"},outputs:{expandedKeysChange:"expandedKeysChange"},usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:t,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewExpandable]"}]}],ctorParameters:function(){return[{type:Pe}]},propDecorators:{isExpanded:[{type:h.Input}],expandKey:[{type:h.Input,args:["expandBy"]}],expandOnFilter:[{type:h.Input}],expandedKeysChange:[{type:h.Output}],expandedKeys:[{type:h.Input}]}});Object.defineProperty(it.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!1,configurable:!0}),Object.defineProperty(it.prototype,"options",{get:function(){var e,t={enabled:!0,mode:"single"};return m(this.selection)&&"string"!=typeof this.selection?(e=se(this.selection)?{enabled:this.selection}:this.selection,Object.assign(t,e)):t},enumerable:!1,configurable:!0}),it.prototype.ngOnChanges=function(e){p.isChanged("selectedKeys",e,!1)&&e.selectedKeys.currentValue!==this.lastChange&&(this.state=new Set(e.selectedKeys.currentValue));var e="boolean"==typeof this.selection&&this.selection;this.navigationService.selection=e?"single":null==(e=this.selection)?void 0:e.mode},it.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},it.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},it.prototype.select=function(e){var t=this.options,n=t.enabled,t=t.mode,t=this.selectActions[t]||ie;n&&t(e)},it.prototype.selectSingle=function(e){e=this.itemKey(e);this.state.has(e)||(this.state.clear(),this.state.add(e),this.notify())},it.prototype.selectMultiple=function(e){var e=this.itemKey(e),t=this.state.has(e);m(e)&&(t?this.state.delete(e):this.state.add(e),this.notify())},it.prototype.notify=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)};var tt,nt=it;function it(e,t){var n=this;this.treeView=e,this.navigationService=t,this.selectedKeysChange=new h.EventEmitter,this.subscriptions=new u.Subscription,this.selectActions={multiple:function(e){return n.selectMultiple(e)},single:function(e){return n.selectSingle(e)}},this.state=new Set,this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,t){return n.state.has(n.itemKey({dataItem:e,index:t}))},this.navigationService.deselectAllButCurrentItem.subscribe(function(e){n.selectSingle(e)})}nt.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:nt,deps:[{token:V},{token:f}],target:n.ɵɵFactoryTarget.Directive}),nt.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:nt,selector:"[kendoTreeViewSelectable]",inputs:{isSelected:"isSelected",selectKey:["selectBy","selectKey"],selection:["kendoTreeViewSelectable","selection"],selectedKeys:"selectedKeys"},outputs:{selectedKeysChange:"selectedKeysChange"},host:{properties:{"attr.aria-multiselectable":"this.getAriaMultiselectable"}},usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:nt,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewSelectable]"}]}],ctorParameters:function(){return[{type:V},{type:f}]},propDecorators:{isSelected:[{type:h.Input}],selectKey:[{type:h.Input,args:["selectBy"]}],selection:[{type:h.Input,args:["kendoTreeViewSelectable"]}],selectedKeys:[{type:h.Input}],selectedKeysChange:[{type:h.Output}],getAriaMultiselectable:[{type:h.HostBinding,args:["attr.aria-multiselectable"]}]}}),l.DropAction=void 0,(E=l.DropAction||(l.DropAction={}))[E.Add=0]="Add",E[E.InsertTop=1]="InsertTop",E[E.InsertBottom=2]="InsertBottom",E[E.InsertMiddle=3]="InsertMiddle",E[E.Invalid=4]="Invalid",l.DropPosition=void 0,(E=l.DropPosition||(l.DropPosition={}))[E.Over=0]="Over",E[E.Before=1]="Before",E[E.After=2]="After",(E=tt=tt||{})[E.Up=-1]="Up",E[E.Down=1]="Down";ot.prototype.preventDefault=function(){this.prevented=!0},ot.prototype.isDefaultPrevented=function(){return this.prevented};var E=ot;function ot(){this.prevented=!1}Ye(at,rt=E),at.prototype.setValid=function(e){this.isValid=e};var rt,st=at;function at(e,t){var n=rt.call(this)||this;return n.isValid=!0,Object.assign(n,e),n.originalEvent=t,n}Ye(lt,dt=E);var dt,ct=lt;function lt(e){var t=dt.call(this)||this;return Object.assign(t,e),t}function pt(){}gt=!(ht=function(){var e,t;return!(!p.isDocumentAvailable()||!m(document.body))&&((e=document.createElement("div")).style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e),t=10!==e.children[0].getBoundingClientRect().top,document.body.removeChild(e),t)});var ht,ut,gt,mt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gt||(ut=ht.apply(void 0,Qe([],$e(e))),gt=!0),ut};function ft(e,t,n,i,o){if(m(e)&&m(t)&&m(i)&&m(o)){i=ne(t,".k-treeview-top, .k-treeview-mid, .k-treeview-bot");if(m(i)){var r=m(r=i)?we(r,s=".k-treeview-leaf:not(.k-treeview-load-more-button)")?r:r.querySelector(s):null,s=pe(i,ae(e));if(m(r)&&r!==e&&!s)return e=(i=r.getBoundingClientRect()).height/(ce(t)?4:2),(r=n-o.top)<(t=i.top-o.top)+e?l.DropPosition.Before:r>=t+i.height-e?l.DropPosition.After:l.DropPosition.Over}}}function yt(e,t){return m(e)&&m(t)&&(t=ae(t),t=ue(t),e=e.itemLookup(t),m(e))&&m(e.item.dataItem)?e:null}function vt(e,t,n){m(e)&&0===t.length&&n.isExpanded(e.item.dataItem,e.item.index)&&n.collapseNode(e.item.dataItem,e.item.index)}function bt(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)}function It(e){return p.isDocumentAvailable()&&m(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target}function xt(e,t){var n,i,o,r,s=e.split("_"),t=t.split("_");return!(s.length<t.length)&&(i=t.length-1,n=t.slice(0,i).join("_"),i=s.slice(0,i).join("_"),o=t.length-1,t=Number(t[o]),r=Number(s[o]),n===i)&&t<r?(s[o]=String(r-1),s.join("_")):e}function Dt(e,t,n){if(m(e)&&p.isDocumentAvailable())for(var i,o=e.scrollTop,r=t,s=0;o===e.scrollTop&&!(n===tt.Up&&Math.floor(e.scrollTop)<=0)&&!(n===tt.Down&&(i=e,Math.ceil(i.scrollTop)>=i.scrollHeight-i.clientHeight))&&s<20;)e.scrollTop+=r*n,r+=1,s+=1}function kt(e,t,n){m(e.loadMoreService)&&(t=e.getNodePageSize(t),e.setNodePageSize(n,t))}function Ct(e,t){var n;m(e.loadMoreService)&&(n=e.getNodePageSize(t),e.setNodePageSize(t,n+1))}function St(e,t){var n;m(e.loadMoreService)&&(n=e.getNodePageSize(t),e.setNodePageSize(t,n-1))}var wt=new RegExp("(auto|scroll)"),Tt=(Vt.prototype.add=function(e){var t,n,i=e.sourceItem,o=e.destinationItem,r=e.dropPosition,s=e.sourceTree,e=e.destinationTree,a=Object.assign({},c(i)),d=(r===l.DropPosition.Over?(bt(o,e),d=this.childrenFor(c(o)),t=m(e.loadMoreService)?Math.min(e.loadMoreService.getGroupSize(c(o)),d.length):d.length,d.splice(t,0,a),g.setter(this.hierarchyBinding.childrenField)(c(o),d),this.movedItemNewIndex=ve(o.item.index,t)):(d=this.getParentNodes(o,e),n=r===l.DropPosition.After?1:0,t=d.indexOf(c(o))+n,d.splice(t,0,a),n=o.parent?o.parent.item.index:null,this.movedItemNewIndex=ve(n,t)),r===l.DropPosition.Over?c(o):c(o.parent));Ct(e,d),kt(e,c(i),a),s===e||e.loadOnDemand||e.preloadChildNodes(),s!==e&&(e.changeDetectorRef.detectChanges(),e.focus(this.movedItemNewIndex))},Vt.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,e=e.destinationTree,i=this.getParentNodes(t,n),o=i.indexOf(c(t));i.splice(o,1),vt(t.parent,i,n),St(n,c(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===e&&(e.changeDetectorRef.detectChanges(),o=xt(this.movedItemNewIndex,t.item.index),e.focus(o))},Vt.prototype.getParentNodes=function(e,t){return m(e.parent)?this.childrenFor(c(e.parent)):t.nodes},Vt.prototype.childrenFor=function(e){return g.getter(this.hierarchyBinding.childrenField)(e)||[]},Vt);function Vt(e){this.hierarchyBinding=e}var Ot={operator:"contains",ignoreCase:!0,mode:"lenient"},E=(Object.defineProperty(Nt.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=Object.assign(Object.assign({},Ot),e)},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!1,configurable:!0}),Nt.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&ye(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),m(this.component.filterStateChange))&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings})},Nt.prototype.updateVisibleNodes=function(e){var t=this;e.forEach(function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)})},Nt.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach(function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)})},Nt);function Nt(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=Ot}E.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:E,deps:[{token:I}],target:n.ɵɵFactoryTarget.Directive}),E.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,inputs:{filterSettings:"filterSettings",filter:"filter"},ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:E,decorators:[{type:h.Directive}],ctorParameters:function(){return[{type:I}]},propDecorators:{filterSettings:[{type:h.Input}],filter:[{type:h.Input}]}});Object.defineProperty(Mt.prototype,"statusIconClass",{get:function(){switch(this.action){case l.DropAction.Add:return"k-i-plus";case l.DropAction.InsertTop:return"k-i-insert-top";case l.DropAction.InsertBottom:return"k-i-insert-bottom";case l.DropAction.InsertMiddle:return"k-i-insert-middle";default:l.DropAction.Invalid;return"k-i-cancel"}},enumerable:!1,configurable:!0}),Mt.prototype.detectChanges=function(){this.cdr.detectChanges()};var Et=Mt;function Mt(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}Et.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Et,deps:[{token:n.ChangeDetectorRef}],target:n.ɵɵFactoryTarget.Component}),Et.ɵcmp=n.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Et,selector:"kendo-treeview-drag-clue",host:{properties:{"class.k-header":"this.hostClasses","class.k-drag-clue":"this.hostClasses","style.position":"this.posistionStyle"}},ngImport:n,template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n ',isInline:!0,directives:[{type:o.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:o.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],changeDetection:n.ChangeDetectionStrategy.OnPush}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Et,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:n.ChangeDetectorRef}]},propDecorators:{hostClasses:[{type:h.HostBinding,args:["class.k-header"]},{type:h.HostBinding,args:["class.k-drag-clue"]}],posistionStyle:[{type:h.HostBinding,args:["style.position"]}]}});Object.defineProperty(Ft.prototype,"componentRef",{get:function(){if(m(this._componentRef))return this._componentRef;throw new Error("The `initalize` method must be called before calling other service methods.")},set:function(e){this._componentRef=e},enumerable:!1,configurable:!0}),Object.defineProperty(Ft.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!1,configurable:!0}),Ft.prototype.ngOnDestroy=function(){m(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},Ft.prototype.show=function(){this.element.style.display=""},Ft.prototype.hide=function(){this.element.style.display="none"},Ft.prototype.move=function(e,t,n){this.element.style.left=e+(n=void 0===n?0:n)+"px",this.element.style.top=t+n+"px"};var M=Ft;function Ft(){}M.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:M,deps:[],target:n.ɵɵFactoryTarget.Injectable}),M.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:M}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:M,decorators:[{type:h.Injectable}]});Ye(Rt,Pt=M),Rt.prototype.initialize=function(e,t){m(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(Et);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},Rt.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),Pt.prototype.ngOnDestroy.call(this)},Rt.prototype.move=function(e,t){Pt.prototype.move.call(this,e,t,10)},Rt.prototype.animateDragClueToElementPosition=function(e){var t,n=this;m(e)&&m(this.element.animate)?(e=e.getBoundingClientRect(),t=this.element.getBoundingClientRect(),this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(e.left-t.left)+"px, "+(e.top-t.top)+"px)"}],200),this.returnAnimation.onfinish=function(){return n.hide()}):this.hide()},Rt.prototype.cancelReturnAnimation=function(){m(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},Rt.prototype.updateDragClueData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&me(t,i.sourceItem)&&me(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},Rt.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},Rt.prototype.scrollIntoView=function(e){var t,n,i,o,r=e.step,e=e.interval,s=(this.cancelScroll(),function(e){for(;m(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,n=wt.test(getComputedStyle(e).overflowY);if(t&&n)return e;e=e.parentNode}return e}(this.element));m(s)&&(t=s.getBoundingClientRect(),n=this.element.getBoundingClientRect(),i=(o=Math.max(t.top,0))+n.height,o=o+Math.min(t.bottom,s.clientHeight),n.top<i?this.scrollInterval=setInterval(function(){return Dt(s,r,tt.Up)},e):n.bottom>o&&(this.scrollInterval=setInterval(function(){return Dt(s,r,tt.Down)},e)))},Rt.prototype.cancelScroll=function(){m(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)};var Pt,Bt=Rt;function Rt(e){var t=Pt.call(this)||this;return t.componentFactoryResolver=e,t}Bt.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Bt,deps:[{token:n.ComponentFactoryResolver}],target:n.ɵɵFactoryTarget.Injectable}),Bt.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Bt}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Bt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:n.ComponentFactoryResolver}]}});jt.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()};var At=jt;function jt(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}At.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:At,deps:[{token:n.ChangeDetectorRef}],target:n.ɵɵFactoryTarget.Component}),At.ɵcmp=n.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:At,selector:"kendo-treeview-drop-hint",host:{properties:{"class.k-drop-hint-container":"this.hostClass","style.position":"this.position","style.pointer-events":"this.pointerEvents"}},ngImport:n,template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n ',isInline:!0,directives:[{type:o.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:o.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],changeDetection:n.ChangeDetectionStrategy.OnPush}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:At,decorators:[{type:h.Component,args:[{changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n '}]}],ctorParameters:function(){return[{type:n.ChangeDetectorRef}]},propDecorators:{hostClass:[{type:h.HostBinding,args:["class.k-drop-hint-container"]}],position:[{type:h.HostBinding,args:["style.position"]}],pointerEvents:[{type:h.HostBinding,args:["style.pointer-events"]}]}});Ye(Lt,zt=M),Lt.prototype.initialize=function(e,t){m(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(At);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},Lt.prototype.updateDropHintData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&me(t,i.sourceItem)&&me(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())};var zt,Kt=Lt;function Lt(e){var t=zt.call(this)||this;return t.componentFactoryResolver=e,t}Kt.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Kt,deps:[{token:n.ComponentFactoryResolver}],target:n.ɵɵFactoryTarget.Injectable}),Kt.ɵprov=n.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Kt}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:Kt,decorators:[{type:h.Injectable}],ctorParameters:function(){return[{type:n.ComponentFactoryResolver}]}});var o=function(e){this.templateRef=e},M=(o.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:o,deps:[{token:n.TemplateRef,optional:!0}],target:n.ɵɵFactoryTarget.Directive}),o.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"[kendoTreeViewDragClueTemplate]",ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:o,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewDragClueTemplate]"}]}],ctorParameters:function(){return[{type:n.TemplateRef,decorators:[{type:h.Optional}]}]}}),function(e){this.templateRef=e}),_t=(M.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:M,deps:[{token:n.TemplateRef,optional:!0}],target:n.ɵɵFactoryTarget.Directive}),M.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:M,selector:"[kendoTreeViewDropHintTemplate]",ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:M,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewDropHintTemplate]"}]}],ctorParameters:function(){return[{type:n.TemplateRef,decorators:[{type:h.Optional}]}]}}),{enabled:!0,step:1,interval:1}),F=(Object.defineProperty(P.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},_t,e)},enumerable:!1,configurable:!0}),P.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},P.prototype.ngOnDestroy=function(){this.draggable.destroy()},P.prototype.handlePress=function(e){e=e.originalEvent;ce(e.target)&&(this.draggedItem=ne(e.target,".k-treeview-leaf"),this.pendingDragStartEvent=e)},P.prototype.handleDrag=function(e){var t,n,i,o,r,s,a=this,d=e.originalEvent,c=e.clientX,e=e.clientY;this.shouldInitiateDragStart({clientX:c,clientY:e})&&this.initiateDragStart(),m(this.draggedItem)&&!m(this.pendingDragStartEvent)&&(t=It(d),p.hasObservers(this.treeview.nodeDrag)&&this.zone.run(function(){return a.notifyDrag(d,t)}),s=this.getTargetTreeView(t),n=ft(this.draggedItem,t,e,s,this.containerOffset),i=ne(t,".k-treeview-top, .k-treeview-mid, .k-treeview-bot"),o=function(e,t){if(!m(e)||!m(t))return l.DropAction.Invalid;switch(e){case l.DropPosition.Over:return l.DropAction.Add;case l.DropPosition.Before:return m(ae(t).previousElementSibling)?l.DropAction.InsertMiddle:l.DropAction.InsertTop;case l.DropPosition.After:return m(ae(t).nextElementSibling)?l.DropAction.InsertMiddle:l.DropAction.InsertBottom;default:return l.DropAction.Invalid}}(n,t),r=yt(this.treeview,this.draggedItem),s=yt(s,t),this.updateDropHintState(n,i,o,r,s),this.updateDragClueState(o,c,e,r,s),this.scrollSettings.enabled)&&this.dragClueService.scrollIntoView(this.scrollSettings)},P.prototype.handleRelease=function(e){var t,n,i,o,r,s,a=this,d=e.originalEvent,e=e.clientY;this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!m(this.draggedItem)||m(this.pendingDragStartEvent)?this.pendingDragStartEvent=null:(t=It(d),n=this.treeview,i=this.getTargetTreeView(t),o=ft(this.draggedItem,t,e,this.getTargetTreeView(t),this.containerOffset),r=yt(n,this.draggedItem),s=yt(i,t),m(s)&&m(o)?this.zone.run(function(){return a.notifyDrop({sourceItem:r,destinationItem:s,dropPosition:o,sourceTree:n,destinationTree:i},d)}):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),p.hasObservers(this.treeview.nodeDragEnd)&&this.zone.run(function(){return a.notifyDragEnd({sourceItem:r,destinationItem:s,originalEvent:d})}),this.dropHintService.hide()),this.draggedItem=null},P.prototype.updateDropHintState=function(e,t,n,i,o){m(t)&&e!==l.DropPosition.Over&&m(e)?(t=t.getBoundingClientRect(),e=e===l.DropPosition.Before?t.top:t.top+t.height,this.dropHintService.updateDropHintData(n,i,o),this.dropHintService.move(t.left-this.containerOffset.left,e-this.containerOffset.top),this.dropHintService.show()):this.dropHintService.hide()},P.prototype.updateDragClueState=function(e,t,n,i,o){this.dragClueService.move(t-this.containerOffset.left,n-this.containerOffset.top),this.dragClueService.updateDragClueData(e,i,o),this.dragClueService.show()},P.prototype.initalizeDraggable=function(){var e=this;this.draggable=new z.Draggable({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})},P.prototype.notifyDragStart=function(e,t){t=yt(this.treeview,t),t=new ct({sourceItem:t,originalEvent:e});return this.treeview.nodeDragStart.emit(t),t},P.prototype.notifyDrag=function(e,t){t={sourceItem:yt(this.treeview,this.draggedItem),destinationItem:yt(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(t)},P.prototype.notifyDrop=function(e,t){var n=new st(e,t);e.destinationTree.nodeDrop.emit(n),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!n.isDefaultPrevented()&&n.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):n.isDefaultPrevented()?this.dragClueService.hide():n.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},P.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},P.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,n=ne(e,t);return Qe([this.treeview],$e(this.dropZoneTreeViews)).find(function(e){return m(e)&&e.element.nativeElement===n})},P.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular(function(){return setTimeout(function(){return e.animate=!0})}))},P.prototype.shouldInitiateDragStart=function(e){return!!m(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},P.prototype.initiateDragStart=function(){var e=this;if(p.hasObservers(this.treeview.nodeDragStart)&&this.zone.run(function(){return e.notifyDragStart(e.pendingDragStartEvent,It(e.pendingDragStartEvent))}).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=function(e){if(!e||!mt())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;return t?{left:(e=t.getBoundingClientRect()).left-t.scrollLeft,top:e.top-t.scrollTop}:{left:0,top:0}}(this.draggedItem),this.pendingDragStartEvent=null},P);function P(e,t,n,i,o){this.element=e,this.zone=t,this.treeview=n,this.dragClueService=i,this.dropHintService=o,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}F.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:F,deps:[{token:n.ElementRef},{token:n.NgZone},{token:V},{token:Bt},{token:Kt}],target:n.ɵɵFactoryTarget.Directive}),F.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"[kendoTreeViewDragAndDrop]",inputs:{allowCopy:"allowCopy",dropZoneTreeViews:"dropZoneTreeViews",startDragAfter:"startDragAfter",autoScroll:"autoScroll"},host:{properties:{"style.user-select":"this.userSelectStyle","style.-ms-user-select":"this.userSelectStyle","style.-moz-user-select":"this.userSelectStyle","style.-webkit-user-select":"this.userSelectStyle"}},providers:[Bt,Kt],queries:[{propertyName:"dragClueTemplate",first:!0,predicate:o,descendants:!0},{propertyName:"dropHintTemplate",first:!0,predicate:M,descendants:!0}],ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:F,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewDragAndDrop]",providers:[Bt,Kt]}]}],ctorParameters:function(){return[{type:n.ElementRef},{type:n.NgZone},{type:V},{type:Bt},{type:Kt}]},propDecorators:{allowCopy:[{type:h.Input}],dropZoneTreeViews:[{type:h.Input}],startDragAfter:[{type:h.Input}],autoScroll:[{type:h.Input}],dragClueTemplate:[{type:h.ContentChild,args:[o,{static:!1}]}],dropHintTemplate:[{type:h.ContentChild,args:[M,{static:!1}]}],userSelectStyle:[{type:h.HostBinding,args:["style.user-select"]},{type:h.HostBinding,args:["style.-ms-user-select"]},{type:h.HostBinding,args:["style.-moz-user-select"]},{type:h.HostBinding,args:["style.-webkit-user-select"]}]}});function Ht(e,i,o,r){return void 0===o&&(o=null),void 0===r&&(r=""),fe(e)?e.map(function(e,t){var t=Zt.nodeIndex(t.toString(),r),n={dataItem:e,index:t,parent:o,visible:!0};return n.children=Ht(g.getter(i)(e),i,n,t),n}):[]}var Gt,Zt=new a,qt=(Ye(Xt,Gt=E),Object.defineProperty(Xt.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!1,configurable:!0}),Object.defineProperty(Xt.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!1,configurable:!0}),Xt.prototype.ngOnInit=function(){var t=this;m(this.childrenField)&&(this.component.children=function(e){return u.of(g.getter(t.childrenField)(e))},this.component.hasChildren=function(e){e=g.getter(t.childrenField)(e);return Boolean(e&&e.length)},this.component.editService=new Tt(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand)&&m(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Xt.prototype.ngOnChanges=function(e){p.isChanged("childrenField",e,!1)&&(this.nodes=this.originalData,this.updateNodes(this.originalData)),p.isChanged("nodes",e,!1)&&this.updateNodes(e.nodes.currentValue),p.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&m(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},Xt.prototype.updateNodes=function(e){this.originalData=e||[],this.filterData=Ht(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},Xt);function Xt(e,t){var n=Gt.call(this,e)||this,e=(n.component=e,n.dragAndDropDirective=t,n.loadOnDemand=!0,n.originalData=[],!m(n.dragAndDropDirective));return n.component.isVisible=e?function(e){return n.visibleNodes.has(e)}:$,n}qt.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:qt,deps:[{token:I},{token:F,host:!0,optional:!0}],target:n.ɵɵFactoryTarget.Directive}),qt.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:qt,selector:"[kendoTreeViewHierarchyBinding]",inputs:{childrenField:"childrenField",nodes:"nodes",isVisible:"isVisible",loadOnDemand:"loadOnDemand"},usesInheritance:!0,usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:qt,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewHierarchyBinding]"}]}],ctorParameters:function(){return[{type:I},{type:F,decorators:[{type:h.Optional},{type:h.Host}]}]},propDecorators:{childrenField:[{type:h.Input}],nodes:[{type:h.Input}],isVisible:[{type:h.Input}],loadOnDemand:[{type:h.Input}]}});Yt.prototype.add=function(e){var t,n,i=e.sourceItem,o=e.destinationItem,r=e.dropPosition,s=e.sourceTree,e=e.destinationTree,a=Object.assign({},c(i)),d=(r===l.DropPosition.Over?(bt(o,e),t=g.getter(this.flatBinding.idField)(c(o)),g.setter(this.flatBinding.parentIdField)(a,t),t=this.getLastVisibleChildNodeIndex(e,this.flatBinding.originalData,c(o))+1,this.flatBinding.originalData.splice(t,0,a),this.rebindData(),n=this.fetchChildNodes(c(o),e).indexOf(a),this.movedItemNewIndex=ve(o.item.index,n)):(d=r===l.DropPosition.After?1:0,t=this.flatBinding.originalData.indexOf(c(o))+d,this.flatBinding.originalData.splice(t,0,a),d=g.getter(this.flatBinding.parentIdField)(c(o)),g.setter(this.flatBinding.parentIdField)(a,d),this.rebindData(),t=o.parent?o.parent.item.index:null,n=(o.parent?this.fetchChildNodes(c(o.parent),e):e.nodes).indexOf(a),this.movedItemNewIndex=ve(t,n)),s!==e&&this.addChildNodes(a,s),r===l.DropPosition.Over?c(o):c(o.parent));Ct(e,d),kt(e,c(i),a),s===e||e.loadOnDemand||e.preloadChildNodes(),s!==e&&(e.changeDetectorRef.detectChanges(),e.focus(this.movedItemNewIndex))},Yt.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,e=e.destinationTree,i=c(t),o=this.flatBinding.originalData.indexOf(i),o=(this.flatBinding.originalData.splice(o,1),n!==e&&this.removeChildNodes(i,n),this.rebindData(),t.parent?t.parent.children:[]);vt(t.parent,o,n),St(n,c(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===e&&(e.changeDetectorRef.detectChanges(),i=xt(this.movedItemNewIndex,t.item.index),e.focus(i))},Yt.prototype.addChildNodes=function(e,t){e=this.fetchAllDescendantNodes(e,t);(t=this.flatBinding.originalData).push.apply(t,Qe([],$e(e)))},Yt.prototype.removeChildNodes=function(e,t){var n=this;this.fetchAllDescendantNodes(e,t).forEach(function(e){e=n.flatBinding.originalData.indexOf(e);n.flatBinding.originalData.splice(e,1)})},Yt.prototype.fetchAllDescendantNodes=function(e,t){var n=this,i=this.fetchChildNodes(e,t);return i.forEach(function(e){return i=i.concat(n.fetchAllDescendantNodes(e,t)||[])}),i},Yt.prototype.fetchChildNodes=function(e,t){var n;return e?(n=[],t.children(e).pipe(r.take(1)).subscribe(function(e){return n=n.concat(e||[])}),n):[]},Yt.prototype.getLastVisibleChildNodeIndex=function(e,t,n){var i;return m(e.loadMoreService)&&e.hasChildren(n)?(i=e.loadMoreService.getGroupSize(n),e=(n=this.fetchChildNodes(n,e).slice(0,i))[n.length-1],t.indexOf(e)):t.length},Yt.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData,this.flatBinding.updateNodes(this.flatBinding.originalData)};var Ut=Yt;function Yt(e){this.flatBinding=e}function $t(t,e,n){return e.filter(function(e){return t(e)===n})}function Qt(e,i,o,r,s,a){return void 0===s&&(s=null),void 0===a&&(a=""),fe(e)?e.map(function(e,t){var t=Jt.nodeIndex(t.toString(),a),n={dataItem:e,index:t,parent:s,visible:!0};return n.children=Qt($t(g.getter(o),i||[],g.getter(r)(e)),i,o,r,n,t),n}):[]}var Wt,Jt=new a,E=(Ye(en,Wt=E),Object.defineProperty(en.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!1,configurable:!0}),en.prototype.ngOnInit=function(){var t,n=this;m(this.parentIdField)&&m(this.idField)&&(t=function(e){return $t(g.getter(n.parentIdField),n.originalData||[],g.getter(n.idField)(e))},this.component.hasChildren=function(e){return 0<t(e).length},this.component.children=function(e){return u.of(t(e))},this.component.editService=new Ut(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand)&&m(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},en.prototype.ngOnChanges=function(e){p.isChanged("parentIdField",e,!1)&&(this.nodes=this.originalData,this.updateNodes(this.originalData)),p.isChanged("nodes",e,!1)&&this.updateNodes(e.nodes.currentValue),p.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&m(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},en.prototype.updateNodes=function(e){this.originalData=e||[],e=this.parentIdField,oe(e)||0===e.trim().length?this.component.nodes=this.originalData.slice(0):(e=g.getter(this.parentIdField),this.component.nodes=this.originalData.filter(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(oe,e)),this.filterData=Qt(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData))},en);function en(e){var t=Wt.call(this,e)||this;return t.component=e,t.loadOnDemand=!0,t.originalData=[],t.component.isVisible=function(e){return t.visibleNodes.has(e)},t}E.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:E,deps:[{token:I}],target:n.ɵɵFactoryTarget.Directive}),E.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"[kendoTreeViewFlatDataBinding]",inputs:{nodes:"nodes",parentIdField:"parentIdField",idField:"idField",loadOnDemand:"loadOnDemand",isVisible:"isVisible"},usesInheritance:!0,usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:E,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewFlatDataBinding]"}]}],ctorParameters:function(){return[{type:I}]},propDecorators:{nodes:[{type:h.Input}],parentIdField:[{type:h.Input}],idField:[{type:h.Input}],loadOnDemand:[{type:h.Input}],isVisible:[{type:h.Input}]}});var B=[C],tn=function(){},C=(tn.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:tn,deps:[],target:n.ɵɵFactoryTarget.NgModule}),tn.ɵmod=n.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:tn,declarations:[C],exports:[C]}),tn.ɵinj=n.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:tn}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:tn,decorators:[{type:h.NgModule,args:[{declarations:[B],exports:[B]}]}]}),Object.defineProperty(nn.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!1,configurable:!0}),nn.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},nn.prototype.handleAdd=function(e){if(!m(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},nn.prototype.handleRemove=function(e){if(!m(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},nn);function nn(e){this.treeview=e,this.subscriptions=new u.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}C.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:C,deps:[{token:V}],target:n.ɵɵFactoryTarget.Directive}),C.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"[kendoTreeViewDragAndDropEditing]",inputs:{editService:"editService"},ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:C,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewDragAndDropEditing]"}]}],ctorParameters:function(){return[{type:V}]},propDecorators:{editService:[{type:h.Input}]}});var on="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",B=(Object.defineProperty(rn.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!1,configurable:!0}),rn.prototype.ngOnChanges=function(){this.verifySettings()},rn.prototype.verifySettings=function(){if(h.isDevMode()){if(!m(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+on+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(m(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+on+".");if(m(e)&&!m(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+on+".")}},rn.prototype.getGroupSize=function(e){e=e||this.rootLevelId;return this.pageSizes.has(e)?this.pageSizes.get(e):this.pageSize},rn.prototype.setGroupSize=function(e,t){e=e||this.rootLevelId;this.pageSizes.set(e,0<t?t:0)},rn.prototype.getTotalNodesCount=function(e,t){return m(e)&&m(this.totalField)?e[this.totalField]:!m(e)&&m(this.totalRootNodes)?this.totalRootNodes:t},rn.prototype.getInitalPageSize=function(){return this.pageSize},rn);function rn(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=p.guid(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}B.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:B,deps:[{token:V}],target:n.ɵɵFactoryTarget.Directive}),B.ɵdir=n.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:B,selector:"[kendoTreeViewLoadMore]",inputs:{loadMoreNodes:["kendoTreeViewLoadMore","loadMoreNodes"],pageSize:"pageSize",totalRootNodes:"totalRootNodes",totalField:"totalField"},usesOnChanges:!0,ngImport:n}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:B,decorators:[{type:h.Directive,args:[{selector:"[kendoTreeViewLoadMore]"}]}],ctorParameters:function(){return[{type:V}]},propDecorators:{loadMoreNodes:[{type:h.Input,args:["kendoTreeViewLoadMore"]}],pageSize:[{type:h.Input}],totalRootNodes:[{type:h.Input}],totalField:[{type:h.Input}]}});var sn=[V,Xe,S,_e,v,e,i,t,nt,qt,Ke,E,F,o,Et,M,At,C,B,b],an=function(){},Xe=(an.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:an,deps:[],target:n.ɵɵFactoryTarget.NgModule}),an.ɵmod=n.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:an,declarations:[V,Xe,S,_e,v,e,i,t,nt,qt,Ke,E,F,o,Et,M,At,C,B,b],imports:[j.CommonModule,tn,A.InputsModule],exports:[V,Xe,S,_e,v,e,i,t,nt,qt,Ke,E,F,o,Et,M,At,C,B,b]}),an.ɵinj=n.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:an,imports:[[j.CommonModule,tn,A.InputsModule]]}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:an,decorators:[{type:h.NgModule,args:[{declarations:[sn],exports:[sn],imports:[j.CommonModule,tn,A.InputsModule],entryComponents:[Et,At]}]}]}),[V,v,e,i,t,nt,qt,E,F,o,M,C,B,b]),S=function(){};S.ɵfac=n.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:S,deps:[],target:n.ɵɵFactoryTarget.NgModule}),S.ɵmod=n.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:S,imports:[an],exports:[V,v,e,i,t,nt,qt,E,F,o,M,C,B,b]}),S.ɵinj=n.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:S,imports:[[an]]}),n.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:n,type:S,decorators:[{type:h.NgModule,args:[{exports:[Xe],imports:[an]}]}]}),l.CheckDirective=e,l.DataBoundComponent=I,l.DisableDirective=i,l.DragAndDropDirective=F,l.DragAndDropEditingDirective=C,l.DragClueService=Bt,l.DragClueTemplateDirective=o,l.DropHintService=Kt,l.DropHintTemplateDirective=M,l.ExpandDirective=t,l.ExpandableComponent=Pe,l.FlatDataBindingDirective=E,l.HierarchyBindingDirective=qt,l.LoadMoreButtonTemplateDirective=b,l.LoadMoreDirective=B,l.NodeTemplateDirective=v,l.SelectDirective=nt,l.TreeItemDragEvent=pt,l.TreeItemDragStartEvent=ct,l.TreeItemDropEvent=st,l.TreeViewComponent=V,l.TreeViewModule=S,Object.defineProperty(l,"__esModule",{value:!0})});
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
package/esm2015/size.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,UAAU,EACnB,gBAAgB,EAAE;YACd,gCAAgC;YAChC,iCAAiC,EAAE,QAAQ;YAC3C,gCAAgC,EAAE,QAAQ;YAC1C,8BAA8B,EAAE,QAAQ;YACxC,+BAA+B,EAAE,QAAQ;YACzC,yBAAyB,EAAE,QAAQ;SACtC,GACJ,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AAhBD,4BAgBC"}
|