UNPKG

@syncfusion/ej2-vue-grids

Version:

Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel. for Vue

12 lines (11 loc) 25 kB
/*! * filename: ej2-vue-grids.umd.min.js * version : 33.1.49 * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-grids"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-grids","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t((e=e||self).ej={},e.ej2Grids,e.ej2VueBase,e.ej2Base)}(this,function(t,n,i,r){"use strict";var s=i.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!i.isExecute)return t=null,(i.isExecute?e:i.gh)("div",{class:"e-directive"},t=r.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!i.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-stacked-columns"}}}),o={name:"e-stacked-columns",install:function(e){e.component(o.name,s)}},a=i.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-stacked-column"}}}),c={name:"e-stacked-column",install:function(e){e.component(c.name,a)}},u=i.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!i.isExecute)return t=null,(i.isExecute?e:i.gh)("div",{class:"e-directive"},t=r.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!i.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-columns"}}}),l={name:"e-columns",install:function(e){e.component(l.name,u)}},d=i.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-column"}}}),h={name:"e-column",install:function(e){e.component(h.name,d)}},g=i.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!i.isExecute)return t=null,(i.isExecute?e:i.gh)("div",{class:"e-directive"},t=r.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!i.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-columns"}}}),m={name:"e-columns",install:function(e){e.component(m.name,g)}},f=i.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-column"}}}),p={name:"e-column",install:function(e){e.component(p.name,f)}},I=i.vueDefineComponent({inject:{custom:{default:null}},render:function(e){var t;if(!i.isExecute)return t=null,(i.isExecute?e:i.gh)("div",{class:"e-directive"},t=r.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},updated:function(){!i.isExecute&&this.custom&&this.custom()},methods:{getTag:function(){return"e-aggregates"}}}),j={name:"e-aggregates",install:function(e){e.component(j.name,I)}},C=i.vueDefineComponent({render:function(){},methods:{getTag:function(){return"e-aggregate"}}}),y={name:"e-aggregate",install:function(e){e.component(y.name,C)}},e=["isLazyUpdate","plugins","adaptiveUIMode","aggregates","allowExcelExport","allowFiltering","allowGrouping","allowKeyboard","allowMultiSorting","allowPaging","allowPdfExport","allowReordering","allowResizing","allowRowDragAndDrop","allowSelection","allowSorting","allowTextWrap","autoFit","childGrid","clipMode","columnChooserSettings","columnMenuItems","columnQueryMode","columns","contextMenuItems","cssClass","currencyCode","currentAction","currentViewData","dataSource","detailTemplate","editSettings","ej2StatePersistenceVersion","emptyRecordTemplate","enableAdaptiveUI","enableAltRow","enableAutoFill","enableColumnSpan","enableColumnVirtualization","enableHeaderFocus","enableHover","enableHtmlSanitizer","enableImmutableMode","enableInfiniteScrolling","enablePersistence","enableRowSpan","enableRtl","enableStickyHeader","enableVirtualMaskRow","enableVirtualization","exportGrids","filterSettings","frozenColumns","frozenRows","gridLines","groupSettings","height","hierarchyPrintMode","infiniteScrollSettings","isRowPinned","isRowSelectable","loadingIndicator","locale","pageSettings","pagerTemplate","parentDetails","printMode","query","queryString","resizeSettings","rowDropSettings","rowHeight","rowRenderingMode","rowTemplate","searchSettings","selectedRowIndex","selectionSettings","showColumnChooser","showColumnMenu","showHider","sortSettings","textWrapSettings","toolbar","toolbarTemplate","width","actionBegin","actionComplete","actionFailure","batchAdd","batchCancel","batchDelete","beforeAutoFill","beforeBatchAdd","beforeBatchDelete","beforeBatchSave","beforeCopy","beforeCustomFilterOpen","beforeDataBound","beforeDetailTemplateDetach","beforeExcelExport","beforeOpenAdaptiveDialog","beforeOpenColumnChooser","beforePaste","beforePdfExport","beforePrint","beginEdit","cellDeselected","cellDeselecting","cellEdit","cellSave","cellSaved","cellSelected","cellSelecting","checkBoxChange","columnDataStateChange","columnDeselected","columnDeselecting","columnDrag","columnDragStart","columnDrop","columnMenuClick","columnMenuClose","columnMenuOpen","columnSelected","columnSelecting","commandClick","contextMenuClick","contextMenuClose","contextMenuOpen","created","dataBound","dataSourceChanged","dataStateChange","destroyed","detailCollapse","detailDataBound","detailExpand","excelAggregateQueryCellInfo","excelExportComplete","excelHeaderQueryCellInfo","excelQueryCellInfo","exportDetailDataBound","exportDetailTemplate","exportGroupCaption","headerCellInfo","keyPressed","lazyLoadGroupCollapse","lazyLoadGroupExpand","load","pdfAggregateQueryCellInfo","pdfExportComplete","pdfHeaderQueryCellInfo","pdfQueryCellInfo","printComplete","queryCellInfo","recordClick","recordDoubleClick","resizeStart","resizeStop","resizing","rowDataBound","rowDeselected","rowDeselecting","rowDrag","rowDragStart","rowDragStartHelper","rowDrop","rowSelected","rowSelecting","toolbarClick"],w=["dataSource"],x=i.getProps({props:e}),R=x[0],x=x[1],v=Object.keys(x);v.push("modelchanged","update:modelValue");for(var b=0,S=w;b<S.length;b++)v.push("update:"+S[b]);var D=i.vueDefineComponent({name:"GridComponent",mixins:[i.ComponentBase],props:R,watch:x,emits:v,model:{event:"modelchanged"},provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.Grid({}),propKeys:e,models:w,hasChildDirective:!0,hasInjectedModules:!0,tagMapper:{"e-columns":{"e-column":{"e-stacked-columns":"e-stacked-column"}},"e-aggregates":{"e-aggregate":{"e-columns":"e-column"}}},tagNameMapper:{"e-stacked-columns":"e-columns"},isVue3:!i.isExecute,templateCollection:{}}},created:function(){this.ej2Instances._trigger=this.ej2Instances.trigger,this.ej2Instances.trigger=this.trigger,this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=null;return(i.isExecute?e:i.gh)("div",t=r.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var s=n[t],o=this.templateCollection[s];if(o&&o.length){for(var i=0,r=o;i<r.length;i++){var a=r[i];this.destroyPortals(a)}delete this.templateCollection[s]}}},setProperties:function(n,e){var s=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){s.models.map(function(e){t!==e||/datasource/i.test(t)||(s.isVue3?s.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(s.$emit("update:"+t,n[t]),s.$emit("modelchanged",n[t])))})})},trigger:function(e,t,n){var s,o;i.isExecute||(this.models=this.models||this.ej2Instances.referModels),"change"!==e&&"input"!==e||!this.models||0===this.models.length?"actionBegin"===e&&"dateNavigate"===t.requestType&&this.models&&0!==this.models.length&&(o=(s=this.models.toString().match(/currentView|selectedDate/)||[])[0],t)&&s&&!r.isUndefined(t[o])&&(i.isExecute?(this.$emit("update:"+o,t[o]),this):(this.ej2Instances.vueInstance.$emit("update:"+o,t[o]),this.ej2Instances.vueInstance)).$emit("modelchanged",t[o]):(o=(s=this.models.toString().match(/checked|value/)||[])[0],t&&s&&!r.isUndefined(t[o])&&(i.isExecute?("change"===e||this.$props&&!this.$props.isLazyUpdate)&&(this.$emit("update:"+o,t[o]),this.$emit("modelchanged",t[o])):(this.ej2Instances.vueInstance.$emit("update:"+o,t[o]),this.ej2Instances.vueInstance.$emit("modelchanged",t[o]),this.ej2Instances.vueInstance.$emit("update:modelValue",t[o])))),this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t,n)},custom:function(){this.updated()},addRecord:function(e,t){return this.ej2Instances.addRecord(e,t)},addRecordAsync:function(e,t){return this.ej2Instances.addRecordAsync(e,t)},addShimmerEffect:function(){return this.ej2Instances.addShimmerEffect()},autoFitColumns:function(e,t,n){return this.ej2Instances.autoFitColumns(e,t,n)},batchAsyncUpdate:function(e){return this.ej2Instances.batchAsyncUpdate(e)},batchUpdate:function(e){return this.ej2Instances.batchUpdate(e)},calculatePageSizeByParentHeight:function(e){return this.ej2Instances.calculatePageSizeByParentHeight(e)},changeDataSource:function(e,t,n){return this.ej2Instances.changeDataSource(e,t,n)},clearCellSelection:function(){return this.ej2Instances.clearCellSelection()},clearFiltering:function(e){return this.ej2Instances.clearFiltering(e)},clearFilteringAsync:function(e){return this.ej2Instances.clearFilteringAsync(e)},clearGrouping:function(){return this.ej2Instances.clearGrouping()},clearGroupingAsync:function(){return this.ej2Instances.clearGroupingAsync()},clearRowSelection:function(){return this.ej2Instances.clearRowSelection()},clearSelection:function(){return this.ej2Instances.clearSelection()},clearSorting:function(){return this.ej2Instances.clearSorting()},clearSortingAsync:function(){return this.ej2Instances.clearSortingAsync()},closeEdit:function(){return this.ej2Instances.closeEdit()},copy:function(e){return this.ej2Instances.copy(e)},csvExport:function(e,t,n,s){return this.ej2Instances.csvExport(e,t,n,s)},dataReady:function(){return this.ej2Instances.dataReady()},deleteRecord:function(e,t){return this.ej2Instances.deleteRecord(e,t)},deleteRecordAsync:function(e,t){return this.ej2Instances.deleteRecordAsync(e,t)},deleteRow:function(e){return this.ej2Instances.deleteRow(e)},deleteRowAsync:function(e){return this.ej2Instances.deleteRowAsync(e)},destroy:function(){return this.ej2Instances.destroy()},destroyTemplate:function(e,t,n){return this.ej2Instances.destroyTemplate(e,t,n)},detailCollapseAll:function(){return this.ej2Instances.detailCollapseAll()},detailExpandAll:function(){return this.ej2Instances.detailExpandAll()},editCell:function(e,t){return this.ej2Instances.editCell(e,t)},enableToolbarItems:function(e,t){return this.ej2Instances.enableToolbarItems(e,t)},endEdit:function(){return this.ej2Instances.endEdit()},endEditAsync:function(){return this.ej2Instances.endEditAsync()},excelExport:function(e,t,n,s){return this.ej2Instances.excelExport(e,t,n,s)},extendRequiredModules:function(e){return this.ej2Instances.extendRequiredModules(e)},filterByColumn:function(e,t,n,s,o,i,r,a){return this.ej2Instances.filterByColumn(e,t,n,s,o,i,r,a)},filterByColumnAsync:function(e,t,n,s,o,i,r,a){return this.ej2Instances.filterByColumnAsync(e,t,n,s,o,i,r,a)},freezeRefresh:function(){return this.ej2Instances.freezeRefresh()},getBatchChanges:function(){return this.ej2Instances.getBatchChanges()},getCellFromIndex:function(e,t){return this.ej2Instances.getCellFromIndex(e,t)},getColumnByField:function(e){return this.ej2Instances.getColumnByField(e)},getColumnByUid:function(e,t){return this.ej2Instances.getColumnByUid(e,t)},getColumnFieldNames:function(){return this.ej2Instances.getColumnFieldNames()},getColumnHeaderByField:function(e){return this.ej2Instances.getColumnHeaderByField(e)},getColumnHeaderByIndex:function(e){return this.ej2Instances.getColumnHeaderByIndex(e)},getColumnHeaderByUid:function(e){return this.ej2Instances.getColumnHeaderByUid(e)},getColumnIndexByField:function(e){return this.ej2Instances.getColumnIndexByField(e)},getColumnIndexByUid:function(e){return this.ej2Instances.getColumnIndexByUid(e)},getColumns:function(e){return this.ej2Instances.getColumns(e)},getContent:function(){return this.ej2Instances.getContent()},getContentTable:function(){return this.ej2Instances.getContentTable()},getCurrentViewRecords:function(){return this.ej2Instances.getCurrentViewRecords()},getDataModule:function(){return this.ej2Instances.getDataModule()},getDataRows:function(){return this.ej2Instances.getDataRows()},getFilterUIInfo:function(){return this.ej2Instances.getFilterUIInfo()},getFilteredRecords:function(){return this.ej2Instances.getFilteredRecords()},getFooterContent:function(){return this.ej2Instances.getFooterContent()},getFooterContentTable:function(){return this.ej2Instances.getFooterContentTable()},getForeignKeyColumns:function(){return this.ej2Instances.getForeignKeyColumns()},getFrozenDataRows:function(){return this.ej2Instances.getFrozenDataRows()},getFrozenLeftColumnHeaderByIndex:function(e){return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(e)},getFrozenLeftCount:function(){return this.ej2Instances.getFrozenLeftCount()},getFrozenMode:function(){return this.ej2Instances.getFrozenMode()},getFrozenRightCellFromIndex:function(e,t){return this.ej2Instances.getFrozenRightCellFromIndex(e,t)},getFrozenRightColumnHeaderByIndex:function(e){return this.ej2Instances.getFrozenRightColumnHeaderByIndex(e)},getFrozenRightDataRows:function(){return this.ej2Instances.getFrozenRightDataRows()},getFrozenRightRowByIndex:function(e){return this.ej2Instances.getFrozenRightRowByIndex(e)},getFrozenRightRows:function(){return this.ej2Instances.getFrozenRightRows()},getFrozenRowByIndex:function(e){return this.ej2Instances.getFrozenRowByIndex(e)},getHeaderContent:function(){return this.ej2Instances.getHeaderContent()},getHeaderTable:function(){return this.ej2Instances.getHeaderTable()},getHiddenColumns:function(){return this.ej2Instances.getHiddenColumns()},getMediaColumns:function(){return this.ej2Instances.getMediaColumns()},getMovableCellFromIndex:function(e,t){return this.ej2Instances.getMovableCellFromIndex(e,t)},getMovableColumnHeaderByIndex:function(e){return this.ej2Instances.getMovableColumnHeaderByIndex(e)},getMovableDataRows:function(){return this.ej2Instances.getMovableDataRows()},getMovableRowByIndex:function(e){return this.ej2Instances.getMovableRowByIndex(e)},getMovableRows:function(){return this.ej2Instances.getMovableRows()},getPager:function(){return this.ej2Instances.getPager()},getPersistColumns:function(){return this.ej2Instances.getPersistColumns()},getPrimaryKeyFieldNames:function(){return this.ej2Instances.getPrimaryKeyFieldNames()},getRowByIndex:function(e){return this.ej2Instances.getRowByIndex(e)},getRowIndexByPrimaryKey:function(e){return this.ej2Instances.getRowIndexByPrimaryKey(e)},getRowInfo:function(e){return this.ej2Instances.getRowInfo(e)},getRows:function(){return this.ej2Instances.getRows()},getRowsObject:function(){return this.ej2Instances.getRowsObject()},getSelectedColumnsUid:function(){return this.ej2Instances.getSelectedColumnsUid()},getSelectedRecords:function(){return this.ej2Instances.getSelectedRecords()},getSelectedRowCellIndexes:function(){return this.ej2Instances.getSelectedRowCellIndexes()},getSelectedRowIndexes:function(){return this.ej2Instances.getSelectedRowIndexes()},getSelectedRows:function(){return this.ej2Instances.getSelectedRows()},getSummaryValues:function(e,t){return this.ej2Instances.getSummaryValues(e,t)},getUidByColumnField:function(e){return this.ej2Instances.getUidByColumnField(e)},getVisibleColumns:function(){return this.ej2Instances.getVisibleColumns()},goToPage:function(e){return this.ej2Instances.goToPage(e)},goToPageAsync:function(e){return this.ej2Instances.goToPageAsync(e)},groupCollapseAll:function(){return this.ej2Instances.groupCollapseAll()},groupColumn:function(e){return this.ej2Instances.groupColumn(e)},groupColumnAsync:function(e){return this.ej2Instances.groupColumnAsync(e)},groupExpandAll:function(){return this.ej2Instances.groupExpandAll()},hideColumns:function(e,t){return this.ej2Instances.hideColumns(e,t)},hideScroll:function(){return this.ej2Instances.hideScroll()},hideSpinner:function(){return this.ej2Instances.hideSpinner()},isFrozenGrid:function(){return this.ej2Instances.isFrozenGrid()},openColumnChooser:function(e,t){return this.ej2Instances.openColumnChooser(e,t)},pdfExport:function(e,t,n,s){return this.ej2Instances.pdfExport(e,t,n,s)},pinRows:function(e){return this.ej2Instances.pinRows(e)},print:function(){return this.ej2Instances.print()},refresh:function(){return this.ej2Instances.refresh()},refreshColumns:function(){return this.ej2Instances.refreshColumns()},refreshHeader:function(){return this.ej2Instances.refreshHeader()},removeMaskRow:function(){return this.ej2Instances.removeMaskRow()},reorderColumnByIndex:function(e,t){return this.ej2Instances.reorderColumnByIndex(e,t)},reorderColumnByModel:function(e,t){return this.ej2Instances.reorderColumnByModel(e,t)},reorderColumnByTargetIndex:function(e,t){return this.ej2Instances.reorderColumnByTargetIndex(e,t)},reorderColumns:function(e,t){return this.ej2Instances.reorderColumns(e,t)},reorderRows:function(e,t){return this.ej2Instances.reorderRows(e,t)},saveCell:function(){return this.ej2Instances.saveCell()},search:function(e){return this.ej2Instances.search(e)},searchAsync:function(e){return this.ej2Instances.searchAsync(e)},selectCell:function(e,t){return this.ej2Instances.selectCell(e,t)},selectCells:function(e){return this.ej2Instances.selectCells(e)},selectCellsByRange:function(e,t){return this.ej2Instances.selectCellsByRange(e,t)},selectRow:function(e,t){return this.ej2Instances.selectRow(e,t)},selectRows:function(e){return this.ej2Instances.selectRows(e)},selectRowsByRange:function(e,t){return this.ej2Instances.selectRowsByRange(e,t)},serverCsvExport:function(e,t){return this.ej2Instances.serverCsvExport(e,t)},serverExcelExport:function(e,t){return this.ej2Instances.serverExcelExport(e,t)},serverPdfExport:function(e,t){return this.ej2Instances.serverPdfExport(e,t)},setCellValue:function(e,t,n){return this.ej2Instances.setCellValue(e,t,n)},setCellValueAsync:function(e,t,n,s){return this.ej2Instances.setCellValueAsync(e,t,n,s)},setColumns:function(e){return this.ej2Instances.setColumns(e)},setGridContent:function(e){return this.ej2Instances.setGridContent(e)},setGridContentTable:function(e){return this.ej2Instances.setGridContentTable(e)},setGridHeaderContent:function(e){return this.ej2Instances.setGridHeaderContent(e)},setGridHeaderTable:function(e){return this.ej2Instances.setGridHeaderTable(e)},setGridPager:function(e){return this.ej2Instances.setGridPager(e)},setRowData:function(e,t){return this.ej2Instances.setRowData(e,t)},setRowDataAsync:function(e,t,n){return this.ej2Instances.setRowDataAsync(e,t,n)},showAdaptiveFilterDialog:function(){return this.ej2Instances.showAdaptiveFilterDialog()},showAdaptiveSortDialog:function(){return this.ej2Instances.showAdaptiveSortDialog()},showColumns:function(e,t){return this.ej2Instances.showColumns(e,t)},showMaskRow:function(e,t){return this.ej2Instances.showMaskRow(e,t)},showSpinner:function(){return this.ej2Instances.showSpinner()},sortColumn:function(e,t,n){return this.ej2Instances.sortColumn(e,t,n)},sortColumnAsync:function(e,t,n){return this.ej2Instances.sortColumnAsync(e,t,n)},startEdit:function(){return this.ej2Instances.startEdit()},ungroupColumn:function(e){return this.ej2Instances.ungroupColumn(e)},ungroupColumnAsync:function(e){return this.ej2Instances.ungroupColumnAsync(e)},unpinRows:function(e){return this.ej2Instances.unpinRows(e)},updateCell:function(e,t,n){return this.ej2Instances.updateCell(e,t,n)},updateExternalMessage:function(e){return this.ej2Instances.updateExternalMessage(e)},updateRow:function(e,t){return this.ej2Instances.updateRow(e,t)},updateRowAsync:function(e,t){return this.ej2Instances.updateRowAsync(e,t)},updateRowValue:function(e,t){return this.ej2Instances.updateRowValue(e,t)}}}),E={name:"ejs-grid",install:function(e){e.component(E.name,D),e.component(h.name,d),e.component(l.name,u),e.component(c.name,a),e.component(o.name,s),e.component(y.name,C),e.component(j.name,I),e.component(p.name,f),e.component(m.name,g)}},P=["isLazyUpdate","plugins","cssClass","currentPage","customText","enableExternalMessage","enablePagerMessage","enablePersistence","enableQueryString","enableRtl","externalMessage","locale","pageCount","pageSize","pageSizes","template","totalRecordsCount","click","created","dropDownChanged"],B=["currentPage","pageSize","pageCount","pageSizes"],R=i.getProps({props:P}),x=R[0],R=R[1],A=Object.keys(R);A.push("modelchanged","update:modelValue");for(var F=0,M=B;F<M.length;F++)A.push("update:"+M[F]);var T=i.vueDefineComponent({name:"PagerComponent",mixins:[i.ComponentBase],props:x,watch:R,emits:A,model:{event:"modelchanged"},provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new n.Pager({}),propKeys:P,models:B,hasChildDirective:!1,hasInjectedModules:!1,tagMapper:{},tagNameMapper:{},isVue3:!i.isExecute,templateCollection:{}}},created:function(){this.ej2Instances._trigger=this.ej2Instances.trigger,this.ej2Instances.trigger=this.trigger,this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=null;return(i.isExecute?e:i.gh)("div",t=r.isNullOrUndefined(this.$slots.default)?t:i.isExecute?this.$slots.default:this.$slots.default())},methods:{clearTemplate:function(e){if((e=e||Object.keys(this.templateCollection||{})).length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var s=n[t],o=this.templateCollection[s];if(o&&o.length){for(var i=0,r=o;i<r.length;i++){var a=r[i];this.destroyPortals(a)}delete this.templateCollection[s]}}},setProperties:function(n,e){var s=this;this.isVue3&&(this.models=this.models||this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(n,e),n&&this.models&&this.models.length&&Object.keys(n).map(function(t){s.models.map(function(e){t!==e||/datasource/i.test(t)||(s.isVue3?s.ej2Instances.vueInstance.$emit("update:"+t,n[t]):(s.$emit("update:"+t,n[t]),s.$emit("modelchanged",n[t])))})})},trigger:function(e,t,n){var s,o;i.isExecute||(this.models=this.models||this.ej2Instances.referModels),"change"!==e&&"input"!==e||!this.models||0===this.models.length?"actionBegin"===e&&"dateNavigate"===t.requestType&&this.models&&0!==this.models.length&&(o=(s=this.models.toString().match(/currentView|selectedDate/)||[])[0],t)&&s&&!r.isUndefined(t[o])&&(i.isExecute?(this.$emit("update:"+o,t[o]),this):(this.ej2Instances.vueInstance.$emit("update:"+o,t[o]),this.ej2Instances.vueInstance)).$emit("modelchanged",t[o]):(o=(s=this.models.toString().match(/checked|value/)||[])[0],t&&s&&!r.isUndefined(t[o])&&(i.isExecute?("change"===e||this.$props&&!this.$props.isLazyUpdate)&&(this.$emit("update:"+o,t[o]),this.$emit("modelchanged",t[o])):(this.ej2Instances.vueInstance.$emit("update:"+o,t[o]),this.ej2Instances.vueInstance.$emit("modelchanged",t[o]),this.ej2Instances.vueInstance.$emit("update:modelValue",t[o])))),this.ej2Instances&&this.ej2Instances._trigger&&this.ej2Instances._trigger(e,t,n)},custom:function(){this.updated()},destroy:function(){return this.ej2Instances.destroy()},destroyTemplate:function(e,t){return this.ej2Instances.destroyTemplate(e,t)},getLocalizedLabel:function(e){return this.ej2Instances.getLocalizedLabel(e)},goToPage:function(e){return this.ej2Instances.goToPage(e)},refresh:function(){return this.ej2Instances.refresh()}}}),z={name:"ejs-pager",install:function(e){e.component(z.name,T)}};Object.keys(n).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})}),t.AggregateColumnDirective=f,t.AggregateColumnPlugin=p,t.AggregateColumnsDirective=g,t.AggregateColumnsPlugin=m,t.AggregateDirective=C,t.AggregatePlugin=y,t.AggregatesDirective=I,t.AggregatesPlugin=j,t.ColumnDirective=d,t.ColumnPlugin=h,t.ColumnsDirective=u,t.ColumnsPlugin=l,t.GridComponent=D,t.GridPlugin=E,t.PagerComponent=T,t.PagerPlugin=z,t.StackedColumnDirective=a,t.StackedColumnPlugin=c,t.StackedColumnsDirective=s,t.StackedColumnsPlugin=o,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=ej2-vue-grids.umd.min.js.map