dfs-page-config 0.0.0 → 0.0.2
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
|
@@ -35643,7 +35643,7 @@ function zA(l, c, d, h, g, C) {
|
|
|
35643
35643
|
}
|
|
35644
35644
|
const $A = /* @__PURE__ */ je(jA, [["render", zA], ["__scopeId", "data-v-6a413dd6"]]);
|
|
35645
35645
|
function YA(l, c) {
|
|
35646
|
-
l.component("DfsPageConfig", $A);
|
|
35646
|
+
console.log(l), l.component("DfsPageConfig", $A);
|
|
35647
35647
|
}
|
|
35648
35648
|
export {
|
|
35649
35649
|
YA as default
|
|
@@ -1494,4 +1494,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1494
1494
|
*/var Yo=typeof pl>"u"?{}:pl;Yo.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,Yo.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,Yo.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,Yo.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,Yo.Node=typeof Node>"u"?{}:Node,Yo.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var mh=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},UP=function(){function i(t,e,o,r,n,s,a,u){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=e,this.eventService=o,this.columnModel=r,this.gridApi=n,this.columnApi=s,this.beans=u,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=i.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return i.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},i.prototype.getCopyOfNodesMap=function(){return X.cloneObject(this.allNodesMap)},i.prototype.getRowNode=function(t){return this.allNodesMap[t]},i.prototype.setRowData=function(t){var e=this;if(typeof t=="string"){console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");return}var o=this.rootNode,r=this.rootNode.sibling;o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?o.allLeafChildren=t.map(function(n){return e.createNode(n,e.rootNode,i.TOP_LEVEL)}):(o.allLeafChildren=[],o.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=o.childrenAfterFilter,r.childrenAfterGroup=o.childrenAfterGroup,r.childrenAfterSort=o.childrenAfterSort,r.childrenMapped=o.childrenMapped,r.allLeafChildren=o.allLeafChildren)},i.prototype.updateRowData=function(t,e){var o={remove:[],update:[],add:[]},r=[];return this.executeRemove(t,o,r),this.executeUpdate(t,o,r),this.executeAdd(t,o),this.updateSelection(r),e&&X.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),o},i.prototype.updateSelection=function(t){var e=t.length>0;if(e&&t.forEach(function(r){r.setSelected(!1,!1,!0)}),this.selectionService.updateGroupsFromChildrenSelections(),e){var o={type:_.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},i.prototype.executeAdd=function(t,e){var o=this,r=t.add,n=t.addIndex;if(!X.missingOrEmpty(r)){var s=r.map(function(y){return o.createNode(y,o.rootNode,i.TOP_LEVEL)}),a=typeof n=="number"&&n>=0;if(a){var u=this.rootNode.allLeafChildren,p=u.slice(0,n),g=u.slice(n,u.length);this.rootNode.allLeafChildren=mh(p,s,g)}else this.rootNode.allLeafChildren=mh(this.rootNode.allLeafChildren,s);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=s}},i.prototype.executeRemove=function(t,e,o){var r=this,n=t.remove;if(!X.missingOrEmpty(n)){var s={};n.forEach(function(a){var u=r.lookupRowNode(a);u&&(u.isSelected()&&o.push(u),u.clearRowTopAndRowIndex(),s[u.id]=!0,delete r.allNodesMap[u.id],e.remove.push(u))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(a){return!s[a.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},i.prototype.executeUpdate=function(t,e,o){var r=this,n=t.update;X.missingOrEmpty(n)||n.forEach(function(s){var a=r.lookupRowNode(s);a&&(a.updateData(s),!a.selectable&&a.isSelected()&&o.push(a),r.setMasterForRow(a,s,i.TOP_LEVEL,!1),e.update.push(a))})},i.prototype.lookupRowNode=function(t){var e=this.gridOptionsWrapper.getRowNodeIdFunc(),o;if(X.exists(e)){var r=e(t);if(o=this.allNodesMap[r],!o)return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(o=X.find(this.rootNode.allLeafChildren,function(n){return n.data===t}),!o)return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowNodeId to help the Grid find matching row data"),null;return o},i.prototype.createNode=function(t,e,o){var r=new ae(this.beans);return r.group=!1,this.setMasterForRow(r,t,o,!0),e&&!this.suppressParentsInRowNodes&&(r.parent=e),r.level=o,r.setDataAndId(t,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("ag-grid: duplicate node id '"+r.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},i.prototype.setMasterForRow=function(t,e,o,r){if(this.doingTreeData)t.setMaster(!1),r&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),r){var n=this.columnModel.getRowGroupColumns(),s=n?n.length:0,a=o+s;t.expanded=t.master?this.isExpanded(a):!1}},i.prototype.isExpanded=function(t){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return e===-1?!0:t<e},i.TOP_LEVEL=0,i.ROOT_NODE_ID="ROOT_NODE_ID",i}(),jP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),He=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ft;(function(i){i[i.Normal=0]="Normal",i[i.AfterFilter=1]="AfterFilter",i[i.AfterFilterAndSort=2]="AfterFilterAndSort",i[i.PivotNodes=3]="PivotNodes"})(Ft||(Ft={}));var zP=function(i){jP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.EVERYTHING}),o=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,_.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,_.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new ae(this.beans),this.nodeManager=new UP(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,o,r,n){var s,a=!1;do{s=!1;for(var u=this.getRowIndexAtPixel(e),p=this.getRowIndexAtPixel(o),g=Math.max(u,r),y=Math.min(p,n),C=g;C<=y;C++){var E=this.getRow(C);if(E.rowHeightEstimated){var S=this.gridOptionsWrapper.getRowHeightForNode(E);E.setRowHeight(S.height),s=!0,a=!0}}s&&this.setRowTopAndRowIndex()}while(s);return a},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),o=0,r=new Set,n=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_NORMAL,s=0;s<this.rowsToDisplay.length;s++){var a=this.rowsToDisplay[s];if(a.id!=null&&r.add(a.id),a.rowHeight==null){var u=this.gridOptionsWrapper.getRowHeightForNode(a,n,e);a.setRowHeight(u.height,u.estimated)}a.setRowTop(o),a.setRowIndex(s),o+=a.rowHeight}return r},t.prototype.clearRowTopAndRowIndex=function(e,o){var r=e.isActive(),n=function(a){a&&a.id!=null&&!o.has(a.id)&&a.clearRowTopAndRowIndex()},s=function(a){if(n(a),n(a.detailNode),n(a.sibling),a.hasChildren()&&a.childrenAfterGroup){var u=a.level==-1,p=r&&!u&&!a.expanded;p||a.childrenAfterGroup.forEach(s)}};s(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,o,r){var n=this;r===void 0&&(r=0);var s=this.getRowIndexAtPixel(o),a=this.getRow(s);return a===e[0]?!1:(e.forEach(function(u){X.removeFromArray(n.rootNode.allLeafChildren,u)}),e.forEach(function(u,p){X.insertIntoArray(n.rootNode.allLeafChildren,u,Math.max(s+r,0)+p)}),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},t.prototype.highlightRowAtPixel=function(e,o){var r=o!=null?this.getRowIndexAtPixel(o):null,n=r!=null?this.getRow(r):null;if(!n||!e||n===e||o==null){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null);return}var s=this.getHighlightPosition(o,n);this.lastHighlightedRow&&this.lastHighlightedRow!==n&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),n.setHighlighted(s),this.lastHighlightedRow=n},t.prototype.getHighlightPosition=function(e,o){if(!o){var r=this.getRowIndexAtPixel(e);if(o=this.getRow(r||0),!o)return l.RowHighlightPosition.Below}var n=o.rowTop,s=o.rowHeight;return e-n<s/2?l.RowHighlightPosition.Above:l.RowHighlightPosition.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;return e?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){var o=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(o)return e;var r=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;r.expanded&&r.childrenAfterSort&&r.childrenAfterSort.length>0;)r=r.childrenAfterSort[0];return r.rowIndex},t.prototype.getRowBounds=function(e){if(X.missing(this.rowsToDisplay))return null;var o=this.rowsToDisplay[e];return o?{rowTop:o.rowTop,rowHeight:o.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var o=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.FILTER,keepRenderedRows:!0,animate:o})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return D.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:l.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:l.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var o=X.missingOrEmpty(e),r=new Tn(!1,this.rootNode);return(o||this.gridOptionsWrapper.isTreeData())&&r.setInactive(),r},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()||e.rowNodeTransactions==null)return!1;var o=X.filter(e.rowNodeTransactions,function(n){return n.add!=null&&n.add.length>0||n.remove!=null&&n.remove.length>0}),r=o==null||o.length==0;return r},t.prototype.refreshModel=function(e){var o=this;if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var r=this.createChangePath(e.rowNodeTransactions);switch(e.step){case l.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,r,!!e.afterColumnsChanged);case l.ClientSideRowModelSteps.FILTER:this.doFilter(r);case l.ClientSideRowModelSteps.PIVOT:this.doPivot(r);case l.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(r);case l.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,r);case l.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(r,n);var s={type:_.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(s),this.$scope&&window.setTimeout(function(){o.$scope.$apply()},0)}},t.prototype.isEmpty=function(){var e=X.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return X.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return X.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,o){var r=!o,n=!1,s,a=[],u=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(p){var g=r&&!n;r||(p===o||p===e)&&(r=!0);var y=p.group&&u;if(!y){var C=r&&!n,E=p.isParentOfNode(s);(C||E)&&a.push(p)}g&&(p===o||p===e)&&(n=!0,p===o?s=o:s=e)}),a},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var o=0,r=this.rowsToDisplay.length-1;if(e<=0)return 0;var n=X.last(this.rowsToDisplay);if(n.rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var s=Math.floor((o+r)/2),a=this.rowsToDisplay[s];if(this.isRowInPixel(a,e))return s;a.rowTop<e?o=s+1:a.rowTop>e&&(r=s-1)}},t.prototype.isRowInPixel=function(e,o){var r=e.rowTop,n=e.rowTop+e.rowHeight,s=r<=o&&n>o;return s},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(o,r){return e(o,r)})},t.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Ft.Normal,0)},t.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,Ft.AfterFilter,0)},t.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Ft.AfterFilterAndSort,0)},t.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Ft.PivotNodes,0)},t.prototype.recursivelyWalkNodesAndCallback=function(e,o,r,n){if(!e)return n;for(var s=0;s<e.length;s++){var a=e[s];if(o(a,n++),a.hasChildren()){var u=null;switch(r){case Ft.Normal:u=a.childrenAfterGroup;break;case Ft.AfterFilter:u=a.childrenAfterFilter;break;case Ft.AfterFilterAndSort:u=a.childrenAfterSort;break;case Ft.PivotNodes:u=a.leafGroup?null:a.childrenAfterSort;break}u&&(n=this.recursivelyWalkNodesAndCallback(u,o,r,n))}}return n},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.expandOrCollapseAll=function(e){var o=this.gridOptionsWrapper.isTreeData();this.rootNode&&r(this.rootNode.childrenAfterGroup);function r(a){a&&a.forEach(function(u){var p=o?X.exists(u.childrenAfterGroup):u.group;p&&(u.expanded=e,r(u.childrenAfterGroup))})}this.refreshModel({step:l.ClientSideRowModelSteps.MAP});var n=e?"expandAll":"collapseAll",s={api:this.gridApi,columnApi:this.columnApi,type:_.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(s)},t.prototype.doSort=function(e,o){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:o})},t.prototype.doRowGrouping=function(e,o,r,n,s){this.groupStage?(o?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:o,rowNodeOrder:r,changedPath:n}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:s}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(n)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},t.prototype.restoreGroupState=function(e){e&&X.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(o,r){typeof e[r]=="boolean"&&(o.expanded=e[r])})},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return X.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(o,r){return e[r]=o.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){var o=typeof e=="string"&&e.indexOf(ae.ID_PREFIX_ROW_GROUP)==0;if(o){var r=void 0;return this.forEachNode(function(n){n.id===e&&(r=n)}),r}else return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var o=this.getGroupState();this.nodeManager.setRowData(e);var r={type:_.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,groupState:o,newData:!0})},t.prototype.batchUpdateRowData=function(e,o){var r=this;if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];var n=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){r.executeBatchUpdateRowData()},n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:o})},t.prototype.flushAsyncTransactions=function(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var o=[],r=[],n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(a){var u=e.nodeManager.updateRowData(a.rowDataTransaction,void 0);r.push(u),a.callback&&o.push(a.callback.bind(null,u)),typeof a.rowDataTransaction.addIndex=="number"&&(n=!0)}),this.commonUpdateRowData(r,void 0,n),o.length>0&&window.setTimeout(function(){o.forEach(function(a){return a()})},0),r.length>0){var s={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:_.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:r};this.eventService.dispatchEvent(s)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,o){this.valueCache.onDataChanged();var r=this.nodeManager.updateRowData(e,o),n=typeof e.addIndex=="number";return this.commonUpdateRowData([r],o,n),r},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();if(!e){var o={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var r=0;r<this.rootNode.allLeafChildren.length;r++){var n=this.rootNode.allLeafChildren[r];o[n.id]=r}return o}},t.prototype.commonUpdateRowData=function(e,o,r){r&&(o=this.createRowNodeOrder()),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:o,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var n={type:_.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},t.prototype.resetRowHeights=function(){var e=!1;this.forEachNode(function(o){o.setRowHeight(o.rowHeight,!0);var r=o.detailNode;r&&r.setRowHeight(r.rowHeight,!0),e=!0}),e&&this.onRowHeightChanged()},He([m("columnModel")],t.prototype,"columnModel",void 0),He([m("$scope")],t.prototype,"$scope",void 0),He([m("selectionService")],t.prototype,"selectionService",void 0),He([m("valueCache")],t.prototype,"valueCache",void 0),He([m("columnApi")],t.prototype,"columnApi",void 0),He([m("gridApi")],t.prototype,"gridApi",void 0),He([m("animationFrameService")],t.prototype,"animationFrameService",void 0),He([m("beans")],t.prototype,"beans",void 0),He([m("filterStage")],t.prototype,"filterStage",void 0),He([m("sortStage")],t.prototype,"sortStage",void 0),He([m("flattenStage")],t.prototype,"flattenStage",void 0),He([he("groupStage")],t.prototype,"groupStage",void 0),He([he("aggregationStage")],t.prototype,"aggregationStage",void 0),He([he("pivotStage")],t.prototype,"pivotStage",void 0),He([k],t.prototype,"init",null),t=He([Y("rowModel")],t),t}(V),$P=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ka=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},KP=function(i){$P(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=e.rowNode,r=e.changedPath;this.filterService.filter(r),this.selectableService.updateSelectableAfterFiltering(o)},ka([m("selectableService")],t.prototype,"selectableService",void 0),ka([m("filterService")],t.prototype,"filterService",void 0),t=ka([Y("filterStage")],t),t}(V),YP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ei=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},qP=function(i){YP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=this.sortController.getSortOptions(),r=X.exists(o)&&o.length>0,n=r&&X.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),s=n?this.calculateDirtyNodes(e.rowNodeTransactions):null,a=X.missingOrEmpty(this.columnModel.getValueColumns()),u=X.some(o,function(p){return!!p.column.getColDef().showRowGroup});this.sortService.sort(o,r,n,s,e.changedPath,a,u)},t.prototype.calculateDirtyNodes=function(e){var o={},r=function(n){n&&n.forEach(function(s){return o[s.id]=!0})};return e&&e.forEach(function(n){r(n.add),r(n.update),r(n.remove)}),o},ei([m("sortService")],t.prototype,"sortService",void 0),ei([m("sortController")],t.prototype,"sortController",void 0),ei([m("columnModel")],t.prototype,"columnModel",void 0),t=ei([Y("sortStage")],t),t}(V),XP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ua=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},QP=function(i){XP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=e.rowNode,r=[],n={value:0},s=this.columnModel.isPivotMode(),a=s&&o.leafGroup,u=a?[o]:o.childrenAfterSort;this.recursivelyAddToRowsToDisplay(u,r,n,s,0);var p=r.length>0,g=!a&&p&&this.gridOptionsWrapper.isGroupIncludeTotalFooter();return g&&(this.ensureFooterNodeExists(o),this.addRowNodeToRowsToDisplay(o.sibling,r,n,0)),r},t.prototype.recursivelyAddToRowsToDisplay=function(e,o,r,n,s){if(!X.missingOrEmpty(e))for(var a=this.gridOptionsWrapper.isGroupHideOpenParents(),u=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),p=!u&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),g=0;g<e.length;g++){var y=e[g],C=y.hasChildren(),E=n&&!C,S=u&&C&&y.childrenAfterGroup.length===1,b=p&&C&&y.leafGroup&&y.childrenAfterGroup.length===1,F=n&&y.leafGroup,B=a&&y.expanded&&!F,M=!E&&!B&&!S&&!b;if(M&&this.addRowNodeToRowsToDisplay(y,o,r,s),!(n&&y.leafGroup)){if(C){var L=S||b;if(y.expanded||L){var j=L?s:s+1;this.recursivelyAddToRowsToDisplay(y.childrenAfterSort,o,r,n,j),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(y),this.addRowNodeToRowsToDisplay(y.sibling,o,r,s))}}else if(y.master&&y.expanded){var J=this.createDetailNode(y);this.addRowNodeToRowsToDisplay(J,o,r,s)}}}},t.prototype.addRowNodeToRowsToDisplay=function(e,o,r,n){var s=this.gridOptionsWrapper.isGroupMultiAutoColumn();o.push(e),e.setUiLevel(s?0:n)},t.prototype.ensureFooterNodeExists=function(e){if(!X.exists(e.sibling)){var o=new ae(this.beans);Object.keys(e).forEach(function(r){o[r]=e[r]}),o.footer=!0,o.setRowTop(null),o.setRowIndex(null),o.oldRowTop=null,X.exists(o.id)&&(o.id="rowGroupFooter_"+o.id),o.sibling=e,e.sibling=o}},t.prototype.createDetailNode=function(e){if(X.exists(e.detailNode))return e.detailNode;var o=new ae(this.beans);return o.detail=!0,o.selectable=!1,o.parent=e,X.exists(e.id)&&(o.id="detail_"+e.id),o.data=e.data,o.level=e.level+1,e.detailNode=o,o},Ua([m("columnModel")],t.prototype,"columnModel",void 0),Ua([m("beans")],t.prototype,"beans",void 0),t=Ua([Y("flattenStage")],t),t}(V),JP=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ti=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},ZP=function(i){JP(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,o,r,n,s,a,u){var p=this,g=this.gridOptionsWrapper.isGroupMaintainOrder(),y=X.some(this.columnModel.getAllGridColumns(),function(E){return E.isRowGroupActive()}),C=function(E){if(p.pullDownGroupDataForHideOpenParents(E.childrenAfterFilter,!0),o){var S=g&&y&&!E.leafGroup&&!u;S?E.childrenAfterSort=E.childrenAfterFilter.slice(0):E.childrenAfterSort=r?p.doDeltaSort(E,e,n,s,a):p.rowNodeSorter.doFullSort(E.childrenAfterFilter,e)}else E.childrenAfterSort=E.childrenAfterFilter.slice(0);E.sibling&&(E.sibling.childrenAfterSort=E.childrenAfterSort),p.updateChildIndexes(E),p.postSortFunc&&p.postSortFunc(E.childrenAfterSort)};s&&s.forEachChangedNodeDepthFirst(C),this.updateGroupDataForHideOpenParents(s)},t.prototype.mapNodeToSortedNode=function(e,o){return{currentPos:o,rowNode:e}},t.prototype.doDeltaSort=function(e,o,r,n,s){var a=e.childrenAfterSort.filter(function(y){var C=!r[y.id],E=s||n&&n.canSkip(y);return C&&E}).map(this.mapNodeToSortedNode.bind(this)),u={};a.forEach(function(y){return u[y.rowNode.id]=y.rowNode});var p=e.childrenAfterFilter.filter(function(y){return!u[y.id]}).map(this.mapNodeToSortedNode.bind(this));p.sort(this.rowNodeSorter.compareRowNodes.bind(this,o));var g;return p.length===0?g=a:a.length===0?g=p:g=this.mergeSortedArrays(o,a,p),g.map(function(y){return y.rowNode})},t.prototype.mergeSortedArrays=function(e,o,r){for(var n=[],s=0,a=0;s<o.length&&a<r.length;){var u=this.rowNodeSorter.compareRowNodes(e,o[s],r[a]);u<0?n.push(o[s++]):n.push(r[a++])}for(;s<o.length;)n.push(o[s++]);for(;a<r.length;)n.push(r[a++]);return n},t.prototype.updateChildIndexes=function(e){if(!X.missing(e.childrenAfterSort))for(var o=e.childrenAfterSort,r=0;r<o.length;r++){var n=o[r],s=r===0,a=r===e.childrenAfterSort.length-1;n.setFirstChild(s),n.setLastChild(a),n.setChildIndex(r)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var o=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){var r="AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).";return X.doOnce(function(){return console.warn(r)},"sortService.hideOpenParentsWithTreeData"),!1}var n=function(s){o.pullDownGroupDataForHideOpenParents(s.childrenAfterSort,!1),s.childrenAfterSort.forEach(function(a){a.hasChildren()&&n(a)})};e&&e.executeFromRootNode(function(s){return n(s)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,o){var r=this;!this.gridOptionsWrapper.isGroupHideOpenParents()||X.missing(e)||e.forEach(function(n){var s=r.columnModel.getGroupDisplayColumns();s.forEach(function(a){var u=a.getColDef().showRowGroup;if(typeof u!="string"){console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}var p=u,g=r.columnModel.getPrimaryColumn(p),y=g===n.rowGroupColumn;if(!y)if(o)n.setGroupValue(a.getId(),void 0);else{var C=n.getFirstChildOfFirstChild(g);C&&n.setGroupValue(a.getId(),C.key)}})})},ti([m("columnModel")],t.prototype,"columnModel",void 0),ti([m("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),ti([k],t.prototype,"init",null),t=ti([Y("sortService")],t),t}(V),eD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ja=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},tD=function(i){eD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},t.prototype.filter=function(e){var o=this.filterManager.isAnyFilterPresent();this.filterNodes(o,e)},t.prototype.filterNodes=function(e,o){var r=this,n=function(p,g){p.hasChildren()?(e&&!g?p.childrenAfterFilter=p.childrenAfterGroup.filter(function(y){var C=y.childrenAfterFilter&&y.childrenAfterFilter.length>0,E=y.data&&r.filterManager.doesRowPassFilter({rowNode:y});return C||E}):p.childrenAfterFilter=p.childrenAfterGroup,r.setAllChildrenCount(p)):(p.childrenAfterFilter=p.childrenAfterGroup,p.setAllChildrenCount(null)),p.sibling&&(p.sibling.childrenAfterFilter=p.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(p,g){if(p.childrenAfterGroup)for(var y=0;y<p.childrenAfterGroup.length;y++){var C=p.childrenAfterGroup[y],E=g||r.filterManager.doesRowPassFilter({rowNode:C});C.childrenAfterGroup?s(p.childrenAfterGroup[y],E):n(C,E)}n(p,g)},a=function(p){return s(p,!1)};o.executeFromRootNode(a)}else{var u=function(p){return n(p,!1)};o.forEachChangedNodeDepthFirst(u,!0)}},t.prototype.setAllChildrenCountTreeData=function(e){var o=0;e.childrenAfterFilter.forEach(function(r){o++,o+=r.allChildrenCount}),e.setAllChildrenCount(o)},t.prototype.setAllChildrenCountGridGrouping=function(e){var o=0;e.childrenAfterFilter.forEach(function(r){r.group?o+=r.allChildrenCount:o++}),e.setAllChildrenCount(o)},t.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},ja([m("filterManager")],t.prototype,"filterManager",void 0),ja([k],t.prototype,"postConstruct",null),t=ja([Y("filterService")],t),t}(V),oD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),za=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},rD=function(i){oD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.rowModel.getType()===D.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.createTransactionForRowData=function(e){if(X.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var o=this.gridOptionsWrapper.getRowNodeIdFunc();if(!o||X.missing(o)){console.error("AG Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!");return}var r={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),s=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder(),a=s?null:{};return X.exists(e)&&e.forEach(function(u,p){var g=o(u),y=n[g];if(a&&(a[g]=p),y){var C=y.data!==u;C&&r.update.push(u),n[g]=void 0}else r.add.push(u)}),X.iterateObject(n,function(u,p){p&&r.remove.push(p.data)}),[r,a]},za([m("rowModel")],t.prototype,"rowModel",void 0),za([k],t.prototype,"postConstruct",null),t=za([Y("immutableService")],t),t}(V),nD={moduleName:l.ModuleNames.ClientSideRowModelModule,beans:[KP,qP,QP,ZP,tD,rD],rowModels:{clientSide:zP}},iD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),$a=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ch=function(i){iD(t,i);function t(e,o,r){var n=i.call(this,e)||this;return n.parentCache=o,n.params=r,n.startRow=e*r.blockSize,n.endRow=n.startRow+r.blockSize,n}return t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,o,r){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),X.exists(o)?e.setDataAndId(o,r.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,o=this.createLoadParams();if(X.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(o)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()};return e},t.prototype.forEachNode=function(e,o,r){var n=this;this.rowNodes.forEach(function(s,a){var u=n.startRow+a;u<r&&e(s,o.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,o){o===void 0&&(o=!1),o||(this.lastAccessed=this.params.lastAccessedSequence.next());var r=e-this.startRow;return this.rowNodes[r]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var o=this.startRow+e,r=new ae(this.beans);r.setRowHeight(this.params.rowHeight),r.uiLevel=0,r.setRowIndex(o),r.setRowTop(this.params.rowHeight*o),this.rowNodes.push(r)}},t.prototype.processServerResult=function(e){var o=this;this.rowNodes.forEach(function(n,s){var a=e.rowData?e.rowData[s]:void 0;o.setDataAndId(n,a,o.startRow+s)});var r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},$a([m("beans")],t.prototype,"beans",void 0),$a([k],t.prototype,"postConstruct",null),$a([Ne],t.prototype,"destroyRowNodes",null),t}(Yn),sD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),oi=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},aD=function(i,t){return function(e,o){t(e,o,i)}},lD=function(i){sD(t,i);function t(e){var o=i.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=e.initialRowCount,o.params=e,o}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,o){o===void 0&&(o=!1);var r=Math.floor(e/this.params.blockSize),n=this.blocks[r];if(!n){if(o)return;n=this.createBlock(r)}return n.getRow(e)},t.prototype.createBlock=function(e){var o=this.createBean(new Ch(e,this,this.params));return this.blocks[o.getId()]=o,this.blockCount++,this.purgeBlocksIfNeeded(o),this.params.rowNodeBlockLoader.addBlock(o),o},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(o){return o.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(o){return e.destroyBlock(o)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,o){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+o),this.checkRowCount(e,o),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,r=this.getBlocksInOrder().filter(function(p){return p!=e}),n=function(p,g){return g.getLastAccessed()-p.getLastAccessed()};r.sort(n);var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,u=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach(function(p,g){var y=p.getState()===Ch.STATE_WAITING_TO_LOAD&&g>=u,C=s?g>=a:!1;if(y||C){if(o.isBlockCurrentlyDisplayed(p)||o.isBlockFocused(p))return;o.removeBlockFromCache(p)}})},t.prototype.isBlockFocused=function(e){var o=this.focusService.getFocusCellToUseAfterRefresh();if(!o||o.rowPinned!=null)return!1;var r=e.getStartRow(),n=e.getEndRow(),s=o.rowIndex>=r&&o.rowIndex<n;return s},t.prototype.isBlockCurrentlyDisplayed=function(e){var o=e.getStartRow(),r=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(o,r)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,o){if(typeof o=="number"&&o>=0)this.rowCount=o,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var r=(e.getId()+1)*this.params.blockSize,n=r+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,o){this.rowCount=e,X.exists(o)&&(this.lastRowIndexKnown=o),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var o=this,r=new po;this.getBlocksInOrder().forEach(function(n){return n.forEachNode(e,r,o.rowCount)})},t.prototype.getBlocksInOrder=function(){var e=function(r,n){return r.getId()-n.getId()},o=X.getAllValuesInObject(this.blocks).sort(e);return o},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:_.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,o=[];this.getBlocksInOrder().forEach(function(r){var n=r.getId()*e.params.blockSize;n>=e.rowCount&&o.push(r)}),o.length>0&&o.forEach(function(r){return e.destroyBlock(r)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(o){return e.removeBlockFromCache(o)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,o){var r=this,n=[],s=-1,a=!1,u=new po;X.missing(e)&&(a=!0);var p=!1;this.getBlocksInOrder().forEach(function(y){if(!p){if(a&&s+1!==y.getId()){p=!0;return}s=y.getId(),y.forEachNode(function(C){var E=C===e||C===o;(a||E)&&n.push(C),E&&(a=!a)},u,r.rowCount)}});var g=p||a;return g?[]:n},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,oi([m("rowRenderer")],t.prototype,"rowRenderer",void 0),oi([m("focusService")],t.prototype,"focusService",void 0),oi([aD(0,xe("loggerFactory"))],t.prototype,"setBeans",null),oi([Ne],t.prototype,"destroyAllBlocks",null),t}(V),uD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),It=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pD=function(i){uD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,o,r,n){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){if(this.gridOptionsWrapper.getDefaultGroupOrderComparator()!=null){var e="AG Grid: defaultGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.";X.doOnce(function(){return console.warn(e)},"IRM.DefaultGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,_.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,_.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,_.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!X.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return D.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,o){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,o):[]},t.prototype.reset=function(){if(this.datasource){var e=X.exists(this.gridOptionsWrapper.getRowNodeIdFunc());e||this.selectionService.reset(),this.resetCache();var o=this.createModelUpdatedEvent();this.eventService.dispatchEvent(o)}},t.prototype.createModelUpdatedEvent=function(){return{type:_.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:this.defaultIfInvalid(e,2),initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new po},this.infiniteCache=this.createBean(new lD(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,o){return e>0?e:o},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var o=void 0;return this.forEachNode(function(r){r.id===e&&(o=r)}),o},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(this.rowHeight!==0){var o=Math.floor(e/this.rowHeight),r=this.getRowCount()-1;return o>r?r:o}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var o=this.getRowNode(e.id);return!!o},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},t.prototype.setRowCount=function(e,o){this.infiniteCache&&this.infiniteCache.setRowCount(e,o)},It([m("filterManager")],t.prototype,"filterManager",void 0),It([m("sortController")],t.prototype,"sortController",void 0),It([m("selectionService")],t.prototype,"selectionService",void 0),It([m("gridApi")],t.prototype,"gridApi",void 0),It([m("columnApi")],t.prototype,"columnApi",void 0),It([m("rowRenderer")],t.prototype,"rowRenderer",void 0),It([m("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),It([k],t.prototype,"init",null),It([Ne],t.prototype,"destroyDatasource",null),t=It([Y("rowModel")],t),t}(V),cD={moduleName:l.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:pD}},wh=function(){function i(){}return i.prototype.setBeans=function(t){this.beans=t},i.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?t+"."+e:t},i.prototype.getMergedParamsAndData=function(t){var e=this.mergeDefaultParams(t),o=this.beans.gridSerializer.serialize(this.createSerializingSession(e),e);return{mergedParams:e,data:o}},i.prototype.mergeDefaultParams=function(t){var e=this.getDefaultExportParams(),o={};return X.assign(o,e),X.assign(o,t),o},i}(),_h=function(){function i(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,n=t.processCellCallback,s=t.processHeaderCallback,a=t.processGroupHeaderCallback,u=t.processRowGroupCallback;this.columnModel=e,this.valueService=o,this.gridOptionsWrapper=r,this.processCellCallback=n,this.processHeaderCallback=s,this.processGroupHeaderCallback=a,this.processRowGroupCallback=u}return i.prototype.prepare=function(t){this.groupColumns=X.filter(t,function(e){return!!e.getColDef().showRowGroup})},i.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},i.prototype.extractRowCellValue=function(t,e,o,r,n){var s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?n.rowGroupIndex:0,a=n&&n.group&&(e===s&&this.groupColumns.indexOf(t)!==-1||e===0&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode())),u;a?u=this.createValueForGroupNode(n):u=this.valueService.getValue(t,n);var p=this.processCell(o,n,t,u,this.processCellCallback,r);return p??""},i.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},i.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var e=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,e.push(t.key);return e.reverse().join(" -> ")},i.prototype.processCell=function(t,e,o,r,n,s){return n?n({accumulatedRowIndex:t,column:o,node:e,value:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:s}):r??""},i}(),Eh=function(){function i(){}return i.download=function(t,e){var o=document.defaultView||window;if(!o){console.warn("AG Grid: There is no `window` associated with the current `document`");return}if(o.navigator.msSaveOrOpenBlob)o.navigator.msSaveOrOpenBlob(e,t);else{var r=document.createElement("a"),n=o.URL.createObjectURL(e);r.setAttribute("href",n),r.setAttribute("download",t),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(r),o.setTimeout(function(){o.URL.revokeObjectURL(n)},0)}},i}(),dD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Rh=`\r
|
|
1495
1495
|
`,hD=function(i){dD(t,i);function t(e){var o=i.call(this,e)||this;o.isFirstLine=!0,o.result="";var r=e.suppressQuotes,n=e.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=n,o}return t.prototype.addCustomContent=function(e){var o=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,Rh),this.result+=e):e.forEach(function(r){o.beginNewLine(),r.forEach(function(n,s){s!==0&&(o.result+=o.columnSeparator),o.result+=o.putInQuotes(n.data.value||""),n.mergeAcross&&o.appendEmptyCells(n.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,o,r){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(r)},t.prototype.appendEmptyCells=function(e){for(var o=1;o<=e;o++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,o){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,o,r){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,o,o,D.EXPORT_TYPE_CSV,r))},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var o;typeof e=="string"?o=e:typeof e.toString=="function"?o=e.toString():(console.warn("unknown value type during csv conversion"),o="");var r=o.replace(/"/g,'""');return'"'+r+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=Rh),this.isFirstLine=!1},t}(_h),fD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),qo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Sh=function(i){fD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getDefaultExportParams=function(){return this.gridOptionsWrapper.getDefaultExportParams("csv")},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var o=this.getMergedParamsAndData(e),r=o.mergedParams,n=o.data,s=new Blob(["\uFEFF",n],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"});return Eh.download(this.getFileName(r.fileName),s),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getMergedParamsAndData(e).data},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var o=this,r=o.columnModel,n=o.valueService,s=o.gridOptionsWrapper,a=e,u=a.processCellCallback,p=a.processHeaderCallback,g=a.processGroupHeaderCallback,y=a.processRowGroupCallback,C=a.suppressQuotes,E=a.columnSeparator;return new hD({columnModel:r,valueService:n,gridOptionsWrapper:s,processCellCallback:u||void 0,processHeaderCallback:p||void 0,processGroupHeaderCallback:g||void 0,processRowGroupCallback:y||void 0,suppressQuotes:C||!1,columnSeparator:E||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},qo([m("columnModel")],t.prototype,"columnModel",void 0),qo([m("valueService")],t.prototype,"valueService",void 0),qo([m("gridSerializer")],t.prototype,"gridSerializer",void 0),qo([m("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),qo([k],t.prototype,"postConstruct",null),t=qo([Y("csvCreator")],t),t}(wh),gD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Xo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i[i.HEADER_GROUPING=0]="HEADER_GROUPING",i[i.HEADER=1]="HEADER",i[i.BODY=2]="BODY"})(l.RowType||(l.RowType={}));var Oh=function(i){gD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.serialize=function(e,o){o===void 0&&(o={});var r=this.getColumnsToExport(o.allColumns,o.columnKeys),n=X.compose(this.prepareSession(r),this.prependContent(o),this.exportColumnGroups(o,r),this.exportHeaders(o,r),this.processPinnedTopRows(o,r),this.processRows(o,r),this.processPinnedBottomRows(o,r),this.appendContent(o));return n(e).parse()},t.prototype.processRow=function(e,o,r,n){var s=o.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsWrapper,u=a.getContext(),p=a.getApi(),g=a.getColumnApi(),y=a.isGroupRemoveSingleChildren(),C=a.isGroupHideOpenParents(),E=a.isGroupRemoveLowestSingleChildren(),S=this.columnModel.isPivotMode()?n.leafGroup:!n.group,b=o.skipGroups||o.skipRowGroups,F=E&&n.leafGroup,B=n.allChildrenCount===1&&(y||F);if(b&&o.skipGroups&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!S&&(o.skipRowGroups||B||C)||o.onlySelected&&!n.isSelected()||o.skipPinnedTop&&n.rowPinned==="top"||o.skipPinnedBottom&&n.rowPinned==="bottom")){var M=n.level===-1;if(!(M&&!n.leafGroup)){var L=s({node:n,api:p,context:u});if(!L){var j=e.onNewBodyRow();if(r.forEach(function(ue,te){j.onColumn(ue,te,n)}),o.getCustomContentBelowRow){var J=o.getCustomContentBelowRow({node:n,api:p,columnApi:g,context:u});J&&e.addCustomContent(J)}}}}},t.prototype.appendContent=function(e){return function(o){var r=e.customFooter||e.appendContent;return r&&(e.customFooter&&X.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")},"gridSerializer-customFooter"),o.addCustomContent(r)),o}},t.prototype.prependContent=function(e){return function(o){var r=e.customHeader||e.prependContent;return r&&(e.customHeader&&X.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),o.addCustomContent(r)),o}},t.prototype.prepareSession=function(e){return function(o){return o.prepare(e),o}},t.prototype.exportColumnGroups=function(e,o){var r=this;return function(n){if(e.skipColumnGroupHeaders)e.columnGroups&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")},"gridSerializer-columnGroups");else{var s=new ss,a=r.displayedGroupCreator.createDisplayedGroups(o,r.columnModel.getGridBalancedTree(),s,null);r.recursivelyAddHeaderGroups(a,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,o){return function(r){if(!e.skipHeader&&!e.skipColumnHeaders){var n=r.onNewHeaderRow();o.forEach(function(s,a){n.onColumn(s,a,void 0)})}else e.skipHeader&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");return r}},t.prototype.processPinnedTopRows=function(e,o){var r=this;return function(n){var s=r.processRow.bind(r,n,e,o);return r.pinnedRowModel.forEachPinnedTopRow(s),n}},t.prototype.processRows=function(e,o){var r=this;return function(n){var s=r.rowModel,a=s.getType(),u=a===D.ROW_MODEL_TYPE_CLIENT_SIDE,p=a===D.ROW_MODEL_TYPE_SERVER_SIDE,g=!u&&e.onlySelected,y=r.processRow.bind(r,n,e,o);if(r.columnModel.isPivotMode())u?s.forEachPivotNode(y):s.forEachNode(y);else if(e.onlySelectedAllPages||g){var C=r.selectionService.getSelectedNodes();C.forEach(y)}else u||p?s.forEachNodeAfterFilterAndSort(y):s.forEachNode(y);return n}},t.prototype.processPinnedBottomRows=function(e,o){var r=this;return function(n){var s=r.processRow.bind(r,n,e,o);return r.pinnedRowModel.forEachPinnedBottomRow(s),n}},t.prototype.getColumnsToExport=function(e,o){e===void 0&&(e=!1);var r=this.columnModel.isPivotMode();if(o&&o.length)return this.columnModel.getGridColumns(o);if(e&&!r){var n=this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([D.GROUP_AUTO_COLUMN_ID]):[];return n.concat(this.columnModel.getAllPrimaryColumns()||[])}return this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,o,r){var n=[];e.forEach(function(s){var a=s;a.getChildren&&a.getChildren().forEach(function(u){return n.push(u)})}),e.length>0&&e[0]instanceof Fe&&this.doAddHeaderHeader(o,e,r),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,o,r)},t.prototype.doAddHeaderHeader=function(e,o,r){var n=this,s=e.onNewHeaderGroupingRow(),a=0;o.forEach(function(u){var p=u,g;r?g=r({columnGroup:p,api:n.gridOptionsWrapper.getApi(),columnApi:n.gridOptionsWrapper.getColumnApi(),context:n.gridOptionsWrapper.getContext()}):g=n.columnModel.getDisplayNameForColumnGroup(p,"header"),s.onColumn(g||"",a++,p.getLeafColumns().length-1)})},Xo([m("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Xo([m("columnModel")],t.prototype,"columnModel",void 0),Xo([m("rowModel")],t.prototype,"rowModel",void 0),Xo([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Xo([m("selectionService")],t.prototype,"selectionService",void 0),t=Xo([Y("gridSerializer")],t),t}(V),Ph={moduleName:l.ModuleNames.CsvExportModule,beans:[Sh,Oh]},ri=`\r
|
|
1496
1496
|
`,vD=function(){function i(){}return i.createHeader=function(t){t===void 0&&(t={});var e="<?",o="?>",r=["version"];t.version||(t.version="1.0"),t.encoding&&r.push("encoding"),t.standalone&&r.push("standalone");var n=r.map(function(s){return s+'="'+t[s]+'"'}).join(" ");return e+"xml "+n+" "+o},i.createXml=function(t,e){var o=this,r="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach(function(s){Object.keys(s.map).forEach(function(a){r+=o.returnAttributeIfPopulated(s.prefix+a,s.map[a],e)})}),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach(function(s){r+=o.returnAttributeIfPopulated(s,t.properties.rawMap[s],e)}));var n="<"+t.name+r;return!t.children&&t.textNode==null?n+"/>"+ri:t.textNode!=null?n+">"+t.textNode+"</"+t.name+">"+ri:(n+=">"+ri,t.children&&t.children.forEach(function(s){n+=o.createXml(s,e)}),n+"</"+t.name+">"+ri)},i.returnAttributeIfPopulated=function(t,e,o){if(!e&&e!==""&&e!==0)return"";var r=e;return typeof e=="boolean"&&o&&(r=o(e))," "+t+'="'+r+'"'},i}(),yD=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),mD=function(){function i(){}return i.addFolders=function(t){t.forEach(this.addFolder.bind(this))},i.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},i.addFile=function(t,e,o){o===void 0&&(o=!1),this.files.push({path:t,created:new Date,content:e,isBase64:o})},i.getContent=function(t){t===void 0&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},i.clearStream=function(){this.folders=[],this.files=[]},i.buildFileStream=function(t){t===void 0&&(t="");for(var e=this.folders.concat(this.files),o=e.length,r="",n=0,s=0,a=0,u=e;a<u.length;a++){var p=u[a],g=this.getHeader(p,n),y=g.fileHeader,C=g.folderHeader,E=g.content;n+=y.length+E.length,s+=C.length,t+=y+E,r+=C}var S=this.buildFolderEnd(o,s,n);return t+r+S},i.getHeader=function(t,e){var o=t.content,r=t.path,n=t.created,s=t.isBase64,a=X.utf8_encode,u=X.decToHex,p=a(r),g=p!==r,y=this.convertTime(n),C=this.convertDate(n),E="";if(g){var S=u(1,1)+u(this.getFromCrc32Table(p),4)+p;E="up"+u(S.length,2)+S}var b=o?this.getConvertedContent(o,s):{size:0,content:""},F=b.size,B=b.content,M=`
|
|
1497
|
-
\0`+(g?"\0\b":"\0\0")+"\0\0"+u(y,2)+u(C,2)+u(F?this.getFromCrc32Table(B):0,4)+u(F,4)+u(F,4)+u(p.length,2)+u(E.length,2),L="PK"+M+p+E,j="PK\0"+M+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+u(e,4)+p+E;return{fileHeader:L,folderHeader:j,content:B||""}},i.getConvertedContent=function(t,e){return e===void 0&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},i.buildFolderEnd=function(t,e,o){var r=X.decToHex;return"PK\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(o,4)+"\0\0"},i.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},i.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),r=0;r<e;r++)o[r]=t.charCodeAt(r);for(var n=-1,s=0,a=0,u=0,r=0;r<e;r++)s=o[r],a=(n^s)&255,u=yD[a],n=n>>>8^u;return n^-1},i.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},i.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},i.folders=[],i.files=[],i}();oe.register(nD,!1),oe.register(cD,!1),oe.register(Ph,!1),l.AbstractHeaderCellCtrl=Rr,l.AgAbstractField=At,l.AgAngleSelect=oh,l.AgCheckbox=Wo,l.AgColorPicker=Zd,l.AgDialog=Fa,l.AgGroupComponent=Kd,l.AgInputNumberField=eh,l.AgInputRange=th,l.AgInputTextArea=Qd,l.AgInputTextField=Ia,l.AgPanel=Na,l.AgPromise=Ke,l.AgRadioButton=Ad,l.AgSelect=zs,l.AgSlider=Jd,l.AgStackComponentsRegistry=dp,l.AgToggleButton=rh,l.AlignedGridsService=Gd,l.AnimateShowChangeCellRenderer=cc,l.AnimateSlideCellRenderer=dc,l.AnimationFrameService=Bd,l.AutoScrollService=Qc,l.AutoWidthCalculator=gd,l.Autowired=m,l.BaseComponentWrapper=kP,l.BaseCreator=wh,l.BaseGridSerializingSession=_h,l.Bean=Y,l.BeanStub=V,l.Beans=sa,l.BodyDropPivotTarget=Vc,l.BodyDropTarget=Hc,l.CellComp=hh,l.CellCtrl=Yt,l.CellNavigationService=Od,l.CellPositionUtils=ih,l.ChangedPath=Tn,l.CheckboxSelectionComponent=ea,l.ColDefUtil=hs,l.Color=To,l.Column=fe,l.ColumnApi=Pc,l.ColumnFactory=tp,l.ColumnGroup=Fe,l.ColumnKeyCreator=re,l.ColumnModel=sp,l.ColumnUtils=up,l.Component=se,l.ComponentUtil=it,l.Constants=D,l.Context=qu,l.CssClassApplier=ha,l.CsvCreator=Sh,l.CsvExportModule=Ph,l.CtrlsService=ch,l.CustomTooltipFeature=Ws,l.DateFilter=Ys,l.DisplayedGroupCreator=pp,l.Downloader=Eh,l.DragAndDropService=ze,l.DragService=_d,l.Environment=Wd,l.EventService=Gt,l.Events=_,l.ExpressionService=ud,l.FilterManager=Yc,l.FloatingFilterMapper=Wc,l.FocusService=Uo,l.Grid=Ba,l.GridApi=ad,l.GridBodyComp=sd,l.GridBodyCtrl=od,l.GridComp=wd,l.GridCoreCreator=vh,l.GridCtrl=yd,l.GridHeaderComp=Kc,l.GridHeaderCtrl=Lc,l.GridOptionsWrapper=q,l.GridSerializer=Oh,l.GroupCellRenderer=ta,l.GroupCellRendererCtrl=gc,l.GroupInstanceIdCreator=ss,l.HeaderCellCtrl=Uc,l.HeaderFilterCellComp=bc,l.HeaderFilterCellCtrl=kc,l.HeaderGroupCellCtrl=jc,l.HeaderNavigationService=Ic,l.HeaderPositionUtils=lh,l.HeaderRowComp=Fc,l.HeaderRowContainerComp=Gn,l.HeaderRowContainerCtrl=$c,l.HeaderRowCtrl=Mn,l.HorizontalResizeService=vd,l.KeyCode=W,l.LargeTextCellEditor=ac,l.Logger=Hn,l.LoggerFactory=fd,l.ManagedFocusFeature=Vt,l.ModuleRegistry=oe,l.MouseEventService=Sd,l.MoveColumnFeature=Gc,l.NavigationService=kd,l.NumberFilter=Xs,l.NumberSequence=po,l.Optional=he,l.PaginationProxy=Id,l.PinnedRowModel=sh,l.PopupComponent=Mo,l.PopupEditorWrapper=dh,l.PopupSelectCellEditor=uc,l.PopupService=dd,l.PopupTextCellEditor=pc,l.PositionableFeature=Xd,l.PostConstruct=k,l.PreConstruct=ts,l.PreDestroy=Ne,l.PropertyKeys=St,l.ProvidedColumnGroup=Re,l.ProvidedFilter=vr,l.Qualifier=xe,l.QuerySelector=i_,l.RefSelector=x,l.ResizeObserverService=$d,l.RowContainerComp=fh,l.RowContainerCtrl=Vn,l.RowCtrl=qt,l.RowNode=ae,l.RowNodeBlock=Yn,l.RowNodeBlockLoader=uh,l.RowNodeSorter=ph,l.RowPositionUtils=nh,l.RowRenderer=Tc,l.ScalarFilter=je,l.ScrollVisibleService=bd,l.SelectCellEditor=Zs,l.SelectableService=jd,l.SelectionService=Oc,l.SetLeftFeature=In,l.SimpleFilter=Ue,l.SortController=Ed,l.StandardMenuFactory=gh,l.StylingService=Fd,l.TabGuardComp=_a,l.TabGuardCtrl=Cd,l.TabbedLayout=xP,l.TemplateService=cd,l.TextCellEditor=On,l.TextFilter=Sn,l.TextFloatingFilter=sc,l.Timer=t_,l.TouchListener=lt,l.UserComponentFactory=wc,l.UserComponentRegistry=yc,l.ValueCache=Md,l.ValueFormatterService=Dd,l.ValueService=qc,l.VanillaFrameworkOverrides=Td,l.VirtualList=WP,l.XmlFactory=vD,l.ZipContainer=mD,l._=X,l.defaultGroupComparator=BP,l.initialiseAgGridWithAngular1=FP,l.initialiseAgGridWithWebComponents=LP,l.simpleHttpRequest=VP,l.stringToArray=hp})(wt);var jt=globalThis&&globalThis.__assign||function(){return jt=Object.assign||function(l){for(var c,h=1,f=arguments.length;h<f;h++){c=arguments[h];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(l[v]=c[v])}return l},jt.apply(this,arguments)},nm=function(){function l(){}return l.getComponentDefinition=function(c,h){var f;return typeof c=="string"?(f=this.searchForComponentInstance(h,c),f.template?f=jt({},d.defineComponent(f)):f={extends:d.defineComponent(f)}):f={extends:d.defineComponent(jt({},c))},f||console.error("Could not find component with name of "+c+". Is it in Vue.components?"),f.extends&&f.extends.setup&&(f.setup=f.extends.setup),f},l.createComponentParams=function(c,h){var f={params:Object.freeze(c),parent:h};return h.componentDependencies&&h.componentDependencies.forEach(function(v){return f[v]=h[v]}),f},l.createAndMountComponent=function(c,h,f){var v=l.getComponentDefinition(c,f);if(v){var w=l.createComponentParams(h,f),R=null,O=d.defineComponent(jt(jt({},v),{data:function(){return jt(jt({},w),v.data?v.data():{})},created:function(){R=this.$root,v.created&&v.created.bind(this)()}})),P=document.createElement("div"),T=d.createApp(O);return T.mount(P),{mountedComponent:T,componentInstance:R}}},l.searchForComponentInstance=function(c,h,f){f===void 0&&(f=10);for(var v=null,w=c.$parent,R=0;!v&&w&&w.$options&&++R<f;)v=w.$options.components[h],w=w.$parent;return v||(console.error("Could not find component with name of "+h+". Is it in Vue.components?"),null)},l}(),Iu=globalThis&&globalThis.__extends||function(){var l=function(c,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},l(c,h)};return function(c,h){l(c,h);function f(){this.constructor=c}c.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),im=globalThis&&globalThis.__decorate||function(l,c,h,f){var v=arguments.length,w=v<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,h):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(l,c,h,f);else for(var O=l.length-1;O>=0;O--)(R=l[O])&&(w=(v<3?R(w):v>3?R(c,h,w):R(c,h))||w);return v>3&&w&&Object.defineProperty(c,h,w),w},sm=function(l){Iu(c,l);function c(h){var f=l.call(this)||this;return f.parent=h,f}return c.prototype.createWrapper=function(h){var f=this,v=function(R){Iu(O,R);function O(){return R!==null&&R.apply(this,arguments)||this}return O.prototype.init=function(P){R.prototype.init.call(this,P)},O.prototype.hasMethod=function(P){return w.getFrameworkComponentInstance()[P]!=null},O.prototype.callMethod=function(P,T){var N=this.getFrameworkComponentInstance(),G=w.getFrameworkComponentInstance();return G[P].apply(N,T)},O.prototype.addMethod=function(P,T){w[P]=T},O.prototype.overrideProcessing=function(P){return f.parent.autoParamsRefresh&&P==="refresh"},O.prototype.processMethod=function(P,T){return P==="refresh"&&(this.getFrameworkComponentInstance().params=T[0]),this.hasMethod(P)?this.callMethod(P,T):P==="refresh"},O.prototype.createComponent=function(P){return f.createComponent(h,P)},O}(am),w=new v;return w},c.prototype.createComponent=function(h,f){return nm.createAndMountComponent(h,f,this.parent)},c.prototype.createMethodProxy=function(h,f,v){return function(){return h.overrideProcessing(f)?h.processMethod(f,arguments):h.hasMethod(f)?h.callMethod(f,arguments):(v&&console.warn("AG Grid: Framework component is missing the method "+f+"()"),null)}},c.prototype.destroy=function(){this.parent=null},c=im([wt.Bean("frameworkComponentWrapper")],c),c}(wt.BaseComponentWrapper),am=function(){function l(){}return l.prototype.getGui=function(){return this.componentInstance.$el},l.prototype.destroy=function(){this.mountedComponent.unmount()},l.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},l.prototype.init=function(c){var h=this.createComponent(c),f=h.mountedComponent,v=h.componentInstance;this.mountedComponent=f,this.componentInstance=v},l}(),Lu=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Mu=function(l){return"on"+l.charAt(0).toUpperCase()+l.substring(1,l.length)},lm=function(){var l={gridOptions:{default:function(){return{}}},autoParamsRefresh:!1,componentDependencies:{default:function(){return[]}},modules:{default:function(){return[]}},rowDataModel:void 0},c=wt.ComponentUtil.EVENTS.map(function(v){return Mu(Lu(v))});c.reduce(function(v,w){return v[w]=void 0,v},l);var h={rowDataModel:function(v,w){this.processChanges("rowData",v,w)}};wt.ComponentUtil.ALL_PROPERTIES.forEach(function(v){l[v]={},h[v]=function(w,R){this.processChanges(v,w,R)}});var f={prop:"rowDataModel",event:"data-model-changed"};return[l,h,f]},Gu=function(){function l(){}return l.hasChildColumns=function(c){return c&&c.default&&c.default.length>0},l.mapChildColumnDefs=function(c){return c.default.map(function(h){return l.toColDef(h)})},l.toColDef=function(c){var h=l.createColDefFromGridColumn(c);return c.children&&c.children.length>0&&(h.children=l.getChildColDefs(c.children)),h},l.getChildColDefs=function(c){return c.map(function(h){return l.createColDefFromGridColumn(h)})},l.createColDefFromGridColumn=function(c){var h={};return l.assign(h,c.data.attrs),delete h.children,wt.ColDefUtil.BOOLEAN_PROPERTIES.forEach(function(f){var v=h;v[f]===""&&(v[f]=!0)}),h},l.assign=function(c,h){return[h].reduce(function(f,v){return Object.keys(v).forEach(function(w){f[w]=v[w]}),f},c)},l}(),um=globalThis&&globalThis.__extends||function(){var l=function(c,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},l(c,h)};return function(c,h){l(c,h);function f(){this.constructor=c}c.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),pm=globalThis&&globalThis.__decorate||function(l,c,h,f){var v=arguments.length,w=v<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,h):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(l,c,h,f);else for(var O=l.length-1;O>=0;O--)(R=l[O])&&(w=(v<3?R(w):v>3?R(c,h,w):R(c,h))||w);return v>3&&w&&Object.defineProperty(c,h,w),w},$i=lm(),cm=$i[0],dm=$i[1],hm=$i[2],fm=function(l){um(c,l);function c(){var f=l!==null&&l.apply(this,arguments)||this;return f.gridCreated=!1,f.isDestroyed=!1,f.gridReadyFired=!1,f.emitRowModel=null,f}h=c,c.prototype.render=function(){return d.h("div")},c.prototype.globalEventListener=function(f,v){this.isDestroyed||(f==="gridReady"&&(this.gridReadyFired=!0),this.updateModelIfUsed(f))},c.prototype.processChanges=function(f,v,w){if(this.gridCreated){if(this.skipChange(f,v,w))return;var R={};R[f]={currentValue:v,previousValue:w},wt.ComponentUtil.processOnChange(R,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},c.prototype.mounted=function(){var f=this;this.emitRowModel=this.debounce(function(){f.$emit(h.DATA_MODEL_ATTR_NAME,Object.freeze(f.getRowData()))},20);var v=new sm(this),w=xv(wt.ComponentUtil.copyAttributesToGridOptions(or(this.gridOptions),this));this.checkForBindingConflicts(),w.rowData=this.getRowDataBasedOnBindings(),Gu.hasChildColumns(this.$slots)&&(w.columnDefs=Gu.mapChildColumnDefs(this.$slots));var R={globalEventListener:this.globalEventListener.bind(this),providedBeanInstances:{frameworkComponentWrapper:v},modules:this.modules};new wt.Grid(this.$el,w,R),this.gridCreated=!0},c.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},c.prototype.checkForBindingConflicts=function(){var f=this;(f.rowData||this.gridOptions.rowData)&&f.rowDataModel&&console.warn("ag-grid: Using both rowData and rowDataModel. rowData will be ignored.")},c.prototype.getRowData=function(){var f=[];return this.gridOptions.api.forEachNode(function(v){f.push(v.data)}),f},c.prototype.updateModelIfUsed=function(f){this.gridReadyFired&&this.$attrs[h.DATA_MODEL_ATTR_NAME]&&h.ROW_DATA_EVENTS.indexOf(f)!==-1&&this.emitRowModel&&this.emitRowModel()},c.prototype.getRowDataBasedOnBindings=function(){var f=this,v=f.rowDataModel;return v||(f.rowData?f.rowData:f.gridOptions.rowData)},c.prototype.skipChange=function(f,v,w){if(this.gridReadyFired&&f==="rowData"&&this.$attrs[h.DATA_MODEL_ATTR_NAME]){if(v===w)return!0;if(v&&w){var R=v,O=w;if(R.length===O.length){for(var P=0;P<R.length;P++)if(R[P]!==O[P])return!1;return!0}}}return!1},c.prototype.debounce=function(f,v){var w;return function(){var R=function(){f()};window.clearTimeout(w),w=window.setTimeout(R,v)}};var h;return c.VERSION="Vue 3+",c.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],c.DATA_MODEL_ATTR_NAME=Mu(Lu("data-model-changed")),c=h=pm([wt.Bean("agGridVue"),rm({props:cm,watch:dm,model:hm})],c),c}(Fu);const gm=rf(Object.freeze(Object.defineProperty({__proto__:null,AgGridVue:fm},Symbol.toStringTag,{value:"Module"})));(function(l){function c(h){for(var f in h)l.hasOwnProperty(f)||(l[f]=h[f])}c(gm)})(Du);const vm=d.defineComponent({props:{gridApi:{type:Object,default:{}},storageColumnsKey:{type:String,default:""},columnDefs:{type:Array,default:[]},columnUpdate:{type:Number,default:0}},setup(l){const c=d.ref(),h=d.reactive({show:!1,left:"",top:"",bottom:"auto",columns:[]});d.watch(()=>l.columnUpdate,()=>{h.columns=l.columnDefs.map(P=>({...P,show:!P.hide}))}),h.columns=l.columnDefs.map(P=>({...P,show:!P.hide}));function f(){h.columns.forEach(T=>{T.hide=!T.show}),w(h.columns);const P=h.columns.map(T=>({field:T.field,headerName:T.headerName,width:T.width,minWidth:T.minWidth,hide:T.hide}));localStorage.setItem(l.storageColumnsKey,JSON.stringify(P))}function v(){h.columns.forEach(P=>{P.rowGroup?(P.hide=!0,P.show=!1):(P.hide=!1,P.show=!0)}),w(h.columns),localStorage.removeItem(l.storageColumnsKey)}function w(P){l.gridApi.setColumnDefs(P),h.show=!1}function R(){h.show=!1}function O(){setTimeout(()=>{const P=document.querySelector(`.${l.storageColumnsKey} .ag-header`);P&&(P.oncontextmenu=T=>{h.left=T.pageX+"px",h.top=T.pageY+"px",setTimeout(()=>{h.show=!0,d.nextTick(()=>{const N=c.value.clientHeight,G=document.documentElement.clientHeight;N+20>G-T.pageY&&(h.top="auto",h.bottom="10px")})}),T.preventDefault()})},1e3),document.removeEventListener("click",R,!1),document.removeEventListener("contextmenu",R,!1),document.addEventListener("click",R,!1),document.addEventListener("contextmenu",R,!1)}return O(),d.onActivated(()=>{O()}),{elColumnCheckedPanel:c,...d.toRefs(h),confirm:f,reset:v}}}),iA="",ym=(l=>(d.pushScopeId("data-v-d092a466"),l=l(),d.popScopeId(),l))(()=>d.createElementVNode("p",{class:"header-checked-header"}," 自定义字段显示信息 ",-1)),mm={class:"header-checked-body"},Cm={class:"header-checked-footer"};function wm(l,c,h,f,v,w){const R=d.resolveComponent("el-checkbox"),O=d.resolveComponent("el-button");return d.withDirectives((d.openBlock(),d.createElementBlock("div",{ref:"elColumnCheckedPanel",style:d.normalizeStyle({left:l.left,top:l.top,bottom:l.bottom}),class:"header-checked",onClick:c[0]||(c[0]=d.withModifiers(()=>{},["stop"]))},[ym,d.createElementVNode("div",mm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.columns,(P,T)=>d.withDirectives((d.openBlock(),d.createBlock(R,{key:P.headerName+T,modelValue:P.show,"onUpdate:modelValue":N=>P.show=N,label:P.headerName},null,8,["modelValue","onUpdate:modelValue","label"])),[[d.vShow,P.headerName!==" "]])),128))]),d.createElementVNode("div",Cm,[d.createVNode(O,{type:"default",size:"small",onClick:l.reset,style:{"margin-right":"4px"}},{default:d.withCtx(()=>[d.createTextVNode("还原")]),_:1},8,["onClick"]),d.createVNode(O,{type:"primary",size:"small",onClick:l.confirm},{default:d.withCtx(()=>[d.createTextVNode("确定")]),_:1},8,["onClick"])])],4)),[[d.vShow,l.show]])}const _m=Pe(vm,[["render",wm],["__scopeId","data-v-d092a466"]]),Em=d.defineComponent({components:{AgGridVue:Du.AgGridVue,ColumnCheck:_m},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","handleSelectionChange","onViewportChanged","onRowSelected","onRowClicked"],setup(l,c){var Be;const h=eo();let f=null;const v=l.componentOption;let w=-1,R={};const O=d.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(Be=v.configFlag)==null?void 0:Be.headerClass},columnDefs:v.columns,configFlag:{rowHeight:30,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,index:!1,border:!0,isRowClick:!1,isTotal:!1,groupSelectsChildren:!1,autoGroupColumnDef:{}},pageInfo:v.pageInfo,rowData:d.computed(()=>(v.data.result.length&&setTimeout(()=>{O.showTable=!0},300),v.data.result)),totalNum:d.computed(()=>Number(v.data.totalNum)),storageColumnsKey:d.computed(()=>(v.status||"")+(v.key||"")),gridApi:null,columnUpdate:0});v.configFlag&&Object.keys(v.configFlag).forEach(z=>{O.configFlag[z]=v.configFlag[z]}),O.configFlag.isRowClick&&d.watch(()=>l.tableComp.data.result,()=>{w=-1}),O.configFlag.checkboxSelection&&(O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...v.columns]),O.configFlag.total&&d.watch(()=>l.tableComp.data.result,()=>{P()});function P(){const z=[];let A={};O.columnDefs.map((ie,$)=>{A.type="total",$===0?A[ie.field]="总计":ie.showTotal?A[ie.field]=T(l.tableComp.data.result,ie.field):A[ie.field]=""}),z.push(A),f.setPinnedBottomRowData(z)}function T(z,A){let ie=0;for(let $=0;$<z.length;$++)ie=Gy(ie,parseFloat(z[$][A]?z[$][A]:0));return ie}d.watch(()=>v.columns,()=>{const z=v.columns.filter(A=>A.rowGroup?A:(A.hide=A.hide?A.hide:!1,!A.hide));O.configFlag.checkboxSelection?O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...z]:O.columnDefs=z,N(),O.columnUpdate=Date.now(),setTimeout(()=>{O.configFlag.sizeColumnsToFit&&f.sizeColumnsToFit()})});function N(){let z=localStorage.getItem(O.storageColumnsKey);z&&(JSON.parse(z).forEach((ie,$)=>{for(let Mt=0,Ro=O.columnDefs.length;Mt<Ro;Mt++){const io=O.columnDefs[Mt];if(io.headerName===ie.headerName){io.index=$,io.width=ie.width,io.minWidth=ie.minWidth,io.hide=ie.hide||!1;break}}}),O.columnDefs.sort((ie,$)=>ie.index-$.index))}N();function G(z){let A=z.api.getColumnDefs();A=A.map((ie,$)=>(ie.hide&&(O.columnDefs[$].hide=!0),{field:ie.field,headerName:ie.headerName,width:ie.width,minWidth:ie.minWidth,hide:ie.hide})),localStorage.setItem(O.storageColumnsKey,JSON.stringify(A)),O.columnUpdate=Date.now()}function H(z){const A=l.getRowStyle?l.getRowStyle(z):{},ie=z.api.getRowNode(z.rowIndex);return typeof O.configFlag.checkboxSelection=="function"&&(ie.selectable=O.configFlag.checkboxSelection(z)),z.node.isClicked===void 0?A:z.node.isClicked?{"background-color":"#ffe48d",...A}:{"background-color":"",...A}}function U(z){c.emit("onRowSelected",z)}function Z(){c.emit("onViewportChanged")}function re(z){f=O.gridApi=z.api,O.configFlag.sizeColumnsToFit&&z.api.sizeColumnsToFit(),c.emit("onGridReady",z.api)}function K(z){var A=z.api.getSelectedRows();v.onSelectionChanged&&v.onSelectionChanged(A)}function me(z){if(!z.rowPinned&&w!==z.rowIndex&&O.configFlag.isRowClick){if(w>-1){const ie=z.api.getRowNode(w);ie.isClicked=!1,ie.setData(R)}const A=z.api.getRowNode(z.rowIndex);A.isClicked=!0,A.setData(z.data),v.onRowClickedFn&&v.onRowClickedFn(z,v),w=z.rowIndex,R=z.data}}function De(z){O.configFlag.onCellClicked&&O.configFlag.onCellClicked({field:z.colDef.field,data:z.data,rowIndex:z.rowIndex,tableComp:v},z)}function le(z){v.pageInfo.pageSize=z,h.dispatch("tableQuery",{tableComp:v})}function ce(z){v.pageInfo.currentPage=z,v.pageInfo.pageNum=z,h.dispatch("tableQuery",{tableComp:v})}return{...d.toRefs(O),onGridReady:re,dragStopped:G,sizeChange:le,onSelectionChanged:K,currentChange:ce,viewportChanged:Z,onRowSelected:U,onRowClicked:me,onCellClicked:De,getRowStyle:H}}}),Rm={style:{display:"flex","justify-content":"end"}};function Sm(l,c,h,f,v,w){const R=d.resolveComponent("ag-grid-vue"),O=d.resolveComponent("el-pagination"),P=d.resolveComponent("ColumnCheck");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(R,{class:d.normalizeClass(["ag-theme-alpine",[l.storageColumnsKey]]),style:d.normalizeStyle({opacity:l.showTable?1:0}),headerHeight:"22",rowHeight:l.configFlag.rowHeight,columnDefs:l.columnDefs,defaultColDef:l.defaultColDef,rowData:l.rowData,rowSelection:"multiple",rowMultiSelectWithClick:l.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:l.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(l.configFlag.suppressRowClickSelection||!l.configFlag.suppressRowClickSelection&&l.configFlag.suppressRowClickSelection!==!1),onGridReady:l.onGridReady,onSelectionChanged:l.onSelectionChanged,getRowStyle:l.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:l.configFlag.groupSelectsChildren,onViewportChanged:l.viewportChanged,onRowSelected:l.onRowSelected,onRowClicked:l.onRowClicked,onDragStopped:l.dragStopped,onCellClicked:l.onCellClicked,suppressAggFuncInHeader:!0,suppressContextMenu:!0},null,8,["class","style","rowHeight","columnDefs","defaultColDef","rowData","rowMultiSelectWithClick","autoGroupColumnDef","suppressRowClickSelection","onGridReady","onSelectionChanged","getRowStyle","groupSelectsChildren","onViewportChanged","onRowSelected","onRowClicked","onDragStopped","onCellClicked"]),d.renderSlot(l.$slots,l.configFlag.slotName),d.createElementVNode("div",Rm,[l.pageInfo?(d.openBlock(),d.createBlock(O,{key:0,style:{"margin-top":"5px"},total:l.totalNum,pageNum:l.pageInfo.currentPage,pageSize:l.pageInfo.pageSize,layout:"total,sizes, prev, pager, next",onSizeChange:l.sizeChange,onCurrentChange:l.currentChange,"page-sizes":[20,50,100,300,500],small:""},null,8,["total","pageNum","pageSize","onSizeChange","onCurrentChange"])):d.createCommentVNode("",!0)]),d.createVNode(P,{gridApi:l.gridApi,storageColumnsKey:l.storageColumnsKey,columnDefs:l.columnDefs,columnUpdate:l.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const Om=Pe(Em,[["render",Sm]]),Pm=d.defineComponent({name:"CardText",components:{},props:{componentOption:{type:Array}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),aA="",Dm={class:"cardTextRow"},Am={class:"cardTextStyle",style:{"text-align":"center"}},Tm={key:0};function bm(l,c,h,f,v,w){const R=d.resolveComponent("el-button"),O=d.resolveComponent("el-card");return d.openBlock(),d.createElementBlock("div",Dm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(P,T)=>(d.openBlock(),d.createBlock(O,{shadow:"hover",style:{width:"200px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(N,G)=>(d.openBlock(),d.createElementBlock("div",Am,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(N.valuekey,(H,U)=>(d.openBlock(),d.createElementBlock("span",null,[H.type=="text"?(d.openBlock(),d.createElementBlock("span",Tm,d.toDisplayString(P[H.key]),1)):d.createCommentVNode("",!0),H.type=="btn"?(d.openBlock(),d.createBlock(R,{key:1,size:"small",style:d.normalizeStyle(H.style),type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(H.key),1)]),_:2},1032,["style"])):d.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])}const Nm=Pe(Pm,[["render",bm],["__scopeId","data-v-26a53675"]]),Fm=d.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Object}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),Im=["src"];function Lm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",{style:d.normalizeStyle(l.componentOption.style)},[d.createElementVNode("img",{style:{width:"100%",height:"100%"},src:l.componentOption.value[0],alt:""},null,8,Im)],4)}const Mm=Pe(Fm,[["render",Lm]]),Gm=d.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Array}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),xm=["src"];function Vm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,R=>(d.openBlock(),d.createElementBlock("img",{style:d.normalizeStyle(l.componentOption.style||"width: 80px; height: 80px; margin-right: 10px"),src:R,alt:""},null,12,xm))),256))])}const Hm=Pe(Gm,[["render",Vm]]),Wm=d.defineComponent({name:"TagArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),Bm={class:"container"},km={key:1},Um={key:2},jm={class:"componentOptionTextStyle",style:{"text-align":"center"}},zm={key:0},$m={key:1};function Km(l,c,h,f,v,w){const R=d.resolveComponent("el-tag");return d.openBlock(),d.createElementBlock("div",Bm,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),l.componentOption.multipleValues?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("span",km,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,O=>(d.openBlock(),d.createBlock(R,{style:{"margin-right":"5px"}},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(O),1)]),_:2},1024))),256))])),l.componentOption.multipleValues?(d.openBlock(),d.createElementBlock("span",Um,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(O,P)=>(d.openBlock(),d.createBlock(R,{style:{"margin-right":"5px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(T,N)=>(d.openBlock(),d.createElementBlock("span",jm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(T.valuekey,(G,H)=>(d.openBlock(),d.createElementBlock("span",null,[G.type=="text"?(d.openBlock(),d.createElementBlock("span",zm,d.toDisplayString(O[G.key]),1)):d.createCommentVNode("",!0),G.type=="array"?(d.openBlock(),d.createElementBlock("span",$m,d.toDisplayString(O[G.key])+" ",1)):d.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])):d.createCommentVNode("",!0)])}const Ym=Pe(Wm,[["render",Km]]),qm=d.defineComponent({name:"tag",props:{componentOption:{type:Object}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}});function Xm(l,c,h,f,v,w){const R=d.resolveComponent("el-tag");return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),d.createVNode(R,null,{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(l.componentOption.value),1)]),_:1})])}const Qm=Pe(qm,[["render",Xm]]),lA="",Jm=d.defineComponent({name:"text",props:{componentOption:{type:Object}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),uA="";function Zm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(l.componentOption.value),1)])}const eC=Pe(Jm,[["render",Zm],["__scopeId","data-v-b6dacdbb"]]),tC=d.defineComponent({name:"TextArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),oC={class:"container"},rC={key:1},nC={style:{"margin-right":"5px"}},iC={key:2},sC={style:{"margin-right":"5px"}},aC={class:"componentOptionTextStyle",style:{"text-align":"center"}},lC={key:0};function uC(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",oC,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),l.componentOption.multipleValues?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("span",rC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,R=>(d.openBlock(),d.createElementBlock("span",nC,d.toDisplayString(R),1))),256))])),l.componentOption.multipleValues?(d.openBlock(),d.createElementBlock("span",iC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(R,O)=>(d.openBlock(),d.createElementBlock("span",sC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(P,T)=>(d.openBlock(),d.createElementBlock("span",aC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(P.valuekey,(N,G)=>(d.openBlock(),d.createElementBlock("span",null,[N.type=="text"?(d.openBlock(),d.createElementBlock("span",lC,d.toDisplayString(R[N.key]),1)):d.createCommentVNode("",!0)]))),256))]))),256))]))),256))])):d.createCommentVNode("",!0)])}const pC=Pe(tC,[["render",uC]]),cC=d.defineComponent({props:{componentOption:{type:Object},pageKey:{type:String,required:!0},configOption:{type:Array},data:{type:Object,default:{}}},setup(l,c){console.log(1111111111,l.componentOption.key.value);let h=d.ref();const f=eo(),v=d.reactive({data:{},formGroup:[],buttonGroup:[],formData:{},dialog:!0});function w(){v.dialog=!0}function R(){return!1}function O(){h.value.formRef.validate(P=>{if(P){if(l.popupData.data.submitBefore&&l.popupData.data.submitBefore()===!1)return;f.commit("setLoading",!0);const T=v.data.params(l.selectedRows,v.formData);let N=v.data.method=="GET"?"params":"data";nr({url:f.state.baseUrl+v.data.url,[N]:T||{},method:v.data.method||"POST"}).then(G=>{Lt.success("操作成功"),c.emit("onSuccess",G)}).catch(G=>{console.log(G)}).finally(()=>{f.commit("setLoading",!1)})}})}return{...d.toRefs(v),formRef:h,store:f,showDialog:w,submit:O,closeDialog:R}}});function dC(l,c,h,f,v,w){const R=d.resolveComponent("el-dialog");return d.openBlock(),d.createBlock(R,{modelValue:l.dialog,"onUpdate:modelValue":c[0]||(c[0]=O=>l.dialog=O),title:l.componentOption.label,width:l.componentOption.width||30,"before-close":l.handleClose,top:l.componentOption.top||"15vh",modal:l.componentOption.modal||!0,"show-close":l.componentOption.showClose||!0,"close-on-press-escape":l.componentOption.escape||!0,"close-on-click-modal":l.componentOption.clickModal||!0,center:l.componentOption.center||!1},{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{componentOption:l.componentOption})]),_:3},8,["modelValue","title","width","before-close","top","modal","show-close","close-on-press-escape","close-on-click-modal","center"])}const hC=Pe(cC,[["render",dC]]),fC=d.defineComponent({name:"RowItem",components:{Card:Th,Form:My,ButtonGroup:ky,AgGridTable:Om,CardText:Nm,ImageOne:Mm,ImageList:Hm,TagArr:Ym,Text:eC,Tag:Qm,TextArr:pC,Dialog:hC},props:{pageKey:{type:String,required:!0},configOption:{type:Array,default:[]}}});function gC(l,c,h,f,v,w){const R=d.resolveComponent("RowItem",!0),O=d.resolveComponent("el-col"),P=d.resolveComponent("el-row");return d.openBlock(),d.createBlock(P,null,{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.configOption,(T,N)=>(d.openBlock(),d.createBlock(O,{style:d.normalizeStyle(T.style||""),class:d.normalizeClass(T.class||""),span:T.span||24,offset:T.offset||0,key:N},{default:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(T.type),{pageKey:l.pageKey,componentOption:T},{default:d.withCtx(()=>[T.children&&T.children.length?(d.openBlock(),d.createBlock(R,{key:0,pageKey:l.pageKey,configOption:T.children},null,8,["pageKey","configOption"])):d.createCommentVNode("",!0)]),_:2},1032,["pageKey","componentOption"]))]),_:2},1032,["style","class","span","offset"]))),128))]),_:1})}const vC=Pe(fC,[["render",gC]]),yC=d.defineComponent({name:"Page",props:{pageKey:{type:String,required:!0},configOption:{type:Array,defaule:[],required:!0},data:{type:Object,default:{}}},components:{RowItem:vC},setup({configOption:l,data:c}){c&&h(l,c);function h(v,w){v.forEach(R=>{var O;if(R.children)h(R.children,w);else if(R.relation)if(Array.isArray(R.relation))R.value="",R.relation.forEach(P=>{const T=P.split(".");R.value+=" "+f(T,w)});else{const P=(O=R.relation)==null?void 0:O.split(".");R.value=f(P,w)}})}function f(v,w){if(v.length===1)return w;if(v.length===2)return w[v[1]];if(v.length===3)return w[v[1]][v[2]];if(v.length===4)return w[v[1]][v[2]][v[3]];if(v.length===5)return w[v[1]][v[2]][v[3]][v[4]]}return{}}}),pA="";function mC(l,c,h,f,v,w){const R=d.resolveComponent("RowItem");return d.openBlock(),d.createBlock(R,{pageKey:l.pageKey,configOption:l.configOption},null,8,["pageKey","configOption"])}const CC=Pe(yC,[["render",mC],["__scopeId","data-v-6a413dd6"]]);function wC(l,c){l.component("DfsPageConfig",CC)}return wC});
|
|
1497
|
+
\0`+(g?"\0\b":"\0\0")+"\0\0"+u(y,2)+u(C,2)+u(F?this.getFromCrc32Table(B):0,4)+u(F,4)+u(F,4)+u(p.length,2)+u(E.length,2),L="PK"+M+p+E,j="PK\0"+M+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+u(e,4)+p+E;return{fileHeader:L,folderHeader:j,content:B||""}},i.getConvertedContent=function(t,e){return e===void 0&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},i.buildFolderEnd=function(t,e,o){var r=X.decToHex;return"PK\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(o,4)+"\0\0"},i.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},i.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),r=0;r<e;r++)o[r]=t.charCodeAt(r);for(var n=-1,s=0,a=0,u=0,r=0;r<e;r++)s=o[r],a=(n^s)&255,u=yD[a],n=n>>>8^u;return n^-1},i.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},i.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},i.folders=[],i.files=[],i}();oe.register(nD,!1),oe.register(cD,!1),oe.register(Ph,!1),l.AbstractHeaderCellCtrl=Rr,l.AgAbstractField=At,l.AgAngleSelect=oh,l.AgCheckbox=Wo,l.AgColorPicker=Zd,l.AgDialog=Fa,l.AgGroupComponent=Kd,l.AgInputNumberField=eh,l.AgInputRange=th,l.AgInputTextArea=Qd,l.AgInputTextField=Ia,l.AgPanel=Na,l.AgPromise=Ke,l.AgRadioButton=Ad,l.AgSelect=zs,l.AgSlider=Jd,l.AgStackComponentsRegistry=dp,l.AgToggleButton=rh,l.AlignedGridsService=Gd,l.AnimateShowChangeCellRenderer=cc,l.AnimateSlideCellRenderer=dc,l.AnimationFrameService=Bd,l.AutoScrollService=Qc,l.AutoWidthCalculator=gd,l.Autowired=m,l.BaseComponentWrapper=kP,l.BaseCreator=wh,l.BaseGridSerializingSession=_h,l.Bean=Y,l.BeanStub=V,l.Beans=sa,l.BodyDropPivotTarget=Vc,l.BodyDropTarget=Hc,l.CellComp=hh,l.CellCtrl=Yt,l.CellNavigationService=Od,l.CellPositionUtils=ih,l.ChangedPath=Tn,l.CheckboxSelectionComponent=ea,l.ColDefUtil=hs,l.Color=To,l.Column=fe,l.ColumnApi=Pc,l.ColumnFactory=tp,l.ColumnGroup=Fe,l.ColumnKeyCreator=re,l.ColumnModel=sp,l.ColumnUtils=up,l.Component=se,l.ComponentUtil=it,l.Constants=D,l.Context=qu,l.CssClassApplier=ha,l.CsvCreator=Sh,l.CsvExportModule=Ph,l.CtrlsService=ch,l.CustomTooltipFeature=Ws,l.DateFilter=Ys,l.DisplayedGroupCreator=pp,l.Downloader=Eh,l.DragAndDropService=ze,l.DragService=_d,l.Environment=Wd,l.EventService=Gt,l.Events=_,l.ExpressionService=ud,l.FilterManager=Yc,l.FloatingFilterMapper=Wc,l.FocusService=Uo,l.Grid=Ba,l.GridApi=ad,l.GridBodyComp=sd,l.GridBodyCtrl=od,l.GridComp=wd,l.GridCoreCreator=vh,l.GridCtrl=yd,l.GridHeaderComp=Kc,l.GridHeaderCtrl=Lc,l.GridOptionsWrapper=q,l.GridSerializer=Oh,l.GroupCellRenderer=ta,l.GroupCellRendererCtrl=gc,l.GroupInstanceIdCreator=ss,l.HeaderCellCtrl=Uc,l.HeaderFilterCellComp=bc,l.HeaderFilterCellCtrl=kc,l.HeaderGroupCellCtrl=jc,l.HeaderNavigationService=Ic,l.HeaderPositionUtils=lh,l.HeaderRowComp=Fc,l.HeaderRowContainerComp=Gn,l.HeaderRowContainerCtrl=$c,l.HeaderRowCtrl=Mn,l.HorizontalResizeService=vd,l.KeyCode=W,l.LargeTextCellEditor=ac,l.Logger=Hn,l.LoggerFactory=fd,l.ManagedFocusFeature=Vt,l.ModuleRegistry=oe,l.MouseEventService=Sd,l.MoveColumnFeature=Gc,l.NavigationService=kd,l.NumberFilter=Xs,l.NumberSequence=po,l.Optional=he,l.PaginationProxy=Id,l.PinnedRowModel=sh,l.PopupComponent=Mo,l.PopupEditorWrapper=dh,l.PopupSelectCellEditor=uc,l.PopupService=dd,l.PopupTextCellEditor=pc,l.PositionableFeature=Xd,l.PostConstruct=k,l.PreConstruct=ts,l.PreDestroy=Ne,l.PropertyKeys=St,l.ProvidedColumnGroup=Re,l.ProvidedFilter=vr,l.Qualifier=xe,l.QuerySelector=i_,l.RefSelector=x,l.ResizeObserverService=$d,l.RowContainerComp=fh,l.RowContainerCtrl=Vn,l.RowCtrl=qt,l.RowNode=ae,l.RowNodeBlock=Yn,l.RowNodeBlockLoader=uh,l.RowNodeSorter=ph,l.RowPositionUtils=nh,l.RowRenderer=Tc,l.ScalarFilter=je,l.ScrollVisibleService=bd,l.SelectCellEditor=Zs,l.SelectableService=jd,l.SelectionService=Oc,l.SetLeftFeature=In,l.SimpleFilter=Ue,l.SortController=Ed,l.StandardMenuFactory=gh,l.StylingService=Fd,l.TabGuardComp=_a,l.TabGuardCtrl=Cd,l.TabbedLayout=xP,l.TemplateService=cd,l.TextCellEditor=On,l.TextFilter=Sn,l.TextFloatingFilter=sc,l.Timer=t_,l.TouchListener=lt,l.UserComponentFactory=wc,l.UserComponentRegistry=yc,l.ValueCache=Md,l.ValueFormatterService=Dd,l.ValueService=qc,l.VanillaFrameworkOverrides=Td,l.VirtualList=WP,l.XmlFactory=vD,l.ZipContainer=mD,l._=X,l.defaultGroupComparator=BP,l.initialiseAgGridWithAngular1=FP,l.initialiseAgGridWithWebComponents=LP,l.simpleHttpRequest=VP,l.stringToArray=hp})(wt);var jt=globalThis&&globalThis.__assign||function(){return jt=Object.assign||function(l){for(var c,h=1,f=arguments.length;h<f;h++){c=arguments[h];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(l[v]=c[v])}return l},jt.apply(this,arguments)},nm=function(){function l(){}return l.getComponentDefinition=function(c,h){var f;return typeof c=="string"?(f=this.searchForComponentInstance(h,c),f.template?f=jt({},d.defineComponent(f)):f={extends:d.defineComponent(f)}):f={extends:d.defineComponent(jt({},c))},f||console.error("Could not find component with name of "+c+". Is it in Vue.components?"),f.extends&&f.extends.setup&&(f.setup=f.extends.setup),f},l.createComponentParams=function(c,h){var f={params:Object.freeze(c),parent:h};return h.componentDependencies&&h.componentDependencies.forEach(function(v){return f[v]=h[v]}),f},l.createAndMountComponent=function(c,h,f){var v=l.getComponentDefinition(c,f);if(v){var w=l.createComponentParams(h,f),R=null,O=d.defineComponent(jt(jt({},v),{data:function(){return jt(jt({},w),v.data?v.data():{})},created:function(){R=this.$root,v.created&&v.created.bind(this)()}})),P=document.createElement("div"),T=d.createApp(O);return T.mount(P),{mountedComponent:T,componentInstance:R}}},l.searchForComponentInstance=function(c,h,f){f===void 0&&(f=10);for(var v=null,w=c.$parent,R=0;!v&&w&&w.$options&&++R<f;)v=w.$options.components[h],w=w.$parent;return v||(console.error("Could not find component with name of "+h+". Is it in Vue.components?"),null)},l}(),Iu=globalThis&&globalThis.__extends||function(){var l=function(c,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},l(c,h)};return function(c,h){l(c,h);function f(){this.constructor=c}c.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),im=globalThis&&globalThis.__decorate||function(l,c,h,f){var v=arguments.length,w=v<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,h):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(l,c,h,f);else for(var O=l.length-1;O>=0;O--)(R=l[O])&&(w=(v<3?R(w):v>3?R(c,h,w):R(c,h))||w);return v>3&&w&&Object.defineProperty(c,h,w),w},sm=function(l){Iu(c,l);function c(h){var f=l.call(this)||this;return f.parent=h,f}return c.prototype.createWrapper=function(h){var f=this,v=function(R){Iu(O,R);function O(){return R!==null&&R.apply(this,arguments)||this}return O.prototype.init=function(P){R.prototype.init.call(this,P)},O.prototype.hasMethod=function(P){return w.getFrameworkComponentInstance()[P]!=null},O.prototype.callMethod=function(P,T){var N=this.getFrameworkComponentInstance(),G=w.getFrameworkComponentInstance();return G[P].apply(N,T)},O.prototype.addMethod=function(P,T){w[P]=T},O.prototype.overrideProcessing=function(P){return f.parent.autoParamsRefresh&&P==="refresh"},O.prototype.processMethod=function(P,T){return P==="refresh"&&(this.getFrameworkComponentInstance().params=T[0]),this.hasMethod(P)?this.callMethod(P,T):P==="refresh"},O.prototype.createComponent=function(P){return f.createComponent(h,P)},O}(am),w=new v;return w},c.prototype.createComponent=function(h,f){return nm.createAndMountComponent(h,f,this.parent)},c.prototype.createMethodProxy=function(h,f,v){return function(){return h.overrideProcessing(f)?h.processMethod(f,arguments):h.hasMethod(f)?h.callMethod(f,arguments):(v&&console.warn("AG Grid: Framework component is missing the method "+f+"()"),null)}},c.prototype.destroy=function(){this.parent=null},c=im([wt.Bean("frameworkComponentWrapper")],c),c}(wt.BaseComponentWrapper),am=function(){function l(){}return l.prototype.getGui=function(){return this.componentInstance.$el},l.prototype.destroy=function(){this.mountedComponent.unmount()},l.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},l.prototype.init=function(c){var h=this.createComponent(c),f=h.mountedComponent,v=h.componentInstance;this.mountedComponent=f,this.componentInstance=v},l}(),Lu=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Mu=function(l){return"on"+l.charAt(0).toUpperCase()+l.substring(1,l.length)},lm=function(){var l={gridOptions:{default:function(){return{}}},autoParamsRefresh:!1,componentDependencies:{default:function(){return[]}},modules:{default:function(){return[]}},rowDataModel:void 0},c=wt.ComponentUtil.EVENTS.map(function(v){return Mu(Lu(v))});c.reduce(function(v,w){return v[w]=void 0,v},l);var h={rowDataModel:function(v,w){this.processChanges("rowData",v,w)}};wt.ComponentUtil.ALL_PROPERTIES.forEach(function(v){l[v]={},h[v]=function(w,R){this.processChanges(v,w,R)}});var f={prop:"rowDataModel",event:"data-model-changed"};return[l,h,f]},Gu=function(){function l(){}return l.hasChildColumns=function(c){return c&&c.default&&c.default.length>0},l.mapChildColumnDefs=function(c){return c.default.map(function(h){return l.toColDef(h)})},l.toColDef=function(c){var h=l.createColDefFromGridColumn(c);return c.children&&c.children.length>0&&(h.children=l.getChildColDefs(c.children)),h},l.getChildColDefs=function(c){return c.map(function(h){return l.createColDefFromGridColumn(h)})},l.createColDefFromGridColumn=function(c){var h={};return l.assign(h,c.data.attrs),delete h.children,wt.ColDefUtil.BOOLEAN_PROPERTIES.forEach(function(f){var v=h;v[f]===""&&(v[f]=!0)}),h},l.assign=function(c,h){return[h].reduce(function(f,v){return Object.keys(v).forEach(function(w){f[w]=v[w]}),f},c)},l}(),um=globalThis&&globalThis.__extends||function(){var l=function(c,h){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},l(c,h)};return function(c,h){l(c,h);function f(){this.constructor=c}c.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),pm=globalThis&&globalThis.__decorate||function(l,c,h,f){var v=arguments.length,w=v<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,h):f,R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(l,c,h,f);else for(var O=l.length-1;O>=0;O--)(R=l[O])&&(w=(v<3?R(w):v>3?R(c,h,w):R(c,h))||w);return v>3&&w&&Object.defineProperty(c,h,w),w},$i=lm(),cm=$i[0],dm=$i[1],hm=$i[2],fm=function(l){um(c,l);function c(){var f=l!==null&&l.apply(this,arguments)||this;return f.gridCreated=!1,f.isDestroyed=!1,f.gridReadyFired=!1,f.emitRowModel=null,f}h=c,c.prototype.render=function(){return d.h("div")},c.prototype.globalEventListener=function(f,v){this.isDestroyed||(f==="gridReady"&&(this.gridReadyFired=!0),this.updateModelIfUsed(f))},c.prototype.processChanges=function(f,v,w){if(this.gridCreated){if(this.skipChange(f,v,w))return;var R={};R[f]={currentValue:v,previousValue:w},wt.ComponentUtil.processOnChange(R,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},c.prototype.mounted=function(){var f=this;this.emitRowModel=this.debounce(function(){f.$emit(h.DATA_MODEL_ATTR_NAME,Object.freeze(f.getRowData()))},20);var v=new sm(this),w=xv(wt.ComponentUtil.copyAttributesToGridOptions(or(this.gridOptions),this));this.checkForBindingConflicts(),w.rowData=this.getRowDataBasedOnBindings(),Gu.hasChildColumns(this.$slots)&&(w.columnDefs=Gu.mapChildColumnDefs(this.$slots));var R={globalEventListener:this.globalEventListener.bind(this),providedBeanInstances:{frameworkComponentWrapper:v},modules:this.modules};new wt.Grid(this.$el,w,R),this.gridCreated=!0},c.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},c.prototype.checkForBindingConflicts=function(){var f=this;(f.rowData||this.gridOptions.rowData)&&f.rowDataModel&&console.warn("ag-grid: Using both rowData and rowDataModel. rowData will be ignored.")},c.prototype.getRowData=function(){var f=[];return this.gridOptions.api.forEachNode(function(v){f.push(v.data)}),f},c.prototype.updateModelIfUsed=function(f){this.gridReadyFired&&this.$attrs[h.DATA_MODEL_ATTR_NAME]&&h.ROW_DATA_EVENTS.indexOf(f)!==-1&&this.emitRowModel&&this.emitRowModel()},c.prototype.getRowDataBasedOnBindings=function(){var f=this,v=f.rowDataModel;return v||(f.rowData?f.rowData:f.gridOptions.rowData)},c.prototype.skipChange=function(f,v,w){if(this.gridReadyFired&&f==="rowData"&&this.$attrs[h.DATA_MODEL_ATTR_NAME]){if(v===w)return!0;if(v&&w){var R=v,O=w;if(R.length===O.length){for(var P=0;P<R.length;P++)if(R[P]!==O[P])return!1;return!0}}}return!1},c.prototype.debounce=function(f,v){var w;return function(){var R=function(){f()};window.clearTimeout(w),w=window.setTimeout(R,v)}};var h;return c.VERSION="Vue 3+",c.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],c.DATA_MODEL_ATTR_NAME=Mu(Lu("data-model-changed")),c=h=pm([wt.Bean("agGridVue"),rm({props:cm,watch:dm,model:hm})],c),c}(Fu);const gm=rf(Object.freeze(Object.defineProperty({__proto__:null,AgGridVue:fm},Symbol.toStringTag,{value:"Module"})));(function(l){function c(h){for(var f in h)l.hasOwnProperty(f)||(l[f]=h[f])}c(gm)})(Du);const vm=d.defineComponent({props:{gridApi:{type:Object,default:{}},storageColumnsKey:{type:String,default:""},columnDefs:{type:Array,default:[]},columnUpdate:{type:Number,default:0}},setup(l){const c=d.ref(),h=d.reactive({show:!1,left:"",top:"",bottom:"auto",columns:[]});d.watch(()=>l.columnUpdate,()=>{h.columns=l.columnDefs.map(P=>({...P,show:!P.hide}))}),h.columns=l.columnDefs.map(P=>({...P,show:!P.hide}));function f(){h.columns.forEach(T=>{T.hide=!T.show}),w(h.columns);const P=h.columns.map(T=>({field:T.field,headerName:T.headerName,width:T.width,minWidth:T.minWidth,hide:T.hide}));localStorage.setItem(l.storageColumnsKey,JSON.stringify(P))}function v(){h.columns.forEach(P=>{P.rowGroup?(P.hide=!0,P.show=!1):(P.hide=!1,P.show=!0)}),w(h.columns),localStorage.removeItem(l.storageColumnsKey)}function w(P){l.gridApi.setColumnDefs(P),h.show=!1}function R(){h.show=!1}function O(){setTimeout(()=>{const P=document.querySelector(`.${l.storageColumnsKey} .ag-header`);P&&(P.oncontextmenu=T=>{h.left=T.pageX+"px",h.top=T.pageY+"px",setTimeout(()=>{h.show=!0,d.nextTick(()=>{const N=c.value.clientHeight,G=document.documentElement.clientHeight;N+20>G-T.pageY&&(h.top="auto",h.bottom="10px")})}),T.preventDefault()})},1e3),document.removeEventListener("click",R,!1),document.removeEventListener("contextmenu",R,!1),document.addEventListener("click",R,!1),document.addEventListener("contextmenu",R,!1)}return O(),d.onActivated(()=>{O()}),{elColumnCheckedPanel:c,...d.toRefs(h),confirm:f,reset:v}}}),iA="",ym=(l=>(d.pushScopeId("data-v-d092a466"),l=l(),d.popScopeId(),l))(()=>d.createElementVNode("p",{class:"header-checked-header"}," 自定义字段显示信息 ",-1)),mm={class:"header-checked-body"},Cm={class:"header-checked-footer"};function wm(l,c,h,f,v,w){const R=d.resolveComponent("el-checkbox"),O=d.resolveComponent("el-button");return d.withDirectives((d.openBlock(),d.createElementBlock("div",{ref:"elColumnCheckedPanel",style:d.normalizeStyle({left:l.left,top:l.top,bottom:l.bottom}),class:"header-checked",onClick:c[0]||(c[0]=d.withModifiers(()=>{},["stop"]))},[ym,d.createElementVNode("div",mm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.columns,(P,T)=>d.withDirectives((d.openBlock(),d.createBlock(R,{key:P.headerName+T,modelValue:P.show,"onUpdate:modelValue":N=>P.show=N,label:P.headerName},null,8,["modelValue","onUpdate:modelValue","label"])),[[d.vShow,P.headerName!==" "]])),128))]),d.createElementVNode("div",Cm,[d.createVNode(O,{type:"default",size:"small",onClick:l.reset,style:{"margin-right":"4px"}},{default:d.withCtx(()=>[d.createTextVNode("还原")]),_:1},8,["onClick"]),d.createVNode(O,{type:"primary",size:"small",onClick:l.confirm},{default:d.withCtx(()=>[d.createTextVNode("确定")]),_:1},8,["onClick"])])],4)),[[d.vShow,l.show]])}const _m=Pe(vm,[["render",wm],["__scopeId","data-v-d092a466"]]),Em=d.defineComponent({components:{AgGridVue:Du.AgGridVue,ColumnCheck:_m},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","handleSelectionChange","onViewportChanged","onRowSelected","onRowClicked"],setup(l,c){var Be;const h=eo();let f=null;const v=l.componentOption;let w=-1,R={};const O=d.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(Be=v.configFlag)==null?void 0:Be.headerClass},columnDefs:v.columns,configFlag:{rowHeight:30,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,index:!1,border:!0,isRowClick:!1,isTotal:!1,groupSelectsChildren:!1,autoGroupColumnDef:{}},pageInfo:v.pageInfo,rowData:d.computed(()=>(v.data.result.length&&setTimeout(()=>{O.showTable=!0},300),v.data.result)),totalNum:d.computed(()=>Number(v.data.totalNum)),storageColumnsKey:d.computed(()=>(v.status||"")+(v.key||"")),gridApi:null,columnUpdate:0});v.configFlag&&Object.keys(v.configFlag).forEach(z=>{O.configFlag[z]=v.configFlag[z]}),O.configFlag.isRowClick&&d.watch(()=>l.tableComp.data.result,()=>{w=-1}),O.configFlag.checkboxSelection&&(O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...v.columns]),O.configFlag.total&&d.watch(()=>l.tableComp.data.result,()=>{P()});function P(){const z=[];let A={};O.columnDefs.map((ie,$)=>{A.type="total",$===0?A[ie.field]="总计":ie.showTotal?A[ie.field]=T(l.tableComp.data.result,ie.field):A[ie.field]=""}),z.push(A),f.setPinnedBottomRowData(z)}function T(z,A){let ie=0;for(let $=0;$<z.length;$++)ie=Gy(ie,parseFloat(z[$][A]?z[$][A]:0));return ie}d.watch(()=>v.columns,()=>{const z=v.columns.filter(A=>A.rowGroup?A:(A.hide=A.hide?A.hide:!1,!A.hide));O.configFlag.checkboxSelection?O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...z]:O.columnDefs=z,N(),O.columnUpdate=Date.now(),setTimeout(()=>{O.configFlag.sizeColumnsToFit&&f.sizeColumnsToFit()})});function N(){let z=localStorage.getItem(O.storageColumnsKey);z&&(JSON.parse(z).forEach((ie,$)=>{for(let Mt=0,Ro=O.columnDefs.length;Mt<Ro;Mt++){const io=O.columnDefs[Mt];if(io.headerName===ie.headerName){io.index=$,io.width=ie.width,io.minWidth=ie.minWidth,io.hide=ie.hide||!1;break}}}),O.columnDefs.sort((ie,$)=>ie.index-$.index))}N();function G(z){let A=z.api.getColumnDefs();A=A.map((ie,$)=>(ie.hide&&(O.columnDefs[$].hide=!0),{field:ie.field,headerName:ie.headerName,width:ie.width,minWidth:ie.minWidth,hide:ie.hide})),localStorage.setItem(O.storageColumnsKey,JSON.stringify(A)),O.columnUpdate=Date.now()}function H(z){const A=l.getRowStyle?l.getRowStyle(z):{},ie=z.api.getRowNode(z.rowIndex);return typeof O.configFlag.checkboxSelection=="function"&&(ie.selectable=O.configFlag.checkboxSelection(z)),z.node.isClicked===void 0?A:z.node.isClicked?{"background-color":"#ffe48d",...A}:{"background-color":"",...A}}function U(z){c.emit("onRowSelected",z)}function Z(){c.emit("onViewportChanged")}function re(z){f=O.gridApi=z.api,O.configFlag.sizeColumnsToFit&&z.api.sizeColumnsToFit(),c.emit("onGridReady",z.api)}function K(z){var A=z.api.getSelectedRows();v.onSelectionChanged&&v.onSelectionChanged(A)}function me(z){if(!z.rowPinned&&w!==z.rowIndex&&O.configFlag.isRowClick){if(w>-1){const ie=z.api.getRowNode(w);ie.isClicked=!1,ie.setData(R)}const A=z.api.getRowNode(z.rowIndex);A.isClicked=!0,A.setData(z.data),v.onRowClickedFn&&v.onRowClickedFn(z,v),w=z.rowIndex,R=z.data}}function De(z){O.configFlag.onCellClicked&&O.configFlag.onCellClicked({field:z.colDef.field,data:z.data,rowIndex:z.rowIndex,tableComp:v},z)}function le(z){v.pageInfo.pageSize=z,h.dispatch("tableQuery",{tableComp:v})}function ce(z){v.pageInfo.currentPage=z,v.pageInfo.pageNum=z,h.dispatch("tableQuery",{tableComp:v})}return{...d.toRefs(O),onGridReady:re,dragStopped:G,sizeChange:le,onSelectionChanged:K,currentChange:ce,viewportChanged:Z,onRowSelected:U,onRowClicked:me,onCellClicked:De,getRowStyle:H}}}),Rm={style:{display:"flex","justify-content":"end"}};function Sm(l,c,h,f,v,w){const R=d.resolveComponent("ag-grid-vue"),O=d.resolveComponent("el-pagination"),P=d.resolveComponent("ColumnCheck");return d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(R,{class:d.normalizeClass(["ag-theme-alpine",[l.storageColumnsKey]]),style:d.normalizeStyle({opacity:l.showTable?1:0}),headerHeight:"22",rowHeight:l.configFlag.rowHeight,columnDefs:l.columnDefs,defaultColDef:l.defaultColDef,rowData:l.rowData,rowSelection:"multiple",rowMultiSelectWithClick:l.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:l.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(l.configFlag.suppressRowClickSelection||!l.configFlag.suppressRowClickSelection&&l.configFlag.suppressRowClickSelection!==!1),onGridReady:l.onGridReady,onSelectionChanged:l.onSelectionChanged,getRowStyle:l.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:l.configFlag.groupSelectsChildren,onViewportChanged:l.viewportChanged,onRowSelected:l.onRowSelected,onRowClicked:l.onRowClicked,onDragStopped:l.dragStopped,onCellClicked:l.onCellClicked,suppressAggFuncInHeader:!0,suppressContextMenu:!0},null,8,["class","style","rowHeight","columnDefs","defaultColDef","rowData","rowMultiSelectWithClick","autoGroupColumnDef","suppressRowClickSelection","onGridReady","onSelectionChanged","getRowStyle","groupSelectsChildren","onViewportChanged","onRowSelected","onRowClicked","onDragStopped","onCellClicked"]),d.renderSlot(l.$slots,l.configFlag.slotName),d.createElementVNode("div",Rm,[l.pageInfo?(d.openBlock(),d.createBlock(O,{key:0,style:{"margin-top":"5px"},total:l.totalNum,pageNum:l.pageInfo.currentPage,pageSize:l.pageInfo.pageSize,layout:"total,sizes, prev, pager, next",onSizeChange:l.sizeChange,onCurrentChange:l.currentChange,"page-sizes":[20,50,100,300,500],small:""},null,8,["total","pageNum","pageSize","onSizeChange","onCurrentChange"])):d.createCommentVNode("",!0)]),d.createVNode(P,{gridApi:l.gridApi,storageColumnsKey:l.storageColumnsKey,columnDefs:l.columnDefs,columnUpdate:l.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const Om=Pe(Em,[["render",Sm]]),Pm=d.defineComponent({name:"CardText",components:{},props:{componentOption:{type:Array}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),aA="",Dm={class:"cardTextRow"},Am={class:"cardTextStyle",style:{"text-align":"center"}},Tm={key:0};function bm(l,c,h,f,v,w){const R=d.resolveComponent("el-button"),O=d.resolveComponent("el-card");return d.openBlock(),d.createElementBlock("div",Dm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(P,T)=>(d.openBlock(),d.createBlock(O,{shadow:"hover",style:{width:"200px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(N,G)=>(d.openBlock(),d.createElementBlock("div",Am,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(N.valuekey,(H,U)=>(d.openBlock(),d.createElementBlock("span",null,[H.type=="text"?(d.openBlock(),d.createElementBlock("span",Tm,d.toDisplayString(P[H.key]),1)):d.createCommentVNode("",!0),H.type=="btn"?(d.openBlock(),d.createBlock(R,{key:1,size:"small",style:d.normalizeStyle(H.style),type:"primary"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(H.key),1)]),_:2},1032,["style"])):d.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])}const Nm=Pe(Pm,[["render",bm],["__scopeId","data-v-26a53675"]]),Fm=d.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Object}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),Im=["src"];function Lm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",{style:d.normalizeStyle(l.componentOption.style)},[d.createElementVNode("img",{style:{width:"100%",height:"100%"},src:l.componentOption.value[0],alt:""},null,8,Im)],4)}const Mm=Pe(Fm,[["render",Lm]]),Gm=d.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Array}},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),xm=["src"];function Vm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,R=>(d.openBlock(),d.createElementBlock("img",{style:d.normalizeStyle(l.componentOption.style||"width: 80px; height: 80px; margin-right: 10px"),src:R,alt:""},null,12,xm))),256))])}const Hm=Pe(Gm,[["render",Vm]]),Wm=d.defineComponent({name:"TagArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),Bm={class:"container"},km={key:1},Um={key:2},jm={class:"componentOptionTextStyle",style:{"text-align":"center"}},zm={key:0},$m={key:1};function Km(l,c,h,f,v,w){const R=d.resolveComponent("el-tag");return d.openBlock(),d.createElementBlock("div",Bm,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),l.componentOption.multipleValues?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("span",km,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,O=>(d.openBlock(),d.createBlock(R,{style:{"margin-right":"5px"}},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(O),1)]),_:2},1024))),256))])),l.componentOption.multipleValues?(d.openBlock(),d.createElementBlock("span",Um,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(O,P)=>(d.openBlock(),d.createBlock(R,{style:{"margin-right":"5px"}},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(T,N)=>(d.openBlock(),d.createElementBlock("span",jm,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(T.valuekey,(G,H)=>(d.openBlock(),d.createElementBlock("span",null,[G.type=="text"?(d.openBlock(),d.createElementBlock("span",zm,d.toDisplayString(O[G.key]),1)):d.createCommentVNode("",!0),G.type=="array"?(d.openBlock(),d.createElementBlock("span",$m,d.toDisplayString(O[G.key])+" ",1)):d.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])):d.createCommentVNode("",!0)])}const Ym=Pe(Wm,[["render",Km]]),qm=d.defineComponent({name:"tag",props:{componentOption:{type:Object}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}});function Xm(l,c,h,f,v,w){const R=d.resolveComponent("el-tag");return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),d.createVNode(R,null,{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(l.componentOption.value),1)]),_:1})])}const Qm=Pe(qm,[["render",Xm]]),lA="",Jm=d.defineComponent({name:"text",props:{componentOption:{type:Object}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),uA="";function Zm(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",null,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(l.componentOption.value),1)])}const eC=Pe(Jm,[["render",Zm],["__scopeId","data-v-b6dacdbb"]]),tC=d.defineComponent({name:"TextArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=d.reactive({});return{...d.toRefs(l)}}}),oC={class:"container"},rC={key:1},nC={style:{"margin-right":"5px"}},iC={key:2},sC={style:{"margin-right":"5px"}},aC={class:"componentOptionTextStyle",style:{"text-align":"center"}},lC={key:0};function uC(l,c,h,f,v,w){return d.openBlock(),d.createElementBlock("div",oC,[l.componentOption.label?(d.openBlock(),d.createElementBlock("span",{key:0,class:"labelText",style:d.normalizeStyle(`width:${l.componentOption.labelWidth}`)},d.toDisplayString(l.componentOption.label)+": ",5)):d.createCommentVNode("",!0),l.componentOption.multipleValues?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("span",rC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,R=>(d.openBlock(),d.createElementBlock("span",nC,d.toDisplayString(R),1))),256))])),l.componentOption.multipleValues?(d.openBlock(),d.createElementBlock("span",iC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.value,(R,O)=>(d.openBlock(),d.createElementBlock("span",sC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.componentOption.multipleValues,(P,T)=>(d.openBlock(),d.createElementBlock("span",aC,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(P.valuekey,(N,G)=>(d.openBlock(),d.createElementBlock("span",null,[N.type=="text"?(d.openBlock(),d.createElementBlock("span",lC,d.toDisplayString(R[N.key]),1)):d.createCommentVNode("",!0)]))),256))]))),256))]))),256))])):d.createCommentVNode("",!0)])}const pC=Pe(tC,[["render",uC]]),cC=d.defineComponent({props:{componentOption:{type:Object},pageKey:{type:String,required:!0},configOption:{type:Array},data:{type:Object,default:{}}},setup(l,c){console.log(1111111111,l.componentOption.key.value);let h=d.ref();const f=eo(),v=d.reactive({data:{},formGroup:[],buttonGroup:[],formData:{},dialog:!0});function w(){v.dialog=!0}function R(){return!1}function O(){h.value.formRef.validate(P=>{if(P){if(l.popupData.data.submitBefore&&l.popupData.data.submitBefore()===!1)return;f.commit("setLoading",!0);const T=v.data.params(l.selectedRows,v.formData);let N=v.data.method=="GET"?"params":"data";nr({url:f.state.baseUrl+v.data.url,[N]:T||{},method:v.data.method||"POST"}).then(G=>{Lt.success("操作成功"),c.emit("onSuccess",G)}).catch(G=>{console.log(G)}).finally(()=>{f.commit("setLoading",!1)})}})}return{...d.toRefs(v),formRef:h,store:f,showDialog:w,submit:O,closeDialog:R}}});function dC(l,c,h,f,v,w){const R=d.resolveComponent("el-dialog");return d.openBlock(),d.createBlock(R,{modelValue:l.dialog,"onUpdate:modelValue":c[0]||(c[0]=O=>l.dialog=O),title:l.componentOption.label,width:l.componentOption.width||30,"before-close":l.handleClose,top:l.componentOption.top||"15vh",modal:l.componentOption.modal||!0,"show-close":l.componentOption.showClose||!0,"close-on-press-escape":l.componentOption.escape||!0,"close-on-click-modal":l.componentOption.clickModal||!0,center:l.componentOption.center||!1},{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{componentOption:l.componentOption})]),_:3},8,["modelValue","title","width","before-close","top","modal","show-close","close-on-press-escape","close-on-click-modal","center"])}const hC=Pe(cC,[["render",dC]]),fC=d.defineComponent({name:"RowItem",components:{Card:Th,Form:My,ButtonGroup:ky,AgGridTable:Om,CardText:Nm,ImageOne:Mm,ImageList:Hm,TagArr:Ym,Text:eC,Tag:Qm,TextArr:pC,Dialog:hC},props:{pageKey:{type:String,required:!0},configOption:{type:Array,default:[]}}});function gC(l,c,h,f,v,w){const R=d.resolveComponent("RowItem",!0),O=d.resolveComponent("el-col"),P=d.resolveComponent("el-row");return d.openBlock(),d.createBlock(P,null,{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l.configOption,(T,N)=>(d.openBlock(),d.createBlock(O,{style:d.normalizeStyle(T.style||""),class:d.normalizeClass(T.class||""),span:T.span||24,offset:T.offset||0,key:N},{default:d.withCtx(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(T.type),{pageKey:l.pageKey,componentOption:T},{default:d.withCtx(()=>[T.children&&T.children.length?(d.openBlock(),d.createBlock(R,{key:0,pageKey:l.pageKey,configOption:T.children},null,8,["pageKey","configOption"])):d.createCommentVNode("",!0)]),_:2},1032,["pageKey","componentOption"]))]),_:2},1032,["style","class","span","offset"]))),128))]),_:1})}const vC=Pe(fC,[["render",gC]]),yC=d.defineComponent({name:"Page",props:{pageKey:{type:String,required:!0},configOption:{type:Array,defaule:[],required:!0},data:{type:Object,default:{}}},components:{RowItem:vC},setup({configOption:l,data:c}){c&&h(l,c);function h(v,w){v.forEach(R=>{var O;if(R.children)h(R.children,w);else if(R.relation)if(Array.isArray(R.relation))R.value="",R.relation.forEach(P=>{const T=P.split(".");R.value+=" "+f(T,w)});else{const P=(O=R.relation)==null?void 0:O.split(".");R.value=f(P,w)}})}function f(v,w){if(v.length===1)return w;if(v.length===2)return w[v[1]];if(v.length===3)return w[v[1]][v[2]];if(v.length===4)return w[v[1]][v[2]][v[3]];if(v.length===5)return w[v[1]][v[2]][v[3]][v[4]]}return{}}}),pA="";function mC(l,c,h,f,v,w){const R=d.resolveComponent("RowItem");return d.openBlock(),d.createBlock(R,{pageKey:l.pageKey,configOption:l.configOption},null,8,["pageKey","configOption"])}const CC=Pe(yC,[["render",mC],["__scopeId","data-v-6a413dd6"]]);function wC(l,c){console.log(l),l.component("DfsPageConfig",CC)}return wC});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfs-page-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": ["dist"],
|
|
6
6
|
"main": "./dist/dfs-page-config.umd.cjs",
|
|
@@ -27,15 +27,6 @@
|
|
|
27
27
|
"vue-class-component": "^8.0.0-rc.1",
|
|
28
28
|
"axios": "^0.21.1"
|
|
29
29
|
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@vitejs/plugin-basic-ssl": "^1.0.1",
|
|
32
|
-
"@vitejs/plugin-vue": "^4.0.0",
|
|
33
|
-
"typescript": "^4.9.3",
|
|
34
|
-
"vite": "^4.0.0",
|
|
35
|
-
"vue-tsc": "^1.0.11",
|
|
36
|
-
"less": "^4.1.1",
|
|
37
|
-
"less-loader": "^8.0.0"
|
|
38
|
-
},
|
|
39
30
|
"peerDependencies": {
|
|
40
31
|
"vue": ">=3.2.22",
|
|
41
32
|
"vue-router": ">=4.0.4",
|