dfs-page-config 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dfs-page-config.js
CHANGED
|
@@ -99485,14 +99485,14 @@ const bse = rt({
|
|
|
99485
99485
|
function T(ae) {
|
|
99486
99486
|
ae.forEach((Y) => {
|
|
99487
99487
|
var ve;
|
|
99488
|
-
if (Y.rowGroup
|
|
99488
|
+
if (Y.rowGroup && (x.configFlag.autoGroupColumnDef = {
|
|
99489
99489
|
headerName: " ",
|
|
99490
99490
|
width: 70,
|
|
99491
99491
|
minWidth: 70,
|
|
99492
99492
|
resizable: !1,
|
|
99493
99493
|
lockPosition: !0,
|
|
99494
99494
|
pinned: "left"
|
|
99495
|
-
}, x.configFlag.groupSelectsChildren = !0)
|
|
99495
|
+
}, x.configFlag.groupSelectsChildren = !0), Y.headerTip && (Y.headerComponentFramework = "HeaderTip", Y.headerComponentParams = {
|
|
99496
99496
|
text: Y.headerTip
|
|
99497
99497
|
}), Y.cellRendererParams && Y.cellRendererParams.url) {
|
|
99498
99498
|
Y.cellRendererFramework = "CellItemEdit";
|
|
@@ -1985,7 +1985,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1985
1985
|
</div>`,Ci([s.Optional("rangeService")],t.prototype,"rangeService",void 0),Ci([s.Autowired("valueService")],t.prototype,"valueService",void 0),Ci([s.Autowired("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Ci([s.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),Ci([s.Autowired("gridOptions")],t.prototype,"gridOptions",void 0),Ci([s.Autowired("gridApi")],t.prototype,"gridApi",void 0),Ci([s.Autowired("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Ci([s.Autowired("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Ci([s.RefSelector("sumAggregationComp")],t.prototype,"sumAggregationComp",void 0),Ci([s.RefSelector("countAggregationComp")],t.prototype,"countAggregationComp",void 0),Ci([s.RefSelector("minAggregationComp")],t.prototype,"minAggregationComp",void 0),Ci([s.RefSelector("maxAggregationComp")],t.prototype,"maxAggregationComp",void 0),Ci([s.RefSelector("avgAggregationComp")],t.prototype,"avgAggregationComp",void 0),Ci([s.PostConstruct],t.prototype,"postConstruct",null),t}(s.Component),Sae={moduleName:s.ModuleNames.StatusBarModule,beans:[uae],agStackComponents:[{componentName:"AgStatusBar",componentClass:pae},{componentName:"AgNameValue",componentClass:qv}],userComponents:[{componentName:"agAggregationComponent",componentClass:_ae},{componentName:"agSelectedRowCountComponent",componentClass:wae},{componentName:"agTotalRowCountComponent",componentClass:yae},{componentName:"agFilteredRowCountComponent",componentClass:mae},{componentName:"agTotalAndFilteredRowCountComponent",componentClass:hae}],dependantModules:[L]},Eae=function(){var p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var l in a)a.hasOwnProperty(l)&&(o[l]=a[l])},p(t,e)};return function(t,e){p(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Yp=function(p,t,e,o){var a=arguments.length,l=a<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(p,t,e,o);else for(var y=p.length-1;y>=0;y--)(g=p[y])&&(l=(a<3?g(l):a>3?g(t,e,l):g(t,e))||l);return a>3&&l&&Object.defineProperty(t,e,l),l},xae=function(p){Eae(t,p);function t(){var e=p!==null&&p.apply(this,arguments)||this;return e.firstRow=-1,e.lastRow=-1,e.rowCount=-1,e.rowNodesByIndex={},e}return t.prototype.ensureRowHeightsValid=function(e,o,a,l){return!1},t.prototype.init=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addManagedListener(this.eventService,s.Events.EVENT_VIEWPORT_CHANGED,this.onViewportChanged.bind(this))},t.prototype.start=function(){this.gridOptionsWrapper.getViewportDatasource()&&this.setViewportDatasource(this.gridOptionsWrapper.getViewportDatasource())},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.destroyDatasource=function(){this.viewportDatasource&&(this.viewportDatasource.destroy&&this.viewportDatasource.destroy(),this.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)},t.prototype.calculateFirstRow=function(e){var o=this.gridOptionsWrapper.getViewportRowModelBufferSize(),a=this.gridOptionsWrapper.getViewportRowModelPageSize(),l=e-o;return l<0?0:Math.floor(l/a)*a},t.prototype.calculateLastRow=function(e){if(e===-1)return e;var o=this.gridOptionsWrapper.getViewportRowModelBufferSize(),a=this.gridOptionsWrapper.getViewportRowModelPageSize(),l=e+o,g=Math.ceil(l/a)*a,y=this.rowCount-1;return Math.min(g,y)},t.prototype.onViewportChanged=function(e){var o=this.calculateFirstRow(e.firstRow),a=this.calculateLastRow(e.lastRow);(this.firstRow!==o||this.lastRow!==a)&&(this.firstRow=o,this.lastRow=a,this.purgeRowsNotInViewport(),this.viewportDatasource&&this.viewportDatasource.setViewportRange(this.firstRow,this.lastRow))},t.prototype.purgeRowsNotInViewport=function(){var e=this;Object.keys(this.rowNodesByIndex).forEach(function(o){var a=parseInt(o,10);(a<e.firstRow||a>e.lastRow)&&delete e.rowNodesByIndex[a]})},t.prototype.setViewportDatasource=function(e){this.destroyDatasource(),this.viewportDatasource=e,this.rowCount=0,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):console.warn("AG Grid: viewport is missing init method.")},t.prototype.getType=function(){return s.Constants.ROW_MODEL_TYPE_VIEWPORT},t.prototype.getRow=function(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]},t.prototype.getRowNode=function(e){var o=void 0;return this.forEachNode(function(a){a.id===e&&(o=a)}),o},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.getRowIndexAtPixel=function(e){return this.rowHeight!==0?Math.floor(e/this.rowHeight):0},t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.isEmpty=function(){return this.rowCount>0},t.prototype.isRowsToRender=function(){return this.rowCount>0},t.prototype.getNodesInRangeForSelection=function(e,o){var a=s._.missing(e)?0:e.rowIndex,l=o.rowIndex,g=a<this.firstRow||a>this.lastRow,y=l<this.firstRow||l>this.lastRow;if(g||y)return[];for(var _=[],x=a<=l?a:l,A=a<=l?l:a,M=x;M<=A;M++)_.push(this.rowNodesByIndex[M]);return _},t.prototype.forEachNode=function(e){var o=this,a=0;Object.keys(this.rowNodesByIndex).forEach(function(l){var g=parseInt(l,10),y=o.rowNodesByIndex[g];e(y,a),a++})},t.prototype.setRowData=function(e){var o=this;s._.iterateObject(e,function(a,l){var g=parseInt(a,10);if(g>=o.firstRow&&g<=o.lastRow){var y=o.rowNodesByIndex[g];s._.missing(y)&&(y=o.createBlankRowNode(g),o.rowNodesByIndex[g]=y),y.setDataAndId(l,g.toString())}})},t.prototype.createBlankRowNode=function(e){var o=new s.RowNode(this.beans);return o.setRowHeight(this.rowHeight),o.setRowTop(this.rowHeight*e),o.setRowIndex(e),o},t.prototype.setRowCount=function(e,o){if(o===void 0&&(o=!1),e!==this.rowCount){this.rowCount=e;var a={type:s.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newData:!1,newPage:!1,keepRenderedRows:o,animate:!1};this.eventService.dispatchEvent(a)}},t.prototype.isRowPresent=function(e){return!1},Yp([s.Autowired("gridApi")],t.prototype,"gridApi",void 0),Yp([s.Autowired("columnApi")],t.prototype,"columnApi",void 0),Yp([s.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),Yp([s.Autowired("beans")],t.prototype,"beans",void 0),Yp([s.PostConstruct],t.prototype,"init",null),Yp([s.PreDestroy],t.prototype,"destroyDatasource",null),t=Yp([s.Bean("rowModel")],t),t}(s.BeanStub),Oae={moduleName:s.ModuleNames.ViewportRowModelModule,rowModels:{viewport:xae},dependantModules:[L]},Rae=function(){var p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var l in a)a.hasOwnProperty(l)&&(o[l]=a[l])},p(t,e)};return function(t,e){p(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),mo=function(p,t,e,o){var a=arguments.length,l=a<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(p,t,e,o);else for(var y=p.length-1;y>=0;y--)(g=p[y])&&(l=(a<3?g(l):a>3?g(t,e,l):g(t,e))||l);return a>3&&l&&Object.defineProperty(t,e,l),l},Pae=function(p){Rae(t,p);function t(){var e=p!==null&&p.apply(this,arguments)||this;return e.navigatorApiFailed=!1,e}return t.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("ClipboardService"),this.rowModel.getType()===s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(function(o){e.gridCtrl=o.gridCtrl})},t.prototype.pasteFromClipboard=function(){var e=this;this.logger.log("pasteFromClipboard");var o=!this.gridOptionsWrapper.isSuppressClipboardApi();o&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(function(a){s._.doOnce(function(){console.warn(a),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API")},"clipboardApiError"),e.navigatorApiFailed=!0,e.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()},t.prototype.pasteFromClipboardLegacy=function(){var e=this;this.executeOnTempElement(function(o){return o.focus({preventScroll:!0})},function(o){var a=o.value;e.processClipboardData(a)})},t.prototype.processClipboardData=function(e){var o=this;if(e!=null){var a=s._.stringToArray(e,this.gridOptionsWrapper.getClipboardDeliminator()),l=this.gridOptionsWrapper.getProcessDataFromClipboardFunc();if(l&&(a=l({data:a})),a!=null){this.gridOptionsWrapper.isSuppressLastEmptyLineOnPaste()&&this.removeLastLineIfBlank(a);var g=function(y,_,x,A){var M=o.rangeService&&o.rangeService.isMoreThanOneCell(),I=M&&!o.hasOnlyOneValueToPaste(a);I?o.pasteIntoActiveRange(a,y,_,A):o.pasteStartingFromFocusedCell(a,y,_,x,A)};this.doPasteOperation(g)}}},t.prototype.doPasteOperation=function(e){var o=this.gridOptionsWrapper.getApi(),a=this.gridOptionsWrapper.getColumnApi(),l="clipboard";this.eventService.dispatchEvent({type:s.Events.EVENT_PASTE_START,api:o,columnApi:a,source:l});var g;if(this.clientSideRowModel){var y=this.gridOptionsWrapper.isAggregateOnlyChangedColumns();g=new s.ChangedPath(y,this.clientSideRowModel.getRootNode())}var _={},x=[],A=this.focusService.getFocusedCell();e(_,x,A,g),g&&this.clientSideRowModel.doAggregate(g),this.rowRenderer.refreshCells(),this.dispatchFlashCells(_),this.fireRowChanged(x),A&&this.focusService.setFocusedCell(A.rowIndex,A.column,A.rowPinned,!0),this.eventService.dispatchEvent({type:s.Events.EVENT_PASTE_END,api:o,columnApi:a,source:l})},t.prototype.pasteIntoActiveRange=function(e,o,a,l){var g=this,y=this.getRangeSize()%e.length!=0,_=0,x=0,A=function(M,I,z,H){var X=H-_>=e.length;if(X){if(y)return;_+=x,x=0}var ee=e[H-_];a.push(I);var se=g.gridOptionsWrapper.getProcessCellFromClipboardFunc();z.forEach(function(le,pe){if(!(!le.isCellEditable(I)||le.isSuppressPaste(I))){pe>=ee.length&&(pe=pe%ee.length);var be=g.processCell(I,le,ee[pe],s.Constants.EXPORT_TYPE_DRAG_COPY,se);I.setDataValue(le,be,s.Constants.SOURCE_PASTE),l&&l.addParentNode(I.parent,[le]);var De=g.cellPositionUtils.createIdFromValues(M.rowIndex,le,M.rowPinned);o[De]=!0}}),x++};this.iterateActiveRanges(!1,A)},t.prototype.pasteStartingFromFocusedCell=function(e,o,a,l,g){if(l){var y={rowIndex:l.rowIndex,rowPinned:l.rowPinned},_=this.columnModel.getDisplayedColumnsStartingAt(l.column);this.isPasteSingleValueIntoRange(e)?this.pasteSingleValueIntoRange(e,a,o,g):this.pasteMultipleValues(e,y,a,_,o,s.Constants.EXPORT_TYPE_CLIPBOARD,g)}},t.prototype.isPasteSingleValueIntoRange=function(e){return this.hasOnlyOneValueToPaste(e)&&this.rangeService!=null&&!this.rangeService.isEmpty()},t.prototype.pasteSingleValueIntoRange=function(e,o,a,l){var g=this,y=e[0][0],_=function(x,A,M){o.push(A),M.forEach(function(I){return g.updateCellValue(A,I,y,a,s.Constants.EXPORT_TYPE_CLIPBOARD,l)})};this.iterateActiveRanges(!1,_)},t.prototype.hasOnlyOneValueToPaste=function(e){return e.length===1&&e[0].length===1},t.prototype.copyRangeDown=function(){var e=this;if(!(!this.rangeService||this.rangeService.isEmpty())){var o=[],a=function(l,g,y,_){var x=e.gridOptionsWrapper.getProcessCellForClipboardFunc(),A=e.gridOptionsWrapper.getProcessCellFromClipboardFunc(),M=function(I,z,H){o.length?(g.push(z),H.forEach(function(X,ee){if(!(!X.isCellEditable(z)||X.isSuppressPaste(z))){var se=e.processCell(z,X,o[ee],s.Constants.EXPORT_TYPE_DRAG_COPY,A);z.setDataValue(X,se,s.Constants.SOURCE_PASTE),_&&_.addParentNode(z.parent,[X]);var le=e.cellPositionUtils.createIdFromValues(I.rowIndex,X,I.rowPinned);l[le]=!0}})):H.forEach(function(X){var ee=e.processCell(z,X,e.valueService.getValue(X,z),s.Constants.EXPORT_TYPE_DRAG_COPY,x);o.push(ee)})};e.iterateActiveRanges(!0,M)};this.doPasteOperation(a)}},t.prototype.removeLastLineIfBlank=function(e){var o=s._.last(e),a=o&&o.length===1&&o[0]==="";a&&s._.removeFromArray(e,o)},t.prototype.fireRowChanged=function(e){var o=this;this.gridOptionsWrapper.isFullRowEdit()&&e.forEach(function(a){var l={type:s.Events.EVENT_ROW_VALUE_CHANGED,node:a,data:a.data,rowIndex:a.rowIndex,rowPinned:a.rowPinned,context:o.gridOptionsWrapper.getContext(),api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi()};o.eventService.dispatchEvent(l)})},t.prototype.pasteMultipleValues=function(e,o,a,l,g,y,_){var x=this,A=o,M=this.clientSideRowModel!=null&&!this.gridOptionsWrapper.isTreeData(),I=function(){for(;;){if(!A)return null;var z=x.rowPositionUtils.getRowNode(A);if(A=x.cellNavigationService.getRowBelow({rowPinned:A.rowPinned,rowIndex:A.rowIndex}),z==null)return null;var H=z.detail||z.footer||M&&z.group;if(!H)return z}};e.forEach(function(z){var H=I();H&&(z.forEach(function(X,ee){return x.updateCellValue(H,l[ee],X,g,y,_)}),a.push(H))})},t.prototype.updateCellValue=function(e,o,a,l,g,y){if(!(!e||!o||!o.isCellEditable(e)||o.isSuppressPaste(e))){var _=this.processCell(e,o,a,g,this.gridOptionsWrapper.getProcessCellFromClipboardFunc());e.setDataValue(o,_,s.Constants.SOURCE_PASTE);var x=this.cellPositionUtils.createIdFromValues(e.rowIndex,o,e.rowPinned);l[x]=!0,y&&y.addParentNode(e.parent,[o])}},t.prototype.copyToClipboard=function(e){this.logger.log("copyToClipboard: includeHeaders = "+e),e==null&&(e=this.gridOptionsWrapper.isCopyHeadersToClipboard());var o=!this.selectionService.isEmpty()&&!this.gridOptionsWrapper.isSuppressCopyRowsToClipboard();this.rangeService&&this.rangeService.isMoreThanOneCell()?this.copySelectedRangeToClipboard(e):o?this.copySelectedRowsToClipboard(e):this.focusService.isAnyCellFocused()?this.copyFocusedCellToClipboard(e):this.copySelectedRangeToClipboard(e)},t.prototype.iterateActiveRanges=function(e,o,a){var l=this;if(!(!this.rangeService||this.rangeService.isEmpty())){var g=this.rangeService.getCellRanges();e?this.iterateActiveRange(g[0],o,a,!0):g.forEach(function(y,_){return l.iterateActiveRange(y,o,a,_===g.length-1)})}},t.prototype.iterateActiveRange=function(e,o,a,l){if(this.rangeService){var g=this.rangeService.getRangeStartRow(e),y=this.rangeService.getRangeEndRow(e);a&&e.columns&&a(e.columns);for(var _=0,x=!1;!x&&g!=null;){var A=this.rowPositionUtils.getRowNode(g);x=this.rowPositionUtils.sameRow(g,y),o(g,A,e.columns,_++,x&&l),g=this.cellNavigationService.getRowBelow(g)}}},t.prototype.copySelectedRangeToClipboard=function(e){var o=this;if(e===void 0&&(e=!1),!(!this.rangeService||this.rangeService.isEmpty())){var a=this.gridOptionsWrapper.getClipboardDeliminator(),l="",g={},y=function(x){if(e){var A=o.gridOptionsWrapper.getProcessHeaderForClipboardFunc(),M=x.map(function(I){var z=o.columnModel.getDisplayNameForColumn(I,"clipboard",!0);return o.processHeader(I,z,A)||""});l+=M.join(a)+`\r
|
|
1986
1986
|
`}},_=function(x,A,M,I,z){var H=o.gridOptionsWrapper.getProcessCellForClipboardFunc();M.forEach(function(X,ee){var se=o.valueService.getValue(X,A),le=o.processCell(A,X,se,s.Constants.EXPORT_TYPE_CLIPBOARD,H);ee!=0&&(l+=a),s._.exists(le)&&(l+=le);var pe=o.cellPositionUtils.createIdFromValues(x.rowIndex,X,x.rowPinned);g[pe]=!0}),z||(l+=`\r
|
|
1987
1987
|
`)};this.iterateActiveRanges(!1,_,y),this.copyDataToClipboard(l),this.dispatchFlashCells(g)}},t.prototype.copyFocusedCellToClipboard=function(e){var o;e===void 0&&(e=!1);var a=this.focusService.getFocusedCell();if(a!=null){var l=this.cellPositionUtils.createId(a),g={rowPinned:a.rowPinned,rowIndex:a.rowIndex},y=this.rowPositionUtils.getRowNode(g),_=a.column,x=this.valueService.getValue(_,y),A=this.processCell(y,_,x,s.Constants.EXPORT_TYPE_CLIPBOARD,this.gridOptionsWrapper.getProcessCellForClipboardFunc());A=s._.missing(A)?"":A.toString();var M;if(e){var I=this.columnModel.getDisplayNameForColumn(_,"clipboard",!0);M=this.processHeader(_,I,this.gridOptionsWrapper.getProcessHeaderForClipboardFunc())+`\r
|
|
1988
|
-
`+A}else M=A;this.copyDataToClipboard(M),this.dispatchFlashCells((o={},o[l]=!0,o))}},t.prototype.dispatchFlashCells=function(e){var o=this;window.setTimeout(function(){var a={type:s.Events.EVENT_FLASH_CELLS,cells:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(a)},0)},t.prototype.processCell=function(e,o,a,l,g){if(g){var y={column:o,node:e,value:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:l};return g(y)}return a},t.prototype.processHeader=function(e,o,a){if(a){var l={column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return a(l)}return o},t.prototype.copySelectedRowsToClipboard=function(e,o){e===void 0&&(e=!1);var a={columnKeys:o,skipColumnHeaders:!e,suppressQuotes:!0,columnSeparator:this.gridOptionsWrapper.getClipboardDeliminator(),onlySelected:!0,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc(),processHeaderCallback:this.gridOptionsWrapper.getProcessHeaderForClipboardFunc()},l=this.csvCreator.getDataAsCsv(a);this.copyDataToClipboard(l)},t.prototype.copyDataToClipboard=function(e){var o=this,a=this.gridOptionsWrapper.getSendToClipboardFunc();if(a){a({data:e});return}var l=!this.gridOptionsWrapper.isSuppressClipboardApi();if(l&&navigator.clipboard){navigator.clipboard.writeText(e).catch(function(g){s._.doOnce(function(){console.warn(g),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.")},"clipboardApiError"),o.copyDataToClipboardLegacy(e)});return}this.copyDataToClipboardLegacy(e)},t.prototype.copyDataToClipboardLegacy=function(e){var o=this;this.executeOnTempElement(function(a){var l=o.gridOptionsWrapper.getDocument().activeElement;a.value=e||" ",a.select(),a.focus({preventScroll:!0});var g=document.execCommand("copy");g||console.warn("ag-grid: Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons."),l!=null&&l.focus!=null&&l.focus({preventScroll:!0})})},t.prototype.executeOnTempElement=function(e,o){var a=this.gridOptionsWrapper.getDocument(),l=a.createElement("textarea");l.style.width="1px",l.style.height="1px",l.style.top=a.documentElement.scrollTop+"px",l.style.left=a.documentElement.scrollLeft+"px",l.style.position="absolute",l.style.opacity="0";var g=this.gridCtrl.getGui();g.appendChild(l);try{e(l)}catch{console.warn("ag-grid: Browser does not support document.execCommand('copy') for clipboard operations")}o?window.setTimeout(function(){o(l),g.removeChild(l)},100):g.removeChild(l)},t.prototype.getRangeSize=function(){var e=this.rangeService.getCellRanges(),o=0,a=0;return e.length>0&&(o=this.rangeService.getRangeStartRow(e[0]).rowIndex,a=this.rangeService.getRangeEndRow(e[0]).rowIndex),o-a+1},mo([s.Autowired("csvCreator")],t.prototype,"csvCreator",void 0),mo([s.Autowired("loggerFactory")],t.prototype,"loggerFactory",void 0),mo([s.Autowired("selectionService")],t.prototype,"selectionService",void 0),mo([s.Optional("rangeService")],t.prototype,"rangeService",void 0),mo([s.Autowired("rowModel")],t.prototype,"rowModel",void 0),mo([s.Autowired("ctrlsService")],t.prototype,"ctrlsService",void 0),mo([s.Autowired("valueService")],t.prototype,"valueService",void 0),mo([s.Autowired("focusService")],t.prototype,"focusService",void 0),mo([s.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),mo([s.Autowired("columnModel")],t.prototype,"columnModel",void 0),mo([s.Autowired("cellNavigationService")],t.prototype,"cellNavigationService",void 0),mo([s.Autowired("columnApi")],t.prototype,"columnApi",void 0),mo([s.Autowired("gridApi")],t.prototype,"gridApi",void 0),mo([s.Autowired("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),mo([s.Autowired("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),mo([s.PostConstruct],t.prototype,"init",null),t=mo([s.Bean("clipboardService")],t),t}(s.BeanStub),Aae={moduleName:s.ModuleNames.ClipboardModule,beans:[Pae],dependantModules:[L,Ig]};s.ModuleRegistry.register(Wx,!1),s.ModuleRegistry.register(QC,!1),s.ModuleRegistry.register(_O,!1),s.ModuleRegistry.register(UR,!1),s.ModuleRegistry.register(Xoe,!1),s.ModuleRegistry.register(rie,!1),s.ModuleRegistry.register(hie,!1),s.ModuleRegistry.register(Cie,!1),s.ModuleRegistry.register(kk,!1),s.ModuleRegistry.register(Eie,!1),s.ModuleRegistry.register(Cn,!1),s.ModuleRegistry.register(Xie,!1),s.ModuleRegistry.register(aae,!1),s.ModuleRegistry.register(Yr,!1),s.ModuleRegistry.register(Sae,!1),s.ModuleRegistry.register(Oae,!1),s.ModuleRegistry.register(Aae,!1),Object.defineProperty(u,"AbstractHeaderCellCtrl",{enumerable:!0,get:function(){return s.AbstractHeaderCellCtrl}}),Object.defineProperty(u,"AgAbstractField",{enumerable:!0,get:function(){return s.AgAbstractField}}),Object.defineProperty(u,"AgAngleSelect",{enumerable:!0,get:function(){return s.AgAngleSelect}}),Object.defineProperty(u,"AgCheckbox",{enumerable:!0,get:function(){return s.AgCheckbox}}),Object.defineProperty(u,"AgColorPicker",{enumerable:!0,get:function(){return s.AgColorPicker}}),Object.defineProperty(u,"AgDialog",{enumerable:!0,get:function(){return s.AgDialog}}),Object.defineProperty(u,"AgGroupComponent",{enumerable:!0,get:function(){return s.AgGroupComponent}}),Object.defineProperty(u,"AgInputNumberField",{enumerable:!0,get:function(){return s.AgInputNumberField}}),Object.defineProperty(u,"AgInputRange",{enumerable:!0,get:function(){return s.AgInputRange}}),Object.defineProperty(u,"AgInputTextArea",{enumerable:!0,get:function(){return s.AgInputTextArea}}),Object.defineProperty(u,"AgInputTextField",{enumerable:!0,get:function(){return s.AgInputTextField}}),Object.defineProperty(u,"AgPanel",{enumerable:!0,get:function(){return s.AgPanel}}),Object.defineProperty(u,"AgRadioButton",{enumerable:!0,get:function(){return s.AgRadioButton}}),Object.defineProperty(u,"AgSelect",{enumerable:!0,get:function(){return s.AgSelect}}),Object.defineProperty(u,"AgSlider",{enumerable:!0,get:function(){return s.AgSlider}}),Object.defineProperty(u,"AgStackComponentsRegistry",{enumerable:!0,get:function(){return s.AgStackComponentsRegistry}}),Object.defineProperty(u,"AgToggleButton",{enumerable:!0,get:function(){return s.AgToggleButton}}),Object.defineProperty(u,"AlignedGridsService",{enumerable:!0,get:function(){return s.AlignedGridsService}}),Object.defineProperty(u,"AnimateShowChangeCellRenderer",{enumerable:!0,get:function(){return s.AnimateShowChangeCellRenderer}}),Object.defineProperty(u,"AnimateSlideCellRenderer",{enumerable:!0,get:function(){return s.AnimateSlideCellRenderer}}),Object.defineProperty(u,"AnimationFrameService",{enumerable:!0,get:function(){return s.AnimationFrameService}}),Object.defineProperty(u,"AutoScrollService",{enumerable:!0,get:function(){return s.AutoScrollService}}),Object.defineProperty(u,"AutoWidthCalculator",{enumerable:!0,get:function(){return s.AutoWidthCalculator}}),Object.defineProperty(u,"Autowired",{enumerable:!0,get:function(){return s.Autowired}}),Object.defineProperty(u,"BaseComponentWrapper",{enumerable:!0,get:function(){return s.BaseComponentWrapper}}),Object.defineProperty(u,"BaseCreator",{enumerable:!0,get:function(){return s.BaseCreator}}),Object.defineProperty(u,"BaseGridSerializingSession",{enumerable:!0,get:function(){return s.BaseGridSerializingSession}}),Object.defineProperty(u,"Bean",{enumerable:!0,get:function(){return s.Bean}}),Object.defineProperty(u,"BeanStub",{enumerable:!0,get:function(){return s.BeanStub}}),Object.defineProperty(u,"Beans",{enumerable:!0,get:function(){return s.Beans}}),Object.defineProperty(u,"BodyDropPivotTarget",{enumerable:!0,get:function(){return s.BodyDropPivotTarget}}),Object.defineProperty(u,"BodyDropTarget",{enumerable:!0,get:function(){return s.BodyDropTarget}}),Object.defineProperty(u,"CellComp",{enumerable:!0,get:function(){return s.CellComp}}),Object.defineProperty(u,"CellCtrl",{enumerable:!0,get:function(){return s.CellCtrl}}),Object.defineProperty(u,"CellNavigationService",{enumerable:!0,get:function(){return s.CellNavigationService}}),Object.defineProperty(u,"CellPositionUtils",{enumerable:!0,get:function(){return s.CellPositionUtils}}),Object.defineProperty(u,"CellRangeType",{enumerable:!0,get:function(){return s.CellRangeType}}),Object.defineProperty(u,"ChangedPath",{enumerable:!0,get:function(){return s.ChangedPath}}),Object.defineProperty(u,"CheckboxSelectionComponent",{enumerable:!0,get:function(){return s.CheckboxSelectionComponent}}),Object.defineProperty(u,"ClientSideRowModelSteps",{enumerable:!0,get:function(){return s.ClientSideRowModelSteps}}),Object.defineProperty(u,"ColDefUtil",{enumerable:!0,get:function(){return s.ColDefUtil}}),Object.defineProperty(u,"Column",{enumerable:!0,get:function(){return s.Column}}),Object.defineProperty(u,"ColumnApi",{enumerable:!0,get:function(){return s.ColumnApi}}),Object.defineProperty(u,"ColumnFactory",{enumerable:!0,get:function(){return s.ColumnFactory}}),Object.defineProperty(u,"ColumnGroup",{enumerable:!0,get:function(){return s.ColumnGroup}}),Object.defineProperty(u,"ColumnKeyCreator",{enumerable:!0,get:function(){return s.ColumnKeyCreator}}),Object.defineProperty(u,"ColumnModel",{enumerable:!0,get:function(){return s.ColumnModel}}),Object.defineProperty(u,"ColumnUtils",{enumerable:!0,get:function(){return s.ColumnUtils}}),Object.defineProperty(u,"Component",{enumerable:!0,get:function(){return s.Component}}),Object.defineProperty(u,"ComponentUtil",{enumerable:!0,get:function(){return s.ComponentUtil}}),Object.defineProperty(u,"Constants",{enumerable:!0,get:function(){return s.Constants}}),Object.defineProperty(u,"Context",{enumerable:!0,get:function(){return s.Context}}),Object.defineProperty(u,"CssClassApplier",{enumerable:!0,get:function(){return s.CssClassApplier}}),Object.defineProperty(u,"CsvCreator",{enumerable:!0,get:function(){return s.CsvCreator}}),Object.defineProperty(u,"CsvExportModule",{enumerable:!0,get:function(){return s.CsvExportModule}}),Object.defineProperty(u,"CtrlsService",{enumerable:!0,get:function(){return s.CtrlsService}}),Object.defineProperty(u,"CustomTooltipFeature",{enumerable:!0,get:function(){return s.CustomTooltipFeature}}),Object.defineProperty(u,"DateFilter",{enumerable:!0,get:function(){return s.DateFilter}}),Object.defineProperty(u,"DisplayedGroupCreator",{enumerable:!0,get:function(){return s.DisplayedGroupCreator}}),Object.defineProperty(u,"Downloader",{enumerable:!0,get:function(){return s.Downloader}}),Object.defineProperty(u,"DragAndDropService",{enumerable:!0,get:function(){return s.DragAndDropService}}),Object.defineProperty(u,"DragService",{enumerable:!0,get:function(){return s.DragService}}),Object.defineProperty(u,"DragSourceType",{enumerable:!0,get:function(){return s.DragSourceType}}),Object.defineProperty(u,"Environment",{enumerable:!0,get:function(){return s.Environment}}),Object.defineProperty(u,"EventService",{enumerable:!0,get:function(){return s.EventService}}),Object.defineProperty(u,"Events",{enumerable:!0,get:function(){return s.Events}}),Object.defineProperty(u,"ExcelFactoryMode",{enumerable:!0,get:function(){return s.ExcelFactoryMode}}),Object.defineProperty(u,"ExpressionService",{enumerable:!0,get:function(){return s.ExpressionService}}),Object.defineProperty(u,"FilterManager",{enumerable:!0,get:function(){return s.FilterManager}}),Object.defineProperty(u,"FloatingFilterMapper",{enumerable:!0,get:function(){return s.FloatingFilterMapper}}),Object.defineProperty(u,"FocusService",{enumerable:!0,get:function(){return s.FocusService}}),Object.defineProperty(u,"Grid",{enumerable:!0,get:function(){return s.Grid}}),Object.defineProperty(u,"GridApi",{enumerable:!0,get:function(){return s.GridApi}}),Object.defineProperty(u,"GridBodyComp",{enumerable:!0,get:function(){return s.GridBodyComp}}),Object.defineProperty(u,"GridBodyCtrl",{enumerable:!0,get:function(){return s.GridBodyCtrl}}),Object.defineProperty(u,"GridComp",{enumerable:!0,get:function(){return s.GridComp}}),Object.defineProperty(u,"GridCoreCreator",{enumerable:!0,get:function(){return s.GridCoreCreator}}),Object.defineProperty(u,"GridCtrl",{enumerable:!0,get:function(){return s.GridCtrl}}),Object.defineProperty(u,"GridHeaderComp",{enumerable:!0,get:function(){return s.GridHeaderComp}}),Object.defineProperty(u,"GridHeaderCtrl",{enumerable:!0,get:function(){return s.GridHeaderCtrl}}),Object.defineProperty(u,"GridOptionsWrapper",{enumerable:!0,get:function(){return s.GridOptionsWrapper}}),Object.defineProperty(u,"GridSerializer",{enumerable:!0,get:function(){return s.GridSerializer}}),Object.defineProperty(u,"GroupCellRenderer",{enumerable:!0,get:function(){return s.GroupCellRenderer}}),Object.defineProperty(u,"GroupCellRendererCtrl",{enumerable:!0,get:function(){return s.GroupCellRendererCtrl}}),Object.defineProperty(u,"GroupInstanceIdCreator",{enumerable:!0,get:function(){return s.GroupInstanceIdCreator}}),Object.defineProperty(u,"HeaderCellCtrl",{enumerable:!0,get:function(){return s.HeaderCellCtrl}}),Object.defineProperty(u,"HeaderFilterCellComp",{enumerable:!0,get:function(){return s.HeaderFilterCellComp}}),Object.defineProperty(u,"HeaderFilterCellCtrl",{enumerable:!0,get:function(){return s.HeaderFilterCellCtrl}}),Object.defineProperty(u,"HeaderGroupCellCtrl",{enumerable:!0,get:function(){return s.HeaderGroupCellCtrl}}),Object.defineProperty(u,"HeaderNavigationDirection",{enumerable:!0,get:function(){return s.HeaderNavigationDirection}}),Object.defineProperty(u,"HeaderNavigationService",{enumerable:!0,get:function(){return s.HeaderNavigationService}}),Object.defineProperty(u,"HeaderPositionUtils",{enumerable:!0,get:function(){return s.HeaderPositionUtils}}),Object.defineProperty(u,"HeaderRowComp",{enumerable:!0,get:function(){return s.HeaderRowComp}}),Object.defineProperty(u,"HeaderRowContainerComp",{enumerable:!0,get:function(){return s.HeaderRowContainerComp}}),Object.defineProperty(u,"HeaderRowContainerCtrl",{enumerable:!0,get:function(){return s.HeaderRowContainerCtrl}}),Object.defineProperty(u,"HeaderRowCtrl",{enumerable:!0,get:function(){return s.HeaderRowCtrl}}),Object.defineProperty(u,"HeaderRowType",{enumerable:!0,get:function(){return s.HeaderRowType}}),Object.defineProperty(u,"HorizontalDirection",{enumerable:!0,get:function(){return s.HorizontalDirection}}),Object.defineProperty(u,"HorizontalResizeService",{enumerable:!0,get:function(){return s.HorizontalResizeService}}),Object.defineProperty(u,"KeyCode",{enumerable:!0,get:function(){return s.KeyCode}}),Object.defineProperty(u,"LargeTextCellEditor",{enumerable:!0,get:function(){return s.LargeTextCellEditor}}),Object.defineProperty(u,"LayoutCssClasses",{enumerable:!0,get:function(){return s.LayoutCssClasses}}),Object.defineProperty(u,"Logger",{enumerable:!0,get:function(){return s.Logger}}),Object.defineProperty(u,"LoggerFactory",{enumerable:!0,get:function(){return s.LoggerFactory}}),Object.defineProperty(u,"ManagedFocusFeature",{enumerable:!0,get:function(){return s.ManagedFocusFeature}}),Object.defineProperty(u,"ModuleNames",{enumerable:!0,get:function(){return s.ModuleNames}}),Object.defineProperty(u,"ModuleRegistry",{enumerable:!0,get:function(){return s.ModuleRegistry}}),Object.defineProperty(u,"MouseEventService",{enumerable:!0,get:function(){return s.MouseEventService}}),Object.defineProperty(u,"MoveColumnFeature",{enumerable:!0,get:function(){return s.MoveColumnFeature}}),Object.defineProperty(u,"NavigationService",{enumerable:!0,get:function(){return s.NavigationService}}),Object.defineProperty(u,"NumberFilter",{enumerable:!0,get:function(){return s.NumberFilter}}),Object.defineProperty(u,"Optional",{enumerable:!0,get:function(){return s.Optional}}),Object.defineProperty(u,"PaginationProxy",{enumerable:!0,get:function(){return s.PaginationProxy}}),Object.defineProperty(u,"PinnedRowModel",{enumerable:!0,get:function(){return s.PinnedRowModel}}),Object.defineProperty(u,"PopupComponent",{enumerable:!0,get:function(){return s.PopupComponent}}),Object.defineProperty(u,"PopupEditorWrapper",{enumerable:!0,get:function(){return s.PopupEditorWrapper}}),Object.defineProperty(u,"PopupSelectCellEditor",{enumerable:!0,get:function(){return s.PopupSelectCellEditor}}),Object.defineProperty(u,"PopupService",{enumerable:!0,get:function(){return s.PopupService}}),Object.defineProperty(u,"PopupTextCellEditor",{enumerable:!0,get:function(){return s.PopupTextCellEditor}}),Object.defineProperty(u,"PositionableFeature",{enumerable:!0,get:function(){return s.PositionableFeature}}),Object.defineProperty(u,"PostConstruct",{enumerable:!0,get:function(){return s.PostConstruct}}),Object.defineProperty(u,"PreConstruct",{enumerable:!0,get:function(){return s.PreConstruct}}),Object.defineProperty(u,"PreDestroy",{enumerable:!0,get:function(){return s.PreDestroy}}),Object.defineProperty(u,"ProvidedColumnGroup",{enumerable:!0,get:function(){return s.ProvidedColumnGroup}}),Object.defineProperty(u,"ProvidedFilter",{enumerable:!0,get:function(){return s.ProvidedFilter}}),Object.defineProperty(u,"Qualifier",{enumerable:!0,get:function(){return s.Qualifier}}),Object.defineProperty(u,"QuerySelector",{enumerable:!0,get:function(){return s.QuerySelector}}),Object.defineProperty(u,"RefSelector",{enumerable:!0,get:function(){return s.RefSelector}}),Object.defineProperty(u,"ResizeObserverService",{enumerable:!0,get:function(){return s.ResizeObserverService}}),Object.defineProperty(u,"RowAnimationCssClasses",{enumerable:!0,get:function(){return s.RowAnimationCssClasses}}),Object.defineProperty(u,"RowContainerComp",{enumerable:!0,get:function(){return s.RowContainerComp}}),Object.defineProperty(u,"RowContainerCtrl",{enumerable:!0,get:function(){return s.RowContainerCtrl}}),Object.defineProperty(u,"RowContainerName",{enumerable:!0,get:function(){return s.RowContainerName}}),Object.defineProperty(u,"RowCtrl",{enumerable:!0,get:function(){return s.RowCtrl}}),Object.defineProperty(u,"RowHighlightPosition",{enumerable:!0,get:function(){return s.RowHighlightPosition}}),Object.defineProperty(u,"RowNode",{enumerable:!0,get:function(){return s.RowNode}}),Object.defineProperty(u,"RowNodeBlock",{enumerable:!0,get:function(){return s.RowNodeBlock}}),Object.defineProperty(u,"RowNodeBlockLoader",{enumerable:!0,get:function(){return s.RowNodeBlockLoader}}),Object.defineProperty(u,"RowNodeSorter",{enumerable:!0,get:function(){return s.RowNodeSorter}}),Object.defineProperty(u,"RowPositionUtils",{enumerable:!0,get:function(){return s.RowPositionUtils}}),Object.defineProperty(u,"RowRenderer",{enumerable:!0,get:function(){return s.RowRenderer}}),Object.defineProperty(u,"RowType",{enumerable:!0,get:function(){return s.RowType}}),Object.defineProperty(u,"ScalarFilter",{enumerable:!0,get:function(){return s.ScalarFilter}}),Object.defineProperty(u,"ScrollVisibleService",{enumerable:!0,get:function(){return s.ScrollVisibleService}}),Object.defineProperty(u,"SelectCellEditor",{enumerable:!0,get:function(){return s.SelectCellEditor}}),Object.defineProperty(u,"SelectableService",{enumerable:!0,get:function(){return s.SelectableService}}),Object.defineProperty(u,"SelectionHandleType",{enumerable:!0,get:function(){return s.SelectionHandleType}}),Object.defineProperty(u,"SelectionService",{enumerable:!0,get:function(){return s.SelectionService}}),Object.defineProperty(u,"ServerSideTransactionResultStatus",{enumerable:!0,get:function(){return s.ServerSideTransactionResultStatus}}),Object.defineProperty(u,"SetLeftFeature",{enumerable:!0,get:function(){return s.SetLeftFeature}}),Object.defineProperty(u,"SimpleFilter",{enumerable:!0,get:function(){return s.SimpleFilter}}),Object.defineProperty(u,"SortController",{enumerable:!0,get:function(){return s.SortController}}),Object.defineProperty(u,"StandardMenuFactory",{enumerable:!0,get:function(){return s.StandardMenuFactory}}),Object.defineProperty(u,"StylingService",{enumerable:!0,get:function(){return s.StylingService}}),Object.defineProperty(u,"TabGuardComp",{enumerable:!0,get:function(){return s.TabGuardComp}}),Object.defineProperty(u,"TabGuardCtrl",{enumerable:!0,get:function(){return s.TabGuardCtrl}}),Object.defineProperty(u,"TabbedLayout",{enumerable:!0,get:function(){return s.TabbedLayout}}),Object.defineProperty(u,"TemplateService",{enumerable:!0,get:function(){return s.TemplateService}}),Object.defineProperty(u,"TextCellEditor",{enumerable:!0,get:function(){return s.TextCellEditor}}),Object.defineProperty(u,"TextFilter",{enumerable:!0,get:function(){return s.TextFilter}}),Object.defineProperty(u,"TextFloatingFilter",{enumerable:!0,get:function(){return s.TextFloatingFilter}}),Object.defineProperty(u,"TouchListener",{enumerable:!0,get:function(){return s.TouchListener}}),Object.defineProperty(u,"UserComponentFactory",{enumerable:!0,get:function(){return s.UserComponentFactory}}),Object.defineProperty(u,"UserComponentRegistry",{enumerable:!0,get:function(){return s.UserComponentRegistry}}),Object.defineProperty(u,"ValueCache",{enumerable:!0,get:function(){return s.ValueCache}}),Object.defineProperty(u,"ValueFormatterService",{enumerable:!0,get:function(){return s.ValueFormatterService}}),Object.defineProperty(u,"ValueService",{enumerable:!0,get:function(){return s.ValueService}}),Object.defineProperty(u,"VanillaFrameworkOverrides",{enumerable:!0,get:function(){return s.VanillaFrameworkOverrides}}),Object.defineProperty(u,"VerticalDirection",{enumerable:!0,get:function(){return s.VerticalDirection}}),Object.defineProperty(u,"VirtualList",{enumerable:!0,get:function(){return s.VirtualList}}),Object.defineProperty(u,"XmlFactory",{enumerable:!0,get:function(){return s.XmlFactory}}),Object.defineProperty(u,"ZipContainer",{enumerable:!0,get:function(){return s.ZipContainer}}),Object.defineProperty(u,"defaultGroupComparator",{enumerable:!0,get:function(){return s.defaultGroupComparator}}),Object.defineProperty(u,"initialiseAgGridWithAngular1",{enumerable:!0,get:function(){return s.initialiseAgGridWithAngular1}}),Object.defineProperty(u,"initialiseAgGridWithWebComponents",{enumerable:!0,get:function(){return s.initialiseAgGridWithWebComponents}}),Object.defineProperty(u,"simpleHttpRequest",{enumerable:!0,get:function(){return s.simpleHttpRequest}}),u.LicenseManager=w,u.SetFilter=mT,u.exportMultipleSheetsAsExcel=nf,u.getMultipleSheetsAsExcel=Jc})(ite);const ate=d.defineComponent({name:"AgTable",components:{AgGridVue:AL.AgGridVue,ColumnCheck:PL},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","onSelectionChanged","onViewportChanged","onRowSelected","onRowClicked"],setup(u,s){var re;const m=Pr.state.locale;let v=null;const w=u.componentOption,S=u.pageKey;let E=-1,O={};const R=d.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(re=w.configFlag)==null?void 0:re.headerClass},columnDefs:[],configFlag:{rowHeight:40,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,showIndex:!1,pagination:!0,layout:"total, sizes, prev, pager, next, jumper",border:!0,isRowClick:!1,groupSelectsChildren:!1,groupDefaultExpanded:0,autoGroupColumnDef:{}},pageInfo:w.pageInfo,rowData:d.computed(()=>{var Y;const ie=((Y=w.data)==null?void 0:Y.result)||[];return ie.length&&setTimeout(()=>{R.showTable=!0},300),ie}),totalNum:d.computed(()=>{var ie;return Number(((ie=w.data)==null?void 0:ie.totalNum)||0)}),storageColumnsKey:d.computed(()=>(S||"")+(w.key||"")+(w.status||"")),gridApi:null,columnUpdate:0});if(w.configFlag&&(Object.keys(w.configFlag).forEach(ie=>{R.configFlag[ie]=w.configFlag[ie]}),w.configFlag.total&&d.watch(()=>w.data.result,()=>{L()}),w.configFlag.isRowClick)){const ie=Qi(Pr,S,w.target);w.onRowClickedFn=Y=>{Pr.dispatch("_TABLE_QUERY",{pageKey:S,tableComp:ie,row:Y})},d.watch(()=>w.data.result,()=>{E=-1})}d.watch(()=>w.columns,()=>{const ie=w.columns.filter(Y=>!Y.rowGroup&&!Y.checkboxSelection?(Y.hide=Y.hide?Y.hide:!1,!Y.hide):Y);P(ie),R.columnUpdate=Date.now(),setTimeout(()=>{R.configFlag.sizeColumnsToFit&&v.sizeColumnsToFit()})}),P(w.columns.filter(ie=>ie.rowGroup||!ie.hide));function P(ie){var Y,he;D(ie),(Y=w.configFlag)!=null&&Y.checkboxSelection?(R.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:R.configFlag.checkboxSelection,lockPosition:!0,pinned:"left"},...ie],w.onSelectionChanged=(oe,ae)=>{w.selectedRows=oe,w.selectedNodes=ae}):R.columnDefs=ie,(he=w.configFlag)!=null&&he.showIndex&&R.columnDefs.unshift({headerName:" ",maxWidth:30,valueGetter:"node.id",resizable:!1,pinned:"left",cellStyle:{textAlign:"center"},cellRenderer:oe=>Number(oe.value)+1}),k()}function D(ie){ie.forEach(Y=>{var he;if(Y.rowGroup?(R.configFlag.autoGroupColumnDef={headerName:" ",width:70,minWidth:70,resizable:!1,lockPosition:!0,pinned:"left"},R.configFlag.groupSelectsChildren=!0):(R.configFlag.autoGroupColumnDef={},R.configFlag.groupSelectsChildren=!1),Y.headerTip&&(Y.headerComponentFramework="HeaderTip",Y.headerComponentParams={text:Y.headerTip}),Y.cellRendererParams&&Y.cellRendererParams.url){Y.cellRendererFramework="CellItemEdit";const oe=Y.cellRendererParams,ae=oe.callBack;oe.callBackFn=(de,ve,Te)=>{const Oe=oe.params?oe.params(de,ve,Te):{};Oe[ve]=Te;let Re=oe.method=="GET"?"params":"data";Od({url:Pr.state._BASE_URL+oe.url,[Re]:Oe,method:oe.method||"POST"}).then(fe=>{de[ve]=Te,ae&&ae(de,fe)})}}if(Y.component){const oe=(he=d.getCurrentInstance())==null?void 0:he.appContext.components.AgTable;oe&&Object.keys(Y.component).forEach(ae=>{oe.components[ae]=Y.component[ae]})}Y.field=="action"&&(Y.cellRendererFramework="CellOperation",Y.cellRendererParams={...Y,pageKey:S})})}function L(){const ie=[];let Y={};R.columnDefs.map((he,oe)=>{Y.type="total",oe===0?Y[he.field]="总计":he.showTotal?Y[he.field]=N(w.data.result,he.field):Y[he.field]=""}),ie.push(Y),v.setPinnedBottomRowData(ie)}function N(ie,Y){let he=0;for(let oe=0;oe<ie.length;oe++)he=yL(he,parseFloat(ie[oe][Y]?ie[oe][Y]:0));return he}function k(){let ie=localStorage.getItem(R.storageColumnsKey);ie&&(JSON.parse(ie).forEach((he,oe)=>{for(let ae=0,de=R.columnDefs.length;ae<de;ae++){const ve=R.columnDefs[ae];if(ve.headerName.trim()&&ve.headerName===he.headerName){ve.index=oe,ve.width=he.width,ve.minWidth=he.minWidth,ve.hide=he.hide||!1;break}}}),R.columnDefs.sort((he,oe)=>he.index-oe.index))}function F(ie){if(!R.storageColumnsKey)return;let Y=ie.api.getColumnDefs();Y=Y.map((he,oe)=>(he.hide&&(R.columnDefs[oe].hide=!0),{field:he.field,headerName:he.headerName,width:he.width,minWidth:he.minWidth,hide:he.hide})),localStorage.setItem(R.storageColumnsKey,JSON.stringify(Y)),R.columnUpdate=Date.now()}function G(ie){const Y=u.getRowStyle?u.getRowStyle(ie):{},he=ie.api.getRowNode(ie.rowIndex);return typeof R.configFlag.checkboxSelection=="function"&&(he.selectable=R.configFlag.checkboxSelection(ie)),ie.node.rowPinned&&(Y["font-weight"]="bold",Y.color="red"),ie.node.isClicked===void 0?Y:ie.node.isClicked?{"background-color":"#ffe48d",...Y}:{"background-color":"",...Y}}function V(ie){R.configFlag.onRowSelected&&R.configFlag.onRowSelected(ie)}function j(){s.emit("onViewportChanged"),R.configFlag.onViewportChanged&&R.configFlag.onViewportChanged()}function $(ie){v=R.gridApi=ie.api,R.configFlag.sizeColumnsToFit&&ie.api.sizeColumnsToFit(),s.emit("onGridReady",ie.api),R.configFlag.onGridReady&&R.configFlag.onGridReady(ie.api),w.gridApi=ie.api}function W(ie){var Y=ie.api.getSelectedNodes(),he=ie.api.getSelectedRows();s.emit("onSelectionChanged",he),w.onSelectionChanged&&w.onSelectionChanged(he,Y),R.configFlag.onSelectionChanged&&R.configFlag.onSelectionChanged(he,Y)}function K(ie){if(!ie.rowPinned&&E!==ie.rowIndex&&R.configFlag.isRowClick){if(E>-1){const he=ie.api.getRowNode(E);he.isClicked=!1,he.setData(O)}const Y=ie.api.getRowNode(ie.rowIndex);Y.isClicked=!0,Y.setData(ie.data),w.onRowClickedFn&&w.onRowClickedFn(ie,w),E=ie.rowIndex,O=ie.data}}function Z(ie){R.configFlag.onCellClicked&&R.configFlag.onCellClicked({field:ie.colDef.field,data:ie.data,rowIndex:ie.rowIndex,tableComp:w},ie)}function q(ie){w.pageInfo.pageSize=ie,Pr.dispatch("_TABLE_QUERY",{tableComp:w,pageKey:u.pageKey})}function Q(ie){w.pageInfo.pageNum=ie,w.pageInfo.currentPage=ie,Pr.dispatch("_TABLE_QUERY",{tableComp:w,pageKey:u.pageKey})}return{locale:m,...d.toRefs(R),onGridReady:$,dragStopped:F,sizeChange:q,onSelectionChanged:W,currentChange:Q,viewportChanged:j,onRowSelected:V,onRowClicked:K,onCellClicked:Z,getRowStyle:G}}}),ste={style:{display:"flex","justify-content":"end"}};function lte(u,s,m,v,w,S){const E=d.resolveComponent("ag-grid-vue"),O=uN,R=HM,P=PL;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(E,{class:d.normalizeClass(["ag-theme-alpine",[u.storageColumnsKey]]),style:d.normalizeStyle({opacity:u.showTable?1:0,...u.configFlag.style||{}}),headerHeight:"22",rowHeight:u.configFlag.rowHeight,columnDefs:u.columnDefs,defaultColDef:u.defaultColDef,rowData:u.rowData,rowSelection:"multiple",rowMultiSelectWithClick:u.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:u.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(u.configFlag.suppressRowClickSelection||!u.configFlag.suppressRowClickSelection&&u.configFlag.suppressRowClickSelection!==!1),onGridReady:u.onGridReady,onSelectionChanged:u.onSelectionChanged,getRowStyle:u.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:u.configFlag.groupSelectsChildren,groupDefaultExpanded:u.configFlag.groupDefaultExpanded,onViewportChanged:u.viewportChanged,onRowSelected:u.onRowSelected,onRowClicked:u.onRowClicked,onDragStopped:u.dragStopped,onCellClicked:u.onCellClicked,suppressAggFuncInHeader:!0,suppressContextMenu:!0},null,8,["class","style","rowHeight","columnDefs","defaultColDef","rowData","rowMultiSelectWithClick","autoGroupColumnDef","suppressRowClickSelection","onGridReady","onSelectionChanged","getRowStyle","groupSelectsChildren","groupDefaultExpanded","onViewportChanged","onRowSelected","onRowClicked","onDragStopped","onCellClicked"]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((u.componentOption.children||[]).filter(D=>D.slot),D=>d.renderSlot(u.$slots,D.slot,{key:D.slot})),128)),d.renderSlot(u.$slots,"default"),d.createVNode(R,{locale:u.locale},{default:d.withCtx(()=>[d.createElementVNode("div",ste,[u.pageInfo&&u.configFlag.pagination?(d.openBlock(),d.createBlock(O,{style:{"margin-top":"5px"},total:u.totalNum,pageNum:u.pageInfo.pageNum,pageSize:u.pageInfo.pageSize,layout:u.configFlag.layout,onSizeChange:u.sizeChange,onCurrentChange:u.currentChange,"page-sizes":u.configFlag.pageSize||[20,50,100,300,500],small:"",key:u.componentOption.resetPagination,"prev-text":u.configFlag.prevText||"","next-text":u.configFlag.nextText||""},null,8,["total","pageNum","pageSize","layout","onSizeChange","onCurrentChange","page-sizes","prev-text","next-text"])):d.createCommentVNode("",!0)])]),_:1},8,["locale"]),d.createVNode(P,{gridApi:u.gridApi,storageColumnsKey:u.storageColumnsKey,columnDefs:u.columnDefs,columnUpdate:u.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const vg=In(ate,[["render",lte]]),ute=d.defineComponent({name:"CellItemEdit",components:{ElInput:ri,ElDatePicker:mE,ElSelect:Oc,ElOption:lg,EditPen:o8},setup(){const u=d.ref();let s={},m={},v=d.reactive({showInput:!1,modelData:"",params:{data:{}},type:"",options:[],labelValue:{label:"label",value:"value"}});d.onBeforeMount(()=>{const{data:{params:R}}=d.getCurrentInstance();if(R.data&&Object.keys(R.data).length)if(R.type==="select"){const P=R.store?R.store.state[R.enumKey]||[]:R.option;v.options=P,v.modelData=E(v.options,R.data[R.dataKey])}else R.format==="date"?v.modelData=R.data[R.dataKey]?dg(R.data[R.dataKey],"yyyy-MM-dd"):"":v.modelData=R.data[R.dataKey]?R.data[R.dataKey]:R.data[R.dataKey]===0?0:"";v.params=R,v.type=R.type});function w(){v.showInput=!0,d.nextTick(()=>{u.value.focus()})}function S(){if(s=v.params,m=v.params.data,v.modelData===m[s.dataKey]){v.showInput=!1,s.type==="select"&&(v.modelData=E(v.options,v.modelData));return}if(s.type==="number"&&!v.modelData)v.modelData=0;else if(s.type==="date"&&(v.modelData=dg(v.modelData,"yyyy-MM-dd"),s.format==="date"&&!v.modelData)){Nn.warning("不能为空");return}s.callBackFn&&s.callBackFn(s.data,s.dataKey,v.modelData,s.rowIndex),s.editblur&&s.editblur(s.data,s.dataKey,v.modelData,s.rowIndex),s.type==="select"?v.modelData=E(v.options,v.modelData):v.showInput=!1}function E(R,P){for(var D=0;D<R.length;D++)if(R[D][v.labelValue.value]===P)return R[D][v.labelValue.label]}function O(){setTimeout(()=>{v.showInput=!1},150)}return{inputRef:u,...d.toRefs(v),showEditInput:w,editBlur:S,selectBlur:O}}}),wle="",cte={style:{display:"flex",width:"100%"}},pte={key:1,class:"edit-info"};function dte(u,s,m,v,w,S){const E=ri,O=mE,R=lg,P=Oc,D=d.resolveComponent("EditPen"),L=Tt;return u.type?(d.openBlock(),d.createElementBlock("div",{key:0,style:d.normalizeStyle([{...typeof u.params.style=="function"?u.params.style(u.params.data)||{}:u.params.style||{},"min-height":(u.params.minHeight||30)+"px"},{display:"flex","align-items":"center"}])},[u.params.data&&u.params.data.type=="total"||u.params.hideEdit&&u.params.hideEdit(u.params.data)?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createTextVNode(d.toDisplayString(u.params.data[u.params.dataKey]),1)],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[u.showInput?(d.openBlock(),d.createElementBlock("div",{key:0,onClick:s[8]||(s[8]=d.withModifiers(()=>{},["stop"])),style:{flex:"1"}},[u.type==="text"||u.type==="number"?(d.openBlock(),d.createBlock(E,{key:0,ref:"inputRef",type:u.type,size:"small",modelValue:u.modelData,"onUpdate:modelValue":s[0]||(s[0]=N=>u.modelData=N),modelModifiers:{trim:!0},onBlur:s[1]||(s[1]=N=>u.editBlur())},null,8,["type","modelValue"])):d.createCommentVNode("",!0),u.type==="textarea"?(d.openBlock(),d.createBlock(E,{key:1,ref:"inputRef",type:u.type,size:"small",rows:1,modelValue:u.modelData,"onUpdate:modelValue":s[2]||(s[2]=N=>u.modelData=N),onBlur:s[3]||(s[3]=N=>u.editBlur()),onKeydown:s[4]||(s[4]=d.withModifiers(()=>{},["stop"]))},null,8,["type","modelValue"])):d.createCommentVNode("",!0),u.type==="date"?(d.openBlock(),d.createBlock(O,{key:2,ref:"inputRef",modelValue:u.modelData,"onUpdate:modelValue":s[5]||(s[5]=N=>u.modelData=N),type:"date",size:"small",onBlur:s[6]||(s[6]=N=>u.editBlur())},null,8,["modelValue"])):d.createCommentVNode("",!0),u.type==="select"?(d.openBlock(),d.createBlock(P,{key:3,ref:"inputRef",modelValue:u.modelData,"onUpdate:modelValue":s[7]||(s[7]=N=>u.modelData=N),size:"small",filterable:"",clearable:"",onBlur:u.selectBlur,onChange:u.editBlur},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.options,N=>(d.openBlock(),d.createBlock(R,{key:N.id,label:N[u.labelValue.label],value:N[u.labelValue.value]},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onBlur","onChange"])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),d.withDirectives(d.createElementVNode("span",cte,[u.params.isSlot?d.renderSlot(u.$slots,"default",{key:0}):(d.openBlock(),d.createElementBlock("span",pte,d.toDisplayString(u.modelData),1)),d.createVNode(L,{class:"el-icon-edit",style:{color:"#67c23a",width:"16px",height:"16px",cursor:"pointer"},onClick:s[9]||(s[9]=d.withModifiers(N=>u.showEditInput(),["stop"]))},{default:d.withCtx(()=>[d.createVNode(D)]),_:1})],512),[[d.vShow,!u.showInput&&u.params.data&&!u.params.data.hideEdit]])],64))],4)):d.createCommentVNode("",!0)}const bx=In(ute,[["render",dte]]),fte=d.defineComponent({setup(){const u=d.reactive({row:{},params:{},elementGroup:[],groupRow:{}});function s(w){v(w.option)!=0&&(w.option.event==="dialog"?m(w):w.option.handleClick(w))}function m({option:w,row:S,index:E}){if(w.showDialogBefore){let R={};if(w.relation&&(R=Ss(Pr,u.params.pageKey,w.relation)),S&&(R.row=S),w.showDialogBefore(R,S,E)===!1)return}const O=Pr.getters._GET_DIALOGREF(u.params.pageKey);if(O.option=w,O.showDialog(S),w.formTarget){const R=Qi(Pr,u.params.pageKey,w.formTarget);R.row=S}}function v(w){return typeof w.text=="function"?w.text(u.row):w.text}return d.onMounted(()=>{const{data:{params:w}}=d.getCurrentInstance();u.row=w.data,u.params=w,u.elementGroup=w.elementGroup;const S=w.node.childrenAfterFilter;u.groupRow=S&&S[0]?S[0].data:{}}),{...d.toRefs(u),getButtonText:v,handleClick:s}}}),ble="",hte=["type","disabled","onClick"],gte=["type","disabled","onClick"];function mte(u,s,m,v,w,S){const E=Na;return u.params.node&&!u.params.node.rowPinned?(d.openBlock(),d.createElementBlock("div",{key:0,onClick:s[0]||(s[0]=d.withModifiers(()=>{},["stop"])),class:"cell-operation-btn-box"},[u.params.multiLine?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(u.row[u.params.multiLine],(O,R)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["cell-btns-row",u.params.className])},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.elementGroup,P=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.label},[P.type==="text"?d.withDirectives((d.openBlock(),d.createElementBlock("span",{key:0,class:"dfs-text-btn",style:d.normalizeStyle(P.style),type:P.buttonType||"primary",disabled:typeof P.disabled=="function"?P.disabled(u.row,R):P.disabled,onClick:D=>u.handleClick({option:P,row:u.row?u.row:u.groupRow,gridOption:u.params,index:R})},d.toDisplayString(u.getButtonText(P)),13,gte)),[[d.vShow,P.isShow===void 0||P.isShow===!0||typeof P.isShow=="function"&&P.isShow(u.row,R)||P.isShow.prop&&u.searchData[P.isShow.prop]==P.isShow.value]]):d.withDirectives((d.openBlock(),d.createBlock(E,{key:1,type:P.buttonType||"primary",disabled:typeof P.disabled=="function"?P.disabled(u.row):P.disabled,size:"small",onClick:D=>u.handleClick({option:P,row:u.row?u.row:u.groupRow,gridOption:u.params,index:R})},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(u.getButtonText(P)),1)]),_:2},1032,["type","disabled","onClick"])),[[d.vShow,P.isShow===void 0||P.isShow===!0||typeof P.isShow=="function"&&P.isShow(u.row,R)||P.isShow.prop&&u.searchData[P.isShow.prop]==P.isShow.value]])],64))),128))],2))),256)):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(u.elementGroup,O=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:O.label},[O.type==="text"?d.withDirectives((d.openBlock(),d.createElementBlock("span",{key:0,class:d.normalizeClass([u.getButtonText(O)==0?"pd-2":"dfs-text-btn",O.class]),style:d.normalizeStyle(O.style),type:O.buttonType||"primary",disabled:typeof O.disabled=="function"?O.disabled(u.row):O.disabled,onClick:R=>u.handleClick({option:O,row:u.row?u.row:u.groupRow,gridOption:u.params})},d.toDisplayString(u.getButtonText(O)),15,hte)),[[d.vShow,O.isShow===void 0||O.isShow===!0||typeof O.isShow=="function"&&O.isShow(u.row)||O.isShow.prop&&u.searchData[O.isShow.prop]==O.isShow.value]]):d.withDirectives((d.openBlock(),d.createBlock(E,{key:1,type:O.buttonType||"primary",disabled:typeof O.disabled=="function"?O.disabled(u.row):O.disabled,size:"small",onClick:R=>u.handleClick({option:O,row:u.row?u.row:u.groupRow,gridOption:u.params})},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(u.getButtonText(O)),1)]),_:2},1032,["type","disabled","onClick"])),[[d.vShow,O.isShow===void 0||O.isShow===!0||typeof O.isShow=="function"&&O.isShow(u.row)||O.isShow.prop&&u.searchData[O.isShow.prop]==O.isShow.value]])],64))),128))])):d.createCommentVNode("",!0)}const GL=In(fte,[["render",mte]]),_le="",vte=d.defineComponent({name:"HeaderTip",setup(){const u=d.reactive({params:{}});return d.onBeforeMount(()=>{const{data:s}=d.getCurrentInstance();u.params=s.params}),{...d.toRefs(u)}}}),yte="data:image/gif;base64,R0lGODlhCgARALMNAP/u7v8REf/d3f9ERP+7u//MzP8iIv9VVf8zM/93d/+IiP9mZv8AAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkNCMjczRjU5RjFERjExRTNCMjEzODIyQTlFMDA3N0NBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkNCMjczRjVBRjFERjExRTNCMjEzODIyQTlFMDA3N0NBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0IyNzNGNTdGMURGMTFFM0IyMTM4MjJBOUUwMDc3Q0EiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0IyNzNGNThGMURGMTFFM0IyMTM4MjJBOUUwMDc3Q0EiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQJMgANACwAAAAACgARAAAEKLDJSattKTBm1FyedDBhJTCLBQwIUClBWiUMcdHFJQk3qf/AoHDYiAAAIfkEBTIADQAsAAAAAAoAEQAABCmwyUllCowZNReXB/NVArNUDTAgQKUEZ5UwBNrMhS0J9jzqwKBwSNRFAAA7",Cte={class:"ag-header-cell-tip"},wte={style:{"max-width":"220px"}},bte=d.createElementVNode("img",{class:"",src:yte,alt:""},null,-1);function _te(u,s,m,v,w,S){const E=_c;return d.openBlock(),d.createElementBlock("span",Cte,[d.createVNode(E,{placement:"top",effect:"light"},{content:d.withCtx(()=>[d.createElementVNode("p",wte,d.toDisplayString(u.params.text),1)]),default:d.withCtx(()=>[bte]),_:1}),d.createTextVNode(" "+d.toDisplayString(u.params.displayName),1)])}const VL=In(vte,[["render",_te]]),Ste=d.defineComponent({name:"ChildrenComponent",components:{CellItemEdit:bx,CellOperation:GL,HeaderTip:VL},props:{pageKey:{type:String,required:!0},configOption:{type:Array,default:[]}},setup(u){return{getAllSlots:xL}}});function Ete(u,s,m,v,w,S){const E=d.resolveComponent("ChildrenComponent",!0);return d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.configOption,O=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(O.type),{key:(O.updateKey||"")+O.key,componentOption:O,pageKey:u.pageKey},d.createSlots({default:d.withCtx(()=>[O.children&&O.children.length?(d.openBlock(),d.createBlock(E,{key:0,pageKey:u.pageKey,configOption:O.children},d.createSlots({_:2},[d.renderList(u.getAllSlots(O),R=>({name:R.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,R.slot)])}))]),1032,["pageKey","configOption"])):d.createCommentVNode("",!0)]),_:2},[d.renderList(u.getAllSlots(O),R=>({name:R.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,R.slot)])}))]),1032,["componentOption","pageKey"]))),128)}const _x=In(Ste,[["render",Ete]]),xte=d.defineComponent({name:"Dialog",components:{WarningFilled:by},props:{pageKey:{type:String,required:!0}},setup(u){const s=eu(),m=d.reactive({option:{},component:{},dialog:!1,title:d.computed(()=>typeof m.component.title=="function"?m.component.title():m.component.title)});function v(S){const E=Qi(s,u.pageKey,m.option.target);S&&E.children&&E.children.forEach(O=>{O.type==="Form"&&(O.row=S)}),m.component=E,m.dialog=!0}function w(){m.dialog=!1}return{...d.toRefs(m),store:s,showDialog:v,closeDialog:w}}}),Sle="";function Ote(u,s,m,v,w,S){const E=d.resolveComponent("WarningFilled"),O=Tt,R=_x,P=yE;return d.openBlock(),d.createBlock(P,{class:"dfs-page-config-dialog",title:u.title,modelValue:u.dialog,"onUpdate:modelValue":s[0]||(s[0]=D=>u.dialog=D),width:u.component.width||"500px",center:"","close-on-click-modal":!1,key:u.component.updateKey},{header:d.withCtx(()=>[d.createElementVNode("p",null,[u.component.dialogType==="warning"?(d.openBlock(),d.createBlock(O,{key:0,style:{position:"relative",top:"2px"}},{default:d.withCtx(()=>[d.createVNode(E,{color:"#e6a23c"})]),_:1})):d.createCommentVNode("",!0),d.createTextVNode(" "+d.toDisplayString(u.title),1)])]),default:d.withCtx(()=>[d.createVNode(R,{configOption:u.component.children,pageKey:u.pageKey},d.createSlots({_:2},[d.renderList(u.component.children||[].filter(D=>D.slot),D=>({name:D.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,D.slot,{slot:D.slot})])}))]),1032,["configOption","pageKey"])]),_:3},8,["title","modelValue","width"])}const Pd=In(xte,[["render",Ote]]),Ele="",xle="",Rte=d.defineComponent({name:"Descriptions",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(u){const s=eu();function m(v){if(typeof v.text=="function"){let w={};return u.componentOption.relation&&(w=Ss(s,u.pageKey,u.componentOption.relation)),v.text(w)}return v.text}return{getText:m}}}),Pte=["innerHTML"];function Ate(u,s,m,v,w,S){const E=h7,O=f7;return d.openBlock(),d.createBlock(O,{title:u.componentOption.title,direction:u.componentOption.vertical||"horizontal",column:u.componentOption.column||1,size:u.componentOption.size,border:u.componentOption.border,style:d.normalizeStyle([u.componentOption.style,{"margin-bottom":"10px"}])},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.componentOption.children,R=>(d.openBlock(),d.createBlock(E,{key:R.text.toString(),label:R.label,span:R.span,align:R.align||"left"},{default:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:u.getText(R)},null,8,Pte)]),_:2},1032,["label","span","align"]))),128))]),_:1},8,["title","direction","column","size","border","style"])}const Tte=In(Rte,[["render",Ate]]),Ole="",Dte=d.defineComponent({name:"Card",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(){}}),Fte={class:"clearfix"};function Mte(u,s,m,v,w,S){const E=I$;return d.openBlock(),d.createBlock(E,{class:"components-card",style:d.normalizeStyle(u.componentOption.style)},{header:d.withCtx(()=>[d.createElementVNode("div",Fte,[d.createElementVNode("span",null,d.toDisplayString(u.componentOption.label),1)])]),default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((u.componentOption.children||[]).filter(O=>O.slot),O=>d.renderSlot(u.$slots,O.slot,{key:O.slot})),128)),d.renderSlot(u.$slots,"default")]),_:3},8,["style"])}const Nte=In(Dte,[["render",Mte]]),Rle="",Ite=d.defineComponent({name:"Row",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(){}});function Lte(u,s,m,v,w,S){const E=KY;return d.openBlock(),d.createBlock(E,{class:"components-row",style:d.normalizeStyle(u.componentOption.style)},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((u.componentOption.children||[]).filter(O=>O.slot),O=>d.renderSlot(u.$slots,O.slot,{key:O.slot})),128)),d.renderSlot(u.$slots,"default")]),_:3},8,["style"])}const kte=In(Ite,[["render",Lte]]),Bte=u=>{[mg,Oee,vg,Pd,Tte,Nte,kte].map(m=>{u.component(m.name,m)})},Gte=d.defineComponent({name:"SplitScreen",components:{CellItemEdit:bx},setup(){const u=d.ref(),s=d.ref(),m=d.ref(),v=d.ref();return d.onMounted(()=>{setTimeout(()=>{let w=0;const S=u.value.clientHeight,E=document.querySelector(".el-header"),O=E?E.clientHeight:0,R=document.querySelector(".header-btns"),P=O+5+3+(R?R.clientHeight:0),D=v.value;D.addEventListener("mousedown",L,{passive:!1});function L(N){const k=N||event;document.addEventListener("mousemove",F,!1);function F(V){w=((V||event).clientY-P)/S*100,w<0?w=0:w>99&&(w=99),D.style.top=w+"%"}document.addEventListener("mouseup",G,!1);function G(){s.value.style.bottom=100-w+"%",m.value.style.top=w+"%",document.removeEventListener("mousemove",F,!1),document.removeEventListener("mouseup",G,!1),D.releaseCapture&&D.releaseCapture()}k.preventDefault(),D.setCapture&&D.setCapture()}},1e3)}),{parentRef:u,listRef:s,detailRef:m,dragRef:v}}}),Ple="",Vte=u=>(d.pushScopeId("data-v-357251e0"),u=u(),d.popScopeId(),u),Wte={class:"parent",ref:"parentRef"},Hte={class:"pannel-container top-pannel",ref:"listRef"},jte={class:"drag-trigger",ref:"dragRef"},zte=[Vte(()=>d.createElementVNode("div",{class:"trigger-bar"},[d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em")],-1))],$te={class:"pannel-container bottom-pannel",ref:"detailRef"};function Ute(u,s,m,v,w,S){return d.openBlock(),d.createElementBlock("div",Wte,[d.createElementVNode("div",Hte,[d.renderSlot(u.$slots,"top",{},void 0,!0)],512),d.createElementVNode("div",jte,zte,512),d.createElementVNode("div",$te,[d.renderSlot(u.$slots,"bottom",{},void 0,!0)],512)],512)}const Kte=In(Gte,[["render",Ute],["__scopeId","data-v-357251e0"]]),Yte=d.defineComponent({components:{SplitScreen:Kte,ChildrenComponent:_x,HeaderTip:VL,CellOperation:GL,CellItemEdit:bx},props:{pageConfigData:{type:Object,default:{}}},setup(u){const s=eu(),m=d.ref(),v=u.pageConfigData,w=[];return v.components.forEach(S=>{S.type==="SplitScreen"?S.topComponents&&S.downComponents&&w.push(...S.topComponents,...S.downComponents):w.push(S)}),JJ({pageKey:v.pageKey,components:w,dialogRef:m},s),YJ(S=>{const E=S.target.dataset.pagekey,O=S.target.dataset.target;O&&eee(s,E,O)}),{dialogRef:m,getAllSlots:xL}}}),qte={class:"ag-grid-container"};function Xte(u,s,m,v,w,S){const E=_x,O=Pd;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",qte,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.pageConfigData.components.filter(R=>R.type!=="dialog"),R=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:R.key},[R.slot?d.renderSlot(u.$slots,R.slot,{key:0}):R.type==="SplitScreen"?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(R.type),{key:1,componentOption:R,pageKey:u.pageConfigData.pageKey},{top:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(R.topComponents.filter(P=>P.type!=="dialog"),(P,D)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.key||D},[P.slot?d.renderSlot(u.$slots,P.slot,{key:0}):d.createCommentVNode("",!0),(d.openBlock(),d.createBlock(d.resolveDynamicComponent(P.type),{componentOption:P,pageKey:u.pageConfigData.pageKey},d.createSlots({default:d.withCtx(()=>[d.createVNode(E,{configOption:P.children,pageKey:u.pageConfigData.pageKey},d.createSlots({_:2},[d.renderList(u.getAllSlots(P),L=>({name:L.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,L.slot)])}))]),1032,["configOption","pageKey"])]),_:2},[d.renderList(u.getAllSlots(P),L=>({name:L.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,L.slot)])}))]),1032,["componentOption","pageKey"]))],64))),128))]),bottom:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(R.downComponents.filter(P=>P.type!=="dialog"),P=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.key},[P.slot?d.renderSlot(u.$slots,P.slot,{key:0}):d.createCommentVNode("",!0),(d.openBlock(),d.createBlock(d.resolveDynamicComponent(P.type),{componentOption:P,pageKey:u.pageConfigData.pageKey},d.createSlots({default:d.withCtx(()=>[d.createVNode(E,{configOption:P.children,pageKey:u.pageConfigData.pageKey},d.createSlots({_:2},[d.renderList(u.getAllSlots(P),D=>({name:D.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,D.slot)])}))]),1032,["configOption","pageKey"])]),_:2},[d.renderList(u.getAllSlots(P),D=>({name:D.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,D.slot)])}))]),1032,["componentOption","pageKey"]))],64))),128))]),_:2},1032,["componentOption","pageKey"])):(d.openBlock(),d.createBlock(d.resolveDynamicComponent(R.type),{key:2,componentOption:R,pageKey:u.pageConfigData.pageKey},d.createSlots({default:d.withCtx(()=>[d.createVNode(E,{configOption:R.children,pageKey:u.pageConfigData.pageKey},d.createSlots({_:2},[d.renderList(u.getAllSlots(R),P=>({name:P.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,P.slot)])}))]),1032,["configOption","pageKey"])]),_:2},[d.renderList(u.getAllSlots(R),P=>({name:P.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,P.slot)])}))]),1032,["componentOption","pageKey"]))],64))),128))]),u.pageConfigData.components.filter(R=>R.type==="dialog").length?(d.openBlock(),d.createBlock(O,{key:0,ref:"dialogRef",pageKey:u.pageConfigData.pageKey},{default:d.withCtx(R=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.pageConfigData.components.filter(P=>P.type==="dialog"),P=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.key},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(P.children.filter(D=>D.slot),D=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:D.slot},[D.slot==R.slot?d.renderSlot(u.$slots,D.slot,{key:0}):d.createCommentVNode("",!0)],64))),128))],64))),128))]),_:3},8,["pageKey"])):d.createCommentVNode("",!0)],64)}const Zte=In(Yte,[["render",Xte]]);mg.install=u=>u.component(mg.name,mg),gg.install=u=>u.component(gg.name,gg),Rd.install=u=>u.component(Rd.name,Rd),Pd.install=u=>u.component(Pd.name,Pd);const Tle="",Dle="";/**!
|
|
1988
|
+
`+A}else M=A;this.copyDataToClipboard(M),this.dispatchFlashCells((o={},o[l]=!0,o))}},t.prototype.dispatchFlashCells=function(e){var o=this;window.setTimeout(function(){var a={type:s.Events.EVENT_FLASH_CELLS,cells:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(a)},0)},t.prototype.processCell=function(e,o,a,l,g){if(g){var y={column:o,node:e,value:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:l};return g(y)}return a},t.prototype.processHeader=function(e,o,a){if(a){var l={column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return a(l)}return o},t.prototype.copySelectedRowsToClipboard=function(e,o){e===void 0&&(e=!1);var a={columnKeys:o,skipColumnHeaders:!e,suppressQuotes:!0,columnSeparator:this.gridOptionsWrapper.getClipboardDeliminator(),onlySelected:!0,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc(),processHeaderCallback:this.gridOptionsWrapper.getProcessHeaderForClipboardFunc()},l=this.csvCreator.getDataAsCsv(a);this.copyDataToClipboard(l)},t.prototype.copyDataToClipboard=function(e){var o=this,a=this.gridOptionsWrapper.getSendToClipboardFunc();if(a){a({data:e});return}var l=!this.gridOptionsWrapper.isSuppressClipboardApi();if(l&&navigator.clipboard){navigator.clipboard.writeText(e).catch(function(g){s._.doOnce(function(){console.warn(g),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.")},"clipboardApiError"),o.copyDataToClipboardLegacy(e)});return}this.copyDataToClipboardLegacy(e)},t.prototype.copyDataToClipboardLegacy=function(e){var o=this;this.executeOnTempElement(function(a){var l=o.gridOptionsWrapper.getDocument().activeElement;a.value=e||" ",a.select(),a.focus({preventScroll:!0});var g=document.execCommand("copy");g||console.warn("ag-grid: Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons."),l!=null&&l.focus!=null&&l.focus({preventScroll:!0})})},t.prototype.executeOnTempElement=function(e,o){var a=this.gridOptionsWrapper.getDocument(),l=a.createElement("textarea");l.style.width="1px",l.style.height="1px",l.style.top=a.documentElement.scrollTop+"px",l.style.left=a.documentElement.scrollLeft+"px",l.style.position="absolute",l.style.opacity="0";var g=this.gridCtrl.getGui();g.appendChild(l);try{e(l)}catch{console.warn("ag-grid: Browser does not support document.execCommand('copy') for clipboard operations")}o?window.setTimeout(function(){o(l),g.removeChild(l)},100):g.removeChild(l)},t.prototype.getRangeSize=function(){var e=this.rangeService.getCellRanges(),o=0,a=0;return e.length>0&&(o=this.rangeService.getRangeStartRow(e[0]).rowIndex,a=this.rangeService.getRangeEndRow(e[0]).rowIndex),o-a+1},mo([s.Autowired("csvCreator")],t.prototype,"csvCreator",void 0),mo([s.Autowired("loggerFactory")],t.prototype,"loggerFactory",void 0),mo([s.Autowired("selectionService")],t.prototype,"selectionService",void 0),mo([s.Optional("rangeService")],t.prototype,"rangeService",void 0),mo([s.Autowired("rowModel")],t.prototype,"rowModel",void 0),mo([s.Autowired("ctrlsService")],t.prototype,"ctrlsService",void 0),mo([s.Autowired("valueService")],t.prototype,"valueService",void 0),mo([s.Autowired("focusService")],t.prototype,"focusService",void 0),mo([s.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),mo([s.Autowired("columnModel")],t.prototype,"columnModel",void 0),mo([s.Autowired("cellNavigationService")],t.prototype,"cellNavigationService",void 0),mo([s.Autowired("columnApi")],t.prototype,"columnApi",void 0),mo([s.Autowired("gridApi")],t.prototype,"gridApi",void 0),mo([s.Autowired("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),mo([s.Autowired("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),mo([s.PostConstruct],t.prototype,"init",null),t=mo([s.Bean("clipboardService")],t),t}(s.BeanStub),Aae={moduleName:s.ModuleNames.ClipboardModule,beans:[Pae],dependantModules:[L,Ig]};s.ModuleRegistry.register(Wx,!1),s.ModuleRegistry.register(QC,!1),s.ModuleRegistry.register(_O,!1),s.ModuleRegistry.register(UR,!1),s.ModuleRegistry.register(Xoe,!1),s.ModuleRegistry.register(rie,!1),s.ModuleRegistry.register(hie,!1),s.ModuleRegistry.register(Cie,!1),s.ModuleRegistry.register(kk,!1),s.ModuleRegistry.register(Eie,!1),s.ModuleRegistry.register(Cn,!1),s.ModuleRegistry.register(Xie,!1),s.ModuleRegistry.register(aae,!1),s.ModuleRegistry.register(Yr,!1),s.ModuleRegistry.register(Sae,!1),s.ModuleRegistry.register(Oae,!1),s.ModuleRegistry.register(Aae,!1),Object.defineProperty(u,"AbstractHeaderCellCtrl",{enumerable:!0,get:function(){return s.AbstractHeaderCellCtrl}}),Object.defineProperty(u,"AgAbstractField",{enumerable:!0,get:function(){return s.AgAbstractField}}),Object.defineProperty(u,"AgAngleSelect",{enumerable:!0,get:function(){return s.AgAngleSelect}}),Object.defineProperty(u,"AgCheckbox",{enumerable:!0,get:function(){return s.AgCheckbox}}),Object.defineProperty(u,"AgColorPicker",{enumerable:!0,get:function(){return s.AgColorPicker}}),Object.defineProperty(u,"AgDialog",{enumerable:!0,get:function(){return s.AgDialog}}),Object.defineProperty(u,"AgGroupComponent",{enumerable:!0,get:function(){return s.AgGroupComponent}}),Object.defineProperty(u,"AgInputNumberField",{enumerable:!0,get:function(){return s.AgInputNumberField}}),Object.defineProperty(u,"AgInputRange",{enumerable:!0,get:function(){return s.AgInputRange}}),Object.defineProperty(u,"AgInputTextArea",{enumerable:!0,get:function(){return s.AgInputTextArea}}),Object.defineProperty(u,"AgInputTextField",{enumerable:!0,get:function(){return s.AgInputTextField}}),Object.defineProperty(u,"AgPanel",{enumerable:!0,get:function(){return s.AgPanel}}),Object.defineProperty(u,"AgRadioButton",{enumerable:!0,get:function(){return s.AgRadioButton}}),Object.defineProperty(u,"AgSelect",{enumerable:!0,get:function(){return s.AgSelect}}),Object.defineProperty(u,"AgSlider",{enumerable:!0,get:function(){return s.AgSlider}}),Object.defineProperty(u,"AgStackComponentsRegistry",{enumerable:!0,get:function(){return s.AgStackComponentsRegistry}}),Object.defineProperty(u,"AgToggleButton",{enumerable:!0,get:function(){return s.AgToggleButton}}),Object.defineProperty(u,"AlignedGridsService",{enumerable:!0,get:function(){return s.AlignedGridsService}}),Object.defineProperty(u,"AnimateShowChangeCellRenderer",{enumerable:!0,get:function(){return s.AnimateShowChangeCellRenderer}}),Object.defineProperty(u,"AnimateSlideCellRenderer",{enumerable:!0,get:function(){return s.AnimateSlideCellRenderer}}),Object.defineProperty(u,"AnimationFrameService",{enumerable:!0,get:function(){return s.AnimationFrameService}}),Object.defineProperty(u,"AutoScrollService",{enumerable:!0,get:function(){return s.AutoScrollService}}),Object.defineProperty(u,"AutoWidthCalculator",{enumerable:!0,get:function(){return s.AutoWidthCalculator}}),Object.defineProperty(u,"Autowired",{enumerable:!0,get:function(){return s.Autowired}}),Object.defineProperty(u,"BaseComponentWrapper",{enumerable:!0,get:function(){return s.BaseComponentWrapper}}),Object.defineProperty(u,"BaseCreator",{enumerable:!0,get:function(){return s.BaseCreator}}),Object.defineProperty(u,"BaseGridSerializingSession",{enumerable:!0,get:function(){return s.BaseGridSerializingSession}}),Object.defineProperty(u,"Bean",{enumerable:!0,get:function(){return s.Bean}}),Object.defineProperty(u,"BeanStub",{enumerable:!0,get:function(){return s.BeanStub}}),Object.defineProperty(u,"Beans",{enumerable:!0,get:function(){return s.Beans}}),Object.defineProperty(u,"BodyDropPivotTarget",{enumerable:!0,get:function(){return s.BodyDropPivotTarget}}),Object.defineProperty(u,"BodyDropTarget",{enumerable:!0,get:function(){return s.BodyDropTarget}}),Object.defineProperty(u,"CellComp",{enumerable:!0,get:function(){return s.CellComp}}),Object.defineProperty(u,"CellCtrl",{enumerable:!0,get:function(){return s.CellCtrl}}),Object.defineProperty(u,"CellNavigationService",{enumerable:!0,get:function(){return s.CellNavigationService}}),Object.defineProperty(u,"CellPositionUtils",{enumerable:!0,get:function(){return s.CellPositionUtils}}),Object.defineProperty(u,"CellRangeType",{enumerable:!0,get:function(){return s.CellRangeType}}),Object.defineProperty(u,"ChangedPath",{enumerable:!0,get:function(){return s.ChangedPath}}),Object.defineProperty(u,"CheckboxSelectionComponent",{enumerable:!0,get:function(){return s.CheckboxSelectionComponent}}),Object.defineProperty(u,"ClientSideRowModelSteps",{enumerable:!0,get:function(){return s.ClientSideRowModelSteps}}),Object.defineProperty(u,"ColDefUtil",{enumerable:!0,get:function(){return s.ColDefUtil}}),Object.defineProperty(u,"Column",{enumerable:!0,get:function(){return s.Column}}),Object.defineProperty(u,"ColumnApi",{enumerable:!0,get:function(){return s.ColumnApi}}),Object.defineProperty(u,"ColumnFactory",{enumerable:!0,get:function(){return s.ColumnFactory}}),Object.defineProperty(u,"ColumnGroup",{enumerable:!0,get:function(){return s.ColumnGroup}}),Object.defineProperty(u,"ColumnKeyCreator",{enumerable:!0,get:function(){return s.ColumnKeyCreator}}),Object.defineProperty(u,"ColumnModel",{enumerable:!0,get:function(){return s.ColumnModel}}),Object.defineProperty(u,"ColumnUtils",{enumerable:!0,get:function(){return s.ColumnUtils}}),Object.defineProperty(u,"Component",{enumerable:!0,get:function(){return s.Component}}),Object.defineProperty(u,"ComponentUtil",{enumerable:!0,get:function(){return s.ComponentUtil}}),Object.defineProperty(u,"Constants",{enumerable:!0,get:function(){return s.Constants}}),Object.defineProperty(u,"Context",{enumerable:!0,get:function(){return s.Context}}),Object.defineProperty(u,"CssClassApplier",{enumerable:!0,get:function(){return s.CssClassApplier}}),Object.defineProperty(u,"CsvCreator",{enumerable:!0,get:function(){return s.CsvCreator}}),Object.defineProperty(u,"CsvExportModule",{enumerable:!0,get:function(){return s.CsvExportModule}}),Object.defineProperty(u,"CtrlsService",{enumerable:!0,get:function(){return s.CtrlsService}}),Object.defineProperty(u,"CustomTooltipFeature",{enumerable:!0,get:function(){return s.CustomTooltipFeature}}),Object.defineProperty(u,"DateFilter",{enumerable:!0,get:function(){return s.DateFilter}}),Object.defineProperty(u,"DisplayedGroupCreator",{enumerable:!0,get:function(){return s.DisplayedGroupCreator}}),Object.defineProperty(u,"Downloader",{enumerable:!0,get:function(){return s.Downloader}}),Object.defineProperty(u,"DragAndDropService",{enumerable:!0,get:function(){return s.DragAndDropService}}),Object.defineProperty(u,"DragService",{enumerable:!0,get:function(){return s.DragService}}),Object.defineProperty(u,"DragSourceType",{enumerable:!0,get:function(){return s.DragSourceType}}),Object.defineProperty(u,"Environment",{enumerable:!0,get:function(){return s.Environment}}),Object.defineProperty(u,"EventService",{enumerable:!0,get:function(){return s.EventService}}),Object.defineProperty(u,"Events",{enumerable:!0,get:function(){return s.Events}}),Object.defineProperty(u,"ExcelFactoryMode",{enumerable:!0,get:function(){return s.ExcelFactoryMode}}),Object.defineProperty(u,"ExpressionService",{enumerable:!0,get:function(){return s.ExpressionService}}),Object.defineProperty(u,"FilterManager",{enumerable:!0,get:function(){return s.FilterManager}}),Object.defineProperty(u,"FloatingFilterMapper",{enumerable:!0,get:function(){return s.FloatingFilterMapper}}),Object.defineProperty(u,"FocusService",{enumerable:!0,get:function(){return s.FocusService}}),Object.defineProperty(u,"Grid",{enumerable:!0,get:function(){return s.Grid}}),Object.defineProperty(u,"GridApi",{enumerable:!0,get:function(){return s.GridApi}}),Object.defineProperty(u,"GridBodyComp",{enumerable:!0,get:function(){return s.GridBodyComp}}),Object.defineProperty(u,"GridBodyCtrl",{enumerable:!0,get:function(){return s.GridBodyCtrl}}),Object.defineProperty(u,"GridComp",{enumerable:!0,get:function(){return s.GridComp}}),Object.defineProperty(u,"GridCoreCreator",{enumerable:!0,get:function(){return s.GridCoreCreator}}),Object.defineProperty(u,"GridCtrl",{enumerable:!0,get:function(){return s.GridCtrl}}),Object.defineProperty(u,"GridHeaderComp",{enumerable:!0,get:function(){return s.GridHeaderComp}}),Object.defineProperty(u,"GridHeaderCtrl",{enumerable:!0,get:function(){return s.GridHeaderCtrl}}),Object.defineProperty(u,"GridOptionsWrapper",{enumerable:!0,get:function(){return s.GridOptionsWrapper}}),Object.defineProperty(u,"GridSerializer",{enumerable:!0,get:function(){return s.GridSerializer}}),Object.defineProperty(u,"GroupCellRenderer",{enumerable:!0,get:function(){return s.GroupCellRenderer}}),Object.defineProperty(u,"GroupCellRendererCtrl",{enumerable:!0,get:function(){return s.GroupCellRendererCtrl}}),Object.defineProperty(u,"GroupInstanceIdCreator",{enumerable:!0,get:function(){return s.GroupInstanceIdCreator}}),Object.defineProperty(u,"HeaderCellCtrl",{enumerable:!0,get:function(){return s.HeaderCellCtrl}}),Object.defineProperty(u,"HeaderFilterCellComp",{enumerable:!0,get:function(){return s.HeaderFilterCellComp}}),Object.defineProperty(u,"HeaderFilterCellCtrl",{enumerable:!0,get:function(){return s.HeaderFilterCellCtrl}}),Object.defineProperty(u,"HeaderGroupCellCtrl",{enumerable:!0,get:function(){return s.HeaderGroupCellCtrl}}),Object.defineProperty(u,"HeaderNavigationDirection",{enumerable:!0,get:function(){return s.HeaderNavigationDirection}}),Object.defineProperty(u,"HeaderNavigationService",{enumerable:!0,get:function(){return s.HeaderNavigationService}}),Object.defineProperty(u,"HeaderPositionUtils",{enumerable:!0,get:function(){return s.HeaderPositionUtils}}),Object.defineProperty(u,"HeaderRowComp",{enumerable:!0,get:function(){return s.HeaderRowComp}}),Object.defineProperty(u,"HeaderRowContainerComp",{enumerable:!0,get:function(){return s.HeaderRowContainerComp}}),Object.defineProperty(u,"HeaderRowContainerCtrl",{enumerable:!0,get:function(){return s.HeaderRowContainerCtrl}}),Object.defineProperty(u,"HeaderRowCtrl",{enumerable:!0,get:function(){return s.HeaderRowCtrl}}),Object.defineProperty(u,"HeaderRowType",{enumerable:!0,get:function(){return s.HeaderRowType}}),Object.defineProperty(u,"HorizontalDirection",{enumerable:!0,get:function(){return s.HorizontalDirection}}),Object.defineProperty(u,"HorizontalResizeService",{enumerable:!0,get:function(){return s.HorizontalResizeService}}),Object.defineProperty(u,"KeyCode",{enumerable:!0,get:function(){return s.KeyCode}}),Object.defineProperty(u,"LargeTextCellEditor",{enumerable:!0,get:function(){return s.LargeTextCellEditor}}),Object.defineProperty(u,"LayoutCssClasses",{enumerable:!0,get:function(){return s.LayoutCssClasses}}),Object.defineProperty(u,"Logger",{enumerable:!0,get:function(){return s.Logger}}),Object.defineProperty(u,"LoggerFactory",{enumerable:!0,get:function(){return s.LoggerFactory}}),Object.defineProperty(u,"ManagedFocusFeature",{enumerable:!0,get:function(){return s.ManagedFocusFeature}}),Object.defineProperty(u,"ModuleNames",{enumerable:!0,get:function(){return s.ModuleNames}}),Object.defineProperty(u,"ModuleRegistry",{enumerable:!0,get:function(){return s.ModuleRegistry}}),Object.defineProperty(u,"MouseEventService",{enumerable:!0,get:function(){return s.MouseEventService}}),Object.defineProperty(u,"MoveColumnFeature",{enumerable:!0,get:function(){return s.MoveColumnFeature}}),Object.defineProperty(u,"NavigationService",{enumerable:!0,get:function(){return s.NavigationService}}),Object.defineProperty(u,"NumberFilter",{enumerable:!0,get:function(){return s.NumberFilter}}),Object.defineProperty(u,"Optional",{enumerable:!0,get:function(){return s.Optional}}),Object.defineProperty(u,"PaginationProxy",{enumerable:!0,get:function(){return s.PaginationProxy}}),Object.defineProperty(u,"PinnedRowModel",{enumerable:!0,get:function(){return s.PinnedRowModel}}),Object.defineProperty(u,"PopupComponent",{enumerable:!0,get:function(){return s.PopupComponent}}),Object.defineProperty(u,"PopupEditorWrapper",{enumerable:!0,get:function(){return s.PopupEditorWrapper}}),Object.defineProperty(u,"PopupSelectCellEditor",{enumerable:!0,get:function(){return s.PopupSelectCellEditor}}),Object.defineProperty(u,"PopupService",{enumerable:!0,get:function(){return s.PopupService}}),Object.defineProperty(u,"PopupTextCellEditor",{enumerable:!0,get:function(){return s.PopupTextCellEditor}}),Object.defineProperty(u,"PositionableFeature",{enumerable:!0,get:function(){return s.PositionableFeature}}),Object.defineProperty(u,"PostConstruct",{enumerable:!0,get:function(){return s.PostConstruct}}),Object.defineProperty(u,"PreConstruct",{enumerable:!0,get:function(){return s.PreConstruct}}),Object.defineProperty(u,"PreDestroy",{enumerable:!0,get:function(){return s.PreDestroy}}),Object.defineProperty(u,"ProvidedColumnGroup",{enumerable:!0,get:function(){return s.ProvidedColumnGroup}}),Object.defineProperty(u,"ProvidedFilter",{enumerable:!0,get:function(){return s.ProvidedFilter}}),Object.defineProperty(u,"Qualifier",{enumerable:!0,get:function(){return s.Qualifier}}),Object.defineProperty(u,"QuerySelector",{enumerable:!0,get:function(){return s.QuerySelector}}),Object.defineProperty(u,"RefSelector",{enumerable:!0,get:function(){return s.RefSelector}}),Object.defineProperty(u,"ResizeObserverService",{enumerable:!0,get:function(){return s.ResizeObserverService}}),Object.defineProperty(u,"RowAnimationCssClasses",{enumerable:!0,get:function(){return s.RowAnimationCssClasses}}),Object.defineProperty(u,"RowContainerComp",{enumerable:!0,get:function(){return s.RowContainerComp}}),Object.defineProperty(u,"RowContainerCtrl",{enumerable:!0,get:function(){return s.RowContainerCtrl}}),Object.defineProperty(u,"RowContainerName",{enumerable:!0,get:function(){return s.RowContainerName}}),Object.defineProperty(u,"RowCtrl",{enumerable:!0,get:function(){return s.RowCtrl}}),Object.defineProperty(u,"RowHighlightPosition",{enumerable:!0,get:function(){return s.RowHighlightPosition}}),Object.defineProperty(u,"RowNode",{enumerable:!0,get:function(){return s.RowNode}}),Object.defineProperty(u,"RowNodeBlock",{enumerable:!0,get:function(){return s.RowNodeBlock}}),Object.defineProperty(u,"RowNodeBlockLoader",{enumerable:!0,get:function(){return s.RowNodeBlockLoader}}),Object.defineProperty(u,"RowNodeSorter",{enumerable:!0,get:function(){return s.RowNodeSorter}}),Object.defineProperty(u,"RowPositionUtils",{enumerable:!0,get:function(){return s.RowPositionUtils}}),Object.defineProperty(u,"RowRenderer",{enumerable:!0,get:function(){return s.RowRenderer}}),Object.defineProperty(u,"RowType",{enumerable:!0,get:function(){return s.RowType}}),Object.defineProperty(u,"ScalarFilter",{enumerable:!0,get:function(){return s.ScalarFilter}}),Object.defineProperty(u,"ScrollVisibleService",{enumerable:!0,get:function(){return s.ScrollVisibleService}}),Object.defineProperty(u,"SelectCellEditor",{enumerable:!0,get:function(){return s.SelectCellEditor}}),Object.defineProperty(u,"SelectableService",{enumerable:!0,get:function(){return s.SelectableService}}),Object.defineProperty(u,"SelectionHandleType",{enumerable:!0,get:function(){return s.SelectionHandleType}}),Object.defineProperty(u,"SelectionService",{enumerable:!0,get:function(){return s.SelectionService}}),Object.defineProperty(u,"ServerSideTransactionResultStatus",{enumerable:!0,get:function(){return s.ServerSideTransactionResultStatus}}),Object.defineProperty(u,"SetLeftFeature",{enumerable:!0,get:function(){return s.SetLeftFeature}}),Object.defineProperty(u,"SimpleFilter",{enumerable:!0,get:function(){return s.SimpleFilter}}),Object.defineProperty(u,"SortController",{enumerable:!0,get:function(){return s.SortController}}),Object.defineProperty(u,"StandardMenuFactory",{enumerable:!0,get:function(){return s.StandardMenuFactory}}),Object.defineProperty(u,"StylingService",{enumerable:!0,get:function(){return s.StylingService}}),Object.defineProperty(u,"TabGuardComp",{enumerable:!0,get:function(){return s.TabGuardComp}}),Object.defineProperty(u,"TabGuardCtrl",{enumerable:!0,get:function(){return s.TabGuardCtrl}}),Object.defineProperty(u,"TabbedLayout",{enumerable:!0,get:function(){return s.TabbedLayout}}),Object.defineProperty(u,"TemplateService",{enumerable:!0,get:function(){return s.TemplateService}}),Object.defineProperty(u,"TextCellEditor",{enumerable:!0,get:function(){return s.TextCellEditor}}),Object.defineProperty(u,"TextFilter",{enumerable:!0,get:function(){return s.TextFilter}}),Object.defineProperty(u,"TextFloatingFilter",{enumerable:!0,get:function(){return s.TextFloatingFilter}}),Object.defineProperty(u,"TouchListener",{enumerable:!0,get:function(){return s.TouchListener}}),Object.defineProperty(u,"UserComponentFactory",{enumerable:!0,get:function(){return s.UserComponentFactory}}),Object.defineProperty(u,"UserComponentRegistry",{enumerable:!0,get:function(){return s.UserComponentRegistry}}),Object.defineProperty(u,"ValueCache",{enumerable:!0,get:function(){return s.ValueCache}}),Object.defineProperty(u,"ValueFormatterService",{enumerable:!0,get:function(){return s.ValueFormatterService}}),Object.defineProperty(u,"ValueService",{enumerable:!0,get:function(){return s.ValueService}}),Object.defineProperty(u,"VanillaFrameworkOverrides",{enumerable:!0,get:function(){return s.VanillaFrameworkOverrides}}),Object.defineProperty(u,"VerticalDirection",{enumerable:!0,get:function(){return s.VerticalDirection}}),Object.defineProperty(u,"VirtualList",{enumerable:!0,get:function(){return s.VirtualList}}),Object.defineProperty(u,"XmlFactory",{enumerable:!0,get:function(){return s.XmlFactory}}),Object.defineProperty(u,"ZipContainer",{enumerable:!0,get:function(){return s.ZipContainer}}),Object.defineProperty(u,"defaultGroupComparator",{enumerable:!0,get:function(){return s.defaultGroupComparator}}),Object.defineProperty(u,"initialiseAgGridWithAngular1",{enumerable:!0,get:function(){return s.initialiseAgGridWithAngular1}}),Object.defineProperty(u,"initialiseAgGridWithWebComponents",{enumerable:!0,get:function(){return s.initialiseAgGridWithWebComponents}}),Object.defineProperty(u,"simpleHttpRequest",{enumerable:!0,get:function(){return s.simpleHttpRequest}}),u.LicenseManager=w,u.SetFilter=mT,u.exportMultipleSheetsAsExcel=nf,u.getMultipleSheetsAsExcel=Jc})(ite);const ate=d.defineComponent({name:"AgTable",components:{AgGridVue:AL.AgGridVue,ColumnCheck:PL},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","onSelectionChanged","onViewportChanged","onRowSelected","onRowClicked"],setup(u,s){var re;const m=Pr.state.locale;let v=null;const w=u.componentOption,S=u.pageKey;let E=-1,O={};const R=d.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(re=w.configFlag)==null?void 0:re.headerClass},columnDefs:[],configFlag:{rowHeight:40,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,showIndex:!1,pagination:!0,layout:"total, sizes, prev, pager, next, jumper",border:!0,isRowClick:!1,groupSelectsChildren:!1,groupDefaultExpanded:0,autoGroupColumnDef:{}},pageInfo:w.pageInfo,rowData:d.computed(()=>{var Y;const ie=((Y=w.data)==null?void 0:Y.result)||[];return ie.length&&setTimeout(()=>{R.showTable=!0},300),ie}),totalNum:d.computed(()=>{var ie;return Number(((ie=w.data)==null?void 0:ie.totalNum)||0)}),storageColumnsKey:d.computed(()=>(S||"")+(w.key||"")+(w.status||"")),gridApi:null,columnUpdate:0});if(w.configFlag&&(Object.keys(w.configFlag).forEach(ie=>{R.configFlag[ie]=w.configFlag[ie]}),w.configFlag.total&&d.watch(()=>w.data.result,()=>{L()}),w.configFlag.isRowClick)){const ie=Qi(Pr,S,w.target);w.onRowClickedFn=Y=>{Pr.dispatch("_TABLE_QUERY",{pageKey:S,tableComp:ie,row:Y})},d.watch(()=>w.data.result,()=>{E=-1})}d.watch(()=>w.columns,()=>{const ie=w.columns.filter(Y=>!Y.rowGroup&&!Y.checkboxSelection?(Y.hide=Y.hide?Y.hide:!1,!Y.hide):Y);P(ie),R.columnUpdate=Date.now(),setTimeout(()=>{R.configFlag.sizeColumnsToFit&&v.sizeColumnsToFit()})}),P(w.columns.filter(ie=>ie.rowGroup||!ie.hide));function P(ie){var Y,he;D(ie),(Y=w.configFlag)!=null&&Y.checkboxSelection?(R.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:R.configFlag.checkboxSelection,lockPosition:!0,pinned:"left"},...ie],w.onSelectionChanged=(oe,ae)=>{w.selectedRows=oe,w.selectedNodes=ae}):R.columnDefs=ie,(he=w.configFlag)!=null&&he.showIndex&&R.columnDefs.unshift({headerName:" ",maxWidth:30,valueGetter:"node.id",resizable:!1,pinned:"left",cellStyle:{textAlign:"center"},cellRenderer:oe=>Number(oe.value)+1}),k()}function D(ie){ie.forEach(Y=>{var he;if(Y.rowGroup&&(R.configFlag.autoGroupColumnDef={headerName:" ",width:70,minWidth:70,resizable:!1,lockPosition:!0,pinned:"left"},R.configFlag.groupSelectsChildren=!0),Y.headerTip&&(Y.headerComponentFramework="HeaderTip",Y.headerComponentParams={text:Y.headerTip}),Y.cellRendererParams&&Y.cellRendererParams.url){Y.cellRendererFramework="CellItemEdit";const oe=Y.cellRendererParams,ae=oe.callBack;oe.callBackFn=(de,ve,Te)=>{const Oe=oe.params?oe.params(de,ve,Te):{};Oe[ve]=Te;let Re=oe.method=="GET"?"params":"data";Od({url:Pr.state._BASE_URL+oe.url,[Re]:Oe,method:oe.method||"POST"}).then(fe=>{de[ve]=Te,ae&&ae(de,fe)})}}if(Y.component){const oe=(he=d.getCurrentInstance())==null?void 0:he.appContext.components.AgTable;oe&&Object.keys(Y.component).forEach(ae=>{oe.components[ae]=Y.component[ae]})}Y.field=="action"&&(Y.cellRendererFramework="CellOperation",Y.cellRendererParams={...Y,pageKey:S})})}function L(){const ie=[];let Y={};R.columnDefs.map((he,oe)=>{Y.type="total",oe===0?Y[he.field]="总计":he.showTotal?Y[he.field]=N(w.data.result,he.field):Y[he.field]=""}),ie.push(Y),v.setPinnedBottomRowData(ie)}function N(ie,Y){let he=0;for(let oe=0;oe<ie.length;oe++)he=yL(he,parseFloat(ie[oe][Y]?ie[oe][Y]:0));return he}function k(){let ie=localStorage.getItem(R.storageColumnsKey);ie&&(JSON.parse(ie).forEach((he,oe)=>{for(let ae=0,de=R.columnDefs.length;ae<de;ae++){const ve=R.columnDefs[ae];if(ve.headerName.trim()&&ve.headerName===he.headerName){ve.index=oe,ve.width=he.width,ve.minWidth=he.minWidth,ve.hide=he.hide||!1;break}}}),R.columnDefs.sort((he,oe)=>he.index-oe.index))}function F(ie){if(!R.storageColumnsKey)return;let Y=ie.api.getColumnDefs();Y=Y.map((he,oe)=>(he.hide&&(R.columnDefs[oe].hide=!0),{field:he.field,headerName:he.headerName,width:he.width,minWidth:he.minWidth,hide:he.hide})),localStorage.setItem(R.storageColumnsKey,JSON.stringify(Y)),R.columnUpdate=Date.now()}function G(ie){const Y=u.getRowStyle?u.getRowStyle(ie):{},he=ie.api.getRowNode(ie.rowIndex);return typeof R.configFlag.checkboxSelection=="function"&&(he.selectable=R.configFlag.checkboxSelection(ie)),ie.node.rowPinned&&(Y["font-weight"]="bold",Y.color="red"),ie.node.isClicked===void 0?Y:ie.node.isClicked?{"background-color":"#ffe48d",...Y}:{"background-color":"",...Y}}function V(ie){R.configFlag.onRowSelected&&R.configFlag.onRowSelected(ie)}function j(){s.emit("onViewportChanged"),R.configFlag.onViewportChanged&&R.configFlag.onViewportChanged()}function $(ie){v=R.gridApi=ie.api,R.configFlag.sizeColumnsToFit&&ie.api.sizeColumnsToFit(),s.emit("onGridReady",ie.api),R.configFlag.onGridReady&&R.configFlag.onGridReady(ie.api),w.gridApi=ie.api}function W(ie){var Y=ie.api.getSelectedNodes(),he=ie.api.getSelectedRows();s.emit("onSelectionChanged",he),w.onSelectionChanged&&w.onSelectionChanged(he,Y),R.configFlag.onSelectionChanged&&R.configFlag.onSelectionChanged(he,Y)}function K(ie){if(!ie.rowPinned&&E!==ie.rowIndex&&R.configFlag.isRowClick){if(E>-1){const he=ie.api.getRowNode(E);he.isClicked=!1,he.setData(O)}const Y=ie.api.getRowNode(ie.rowIndex);Y.isClicked=!0,Y.setData(ie.data),w.onRowClickedFn&&w.onRowClickedFn(ie,w),E=ie.rowIndex,O=ie.data}}function Z(ie){R.configFlag.onCellClicked&&R.configFlag.onCellClicked({field:ie.colDef.field,data:ie.data,rowIndex:ie.rowIndex,tableComp:w},ie)}function q(ie){w.pageInfo.pageSize=ie,Pr.dispatch("_TABLE_QUERY",{tableComp:w,pageKey:u.pageKey})}function Q(ie){w.pageInfo.pageNum=ie,w.pageInfo.currentPage=ie,Pr.dispatch("_TABLE_QUERY",{tableComp:w,pageKey:u.pageKey})}return{locale:m,...d.toRefs(R),onGridReady:$,dragStopped:F,sizeChange:q,onSelectionChanged:W,currentChange:Q,viewportChanged:j,onRowSelected:V,onRowClicked:K,onCellClicked:Z,getRowStyle:G}}}),ste={style:{display:"flex","justify-content":"end"}};function lte(u,s,m,v,w,S){const E=d.resolveComponent("ag-grid-vue"),O=uN,R=HM,P=PL;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(E,{class:d.normalizeClass(["ag-theme-alpine",[u.storageColumnsKey]]),style:d.normalizeStyle({opacity:u.showTable?1:0,...u.configFlag.style||{}}),headerHeight:"22",rowHeight:u.configFlag.rowHeight,columnDefs:u.columnDefs,defaultColDef:u.defaultColDef,rowData:u.rowData,rowSelection:"multiple",rowMultiSelectWithClick:u.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:u.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(u.configFlag.suppressRowClickSelection||!u.configFlag.suppressRowClickSelection&&u.configFlag.suppressRowClickSelection!==!1),onGridReady:u.onGridReady,onSelectionChanged:u.onSelectionChanged,getRowStyle:u.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:u.configFlag.groupSelectsChildren,groupDefaultExpanded:u.configFlag.groupDefaultExpanded,onViewportChanged:u.viewportChanged,onRowSelected:u.onRowSelected,onRowClicked:u.onRowClicked,onDragStopped:u.dragStopped,onCellClicked:u.onCellClicked,suppressAggFuncInHeader:!0,suppressContextMenu:!0},null,8,["class","style","rowHeight","columnDefs","defaultColDef","rowData","rowMultiSelectWithClick","autoGroupColumnDef","suppressRowClickSelection","onGridReady","onSelectionChanged","getRowStyle","groupSelectsChildren","groupDefaultExpanded","onViewportChanged","onRowSelected","onRowClicked","onDragStopped","onCellClicked"]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((u.componentOption.children||[]).filter(D=>D.slot),D=>d.renderSlot(u.$slots,D.slot,{key:D.slot})),128)),d.renderSlot(u.$slots,"default"),d.createVNode(R,{locale:u.locale},{default:d.withCtx(()=>[d.createElementVNode("div",ste,[u.pageInfo&&u.configFlag.pagination?(d.openBlock(),d.createBlock(O,{style:{"margin-top":"5px"},total:u.totalNum,pageNum:u.pageInfo.pageNum,pageSize:u.pageInfo.pageSize,layout:u.configFlag.layout,onSizeChange:u.sizeChange,onCurrentChange:u.currentChange,"page-sizes":u.configFlag.pageSize||[20,50,100,300,500],small:"",key:u.componentOption.resetPagination,"prev-text":u.configFlag.prevText||"","next-text":u.configFlag.nextText||""},null,8,["total","pageNum","pageSize","layout","onSizeChange","onCurrentChange","page-sizes","prev-text","next-text"])):d.createCommentVNode("",!0)])]),_:1},8,["locale"]),d.createVNode(P,{gridApi:u.gridApi,storageColumnsKey:u.storageColumnsKey,columnDefs:u.columnDefs,columnUpdate:u.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const vg=In(ate,[["render",lte]]),ute=d.defineComponent({name:"CellItemEdit",components:{ElInput:ri,ElDatePicker:mE,ElSelect:Oc,ElOption:lg,EditPen:o8},setup(){const u=d.ref();let s={},m={},v=d.reactive({showInput:!1,modelData:"",params:{data:{}},type:"",options:[],labelValue:{label:"label",value:"value"}});d.onBeforeMount(()=>{const{data:{params:R}}=d.getCurrentInstance();if(R.data&&Object.keys(R.data).length)if(R.type==="select"){const P=R.store?R.store.state[R.enumKey]||[]:R.option;v.options=P,v.modelData=E(v.options,R.data[R.dataKey])}else R.format==="date"?v.modelData=R.data[R.dataKey]?dg(R.data[R.dataKey],"yyyy-MM-dd"):"":v.modelData=R.data[R.dataKey]?R.data[R.dataKey]:R.data[R.dataKey]===0?0:"";v.params=R,v.type=R.type});function w(){v.showInput=!0,d.nextTick(()=>{u.value.focus()})}function S(){if(s=v.params,m=v.params.data,v.modelData===m[s.dataKey]){v.showInput=!1,s.type==="select"&&(v.modelData=E(v.options,v.modelData));return}if(s.type==="number"&&!v.modelData)v.modelData=0;else if(s.type==="date"&&(v.modelData=dg(v.modelData,"yyyy-MM-dd"),s.format==="date"&&!v.modelData)){Nn.warning("不能为空");return}s.callBackFn&&s.callBackFn(s.data,s.dataKey,v.modelData,s.rowIndex),s.editblur&&s.editblur(s.data,s.dataKey,v.modelData,s.rowIndex),s.type==="select"?v.modelData=E(v.options,v.modelData):v.showInput=!1}function E(R,P){for(var D=0;D<R.length;D++)if(R[D][v.labelValue.value]===P)return R[D][v.labelValue.label]}function O(){setTimeout(()=>{v.showInput=!1},150)}return{inputRef:u,...d.toRefs(v),showEditInput:w,editBlur:S,selectBlur:O}}}),wle="",cte={style:{display:"flex",width:"100%"}},pte={key:1,class:"edit-info"};function dte(u,s,m,v,w,S){const E=ri,O=mE,R=lg,P=Oc,D=d.resolveComponent("EditPen"),L=Tt;return u.type?(d.openBlock(),d.createElementBlock("div",{key:0,style:d.normalizeStyle([{...typeof u.params.style=="function"?u.params.style(u.params.data)||{}:u.params.style||{},"min-height":(u.params.minHeight||30)+"px"},{display:"flex","align-items":"center"}])},[u.params.data&&u.params.data.type=="total"||u.params.hideEdit&&u.params.hideEdit(u.params.data)?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[d.createTextVNode(d.toDisplayString(u.params.data[u.params.dataKey]),1)],64)):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[u.showInput?(d.openBlock(),d.createElementBlock("div",{key:0,onClick:s[8]||(s[8]=d.withModifiers(()=>{},["stop"])),style:{flex:"1"}},[u.type==="text"||u.type==="number"?(d.openBlock(),d.createBlock(E,{key:0,ref:"inputRef",type:u.type,size:"small",modelValue:u.modelData,"onUpdate:modelValue":s[0]||(s[0]=N=>u.modelData=N),modelModifiers:{trim:!0},onBlur:s[1]||(s[1]=N=>u.editBlur())},null,8,["type","modelValue"])):d.createCommentVNode("",!0),u.type==="textarea"?(d.openBlock(),d.createBlock(E,{key:1,ref:"inputRef",type:u.type,size:"small",rows:1,modelValue:u.modelData,"onUpdate:modelValue":s[2]||(s[2]=N=>u.modelData=N),onBlur:s[3]||(s[3]=N=>u.editBlur()),onKeydown:s[4]||(s[4]=d.withModifiers(()=>{},["stop"]))},null,8,["type","modelValue"])):d.createCommentVNode("",!0),u.type==="date"?(d.openBlock(),d.createBlock(O,{key:2,ref:"inputRef",modelValue:u.modelData,"onUpdate:modelValue":s[5]||(s[5]=N=>u.modelData=N),type:"date",size:"small",onBlur:s[6]||(s[6]=N=>u.editBlur())},null,8,["modelValue"])):d.createCommentVNode("",!0),u.type==="select"?(d.openBlock(),d.createBlock(P,{key:3,ref:"inputRef",modelValue:u.modelData,"onUpdate:modelValue":s[7]||(s[7]=N=>u.modelData=N),size:"small",filterable:"",clearable:"",onBlur:u.selectBlur,onChange:u.editBlur},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.options,N=>(d.openBlock(),d.createBlock(R,{key:N.id,label:N[u.labelValue.label],value:N[u.labelValue.value]},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onBlur","onChange"])):d.createCommentVNode("",!0)])):d.createCommentVNode("",!0),d.withDirectives(d.createElementVNode("span",cte,[u.params.isSlot?d.renderSlot(u.$slots,"default",{key:0}):(d.openBlock(),d.createElementBlock("span",pte,d.toDisplayString(u.modelData),1)),d.createVNode(L,{class:"el-icon-edit",style:{color:"#67c23a",width:"16px",height:"16px",cursor:"pointer"},onClick:s[9]||(s[9]=d.withModifiers(N=>u.showEditInput(),["stop"]))},{default:d.withCtx(()=>[d.createVNode(D)]),_:1})],512),[[d.vShow,!u.showInput&&u.params.data&&!u.params.data.hideEdit]])],64))],4)):d.createCommentVNode("",!0)}const bx=In(ute,[["render",dte]]),fte=d.defineComponent({setup(){const u=d.reactive({row:{},params:{},elementGroup:[],groupRow:{}});function s(w){v(w.option)!=0&&(w.option.event==="dialog"?m(w):w.option.handleClick(w))}function m({option:w,row:S,index:E}){if(w.showDialogBefore){let R={};if(w.relation&&(R=Ss(Pr,u.params.pageKey,w.relation)),S&&(R.row=S),w.showDialogBefore(R,S,E)===!1)return}const O=Pr.getters._GET_DIALOGREF(u.params.pageKey);if(O.option=w,O.showDialog(S),w.formTarget){const R=Qi(Pr,u.params.pageKey,w.formTarget);R.row=S}}function v(w){return typeof w.text=="function"?w.text(u.row):w.text}return d.onMounted(()=>{const{data:{params:w}}=d.getCurrentInstance();u.row=w.data,u.params=w,u.elementGroup=w.elementGroup;const S=w.node.childrenAfterFilter;u.groupRow=S&&S[0]?S[0].data:{}}),{...d.toRefs(u),getButtonText:v,handleClick:s}}}),ble="",hte=["type","disabled","onClick"],gte=["type","disabled","onClick"];function mte(u,s,m,v,w,S){const E=Na;return u.params.node&&!u.params.node.rowPinned?(d.openBlock(),d.createElementBlock("div",{key:0,onClick:s[0]||(s[0]=d.withModifiers(()=>{},["stop"])),class:"cell-operation-btn-box"},[u.params.multiLine?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(u.row[u.params.multiLine],(O,R)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["cell-btns-row",u.params.className])},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.elementGroup,P=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.label},[P.type==="text"?d.withDirectives((d.openBlock(),d.createElementBlock("span",{key:0,class:"dfs-text-btn",style:d.normalizeStyle(P.style),type:P.buttonType||"primary",disabled:typeof P.disabled=="function"?P.disabled(u.row,R):P.disabled,onClick:D=>u.handleClick({option:P,row:u.row?u.row:u.groupRow,gridOption:u.params,index:R})},d.toDisplayString(u.getButtonText(P)),13,gte)),[[d.vShow,P.isShow===void 0||P.isShow===!0||typeof P.isShow=="function"&&P.isShow(u.row,R)||P.isShow.prop&&u.searchData[P.isShow.prop]==P.isShow.value]]):d.withDirectives((d.openBlock(),d.createBlock(E,{key:1,type:P.buttonType||"primary",disabled:typeof P.disabled=="function"?P.disabled(u.row):P.disabled,size:"small",onClick:D=>u.handleClick({option:P,row:u.row?u.row:u.groupRow,gridOption:u.params,index:R})},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(u.getButtonText(P)),1)]),_:2},1032,["type","disabled","onClick"])),[[d.vShow,P.isShow===void 0||P.isShow===!0||typeof P.isShow=="function"&&P.isShow(u.row,R)||P.isShow.prop&&u.searchData[P.isShow.prop]==P.isShow.value]])],64))),128))],2))),256)):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(u.elementGroup,O=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:O.label},[O.type==="text"?d.withDirectives((d.openBlock(),d.createElementBlock("span",{key:0,class:d.normalizeClass([u.getButtonText(O)==0?"pd-2":"dfs-text-btn",O.class]),style:d.normalizeStyle(O.style),type:O.buttonType||"primary",disabled:typeof O.disabled=="function"?O.disabled(u.row):O.disabled,onClick:R=>u.handleClick({option:O,row:u.row?u.row:u.groupRow,gridOption:u.params})},d.toDisplayString(u.getButtonText(O)),15,hte)),[[d.vShow,O.isShow===void 0||O.isShow===!0||typeof O.isShow=="function"&&O.isShow(u.row)||O.isShow.prop&&u.searchData[O.isShow.prop]==O.isShow.value]]):d.withDirectives((d.openBlock(),d.createBlock(E,{key:1,type:O.buttonType||"primary",disabled:typeof O.disabled=="function"?O.disabled(u.row):O.disabled,size:"small",onClick:R=>u.handleClick({option:O,row:u.row?u.row:u.groupRow,gridOption:u.params})},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(u.getButtonText(O)),1)]),_:2},1032,["type","disabled","onClick"])),[[d.vShow,O.isShow===void 0||O.isShow===!0||typeof O.isShow=="function"&&O.isShow(u.row)||O.isShow.prop&&u.searchData[O.isShow.prop]==O.isShow.value]])],64))),128))])):d.createCommentVNode("",!0)}const GL=In(fte,[["render",mte]]),_le="",vte=d.defineComponent({name:"HeaderTip",setup(){const u=d.reactive({params:{}});return d.onBeforeMount(()=>{const{data:s}=d.getCurrentInstance();u.params=s.params}),{...d.toRefs(u)}}}),yte="data:image/gif;base64,R0lGODlhCgARALMNAP/u7v8REf/d3f9ERP+7u//MzP8iIv9VVf8zM/93d/+IiP9mZv8AAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkNCMjczRjU5RjFERjExRTNCMjEzODIyQTlFMDA3N0NBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkNCMjczRjVBRjFERjExRTNCMjEzODIyQTlFMDA3N0NBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0IyNzNGNTdGMURGMTFFM0IyMTM4MjJBOUUwMDc3Q0EiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0IyNzNGNThGMURGMTFFM0IyMTM4MjJBOUUwMDc3Q0EiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4B//79/Pv6+fj39vX08/Lx8O/u7ezr6uno5+bl5OPi4eDf3t3c29rZ2NfW1dTT0tHQz87NzMvKycjHxsXEw8LBwL++vby7urm4t7a1tLOysbCvrq2sq6qpqKempaSjoqGgn56dnJuamZiXlpWUk5KRkI+OjYyLiomIh4aFhIOCgYB/fn18e3p5eHd2dXRzcnFwb25tbGtqaWhnZmVkY2JhYF9eXVxbWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkFAPz49PDs6OTg3NjU0MzIxMC8uLSwrKikoJyYlJCMiISAfHh0cGxoZGBcWFRQTEhEQDw4NDAsKCQgHBgUEAwIBAAAh+QQJMgANACwAAAAACgARAAAEKLDJSattKTBm1FyedDBhJTCLBQwIUClBWiUMcdHFJQk3qf/AoHDYiAAAIfkEBTIADQAsAAAAAAoAEQAABCmwyUllCowZNReXB/NVArNUDTAgQKUEZ5UwBNrMhS0J9jzqwKBwSNRFAAA7",Cte={class:"ag-header-cell-tip"},wte={style:{"max-width":"220px"}},bte=d.createElementVNode("img",{class:"",src:yte,alt:""},null,-1);function _te(u,s,m,v,w,S){const E=_c;return d.openBlock(),d.createElementBlock("span",Cte,[d.createVNode(E,{placement:"top",effect:"light"},{content:d.withCtx(()=>[d.createElementVNode("p",wte,d.toDisplayString(u.params.text),1)]),default:d.withCtx(()=>[bte]),_:1}),d.createTextVNode(" "+d.toDisplayString(u.params.displayName),1)])}const VL=In(vte,[["render",_te]]),Ste=d.defineComponent({name:"ChildrenComponent",components:{CellItemEdit:bx,CellOperation:GL,HeaderTip:VL},props:{pageKey:{type:String,required:!0},configOption:{type:Array,default:[]}},setup(u){return{getAllSlots:xL}}});function Ete(u,s,m,v,w,S){const E=d.resolveComponent("ChildrenComponent",!0);return d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.configOption,O=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(O.type),{key:(O.updateKey||"")+O.key,componentOption:O,pageKey:u.pageKey},d.createSlots({default:d.withCtx(()=>[O.children&&O.children.length?(d.openBlock(),d.createBlock(E,{key:0,pageKey:u.pageKey,configOption:O.children},d.createSlots({_:2},[d.renderList(u.getAllSlots(O),R=>({name:R.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,R.slot)])}))]),1032,["pageKey","configOption"])):d.createCommentVNode("",!0)]),_:2},[d.renderList(u.getAllSlots(O),R=>({name:R.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,R.slot)])}))]),1032,["componentOption","pageKey"]))),128)}const _x=In(Ste,[["render",Ete]]),xte=d.defineComponent({name:"Dialog",components:{WarningFilled:by},props:{pageKey:{type:String,required:!0}},setup(u){const s=eu(),m=d.reactive({option:{},component:{},dialog:!1,title:d.computed(()=>typeof m.component.title=="function"?m.component.title():m.component.title)});function v(S){const E=Qi(s,u.pageKey,m.option.target);S&&E.children&&E.children.forEach(O=>{O.type==="Form"&&(O.row=S)}),m.component=E,m.dialog=!0}function w(){m.dialog=!1}return{...d.toRefs(m),store:s,showDialog:v,closeDialog:w}}}),Sle="";function Ote(u,s,m,v,w,S){const E=d.resolveComponent("WarningFilled"),O=Tt,R=_x,P=yE;return d.openBlock(),d.createBlock(P,{class:"dfs-page-config-dialog",title:u.title,modelValue:u.dialog,"onUpdate:modelValue":s[0]||(s[0]=D=>u.dialog=D),width:u.component.width||"500px",center:"","close-on-click-modal":!1,key:u.component.updateKey},{header:d.withCtx(()=>[d.createElementVNode("p",null,[u.component.dialogType==="warning"?(d.openBlock(),d.createBlock(O,{key:0,style:{position:"relative",top:"2px"}},{default:d.withCtx(()=>[d.createVNode(E,{color:"#e6a23c"})]),_:1})):d.createCommentVNode("",!0),d.createTextVNode(" "+d.toDisplayString(u.title),1)])]),default:d.withCtx(()=>[d.createVNode(R,{configOption:u.component.children,pageKey:u.pageKey},d.createSlots({_:2},[d.renderList(u.component.children||[].filter(D=>D.slot),D=>({name:D.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,D.slot,{slot:D.slot})])}))]),1032,["configOption","pageKey"])]),_:3},8,["title","modelValue","width"])}const Pd=In(xte,[["render",Ote]]),Ele="",xle="",Rte=d.defineComponent({name:"Descriptions",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(u){const s=eu();function m(v){if(typeof v.text=="function"){let w={};return u.componentOption.relation&&(w=Ss(s,u.pageKey,u.componentOption.relation)),v.text(w)}return v.text}return{getText:m}}}),Pte=["innerHTML"];function Ate(u,s,m,v,w,S){const E=h7,O=f7;return d.openBlock(),d.createBlock(O,{title:u.componentOption.title,direction:u.componentOption.vertical||"horizontal",column:u.componentOption.column||1,size:u.componentOption.size,border:u.componentOption.border,style:d.normalizeStyle([u.componentOption.style,{"margin-bottom":"10px"}])},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.componentOption.children,R=>(d.openBlock(),d.createBlock(E,{key:R.text.toString(),label:R.label,span:R.span,align:R.align||"left"},{default:d.withCtx(()=>[d.createElementVNode("div",{innerHTML:u.getText(R)},null,8,Pte)]),_:2},1032,["label","span","align"]))),128))]),_:1},8,["title","direction","column","size","border","style"])}const Tte=In(Rte,[["render",Ate]]),Ole="",Dte=d.defineComponent({name:"Card",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(){}}),Fte={class:"clearfix"};function Mte(u,s,m,v,w,S){const E=I$;return d.openBlock(),d.createBlock(E,{class:"components-card",style:d.normalizeStyle(u.componentOption.style)},{header:d.withCtx(()=>[d.createElementVNode("div",Fte,[d.createElementVNode("span",null,d.toDisplayString(u.componentOption.label),1)])]),default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((u.componentOption.children||[]).filter(O=>O.slot),O=>d.renderSlot(u.$slots,O.slot,{key:O.slot})),128)),d.renderSlot(u.$slots,"default")]),_:3},8,["style"])}const Nte=In(Dte,[["render",Mte]]),Rle="",Ite=d.defineComponent({name:"Row",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(){}});function Lte(u,s,m,v,w,S){const E=KY;return d.openBlock(),d.createBlock(E,{class:"components-row",style:d.normalizeStyle(u.componentOption.style)},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList((u.componentOption.children||[]).filter(O=>O.slot),O=>d.renderSlot(u.$slots,O.slot,{key:O.slot})),128)),d.renderSlot(u.$slots,"default")]),_:3},8,["style"])}const kte=In(Ite,[["render",Lte]]),Bte=u=>{[mg,Oee,vg,Pd,Tte,Nte,kte].map(m=>{u.component(m.name,m)})},Gte=d.defineComponent({name:"SplitScreen",components:{CellItemEdit:bx},setup(){const u=d.ref(),s=d.ref(),m=d.ref(),v=d.ref();return d.onMounted(()=>{setTimeout(()=>{let w=0;const S=u.value.clientHeight,E=document.querySelector(".el-header"),O=E?E.clientHeight:0,R=document.querySelector(".header-btns"),P=O+5+3+(R?R.clientHeight:0),D=v.value;D.addEventListener("mousedown",L,{passive:!1});function L(N){const k=N||event;document.addEventListener("mousemove",F,!1);function F(V){w=((V||event).clientY-P)/S*100,w<0?w=0:w>99&&(w=99),D.style.top=w+"%"}document.addEventListener("mouseup",G,!1);function G(){s.value.style.bottom=100-w+"%",m.value.style.top=w+"%",document.removeEventListener("mousemove",F,!1),document.removeEventListener("mouseup",G,!1),D.releaseCapture&&D.releaseCapture()}k.preventDefault(),D.setCapture&&D.setCapture()}},1e3)}),{parentRef:u,listRef:s,detailRef:m,dragRef:v}}}),Ple="",Vte=u=>(d.pushScopeId("data-v-357251e0"),u=u(),d.popScopeId(),u),Wte={class:"parent",ref:"parentRef"},Hte={class:"pannel-container top-pannel",ref:"listRef"},jte={class:"drag-trigger",ref:"dragRef"},zte=[Vte(()=>d.createElementVNode("div",{class:"trigger-bar"},[d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em"),d.createElementVNode("em")],-1))],$te={class:"pannel-container bottom-pannel",ref:"detailRef"};function Ute(u,s,m,v,w,S){return d.openBlock(),d.createElementBlock("div",Wte,[d.createElementVNode("div",Hte,[d.renderSlot(u.$slots,"top",{},void 0,!0)],512),d.createElementVNode("div",jte,zte,512),d.createElementVNode("div",$te,[d.renderSlot(u.$slots,"bottom",{},void 0,!0)],512)],512)}const Kte=In(Gte,[["render",Ute],["__scopeId","data-v-357251e0"]]),Yte=d.defineComponent({components:{SplitScreen:Kte,ChildrenComponent:_x,HeaderTip:VL,CellOperation:GL,CellItemEdit:bx},props:{pageConfigData:{type:Object,default:{}}},setup(u){const s=eu(),m=d.ref(),v=u.pageConfigData,w=[];return v.components.forEach(S=>{S.type==="SplitScreen"?S.topComponents&&S.downComponents&&w.push(...S.topComponents,...S.downComponents):w.push(S)}),JJ({pageKey:v.pageKey,components:w,dialogRef:m},s),YJ(S=>{const E=S.target.dataset.pagekey,O=S.target.dataset.target;O&&eee(s,E,O)}),{dialogRef:m,getAllSlots:xL}}}),qte={class:"ag-grid-container"};function Xte(u,s,m,v,w,S){const E=_x,O=Pd;return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",qte,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.pageConfigData.components.filter(R=>R.type!=="dialog"),R=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:R.key},[R.slot?d.renderSlot(u.$slots,R.slot,{key:0}):R.type==="SplitScreen"?(d.openBlock(),d.createBlock(d.resolveDynamicComponent(R.type),{key:1,componentOption:R,pageKey:u.pageConfigData.pageKey},{top:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(R.topComponents.filter(P=>P.type!=="dialog"),(P,D)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.key||D},[P.slot?d.renderSlot(u.$slots,P.slot,{key:0}):d.createCommentVNode("",!0),(d.openBlock(),d.createBlock(d.resolveDynamicComponent(P.type),{componentOption:P,pageKey:u.pageConfigData.pageKey},d.createSlots({default:d.withCtx(()=>[d.createVNode(E,{configOption:P.children,pageKey:u.pageConfigData.pageKey},d.createSlots({_:2},[d.renderList(u.getAllSlots(P),L=>({name:L.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,L.slot)])}))]),1032,["configOption","pageKey"])]),_:2},[d.renderList(u.getAllSlots(P),L=>({name:L.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,L.slot)])}))]),1032,["componentOption","pageKey"]))],64))),128))]),bottom:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(R.downComponents.filter(P=>P.type!=="dialog"),P=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.key},[P.slot?d.renderSlot(u.$slots,P.slot,{key:0}):d.createCommentVNode("",!0),(d.openBlock(),d.createBlock(d.resolveDynamicComponent(P.type),{componentOption:P,pageKey:u.pageConfigData.pageKey},d.createSlots({default:d.withCtx(()=>[d.createVNode(E,{configOption:P.children,pageKey:u.pageConfigData.pageKey},d.createSlots({_:2},[d.renderList(u.getAllSlots(P),D=>({name:D.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,D.slot)])}))]),1032,["configOption","pageKey"])]),_:2},[d.renderList(u.getAllSlots(P),D=>({name:D.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,D.slot)])}))]),1032,["componentOption","pageKey"]))],64))),128))]),_:2},1032,["componentOption","pageKey"])):(d.openBlock(),d.createBlock(d.resolveDynamicComponent(R.type),{key:2,componentOption:R,pageKey:u.pageConfigData.pageKey},d.createSlots({default:d.withCtx(()=>[d.createVNode(E,{configOption:R.children,pageKey:u.pageConfigData.pageKey},d.createSlots({_:2},[d.renderList(u.getAllSlots(R),P=>({name:P.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,P.slot)])}))]),1032,["configOption","pageKey"])]),_:2},[d.renderList(u.getAllSlots(R),P=>({name:P.slot,fn:d.withCtx(()=>[d.renderSlot(u.$slots,P.slot)])}))]),1032,["componentOption","pageKey"]))],64))),128))]),u.pageConfigData.components.filter(R=>R.type==="dialog").length?(d.openBlock(),d.createBlock(O,{key:0,ref:"dialogRef",pageKey:u.pageConfigData.pageKey},{default:d.withCtx(R=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(u.pageConfigData.components.filter(P=>P.type==="dialog"),P=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:P.key},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(P.children.filter(D=>D.slot),D=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:D.slot},[D.slot==R.slot?d.renderSlot(u.$slots,D.slot,{key:0}):d.createCommentVNode("",!0)],64))),128))],64))),128))]),_:3},8,["pageKey"])):d.createCommentVNode("",!0)],64)}const Zte=In(Yte,[["render",Xte]]);mg.install=u=>u.component(mg.name,mg),gg.install=u=>u.component(gg.name,gg),Rd.install=u=>u.component(Rd.name,Rd),Pd.install=u=>u.component(Pd.name,Pd);const Tle="",Dle="";/**!
|
|
1989
1989
|
* Sortable 1.15.0
|
|
1990
1990
|
* @author RubaXa <trash@rubaxa.org>
|
|
1991
1991
|
* @author owenm <owen23355@gmail.com>
|