@progress/kendo-angular-pivotgrid 0.2.1-dev.202209131330 → 1.0.0

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.
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@progress/kendo-pivotgrid-common"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-angular-indicators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-buttons"),require("@angular/animations"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("@progress/kendo-angular-inputs")):"function"==typeof define&&define.amd?define("KendoAngularPivotgrid",["exports","@angular/core","@progress/kendo-licensing","@progress/kendo-angular-common","@progress/kendo-pivotgrid-common","rxjs","rxjs/operators","@progress/kendo-angular-l10n","@angular/common","@progress/kendo-angular-indicators","@progress/kendo-angular-popup","@progress/kendo-angular-treeview","@progress/kendo-angular-buttons","@angular/animations","@angular/forms","@progress/kendo-angular-dropdowns","@progress/kendo-angular-inputs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularPivotgrid={},e.ng.core,e.KendoLicensing,e.KendoAngularCommon,e.KendoPivotgridCommon,e.rxjs,e.rxjs.operators,e.KendoAngularL10N,e.ng.common,e.KendoAngularIndicators,e.KendoAngularPopup,e.KendoAngularTreeview,e.KendoAngularButtons,e.ng.animations,e.ng.forms,e.i1$2,e.KendoAngularInputs)}(this,function(e,r,V,l,p,s,R,t,n,B,o,j,H,i,G,z,q){"use strict";function a(n){var o;return n&&n.__esModule?n:(o=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),o.default=n,Object.freeze(o))}var c=a(r),_=a(l),d=a(t),u=a(n),g=a(B),W=a(o),o=a(j),m=a(H),f=a(G),Z=a(z),h=a(q),K={name:"@progress/kendo-angular-pivotgrid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1663075778,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"},U=function(e,t){return(U=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 $(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}U(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function X(e,a,s,l){return new(s=s||Promise)(function(n,t){function o(e){try{i(l.next(e))}catch(e){t(e)}}function r(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,r)}i((l=l.apply(e,a||[])).next())})}function Y(o,r){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=r.call(o,l)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Object.create;function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function y(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}Object.create;function Q(e){return null!=e}function J(e,t,n,o){(e="Y"===o?-ie(e,o):ie(e,o))&&(t[0][n]=t[1][n]+=e)}function ee(e,t){n=ae(a=e),i=n.clientTop,n=n.clientLeft,o=se(a),r=o.pageYOffset,o=o.pageXOffset;var n,o,r={top:(a=a.getBoundingClientRect()).top+r-i,left:a.left+o-n},i=e.offsetWidth,a=e.offsetHeight;return{left:r.left+(t?0:i),top:r.top+a/2,height:a}}function te(e,n,o){return e.reduce(function(e,t){return n(t)?y(y([],v(e)),[o(t)]):e},[])}function ne(e,t,n){return e.replace(new RegExp("{\\s*"+t+"\\s*}","g"),n)}var oe=/^\s*$/,re=function(e){return null==e},ie=function(e,t){var n=e["wheelDelta"+t];return e.wheelDelta&&(void 0===n||n)?e.wheelDelta:e.detail&&e.axis===e["X"===t?"HORIZONTAL_AXIS":"VERTICAL_AXIS"]?10*-e.detail:0},ae=function(e){return e.ownerDocument.documentElement},se=function(e){return e.ownerDocument.defaultView},le=function(e){return e?new Date(e.getTime()):null};function pe(e){var t={};return ce(e,t),t}function ce(e,t){for(var n in e){var o;e.hasOwnProperty(n)&&(o=e[n],t[n]=de(o,t[n]))}}function de(e,t){return Array.isArray(e)?ue(e):e instanceof Date?le(e):e&&"object"==typeof e?(ce(e,t=t||{}),t):e}function ue(e){return e.map(function(e){return de(e,void 0)})}var ge=0,b=(me.prototype.updateRowsAndCols=function(){var n=this,e=p.toTree((this.rows||[]).slice()),e=v(p.toRows(e),4),t=e[0],o=e[1],r=e[2],e=e[3],i=p.toTree((this.columns||[]).slice()),i=v(p.toColumns(i),3),a=i[0],s=i[1],i=i[2];this.columnHeaderLeaves=s,this.columnHeaderCols.next(s),this.columnHeaderRows.next(a),this.rowHeaderLeaves=o,this.rowHeaderCols.next(new Array(e).fill({})),this.rowHeaderRows.next(t),this.valuesRows.next(p.toData((this.normalizedData||[]).slice(),s,o,i,r)),l.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){setTimeout(function(){return e=n.wrapper,t=e.querySelectorAll(".k-pivotgrid-row-headers .k-pivotgrid-row"),o=e.querySelectorAll(".k-pivotgrid-column-headers th"),r=e.querySelectorAll(".k-pivotgrid-values td"),t.forEach(function(e,t){var n=te(Array.from(r),function(e){return e.getAttribute("id").split("-")[4]===(t+1).toString()},function(e){return e.getAttribute("id")});e.setAttribute("aria-owns",n.join(" "))}),void r.forEach(function(e){var n=+e.getAttribute("id").split("-")[5],t=te(Array.from(o),function(e){var t=+e.getAttribute("id").split("-")[5],e=+e.getAttribute("colspan");return n==t||1<e&&n<=t+e-1},function(e){return e.getAttribute("id")});e.setAttribute("aria-describedby",t.join(" "))});var e,t,o,r})})},me);function me(e){this.ngZone=e,this.expandedStateChange=new r.EventEmitter,this.configuratorFieldChange=new r.EventEmitter,this.expandedFieldChange=new r.EventEmitter,this.columnHeaderRows=new s.BehaviorSubject([]),this.columnHeaderCols=new s.BehaviorSubject([]),this.rowHeaderCols=new s.BehaviorSubject([]),this.rowHeaderRows=new s.BehaviorSubject([]),this.valuesRows=new s.BehaviorSubject([]),this.loading=new s.BehaviorSubject(!1),this.fields=new s.BehaviorSubject([]),this.configuredFields=new s.BehaviorSubject([]),this.pivotGridId=ge++}b.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b,deps:[{token:c.NgZone}],target:c.ɵɵFactoryTarget.Injectable}),b.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:c.NgZone}]},propDecorators:{expandedStateChange:[{type:r.Output}],configuratorFieldChange:[{type:r.Output}],expandedFieldChange:[{type:r.Output}]}});fe.prototype.get=function(e){return this.localization.get(e)},Object.defineProperty(fe.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!1,configurable:!0});var k=fe;function fe(e){this.localization=e}k.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,deps:[{token:d.LocalizationService}],target:c.ɵɵFactoryTarget.Injectable}),k.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:d.LocalizationService}]}});Object.defineProperty(he.prototype,"expanded",{get:function(){var e;return(null==(e=this.kendoPivotGridCell)?void 0:e.hasChildren)&&this.kendoPivotGridCell.children.length},enumerable:!1,configurable:!0}),he.prototype.ngOnInit=function(){var e,t,n=this.hostEl.nativeElement,o=(this.renderer.setAttribute(n,"rowspan",this.kendoPivotGridCell.rowSpan||1),this.renderer.setAttribute(n,"colspan",this.kendoPivotGridCell.colSpan||1),{"k-pivotgrid-header-total":(null==(e=this.kendoPivotGridCell)?void 0:e.total)||"values"===this.tableType&&(this.dataService.rowHeaderLeaves[this.rowIndex].total||this.dataService.columnHeaderLeaves[this.colIndex].total),"k-pivotgrid-header-root":0===(null==(e=this.kendoPivotGridCell)?void 0:e.levelNum),"k-pivotgrid-expanded":(null==(e=this.kendoPivotGridCell)?void 0:e.hasChildren)&&this.kendoPivotGridCell.children.length,"k-first":0<this.colIndex});for(t in o)o[t]&&this.renderer.addClass(n,t)};var x=he;function he(e,t,n){var o=this;this.hostEl=e,this.renderer=t,this.dataService=n,this.cellClass=!0,this.handleClick=function(){o.dataService.expandedStateChange.emit({action:o.expanded?"collapse":"expand",cell:o.kendoPivotGridCell,tableType:o.tableType})}}x.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,deps:[{token:c.ElementRef},{token:c.Renderer2},{token:b}],target:c.ɵɵFactoryTarget.Component}),x.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"[kendoPivotGridCell]",inputs:{kendoPivotGridCell:"kendoPivotGridCell",tableType:"tableType",rowIndex:"rowIndex",colIndex:"colIndex"},host:{properties:{"class.k-pivotgrid-cell":"this.cellClass"}},ngImport:c,template:'\n <span \n *ngIf="kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total"\n class="k-icon"\n aria-hidden="true"\n [kendoEventsOutsideAngular]="{\n click: handleClick\n }"\n [ngClass]="{\n \'k-i-arrow-chevron-up\': expanded,\n \'k-i-arrow-chevron-down\': !expanded\n }"></span>{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}',isInline:!0,directives:[{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:_.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,decorators:[{type:r.Component,args:[{selector:"[kendoPivotGridCell]",template:'\n <span \n *ngIf="kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total"\n class="k-icon"\n aria-hidden="true"\n [kendoEventsOutsideAngular]="{\n click: handleClick\n }"\n [ngClass]="{\n \'k-i-arrow-chevron-up\': expanded,\n \'k-i-arrow-chevron-down\': !expanded\n }"></span>{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}'}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:b}]},propDecorators:{cellClass:[{type:r.HostBinding,args:["class.k-pivotgrid-cell"]}],kendoPivotGridCell:[{type:r.Input}],tableType:[{type:r.Input}],rowIndex:[{type:r.Input}],colIndex:[{type:r.Input}]}});Object.defineProperty(ve.prototype,"pivotGridId",{get:function(){return"kendo-pivotgrid-"+this.dataService.pivotGridId+"-"},enumerable:!1,configurable:!0}),ve.prototype.ngOnInit=function(){var t=this;this.dataChangeSubs.add(this.dataService[this.tableType+"Rows"].subscribe(function(e){return t.rows=e})),this.dataChangeSubs.add("values"===this.tableType?this.dataService.columnHeaderCols.subscribe(function(e){return t.headerItems=e}):this.dataService[this.tableType+"Cols"].subscribe(function(e){return t.headerItems=e}))},ve.prototype.ngOnDestroy=function(){this.dataChangeSubs.unsubscribe()};var C=ve;function ve(e){this.dataService=e,this.dataChangeSubs=new s.Subscription}C.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:C,deps:[{token:b}],target:c.ɵɵFactoryTarget.Component}),C.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"kendo-pivotgrid-table",inputs:{tableType:"tableType",colWidth:"colWidth"},ngImport:c,template:'\n <table\n class="k-pivotgrid-table"\n role="presentation">\n <colgroup>\n <col \n *ngFor="let item of headerItems;"\n [style.width]="tableType !== \'rowHeader\' ? colWidth >= 0 ? colWidth + \'px\' : \'200px\' : undefined" />\n </colgroup>\n <tbody class="k-pivotgrid-tbody" role="rowgroup">\n <tr *ngFor="let row of rows; index as rowIndex"\n class="k-pivotgrid-row"\n role="row">\n <ng-container *ngFor="let cell of row.cells; index as colIndex">\n <th\n *ngIf="cell && tableType !== \'values\'" \n [kendoPivotGridCell]="cell"\n [tableType]="tableType"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n [attr.aria-expanded]="cell.hasChildren && cell.children.length ? \'true\' : \'false\'"\n [attr.role]="tableType === \'columnHeader\' ? \'columnheader\' : \'rowheader\'"\n [attr.id]="pivotGridId + (tableType === \'columnHeader\' ? \'ch-\' : \'rh-\') + (rowIndex + 1) + \'-\' + (colIndex + 1)"></th>\n <td\n *ngIf="cell && tableType === \'values\'"\n [kendoPivotGridCell]="cell"\n tableType="values"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n role="gridcell"\n [attr.id]="pivotGridId + \'cell-\' + (rowIndex + 1) + \'-\' + (colIndex + 1)"></td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n ',isInline:!0,components:[{type:x,selector:"[kendoPivotGridCell]",inputs:["kendoPivotGridCell","tableType","rowIndex","colIndex"]}],directives:[{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:C,decorators:[{type:r.Component,args:[{selector:"kendo-pivotgrid-table",template:'\n <table\n class="k-pivotgrid-table"\n role="presentation">\n <colgroup>\n <col \n *ngFor="let item of headerItems;"\n [style.width]="tableType !== \'rowHeader\' ? colWidth >= 0 ? colWidth + \'px\' : \'200px\' : undefined" />\n </colgroup>\n <tbody class="k-pivotgrid-tbody" role="rowgroup">\n <tr *ngFor="let row of rows; index as rowIndex"\n class="k-pivotgrid-row"\n role="row">\n <ng-container *ngFor="let cell of row.cells; index as colIndex">\n <th\n *ngIf="cell && tableType !== \'values\'" \n [kendoPivotGridCell]="cell"\n [tableType]="tableType"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n [attr.aria-expanded]="cell.hasChildren && cell.children.length ? \'true\' : \'false\'"\n [attr.role]="tableType === \'columnHeader\' ? \'columnheader\' : \'rowheader\'"\n [attr.id]="pivotGridId + (tableType === \'columnHeader\' ? \'ch-\' : \'rh-\') + (rowIndex + 1) + \'-\' + (colIndex + 1)"></th>\n <td\n *ngIf="cell && tableType === \'values\'"\n [kendoPivotGridCell]="cell"\n tableType="values"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n role="gridcell"\n [attr.id]="pivotGridId + \'cell-\' + (rowIndex + 1) + \'-\' + (colIndex + 1)"></td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n '}]}],ctorParameters:function(){return[{type:b}]},propDecorators:{tableType:[{type:r.Input}],colWidth:[{type:r.Input}]}});var ye=function(e,t,n,o,r){this.columnAxes=e,this.rowAxes=t,this.measureAxes=n,this.sort=o,this.filter=r},I=(be.prototype.parseConfiguratorState=function(e){var t=p.configuratorReducer({filter:this.dataService.state.filter,sort:this.dataService.state.sort,rowAxes:this.dataService.state.rowAxes,columnAxes:this.dataService.state.columnAxes,measureAxes:this.dataService.state.measureAxes,dragItem:this.state.dragItem,dropDirection:this.state.dropDirection,dropTarget:this.state.dropTarget,dropZone:this.state.dropZone},e);Object.keys(t).forEach(function(e){return void 0===t[e]&&delete t[e]}),this.state=Object.assign(Object.assign({},this.state),t),this.dataService.state=new ye(this.state.columnAxes,this.state.rowAxes,this.state.measureAxes,this.state.sort,this.state.filter),this.configuratorStateChange.emit(this.state)},be);function be(e){this.dataService=e,this.configuratorStateChange=new r.EventEmitter}I.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I,deps:[{token:b}],target:c.ɵɵFactoryTarget.Injectable}),I.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:b}]},propDecorators:{configuratorStateChange:[{type:r.Output}]}});ke.prototype.create=function(){this.dom=document.createElement("span"),this.dom.style.position="absolute";var e=document.createElement("div"),t=(e.classList.add("k-drop-hint","k-drop-hint-v"),document.createElement("div")),n=(t.classList.add("k-drop-hint-start"),document.createElement("div")),o=(n.classList.add("k-drop-hint-line"),document.createElement("div"));o.classList.add("k-drop-hint-end"),e.append(t,n,o),this.dom.append(e),this.hide()},ke.prototype.attach=function(){return e=this.dom,!1||(document.body.appendChild(e),0),e;var e},ke.prototype.remove=function(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)},ke.prototype.hide=function(){this.dom.style.display="none"},ke.prototype.position=function(e){var t=e.left,n=e.top,e=e.height,e=(this.dom.style.display="block",this.dom.style.height=e+"px",this.dom.style.top=n+"px",this.dom.style.zIndex="1000",this.dom.offsetWidth/2);this.dom.style.left=t-e+"px"};var T=ke;function ke(){}T.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,deps:[],target:c.ɵɵFactoryTarget.Injectable}),T.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,decorators:[{type:r.Injectable}]});$(Ie,xe=l.PreventableEvent);var xe,Ce=Ie;function Ie(e){var t=xe.call(this)||this;return t.originalEvent=e,t}De.prototype.open=function(e,t,n,o){void 0===o&&(o="k-grid-filter-popup");var n=Q(n)&&this.popupRef===n,o=(this.destroy(),n||(n=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:n},popupAlign:{vertical:"top",horizontal:n},anchor:e,popupClass:o,content:t,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)),null==(n=this.popupRef)?void 0:n.popupElement);return o&&this.attachMouseListeners(o),this.popupRef},De.prototype.destroy=function(){this.popupRef&&(this.detachClose(),this.pointerEventsSub.unsubscribe(),this.pointerEventsSub=null,this.popupRef.close(),this.popupRef=null)},De.prototype.ngOnDestroy=function(){this.destroy(),this.scrollSubscription.unsubscribe()},De.prototype.detachClose=function(){this.removeClick&&this.removeClick()},De.prototype.attachClose=function(t){var n=this;this.detachClose(),this.ngZone.runOutsideAngular(function(){return n.removeClick=n.renderer.listen("document","click",function(e){!function(e,t){for(;e;){if(t(e))return!0;e=e.parentNode}return!1}(e.target,function(e){return n.popupRef.popupElement===e||e===t})&&(e=new Ce(e),n.onClose.next(e),!e.isDefaultPrevented()&&n.canClosePopup&&n.destroy(),n.canClosePopup=!0)})})},De.prototype.attachMouseListeners=function(e){var t=this;this.pointerEventsSub=new s.Subscription,this.ngZone.runOutsideAngular(function(){t.pointerEventsSub.add(t.renderer.listen(e,"pointerdown",function(e){e.stopImmediatePropagation(),t.canClosePopup=!1})),t.pointerEventsSub.add(t.renderer.listen(e,"pointerup",function(){t.canClosePopup=!0}))})};var Te=De;function De(e,t,n,o){this.popupService=e,this.renderer=t,this.ngZone=n,this.localization=o,this.onClose=new s.Subject,this.pointerEventsSub=new s.Subscription,this.scrollSubscription=new s.Subscription}Te.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Te,deps:[{token:W.PopupService},{token:c.Renderer2},{token:c.NgZone},{token:k}],target:c.ɵɵFactoryTarget.Injectable}),Te.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Te}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Te,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:W.PopupService},{type:c.Renderer2},{type:c.NgZone},{type:k}]}});var D=function(){this.isColumnMenu=!1,this.isPopupOpen=!1},w=(D.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,deps:[],target:c.ɵɵFactoryTarget.Injectable}),D.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,decorators:[{type:r.Injectable}]}),we.prototype.close=function(){this.closeMenu.emit()},we);function we(e){this.closeMenu=new r.EventEmitter,this.menuTabbingService=e}w.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w,deps:[{token:D}],target:c.ɵɵFactoryTarget.Injectable}),w.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:D}]}});Object.defineProperty(Se.prototype,"isFirst",{get:function(){return this._isFirst},set:function(e){var t,n=this;e&&(t=this.chipMenuItems[0],this.menuItemComponent.service.menuTabbingService.firstFocusable=t,this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen(t,"keydown",n.onTab);n.subs.add(e)})),this._isFirst=e},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"isLast",{get:function(){return this._isLast},set:function(e){var t,n=this;this.chipMenuItems&&(e&&(t=this.getLastColumnMenuItem(),this.menuItemComponent.service.menuTabbingService.lastFocusable=t,this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen(t,"keydown",n.onTab);n.subs.add(e)})),this._isLast=e)},enumerable:!1,configurable:!0}),Se.prototype.ngAfterViewInit=function(){var t=this;this.chipMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),this.chipMenuItems.forEach(function(e){return t.renderer.setAttribute(e,"tabindex","0")})},Se.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Se.prototype.getLastColumnMenuItem=function(){return 1===this.chipMenuItems.length?this.chipMenuItems[0]:this.chipMenuItems[1]};var S=Se;function Se(e,t,n){var o=this;this.hostElement=e,this.renderer=t,this.ngZone=n,this._isFirst=!1,this._isLast=!1,this.subs=new s.Subscription,this.onTab=function(e){var t,n;e.keyCode===l.Keys.Tab&&(o.isFirst&&e.shiftKey&&e.target===o.chipMenuItems[0]&&(e.preventDefault(),o.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),o.isLast&&!e.shiftKey&&(t=o.getLastColumnMenuItem(),n=o.menuItemComponent.expanded,t!==e.target||n||(e.preventDefault(),o.menuItemComponent.service.menuTabbingService.firstFocusable.focus())))}}S.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:S,deps:[{token:c.ElementRef},{token:c.Renderer2},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),S.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:S,selector:"[kendoPivotChipMenuItem]",inputs:{menuItemComponent:["kendoPivotChipMenuItem","menuItemComponent"]},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:S,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotChipMenuItem]"}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:c.NgZone}]},propDecorators:{menuItemComponent:[{type:r.Input,args:["kendoPivotChipMenuItem"]}]}});Fe.prototype.ngAfterViewInit=function(){var e=this;this.chipMenuItems.length&&(this.chipMenuItems.first.isFirst=!0,this.chipMenuItems.last.isLast=!0,this.ngZone.onStable.pipe(R.take(1)).subscribe(function(){return e.service.menuTabbingService.firstFocusable.focus()}))};var Oe=Fe;function Fe(e,t){this.service=e,this.ngZone=t,this.hostClass=!0}Oe.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Oe,deps:[{token:w},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Component}),Oe.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Oe,selector:"kendo-pivot-chipmenu-container",host:{properties:{"class.k-grid-columnmenu-popup":"this.hostClass"}},queries:[{propertyName:"chipMenuItems",predicate:S,descendants:!0}],ngImport:c,template:"\n <ng-content></ng-content>\n ",isInline:!0}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Oe,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chipmenu-container",template:"\n <ng-content></ng-content>\n "}]}],ctorParameters:function(){return[{type:w},{type:c.NgZone}]},propDecorators:{chipMenuItems:[{type:r.ContentChildren,args:[S,{descendants:!0}]}],hostClass:[{type:r.HostBinding,args:["class.k-grid-columnmenu-popup"]}]}});Ae.prototype.ngOnInit=function(){if(r.isDevMode()&&!this.service)throw new Error("The service input of the host chip menu components (e.g. ChipMenuSortComponent) is mandatory.")},Ae.prototype.close=function(){this.service.close()};var O=Ae;function Ae(){this.hostClass=!0}O.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,deps:[],target:c.ɵɵFactoryTarget.Component}),O.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-pivot-chip-menu-item-base",inputs:{service:"service"},host:{properties:{"class.k-columnmenu-item-wrapper":"this.hostClass"}},ngImport:c,template:"",isInline:!0}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chip-menu-item-base",template:""}]}],propDecorators:{service:[{type:r.Input}],hostClass:[{type:r.HostBinding,args:["class.k-columnmenu-item-wrapper"]}]}});var F=function(e){this.templateRef=e},A=(F.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:F,deps:[{token:c.TemplateRef,optional:!0}],target:c.ɵɵFactoryTarget.Directive}),F.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"[kendoPivotChipMenuItemContentTemplate]",ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:F,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotChipMenuItemContentTemplate]"}]}],ctorParameters:function(){return[{type:c.TemplateRef,decorators:[{type:r.Optional}]}]}}),Object.defineProperty(Ee.prototype,"iconClass",{get:function(){return"k-i-"+this.icon},enumerable:!1,configurable:!0}),Ee.prototype.ngOnChanges=function(e){e.expanded&&this.updateContentState()},Ee.prototype.onClick=function(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),(this.expanded?this.expand:this.collapse).emit())},Ee.prototype.updateContentState=function(){this.contentState=this.expanded?"expanded":"collapsed"},Ee);function Ee(){this.itemClick=new r.EventEmitter,this.expand=new r.EventEmitter,this.collapse=new r.EventEmitter,this.contentState="collapsed"}A.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:A,deps:[],target:c.ɵɵFactoryTarget.Component}),A.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:A,selector:"kendo-pivot-chipmenu-item",inputs:{icon:"icon",text:"text",selected:"selected",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},queries:[{propertyName:"contentTemplate",first:!0,predicate:F,descendants:!0}],usesOnChanges:!0,ngImport:c,template:'\n <div\n class="k-columnmenu-item"\n (click)="onClick($event)"\n (keydown.enter)="onClick($event)"\n [class.k-selected]="selected"\n role="button"\n [attr.aria-expanded]="expanded">\n <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">\n </span>\n {{ text }}\n </div>\n <div *ngIf="contentTemplate" [@state]="contentState" style="overflow:hidden;" class="k-columnmenu-item-content">\n <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">\n </ng-container>\n <div>\n ',isInline:!0,directives:[{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],animations:[i.trigger("state",[i.state("collapsed",i.style({display:"none"})),i.state("expanded",i.style({display:"block"})),i.transition("collapsed => expanded",[i.style({height:"0px",display:"block"}),i.animate("100ms ease-in",i.style({height:"*"}))]),i.transition("expanded => collapsed",[i.style({height:"*"}),i.animate("100ms ease-in",i.style({height:"0px"}))])])]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:A,decorators:[{type:r.Component,args:[{animations:[i.trigger("state",[i.state("collapsed",i.style({display:"none"})),i.state("expanded",i.style({display:"block"})),i.transition("collapsed => expanded",[i.style({height:"0px",display:"block"}),i.animate("100ms ease-in",i.style({height:"*"}))]),i.transition("expanded => collapsed",[i.style({height:"*"}),i.animate("100ms ease-in",i.style({height:"0px"}))])])],selector:"kendo-pivot-chipmenu-item",template:'\n <div\n class="k-columnmenu-item"\n (click)="onClick($event)"\n (keydown.enter)="onClick($event)"\n [class.k-selected]="selected"\n role="button"\n [attr.aria-expanded]="expanded">\n <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">\n </span>\n {{ text }}\n </div>\n <div *ngIf="contentTemplate" [@state]="contentState" style="overflow:hidden;" class="k-columnmenu-item-content">\n <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">\n </ng-container>\n <div>\n '}]}],propDecorators:{itemClick:[{type:r.Output}],expand:[{type:r.Output}],collapse:[{type:r.Output}],icon:[{type:r.Input}],text:[{type:r.Input}],selected:[{type:r.Input}],expanded:[{type:r.Input}],contentTemplate:[{type:r.ContentChild,args:[F,{static:!1}]}]}});$(Ne,Me=O),Object.defineProperty(Ne.prototype,"sortedAsc",{get:function(){var e=this.descriptor;return e&&(!e.dir||"asc"===e.dir)},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"sortedDesc",{get:function(){var e=this.descriptor;return e&&"desc"===e.dir},enumerable:!1,configurable:!0}),Ne.prototype.messageFor=function(e){return this.localization.get(e)},Ne.prototype.toggleSort=function(e){var t=this.chip.name.toString(),n=this.descriptor,o=this.configuratorService.state.sort.filter(function(e){return e.field!==t});n&&n.dir===e||o.push({field:t,dir:e}),this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setSort,payload:o}),this.close()},Object.defineProperty(Ne.prototype,"descriptor",{get:function(){var t=this;return[].concat(this.configuratorService.state.sort||[]).find(function(e){return e.field===t.chip.name.toString()})},enumerable:!1,configurable:!0});var Me,Pe=Ne;function Ne(e,t,n){var o=Me.call(this)||this;return o.localization=e,o.renderer=t,o.configuratorService=n,o}Pe.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Pe,deps:[{token:k},{token:c.Renderer2},{token:I}],target:c.ɵɵFactoryTarget.Component}),Pe.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Pe,selector:"kendo-pivot-chipmenu-sort",inputs:{chip:"chip"},usesInheritance:!0,ngImport:c,template:'\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortAscendingItemLabel\')"\n icon="sort-asc-small"\n (itemClick)="toggleSort(\'asc\')"\n [selected]="sortedAsc">\n </kendo-pivot-chipmenu-item>\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortDescendingItemLabel\')"\n icon="sort-desc-small"\n (itemClick)="toggleSort(\'desc\')"\n [selected]="sortedDesc">\n </kendo-pivot-chipmenu-item>\n ',isInline:!0,components:[{type:A,selector:"kendo-pivot-chipmenu-item",inputs:["icon","text","selected","expanded"],outputs:["itemClick","expand","collapse"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Pe,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chipmenu-sort",template:'\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortAscendingItemLabel\')"\n icon="sort-asc-small"\n (itemClick)="toggleSort(\'asc\')"\n [selected]="sortedAsc">\n </kendo-pivot-chipmenu-item>\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortDescendingItemLabel\')"\n icon="sort-desc-small"\n (itemClick)="toggleSort(\'desc\')"\n [selected]="sortedDesc">\n </kendo-pivot-chipmenu-item>\n '}]}],ctorParameters:function(){return[{type:k},{type:c.Renderer2},{type:I}]},propDecorators:{chip:[{type:r.Input}]}});Le.prototype.ngAfterViewInit=function(){var e=this.host.wrapper.nativeElement;e.setAttribute("aria-label",this.filterMenuDropDownLabel),e.addEventListener("keydown",this.keydownHandler,!0)},Le.prototype.ngOnDestroy=function(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)};i=Le;function Le(e){var t=this;this.host=e,this.keydownHandler=function(e){e.keyCode===l.Keys.Escape&&t.host.isOpen&&(e.stopPropagation(),t.host.toggle(!1))}}i.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,deps:[{token:Z.DropDownListComponent}],target:c.ɵɵFactoryTarget.Directive}),i.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,selector:"[kendoFilterMenuDropDown]",inputs:{filterMenuDropDownLabel:"filterMenuDropDownLabel"},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,decorators:[{type:r.Directive,args:[{selector:"[kendoFilterMenuDropDown]"}]}],ctorParameters:function(){return[{type:Z.DropDownListComponent}]},propDecorators:{filterMenuDropDownLabel:[{type:r.Input}]}});Ve={filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"};var Ve,Re=function(t){return Object.keys(Ve).map(function(e){return{text:t.get(e),value:Ve[e]}})},E=(Object.defineProperty(Be.prototype,"currentFilter",{get:function(){var t=this,e=null==(e=this.configuratorService.state.filter)?void 0:e.filter(function(e){return e.field===t.chip.name.toString()});return e&&e[0]},enumerable:!1,configurable:!0}),Be.prototype.registerOnChange=function(e){this.filterFormGroup.valueChanges.subscribe(e)},Be.prototype.registerOnTouched=function(e){this.onTouched=e},Be.prototype.writeValue=function(e){e&&this.filterFormGroup.setValue(e,{emitEvent:!1})},Object.defineProperty(Be.prototype,"filterMenuDropDownLabel",{get:function(){var e=this.localization.get("filterOperatorsDropDownLabel")||"",t=this.chip.name.toString();return ne(e,"fields",t)},enumerable:!1,configurable:!0}),Be.prototype.ngOnInit=function(){this.filterFormGroup=this.fb.group({operator:[this.currentFilter?this.currentFilter.operator:""],value:[this.currentFilter?this.currentFilter.value:""]}),this.operators=Re(this.localization)},Be.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},Be);function Be(e,t,n){this.localization=e,this.configuratorService=t,this.fb=n,this.subscription=new s.Subscription,this.onTouched=function(){}}E.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,deps:[{token:k},{token:I},{token:f.FormBuilder}],target:c.ɵɵFactoryTarget.Component}),E.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"kendo-pivot-string-filter-menu",inputs:{chip:"chip",menuTabbingService:"menuTabbingService"},providers:[{provide:G.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return E}),multi:!0}],ngImport:c,template:'\n <ng-container [formGroup]="filterFormGroup">\n <kendo-dropdownlist\n kendoFilterMenuDropDown\n [filterMenuDropDownLabel]="filterMenuDropDownLabel"\n [data]="operators"\n formControlName="operator"\n [valuePrimitive]="true"\n textField="text"\n valueField="value">\n </kendo-dropdownlist>\n <input\n kendoTextBox\n formControlName="value"\n />\n </ng-container>\n ',isInline:!0,components:[{type:Z.DropDownListComponent,selector:"kendo-dropdownlist",inputs:["iconClass","loading","data","value","textField","valueField","popupSettings","listHeight","defaultItem","disabled","itemDisabled","readonly","filterable","virtual","ignoreCase","delay","valuePrimitive","tabindex","tabIndex","size","rounded","fillMode","id"],outputs:["valueChange","filterChange","selectionChange","open","opened","close","closed","focus","blur"],exportAs:["kendoDropDownList"]}],directives:[{type:f.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:f.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:i,selector:"[kendoFilterMenuDropDown]",inputs:["filterMenuDropDownLabel"]},{type:f.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:f.FormControlName,selector:"[formControlName]",inputs:["disabled","formControlName","ngModel"],outputs:["ngModelChange"]},{type:h.TextBoxDirective,selector:"input[kendoTextBox]",inputs:["value"]},{type:f.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-string-filter-menu",providers:[{provide:G.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return E}),multi:!0}],template:'\n <ng-container [formGroup]="filterFormGroup">\n <kendo-dropdownlist\n kendoFilterMenuDropDown\n [filterMenuDropDownLabel]="filterMenuDropDownLabel"\n [data]="operators"\n formControlName="operator"\n [valuePrimitive]="true"\n textField="text"\n valueField="value">\n </kendo-dropdownlist>\n <input\n kendoTextBox\n formControlName="value"\n />\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:k},{type:I},{type:f.FormBuilder}]},propDecorators:{chip:[{type:r.Input}],menuTabbingService:[{type:r.Input}]}});function je(e){var t=e.value,e=e.operator;return!(re(t=t)||oe.test(t))||("isnull"===(t=e)||"isnotnull"===t||"isempty"===t||"isnotempty"===t)}Ge.prototype.ngOnInit=function(){},Ge.prototype.ngAfterViewChecked=function(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=(this.disabled?this.resetButton:this.filterButton).nativeElement)},Ge.prototype.ngOnDestroy=function(){this.menuTabbingService.lastFocusable=null},Object.defineProperty(Ge.prototype,"disabled",{get:function(){return!(this.filterDescriptorValue&&je(this.filterDescriptorValue))},enumerable:!1,configurable:!0}),Ge.prototype.submit=function(){var t=Object.assign({field:this.chip.name.toString()},this.filterDescriptorValue),e=this.configuratorService.state.filter?y(y([],v(this.configuratorService.state.filter.filter(function(e){return e.field!==t.field}))),[t]):[t];return this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setFilter,payload:e}),this.close.emit(),!1},Ge.prototype.reset=function(){var t=this,e=this.configuratorService.state.filter.filter(function(e){return e.field!==t.chip.name.toString()});this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setFilter,payload:e}),this.close.emit()},Ge.prototype.onTab=function(e,t){!this.menuTabbingService.firstFocusable||this.menuTabbingService.isColumnMenu&&!this.isLast||(e.preventDefault(),("reset"!==t||this.disabled?this.menuTabbingService.firstFocusable:this.filterButton.nativeElement).focus())},Ge.prototype.messageFor=function(e){return this.localization.get(e)};var He=Ge;function Ge(e,t,n,o){this.localization=e,this.cd=t,this.configuratorService=o,this.close=new r.EventEmitter,this.actionsClass="k-action-buttons k-button-group",this.menuTabbingService=n}He.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:He,deps:[{token:k},{token:c.ChangeDetectorRef},{token:D},{token:I}],target:c.ɵɵFactoryTarget.Component}),He.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:He,selector:"kendo-pivot-filter-menu-container",inputs:{chip:"chip",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",actionsClass:"actionsClass"},outputs:{close:"close"},providers:[D],viewQueries:[{propertyName:"resetButton",first:!0,predicate:["resetButton"],descendants:!0},{propertyName:"filterButton",first:!0,predicate:["filterButton"],descendants:!0}],ngImport:c,template:'\n <form (submit)="submit()" (reset)="reset()"\n class="k-filter-menu k-group k-reset k-state-border-up">\n <div class="k-filter-menu-container">\n <kendo-pivot-string-filter-menu\n [(ngModel)]="filterDescriptorValue"\n name="\'filterDescriptorValue\'"\n [chip]="chip"\n [menuTabbingService]="menuTabbingService">\n </kendo-pivot-string-filter-menu>\n <div [ngClass]="actionsClass">\n <button\n #resetButton\n type="reset"\n kendoButton\n (keydown.tab)="onTab($event, \'reset\')">{{messageFor(\'filterClearButton\')}}</button>\n <button #filterButton\n type="submit"\n [disabled]="disabled"\n kendoButton\n themeColor="primary"\n (keydown.tab)="onTab($event, \'filter\')">{{messageFor(\'filterFilterButton\')}}</button>\n </div>\n </div>\n </form>\n ',isInline:!0,styles:["\n kendo-pivot-string-filter-menu {\n display: flex;\n flex-flow: column nowrap;\n align-items: stretch;\n gap: 8px;\n }\n "],components:[{type:E,selector:"kendo-pivot-string-filter-menu",inputs:["chip","menuTabbingService"]}],directives:[{type:f.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:f.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:f.NgForm,selector:"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]",inputs:["ngFormOptions"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:f.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:f.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:m.ButtonDirective,selector:"button[kendoButton], span[kendoButton]",inputs:["toggleable","togglable","selected","tabIndex","icon","iconClass","imageUrl","disabled","size","rounded","fillMode","themeColor","role","primary","look"],outputs:["selectedChange","click"],exportAs:["kendoButton"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:He,decorators:[{type:r.Component,args:[{providers:[D],selector:"kendo-pivot-filter-menu-container",template:'\n <form (submit)="submit()" (reset)="reset()"\n class="k-filter-menu k-group k-reset k-state-border-up">\n <div class="k-filter-menu-container">\n <kendo-pivot-string-filter-menu\n [(ngModel)]="filterDescriptorValue"\n name="\'filterDescriptorValue\'"\n [chip]="chip"\n [menuTabbingService]="menuTabbingService">\n </kendo-pivot-string-filter-menu>\n <div [ngClass]="actionsClass">\n <button\n #resetButton\n type="reset"\n kendoButton\n (keydown.tab)="onTab($event, \'reset\')">{{messageFor(\'filterClearButton\')}}</button>\n <button #filterButton\n type="submit"\n [disabled]="disabled"\n kendoButton\n themeColor="primary"\n (keydown.tab)="onTab($event, \'filter\')">{{messageFor(\'filterFilterButton\')}}</button>\n </div>\n </div>\n </form>\n ',styles:["\n kendo-pivot-string-filter-menu {\n display: flex;\n flex-flow: column nowrap;\n align-items: stretch;\n gap: 8px;\n }\n "]}]}],ctorParameters:function(){return[{type:k},{type:c.ChangeDetectorRef},{type:D},{type:I}]},propDecorators:{close:[{type:r.Output}],chip:[{type:r.Input}],isLast:[{type:r.Input}],isExpanded:[{type:r.Input}],menuTabbingService:[{type:r.Input}],actionsClass:[{type:r.Input}],resetButton:[{type:r.ViewChild,args:["resetButton"]}],filterButton:[{type:r.ViewChild,args:["filterButton"]}]}});$(qe,ze=O),qe.prototype.onCollapse=function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()},qe.prototype.onExpand=function(){this.expanded=!0,this.expand.emit()},qe.prototype.messageFor=function(e){return this.localization.get(e)};var ze,O=qe;function qe(e,t){var n=ze.call(this)||this;return n.localization=e,n.hostElement=t,n.expand=new r.EventEmitter,n.collapse=new r.EventEmitter,n.expanded=!1,n.isLast=!1,n.actionsClass="k-columnmenu-actions",n}O.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,deps:[{token:k},{token:c.ElementRef}],target:c.ɵɵFactoryTarget.Component}),O.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-pivot-chipmenu-filter",inputs:{chip:"chip",expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},usesInheritance:!0,ngImport:c,template:'\n <kendo-pivot-chipmenu-item\n classs="k-widget k-expander"\n [text]="messageFor(\'fieldMenuFilterItemLabel\')"\n icon="filter"\n [expanded]="expanded"\n (collapse)="onCollapse()"\n (expand)="onExpand()">\n <ng-template kendoPivotChipMenuItemContentTemplate>\n <kendo-pivot-filter-menu-container\n [chip]="chip"\n [menuTabbingService]="service.menuTabbingService"\n [actionsClass]="actionsClass"\n [isLast]="isLast"\n [isExpanded]="expanded"\n (keydown.shift.tab)="$event.stopImmediatePropagation()"\n (close)="close()">\n </kendo-pivot-filter-menu-container>\n </ng-template>\n </kendo-pivot-chipmenu-item>\n ',isInline:!0,components:[{type:A,selector:"kendo-pivot-chipmenu-item",inputs:["icon","text","selected","expanded"],outputs:["itemClick","expand","collapse"]},{type:He,selector:"kendo-pivot-filter-menu-container",inputs:["chip","isLast","isExpanded","menuTabbingService","actionsClass"],outputs:["close"]}],directives:[{type:F,selector:"[kendoPivotChipMenuItemContentTemplate]"}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chipmenu-filter",template:'\n <kendo-pivot-chipmenu-item\n classs="k-widget k-expander"\n [text]="messageFor(\'fieldMenuFilterItemLabel\')"\n icon="filter"\n [expanded]="expanded"\n (collapse)="onCollapse()"\n (expand)="onExpand()">\n <ng-template kendoPivotChipMenuItemContentTemplate>\n <kendo-pivot-filter-menu-container\n [chip]="chip"\n [menuTabbingService]="service.menuTabbingService"\n [actionsClass]="actionsClass"\n [isLast]="isLast"\n [isExpanded]="expanded"\n (keydown.shift.tab)="$event.stopImmediatePropagation()"\n (close)="close()">\n </kendo-pivot-filter-menu-container>\n </ng-template>\n </kendo-pivot-chipmenu-item>\n '}]}],ctorParameters:function(){return[{type:k},{type:c.ElementRef}]},propDecorators:{expand:[{type:r.Output}],collapse:[{type:r.Output}],chip:[{type:r.Input}],expanded:[{type:r.Input}],isLast:[{type:r.Input}]}});We.prototype.ngOnDestroy=function(){this.close(),this.closeSubscription.unsubscribe()},We.prototype.toggle=function(e,t,n){e&&(e.preventDefault(),e.stopImmediatePropagation()),this.popupRef=this.popupService.open(t,n,this.popupRef,"k-column-menu"),this.popupRef||this.anchor.nativeElement.focus()},We.prototype.close=function(){this.popupService.destroy(),this.popupRef=null,this.anchor.nativeElement.focus()},Object.defineProperty(We.prototype,"chipMenuTitle",{get:function(){var e=this.localization.get("chipMenuIconTitle")||"",t=this.chip.name.toString();return ne(e,"fieldName",t)},enumerable:!1,configurable:!0});var _e=We;function We(e,t,n){this.popupService=e,this.localization=t,this.service=n,this.tabIndex="-1",this.closeSubscription=n.closeMenu.subscribe(this.close.bind(this))}_e.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:_e,deps:[{token:Te},{token:k},{token:w}],target:c.ɵɵFactoryTarget.Component}),_e.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:_e,selector:"kendo-pivot-chip-menu",inputs:{chip:"chip",tabIndex:"tabIndex"},providers:[w,D],viewQueries:[{propertyName:"anchor",first:!0,predicate:["anchor"],descendants:!0,static:!0}],ngImport:c,template:'\n <span #anchor\n class="k-icon k-i-more-vertical"\n (click)="toggle($event, anchor, template)"\n [tabindex]="tabIndex"\n [attr.title]="chipMenuTitle">\n </span>\n <ng-template #template>\n <kendo-pivot-chipmenu-container\n (keydown.escape)="close()"\n (keydown.enter)="$event.stopImmediatePropagation()">\n <kendo-pivot-chipmenu-sort\n #sortItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="sortItem"\n [service]="service">\n </kendo-pivot-chipmenu-sort>\n\n <kendo-pivot-chipmenu-filter\n #filterItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="filterItem"\n [service]="service">\n </kendo-pivot-chipmenu-filter>\n </kendo-pivot-chipmenu-container>\n </ng-template>\n ',isInline:!0,components:[{type:Oe,selector:"kendo-pivot-chipmenu-container"},{type:Pe,selector:"kendo-pivot-chipmenu-sort",inputs:["chip"]},{type:O,selector:"kendo-pivot-chipmenu-filter",inputs:["chip","expanded","isLast"],outputs:["expand","collapse"]}],directives:[{type:S,selector:"[kendoPivotChipMenuItem]",inputs:["kendoPivotChipMenuItem"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:_e,decorators:[{type:r.Component,args:[{providers:[w,D],selector:"kendo-pivot-chip-menu",template:'\n <span #anchor\n class="k-icon k-i-more-vertical"\n (click)="toggle($event, anchor, template)"\n [tabindex]="tabIndex"\n [attr.title]="chipMenuTitle">\n </span>\n <ng-template #template>\n <kendo-pivot-chipmenu-container\n (keydown.escape)="close()"\n (keydown.enter)="$event.stopImmediatePropagation()">\n <kendo-pivot-chipmenu-sort\n #sortItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="sortItem"\n [service]="service">\n </kendo-pivot-chipmenu-sort>\n\n <kendo-pivot-chipmenu-filter\n #filterItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="filterItem"\n [service]="service">\n </kendo-pivot-chipmenu-filter>\n </kendo-pivot-chipmenu-container>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:Te},{type:k},{type:w}]},propDecorators:{chip:[{type:r.Input}],tabIndex:[{type:r.Input}],anchor:[{type:r.ViewChild,args:["anchor",{static:!0}]}]}});Ke.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.elementType="KENDO-CHIP"===t.nodeName?"chip":"container",this.zone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(t,"mouseenter",e.handleMouseEnter.bind(e))),e.subs.add(e.renderer.listen(t,"mousemove",e.handleMouseMove.bind(e))),e.subs.add(e.renderer.listen(t,"mouseleave",e.handleMouseLeave.bind(e)))})},Ke.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Ke.prototype.handleMouseEnter=function(e){this.configuratorService.state.dragItem&&("chip"===this.elementType&&(this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropTarget,payload:this.item}),this.targetElement=e.target,this.cue.position(ee(e.target,"before"===this.configuratorService.state.dropDirection))),this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:this.axes}))},Ke.prototype.handleMouseMove=function(e){var t;this.configuratorService.state.dragItem&&"chip"===this.elementType&&this.element.nativeElement&&(t=this.element.nativeElement.getBoundingClientRect(),(e=e.clientX-t.left<t.width/2?"before":"after")!==this.configuratorService.state.dropDirection&&this.targetElement&&this.cue.position(ee(this.targetElement,"before"==e)),this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropDirection,payload:e}))},Ke.prototype.handleMouseLeave=function(){"chip"!==this.elementType&&this.configuratorService.state.dragItem&&this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})};var Ze=Ke;function Ke(e,t,n,o,r){this.element=e,this.configuratorService=t,this.cue=n,this.renderer=o,this.zone=r,this.subs=new s.Subscription}Ze.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ze,deps:[{token:c.ElementRef},{token:I},{token:T},{token:c.Renderer2},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),Ze.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ze,selector:"[kendoDropTarget]",inputs:{item:"item",axes:"axes"},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ze,decorators:[{type:r.Directive,args:[{selector:"[kendoDropTarget]"}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:I},{type:T},{type:c.Renderer2},{type:c.NgZone}]},propDecorators:{item:[{type:r.Input}],axes:[{type:r.Input}]}});Object.defineProperty($e.prototype,"pointerEvents",{get:function(){return this.drag?"none":void 0},enumerable:!1,configurable:!0}),$e.prototype.ngOnInit=function(){var t=this;this.zone.runOutsideAngular(function(){return t.subs.add(t.draggable.kendoPress.subscribe(function(e){l.isDocumentAvailable()&&(t.cue.create(),t.cue.attach(),t.initialX.current=e.clientX,t.initialY.current=e.clientY)}))}),this.zone.runOutsideAngular(function(){return t.subs.add(t.draggable.kendoDrag.subscribe(function(e){if(l.isDocumentAvailable()){if(Math.abs(t.initialX.current-e.clientX)<10&&Math.abs(t.initialY.current-e.clientY)<10)return;t.element.nativeElement&&(t.element.nativeElement.style.transform="translate("+(e.clientX-t.initialX.current)+"px, "+(e.clientY-t.initialY.current)+"px)")}t.drag=!0,t.service.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDragItem,payload:t.item})}))}),this.zone.runOutsideAngular(function(){return t.subs.add(t.draggable.kendoRelease.subscribe(function(){t.drag=!1,t.service.state.dragItem&&(l.isDocumentAvailable()&&(t.element.nativeElement&&(t.element.nativeElement.style.transform=""),t.cue.remove()),t.service.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.drop,payload:t.item}),t.service.state.dragItem=null,t.service.state.dropDirection=null,t.service.state.dropTarget=null,t.service.state.dropZone=null)}))})},$e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()};var Ue=$e;function $e(e,t,n,o,r){this.draggable=e,this.element=t,this.zone=n,this.service=o,this.cue=r,this.touchActions="none",this.initialX={},this.initialY={},this.subs=new s.Subscription}Ue.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ue,deps:[{token:_.DraggableDirective,optional:!0},{token:c.ElementRef},{token:c.NgZone},{token:I},{token:T}],target:c.ɵɵFactoryTarget.Directive}),Ue.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ue,selector:"[kendoChipDraggable]",inputs:{item:"item"},host:{properties:{"style.pointerEvents":"this.pointerEvents","style.touch-action":"this.touchActions"}},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ue,decorators:[{type:r.Directive,args:[{selector:"[kendoChipDraggable]"}]}],ctorParameters:function(){return[{type:_.DraggableDirective,decorators:[{type:r.Optional}]},{type:c.ElementRef},{type:c.NgZone},{type:I},{type:T}]},propDecorators:{pointerEvents:[{type:r.HostBinding,args:["style.pointerEvents"]}],touchActions:[{type:r.HostBinding,args:["style.touch-action"]}],item:[{type:r.Input}]}});Object.defineProperty(M.prototype,"isHorizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),M.prototype.ngOnInit=function(){var t=this;this.subs.add(this.dataService.fields.subscribe(function(e){t.fields=e})),this.subs.add(this.dataService.configuredFields.subscribe(function(e){e=pe(Object.assign(Object.assign({},t.dataService.state),{dragItem:e.dragItem,dropTarget:e.dropTarget,dropZone:e.dropZone,dropDirection:e.dropDirection}));t.originalState=e,t.setState(e),t.setChecked()})),this.subs.add(this.configuratorService.configuratorStateChange.subscribe(function(e){t.state=e,t.dataService.state=t.dataService.state={columnAxes:e.columnAxes,rowAxes:e.rowAxes,measureAxes:e.measureAxes,sort:e.sort,filter:e.filter},t.cdr.detectChanges()}))},M.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},M.prototype.getName=function(e){return e.toString()},M.prototype.setState=function(e){this.dataService.state={columnAxes:e.columnAxes,rowAxes:e.rowAxes,measureAxes:e.measureAxes,sort:e.sort,filter:e.filter},this.state=this.configuratorService.state=e},M.prototype.messageFor=function(e){return this.localization.get(e)},Object.defineProperty(M.prototype,"columnHierarchies",{get:function(){return this.extractDefaultFields(this.dataService.state.columnAxes)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"rowHierarchies",{get:function(){return this.extractDefaultFields(this.dataService.state.rowAxes)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"measureHierarchies",{get:function(){return this.extractDefaultFields(this.dataService.state.measureAxes)},enumerable:!1,configurable:!0}),M.prototype.onChipRemove=function(t,e){var n=this.dataService.state[e+"Axes"].filter(function(e){return e!==t}),e=(this.dataService.state[e+"Axes"]=n,Object.assign(Object.assign({},this.state),this.dataService.state));this.checked=this.checked.filter(function(e){return e.uniqueName!==t.name[0]}),this.setState(e)},M.prototype.setChecked=function(e){var n=this,e=(void 0===e&&(e=[]),y(y([],v(this.fields)),v(e))),e=this.getFieldsFlatMap(e).filter(function(t){return y(y(y([],v(n.columnHierarchies)),v(n.rowHierarchies)),v(n.measureHierarchies)).some(function(e){return e===t.uniqueName||e===t.defaultHierarchy})});this.checked=e},M.prototype.isItemChecked=function(t){var e;return this.checked.some(function(e){return t.defaultHierarchy?e.defaultHierarchy===t.defaultHierarchy:e.uniqueName===t.uniqueName})||(null==(e=t.children)?void 0:e.length)&&(null==(e=t.children)?void 0:e.every(function(e){return e.checked}))||null},M.prototype.isSelectable=function(e){var t=!("hierarchyUniqueName"in e||"aggregator"in e);return!Boolean(!t&&!e.aggregator&&!e.measure||2===e.type||"[KPIs]"===e.uniqueName)},M.prototype.handleChildrenLoaded=function(e){"local"!==this.dataService.directive.type&&(e=e.children.map(function(e){return e.dataItem}),this.setChecked(e))},M.prototype.handleCheckedChange=function(e,t){e.target.checked?this.checked=y(y([],v(this.checked)),[t]):(e=this.checked.findIndex(function(e){return e.uniqueName===t.uniqueName}),this.checked.splice(e,1));e={type:"PIVOT_CONFIGURATOR_ACTION_TOGGLE_SELECTION",payload:t};this.configuratorService.parseConfiguratorState(e)},M.prototype.handleSubmit=function(){this.dataService.configuratorFieldChange.emit(this.dataService.state)},M.prototype.handleReset=function(){this.setState(pe(this.originalState)),this.setChecked()},M.prototype.getFieldsFlatMap=function(e){var t=this,n=y([],v(e=void 0===e?[]:e));return(e||[]).forEach(function(e){n=n.concat(t.getFieldsFlatMap(e.children))}),n},M.prototype.extractDefaultFields=function(e){void 0===e&&(e=[]);var t=new Set;return e.forEach(function(e){t.add(String(e.name))}),Array.from(t)};var Xe=M;function M(e,t,n,o){var r=this;this.dataService=e,this.localization=t,this.configuratorService=n,this.cdr=o,this.hostClass=!0,this.orientation="vertical",this.sort=new Array,this.checked=[],this.subs=new s.Subscription,this.hasChildren=function(e){return!("hierarchyUniqueName"in e||"aggregator"in e)},this.children=function(e){return"olap"===r.dataService.directive.type?s.from(r.dataService.directive.fetchChildren(e,r.fields)).pipe(R.mergeMap(function(e){return s.of(e)})):s.of(e.children)}}Xe.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Xe,deps:[{token:b},{token:d.LocalizationService},{token:I},{token:c.ChangeDetectorRef}],target:c.ɵɵFactoryTarget.Component}),Xe.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Xe,selector:"kendo-pivotgrid-configurator",inputs:{orientation:"orientation",sort:"sort",filter:"filter"},host:{properties:{"class.k-pivotgrid-configurator":"this.hostClass"}},providers:[I,T,Te],ngImport:c,template:'\n <div \n class="k-pivotgrid-configurator-panel k-pivotgrid-configurator-push"\n [ngClass]="{\n \'k-pivotgrid-configurator-horizontal\': isHorizontal,\n \'k-pivotgrid-configurator-vertical\': !isHorizontal\n }"\n >\n <div class="k-pivotgrid-configurator-header">\n <div class="k-pivotgrid-configurator-header-text">{{messageFor(\'configuratorHeaderText\')}}</div>\n </div>\n\n <div class="k-pivotgrid-configurator-content">\n <div class="k-form" [class.k-form-horizontal]="isHorizontal">\n <div class="k-form-field-wrapper">\n <div class="k-form-field">\n <span class="k-label">{{messageFor(\'configuratorFieldsText\')}}</span>\n </div>\n\n <div class="k-form-field">\n <div class="k-fields-list-wrapper">\n <kendo-treeview\n [nodes]="fields"\n textField="caption"\n [children]="children"\n [hasChildren]="hasChildren"\n kendoTreeViewExpandable\n (childrenLoaded)="handleChildrenLoaded($event)"\n >\n <ng-template kendoTreeViewNodeTemplate let-dataItem>\n <input kendoCheckBox\n *ngIf="isSelectable(dataItem)"\n type="checkbox" \n kendoCheckBox\n [checked]="isItemChecked(dataItem)"\n (change)="handleCheckedChange($event, dataItem)"/>\n {{ dataItem.caption }}\n </ng-template>\n </kendo-treeview>\n\n </div>\n </div>\n </div>\n\n <div *ngIf="isHorizontal; else verticalTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalTemplate"></ng-container>\n </div>\n\n <ng-template #verticalTemplate>\n <div class="k-form-field" kendoDropTarget axes="columnAxes">\n <span class="k-label">{{messageFor(\'configuratorColumnsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.columnAxes && state.columnAxes.length; else noColumnAxes"\n kendoDropTarget\n axes="columnAxes"\n >\n <ng-container *ngFor="let item of state.columnAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="columnAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'column\')"\n >{{ getName(item.name) }}\n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noColumnAxes>\n <div class="k-settings-description" kendoDropTarget axes="columnAxes">{{messageFor(\'configuratorEmptyColumnsText\')}}</div>\n </ng-template>\n\n <div class="k-form-field" kendoDropTarget axes="rowAxes">\n <span class="k-label">{{messageFor(\'configuratorRowsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.rowAxes && state.rowAxes.length; else noRowAxes"\n kendoDropTarget\n axes="rowAxes"\n >\n <ng-container *ngFor="let item of state.rowAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="rowAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'row\')"\n >\n {{ getName(item.name) }}\n \n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noRowAxes>\n <div class="k-settings-description" kendoDropTarget axes="rowAxes">{{messageFor(\'configuratorEmptyRowsText\')}}</div>\n </ng-template>\n </ng-template>\n\n <div *ngIf="isHorizontal; else verticalMeasuresTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalMeasuresTemplate"></ng-container>\n </div>\n\n <ng-template #verticalMeasuresTemplate>\n <div class="k-form-field" kendoDropTarget axes="measureAxes">\n <span class="k-label">{{messageFor(\'configuratorValuesText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.measureAxes && state.measureAxes.length; else noMeasureAxes"\n kendoDropTarget\n axes="measureAxes"\n >\n <kendo-chip *ngFor="let item of state.measureAxes"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="measureAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'measure\')"\n >\n {{ getName(item.name) }}\n </kendo-chip>\n </kendo-chiplist>\n\n <ng-template #noMeasureAxes>\n <div class="k-settings-description" kendoDropTarget axes="measureAxes">{{messageFor(\'configuratorEmptyMeasuresText\')}}</div>\n </ng-template>\n </ng-template>\n \n </div>\n </div>\n <div class="k-pivotgrid-configurator-actions k-actions k-hstack k-justify-content-end">\n <button kendoButton type="button" (click)="handleReset()">{{messageFor(\'configuratorCancelButtonText\')}}</button>\n <button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor(\'configuratorApplyButtonText\')}}</button>\n </div>\n </div>\n ',isInline:!0,styles:["\n .k-form .k-chip-list {\n width: 100%;\n }\n "],components:[{type:o.TreeViewComponent,selector:"kendo-treeview",inputs:["filterInputPlaceholder","expandDisabledNodes","animate","nodeTemplate","loadMoreButtonTemplate","trackBy","nodes","textField","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","navigable","children","loadOnDemand","filterable","filter","size","disableParentNodesOnly"],outputs:["childrenLoaded","blur","focus","expand","collapse","nodeDragStart","nodeDrag","filterStateChange","nodeDrop","nodeDragEnd","addItem","removeItem","checkedChange","selectionChange","filterChange","nodeClick","nodeDblClick"],exportAs:["kendoTreeView"]},{type:m.ChipListComponent,selector:"kendo-chiplist, kendo-chip-list",inputs:["selection","size"],outputs:["selectedChange","remove"]},{type:m.ChipComponent,selector:"kendo-chip",inputs:["label","icon","iconClass","avatarClass","selected","removable","removeIcon","disabled","size","rounded","fillMode","themeColor"],outputs:["remove","contentClick"]},{type:_e,selector:"kendo-pivot-chip-menu",inputs:["chip","tabIndex"]}],directives:[{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:o.ExpandDirective,selector:"[kendoTreeViewExpandable]",inputs:["isExpanded","expandBy","expandOnFilter","expandedKeys"],outputs:["expandedKeysChange"]},{type:o.NodeTemplateDirective,selector:"[kendoTreeViewNodeTemplate]"},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:h.CheckBoxDirective,selector:"input[kendoCheckBox]",inputs:["size","rounded"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:Ze,selector:"[kendoDropTarget]",inputs:["item","axes"]},{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:Ue,selector:"[kendoChipDraggable]",inputs:["item"]},{type:_.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]},{type:m.ButtonDirective,selector:"button[kendoButton], span[kendoButton]",inputs:["toggleable","togglable","selected","tabIndex","icon","iconClass","imageUrl","disabled","size","rounded","fillMode","themeColor","role","primary","look"],outputs:["selectedChange","click"],exportAs:["kendoButton"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Xe,decorators:[{type:r.Component,args:[{selector:"kendo-pivotgrid-configurator",providers:[I,T,Te],template:'\n <div \n class="k-pivotgrid-configurator-panel k-pivotgrid-configurator-push"\n [ngClass]="{\n \'k-pivotgrid-configurator-horizontal\': isHorizontal,\n \'k-pivotgrid-configurator-vertical\': !isHorizontal\n }"\n >\n <div class="k-pivotgrid-configurator-header">\n <div class="k-pivotgrid-configurator-header-text">{{messageFor(\'configuratorHeaderText\')}}</div>\n </div>\n\n <div class="k-pivotgrid-configurator-content">\n <div class="k-form" [class.k-form-horizontal]="isHorizontal">\n <div class="k-form-field-wrapper">\n <div class="k-form-field">\n <span class="k-label">{{messageFor(\'configuratorFieldsText\')}}</span>\n </div>\n\n <div class="k-form-field">\n <div class="k-fields-list-wrapper">\n <kendo-treeview\n [nodes]="fields"\n textField="caption"\n [children]="children"\n [hasChildren]="hasChildren"\n kendoTreeViewExpandable\n (childrenLoaded)="handleChildrenLoaded($event)"\n >\n <ng-template kendoTreeViewNodeTemplate let-dataItem>\n <input kendoCheckBox\n *ngIf="isSelectable(dataItem)"\n type="checkbox" \n kendoCheckBox\n [checked]="isItemChecked(dataItem)"\n (change)="handleCheckedChange($event, dataItem)"/>\n {{ dataItem.caption }}\n </ng-template>\n </kendo-treeview>\n\n </div>\n </div>\n </div>\n\n <div *ngIf="isHorizontal; else verticalTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalTemplate"></ng-container>\n </div>\n\n <ng-template #verticalTemplate>\n <div class="k-form-field" kendoDropTarget axes="columnAxes">\n <span class="k-label">{{messageFor(\'configuratorColumnsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.columnAxes && state.columnAxes.length; else noColumnAxes"\n kendoDropTarget\n axes="columnAxes"\n >\n <ng-container *ngFor="let item of state.columnAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="columnAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'column\')"\n >{{ getName(item.name) }}\n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noColumnAxes>\n <div class="k-settings-description" kendoDropTarget axes="columnAxes">{{messageFor(\'configuratorEmptyColumnsText\')}}</div>\n </ng-template>\n\n <div class="k-form-field" kendoDropTarget axes="rowAxes">\n <span class="k-label">{{messageFor(\'configuratorRowsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.rowAxes && state.rowAxes.length; else noRowAxes"\n kendoDropTarget\n axes="rowAxes"\n >\n <ng-container *ngFor="let item of state.rowAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="rowAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'row\')"\n >\n {{ getName(item.name) }}\n \n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noRowAxes>\n <div class="k-settings-description" kendoDropTarget axes="rowAxes">{{messageFor(\'configuratorEmptyRowsText\')}}</div>\n </ng-template>\n </ng-template>\n\n <div *ngIf="isHorizontal; else verticalMeasuresTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalMeasuresTemplate"></ng-container>\n </div>\n\n <ng-template #verticalMeasuresTemplate>\n <div class="k-form-field" kendoDropTarget axes="measureAxes">\n <span class="k-label">{{messageFor(\'configuratorValuesText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.measureAxes && state.measureAxes.length; else noMeasureAxes"\n kendoDropTarget\n axes="measureAxes"\n >\n <kendo-chip *ngFor="let item of state.measureAxes"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="measureAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'measure\')"\n >\n {{ getName(item.name) }}\n </kendo-chip>\n </kendo-chiplist>\n\n <ng-template #noMeasureAxes>\n <div class="k-settings-description" kendoDropTarget axes="measureAxes">{{messageFor(\'configuratorEmptyMeasuresText\')}}</div>\n </ng-template>\n </ng-template>\n \n </div>\n </div>\n <div class="k-pivotgrid-configurator-actions k-actions k-hstack k-justify-content-end">\n <button kendoButton type="button" (click)="handleReset()">{{messageFor(\'configuratorCancelButtonText\')}}</button>\n <button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor(\'configuratorApplyButtonText\')}}</button>\n </div>\n </div>\n ',styles:["\n .k-form .k-chip-list {\n width: 100%;\n }\n "]}]}],ctorParameters:function(){return[{type:b},{type:d.LocalizationService},{type:I},{type:c.ChangeDetectorRef}]},propDecorators:{hostClass:[{type:r.HostBinding,args:["class.k-pivotgrid-configurator"]}],orientation:[{type:r.Input}],sort:[{type:r.Input}],filter:[{type:r.Input}]}});$(Qe,Ye=t.ComponentMessages);var Ye,o=Qe;function Qe(){return null!==Ye&&Ye.apply(this,arguments)||this}o.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:o,deps:null,target:c.ɵɵFactoryTarget.Directive}),o.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,inputs:{fieldMenuFilterItemLabel:"fieldMenuFilterItemLabel",fieldMenuSortAscendingItemLabel:"fieldMenuSortAscendingItemLabel",fieldMenuSortDescendingItemLabel:"fieldMenuSortDescendingItemLabel",filterInputLabel:"filterInputLabel",filterOperatorsDropDownLabel:"filterOperatorsDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",loading:"loading",emptyCellLabel:"emptyCellLabel",configuratorButtonText:"configuratorButtonText",configuratorHeaderText:"configuratorHeaderText",configuratorFieldsText:"configuratorFieldsText",configuratorColumnsText:"configuratorColumnsText",configuratorRowsText:"configuratorRowsText",configuratorValuesText:"configuratorValuesText",configuratorCancelButtonText:"configuratorCancelButtonText",configuratorApplyButtonText:"configuratorApplyButtonText",configuratorEmptyRowsText:"configuratorEmptyRowsText",configuratorEmptyColumnsText:"configuratorEmptyColumnsText",configuratorEmptyMeasuresText:"configuratorEmptyMeasuresText",chipMenuIconTitle:"chipMenuIconTitle"},usesInheritance:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:o,decorators:[{type:r.Directive}],propDecorators:{fieldMenuFilterItemLabel:[{type:r.Input}],fieldMenuSortAscendingItemLabel:[{type:r.Input}],fieldMenuSortDescendingItemLabel:[{type:r.Input}],filterInputLabel:[{type:r.Input}],filterOperatorsDropDownLabel:[{type:r.Input}],filterEqOperator:[{type:r.Input}],filterNotEqOperator:[{type:r.Input}],filterIsNullOperator:[{type:r.Input}],filterIsNotNullOperator:[{type:r.Input}],filterIsEmptyOperator:[{type:r.Input}],filterIsNotEmptyOperator:[{type:r.Input}],filterStartsWithOperator:[{type:r.Input}],filterContainsOperator:[{type:r.Input}],filterNotContainsOperator:[{type:r.Input}],filterEndsWithOperator:[{type:r.Input}],filterFilterButton:[{type:r.Input}],filterClearButton:[{type:r.Input}],loading:[{type:r.Input}],emptyCellLabel:[{type:r.Input}],configuratorButtonText:[{type:r.Input}],configuratorHeaderText:[{type:r.Input}],configuratorFieldsText:[{type:r.Input}],configuratorColumnsText:[{type:r.Input}],configuratorRowsText:[{type:r.Input}],configuratorValuesText:[{type:r.Input}],configuratorCancelButtonText:[{type:r.Input}],configuratorApplyButtonText:[{type:r.Input}],configuratorEmptyRowsText:[{type:r.Input}],configuratorEmptyColumnsText:[{type:r.Input}],configuratorEmptyMeasuresText:[{type:r.Input}],chipMenuIconTitle:[{type:r.Input}]}});$(tt,Je=o);var Je,et=tt;function tt(e){var t=Je.call(this)||this;return t.service=e,t}et.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:et,deps:[{token:d.LocalizationService}],target:c.ɵɵFactoryTarget.Directive}),et.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:et,selector:"[kendoPivotGridLocalizedMessages]",providers:[{provide:o,useExisting:r.forwardRef(function(){return et})}],usesInheritance:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:et,decorators:[{type:r.Directive,args:[{providers:[{provide:o,useExisting:r.forwardRef(function(){return et})}],selector:"[kendoPivotGridLocalizedMessages]"}]}],ctorParameters:function(){return[{type:d.LocalizationService}]}});var nt={type:"converging-spinner",themeColor:"primary",size:"large"},ot={position:"right",orientation:"vertical"},h=(Object.defineProperty(P.prototype,"rightPositionClass",{get:function(){var e;return"right"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"leftPositionClass",{get:function(){var e;return"left"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"bottomPositionClass",{get:function(){var e;return"bottom"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"topPositionClass",{get:function(){var e;return"top"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loaderSettings",{get:function(){return this._loaderSettings},set:function(e){this._loaderSettings=Object.assign({},nt,e)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loadingText",{get:function(){return this.localization.get("loading")},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"configuratorSettings",{get:function(){return this.configurator&&Object.assign({},ot,this.configurator)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"aggregateData",{get:function(){return ue(this.dataService.aggregateData)},enumerable:!1,configurable:!0}),P.prototype.ngAfterViewInit=function(){var r=this;l.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){var e=r.rowHeadersTable.nativeElement.firstElementChild,t=new ResizeObserver(function(){return r.resizeContainer("Columns",e)}),n=(t.observe(e),r.colHeadersTable.nativeElement.firstElementChild),o=new ResizeObserver(function(){return r.resizeContainer("Rows",n)});o.observe(n),r.resizeObservers=[t,o],r.subs.add(s.fromEvent(e,"wheel").pipe(R.merge(s.fromEvent(n,"wheel"),s.fromEvent(r.valuesTable.nativeElement,"scroll"))).subscribe(function(e){return r.handleScroll(e)})),r.navigable&&r.initNavigation()})},P.prototype.ngAfterContentInit=function(){var t=this;this.subs.add(this.dataService.loading.subscribe(function(e){return t.loading=e}))},P.prototype.ngOnChanges=function(e){l.isChanged("navigable",e)&&(this.navigable?this.initNavigation():this.stopNavigation())},P.prototype.ngOnDestroy=function(){this.resizeObservers.forEach(function(e){return e.disconnect()}),this.subs.unsubscribe(),this.stopNavigation()},P.prototype.messageFor=function(e){return this.localization.get(e)},P.prototype.initNavigation=function(){var e=this,t=(this.stopNavigation(),this.navigation=new p.PivotGridNavigation({tabIndex:0}),this.navigation.start(this.hostEl.nativeElement),this.navigation.first);t&&t.setAttribute("tabindex","0"),this.navigationSubs||(this.navigationSubs=this.dataService.directive.expandChange.pipe(R.merge(this.dataService.directive.configurationChange)).subscribe(function(){return e.zone.runOutsideAngular(function(){setTimeout(function(){return e.navigation.update()})})}),this.subs.add(this.navigationSubs))},P.prototype.stopNavigation=function(){var e;this.navigation&&((e=this.navigation.elements.find(function(e){return e.hasAttribute("tabindex")}))&&this.renderer.removeAttribute(e,"tabindex"),this.navigation.stop())},P);function P(e,t,n,o,r,i){var a=this;this.hostEl=e,this.zone=t,this.dataService=n,this.localization=o,this.renderer=r,this.hostClass=!0,this.ariaRole="grid",this.columnHeadersWidth=200,this.navigable=!1,this.resizeObservers=[],this._loaderSettings=nt,this.subs=new s.Subscription,this.rtl=!1,this.resizeContainer=function(e,t){var n=a.table.nativeElement,o="Rows"===e?"offsetHeight":"offsetWidth";n.style["gridTemplate"+e]="",n.style["gridTemplate"+e]=t[o]+"px 1fr"},this.handleScroll=function(e){var t,n,o,r,i;e.target===a.valuesTable.nativeElement?(t=e.target,n=[a.rowHeadersTable.nativeElement,a.colHeadersTable.nativeElement],o=t.scrollTop,t=t.scrollLeft,r=n[0].scrollTop,i=t!==n[1].scrollLeft,o!==r?n[0].scrollTop=o:i&&(n[1].scrollLeft=t)):e.target.closest(".k-pivotgrid-row-headers")?J(e,[a.valuesTable.nativeElement,a.rowHeadersTable.nativeElement],"scrollTop","Y"):e.target.closest(".k-pivotgrid-column-headers")&&J(e,[a.valuesTable.nativeElement,a.colHeadersTable.nativeElement],"scrollLeft","X")},V.validatePackage(K),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;a.rtl=e,a.direction=a.rtl?"rtl":"ltr"})),n.wrapper=e.nativeElement}h.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:h,deps:[{token:c.ElementRef},{token:c.NgZone},{token:b},{token:d.LocalizationService},{token:c.Renderer2},{token:_.ScrollbarWidthService}],target:c.ɵɵFactoryTarget.Component}),h.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:h,selector:"kendo-pivotgrid",inputs:{loaderSettings:"loaderSettings",configurator:"configurator",columnHeadersWidth:"columnHeadersWidth",navigable:"navigable"},host:{properties:{"class.k-d-flex":"this.hostClass","class.k-pos-relative":"this.hostClass","class.k-flex-row":"this.rightPositionClass","class.k-flex-row-reverse":"this.leftPositionClass","class.k-flex-column":"this.bottomPositionClass","class.k-flex-column-reverse":"this.topPositionClass","attr.dir":"this.dir","attr.role":"this.ariaRole"}},providers:[b,t.LocalizationService,k,{provide:t.L10N_PREFIX,useValue:"kendo.pivotgrid"}],viewQueries:[{propertyName:"colHeadersTable",first:!0,predicate:["colHeadersTable"],descendants:!0,read:r.ElementRef},{propertyName:"rowHeadersTable",first:!0,predicate:["rowHeadersTable"],descendants:!0,read:r.ElementRef},{propertyName:"valuesTable",first:!0,predicate:["valuesTable"],descendants:!0,read:r.ElementRef},{propertyName:"table",first:!0,predicate:["table"],descendants:!0,read:r.ElementRef}],usesOnChanges:!0,ngImport:c,template:'\n <ng-container kendoPivotGridLocalizedMessages\n i18n-loading="kendo.pivotgrid.loading|The loading text"\n loading="Loading"\n \n i18n-emptyCellLabel="kendo.pivotgrid.emptyCellLabel|The value of the aria-label attribute placed on the focusable empty cell element"\n emptyCellLabel="PivotGrid Empty Cell"\n \n i18n-fieldMenuFilterItemLabel="kendo.pivotgrid.fieldMenuFilterItemLabel|The text content of the filter item in the column and row fields menu"\n fieldMenuFilterItemLabel="Filter"\n\n i18n-fieldMenuSortAscendingItemLabel="kendo.pivotgrid.fieldMenuSortAscendingItemLabel|The text content of the sort ascending item in the column and row fields menu"\n fieldMenuSortAscendingItemLabel="Sort ascending"\n\n i18n-fieldMenuSortDescendingItemLabel="kendo.pivotgrid.fieldMenuSortDescendingItemLabel|The text content of the sort descending item in the column and row fields menu"\n fieldMenuSortDescendingItemLabel="Sort descending"\n\n i18n-filterInputLabel="kendo.pivotgrid.filterInputLabel|The label of the filter input"\n filterInputLabel="{{ \'{fields} Filter\' }}"\n\n i18n-filterOperatorsDropDownLabel="kendo.pivotgrid.filterOperatorsDropDownLabel|The label of the filter operators DropDownList"\n filterOperatorsDropDownLabel="{{ \'{fields} Filter Operators\' }}"\n\n i18n-filterEqOperator="kendo.pivotgrid.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.pivotgrid.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.pivotgrid.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.pivotgrid.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.pivotgrid.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.pivotgrid.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.pivotgrid.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.pivotgrid.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.pivotgrid.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.pivotgrid.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterFilterButton="kendo.pivotgrid.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.pivotgrid.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-configuratorButtonText="kendo.pivotgrid.configuratorButtonText|The text content of the button that opens and closes the PivotGrid configurator"\n configuratorButtonText="Change Settings"\n\n i18n-configuratorHeaderText="kendo.pivotgrid.configuratorHeaderText|The text content of the PivotGrid configurator title element"\n configuratorHeaderText="Settings"\n\n i18n-configuratorFieldsText="kendo.pivotgrid.configuratorFieldsText|The text content of the PivotGrid configurator fields section title element"\n configuratorFieldsText="Fields"\n\n i18n-configuratorColumnsText="kendo.pivotgrid.configuratorColumnsText|The text content of the PivotGrid configurator columns section title element"\n configuratorColumnsText="Columns"\n\n i18n-configuratorRowsText="kendo.pivotgrid.configuratorRowsText|The text content of the PivotGrid configurator rows section title element"\n configuratorRowsText="Rows"\n\n i18n-configuratorValuesText="kendo.pivotgrid.configuratorValuesText|The text content of the PivotGrid configurator values section title element"\n configuratorValuesText="Values"\n\n i18n-configuratorCancelButtonText="kendo.pivotgrid.configuratorCancelButtonText|The text content of the PivotGrid configurator configurator Cancel button"\n configuratorCancelButtonText="Cancel"\n\n i18n-configuratorApplyButtonText="kendo.pivotgrid.configuratorApplyButtonText|The text content of the PivotGrid configurator configurator Apply button"\n configuratorApplyButtonText="Apply"\n \n i18n-configuratorEmptyRowsText="kendo.pivotgrid.configuratorEmptyRowsText|The text content of the PivotGrid configurator empty rows container"\n configuratorEmptyRowsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyColumnsText="kendo.pivotgrid.configuratorEmptyColumnsText|The text content of the PivotGrid configurator empty columns container"\n configuratorEmptyColumnsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyMeasuresText="kendo.pivotgrid.configuratorEmptyMeasuresText|The text content of the PivotGrid configurator empty measures container"\n configuratorEmptyMeasuresText="Select some fields to begin setup"\n \n i18n-chipMenuIconTitle="kendo.grid.chipMenuIconTitle|The title of the field menu icon"\n chipMenuIconTitle="{{ \'{fieldName} Field Menu\' }}"></ng-container>\n\n <div #table class="k-pivotgrid">\n <span class="k-pivotgrid-empty-cell">\n <span class="k-sr-only">{{messageFor(\'emptyCellLabel\')}}</span>\n </span>\n <kendo-pivotgrid-table\n #colHeadersTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-column-headers"\n tableType="columnHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #rowHeadersTable\n class="k-pivotgrid-row-headers"\n tableType="rowHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #valuesTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-values"\n tableType="values"></kendo-pivotgrid-table>\n \n <div *ngIf="loading" class="k-loader">\n <kendo-loader\n [type]="loaderSettings?.type"\n [themeColor]="loaderSettings?.themeColor"\n [size]="loaderSettings?.size"\n >\n </kendo-loader>\n <span class="k-loading-text">{{ loadingText }}</span>\n </div>\n </div>\n\n <kendo-pivotgrid-configurator\n *ngIf="showConfigurator"\n [orientation]="configuratorSettings.orientation">\n </kendo-pivotgrid-configurator>\n\n <div *ngIf="configurator"\n class="k-pivotgrid-configurator-button"\n (click)="showConfigurator = !showConfigurator">\n <span>{{messageFor(\'configuratorButtonText\')}}<span class="k-icon k-i-gear k-color-inherit"></span>\n </span>\n </div>\n ',isInline:!0,styles:["\n /** TODO: Remove if added to themes */\n div.k-loader {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n "],components:[{type:C,selector:"kendo-pivotgrid-table",inputs:["tableType","colWidth"]},{type:g.LoaderComponent,selector:"kendo-loader",inputs:["type","themeColor","size"]},{type:Xe,selector:"kendo-pivotgrid-configurator",inputs:["orientation","sort","filter"]}],directives:[{type:et,selector:"[kendoPivotGridLocalizedMessages]"},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:h,decorators:[{type:r.Component,args:[{selector:"kendo-pivotgrid",providers:[b,t.LocalizationService,k,{provide:t.L10N_PREFIX,useValue:"kendo.pivotgrid"}],template:'\n <ng-container kendoPivotGridLocalizedMessages\n i18n-loading="kendo.pivotgrid.loading|The loading text"\n loading="Loading"\n \n i18n-emptyCellLabel="kendo.pivotgrid.emptyCellLabel|The value of the aria-label attribute placed on the focusable empty cell element"\n emptyCellLabel="PivotGrid Empty Cell"\n \n i18n-fieldMenuFilterItemLabel="kendo.pivotgrid.fieldMenuFilterItemLabel|The text content of the filter item in the column and row fields menu"\n fieldMenuFilterItemLabel="Filter"\n\n i18n-fieldMenuSortAscendingItemLabel="kendo.pivotgrid.fieldMenuSortAscendingItemLabel|The text content of the sort ascending item in the column and row fields menu"\n fieldMenuSortAscendingItemLabel="Sort ascending"\n\n i18n-fieldMenuSortDescendingItemLabel="kendo.pivotgrid.fieldMenuSortDescendingItemLabel|The text content of the sort descending item in the column and row fields menu"\n fieldMenuSortDescendingItemLabel="Sort descending"\n\n i18n-filterInputLabel="kendo.pivotgrid.filterInputLabel|The label of the filter input"\n filterInputLabel="{{ \'{fields} Filter\' }}"\n\n i18n-filterOperatorsDropDownLabel="kendo.pivotgrid.filterOperatorsDropDownLabel|The label of the filter operators DropDownList"\n filterOperatorsDropDownLabel="{{ \'{fields} Filter Operators\' }}"\n\n i18n-filterEqOperator="kendo.pivotgrid.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.pivotgrid.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.pivotgrid.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.pivotgrid.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.pivotgrid.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.pivotgrid.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.pivotgrid.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.pivotgrid.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.pivotgrid.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.pivotgrid.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterFilterButton="kendo.pivotgrid.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.pivotgrid.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-configuratorButtonText="kendo.pivotgrid.configuratorButtonText|The text content of the button that opens and closes the PivotGrid configurator"\n configuratorButtonText="Change Settings"\n\n i18n-configuratorHeaderText="kendo.pivotgrid.configuratorHeaderText|The text content of the PivotGrid configurator title element"\n configuratorHeaderText="Settings"\n\n i18n-configuratorFieldsText="kendo.pivotgrid.configuratorFieldsText|The text content of the PivotGrid configurator fields section title element"\n configuratorFieldsText="Fields"\n\n i18n-configuratorColumnsText="kendo.pivotgrid.configuratorColumnsText|The text content of the PivotGrid configurator columns section title element"\n configuratorColumnsText="Columns"\n\n i18n-configuratorRowsText="kendo.pivotgrid.configuratorRowsText|The text content of the PivotGrid configurator rows section title element"\n configuratorRowsText="Rows"\n\n i18n-configuratorValuesText="kendo.pivotgrid.configuratorValuesText|The text content of the PivotGrid configurator values section title element"\n configuratorValuesText="Values"\n\n i18n-configuratorCancelButtonText="kendo.pivotgrid.configuratorCancelButtonText|The text content of the PivotGrid configurator configurator Cancel button"\n configuratorCancelButtonText="Cancel"\n\n i18n-configuratorApplyButtonText="kendo.pivotgrid.configuratorApplyButtonText|The text content of the PivotGrid configurator configurator Apply button"\n configuratorApplyButtonText="Apply"\n \n i18n-configuratorEmptyRowsText="kendo.pivotgrid.configuratorEmptyRowsText|The text content of the PivotGrid configurator empty rows container"\n configuratorEmptyRowsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyColumnsText="kendo.pivotgrid.configuratorEmptyColumnsText|The text content of the PivotGrid configurator empty columns container"\n configuratorEmptyColumnsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyMeasuresText="kendo.pivotgrid.configuratorEmptyMeasuresText|The text content of the PivotGrid configurator empty measures container"\n configuratorEmptyMeasuresText="Select some fields to begin setup"\n \n i18n-chipMenuIconTitle="kendo.grid.chipMenuIconTitle|The title of the field menu icon"\n chipMenuIconTitle="{{ \'{fieldName} Field Menu\' }}"></ng-container>\n\n <div #table class="k-pivotgrid">\n <span class="k-pivotgrid-empty-cell">\n <span class="k-sr-only">{{messageFor(\'emptyCellLabel\')}}</span>\n </span>\n <kendo-pivotgrid-table\n #colHeadersTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-column-headers"\n tableType="columnHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #rowHeadersTable\n class="k-pivotgrid-row-headers"\n tableType="rowHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #valuesTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-values"\n tableType="values"></kendo-pivotgrid-table>\n \n <div *ngIf="loading" class="k-loader">\n <kendo-loader\n [type]="loaderSettings?.type"\n [themeColor]="loaderSettings?.themeColor"\n [size]="loaderSettings?.size"\n >\n </kendo-loader>\n <span class="k-loading-text">{{ loadingText }}</span>\n </div>\n </div>\n\n <kendo-pivotgrid-configurator\n *ngIf="showConfigurator"\n [orientation]="configuratorSettings.orientation">\n </kendo-pivotgrid-configurator>\n\n <div *ngIf="configurator"\n class="k-pivotgrid-configurator-button"\n (click)="showConfigurator = !showConfigurator">\n <span>{{messageFor(\'configuratorButtonText\')}}<span class="k-icon k-i-gear k-color-inherit"></span>\n </span>\n </div>\n ',styles:["\n /** TODO: Remove if added to themes */\n div.k-loader {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n "]}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:c.NgZone},{type:b},{type:d.LocalizationService},{type:c.Renderer2},{type:_.ScrollbarWidthService}]},propDecorators:{hostClass:[{type:r.HostBinding,args:["class.k-d-flex"]},{type:r.HostBinding,args:["class.k-pos-relative"]}],rightPositionClass:[{type:r.HostBinding,args:["class.k-flex-row"]}],leftPositionClass:[{type:r.HostBinding,args:["class.k-flex-row-reverse"]}],bottomPositionClass:[{type:r.HostBinding,args:["class.k-flex-column"]}],topPositionClass:[{type:r.HostBinding,args:["class.k-flex-column-reverse"]}],dir:[{type:r.HostBinding,args:["attr.dir"]}],ariaRole:[{type:r.HostBinding,args:["attr.role"]}],colHeadersTable:[{type:r.ViewChild,args:["colHeadersTable",{read:r.ElementRef}]}],rowHeadersTable:[{type:r.ViewChild,args:["rowHeadersTable",{read:r.ElementRef}]}],valuesTable:[{type:r.ViewChild,args:["valuesTable",{read:r.ElementRef}]}],table:[{type:r.ViewChild,args:["table",{read:r.ElementRef}]}],loaderSettings:[{type:r.Input}],configurator:[{type:r.Input}],columnHeadersWidth:[{type:r.Input}],navigable:[{type:r.Input}]}});$(at,rt=l.PreventableEvent);var rt,it=at;function at(e){var t=rt.call(this)||this;return Object.assign(t,e),t}$(pt,st=l.PreventableEvent);var st,lt=pt;function pt(e){var t=st.call(this)||this;return Object.assign(t,e),t}ct.prototype.ngOnInit=function(){var o=this;this.dataService.state=new ye(this.columnAxes,this.rowAxes,this.measureAxes,this.sort,this.filter),this.loadData(this.dataService.state),this.loadFields(),this.subs.add(this.dataService.expandedStateChange.subscribe(function(n){o.zone.run(function(){var e="columnHeader"===n.tableType,t=e?"columnAxes":"rowAxes",e=p.toTree((e?o.dataService.columns:o.dataService.rows||[]).slice());o.updateHeaders(t,e,n.cell.path)})})),this.subs.add(this.dataService.configuratorFieldChange.subscribe(function(t){o.zone.run(function(){if(l.hasObservers(o.configurationChange)){var e=new lt(t);if(o.configurationChange.emit(e),e.isDefaultPrevented())return}o.dataService.configuredFields.next(o.dataService.state),o.loadData(t),o.dataService.state=t})})),this.subs.add(this.dataService.valuesRows.subscribe(function(e){o.zone.run(function(){o.dataService.aggregateData=e})})),this.dataService.directive=this},ct.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},ct.prototype.updateDataServiceFields=function(){this.dataService.normalizedData=this.dataState.data,this.dataService.rows=this.dataState.rows,this.dataService.columns=this.dataState.columns,this.dataService.updateRowsAndCols()},ct.prototype.updateConfiguratorFields=function(){this.dataService.fields.next(this.configuratorFields),this.dataService.configuredFields.next(this.dataService.state)},ct.prototype.updateHeaders=function(e,t,n){n={type:p.HEADERS_ACTION.toggle,payload:n},n=p.headersReducer(this[e].slice(),Object.assign(Object.assign({},n),{tree:t})),t=Object.assign(Object.assign({},this.dataService.state),((t={})[e]=n,t));if(this.dataService.state=t,l.hasObservers(this.expandChange)){t=new it(t);if(this.expandChange.emit(t),t.isDefaultPrevented())return}this.dataService.configuredFields.next(this.dataService.state),this[e]=n,this.loadData(this.dataService.state)};m=ct;function ct(e,t){this.dataService=e,this.zone=t,this.columnAxes=[],this.rowAxes=[],this.measureAxes=[],this.sort=[],this.expandChange=new r.EventEmitter,this.configurationChange=new r.EventEmitter,this.dataLoaded=new r.EventEmitter,this.subs=new s.Subscription}m.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,deps:[{token:b},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),m.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"kendo-base-binding-directive",inputs:{columnAxes:"columnAxes",rowAxes:"rowAxes",measureAxes:"measureAxes",sort:"sort",filter:"filter"},outputs:{expandChange:"expandChange",configurationChange:"configurationChange",dataLoaded:"dataLoaded"},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,decorators:[{type:r.Directive,args:[{selector:"kendo-base-binding-directive"}]}],ctorParameters:function(){return[{type:b},{type:c.NgZone}]},propDecorators:{columnAxes:[{type:r.Input}],rowAxes:[{type:r.Input}],measureAxes:[{type:r.Input}],sort:[{type:r.Input}],filter:[{type:r.Input}],expandChange:[{type:r.Output}],configurationChange:[{type:r.Output}],dataLoaded:[{type:r.Output}]}});var dt,ut={dataField:"aggregate",columnsData:"columns"},g=($(gt,dt=m),gt.prototype.ngOnChanges=function(e){l.anyChanged(["data","dimensions","columnAxes","rowAxes","measureAxes","measures"],e)&&this.loadData(this.dataService.state)},gt.prototype.fetchChildren=function(e){return e.children},gt.prototype.loadFields=function(){this.configuratorFields=p.createFlatSchemaDimensions(this.dimensions,this.measures),this.updateConfiguratorFields()},gt.prototype.loadData=function(e){var n=this,t=e.columnAxes,o=e.rowAxes,r=e.measureAxes,i=e.sort,e=e.filter,a=this.getRootAxes(t),s=this.getRootAxes(o),a=a.split("&").map(this.createAxisSettings),s=s.split("&").map(this.createAxisSettings),r=r.map(function(t){return n.measures.find(function(e){return String(e.name)===String(t.name)})}).filter(Boolean),e=p.createDataTree(this.data,s,a,r,ut,e);this.dataState=p.createLocalDataState({dataTree:e,rowSettings:s,columnSettings:a,rowAxes:o,columnAxes:t,measures:r,sort:i,fields:ut}),this.updateDataServiceFields()},gt.prototype.getRootAxes=function(e){return Array.from(p.rootFields(e).keys()).join("&")},gt);function gt(e,t){var n=dt.call(this,e,t)||this;return n.type="local",n.createAxisSettings=function(e){return Object.assign({key:e},n.dimensions[e])},n}g.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:g,deps:[{token:b},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),g.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:g,selector:"[kendoPivotLocalBinding]",inputs:{data:["kendoPivotLocalBinding","data"],dimensions:"dimensions",measures:"measures"},exportAs:["kendoPivotLocalBinding"],usesInheritance:!0,usesOnChanges:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:g,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotLocalBinding]",exportAs:"kendoPivotLocalBinding"}]}],ctorParameters:function(){return[{type:b},{type:c.NgZone}]},propDecorators:{data:[{type:r.Input,args:["kendoPivotLocalBinding"]}],dimensions:[{type:r.Input}],measures:[{type:r.Input}]}});$(N,mt=m),N.prototype.ngOnChanges=function(e){l.anyChanged(["url","cube","catalog","columnAxes","rowAxes","measureAxes"],e)&&(this.loadData(this.dataService.state),this.loadFields())},N.prototype.loadData=function(e){var t=this,n=e.columnAxes,o=e.rowAxes,r=e.measureAxes,i=e.sort,e=e.filter,n=(this.dataService.loading.next(!0),{connection:{catalog:this.catalog,cube:this.cube},columnAxes:n,rowAxes:o,measureAxes:r,sort:i,filter:e});p.fetchData({url:this.url},pe(n)).then(p.createDataState).then(function(e){t.dataState=e,t.updateDataServiceFields(),t.dataService.loading.next(!1)})},N.prototype.loadFields=function(){var t=this,e={connection:{catalog:this.catalog,cube:this.cube},restrictions:{catalogName:this.catalog,cubeName:this.cube},command:"schemaDimensions"};p.fetchDiscover({url:this.url},e).then(function(e){p.addKPI(e),t.configuratorFields=e,t.updateConfiguratorFields()})},N.prototype.updateFields=function(r,i){return X(this,void 0,void 0,function(){var t,n,o;return Y(this,function(e){switch(e.label){case 0:return(t=i.slice(),(t=this.getField(t,r))&&"[KPIs]"===t.uniqueName)?(n=this.normalizeKPIs,[4,this.loadKPIs()]):[3,2];case 1:return o=n.apply(this,[e.sent()]),t.children=o,[3,5];case 2:return t&&"kpi"===t.type?(t.children=p.buildKPIMeasures(t),[3,5]):[3,3];case 3:return!t||t.children?[3,5]:[4,this.loadAvailableFields(t)];case 4:o=e.sent(),t.children=o,e.label=5;case 5:return[2,null==t?void 0:t.children]}})})},N.prototype.fetchChildren=function(e,t){return this.updateFields(e,t)},N.prototype.normalizeKPIs=function(e){for(var t=0,n=e.length;t<n;t++)e[t].uniqueName=e[t].name,e[t].type="kpi";return e},N.prototype.getField=function(e,t){void 0===e&&(e=[]);for(var n=0;n<e.length;n++){var o=e[n];if(o.uniqueName===t.uniqueName)return o;o=this.getField(o.children,t);if(null!==o)return o}return null},N.prototype.loadKPIs=function(){return X(this,void 0,void 0,function(){var t;return Y(this,function(e){return t={connection:{catalog:this.catalog,cube:this.cube},restrictions:{catalogName:this.catalog,cubeName:this.cube},command:"schemaKPIs"},[2,p.fetchDiscover({url:this.url},t)]})})},N.prototype.loadAvailableFields=function(i){return X(this,void 0,void 0,function(){var t,n,o,r;return Y(this,function(e){return 2===i.type?t="schemaMeasures":i.dimensionUniqueName?(t="schemaLevels",o=i.uniqueName):(t="schemaHierarchies",n=i.uniqueName),r={connection:{catalog:this.catalog,cube:this.cube},restrictions:{catalogName:this.catalog,cubeName:this.cube,hierarchyUniqueName:o,dimensionUniqueName:n,levelUniqueName:void 0,memberUniqueName:void 0,treeOp:void 0},command:t},[2,p.fetchDiscover({url:this.url},r)]})})};var mt,u=N;function N(e,t){e=mt.call(this,e,t)||this;return e.type="olap",e}u.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:u,deps:[{token:b},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),u.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:u,selector:"[kendoPivotOLAPBinding]",inputs:{url:"url",cube:"cube",catalog:"catalog"},exportAs:["kendoPivotOLAPBinding"],usesInheritance:!0,usesOnChanges:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:u,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotOLAPBinding]",exportAs:"kendoPivotOLAPBinding"}]}],ctorParameters:function(){return[{type:b},{type:c.NgZone}]},propDecorators:{url:[{type:r.Input}],cube:[{type:r.Input}],catalog:[{type:r.Input}]}});$(ht,ft=o),Object.defineProperty(ht.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var ft,L=ht;function ht(e){var t=ft.call(this)||this;return t.service=e,t}L.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:L,deps:[{token:d.LocalizationService}],target:c.ɵɵFactoryTarget.Component}),L.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:L,selector:"kendo-pivotgrid-messages",providers:[{provide:o,useExisting:r.forwardRef(function(){return L})}],usesInheritance:!0,ngImport:c,template:"",isInline:!0}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:L,decorators:[{type:r.Component,args:[{providers:[{provide:o,useExisting:r.forwardRef(function(){return L})}],selector:"kendo-pivotgrid-messages",template:""}]}],ctorParameters:function(){return[{type:d.LocalizationService}]}});t=[n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule],m=function(){},m.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,deps:[],target:c.ɵɵFactoryTarget.NgModule}),m.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,imports:[n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule],exports:[n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule]}),m.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,imports:[[t],n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,decorators:[{type:r.NgModule,args:[{imports:[t],exports:[t]}]}]}),o=[A,Pe,_e,O,F,He,E,i,Oe,S],vt.exports=function(){return[A,Pe,Oe,S,_e]},n=vt;function vt(){}n.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,deps:[],target:c.ɵɵFactoryTarget.NgModule}),n.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,declarations:[A,Pe,_e,O,F,He,E,i,Oe,S],imports:[m,G.ReactiveFormsModule,G.FormsModule],exports:[A,Pe,_e,O,F,He,E,i,Oe,S]}),n.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,imports:[[m,G.ReactiveFormsModule,G.FormsModule]]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,decorators:[{type:r.NgModule,args:[{declarations:[o],imports:[m,G.ReactiveFormsModule,G.FormsModule],exports:[o]}]}]});z=[l.EventsModule,B.IndicatorsModule,j.TreeViewModule,l.DraggableModule,n,m],q=[h,C,Xe,x,g,u,Ue,Ze,et,L],H=[h,C,x,g,u,L],t=function(){};t.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,deps:[],target:c.ɵɵFactoryTarget.NgModule}),t.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,declarations:[h,C,Xe,x,g,u,Ue,Ze,et,L],imports:[l.EventsModule,B.IndicatorsModule,j.TreeViewModule,l.DraggableModule,n,m],exports:[h,C,x,g,u,L]}),t.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,imports:[y([],v(z))]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,decorators:[{type:r.NgModule,args:[{imports:y([],v(z)),declarations:y([],v(q)),exports:y([],v(H))}]}]}),Object.defineProperty(e,"averageAggregate",{enumerable:!0,get:function(){return p.averageAggregate}}),Object.defineProperty(e,"maxAggregate",{enumerable:!0,get:function(){return p.maxAggregate}}),Object.defineProperty(e,"minAggregate",{enumerable:!0,get:function(){return p.minAggregate}}),Object.defineProperty(e,"sumAggregate",{enumerable:!0,get:function(){return p.sumAggregate}}),e.ConfigurationChangeEvent=lt,e.CustomMessagesComponent=L,e.DraggableChipDirective=Ue,e.DropTargetDirective=Ze,e.ExpandChangeEvent=it,e.PivotGridCellDirective=x,e.PivotGridComponent=h,e.PivotGridConfiguratorComponent=Xe,e.PivotGridModule=t,e.PivotGridTableComponent=C,e.PivotLocalBindingDirective=g,e.PivotOLAPBindingDirective=u,Object.defineProperty(e,"__esModule",{value:!0})});
5
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@progress/kendo-pivotgrid-common"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("@progress/kendo-angular-indicators"),require("@progress/kendo-angular-popup"),require("@progress/kendo-angular-treeview"),require("@progress/kendo-angular-buttons"),require("@angular/animations"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("@progress/kendo-angular-inputs")):"function"==typeof define&&define.amd?define("KendoAngularPivotgrid",["exports","@angular/core","@progress/kendo-licensing","@progress/kendo-angular-common","@progress/kendo-pivotgrid-common","rxjs","rxjs/operators","@progress/kendo-angular-l10n","@angular/common","@progress/kendo-angular-indicators","@progress/kendo-angular-popup","@progress/kendo-angular-treeview","@progress/kendo-angular-buttons","@angular/animations","@angular/forms","@progress/kendo-angular-dropdowns","@progress/kendo-angular-inputs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularPivotgrid={},e.ng.core,e.KendoLicensing,e.KendoAngularCommon,e.KendoPivotgridCommon,e.rxjs,e.rxjs.operators,e.KendoAngularL10N,e.ng.common,e.KendoAngularIndicators,e.KendoAngularPopup,e.KendoAngularTreeview,e.KendoAngularButtons,e.ng.animations,e.ng.forms,e.KendoAngularDropdowns,e.KendoAngularInputs)}(this,function(e,r,V,l,p,s,R,t,n,B,o,j,H,i,G,z,q){"use strict";function a(n){var o;return n&&n.__esModule?n:(o=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),o.default=n,Object.freeze(o))}var c=a(r),_=a(l),d=a(t),u=a(n),g=a(B),W=a(o),o=a(j),m=a(H),f=a(G),Z=a(z),h=a(q),K={name:"@progress/kendo-angular-pivotgrid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1663085877,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"},U=function(e,t){return(U=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 $(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}U(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function X(e,a,s,l){return new(s=s||Promise)(function(n,t){function o(e){try{i(l.next(e))}catch(e){t(e)}}function r(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(o,r)}i((l=l.apply(e,a||[])).next())})}function Y(o,r){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=r.call(o,l)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Object.create;function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function y(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}Object.create;function Q(e){return null!=e}function J(e,t,n,o){(e="Y"===o?-ie(e,o):ie(e,o))&&(t[0][n]=t[1][n]+=e)}function ee(e,t){n=ae(a=e),i=n.clientTop,n=n.clientLeft,o=se(a),r=o.pageYOffset,o=o.pageXOffset;var n,o,r={top:(a=a.getBoundingClientRect()).top+r-i,left:a.left+o-n},i=e.offsetWidth,a=e.offsetHeight;return{left:r.left+(t?0:i),top:r.top+a/2,height:a}}function te(e,n,o){return e.reduce(function(e,t){return n(t)?y(y([],v(e)),[o(t)]):e},[])}function ne(e,t,n){return e.replace(new RegExp("{\\s*"+t+"\\s*}","g"),n)}var oe=/^\s*$/,re=function(e){return null==e},ie=function(e,t){var n=e["wheelDelta"+t];return e.wheelDelta&&(void 0===n||n)?e.wheelDelta:e.detail&&e.axis===e["X"===t?"HORIZONTAL_AXIS":"VERTICAL_AXIS"]?10*-e.detail:0},ae=function(e){return e.ownerDocument.documentElement},se=function(e){return e.ownerDocument.defaultView},le=function(e){return e?new Date(e.getTime()):null};function pe(e){var t={};return ce(e,t),t}function ce(e,t){for(var n in e){var o;e.hasOwnProperty(n)&&(o=e[n],t[n]=de(o,t[n]))}}function de(e,t){return Array.isArray(e)?ue(e):e instanceof Date?le(e):e&&"object"==typeof e?(ce(e,t=t||{}),t):e}function ue(e){return e.map(function(e){return de(e,void 0)})}var ge=0,b=(me.prototype.updateRowsAndCols=function(){var n=this,e=p.toTree((this.rows||[]).slice()),e=v(p.toRows(e),4),t=e[0],o=e[1],r=e[2],e=e[3],i=p.toTree((this.columns||[]).slice()),i=v(p.toColumns(i),3),a=i[0],s=i[1],i=i[2];this.columnHeaderLeaves=s,this.columnHeaderCols.next(s),this.columnHeaderRows.next(a),this.rowHeaderLeaves=o,this.rowHeaderCols.next(new Array(e).fill({})),this.rowHeaderRows.next(t),this.valuesRows.next(p.toData((this.normalizedData||[]).slice(),s,o,i,r)),l.isDocumentAvailable()&&this.ngZone.runOutsideAngular(function(){setTimeout(function(){return e=n.wrapper,t=e.querySelectorAll(".k-pivotgrid-row-headers .k-pivotgrid-row"),o=e.querySelectorAll(".k-pivotgrid-column-headers th"),r=e.querySelectorAll(".k-pivotgrid-values td"),t.forEach(function(e,t){var n=te(Array.from(r),function(e){return e.getAttribute("id").split("-")[4]===(t+1).toString()},function(e){return e.getAttribute("id")});e.setAttribute("aria-owns",n.join(" "))}),void r.forEach(function(e){var n=+e.getAttribute("id").split("-")[5],t=te(Array.from(o),function(e){var t=+e.getAttribute("id").split("-")[5],e=+e.getAttribute("colspan");return n==t||1<e&&n<=t+e-1},function(e){return e.getAttribute("id")});e.setAttribute("aria-describedby",t.join(" "))});var e,t,o,r})})},me);function me(e){this.ngZone=e,this.expandedStateChange=new r.EventEmitter,this.configuratorFieldChange=new r.EventEmitter,this.expandedFieldChange=new r.EventEmitter,this.columnHeaderRows=new s.BehaviorSubject([]),this.columnHeaderCols=new s.BehaviorSubject([]),this.rowHeaderCols=new s.BehaviorSubject([]),this.rowHeaderRows=new s.BehaviorSubject([]),this.valuesRows=new s.BehaviorSubject([]),this.loading=new s.BehaviorSubject(!1),this.fields=new s.BehaviorSubject([]),this.configuredFields=new s.BehaviorSubject([]),this.pivotGridId=ge++}b.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b,deps:[{token:c.NgZone}],target:c.ɵɵFactoryTarget.Injectable}),b.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:b,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:c.NgZone}]},propDecorators:{expandedStateChange:[{type:r.Output}],configuratorFieldChange:[{type:r.Output}],expandedFieldChange:[{type:r.Output}]}});fe.prototype.get=function(e){return this.localization.get(e)},Object.defineProperty(fe.prototype,"rtl",{get:function(){return this.localization.rtl},enumerable:!1,configurable:!0});var k=fe;function fe(e){this.localization=e}k.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,deps:[{token:d.LocalizationService}],target:c.ɵɵFactoryTarget.Injectable}),k.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:k,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:d.LocalizationService}]}});Object.defineProperty(he.prototype,"expanded",{get:function(){var e;return(null==(e=this.kendoPivotGridCell)?void 0:e.hasChildren)&&this.kendoPivotGridCell.children.length},enumerable:!1,configurable:!0}),he.prototype.ngOnInit=function(){var e,t,n=this.hostEl.nativeElement,o=(this.renderer.setAttribute(n,"rowspan",this.kendoPivotGridCell.rowSpan||1),this.renderer.setAttribute(n,"colspan",this.kendoPivotGridCell.colSpan||1),{"k-pivotgrid-header-total":(null==(e=this.kendoPivotGridCell)?void 0:e.total)||"values"===this.tableType&&(this.dataService.rowHeaderLeaves[this.rowIndex].total||this.dataService.columnHeaderLeaves[this.colIndex].total),"k-pivotgrid-header-root":0===(null==(e=this.kendoPivotGridCell)?void 0:e.levelNum),"k-pivotgrid-expanded":(null==(e=this.kendoPivotGridCell)?void 0:e.hasChildren)&&this.kendoPivotGridCell.children.length,"k-first":0<this.colIndex});for(t in o)o[t]&&this.renderer.addClass(n,t)};var x=he;function he(e,t,n){var o=this;this.hostEl=e,this.renderer=t,this.dataService=n,this.cellClass=!0,this.handleClick=function(){o.dataService.expandedStateChange.emit({action:o.expanded?"collapse":"expand",cell:o.kendoPivotGridCell,tableType:o.tableType})}}x.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,deps:[{token:c.ElementRef},{token:c.Renderer2},{token:b}],target:c.ɵɵFactoryTarget.Component}),x.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"[kendoPivotGridCell]",inputs:{kendoPivotGridCell:"kendoPivotGridCell",tableType:"tableType",rowIndex:"rowIndex",colIndex:"colIndex"},host:{properties:{"class.k-pivotgrid-cell":"this.cellClass"}},ngImport:c,template:'\n <span \n *ngIf="kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total"\n class="k-icon"\n aria-hidden="true"\n [kendoEventsOutsideAngular]="{\n click: handleClick\n }"\n [ngClass]="{\n \'k-i-arrow-chevron-up\': expanded,\n \'k-i-arrow-chevron-down\': !expanded\n }"></span>{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}',isInline:!0,directives:[{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:_.EventsOutsideAngularDirective,selector:"[kendoEventsOutsideAngular]",inputs:["kendoEventsOutsideAngular","scope"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:x,decorators:[{type:r.Component,args:[{selector:"[kendoPivotGridCell]",template:'\n <span \n *ngIf="kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total"\n class="k-icon"\n aria-hidden="true"\n [kendoEventsOutsideAngular]="{\n click: handleClick\n }"\n [ngClass]="{\n \'k-i-arrow-chevron-up\': expanded,\n \'k-i-arrow-chevron-down\': !expanded\n }"></span>{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}'}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:b}]},propDecorators:{cellClass:[{type:r.HostBinding,args:["class.k-pivotgrid-cell"]}],kendoPivotGridCell:[{type:r.Input}],tableType:[{type:r.Input}],rowIndex:[{type:r.Input}],colIndex:[{type:r.Input}]}});Object.defineProperty(ve.prototype,"pivotGridId",{get:function(){return"kendo-pivotgrid-"+this.dataService.pivotGridId+"-"},enumerable:!1,configurable:!0}),ve.prototype.ngOnInit=function(){var t=this;this.dataChangeSubs.add(this.dataService[this.tableType+"Rows"].subscribe(function(e){return t.rows=e})),this.dataChangeSubs.add("values"===this.tableType?this.dataService.columnHeaderCols.subscribe(function(e){return t.headerItems=e}):this.dataService[this.tableType+"Cols"].subscribe(function(e){return t.headerItems=e}))},ve.prototype.ngOnDestroy=function(){this.dataChangeSubs.unsubscribe()};var C=ve;function ve(e){this.dataService=e,this.dataChangeSubs=new s.Subscription}C.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:C,deps:[{token:b}],target:c.ɵɵFactoryTarget.Component}),C.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"kendo-pivotgrid-table",inputs:{tableType:"tableType",colWidth:"colWidth"},ngImport:c,template:'\n <table\n class="k-pivotgrid-table"\n role="presentation">\n <colgroup>\n <col \n *ngFor="let item of headerItems;"\n [style.width]="tableType !== \'rowHeader\' ? colWidth >= 0 ? colWidth + \'px\' : \'200px\' : undefined" />\n </colgroup>\n <tbody class="k-pivotgrid-tbody" role="rowgroup">\n <tr *ngFor="let row of rows; index as rowIndex"\n class="k-pivotgrid-row"\n role="row">\n <ng-container *ngFor="let cell of row.cells; index as colIndex">\n <th\n *ngIf="cell && tableType !== \'values\'" \n [kendoPivotGridCell]="cell"\n [tableType]="tableType"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n [attr.aria-expanded]="cell.hasChildren && cell.children.length ? \'true\' : \'false\'"\n [attr.role]="tableType === \'columnHeader\' ? \'columnheader\' : \'rowheader\'"\n [attr.id]="pivotGridId + (tableType === \'columnHeader\' ? \'ch-\' : \'rh-\') + (rowIndex + 1) + \'-\' + (colIndex + 1)"></th>\n <td\n *ngIf="cell && tableType === \'values\'"\n [kendoPivotGridCell]="cell"\n tableType="values"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n role="gridcell"\n [attr.id]="pivotGridId + \'cell-\' + (rowIndex + 1) + \'-\' + (colIndex + 1)"></td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n ',isInline:!0,components:[{type:x,selector:"[kendoPivotGridCell]",inputs:["kendoPivotGridCell","tableType","rowIndex","colIndex"]}],directives:[{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:C,decorators:[{type:r.Component,args:[{selector:"kendo-pivotgrid-table",template:'\n <table\n class="k-pivotgrid-table"\n role="presentation">\n <colgroup>\n <col \n *ngFor="let item of headerItems;"\n [style.width]="tableType !== \'rowHeader\' ? colWidth >= 0 ? colWidth + \'px\' : \'200px\' : undefined" />\n </colgroup>\n <tbody class="k-pivotgrid-tbody" role="rowgroup">\n <tr *ngFor="let row of rows; index as rowIndex"\n class="k-pivotgrid-row"\n role="row">\n <ng-container *ngFor="let cell of row.cells; index as colIndex">\n <th\n *ngIf="cell && tableType !== \'values\'" \n [kendoPivotGridCell]="cell"\n [tableType]="tableType"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n [attr.aria-expanded]="cell.hasChildren && cell.children.length ? \'true\' : \'false\'"\n [attr.role]="tableType === \'columnHeader\' ? \'columnheader\' : \'rowheader\'"\n [attr.id]="pivotGridId + (tableType === \'columnHeader\' ? \'ch-\' : \'rh-\') + (rowIndex + 1) + \'-\' + (colIndex + 1)"></th>\n <td\n *ngIf="cell && tableType === \'values\'"\n [kendoPivotGridCell]="cell"\n tableType="values"\n [colIndex]="colIndex"\n [rowIndex]="rowIndex"\n role="gridcell"\n [attr.id]="pivotGridId + \'cell-\' + (rowIndex + 1) + \'-\' + (colIndex + 1)"></td>\n </ng-container>\n </tr>\n </tbody>\n </table>\n '}]}],ctorParameters:function(){return[{type:b}]},propDecorators:{tableType:[{type:r.Input}],colWidth:[{type:r.Input}]}});var ye=function(e,t,n,o,r){this.columnAxes=e,this.rowAxes=t,this.measureAxes=n,this.sort=o,this.filter=r},I=(be.prototype.parseConfiguratorState=function(e){var t=p.configuratorReducer({filter:this.dataService.state.filter,sort:this.dataService.state.sort,rowAxes:this.dataService.state.rowAxes,columnAxes:this.dataService.state.columnAxes,measureAxes:this.dataService.state.measureAxes,dragItem:this.state.dragItem,dropDirection:this.state.dropDirection,dropTarget:this.state.dropTarget,dropZone:this.state.dropZone},e);Object.keys(t).forEach(function(e){return void 0===t[e]&&delete t[e]}),this.state=Object.assign(Object.assign({},this.state),t),this.dataService.state=new ye(this.state.columnAxes,this.state.rowAxes,this.state.measureAxes,this.state.sort,this.state.filter),this.configuratorStateChange.emit(this.state)},be);function be(e){this.dataService=e,this.configuratorStateChange=new r.EventEmitter}I.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I,deps:[{token:b}],target:c.ɵɵFactoryTarget.Injectable}),I.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:I,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:b}]},propDecorators:{configuratorStateChange:[{type:r.Output}]}});ke.prototype.create=function(){this.dom=document.createElement("span"),this.dom.style.position="absolute";var e=document.createElement("div"),t=(e.classList.add("k-drop-hint","k-drop-hint-v"),document.createElement("div")),n=(t.classList.add("k-drop-hint-start"),document.createElement("div")),o=(n.classList.add("k-drop-hint-line"),document.createElement("div"));o.classList.add("k-drop-hint-end"),e.append(t,n,o),this.dom.append(e),this.hide()},ke.prototype.attach=function(){return e=this.dom,!1||(document.body.appendChild(e),0),e;var e},ke.prototype.remove=function(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)},ke.prototype.hide=function(){this.dom.style.display="none"},ke.prototype.position=function(e){var t=e.left,n=e.top,e=e.height,e=(this.dom.style.display="block",this.dom.style.height=e+"px",this.dom.style.top=n+"px",this.dom.style.zIndex="1000",this.dom.offsetWidth/2);this.dom.style.left=t-e+"px"};var T=ke;function ke(){}T.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,deps:[],target:c.ɵɵFactoryTarget.Injectable}),T.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:T,decorators:[{type:r.Injectable}]});$(Ie,xe=l.PreventableEvent);var xe,Ce=Ie;function Ie(e){var t=xe.call(this)||this;return t.originalEvent=e,t}De.prototype.open=function(e,t,n,o){void 0===o&&(o="k-grid-filter-popup");var n=Q(n)&&this.popupRef===n,o=(this.destroy(),n||(n=this.localization.rtl?"right":"left",this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:n},popupAlign:{vertical:"top",horizontal:n},anchor:e,popupClass:o,content:t,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)),null==(n=this.popupRef)?void 0:n.popupElement);return o&&this.attachMouseListeners(o),this.popupRef},De.prototype.destroy=function(){this.popupRef&&(this.detachClose(),this.pointerEventsSub.unsubscribe(),this.pointerEventsSub=null,this.popupRef.close(),this.popupRef=null)},De.prototype.ngOnDestroy=function(){this.destroy(),this.scrollSubscription.unsubscribe()},De.prototype.detachClose=function(){this.removeClick&&this.removeClick()},De.prototype.attachClose=function(t){var n=this;this.detachClose(),this.ngZone.runOutsideAngular(function(){return n.removeClick=n.renderer.listen("document","click",function(e){!function(e,t){for(;e;){if(t(e))return!0;e=e.parentNode}return!1}(e.target,function(e){return n.popupRef.popupElement===e||e===t})&&(e=new Ce(e),n.onClose.next(e),!e.isDefaultPrevented()&&n.canClosePopup&&n.destroy(),n.canClosePopup=!0)})})},De.prototype.attachMouseListeners=function(e){var t=this;this.pointerEventsSub=new s.Subscription,this.ngZone.runOutsideAngular(function(){t.pointerEventsSub.add(t.renderer.listen(e,"pointerdown",function(e){e.stopImmediatePropagation(),t.canClosePopup=!1})),t.pointerEventsSub.add(t.renderer.listen(e,"pointerup",function(){t.canClosePopup=!0}))})};var Te=De;function De(e,t,n,o){this.popupService=e,this.renderer=t,this.ngZone=n,this.localization=o,this.onClose=new s.Subject,this.pointerEventsSub=new s.Subscription,this.scrollSubscription=new s.Subscription}Te.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Te,deps:[{token:W.PopupService},{token:c.Renderer2},{token:c.NgZone},{token:k}],target:c.ɵɵFactoryTarget.Injectable}),Te.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Te}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Te,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:W.PopupService},{type:c.Renderer2},{type:c.NgZone},{type:k}]}});var D=function(){this.isColumnMenu=!1,this.isPopupOpen=!1},w=(D.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,deps:[],target:c.ɵɵFactoryTarget.Injectable}),D.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:D,decorators:[{type:r.Injectable}]}),we.prototype.close=function(){this.closeMenu.emit()},we);function we(e){this.closeMenu=new r.EventEmitter,this.menuTabbingService=e}w.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w,deps:[{token:D}],target:c.ɵɵFactoryTarget.Injectable}),w.ɵprov=c.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:w,decorators:[{type:r.Injectable}],ctorParameters:function(){return[{type:D}]}});Object.defineProperty(Se.prototype,"isFirst",{get:function(){return this._isFirst},set:function(e){var t,n=this;e&&(t=this.chipMenuItems[0],this.menuItemComponent.service.menuTabbingService.firstFocusable=t,this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen(t,"keydown",n.onTab);n.subs.add(e)})),this._isFirst=e},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"isLast",{get:function(){return this._isLast},set:function(e){var t,n=this;this.chipMenuItems&&(e&&(t=this.getLastColumnMenuItem(),this.menuItemComponent.service.menuTabbingService.lastFocusable=t,this.ngZone.runOutsideAngular(function(){var e=n.renderer.listen(t,"keydown",n.onTab);n.subs.add(e)})),this._isLast=e)},enumerable:!1,configurable:!0}),Se.prototype.ngAfterViewInit=function(){var t=this;this.chipMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),this.chipMenuItems.forEach(function(e){return t.renderer.setAttribute(e,"tabindex","0")})},Se.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Se.prototype.getLastColumnMenuItem=function(){return 1===this.chipMenuItems.length?this.chipMenuItems[0]:this.chipMenuItems[1]};var S=Se;function Se(e,t,n){var o=this;this.hostElement=e,this.renderer=t,this.ngZone=n,this._isFirst=!1,this._isLast=!1,this.subs=new s.Subscription,this.onTab=function(e){var t,n;e.keyCode===l.Keys.Tab&&(o.isFirst&&e.shiftKey&&e.target===o.chipMenuItems[0]&&(e.preventDefault(),o.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),o.isLast&&!e.shiftKey&&(t=o.getLastColumnMenuItem(),n=o.menuItemComponent.expanded,t!==e.target||n||(e.preventDefault(),o.menuItemComponent.service.menuTabbingService.firstFocusable.focus())))}}S.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:S,deps:[{token:c.ElementRef},{token:c.Renderer2},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),S.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:S,selector:"[kendoPivotChipMenuItem]",inputs:{menuItemComponent:["kendoPivotChipMenuItem","menuItemComponent"]},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:S,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotChipMenuItem]"}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:c.Renderer2},{type:c.NgZone}]},propDecorators:{menuItemComponent:[{type:r.Input,args:["kendoPivotChipMenuItem"]}]}});Fe.prototype.ngAfterViewInit=function(){var e=this;this.chipMenuItems.length&&(this.chipMenuItems.first.isFirst=!0,this.chipMenuItems.last.isLast=!0,this.ngZone.onStable.pipe(R.take(1)).subscribe(function(){return e.service.menuTabbingService.firstFocusable.focus()}))};var Oe=Fe;function Fe(e,t){this.service=e,this.ngZone=t,this.hostClass=!0}Oe.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Oe,deps:[{token:w},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Component}),Oe.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Oe,selector:"kendo-pivot-chipmenu-container",host:{properties:{"class.k-grid-columnmenu-popup":"this.hostClass"}},queries:[{propertyName:"chipMenuItems",predicate:S,descendants:!0}],ngImport:c,template:"\n <ng-content></ng-content>\n ",isInline:!0}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Oe,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chipmenu-container",template:"\n <ng-content></ng-content>\n "}]}],ctorParameters:function(){return[{type:w},{type:c.NgZone}]},propDecorators:{chipMenuItems:[{type:r.ContentChildren,args:[S,{descendants:!0}]}],hostClass:[{type:r.HostBinding,args:["class.k-grid-columnmenu-popup"]}]}});Ae.prototype.ngOnInit=function(){if(r.isDevMode()&&!this.service)throw new Error("The service input of the host chip menu components (e.g. ChipMenuSortComponent) is mandatory.")},Ae.prototype.close=function(){this.service.close()};var O=Ae;function Ae(){this.hostClass=!0}O.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,deps:[],target:c.ɵɵFactoryTarget.Component}),O.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-pivot-chip-menu-item-base",inputs:{service:"service"},host:{properties:{"class.k-columnmenu-item-wrapper":"this.hostClass"}},ngImport:c,template:"",isInline:!0}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chip-menu-item-base",template:""}]}],propDecorators:{service:[{type:r.Input}],hostClass:[{type:r.HostBinding,args:["class.k-columnmenu-item-wrapper"]}]}});var F=function(e){this.templateRef=e},A=(F.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:F,deps:[{token:c.TemplateRef,optional:!0}],target:c.ɵɵFactoryTarget.Directive}),F.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"[kendoPivotChipMenuItemContentTemplate]",ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:F,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotChipMenuItemContentTemplate]"}]}],ctorParameters:function(){return[{type:c.TemplateRef,decorators:[{type:r.Optional}]}]}}),Object.defineProperty(Ee.prototype,"iconClass",{get:function(){return"k-i-"+this.icon},enumerable:!1,configurable:!0}),Ee.prototype.ngOnChanges=function(e){e.expanded&&this.updateContentState()},Ee.prototype.onClick=function(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),(this.expanded?this.expand:this.collapse).emit())},Ee.prototype.updateContentState=function(){this.contentState=this.expanded?"expanded":"collapsed"},Ee);function Ee(){this.itemClick=new r.EventEmitter,this.expand=new r.EventEmitter,this.collapse=new r.EventEmitter,this.contentState="collapsed"}A.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:A,deps:[],target:c.ɵɵFactoryTarget.Component}),A.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:A,selector:"kendo-pivot-chipmenu-item",inputs:{icon:"icon",text:"text",selected:"selected",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},queries:[{propertyName:"contentTemplate",first:!0,predicate:F,descendants:!0}],usesOnChanges:!0,ngImport:c,template:'\n <div\n class="k-columnmenu-item"\n (click)="onClick($event)"\n (keydown.enter)="onClick($event)"\n [class.k-selected]="selected"\n role="button"\n [attr.aria-expanded]="expanded">\n <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">\n </span>\n {{ text }}\n </div>\n <div *ngIf="contentTemplate" [@state]="contentState" style="overflow:hidden;" class="k-columnmenu-item-content">\n <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">\n </ng-container>\n <div>\n ',isInline:!0,directives:[{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],animations:[i.trigger("state",[i.state("collapsed",i.style({display:"none"})),i.state("expanded",i.style({display:"block"})),i.transition("collapsed => expanded",[i.style({height:"0px",display:"block"}),i.animate("100ms ease-in",i.style({height:"*"}))]),i.transition("expanded => collapsed",[i.style({height:"*"}),i.animate("100ms ease-in",i.style({height:"0px"}))])])]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:A,decorators:[{type:r.Component,args:[{animations:[i.trigger("state",[i.state("collapsed",i.style({display:"none"})),i.state("expanded",i.style({display:"block"})),i.transition("collapsed => expanded",[i.style({height:"0px",display:"block"}),i.animate("100ms ease-in",i.style({height:"*"}))]),i.transition("expanded => collapsed",[i.style({height:"*"}),i.animate("100ms ease-in",i.style({height:"0px"}))])])],selector:"kendo-pivot-chipmenu-item",template:'\n <div\n class="k-columnmenu-item"\n (click)="onClick($event)"\n (keydown.enter)="onClick($event)"\n [class.k-selected]="selected"\n role="button"\n [attr.aria-expanded]="expanded">\n <span *ngIf="icon" class="k-icon" [ngClass]="iconClass">\n </span>\n {{ text }}\n </div>\n <div *ngIf="contentTemplate" [@state]="contentState" style="overflow:hidden;" class="k-columnmenu-item-content">\n <ng-container [ngTemplateOutlet]="contentTemplate.templateRef">\n </ng-container>\n <div>\n '}]}],propDecorators:{itemClick:[{type:r.Output}],expand:[{type:r.Output}],collapse:[{type:r.Output}],icon:[{type:r.Input}],text:[{type:r.Input}],selected:[{type:r.Input}],expanded:[{type:r.Input}],contentTemplate:[{type:r.ContentChild,args:[F,{static:!1}]}]}});$(Ne,Me=O),Object.defineProperty(Ne.prototype,"sortedAsc",{get:function(){var e=this.descriptor;return e&&(!e.dir||"asc"===e.dir)},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"sortedDesc",{get:function(){var e=this.descriptor;return e&&"desc"===e.dir},enumerable:!1,configurable:!0}),Ne.prototype.messageFor=function(e){return this.localization.get(e)},Ne.prototype.toggleSort=function(e){var t=this.chip.name.toString(),n=this.descriptor,o=this.configuratorService.state.sort.filter(function(e){return e.field!==t});n&&n.dir===e||o.push({field:t,dir:e}),this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setSort,payload:o}),this.close()},Object.defineProperty(Ne.prototype,"descriptor",{get:function(){var t=this;return[].concat(this.configuratorService.state.sort||[]).find(function(e){return e.field===t.chip.name.toString()})},enumerable:!1,configurable:!0});var Me,Pe=Ne;function Ne(e,t,n){var o=Me.call(this)||this;return o.localization=e,o.renderer=t,o.configuratorService=n,o}Pe.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Pe,deps:[{token:k},{token:c.Renderer2},{token:I}],target:c.ɵɵFactoryTarget.Component}),Pe.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Pe,selector:"kendo-pivot-chipmenu-sort",inputs:{chip:"chip"},usesInheritance:!0,ngImport:c,template:'\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortAscendingItemLabel\')"\n icon="sort-asc-small"\n (itemClick)="toggleSort(\'asc\')"\n [selected]="sortedAsc">\n </kendo-pivot-chipmenu-item>\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortDescendingItemLabel\')"\n icon="sort-desc-small"\n (itemClick)="toggleSort(\'desc\')"\n [selected]="sortedDesc">\n </kendo-pivot-chipmenu-item>\n ',isInline:!0,components:[{type:A,selector:"kendo-pivot-chipmenu-item",inputs:["icon","text","selected","expanded"],outputs:["itemClick","expand","collapse"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Pe,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chipmenu-sort",template:'\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortAscendingItemLabel\')"\n icon="sort-asc-small"\n (itemClick)="toggleSort(\'asc\')"\n [selected]="sortedAsc">\n </kendo-pivot-chipmenu-item>\n <kendo-pivot-chipmenu-item\n [text]="messageFor(\'fieldMenuSortDescendingItemLabel\')"\n icon="sort-desc-small"\n (itemClick)="toggleSort(\'desc\')"\n [selected]="sortedDesc">\n </kendo-pivot-chipmenu-item>\n '}]}],ctorParameters:function(){return[{type:k},{type:c.Renderer2},{type:I}]},propDecorators:{chip:[{type:r.Input}]}});Le.prototype.ngAfterViewInit=function(){var e=this.host.wrapper.nativeElement;e.setAttribute("aria-label",this.filterMenuDropDownLabel),e.addEventListener("keydown",this.keydownHandler,!0)},Le.prototype.ngOnDestroy=function(){this.host.wrapper.nativeElement.removeEventListener("keydown",this.keydownHandler)};i=Le;function Le(e){var t=this;this.host=e,this.keydownHandler=function(e){e.keyCode===l.Keys.Escape&&t.host.isOpen&&(e.stopPropagation(),t.host.toggle(!1))}}i.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,deps:[{token:Z.DropDownListComponent}],target:c.ɵɵFactoryTarget.Directive}),i.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:i,selector:"[kendoFilterMenuDropDown]",inputs:{filterMenuDropDownLabel:"filterMenuDropDownLabel"},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:i,decorators:[{type:r.Directive,args:[{selector:"[kendoFilterMenuDropDown]"}]}],ctorParameters:function(){return[{type:Z.DropDownListComponent}]},propDecorators:{filterMenuDropDownLabel:[{type:r.Input}]}});Ve={filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"};var Ve,Re=function(t){return Object.keys(Ve).map(function(e){return{text:t.get(e),value:Ve[e]}})},E=(Object.defineProperty(Be.prototype,"currentFilter",{get:function(){var t=this,e=null==(e=this.configuratorService.state.filter)?void 0:e.filter(function(e){return e.field===t.chip.name.toString()});return e&&e[0]},enumerable:!1,configurable:!0}),Be.prototype.registerOnChange=function(e){this.filterFormGroup.valueChanges.subscribe(e)},Be.prototype.registerOnTouched=function(e){this.onTouched=e},Be.prototype.writeValue=function(e){e&&this.filterFormGroup.setValue(e,{emitEvent:!1})},Object.defineProperty(Be.prototype,"filterMenuDropDownLabel",{get:function(){var e=this.localization.get("filterOperatorsDropDownLabel")||"",t=this.chip.name.toString();return ne(e,"fields",t)},enumerable:!1,configurable:!0}),Be.prototype.ngOnInit=function(){this.filterFormGroup=this.fb.group({operator:[this.currentFilter?this.currentFilter.operator:""],value:[this.currentFilter?this.currentFilter.value:""]}),this.operators=Re(this.localization)},Be.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},Be);function Be(e,t,n){this.localization=e,this.configuratorService=t,this.fb=n,this.subscription=new s.Subscription,this.onTouched=function(){}}E.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,deps:[{token:k},{token:I},{token:f.FormBuilder}],target:c.ɵɵFactoryTarget.Component}),E.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"kendo-pivot-string-filter-menu",inputs:{chip:"chip",menuTabbingService:"menuTabbingService"},providers:[{provide:G.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return E}),multi:!0}],ngImport:c,template:'\n <ng-container [formGroup]="filterFormGroup">\n <kendo-dropdownlist\n kendoFilterMenuDropDown\n [filterMenuDropDownLabel]="filterMenuDropDownLabel"\n [data]="operators"\n formControlName="operator"\n [valuePrimitive]="true"\n textField="text"\n valueField="value">\n </kendo-dropdownlist>\n <input\n kendoTextBox\n formControlName="value"\n />\n </ng-container>\n ',isInline:!0,components:[{type:Z.DropDownListComponent,selector:"kendo-dropdownlist",inputs:["iconClass","loading","data","value","textField","valueField","popupSettings","listHeight","defaultItem","disabled","itemDisabled","readonly","filterable","virtual","ignoreCase","delay","valuePrimitive","tabindex","tabIndex","size","rounded","fillMode","id"],outputs:["valueChange","filterChange","selectionChange","open","opened","close","closed","focus","blur"],exportAs:["kendoDropDownList"]}],directives:[{type:f.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:f.FormGroupDirective,selector:"[formGroup]",inputs:["formGroup"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:i,selector:"[kendoFilterMenuDropDown]",inputs:["filterMenuDropDownLabel"]},{type:f.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:f.FormControlName,selector:"[formControlName]",inputs:["disabled","formControlName","ngModel"],outputs:["ngModelChange"]},{type:h.TextBoxDirective,selector:"input[kendoTextBox]",inputs:["value"]},{type:f.DefaultValueAccessor,selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]"}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:E,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-string-filter-menu",providers:[{provide:G.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return E}),multi:!0}],template:'\n <ng-container [formGroup]="filterFormGroup">\n <kendo-dropdownlist\n kendoFilterMenuDropDown\n [filterMenuDropDownLabel]="filterMenuDropDownLabel"\n [data]="operators"\n formControlName="operator"\n [valuePrimitive]="true"\n textField="text"\n valueField="value">\n </kendo-dropdownlist>\n <input\n kendoTextBox\n formControlName="value"\n />\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:k},{type:I},{type:f.FormBuilder}]},propDecorators:{chip:[{type:r.Input}],menuTabbingService:[{type:r.Input}]}});function je(e){var t=e.value,e=e.operator;return!(re(t=t)||oe.test(t))||("isnull"===(t=e)||"isnotnull"===t||"isempty"===t||"isnotempty"===t)}Ge.prototype.ngOnInit=function(){},Ge.prototype.ngAfterViewChecked=function(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=(this.disabled?this.resetButton:this.filterButton).nativeElement)},Ge.prototype.ngOnDestroy=function(){this.menuTabbingService.lastFocusable=null},Object.defineProperty(Ge.prototype,"disabled",{get:function(){return!(this.filterDescriptorValue&&je(this.filterDescriptorValue))},enumerable:!1,configurable:!0}),Ge.prototype.submit=function(){var t=Object.assign({field:this.chip.name.toString()},this.filterDescriptorValue),e=this.configuratorService.state.filter?y(y([],v(this.configuratorService.state.filter.filter(function(e){return e.field!==t.field}))),[t]):[t];return this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setFilter,payload:e}),this.close.emit(),!1},Ge.prototype.reset=function(){var t=this,e=this.configuratorService.state.filter.filter(function(e){return e.field!==t.chip.name.toString()});this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setFilter,payload:e}),this.close.emit()},Ge.prototype.onTab=function(e,t){!this.menuTabbingService.firstFocusable||this.menuTabbingService.isColumnMenu&&!this.isLast||(e.preventDefault(),("reset"!==t||this.disabled?this.menuTabbingService.firstFocusable:this.filterButton.nativeElement).focus())},Ge.prototype.messageFor=function(e){return this.localization.get(e)};var He=Ge;function Ge(e,t,n,o){this.localization=e,this.cd=t,this.configuratorService=o,this.close=new r.EventEmitter,this.actionsClass="k-action-buttons k-button-group",this.menuTabbingService=n}He.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:He,deps:[{token:k},{token:c.ChangeDetectorRef},{token:D},{token:I}],target:c.ɵɵFactoryTarget.Component}),He.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:He,selector:"kendo-pivot-filter-menu-container",inputs:{chip:"chip",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",actionsClass:"actionsClass"},outputs:{close:"close"},providers:[D],viewQueries:[{propertyName:"resetButton",first:!0,predicate:["resetButton"],descendants:!0},{propertyName:"filterButton",first:!0,predicate:["filterButton"],descendants:!0}],ngImport:c,template:'\n <form (submit)="submit()" (reset)="reset()"\n class="k-filter-menu k-group k-reset k-state-border-up">\n <div class="k-filter-menu-container">\n <kendo-pivot-string-filter-menu\n [(ngModel)]="filterDescriptorValue"\n name="\'filterDescriptorValue\'"\n [chip]="chip"\n [menuTabbingService]="menuTabbingService">\n </kendo-pivot-string-filter-menu>\n <div [ngClass]="actionsClass">\n <button\n #resetButton\n type="reset"\n kendoButton\n (keydown.tab)="onTab($event, \'reset\')">{{messageFor(\'filterClearButton\')}}</button>\n <button #filterButton\n type="submit"\n [disabled]="disabled"\n kendoButton\n themeColor="primary"\n (keydown.tab)="onTab($event, \'filter\')">{{messageFor(\'filterFilterButton\')}}</button>\n </div>\n </div>\n </form>\n ',isInline:!0,styles:["\n kendo-pivot-string-filter-menu {\n display: flex;\n flex-flow: column nowrap;\n align-items: stretch;\n gap: 8px;\n }\n "],components:[{type:E,selector:"kendo-pivot-string-filter-menu",inputs:["chip","menuTabbingService"]}],directives:[{type:f.ɵNgNoValidate,selector:"form:not([ngNoForm]):not([ngNativeValidate])"},{type:f.NgControlStatusGroup,selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]"},{type:f.NgForm,selector:"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]",inputs:["ngFormOptions"],outputs:["ngSubmit"],exportAs:["ngForm"]},{type:f.NgControlStatus,selector:"[formControlName],[ngModel],[formControl]"},{type:f.NgModel,selector:"[ngModel]:not([formControlName]):not([formControl])",inputs:["name","disabled","ngModel","ngModelOptions"],outputs:["ngModelChange"],exportAs:["ngModel"]},{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:m.ButtonDirective,selector:"button[kendoButton], span[kendoButton]",inputs:["toggleable","togglable","selected","tabIndex","icon","iconClass","imageUrl","disabled","size","rounded","fillMode","themeColor","role","primary","look"],outputs:["selectedChange","click"],exportAs:["kendoButton"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:He,decorators:[{type:r.Component,args:[{providers:[D],selector:"kendo-pivot-filter-menu-container",template:'\n <form (submit)="submit()" (reset)="reset()"\n class="k-filter-menu k-group k-reset k-state-border-up">\n <div class="k-filter-menu-container">\n <kendo-pivot-string-filter-menu\n [(ngModel)]="filterDescriptorValue"\n name="\'filterDescriptorValue\'"\n [chip]="chip"\n [menuTabbingService]="menuTabbingService">\n </kendo-pivot-string-filter-menu>\n <div [ngClass]="actionsClass">\n <button\n #resetButton\n type="reset"\n kendoButton\n (keydown.tab)="onTab($event, \'reset\')">{{messageFor(\'filterClearButton\')}}</button>\n <button #filterButton\n type="submit"\n [disabled]="disabled"\n kendoButton\n themeColor="primary"\n (keydown.tab)="onTab($event, \'filter\')">{{messageFor(\'filterFilterButton\')}}</button>\n </div>\n </div>\n </form>\n ',styles:["\n kendo-pivot-string-filter-menu {\n display: flex;\n flex-flow: column nowrap;\n align-items: stretch;\n gap: 8px;\n }\n "]}]}],ctorParameters:function(){return[{type:k},{type:c.ChangeDetectorRef},{type:D},{type:I}]},propDecorators:{close:[{type:r.Output}],chip:[{type:r.Input}],isLast:[{type:r.Input}],isExpanded:[{type:r.Input}],menuTabbingService:[{type:r.Input}],actionsClass:[{type:r.Input}],resetButton:[{type:r.ViewChild,args:["resetButton"]}],filterButton:[{type:r.ViewChild,args:["filterButton"]}]}});$(qe,ze=O),qe.prototype.onCollapse=function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()},qe.prototype.onExpand=function(){this.expanded=!0,this.expand.emit()},qe.prototype.messageFor=function(e){return this.localization.get(e)};var ze,O=qe;function qe(e,t){var n=ze.call(this)||this;return n.localization=e,n.hostElement=t,n.expand=new r.EventEmitter,n.collapse=new r.EventEmitter,n.expanded=!1,n.isLast=!1,n.actionsClass="k-columnmenu-actions",n}O.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,deps:[{token:k},{token:c.ElementRef}],target:c.ɵɵFactoryTarget.Component}),O.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:O,selector:"kendo-pivot-chipmenu-filter",inputs:{chip:"chip",expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},usesInheritance:!0,ngImport:c,template:'\n <kendo-pivot-chipmenu-item\n classs="k-widget k-expander"\n [text]="messageFor(\'fieldMenuFilterItemLabel\')"\n icon="filter"\n [expanded]="expanded"\n (collapse)="onCollapse()"\n (expand)="onExpand()">\n <ng-template kendoPivotChipMenuItemContentTemplate>\n <kendo-pivot-filter-menu-container\n [chip]="chip"\n [menuTabbingService]="service.menuTabbingService"\n [actionsClass]="actionsClass"\n [isLast]="isLast"\n [isExpanded]="expanded"\n (keydown.shift.tab)="$event.stopImmediatePropagation()"\n (close)="close()">\n </kendo-pivot-filter-menu-container>\n </ng-template>\n </kendo-pivot-chipmenu-item>\n ',isInline:!0,components:[{type:A,selector:"kendo-pivot-chipmenu-item",inputs:["icon","text","selected","expanded"],outputs:["itemClick","expand","collapse"]},{type:He,selector:"kendo-pivot-filter-menu-container",inputs:["chip","isLast","isExpanded","menuTabbingService","actionsClass"],outputs:["close"]}],directives:[{type:F,selector:"[kendoPivotChipMenuItemContentTemplate]"}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:O,decorators:[{type:r.Component,args:[{selector:"kendo-pivot-chipmenu-filter",template:'\n <kendo-pivot-chipmenu-item\n classs="k-widget k-expander"\n [text]="messageFor(\'fieldMenuFilterItemLabel\')"\n icon="filter"\n [expanded]="expanded"\n (collapse)="onCollapse()"\n (expand)="onExpand()">\n <ng-template kendoPivotChipMenuItemContentTemplate>\n <kendo-pivot-filter-menu-container\n [chip]="chip"\n [menuTabbingService]="service.menuTabbingService"\n [actionsClass]="actionsClass"\n [isLast]="isLast"\n [isExpanded]="expanded"\n (keydown.shift.tab)="$event.stopImmediatePropagation()"\n (close)="close()">\n </kendo-pivot-filter-menu-container>\n </ng-template>\n </kendo-pivot-chipmenu-item>\n '}]}],ctorParameters:function(){return[{type:k},{type:c.ElementRef}]},propDecorators:{expand:[{type:r.Output}],collapse:[{type:r.Output}],chip:[{type:r.Input}],expanded:[{type:r.Input}],isLast:[{type:r.Input}]}});We.prototype.ngOnDestroy=function(){this.close(),this.closeSubscription.unsubscribe()},We.prototype.toggle=function(e,t,n){e&&(e.preventDefault(),e.stopImmediatePropagation()),this.popupRef=this.popupService.open(t,n,this.popupRef,"k-column-menu"),this.popupRef||this.anchor.nativeElement.focus()},We.prototype.close=function(){this.popupService.destroy(),this.popupRef=null,this.anchor.nativeElement.focus()},Object.defineProperty(We.prototype,"chipMenuTitle",{get:function(){var e=this.localization.get("chipMenuIconTitle")||"",t=this.chip.name.toString();return ne(e,"fieldName",t)},enumerable:!1,configurable:!0});var _e=We;function We(e,t,n){this.popupService=e,this.localization=t,this.service=n,this.tabIndex="-1",this.closeSubscription=n.closeMenu.subscribe(this.close.bind(this))}_e.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:_e,deps:[{token:Te},{token:k},{token:w}],target:c.ɵɵFactoryTarget.Component}),_e.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:_e,selector:"kendo-pivot-chip-menu",inputs:{chip:"chip",tabIndex:"tabIndex"},providers:[w,D],viewQueries:[{propertyName:"anchor",first:!0,predicate:["anchor"],descendants:!0,static:!0}],ngImport:c,template:'\n <span #anchor\n class="k-icon k-i-more-vertical"\n (click)="toggle($event, anchor, template)"\n [tabindex]="tabIndex"\n [attr.title]="chipMenuTitle">\n </span>\n <ng-template #template>\n <kendo-pivot-chipmenu-container\n (keydown.escape)="close()"\n (keydown.enter)="$event.stopImmediatePropagation()">\n <kendo-pivot-chipmenu-sort\n #sortItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="sortItem"\n [service]="service">\n </kendo-pivot-chipmenu-sort>\n\n <kendo-pivot-chipmenu-filter\n #filterItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="filterItem"\n [service]="service">\n </kendo-pivot-chipmenu-filter>\n </kendo-pivot-chipmenu-container>\n </ng-template>\n ',isInline:!0,components:[{type:Oe,selector:"kendo-pivot-chipmenu-container"},{type:Pe,selector:"kendo-pivot-chipmenu-sort",inputs:["chip"]},{type:O,selector:"kendo-pivot-chipmenu-filter",inputs:["chip","expanded","isLast"],outputs:["expand","collapse"]}],directives:[{type:S,selector:"[kendoPivotChipMenuItem]",inputs:["kendoPivotChipMenuItem"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:_e,decorators:[{type:r.Component,args:[{providers:[w,D],selector:"kendo-pivot-chip-menu",template:'\n <span #anchor\n class="k-icon k-i-more-vertical"\n (click)="toggle($event, anchor, template)"\n [tabindex]="tabIndex"\n [attr.title]="chipMenuTitle">\n </span>\n <ng-template #template>\n <kendo-pivot-chipmenu-container\n (keydown.escape)="close()"\n (keydown.enter)="$event.stopImmediatePropagation()">\n <kendo-pivot-chipmenu-sort\n #sortItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="sortItem"\n [service]="service">\n </kendo-pivot-chipmenu-sort>\n\n <kendo-pivot-chipmenu-filter\n #filterItem\n [chip]="chip"\n [kendoPivotChipMenuItem]="filterItem"\n [service]="service">\n </kendo-pivot-chipmenu-filter>\n </kendo-pivot-chipmenu-container>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:Te},{type:k},{type:w}]},propDecorators:{chip:[{type:r.Input}],tabIndex:[{type:r.Input}],anchor:[{type:r.ViewChild,args:["anchor",{static:!0}]}]}});Ke.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.elementType="KENDO-CHIP"===t.nodeName?"chip":"container",this.zone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(t,"mouseenter",e.handleMouseEnter.bind(e))),e.subs.add(e.renderer.listen(t,"mousemove",e.handleMouseMove.bind(e))),e.subs.add(e.renderer.listen(t,"mouseleave",e.handleMouseLeave.bind(e)))})},Ke.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Ke.prototype.handleMouseEnter=function(e){this.configuratorService.state.dragItem&&("chip"===this.elementType&&(this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropTarget,payload:this.item}),this.targetElement=e.target,this.cue.position(ee(e.target,"before"===this.configuratorService.state.dropDirection))),this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:this.axes}))},Ke.prototype.handleMouseMove=function(e){var t;this.configuratorService.state.dragItem&&"chip"===this.elementType&&this.element.nativeElement&&(t=this.element.nativeElement.getBoundingClientRect(),(e=e.clientX-t.left<t.width/2?"before":"after")!==this.configuratorService.state.dropDirection&&this.targetElement&&this.cue.position(ee(this.targetElement,"before"==e)),this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropDirection,payload:e}))},Ke.prototype.handleMouseLeave=function(){"chip"!==this.elementType&&this.configuratorService.state.dragItem&&this.configuratorService.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDropZone,payload:null})};var Ze=Ke;function Ke(e,t,n,o,r){this.element=e,this.configuratorService=t,this.cue=n,this.renderer=o,this.zone=r,this.subs=new s.Subscription}Ze.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ze,deps:[{token:c.ElementRef},{token:I},{token:T},{token:c.Renderer2},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),Ze.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ze,selector:"[kendoDropTarget]",inputs:{item:"item",axes:"axes"},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ze,decorators:[{type:r.Directive,args:[{selector:"[kendoDropTarget]"}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:I},{type:T},{type:c.Renderer2},{type:c.NgZone}]},propDecorators:{item:[{type:r.Input}],axes:[{type:r.Input}]}});Object.defineProperty($e.prototype,"pointerEvents",{get:function(){return this.drag?"none":void 0},enumerable:!1,configurable:!0}),$e.prototype.ngOnInit=function(){var t=this;this.zone.runOutsideAngular(function(){return t.subs.add(t.draggable.kendoPress.subscribe(function(e){l.isDocumentAvailable()&&(t.cue.create(),t.cue.attach(),t.initialX.current=e.clientX,t.initialY.current=e.clientY)}))}),this.zone.runOutsideAngular(function(){return t.subs.add(t.draggable.kendoDrag.subscribe(function(e){if(l.isDocumentAvailable()){if(Math.abs(t.initialX.current-e.clientX)<10&&Math.abs(t.initialY.current-e.clientY)<10)return;t.element.nativeElement&&(t.element.nativeElement.style.transform="translate("+(e.clientX-t.initialX.current)+"px, "+(e.clientY-t.initialY.current)+"px)")}t.drag=!0,t.service.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.setDragItem,payload:t.item})}))}),this.zone.runOutsideAngular(function(){return t.subs.add(t.draggable.kendoRelease.subscribe(function(){t.drag=!1,t.service.state.dragItem&&(l.isDocumentAvailable()&&(t.element.nativeElement&&(t.element.nativeElement.style.transform=""),t.cue.remove()),t.service.parseConfiguratorState({type:p.PIVOT_CONFIGURATOR_ACTION.drop,payload:t.item}),t.service.state.dragItem=null,t.service.state.dropDirection=null,t.service.state.dropTarget=null,t.service.state.dropZone=null)}))})},$e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()};var Ue=$e;function $e(e,t,n,o,r){this.draggable=e,this.element=t,this.zone=n,this.service=o,this.cue=r,this.touchActions="none",this.initialX={},this.initialY={},this.subs=new s.Subscription}Ue.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ue,deps:[{token:_.DraggableDirective,optional:!0},{token:c.ElementRef},{token:c.NgZone},{token:I},{token:T}],target:c.ɵɵFactoryTarget.Directive}),Ue.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:Ue,selector:"[kendoChipDraggable]",inputs:{item:"item"},host:{properties:{"style.pointerEvents":"this.pointerEvents","style.touch-action":"this.touchActions"}},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Ue,decorators:[{type:r.Directive,args:[{selector:"[kendoChipDraggable]"}]}],ctorParameters:function(){return[{type:_.DraggableDirective,decorators:[{type:r.Optional}]},{type:c.ElementRef},{type:c.NgZone},{type:I},{type:T}]},propDecorators:{pointerEvents:[{type:r.HostBinding,args:["style.pointerEvents"]}],touchActions:[{type:r.HostBinding,args:["style.touch-action"]}],item:[{type:r.Input}]}});Object.defineProperty(M.prototype,"isHorizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),M.prototype.ngOnInit=function(){var t=this;this.subs.add(this.dataService.fields.subscribe(function(e){t.fields=e})),this.subs.add(this.dataService.configuredFields.subscribe(function(e){e=pe(Object.assign(Object.assign({},t.dataService.state),{dragItem:e.dragItem,dropTarget:e.dropTarget,dropZone:e.dropZone,dropDirection:e.dropDirection}));t.originalState=e,t.setState(e),t.setChecked()})),this.subs.add(this.configuratorService.configuratorStateChange.subscribe(function(e){t.state=e,t.dataService.state=t.dataService.state={columnAxes:e.columnAxes,rowAxes:e.rowAxes,measureAxes:e.measureAxes,sort:e.sort,filter:e.filter},t.cdr.detectChanges()}))},M.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},M.prototype.getName=function(e){return e.toString()},M.prototype.setState=function(e){this.dataService.state={columnAxes:e.columnAxes,rowAxes:e.rowAxes,measureAxes:e.measureAxes,sort:e.sort,filter:e.filter},this.state=this.configuratorService.state=e},M.prototype.messageFor=function(e){return this.localization.get(e)},Object.defineProperty(M.prototype,"columnHierarchies",{get:function(){return this.extractDefaultFields(this.dataService.state.columnAxes)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"rowHierarchies",{get:function(){return this.extractDefaultFields(this.dataService.state.rowAxes)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"measureHierarchies",{get:function(){return this.extractDefaultFields(this.dataService.state.measureAxes)},enumerable:!1,configurable:!0}),M.prototype.onChipRemove=function(t,e){var n=this.dataService.state[e+"Axes"].filter(function(e){return e!==t}),e=(this.dataService.state[e+"Axes"]=n,Object.assign(Object.assign({},this.state),this.dataService.state));this.checked=this.checked.filter(function(e){return e.uniqueName!==t.name[0]}),this.setState(e)},M.prototype.setChecked=function(e){var n=this,e=(void 0===e&&(e=[]),y(y([],v(this.fields)),v(e))),e=this.getFieldsFlatMap(e).filter(function(t){return y(y(y([],v(n.columnHierarchies)),v(n.rowHierarchies)),v(n.measureHierarchies)).some(function(e){return e===t.uniqueName||e===t.defaultHierarchy})});this.checked=e},M.prototype.isItemChecked=function(t){var e;return this.checked.some(function(e){return t.defaultHierarchy?e.defaultHierarchy===t.defaultHierarchy:e.uniqueName===t.uniqueName})||(null==(e=t.children)?void 0:e.length)&&(null==(e=t.children)?void 0:e.every(function(e){return e.checked}))||null},M.prototype.isSelectable=function(e){var t=!("hierarchyUniqueName"in e||"aggregator"in e);return!Boolean(!t&&!e.aggregator&&!e.measure||2===e.type||"[KPIs]"===e.uniqueName)},M.prototype.handleChildrenLoaded=function(e){"local"!==this.dataService.directive.type&&(e=e.children.map(function(e){return e.dataItem}),this.setChecked(e))},M.prototype.handleCheckedChange=function(e,t){e.target.checked?this.checked=y(y([],v(this.checked)),[t]):(e=this.checked.findIndex(function(e){return e.uniqueName===t.uniqueName}),this.checked.splice(e,1));e={type:"PIVOT_CONFIGURATOR_ACTION_TOGGLE_SELECTION",payload:t};this.configuratorService.parseConfiguratorState(e)},M.prototype.handleSubmit=function(){this.dataService.configuratorFieldChange.emit(this.dataService.state)},M.prototype.handleReset=function(){this.setState(pe(this.originalState)),this.setChecked()},M.prototype.getFieldsFlatMap=function(e){var t=this,n=y([],v(e=void 0===e?[]:e));return(e||[]).forEach(function(e){n=n.concat(t.getFieldsFlatMap(e.children))}),n},M.prototype.extractDefaultFields=function(e){void 0===e&&(e=[]);var t=new Set;return e.forEach(function(e){t.add(String(e.name))}),Array.from(t)};var Xe=M;function M(e,t,n,o){var r=this;this.dataService=e,this.localization=t,this.configuratorService=n,this.cdr=o,this.hostClass=!0,this.orientation="vertical",this.sort=new Array,this.checked=[],this.subs=new s.Subscription,this.hasChildren=function(e){return!("hierarchyUniqueName"in e||"aggregator"in e)},this.children=function(e){return"olap"===r.dataService.directive.type?s.from(r.dataService.directive.fetchChildren(e,r.fields)).pipe(R.mergeMap(function(e){return s.of(e)})):s.of(e.children)}}Xe.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Xe,deps:[{token:b},{token:d.LocalizationService},{token:I},{token:c.ChangeDetectorRef}],target:c.ɵɵFactoryTarget.Component}),Xe.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:Xe,selector:"kendo-pivotgrid-configurator",inputs:{orientation:"orientation",sort:"sort",filter:"filter"},host:{properties:{"class.k-pivotgrid-configurator":"this.hostClass"}},providers:[I,T,Te],ngImport:c,template:'\n <div \n class="k-pivotgrid-configurator-panel k-pivotgrid-configurator-push"\n [ngClass]="{\n \'k-pivotgrid-configurator-horizontal\': isHorizontal,\n \'k-pivotgrid-configurator-vertical\': !isHorizontal\n }"\n >\n <div class="k-pivotgrid-configurator-header">\n <div class="k-pivotgrid-configurator-header-text">{{messageFor(\'configuratorHeaderText\')}}</div>\n </div>\n\n <div class="k-pivotgrid-configurator-content">\n <div class="k-form" [class.k-form-horizontal]="isHorizontal">\n <div class="k-form-field-wrapper">\n <div class="k-form-field">\n <span class="k-label">{{messageFor(\'configuratorFieldsText\')}}</span>\n </div>\n\n <div class="k-form-field">\n <div class="k-fields-list-wrapper">\n <kendo-treeview\n [nodes]="fields"\n textField="caption"\n [children]="children"\n [hasChildren]="hasChildren"\n kendoTreeViewExpandable\n (childrenLoaded)="handleChildrenLoaded($event)"\n >\n <ng-template kendoTreeViewNodeTemplate let-dataItem>\n <input kendoCheckBox\n *ngIf="isSelectable(dataItem)"\n type="checkbox" \n kendoCheckBox\n [checked]="isItemChecked(dataItem)"\n (change)="handleCheckedChange($event, dataItem)"/>\n {{ dataItem.caption }}\n </ng-template>\n </kendo-treeview>\n\n </div>\n </div>\n </div>\n\n <div *ngIf="isHorizontal; else verticalTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalTemplate"></ng-container>\n </div>\n\n <ng-template #verticalTemplate>\n <div class="k-form-field" kendoDropTarget axes="columnAxes">\n <span class="k-label">{{messageFor(\'configuratorColumnsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.columnAxes && state.columnAxes.length; else noColumnAxes"\n kendoDropTarget\n axes="columnAxes"\n >\n <ng-container *ngFor="let item of state.columnAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="columnAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'column\')"\n >{{ getName(item.name) }}\n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noColumnAxes>\n <div class="k-settings-description" kendoDropTarget axes="columnAxes">{{messageFor(\'configuratorEmptyColumnsText\')}}</div>\n </ng-template>\n\n <div class="k-form-field" kendoDropTarget axes="rowAxes">\n <span class="k-label">{{messageFor(\'configuratorRowsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.rowAxes && state.rowAxes.length; else noRowAxes"\n kendoDropTarget\n axes="rowAxes"\n >\n <ng-container *ngFor="let item of state.rowAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="rowAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'row\')"\n >\n {{ getName(item.name) }}\n \n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noRowAxes>\n <div class="k-settings-description" kendoDropTarget axes="rowAxes">{{messageFor(\'configuratorEmptyRowsText\')}}</div>\n </ng-template>\n </ng-template>\n\n <div *ngIf="isHorizontal; else verticalMeasuresTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalMeasuresTemplate"></ng-container>\n </div>\n\n <ng-template #verticalMeasuresTemplate>\n <div class="k-form-field" kendoDropTarget axes="measureAxes">\n <span class="k-label">{{messageFor(\'configuratorValuesText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.measureAxes && state.measureAxes.length; else noMeasureAxes"\n kendoDropTarget\n axes="measureAxes"\n >\n <kendo-chip *ngFor="let item of state.measureAxes"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="measureAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'measure\')"\n >\n {{ getName(item.name) }}\n </kendo-chip>\n </kendo-chiplist>\n\n <ng-template #noMeasureAxes>\n <div class="k-settings-description" kendoDropTarget axes="measureAxes">{{messageFor(\'configuratorEmptyMeasuresText\')}}</div>\n </ng-template>\n </ng-template>\n \n </div>\n </div>\n <div class="k-pivotgrid-configurator-actions k-actions k-hstack k-justify-content-end">\n <button kendoButton type="button" (click)="handleReset()">{{messageFor(\'configuratorCancelButtonText\')}}</button>\n <button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor(\'configuratorApplyButtonText\')}}</button>\n </div>\n </div>\n ',isInline:!0,styles:["\n .k-form .k-chip-list {\n width: 100%;\n }\n "],components:[{type:o.TreeViewComponent,selector:"kendo-treeview",inputs:["filterInputPlaceholder","expandDisabledNodes","animate","nodeTemplate","loadMoreButtonTemplate","trackBy","nodes","textField","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","navigable","children","loadOnDemand","filterable","filter","size","disableParentNodesOnly"],outputs:["childrenLoaded","blur","focus","expand","collapse","nodeDragStart","nodeDrag","filterStateChange","nodeDrop","nodeDragEnd","addItem","removeItem","checkedChange","selectionChange","filterChange","nodeClick","nodeDblClick"],exportAs:["kendoTreeView"]},{type:m.ChipListComponent,selector:"kendo-chiplist, kendo-chip-list",inputs:["selection","size"],outputs:["selectedChange","remove"]},{type:m.ChipComponent,selector:"kendo-chip",inputs:["label","icon","iconClass","avatarClass","selected","removable","removeIcon","disabled","size","rounded","fillMode","themeColor"],outputs:["remove","contentClick"]},{type:_e,selector:"kendo-pivot-chip-menu",inputs:["chip","tabIndex"]}],directives:[{type:u.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:o.ExpandDirective,selector:"[kendoTreeViewExpandable]",inputs:["isExpanded","expandBy","expandOnFilter","expandedKeys"],outputs:["expandedKeysChange"]},{type:o.NodeTemplateDirective,selector:"[kendoTreeViewNodeTemplate]"},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:h.CheckBoxDirective,selector:"input[kendoCheckBox]",inputs:["size","rounded"]},{type:u.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:Ze,selector:"[kendoDropTarget]",inputs:["item","axes"]},{type:u.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:Ue,selector:"[kendoChipDraggable]",inputs:["item"]},{type:_.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]},{type:m.ButtonDirective,selector:"button[kendoButton], span[kendoButton]",inputs:["toggleable","togglable","selected","tabIndex","icon","iconClass","imageUrl","disabled","size","rounded","fillMode","themeColor","role","primary","look"],outputs:["selectedChange","click"],exportAs:["kendoButton"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:Xe,decorators:[{type:r.Component,args:[{selector:"kendo-pivotgrid-configurator",providers:[I,T,Te],template:'\n <div \n class="k-pivotgrid-configurator-panel k-pivotgrid-configurator-push"\n [ngClass]="{\n \'k-pivotgrid-configurator-horizontal\': isHorizontal,\n \'k-pivotgrid-configurator-vertical\': !isHorizontal\n }"\n >\n <div class="k-pivotgrid-configurator-header">\n <div class="k-pivotgrid-configurator-header-text">{{messageFor(\'configuratorHeaderText\')}}</div>\n </div>\n\n <div class="k-pivotgrid-configurator-content">\n <div class="k-form" [class.k-form-horizontal]="isHorizontal">\n <div class="k-form-field-wrapper">\n <div class="k-form-field">\n <span class="k-label">{{messageFor(\'configuratorFieldsText\')}}</span>\n </div>\n\n <div class="k-form-field">\n <div class="k-fields-list-wrapper">\n <kendo-treeview\n [nodes]="fields"\n textField="caption"\n [children]="children"\n [hasChildren]="hasChildren"\n kendoTreeViewExpandable\n (childrenLoaded)="handleChildrenLoaded($event)"\n >\n <ng-template kendoTreeViewNodeTemplate let-dataItem>\n <input kendoCheckBox\n *ngIf="isSelectable(dataItem)"\n type="checkbox" \n kendoCheckBox\n [checked]="isItemChecked(dataItem)"\n (change)="handleCheckedChange($event, dataItem)"/>\n {{ dataItem.caption }}\n </ng-template>\n </kendo-treeview>\n\n </div>\n </div>\n </div>\n\n <div *ngIf="isHorizontal; else verticalTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalTemplate"></ng-container>\n </div>\n\n <ng-template #verticalTemplate>\n <div class="k-form-field" kendoDropTarget axes="columnAxes">\n <span class="k-label">{{messageFor(\'configuratorColumnsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.columnAxes && state.columnAxes.length; else noColumnAxes"\n kendoDropTarget\n axes="columnAxes"\n >\n <ng-container *ngFor="let item of state.columnAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="columnAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'column\')"\n >{{ getName(item.name) }}\n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noColumnAxes>\n <div class="k-settings-description" kendoDropTarget axes="columnAxes">{{messageFor(\'configuratorEmptyColumnsText\')}}</div>\n </ng-template>\n\n <div class="k-form-field" kendoDropTarget axes="rowAxes">\n <span class="k-label">{{messageFor(\'configuratorRowsText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.rowAxes && state.rowAxes.length; else noRowAxes"\n kendoDropTarget\n axes="rowAxes"\n >\n <ng-container *ngFor="let item of state.rowAxes">\n <kendo-chip *ngIf="item.name.length === 1"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="rowAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'row\')"\n >\n {{ getName(item.name) }}\n \n <kendo-pivot-chip-menu\n [chip]="item">\n </kendo-pivot-chip-menu>\n </kendo-chip>\n </ng-container>\n </kendo-chiplist>\n\n <ng-template #noRowAxes>\n <div class="k-settings-description" kendoDropTarget axes="rowAxes">{{messageFor(\'configuratorEmptyRowsText\')}}</div>\n </ng-template>\n </ng-template>\n\n <div *ngIf="isHorizontal; else verticalMeasuresTemplate" class="k-form-field-wrapper">\n <ng-container *ngTemplateOutlet="verticalMeasuresTemplate"></ng-container>\n </div>\n\n <ng-template #verticalMeasuresTemplate>\n <div class="k-form-field" kendoDropTarget axes="measureAxes">\n <span class="k-label">{{messageFor(\'configuratorValuesText\')}}</span>\n </div>\n\n <kendo-chiplist\n *ngIf="state.measureAxes && state.measureAxes.length; else noMeasureAxes"\n kendoDropTarget\n axes="measureAxes"\n >\n <kendo-chip *ngFor="let item of state.measureAxes"\n kendoChipDraggable\n kendoDraggable\n kendoDropTarget\n [item]="item"\n axes="measureAxes"\n rounded="full"\n [removable]="true"\n (remove)="onChipRemove(item, \'measure\')"\n >\n {{ getName(item.name) }}\n </kendo-chip>\n </kendo-chiplist>\n\n <ng-template #noMeasureAxes>\n <div class="k-settings-description" kendoDropTarget axes="measureAxes">{{messageFor(\'configuratorEmptyMeasuresText\')}}</div>\n </ng-template>\n </ng-template>\n \n </div>\n </div>\n <div class="k-pivotgrid-configurator-actions k-actions k-hstack k-justify-content-end">\n <button kendoButton type="button" (click)="handleReset()">{{messageFor(\'configuratorCancelButtonText\')}}</button>\n <button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor(\'configuratorApplyButtonText\')}}</button>\n </div>\n </div>\n ',styles:["\n .k-form .k-chip-list {\n width: 100%;\n }\n "]}]}],ctorParameters:function(){return[{type:b},{type:d.LocalizationService},{type:I},{type:c.ChangeDetectorRef}]},propDecorators:{hostClass:[{type:r.HostBinding,args:["class.k-pivotgrid-configurator"]}],orientation:[{type:r.Input}],sort:[{type:r.Input}],filter:[{type:r.Input}]}});$(Qe,Ye=t.ComponentMessages);var Ye,o=Qe;function Qe(){return null!==Ye&&Ye.apply(this,arguments)||this}o.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:o,deps:null,target:c.ɵɵFactoryTarget.Directive}),o.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,inputs:{fieldMenuFilterItemLabel:"fieldMenuFilterItemLabel",fieldMenuSortAscendingItemLabel:"fieldMenuSortAscendingItemLabel",fieldMenuSortDescendingItemLabel:"fieldMenuSortDescendingItemLabel",filterInputLabel:"filterInputLabel",filterOperatorsDropDownLabel:"filterOperatorsDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",loading:"loading",emptyCellLabel:"emptyCellLabel",configuratorButtonText:"configuratorButtonText",configuratorHeaderText:"configuratorHeaderText",configuratorFieldsText:"configuratorFieldsText",configuratorColumnsText:"configuratorColumnsText",configuratorRowsText:"configuratorRowsText",configuratorValuesText:"configuratorValuesText",configuratorCancelButtonText:"configuratorCancelButtonText",configuratorApplyButtonText:"configuratorApplyButtonText",configuratorEmptyRowsText:"configuratorEmptyRowsText",configuratorEmptyColumnsText:"configuratorEmptyColumnsText",configuratorEmptyMeasuresText:"configuratorEmptyMeasuresText",chipMenuIconTitle:"chipMenuIconTitle"},usesInheritance:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:o,decorators:[{type:r.Directive}],propDecorators:{fieldMenuFilterItemLabel:[{type:r.Input}],fieldMenuSortAscendingItemLabel:[{type:r.Input}],fieldMenuSortDescendingItemLabel:[{type:r.Input}],filterInputLabel:[{type:r.Input}],filterOperatorsDropDownLabel:[{type:r.Input}],filterEqOperator:[{type:r.Input}],filterNotEqOperator:[{type:r.Input}],filterIsNullOperator:[{type:r.Input}],filterIsNotNullOperator:[{type:r.Input}],filterIsEmptyOperator:[{type:r.Input}],filterIsNotEmptyOperator:[{type:r.Input}],filterStartsWithOperator:[{type:r.Input}],filterContainsOperator:[{type:r.Input}],filterNotContainsOperator:[{type:r.Input}],filterEndsWithOperator:[{type:r.Input}],filterFilterButton:[{type:r.Input}],filterClearButton:[{type:r.Input}],loading:[{type:r.Input}],emptyCellLabel:[{type:r.Input}],configuratorButtonText:[{type:r.Input}],configuratorHeaderText:[{type:r.Input}],configuratorFieldsText:[{type:r.Input}],configuratorColumnsText:[{type:r.Input}],configuratorRowsText:[{type:r.Input}],configuratorValuesText:[{type:r.Input}],configuratorCancelButtonText:[{type:r.Input}],configuratorApplyButtonText:[{type:r.Input}],configuratorEmptyRowsText:[{type:r.Input}],configuratorEmptyColumnsText:[{type:r.Input}],configuratorEmptyMeasuresText:[{type:r.Input}],chipMenuIconTitle:[{type:r.Input}]}});$(tt,Je=o);var Je,et=tt;function tt(e){var t=Je.call(this)||this;return t.service=e,t}et.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:et,deps:[{token:d.LocalizationService}],target:c.ɵɵFactoryTarget.Directive}),et.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:et,selector:"[kendoPivotGridLocalizedMessages]",providers:[{provide:o,useExisting:r.forwardRef(function(){return et})}],usesInheritance:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:et,decorators:[{type:r.Directive,args:[{providers:[{provide:o,useExisting:r.forwardRef(function(){return et})}],selector:"[kendoPivotGridLocalizedMessages]"}]}],ctorParameters:function(){return[{type:d.LocalizationService}]}});var nt={type:"converging-spinner",themeColor:"primary",size:"large"},ot={position:"right",orientation:"vertical"},h=(Object.defineProperty(P.prototype,"rightPositionClass",{get:function(){var e;return"right"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"leftPositionClass",{get:function(){var e;return"left"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"bottomPositionClass",{get:function(){var e;return"bottom"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"topPositionClass",{get:function(){var e;return"top"===(null==(e=this.configuratorSettings)?void 0:e.position)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loaderSettings",{get:function(){return this._loaderSettings},set:function(e){this._loaderSettings=Object.assign({},nt,e)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loadingText",{get:function(){return this.localization.get("loading")},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"configuratorSettings",{get:function(){return this.configurator&&Object.assign({},ot,this.configurator)},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"aggregateData",{get:function(){return ue(this.dataService.aggregateData)},enumerable:!1,configurable:!0}),P.prototype.ngAfterViewInit=function(){var r=this;l.isDocumentAvailable()&&this.zone.runOutsideAngular(function(){var e=r.rowHeadersTable.nativeElement.firstElementChild,t=new ResizeObserver(function(){return r.resizeContainer("Columns",e)}),n=(t.observe(e),r.colHeadersTable.nativeElement.firstElementChild),o=new ResizeObserver(function(){return r.resizeContainer("Rows",n)});o.observe(n),r.resizeObservers=[t,o],r.subs.add(s.fromEvent(e,"wheel").pipe(R.merge(s.fromEvent(n,"wheel"),s.fromEvent(r.valuesTable.nativeElement,"scroll"))).subscribe(function(e){return r.handleScroll(e)})),r.navigable&&r.initNavigation()})},P.prototype.ngAfterContentInit=function(){var t=this;this.subs.add(this.dataService.loading.subscribe(function(e){return t.loading=e}))},P.prototype.ngOnChanges=function(e){l.isChanged("navigable",e)&&(this.navigable?this.initNavigation():this.stopNavigation())},P.prototype.ngOnDestroy=function(){this.resizeObservers.forEach(function(e){return e.disconnect()}),this.subs.unsubscribe(),this.stopNavigation()},P.prototype.messageFor=function(e){return this.localization.get(e)},P.prototype.initNavigation=function(){var e=this,t=(this.stopNavigation(),this.navigation=new p.PivotGridNavigation({tabIndex:0}),this.navigation.start(this.hostEl.nativeElement),this.navigation.first);t&&t.setAttribute("tabindex","0"),this.navigationSubs||(this.navigationSubs=this.dataService.directive.expandChange.pipe(R.merge(this.dataService.directive.configurationChange)).subscribe(function(){return e.zone.runOutsideAngular(function(){setTimeout(function(){return e.navigation.update()})})}),this.subs.add(this.navigationSubs))},P.prototype.stopNavigation=function(){var e;this.navigation&&((e=this.navigation.elements.find(function(e){return e.hasAttribute("tabindex")}))&&this.renderer.removeAttribute(e,"tabindex"),this.navigation.stop())},P);function P(e,t,n,o,r,i){var a=this;this.hostEl=e,this.zone=t,this.dataService=n,this.localization=o,this.renderer=r,this.hostClass=!0,this.ariaRole="grid",this.columnHeadersWidth=200,this.navigable=!1,this.resizeObservers=[],this._loaderSettings=nt,this.subs=new s.Subscription,this.rtl=!1,this.resizeContainer=function(e,t){var n=a.table.nativeElement,o="Rows"===e?"offsetHeight":"offsetWidth";n.style["gridTemplate"+e]="",n.style["gridTemplate"+e]=t[o]+"px 1fr"},this.handleScroll=function(e){var t,n,o,r,i;e.target===a.valuesTable.nativeElement?(t=e.target,n=[a.rowHeadersTable.nativeElement,a.colHeadersTable.nativeElement],o=t.scrollTop,t=t.scrollLeft,r=n[0].scrollTop,i=t!==n[1].scrollLeft,o!==r?n[0].scrollTop=o:i&&(n[1].scrollLeft=t)):e.target.closest(".k-pivotgrid-row-headers")?J(e,[a.valuesTable.nativeElement,a.rowHeadersTable.nativeElement],"scrollTop","Y"):e.target.closest(".k-pivotgrid-column-headers")&&J(e,[a.valuesTable.nativeElement,a.colHeadersTable.nativeElement],"scrollLeft","X")},V.validatePackage(K),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;a.rtl=e,a.direction=a.rtl?"rtl":"ltr"})),n.wrapper=e.nativeElement}h.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:h,deps:[{token:c.ElementRef},{token:c.NgZone},{token:b},{token:d.LocalizationService},{token:c.Renderer2},{token:_.ScrollbarWidthService}],target:c.ɵɵFactoryTarget.Component}),h.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:h,selector:"kendo-pivotgrid",inputs:{loaderSettings:"loaderSettings",configurator:"configurator",columnHeadersWidth:"columnHeadersWidth",navigable:"navigable"},host:{properties:{"class.k-d-flex":"this.hostClass","class.k-pos-relative":"this.hostClass","class.k-flex-row":"this.rightPositionClass","class.k-flex-row-reverse":"this.leftPositionClass","class.k-flex-column":"this.bottomPositionClass","class.k-flex-column-reverse":"this.topPositionClass","attr.dir":"this.dir","attr.role":"this.ariaRole"}},providers:[b,t.LocalizationService,k,{provide:t.L10N_PREFIX,useValue:"kendo.pivotgrid"}],viewQueries:[{propertyName:"colHeadersTable",first:!0,predicate:["colHeadersTable"],descendants:!0,read:r.ElementRef},{propertyName:"rowHeadersTable",first:!0,predicate:["rowHeadersTable"],descendants:!0,read:r.ElementRef},{propertyName:"valuesTable",first:!0,predicate:["valuesTable"],descendants:!0,read:r.ElementRef},{propertyName:"table",first:!0,predicate:["table"],descendants:!0,read:r.ElementRef}],usesOnChanges:!0,ngImport:c,template:'\n <ng-container kendoPivotGridLocalizedMessages\n i18n-loading="kendo.pivotgrid.loading|The loading text"\n loading="Loading"\n \n i18n-emptyCellLabel="kendo.pivotgrid.emptyCellLabel|The value of the aria-label attribute placed on the focusable empty cell element"\n emptyCellLabel="PivotGrid Empty Cell"\n \n i18n-fieldMenuFilterItemLabel="kendo.pivotgrid.fieldMenuFilterItemLabel|The text content of the filter item in the column and row fields menu"\n fieldMenuFilterItemLabel="Filter"\n\n i18n-fieldMenuSortAscendingItemLabel="kendo.pivotgrid.fieldMenuSortAscendingItemLabel|The text content of the sort ascending item in the column and row fields menu"\n fieldMenuSortAscendingItemLabel="Sort ascending"\n\n i18n-fieldMenuSortDescendingItemLabel="kendo.pivotgrid.fieldMenuSortDescendingItemLabel|The text content of the sort descending item in the column and row fields menu"\n fieldMenuSortDescendingItemLabel="Sort descending"\n\n i18n-filterInputLabel="kendo.pivotgrid.filterInputLabel|The label of the filter input"\n filterInputLabel="{{ \'{fields} Filter\' }}"\n\n i18n-filterOperatorsDropDownLabel="kendo.pivotgrid.filterOperatorsDropDownLabel|The label of the filter operators DropDownList"\n filterOperatorsDropDownLabel="{{ \'{fields} Filter Operators\' }}"\n\n i18n-filterEqOperator="kendo.pivotgrid.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.pivotgrid.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.pivotgrid.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.pivotgrid.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.pivotgrid.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.pivotgrid.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.pivotgrid.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.pivotgrid.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.pivotgrid.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.pivotgrid.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterFilterButton="kendo.pivotgrid.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.pivotgrid.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-configuratorButtonText="kendo.pivotgrid.configuratorButtonText|The text content of the button that opens and closes the PivotGrid configurator"\n configuratorButtonText="Change Settings"\n\n i18n-configuratorHeaderText="kendo.pivotgrid.configuratorHeaderText|The text content of the PivotGrid configurator title element"\n configuratorHeaderText="Settings"\n\n i18n-configuratorFieldsText="kendo.pivotgrid.configuratorFieldsText|The text content of the PivotGrid configurator fields section title element"\n configuratorFieldsText="Fields"\n\n i18n-configuratorColumnsText="kendo.pivotgrid.configuratorColumnsText|The text content of the PivotGrid configurator columns section title element"\n configuratorColumnsText="Columns"\n\n i18n-configuratorRowsText="kendo.pivotgrid.configuratorRowsText|The text content of the PivotGrid configurator rows section title element"\n configuratorRowsText="Rows"\n\n i18n-configuratorValuesText="kendo.pivotgrid.configuratorValuesText|The text content of the PivotGrid configurator values section title element"\n configuratorValuesText="Values"\n\n i18n-configuratorCancelButtonText="kendo.pivotgrid.configuratorCancelButtonText|The text content of the PivotGrid configurator configurator Cancel button"\n configuratorCancelButtonText="Cancel"\n\n i18n-configuratorApplyButtonText="kendo.pivotgrid.configuratorApplyButtonText|The text content of the PivotGrid configurator configurator Apply button"\n configuratorApplyButtonText="Apply"\n \n i18n-configuratorEmptyRowsText="kendo.pivotgrid.configuratorEmptyRowsText|The text content of the PivotGrid configurator empty rows container"\n configuratorEmptyRowsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyColumnsText="kendo.pivotgrid.configuratorEmptyColumnsText|The text content of the PivotGrid configurator empty columns container"\n configuratorEmptyColumnsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyMeasuresText="kendo.pivotgrid.configuratorEmptyMeasuresText|The text content of the PivotGrid configurator empty measures container"\n configuratorEmptyMeasuresText="Select some fields to begin setup"\n \n i18n-chipMenuIconTitle="kendo.grid.chipMenuIconTitle|The title of the field menu icon"\n chipMenuIconTitle="{{ \'{fieldName} Field Menu\' }}"></ng-container>\n\n <div #table class="k-pivotgrid">\n <span class="k-pivotgrid-empty-cell">\n <span class="k-sr-only">{{messageFor(\'emptyCellLabel\')}}</span>\n </span>\n <kendo-pivotgrid-table\n #colHeadersTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-column-headers"\n tableType="columnHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #rowHeadersTable\n class="k-pivotgrid-row-headers"\n tableType="rowHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #valuesTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-values"\n tableType="values"></kendo-pivotgrid-table>\n \n <div *ngIf="loading" class="k-loader">\n <kendo-loader\n [type]="loaderSettings?.type"\n [themeColor]="loaderSettings?.themeColor"\n [size]="loaderSettings?.size"\n >\n </kendo-loader>\n <span class="k-loading-text">{{ loadingText }}</span>\n </div>\n </div>\n\n <kendo-pivotgrid-configurator\n *ngIf="showConfigurator"\n [orientation]="configuratorSettings.orientation">\n </kendo-pivotgrid-configurator>\n\n <div *ngIf="configurator"\n class="k-pivotgrid-configurator-button"\n (click)="showConfigurator = !showConfigurator">\n <span>{{messageFor(\'configuratorButtonText\')}}<span class="k-icon k-i-gear k-color-inherit"></span>\n </span>\n </div>\n ',isInline:!0,styles:["\n /** TODO: Remove if added to themes */\n div.k-loader {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n "],components:[{type:C,selector:"kendo-pivotgrid-table",inputs:["tableType","colWidth"]},{type:g.LoaderComponent,selector:"kendo-loader",inputs:["type","themeColor","size"]},{type:Xe,selector:"kendo-pivotgrid-configurator",inputs:["orientation","sort","filter"]}],directives:[{type:et,selector:"[kendoPivotGridLocalizedMessages]"},{type:u.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:h,decorators:[{type:r.Component,args:[{selector:"kendo-pivotgrid",providers:[b,t.LocalizationService,k,{provide:t.L10N_PREFIX,useValue:"kendo.pivotgrid"}],template:'\n <ng-container kendoPivotGridLocalizedMessages\n i18n-loading="kendo.pivotgrid.loading|The loading text"\n loading="Loading"\n \n i18n-emptyCellLabel="kendo.pivotgrid.emptyCellLabel|The value of the aria-label attribute placed on the focusable empty cell element"\n emptyCellLabel="PivotGrid Empty Cell"\n \n i18n-fieldMenuFilterItemLabel="kendo.pivotgrid.fieldMenuFilterItemLabel|The text content of the filter item in the column and row fields menu"\n fieldMenuFilterItemLabel="Filter"\n\n i18n-fieldMenuSortAscendingItemLabel="kendo.pivotgrid.fieldMenuSortAscendingItemLabel|The text content of the sort ascending item in the column and row fields menu"\n fieldMenuSortAscendingItemLabel="Sort ascending"\n\n i18n-fieldMenuSortDescendingItemLabel="kendo.pivotgrid.fieldMenuSortDescendingItemLabel|The text content of the sort descending item in the column and row fields menu"\n fieldMenuSortDescendingItemLabel="Sort descending"\n\n i18n-filterInputLabel="kendo.pivotgrid.filterInputLabel|The label of the filter input"\n filterInputLabel="{{ \'{fields} Filter\' }}"\n\n i18n-filterOperatorsDropDownLabel="kendo.pivotgrid.filterOperatorsDropDownLabel|The label of the filter operators DropDownList"\n filterOperatorsDropDownLabel="{{ \'{fields} Filter Operators\' }}"\n\n i18n-filterEqOperator="kendo.pivotgrid.filterEqOperator|The text of the equal filter operator"\n filterEqOperator="Is equal to"\n\n i18n-filterNotEqOperator="kendo.pivotgrid.filterNotEqOperator|The text of the not equal filter operator"\n filterNotEqOperator="Is not equal to"\n\n i18n-filterIsNullOperator="kendo.pivotgrid.filterIsNullOperator|The text of the is null filter operator"\n filterIsNullOperator="Is null"\n\n i18n-filterIsNotNullOperator="kendo.pivotgrid.filterIsNotNullOperator|The text of the is not null filter operator"\n filterIsNotNullOperator="Is not null"\n\n i18n-filterIsEmptyOperator="kendo.pivotgrid.filterIsEmptyOperator|The text of the is empty filter operator"\n filterIsEmptyOperator="Is empty"\n\n i18n-filterIsNotEmptyOperator="kendo.pivotgrid.filterIsNotEmptyOperator|The text of the is not empty filter operator"\n filterIsNotEmptyOperator="Is not empty"\n\n i18n-filterStartsWithOperator="kendo.pivotgrid.filterStartsWithOperator|The text of the starts with filter operator"\n filterStartsWithOperator="Starts with"\n\n i18n-filterContainsOperator="kendo.pivotgrid.filterContainsOperator|The text of the contains filter operator"\n filterContainsOperator="Contains"\n\n i18n-filterNotContainsOperator="kendo.pivotgrid.filterNotContainsOperator|The text of the does not contain filter operator"\n filterNotContainsOperator="Does not contain"\n\n i18n-filterEndsWithOperator="kendo.pivotgrid.filterEndsWithOperator|The text of the ends with filter operator"\n filterEndsWithOperator="Ends with"\n\n i18n-filterFilterButton="kendo.pivotgrid.filterFilterButton|The text of the filter button"\n filterFilterButton="Filter"\n\n i18n-filterClearButton="kendo.pivotgrid.filterClearButton|The text of the clear filter button"\n filterClearButton="Clear"\n\n i18n-configuratorButtonText="kendo.pivotgrid.configuratorButtonText|The text content of the button that opens and closes the PivotGrid configurator"\n configuratorButtonText="Change Settings"\n\n i18n-configuratorHeaderText="kendo.pivotgrid.configuratorHeaderText|The text content of the PivotGrid configurator title element"\n configuratorHeaderText="Settings"\n\n i18n-configuratorFieldsText="kendo.pivotgrid.configuratorFieldsText|The text content of the PivotGrid configurator fields section title element"\n configuratorFieldsText="Fields"\n\n i18n-configuratorColumnsText="kendo.pivotgrid.configuratorColumnsText|The text content of the PivotGrid configurator columns section title element"\n configuratorColumnsText="Columns"\n\n i18n-configuratorRowsText="kendo.pivotgrid.configuratorRowsText|The text content of the PivotGrid configurator rows section title element"\n configuratorRowsText="Rows"\n\n i18n-configuratorValuesText="kendo.pivotgrid.configuratorValuesText|The text content of the PivotGrid configurator values section title element"\n configuratorValuesText="Values"\n\n i18n-configuratorCancelButtonText="kendo.pivotgrid.configuratorCancelButtonText|The text content of the PivotGrid configurator configurator Cancel button"\n configuratorCancelButtonText="Cancel"\n\n i18n-configuratorApplyButtonText="kendo.pivotgrid.configuratorApplyButtonText|The text content of the PivotGrid configurator configurator Apply button"\n configuratorApplyButtonText="Apply"\n \n i18n-configuratorEmptyRowsText="kendo.pivotgrid.configuratorEmptyRowsText|The text content of the PivotGrid configurator empty rows container"\n configuratorEmptyRowsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyColumnsText="kendo.pivotgrid.configuratorEmptyColumnsText|The text content of the PivotGrid configurator empty columns container"\n configuratorEmptyColumnsText="Select some fields to begin setup"\n \n i18n-configuratorEmptyMeasuresText="kendo.pivotgrid.configuratorEmptyMeasuresText|The text content of the PivotGrid configurator empty measures container"\n configuratorEmptyMeasuresText="Select some fields to begin setup"\n \n i18n-chipMenuIconTitle="kendo.grid.chipMenuIconTitle|The title of the field menu icon"\n chipMenuIconTitle="{{ \'{fieldName} Field Menu\' }}"></ng-container>\n\n <div #table class="k-pivotgrid">\n <span class="k-pivotgrid-empty-cell">\n <span class="k-sr-only">{{messageFor(\'emptyCellLabel\')}}</span>\n </span>\n <kendo-pivotgrid-table\n #colHeadersTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-column-headers"\n tableType="columnHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #rowHeadersTable\n class="k-pivotgrid-row-headers"\n tableType="rowHeader"></kendo-pivotgrid-table>\n <kendo-pivotgrid-table\n #valuesTable\n [colWidth]="columnHeadersWidth"\n class="k-pivotgrid-values"\n tableType="values"></kendo-pivotgrid-table>\n \n <div *ngIf="loading" class="k-loader">\n <kendo-loader\n [type]="loaderSettings?.type"\n [themeColor]="loaderSettings?.themeColor"\n [size]="loaderSettings?.size"\n >\n </kendo-loader>\n <span class="k-loading-text">{{ loadingText }}</span>\n </div>\n </div>\n\n <kendo-pivotgrid-configurator\n *ngIf="showConfigurator"\n [orientation]="configuratorSettings.orientation">\n </kendo-pivotgrid-configurator>\n\n <div *ngIf="configurator"\n class="k-pivotgrid-configurator-button"\n (click)="showConfigurator = !showConfigurator">\n <span>{{messageFor(\'configuratorButtonText\')}}<span class="k-icon k-i-gear k-color-inherit"></span>\n </span>\n </div>\n ',styles:["\n /** TODO: Remove if added to themes */\n div.k-loader {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n "]}]}],ctorParameters:function(){return[{type:c.ElementRef},{type:c.NgZone},{type:b},{type:d.LocalizationService},{type:c.Renderer2},{type:_.ScrollbarWidthService}]},propDecorators:{hostClass:[{type:r.HostBinding,args:["class.k-d-flex"]},{type:r.HostBinding,args:["class.k-pos-relative"]}],rightPositionClass:[{type:r.HostBinding,args:["class.k-flex-row"]}],leftPositionClass:[{type:r.HostBinding,args:["class.k-flex-row-reverse"]}],bottomPositionClass:[{type:r.HostBinding,args:["class.k-flex-column"]}],topPositionClass:[{type:r.HostBinding,args:["class.k-flex-column-reverse"]}],dir:[{type:r.HostBinding,args:["attr.dir"]}],ariaRole:[{type:r.HostBinding,args:["attr.role"]}],colHeadersTable:[{type:r.ViewChild,args:["colHeadersTable",{read:r.ElementRef}]}],rowHeadersTable:[{type:r.ViewChild,args:["rowHeadersTable",{read:r.ElementRef}]}],valuesTable:[{type:r.ViewChild,args:["valuesTable",{read:r.ElementRef}]}],table:[{type:r.ViewChild,args:["table",{read:r.ElementRef}]}],loaderSettings:[{type:r.Input}],configurator:[{type:r.Input}],columnHeadersWidth:[{type:r.Input}],navigable:[{type:r.Input}]}});$(at,rt=l.PreventableEvent);var rt,it=at;function at(e){var t=rt.call(this)||this;return Object.assign(t,e),t}$(pt,st=l.PreventableEvent);var st,lt=pt;function pt(e){var t=st.call(this)||this;return Object.assign(t,e),t}ct.prototype.ngOnInit=function(){var o=this;this.dataService.state=new ye(this.columnAxes,this.rowAxes,this.measureAxes,this.sort,this.filter),this.loadData(this.dataService.state),this.loadFields(),this.subs.add(this.dataService.expandedStateChange.subscribe(function(n){o.zone.run(function(){var e="columnHeader"===n.tableType,t=e?"columnAxes":"rowAxes",e=p.toTree((e?o.dataService.columns:o.dataService.rows||[]).slice());o.updateHeaders(t,e,n.cell.path)})})),this.subs.add(this.dataService.configuratorFieldChange.subscribe(function(t){o.zone.run(function(){if(l.hasObservers(o.configurationChange)){var e=new lt(t);if(o.configurationChange.emit(e),e.isDefaultPrevented())return}o.dataService.configuredFields.next(o.dataService.state),o.loadData(t),o.dataService.state=t})})),this.subs.add(this.dataService.valuesRows.subscribe(function(e){o.zone.run(function(){o.dataService.aggregateData=e})})),this.dataService.directive=this},ct.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},ct.prototype.updateDataServiceFields=function(){this.dataService.normalizedData=this.dataState.data,this.dataService.rows=this.dataState.rows,this.dataService.columns=this.dataState.columns,this.dataService.updateRowsAndCols()},ct.prototype.updateConfiguratorFields=function(){this.dataService.fields.next(this.configuratorFields),this.dataService.configuredFields.next(this.dataService.state)},ct.prototype.updateHeaders=function(e,t,n){n={type:p.HEADERS_ACTION.toggle,payload:n},n=p.headersReducer(this[e].slice(),Object.assign(Object.assign({},n),{tree:t})),t=Object.assign(Object.assign({},this.dataService.state),((t={})[e]=n,t));if(this.dataService.state=t,l.hasObservers(this.expandChange)){t=new it(t);if(this.expandChange.emit(t),t.isDefaultPrevented())return}this.dataService.configuredFields.next(this.dataService.state),this[e]=n,this.loadData(this.dataService.state)};m=ct;function ct(e,t){this.dataService=e,this.zone=t,this.columnAxes=[],this.rowAxes=[],this.measureAxes=[],this.sort=[],this.expandChange=new r.EventEmitter,this.configurationChange=new r.EventEmitter,this.dataLoaded=new r.EventEmitter,this.subs=new s.Subscription}m.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,deps:[{token:b},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),m.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"kendo-base-binding-directive",inputs:{columnAxes:"columnAxes",rowAxes:"rowAxes",measureAxes:"measureAxes",sort:"sort",filter:"filter"},outputs:{expandChange:"expandChange",configurationChange:"configurationChange",dataLoaded:"dataLoaded"},ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,decorators:[{type:r.Directive,args:[{selector:"kendo-base-binding-directive"}]}],ctorParameters:function(){return[{type:b},{type:c.NgZone}]},propDecorators:{columnAxes:[{type:r.Input}],rowAxes:[{type:r.Input}],measureAxes:[{type:r.Input}],sort:[{type:r.Input}],filter:[{type:r.Input}],expandChange:[{type:r.Output}],configurationChange:[{type:r.Output}],dataLoaded:[{type:r.Output}]}});var dt,ut={dataField:"aggregate",columnsData:"columns"},g=($(gt,dt=m),gt.prototype.ngOnChanges=function(e){l.anyChanged(["data","dimensions","columnAxes","rowAxes","measureAxes","measures"],e)&&this.loadData(this.dataService.state)},gt.prototype.fetchChildren=function(e){return e.children},gt.prototype.loadFields=function(){this.configuratorFields=p.createFlatSchemaDimensions(this.dimensions,this.measures),this.updateConfiguratorFields()},gt.prototype.loadData=function(e){var n=this,t=e.columnAxes,o=e.rowAxes,r=e.measureAxes,i=e.sort,e=e.filter,a=this.getRootAxes(t),s=this.getRootAxes(o),a=a.split("&").map(this.createAxisSettings),s=s.split("&").map(this.createAxisSettings),r=r.map(function(t){return n.measures.find(function(e){return String(e.name)===String(t.name)})}).filter(Boolean),e=p.createDataTree(this.data,s,a,r,ut,e);this.dataState=p.createLocalDataState({dataTree:e,rowSettings:s,columnSettings:a,rowAxes:o,columnAxes:t,measures:r,sort:i,fields:ut}),this.updateDataServiceFields()},gt.prototype.getRootAxes=function(e){return Array.from(p.rootFields(e).keys()).join("&")},gt);function gt(e,t){var n=dt.call(this,e,t)||this;return n.type="local",n.createAxisSettings=function(e){return Object.assign({key:e},n.dimensions[e])},n}g.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:g,deps:[{token:b},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),g.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:g,selector:"[kendoPivotLocalBinding]",inputs:{data:["kendoPivotLocalBinding","data"],dimensions:"dimensions",measures:"measures"},exportAs:["kendoPivotLocalBinding"],usesInheritance:!0,usesOnChanges:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:g,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotLocalBinding]",exportAs:"kendoPivotLocalBinding"}]}],ctorParameters:function(){return[{type:b},{type:c.NgZone}]},propDecorators:{data:[{type:r.Input,args:["kendoPivotLocalBinding"]}],dimensions:[{type:r.Input}],measures:[{type:r.Input}]}});$(N,mt=m),N.prototype.ngOnChanges=function(e){l.anyChanged(["url","cube","catalog","columnAxes","rowAxes","measureAxes"],e)&&(this.loadData(this.dataService.state),this.loadFields())},N.prototype.loadData=function(e){var t=this,n=e.columnAxes,o=e.rowAxes,r=e.measureAxes,i=e.sort,e=e.filter,n=(this.dataService.loading.next(!0),{connection:{catalog:this.catalog,cube:this.cube},columnAxes:n,rowAxes:o,measureAxes:r,sort:i,filter:e});p.fetchData({url:this.url},pe(n)).then(p.createDataState).then(function(e){t.dataState=e,t.updateDataServiceFields(),t.dataService.loading.next(!1)})},N.prototype.loadFields=function(){var t=this,e={connection:{catalog:this.catalog,cube:this.cube},restrictions:{catalogName:this.catalog,cubeName:this.cube},command:"schemaDimensions"};p.fetchDiscover({url:this.url},e).then(function(e){p.addKPI(e),t.configuratorFields=e,t.updateConfiguratorFields()})},N.prototype.updateFields=function(r,i){return X(this,void 0,void 0,function(){var t,n,o;return Y(this,function(e){switch(e.label){case 0:return(t=i.slice(),(t=this.getField(t,r))&&"[KPIs]"===t.uniqueName)?(n=this.normalizeKPIs,[4,this.loadKPIs()]):[3,2];case 1:return o=n.apply(this,[e.sent()]),t.children=o,[3,5];case 2:return t&&"kpi"===t.type?(t.children=p.buildKPIMeasures(t),[3,5]):[3,3];case 3:return!t||t.children?[3,5]:[4,this.loadAvailableFields(t)];case 4:o=e.sent(),t.children=o,e.label=5;case 5:return[2,null==t?void 0:t.children]}})})},N.prototype.fetchChildren=function(e,t){return this.updateFields(e,t)},N.prototype.normalizeKPIs=function(e){for(var t=0,n=e.length;t<n;t++)e[t].uniqueName=e[t].name,e[t].type="kpi";return e},N.prototype.getField=function(e,t){void 0===e&&(e=[]);for(var n=0;n<e.length;n++){var o=e[n];if(o.uniqueName===t.uniqueName)return o;o=this.getField(o.children,t);if(null!==o)return o}return null},N.prototype.loadKPIs=function(){return X(this,void 0,void 0,function(){var t;return Y(this,function(e){return t={connection:{catalog:this.catalog,cube:this.cube},restrictions:{catalogName:this.catalog,cubeName:this.cube},command:"schemaKPIs"},[2,p.fetchDiscover({url:this.url},t)]})})},N.prototype.loadAvailableFields=function(i){return X(this,void 0,void 0,function(){var t,n,o,r;return Y(this,function(e){return 2===i.type?t="schemaMeasures":i.dimensionUniqueName?(t="schemaLevels",o=i.uniqueName):(t="schemaHierarchies",n=i.uniqueName),r={connection:{catalog:this.catalog,cube:this.cube},restrictions:{catalogName:this.catalog,cubeName:this.cube,hierarchyUniqueName:o,dimensionUniqueName:n,levelUniqueName:void 0,memberUniqueName:void 0,treeOp:void 0},command:t},[2,p.fetchDiscover({url:this.url},r)]})})};var mt,u=N;function N(e,t){e=mt.call(this,e,t)||this;return e.type="olap",e}u.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:u,deps:[{token:b},{token:c.NgZone}],target:c.ɵɵFactoryTarget.Directive}),u.ɵdir=c.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:u,selector:"[kendoPivotOLAPBinding]",inputs:{url:"url",cube:"cube",catalog:"catalog"},exportAs:["kendoPivotOLAPBinding"],usesInheritance:!0,usesOnChanges:!0,ngImport:c}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:u,decorators:[{type:r.Directive,args:[{selector:"[kendoPivotOLAPBinding]",exportAs:"kendoPivotOLAPBinding"}]}],ctorParameters:function(){return[{type:b},{type:c.NgZone}]},propDecorators:{url:[{type:r.Input}],cube:[{type:r.Input}],catalog:[{type:r.Input}]}});$(ht,ft=o),Object.defineProperty(ht.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0});var ft,L=ht;function ht(e){var t=ft.call(this)||this;return t.service=e,t}L.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:L,deps:[{token:d.LocalizationService}],target:c.ɵɵFactoryTarget.Component}),L.ɵcmp=c.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:L,selector:"kendo-pivotgrid-messages",providers:[{provide:o,useExisting:r.forwardRef(function(){return L})}],usesInheritance:!0,ngImport:c,template:"",isInline:!0}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:L,decorators:[{type:r.Component,args:[{providers:[{provide:o,useExisting:r.forwardRef(function(){return L})}],selector:"kendo-pivotgrid-messages",template:""}]}],ctorParameters:function(){return[{type:d.LocalizationService}]}});t=[n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule],m=function(){},m.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,deps:[],target:c.ɵɵFactoryTarget.NgModule}),m.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,imports:[n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule],exports:[n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule]}),m.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,imports:[[t],n.CommonModule,z.DropDownsModule,q.InputsModule,H.ButtonsModule]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:m,decorators:[{type:r.NgModule,args:[{imports:[t],exports:[t]}]}]}),o=[A,Pe,_e,O,F,He,E,i,Oe,S],vt.exports=function(){return[A,Pe,Oe,S,_e]},n=vt;function vt(){}n.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,deps:[],target:c.ɵɵFactoryTarget.NgModule}),n.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,declarations:[A,Pe,_e,O,F,He,E,i,Oe,S],imports:[m,G.ReactiveFormsModule,G.FormsModule],exports:[A,Pe,_e,O,F,He,E,i,Oe,S]}),n.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,imports:[[m,G.ReactiveFormsModule,G.FormsModule]]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:n,decorators:[{type:r.NgModule,args:[{declarations:[o],imports:[m,G.ReactiveFormsModule,G.FormsModule],exports:[o]}]}]});z=[l.EventsModule,B.IndicatorsModule,j.TreeViewModule,l.DraggableModule,n,m],q=[h,C,Xe,x,g,u,Ue,Ze,et,L],H=[h,C,x,g,u,L],t=function(){};t.ɵfac=c.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,deps:[],target:c.ɵɵFactoryTarget.NgModule}),t.ɵmod=c.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,declarations:[h,C,Xe,x,g,u,Ue,Ze,et,L],imports:[l.EventsModule,B.IndicatorsModule,j.TreeViewModule,l.DraggableModule,n,m],exports:[h,C,x,g,u,L]}),t.ɵinj=c.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,imports:[y([],v(z))]}),c.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:c,type:t,decorators:[{type:r.NgModule,args:[{imports:y([],v(z)),declarations:y([],v(q)),exports:y([],v(H))}]}]}),Object.defineProperty(e,"averageAggregate",{enumerable:!0,get:function(){return p.averageAggregate}}),Object.defineProperty(e,"maxAggregate",{enumerable:!0,get:function(){return p.maxAggregate}}),Object.defineProperty(e,"minAggregate",{enumerable:!0,get:function(){return p.minAggregate}}),Object.defineProperty(e,"sumAggregate",{enumerable:!0,get:function(){return p.sumAggregate}}),e.ConfigurationChangeEvent=lt,e.CustomMessagesComponent=L,e.DraggableChipDirective=Ue,e.DropTargetDirective=Ze,e.ExpandChangeEvent=it,e.PivotGridCellDirective=x,e.PivotGridComponent=h,e.PivotGridConfiguratorComponent=Xe,e.PivotGridModule=t,e.PivotGridTableComponent=C,e.PivotLocalBindingDirective=g,e.PivotOLAPBindingDirective=u,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-pivotgrid',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1663075778,
12
+ publishDate: 1663085877,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -38,7 +38,7 @@ const packageMetadata = {
38
38
  name: '@progress/kendo-angular-pivotgrid',
39
39
  productName: 'Kendo UI for Angular',
40
40
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
41
- publishDate: 1663075778,
41
+ publishDate: 1663085877,
42
42
  version: '',
43
43
  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'
44
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-pivotgrid",
3
- "version": "0.2.1-dev.202209131330",
3
+ "version": "1.0.0",
4
4
  "description": "PivotGrid package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -37,6 +37,7 @@
37
37
  "@progress/kendo-angular-intl": "^4.0.0",
38
38
  "@progress/kendo-angular-inputs": "9 - 10",
39
39
  "@progress/kendo-angular-l10n": "^4.0.0",
40
+ "@progress/kendo-angular-dropdowns": "^7.2.0",
40
41
  "@progress/kendo-angular-popup": "^5.0.0",
41
42
  "@progress/kendo-angular-treeview": "^7.1.0",
42
43
  "@progress/kendo-data-query": "^1.5.5",