@acorex/data-grid 3.0.63 → 3.0.64
Sign up to get free protection for your applications and to get access to all the features.
- package/acorex-data-grid.metadata.json +1 -1
- package/bundles/acorex-data-grid.umd.js +25 -13
- package/bundles/acorex-data-grid.umd.js.map +1 -1
- package/bundles/acorex-data-grid.umd.min.js +1 -1
- package/bundles/acorex-data-grid.umd.min.js.map +1 -1
- package/esm2015/lib/data-grid/datagrid.component.js +26 -14
- package/esm5/lib/data-grid/datagrid.component.js +26 -14
- package/fesm2015/acorex-data-grid.js +25 -13
- package/fesm2015/acorex-data-grid.js.map +1 -1
- package/fesm5/acorex-data-grid.js +25 -13
- package/fesm5/acorex-data-grid.js.map +1 -1
- package/lib/data-grid/datagrid.component.d.ts +5 -1
- package/package.json +1 -1
@@ -12,5 +12,5 @@
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
15
|
-
***************************************************************************** */var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function d(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}var h=function(){function e(){this.renderer=m}return e.prototype.ngOnInit=function(){this.params={templateRef:this.templateRef}},d([t.ContentChild(t.TemplateRef,{static:!0}),c("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=d([t.Component({selector:"ax-cell-template",template:"<ng-content></ng-content>\n "}),c("design:paramtypes",[])],e)}(),m=function(){function e(){}return e.prototype.agInit=function(e){this.rowData=e.data,this.templateRef=e.templateRef},e.prototype.refresh=function(e){return this.rowData=e.data,!0},e=d([t.Component({template:"\n <ng-container *ngTemplateOutlet='templateRef; context: { $implicit: rowData }'>\n </ng-container>\n "}),c("design:paramtypes",[])],e)}(),g=function(){function e(){this.width=100,this.pinned=null,this.allowSorting=!0,this.allowFiltering=n.AXConfig.get("datagrid.allowFiltering")||!1,this.sort=null,this.field="",this.caption="",this.checkbox=!1,this.headerCheckbox=!1,this.groupIndex=-1,this.treeIndex=-1,this.enableRowGroup=!1,this.hide=!1,this.floatingFilter=n.AXConfig.get("datagrid.floatingFilter")||!1,this.disableMenu=!1,this.resizable=!0,this.menuColumnDisable=!1,this.menuItemDisable=!1}return e.prototype.render=function(){var e={field:this.field,width:this.width};if(e.resizable=this.resizable,e.suppressMenu=this.disableMenu,e.menuTabs=["filterMenuTab","columnsMenuTab","generalMenuTab"],e.floatingFilter=this.floatingFilter,this.allowFiltering||(e.filter=!1,e.menuTabs=e.menuTabs.filter((function(e){return"filterMenuTab"!=e})),e.floatingFilter=!1),1==this.menuColumnDisable&&(e.menuTabs=e.menuTabs.filter((function(e){return"columnsMenuTab"!=e}))),1==this.menuItemDisable&&(e.menuTabs=e.menuTabs.filter((function(e){return"generalMenuTab"!=e}))),this.caption&&(e.headerName=this.caption),this.minWidth&&(e.minWidth=this.minWidth),this.maxWidth&&(e.maxWidth=this.maxWidth),this.pinned&&(e.pinned="start"===this.pinned?"right":"left"),this.allowSorting&&(e.sortable=this.allowSorting),this.sort&&(e.sort=this.sort),this.groupIndex>=0&&(e.rowGroupIndex=this.groupIndex,e.rowGroup=!0,this.enableRowGroup=!0),this.treeIndex>=0&&(e.rowGroupIndex=this.treeIndex,e.rowGroup=!1),this.hide&&(e.hide=!0),this.enableRowGroup&&(e.enableRowGroup=this.enableRowGroup),this.cellClass){var t=this;this.cellClass instanceof Function?e.cellClass=function(e){return t.cellClass({column:t,rowIndex:e.node.rowIndex,rowLevel:e.node.level,data:e.data,value:e.value})}:e.cellClass=this.cellClass}return null!=this.cellTemplate&&(e.cellRendererFramework=this.cellTemplate.renderer,e.cellRendererParams=this.cellTemplate.params),this.checkbox&&(e.checkboxSelection=function(e){return!0}),e},d([t.ContentChild(h),c("design:type",h)],e.prototype,"cellTemplate",void 0),d([t.Input(),c("design:type",Number)],e.prototype,"width",void 0),d([t.Input(),c("design:type",Number)],e.prototype,"maxWidth",void 0),d([t.Input(),c("design:type",Number)],e.prototype,"minWidth",void 0),d([t.Input(),c("design:type",String)],e.prototype,"pinned",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"allowSorting",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"allowFiltering",void 0),d([t.Input(),c("design:type",Function)],e.prototype,"cellClass",void 0),d([t.Input(),c("design:type",String)],e.prototype,"sort",void 0),d([t.Input(),c("design:type",String)],e.prototype,"field",void 0),d([t.Input(),c("design:type",String)],e.prototype,"caption",void 0),d([t.Input(),c("design:type",Object)],e.prototype,"cellRendererParams",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"checkbox",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"headerCheckbox",void 0),d([t.Input(),c("design:type",Number)],e.prototype,"groupIndex",void 0),d([t.Input(),c("design:type",Number)],e.prototype,"treeIndex",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"enableRowGroup",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"hide",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"floatingFilter",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"disableMenu",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"resizable",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"menuColumnDisable",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"menuItemDisable",void 0),e}(),f=function(e){function n(){return e.call(this)||this}var o;return p(n,e),o=n,n.prototype.render=function(){var t=e.prototype.render.call(this);return t.cellRendererFramework||(t.cellRendererFramework=y),this.allowFiltering&&(t.filterFramework=v),t},n=o=d([t.Component({selector:"ax-check-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],n)}(g),y=function(){function e(){}return e.prototype.agInit=function(e){this.value=e.value},e.prototype.refresh=function(e){return this.value=e.value,!0},e=d([t.Component({template:"\n <ax-check-box [value]='value' readonly='true'></ax-check-box>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],e)}(),v=function(){function e(){this.value=null,this.selectItem=[{value:0,label:"True"},{value:1,label:"False"}]}return e.prototype.agInit=function(e){this.params=e,this.valueGetter=e.valueGetter},e.prototype.isFilterActive=function(){return null!==this.value&&void 0!==this.value},e.prototype.doesFilterPass=function(e){return this.value===this.valueGetter(e.node)},e.prototype.getModel=function(){return{value:this.value}},e.prototype.setModel=function(e){this.value=e?e.value:null},e.prototype.ngAfterViewInit=function(e){var t=this;window.setTimeout((function(){t.input.element.nativeElement.focus()}))},e.prototype.onChange=function(e){this.value!==e&&(this.value=e,this.params.filterChangedCallback())},d([t.ViewChild("input",{static:!0,read:t.ViewContainerRef}),c("design:type",Object)],e.prototype,"input",void 0),e=d([t.Component({template:"\n <ax-data-grid-filter>\n <ax-select-box\n label='Select Box'\n [items]='selectItem'\n ></ax-select-box>\n </ax-data-grid-filter>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush})],e)}(),C=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.items=[],n.onItemClick=new t.EventEmitter,n}var o;return p(n,e),o=n,n.prototype.render=function(){var t=this,n=e.prototype.render.call(this);return n.cellRendererFramework||(n.cellRendererFramework=w),n.cellRendererParams={items:this.items,onClick:function(e){t.onItemClick.emit({command:e.name,data:e.data,rowIndex:e.rowIndex,rowLevel:e.rowLevel,htmlEvent:e.htmlEvent})}},n.sortable=!1,n.filter=!1,n.valueGetter=function(e){return t.items},n},d([t.Input(),c("design:type",Object)],n.prototype,"items",void 0),d([t.Output(),c("design:type",t.EventEmitter)],n.prototype,"onItemClick",void 0),n=o=d([t.Component({selector:"ax-command-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None})],n)}(g),w=function(){function e(){this.items=[]}return e.prototype.agInit=function(e){this.mapParams(e)},e.prototype.refresh=function(e){return this.mapParams(e),!0},e.prototype.mapParams=function(e){this.node=e.node,this.items="function"==typeof e.items?e.items({data:this.node.data}):Array.isArray(e.items)?e.items:[],this.clickCallback=e.onClick},e.prototype.onClick=function(e,t){this.clickCallback&&!e.disable&&this.clickCallback({name:e.name,rowLevel:this.node.level,rowIndex:this.node.rowIndex,data:this.node.data,htmlEvent:t})},e=d([t.Component({selector:"ax-command-cell",template:'\n <button\n *ngFor="let item of items; let i = index"\n class="ax button md ax-grid-command-button {{ item.style || \'ax primary blank\' }}"\n [class.disabled]="item.disable"\n type="button"\n [title]="item.tooltip"\n [attr.tabindex]="i"\n (click)="onClick(item, $event)"\n >\n <i [ngClass]="item.icon"></i>{{ item.text }}\n </button>\n ',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],e)}(),b=function(e){function o(){var t=e.call(this)||this;return t.type=n.AXConfig.get("dateTime.type"),t}var i;return p(o,e),i=o,o.prototype.render=function(){var t=this,o=e.prototype.render.call(this);return o.cellRendererParams={format:this.format},o.comparator=function(e,t){var o=n.AXDateTime.convert(e),i=n.AXDateTime.convert(t);return null===o&&null===i?0:null===o?-1:null===i?1:o.date.getTime()-i.date.getTime()},o.valueFormatter=function(e){var o=n.AXDateTime.convert(e.value,t.type);return o?o.format(t.format):null},o.filter="agDateColumnFilter",o},d([t.Input(),c("design:type",String)],o.prototype,"format",void 0),d([t.Input(),c("design:type",String)],o.prototype,"type",void 0),o=i=d([t.Component({selector:"ax-date-column",template:"",providers:[{provide:g,useExisting:i}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],o)}(g),x=function(){function e(){this.selectableHoliday=!1,this.type="jalali"}return e.prototype.agInit=function(e){this.params=e},e.prototype.ngAfterViewInit=function(){},e.prototype.ngOnDestroy=function(){console.log("Destroying DateComponent")},e.prototype.onDateChanged=function(e){this.params.onDateChanged()},e.prototype.getDate=function(){return this.date},e.prototype.setDate=function(e){this.date=e||null},e.prototype.setInputPlaceholder=function(e){},e.prototype.onValueChanged=function(e){this.setDate(e.value),this.onDateChanged(e.value)},d([t.ViewChild(o.AXDatePickerComponent),c("design:type",o.AXDatePickerComponent)],e.prototype,"datePicker",void 0),d([t.ViewChild("div",{read:t.ElementRef}),c("design:type",t.ElementRef)],e.prototype,"div",void 0),e=d([t.Component({selector:"ax-data-picker-filter",template:'<ax-date-picker [selectableHoliday]="selectableHoliday" [allowClear]="true" (onValueChanged)="onValueChanged($event)" size="sm">\n </ax-date-picker>',host:{},encapsulation:t.ViewEncapsulation.None})],e)}(),S=function(e){function n(){var t=e.call(this)||this;return t.pinned="start",t.width=40,t}var o;return p(n,e),o=n,n.prototype.ngOnInit=function(){},n.prototype.render=function(){var t=e.prototype.render.call(this);return t.checkboxSelection=!this.condition||this.condition,t.pinned="start"===this.pinned?"right":"left",t.filter=!1,t.resizable=!0,t.sortable=!1,t.minWidth=5,t.width=this.width,t.floatingFilter=!1,t},d([t.Input(),c("design:type",Function)],n.prototype,"condition",void 0),d([t.Input(),c("design:type",String)],n.prototype,"pinned",void 0),d([t.Input(),c("design:type",Number)],n.prototype,"width",void 0),n=o=d([t.Component({selector:"ax-selection-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],n)}(g),I=function(e){function n(){return e.call(this)||this}var o;return p(n,e),o=n,n.prototype.render=function(){var t=e.prototype.render.call(this);return t.filter="agTextColumnFilter",t},n=o=d([t.Component({selector:"ax-text-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],n)}(g),k=function(){function e(){this.value=null}return e.prototype.agInit=function(e){this.params=e,this.valueGetter=e.valueGetter},e.prototype.isFilterActive=function(){return null!==this.value&&void 0!==this.value},e.prototype.doesFilterPass=function(e){return this.value===this.valueGetter(e.node)},e.prototype.getModel=function(){return{value:this.value}},e.prototype.setModel=function(e){this.onChange(e?e.value:null)},e.prototype.ngAfterViewInit=function(e){var t=this;window.setTimeout((function(){t.input.focus()}))},e.prototype.onChange=function(e){this.value!==e&&(this.value=e,""===this.value&&(this.value=null),this.params.filterChangedCallback())},d([t.ViewChild(o.AXTextBoxComponent,{static:!0}),c("design:type",o.AXTextBoxComponent)],e.prototype,"input",void 0),e=d([t.Component({template:"\n <ax-data-grid-filter>\n <ax-text-box label='Filter' allowClear='true' (textChange)='onChange($event)'>\n </ax-text-box>\n </ax-data-grid-filter>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush})],e)}(),D=function(e){function o(){return e.call(this)||this}var i;return p(o,e),i=o,o.prototype.ngOnInit=function(){},o.prototype.render=function(){var t=e.prototype.render.call(this);return t.headerName=this.caption?this.caption:n.AXConfig.get("layout.rtl")?"ردیف":"Row",t.valueGetter="node.rowIndex + 1",t.pinned=null==this.pinned?null:"start"===this.pinned?"right":"left",t.filter=!1,t.resizable=!0,t.sortable=!1,t.width=this.width,t},d([t.Input(),c("design:type",Function)],o.prototype,"condition",void 0),o=i=d([t.Component({selector:"ax-row-number-column",template:"",providers:[{provide:g,useExisting:i}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],o)}(g),R=function(){function e(){this.renderer=A}return e.prototype.ngOnInit=function(){this.params={templateRef:this.templateRef}},d([t.ContentChild(t.TemplateRef,{static:!0}),c("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=d([t.Component({selector:"ax-row-template",template:"<ng-content></ng-content>"}),c("design:paramtypes",[])],e)}(),A=function(){function e(){}return e.prototype.refresh=function(e){return!1},e.prototype.agInit=function(e){this.data=e.data.callRecords,this.templateRef=e.templateRef},e=d([t.Component({template:"<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>"})],e)}(),F=function(){function e(){this.height=100,this.renderer=E}return e.prototype.ngOnInit=function(){this.params={templateRef:this.templateRef}},d([t.ContentChild(t.TemplateRef,{static:!0}),c("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),d([t.Input(),c("design:type",Number)],e.prototype,"height",void 0),e=d([t.Component({selector:"ax-grid-detail-template",template:"<ng-content></ng-content>"}),c("design:paramtypes",[])],e)}(),E=function(){function e(){}return e.prototype.refresh=function(e){return!1},e.prototype.agInit=function(e){this.data=e.data,this.templateRef=e.templateRef},e=d([t.Component({template:"<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>"})],e)}();i.LicenseManager.prototype.validateLicense=function(){};var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(o.AXValueEvent),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(o.AXDataEvent),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(o.AXDataEvent),X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(o.AXDataEvent),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(o.AXDataEvent),B=function(){function e(e,o){var i=this;this.ref=e,this.cdr=o,this.columnDefs=[],this.rowModelType="clientSide",this.frameworkComponents={},this.internalHeight="100%",this.masterDetail=!1,this.treeData=!1,this.enabelSelect=!1,this.gridView=!1,this.groupSelectsChildren=!1,this.oldSelectionNodes=[],this.paginationAutoPageSize=!0,this.paginationPageSize=10,this.cacheBlockSize=10,this.remoteOperation=!1,this.rowMultiSelectWithClick=!0,this.suppressRowClickSelection=!0,this.suppressCellSelection=!1,this.sizeColumnsToFit=!0,this.showCheckBox=!0,this.floatingFilter=!1,this.autoGroupColumnDef={},this.selectionMode="single",this.selectRow=[],this.rowGroupPanelShow="never",this.loadOnInit=!0,this.keyField="null",this.hasChildField="null",this.columnsChange=new t.EventEmitter,this._columns=[],this.defaultColDef={filter:!0,floatingFilter:!0},this.groupHideOpenParents=!1,this.cellClick=new t.EventEmitter,this.cellDbClick=new t.EventEmitter,this.cellFocuse=new t.EventEmitter,this.rowClick=new t.EventEmitter,this.rowDbClick=new t.EventEmitter,this.selectionChanged=new t.EventEmitter,this.rowSelectionChange=new t.EventEmitter,this.onRowSelectionChanged=new t.EventEmitter,this.rtl=n.AXConfig.get("layout.rtl"),this.isServerSideGroup=function(e){return e[i.hasChildField]},this.getColumnDefs=function(){return i.gridApi.getColumnDefs()},this.getServerSideGroupKey=function(e){return e[i.keyField]},this.internalGetRowClass=function(e){if(i.rowClass)return i.rowClass instanceof Function?i.rowClass({rowIndex:e.node.rowIndex,rowLevel:e.node.level,data:e.data}):i.rowClass},this.localeText=n.AXTranslator.get("dataGrid")}return Object.defineProperty(e.prototype,"searchText",{get:function(){return this._searchText},set:function(e){e!==this._searchText&&(this._searchText=e,this.gridApi&&(this.refresh(),this.gridApi.setQuickFilter(this.searchText)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},set:function(e){var t=this;e!==this._filter&&(this._filter=e,this._filter.forEach((function(e){var n=t.gridApi.getFilterInstance(e.field);n&&n.getFrameworkComponentInstance().setModel(e)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._inlineColumns?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}(this._columns,this._inlineColumns.toArray()):this._columns},set:function(e){if(e&&e.length){var t=this._columns;this._columns=e,this.columnsChange.emit({component:this,value:e,oldValue:t,htmlElement:this.ref.nativeElement})}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource?this._dataSource:this._contentDataSource},set:function(e){this._dataSource=e},enumerable:!0,configurable:!0}),e.prototype.getRowHeight=function(e){return e.data&&e.data.rowHeight&&0==e.node.level?e.data.rowHeight:1==this.masterDetail&&1==e.node.level?this.detailRowHeight:0==this.masterDetail&&e.data&&e.data.rowHeight?e.data.rowHeight:null},e.prototype.calcHeight=function(){this.toolbar?this.internalHeight="calc(100% - 40px)":this.internalHeight="100%"},Object.defineProperty(e.prototype,"intenalGridDataSource",{get:function(){var e=this;return{rowCount:null,getRows:function(t){e.dataSourceSuccessCallback=t.successCallback;var n={};n.searchText=e.searchText,n.skip=t.request.startRow,n.take=e.takeCount?e.takeCount:2*t.api.paginationGetPageSize(),n.sort=t.request.sortModel.map((function(e){return{field:e.colId,dir:e.sort}})),n.group={fields:t.request.rowGroupCols.map((function(e){return e.field})),keys:t.request.groupKeys,parentData:t.parentNode.data},n.filter=t.request.filterModel,e.dataSource.fetch(n)}}},enumerable:!0,configurable:!0}),e.prototype.getMainMenuItems=function(e){return["pinSubMenu","separator"]},e.prototype.ngOnDestroy=function(){this.gridApi.destroy()},e.prototype.internalGridReady=function(e){e.api.checkGridSize(),this.takeCount=this.takeCount?this.takeCount:2*e.api.paginationGetPageSize(),e.api.gridOptionsWrapper.setProperty("cacheBlockSize",this.takeCount),this.gridApi=e.api,this.mapColumns(),this.calcHeight(),this.loadOnInit?(this.remoteOperation&&this.gridApi.setServerSideDatasource(this.intenalGridDataSource),this.remoteOperation||this.refresh()):this.loadOnInit=!0},e.prototype.ngAfterContentInit=function(){var e=this;this.rowTemplate&&(this.fullWidthCellRendererFramework=this.rowTemplate.renderer,this.fullWidthCellRendererParams=this.rowTemplate.params),this.frameworkComponents.agDateInput=x,this.gridDetailTemplate&&(this.masterDetail=!0,this.detailCellRendererParams=this.gridDetailTemplate.params,this.detailCellRenderer="detailRendererFramework",this.frameworkComponents.detailRendererFramework=this.gridDetailTemplate.renderer,this.detailRowHeight=this.gridDetailTemplate.height),this.isFullWidthCell=function(){return null!=e.rowTemplate}},e.prototype.ngOnInit=function(){this.takeCount&&this.takeCount>0&&(this.paginationPageSize=this.takeCount,this.paginationAutoPageSize=!1,this.cacheBlockSize=this.takeCount),"single"===this.selectionMode&&(this.groupSelectsChildren=!1),"null"!==this.keyField&&"null"!==this.hasChildField&&(this.rowGroupPanelShow="never",this.treeData=!0),this.remoteOperation&&(this.rowModelType="serverSide"),null==this.rtl&&(this.rtl="rtl"===window.getComputedStyle(this.ref.nativeElement,null).getPropertyValue("direction"))},e.prototype.gridSelectRow=function(){var e=this;this.gridApi&&(this.selectRow&&this.selectRow.length>0&&void 0!==this.gridApi&&"object"!=typeof this.selectRow[0]?this.gridApi.forEachNode((function(t){if(void 0!==t.data){var n=!1;e.selectRow.forEach((function(o){t.data[e.keyField]===o&&(n=!0,t.setSelected(n))}))}})):this.gridApi.forEachNode((function(t){if(void 0!==t.data){var n=!1;e.selectRow.forEach((function(o){null!=o.rowIndex&&null!=o.rowLevel?t.data[e.keyField]===o.data[e.keyField]&&(n=!0):t.data[e.keyField]===o[e.keyField]&&(n=!0)})),t.setSelected(n)}})))},e.prototype.rebuildGrid=function(){var e=this;this.mapColumns(),setTimeout((function(){e.sizeColumnsToFit&&e.gridApi.sizeColumnsToFit()}),10)},e.prototype.ngAfterViewInit=function(){var e=this;if(!0===this.treeData){this.columnDefs=this.columns.map((function(e){return e.render()}));var t=this.columnDefs.find((function(e){return"0"==e.rowGroupIndex&&""!==e.field}));this.autoGroupColumnDef={headerName:t.headerName,width:t.width,cellRendererParams:{checkbox:this.showCheckBox},field:t.field},this.columnDefs.forEach((function(e){e.rowGroupIndex>-1&&(e.hide=!0)}))}this.gridView=!0,this.enabelSelect=!0,this.dataSource.onDataReceived.subscribe((function(t){var n,o,i=t.data.result;e.hideLoading(),Array.isArray(i)?(n=i,o=i.length):(n=i.items,o=i.totalCount),e.dataSourceSuccessCallback?e.loadOnInit?e.dataSourceSuccessCallback(n,o):e.dataSourceSuccessCallback([],0):e.loadOnInit||void 0===e.gridApi?void 0!==e.gridApi&&e.gridApi.setRowData(n):e.gridApi.setRowData([]),e.gridSelectRow()})),this.dataSource.onFetchStart.subscribe((function(){e.showLoading()})),this.searchInput&&this.searchInput.onValueChanged.subscribe((function(t){e.searchText=t.value})),this.cdr.detectChanges()},e.prototype.mapColumns=function(){if(this.columnDefs=this.columns.map((function(e){return e.render()})),this.gridDetailTemplate&&(!0===this.columnDefs[0].checkboxSelection&&""===this.columnDefs[0].field?this.columnDefs[1].cellRenderer="agGroupCellRenderer":this.columnDefs[0].cellRenderer="agGroupCellRenderer"),"null"===this.hasChildField){var e=this.columnDefs.find((function(e){return void 0===e.rowGroupIndex&&""!==e.field}));e&&0==this.groupHideOpenParents&&(this.autoGroupColumnDef={headerName:e.headerName,width:e.width,cellRendererParams:{checkbox:this.showCheckBox},field:e.field})}this.columnDefs.forEach((function(e){e.rowGroupIndex>-1&&(e.hide=!0)}))},e.prototype.displayedColumnsChanged=function(e){if("null"===this.hasChildField){var t=e.columnApi.getAllDisplayedColumnGroups().find((function(e){return"ag-Grid-AutoColumn"!==e.colId&&"0"!==e.colId}));t&&t.colId&&(this.autoGroupColumnDef={headerName:t.colDef.headerName,width:t.colDef.width,cellRendererParams:{checkbox:this.showCheckBox},field:t.colDef.field})}},e.prototype.refresh=function(e){void 0===e&&(e=[]),this.remoteOperation&&void 0!==this.gridApi?this.gridApi.setServerSideDatasource(this.intenalGridDataSource):this.dataSource.fetch(null)},e.prototype.internalGridCellClicked=function(e){this.cellClick.emit({data:this.mapCellEvent(e),component:this,htmlElement:this.ref.nativeElement})},e.prototype.internalGridCellDoubleClicked=function(e){this.cellDbClick.emit({data:this.mapCellEvent(e),component:this,htmlElement:this.ref.nativeElement})},e.prototype.internalGridCellFocused=function(e){this.cellFocuse.emit({data:this.mapCellEvent(e),htmlElement:this.ref.nativeElement,component:this})},e.prototype.internalGridRowClicked=function(e){e.node.group||this.rowClick.emit({data:this.mapRowEvent(e),component:this,htmlElement:this.ref.nativeElement})},e.prototype.internalGridRowDoubleClicked=function(e){e.node.group||this.rowDbClick.emit({data:this.mapRowEvent(e),htmlElement:this.ref.nativeElement,component:this})},e.prototype.differenceOf2Arrays=function(e,t){var n=[];for(var o in e)-1===t.indexOf(e[o])&&n.push(e[o]);for(var o in t)-1===e.indexOf(t[o])&&n.push(t[o]);return n.sort((function(e,t){return e-t}))},e.prototype.rowSelectionChanged=function(e){var t=this;1==e.node.selected?(this.selectRow=this.selectRow.filter((function(n){return n[t.keyField]!=e.data[t.keyField]})),this.selectRow.push(e.data)):this.selectRow=this.selectRow.filter((function(n){return n[t.keyField]!=e.data[t.keyField]})),this.rowSelectionChange.emit({component:this,data:e,htmlElement:this.ref.nativeElement})},e.prototype.internalGridSelectionChanged=function(e){var t={items:[]},n=this.oldSelectionNodes,o=this.gridApi.getSelectedNodes();o.forEach((function(e){t.items.push({rowLevel:e.level,rowIndex:e.rowIndex,data:e.data})})),this.selectionChanged.emit({data:t,component:this,htmlElement:this.ref.nativeElement});var i=o.length>n.length,r=this.differenceOf2Arrays(o,n);this.onRowSelectionChanged.emit({component:this,selected:i,data:r,htmlElement:this.ref.nativeElement}),this.oldSelectionNodes=o},e.prototype.mapCellEvent=function(e){return{rowLevel:0,column:e.column,data:e.data,rowIndex:e.rowIndex,value:e.value}},e.prototype.mapRowEvent=function(e){return{rowLevel:0,data:e.data,rowIndex:e.rowIndex}},e.prototype.deselectAll=function(){this.gridApi.deselectAll()},e.prototype.showLoading=function(){this.gridApi&&this.gridApi.showLoadingOverlay()},e.prototype.hideLoading=function(){this.gridApi&&this.gridApi.hideOverlay()},e.prototype.internalGridSizeChanged=function(e){e.clientWidth>0&&e.clientHeight>0&&this.performSizeColumnsToFit(e.api)},e.prototype.internalGridFirstDataRendered=function(e){this.performSizeColumnsToFit(e.api)},e.prototype.performSizeColumnsToFit=function(e){this.sizeColumnsToFit&&e.sizeColumnsToFit()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},d([t.Input(),c("design:type",Boolean)],e.prototype,"remoteOperation",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"rowMultiSelectWithClick",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"suppressRowClickSelection",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"suppressCellSelection",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"sizeColumnsToFit",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"showCheckBox",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"floatingFilter",void 0),d([t.Input(),c("design:type",Number)],e.prototype,"takeCount",void 0),d([t.Input(),c("design:type",String)],e.prototype,"selectionMode",void 0),d([t.Input(),c("design:type",Array)],e.prototype,"selectRow",void 0),d([t.Input(),c("design:type",String)],e.prototype,"rowGroupPanelShow",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"loadOnInit",void 0),d([t.Input(),c("design:type",String)],e.prototype,"keyField",void 0),d([t.Input(),c("design:type",String)],e.prototype,"hasChildField",void 0),d([t.Input(),c("design:type",String),c("design:paramtypes",[String])],e.prototype,"searchText",null),d([t.Input(),c("design:type",Array),c("design:paramtypes",[Array])],e.prototype,"filter",null),d([t.ContentChildren(g),c("design:type",t.QueryList)],e.prototype,"_inlineColumns",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"columnsChange",void 0),d([t.Input(),c("design:type",Array),c("design:paramtypes",[Array])],e.prototype,"columns",null),d([t.Input(),c("design:type",Object)],e.prototype,"rowHeight",void 0),d([t.ContentChild(o.AXToolbarSearchComponent,{static:!0}),c("design:type",o.AXToolbarSearchComponent)],e.prototype,"searchInput",void 0),d([t.ContentChild(o.AXToolbarComponent,{static:!0}),c("design:type",o.AXToolbarComponent)],e.prototype,"toolbar",void 0),d([t.ContentChild(R,{static:!0}),c("design:type",R)],e.prototype,"rowTemplate",void 0),d([t.ContentChild(F,{static:!0}),c("design:type",F)],e.prototype,"gridDetailTemplate",void 0),d([t.ContentChild(o.AXDataSourceComponent,{static:!0}),c("design:type",o.AXDataSourceComponent)],e.prototype,"_contentDataSource",void 0),d([t.Input(),c("design:type",o.AXDataSourceComponent),c("design:paramtypes",[o.AXDataSourceComponent])],e.prototype,"dataSource",null),d([t.Input(),c("design:type",Boolean)],e.prototype,"groupHideOpenParents",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"cellClick",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"cellDbClick",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"cellFocuse",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"rowClick",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"rowDbClick",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"selectionChanged",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"rowSelectionChange",void 0),d([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"onRowSelectionChanged",void 0),d([t.Input(),c("design:type",Function)],e.prototype,"rowClass",void 0),d([t.Input(),c("design:type",Boolean)],e.prototype,"rtl",void 0),e=d([t.Component({selector:"ax-data-grid",template:'<div class="ax-grid-toolbar" *ngIf="toolbar">\r\n <ng-content select="ax-toolbar"></ng-content>\r\n</div>\r\n\x3c!-- [enableSorting]="true" [enableColResize]="true" [enableFilter]="allowFiltering" --\x3e\r\n<ag-grid-angular *ngIf="gridView" class="ag-theme-balham" [getRowClass]="internalGetRowClass"\r\n [style.height]="internalHeight" [columnDefs]="columnDefs" [enableRtl]="rtl" [pagination]="true"\r\n [rowGroupPanelShow]="rowGroupPanelShow" [rowModelType]="rowModelType" [detailRowHeight]="detailRowHeight"\r\n [getRowHeight]="getRowHeight" [paginationAutoPageSize]="paginationAutoPageSize"\r\n [paginationPageSize]="paginationPageSize" [suppressMenuHide]="true" [frameworkComponents]="frameworkComponents"\r\n [isFullWidthCell]="isFullWidthCell" [rowSelection]="selectionMode" [rowMultiSelectWithClick]="rowMultiSelectWithClick"\r\n [fullWidthCellRendererFramework]="fullWidthCellRendererFramework"\r\n [fullWidthCellRendererParams]="fullWidthCellRendererParams" (cellClicked)="internalGridCellClicked($event)"\r\n (cellDoubleClicked)="internalGridCellDoubleClicked($event)" (cellFocused)="internalGridCellFocused($event)"\r\n (rowClicked)="internalGridRowClicked($event)" (selectionChanged)="internalGridSelectionChanged($event)"\r\n (rowSelected)="rowSelectionChanged($event)" (rowDoubleClicked)="internalGridRowDoubleClicked($event)"\r\n (gridReady)="internalGridReady($event)" [groupSelectsChildren]="groupSelectsChildren"\r\n [suppressRowClickSelection]="suppressRowClickSelection" [groupSelectsFiltered]="true"\r\n [suppressCellSelection]="suppressCellSelection" [autoGroupColumnDef]="autoGroupColumnDef"\r\n [suppressAggFuncInHeader]="true" [treeData]="treeData" [animateRows]="true" [isServerSideGroup]="isServerSideGroup"\r\n [getServerSideGroupKey]="getServerSideGroupKey" [masterDetail]="masterDetail"\r\n [detailCellRendererParams]="detailCellRendererParams" [detailCellRenderer]="detailCellRenderer"\r\n (gridSizeChanged)="internalGridSizeChanged($event)" (firstDataRendered)="internalGridFirstDataRendered($event)"\r\n [localeText]="localeText" [groupHideOpenParents]="groupHideOpenParents" [enableRangeSelection]="true"\r\n [enableRangeSelection]="false" [allowContextMenuWithControlKey]="false" [getMainMenuItems]="getMainMenuItems">\r\n</ag-grid-angular>\r\n\r\n\x3c!-- (displayedColumnsChanged)="displayedColumnsChanged($event)" --\x3e',encapsulation:t.ViewEncapsulation.None}),c("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),M=function(){function e(){}return e=d([t.Component({selector:"ax-data-grid-filter",template:"\n <div class='ax-grid-filter-container'>\n <ng-content></ng-content>\n <div class='btn-group' role='group'>\n <button type='button' class='btn btn-primary btn-sm'>\n <i class='fas fa-filter'></i>\n </button>\n <button type='button' class='btn btn-danger btn-sm'>\n <i class='fas fa-trash-alt'></i>\n </button>\n </div>\n </div>\n ",encapsulation:t.ViewEncapsulation.None})],e)}(),z=function(){function e(){}return e=d([t.NgModule({declarations:[B,I,f,S,b,D,C,y,v,k,M,R,F,A,E,h,m,x,w],imports:[r.CommonModule,n.AXCoreModule,a.FormsModule,o.AXTextBoxModule,o.AXCheckBoxModule,o.AXSelectBoxModule,o.AXDataSourceModule,o.AXButtonModule,o.AXDatePickerModule,l.AgGridModule.withComponents([x])],exports:[B,M,R,F,A,E,h,m,I,D,f,b,S,C,y,v,w],entryComponents:[y,v,w,k,R,F,A,E,h,m],providers:[]})],e)}(),V=function(e){function i(t,o){var i=e.call(this)||this;return i.cdr=t,i.ref=o,i.columns=[],i.selectedItems=[],i.keyField="",i.allowNull=!0,i.rtl=n.AXConfig.get("layout.rtl"),i.selectedRows=[],i}return p(i,e),i.prototype.ngOnInit=function(){null==this.rtl&&(this.rtl="rtl"===window.getComputedStyle(this.ref.nativeElement,null).getPropertyValue("direction"))},i.prototype.onDoneClick=function(){this.selectedItems?this.close(this.selectedItems):this.close()},i.prototype.rowDoubleClicked=function(e){var t=this;console.log("s",e.data.data),"single"==this.selectionMode&&(this.selectedItems=[]),this.selectedItems=this.selectedItems.filter((function(n){return n[t.keyField]!=e.data.data[t.keyField]})),this.selectedItems.push(e.data.data),this.onDoneClick()},i.prototype.onCancelClick=function(){this.close()},i.prototype.rowSelectionChange=function(e){var t=this;1==e.data.node.selected?(this.selectedItems=this.selectedItems.filter((function(n){return n[t.keyField]!=e.data.node.data[t.keyField]})),this.selectedItems.push(e.data.node.data)):(1==this.allowNull||0==this.allowNull&&this.selectedItems.length>1)&&(this.selectedItems=this.selectedItems.filter((function(n){return n[t.keyField]!=e.data.node.data[t.keyField]})))},i.prototype.ngAfterViewInit=function(){var e=this;this.selectedItems.forEach((function(t){e.selectedRows.push(t)})),this.searchBox.focus(),this.dataSource.onDataReceived&&this.dataSource.onDataReceived.subscribe((function(t){e.cdr.markForCheck(),e.cdr.detectChanges()}))},i.prototype.getFooterButtons=function(){return[{text:n.AXTranslator.get("common.confirm"),name:"confirm",style:"ax primary",icon:"far fa-check-circle"},{text:n.AXTranslator.get("common.cancel"),name:"cancel",style:"ax light",icon:"far fa-times-circle"}]},i.prototype.onFooterButtonClick=function(e){"confirm"===e.name&&this.onDoneClick(),"cancel"===e.name&&this.onCancelClick()},i.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},d([t.ViewChild("grid",{static:!0}),c("design:type",B)],i.prototype,"grid",void 0),d([t.ViewChild("searchBox"),c("design:type",o.AXToolbarSearchComponent)],i.prototype,"searchBox",void 0),i=d([t.Component({template:'<div style="height: 70vh; padding: 0.5em;">\r\n <div style="height: calc(100%);">\r\n\r\n <ax-data-grid [rtl]="rtl" [suppressRowClickSelection]="false" [keyField]="keyField"\r\n [hasChildField]="hasChildField" [selectRow]="selectedItems" #grid [columns]="columns"\r\n [remoteOperation]="true" [selectionMode]="selectionMode" (rowDbClick)="rowDoubleClicked($event)"\r\n (rowSelectionChange)="rowSelectionChange($event)" [dataSource]="dataSource">\r\n <ax-toolbar>\r\n <ax-toolbar-search #searchBox style="width: 100%;"></ax-toolbar-search>\r\n </ax-toolbar>\r\n <ax-selection-column *ngIf="selectionMode== \'single\'? false : true"></ax-selection-column>\r\n \x3c!-- <ax-data-source [provideData]="dataSource.provideData">\r\n </ax-data-source> --\x3e\r\n </ax-data-grid>\r\n </div>\r\n</div>'}),c("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],i)}(o.AXBasePopupPageComponent),N=function(e){function i(o,i){var r=e.call(this)||this;return r.popup=o,r.ref=i,r.textField="",r.allowSearch=!0,r.valueField="",r.hasChildField="null",r.allowNull=!0,r.popupSize="md",r.selectedItems=[],r.readonly=!1,r.disabled=!1,r.chipsWidth="",r.size="md",r.mode="single",r.onSelectionChange=new t.EventEmitter,r.rtl=n.AXConfig.get("layout.rtl"),r}var r;return p(i,e),r=i,Object.defineProperty(i.prototype,"validation",{get:function(){return this._validation?this._validation:this._contentValidation},set:function(e){this._validation=e},enumerable:!0,configurable:!0}),i.prototype.focus=function(){this.selectBox.focus()},i.prototype.refresh=function(){this.selectBox.refresh()},i.prototype.handleButtonClick=function(){this.open()},i.prototype.ngOnInit=function(){var e=this;null==this.rtl&&(this.rtl="rtl"===window.getComputedStyle(this.ref.nativeElement,null).getPropertyValue("direction")),this.onSelectionChange.subscribe((function(t){e.clearValidationStyle(e.ref.nativeElement)}))},i.prototype.ngAfterContentInit=function(){this.initValidation(this.ref,"selectedItems",this.validation)},i.prototype.handleSelectChange=function(e){this.onSelectionChange.emit({data:this.selectedItems,component:this,htmlElement:this.ref.nativeElement})},i.prototype.open=function(){var e=this;return new Promise((function(t){e.selectBox.dropdown.close(),e.popup.open(V,{size:e.popupSize,data:{dataSource:e.dataSource,selectionMode:e.mode,columns:e.columns.toArray(),selectedItems:e.selectedItems,keyField:e.valueField,allowNull:e.allowNull,hasChildField:e.hasChildField,rtl:e.rtl},title:e.caption}).then((function(n){n.data?(e.selectedItems=[],n.data.forEach((function(t){e.selectedItems.push(t)})),e.onSelectionChange.emit({data:e.selectedItems,component:e,htmlElement:e.ref.nativeElement}),t&&t(n.data)):t&&t(e.selectedItems),e.selectBox.refresh()}))}))},i.ctorParameters=function(){return[{type:o.AXPopupService},{type:t.ElementRef}]},d([t.ContentChild(o.AXValidation,{static:!0}),c("design:type",o.AXValidation)],i.prototype,"_contentValidation",void 0),d([t.Input(),c("design:type",o.AXValidation),c("design:paramtypes",[o.AXValidation])],i.prototype,"validation",null),d([t.ViewChild("selectBox",{static:!0}),c("design:type",o.AXSelectBoxComponent)],i.prototype,"selectBox",void 0),d([t.ContentChild(o.AXDataSourceComponent,{static:!0}),c("design:type",o.AXDataSourceComponent)],i.prototype,"dataSource",void 0),d([t.ContentChildren(g),c("design:type",t.QueryList)],i.prototype,"columns",void 0),d([t.ContentChild("itemTemplate",{static:!0}),c("design:type",t.TemplateRef)],i.prototype,"rowTemplate",void 0),d([t.Input(),c("design:type",String)],i.prototype,"textField",void 0),d([t.Input(),c("design:type",Boolean)],i.prototype,"allowSearch",void 0),d([t.Input(),c("design:type",String)],i.prototype,"valueField",void 0),d([t.Input(),c("design:type",String)],i.prototype,"hasChildField",void 0),d([t.Input(),c("design:type",Boolean)],i.prototype,"allowNull",void 0),d([t.Input(),c("design:type",String)],i.prototype,"popupSize",void 0),d([t.Input(),c("design:type",Array)],i.prototype,"selectedItems",void 0),d([t.Input(),c("design:type",Boolean)],i.prototype,"readonly",void 0),d([t.Input(),c("design:type",Boolean)],i.prototype,"disabled",void 0),d([t.Input(),c("design:type",String)],i.prototype,"chipsWidth",void 0),d([t.Input(),c("design:type",String)],i.prototype,"size",void 0),d([t.Input(),c("design:type",String)],i.prototype,"caption",void 0),d([t.Input(),c("design:type",String)],i.prototype,"mode",void 0),d([t.Input(),c("design:type",String)],i.prototype,"placeholder",void 0),d([t.Output(),c("design:type",t.EventEmitter)],i.prototype,"onSelectionChange",void 0),d([t.Input(),c("design:type",Boolean)],i.prototype,"rtl",void 0),i=r=d([t.Component({selector:"ax-lov",template:'<ax-select-box [rowInputTemplate]="rowTemplate" [rtl]="rtl" [allowSearch]="allowSearch" #selectBox [showDropDownButton]="false" [allowNull]="allowNull"\r\n [remoteOperation]="true" [placeholder]="placeholder" [size]="size" [textField]="textField" [valueField]="valueField"\r\n [disabled]="disabled" [mode]="mode" [(selectedItems)]="selectedItems"\r\n (selectionChanged)="handleSelectChange($event)" [dataSource]="dataSource">\r\n <ng-container start>\r\n <ng-content select="[start]">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon="far fa-bars icon" [disabled]="disabled" type="light blank" (click)="handleButtonClick()" end\r\n [tabIndex]="-1">\r\n </ax-button>\r\n <ng-content select="[end]">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box>\r\n\r\n\r\n\x3c!-- <ax-select-box2 [rtl]="rtl" [allowSearch]="allowSearch" #selectBox [showDropDownButton]="false" [allowNull]="allowNull"\r\n [remoteOperation]="true" [placeholder]="placeholder" [size]="size" [textField]="textField" [valueField]="valueField"\r\n [disabled]="disabled" [selectionMode]="mode" (onValueChanged)="handleSelectChange($event)" [dataSource]="dataSource"\r\n [(value)]="selectedItems" selectionDataMode="item">\r\n <ng-container start>\r\n <ng-content select="[start]">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon="far fa-bars icon" [disabled]="disabled" type="primary blank" (click)="handleButtonClick()" end\r\n [tabIndex]="-1">\r\n </ax-button>\r\n <ng-content select="[end]">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box2> --\x3e\r\n\r\n\r\n\x3c!-- <div class="ax-lov-box" [style.display]="mode==\'hidden\' ? \'none\':\'unset\'">\r\n <div class="ax-field-set">\r\n <div class="ax-field-set-wrapper" [ngClass]="{ \'no-label\': !label }">\r\n <fieldset [ngClass]="{ \'input-focused\': isFocused, \'input-error\': errorText }">\r\n <legend *ngIf="label">\r\n {{ label }}\r\n </legend>\r\n </fieldset>\r\n <input type="text" [(ngModel)]="text" [placeholder]="placeholder" (keyup)="handleKeyEvent($event)"\r\n (blur)="handleBlurEvent($event)" (focus)="handleFocusEvent($event)" class="ax-text-box" disabled />\r\n <div class="ax-field-set-button">\r\n <button *ngIf="text && allowClear" type="button" class="btn btn-light" (click)="clearText()">\r\n <i class="far fa-times"></i>\r\n </button>\r\n <button type="button" class=" btn btn-primary" (click)="handleButtonClick($event)">\r\n <i class="far fa-check-circle"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="validation-text" *ngIf="errorText">\r\n {{ errorText }}\r\n </div>\r\n\r\n</div> --\x3e',encapsulation:t.ViewEncapsulation.None,host:{style:"width: 100%"},providers:[{provide:o.AXValidatableComponent,useExisting:r}]}),c("design:paramtypes",[o.AXPopupService,t.ElementRef])],i)}(o.AXValidatableComponent),_=function(){function e(){}return e=d([t.NgModule({declarations:[N,V],imports:[r.CommonModule,a.FormsModule,z,o.AXDataSourceModule,o.AXButtonModule,o.AXToolbarModule,o.AXSelectBoxModule,o.AXSearchBoxModule],exports:[N,V],providers:[],entryComponents:[V]})],e)}();e.AXDaagridRowClickEvent=O,e.AXDataGridCellEvent=G,e.AXDataGridCellTemplateComponent=h,e.AXDataGridCellTemplateRenderer=m,e.AXDataGridColumnsChangeEvent=T,e.AXDataGridComponent=B,e.AXDataGridDetailTemplateComponent=F,e.AXDataGridDetailTemplateRenderer=E,e.AXDataGridFilterComponent=M,e.AXDataGridModule=z,e.AXDataGridRowSelectionChangeEvent=P,e.AXDataGridRowTemplateComponent=R,e.AXDataGridRowTemplateRenderer=A,e.AXDataGridSelectionChangeEvent=X,e.AXDataLovPopupComponent=V,e.AXDatePickerFilterComponent=x,e.AXGridCheckColumn=f,e.AXGridCommandColumn=C,e.AXGridDataColumn=g,e.AXGridDateColumn=b,e.AXGridRowNumberColumn=D,e.AXGridSelectionColumn=S,e.AXGridTextColumn=I,e.AXLOVComponent=N,e.AXLOVModule=_,e.BooleanFilterRenderer=v,e.BooleanRenderer=y,e.CommandRenderer=w,e.TextFilterRenderer=k,Object.defineProperty(e,"__esModule",{value:!0})}));
|
15
|
+
***************************************************************************** */var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function d(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function p(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}var h=function(){function e(){this.renderer=m}return e.prototype.ngOnInit=function(){this.params={templateRef:this.templateRef}},p([t.ContentChild(t.TemplateRef,{static:!0}),c("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=p([t.Component({selector:"ax-cell-template",template:"<ng-content></ng-content>\n "}),c("design:paramtypes",[])],e)}(),m=function(){function e(){}return e.prototype.agInit=function(e){this.rowData=e.data,this.templateRef=e.templateRef},e.prototype.refresh=function(e){return this.rowData=e.data,!0},e=p([t.Component({template:"\n <ng-container *ngTemplateOutlet='templateRef; context: { $implicit: rowData }'>\n </ng-container>\n "}),c("design:paramtypes",[])],e)}(),g=function(){function e(){this.width=100,this.pinned=null,this.allowSorting=!0,this.allowFiltering=n.AXConfig.get("datagrid.allowFiltering")||!1,this.sort=null,this.field="",this.caption="",this.checkbox=!1,this.headerCheckbox=!1,this.groupIndex=-1,this.treeIndex=-1,this.enableRowGroup=!1,this.hide=!1,this.floatingFilter=n.AXConfig.get("datagrid.floatingFilter")||!1,this.disableMenu=!1,this.resizable=!0,this.menuColumnDisable=!1,this.menuItemDisable=!1}return e.prototype.render=function(){var e={field:this.field,width:this.width};if(e.resizable=this.resizable,e.suppressMenu=this.disableMenu,e.menuTabs=["filterMenuTab","columnsMenuTab","generalMenuTab"],e.floatingFilter=this.floatingFilter,this.allowFiltering||(e.filter=!1,e.menuTabs=e.menuTabs.filter((function(e){return"filterMenuTab"!=e})),e.floatingFilter=!1),1==this.menuColumnDisable&&(e.menuTabs=e.menuTabs.filter((function(e){return"columnsMenuTab"!=e}))),1==this.menuItemDisable&&(e.menuTabs=e.menuTabs.filter((function(e){return"generalMenuTab"!=e}))),this.caption&&(e.headerName=this.caption),this.minWidth&&(e.minWidth=this.minWidth),this.maxWidth&&(e.maxWidth=this.maxWidth),this.pinned&&(e.pinned="start"===this.pinned?"right":"left"),this.allowSorting&&(e.sortable=this.allowSorting),this.sort&&(e.sort=this.sort),this.groupIndex>=0&&(e.rowGroupIndex=this.groupIndex,e.rowGroup=!0,this.enableRowGroup=!0),this.treeIndex>=0&&(e.rowGroupIndex=this.treeIndex,e.rowGroup=!1),this.hide&&(e.hide=!0),this.enableRowGroup&&(e.enableRowGroup=this.enableRowGroup),this.cellClass){var t=this;this.cellClass instanceof Function?e.cellClass=function(e){return t.cellClass({column:t,rowIndex:e.node.rowIndex,rowLevel:e.node.level,data:e.data,value:e.value})}:e.cellClass=this.cellClass}return null!=this.cellTemplate&&(e.cellRendererFramework=this.cellTemplate.renderer,e.cellRendererParams=this.cellTemplate.params),this.checkbox&&(e.checkboxSelection=function(e){return!0}),e},p([t.ContentChild(h),c("design:type",h)],e.prototype,"cellTemplate",void 0),p([t.Input(),c("design:type",Number)],e.prototype,"width",void 0),p([t.Input(),c("design:type",Number)],e.prototype,"maxWidth",void 0),p([t.Input(),c("design:type",Number)],e.prototype,"minWidth",void 0),p([t.Input(),c("design:type",String)],e.prototype,"pinned",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"allowSorting",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"allowFiltering",void 0),p([t.Input(),c("design:type",Function)],e.prototype,"cellClass",void 0),p([t.Input(),c("design:type",String)],e.prototype,"sort",void 0),p([t.Input(),c("design:type",String)],e.prototype,"field",void 0),p([t.Input(),c("design:type",String)],e.prototype,"caption",void 0),p([t.Input(),c("design:type",Object)],e.prototype,"cellRendererParams",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"checkbox",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"headerCheckbox",void 0),p([t.Input(),c("design:type",Number)],e.prototype,"groupIndex",void 0),p([t.Input(),c("design:type",Number)],e.prototype,"treeIndex",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"enableRowGroup",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"hide",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"floatingFilter",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"disableMenu",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"resizable",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"menuColumnDisable",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"menuItemDisable",void 0),e}(),f=function(e){function n(){return e.call(this)||this}var o;return d(n,e),o=n,n.prototype.render=function(){var t=e.prototype.render.call(this);return t.cellRendererFramework||(t.cellRendererFramework=y),this.allowFiltering&&(t.filterFramework=v),t},n=o=p([t.Component({selector:"ax-check-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],n)}(g),y=function(){function e(){}return e.prototype.agInit=function(e){this.value=e.value},e.prototype.refresh=function(e){return this.value=e.value,!0},e=p([t.Component({template:"\n <ax-check-box [value]='value' readonly='true'></ax-check-box>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],e)}(),v=function(){function e(){this.value=null,this.selectItem=[{value:0,label:"True"},{value:1,label:"False"}]}return e.prototype.agInit=function(e){this.params=e,this.valueGetter=e.valueGetter},e.prototype.isFilterActive=function(){return null!==this.value&&void 0!==this.value},e.prototype.doesFilterPass=function(e){return this.value===this.valueGetter(e.node)},e.prototype.getModel=function(){return{value:this.value}},e.prototype.setModel=function(e){this.value=e?e.value:null},e.prototype.ngAfterViewInit=function(e){var t=this;window.setTimeout((function(){t.input.element.nativeElement.focus()}))},e.prototype.onChange=function(e){this.value!==e&&(this.value=e,this.params.filterChangedCallback())},p([t.ViewChild("input",{static:!0,read:t.ViewContainerRef}),c("design:type",Object)],e.prototype,"input",void 0),e=p([t.Component({template:"\n <ax-data-grid-filter>\n <ax-select-box\n label='Select Box'\n [items]='selectItem'\n ></ax-select-box>\n </ax-data-grid-filter>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush})],e)}(),C=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.items=[],n.onItemClick=new t.EventEmitter,n}var o;return d(n,e),o=n,n.prototype.render=function(){var t=this,n=e.prototype.render.call(this);return n.cellRendererFramework||(n.cellRendererFramework=w),n.cellRendererParams={items:this.items,onClick:function(e){t.onItemClick.emit({command:e.name,data:e.data,rowIndex:e.rowIndex,rowLevel:e.rowLevel,htmlEvent:e.htmlEvent})}},n.sortable=!1,n.filter=!1,n.valueGetter=function(e){return t.items},n},p([t.Input(),c("design:type",Object)],n.prototype,"items",void 0),p([t.Output(),c("design:type",t.EventEmitter)],n.prototype,"onItemClick",void 0),n=o=p([t.Component({selector:"ax-command-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None})],n)}(g),w=function(){function e(){this.items=[]}return e.prototype.agInit=function(e){this.mapParams(e)},e.prototype.refresh=function(e){return this.mapParams(e),!0},e.prototype.mapParams=function(e){this.node=e.node,this.items="function"==typeof e.items?e.items({data:this.node.data}):Array.isArray(e.items)?e.items:[],this.clickCallback=e.onClick},e.prototype.onClick=function(e,t){this.clickCallback&&!e.disable&&this.clickCallback({name:e.name,rowLevel:this.node.level,rowIndex:this.node.rowIndex,data:this.node.data,htmlEvent:t})},e=p([t.Component({selector:"ax-command-cell",template:'\n <button\n *ngFor="let item of items; let i = index"\n class="ax button md ax-grid-command-button {{ item.style || \'ax primary blank\' }}"\n [class.disabled]="item.disable"\n type="button"\n [title]="item.tooltip"\n [attr.tabindex]="i"\n (click)="onClick(item, $event)"\n >\n <i [ngClass]="item.icon"></i>{{ item.text }}\n </button>\n ',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],e)}(),b=function(e){function o(){var t=e.call(this)||this;return t.type=n.AXConfig.get("dateTime.type"),t}var i;return d(o,e),i=o,o.prototype.render=function(){var t=this,o=e.prototype.render.call(this);return o.cellRendererParams={format:this.format},o.comparator=function(e,t){var o=n.AXDateTime.convert(e),i=n.AXDateTime.convert(t);return null===o&&null===i?0:null===o?-1:null===i?1:o.date.getTime()-i.date.getTime()},o.valueFormatter=function(e){var o=n.AXDateTime.convert(e.value,t.type);return o?o.format(t.format):null},o.filter="agDateColumnFilter",o},p([t.Input(),c("design:type",String)],o.prototype,"format",void 0),p([t.Input(),c("design:type",String)],o.prototype,"type",void 0),o=i=p([t.Component({selector:"ax-date-column",template:"",providers:[{provide:g,useExisting:i}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],o)}(g),x=function(){function e(){this.selectableHoliday=!1,this.type="jalali"}return e.prototype.agInit=function(e){this.params=e},e.prototype.ngAfterViewInit=function(){},e.prototype.ngOnDestroy=function(){console.log("Destroying DateComponent")},e.prototype.onDateChanged=function(e){this.params.onDateChanged()},e.prototype.getDate=function(){return this.date},e.prototype.setDate=function(e){this.date=e||null},e.prototype.setInputPlaceholder=function(e){},e.prototype.onValueChanged=function(e){this.setDate(e.value),this.onDateChanged(e.value)},p([t.ViewChild(o.AXDatePickerComponent),c("design:type",o.AXDatePickerComponent)],e.prototype,"datePicker",void 0),p([t.ViewChild("div",{read:t.ElementRef}),c("design:type",t.ElementRef)],e.prototype,"div",void 0),e=p([t.Component({selector:"ax-data-picker-filter",template:'<ax-date-picker [selectableHoliday]="selectableHoliday" [allowClear]="true" (onValueChanged)="onValueChanged($event)" size="sm">\n </ax-date-picker>',host:{},encapsulation:t.ViewEncapsulation.None})],e)}(),S=function(e){function n(){var t=e.call(this)||this;return t.pinned="start",t.width=40,t}var o;return d(n,e),o=n,n.prototype.ngOnInit=function(){},n.prototype.render=function(){var t=e.prototype.render.call(this);return t.checkboxSelection=!this.condition||this.condition,t.pinned="start"===this.pinned?"right":"left",t.filter=!1,t.resizable=!0,t.sortable=!1,t.minWidth=5,t.width=this.width,t.floatingFilter=!1,t},p([t.Input(),c("design:type",Function)],n.prototype,"condition",void 0),p([t.Input(),c("design:type",String)],n.prototype,"pinned",void 0),p([t.Input(),c("design:type",Number)],n.prototype,"width",void 0),n=o=p([t.Component({selector:"ax-selection-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],n)}(g),I=function(e){function n(){return e.call(this)||this}var o;return d(n,e),o=n,n.prototype.render=function(){var t=e.prototype.render.call(this);return t.filter="agTextColumnFilter",t},n=o=p([t.Component({selector:"ax-text-column",template:"",providers:[{provide:g,useExisting:o}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],n)}(g),D=function(){function e(){this.value=null}return e.prototype.agInit=function(e){this.params=e,this.valueGetter=e.valueGetter},e.prototype.isFilterActive=function(){return null!==this.value&&void 0!==this.value},e.prototype.doesFilterPass=function(e){return this.value===this.valueGetter(e.node)},e.prototype.getModel=function(){return{value:this.value}},e.prototype.setModel=function(e){this.onChange(e?e.value:null)},e.prototype.ngAfterViewInit=function(e){var t=this;window.setTimeout((function(){t.input.focus()}))},e.prototype.onChange=function(e){this.value!==e&&(this.value=e,""===this.value&&(this.value=null),this.params.filterChangedCallback())},p([t.ViewChild(o.AXTextBoxComponent,{static:!0}),c("design:type",o.AXTextBoxComponent)],e.prototype,"input",void 0),e=p([t.Component({template:"\n <ax-data-grid-filter>\n <ax-text-box label='Filter' allowClear='true' (textChange)='onChange($event)'>\n </ax-text-box>\n </ax-data-grid-filter>\n ",changeDetection:t.ChangeDetectionStrategy.OnPush})],e)}(),R=function(e){function o(){return e.call(this)||this}var i;return d(o,e),i=o,o.prototype.ngOnInit=function(){},o.prototype.render=function(){var t=e.prototype.render.call(this);return t.headerName=this.caption?this.caption:n.AXConfig.get("layout.rtl")?"ردیف":"Row",t.valueGetter="node.rowIndex + 1",t.pinned=null==this.pinned?null:"start"===this.pinned?"right":"left",t.filter=!1,t.resizable=!0,t.sortable=!1,t.width=this.width,t},p([t.Input(),c("design:type",Function)],o.prototype,"condition",void 0),o=i=p([t.Component({selector:"ax-row-number-column",template:"",providers:[{provide:g,useExisting:i}],changeDetection:t.ChangeDetectionStrategy.OnPush}),c("design:paramtypes",[])],o)}(g),k=function(){function e(){this.renderer=A}return e.prototype.ngOnInit=function(){this.params={templateRef:this.templateRef}},p([t.ContentChild(t.TemplateRef,{static:!0}),c("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=p([t.Component({selector:"ax-row-template",template:"<ng-content></ng-content>"}),c("design:paramtypes",[])],e)}(),A=function(){function e(){}return e.prototype.refresh=function(e){return!1},e.prototype.agInit=function(e){this.data=e.data.callRecords,this.templateRef=e.templateRef},e=p([t.Component({template:"<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>"})],e)}(),F=function(){function e(){this.height=100,this.renderer=E}return e.prototype.ngOnInit=function(){this.params={templateRef:this.templateRef}},p([t.ContentChild(t.TemplateRef,{static:!0}),c("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),p([t.Input(),c("design:type",Number)],e.prototype,"height",void 0),e=p([t.Component({selector:"ax-grid-detail-template",template:"<ng-content></ng-content>"}),c("design:paramtypes",[])],e)}(),E=function(){function e(){}return e.prototype.refresh=function(e){return!1},e.prototype.agInit=function(e){this.data=e.data,this.templateRef=e.templateRef},e=p([t.Component({template:"<ng-container *ngTemplateOutlet='templateRef; context: { $implicit: data }'></ng-container>"})],e)}();i.LicenseManager.prototype.validateLicense=function(){};var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(o.AXValueEvent),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(o.AXDataEvent),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(o.AXDataEvent),X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(o.AXDataEvent),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(o.AXDataEvent),M=function(){function e(e,o){var i=this;this.ref=e,this.cdr=o,this.columnDefs=[],this.rowModelType="clientSide",this.frameworkComponents={},this.internalHeight="100%",this.masterDetail=!1,this.treeData=!1,this.enabelSelect=!1,this.gridView=!1,this.groupSelectsChildren=!1,this.oldSelectionNodes=[],this.paginationAutoPageSize=!0,this.paginationPageSize=10,this.cacheBlockSize=10,this.remoteOperation=!1,this.rowMultiSelectWithClick=!0,this.suppressRowClickSelection=!0,this.suppressCellSelection=!1,this.sizeColumnsToFit=!0,this.showCheckBox=!0,this.floatingFilter=!1,this.autoGroupColumnDef={},this.selectionMode="single",this.selectRow=[],this.rowGroupPanelShow="never",this.loadOnInit=!0,this.keyField="null",this.hasChildField="null",this.columnsChange=new t.EventEmitter,this._columns=[],this.defaultColDef={filter:!0,floatingFilter:!0},this.groupHideOpenParents=!1,this.cellClick=new t.EventEmitter,this.cellDbClick=new t.EventEmitter,this.cellFocuse=new t.EventEmitter,this.rowClick=new t.EventEmitter,this.rowDbClick=new t.EventEmitter,this.selectionChanged=new t.EventEmitter,this.rowSelectionChange=new t.EventEmitter,this.onRowSelectionChanged=new t.EventEmitter,this.rtl=n.AXConfig.get("layout.rtl"),this.isServerSideGroup=function(e){return e[i.hasChildField]},this.getColumnDefs=function(){return i.gridApi.getColumnDefs()},this.getCurrentPageNumber=function(){return{current:i.gridApi.paginationGetCurrentPage()+1,total:i.gridApi.paginationGetTotalPages()}},this.getServerSideGroupKey=function(e){return e[i.keyField]},this.internalGetRowClass=function(e){if(i.rowClass)return i.rowClass instanceof Function?i.rowClass({rowIndex:e.node.rowIndex,rowLevel:e.node.level,data:e.data}):i.rowClass},this.localeText=n.AXTranslator.get("dataGrid")}return Object.defineProperty(e.prototype,"searchText",{get:function(){return this._searchText},set:function(e){e!==this._searchText&&(this._searchText=e,this.gridApi&&(this.refresh(),this.gridApi.setQuickFilter(this.searchText)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},set:function(e){var t=this;e!==this._filter&&(this._filter=e,this._filter.forEach((function(e){var n=t.gridApi.getFilterInstance(e.field);n&&n.getFrameworkComponentInstance().setModel(e)})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._inlineColumns?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}(this._columns,this._inlineColumns.toArray()):this._columns},set:function(e){if(e&&e.length){var t=this._columns;this._columns=e,this.columnsChange.emit({component:this,value:e,oldValue:t,htmlElement:this.ref.nativeElement})}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource?this._dataSource:this._contentDataSource},set:function(e){this._dataSource=e},enumerable:!0,configurable:!0}),e.prototype.getRowHeight=function(e){return e.data&&e.data.rowHeight&&0==e.node.level?e.data.rowHeight:1==this.masterDetail&&1==e.node.level?this.detailRowHeight:0==this.masterDetail&&e.data&&e.data.rowHeight?e.data.rowHeight:null},e.prototype.calcHeight=function(){this.toolbar?this.internalHeight="calc(100% - 40px)":this.internalHeight="100%"},Object.defineProperty(e.prototype,"intenalGridDataSource",{get:function(){var e=this;return{rowCount:null,getRows:function(t){e.dataSourceSuccessCallback=t.successCallback;var n={};n.searchText=e.searchText,n.skip=t.request.startRow,n.take=t.request.endRow-t.request.startRow,n.sort=t.request.sortModel.map((function(e){return{field:e.colId,dir:e.sort}})),n.group={fields:t.request.rowGroupCols.map((function(e){return e.field})),keys:t.request.groupKeys,parentData:t.parentNode.data},n.filter=t.request.filterModel,e.dataSource.fetch(n)}}},enumerable:!0,configurable:!0}),e.prototype.getMainMenuItems=function(e){return["pinSubMenu","separator"]},e.prototype.ngOnDestroy=function(){this.gridApi.destroy()},e.prototype.paginationGoToPage=function(e){this.gridApi.paginationGoToPage(e-1)},e.prototype.internalGridReady=function(e){this.gridApi=e.api,this.mapColumns(),this.calcHeight(),this.loadOnInit?(this.remoteOperation&&this.gridApi.setServerSideDatasource(this.intenalGridDataSource),this.remoteOperation||this.refresh()):this.loadOnInit=!0},e.prototype.ngAfterContentInit=function(){var e=this;this.rowTemplate&&(this.fullWidthCellRendererFramework=this.rowTemplate.renderer,this.fullWidthCellRendererParams=this.rowTemplate.params),this.frameworkComponents.agDateInput=x,this.gridDetailTemplate&&(this.masterDetail=!0,this.detailCellRendererParams=this.gridDetailTemplate.params,this.detailCellRenderer="detailRendererFramework",this.frameworkComponents.detailRendererFramework=this.gridDetailTemplate.renderer,this.detailRowHeight=this.gridDetailTemplate.height),this.isFullWidthCell=function(){return null!=e.rowTemplate}},e.prototype.ngOnInit=function(){"single"===this.selectionMode&&(this.groupSelectsChildren=!1),"null"!==this.keyField&&"null"!==this.hasChildField&&(this.rowGroupPanelShow="never",this.treeData=!0),this.remoteOperation&&(this.rowModelType="serverSide"),null==this.rtl&&(this.rtl="rtl"===window.getComputedStyle(this.ref.nativeElement,null).getPropertyValue("direction"))},e.prototype.gridSelectRow=function(){var e=this;this.gridApi&&(this.selectRow&&this.selectRow.length>0&&void 0!==this.gridApi&&"object"!=typeof this.selectRow[0]?this.gridApi.forEachNode((function(t){if(void 0!==t.data){var n=!1;e.selectRow.forEach((function(o){t.data[e.keyField]===o&&(n=!0,t.setSelected(n))}))}})):this.gridApi.forEachNode((function(t){if(void 0!==t.data){var n=!1;e.selectRow.forEach((function(o){null!=o.rowIndex&&null!=o.rowLevel?t.data[e.keyField]===o.data[e.keyField]&&(n=!0):t.data[e.keyField]===o[e.keyField]&&(n=!0)})),t.setSelected(n)}})))},e.prototype.rebuildGrid=function(){var e=this;this.mapColumns(),setTimeout((function(){e.sizeColumnsToFit&&e.gridApi.sizeColumnsToFit()}),10)},e.prototype.ngAfterViewInit=function(){var e=this;if(!0===this.treeData){this.columnDefs=this.columns.map((function(e){return e.render()}));var t=this.columnDefs.find((function(e){return"0"==e.rowGroupIndex&&""!==e.field}));this.autoGroupColumnDef={headerName:t.headerName,width:t.width,cellRendererParams:{checkbox:this.showCheckBox},field:t.field},this.columnDefs.forEach((function(e){e.rowGroupIndex>-1&&(e.hide=!0)}))}this.gridView=!0,this.enabelSelect=!0,this.dataSource.onDataReceived.subscribe((function(t){var n,o,i=t.data.result;e.hideLoading(),Array.isArray(i)?(n=i,o=i.length):(n=i.items,o=i.totalCount),e.dataSourceSuccessCallback?e.loadOnInit?e.dataSourceSuccessCallback(n,o):e.dataSourceSuccessCallback([],0):e.loadOnInit||void 0===e.gridApi?void 0!==e.gridApi&&e.gridApi.setRowData(n):e.gridApi.setRowData([]),e.gridSelectRow()})),this.dataSource.onFetchStart.subscribe((function(){e.showLoading()})),this.searchInput&&this.searchInput.onValueChanged.subscribe((function(t){e.searchText=t.value})),this.cdr.detectChanges()},e.prototype.mapColumns=function(){if(this.columnDefs=this.columns.map((function(e){return e.render()})),this.gridDetailTemplate&&(!0===this.columnDefs[0].checkboxSelection&&""===this.columnDefs[0].field?this.columnDefs[1].cellRenderer="agGroupCellRenderer":this.columnDefs[0].cellRenderer="agGroupCellRenderer"),"null"===this.hasChildField){var e=this.columnDefs.find((function(e){return void 0===e.rowGroupIndex&&""!==e.field}));e&&0==this.groupHideOpenParents&&(this.autoGroupColumnDef={headerName:e.headerName,width:e.width,cellRendererParams:{checkbox:this.showCheckBox},field:e.field})}this.columnDefs.forEach((function(e){e.rowGroupIndex>-1&&(e.hide=!0)}))},e.prototype.displayedColumnsChanged=function(e){if("null"===this.hasChildField){var t=e.columnApi.getAllDisplayedColumnGroups().find((function(e){return"ag-Grid-AutoColumn"!==e.colId&&"0"!==e.colId}));t&&t.colId&&(this.autoGroupColumnDef={headerName:t.colDef.headerName,width:t.colDef.width,cellRendererParams:{checkbox:this.showCheckBox},field:t.colDef.field})}},e.prototype.refresh=function(e){void 0===e&&(e=[]),this.remoteOperation&&void 0!==this.gridApi?this.gridApi.setServerSideDatasource(this.intenalGridDataSource):this.dataSource.fetch(null)},e.prototype.internalGridCellClicked=function(e){this.cellClick.emit({data:this.mapCellEvent(e),component:this,htmlElement:this.ref.nativeElement})},e.prototype.internalGridCellDoubleClicked=function(e){this.cellDbClick.emit({data:this.mapCellEvent(e),component:this,htmlElement:this.ref.nativeElement})},e.prototype.internalGridCellFocused=function(e){this.cellFocuse.emit({data:this.mapCellEvent(e),htmlElement:this.ref.nativeElement,component:this})},e.prototype.internalGridRowClicked=function(e){e.node.group||this.rowClick.emit({data:this.mapRowEvent(e),component:this,htmlElement:this.ref.nativeElement})},e.prototype.internalGridRowDoubleClicked=function(e){e.node.group||this.rowDbClick.emit({data:this.mapRowEvent(e),htmlElement:this.ref.nativeElement,component:this})},e.prototype.differenceOf2Arrays=function(e,t){var n=[];for(var o in e)-1===t.indexOf(e[o])&&n.push(e[o]);for(var o in t)-1===e.indexOf(t[o])&&n.push(t[o]);return n.sort((function(e,t){return e-t}))},e.prototype.rowSelectionChanged=function(e){var t=this;1==e.node.selected?(this.selectRow=this.selectRow.filter((function(n){return n[t.keyField]!=e.data[t.keyField]})),this.selectRow.push(e.data)):this.selectRow=this.selectRow.filter((function(n){return n[t.keyField]!=e.data[t.keyField]})),this.rowSelectionChange.emit({component:this,data:e,htmlElement:this.ref.nativeElement})},e.prototype.internalGridSelectionChanged=function(e){var t={items:[]},n=this.oldSelectionNodes,o=this.gridApi.getSelectedNodes();o.forEach((function(e){t.items.push({rowLevel:e.level,rowIndex:e.rowIndex,data:e.data})})),this.selectionChanged.emit({data:t,component:this,htmlElement:this.ref.nativeElement});var i=o.length>n.length,r=this.differenceOf2Arrays(o,n);this.onRowSelectionChanged.emit({component:this,selected:i,data:r,htmlElement:this.ref.nativeElement}),this.oldSelectionNodes=o},e.prototype.mapCellEvent=function(e){return{rowLevel:0,column:e.column,data:e.data,rowIndex:e.rowIndex,value:e.value}},e.prototype.mapRowEvent=function(e){return{rowLevel:0,data:e.data,rowIndex:e.rowIndex}},e.prototype.deselectAll=function(){this.gridApi.deselectAll()},e.prototype.showLoading=function(){this.gridApi&&this.gridApi.showLoadingOverlay()},e.prototype.hideLoading=function(){this.gridApi&&this.gridApi.hideOverlay()},e.prototype.internalGridSizeChanged=function(e){e.clientWidth>0&&e.clientHeight>0&&this.performSizeColumnsToFit(e.api)},e.prototype.internalGridFirstDataRendered=function(e){this.performSizeColumnsToFit(e.api)},e.prototype.performSizeColumnsToFit=function(e){this.sizeColumnsToFit&&e.sizeColumnsToFit()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},p([t.Input(),c("design:type",Boolean)],e.prototype,"remoteOperation",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"rowMultiSelectWithClick",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"suppressRowClickSelection",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"suppressCellSelection",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"sizeColumnsToFit",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"showCheckBox",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"floatingFilter",void 0),p([t.Input(),c("design:type",String)],e.prototype,"selectionMode",void 0),p([t.Input(),c("design:type",Array)],e.prototype,"selectRow",void 0),p([t.Input(),c("design:type",String)],e.prototype,"rowGroupPanelShow",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"loadOnInit",void 0),p([t.Input(),c("design:type",String)],e.prototype,"keyField",void 0),p([t.Input(),c("design:type",String)],e.prototype,"hasChildField",void 0),p([t.Input(),c("design:type",String),c("design:paramtypes",[String])],e.prototype,"searchText",null),p([t.Input(),c("design:type",Array),c("design:paramtypes",[Array])],e.prototype,"filter",null),p([t.ContentChildren(g),c("design:type",t.QueryList)],e.prototype,"_inlineColumns",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"columnsChange",void 0),p([t.Input(),c("design:type",Array),c("design:paramtypes",[Array])],e.prototype,"columns",null),p([t.Input(),c("design:type",Object)],e.prototype,"rowHeight",void 0),p([t.ContentChild(o.AXToolbarSearchComponent,{static:!0}),c("design:type",o.AXToolbarSearchComponent)],e.prototype,"searchInput",void 0),p([t.ContentChild(o.AXToolbarComponent,{static:!0}),c("design:type",o.AXToolbarComponent)],e.prototype,"toolbar",void 0),p([t.ContentChild(k,{static:!0}),c("design:type",k)],e.prototype,"rowTemplate",void 0),p([t.ContentChild(F,{static:!0}),c("design:type",F)],e.prototype,"gridDetailTemplate",void 0),p([t.ContentChild(o.AXDataSourceComponent,{static:!0}),c("design:type",o.AXDataSourceComponent)],e.prototype,"_contentDataSource",void 0),p([t.Input(),c("design:type",o.AXDataSourceComponent),c("design:paramtypes",[o.AXDataSourceComponent])],e.prototype,"dataSource",null),p([t.Input(),c("design:type",Boolean)],e.prototype,"groupHideOpenParents",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"cellClick",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"cellDbClick",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"cellFocuse",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"rowClick",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"rowDbClick",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"selectionChanged",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"rowSelectionChange",void 0),p([t.Output(),c("design:type",t.EventEmitter)],e.prototype,"onRowSelectionChanged",void 0),p([t.Input(),c("design:type",Function)],e.prototype,"rowClass",void 0),p([t.Input(),c("design:type",Boolean)],e.prototype,"rtl",void 0),e=p([t.Component({selector:"ax-data-grid",template:'<div class="ax-grid-toolbar" *ngIf="toolbar">\r\n <ng-content select="ax-toolbar"></ng-content>\r\n</div>\r\n\x3c!-- [enableSorting]="true" [enableColResize]="true" [enableFilter]="allowFiltering" --\x3e\r\n<ag-grid-angular *ngIf="gridView" class="ag-theme-balham" [getRowClass]="internalGetRowClass"\r\n [style.height]="internalHeight" [columnDefs]="columnDefs" [enableRtl]="rtl" [pagination]="true"\r\n [rowGroupPanelShow]="rowGroupPanelShow" [rowModelType]="rowModelType" [detailRowHeight]="detailRowHeight"\r\n [getRowHeight]="getRowHeight" [paginationAutoPageSize]="paginationAutoPageSize"\r\n [paginationPageSize]="paginationPageSize" [suppressMenuHide]="true" [frameworkComponents]="frameworkComponents"\r\n [isFullWidthCell]="isFullWidthCell" [rowSelection]="selectionMode" [rowMultiSelectWithClick]="rowMultiSelectWithClick"\r\n [fullWidthCellRendererFramework]="fullWidthCellRendererFramework"\r\n [fullWidthCellRendererParams]="fullWidthCellRendererParams" (cellClicked)="internalGridCellClicked($event)"\r\n (cellDoubleClicked)="internalGridCellDoubleClicked($event)" (cellFocused)="internalGridCellFocused($event)"\r\n (rowClicked)="internalGridRowClicked($event)" (selectionChanged)="internalGridSelectionChanged($event)"\r\n (rowSelected)="rowSelectionChanged($event)" (rowDoubleClicked)="internalGridRowDoubleClicked($event)"\r\n (gridReady)="internalGridReady($event)" [groupSelectsChildren]="groupSelectsChildren"\r\n [suppressRowClickSelection]="suppressRowClickSelection" [groupSelectsFiltered]="true"\r\n [suppressCellSelection]="suppressCellSelection" [autoGroupColumnDef]="autoGroupColumnDef"\r\n [suppressAggFuncInHeader]="true" [treeData]="treeData" [animateRows]="true" [isServerSideGroup]="isServerSideGroup"\r\n [getServerSideGroupKey]="getServerSideGroupKey" [masterDetail]="masterDetail"\r\n [detailCellRendererParams]="detailCellRendererParams" [detailCellRenderer]="detailCellRenderer"\r\n (gridSizeChanged)="internalGridSizeChanged($event)" (firstDataRendered)="internalGridFirstDataRendered($event)"\r\n [localeText]="localeText" [groupHideOpenParents]="groupHideOpenParents" [enableRangeSelection]="true"\r\n [enableRangeSelection]="false" [allowContextMenuWithControlKey]="false" [getMainMenuItems]="getMainMenuItems">\r\n</ag-grid-angular>\r\n\r\n\x3c!-- (displayedColumnsChanged)="displayedColumnsChanged($event)" --\x3e',encapsulation:t.ViewEncapsulation.None}),c("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),B=function(){function e(){}return e=p([t.Component({selector:"ax-data-grid-filter",template:"\n <div class='ax-grid-filter-container'>\n <ng-content></ng-content>\n <div class='btn-group' role='group'>\n <button type='button' class='btn btn-primary btn-sm'>\n <i class='fas fa-filter'></i>\n </button>\n <button type='button' class='btn btn-danger btn-sm'>\n <i class='fas fa-trash-alt'></i>\n </button>\n </div>\n </div>\n ",encapsulation:t.ViewEncapsulation.None})],e)}(),V=function(){function e(){}return e=p([t.NgModule({declarations:[M,I,f,S,b,R,C,y,v,D,B,k,F,A,E,h,m,x,w],imports:[r.CommonModule,n.AXCoreModule,a.FormsModule,o.AXTextBoxModule,o.AXCheckBoxModule,o.AXSelectBoxModule,o.AXDataSourceModule,o.AXButtonModule,o.AXDatePickerModule,l.AgGridModule.withComponents([x])],exports:[M,B,k,F,A,E,h,m,I,R,f,b,S,C,y,v,w],entryComponents:[y,v,w,D,k,F,A,E,h,m],providers:[]})],e)}(),N=function(e){function i(t,o){var i=e.call(this)||this;return i.cdr=t,i.ref=o,i.columns=[],i.selectedItems=[],i.keyField="",i.allowNull=!0,i.rtl=n.AXConfig.get("layout.rtl"),i.selectedRows=[],i}return d(i,e),i.prototype.ngOnInit=function(){null==this.rtl&&(this.rtl="rtl"===window.getComputedStyle(this.ref.nativeElement,null).getPropertyValue("direction"))},i.prototype.onDoneClick=function(){this.selectedItems?this.close(this.selectedItems):this.close()},i.prototype.rowDoubleClicked=function(e){var t=this;console.log("s",e.data.data),"single"==this.selectionMode&&(this.selectedItems=[]),this.selectedItems=this.selectedItems.filter((function(n){return n[t.keyField]!=e.data.data[t.keyField]})),this.selectedItems.push(e.data.data),this.onDoneClick()},i.prototype.onCancelClick=function(){this.close()},i.prototype.rowSelectionChange=function(e){var t=this;1==e.data.node.selected?(this.selectedItems=this.selectedItems.filter((function(n){return n[t.keyField]!=e.data.node.data[t.keyField]})),this.selectedItems.push(e.data.node.data)):(1==this.allowNull||0==this.allowNull&&this.selectedItems.length>1)&&(this.selectedItems=this.selectedItems.filter((function(n){return n[t.keyField]!=e.data.node.data[t.keyField]})))},i.prototype.ngAfterViewInit=function(){var e=this;this.selectedItems.forEach((function(t){e.selectedRows.push(t)})),this.searchBox.focus(),this.dataSource.onDataReceived&&this.dataSource.onDataReceived.subscribe((function(t){e.cdr.markForCheck(),e.cdr.detectChanges()}))},i.prototype.getFooterButtons=function(){return[{text:n.AXTranslator.get("common.confirm"),name:"confirm",style:"ax primary",icon:"far fa-check-circle"},{text:n.AXTranslator.get("common.cancel"),name:"cancel",style:"ax light",icon:"far fa-times-circle"}]},i.prototype.onFooterButtonClick=function(e){"confirm"===e.name&&this.onDoneClick(),"cancel"===e.name&&this.onCancelClick()},i.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},p([t.ViewChild("grid",{static:!0}),c("design:type",M)],i.prototype,"grid",void 0),p([t.ViewChild("searchBox"),c("design:type",o.AXToolbarSearchComponent)],i.prototype,"searchBox",void 0),i=p([t.Component({template:'<div style="height: 70vh; padding: 0.5em;">\r\n <div style="height: calc(100%);">\r\n\r\n <ax-data-grid [rtl]="rtl" [suppressRowClickSelection]="false" [keyField]="keyField"\r\n [hasChildField]="hasChildField" [selectRow]="selectedItems" #grid [columns]="columns"\r\n [remoteOperation]="true" [selectionMode]="selectionMode" (rowDbClick)="rowDoubleClicked($event)"\r\n (rowSelectionChange)="rowSelectionChange($event)" [dataSource]="dataSource">\r\n <ax-toolbar>\r\n <ax-toolbar-search #searchBox style="width: 100%;"></ax-toolbar-search>\r\n </ax-toolbar>\r\n <ax-selection-column *ngIf="selectionMode== \'single\'? false : true"></ax-selection-column>\r\n \x3c!-- <ax-data-source [provideData]="dataSource.provideData">\r\n </ax-data-source> --\x3e\r\n </ax-data-grid>\r\n </div>\r\n</div>'}),c("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],i)}(o.AXBasePopupPageComponent),z=function(e){function i(o,i){var r=e.call(this)||this;return r.popup=o,r.ref=i,r.textField="",r.allowSearch=!0,r.valueField="",r.hasChildField="null",r.allowNull=!0,r.popupSize="md",r.selectedItems=[],r.readonly=!1,r.disabled=!1,r.chipsWidth="",r.size="md",r.mode="single",r.onSelectionChange=new t.EventEmitter,r.rtl=n.AXConfig.get("layout.rtl"),r}var r;return d(i,e),r=i,Object.defineProperty(i.prototype,"validation",{get:function(){return this._validation?this._validation:this._contentValidation},set:function(e){this._validation=e},enumerable:!0,configurable:!0}),i.prototype.focus=function(){this.selectBox.focus()},i.prototype.refresh=function(){this.selectBox.refresh()},i.prototype.handleButtonClick=function(){this.open()},i.prototype.ngOnInit=function(){var e=this;null==this.rtl&&(this.rtl="rtl"===window.getComputedStyle(this.ref.nativeElement,null).getPropertyValue("direction")),this.onSelectionChange.subscribe((function(t){e.clearValidationStyle(e.ref.nativeElement)}))},i.prototype.ngAfterContentInit=function(){this.initValidation(this.ref,"selectedItems",this.validation)},i.prototype.handleSelectChange=function(e){this.onSelectionChange.emit({data:this.selectedItems,component:this,htmlElement:this.ref.nativeElement})},i.prototype.open=function(){var e=this;return new Promise((function(t){e.selectBox.dropdown.close(),e.popup.open(N,{size:e.popupSize,data:{dataSource:e.dataSource,selectionMode:e.mode,columns:e.columns.toArray(),selectedItems:e.selectedItems,keyField:e.valueField,allowNull:e.allowNull,hasChildField:e.hasChildField,rtl:e.rtl},title:e.caption}).then((function(n){n.data?(e.selectedItems=[],n.data.forEach((function(t){e.selectedItems.push(t)})),e.onSelectionChange.emit({data:e.selectedItems,component:e,htmlElement:e.ref.nativeElement}),t&&t(n.data)):t&&t(e.selectedItems),e.selectBox.refresh()}))}))},i.ctorParameters=function(){return[{type:o.AXPopupService},{type:t.ElementRef}]},p([t.ContentChild(o.AXValidation,{static:!0}),c("design:type",o.AXValidation)],i.prototype,"_contentValidation",void 0),p([t.Input(),c("design:type",o.AXValidation),c("design:paramtypes",[o.AXValidation])],i.prototype,"validation",null),p([t.ViewChild("selectBox",{static:!0}),c("design:type",o.AXSelectBoxComponent)],i.prototype,"selectBox",void 0),p([t.ContentChild(o.AXDataSourceComponent,{static:!0}),c("design:type",o.AXDataSourceComponent)],i.prototype,"dataSource",void 0),p([t.ContentChildren(g),c("design:type",t.QueryList)],i.prototype,"columns",void 0),p([t.ContentChild("itemTemplate",{static:!0}),c("design:type",t.TemplateRef)],i.prototype,"rowTemplate",void 0),p([t.Input(),c("design:type",String)],i.prototype,"textField",void 0),p([t.Input(),c("design:type",Boolean)],i.prototype,"allowSearch",void 0),p([t.Input(),c("design:type",String)],i.prototype,"valueField",void 0),p([t.Input(),c("design:type",String)],i.prototype,"hasChildField",void 0),p([t.Input(),c("design:type",Boolean)],i.prototype,"allowNull",void 0),p([t.Input(),c("design:type",String)],i.prototype,"popupSize",void 0),p([t.Input(),c("design:type",Array)],i.prototype,"selectedItems",void 0),p([t.Input(),c("design:type",Boolean)],i.prototype,"readonly",void 0),p([t.Input(),c("design:type",Boolean)],i.prototype,"disabled",void 0),p([t.Input(),c("design:type",String)],i.prototype,"chipsWidth",void 0),p([t.Input(),c("design:type",String)],i.prototype,"size",void 0),p([t.Input(),c("design:type",String)],i.prototype,"caption",void 0),p([t.Input(),c("design:type",String)],i.prototype,"mode",void 0),p([t.Input(),c("design:type",String)],i.prototype,"placeholder",void 0),p([t.Output(),c("design:type",t.EventEmitter)],i.prototype,"onSelectionChange",void 0),p([t.Input(),c("design:type",Boolean)],i.prototype,"rtl",void 0),i=r=p([t.Component({selector:"ax-lov",template:'<ax-select-box [rowInputTemplate]="rowTemplate" [rtl]="rtl" [allowSearch]="allowSearch" #selectBox [showDropDownButton]="false" [allowNull]="allowNull"\r\n [remoteOperation]="true" [placeholder]="placeholder" [size]="size" [textField]="textField" [valueField]="valueField"\r\n [disabled]="disabled" [mode]="mode" [(selectedItems)]="selectedItems"\r\n (selectionChanged)="handleSelectChange($event)" [dataSource]="dataSource">\r\n <ng-container start>\r\n <ng-content select="[start]">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon="far fa-bars icon" [disabled]="disabled" type="light blank" (click)="handleButtonClick()" end\r\n [tabIndex]="-1">\r\n </ax-button>\r\n <ng-content select="[end]">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box>\r\n\r\n\r\n\x3c!-- <ax-select-box2 [rtl]="rtl" [allowSearch]="allowSearch" #selectBox [showDropDownButton]="false" [allowNull]="allowNull"\r\n [remoteOperation]="true" [placeholder]="placeholder" [size]="size" [textField]="textField" [valueField]="valueField"\r\n [disabled]="disabled" [selectionMode]="mode" (onValueChanged)="handleSelectChange($event)" [dataSource]="dataSource"\r\n [(value)]="selectedItems" selectionDataMode="item">\r\n <ng-container start>\r\n <ng-content select="[start]">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button icon="far fa-bars icon" [disabled]="disabled" type="primary blank" (click)="handleButtonClick()" end\r\n [tabIndex]="-1">\r\n </ax-button>\r\n <ng-content select="[end]">\r\n </ng-content>\r\n </ng-container>\r\n</ax-select-box2> --\x3e\r\n\r\n\r\n\x3c!-- <div class="ax-lov-box" [style.display]="mode==\'hidden\' ? \'none\':\'unset\'">\r\n <div class="ax-field-set">\r\n <div class="ax-field-set-wrapper" [ngClass]="{ \'no-label\': !label }">\r\n <fieldset [ngClass]="{ \'input-focused\': isFocused, \'input-error\': errorText }">\r\n <legend *ngIf="label">\r\n {{ label }}\r\n </legend>\r\n </fieldset>\r\n <input type="text" [(ngModel)]="text" [placeholder]="placeholder" (keyup)="handleKeyEvent($event)"\r\n (blur)="handleBlurEvent($event)" (focus)="handleFocusEvent($event)" class="ax-text-box" disabled />\r\n <div class="ax-field-set-button">\r\n <button *ngIf="text && allowClear" type="button" class="btn btn-light" (click)="clearText()">\r\n <i class="far fa-times"></i>\r\n </button>\r\n <button type="button" class=" btn btn-primary" (click)="handleButtonClick($event)">\r\n <i class="far fa-check-circle"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="validation-text" *ngIf="errorText">\r\n {{ errorText }}\r\n </div>\r\n\r\n</div> --\x3e',encapsulation:t.ViewEncapsulation.None,host:{style:"width: 100%"},providers:[{provide:o.AXValidatableComponent,useExisting:r}]}),c("design:paramtypes",[o.AXPopupService,t.ElementRef])],i)}(o.AXValidatableComponent),_=function(){function e(){}return e=p([t.NgModule({declarations:[z,N],imports:[r.CommonModule,a.FormsModule,V,o.AXDataSourceModule,o.AXButtonModule,o.AXToolbarModule,o.AXSelectBoxModule,o.AXSearchBoxModule],exports:[z,N],providers:[],entryComponents:[N]})],e)}();e.AXDaagridRowClickEvent=O,e.AXDataGridCellEvent=G,e.AXDataGridCellTemplateComponent=h,e.AXDataGridCellTemplateRenderer=m,e.AXDataGridColumnsChangeEvent=T,e.AXDataGridComponent=M,e.AXDataGridDetailTemplateComponent=F,e.AXDataGridDetailTemplateRenderer=E,e.AXDataGridFilterComponent=B,e.AXDataGridModule=V,e.AXDataGridRowSelectionChangeEvent=P,e.AXDataGridRowTemplateComponent=k,e.AXDataGridRowTemplateRenderer=A,e.AXDataGridSelectionChangeEvent=X,e.AXDataLovPopupComponent=N,e.AXDatePickerFilterComponent=x,e.AXGridCheckColumn=f,e.AXGridCommandColumn=C,e.AXGridDataColumn=g,e.AXGridDateColumn=b,e.AXGridRowNumberColumn=R,e.AXGridSelectionColumn=S,e.AXGridTextColumn=I,e.AXLOVComponent=z,e.AXLOVModule=_,e.BooleanFilterRenderer=v,e.BooleanRenderer=y,e.CommandRenderer=w,e.TextFilterRenderer=D,Object.defineProperty(e,"__esModule",{value:!0})}));
|
16
16
|
//# sourceMappingURL=acorex-data-grid.umd.min.js.map
|