@guiexpert/vue3-table 1.0.1 → 1.0.3
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/README.md +1 -1
- package/package.json +1 -4
- package/vue3-table.es.js +3828 -0
- package/vue3-table.umd.js +314 -0
- package/.babelrc +0 -7
- package/.eslintrc.js +0 -79
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/vue3-table.iml +0 -12
- package/components.d.ts +0 -16
- package/cypress/fixtures/example.json +0 -3
- package/cypress/plugins/index.ts +0 -10
- package/cypress/support/index.ts +0 -1
- package/jest.config.ts +0 -19
- package/postcss.config.js +0 -3
- package/project.json +0 -40
- package/src/assets/.gitkeep +0 -0
- package/src/index.ts +0 -2
- package/src/lib/ComponentRendererWrapper.ts +0 -61
- package/src/lib/GuiexpertTable.spec.ts +0 -9
- package/src/lib/GuiexpertTable.vue +0 -97
- package/src/shims-vue.d.ts +0 -15
- package/tsconfig.json +0 -28
- package/tsconfig.lib.json +0 -25
- package/tsconfig.spec.json +0 -20
- package/vite.config.ts +0 -41
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
(function(a,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],I):(a=typeof globalThis<"u"?globalThis:a||self,I(a["vue3-table"]={},a.Vue))})(this,function(a,I){"use strict";class z{constructor(e=-1,t=-1,o=-1,i=-1,s,r,l,n=0,h=0,d=0,u=""){this.rowIndex=e,this.rowTop=t,this.columnIndex=o,this.columnLeft=i,this.areaIdent=s,this.sideIdent=r,this.originalEvent=l,this.clickCount=n,this.draggingX=h,this.draggingY=d,this.action=u}clone(){return new z(this.rowIndex,this.rowTop,this.columnIndex,this.columnLeft,this.areaIdent,this.sideIdent,this.originalEvent,this.clickCount,this.draggingX,this.draggingY,this.action)}}class P{constructor(e=">",t="",o=[]){this.content=e,this.style=t,this.classes=o}}class J{constructor(e=new P(">","transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",["gt-table-tree-arrow-expanded"]),t=new P(">","",["ge-table-tree-arrow-collapsed"]),o=new P(">","color:transparent;",["gt-table-tree-arrow-hidden"]),i=new P("↕","",["gt-table-tree-arrow-expanded-all"])){this.arrowExpanded=e,this.arrowCollapsed=t,this.arrowPlaceholder=o,this.arrowExpandCollapseAll=i}}class Q{constructor(e=new P("↑","",["ge-header-sorted-asc"]),t=new P("↓","",["ge-header-sorted-desc"]),o=new P("↑","color:transparent;",[])){this.iconAsc=e,this.iconDesc=t,this.iconPlaceholder=o}}class he{constructor(e){this.domService=e}setStyle(e,t,o){return this.domService.setStyle(e,t,o),e}applyStyle(e,t){for(const o in t)this.domService.setStyle(e,o,t[o]);return e}applyDisplayNoneStyle(e){return this.domService.setStyle(e,"display","none"),e}applyDisplayBlockStyle(e){return this.domService.setStyle(e,"display","block"),e}applyStyleInPx(e,t){return Object.entries(t).forEach(([o,i])=>this.domService.setStyle(e,o,i+"px")),e}applyStylePosistionRelative(e){return this.domService.setStyle(e,"position","relative"),this.domService.setStyle(e,"overflow","clip"),e}applyStylePosistionAbsolute(e){return this.domService.setStyle(e,"position","absolute"),e}applyStyleFullSize(e){return this.domService.setStyle(e,"width","100%"),this.domService.setStyle(e,"height","100%"),e}applyStyleOverflowAuto(e="auto",t="auto",o){return this.domService.setStyle(o,"overflow-x",e),this.domService.setStyle(o,"overflow-y",t),o}applyStyleNoPadding(e){return this.domService.setStyle(e,"padding","0"),this.domService.setStyle(e,"margin","0"),this.domService.setStyle(e,"border","0"),e}appendRelativeChildDiv(e){const t=this.applyStylePosistionRelative(this.applyStyleFullSize(this.applyStyleNoPadding(this.domService.createElement("div"))));return this.domService.appendChild(e,t),this.applyStylePosistionAbsolute(e),{parent:e,child:t,cache:{}}}appendText(e,t){const o=this.domService.createText(t);return this.domService.appendChild(e,o),o}addClass(e,t){return e.includes(" ")?e.split(" ").forEach(o=>this.domService.addClass(t,o)):this.domService.addClass(t,e),t}addClasses(e,t){if(e)for(const o of e)this.domService.addClass(t,o);return t}setAttribute(e,t,o){return t&&o&&this.domService.setAttribute(e,t,o),e}createAreaDivWithClass(e,t,o,i){const s=this.domService.createElement("div");return this.addClass(e,s),this.domService.setAttribute(s,"data-area",o),this.domService.setAttribute(s,"data-side",i),this.domService.appendChild(t,s),s}createDivWithClass(e,t){const o=this.domService.createElement("div");return this.addClass(e,o),this.domService.appendChild(t,o),o}addRowDiv(e,t,o=-1,i,s,r=""){const l=t.index??-1,n=this.getDivOrCreateDiv(l,e);if(this.domService.addClass(n,"ge-table-row-div"),this.domService.addClass(n,`ge-table-row-div-${t.index}`),i==="body"&&s==="center"){const h=((t==null?void 0:t.index)??0)%2===0?"even":"odd";this.domService.addClass(n,`ge-table-row-${h}`)}if(this.domService.setStyle(n,"display","clip"),this.domService.setStyle(n,"position","absolute"),this.domService.setStyle(n,"left",`${t.left}px`),this.domService.setStyle(n,"top",`${t.top}px`),this.domService.setStyle(n,"width",`${t.width}px`),this.domService.setStyle(n,"height",`${t.height}px`),this.domService.setAttribute(n,"data-row-index",`${o}`),this.domService.setAttribute(n,"data-area",`${i}`),r){const h=this.domService.createText(r);this.domService.appendChild(n,h)}return this.domService.appendChild(e.child,n),n}addColumnDiv(e,t,o=-1,i=-1,s,r,l="",n,h,d=void 0,u){const b=h==null?void 0:h.treeOptions,S=h==null?void 0:h.showCheckboxWihoutExtraColumn,f=this.domService.createElement("div");this.domService.addClass(f,"ge-table-col-div"),this.domService.addClass(f,`ge-table-col-div-${t.index}`),this.domService.setAttribute(f,"data-col-index",`${t.index}`),this.domService.setAttribute(f,"data-row-index",`${o}`),this.domService.setAttribute(f,"data-area",`${s}`);const w=((t==null?void 0:t.index)??0)%2===0?"even":"odd";if(s==="body"&&r==="center"&&this.domService.addClass(f,`ge-table-column-${w}`),this.domService.setStyle(f,"display","clip"),this.domService.setStyle(f,"position","absolute"),this.domService.setStyle(f,"left",`${t.left}px`),this.domService.setStyle(f,"top",`${t.top}px`),this.domService.setStyle(f,"width",`${t.width}px`),this.domService.setStyle(f,"height",`${t.height}px`),n&&n!=="none"&&(this.domService.addClass(f,"ge-table-col-tree"),this.addArrowDiv(f,n,b,o,i,s)),S&&i===0&&d&&this.addCheckboxToDiv(f,d,s,o),l){const g=n!=="none"&&i===0;this.addLabelDiv(f,l,g,o,i,s)}return u&&this.addSortedIcon(f,u,h==null?void 0:h.sortedOptions,i),this.domService.appendChild(e,f),f}addCheckboxToDiv(e,t,o,i){const s=this.domService.createElement("div"),r=t==="full"?"checked":"";return s.innerHTML=`
|
|
2
|
+
<input
|
|
3
|
+
type="checkbox"
|
|
4
|
+
data-area="${o}"
|
|
5
|
+
data-row-index="${i}"
|
|
6
|
+
data-input-type="checkbox"
|
|
7
|
+
${r}
|
|
8
|
+
class="ge-table-row-checkbox"> `,this.domService.setStyle(s,"display","inline"),this.domService.setStyle(s,"width","inherit"),this.domService.setAttribute(s,"data-row-index",`${i}`),this.domService.appendChild(e,s),s}addLabelDiv(e,t="",o=!1,i=-1,s=-1,r="body"){const l=this.domService.createElement("div");if(this.domService.addClass(l,"ge-table-label-div"),this.domService.setStyle(l,"position","relative"),this.domService.setStyle(l,"background","transparent"),this.domService.setStyle(l,"width","100%"),this.domService.setStyle(l,"height","100%"),this.domService.setAttribute(l,"data-row-index",`${i}`),this.domService.setAttribute(l,"data-col-index",`${s}`),this.domService.setAttribute(l,"data-area",`${r}`),t)if(o){const n=this.domService.createText(t);this.domService.appendChild(l,n)}else{const n=this.domService.createElement("div");this.domService.appendChild(l,n);const h=this.domService.createText(t);this.domService.addClass(n,"ge-table-label"),this.domService.appendChild(n,h),this.domService.setAttribute(n,"data-row-index",`${i}`),this.domService.setAttribute(n,"data-col-index",`${s}`),this.domService.setAttribute(n,"data-area",`${r}`)}return this.domService.appendChild(e,l),l}addSortedIcon(e,t="",o=new Q,i=-1){const s=this.domService.createElement("div");this.domService.addClass(s,"ge-table-sorted-icon-div"),this.domService.setStyle(s,"position","absolute"),this.domService.setStyle(s,"top","0"),this.domService.setStyle(s,"right","0"),this.domService.setStyle(s,"width","20px"),this.domService.setStyle(s,"background","transparent"),this.domService.setStyle(s,"cursor","pointer"),this.domService.setAttribute(s,"data-col-index",`${i}`),this.domService.setAttribute(s,"data-area","header");let r;t==="asc"?r=o.iconAsc:t==="desc"?r=o.iconDesc:r=o.iconPlaceholder;const l=r.content,n=this.domService.createText(l);this.domService.appendChild(s,n),r.style&&this.applyStyleString(s,r.style);for(const h of r.classes)this.domService.addClass(s,h);return this.domService.appendChild(e,s),s}addArrowDiv(e,t="none",o=new J,i=-1,s=-1,r="body"){const l=this.domService.createElement("div");this.domService.addClass(l,"ge-table-tree-arrow-div"),this.domService.setStyle(l,"display","inline-block"),this.domService.setStyle(l,"position",""),this.domService.setStyle(l,"width","20px"),this.domService.setStyle(l,"background","transparent"),this.domService.setStyle(l,"cursor","pointer"),this.domService.setAttribute(l,"data-row-index",`${i}`),this.domService.setAttribute(l,"data-col-index",`${s}`),this.domService.setAttribute(l,"data-area",`${r}`);let n;t==="expanded"?n=o.arrowExpanded:t==="collapsed"?n=o.arrowCollapsed:n=o.arrowPlaceholder;const h=n.content,d=this.domService.createText(h);this.domService.appendChild(l,d),n.style&&this.applyStyleString(l,n.style);for(const u of n.classes)this.domService.addClass(l,u);return this.domService.appendChild(e,l),l}addColumnBorderDivs(e,t,o,i,s){if(e.verticalBorderVisible){const r=`ge-table-${i}-${s}-vertical-border`;this.addVerticalBorder(o,t,r)}if(e.horizontalBorderVisible){const r=`ge-table-${i}-${s}-horizontal-border`;this.addHorizontalBorder(o,t,r)}return t}addHorizontalBorder(e,t,o="ge-table-body-center-horizontal-border"){const i=this.domService.createElement("div");return this.domService.addClass(i,o),this.domService.setStyle(i,"display","clip"),this.domService.setStyle(i,"position","absolute"),this.domService.setStyle(i,"left",`${e.left}px`),this.domService.setStyle(i,"top",`${e.top}px`),this.domService.setStyle(i,"width",`${e.width}px`),this.domService.setStyle(i,"height","1px"),this.domService.appendChild(t,i),i}addFocusBorderDivs(e,t,o){let i=this.domService.createElement("div");return this.domService.addClass(i,"ge-table-focus-border"),this.domService.setStyle(i,"display","clip"),this.domService.setStyle(i,"position","absolute"),this.domService.setStyle(i,"left",`${t.left}px`),this.domService.setStyle(i,"top",`${t.top}px`),this.domService.setStyle(i,"width","1px"),this.domService.setStyle(i,"height",`${t.height}px`),this.applyStyle(i,o),this.domService.appendChild(e,i),i=this.domService.createElement("div"),this.domService.addClass(i,"ge-table-focus-border"),this.domService.setStyle(i,"display","clip"),this.domService.setStyle(i,"position","absolute"),this.domService.setStyle(i,"left",`${t.left+t.width-1}px`),this.domService.setStyle(i,"top",`${t.top}px`),this.domService.setStyle(i,"width","1px"),this.domService.setStyle(i,"height",`${t.height}px`),this.applyStyle(i,o),this.domService.appendChild(e,i),i=this.domService.createElement("div"),this.domService.addClass(i,"ge-table-focus-border"),this.domService.setStyle(i,"display","clip"),this.domService.setStyle(i,"position","absolute"),this.domService.setStyle(i,"left",`${t.left}px`),this.domService.setStyle(i,"top",`${t.top}px`),this.domService.setStyle(i,"width",`${t.width}px`),this.domService.setStyle(i,"height","1px"),this.applyStyle(i,o),this.domService.appendChild(e,i),i=this.domService.createElement("div"),this.domService.addClass(i,"ge-table-focus-border"),this.domService.setStyle(i,"display","clip"),this.domService.setStyle(i,"position","absolute"),this.domService.setStyle(i,"left",`${t.left}px`),this.domService.setStyle(i,"top",`${t.top+t.height-1}px`),this.domService.setStyle(i,"width",`${t.width}px`),this.domService.setStyle(i,"height","1px"),this.applyStyle(i,o),this.domService.appendChild(e,i),e}addVerticalBorder(e,t,o="ge-table-body-center-vertical-border"){const i=this.domService.createElement("div");return this.domService.addClass(i,o),this.domService.setStyle(i,"display","clip"),this.domService.setStyle(i,"position","absolute"),this.domService.setStyle(i,"left",`${e.left}px`),this.domService.setStyle(i,"top",`${e.top}px`),this.domService.setStyle(i,"width","1px"),this.domService.setStyle(i,"height",`${e.height}px`),this.domService.appendChild(t,i),i}addDiv(e,t,o=""){const i=this.domService.createElement("div");return o&&this.domService.addClass(i,o),this.domService.setStyle(i,"display","clip"),this.domService.setStyle(i,"position","absolute"),this.domService.setStyle(i,"left",`${t.left}px`),this.domService.setStyle(i,"top",`${t.top}px`),this.domService.setStyle(i,"width",`${t.width}px`),this.domService.setStyle(i,"height",`${t.height}px`),this.domService.appendChild(e,i),i}applyStyleString(e,t){const o=t.split(";").map(i=>i.trim()).filter(i=>i);for(const i of o){const[s,r]=i.split(":");this.domService.setStyle(e,s.trim(),r.trim())}}getDivOrCreateDiv(e,t){let o=t.cache[e];return o?(o.innerText="",o):(o=this.domService.createElement("div"),t.cache[e]=o,o)}}class O{constructor(e,t=!0,o,i,s=0,r=!1,l=!1){this.data=e,this.expanded=t,this.children=o,this.parent=i,this.deep=s,this.checked=r,this.keep=l}}const N=c=>c==="header"?"header":c==="footer"?"footer":"body";class ce{constructor(e,t){if(this.rowIdx=-1,this.colIdx=-1,this.action=null,this.inputType=null,this.className="",e!==null&&(e instanceof HTMLDivElement||e instanceof HTMLSpanElement||e instanceof HTMLInputElement)){this.className=e.className,this.action=e.getAttribute("data-ge-action"),this.inputType=e.getAttribute("data-input-type"),this.rowIdx=Number(e.getAttribute("data-row-index")),this.colIdx=Number(e.getAttribute("data-col-index"));const o=e.getAttribute("data-area");if(o&&(this.areaIdent=N(o),this.areaModel=t.tableModel.getAreaModel(this.areaIdent),this.row=this.areaModel.getRowByIndex(this.rowIdx)),e instanceof HTMLInputElement){const i=e;this.value=i.value}}}}class ue{constructor(e){this.tableScope=e,this.expandedAll=!0,this.mouseDown=!1,this.dragging=!1,this.tableScope.hostElement.addEventListener("click",this.onHostElementClicked.bind(this)),this.tableScope.hostElement.addEventListener("dblclick",this.onHostElementDblClicked.bind(this)),this.tableScope.hostElement.addEventListener("mousedown",this.onMouseDown.bind(this)),this.tableScope.hostElement.addEventListener("mousemove",this.onMouseMove.bind(this)),this.tableScope.hostElement.addEventListener("mouseup",this.onMouseUp.bind(this)),this.tableScope.hostElement.addEventListener("contextmenu",this.onContextmenu.bind(this)),this.tableScope.hostElement._MouseHandler="true",this.tableScope.scrollViewport.addEventListener("scroll",this.tableScope.adjustAfterScrolling.bind(this.tableScope)),[window,this.tableScope.hostElement].forEach(t=>t.addEventListener("resize",this.tableScope.adjustContainersAndRows.bind(this.tableScope)))}onContextmenu(e){this.mouseEvent=e;const t=this.tableScope.createGeMouseEvent(this.mouseEvent);this.tableScope.contextmenu(t)}onHostElementClicked(e){const t=new ce(e.target,this.tableScope);if(t.action==="toggleExpandCollapseAll")this.expandedAll=!this.expandedAll,this.tableScope.toggleExpandCollapseAll(this.expandedAll),e.preventDefault(),e.stopPropagation();else if(t.inputType==="checkbox"&&t.areaIdent)this.tableScope.toggleRowCheckbox(t.rowIdx,t.colIdx,t.areaIdent),e.preventDefault(),e.stopPropagation();else if(t.row instanceof O&&t.areaModel){const o=t.colIdx===this.getArrowColumnIndex()&&e.altKey,i=t.className.includes("ge-table-tree-arrow-div");if(console.info(i,o),o||i){e.preventDefault(),e.stopPropagation();const s=t.row;s.expanded=!s.expanded,"recalcVisibleTreeRows"in t.areaModel&&t.areaModel.recalcVisibleTreeRows(),this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth),this.tableScope.adjustContainersAndRows(),this.updateCollapsedExpandedState(s)}}if(t.areaIdent==="body"&&this.tableScope.tableOptions.getFocusModel){const o=this.tableScope.tableOptions.getFocusModel();o==null||o.clear(),o==null||o.setFocus(t.rowIdx,t.colIdx)}this.publishGeMouseEvent(e,1)}onHostElementDblClicked(e){if(e.target instanceof HTMLElement){const t=e.target,o=t.getAttribute("data-area"),i=N(o),s=Number(t.getAttribute("data-row-index")),r=Number(t.getAttribute("data-col-index")),l=this.tableScope.tableModel.getAreaModel(i);if(o&&i==="header")this.tableScope.tableModel.isSortable(r)&&(this.tableScope.clearSelection(),this.tableScope.onHeaderDblClicked(e,s,r));else if(t.getAttribute("data-row-index")){const n=l.getRowByIndex(s);if(o&&i==="body"&&l.isEditable(s,r)&&(this.tableScope.clearSelection(),this.tableScope.initRenderEditor(s,r)),n instanceof O&&r===this.getArrowColumnIndex()){e.preventDefault(),e.stopPropagation();const h=n;h.expanded=!h.expanded,"recalcVisibleTreeRows"in l&&l.recalcVisibleTreeRows(),this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth),this.tableScope.adjustContainersAndRows(),this.updateCollapsedExpandedState(h)}}}this.publishGeMouseEvent(e,2)}publishGeMouseEvent(e,t){var o;this.mouseEvent=e,this.geMouseEventOld=(o=this.geMouseEvent)==null?void 0:o.clone(),this.geMouseEvent=this.tableScope.createGeMouseEvent(e),this.geMouseEvent&&(this.geMouseEvent.clickCount=t),this.tableScope.onMouseClicked(this.geMouseEvent,this.geMouseEventOld)}updateCollapsedExpandedState(e){var o,i,s,r,l;const t=(i=(o=this.tableScope.tableOptions)==null?void 0:o.autoRestoreOptions)==null?void 0:i.getRowId;if(t){const n=(s=this.tableScope.storeStateCollapsedExpandService)==null?void 0:s.collapsedExpandedStateGet().mode,h=n==="collapsed"&&!e.expanded||n==="expanded"&&e.expanded,d=n==="collapsed"&&e.expanded||n==="expanded"&&!e.expanded,u=t(e.data);h?(r=this.tableScope.storeStateCollapsedExpandService)==null||r.collapsedStateIdsPush(u):d&&((l=this.tableScope.storeStateCollapsedExpandService)==null||l.collapsedStateIdsRemove(u))}}getArrowColumnIndex(){return this.tableScope.tableModel.isRowCheckboxVisible()?1:0}onMouseDown(e){this.mouseEvent=e,this.startMouseEvent=this.tableScope.createGeMouseEvent(this.mouseEvent),this.tableScope.onMouseDown(this.startMouseEvent),this.mouseDown=!0}onMouseMove(e){this.mouseEvent=e,this.mouseDown?(this.dragging=!0,requestAnimationFrame(this.mouseDraggingOnFrame.bind(this))):requestAnimationFrame(this.mouseMoveOnFrame.bind(this))}onMouseUp(e){this.mouseEvent=e,this.dragging&&requestAnimationFrame(this.mouseDraggingEndOnFrame.bind(this)),this.mouseDown=!1,this.dragging=!1}mouseDraggingOnFrame(){var e;if(this.mouseEvent){const t=this.tableScope.createGeMouseEvent(this.mouseEvent);(e=this.startMouseEvent)!=null&&e.originalEvent&&(t.draggingX=this.mouseEvent.clientX-this.startMouseEvent.originalEvent.clientX,t.draggingY=this.mouseEvent.clientY-this.startMouseEvent.originalEvent.clientY),this.tableScope.mouseDraggingOnFrame(t)}}mouseDraggingEndOnFrame(){var e;if(this.mouseEvent){const t=this.tableScope.createGeMouseEvent(this.mouseEvent);(e=this.startMouseEvent)!=null&&e.originalEvent&&(t.draggingX=this.mouseEvent.clientX-this.startMouseEvent.originalEvent.clientX,t.draggingY=this.mouseEvent.clientY-this.startMouseEvent.originalEvent.clientY),this.tableScope.mouseDraggingEndOnFrame(t)}}mouseMoveOnFrame(){if(this.mouseEvent){const e=this.tableScope.createGeMouseEvent(this.mouseEvent);this.tableScope.mouseMove(e)}}}class ge{constructor(e){this.tableScope=e}updateCells(e){this.tableScope.updateCells(e)}externalFilterChanged(){this.tableScope.externalFilterChanged()}scrollToPixel(e=0,t=0){}scrollToIndex(e=0,t=0){}setHeaderVisible(e=!0){}setColumnVisible(e,t=!0){}isColumnVisible(e){return!0}isHeaderVisible(){return!0}setFooterVisible(e=!0){}isFooterVisible(){return!0}repaint(){this.tableScope.repaint()}}class be{flattenTree(e,t=[]){var o;for(const i of e)this.isVisible(i)&&t.push(i),(o=i.children)!=null&&o.length&&this.flattenTree(i.children,t);return t}isVisible(e){return e.parent?e.parent.expanded?this.isVisible(e.parent):!1:!0}}class j{constructor(e,t=[],o=-1){this.areaIdent=e,this.columnDefs=t,this.defaultRowHeight=o,this.rowSelectionModel=void 0,this.yPositions=[],this.cellRenderers=t.map(i=>i.rendererMap[e])}getTooltipAt(e,t){return""}getCellRenderer(e,t){if(t<this.cellRenderers.length)return this.cellRenderers[t]}getColspanAt(e,t){return 0}getCustomClassesAt(e,t){return[]}getCustomStyleAt(e,t){}getRowspanAt(e,t){return 0}getRowByIndex(e){}isRowCheckable(e){return!0}isRowChecked(e){var o;const t=this.getRowByIndex(e);return(o=this.rowSelectionModel)==null?void 0:o.isRowChecked(t)}setRowChecked(e,t){if(this.rowSelectionModel){const o=this.getRowByIndex(e);this.rowSelectionModel.checkRow(o,t)}}getMaxColspan(){return 31}getMaxRowspan(){return 31}getYPosByRowIndex(e){return this.defaultRowHeight>0?this.defaultRowHeight*e:this.yPositions[e]}init(){!this.yPositions.length&&this.getRowCount()!==void 0&&this.defaultRowHeight===-1&&this.calcYPositions()}isFilterable(){return this.areaIdent==="body"}doSort(e){return!1}isEditable(e,t){return this.columnDefs&&t<this.columnDefs.length&&this.columnDefs[t].editable?this.columnDefs[t].editable():!1}setValue(e,t,o){var l;const i=(l=this.columnDefs[t])==null?void 0:l.editInputPipe;i&&(o=i(o,e,t));const s=this.getRowByIndex(e),r=this.columnDefs[t].property;return r.includes(".")?this.setPropertyValue(s,r.split("."),o):(s[r]=o,!0)}isSelectable(e,t){return!0}changeColumnOrder(e,t){this.arrayMove(this.cellRenderers,e,t)}setPropertyValue(e,t,o){const i=t.shift();if(i){let s=e[i];return s&&t.length?this.setPropertyValue(s,t,o):(e[i]=o,!0)}return!1}arrayMove(e,t,o){const i=e.splice(t,1)[0];return e.splice(o,0,i),e}calcYPositions(){const e=this.getRowCount();this.yPositions=new Array(e+1),this.yPositions[0]=0;for(let t=0;t<e;t++)this.yPositions[t+1]=this.getRowHeight(t)+this.yPositions[t]}}class fe{genericSortComparator(e,t,o){if(typeof e=="number"&&typeof t=="number")return o*(e-t);if(typeof e=="string"&&typeof t=="string")return o*e.localeCompare(t);if(typeof e=="boolean"&&typeof t=="boolean")return o*((e?-1:1)-(t?-1:1));if(e instanceof Date&&t instanceof Date)return o*(e.getTime()-t.getTime());if(e instanceof Array&&t instanceof Array){const i=e,s=t;if(i.length&&s.length)return this.genericSortComparator(i[0],s[0],o)}return o*(""+e).localeCompare(""+t)}}class V extends j{constructor(e,t,o,i=[]){super(e,i,o),this.areaIdent=e,this.rows=t,this.defaultRowHeight=o,this.columnDefs=i,this.sorterService=new fe,this.service=new be,this.properties=i.map(s=>s.property),this.flattenRows=this.service.flattenTree(t),this.filteredFlattenRows=[...this.flattenRows]}changeColumnOrder(e,t){this.arrayMove(this.properties,e,t),super.changeColumnOrder(e,t)}recalcVisibleTreeRows(){this.filteredFlattenRows=this.service.flattenTree(this.rows)}getFilteredFlattenRows(){return this.filteredFlattenRows}getRowCount(){let e=0;for(const t of this.filteredFlattenRows)this.service.isVisible(t)&&e++;return e}getValueAt(e,t){const o=this.getRowByIndex(e);if(o){const i=this.properties[t];if(i)return i.includes(".")?this.getPropertyValue(o.data,i.split(".")):o.data[i]}return""}getRowHeight(e){return this.defaultRowHeight}getCustomClassesAt(e,t){return["ge-table-tree-cell","ge-table-tree-deep-"+this.filteredFlattenRows[e].deep]}getRowByIndex(e){return this.filteredFlattenRows[e]}getValueByT(e,t){return t.includes(".")?this.getPropertyValue(e,t.split(".")):e[t]}externalFilterChanged(e){this.lastPredictFn=e,this.doFiltering()}doSort(e){const{columnIndex:t,sortState:o}=e[e.length-1],i=o==="asc"?1:o==="desc"?-1:0,s=this.properties[t];return this.treeSort(this.rows,s,i),this.flattenRows=this.service.flattenTree(this.rows),this.filteredFlattenRows=[...this.flattenRows],!0}toggleExpandCollapseAll(e){this.expandAllRecursive(this.rows,e),this.flattenRows=this.service.flattenTree(this.rows),this.doFiltering()}setAllParentsOk(e){return e.parent&&(e.parent.keep=!0,this.setAllParentsOk(e.parent)),!1}setValue(e,t,o){var r;const i=(r=this.columnDefs[t])==null?void 0:r.editInputPipe;i&&(o=i(o,e,t));const s=this.getRowByIndex(e);if(s){const l=s.data,n=this.columnDefs[t].property;return n.includes(".")?this.setPropertyValue(l,n.split("."),o):(l[n]=o,!0)}return!1}genericTreeTableSortComparator(e,t){return(o,i)=>{const s=this.getValueByT(o.data,e),r=this.getValueByT(i.data,e);return this.sorterService.genericSortComparator(s,r,t)}}expandAllRecursive(e,t){for(const o of e)o.expanded=t,o.children&&this.expandAllRecursive(o.children,t)}doFiltering(){if(!this.lastPredictFn)this.filteredFlattenRows=[...this.flattenRows?this.flattenRows:[]];else{this.flattenRows||(this.flattenRows=[]);let e=0;this.flattenRows.forEach(o=>{e=Math.max(e,o.deep)});const t=this.flattenRows.filter((o,i,s)=>this.lastPredictFn(o,i,s));this.flattenRows.forEach(o=>o.keep=!1),this.flattenRows.forEach(o=>{t.includes(o)&&(o.keep=!0,this.setAllParentsOk(o))}),this.filteredFlattenRows=this.flattenRows.filter((o,i,s)=>o.keep)}}getPropertyValue(e,t){const o=t.shift();let i=e[o];return i&&t.length?this.getPropertyValue(i,t):i}treeSort(e,t,o){e.sort(this.genericTreeTableSortComparator(t,o));for(const i of e)i.children&&this.treeSort(i.children,t,o)}}class Z{constructor(e){this.getStorageKeyFn=e}autoConvertMapToObject(e){const t={};if(e instanceof Map){const o=e;for(const i of[...o]){const[s,r]=i;t[s]=r}}return t}checkAndPersistItem(e,t){const o=this.getStorageKeyFn;if(o){const i=o();if(i){const s=i+e;if((t+"").includes("Map")){const r=this.autoConvertMapToObject(t);this.persistItem(s,r)}else this.persistItem(s,t)}}}persistItem(e,t){t?localStorage.setItem(e,JSON.stringify(t)):localStorage.removeItem(e)}loadFromLocalStorage(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}}class pe extends Z{constructor(e){super(e),this.SCROLL_STATE="scrollState",this.scrollOffset=[0,0],this.load()}getScrollOffset(){return this.scrollOffset}updateScrollOffset(e){this.scrollOffset=e,this.checkAndPersistItem(this.SCROLL_STATE,this.scrollOffset)}load(){const e=this.getStorageKeyFn;if(e){const t=e();if(t){const o=t+this.SCROLL_STATE;let i=this.loadFromLocalStorage(o);this.scrollOffset=i||[0,0]}}}}class me{constructor(e="collapsed",t=[],o=!1,i=!1){this.mode=e,this.rowIds=t,this.allCollapsed=o,this.allExpanded=i}}class Se extends Z{constructor(e){super(e),this.COLLAPSED_EXPANDED_STATE="collapsedExpandedState",this.collapsedExpandedState=new me,this.load()}collapsedExpandedStateGet(){return this.collapsedExpandedState}collapsedExpandedStateIncludes(e){return this.collapsedExpandedState.rowIds.includes(e)}collapsedStateIdsPush(e){this.collapsedExpandedState.rowIds.includes(e)||(this.collapsedExpandedState.rowIds.push(e),this.collapsedExpandedState.allCollapsed=!1,this.collapsedExpandedState.allExpanded=!1,this.persist())}collapsedStateIdsRemove(e){const t=this.collapsedExpandedState.rowIds.indexOf(e);t!==-1&&(this.collapsedExpandedState.rowIds.splice(t,1),this.collapsedExpandedState.allCollapsed=!1,this.collapsedExpandedState.allExpanded=!1,this.persist())}collapsedStateAll(e){this.collapsedExpandedState.rowIds=[],this.collapsedExpandedState.mode=e?"collapsed":"expanded",this.collapsedExpandedState.allCollapsed=!e,this.collapsedExpandedState.allExpanded=e,this.persist()}load(){const e=this.getStorageKeyFn;if(e){const t=e();if(t){const o=t+this.COLLAPSED_EXPANDED_STATE,i=this.loadFromLocalStorage(o);i&&(this.collapsedExpandedState=i)}}}persist(){this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE,this.collapsedExpandedState)}}class we extends Z{constructor(e){super(e),this.SORTING_STATE="sortingState",this.sortItems=[],this.load()}getSortItems(){return this.sortItems}setSortItems(e){this.sortItems=e,this.checkAndPersistItem(this.SORTING_STATE,this.sortItems)}load(){const e=this.getStorageKeyFn;if(e){const t=e();if(t){const o=t+this.SORTING_STATE;let i=this.loadFromLocalStorage(o);this.sortItems=i||[]}}}}class D{constructor(e=0,t=0,o=0,i=0,s){this.left=e,this.width=t,this.height=o,this.top=i,this.index=s}}class Ce{constructor(e,t,o,i){this.hostElement=e,this.tableModel=t,this.dom=o,this.tableOptions=i,this.scrollTop=0,this.areaBodyWestGeo=new D,this.areaBodyCenterGeo=new D,this.areaBodyEastGeo=new D;const s=this.hostElement;s.innerText="",this.dom.setAttribute(s,"tabindex","0"),this.dom.setStyle(this.dom.addClass("ge-table",s),"position","relative"),this.hoverRow=o.applyStylePosistionAbsolute(o.createDivWithClass("ge-table-hover-row",s)),this.hoverColumn=o.applyStylePosistionAbsolute(o.createDivWithClass("ge-table-hover-column",s)),this.areaHeaderWest=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-header ge-table-header-west",s,"header","west"))),this.areaHeaderCenter=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-header ge-table-header-center",s,"header","center"))),this.areaHeaderEast=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-header ge-table-header-east",s,"body","east"))),this.areaBodyWest=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-body ge-table-body-west",s,"body","west"))),this.areaBodyEast=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-body ge-table-body-east",s,"body","east"))),this.areaFooterWest=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-footer ge-table-footer-west",s,"footer","west"))),this.areaFooterCenter=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-footer ge-table-footer-center",s,"footer","center"))),this.areaFooterEast=o.appendRelativeChildDiv(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-footer ge-table-footer-east",s,"footer","east"))),this.scrollViewport=o.applyStyleOverflowAuto(this.tableOptions.overflowX??"auto",this.tableOptions.overflowY??"auto",o.applyStyleNoPadding(o.applyStylePosistionAbsolute(o.createAreaDivWithClass("ge-table-scroll-viewport",s,"body","center")))),this.contentWrapperDiv=o.applyStyleNoPadding(o.applyStylePosistionRelative(o.createDivWithClass("ge-table-scroll-content-wrapper",this.scrollViewport))),this.contentDiv=o.applyStyleNoPadding(o.applyStylePosistionRelative(o.createDivWithClass("ge-table-scroll-content",this.contentWrapperDiv))),this.areaBodyCenter=o.appendRelativeChildDiv(o.createDivWithClass("ge-table-body-center",this.contentDiv)),this.borderHeaderBottom=o.applyStylePosistionAbsolute(o.createDivWithClass("ge-table-header-border",s)),this.borderFixedWest=o.applyStylePosistionAbsolute(o.createDivWithClass("ge-table-west-fixed-column-border",s)),this.borderFixedEast=o.applyStylePosistionAbsolute(o.createDivWithClass("ge-table-east-fixed-column-border",s)),this.borderFooterTop=o.applyStylePosistionAbsolute(o.createDivWithClass("ge-table-footer-border",s))}adjustContainersAndRows(){const e=this.tableModel.getPadding(),t=this.hostElement.clientWidth,o=this.hostElement.clientHeight;this.dom.applyStyle(this.scrollViewport,{width:`${t-e.left}px`,height:`${o-e.top}px`,top:`${e.top}px`,left:`${e.left}px`}),this.scrollTop=this.scrollViewport.scrollTop,this.dom.applyStyle(this.contentDiv,{width:`${this.scrollViewport.clientWidth}px`,height:`${this.scrollViewport.clientHeight}px`,top:`${this.scrollTop}px`,left:`${this.scrollViewport.scrollLeft}px`}),this.areaBodyWestGeo.width=e.left,this.areaBodyWestGeo.height=o-e.top-e.bottom,this.areaBodyWestGeo.top=e.top,this.areaBodyWestGeo.left=0,this.dom.applyStyleInPx(this.areaBodyWest.parent,this.areaBodyWestGeo),this.tableOptions.fixedWestSeparatorBorderVisible&&this.tableModel.getFixedLeftColumnCount()?this.dom.applyDisplayBlockStyle(this.dom.applyStyle(this.borderFixedWest,{width:"1px",height:`${this.areaBodyWestGeo.height}px`,top:`${this.areaBodyWestGeo.top}px`,left:`${this.areaBodyWestGeo.width}px`})):this.dom.applyDisplayNoneStyle(this.borderFixedWest),this.areaBodyEastGeo.width=e.right,this.areaBodyEastGeo.height=o-e.top-e.bottom,this.areaBodyEastGeo.top=e.top,this.areaBodyEastGeo.left=t-e.right,this.dom.applyStyleInPx(this.areaBodyEast.parent,this.areaBodyEastGeo),this.tableOptions.fixedEastSeparatorBorderVisible&&this.tableModel.getFixedLeftColumnCount()?this.dom.applyDisplayBlockStyle(this.dom.applyStyle(this.borderFixedEast,{width:"1px",height:`${this.areaBodyEastGeo.height}px`,top:`${this.areaBodyEastGeo.top}px`,left:`${this.areaBodyEastGeo.left}px`})):this.dom.applyDisplayNoneStyle(this.borderFixedEast),this.areaBodyCenterGeo.width=t-e.left-e.right,this.areaBodyCenterGeo.height=o-e.top-e.bottom,this.areaBodyCenterGeo.top=0,this.areaBodyCenterGeo.left=0,this.dom.applyStyleInPx(this.areaBodyCenter.parent,this.areaBodyCenterGeo),this.dom.applyStyle(this.areaHeaderCenter.parent,{width:`${t-e.left-e.right}px`,height:`${e.top}px`,top:"0",left:`${e.left}px`}),this.dom.applyStyle(this.areaHeaderWest.parent,{width:`${e.left}px`,height:`${e.top}px`,top:"0",left:"0"}),this.dom.applyStyle(this.areaHeaderEast.parent,{width:`${e.right}px`,height:`${e.top}px`,top:"0",left:`${t-e.right}px`}),this.tableOptions.headerSeparatorBorderVisible&&this.tableModel.isHeaderVisibe()?this.dom.applyDisplayBlockStyle(this.dom.applyStyle(this.borderHeaderBottom,{width:`${t}px`,height:"1px",top:`${e.top}px`,left:"0px"})):this.dom.applyDisplayNoneStyle(this.borderHeaderBottom),this.dom.applyStyle(this.areaFooterWest.parent,{width:`${e.left}px`,height:`${e.bottom}px`,top:`${o-e.bottom}px`,left:"0"}),this.dom.applyStyle(this.areaFooterCenter.parent,{width:`${t-e.left-e.right}px`,height:`${e.bottom}px`,top:`${o-e.bottom}px`,left:`${e.left}px`}),this.dom.applyStyle(this.areaFooterEast.parent,{width:`${e.right}px`,height:`${e.bottom}px`,top:`${o-e.bottom}px`,left:`${t-e.right}px`}),this.tableOptions.footerSeparatorBorderVisible&&this.tableModel.isFooterVisibe()?this.dom.applyDisplayBlockStyle(this.dom.applyStyle(this.borderFooterTop,{width:`${t}px`,height:"1px",top:`${o-e.bottom}px`,left:"0px"})):this.dom.applyDisplayNoneStyle(this.borderFooterTop),this.adjustAfterScrolling()}adjustAfterScrolling(){}resetSizeOfWrapperDiv(){const e=`${this.tableModel.getContentWidthInPixel()}px`,t=`${this.tableModel.getContentHeightInPixel()+1}px`;this.dom.setStyle(this.contentWrapperDiv,"width",e),this.dom.setStyle(this.contentWrapperDiv,"height",t)}}class A{constructor(e,t,o,i,s=!1){this.r1=e,this.c1=t,this.r2=o,this.c2=i,this.gammaRange=s}static create(e){return e.gammaRange===void 0&&(e.gammaRange=!1),new A(e.rowIndex1,e.columnIndex1,e.rowIndex2,e.columnIndex2,e.gammaRange)}static singleCell(e,t){return new A(e,t,e,t)}static singleRow(e){return new A(e,0,e,Number.MAX_SAFE_INTEGER)}static singleColumn(e){return new A(0,e,Number.MAX_SAFE_INTEGER,e)}isInRange(e,t){return e>=this.r1&&e<=this.r2&&t>=this.c1&&t<=this.c2}}class xe{constructor(e,t){this.tableModel=e,this.areaModel=t,this.colAndRowspanRanges=void 0}init(){if(this.areaModel.getMaxColspan()<2&&this.areaModel.getMaxRowspan()<2)return;this.colAndRowspanRanges=[];const e=this.areaModel.getRowCount(),t=this.tableModel.getColumnCount();for(let o=0;o<e;o++)for(let i=0;i<t;i++){let s=this.areaModel.getColspanAt(o,i),r=this.areaModel.getRowspanAt(o,i);if(s>1||r>1){s===0&&(s=1),r===0&&(r=1);const l=this.areaModel.hasOwnProperty("gammaCells");this.colAndRowspanRanges.push(new A(o,i,o+r-1,i+s-1,l))}}}getRanges(){return this.colAndRowspanRanges?this.colAndRowspanRanges:[]}isInRange(e,t){if(this.colAndRowspanRanges){for(const o of this.colAndRowspanRanges)if(o.isInRange(e,t))return!0}return!1}}class T{constructor(e,t,o){this.header=e,this.body=t,this.footer=o}}class ye extends Ce{constructor(e,t,o,i){var r,l;super(e,t,o,i),this.scrollLeft=0,this.scrollViewportLeft=0,this.scrollFactorY=0,this.scrollFactorX=0,this.cleanupFunctions={header:[],body:[],footer:[]},this.tree=!1,this.colAndRowspanModels=new T,this.firstVisibleRowIndex=-1,this.draggingTargetColumnIndex=-1,this.removables=[],this.editing=!1,this.tableModel.getSelectionModel?this.getSelectionModel=this.tableModel.getSelectionModel:(r=this.tableOptions)!=null&&r.getSelectionModel&&(this.getSelectionModel=this.tableOptions.getSelectionModel),(l=this.tableOptions)!=null&&l.getFocusModel&&(this.getFocusModel=this.tableOptions.getFocusModel),t.getAreaModel("body")instanceof V&&(this.tree=!0),["header","body","footer"].forEach(n=>{var h;this.colAndRowspanModels[n]=new xe(t,t.getAreaModel(n)),(h=this.colAndRowspanModels[n])==null||h.init()})}isEditing(){return this.editing}resetEditorRenderer(){this.editorRenderer=void 0,this.editorRendererRow=-1,this.editorRendererColumn=-1,this.editing=!1}clearSelection(){if(this.getSelectionModel){const e=this.getSelectionModel();e==null||e.clear()}}initRenderEditor(e,t){var i;let o=(i=this.tableModel.getColumnDef(t))==null?void 0:i.getEditRenderer;if(o||(o=this.tableOptions.getEditRenderer),o)if(this.editorRenderer=o(e,t),this.editorRenderer){this.editorRendererRow=e,this.editorRendererColumn=t,this.editing=!0,this.repaint();const s=document.querySelector("input.ge-table-cell-editor-input");s&&s.focus()}else this.resetEditorRenderer()}repaint(){this.adjustAfterScrolling()}adjustAfterScrolling(){var e;for(const t of this.removables)t.remove();this.hideHoverRow(),this.hideHoverColumn(),this.scrollTop=this.scrollViewport.scrollTop,this.scrollLeft=this.scrollViewport.scrollLeft,this.debounce(this.checkForScrollPosSaving.bind(this)),this.scrollFactorY=this.scrollTop/(this.scrollViewport.scrollHeight-this.scrollViewport.clientHeight),this.scrollFactorX=this.scrollLeft/(this.scrollViewport.scrollWidth-this.scrollViewport.clientWidth),isNaN(this.scrollFactorY)&&(this.scrollFactorY=0),isNaN(this.scrollFactorX)&&(this.scrollFactorX=0),this.adjustBody(),this.adjustArea("footer"),this.adjustArea("header"),this.tableOptions.tableTopBorderVisible&&this.removables.push(this.dom.addHorizontalBorder(new D(0,this.hostElement.clientWidth,1,0),this.hostElement,"ge-table-border")),this.tableOptions.tableBottomBorderVisible&&this.removables.push(this.dom.addHorizontalBorder(new D(0,this.hostElement.clientWidth,1,this.hostElement.clientHeight-1),this.hostElement,"ge-table-border")),this.tableModel.getFixedLeftColumnCount()>0&&this.removables.push(this.dom.addVerticalBorder(new D(this.areaBodyWest.child.clientWidth,1,this.hostElement.clientHeight,0),this.hostElement,"ge-table-body-west-vertical-border")),((e=this.tableModel.getAreaModel("header"))==null?void 0:e.getRowCount())>0&&this.removables.push(this.dom.addHorizontalBorder(new D(0,this.hostElement.clientWidth,1,this.areaHeaderCenter.child.clientHeight),this.hostElement,"ge-table-body-west-vertical-border"))}checkForScrollPosSaving(){var e,t;this.storeScrollPosStateService&&((t=(e=this.tableOptions)==null?void 0:e.autoRestoreOptions)!=null&&t.autoRestoreScrollPosition)&&this.storeScrollPosStateService.updateScrollOffset([this.scrollLeft,this.scrollTop])}updateCells(e){e.forEach(t=>this.tableModel.getAreaModel(t.area).setValue(t.rowIndex,t.columnIndex,t.value)),this.repaint()}getAreaAndSideIdentByAttr(e){if(e){const t=this.getStringByAttr(e,"data-area"),o=this.getStringByAttr(e,"data-side");if(o&&t)return[t,o]}return[void 0,void 0]}getArea(e,t){if(e==="header"){if(t==="west")return this.areaHeaderWest;if(t==="center")return this.areaHeaderCenter;if(t==="east")return this.areaHeaderEast}else if(e==="body"){if(t==="west")return this.areaBodyWest;if(t==="center")return this.areaBodyCenter;if(t==="east")return this.areaBodyEast}else if(e==="footer"){if(t==="west")return this.areaFooterWest;if(t==="center")return this.areaFooterCenter;if(t==="east")return this.areaFooterEast}throw Error(`Wrong area identifier: row:${e}, col:${t}`)}adjustBody(){const e=this.areaBodyCenterGeo.height-this.tableModel.getContentHeightInPixel(),t=this.scrollFactorY*e;this.dom.setStyle(this.contentDiv,"top",`${this.scrollTop}px`),this.dom.setStyle(this.contentDiv,"left",`${this.scrollViewport.scrollLeft}px`),this.adjustArea("body",t)}getNumberByAttr(e,t){var o;if(e){const i=(o=e.closest("["+t+"]"))==null?void 0:o.getAttribute(t);if(i)return Number(i)}return-1}getStringByAttr(e,t){var o;if(e){const i=(o=e.closest("["+t+"]"))==null?void 0:o.getAttribute(t);if(i)return i}return""}adjustArea(e,t=0){var g;const o=this.getArea(e,"west"),i=this.getArea(e,"center"),s=this.getArea(e,"east"),r=i.child.clientHeight;o.child.innerText="",i.child.innerText="",s.child.innerText="";const l=0,n=this.areaBodyCenterGeo.width,h=this.tableModel.getPadding(),d=this.tableModel.getAreaModel(e),u=d.getRowCount();for(;this.cleanupFunctions[e].length;){const m=this.cleanupFunctions[e].shift();m&&m()}let b=t;const S=this.tableModel.getColumnCount(),f=this.tableModel.getFixedRightColumnCount(),w=this.tableModel.getFixedLeftColumnCount();for(let m=0;m<u;m++){const v=b,R=m===u-1,M=this.tableModel.getRowHeight(e,m);if(v+M>0){this.firstVisibleRowIndex=m;let y={left:l,width:n,height:M,top:v,index:m},C=this.dom.addRowDiv(i,y,m,e,"center");const L=w;if(this.adjustColumnsToRowParent({areaIdent:e,sideIdent:"center",areaModel:d,geo:y,parent:C,rowIndex:m,columnIndexStart:L,columnIndexEnd:S-f-1,verticalFixed:!1,lastRowOfModel:R}),h.left>0&&(y={left:l,width:this.areaBodyWestGeo.width,height:M,top:v,index:m},C=this.dom.addRowDiv(o,y,m,e,"west"),this.adjustColumnsToRowParent({areaIdent:e,sideIdent:"west",areaModel:d,geo:y,parent:C,rowIndex:m,columnIndexStart:0,columnIndexEnd:L-1,verticalFixed:!0,lastRowOfModel:R})),h.right>0&&(y={left:l,width:this.areaBodyEastGeo.width,height:M,top:v,index:m},C=this.dom.addRowDiv(s,y,m,e,"east"),this.adjustColumnsToRowParent({areaIdent:e,sideIdent:"east",areaModel:d,geo:y,parent:C,rowIndex:m,columnIndexStart:S-f,columnIndexEnd:S-1,verticalFixed:!0,lastRowOfModel:R})),e==="header"&&this.tree&&m===u-1){const E=this.dom.applyStyle(this.dom.setAttribute(this.dom.addDiv(C,new D(16,20,20,8)),"data-ge-action","toggleExpandCollapseAll"),{cursor:"pointer"}),_=this.tableOptions.treeOptions.arrowExpandCollapseAll;if(_){const U=this.dom.domService.createText(_.content);this.dom.domService.appendChild(E,U),_.style&&this.dom.applyStyleString(E,_.style)}}}if(b=b+M,b>r)break}if(this.colAndRowspanModels&&this.colAndRowspanModels[e]){const m=((g=this.colAndRowspanModels[e])==null?void 0:g.getRanges())??[];if(m.length)for(const v of m){let R=0,M=i.child,y="center";if(v.c1<w)M=o.child,y="west";else if(f>0&&v.c1>=S-f)M=s.child,y="east";else{const C=this.areaBodyCenterGeo.width-this.tableModel.getContentWidthInPixel();R=this.scrollFactorX*C-this.areaBodyWestGeo.width,y="center"}this.drawBigCell(v,R,t,d,M,y)}}}drawBigCell(e,t,o,i,s,r){const l=o+this.getRowHeights(0,e.r1-1,i).reduce((g,m)=>g+m,0),n=this.tableModel.getColumnCount(),h=this.tableModel.getFixedRightColumnCount();let d=0;h>0&&e.c1>=n-h&&(d=n-h);const u=t+this.getColumnWidths(d,e.c1-1).reduce((g,m)=>g+m,0),b=this.getRowHeights(e.r1,e.r2,i).reduce((g,m)=>g+m,0),S=this.getColumnWidths(e.c1,e.c2).reduce((g,m)=>g+m,0);let f=!1;const w=this.getSelectionModel?this.getSelectionModel():void 0;w&&(f=w.getSelectionCount(e.r1,e.c1)>0),e.gammaRange?(console.info("TODO here",e),this.renderCell({areaModel:i,areaIdent:i.areaIdent,sideIdent:r,rowIndex:e.r1,columnIndex:e.c1,left:u,top:l,width:S,height:b,parent:s,cellSelected:f,lastRowOfModel:!0,gammaRange:e.gammaRange})):this.renderCell({areaModel:i,areaIdent:i.areaIdent,sideIdent:r,rowIndex:e.r1,columnIndex:e.c1,left:u,top:l,width:S,height:b,parent:s,cellSelected:f,lastRowOfModel:!0,gammaRange:e.gammaRange}),i.areaIdent==="header"&&this.tableOptions.columnsResizable&&this.renderHeaderCellResizeHandle({rowIndex:e.r1,columnIndex:e.c1,cellLeft:u,cellTop:l,cellWidth:S,cellHeight:b,parent:s})}findRowOfImportantRowspanCell(e,t,o){const i=e.getMaxRowspan();for(let s=t-1;s>-1;s--){const r=e.getRowspanAt(s,o);if(r>1&&s+r+1>=t)return s;if(t-s>i)return-1}return-1}adjustColumnsToRowParent({areaIdent:e,sideIdent:t,areaModel:o,geo:i,parent:s,rowIndex:r,columnIndexStart:l,columnIndexEnd:n,verticalFixed:h=!1,lastRowOfModel:d=!1}){var w;this.scrollViewportLeft=this.scrollViewport.scrollLeft;let u=0;if(!h){const g=this.areaBodyCenterGeo.width-this.tableModel.getContentWidthInPixel();u=this.scrollFactorX*g}const b=0,S=!!(e==="body"&&t);let f=u;for(let g=l;g<=n;g++){const m=f,v=this.tableModel.getColumnWidth(g);if(v>0&&m+v>0){let R=i.height;const M=o.getRowspanAt(r,g),y=o.getColspanAt(r,g);M>1&&(R=this.getRowHeights(r,r+M-1,o).reduce((E,_)=>E+_,0));let C=v;y>1&&(C=this.getColumnWidths(g,g+y-1).reduce((E,_)=>E+_,0));let L=!1;if(this.colAndRowspanModels&&this.colAndRowspanModels[e]&&(w=this.colAndRowspanModels[e])!=null&&w.isInRange(r,g)&&(L=!0),this.draggingTargetColumnIndex===g&&e!=="header"){this.renderDragTargetDiv(s,m,b,C,R);const E={left:m,top:b,width:C,height:R};this.dom.addColumnBorderDivs(this.tableOptions,s,E,e,t)}else{const E=this.renderSelectedBackgroundDiv(L,S,t,o,r,g,s,m,b,C,R);L||this.renderCell({areaModel:o,areaIdent:e,sideIdent:t,rowIndex:r,columnIndex:g,left:m,top:b,width:C,height:R,parent:s,cellSelected:E,lastRowOfModel:d,gammaRange:!0}),e==="header"&&this.tableOptions.columnsResizable&&this.renderHeaderCellResizeHandle({rowIndex:r,columnIndex:g,cellLeft:m,cellTop:b,cellWidth:C,cellHeight:R,parent:s})}}if(f=f+v,f>this.areaBodyCenterGeo.width)break}this.tableOptions.verticalBorderVisible&&this.dom.addVerticalBorder(new D(f-1,1,i.height,0),s)}getTreeArrowColumnIndex(){return this.tableOptions.showCheckboxWihoutExtraColumn?0:this.tableModel.isRowCheckboxVisible()?1:0}addAndRenderCellDiv({areaModel:e,areaIdent:t,sideIdent:o,rowIndex:i,index:s,left:r,width:l,height:n,top:h,parent:d,lastRowOfModel:u}){var je;const S=this.editorRenderer&&this.editorRendererRow===i&&this.editorRendererColumn===s?this.editorRenderer:e.getCellRenderer(i,s),f={left:r,width:l,height:n,top:h,index:s},w=e.getRowByIndex(i);let g="none";if(s===this.getTreeArrowColumnIndex()&&w instanceof O){const x=w;(je=x.children)!=null&&je.length?x.expanded?g="expanded":g="collapsed":g="hidden"}let v;if(t==="header"){const x=this.tableModel.getColumnDef(s);(!(x!=null&&x.sortIconVisible)||x!=null&&x.sortIconVisible())&&(v=x==null?void 0:x.sortState)}const R=e.getValueAt(i,s),M=S?"":`${R}`,y=e.isRowChecked(i),C=this.dom.addColumnDiv(d,f,i,s,t,o,M,g,this.tableOptions,y,v),L=e.getTooltipAt(i,s);L&&this.dom.setAttribute(C,"title",L);const E=this.tableModel.getColumnDef(s);E&&E.classes[t]&&this.dom.addClasses(E.classes[t],C);let _;S&&(_=S.render(C,i,s,t,e,R,this.dom.domService));const U=e.getCustomClassesAt(i,s);if(U.length&&this.dom.addClasses(U,C),this.dom.addColumnBorderDivs(this.tableOptions,d,f,t,o),u&&this.dom.addHorizontalBorder({left:r,width:l,height:n,top:h+n},d),this.getFocusModel&&t==="body"){const x=this.getFocusModel();x!=null&&x.hasFocus(i,s)&&this.dom.addFocusBorderDivs(d,f,{})}t==="header"&&this.dom.setAttribute(C,"data-ge-action","drag-column");const de=e.getCustomStyleAt(i,s);if(de)for(const x in de)this.dom.setStyle(C,x,de[x]);return[C,_]}getColumnWidths(e,t){const o=[];for(let i=e;i<=t;i++)o.push(this.tableModel.getColumnWidth(i));return o}getRowHeights(e,t,o){const i=[];for(let s=e;s<=t;s++)i.push(o.getRowHeight(s));return i}adjustHoverRows(e){if(this.tableOptions.hoverRowVisible&&e.rowIndex>-1){const t=this.hostElement.clientWidth,o=this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex),i=e.rowTop+this.areaHeaderCenter.parent.clientHeight-this.scrollTop;this.dom.applyStyle(this.hoverRow,{left:"0",top:i+"px",width:t+"px",height:o+"px",display:"block"})}else this.hideHoverRow()}hideHoverRow(){this.dom.applyStyle(this.hoverRow,{display:"none"})}adjustHoverColumns(e){if(this.tableOptions.hoverColumnVisible&&e.rowIndex>-1){const t=this.hostElement.clientHeight,o=this.tableModel.getColumnWidth(e.columnIndex),i=this.areaBodyWestGeo.width,s=e.columnLeft+this.tableModel.getPadding().left-this.scrollLeft-i;this.dom.applyStyle(this.hoverColumn,{left:s+"px",top:"0px",width:o+"px",height:t+"px",display:"block"})}else this.hideHoverColumn()}hideHoverColumn(){this.dom.applyStyle(this.hoverColumn,{display:"none"})}debounce(e,t=1e3){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(e.bind(this),t)}renderDragTargetDiv(e,t,o,i,s){const r=this.dom.applyStylePosistionAbsolute(this.dom.createDivWithClass("ge-table-drop-zone",e));return this.dom.setStyle(r,"left",`${t}px`),this.dom.setStyle(r,"top",`${o}px`),this.dom.setStyle(r,"width",`${i}px`),this.dom.setStyle(r,"height",`${s}px`),r}renderSelectedBackgroundDiv(e,t,o,i,s,r,l,n,h,d,u){let b=!1;if(!e&&t&&i.isSelectable(s,r)&&this.getSelectionModel){const S=this.getSelectionModel();if(S){const f=S.getSelectionCount(s,r);b=f>0;for(let w=0;w<f;w++){const g=this.dom.applyStylePosistionAbsolute(this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${o}-selected-range`,l));this.dom.setStyle(g,"left",`${n}px`),this.dom.setStyle(g,"top",`${h}px`),this.dom.setStyle(g,"width",`${d}px`),this.dom.setStyle(g,"height",`${u}px`)}}}return b}renderCell({areaModel:e,areaIdent:t,sideIdent:o,rowIndex:i,columnIndex:s,left:r,top:l,width:n,height:h,parent:d,cellSelected:u,lastRowOfModel:b,gammaRange:S}){const[f,w]=this.addAndRenderCellDiv({areaModel:e,areaIdent:t,sideIdent:o,rowIndex:i,index:s,left:r,width:n,height:h,top:l,parent:d,lastRowOfModel:b,gammaRange:S});u&&this.dom.addClass(`ge-table-${t}-${o}-selected-range`,f),w&&this.cleanupFunctions[t].push(w)}renderHeaderCellResizeHandle({rowIndex:e,columnIndex:t,cellLeft:o,cellTop:i,cellWidth:s,cellHeight:r,parent:l}){const n=this.dom.domService,h=this.tableOptions.columnResizeHandleWidthInPx??2,d=n.createElement("div");n.setAttribute(d,"data-col-index",`${t}`),n.setAttribute(d,"data-row-index",`${e}`),n.setAttribute(d,"data-area","header"),n.setAttribute(d,"data-ge-action","resize-column"),n.addClass(d,"ge-table-column-resize-handle"),n.setStyle(d,"display","clip"),n.setStyle(d,"position","absolute"),n.setStyle(d,"cursor","col-resize"),n.setStyle(d,"left",`${o+s-h}px`),n.setStyle(d,"top",`${i}px`),n.setStyle(d,"width",`${h}px`),n.setStyle(d,"height",`${r}px`),n.appendChild(l,d)}}class ve{constructor(e,t){this.columnIndex=e,this.sortState=t}}class Re{constructor(e){this.tableScope=e,this.tableScope.hostElement.addEventListener("change",this.onHostElementChanged.bind(this))}onHostElementChanged(e){if(e.target instanceof HTMLInputElement||e.target instanceof HTMLSelectElement||e.target instanceof HTMLTextAreaElement){const t=e.target,o=t.getAttribute("data-area"),i=t.getAttribute("data-row-index"),s=t.getAttribute("data-col-index");if(o&&i&&s){const r=N(o),l=Number(i),n=Number(s);this.tableScope.updateModelValueAfterEdit(r,l,n,t.value)}}}}class Ae{constructor(e=-1,t=-1){this.rowIndex=e,this.columnIndex=t}}class X{constructor(e){this.cells=e}static createSingle(e,t){return new X([new Ae(e,t)])}}class Me{constructor(e){var t,o;this.tableScope=e,(t=this.tableScope.tableOptions)!=null&&t.getSelectionModel&&(this.getSelectionModel=this.tableScope.tableOptions.getSelectionModel),(o=this.tableScope.tableOptions)!=null&&o.getFocusModel&&(this.getFocusModel=this.tableScope.tableOptions.getFocusModel)}onMouseClicked(e,t){var s,r,l,n,h,d,u;let o=!1,i=!1;if(this.getSelectionModel&&this.getFocusModel){const b=this.getSelectionModel(),S=this.getFocusModel();b&&S&&(S.hasFocus(e.rowIndex,e.columnIndex)||(S.setFocus(e.rowIndex,e.columnIndex),o=!0),(s=e.originalEvent)!=null&&s.shiftKey||b.hasSelection()&&(b.clear(),o=!0),(r=e.originalEvent)!=null&&r.shiftKey&&this.previousEvt?(b.addSelection(this.createRangeByEvents(e,this.previousEvt)),i=!0,o=!0):(l=e.originalEvent)!=null&&l.ctrlKey||(n=e.originalEvent)!=null&&n.metaKey?(b.addSelection(A.singleCell(e.rowIndex,e.columnIndex)),i=!0,o=!0):(h=e.originalEvent)!=null&&h.altKey&&((d=e.originalEvent)!=null&&d.ctrlKey||(u=e.originalEvent)!=null&&u.metaKey)&&(b.removeSelection(A.singleCell(e.rowIndex,e.columnIndex)),i=!0,o=!0))}return i?this.previousEvt=void 0:this.previousEvt=e==null?void 0:e.clone(),o}onActionTriggered(e){if(this.getSelectionModel&&this.getFocusModel){const t=this.getSelectionModel(),o=this.getFocusModel();if(t&&o){if(e==="SELECT_ALL")return t.selectAll(),this.tableScope.repaint(),!0;if(e==="DESELECT_ALL")return t.clear(),this.tableScope.repaint(),!0;if(e==="TOGGLE_SELECTION"){const[i,s]=o.getFocus();return t.togglePoint(i,s),this.tableScope.repaint(),!0}}}return!1}createRangeByEvents(e,t){t||(t=e);const o=Math.min(e.rowIndex,t==null?void 0:t.rowIndex),i=Math.max(e.rowIndex,t==null?void 0:t.rowIndex),s=Math.min(e.columnIndex,t==null?void 0:t.columnIndex),r=Math.max(e.columnIndex,t==null?void 0:t.columnIndex);return A.create({rowIndex1:o,columnIndex1:s,rowIndex2:i,columnIndex2:r})}}class Ee{get(){return{f2:"START_EDITING",space:"TOGGLE_SELECTION","ctrl+num_add":"SELECT_ALL","ctrl+a":"SELECT_ALL","ctrl+shift+a":"DESELECT_ALL","ctrl+x":"DESELECT_ALL","ctrl+num_subtract":"DESELECT_ALL","cmd -":"DESELECT_ALL",arrowup:"NAVIGATE_UP",arrowdown:"NAVIGATE_DOWN",arrowleft:"NAVIGATE_LEFT",arrowright:"NAVIGATE_RIGHT"}}}class Ie{get(){return{f2:"START_EDITING",space:"TOGGLE_SELECTION","ctrl+num_add":"SELECT_ALL","cmd+a":"SELECT_ALL","ctrl+a":"SELECT_ALL","cmd+x":"DESELECT_ALL","cmd+shift+a":"DESELECT_ALL","ctrl+shift+a":"DESELECT_ALL","ctrl+num_subtract":"DESELECT_ALL","ctrl -":"DESELECT_ALL",arrowup:"NAVIGATE_UP",arrowdown:"NAVIGATE_DOWN",arrowleft:"NAVIGATE_LEFT",arrowright:"NAVIGATE_RIGHT"}}}class ke{constructor(e){this.tableScope=e,this.shortcutActionIdMapping={},this.listener=[],this.listener.push(e),this.init()}addListener(e){this.listener.includes(e)||this.listener.push(e)}init(){this.isMacintosh()?Object.assign(this.shortcutActionIdMapping,new Ie().get()):Object.assign(this.shortcutActionIdMapping,new Ee().get()),Object.assign(this.shortcutActionIdMapping,this.tableScope.tableOptions.shortcutActionIdMapping),this.isDebug()&&console.debug("ShortcutService",this.shortcutActionIdMapping),this.tableScope.hostElement.addEventListener("keydown",this.onKeyDown.bind(this))}isMacintosh(){return navigator.platform.indexOf("Mac")>-1}isDebug(){return this.isLocalhost()}isLocalhost(){return location.hostname==="localhost"||location.hostname==="127.0.0.1"}onKeyDown(e){const t=this.findEnty(e);t&&this.emit(t)&&(e.preventDefault(),e.stopPropagation())}emit(e){this.isDebug()&&console.debug("ShortcutService emit:",e);let t=!1;for(const o of this.listener)o.onActionTriggered(e)&&(t=!0);return t}findEnty(e){const t=this.getTokenByEvent(e);this.isDebug()&&console.debug("ShortcutService tokens:",t);for(const o in this.shortcutActionIdMapping){const i=o.replace(/opt/g,"alt").replace(/cmd/g,"meta").split(/[\+ ]/g).sort();if(this.areTokensEquals(t,i))return this.shortcutActionIdMapping[o]}}areTokensEquals(e,t){if(e.length!==t.length||e.length===0)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}getTokenByEvent(e){const t=[];return e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.code&&t.push(e.code.toLowerCase().replace(/key/g,"")),t.sort()}}class Te{onCheckboxChanged(e){}onContextmenu(e){}onModelChanged(e){}onMouseClicked(e){}onMouseDragging(e){}onMouseDraggingEnd(e){}onMouseMoved(e){}}class _e extends ye{constructor(e,t,o,i,s){var r;if(super(e,t,new he(o),i),this.eventListener=s,this.selectionService=new Me(this),this.api=new ge(this),this.mouseStartAction="",this.mouseStartWidth=-1,this.mouseStartColumnIndex=-1,this.dragFrom=-1,this.dragTo=-1,s||(this.eventListener=new Te),(r=this.tableOptions)!=null&&r.autoRestoreOptions){const l=this.tableOptions.autoRestoreOptions,n=l.getStorageKeyFn;n&&(l.autoRestoreScrollPosition&&(this.storeScrollPosStateService=new pe(n)),l.autoRestoreCollapsedExpandedState&&(this.storeStateCollapsedExpandService=new Se(n)),l.autoRestoreSortingState&&(this.storeSortingService=new we(n)))}this.mouseHandler=new ue(this),this.inputHandler=new Re(this),this.shortcutService=new ke(this),this.shortcutService.addListener(this.selectionService)}onActionTriggered(e){if(e==="NAVIGATE_DOWN"&&this.changeFocusCell(0,1)||e==="NAVIGATE_UP"&&this.changeFocusCell(0,-1)||e==="NAVIGATE_LEFT"&&this.changeFocusCell(-1,0)||e==="NAVIGATE_RIGHT"&&this.changeFocusCell(1,0))return!0;if(e==="START_EDITING"&&this.getFocusModel){const t=this.getFocusModel();if(t){const[o,i]=t.getFocus();this.tableModel.getBodyModel().isEditable(o,i)&&(this.clearSelection(),this.initRenderEditor(o,i))}return!0}return!1}updateModelValueAfterEdit(e,t,o,i){e==="body"&&this.tableModel.getAreaModel(e).setValue(t,o,i)&&(this.resetEditorRenderer(),this.repaint(),this.eventListener.onModelChanged(X.createSingle(t,o)),this.hostElement.focus())}getApi(){return this.api}firstInit(){var e;this.tableModel.init(),(e=this.tableOptions)!=null&&e.externalFilterFunction&&this.externalFilterChanged(!1),this.autoRestoreCollapsedExpandedState(),this.autoRestoreSortingState(),this.resetSizeOfWrapperDiv(),this.adjustContainersAndRows(),this.autoRestoreScrollPosition()}createGeMouseEvent(e){const t=new z;if(t.originalEvent=e,e){const o=e.target;if([t.areaIdent,t.sideIdent]=this.getAreaAndSideIdentByAttr(o),t.rowIndex=this.getNumberByAttr(o,"data-row-index"),t.columnIndex=this.getNumberByAttr(o,"data-col-index"),t.action=this.getStringByAttr(o,"data-ge-action"),t.areaIdent){const i=this.tableModel.getAreaModel(t.areaIdent);t.rowTop=i.getYPosByRowIndex(t.rowIndex)}if(t.columnLeft=this.tableModel.getXPosByColumnIndex(t.columnIndex),e.ctrlKey&&e.altKey){const i=e.clientY-this.hostElement.offsetTop-this.areaHeaderCenter.parent.clientHeight,s=e.clientX-this.hostElement.offsetLeft-this.areaBodyWestGeo.width;this.debugOnce(s,i)}}return t}onMouseDown(e){e.columnIndex>-1&&e.action&&["resize-column","drag-column"].includes(e.action)&&(this.mouseStartWidth=this.tableModel.getColumnWidth(e.columnIndex),this.mouseStartAction=e.action,this.mouseStartColumnIndex=e.columnIndex,this.mouseStartAction==="drag-column"&&(this.dragFrom=this.mouseStartColumnIndex))}mouseDraggingOnFrame(e){this.eventListener.onMouseDragging(e),this.mouseEvent=e,this.mouseStartColumnIndex>-1&&this.mouseStartAction==="resize-column"&&this.tableOptions.columnsResizable?this.resizeColumn(e):this.mouseStartAction==="drag-column"&&e.columnIndex>-1&&this.tableOptions.columnsDraggable&&(this.draggingTargetColumnIndex=e.columnIndex,this.dragTo=this.draggingTargetColumnIndex,this.dragFrom>-1&&this.dragTo>-1&&this.dragFrom!==this.dragTo&&(this.tableModel.changeColumnOrder(this.dragFrom,this.dragTo),this.dragFrom=this.dragTo,this.resetSizeOfWrapperDiv(),this.adjustContainersAndRows()),this.repaint())}mouseDraggingEndOnFrame(e){this.eventListener.onMouseDraggingEnd(e),this.draggingTargetColumnIndex=-1,this.mouseStartAction==="resize-column"?this.resizeColumn(e):this.mouseStartAction==="drag-column"&&this.repaint(),this.mouseStartWidth=-1,this.mouseStartColumnIndex=-1,this.dragFrom=-1,this.dragTo=-1,this.mouseStartAction=""}mouseMove(e){this.eventListener.onMouseMoved(e),this.adjustHoverRows(e),this.adjustHoverColumns(e)}contextmenu(e){this.eventListener.onContextmenu(e)}toggleExpandCollapseAll(e=!0){var o;const t=this.tableModel.getBodyModel();t instanceof V&&(t.toggleExpandCollapseAll(e),this.repaint(),(o=this.storeStateCollapsedExpandService)==null||o.collapsedStateAll(e))}toggleRowCheckbox(e,t,o){var n;const i=this.tableModel.getAreaModel(o),s=i.isRowChecked(e),r=s===void 0||s==="semi"||s==="none";i.setRowChecked(e,r),this.repaint();const l=(n=i.rowSelectionModel)==null?void 0:n.getCheckedRows();this.eventListener.onCheckboxChanged(l||[])}onMouseClicked(e,t){let o=this.selectionService.onMouseClicked(e,t);if(!o&&this.getFocusModel){const i=this.getFocusModel();i&&(o=i.hasChanged(),i.clearChanged(),o&&this.resetEditorRenderer())}this.eventListener.onMouseClicked(e),o&&this.debounce(this.repaint.bind(this),10)}externalFilterChanged(e=!0){const t=this.tableOptions.externalFilterFunction;t&&(e&&this.clearSelectionModel(),this.tableModel.externalFilterChanged(t),this.scrollViewport.scrollTo(0,0),this.tableModel.recalcHeightAndPadding(),this.resetSizeOfWrapperDiv(),this.repaint())}onHeaderDblClicked(e,t,o){var s,r;const i=this.tableModel.getColumnDef(o);if(i!=null&&i.sortable&&i.sortable()){e.preventDefault(),e.stopPropagation();const l=i.sortStatesOrder?i.sortStatesOrder:this.tableOptions.sortOrder,n=i.sortState??"",h=l[(l.indexOf(n)+1)%l.length],d=new ve(o,h);this.tableModel.doSort([d])&&((s=this.tableModel.getColumnDefs())==null||s.forEach(b=>b.sortState=""),i.sortState=h),this.repaint(),(r=this.storeSortingService)==null||r.setSortItems([d])}}changeFocusCell(e,t){if(!this.isEditing()&&this.getFocusModel){const o=this.getFocusModel();if(o){const[i,s]=o.getFocus();return o.setFocus(i+t,s+e),this.repaint(),!0}}return!1}resizeColumn(e){this.tableModel.setColumnWidth(this.mouseStartColumnIndex,this.mouseStartWidth+e.draggingX),this.tableModel.recalcPadding(),this.resetSizeOfWrapperDiv(),this.adjustContainersAndRows()}clearSelectionModel(){var e;this.getSelectionModel&&((e=this.getSelectionModel())==null||e.clear())}debugOnce(e,t){var o;console.clear(),console.info("this.hostElement.offsetTop",this.hostElement.offsetTop),console.info("this.hostElement.scrollHeight",this.hostElement.scrollHeight),console.info("this.scrollViewportTop",this.scrollTop),console.info("this.areaHeaderCenter.parent.clientHeight",this.areaHeaderCenter.parent.clientHeight),console.info("bodyY",t),console.info("bodyX",e),console.info("rows",this.firstVisibleRowIndex),console.info(""),console.info("this.tableModel",this.tableModel),console.info(""),console.info("this.mouseMoveEvent.clientX",(o=this.mouseHandler.mouseEvent)==null?void 0:o.clientX),console.info("this.hostElement.offsetLeft",this.hostElement.offsetLeft),console.info("this.areaBodyWestGeo.width",this.areaBodyWestGeo.width)}autoRestoreScrollPosition(){var e;if((e=this.tableOptions)!=null&&e.autoRestoreOptions&&this.storeScrollPosStateService&&this.tableOptions.autoRestoreOptions.autoRestoreScrollPosition){const o=this.storeScrollPosStateService.getScrollOffset();o&&this.scrollViewport.scrollTo(...o)}}autoRestoreSortingState(){var e,t;if((t=(e=this.tableOptions)==null?void 0:e.autoRestoreOptions)!=null&&t.autoRestoreSortingState&&this.storeSortingService){const o=this.storeSortingService.getSortItems();o!=null&&o.length&&this.tableModel.getBodyModel().doSort(o)}}autoRestoreCollapsedExpandedState(){var e,t;if((t=(e=this.tableOptions)==null?void 0:e.autoRestoreOptions)!=null&&t.getRowId&&this.storeStateCollapsedExpandService){const o=this.tableOptions.autoRestoreOptions,i=o.getRowId;if(o.autoRestoreCollapsedExpandedState&&i){const s=this.storeStateCollapsedExpandService.collapsedExpandedStateGet(),r=this.tableModel.getAreaModel("body");if(r instanceof V){const l=r,n=r.getRowCount();for(let h=0;h<n;h++){const d=r.getRowByIndex(h);if(d)if(s.allExpanded)d.expanded=!0;else if(s.allCollapsed)d.expanded=!1;else{const u=i(d.data);s.mode==="expanded"?d.expanded=this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(u):s.mode==="collapsed"&&(d.expanded=!this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(u))}}l.recalcVisibleTreeRows()}}}}}class ee{}ee.themes=["light","combat","paper","blackboard"],ee.vars={light:`:root [data-theme="light"] {
|
|
9
|
+
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
10
|
+
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
11
|
+
--ge-table-header-center-bg: rgba(233, 233, 233, 0.5);
|
|
12
|
+
--ge-table-header-east-bg: rgba(233, 233, 233, 0.5);
|
|
13
|
+
--ge-table-header-west-text: #000;
|
|
14
|
+
--ge-table-header-center-text: #000;
|
|
15
|
+
--ge-table-header-east-text: #000;
|
|
16
|
+
--ge-table-header-west-horizontal-border: #ddd;
|
|
17
|
+
--ge-table-header-west-vertical-border: #ccc;
|
|
18
|
+
--ge-table-header-center-horizontal-border: #ddd;
|
|
19
|
+
--ge-table-header-center-vertical-border: #ccc;
|
|
20
|
+
--ge-table-header-east-horizontal-border: #ddd;
|
|
21
|
+
--ge-table-header-east-vertical-border: #ccc;
|
|
22
|
+
--ge-table-body-west-bg: rgba(233, 233, 233, 0.5);
|
|
23
|
+
--ge-table-body-center-bg: rgba(255,255,255, 0.5);
|
|
24
|
+
--ge-table-body-east-bg: rgba(233, 233, 233, 0.5);
|
|
25
|
+
--ge-table-body-west-text: #000;
|
|
26
|
+
--ge-table-body-center-text: #000;
|
|
27
|
+
--ge-table-body-east-text: #000;
|
|
28
|
+
--ge-table-body-west-horizontal-border: #ddd;
|
|
29
|
+
--ge-table-body-west-vertical-border: #ccc;
|
|
30
|
+
--ge-table-body-center-horizontal-border: #bbb;
|
|
31
|
+
--ge-table-body-center-vertical-border: #ddd;
|
|
32
|
+
--ge-table-body-east-horizontal-border: #ddd;
|
|
33
|
+
--ge-table-body-east-vertical-border: #ccc;
|
|
34
|
+
--ge-table-body-west-selected-range-bg: rgba(0, 152, 219, 0.4);
|
|
35
|
+
--ge-table-body-center-selected-range-bg: rgba(0, 152, 219, 0.4);
|
|
36
|
+
--ge-table-body-east-selected-range-bg: rgba(0, 152, 219, 0.4);
|
|
37
|
+
--ge-table-body-west-selected-range-text: #000;
|
|
38
|
+
--ge-table-body-center-selected-range-text: #000;
|
|
39
|
+
--ge-table-body-east-selected-range-text: #000;
|
|
40
|
+
--ge-table-footer-west-bg: rgba(233, 233, 233, 0.5);
|
|
41
|
+
--ge-table-footer-center-bg: rgba(233, 233, 233, 0.5);
|
|
42
|
+
--ge-table-footer-east-bg: rgba(233, 233, 233, 0.5);
|
|
43
|
+
--ge-table-footer-west-text: #000;
|
|
44
|
+
--ge-table-footer-center-text: #000;
|
|
45
|
+
--ge-table-footer-east-text: #000;
|
|
46
|
+
--ge-table-footer-west-horizontal-border: #ddd;
|
|
47
|
+
--ge-table-footer-west-vertical-border: #ccc;
|
|
48
|
+
--ge-table-footer-center-horizontal-border: #ddd;
|
|
49
|
+
--ge-table-footer-center-vertical-border: #ccc;
|
|
50
|
+
--ge-table-footer-east-horizontal-border: #ddd;
|
|
51
|
+
--ge-table-footer-east-vertical-border: #ccc;
|
|
52
|
+
--ge-table-border: #ccc;
|
|
53
|
+
--ge-table-row-odd-bg: transparent;
|
|
54
|
+
--ge-table-row-even-bg: transparent;
|
|
55
|
+
--ge-table-column-odd-bg: transparent;
|
|
56
|
+
--ge-table-column-even-bg: transparent;
|
|
57
|
+
--ge-table-hover-column-bg: rgba(0, 224, 255, 0.27);
|
|
58
|
+
--ge-table-hover-row-bg: rgba(0, 224, 255, 0.27);
|
|
59
|
+
--ge-table-focus-border: rgb(0, 255, 255);
|
|
60
|
+
--ge-table-color-error-text: #e00034;
|
|
61
|
+
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
62
|
+
--ge-table-column-resize-handle-border: rgb(0, 255, 255);
|
|
63
|
+
--ge-table-dragged-col-div-bg: lightcyan;
|
|
64
|
+
--ge-table-drop-zone-bg: rgba(244, 255, 242, 0.6);
|
|
65
|
+
}`,combat:`:root [data-theme="combat"] {
|
|
66
|
+
--ge-table-bg: #101010;
|
|
67
|
+
--ge-table-header-west-bg: #101010;
|
|
68
|
+
--ge-table-header-center-bg: #101010;
|
|
69
|
+
--ge-table-header-east-bg: #101010;
|
|
70
|
+
--ge-table-header-west-text: oklch(100% 0 0);
|
|
71
|
+
--ge-table-header-center-text: oklch(100% 0 0);
|
|
72
|
+
--ge-table-header-east-text: oklch(100% 0 0);
|
|
73
|
+
--ge-table-header-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
74
|
+
--ge-table-header-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
75
|
+
--ge-table-header-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
76
|
+
--ge-table-header-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
77
|
+
--ge-table-header-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
78
|
+
--ge-table-header-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
79
|
+
--ge-table-body-west-bg: #101010;
|
|
80
|
+
--ge-table-body-center-bg: #101010;
|
|
81
|
+
--ge-table-body-east-bg: #101010;
|
|
82
|
+
--ge-table-body-west-text: #b6b4b4;
|
|
83
|
+
--ge-table-body-center-text: #b6b4b4;
|
|
84
|
+
--ge-table-body-east-text: #b6b4b4;
|
|
85
|
+
--ge-table-body-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
86
|
+
--ge-table-body-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
87
|
+
--ge-table-body-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
88
|
+
--ge-table-body-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
89
|
+
--ge-table-body-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
90
|
+
--ge-table-body-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
91
|
+
--ge-table-body-west-selected-range-bg: oklch(20% 0.2 39.6 / 37%);
|
|
92
|
+
--ge-table-body-center-selected-range-bg: oklch(20% 0.2 39.6 / 37%);
|
|
93
|
+
--ge-table-body-east-selected-range-bg: oklch(20% 0.2 39.6 / 37%);
|
|
94
|
+
--ge-table-body-west-selected-range-text: #f00032;
|
|
95
|
+
--ge-table-body-center-selected-range-text: #f00032;
|
|
96
|
+
--ge-table-body-east-selected-range-text: #f00032;
|
|
97
|
+
--ge-table-footer-west-bg: #101010;
|
|
98
|
+
--ge-table-footer-center-bg: #101010;
|
|
99
|
+
--ge-table-footer-east-bg: #101010;
|
|
100
|
+
--ge-table-footer-west-text: oklch(100% 0 0);
|
|
101
|
+
--ge-table-footer-center-text: oklch(100% 0 0);
|
|
102
|
+
--ge-table-footer-east-text: oklch(100% 0 0);
|
|
103
|
+
--ge-table-footer-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
104
|
+
--ge-table-footer-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
105
|
+
--ge-table-footer-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
106
|
+
--ge-table-footer-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
107
|
+
--ge-table-footer-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
108
|
+
--ge-table-footer-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
109
|
+
--ge-table-border: oklch(100% 0 0 / 0%);
|
|
110
|
+
--ge-table-row-odd-bg: oklch(100% 0 0 / 0%);
|
|
111
|
+
--ge-table-row-even-bg: oklch(100% 0 0 / 0%);
|
|
112
|
+
--ge-table-column-odd-bg: oklch(100% 0 0 / 0%);
|
|
113
|
+
--ge-table-column-even-bg: oklch(100% 0 0 / 0%);
|
|
114
|
+
--ge-table-hover-column-bg: oklch(34% 0.25 3.6 / 27%);
|
|
115
|
+
--ge-table-hover-row-bg: oklch(34% 0.25 3.6 / 27%);
|
|
116
|
+
--ge-table-focus-border: oklch(40% 0.25 3.6);
|
|
117
|
+
--ge-table-color-error-text: oklch(65% 0.31 43.2);
|
|
118
|
+
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
119
|
+
--ge-table-column-resize-handle-border: oklch(63% 0.31 43.2);
|
|
120
|
+
--ge-table-dragged-col-div-bg: #2c2e33;
|
|
121
|
+
--ge-table-drop-zone-bg: #101010;
|
|
122
|
+
}`,paper:`:root [data-theme="paper"] {
|
|
123
|
+
--ge-table-bg: #e7e5df;
|
|
124
|
+
--ge-table-header-west-bg: oklch(80% 0.02 99 / 48%);
|
|
125
|
+
--ge-table-header-center-bg: oklch(80% 0.02 99 / 48%);
|
|
126
|
+
--ge-table-header-east-bg: oklch(80% 0.02 99 / 48%);
|
|
127
|
+
--ge-table-header-west-text: #111;
|
|
128
|
+
--ge-table-header-center-text: #111;
|
|
129
|
+
--ge-table-header-east-text: #111;
|
|
130
|
+
--ge-table-header-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
131
|
+
--ge-table-header-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
132
|
+
--ge-table-header-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
133
|
+
--ge-table-header-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
134
|
+
--ge-table-header-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
135
|
+
--ge-table-header-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
136
|
+
--ge-table-body-west-bg: oklch(80% 0.02 99 / 48%);
|
|
137
|
+
--ge-table-body-center-bg: #e7e5df;
|
|
138
|
+
--ge-table-body-east-bg: oklch(80% 0.02 99 / 48%);
|
|
139
|
+
--ge-table-body-west-text: #000;
|
|
140
|
+
--ge-table-body-center-text: #000;
|
|
141
|
+
--ge-table-body-east-text: #000;
|
|
142
|
+
--ge-table-body-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
143
|
+
--ge-table-body-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
144
|
+
--ge-table-body-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
145
|
+
--ge-table-body-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
146
|
+
--ge-table-body-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
147
|
+
--ge-table-body-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
148
|
+
--ge-table-body-west-selected-range-bg: #cfcdc2;
|
|
149
|
+
--ge-table-body-center-selected-range-bg: #cfcdc2;
|
|
150
|
+
--ge-table-body-east-selected-range-bg: #cfcdc2;
|
|
151
|
+
--ge-table-body-west-selected-range-text: #000;
|
|
152
|
+
--ge-table-body-center-selected-range-text: #000;
|
|
153
|
+
--ge-table-body-east-selected-range-text: #000;
|
|
154
|
+
--ge-table-footer-west-bg: oklch(80% 0.02 99 / 48%);
|
|
155
|
+
--ge-table-footer-center-bg: oklch(80% 0.02 99 / 48%);
|
|
156
|
+
--ge-table-footer-east-bg: oklch(80% 0.02 99 / 48%);
|
|
157
|
+
--ge-table-footer-west-text: #111;
|
|
158
|
+
--ge-table-footer-center-text: #111;
|
|
159
|
+
--ge-table-footer-east-text: #111;
|
|
160
|
+
--ge-table-footer-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
161
|
+
--ge-table-footer-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
162
|
+
--ge-table-footer-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
163
|
+
--ge-table-footer-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
164
|
+
--ge-table-footer-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
165
|
+
--ge-table-footer-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
166
|
+
--ge-table-border: oklch(100% 0 0 / 0%);
|
|
167
|
+
--ge-table-row-odd-bg: oklch(100% 0 0 / 0%);
|
|
168
|
+
--ge-table-row-even-bg: oklch(100% 0 0 / 0%);
|
|
169
|
+
--ge-table-column-odd-bg: oklch(100% 0 0 / 0%);
|
|
170
|
+
--ge-table-column-even-bg: oklch(100% 0 0 / 0%);
|
|
171
|
+
--ge-table-hover-column-bg: oklch(5% 0.2 266.40000000000003 / 9%);
|
|
172
|
+
--ge-table-hover-row-bg: oklch(5% 0.2 266.40000000000003 / 9%);
|
|
173
|
+
--ge-table-focus-border: oklch(100% 0.19 205.20000000000002);
|
|
174
|
+
--ge-table-color-error-text: oklch(45% 0.25 43.2);
|
|
175
|
+
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
176
|
+
--ge-table-column-resize-handle-border: oklch(100% 0.19 205.20000000000002 / 71%);
|
|
177
|
+
--ge-table-dragged-col-div-bg: #2c2e33;
|
|
178
|
+
--ge-table-drop-zone-bg: #e7e5df;
|
|
179
|
+
}`,blackboard:`:root [data-theme="dark"] {
|
|
180
|
+
--ge-table-bg: #0c1021;
|
|
181
|
+
--ge-table-header-west-bg: #0c1021;
|
|
182
|
+
--ge-table-header-center-bg: #0c1021;
|
|
183
|
+
--ge-table-header-east-bg: #0c1021;
|
|
184
|
+
--ge-table-header-west-text: #e0df85;
|
|
185
|
+
--ge-table-header-center-text: #e0df85;
|
|
186
|
+
--ge-table-header-east-text: #e0df85;
|
|
187
|
+
--ge-table-header-west-horizontal-border: transparent;
|
|
188
|
+
--ge-table-header-west-vertical-border: transparent;
|
|
189
|
+
--ge-table-header-center-horizontal-border: transparent;
|
|
190
|
+
--ge-table-header-center-vertical-border: transparent;
|
|
191
|
+
--ge-table-header-east-horizontal-border: transparent;
|
|
192
|
+
--ge-table-header-east-vertical-border: transparent;
|
|
193
|
+
--ge-table-body-west-bg: #0c1021;
|
|
194
|
+
--ge-table-body-center-bg: #0c1021;
|
|
195
|
+
--ge-table-body-east-bg: #0c1021;
|
|
196
|
+
--ge-table-body-west-text: #a7a7a7;
|
|
197
|
+
--ge-table-body-center-text: #a7a7a7;
|
|
198
|
+
--ge-table-body-east-text: #a7a7a7;
|
|
199
|
+
--ge-table-body-west-horizontal-border: transparent;
|
|
200
|
+
--ge-table-body-west-vertical-border: transparent;
|
|
201
|
+
--ge-table-body-center-horizontal-border: transparent;
|
|
202
|
+
--ge-table-body-center-vertical-border: transparent;
|
|
203
|
+
--ge-table-body-east-horizontal-border: transparent;
|
|
204
|
+
--ge-table-body-east-vertical-border: transparent;
|
|
205
|
+
--ge-table-body-west-selected-range-bg: #758129;
|
|
206
|
+
--ge-table-body-center-selected-range-bg: #758129;
|
|
207
|
+
--ge-table-body-east-selected-range-bg: #758129;
|
|
208
|
+
--ge-table-body-west-selected-range-text: oklch(100% 0 0);
|
|
209
|
+
--ge-table-body-center-selected-range-text: oklch(100% 0 0);
|
|
210
|
+
--ge-table-body-east-selected-range-text: oklch(100% 0 0);
|
|
211
|
+
--ge-table-footer-west-bg: #0c1021;
|
|
212
|
+
--ge-table-footer-center-bg: #0c1021;
|
|
213
|
+
--ge-table-footer-east-bg: #0c1021;
|
|
214
|
+
--ge-table-footer-west-text: #e0df85;
|
|
215
|
+
--ge-table-footer-center-text: #e0df85;
|
|
216
|
+
--ge-table-footer-east-text: #e0df85;
|
|
217
|
+
--ge-table-footer-west-horizontal-border: transparent;
|
|
218
|
+
--ge-table-footer-west-vertical-border: transparent;
|
|
219
|
+
--ge-table-footer-center-horizontal-border: transparent;
|
|
220
|
+
--ge-table-footer-center-vertical-border: otransparent;
|
|
221
|
+
--ge-table-footer-east-horizontal-border: transparent;
|
|
222
|
+
--ge-table-footer-east-vertical-border: transparent;
|
|
223
|
+
--ge-table-border: oklch(0% 0 0);
|
|
224
|
+
--ge-table-row-odd-bg: oklch(100% 0 0 / 0%);
|
|
225
|
+
--ge-table-row-even-bg: oklch(100% 0 0 / 0%);
|
|
226
|
+
--ge-table-column-odd-bg: oklch(100% 0 0 / 0%);
|
|
227
|
+
--ge-table-column-even-bg: oklch(100% 0 0 / 0%);
|
|
228
|
+
--ge-table-hover-column-bg: #a9a9a9;
|
|
229
|
+
--ge-table-hover-row-bg: #a9a9a9;
|
|
230
|
+
--ge-table-focus-border: #e1ff00;
|
|
231
|
+
--ge-table-color-error-text: #ff0040;
|
|
232
|
+
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
233
|
+
--ge-table-column-resize-handle-border: oklch(0% 0 0);
|
|
234
|
+
--ge-table-dragged-col-div-bg: #2c2e33;
|
|
235
|
+
--ge-table-drop-zone-bg: #758129;
|
|
236
|
+
}`};class Y{static buildTreeRows(e,t="children",o=12){const i=[];for(const s of e)i.push(Y.buildTreeRow(s,t,void 0,0,o));return i}static buildTreeRow(e,t="children",o=new O(e,!0,[],void 0,0),i=0,s=12){var l;if(i>s)return console.warn("Max deep limit reached: ",i),o;const r=e[t];if(r)for(const n of r){const h=new O(n,!0,[],o,i+1);if((l=o.children)==null||l.push(h),Y.buildTreeRow(n,t,h,i+1),i>s)return console.warn("Max deep limit reached: ",i),o}return o}}class B{constructor(e=34,t=34,o=34){this.header=e,this.body=t,this.footer=o}}class p{constructor(e=100,t="px"){this.value=e,this.unit=t}}const De=()=>!0,te=()=>!1;class W{constructor(e,t,o=new p(100,"px"),i=new T,s=new T,r=new p(100,"px"),l=new p(100,"px"),n,h,d,u,b,S,f,w,g=()=>this.visible){this.property=e,this.headerLabel=t,this.width=o,this.classes=i,this.rendererMap=s,this.minWidth=r,this.maxWidth=l,this.sortable=n,this.sortComparator=h,this.sortState=d,this.sortStatesOrder=u,this.sortIconVisible=b,this.editable=S,this.getEditRenderer=f,this.editInputPipe=w,this.isVisible=g,this.visible=!0}static bodyRenderer(e){return new T(void 0,e,void 0)}static create(e){const t=new T(e.headerRenderer,e.bodyRenderer,e.footerRenderer),o=new T(e.headerClasses,e.bodyClasses,e.footerClasses),i=e.sortIconVisible??e.sortable??te,s=e.editable??e.editable??te,r=e.isVisible??e.isVisible??De;return new W(e.property??"",e.headerLabel??"",e.width??new p(100,"px"),o,t,e.minWidth??new p(100,"px"),e.maxWidth??new p(100,"px"),e.sortable,e.sortComparator,e.sortState,e.sortStatesOrder,i,s,e.getEditRenderer,e.editInputPipe,r)}}const Xe=new p(300,"px"),Ye=new p(290,"px"),Ke=new p(280,"px"),qe=new p(270,"px"),Ue=new p(260,"px"),Je=new p(250,"px"),Qe=new p(240,"px"),Ze=new p(230,"px"),et=new p(220,"px"),tt=new p(210,"px"),oe=new p(200,"px"),ot=new p(190,"px"),it=new p(180,"px"),st=new p(170,"px"),rt=new p(160,"px"),lt=new p(150,"px"),nt=new p(140,"px"),at=new p(130,"px"),dt=new p(120,"px"),ht=new p(110,"px"),ct=new p(100,"px"),ut=new p(90,"px"),gt=new p(80,"px"),bt=new p(70,"px"),ft=new p(60,"px"),pt=new p(50,"px"),mt=new p(40,"px"),St=new p(30,"px"),wt=new p(20,"px"),Ct=new p(10,"px"),xt=new p(0,"px");class F extends j{constructor(e,t,o,i=[]){super(e,i,o),this.areaIdent=e,this.arr=t,this.defaultRowHeight=o,this.columnDefs=i,this.filteredArr=[...t]}externalFilterChanged(e){this.filteredArr=this.arr?this.arr.filter(e):[]}getRowCount(){return this.filteredArr?this.filteredArr.length:0}getValueAt(e,t){return this.filteredArr[e][t]}setValue(e,t,o){var s;const i=(s=this.columnDefs[t])==null?void 0:s.editInputPipe;return i&&(o=i(o,e,t)),this.arr[e][t]=o,!0}getRowByIndex(e){return this.filteredArr[e]}getRowHeight(e){return this.defaultRowHeight}changeColumnOrder(e,t){this.filteredArr.forEach(o=>this.arrayMove(o,e,t)),super.changeColumnOrder(e,t)}}class ${constructor(e="body"){this.areaIdent=e,this.rowSelectionModel=void 0}getRowCount(){return 0}getValueAt(e,t){return""}getCellRenderer(e,t){}getRowHeight(e){return 0}getColspanAt(e,t){return 0}getCustomClassesAt(e,t){return[]}getCustomStyleAt(e,t){}getRowspanAt(e,t){return 0}getRowByIndex(e){}isRowCheckable(e){return!1}isRowChecked(e){}setRowChecked(e,t){}getTooltipAt(e,t){return""}getMaxColspan(){return 0}getMaxRowspan(){return 0}getYPosByRowIndex(e){return 0}init(){}externalFilterChanged(e){}isFilterable(){return!1}doSort(e){return!1}isEditable(e,t){return!1}setValue(e,t,o){return!1}isSelectable(e,t){return!1}changeColumnOrder(e,t){}}class ie{constructor(e=[]){this.allRootNodes=e}checkRow(e,t){if(e.checked=t,e.children)for(const o of e.children)this.checkRow(o,t);this.autoCheckParent(e.parent)}checkAll(e){for(const t of this.allRootNodes)t.checked=!1,t.children&&this.checkAll(t.children)}getCheckedRows(){const e=[];return this.addSelectedRecursive(this.allRootNodes,e),e}isRowChecked(e){if(e.checked)return"full";const t=this.areAllChildrenChecked(e),o=this.areAllChildrenUnchecked(e);return!t&&!o?"semi":"none"}setCheckedRows(e){this.addCheckedRows(e)}addCheckedRows(e){for(const t of e)t.checked=!0}autoCheckParent(e){if(e){const t=this.areAllChildrenChecked(e),o=this.areAllChildrenUnchecked(e);t?e.checked=!0:e.checked=!1,this.autoCheckParent(e.parent)}}areAllChildrenChecked(e){var t,o;if((t=e.children)!=null&&t.length){for(const i of e.children)if(!i.checked||(o=i.children)!=null&&o.length&&!this.areAllChildrenChecked(i))return!1}return!0}areAllChildrenUnchecked(e){var t,o;if((t=e.children)!=null&&t.length){for(const i of e.children)if(i.checked||(o=i.children)!=null&&o.length&&!this.areAllChildrenUnchecked(i))return!1}return!0}addSelectedRecursive(e,t){for(const o of e)o.checked&&t.push(o),o.children&&this.addSelectedRecursive(o.children,t)}}class se{constructor(e=0,t=0,o=0,i=0){this.top=e,this.right=t,this.bottom=o,this.left=i}}class re{render(e,t,o,i,s,r,l){if(s.isRowCheckable(t)){l.addClass(e,"ge-table-row-checkbox-div");const n=s.isRowChecked(t),h=n==="full"?"checked":"",d=n==="semi"?'<span style="opacity: 0.4;">✓<span>':"";e.innerHTML=`
|
|
237
|
+
<input
|
|
238
|
+
type="checkbox"
|
|
239
|
+
data-area="${i}"
|
|
240
|
+
data-row-index="${t}"
|
|
241
|
+
data-col-index="${o}"
|
|
242
|
+
data-input-type="checkbox"
|
|
243
|
+
${h}
|
|
244
|
+
class="ge-table-row-checkbox">
|
|
245
|
+
${d} `}}}class Fe{constructor(){this.property="CheckboxColumn",this.headerLabel="",this.width=new p(50,"px"),this.minWidth=new p(50,"px"),this.maxWidth=new p(100,"px"),this.rendererMap=new T(new re,new re,void 0),this.classes=new T([],["ge-table-text-align-left"],[])}}class $e{constructor(){this.checkedRows=[]}getCheckedRows(){return this.checkedRows}setCheckedRows(e){this.checkedRows=e}addCheckedRows(e){this.checkedRows||(this.checkedRows=[]);for(const t of e)this.checkedRows.includes(t)||this.checkedRows.push(t)}checkRow(e,t){this.checkedRows||(this.checkedRows=[]),t?this.checkedRows.includes(e)||this.checkedRows.push(e):this.removeSelectedRow(e)}isRowChecked(e){return this.checkedRows&&this.checkedRows.includes(e)?"full":"none"}checkAll(e){this.checkedRows=[]}removeSelectedRow(e){if(this.checkedRows){const t=this.checkedRows.indexOf(e);t>-1&&this.checkedRows.splice(t,1)}}}class K{constructor(e,t,o,i=0,s=0,r=!1,l=new B,n=[],h=[],d=-1,u=0,b=400,S=()=>{}){var f,w,g,m;this.headerAreaModel=e,this.bodyAreaModel=t,this.footerAreaModel=o,this.fixedLeftColumnCount=i,this.fixedRightColumnCount=s,this.rowCheckboxVisible=r,this.defaultRowHeights=l,this.columnDefs=n,this.columnSizes=h,this.overridingColumnWidth=d,this.columnCount=u,this.parentSize=b,this.getSelectionModel=S,this.rowCount=0,this.contentHeightInPx=0,this.contentWidthInPx=0,this.padding=new se(0,0,0,0),this.xPositions=[],e.areaIdent="header",t.areaIdent="body",o.areaIdent="footer",this.columnCount||((f=this.columnDefs)!=null&&f.length?this.columnCount=this.columnDefs.length:(w=this.columnSizes)!=null&&w.length&&(this.columnCount=(g=this.columnSizes)==null?void 0:g.length)),(m=this.columnDefs)!=null&&m.length&&this.columnDefs[0]instanceof Fe&&!t.rowSelectionModel&&(t.rowSelectionModel=new $e)}init(){this.recalcSize(this.parentSize),this.overridingColumnWidth===-1&&this.calcXPositions(),this.headerAreaModel&&this.headerAreaModel.init(),this.bodyAreaModel&&this.bodyAreaModel.init(),this.footerAreaModel&&this.footerAreaModel.init()}getColumnCount(){return this.columnCount}setColumnWidth(e,t){var o;t=Math.max(0,t),this.overridingColumnWidth!==-1&&(this.overridingColumnWidth=t),e>-1&&e<((o=this.columnSizes)==null?void 0:o.length)&&(this.columnSizes[e]=t),this.recalcContentWidthInPx()}getColumnWidth(e){var o;const t=this.getColumnDef(e);return t&&t.isVisible&&!t.isVisible()?0:this.overridingColumnWidth!==-1?this.overridingColumnWidth:e>-1&&e<((o=this.columnSizes)==null?void 0:o.length)?this.columnSizes[e]:0}getXPosByColumnIndex(e){return e===0?0:this.overridingColumnWidth>-1?this.overridingColumnWidth*e:this.xPositions[e]}recalcSize(e){this.recalcColumnWidthes(e),this.recalcHeightAndPadding()}recalcHeightAndPadding(){const e=this.getAreaModel("body");this.rowCount=e.getRowCount(),this.contentHeightInPx=this.getAreaHeight("body"),this.recalcContentWidthInPx(),this.recalcPadding()}recalcPadding(){const e=this.getSideAreaWidth("west"),t=this.getSideAreaWidth("east"),o=this.getAreaHeight("header"),i=this.getAreaHeight("footer");this.padding=new se(o,t,i,e)}getPadding(){return this.padding}getContentHeightInPixel(){return this.contentHeightInPx}getContentWidthInPixel(){return this.contentWidthInPx}getRowHeight(e,t){return this.getAreaModel(e).getRowHeight(t)}getModel(e){return this.getAreaModel(e)}getAreaHeight(e){const t=this.getModel(e),o=t.getRowCount();if(this.defaultRowHeights[e])return o*this.defaultRowHeights[e];let i=0;for(let s=0;s<o;s++)i=i+t.getRowHeight(s);return i}getSideAreaWidth(e){const[t,o]=this.getSideStartAndEndColumnIndex(e);let i=0;for(let s=t;s<=o;s++)i=i+this.getColumnWidth(s);return i}getSideStartAndEndColumnIndex(e){const t=this.getFixedLeftColumnCount(),o=this.getFixedRightColumnCount();let i=0,s=this.columnCount-1;return e==="west"?s=t-1:e==="east"?i=this.columnCount-o:(i=t,s=this.columnCount-o-1),[i,s]}getColumnDef(e){if(e<this.columnDefs.length)return this.columnDefs[e]}getFixedLeftColumnCount(){return this.fixedLeftColumnCount}getFixedRightColumnCount(){return this.fixedRightColumnCount}getAreaModel(e){if(e==="header")return this.headerAreaModel;if(e==="body")return this.bodyAreaModel;if(e==="footer")return this.footerAreaModel;throw new Error("Wrong ident.")}getBodyModel(){return this.bodyAreaModel}isFooterVisibe(){var e;return(((e=this.footerAreaModel)==null?void 0:e.getRowCount())??0)>0}isHeaderVisibe(){var e;return(((e=this.headerAreaModel)==null?void 0:e.getRowCount())??0)>0}isRowCheckboxVisible(){return this.rowCheckboxVisible}externalFilterChanged(e){this.getAreaModel("body").externalFilterChanged(e)}doSort(e){return this.getAreaModel("body").doSort(e)}getColumnDefs(){return this.columnDefs}getColumnProperty(e){return this.columnDefs[e].property}getBodyRowByIndex(e){return this.getBodyModel().getRowByIndex(e)}isSortable(e){return this.columnDefs&&e<this.columnDefs.length&&this.columnDefs[e].sortable?this.columnDefs[e].sortable():!1}changeColumnOrder(e,t){var o,i,s;this.arrayMove(this.columnDefs,e,t),this.arrayMove(this.columnSizes,e,t),(o=this.headerAreaModel)==null||o.changeColumnOrder(e,t),(i=this.bodyAreaModel)==null||i.changeColumnOrder(e,t),(s=this.footerAreaModel)==null||s.changeColumnOrder(e,t),this.calcXPositions()}recalcColumnWidthes(e){var t,o,i;!((t=this.columnDefs)!=null&&t.length)&&!((o=this.columnSizes)!=null&&o.length)&&(this.columnSizes=new Array(this.getColumnCount()).fill(this.overridingColumnWidth)),(i=this.columnDefs)!=null&&i.length&&(this.columnSizes=this.columnDefs.map(s=>{if(s.width.unit==="%"&&e){let r=Math.floor(s.width.value*e/100);if(s.minWidth){let l=s.minWidth.unit==="px"?s.minWidth.value:Math.floor(s.minWidth.value*e/100);r=Math.max(l,r)}if(s.maxWidth){let l=s.maxWidth.unit==="px"?s.maxWidth.value:Math.floor(s.maxWidth.value*e/100);r=Math.min(l,r)}return r}return s.width.value}))}arrayMove(e,t,o){const i=e.splice(t,1)[0];return e.splice(o,0,i),e}recalcContentWidthInPx(){this.contentWidthInPx=this.getSideAreaWidth("center")}calcXPositions(){const e=this.getColumnCount();this.xPositions=new Array(e+1),this.xPositions[0]=0;for(let t=0;t<e;t++)this.xPositions[t+1]=this.getColumnWidth(t)+this.xPositions[t]}}class Oe extends j{constructor(e,t,o,i=[]){super(e,i,o),this.areaIdent=e,this.rows=t,this.defaultRowHeight=o,this.columnDefs=i,this.sorterService=new fe,this.filteredRows=[...t],this.properties=i.map(s=>s.property)}getRowCount(){var e;return((e=this.filteredRows)==null?void 0:e.length)??0}getValueAt(e,t){const o=this.properties[t];let i=this.filteredRows[e];return i instanceof O&&(i=i.data),i?this.getValueByT(i,o):""}getFilteredRows(){return this.filteredRows}getAllRows(){return this.rows}getRowHeight(e){return this.defaultRowHeight}getRowByIndex(e){return this.filteredRows[e]}externalFilterChanged(e){this.filteredRows=this.rows?this.rows.filter(e):[]}doSort(e){for(const t of e){const{columnIndex:o,sortState:i}=t,s=i==="asc"?1:i==="desc"?-1:0,r=this.properties[o];this.filteredRows=this.filteredRows.sort(this.genericFlatTableSortComparator(r,s))}return!0}getValueByT(e,t){return t.includes(".")?this.getPropertyValue(e,t.split(".")):e[t]}changeColumnOrder(e,t){this.arrayMove(this.properties,e,t),super.changeColumnOrder(e,t)}genericFlatTableSortComparator(e,t){return(o,i)=>{const s=this.getValueByT(o,e),r=this.getValueByT(i,e);return this.sorterService.genericSortComparator(s,r,t)}}getPropertyValue(e,t){const o=t.shift();let i=e[o];return i&&t.length?this.getPropertyValue(i,t):i}}class le extends Oe{constructor(e,t,o,i){super(e,t,i,o),this.areaIdent=e,this.rows=t,this.columnDefs=o,this.defaultRowHeight=i}}class Le{render(e,t,o,i,s,r,l){if(s.isEditable(t,o)){l.addClass(e,"ge-table-row-input-div");const n=s.getValueAt(t,o);e.innerHTML=`
|
|
246
|
+
<input
|
|
247
|
+
type="text"
|
|
248
|
+
value="${n}"
|
|
249
|
+
autofocus
|
|
250
|
+
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
251
|
+
data-listen="change"
|
|
252
|
+
data-area="${i}"
|
|
253
|
+
data-row-index="${t}"
|
|
254
|
+
data-col-index="${o}"
|
|
255
|
+
data-input-type="text"
|
|
256
|
+
style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
|
|
257
|
+
class="ge-table-cell-editor-input">`}}}class Pe{constructor(e="none",t="single"){this.selectionType=e,this.selectionMode=t,this.ranges=[],this.negativeRanges=[],this.allSelected=!1}getSelectionCount(e,t){let o=0;for(const i of this.ranges)i.isInRange(e,t)&&o++;return this.allSelected&&o++,this.isInNegativeRange(e,t)&&(o=0),o}isInNegativeRange(e,t){for(const o of this.negativeRanges)if(o.isInRange(e,t))return!0;return!1}getRanges(){return this.ranges}clear(){this.ranges=[],this.negativeRanges=[],this.allSelected=!1}hasSelection(){return!!this.ranges.length}selectAll(){this.allSelected=!0}addSelection(e){this.addRange(e)}removeSelection(e){if(this.selectionType==="none")return;let t=e;this.selectionType==="row"?t=A.singleRow(e.r1):this.selectionType==="column"&&(t=A.singleColumn(e.c1)),this.negativeRanges.push(t)}togglePoint(e,t){this.getSelectionCount(e,t)>0?this.removeSelection(A.singleCell(e,t)):this.addSelection(A.singleCell(e,t))}addRange(e){this.selectionType!=="none"&&(this.allSelected=!1,this.selectionMode==="single"&&(this.ranges=[]),this.selectionType==="row"?(e.c1=0,e.c2=Number.MAX_SAFE_INTEGER):this.selectionType==="column"?(e.r1=0,e.r2=Number.MAX_SAFE_INTEGER):this.selectionType==="cell"?(e.r2=e.r1,e.c2=e.c1):this.selectionType,this.ranges.push(e))}}class He{constructor(e="none"){this.selectionType=e,this.rowIndex=-1,this.columnIndex=-1,this.changed=!1}clearChanged(){this.changed=!1}hasChanged(){return this.changed}clear(){this.rowIndex=-1,this.columnIndex=-1}setFocus(e,t){(this.rowIndex!==e||this.columnIndex!==t)&&(this.rowIndex=e,this.columnIndex=t,this.changed=!0)}hasFocus(e,t){return this.rowIndex===e&&this.columnIndex===t}getFocus(){return[this.rowIndex,this.columnIndex]}}const yt=new Pe,vt=new He("cell");class q{constructor(){this.overflowX="auto",this.overflowY="auto",this.horizontalBorderVisible=!0,this.verticalBorderVisible=!0,this.footerSeparatorBorderVisible=!0,this.headerSeparatorBorderVisible=!0,this.fixedEastSeparatorBorderVisible=!0,this.fixedWestSeparatorBorderVisible=!0,this.tableTopBorderVisible=!0,this.tableBottomBorderVisible=!0,this.hoverRowVisible=!0,this.hoverColumnVisible=!0,this.columnsResizable=!0,this.columnsDraggable=!0,this.columnResizeHandleWidthInPx=4,this.defaultRowHeights={header:34,body:34,footer:34},this.footerVerticalSeparator=!1,this.headerToggleExpandCollapseIcons=!1,this.headerVerticalSeparator=!1,this.treeOptions=new J,this.showCheckboxWihoutExtraColumn=!1,this.externalFilterFunction=void 0,this.sortedOptions=new Q,this.sortOrder=["asc","desc"],this.getEditRenderer=(e,t)=>new Le,this.getSelectionModel=()=>yt,this.getFocusModel=()=>vt}}class H{static createTableModel(e){var t,o,i,s,r,l,n,h,d,u,b,S,f,w;if(e.defaultRowHeights===void 0)if((t=e.tableOptions)!=null&&t.defaultRowHeights)e.defaultRowHeights=e.tableOptions.defaultRowHeights;else{if(e.defaultRowHeights=new B,e.headerAreaModel&&"defaultRowHeight"in e.headerAreaModel){const g=e.headerAreaModel.defaultRowHeight;g>-1&&(e.defaultRowHeights.header=g)}if(e.bodyAreaModel&&"defaultRowHeight"in e.bodyAreaModel){const g=e.bodyAreaModel.defaultRowHeight;g>-1&&(e.defaultRowHeights.body=g)}if(e.footerAreaModel&&"defaultRowHeight"in e.footerAreaModel){const g=e.footerAreaModel.defaultRowHeight;g>-1&&(e.defaultRowHeights.footer=g)}}if(e.columnDefs===void 0&&((o=e.properties)!=null&&o.length?e.columnDefs=e.properties.map(g=>new W(g,g.toUpperCase(),oe)):(i=e.rows)!=null&&i.length?e.columnDefs=Object.keys(e.rows[0]).map(g=>new W(g,g.toUpperCase(),oe)):e.columnDefs=[]),e.columnCount===void 0&&((s=e.columnDefs)!=null&&s.length?e.columnCount=e.columnDefs.length:(r=e.headerData)!=null&&r.length?e.columnCount=e.headerData[0].length:(l=e.columnSizes)!=null&&l.length?e.columnCount=(n=e.columnSizes)==null?void 0:n.length:console.warn('Property "columnCount" is missing and cannot be derived from other properties.')),e.headerAreaModel||((h=e.headerData)!=null&&h.length?e.headerAreaModel=new F("header",e.headerData,e.defaultRowHeights.header,e.columnDefs):(d=e.columnDefs)!=null&&d.length?e.headerAreaModel=new F("header",[e.columnDefs.map(g=>g.headerLabel)],e.defaultRowHeights.header,e.columnDefs):e.headerAreaModel=new $("header")),e.footerAreaModel||((u=e.footerData)!=null&&u.length?e.footerAreaModel=new F("footer",e.footerData,e.defaultRowHeights.footer,e.columnDefs):e.footerAreaModel=new $("footer")),!e.bodyAreaModel)if(e.rows)if((b=e.rows)!=null&&b.length&&e.rows[0]instanceof O){const g=e.rows;e.bodyAreaModel=new V("body",g,e.defaultRowHeights.body,e.columnDefs),(e.columnDefs[0].property==="CheckboxColumn"||(S=e.tableOptions)!=null&&S.showCheckboxWihoutExtraColumn)&&(e.bodyAreaModel.rowSelectionModel=new ie(g))}else e.bodyAreaModel=new le("body",e.rows,e.columnDefs,e.defaultRowHeights.body);else e.bodyData?e.bodyAreaModel=new F("body",e.bodyData,e.defaultRowHeights.body):e.bodyAreaModel=new $("body");return e.fixedLeftColumnCount===void 0&&(e.fixedLeftColumnCount=0),e.fixedRightColumnCount===void 0&&(e.fixedRightColumnCount=0),e.rowCheckboxVisible===void 0&&(e.rowCheckboxVisible=!1),e.overridingColumnWidth===void 0&&(e.overridingColumnWidth=-1),!e.getSelectionModel&&((f=e.tableOptions)!=null&&f.getSelectionModel)&&(e.getSelectionModel=(w=e.tableOptions)==null?void 0:w.getSelectionModel),new K(e.headerAreaModel,e.bodyAreaModel,e.footerAreaModel,e.fixedLeftColumnCount,e.fixedRightColumnCount,e.rowCheckboxVisible,e.defaultRowHeights,e.columnDefs,e.columnSizes,e.overridingColumnWidth,e.columnCount,e.parentSize,e.getSelectionModel)}static buildByTypedRowsParam(e){return H.buildByTypedRows(e.rows??[],e.columnDefs,e.tableOptions??new q,e.fixedLeftColumnCount??0,e.fixedRightColumnCount??0)}static buildByTypedRows(e,t,o=new q,i=0,s=0){const r=o.defaultRowHeights,l=t[0].property==="CheckboxColumn";if(e!=null&&e.length&&e[0]instanceof O){const n=e,h=new V("body",n,r.body,t);return(l||o.showCheckboxWihoutExtraColumn)&&(h.rowSelectionModel=new ie(n)),H.createByAreaModelsParam({headerAreaModel:new F("header",[t.map(d=>d.headerLabel)],r.header),bodyAreaModel:h,footerAreaModel:new F("footer",[],r.footer),columnDefs:t,fixedLeftColumnCount:i,fixedRightColumnCount:s,defaultRowHeights:o.defaultRowHeights,rowCheckboxVisible:!1,columnSizes:[],columnCount:t.length,overridingColumnWidth:-1})}return H.createByObjectArrayParam({rows:e,columnDefs:t,fixedLeftColumnCount:i,fixedRightColumnCount:s,defaultRowHeights:o.defaultRowHeights})}static createByObjectArrayParam(e){const t=e.rowCheckboxVisible!==void 0?e.rowCheckboxVisible:!1;return H.createByObjectArray(e.rows,e.header??[],e.footer??[],e.fixedLeftColumnCount??0,e.fixedRightColumnCount??0,t,e.defaultRowHeights??new B,e.columnDefs??[],e.columnSizes??[])}static createByAreaModels(e=new $,t,o=new $,i=0,s=0,r=!1,l=new B,n,h=[],d=-1,u){return new K(e,t,o,i,s,r,l,n,h,d,u)}static createByAreaModelsParam(e){return H.createByAreaModels(e.headerAreaModel??new $,e.bodyAreaModel,e.footerAreaModel??new $,e.fixedLeftColumnCount??0,e.fixedRightColumnCount??0,e.rowCheckboxVisible===void 0?!1:e.rowCheckboxVisible,e.defaultRowHeights,e.columnDefs??[],e.columnSizes??[],e.overridingColumnWidth??-1,e.columnCount??0)}static createByObjectArray(e,t=[],o=[],i=0,s=0,r=!1,l=new B,n,h=[]){let d;t!=null&&t.length?d=new F("header",t,l.header,n):n!=null&&n.length?d=new F("header",[n.map(S=>S.headerLabel)],l.header,n):d=new $;const u=o?new F("footer",o,l.footer,n):new $,b=new le("body",e,n,l.body);return new K(d,b,u,i,s,r,l,n,h)}}const Rt=["START_EDITING","TOGGLE_SELECTION","SELECT_ALL","DESELECT_ALL","NAVIGATE_LEFT","NAVIGATE_RIGHT","NAVIGATE_UP","NAVIGATE_DOWN"];class At{constructor(e,t){this.tableModel=e,this.tableOptions=t}}class Ve{constructor(e,t,o,i,s,r,l){this.emmitDataKey=e,this.emmitCancelKey=t,this.queryId=o,this.filter=i,this.sorting=s,this.startIndex=r,this.endIndex=l}}class Mt extends Ve{constructor(e,t,o,i,s,r,l,n){super(e,t,o,i,s,r,l),this.rows=n}}class Be{constructor(e,t){this.value=e,this.label=t}}class Et{constructor(e,t){this.index=e,this.px=t}}const It={body:["ge-table-text-align-left"]},kt={body:["ge-table-text-align-center"]},Tt={body:["ge-table-text-align-right"]},_t={header:["ge-table-text-align-left"],body:["ge-table-text-align-left"],footer:["ge-table-text-align-left"]},Dt={header:["ge-table-text-align-center"],body:["ge-table-text-align-center"],footer:["ge-table-text-align-center"]},Ft={header:["ge-table-text-align-right"],body:["ge-table-text-align-right"],footer:["ge-table-text-align-right"]};class $t{static body(e){return new T(void 0,e,void 0)}}class Ot{constructor(e="down",t){this.status=e,this.originalEvent=t}}class Lt{constructor(e,t,o,i){this.area=e,this.rowIndex=t,this.columnIndex=o,this.value=i}}class Pt{constructor(){this.autoRestoreSortingState=!1,this.autoRestoreCollapsedExpandedState=!1,this.autoRestoreScrollPosition=!1,this.autoRestoreCheckedState=!1,this.autoRestoreSelectedState=!1,this.getStorageKeyFn=void 0,this.isSame=(e,t,o)=>{if(e&&t&&o.getRowId){const i=o.getRowId(e),s=o.getRowId(t);return i===s}return!1},this.getRowId=e=>{if(e){for(const t of["id","uuid"]){const o=e[t];if(o!=null)return o}try{return JSON.stringify(e)}catch(t){console.error(t)}}return console.warn('One of following options set to true without a valid "getRowId()": autoRestoreExpandedState, autoRestoreCheckedState.'),-1}}}class We{constructor(e,t,o,i=!1,s="normal",r=void 0){this.data=e,this.property=t,this.toggle=o,this.closed=i,this.visibility=s,this.children=r,this.impl="CellGroup"}}class Ge extends We{constructor(e,t=0,o=0,i){super(e.data,e.property,e.toggle,e.closed,e.visibility,e.children),this.rowIndex=t,this.childIndex=o,this.parent=i,this.impl="CellGroupExt",this.children=void 0,this.leftNeighbour=void 0,this.rightNeighbour=void 0}ownColumn(){return!!this.property}toString(){return this.data+""}getColumnIndex(){return this.parent?this.parent.getColumnIndex()+this.childIndex:(this.leftNeighbour,0)}isVisible(){return this.parent?this.visibility==="always"?this.parent.isVisible():this.visibility==="normal"||!this.visibility?this.parent.isVisible()&&!this.parent.closed:this.visibility==="inverted"?this.parent.isVisible()&&this.parent.closed:!0:!0}claimsSpace(){return this.isVisible()&&(this.ownColumn()||this.closed)}getColumnCount(e=this,t=0){var o;if(e!=null&&e.claimsSpace()&&t++,(o=e==null?void 0:e.children)!=null&&o.length)for(const i of e.children)t=this.getColumnCount(i,t);return t}getRowSpan(e=this,t){return e!=null&&e.claimsSpace()?t-this.getParentCount(e,0):1}getParentCount(e=this,t=0){return e.parent&&(t=t+1+this.getParentCount(e.parent,t)),t}log(e){const t=" ".substring(0,2*this.rowIndex),o=`${this.getColumnIndex()}`,i=`${this.getColumnCount(this)}`,s=`${this.getRowSpan(this,e)}`,r=`${this.getParentCount(this)}`;if(console.info(`${t+this.data}
|
|
258
|
+
childIndex:${this.childIndex}
|
|
259
|
+
row:${this.rowIndex}
|
|
260
|
+
col:${o}
|
|
261
|
+
vis:${this.visibility}
|
|
262
|
+
closed:${this.closed}
|
|
263
|
+
isVisible:${this.isVisible()}
|
|
264
|
+
ownColumn:${this.ownColumn()}
|
|
265
|
+
claimsSpace:${this.claimsSpace()}
|
|
266
|
+
colCount:${i}
|
|
267
|
+
rowSpan:${s}
|
|
268
|
+
pc:${r}`.replace(/[ \n]+/g," ")),this.children)for(const l of this.children)l.log(e)}}class k{static buildColumnDefs(e,t=[]){for(const o of e)o.property&&t.push(W.create({property:o.property,headerLabel:o.data?o.data:o.property,isVisible:()=>typeof o.isVisible=="function"?o.isVisible():!0})),o.children&&k.buildColumnDefs(o.children,t);return t}static buildGroupExts(e,t=[],o=0,i){let s;for(let r=0;r<e.length;r++){const l=e[r],n=new Ge(l,o,r,i);s&&(n.leftNeighbour=s,s.rightNeighbour=n),t.push(n),l.children&&(n.children=k.buildGroupExts(l.children,[],o+1,n)),s=n}return t}static flattenGroupExts(e,t=[]){for(const o of e)t.push(o),o.children&&k.flattenGroupExts(o.children,t);return t}static buildArrayOfArrays(e,t){var s;let o=-1,i=99999;for(const r of e){if(r.rowIndex<=i){o++;for(let l=0;l<t.length;l++)t[l][o]=null}if(t[r.rowIndex][o]=r,i=r.rowIndex,r.ownColumn()&&((s=r.children)!=null&&s.length)){for(let l=r.rowIndex+1;l<t.length;l++)t[l][o]=void 0;o++;for(let l=0;l<t.length;l++)t[l][o]=null}}return t}static iterateThrowColumns(e=[],t){var o;for(const i of t)e.push(i.data+" rowIndex:"+i.rowIndex),(o=i.children)!=null&&o.length&&k.iterateThrowColumns(e,i.children)}}class Ht{constructor(){this.areaIdent="body",this.rowSelectionModel=void 0}changeColumnOrder(e,t){}doSort(e){return!1}externalFilterChanged(e){}getCellRenderer(e,t){}getColspanAt(e,t){return 0}getCustomClassesAt(e,t){return[]}getCustomStyleAt(e,t){}getMaxColspan(){return 0}getMaxRowspan(){return 0}getRowByIndex(e){}getRowCount(){return 0}getRowHeight(e){return 0}getRowspanAt(e,t){return 0}getTooltipAt(e,t){}getValueAt(e,t){}getYPosByRowIndex(e){return 0}init(){}isEditable(e,t){return!1}isFilterable(){return!1}isRowCheckable(e){return!1}isRowChecked(e){}isSelectable(e,t){return!1}setRowChecked(e,t){}setValue(e,t,o){return!1}}class ze{render(e,t,o,i,s,r,l){const n=r!=null&&r.data?r.data:"";e.innerHTML=`${n}`}}class Vt{constructor(e="header",t,o=[],i){var s;this.areaIdent=e,this.groups=t,this.columnDefs=o,this.defaultRowHeight=i,this.gammaCells=!0,this.groupExts=[],this.cellGroupExtCellRenderer=new ze,this.groupExts=k.buildGroupExts(t),console.info(this.groupExts),console.info(this.getAllLeafs()),console.info(this.getMaxRowCount());for(const r of this.groupExts)r.log(this.getMaxRowCount());this.arr=this.buildArray(),!((s=this.columnDefs)!=null&&s.length)&&e==="header"&&(this.columnDefs=k.buildColumnDefs(t)),console.info("this.columnDefs",this.columnDefs),console.info("this.arr",this.arr)}getAllLeafs(){return k.flattenGroupExts(this.groupExts).filter(t=>!t.children)}getMaxRowCount(){const e=this.getAllLeafs();return e!=null&&e.length?1+Math.max(...e.map(t=>t.getParentCount(t))):0}buildArray(){console.info("");let e=k.flattenGroupExts(this.groupExts);const t=e.length,o=1+Math.max(...e.map(l=>l.rowIndex));console.info("max row/col:",o+"/"+t);const i=[];k.iterateThrowColumns(i,this.groupExts),console.info(i);const s=Array.from(Array(o).keys()).map(l=>[]);let r=k.buildArrayOfArrays(e,s);return console.table(r),r}changeColumnOrder(e,t){}doSort(e){return!1}externalFilterChanged(e){}getCellRenderer(e,t){return this.cellGroupExtCellRenderer}getColspanAt(e,t){const o=this.getValueAt(e,t);return o?o.getColumnCount():0}getCustomClassesAt(e,t){return[]}getCustomStyleAt(e,t){}getMaxColspan(){return 12}getMaxRowspan(){return 12}getRowByIndex(e){}getRowCount(){return this.arr?this.arr.length:0}getRowspanAt(e,t){const o=this.getValueAt(e,t);if(o){const i=this.getRowCount();return o.getRowSpan(o,i)}return 0}getTooltipAt(e,t){return""}getValueAt(e,t){return this.arr[e][t]}getYPosByRowIndex(e){return 0}init(){}getRowHeight(e){return this.defaultRowHeight}isEditable(e,t){return!1}isFilterable(){return!1}isRowCheckable(e){return!1}isRowChecked(e){}isSelectable(e,t){return!1}setRowChecked(e,t){}setValue(e,t,o){return!1}}class Ne{setStyle(e,t,o){return e.style[t]=o,e}appendText(e,t){const o=this.createText(t);return this.appendChild(e,o),o}addClass(e,t){return t.includes(" ")?t.split(" ").forEach(o=>e.classList.add(o)):e.classList.add(t),e}appendChild(e,t){e.appendChild(t)}createElement(e){return document.createElement(e)}createText(e){return document.createTextNode(e)}setAttribute(e,t,o){e.setAttribute(t,o)}}class Bt{filterPredict(e,t,o=this.objectToString.bind(this)){if(!e)return!1;if(!t)return!0;t=t.toLowerCase();const i="+",s="-",r=t.toLowerCase().split(" ").filter(u=>u!==i&&u!==s&&u!==""),l=r.filter(u=>!u.startsWith(i)&&!u.startsWith(s)),n=r.filter(u=>u.startsWith(i)).map(u=>u.replace(/\+/g,"")),h=r.filter(u=>u.startsWith(s)).map(u=>u.replace(/-/g,""));let d=!l.length;for(let u=0;u<l.length;u++)(d||o(e).includes(l[u]))&&(d=!0);if(!d)return!1;for(let u=0;u<n.length;u++)if(!o(e).includes(n[u]))return!1;for(let u=0;u<h.length;u++)if(o(e).includes(h[u]))return!1;return!0}filterRows(e,t,o=i=>JSON.stringify(i).toLowerCase()){if(!e)return[];if(!t)return[...e];t=t.toLowerCase();const i="+",s="-",r=t.toLowerCase().split(" ").filter(d=>d!==i&&d!==s&&d!==""),l=r.filter(d=>!d.startsWith(i)&&!d.startsWith(s)),n=r.filter(d=>d.startsWith(i)).map(d=>d.replace(/\+/g,"")),h=r.filter(d=>d.startsWith(s)).map(d=>d.replace(/-/g,""));return e==null?void 0:e.filter(d=>{let u=!l.length;for(let b=0;b<l.length;b++)(u||o(d).includes(l[b]))&&(u=!0);if(!u)return!1;for(let b=0;b<n.length;b++)if(!o(d).includes(n[b]))return!1;for(let b=0;b<h.length;b++)if(o(d).includes(h[b]))return!1;return!0})}objectToString(e){if(!e)return"";const t=[],o=Object.keys(e);for(let i=0;i<o.length;i++){const s=o[i];t.push(e[s])}return t.join(" ").toLowerCase()}}class Wt{static bodyRenderer(e){return new T(void 0,e,void 0)}}class Gt{constructor(e,t=!0,o=!1){this.property=e,this.skipCheckableCheck=t,this.readonly=o}render(e,t,o,i,s,r,l){if(this.readonly||this.skipCheckableCheck||s.isRowCheckable(t)){l.addClass(e,"ge-table-row-checkbox-div");const n=s.getRowByIndex(t),d=s.getValueByT(n,this.property)===!0?"checked":"",u=this.readonly?" readonly ":"";if(l.addClass(e,"ge-padding-property-checkbox"),e.innerHTML=`
|
|
269
|
+
<input
|
|
270
|
+
type="checkbox"
|
|
271
|
+
data-area="${i}"
|
|
272
|
+
data-row-index="${t}"
|
|
273
|
+
data-col-index="${o}"
|
|
274
|
+
data-property-index="${this.property}"
|
|
275
|
+
data-input-type="checkbox"
|
|
276
|
+
${d}
|
|
277
|
+
${u}
|
|
278
|
+
class="ge-input-checkbox">`,!this.readonly){const b=e.querySelector(".ge-input-checkbox");b&&b.addEventListener("click",(S,f)=>(n[this.property]=!n[this.property],!0))}}}}class zt{render(e,t,o,i,s,r,l){r&&(e.innerText=new Date(r).toISOString())}}class Nt{constructor(){this.formatter=new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit"})}render(e,t,o,i,s,r,l){if(r){let n="";try{n=this.formatter.format(new Date(r))}catch{n=r}e.innerHTML=`
|
|
279
|
+
<div class="ge-table-label-div" data-row-index="${t}" data-col-index="${o}" data-area="${i}" style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
280
|
+
<div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${i}">${n}</div>
|
|
281
|
+
</div>`}}}class jt{render(e,t,o,i,s,r,l){r&&(e.innerText=new Date(r).toLocaleDateString())}}class Xt{render(e,t,o,i,s,r,l){r==="male"||r==="m"?e.innerText="♂":(r==="female"||r==="f")&&(e.innerText="♀")}}class Yt{render(e,t,o,i,s,r,l){r==="true"||r===!0?e.innerHTML='<span class="ge-true-text-color">✅</span>':r==="false"||r===!1?e.innerHTML='<span class="ge-false-text-color">❌</span>':e.innerText=""}}class Kt{render(e,t,o,i,s,r,l){r&&(e.innerText=new Date(r).toISOString().replace(/T/g," ").replace(/\..*/g,""))}}class qt{constructor(e=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){this.min=e,this.max=t}render(e,t,o,i,s,r,l){r&&(e.innerText=r,(typeof r=="string"||isNaN(r)||r<this.min||r>this.max)&&l.addClass(e,"ge-cell-error"))}}class Ut{constructor(e){this.property=e}render(e,t,o,i,s,r,l){l.addClass(e,"ge-star-rating-div");const n=s.getRowByIndex(t),h=+(""+s.getValueByT(n,this.property));if(!isNaN(h)){const d=[];for(let b=0;b<h;b++)d.push("★");const u=d.join(" ");e.innerHTML=`
|
|
282
|
+
<div class="ge-table-label-div" data-row-index="${t}" data-col-index="${o}" data-area="${i}" style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
283
|
+
<div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${i}">${u}</div>
|
|
284
|
+
</div>`}}}class Jt{constructor(e,t=100,o=!1){this.property=e,this.maxValue=t,this.labelVisible=o}render(e,t,o,i,s,r,l){l.addClass(e,"ge-star-rating-div");const n=s.getRowByIndex(t),h=+(""+s.getValueByT(n,this.property));if(!isNaN(h)){const d=h*100/this.maxValue,u=this.labelVisible?Math.round(d)+"%":"";e.innerHTML=`
|
|
285
|
+
<div class="ge-table-label-div"
|
|
286
|
+
data-row-index="${t}"
|
|
287
|
+
data-col-index="${o}"
|
|
288
|
+
data-area="${i}"
|
|
289
|
+
title="${u}"
|
|
290
|
+
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
291
|
+
<div class="ge-table-progress-container"
|
|
292
|
+
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
293
|
+
data-row-index="${t}"
|
|
294
|
+
data-col-index="${o}"
|
|
295
|
+
data-area="${i}">
|
|
296
|
+
<div class="ge-table-progress-bar"
|
|
297
|
+
style="width:${d}%;height:100%;padding:0;margin:0;"
|
|
298
|
+
data-row-index="${t}"
|
|
299
|
+
data-col-index="${o}"
|
|
300
|
+
data-area="${i}">
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
</div>`}}}const Qt=function(c,e,t){return c?Number(c):""};class ne{constructor(e){this.options=e}static create(e){return new ne(e.map(t=>new Be(t,t)))}render(e,t,o,i,s,r,l){if(s.isEditable(t,o)){l.addClass(e,"ge-table-row-select-div");const n=s.getValueAt(t,o);let h=[];for(let u of this.options){const b=u.value===n?" selected ":"";h.push(`<option value="${u.value}" ${b}>${u.label}</option>`)}const d=h.join("");e.innerHTML=`
|
|
304
|
+
<select
|
|
305
|
+
type="text"
|
|
306
|
+
value="${n}"
|
|
307
|
+
autofocus
|
|
308
|
+
data-listen="change"
|
|
309
|
+
data-area="${i}"
|
|
310
|
+
data-row-index="${t}"
|
|
311
|
+
data-col-index="${o}"
|
|
312
|
+
data-input-type="text"
|
|
313
|
+
style="width:100%;height:100%;border:0;padding:0 0 0 8px;"
|
|
314
|
+
class="ge-table-cell-editor-select">${d}</select>`}}}class Zt{constructor(e,t,o){this.r=e,this.g=t,this.b=o}}class ae{constructor(e,t,o,i){this.minValue=e,this.minColor=t,this.maxValue=o,this.maxColor=i}}class G{static normalize(e,t,o,i=0,s=1){return(e-t)/(o-t)*(s-i)+i}static getTwoColorGradientRGB(e,t){const o=G.normalize(e,t.minValue,t.maxValue,0,1),i=t.maxColor.r-t.minColor.r,s=t.maxColor.g-t.minColor.g,r=t.maxColor.b-t.minColor.b,l=i*o+t.minColor.r,n=s*o+t.minColor.g,h=r*o+t.minColor.b;return`rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(h)})`}static getThreeColorGradientRGB(e,t){return e<t.middleValue?G.getTwoColorGradientRGB(e,new ae(t.minValue,t.minColor,t.middleValue,t.middleColor)):e>t.middleValue?G.getTwoColorGradientRGB(e,new ae(t.middleValue,t.middleColor,t.maxValue,t.maxColor)):`rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`}}class eo{constructor(e,t,o,i,s,r){this.minValue=e,this.minColor=t,this.middleValue=o,this.middleColor=i,this.maxValue=s,this.maxColor=r}}const to=I.defineComponent({inheritAttrs:!1,props:{tableModel:{required:!0},tableOptions:{required:!1,default:new q},debounceMouseClickDelay:{required:!1,default:150}},emits:["tableReady","mouseClicked","mouseDragging","checkboxChanged","contextmenu","modelChanged","mouseDraggingEnd","mouseMoved"],setup(c,{emit:e}){const t=I.ref(null),o=i=>{const s={onCheckboxChanged:l=>{e("checkboxChanged",l)},onContextmenu:l=>{e("contextmenu",l)},onModelChanged:l=>{e("modelChanged",l)},onMouseClicked:l=>{e("mouseClicked",l)},onMouseDragging:l=>{e("mouseDragging",l)},onMouseDraggingEnd:l=>{e("mouseDraggingEnd",l)},onMouseMoved:l=>{e("mouseMoved",l)}},r=new _e(i,c.tableModel,new Ne,c.tableOptions,s);r.firstInit(),e("tableReady",r.getApi())};return I.onMounted(()=>{t.value&&o(t.value)}),{root:t}}}),oo=(c,e)=>{const t=c.__vccOpts||c;for(const[o,i]of e)t[o]=i;return t},io={ref:"root",class:"container-div",style:{width:"100%",height:"100%","background-color":"transparent",padding:"0",margin:"0"}};function so(c,e,t,o,i,s){return I.openBlock(),I.createElementBlock("div",io,null,512)}const ro=oo(to,[["render",so]]);class lo{constructor(e,t){this.component=e,this.appContext=t}render(e,t,o,i,s,r,l){return this.mount(this.component,{cellDiv:e,rowIndex:t,columnIndex:o,areaIdent:i,areaModel:s,cellValue:r},this.appContext,e)}mount(e,t,o,i){let s=I.createVNode(e,t);return s.appContext=o,I.render(s,i),()=>{i&&I.render(null,i)}}}a.AbstractAreaModel=j,a.AreaMapFactory=$t,a.AreaModel=Ht,a.AreaModelArrayOfArrays=F,a.AreaModelCellGroups=Vt,a.AreaModelHidden=$,a.AreaModelObjectArrayWithColumndefs=le,a.AreaModelObjectyArray=Oe,a.AreaModelTree=V,a.AreaObjectMap=T,a.AutoRestoreOptions=Pt,a.CellGroup=We,a.CellGroupExt=Ge,a.CellGroupExtCellRenderer=ze,a.CellRange=A,a.CellgroupFactory=k,a.CheckboxBooleanPropertyCellRenderer=Gt,a.CheckboxCellRenderer=re,a.CheckboxColumnDef=Fe,a.CheckboxModel=$e,a.ChunkData=Mt,a.ColAndRowspanModel=xe,a.CollapsedExpandedData=me,a.ColorRgb=Zt,a.ColumnDef=W,a.ComponentRendererWrapper=lo,a.ConvenienceDomService=he,a.CssVars=ee,a.DateToIntlDDMMYYYYCellRenderer=Nt,a.DateToIsoCellRenderer=zt,a.DateToLocaleDateCellRenderer=jt,a.DateToTecCellRenderer=Kt,a.DefaultRowHeights=B,a.EleScope=Ce,a.EventAdapter=Te,a.FalseFn=te,a.FocusModel=He,a.GeCellIndices=Ae,a.GeCssColorUtil=G,a.GeFilterService=Bt,a.GeKeyEvent=Ot,a.GeModelChangeEvent=X,a.GeMouseEvent=z,a.GeoData=D,a.GuiexpertTable=ro,a.Icon=P,a.IndexAndPx=Et,a.InputCellRenderer=Le,a.InputHandler=Re,a.MaleFemaleToIconCellRenderer=Xt,a.MouseHandler=ue,a.MouseTargetData=ce,a.NumberCellRenderer=qt,a.OsxShortcutActionIdMapping=Ie,a.Padding=se,a.ProgressBarCellRenderer=Jt,a.RenderScope=ye,a.Renderer=Wt,a.RequestChunk=Ve,a.SelectCellRenderer=ne,a.SelectionModel=Pe,a.SelectionService=Me,a.ShortcutService=ke,a.SimpleDomService=Ne,a.Size=p,a.SortItem=ve,a.SortedOptions=Q,a.StarRatingCellRenderer=Ut,a.StoreStateCollapsedExpandService=Se,a.StoreStateScrollPosService=pe,a.StoreStateSortingService=we,a.TableApi=ge,a.TableCellUpdateEvent=Lt,a.TableFactory=H,a.TableModel=K,a.TableModelAndOptions=At,a.TableOptions=q,a.TableScope=_e,a.ThreeColorGradientArg=eo,a.TreeCheckboxModel=ie,a.TreeFactory=Y,a.TreeOptions=J,a.TreeRow=O,a.TreeRowService=be,a.TrueFalseCellRenderer=Yt,a.TrueFn=De,a.TwoColorGradientArg=ae,a.ValueLabel=Be,a.WindowsShortcutActionIdMapping=Ee,a.actionIds=Rt,a.allCenter=Dt,a.allLeft=_t,a.allRight=Ft,a.bodyCenter=kt,a.bodyLeft=It,a.bodyRight=Tt,a.editInputPipeForNumber=Qt,a.getAreaIdentByString=N,a.px0=xt,a.px10=Ct,a.px100=ct,a.px110=ht,a.px120=dt,a.px130=at,a.px140=nt,a.px150=lt,a.px160=rt,a.px170=st,a.px180=it,a.px190=ot,a.px20=wt,a.px200=oe,a.px210=tt,a.px220=et,a.px230=Ze,a.px240=Qe,a.px250=Je,a.px260=Ue,a.px270=qe,a.px280=Ke,a.px290=Ye,a.px30=St,a.px300=Xe,a.px40=mt,a.px50=pt,a.px60=ft,a.px70=bt,a.px80=gt,a.px90=ut,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
|