e-virt-table 1.3.4 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(":root{--evt-header-font: 12px normal Arial;--evt-body-font: 12px normal Arial;--evt-color-white: #fff;--evt-color-black: #000000;--evt-color-primary: rgb(82, 146, 247);--evt-text-color-primary: #333;--evt-text-color-regular: #666;--evt-text-color-secondary: #999;--evt-box-shadow: 0 2px 12px 0 #0000001a;--evt-editor-bg-color: #fff;--evt-editor-text-color: #333;--evt-border-color: #e1e6eb;--evt-stripe-color: #fafafa;--evt-placeholder-color: #cdd0dc;--evt-header-bg-color: #f8faff;--evt-body-bg-color: #fff;--evt-header-text-color: #1d2129;--evt-body-text-color: #4e5969;--evt-footer-text-color: #4e5969;--evt-loading-icon-color: #4e5969;--evt-expand-icon-color: #4e5969;--evt-shrink-icon-color: #4e5969;--evt-error-tip-icon-color: red;--evt-required-color: #f56c6c;--evt-cell-hover-icon-bg-color: #fff;--evt-cell-hover-icon-border-color: #dde0ea;--evt-scroller-color: #dee0e3;--evt-scroller-track-color: #fff;--evt-scroller-focus-color: #bbbec4;--evt-select-border-color: var(--evt-color-primary);--evt-select-area-color: rgba(82, 146, 247, .1);--evt-select-row-col-bg-color: rgba(82, 146, 247, .1);--evt-autofill-point-border-color: #fff;--evt-edit-bg-color: #fcf6ed;--evt-checkbox-color: var(--evt-color-primary);--evt-checkbox-uncheck-color: #dde0ea;--evt-checkbox-disabled-color: #f1f2f4;--evt-checkbox-check-disabled-color: #dde0ea;--evt-icon-edit-color: #4e5969;--evt-icon-select-color: #4e5969;--evt-readonly-color: #fff;--evt-readonly-text-color: var(--evt-body-text-color);--evt-error-tip-color: #ed3f14;--evt-footer-bg-color: #fafafa;--evt-highlight-hover-row-color: rgba(186, 203, 231, .1);--evt-highlight-selected-row-color: rgba(82, 146, 247, .1);--evt-tooltip-bg-color: #303133;--evt-tooltip-text-color: #fff;--evt-resize-row-line-color: #e1e6eb;--evt-resize-column-text-color: #fff;--evt-resize-column-text-bg-color: var(--evt-color-primary);--evt-resize-column-line-color: #e1e6eb;--evt-tree-line-color: #e1e6eb;--evt-sort-icon-color: var(--evt-color-primary);--evt-drag-tip-bg-color: rgba(82, 146, 247, .1);--evt-drag-tip-line-color: var(--evt-color-primary);--evt-context-menu-min-width: 150px;--evt-context-menu-max-width: 220px;--evt-context-menu-item-padding: 8px 12px;--evt-context-menu-bg-color: #fff;--evt-context-menu-text-color: #333;--evt-context-menu-item-hover-text-color: var(--evt-color-primary);--evt-context-menu-item-hover-bg-color: #f5f5f5;--evt-context-menu-text-size: 13px}.dark{--evt-border-color: #363637;--evt-header-bg-color: #141414;--evt-body-bg-color: #141414;--evt-header-text-color: #a3a6ad;--evt-body-text-color: #cfd3dc;--evt-readonly-text-color: #cfd3dc;--evt-footer-text-color: #cfd3dc;--evt-scroller-color: #414243;--evt-scroller-track-color: #141414;--evt-scroller-focus-color: #a3a6ad;--evt-edit-bg-color: #141414;--evt-footer-bg-color: #262727;--evt-autofill-point-border-color: #fff;--evt-editor-bg-color: #434343;--evt-editor-text-color: #cfd3dc;--evt-context-menu-bg-color: #141414;--evt-context-menu-text-color: #cfd3dc;--evt-context-menu-item-hover-text-color: var(--evt-color-primary);--evt-context-menu-item-hover-bg-color: #414243}.e-virt-table-container{position:relative;outline:none}.e-virt-table-stage{position:relative;overflow:hidden;outline:none;box-sizing:border-box;z-index:10;border-radius:8px;border:1px solid var(--evt-border-color)}.e-virt-table-canvas{position:absolute;left:0;top:0;box-sizing:border-box;border:none;outline:none;z-index:10}.e-virt-table-editor{position:absolute;top:-10000px;left:-10000px;text-align:left;height:auto;line-height:0;z-index:100;overflow:hidden;background-color:var(--evt-editor-bg-color);border:2px solid var(--evt-color-primary);box-sizing:border-box;box-shadow:var(--evt-box-shadow);display:flex;align-items:center}.e-virt-table-overlayer{position:absolute;left:0;top:0;overflow:hidden;z-index:100;pointer-events:none}.e-virt-table-editor-textarea{width:100%;box-sizing:border-box;outline:none;font-weight:400;padding:8px;font-size:12px;color:inherit;white-space:pre-wrap;word-wrap:break-word;word-break:break-all;line-height:1.5;margin:0;border:none;vertical-align:middle;background:var(--evt-editor-bg-color);color:var(--evt-editor-text-color);overflow-y:auto;resize:none}.e-virt-table-context-menu{position:absolute;font-size:14px;color:var(--evt-text-color-regular);background-color:var(--evt-color-white);border-radius:4px;border:1px solid #e4e7ed;box-shadow:var(--evt-box-shadow);width:fit-content;padding:6px 0;z-index:9999;left:-99999px;top:-99999px}.e-virt-table-context-menu-item{cursor:pointer;padding:6px 24px;color:var(--evt-text-color-regular)}.e-virt-table-context-menu-item:hover{color:var(--evt-color-primary);background-color:#f5f7fa}.e-virt-table-loading{display:none;position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;z-index:2000;background-color:#fff6;display:flex;align-items:center;justify-content:center}.e-virt-table-loading-spinner{opacity:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.e-virt-table-loading-spinner svg{color:var(--evt-text-color-regular);animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.e-virt-table-loading-text{margin:0;font-size:12px;color:var(--evt-text-color-regular)}.e-virt-table-main-menu,.e-virt-table-submenu{position:absolute;background:var(--evt-context-menu-bg-color);border-radius:4px;box-shadow:0 2px 8px #0000001a;min-width:var(--evt-context-menu-min-width);max-width:var(--evt-context-menu-max-width);color:var(--evt-text-color-primary)}.e-virt-table-main-menu{border:1px solid var(--evt-border-color);z-index:3000;left:-99999px;top:-99999px;display:none;position:fixed;background-color:var(--evt-body-bg-color)}.e-virt-table-submenu{border:1px solid var(--evt-border-color);z-index:1000;max-height:350px;overflow-y:auto;opacity:0;visibility:hidden;transform:translate(-10px);transition:opacity .2s,visibility .2s,transform .2s;-ms-overflow-style:none;scrollbar-width:none}.e-virt-table-submenu::-webkit-scrollbar{display:none}.e-virt-table-submenu.show{opacity:1;visibility:visible;transform:translate(0)}.e-virt-table-submenu:not(.show){transition:none}.e-virt-table-menu-item,.e-virt-table-submenu-item{position:relative;-webkit-user-select:none;user-select:none;padding:var(--evt-context-menu-item-padding);cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background .2s,color .2s;color:var(--evt-context-menu-text-color);font-size:var(--evt-context-menu-text-size)}.e-virt-table-menu-item:last-child,.e-virt-table-submenu-item:last-child{border-bottom:none}.e-virt-table-menu-item:has(.menu-item-icon){padding-left:8px}.menu-item-content{display:flex;align-items:center;flex:1;min-width:0}.menu-item-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:8px;flex-shrink:0}.menu-item-icon svg{width:100%;height:100%;fill:currentColor}.menu-item-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.e-virt-table-menu-arrow{display:inline-flex;align-items:center;justify-content:center;color:var(--evt-text-color-regular);transition:color .2s}.e-virt-table-menu-arrow svg{width:20px;height:20px;fill:currentColor}.e-virt-table-submenu-item:hover,.e-virt-table-menu-item:hover,.e-virt-table-menu-item.active{background:var(--evt-context-menu-item-hover-bg-color);color:var(--evt-context-menu-item-hover-text-color)}.e-virt-table-menu-item.disabled,.e-virt-table-submenu-item.disabled{cursor:not-allowed}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- var de = Object.defineProperty;
3
- var fe = (h, t, e) => t in h ? de(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
4
- var n = (h, t, e) => fe(h, typeof t != "symbol" ? t + "" : t, e);
5
- class ue {
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(":root{--evt-header-font: 12px normal Arial;--evt-body-font: 12px normal Arial;--evt-color-white: #fff;--evt-color-black: #000000;--evt-color-primary: rgb(82, 146, 247);--evt-text-color-primary: #333;--evt-text-color-regular: #666;--evt-text-color-secondary: #999;--evt-box-shadow: 0 2px 12px 0 #0000001a;--evt-editor-bg-color: #fff;--evt-editor-text-color: #333;--evt-border-color: #e1e6eb;--evt-stripe-color: #fafafa;--evt-placeholder-color: #cdd0dc;--evt-header-bg-color: #f8faff;--evt-body-bg-color: #fff;--evt-header-text-color: #1d2129;--evt-body-text-color: #4e5969;--evt-footer-text-color: #4e5969;--evt-loading-icon-color: #4e5969;--evt-expand-icon-color: #4e5969;--evt-shrink-icon-color: #4e5969;--evt-error-tip-icon-color: red;--evt-required-color: #f56c6c;--evt-cell-hover-icon-bg-color: #fff;--evt-cell-hover-icon-border-color: #dde0ea;--evt-scroller-color: #dee0e3;--evt-scroller-track-color: #fff;--evt-scroller-focus-color: #bbbec4;--evt-select-border-color: var(--evt-color-primary);--evt-select-area-color: rgba(82, 146, 247, .1);--evt-select-row-col-bg-color: rgba(82, 146, 247, .1);--evt-autofill-point-border-color: #fff;--evt-edit-bg-color: #fcf6ed;--evt-checkbox-color: var(--evt-color-primary);--evt-checkbox-uncheck-color: #dde0ea;--evt-checkbox-disabled-color: #f1f2f4;--evt-checkbox-check-disabled-color: #dde0ea;--evt-icon-edit-color: #4e5969;--evt-icon-select-color: #4e5969;--evt-readonly-color: #fff;--evt-readonly-text-color: var(--evt-body-text-color);--evt-error-tip-color: #ed3f14;--evt-footer-bg-color: #fafafa;--evt-highlight-hover-row-color: rgba(186, 203, 231, .1);--evt-highlight-selected-row-color: rgba(82, 146, 247, .1);--evt-tooltip-bg-color: #303133;--evt-tooltip-text-color: #fff;--evt-resize-row-line-color: #e1e6eb;--evt-resize-column-text-color: #fff;--evt-resize-column-text-bg-color: var(--evt-color-primary);--evt-resize-column-line-color: #e1e6eb;--evt-tree-line-color: #e1e6eb;--evt-sort-icon-color: var(--evt-color-primary);--evt-drag-tip-bg-color: rgba(82, 146, 247, .1);--evt-drag-tip-line-color: var(--evt-color-primary);--evt-context-menu-min-width: 150px;--evt-context-menu-max-width: 220px;--evt-context-menu-item-padding: 8px 12px;--evt-context-menu-bg-color: #fff;--evt-context-menu-text-color: #333;--evt-context-menu-item-hover-text-color: var(--evt-color-primary);--evt-context-menu-item-hover-bg-color: #f5f5f5;--evt-context-menu-text-size: 13px}.dark{--evt-border-color: #363637;--evt-header-bg-color: #141414;--evt-body-bg-color: #141414;--evt-header-text-color: #a3a6ad;--evt-body-text-color: #cfd3dc;--evt-readonly-text-color: #cfd3dc;--evt-footer-text-color: #cfd3dc;--evt-scroller-color: #414243;--evt-scroller-track-color: #141414;--evt-scroller-focus-color: #a3a6ad;--evt-edit-bg-color: #141414;--evt-footer-bg-color: #262727;--evt-autofill-point-border-color: #fff;--evt-editor-bg-color: #434343;--evt-editor-text-color: #cfd3dc;--evt-context-menu-bg-color: #141414;--evt-context-menu-text-color: #cfd3dc;--evt-context-menu-item-hover-text-color: var(--evt-color-primary);--evt-context-menu-item-hover-bg-color: #414243}.e-virt-table-container{position:relative;outline:none}.e-virt-table-stage{position:relative;overflow:hidden;outline:none;box-sizing:border-box;z-index:10;border-radius:8px;border:1px solid var(--evt-border-color)}.e-virt-table-canvas{position:absolute;left:0;top:0;box-sizing:border-box;border:none;outline:none;z-index:10}.e-virt-table-editor{position:absolute;top:-10000px;left:-10000px;text-align:left;height:auto;line-height:0;z-index:100;overflow:hidden;background-color:var(--evt-editor-bg-color);border:2px solid var(--evt-color-primary);box-sizing:border-box;box-shadow:var(--evt-box-shadow);display:flex;align-items:center}.e-virt-table-overlayer{position:absolute;left:0;top:0;overflow:hidden;z-index:100;pointer-events:none}.e-virt-table-editor-textarea{width:100%;box-sizing:border-box;outline:none;font-weight:400;padding:8px;font-size:12px;color:inherit;white-space:pre-wrap;word-wrap:break-word;word-break:break-all;line-height:1.5;margin:0;border:none;vertical-align:middle;background:var(--evt-editor-bg-color);color:var(--evt-editor-text-color);overflow-y:auto;resize:none}.e-virt-table-context-menu{position:absolute;font-size:14px;color:var(--evt-text-color-regular);background-color:var(--evt-color-white);border-radius:4px;border:1px solid #e4e7ed;box-shadow:var(--evt-box-shadow);width:fit-content;padding:6px 0;z-index:9999;left:-99999px;top:-99999px}.e-virt-table-context-menu-item{cursor:pointer;padding:6px 24px;color:var(--evt-text-color-regular)}.e-virt-table-context-menu-item:hover{color:var(--evt-color-primary);background-color:#f5f7fa}.e-virt-table-loading{display:none;position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;z-index:2000;background-color:#fff6;display:flex;align-items:center;justify-content:center}.e-virt-table-loading-spinner{opacity:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.e-virt-table-loading-spinner svg{color:var(--evt-text-color-regular);animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.e-virt-table-loading-text{margin:0;font-size:12px;color:var(--evt-text-color-regular)}.e-virt-table-main-menu,.e-virt-table-submenu{position:absolute;background:var(--evt-context-menu-bg-color);border-radius:4px;box-shadow:0 2px 8px #0000001a;min-width:var(--evt-context-menu-min-width);max-width:var(--evt-context-menu-max-width);color:var(--evt-text-color-primary)}.e-virt-table-main-menu{border:1px solid var(--evt-border-color);z-index:3000;left:-99999px;top:-99999px;display:none;position:fixed;background-color:var(--evt-body-bg-color)}.e-virt-table-submenu{border:1px solid var(--evt-border-color);z-index:1000;max-height:350px;overflow-y:auto;opacity:0;visibility:hidden;transform:translate(-10px);transition:opacity .2s,visibility .2s,transform .2s;-ms-overflow-style:none;scrollbar-width:none}.e-virt-table-submenu::-webkit-scrollbar{display:none}.e-virt-table-submenu.show{opacity:1;visibility:visible;transform:translate(0)}.e-virt-table-submenu:not(.show){transition:none}.e-virt-table-menu-item,.e-virt-table-submenu-item{position:relative;-webkit-user-select:none;user-select:none;padding:var(--evt-context-menu-item-padding);cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background .2s,color .2s;color:var(--evt-context-menu-text-color);font-size:var(--evt-context-menu-text-size)}.e-virt-table-menu-item:last-child,.e-virt-table-submenu-item:last-child{border-bottom:none}.e-virt-table-menu-item:has(.e-virt-table-menu-item-icon){padding-left:8px}.e-virt-table-menu-item-content{display:flex;align-items:center;flex:1;min-width:0}.e-virt-table-menu-item-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:8px;flex-shrink:0}.e-virt-table-menu-item-icon svg{width:100%;height:100%;fill:currentColor}.e-virt-table-menu-item-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.e-virt-table-menu-arrow{display:inline-flex;align-items:center;justify-content:center;color:var(--evt-text-color-regular);transition:color .2s}.e-virt-table-menu-arrow svg{width:20px;height:20px;fill:currentColor}.e-virt-table-submenu-item:hover,.e-virt-table-menu-item:hover,.e-virt-table-menu-item.active{background:var(--evt-context-menu-item-hover-bg-color);color:var(--evt-context-menu-item-hover-text-color)}.e-virt-table-menu-item.disabled,.e-virt-table-submenu-item.disabled{cursor:not-allowed}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ var he = Object.defineProperty;
3
+ var de = (h, t, e) => t in h ? he(h, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[t] = e;
4
+ var n = (h, t, e) => de(h, typeof t != "symbol" ? t + "" : t, e);
5
+ class fe {
6
6
  constructor(t) {
7
7
  n(this, "rules");
8
8
  this.rules = t;
@@ -60,7 +60,7 @@ class ue {
60
60
  return e;
61
61
  }
62
62
  }
63
- function $t() {
63
+ function zt() {
64
64
  return "xxxxxxxxxxxxxxxxxx".replace(/[x]/g, function(h) {
65
65
  const t = Math.random() * 16 | 0;
66
66
  return (h === "x" ? t : t & 3 | 8).toString(16);
@@ -78,7 +78,7 @@ function J(h, t) {
78
78
  function rt(h = []) {
79
79
  return h.length ? h.map((t) => rt(t.children) + 1).sort((t, e) => e - t)[0] : 0;
80
80
  }
81
- function xe(h = []) {
81
+ function ue(h = []) {
82
82
  let t = [], e = [], i = [];
83
83
  return h.forEach((s) => {
84
84
  s.fixed === "left" ? t.push(s) : s.fixed === "right" ? i.push(s) : e.push(s);
@@ -123,24 +123,24 @@ function Q(h = []) {
123
123
  e.children ? t = t.concat(Q(e.children)) : t.push(e);
124
124
  }), t;
125
125
  }
126
- function Gt(h) {
126
+ function $t(h) {
127
127
  return h.filter((t) => !t.hide).map((t) => Array.isArray(t.children) && t.children.length > 0 ? {
128
128
  ...t,
129
- children: Gt(t.children)
129
+ children: $t(t.children)
130
130
  // 递归处理
131
131
  } : { ...t });
132
132
  }
133
- const At = /^(\r\n|\n\r|\r|\n)/, ge = /^[^\t\r\n]+/, Ht = /^\t/;
134
- function we(h) {
133
+ const Mt = /^(\r\n|\n\r|\r|\n)/, xe = /^[^\t\r\n]+/, At = /^\t/;
134
+ function ge(h) {
135
135
  let t = [[""]];
136
136
  if (h.length === 0)
137
137
  return t;
138
138
  let e = 0, i = 0, s;
139
139
  for (; h.length > 0 && s !== h.length; )
140
- if (s = h.length, h.match(Ht))
141
- h = h.replace(Ht, ""), e += 1, t[i][e] = "";
142
- else if (h.match(At))
143
- h = h.replace(At, ""), e = 0, i += 1, t[i] = [""];
140
+ if (s = h.length, h.match(At))
141
+ h = h.replace(At, ""), e += 1, t[i][e] = "";
142
+ else if (h.match(Mt))
143
+ h = h.replace(Mt, ""), e = 0, i += 1, t[i] = [""];
144
144
  else {
145
145
  let o = "";
146
146
  if (h.startsWith('"')) {
@@ -151,14 +151,14 @@ function we(h) {
151
151
  }
152
152
  o = o.replace(/^"/, "").replace(/"$/, "").replace(/["]*/g, (l) => new Array(Math.floor(l.length / 2)).fill('"').join(""));
153
153
  } else {
154
- const r = h.match(ge);
154
+ const r = h.match(xe);
155
155
  o = r ? r[0] : "", h = h.slice(o.length);
156
156
  }
157
157
  t[i][e] = o;
158
158
  }
159
159
  return Array.isArray(t) && t.length > 1 && t[t.length - 1].length === 1 && t[t.length - 1][0] === "" && (t = t.slice(0, t.length - 1)), t;
160
160
  }
161
- function me(h) {
161
+ function we(h) {
162
162
  let t, e, i, s, o = "", r;
163
163
  for (t = 0, e = h.length; t < e; t += 1) {
164
164
  for (s = h[t].length, i = 0; i < s; i += 1)
@@ -169,7 +169,7 @@ function me(h) {
169
169
  }
170
170
  return o;
171
171
  }
172
- function Ut(h, t, e = []) {
172
+ function Gt(h, t, e = []) {
173
173
  let i = 0;
174
174
  const s = [];
175
175
  return h.forEach((o, r) => {
@@ -181,15 +181,15 @@ function Ut(h, t, e = []) {
181
181
  }
182
182
  }), s;
183
183
  }
184
- function qt(h, t) {
184
+ function Ut(h, t) {
185
185
  let e = "", i = "";
186
186
  const s = {};
187
187
  return t.forEach((o, r) => {
188
188
  r === 0 ? (e = o.key, i = o.key, s[o.key] = 1) : h[o.key] === h[e] ? (s[o.key] = 0, s[i] += 1) : (s[o.key] = 1, e = o.key, i = o.key);
189
189
  }), s;
190
190
  }
191
- function Ee(h, t, e = []) {
192
- const { visibleRows: i, rowIndex: s, headIndex: o } = h, r = Ut(i, t, e);
191
+ function me(h, t, e = []) {
192
+ const { visibleRows: i, rowIndex: s, headIndex: o } = h, r = Gt(i, t, e);
193
193
  return r[s - o] === 0 ? {
194
194
  rowspan: 0,
195
195
  colspan: 0,
@@ -202,10 +202,10 @@ function Ee(h, t, e = []) {
202
202
  mergeRow: !0
203
203
  };
204
204
  }
205
- function pe(h, t = []) {
205
+ function Ee(h, t = []) {
206
206
  const { column: e, row: i, visibleLeafColumns: s } = h, o = s.filter((r) => t.includes(r.key));
207
207
  if (t.includes(e.key)) {
208
- const r = qt(i, o);
208
+ const r = Ut(i, o);
209
209
  return r[e.key] === 0 ? {
210
210
  rowspan: 0,
211
211
  colspan: 0,
@@ -219,11 +219,11 @@ function pe(h, t = []) {
219
219
  };
220
220
  }
221
221
  }
222
- function Ce(h, t = document.documentElement) {
222
+ function pe(h, t = document.documentElement) {
223
223
  const e = h.startsWith("--") ? h : `--${h}`;
224
224
  return getComputedStyle(t).getPropertyValue(e).trim();
225
225
  }
226
- function Dt(h) {
226
+ function Ht(h) {
227
227
  if (!h) return /* @__PURE__ */ new Date(0);
228
228
  if (typeof h == "number")
229
229
  return new Date(h);
@@ -277,23 +277,11 @@ function Dt(h) {
277
277
  }
278
278
  return /* @__PURE__ */ new Date(NaN);
279
279
  }
280
- function ye(h, t) {
281
- const e = Dt(h), i = Dt(t);
280
+ function Ce(h, t) {
281
+ const e = Ht(h), i = Ht(t);
282
282
  return isNaN(e.getTime()) && isNaN(i.getTime()) ? 0 : isNaN(e.getTime()) ? -1 : isNaN(i.getTime()) ? 1 : e.getTime() - i.getTime();
283
283
  }
284
- function at(h, t = /* @__PURE__ */ new WeakMap()) {
285
- if (h === null || typeof h != "object") return h;
286
- if (t.has(h)) return t.get(h);
287
- if (h instanceof RegExp) {
288
- const i = new RegExp(h.source, h.flags);
289
- return i.lastIndex = h.lastIndex, i;
290
- }
291
- const e = Array.isArray(h) ? [] : {};
292
- return t.set(h, e), Reflect.ownKeys(h).forEach((i) => {
293
- e[i] = at(h[i], t);
294
- }), e;
295
- }
296
- class Zt {
284
+ class jt {
297
285
  constructor(t, e, i, s, o, r, a) {
298
286
  n(this, "ctx");
299
287
  n(this, "x", 0);
@@ -339,7 +327,7 @@ class Zt {
339
327
  getRightFixedX() {
340
328
  }
341
329
  }
342
- class It extends Zt {
330
+ class bt extends jt {
343
331
  constructor(e, i, s, o, r, a, l, c, d, f = "body") {
344
332
  super(e, o, r, a, l, f, c.fixed);
345
333
  n(this, "formatter");
@@ -1018,7 +1006,7 @@ class It extends Zt {
1018
1006
  }
1019
1007
  }
1020
1008
  }
1021
- class be {
1009
+ class ye {
1022
1010
  constructor(t, e) {
1023
1011
  n(this, "ctx");
1024
1012
  n(this, "data");
@@ -1037,7 +1025,6 @@ class be {
1037
1025
  n(this, "validationErrorMap", /* @__PURE__ */ new Map());
1038
1026
  n(this, "itemRowKeyMap", /* @__PURE__ */ new WeakMap());
1039
1027
  n(this, "bufferData", []);
1040
- n(this, "originalColumns", []);
1041
1028
  n(this, "customHeader", {
1042
1029
  fixedData: {},
1043
1030
  sortData: {},
@@ -1058,7 +1045,7 @@ class be {
1058
1045
  n(this, "sortState", /* @__PURE__ */ new Map());
1059
1046
  this.ctx = t;
1060
1047
  const { data: i = [], columns: s = [], footerData: o = [] } = e;
1061
- this.data = i, this.footerData = o, this.columns = s, this.originalColumns = at(s), this.init();
1048
+ this.data = i, this.footerData = o, this.columns = s, this.init();
1062
1049
  }
1063
1050
  // 初始化默认不忽略清空改变值和校验map
1064
1051
  init(t = !0) {
@@ -1086,7 +1073,7 @@ class be {
1086
1073
  const s = t.length;
1087
1074
  t.forEach((o, r) => {
1088
1075
  var p;
1089
- const { ROW_KEY: a = "", DEFAULT_EXPAND_ALL: l, CELL_HEIGHT: c, SELECTABLE_METHOD: d, CHECKBOX_KEY: f } = this.ctx.config, x = o[a], u = x != null ? `${x}` : $t();
1076
+ const { ROW_KEY: a = "", DEFAULT_EXPAND_ALL: l, CELL_HEIGHT: c, SELECTABLE_METHOD: d, CHECKBOX_KEY: f } = this.ctx.config, x = o[a], u = x != null ? `${x}` : zt();
1090
1077
  this.itemRowKeyMap.set(o, u);
1091
1078
  const w = o._height || c, m = o._readonly;
1092
1079
  let g = !0;
@@ -1171,26 +1158,26 @@ class be {
1171
1158
  }
1172
1159
  generateColumns(t) {
1173
1160
  const e = (i) => i.map((s) => {
1174
- var a, l, c, d, f, x, u, w;
1175
- s.children && Array.isArray(s.children) && (s.children = e(s.children));
1176
- const o = {
1177
- hide: (l = (a = this.customHeader) == null ? void 0 : a.hideData) == null ? void 0 : l[s.key],
1178
- fixed: (d = (c = this.customHeader) == null ? void 0 : c.fixedData) == null ? void 0 : d[s.key],
1179
- sort: (x = (f = this.customHeader) == null ? void 0 : f.sortData) == null ? void 0 : x[s.key],
1180
- width: (w = (u = this.customHeader) == null ? void 0 : u.resizableData) == null ? void 0 : w[s.key]
1181
- }, r = {};
1182
- for (const [m, g] of Object.entries(o))
1183
- g !== void 0 && (r[m] = g);
1161
+ var l, c, d, f, x, u, w, m;
1162
+ const o = s.children && Array.isArray(s.children) ? e(s.children) : void 0, r = {
1163
+ hide: (c = (l = this.customHeader) == null ? void 0 : l.hideData) == null ? void 0 : c[s.key],
1164
+ fixed: (f = (d = this.customHeader) == null ? void 0 : d.fixedData) == null ? void 0 : f[s.key],
1165
+ sort: (u = (x = this.customHeader) == null ? void 0 : x.sortData) == null ? void 0 : u[s.key],
1166
+ width: (m = (w = this.customHeader) == null ? void 0 : w.resizableData) == null ? void 0 : m[s.key]
1167
+ }, a = {};
1168
+ for (const [g, E] of Object.entries(r))
1169
+ E !== void 0 && (a[g] = E);
1184
1170
  return {
1185
1171
  ...s,
1186
- ...r
1172
+ children: o,
1173
+ hide: typeof s.hide == "function" ? s.hide(s) : s.hide,
1174
+ ...a
1187
1175
  };
1188
1176
  });
1189
1177
  return e(t);
1190
1178
  }
1191
1179
  getColumns() {
1192
- const t = at(this.columns);
1193
- return this.generateColumns(t);
1180
+ return this.generateColumns(this.columns);
1194
1181
  }
1195
1182
  setColumns(t) {
1196
1183
  this.columns = t, this.clearBufferData();
@@ -1307,7 +1294,7 @@ class be {
1307
1294
  } else if (s === "string") {
1308
1295
  const d = String(a || ""), f = String(l || "");
1309
1296
  c = d.localeCompare(f);
1310
- } else s === "date" && (c = ye(a, l));
1297
+ } else s === "date" && (c = Ce(a, l));
1311
1298
  return i === "asc" ? c : -c;
1312
1299
  });
1313
1300
  }
@@ -1924,7 +1911,7 @@ class be {
1924
1911
  getValidator(t, e) {
1925
1912
  return new Promise((i) => {
1926
1913
  const s = this.rowKeyMap.get(t), o = this.headerMap.get(e), { BODY_CELL_RULES_METHOD: r } = this.ctx.config;
1927
- if (o === void 0)
1914
+ if (s === void 0 || o === void 0)
1928
1915
  return i([]);
1929
1916
  const a = o.column;
1930
1917
  let l = a.rules;
@@ -1949,7 +1936,7 @@ class be {
1949
1936
  value: this.getItemValue(t, e),
1950
1937
  field: e,
1951
1938
  fieldValue: this.getItemValue(t, e)
1952
- }, f = new ue(l).validate(c);
1939
+ }, f = new fe(l).validate(c);
1953
1940
  this.setValidationError(t, e, f), i(f);
1954
1941
  } else
1955
1942
  this.clearValidationError(t, e), i([]);
@@ -2094,25 +2081,25 @@ class be {
2094
2081
  dataList: b
2095
2082
  };
2096
2083
  }
2097
- setValidationErrorByRowIndex(t, e, i) {
2098
- const s = this.rowIndexRowKeyMap.get(t), o = `${s}​_${e}`, r = this.getRowForRowIndex(t), a = this.getColumnByKey(e);
2099
- if (!s || !a || !r)
2084
+ setValidationErrorByRowKey(t, e, i) {
2085
+ const s = `${t}​_${e}`, o = this.getRowForRowKey(t), r = o == null ? void 0 : o.rowIndex, a = this.getColumnByKey(e);
2086
+ if (!t || !a || !o)
2100
2087
  return;
2101
- const l = this.getItemValue(s, e), c = [
2088
+ const l = this.getItemValue(t, e), c = [
2102
2089
  {
2103
2090
  key: e,
2104
- rowKey: s,
2105
- rowIndex: t,
2091
+ rowKey: t,
2092
+ rowIndex: r,
2106
2093
  colIndex: a.colIndex,
2107
2094
  column: a.column,
2108
- row: r,
2095
+ row: o,
2109
2096
  value: l,
2110
2097
  message: i,
2111
2098
  field: e,
2112
2099
  fieldValue: l
2113
2100
  }
2114
2101
  ];
2115
- this.validationErrorMap.set(o, c);
2102
+ this.validationErrorMap.set(s, c);
2116
2103
  }
2117
2104
  setValidationError(t, e, i) {
2118
2105
  const s = `${t}​_${e}`;
@@ -2129,7 +2116,7 @@ class be {
2129
2116
  // 获取虚拟单元格,只针对可见的
2130
2117
  getVirtualBodyCell(t, e) {
2131
2118
  const i = this.getColumnByColIndex(e), s = this.getRowForRowIndex(t);
2132
- return !i || !s ? void 0 : new It(this.ctx, t, e, 0, 0, 0, 0, i, s.item, "body");
2119
+ return !i || !s ? void 0 : new bt(this.ctx, t, e, 0, 0, 0, 0, i, s.item, "body");
2133
2120
  }
2134
2121
  getVirtualBodyCellByKey(t, e) {
2135
2122
  const i = this.getRowIndexForRowKey(t), s = this.getColIndexForKey(e);
@@ -2178,12 +2165,12 @@ class be {
2178
2165
  const s = t[i];
2179
2166
  s !== void 0 && (this.customHeader[i] = s);
2180
2167
  }), !e) {
2181
- const i = this.clearCustomHeaderInvalidValues(this.originalColumns);
2168
+ const i = this.clearCustomHeaderInvalidValues(this.columns);
2182
2169
  this.ctx.emit("customHeaderChange", i);
2183
2170
  }
2184
2171
  }
2185
2172
  resetCustomHeader() {
2186
- this.customHeader = {}, this.columns = this.originalColumns, this.ctx.emit("resetHeader"), this.ctx.emit("customHeaderChange", this.customHeader);
2173
+ this.customHeader = {}, this.ctx.emit("resetHeader"), this.ctx.emit("customHeaderChange", this.customHeader);
2187
2174
  }
2188
2175
  getCustomHeader() {
2189
2176
  return this.customHeader;
@@ -2210,9 +2197,6 @@ class be {
2210
2197
  fixedData: i
2211
2198
  }), this.ctx.emit("resetHeader");
2212
2199
  }
2213
- setOriginalColumns(t) {
2214
- this.originalColumns = t;
2215
- }
2216
2200
  // 递归处理
2217
2201
  clearCustomHeaderInvalidValues(t) {
2218
2202
  const e = (s, o = {}) => {
@@ -2230,7 +2214,7 @@ class be {
2230
2214
  return e(t, i), i;
2231
2215
  }
2232
2216
  }
2233
- class Ie {
2217
+ class be {
2234
2218
  constructor(t) {
2235
2219
  n(this, "ctx");
2236
2220
  n(this, "history", []);
@@ -2285,7 +2269,7 @@ class Ie {
2285
2269
  this.history = [], this.historyIndex = -1;
2286
2270
  }
2287
2271
  }
2288
- class Re {
2272
+ class Ie {
2289
2273
  constructor(t) {
2290
2274
  n(this, "eventTasks", /* @__PURE__ */ new Set());
2291
2275
  n(this, "ctx");
@@ -2367,7 +2351,7 @@ class Re {
2367
2351
  }
2368
2352
  }
2369
2353
  }
2370
- class ve {
2354
+ class Re {
2371
2355
  constructor() {
2372
2356
  n(this, "events", /* @__PURE__ */ new Map());
2373
2357
  }
@@ -2405,7 +2389,7 @@ class ve {
2405
2389
  this.events.clear();
2406
2390
  }
2407
2391
  }
2408
- class _e {
2392
+ class ve {
2409
2393
  constructor(t) {
2410
2394
  n(this, "ctx");
2411
2395
  n(this, "textCacheMap", /* @__PURE__ */ new Map());
@@ -2633,7 +2617,7 @@ class _e {
2633
2617
  };
2634
2618
  }
2635
2619
  }
2636
- class Nt {
2620
+ class Dt {
2637
2621
  constructor(t) {
2638
2622
  n(this, "_config", {});
2639
2623
  /** CSS 类名前缀 */
@@ -2980,14 +2964,14 @@ class Nt {
2980
2964
  let t = {};
2981
2965
  Object.keys(this).forEach((e) => {
2982
2966
  if (e.endsWith("_COLOR") || e.endsWith("_FONT")) {
2983
- const i = `--evt-${e.toLocaleLowerCase().replace(/_/g, "-")}`, s = Ce(i);
2967
+ const i = `--evt-${e.toLocaleLowerCase().replace(/_/g, "-")}`, s = pe(i);
2984
2968
  s && (t[e] = s);
2985
2969
  }
2986
2970
  }), Object.assign(this, t, this._config);
2987
2971
  }
2988
2972
  }
2989
- const jt = '<svg t="1724122015492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4237" width="32" height="32"><path d="M401.472 316.992l159.04 217.664L591.488 512l-30.976-22.656-159.04 217.728q-2.24 3.008-3.84 6.464-1.6 3.456-2.496 7.104-0.896 3.648-1.024 7.424-0.192 3.84 0.384 7.552 0.64 3.712 1.92 7.296 1.28 3.52 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992 3.072 2.24 6.464 3.84 3.456 1.6 7.168 2.496 3.648 0.896 7.424 1.024 3.776 0.192 7.488-0.448 3.776-0.576 7.296-1.856 3.584-1.28 6.784-3.264 3.2-1.92 6.016-4.48 2.816-2.56 5.056-5.632l159.04-217.728q3.584-4.928 5.504-10.752 1.92-5.76 1.92-11.904 0-6.08-1.92-11.904-1.92-5.76-5.504-10.752L463.488 271.68q-2.24-3.072-5.056-5.632-2.752-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.52-1.28-7.296-1.856-3.712-0.576-7.488-0.448-3.84 0.192-7.424 1.088-3.712 0.896-7.168 2.496-3.392 1.6-6.4 3.84-3.136 2.176-5.696 4.992-2.56 2.752-4.48 6.016-1.984 3.2-3.264 6.784-1.28 3.52-1.92 7.296-0.576 3.712-0.384 7.488 0.128 3.84 1.024 7.488 0.896 3.648 2.496 7.04 1.6 3.456 3.84 6.528z m30.976-61.056q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.24-3.52 1.408-6.656 3.52-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.232 1.408 3.456 3.52 6.592 2.112 3.2 4.8 5.824 2.688 2.688 5.76 4.8 3.2 2.112 6.72 3.52 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.656 1.472-3.52 2.24-7.232 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.456-3.52-6.592-2.112-3.2-4.8-5.824-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.52-3.52-1.472-7.232-2.24Q436.224 256 432.448 256z m0 435.392q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.176-3.52 1.472-6.656 3.584-3.2 2.112-5.824 4.736-2.688 2.688-4.8 5.824-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.76 2.688 2.752 5.76 4.8 3.2 2.112 6.72 3.584 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.472 6.592-3.584 3.2-2.048 5.824-4.736 2.688-2.688 4.8-5.824 2.112-3.2 3.52-6.656 1.472-3.456 2.24-7.168 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.52-3.52-6.656-2.112-3.136-4.8-5.76-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704z" p-id="4238"></path></svg>', kt = '<svg t="1722595535853" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M640 128H384c-170.496 0-256 85.504-256 256v256c0 170.496 85.504 256 256 256h256c170.496 0 256-85.504 256-256V384c0-170.496-85.504-256-256-256z m67.584 302.592c-2.048 4.608-4.608 8.704-8.192 12.288L506.88 634.88c-3.584 3.584-7.68 6.144-12.288 8.192-4.608 2.048-9.728 3.072-14.848 3.072s-10.24-1.024-14.848-3.072c-4.608-2.048-8.704-4.608-12.288-8.192l-96.256-96.256c-3.584-3.584-6.144-7.68-8.192-12.288-2.048-4.608-3.072-9.728-3.072-14.848 0-2.56 0-5.12 1.024-7.68 0.512-2.56 1.024-5.12 2.048-7.168 1.024-2.56 2.048-4.608 3.584-6.656 1.536-2.048 3.072-4.096 4.608-5.632 1.536-2.048 3.584-3.584 5.632-4.608 2.048-1.536 4.096-2.56 6.656-3.584 2.56-1.024 4.608-1.536 7.168-2.048 2.56-0.512 5.12-0.512 7.68-0.512 5.12 0 10.24 1.024 14.848 3.072 4.608 2.048 8.704 4.608 12.288 8.192l69.12 68.608L645.12 389.12c3.584-3.584 7.68-6.144 12.288-8.192 4.608-2.048 9.728-3.072 14.848-3.072 2.56 0 5.12 0 7.68 0.512s5.12 1.024 7.168 2.048c2.56 1.024 4.608 2.048 6.656 3.584 2.048 1.536 4.096 3.072 5.632 4.608 1.536 1.536 3.584 3.584 4.608 5.632 1.536 2.048 2.56 4.096 3.584 6.656 1.024 2.56 1.536 4.608 2.048 7.168 0.512 2.56 1.024 5.12 1.024 7.68 0 5.12-1.024 10.24-3.072 14.848z" p-id="4552"></path></svg>', Xt = '<svg t="1724122044148" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M707.648 401.28L489.28 560.704l22.656 30.976 22.656-30.976L316.16 401.216q-3.072-2.24-6.464-3.84-3.456-1.536-7.104-2.432-3.712-0.896-7.488-1.088-3.776-0.128-7.488 0.448-3.776 0.64-7.296 1.92-3.584 1.28-6.784 3.2-3.2 1.984-6.016 4.544-2.816 2.56-5.056 5.632-2.176 3.072-3.84 6.464-1.536 3.456-2.432 7.104-0.896 3.712-1.088 7.488-0.128 3.776 0.448 7.488 0.64 3.776 1.92 7.296 1.28 3.584 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992l218.368 159.552q4.928 3.584 10.752 5.504 5.76 1.92 11.904 1.92 6.08 0 11.904-1.92 5.76-1.92 10.752-5.504l218.368-159.552q3.008-2.24 5.568-4.992 2.56-2.816 4.544-6.016 1.92-3.2 3.264-6.784 1.28-3.52 1.92-7.296 0.576-3.712 0.384-7.488-0.128-3.84-1.024-7.488-0.896-3.648-2.496-7.04-1.6-3.456-3.84-6.528-2.24-3.072-4.992-5.632-2.816-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.584-1.28-7.296-1.856-3.712-0.64-7.488-0.448-3.84 0.192-7.488 1.088-3.648 0.896-7.04 2.496-3.456 1.536-6.528 3.84z m61.056 30.976q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.472-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.72-3.584-3.456-1.408-7.168-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.656 3.584-3.136 2.112-5.76 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.584 6.656-1.408 3.52-2.176 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.176 7.168 1.472 3.52 3.584 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.168-2.176 3.52-1.408 6.656-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.048-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z m-436.736 0q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.408-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.592 3.584-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.24 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.24 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z" p-id="4552"></path></svg>', Rt = '<svg t="1755138507987" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5079" width="200" height="200"><path d="M512 938.688a42.688 42.688 0 0 1-35.072-18.432l-192-277.312A42.56 42.56 0 0 1 320 576h384a42.752 42.752 0 0 1 35.072 66.944l-192 277.312a42.688 42.688 0 0 1-35.072 18.432" fill="currentColor" p-id="2016"></path><path d="M704 448H320a42.752 42.752 0 0 1-35.072-66.944l192-277.312c16-23.04 54.208-23.04 70.144 0l192 277.312A42.56 42.56 0 0 1 704 448" fill="currentColor" p-id="2015"></path></svg>', Se = Rt.replace('fill="currentColor" p-id="2016"', 'fill="#bec4c7" p-id="2016"'), Te = Rt.replace('fill="currentColor" p-id="2015"', 'fill="#bec4c7" p-id="2015"');
2990
- class Oe {
2973
+ const qt = '<svg t="1724122015492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4237" width="32" height="32"><path d="M401.472 316.992l159.04 217.664L591.488 512l-30.976-22.656-159.04 217.728q-2.24 3.008-3.84 6.464-1.6 3.456-2.496 7.104-0.896 3.648-1.024 7.424-0.192 3.84 0.384 7.552 0.64 3.712 1.92 7.296 1.28 3.52 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992 3.072 2.24 6.464 3.84 3.456 1.6 7.168 2.496 3.648 0.896 7.424 1.024 3.776 0.192 7.488-0.448 3.776-0.576 7.296-1.856 3.584-1.28 6.784-3.264 3.2-1.92 6.016-4.48 2.816-2.56 5.056-5.632l159.04-217.728q3.584-4.928 5.504-10.752 1.92-5.76 1.92-11.904 0-6.08-1.92-11.904-1.92-5.76-5.504-10.752L463.488 271.68q-2.24-3.072-5.056-5.632-2.752-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.52-1.28-7.296-1.856-3.712-0.576-7.488-0.448-3.84 0.192-7.424 1.088-3.712 0.896-7.168 2.496-3.392 1.6-6.4 3.84-3.136 2.176-5.696 4.992-2.56 2.752-4.48 6.016-1.984 3.2-3.264 6.784-1.28 3.52-1.92 7.296-0.576 3.712-0.384 7.488 0.128 3.84 1.024 7.488 0.896 3.648 2.496 7.04 1.6 3.456 3.84 6.528z m30.976-61.056q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.24-3.52 1.408-6.656 3.52-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.232 1.408 3.456 3.52 6.592 2.112 3.2 4.8 5.824 2.688 2.688 5.76 4.8 3.2 2.112 6.72 3.52 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.656 1.472-3.52 2.24-7.232 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.456-3.52-6.592-2.112-3.2-4.8-5.824-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.52-3.52-1.472-7.232-2.24Q436.224 256 432.448 256z m0 435.392q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.176-3.52 1.472-6.656 3.584-3.2 2.112-5.824 4.736-2.688 2.688-4.8 5.824-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.76 2.688 2.752 5.76 4.8 3.2 2.112 6.72 3.584 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.472 6.592-3.584 3.2-2.048 5.824-4.736 2.688-2.688 4.8-5.824 2.112-3.2 3.52-6.656 1.472-3.456 2.24-7.168 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.52-3.52-6.656-2.112-3.136-4.8-5.76-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704z" p-id="4238"></path></svg>', Nt = '<svg t="1722595535853" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M640 128H384c-170.496 0-256 85.504-256 256v256c0 170.496 85.504 256 256 256h256c170.496 0 256-85.504 256-256V384c0-170.496-85.504-256-256-256z m67.584 302.592c-2.048 4.608-4.608 8.704-8.192 12.288L506.88 634.88c-3.584 3.584-7.68 6.144-12.288 8.192-4.608 2.048-9.728 3.072-14.848 3.072s-10.24-1.024-14.848-3.072c-4.608-2.048-8.704-4.608-12.288-8.192l-96.256-96.256c-3.584-3.584-6.144-7.68-8.192-12.288-2.048-4.608-3.072-9.728-3.072-14.848 0-2.56 0-5.12 1.024-7.68 0.512-2.56 1.024-5.12 2.048-7.168 1.024-2.56 2.048-4.608 3.584-6.656 1.536-2.048 3.072-4.096 4.608-5.632 1.536-2.048 3.584-3.584 5.632-4.608 2.048-1.536 4.096-2.56 6.656-3.584 2.56-1.024 4.608-1.536 7.168-2.048 2.56-0.512 5.12-0.512 7.68-0.512 5.12 0 10.24 1.024 14.848 3.072 4.608 2.048 8.704 4.608 12.288 8.192l69.12 68.608L645.12 389.12c3.584-3.584 7.68-6.144 12.288-8.192 4.608-2.048 9.728-3.072 14.848-3.072 2.56 0 5.12 0 7.68 0.512s5.12 1.024 7.168 2.048c2.56 1.024 4.608 2.048 6.656 3.584 2.048 1.536 4.096 3.072 5.632 4.608 1.536 1.536 3.584 3.584 4.608 5.632 1.536 2.048 2.56 4.096 3.584 6.656 1.024 2.56 1.536 4.608 2.048 7.168 0.512 2.56 1.024 5.12 1.024 7.68 0 5.12-1.024 10.24-3.072 14.848z" p-id="4552"></path></svg>', kt = '<svg t="1724122044148" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M707.648 401.28L489.28 560.704l22.656 30.976 22.656-30.976L316.16 401.216q-3.072-2.24-6.464-3.84-3.456-1.536-7.104-2.432-3.712-0.896-7.488-1.088-3.776-0.128-7.488 0.448-3.776 0.64-7.296 1.92-3.584 1.28-6.784 3.2-3.2 1.984-6.016 4.544-2.816 2.56-5.056 5.632-2.176 3.072-3.84 6.464-1.536 3.456-2.432 7.104-0.896 3.712-1.088 7.488-0.128 3.776 0.448 7.488 0.64 3.776 1.92 7.296 1.28 3.584 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992l218.368 159.552q4.928 3.584 10.752 5.504 5.76 1.92 11.904 1.92 6.08 0 11.904-1.92 5.76-1.92 10.752-5.504l218.368-159.552q3.008-2.24 5.568-4.992 2.56-2.816 4.544-6.016 1.92-3.2 3.264-6.784 1.28-3.52 1.92-7.296 0.576-3.712 0.384-7.488-0.128-3.84-1.024-7.488-0.896-3.648-2.496-7.04-1.6-3.456-3.84-6.528-2.24-3.072-4.992-5.632-2.816-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.584-1.28-7.296-1.856-3.712-0.64-7.488-0.448-3.84 0.192-7.488 1.088-3.648 0.896-7.04 2.496-3.456 1.536-6.528 3.84z m61.056 30.976q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.472-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.72-3.584-3.456-1.408-7.168-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.656 3.584-3.136 2.112-5.76 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.584 6.656-1.408 3.52-2.176 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.176 7.168 1.472 3.52 3.584 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.168-2.176 3.52-1.408 6.656-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.048-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z m-436.736 0q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.408-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.592 3.584-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.24 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.24 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z" p-id="4552"></path></svg>', It = '<svg t="1755138507987" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5079" width="200" height="200"><path d="M512 938.688a42.688 42.688 0 0 1-35.072-18.432l-192-277.312A42.56 42.56 0 0 1 320 576h384a42.752 42.752 0 0 1 35.072 66.944l-192 277.312a42.688 42.688 0 0 1-35.072 18.432" fill="currentColor" p-id="2016"></path><path d="M704 448H320a42.752 42.752 0 0 1-35.072-66.944l192-277.312c16-23.04 54.208-23.04 70.144 0l192 277.312A42.56 42.56 0 0 1 704 448" fill="currentColor" p-id="2015"></path></svg>', _e = It.replace('fill="currentColor" p-id="2016"', 'fill="#bec4c7" p-id="2016"'), Se = It.replace('fill="currentColor" p-id="2015"', 'fill="#bec4c7" p-id="2015"');
2974
+ class Te {
2991
2975
  constructor(t) {
2992
2976
  n(this, "ctx");
2993
2977
  n(this, "list", [
@@ -3002,14 +2986,14 @@ class Oe {
3002
2986
  name: "expand",
3003
2987
  configName: "EXPAND_ICON_SVG",
3004
2988
  configColorName: "EXPAND_ICON_COLOR",
3005
- svg: jt,
2989
+ svg: qt,
3006
2990
  color: "#4E5969"
3007
2991
  },
3008
2992
  {
3009
2993
  name: "shrink",
3010
2994
  configName: "SHRINK_ICON_SVG",
3011
2995
  configColorName: "SHRINK_ICON_COLOR",
3012
- svg: Xt,
2996
+ svg: kt,
3013
2997
  color: "#4E5969"
3014
2998
  },
3015
2999
  {
@@ -3023,7 +3007,7 @@ class Oe {
3023
3007
  name: "checkbox-check",
3024
3008
  configName: "CHECKBOX_CHECK_SVG",
3025
3009
  configColorName: "CHECKBOX_COLOR",
3026
- svg: kt,
3010
+ svg: Nt,
3027
3011
  color: "rgb(82,146,247)"
3028
3012
  },
3029
3013
  {
@@ -3036,7 +3020,7 @@ class Oe {
3036
3020
  {
3037
3021
  name: "checkbox-check-disabled",
3038
3022
  configName: "CHECKBOX_CHECK_DISABLED_SVG",
3039
- svg: kt,
3023
+ svg: Nt,
3040
3024
  color: "#DDE0EA"
3041
3025
  },
3042
3026
  {
@@ -3057,27 +3041,27 @@ class Oe {
3057
3041
  name: "icon-select",
3058
3042
  configName: "ICON_SELECT_SVG",
3059
3043
  configColorName: "ICON_SELECT_COLOR",
3060
- svg: Xt,
3044
+ svg: kt,
3061
3045
  color: "#4E5969"
3062
3046
  },
3063
3047
  {
3064
3048
  name: "sort-asc",
3065
3049
  configName: "SORT_ASC_ICON_SVG",
3066
3050
  configColorName: "SORT_ICON_COLOR",
3067
- svg: Se,
3051
+ svg: _e,
3068
3052
  color: "rgb(82,146,247)"
3069
3053
  },
3070
3054
  {
3071
3055
  name: "sort-desc",
3072
3056
  configName: "SORT_DESC_ICON_SVG",
3073
3057
  configColorName: "SORT_ICON_COLOR",
3074
- svg: Te,
3058
+ svg: Se,
3075
3059
  color: "rgb(82,146,247)"
3076
3060
  },
3077
3061
  {
3078
3062
  name: "sort-default",
3079
3063
  configName: "SORTABLE_ICON_SVG",
3080
- svg: Rt,
3064
+ svg: It,
3081
3065
  color: "#bec4c7"
3082
3066
  }
3083
3067
  ]);
@@ -3140,7 +3124,7 @@ class Oe {
3140
3124
  return this.list.find((e) => e.name === t);
3141
3125
  }
3142
3126
  }
3143
- class Et extends Zt {
3127
+ class mt extends jt {
3144
3128
  constructor(e, i, s, o, r, a, l) {
3145
3129
  super(e, s, o, r, a, "header", l.fixed);
3146
3130
  n(this, "align");
@@ -3202,7 +3186,7 @@ class Et extends Zt {
3202
3186
  n(this, "drawSortImageHeight", 0);
3203
3187
  n(this, "drawSortImageName", "");
3204
3188
  n(this, "drawSortImageSource");
3205
- this.ctx = e, this.x = s, this.y = o, this.width = r, this.height = a, this.visibleWidth = r, this.visibleHeight = a, this.colIndex = i, this.key = l.key, this.minWidth = l.minWidth, this.maxWidth = l.maxWidth, this.hide = l.hide || !1, this.type = l.type || "", this.editorType = l.editorType || "text", this.hideHeaderSelection = l.hideHeaderSelection || !1, this.align = l.headerAlign || l.align || this.ctx.config.COLUMNS_ALIGN, this.verticalAlign = l.headerVerticalAlign || l.verticalAlign || this.ctx.config.COLUMNS_VERTICAL_ALIGN, this.fixed = l.fixed || "", this.level = l.level || 0, this.operation = l.operation || !1, this.text = l.title, this.column = l, this.colspan = l.colspan || 1, this.widthFillDisable = l.widthFillDisable || !1, this.rowspan = l.rowspan || 1, this.rules = l.rules, this.readonly = l.readonly || !1, this.required = l.required || !1, this.sortIconName = l.sortIconName || "sort-default", this.sortAscIconName = l.sortAscIconName || "sort-asc", this.sortDescIconName = l.sortDescIconName || "sort-desc", this.rowKey = $t(), this.overflowTooltipShow = l.overflowTooltipHeaderShow !== !1, this.hasChildren = l.children && l.children.length > 0 || !1, this.render = l.renderHeader, this.maxLineClampHeader = l.maxLineClampHeader || "auto";
3189
+ this.ctx = e, this.x = s, this.y = o, this.width = r, this.height = a, this.visibleWidth = r, this.visibleHeight = a, this.colIndex = i, this.key = l.key, this.minWidth = l.minWidth, this.maxWidth = l.maxWidth, this.hide = (typeof l.hide == "function" ? l.hide(l) : l.hide) || !1, this.type = l.type || "", this.editorType = l.editorType || "text", this.hideHeaderSelection = l.hideHeaderSelection || !1, this.align = l.headerAlign || l.align || this.ctx.config.COLUMNS_ALIGN, this.verticalAlign = l.headerVerticalAlign || l.verticalAlign || this.ctx.config.COLUMNS_VERTICAL_ALIGN, this.fixed = l.fixed || "", this.level = l.level || 0, this.operation = l.operation || !1, this.text = l.title, this.column = l, this.colspan = l.colspan || 1, this.widthFillDisable = l.widthFillDisable || !1, this.rowspan = l.rowspan || 1, this.rules = l.rules, this.readonly = l.readonly || !1, this.required = l.required || !1, this.sortIconName = l.sortIconName || "sort-default", this.sortAscIconName = l.sortAscIconName || "sort-asc", this.sortDescIconName = l.sortDescIconName || "sort-desc", this.rowKey = zt(), this.overflowTooltipShow = l.overflowTooltipHeaderShow !== !1, this.hasChildren = l.children && l.children.length > 0 || !1, this.render = l.renderHeader, this.maxLineClampHeader = l.maxLineClampHeader || "auto";
3206
3190
  }
3207
3191
  /**
3208
3192
  * 是否可见,覆盖基类方法,表头是跟y滚动条没有关系的所以不需要加滚动参数
@@ -3347,7 +3331,7 @@ class Et extends Zt {
3347
3331
  };
3348
3332
  }
3349
3333
  }
3350
- class Le {
3334
+ class Oe {
3351
3335
  constructor(t) {
3352
3336
  n(this, "ctx");
3353
3337
  n(this, "visibleHoverCell");
@@ -3468,7 +3452,7 @@ class Le {
3468
3452
  t.drawSelectionImageWidth,
3469
3453
  t.drawSelectionImageHeight
3470
3454
  ))
3471
- if (t instanceof Et)
3455
+ if (t instanceof mt)
3472
3456
  t.drawSelectionImageName === "checkbox-uncheck" || t.drawSelectionImageName === "checkbox-indeterminate" ? this.ctx.database.toggleAllSelection() : t.drawSelectionImageName === "checkbox-check" && this.ctx.database.clearSelection(!0);
3473
3457
  else {
3474
3458
  if (!this.ctx.database.getRowSelectable(t.rowKey))
@@ -3533,7 +3517,7 @@ class Le {
3533
3517
  */
3534
3518
  imageEnterAndLeave(t, e) {
3535
3519
  const { offsetY: i, offsetX: s } = this.ctx.getOffset(e), o = i, r = s;
3536
- if (t instanceof Et) {
3520
+ if (t instanceof mt) {
3537
3521
  if (t.drawSelectionImageSource && this.isInsideElement(
3538
3522
  r,
3539
3523
  o,
@@ -3557,7 +3541,7 @@ class Le {
3557
3541
  return;
3558
3542
  }
3559
3543
  }
3560
- if (t instanceof It) {
3544
+ if (t instanceof bt) {
3561
3545
  if (t.drawSelectionImageSource && this.isInsideElement(
3562
3546
  r,
3563
3547
  o,
@@ -3654,7 +3638,7 @@ class Le {
3654
3638
  this.resizeObserver.unobserve(this.ctx.stageElement), this.mutationObserver.disconnect();
3655
3639
  }
3656
3640
  }
3657
- class Me {
3641
+ class Le {
3658
3642
  constructor(t, e) {
3659
3643
  n(this, "eventBus");
3660
3644
  n(this, "eventBrowser");
@@ -3792,10 +3776,10 @@ class Me {
3792
3776
  loadingElement: c,
3793
3777
  contextMenuElement: d
3794
3778
  } = t;
3795
- this.containerElement = i, s.tabIndex = 0, this.stageElement = s, this.canvasElement = o, this.overlayerElement = r, this.editorElement = a, this.emptyElement = l, this.loadingElement = c, this.contextMenuElement = d, this.config = new Nt(e.config || {}), this.eventBus = new ve(), this.eventBrowser = new Re(this), this.eventTable = new Le(this), this.paint = new _e(this.canvasElement), this.database = new be(this, e), this.history = new Ie(this), this.icons = new Oe(this);
3779
+ this.containerElement = i, s.tabIndex = 0, this.stageElement = s, this.canvasElement = o, this.overlayerElement = r, this.editorElement = a, this.emptyElement = l, this.loadingElement = c, this.contextMenuElement = d, this.config = new Dt(e.config || {}), this.eventBus = new Re(), this.eventBrowser = new Ie(this), this.eventTable = new Oe(this), this.paint = new ve(this.canvasElement), this.database = new ye(this, e), this.history = new be(this), this.icons = new Te(this);
3796
3780
  }
3797
3781
  setConfig(t) {
3798
- this.config = new Nt(t);
3782
+ this.config = new Dt(t);
3799
3783
  }
3800
3784
  setItemValueByEditor(t, e, i, s = !0, o = !0, r = !0) {
3801
3785
  if (this.config.ENABLE_MERGE_CELL_LINK) {
@@ -3926,7 +3910,7 @@ class Me {
3926
3910
  this.eventTable.destroy(), this.eventBrowser.destroy(), this.eventBus.destroy();
3927
3911
  }
3928
3912
  }
3929
- class Bt {
3913
+ class Xt {
3930
3914
  constructor(t, e) {
3931
3915
  n(this, "ctx");
3932
3916
  n(this, "type");
@@ -4053,7 +4037,7 @@ class Bt {
4053
4037
  }), this.ctx.scrollerFocus = this.isFocus;
4054
4038
  }
4055
4039
  }
4056
- class Ae {
4040
+ class Me {
4057
4041
  // 垂直滚动定时器
4058
4042
  constructor(t) {
4059
4043
  n(this, "ctx");
@@ -4066,7 +4050,7 @@ class Ae {
4066
4050
  n(this, "timerX", 0);
4067
4051
  // 水平滚动定时器
4068
4052
  n(this, "timerY", 0);
4069
- this.ctx = t, this.verticalScrollbar = new Bt(t, "vertical"), this.horizontalScrollbar = new Bt(t, "horizontal"), this.ctx.on("wheel", (e) => this.onWheel(e)), this.ctx.on("mousedown", (e) => this.onMouseDown(e)), this.ctx.on("mousemove", (e) => this.onMouseMove(e)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("touchmove", (e) => this.onTouchmove(e)), this.ctx.on("touchstart", (e) => {
4053
+ this.ctx = t, this.verticalScrollbar = new Xt(t, "vertical"), this.horizontalScrollbar = new Xt(t, "horizontal"), this.ctx.on("wheel", (e) => this.onWheel(e)), this.ctx.on("mousedown", (e) => this.onMouseDown(e)), this.ctx.on("mousemove", (e) => this.onMouseMove(e)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("touchmove", (e) => this.onTouchmove(e)), this.ctx.on("touchstart", (e) => {
4070
4054
  this.onTouchstart(e);
4071
4055
  }), this.ctx.on("setScroll", (e, i) => {
4072
4056
  this.setScroll(e, i);
@@ -4163,7 +4147,7 @@ class Ae {
4163
4147
  t && (this.adjustPositionX = "", this.timerX && (clearInterval(this.timerX), this.timerX = 0)), e && (this.adjustPositionY = "", this.timerY && (clearInterval(this.timerY), this.timerY = 0));
4164
4148
  }
4165
4149
  }
4166
- class He {
4150
+ class Ae {
4167
4151
  constructor(t, e) {
4168
4152
  n(this, "root");
4169
4153
  n(this, "key");
@@ -4203,7 +4187,7 @@ class He {
4203
4187
  return null;
4204
4188
  }
4205
4189
  }
4206
- class De {
4190
+ class He {
4207
4191
  constructor(t) {
4208
4192
  n(this, "ctx");
4209
4193
  // 上下文
@@ -4258,13 +4242,13 @@ class De {
4258
4242
  const {
4259
4243
  config: { HEADER_HEIGHT: t, SCROLLER_TRACK_SIZE: e }
4260
4244
  } = this.ctx, i = this.ctx.database.getColumns();
4261
- this.columns = i, this.allCellHeaders = [], this.leafCellHeaders = [], this.fixedLeftCellHeaders = [], this.fixedRightCellHeaders = [], this.centerCellHeaders = [], this.visibleHeight = this.height, this.visibleColumns = Gt(i);
4245
+ this.columns = i, this.allCellHeaders = [], this.leafCellHeaders = [], this.fixedLeftCellHeaders = [], this.fixedRightCellHeaders = [], this.centerCellHeaders = [], this.visibleHeight = this.height, this.visibleColumns = $t(i);
4262
4246
  const s = rt(this.visibleColumns), o = Q(this.visibleColumns);
4263
4247
  this.height = t * s, this.width = o.reduce((f, x) => {
4264
4248
  const u = x.width || 100, { maxWidth: w, minWidth: m } = x;
4265
4249
  return w && u > w ? f + w : m && u < m ? f + m : f + u;
4266
4250
  }, 0), this.columnIndex = 0, this.resizeNum = 0;
4267
- const r = xe(nt(this.visibleColumns, s));
4251
+ const r = ue(nt(this.visibleColumns, s));
4268
4252
  this.render(r, 0), this.ctx.database.updateColIndexKeyMap(this.leafCellHeaders);
4269
4253
  const a = this.ctx.containerElement.getBoundingClientRect();
4270
4254
  this.resizeNum > 0 ? this.ctx.stageWidth = Math.floor(a.width) : this.ctx.stageWidth = Math.min(
@@ -4329,7 +4313,7 @@ class De {
4329
4313
  if (this.dragingCell && this.dragTarget) {
4330
4314
  const t = (c, d = {}) => (c.forEach((f, x) => {
4331
4315
  f.children && t(f.children, d), d[f.key] = x;
4332
- }), d), e = this.ctx.database.getColumns(), i = nt(e, rt(e)), s = new He(at(i), {
4316
+ }), d), e = this.ctx.database.getColumns(), i = nt(e, rt(e)), s = new Ae(i, {
4333
4317
  key: "key",
4334
4318
  // 节点唯一标识字段(对应我们之前的field)
4335
4319
  childrenKey: "children"
@@ -4435,7 +4419,7 @@ class De {
4435
4419
  const a = t[r], l = o * (a.rowspan || 0), c = o * (a.level || 0);
4436
4420
  let { minWidth: d, maxWidth: f } = a, x = a.width || 100;
4437
4421
  d && x < d && (x = d), f && x > f && (x = f), a.children && (x = Q(a.children).reduce((m, g) => m + ((g == null ? void 0 : g.width) || 100), 0));
4438
- const u = new Et(this.ctx, this.columnIndex, s, c, x, l, a);
4422
+ const u = new mt(this.ctx, this.columnIndex, s, c, x, l, a);
4439
4423
  this.ctx.database.setHeader(a.key, u), this.allCellHeaders.push(u), a.children || (this.leafCellHeaders.push(u), u.column.widthFillDisable || this.resizeNum++), a.fixed === "left" ? this.fixedLeftCellHeaders.push(u) : a.fixed === "right" ? this.fixedRightCellHeaders.push(u) : this.centerCellHeaders.push(u), !a.children && this.columnIndex++, a.children && this.render(a.children, s), s += x;
4440
4424
  }
4441
4425
  }
@@ -4554,7 +4538,7 @@ class De {
4554
4538
  }), this.drawBottomLine(), this.drawTipLine(), this.drawDragTip();
4555
4539
  }
4556
4540
  }
4557
- class Jt {
4541
+ class Zt {
4558
4542
  constructor(t, e, i = 0, s = 0, o = 0, r = 0, a, l = "body") {
4559
4543
  n(this, "ctx");
4560
4544
  n(this, "x", 0);
@@ -4575,7 +4559,7 @@ class Jt {
4575
4559
  update() {
4576
4560
  const { header: t } = this.ctx, e = [], i = [], s = [], o = [];
4577
4561
  t.renderLeafCellHeaders.forEach((r) => {
4578
- const a = new It(
4562
+ const a = new bt(
4579
4563
  this.ctx,
4580
4564
  this.rowIndex,
4581
4565
  r.colIndex,
@@ -4615,7 +4599,7 @@ class Jt {
4615
4599
  });
4616
4600
  }
4617
4601
  }
4618
- class Ne {
4602
+ class De {
4619
4603
  constructor(t) {
4620
4604
  n(this, "resizeTarget", null);
4621
4605
  //调整行大小的目标
@@ -4814,7 +4798,7 @@ class Ne {
4814
4798
  this.headIndex = Math.max(0, l), this.tailIndex = Math.min(this.ctx.maxRowIndex, c + 1), this.visibleRows = r.slice(this.headIndex, this.tailIndex + 1), this.ctx.body.headIndex = this.headIndex, this.ctx.body.tailIndex = this.tailIndex, this.ctx.body.visibleRows = this.visibleRows;
4815
4799
  const d = [];
4816
4800
  for (let f = 0; f < this.visibleRows.length; f++) {
4817
- const x = this.headIndex + f, u = this.visibleRows[f], { height: w, top: m } = this.ctx.database.getPositionForRowIndex(x), g = new Jt(this.ctx, x, 0, m + this.y, t.width, w, u);
4801
+ const x = this.headIndex + f, u = this.visibleRows[f], { height: w, top: m } = this.ctx.database.getPositionForRowIndex(x), g = new Zt(this.ctx, x, 0, m + this.y, t.width, w, u);
4818
4802
  d.push(g);
4819
4803
  }
4820
4804
  this.renderRows = d, this.ctx.body.renderRows = d;
@@ -4844,7 +4828,7 @@ class Ne {
4844
4828
  }), this.drawTipLine();
4845
4829
  }
4846
4830
  }
4847
- class ke {
4831
+ class Ne {
4848
4832
  constructor(t) {
4849
4833
  n(this, "ctx");
4850
4834
  n(this, "renderRows", []);
@@ -4899,7 +4883,7 @@ class ke {
4899
4883
  let e = this.y;
4900
4884
  const i = [];
4901
4885
  this.data.forEach((s, o) => {
4902
- const r = new Jt(this.ctx, o, 0, e, this.width, t, s, "footer");
4886
+ const r = new Zt(this.ctx, o, 0, e, this.width, t, s, "footer");
4903
4887
  e += t, i.push(r);
4904
4888
  }), this.renderRows = i, this.ctx.footer.renderRows = this.renderRows;
4905
4889
  }
@@ -4925,7 +4909,7 @@ class ke {
4925
4909
  }), this.drawTopLine();
4926
4910
  }
4927
4911
  }
4928
- class Xe {
4912
+ class ke {
4929
4913
  constructor(t) {
4930
4914
  n(this, "isCut", !1);
4931
4915
  n(this, "isMultipleRow", !1);
@@ -5231,7 +5215,7 @@ class Xe {
5231
5215
  return;
5232
5216
  t = a.data;
5233
5217
  }
5234
- const o = me(t);
5218
+ const o = we(t);
5235
5219
  navigator.clipboard ? navigator.clipboard.writeText(o).then(() => {
5236
5220
  this.ctx.selector.xArrCopy = this.ctx.selector.xArr.slice(), this.ctx.selector.yArrCopy = this.ctx.selector.yArr.slice(), this.ctx.emit("copyChange", {
5237
5221
  xArr: this.ctx.selector.xArrCopy,
@@ -5276,7 +5260,7 @@ class Xe {
5276
5260
  if (this.ctx.selector.enable && t) {
5277
5261
  const e = this.ctx.selector.yArr[0], i = this.ctx.selector.xArr[0], s = /* @__PURE__ */ new Set();
5278
5262
  navigator.clipboard.readText().then(async (o) => {
5279
- let r = we(o);
5263
+ let r = ge(o);
5280
5264
  const a = [i, i + r[0].length - 1], l = [e, e + r.length - 1], [c, d] = l, [f, x] = a, u = d - this.ctx.maxRowIndex, w = x - this.ctx.maxColIndex;
5281
5265
  (u > 0 || w > 0) && this.ctx.emit("onPastedDataOverflow", {
5282
5266
  maxY: d,
@@ -5423,7 +5407,7 @@ class Xe {
5423
5407
  destroy() {
5424
5408
  }
5425
5409
  }
5426
- class Be {
5410
+ class Xe {
5427
5411
  constructor(t) {
5428
5412
  n(this, "ctx");
5429
5413
  n(this, "maxColRowCell");
@@ -5566,20 +5550,20 @@ class Be {
5566
5550
  destroy() {
5567
5551
  }
5568
5552
  }
5569
- const q = Math.min, z = Math.max, lt = Math.round, ot = Math.floor, Y = (h) => ({
5553
+ const j = Math.min, z = Math.max, at = Math.round, ot = Math.floor, Y = (h) => ({
5570
5554
  x: h,
5571
5555
  y: h
5572
- }), Ye = {
5556
+ }), Be = {
5573
5557
  left: "right",
5574
5558
  right: "left",
5575
5559
  bottom: "top",
5576
5560
  top: "bottom"
5577
- }, Ke = {
5561
+ }, Ye = {
5578
5562
  start: "end",
5579
5563
  end: "start"
5580
5564
  };
5581
- function pt(h, t, e) {
5582
- return z(h, q(t, e));
5565
+ function Et(h, t, e) {
5566
+ return z(h, j(t, e));
5583
5567
  }
5584
5568
  function et(h, t) {
5585
5569
  return typeof h == "function" ? h(t) : h;
@@ -5590,54 +5574,54 @@ function $(h) {
5590
5574
  function it(h) {
5591
5575
  return h.split("-")[1];
5592
5576
  }
5593
- function Qt(h) {
5577
+ function Jt(h) {
5594
5578
  return h === "x" ? "y" : "x";
5595
5579
  }
5596
- function vt(h) {
5580
+ function Rt(h) {
5597
5581
  return h === "y" ? "height" : "width";
5598
5582
  }
5599
- const Fe = /* @__PURE__ */ new Set(["top", "bottom"]);
5583
+ const Ke = /* @__PURE__ */ new Set(["top", "bottom"]);
5600
5584
  function V(h) {
5601
- return Fe.has($(h)) ? "y" : "x";
5585
+ return Ke.has($(h)) ? "y" : "x";
5602
5586
  }
5603
- function _t(h) {
5604
- return Qt(V(h));
5587
+ function vt(h) {
5588
+ return Jt(V(h));
5605
5589
  }
5606
- function We(h, t, e) {
5590
+ function Fe(h, t, e) {
5607
5591
  e === void 0 && (e = !1);
5608
- const i = it(h), s = _t(h), o = vt(s);
5592
+ const i = it(h), s = vt(h), o = Rt(s);
5609
5593
  let r = s === "x" ? i === (e ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
5610
- return t.reference[o] > t.floating[o] && (r = ct(r)), [r, ct(r)];
5594
+ return t.reference[o] > t.floating[o] && (r = lt(r)), [r, lt(r)];
5611
5595
  }
5612
- function Ve(h) {
5613
- const t = ct(h);
5614
- return [Ct(h), t, Ct(t)];
5596
+ function We(h) {
5597
+ const t = lt(h);
5598
+ return [pt(h), t, pt(t)];
5615
5599
  }
5616
- function Ct(h) {
5617
- return h.replace(/start|end/g, (t) => Ke[t]);
5600
+ function pt(h) {
5601
+ return h.replace(/start|end/g, (t) => Ye[t]);
5618
5602
  }
5619
- const Yt = ["left", "right"], Kt = ["right", "left"], Pe = ["top", "bottom"], ze = ["bottom", "top"];
5620
- function $e(h, t, e) {
5603
+ const Bt = ["left", "right"], Yt = ["right", "left"], Ve = ["top", "bottom"], Pe = ["bottom", "top"];
5604
+ function ze(h, t, e) {
5621
5605
  switch (h) {
5622
5606
  case "top":
5623
5607
  case "bottom":
5624
- return e ? t ? Kt : Yt : t ? Yt : Kt;
5608
+ return e ? t ? Yt : Bt : t ? Bt : Yt;
5625
5609
  case "left":
5626
5610
  case "right":
5627
- return t ? Pe : ze;
5611
+ return t ? Ve : Pe;
5628
5612
  default:
5629
5613
  return [];
5630
5614
  }
5631
5615
  }
5632
- function Ge(h, t, e, i) {
5616
+ function $e(h, t, e, i) {
5633
5617
  const s = it(h);
5634
- let o = $e($(h), e === "start", i);
5635
- return s && (o = o.map((r) => r + "-" + s), t && (o = o.concat(o.map(Ct)))), o;
5618
+ let o = ze($(h), e === "start", i);
5619
+ return s && (o = o.map((r) => r + "-" + s), t && (o = o.concat(o.map(pt)))), o;
5636
5620
  }
5637
- function ct(h) {
5638
- return h.replace(/left|right|bottom|top/g, (t) => Ye[t]);
5621
+ function lt(h) {
5622
+ return h.replace(/left|right|bottom|top/g, (t) => Be[t]);
5639
5623
  }
5640
- function Ue(h) {
5624
+ function Ge(h) {
5641
5625
  return {
5642
5626
  top: 0,
5643
5627
  right: 0,
@@ -5646,15 +5630,15 @@ function Ue(h) {
5646
5630
  ...h
5647
5631
  };
5648
5632
  }
5649
- function te(h) {
5650
- return typeof h != "number" ? Ue(h) : {
5633
+ function Qt(h) {
5634
+ return typeof h != "number" ? Ge(h) : {
5651
5635
  top: h,
5652
5636
  right: h,
5653
5637
  bottom: h,
5654
5638
  left: h
5655
5639
  };
5656
5640
  }
5657
- function ht(h) {
5641
+ function ct(h) {
5658
5642
  const {
5659
5643
  x: t,
5660
5644
  y: e,
@@ -5672,12 +5656,12 @@ function ht(h) {
5672
5656
  y: e
5673
5657
  };
5674
5658
  }
5675
- function Ft(h, t, e) {
5659
+ function Kt(h, t, e) {
5676
5660
  let {
5677
5661
  reference: i,
5678
5662
  floating: s
5679
5663
  } = h;
5680
- const o = V(t), r = _t(t), a = vt(r), l = $(t), c = o === "y", d = i.x + i.width / 2 - s.width / 2, f = i.y + i.height / 2 - s.height / 2, x = i[a] / 2 - s[a] / 2;
5664
+ const o = V(t), r = vt(t), a = Rt(r), l = $(t), c = o === "y", d = i.x + i.width / 2 - s.width / 2, f = i.y + i.height / 2 - s.height / 2, x = i[a] / 2 - s[a] / 2;
5681
5665
  let u;
5682
5666
  switch (l) {
5683
5667
  case "top":
@@ -5720,7 +5704,7 @@ function Ft(h, t, e) {
5720
5704
  }
5721
5705
  return u;
5722
5706
  }
5723
- const qe = async (h, t, e) => {
5707
+ const Ue = async (h, t, e) => {
5724
5708
  const {
5725
5709
  placement: i = "bottom",
5726
5710
  strategy: s = "absolute",
@@ -5734,7 +5718,7 @@ const qe = async (h, t, e) => {
5734
5718
  }), {
5735
5719
  x: d,
5736
5720
  y: f
5737
- } = Ft(c, i, l), x = i, u = {}, w = 0;
5721
+ } = Kt(c, i, l), x = i, u = {}, w = 0;
5738
5722
  for (let m = 0; m < a.length; m++) {
5739
5723
  const {
5740
5724
  name: g,
@@ -5771,7 +5755,7 @@ const qe = async (h, t, e) => {
5771
5755
  }) : y.rects), {
5772
5756
  x: d,
5773
5757
  y: f
5774
- } = Ft(c, x, l)), m = -1);
5758
+ } = Kt(c, x, l)), m = -1);
5775
5759
  }
5776
5760
  return {
5777
5761
  x: d,
@@ -5781,7 +5765,7 @@ const qe = async (h, t, e) => {
5781
5765
  middlewareData: u
5782
5766
  };
5783
5767
  };
5784
- async function ee(h, t) {
5768
+ async function te(h, t) {
5785
5769
  var e;
5786
5770
  t === void 0 && (t = {});
5787
5771
  const {
@@ -5797,7 +5781,7 @@ async function ee(h, t) {
5797
5781
  elementContext: f = "floating",
5798
5782
  altBoundary: x = !1,
5799
5783
  padding: u = 0
5800
- } = et(t, h), w = te(u), g = a[x ? f === "floating" ? "reference" : "floating" : f], E = ht(await o.getClippingRect({
5784
+ } = et(t, h), w = Qt(u), g = a[x ? f === "floating" ? "reference" : "floating" : f], E = ct(await o.getClippingRect({
5801
5785
  element: (e = await (o.isElement == null ? void 0 : o.isElement(g))) == null || e ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
5802
5786
  boundary: c,
5803
5787
  rootBoundary: d,
@@ -5813,7 +5797,7 @@ async function ee(h, t) {
5813
5797
  } : {
5814
5798
  x: 1,
5815
5799
  y: 1
5816
- }, y = ht(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
5800
+ }, y = ct(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
5817
5801
  elements: a,
5818
5802
  rect: p,
5819
5803
  offsetParent: C,
@@ -5826,7 +5810,7 @@ async function ee(h, t) {
5826
5810
  right: (y.right - E.right + w.right) / b.x
5827
5811
  };
5828
5812
  }
5829
- const Ze = (h) => ({
5813
+ const je = (h) => ({
5830
5814
  name: "arrow",
5831
5815
  options: h,
5832
5816
  async fn(t) {
@@ -5844,13 +5828,13 @@ const Ze = (h) => ({
5844
5828
  } = et(h, t) || {};
5845
5829
  if (c == null)
5846
5830
  return {};
5847
- const f = te(d), x = {
5831
+ const f = Qt(d), x = {
5848
5832
  x: e,
5849
5833
  y: i
5850
- }, u = _t(s), w = vt(u), m = await r.getDimensions(c), g = u === "y", E = g ? "top" : "left", p = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", b = o.reference[w] + o.reference[u] - x[u] - o.floating[w], y = x[u] - o.reference[u], v = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
5834
+ }, u = vt(s), w = Rt(u), m = await r.getDimensions(c), g = u === "y", E = g ? "top" : "left", p = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", b = o.reference[w] + o.reference[u] - x[u] - o.floating[w], y = x[u] - o.reference[u], v = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
5851
5835
  let _ = v ? v[C] : 0;
5852
5836
  (!_ || !await (r.isElement == null ? void 0 : r.isElement(v))) && (_ = a.floating[C] || o.floating[w]);
5853
- const S = b / 2 - y / 2, I = _ / 2 - m[w] / 2 - 1, R = q(f[E], I), T = q(f[p], I), O = R, M = _ - m[w] - T, L = _ / 2 - m[w] / 2 + S, A = pt(O, L, M), D = !l.arrow && it(s) != null && L !== A && o.reference[w] / 2 - (L < O ? R : T) - m[w] / 2 < 0, H = D ? L < O ? L - O : L - M : 0;
5837
+ const S = b / 2 - y / 2, I = _ / 2 - m[w] / 2 - 1, R = j(f[E], I), T = j(f[p], I), O = R, M = _ - m[w] - T, L = _ / 2 - m[w] / 2 + S, A = Et(O, L, M), D = !l.arrow && it(s) != null && L !== A && o.reference[w] / 2 - (L < O ? R : T) - m[w] / 2 < 0, H = D ? L < O ? L - O : L - M : 0;
5854
5838
  return {
5855
5839
  [u]: x[u] + H,
5856
5840
  data: {
@@ -5863,7 +5847,7 @@ const Ze = (h) => ({
5863
5847
  reset: D
5864
5848
  };
5865
5849
  }
5866
- }), je = function(h) {
5850
+ }), qe = function(h) {
5867
5851
  return h === void 0 && (h = {}), {
5868
5852
  name: "flip",
5869
5853
  options: h,
@@ -5887,12 +5871,12 @@ const Ze = (h) => ({
5887
5871
  } = et(h, t);
5888
5872
  if ((e = o.arrow) != null && e.alignmentOffset)
5889
5873
  return {};
5890
- const E = $(s), p = V(a), C = $(a) === a, b = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = x || (C || !m ? [ct(a)] : Ve(a)), v = w !== "none";
5891
- !x && v && y.push(...Ge(a, m, w, b));
5892
- const _ = [a, ...y], S = await ee(t, g), I = [];
5874
+ const E = $(s), p = V(a), C = $(a) === a, b = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), y = x || (C || !m ? [lt(a)] : We(a)), v = w !== "none";
5875
+ !x && v && y.push(...$e(a, m, w, b));
5876
+ const _ = [a, ...y], S = await te(t, g), I = [];
5893
5877
  let R = ((i = o.flip) == null ? void 0 : i.overflows) || [];
5894
5878
  if (d && I.push(S[E]), f) {
5895
- const L = We(s, r, b);
5879
+ const L = Fe(s, r, b);
5896
5880
  I.push(S[L[0]], S[L[1]]);
5897
5881
  }
5898
5882
  if (R = [...R, {
@@ -5926,7 +5910,7 @@ const Ze = (h) => ({
5926
5910
  W === "y";
5927
5911
  }
5928
5912
  return !0;
5929
- }).map((k) => [k.placement, k.overflows.filter((W) => W > 0).reduce((W, he) => W + he, 0)]).sort((k, W) => k[1] - W[1])[0]) == null ? void 0 : M[0];
5913
+ }).map((k) => [k.placement, k.overflows.filter((W) => W > 0).reduce((W, ce) => W + ce, 0)]).sort((k, W) => k[1] - W[1])[0]) == null ? void 0 : M[0];
5930
5914
  H && (D = H);
5931
5915
  break;
5932
5916
  }
@@ -5944,13 +5928,13 @@ const Ze = (h) => ({
5944
5928
  return {};
5945
5929
  }
5946
5930
  };
5947
- }, Je = /* @__PURE__ */ new Set(["left", "top"]);
5948
- async function Qe(h, t) {
5931
+ }, Ze = /* @__PURE__ */ new Set(["left", "top"]);
5932
+ async function Je(h, t) {
5949
5933
  const {
5950
5934
  placement: e,
5951
5935
  platform: i,
5952
5936
  elements: s
5953
- } = h, o = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), r = $(e), a = it(e), l = V(e) === "y", c = Je.has(r) ? -1 : 1, d = o && l ? -1 : 1, f = et(t, h);
5937
+ } = h, o = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), r = $(e), a = it(e), l = V(e) === "y", c = Ze.has(r) ? -1 : 1, d = o && l ? -1 : 1, f = et(t, h);
5954
5938
  let {
5955
5939
  mainAxis: x,
5956
5940
  crossAxis: u,
@@ -5972,7 +5956,7 @@ async function Qe(h, t) {
5972
5956
  y: u * d
5973
5957
  };
5974
5958
  }
5975
- const ti = function(h) {
5959
+ const Qe = function(h) {
5976
5960
  return h === void 0 && (h = 0), {
5977
5961
  name: "offset",
5978
5962
  options: h,
@@ -5983,7 +5967,7 @@ const ti = function(h) {
5983
5967
  y: o,
5984
5968
  placement: r,
5985
5969
  middlewareData: a
5986
- } = t, l = await Qe(t, h);
5970
+ } = t, l = await Je(t, h);
5987
5971
  return r === ((e = a.offset) == null ? void 0 : e.placement) && (i = a.arrow) != null && i.alignmentOffset ? {} : {
5988
5972
  x: s + l.x,
5989
5973
  y: o + l.y,
@@ -5994,7 +5978,7 @@ const ti = function(h) {
5994
5978
  };
5995
5979
  }
5996
5980
  };
5997
- }, ei = function(h) {
5981
+ }, ti = function(h) {
5998
5982
  return h === void 0 && (h = {}), {
5999
5983
  name: "shift",
6000
5984
  options: h,
@@ -6022,15 +6006,15 @@ const ti = function(h) {
6022
6006
  } = et(h, t), c = {
6023
6007
  x: e,
6024
6008
  y: i
6025
- }, d = await ee(t, l), f = V($(s)), x = Qt(f);
6009
+ }, d = await te(t, l), f = V($(s)), x = Jt(f);
6026
6010
  let u = c[x], w = c[f];
6027
6011
  if (o) {
6028
6012
  const g = x === "y" ? "top" : "left", E = x === "y" ? "bottom" : "right", p = u + d[g], C = u - d[E];
6029
- u = pt(p, u, C);
6013
+ u = Et(p, u, C);
6030
6014
  }
6031
6015
  if (r) {
6032
6016
  const g = f === "y" ? "top" : "left", E = f === "y" ? "bottom" : "right", p = w + d[g], C = w - d[E];
6033
- w = pt(p, w, C);
6017
+ w = Et(p, w, C);
6034
6018
  }
6035
6019
  const m = a.fn({
6036
6020
  ...t,
@@ -6051,11 +6035,11 @@ const ti = function(h) {
6051
6035
  }
6052
6036
  };
6053
6037
  };
6054
- function xt() {
6038
+ function ut() {
6055
6039
  return typeof window < "u";
6056
6040
  }
6057
- function j(h) {
6058
- return ie(h) ? (h.nodeName || "").toLowerCase() : "#document";
6041
+ function Z(h) {
6042
+ return ee(h) ? (h.nodeName || "").toLowerCase() : "#document";
6059
6043
  }
6060
6044
  function N(h) {
6061
6045
  var t;
@@ -6063,21 +6047,21 @@ function N(h) {
6063
6047
  }
6064
6048
  function F(h) {
6065
6049
  var t;
6066
- return (t = (ie(h) ? h.ownerDocument : h.document) || window.document) == null ? void 0 : t.documentElement;
6050
+ return (t = (ee(h) ? h.ownerDocument : h.document) || window.document) == null ? void 0 : t.documentElement;
6067
6051
  }
6068
- function ie(h) {
6069
- return xt() ? h instanceof Node || h instanceof N(h).Node : !1;
6052
+ function ee(h) {
6053
+ return ut() ? h instanceof Node || h instanceof N(h).Node : !1;
6070
6054
  }
6071
6055
  function X(h) {
6072
- return xt() ? h instanceof Element || h instanceof N(h).Element : !1;
6056
+ return ut() ? h instanceof Element || h instanceof N(h).Element : !1;
6073
6057
  }
6074
6058
  function K(h) {
6075
- return xt() ? h instanceof HTMLElement || h instanceof N(h).HTMLElement : !1;
6059
+ return ut() ? h instanceof HTMLElement || h instanceof N(h).HTMLElement : !1;
6076
6060
  }
6077
- function Wt(h) {
6078
- return !xt() || typeof ShadowRoot > "u" ? !1 : h instanceof ShadowRoot || h instanceof N(h).ShadowRoot;
6061
+ function Ft(h) {
6062
+ return !ut() || typeof ShadowRoot > "u" ? !1 : h instanceof ShadowRoot || h instanceof N(h).ShadowRoot;
6079
6063
  }
6080
- const ii = /* @__PURE__ */ new Set(["inline", "contents"]);
6064
+ const ei = /* @__PURE__ */ new Set(["inline", "contents"]);
6081
6065
  function st(h) {
6082
6066
  const {
6083
6067
  overflow: t,
@@ -6085,15 +6069,15 @@ function st(h) {
6085
6069
  overflowY: i,
6086
6070
  display: s
6087
6071
  } = B(h);
6088
- return /auto|scroll|overlay|hidden|clip/.test(t + i + e) && !ii.has(s);
6072
+ return /auto|scroll|overlay|hidden|clip/.test(t + i + e) && !ei.has(s);
6089
6073
  }
6090
- const si = /* @__PURE__ */ new Set(["table", "td", "th"]);
6091
- function oi(h) {
6092
- return si.has(j(h));
6074
+ const ii = /* @__PURE__ */ new Set(["table", "td", "th"]);
6075
+ function si(h) {
6076
+ return ii.has(Z(h));
6093
6077
  }
6094
- const ri = [":popover-open", ":modal"];
6095
- function gt(h) {
6096
- return ri.some((t) => {
6078
+ const oi = [":popover-open", ":modal"];
6079
+ function xt(h) {
6080
+ return oi.some((t) => {
6097
6081
  try {
6098
6082
  return h.matches(t);
6099
6083
  } catch {
@@ -6101,33 +6085,33 @@ function gt(h) {
6101
6085
  }
6102
6086
  });
6103
6087
  }
6104
- const ni = ["transform", "translate", "scale", "rotate", "perspective"], ai = ["transform", "translate", "scale", "rotate", "perspective", "filter"], li = ["paint", "layout", "strict", "content"];
6105
- function St(h) {
6106
- const t = Tt(), e = X(h) ? B(h) : h;
6107
- return ni.some((i) => e[i] ? e[i] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ai.some((i) => (e.willChange || "").includes(i)) || li.some((i) => (e.contain || "").includes(i));
6088
+ const ri = ["transform", "translate", "scale", "rotate", "perspective"], ni = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ai = ["paint", "layout", "strict", "content"];
6089
+ function _t(h) {
6090
+ const t = St(), e = X(h) ? B(h) : h;
6091
+ return ri.some((i) => e[i] ? e[i] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ni.some((i) => (e.willChange || "").includes(i)) || ai.some((i) => (e.contain || "").includes(i));
6108
6092
  }
6109
- function ci(h) {
6093
+ function li(h) {
6110
6094
  let t = P(h);
6111
- for (; K(t) && !Z(t); ) {
6112
- if (St(t))
6095
+ for (; K(t) && !q(t); ) {
6096
+ if (_t(t))
6113
6097
  return t;
6114
- if (gt(t))
6098
+ if (xt(t))
6115
6099
  return null;
6116
6100
  t = P(t);
6117
6101
  }
6118
6102
  return null;
6119
6103
  }
6120
- function Tt() {
6104
+ function St() {
6121
6105
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
6122
6106
  }
6123
- const hi = /* @__PURE__ */ new Set(["html", "body", "#document"]);
6124
- function Z(h) {
6125
- return hi.has(j(h));
6107
+ const ci = /* @__PURE__ */ new Set(["html", "body", "#document"]);
6108
+ function q(h) {
6109
+ return ci.has(Z(h));
6126
6110
  }
6127
6111
  function B(h) {
6128
6112
  return N(h).getComputedStyle(h);
6129
6113
  }
6130
- function wt(h) {
6114
+ function gt(h) {
6131
6115
  return X(h) ? {
6132
6116
  scrollLeft: h.scrollLeft,
6133
6117
  scrollTop: h.scrollTop
@@ -6137,118 +6121,118 @@ function wt(h) {
6137
6121
  };
6138
6122
  }
6139
6123
  function P(h) {
6140
- if (j(h) === "html")
6124
+ if (Z(h) === "html")
6141
6125
  return h;
6142
6126
  const t = (
6143
6127
  // Step into the shadow DOM of the parent of a slotted node.
6144
6128
  h.assignedSlot || // DOM Element detected.
6145
6129
  h.parentNode || // ShadowRoot detected.
6146
- Wt(h) && h.host || // Fallback.
6130
+ Ft(h) && h.host || // Fallback.
6147
6131
  F(h)
6148
6132
  );
6149
- return Wt(t) ? t.host : t;
6133
+ return Ft(t) ? t.host : t;
6150
6134
  }
6151
- function se(h) {
6135
+ function ie(h) {
6152
6136
  const t = P(h);
6153
- return Z(t) ? h.ownerDocument ? h.ownerDocument.body : h.body : K(t) && st(t) ? t : se(t);
6137
+ return q(t) ? h.ownerDocument ? h.ownerDocument.body : h.body : K(t) && st(t) ? t : ie(t);
6154
6138
  }
6155
6139
  function tt(h, t, e) {
6156
6140
  var i;
6157
6141
  t === void 0 && (t = []), e === void 0 && (e = !0);
6158
- const s = se(h), o = s === ((i = h.ownerDocument) == null ? void 0 : i.body), r = N(s);
6142
+ const s = ie(h), o = s === ((i = h.ownerDocument) == null ? void 0 : i.body), r = N(s);
6159
6143
  if (o) {
6160
- const a = yt(r);
6144
+ const a = Ct(r);
6161
6145
  return t.concat(r, r.visualViewport || [], st(s) ? s : [], a && e ? tt(a) : []);
6162
6146
  }
6163
6147
  return t.concat(s, tt(s, [], e));
6164
6148
  }
6165
- function yt(h) {
6149
+ function Ct(h) {
6166
6150
  return h.parent && Object.getPrototypeOf(h.parent) ? h.frameElement : null;
6167
6151
  }
6168
- function oe(h) {
6152
+ function se(h) {
6169
6153
  const t = B(h);
6170
6154
  let e = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
6171
- const s = K(h), o = s ? h.offsetWidth : e, r = s ? h.offsetHeight : i, a = lt(e) !== o || lt(i) !== r;
6155
+ const s = K(h), o = s ? h.offsetWidth : e, r = s ? h.offsetHeight : i, a = at(e) !== o || at(i) !== r;
6172
6156
  return a && (e = o, i = r), {
6173
6157
  width: e,
6174
6158
  height: i,
6175
6159
  $: a
6176
6160
  };
6177
6161
  }
6178
- function Ot(h) {
6162
+ function Tt(h) {
6179
6163
  return X(h) ? h : h.contextElement;
6180
6164
  }
6181
6165
  function U(h) {
6182
- const t = Ot(h);
6166
+ const t = Tt(h);
6183
6167
  if (!K(t))
6184
6168
  return Y(1);
6185
6169
  const e = t.getBoundingClientRect(), {
6186
6170
  width: i,
6187
6171
  height: s,
6188
6172
  $: o
6189
- } = oe(t);
6190
- let r = (o ? lt(e.width) : e.width) / i, a = (o ? lt(e.height) : e.height) / s;
6173
+ } = se(t);
6174
+ let r = (o ? at(e.width) : e.width) / i, a = (o ? at(e.height) : e.height) / s;
6191
6175
  return (!r || !Number.isFinite(r)) && (r = 1), (!a || !Number.isFinite(a)) && (a = 1), {
6192
6176
  x: r,
6193
6177
  y: a
6194
6178
  };
6195
6179
  }
6196
- const di = /* @__PURE__ */ Y(0);
6197
- function re(h) {
6180
+ const hi = /* @__PURE__ */ Y(0);
6181
+ function oe(h) {
6198
6182
  const t = N(h);
6199
- return !Tt() || !t.visualViewport ? di : {
6183
+ return !St() || !t.visualViewport ? hi : {
6200
6184
  x: t.visualViewport.offsetLeft,
6201
6185
  y: t.visualViewport.offsetTop
6202
6186
  };
6203
6187
  }
6204
- function fi(h, t, e) {
6188
+ function di(h, t, e) {
6205
6189
  return t === void 0 && (t = !1), !e || t && e !== N(h) ? !1 : t;
6206
6190
  }
6207
6191
  function G(h, t, e, i) {
6208
6192
  t === void 0 && (t = !1), e === void 0 && (e = !1);
6209
- const s = h.getBoundingClientRect(), o = Ot(h);
6193
+ const s = h.getBoundingClientRect(), o = Tt(h);
6210
6194
  let r = Y(1);
6211
6195
  t && (i ? X(i) && (r = U(i)) : r = U(h));
6212
- const a = fi(o, e, i) ? re(o) : Y(0);
6196
+ const a = di(o, e, i) ? oe(o) : Y(0);
6213
6197
  let l = (s.left + a.x) / r.x, c = (s.top + a.y) / r.y, d = s.width / r.x, f = s.height / r.y;
6214
6198
  if (o) {
6215
6199
  const x = N(o), u = i && X(i) ? N(i) : i;
6216
- let w = x, m = yt(w);
6200
+ let w = x, m = Ct(w);
6217
6201
  for (; m && i && u !== w; ) {
6218
6202
  const g = U(m), E = m.getBoundingClientRect(), p = B(m), C = E.left + (m.clientLeft + parseFloat(p.paddingLeft)) * g.x, b = E.top + (m.clientTop + parseFloat(p.paddingTop)) * g.y;
6219
- l *= g.x, c *= g.y, d *= g.x, f *= g.y, l += C, c += b, w = N(m), m = yt(w);
6203
+ l *= g.x, c *= g.y, d *= g.x, f *= g.y, l += C, c += b, w = N(m), m = Ct(w);
6220
6204
  }
6221
6205
  }
6222
- return ht({
6206
+ return ct({
6223
6207
  width: d,
6224
6208
  height: f,
6225
6209
  x: l,
6226
6210
  y: c
6227
6211
  });
6228
6212
  }
6229
- function Lt(h, t) {
6230
- const e = wt(h).scrollLeft;
6213
+ function Ot(h, t) {
6214
+ const e = gt(h).scrollLeft;
6231
6215
  return t ? t.left + e : G(F(h)).left + e;
6232
6216
  }
6233
- function ne(h, t, e) {
6217
+ function re(h, t, e) {
6234
6218
  e === void 0 && (e = !1);
6235
6219
  const i = h.getBoundingClientRect(), s = i.left + t.scrollLeft - (e ? 0 : (
6236
6220
  // RTL <body> scrollbar.
6237
- Lt(h, i)
6221
+ Ot(h, i)
6238
6222
  )), o = i.top + t.scrollTop;
6239
6223
  return {
6240
6224
  x: s,
6241
6225
  y: o
6242
6226
  };
6243
6227
  }
6244
- function ui(h) {
6228
+ function fi(h) {
6245
6229
  let {
6246
6230
  elements: t,
6247
6231
  rect: e,
6248
6232
  offsetParent: i,
6249
6233
  strategy: s
6250
6234
  } = h;
6251
- const o = s === "fixed", r = F(i), a = t ? gt(t.floating) : !1;
6235
+ const o = s === "fixed", r = F(i), a = t ? xt(t.floating) : !1;
6252
6236
  if (i === r || a && o)
6253
6237
  return e;
6254
6238
  let l = {
@@ -6256,11 +6240,11 @@ function ui(h) {
6256
6240
  scrollTop: 0
6257
6241
  }, c = Y(1);
6258
6242
  const d = Y(0), f = K(i);
6259
- if ((f || !f && !o) && ((j(i) !== "body" || st(r)) && (l = wt(i)), K(i))) {
6243
+ if ((f || !f && !o) && ((Z(i) !== "body" || st(r)) && (l = gt(i)), K(i))) {
6260
6244
  const u = G(i);
6261
6245
  c = U(i), d.x = u.x + i.clientLeft, d.y = u.y + i.clientTop;
6262
6246
  }
6263
- const x = r && !f && !o ? ne(r, l, !0) : Y(0);
6247
+ const x = r && !f && !o ? re(r, l, !0) : Y(0);
6264
6248
  return {
6265
6249
  width: e.width * c.x,
6266
6250
  height: e.height * c.y,
@@ -6268,12 +6252,12 @@ function ui(h) {
6268
6252
  y: e.y * c.y - l.scrollTop * c.y + d.y + x.y
6269
6253
  };
6270
6254
  }
6271
- function xi(h) {
6255
+ function ui(h) {
6272
6256
  return Array.from(h.getClientRects());
6273
6257
  }
6274
- function gi(h) {
6275
- const t = F(h), e = wt(h), i = h.ownerDocument.body, s = z(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), o = z(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
6276
- let r = -e.scrollLeft + Lt(h);
6258
+ function xi(h) {
6259
+ const t = F(h), e = gt(h), i = h.ownerDocument.body, s = z(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), o = z(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
6260
+ let r = -e.scrollLeft + Ot(h);
6277
6261
  const a = -e.scrollTop;
6278
6262
  return B(i).direction === "rtl" && (r += z(t.clientWidth, i.clientWidth) - s), {
6279
6263
  width: s,
@@ -6282,12 +6266,12 @@ function gi(h) {
6282
6266
  y: a
6283
6267
  };
6284
6268
  }
6285
- function wi(h, t) {
6269
+ function gi(h, t) {
6286
6270
  const e = N(h), i = F(h), s = e.visualViewport;
6287
6271
  let o = i.clientWidth, r = i.clientHeight, a = 0, l = 0;
6288
6272
  if (s) {
6289
6273
  o = s.width, r = s.height;
6290
- const c = Tt();
6274
+ const c = St();
6291
6275
  (!c || c && t === "fixed") && (a = s.offsetLeft, l = s.offsetTop);
6292
6276
  }
6293
6277
  return {
@@ -6297,8 +6281,8 @@ function wi(h, t) {
6297
6281
  y: l
6298
6282
  };
6299
6283
  }
6300
- const mi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
6301
- function Ei(h, t) {
6284
+ const wi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
6285
+ function mi(h, t) {
6302
6286
  const e = G(h, !0, t === "fixed"), i = e.top + h.clientTop, s = e.left + h.clientLeft, o = K(h) ? U(h) : Y(1), r = h.clientWidth * o.x, a = h.clientHeight * o.y, l = s * o.x, c = i * o.y;
6303
6287
  return {
6304
6288
  width: r,
@@ -6307,16 +6291,16 @@ function Ei(h, t) {
6307
6291
  y: c
6308
6292
  };
6309
6293
  }
6310
- function Vt(h, t, e) {
6294
+ function Wt(h, t, e) {
6311
6295
  let i;
6312
6296
  if (t === "viewport")
6313
- i = wi(h, e);
6297
+ i = gi(h, e);
6314
6298
  else if (t === "document")
6315
- i = gi(F(h));
6299
+ i = xi(F(h));
6316
6300
  else if (X(t))
6317
- i = Ei(t, e);
6301
+ i = mi(t, e);
6318
6302
  else {
6319
- const s = re(h);
6303
+ const s = oe(h);
6320
6304
  i = {
6321
6305
  x: t.x - s.x,
6322
6306
  y: t.y - s.y,
@@ -6324,36 +6308,36 @@ function Vt(h, t, e) {
6324
6308
  height: t.height
6325
6309
  };
6326
6310
  }
6327
- return ht(i);
6311
+ return ct(i);
6328
6312
  }
6329
- function ae(h, t) {
6313
+ function ne(h, t) {
6330
6314
  const e = P(h);
6331
- return e === t || !X(e) || Z(e) ? !1 : B(e).position === "fixed" || ae(e, t);
6315
+ return e === t || !X(e) || q(e) ? !1 : B(e).position === "fixed" || ne(e, t);
6332
6316
  }
6333
- function pi(h, t) {
6317
+ function Ei(h, t) {
6334
6318
  const e = t.get(h);
6335
6319
  if (e)
6336
6320
  return e;
6337
- let i = tt(h, [], !1).filter((a) => X(a) && j(a) !== "body"), s = null;
6321
+ let i = tt(h, [], !1).filter((a) => X(a) && Z(a) !== "body"), s = null;
6338
6322
  const o = B(h).position === "fixed";
6339
6323
  let r = o ? P(h) : h;
6340
- for (; X(r) && !Z(r); ) {
6341
- const a = B(r), l = St(r);
6342
- !l && a.position === "fixed" && (s = null), (o ? !l && !s : !l && a.position === "static" && !!s && mi.has(s.position) || st(r) && !l && ae(h, r)) ? i = i.filter((d) => d !== r) : s = a, r = P(r);
6324
+ for (; X(r) && !q(r); ) {
6325
+ const a = B(r), l = _t(r);
6326
+ !l && a.position === "fixed" && (s = null), (o ? !l && !s : !l && a.position === "static" && !!s && wi.has(s.position) || st(r) && !l && ne(h, r)) ? i = i.filter((d) => d !== r) : s = a, r = P(r);
6343
6327
  }
6344
6328
  return t.set(h, i), i;
6345
6329
  }
6346
- function Ci(h) {
6330
+ function pi(h) {
6347
6331
  let {
6348
6332
  element: t,
6349
6333
  boundary: e,
6350
6334
  rootBoundary: i,
6351
6335
  strategy: s
6352
6336
  } = h;
6353
- const r = [...e === "clippingAncestors" ? gt(t) ? [] : pi(t, this._c) : [].concat(e), i], a = r[0], l = r.reduce((c, d) => {
6354
- const f = Vt(t, d, s);
6355
- return c.top = z(f.top, c.top), c.right = q(f.right, c.right), c.bottom = q(f.bottom, c.bottom), c.left = z(f.left, c.left), c;
6356
- }, Vt(t, a, s));
6337
+ const r = [...e === "clippingAncestors" ? xt(t) ? [] : Ei(t, this._c) : [].concat(e), i], a = r[0], l = r.reduce((c, d) => {
6338
+ const f = Wt(t, d, s);
6339
+ return c.top = z(f.top, c.top), c.right = j(f.right, c.right), c.bottom = j(f.bottom, c.bottom), c.left = z(f.left, c.left), c;
6340
+ }, Wt(t, a, s));
6357
6341
  return {
6358
6342
  width: l.right - l.left,
6359
6343
  height: l.bottom - l.top,
@@ -6361,17 +6345,17 @@ function Ci(h) {
6361
6345
  y: l.top
6362
6346
  };
6363
6347
  }
6364
- function yi(h) {
6348
+ function Ci(h) {
6365
6349
  const {
6366
6350
  width: t,
6367
6351
  height: e
6368
- } = oe(h);
6352
+ } = se(h);
6369
6353
  return {
6370
6354
  width: t,
6371
6355
  height: e
6372
6356
  };
6373
6357
  }
6374
- function bi(h, t, e) {
6358
+ function yi(h, t, e) {
6375
6359
  const i = K(t), s = F(t), o = e === "fixed", r = G(h, !0, o, t);
6376
6360
  let a = {
6377
6361
  scrollLeft: 0,
@@ -6379,15 +6363,15 @@ function bi(h, t, e) {
6379
6363
  };
6380
6364
  const l = Y(0);
6381
6365
  function c() {
6382
- l.x = Lt(s);
6366
+ l.x = Ot(s);
6383
6367
  }
6384
6368
  if (i || !i && !o)
6385
- if ((j(t) !== "body" || st(s)) && (a = wt(t)), i) {
6369
+ if ((Z(t) !== "body" || st(s)) && (a = gt(t)), i) {
6386
6370
  const u = G(t, !0, o, t);
6387
6371
  l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
6388
6372
  } else s && c();
6389
6373
  o && !i && s && c();
6390
- const d = s && !i && !o ? ne(s, a) : Y(0), f = r.left + a.scrollLeft - l.x - d.x, x = r.top + a.scrollTop - l.y - d.y;
6374
+ const d = s && !i && !o ? re(s, a) : Y(0), f = r.left + a.scrollLeft - l.x - d.x, x = r.top + a.scrollTop - l.y - d.y;
6391
6375
  return {
6392
6376
  x: f,
6393
6377
  y: x,
@@ -6395,10 +6379,10 @@ function bi(h, t, e) {
6395
6379
  height: r.height
6396
6380
  };
6397
6381
  }
6398
- function mt(h) {
6382
+ function wt(h) {
6399
6383
  return B(h).position === "static";
6400
6384
  }
6401
- function Pt(h, t) {
6385
+ function Vt(h, t) {
6402
6386
  if (!K(h) || B(h).position === "fixed")
6403
6387
  return null;
6404
6388
  if (t)
@@ -6406,28 +6390,28 @@ function Pt(h, t) {
6406
6390
  let e = h.offsetParent;
6407
6391
  return F(h) === e && (e = e.ownerDocument.body), e;
6408
6392
  }
6409
- function le(h, t) {
6393
+ function ae(h, t) {
6410
6394
  const e = N(h);
6411
- if (gt(h))
6395
+ if (xt(h))
6412
6396
  return e;
6413
6397
  if (!K(h)) {
6414
6398
  let s = P(h);
6415
- for (; s && !Z(s); ) {
6416
- if (X(s) && !mt(s))
6399
+ for (; s && !q(s); ) {
6400
+ if (X(s) && !wt(s))
6417
6401
  return s;
6418
6402
  s = P(s);
6419
6403
  }
6420
6404
  return e;
6421
6405
  }
6422
- let i = Pt(h, t);
6423
- for (; i && oi(i) && mt(i); )
6424
- i = Pt(i, t);
6425
- return i && Z(i) && mt(i) && !St(i) ? e : i || ci(h) || e;
6406
+ let i = Vt(h, t);
6407
+ for (; i && si(i) && wt(i); )
6408
+ i = Vt(i, t);
6409
+ return i && q(i) && wt(i) && !_t(i) ? e : i || li(h) || e;
6426
6410
  }
6427
- const Ii = async function(h) {
6428
- const t = this.getOffsetParent || le, e = this.getDimensions, i = await e(h.floating);
6411
+ const bi = async function(h) {
6412
+ const t = this.getOffsetParent || ae, e = this.getDimensions, i = await e(h.floating);
6429
6413
  return {
6430
- reference: bi(h.reference, await t(h.floating), h.strategy),
6414
+ reference: yi(h.reference, await t(h.floating), h.strategy),
6431
6415
  floating: {
6432
6416
  x: 0,
6433
6417
  y: 0,
@@ -6436,25 +6420,25 @@ const Ii = async function(h) {
6436
6420
  }
6437
6421
  };
6438
6422
  };
6439
- function Ri(h) {
6423
+ function Ii(h) {
6440
6424
  return B(h).direction === "rtl";
6441
6425
  }
6442
- const vi = {
6443
- convertOffsetParentRelativeRectToViewportRelativeRect: ui,
6426
+ const Ri = {
6427
+ convertOffsetParentRelativeRectToViewportRelativeRect: fi,
6444
6428
  getDocumentElement: F,
6445
- getClippingRect: Ci,
6446
- getOffsetParent: le,
6447
- getElementRects: Ii,
6448
- getClientRects: xi,
6449
- getDimensions: yi,
6429
+ getClippingRect: pi,
6430
+ getOffsetParent: ae,
6431
+ getElementRects: bi,
6432
+ getClientRects: ui,
6433
+ getDimensions: Ci,
6450
6434
  getScale: U,
6451
6435
  isElement: X,
6452
- isRTL: Ri
6436
+ isRTL: Ii
6453
6437
  };
6454
- function ce(h, t) {
6438
+ function le(h, t) {
6455
6439
  return h.x === t.x && h.y === t.y && h.width === t.width && h.height === t.height;
6456
6440
  }
6457
- function _i(h, t) {
6441
+ function vi(h, t) {
6458
6442
  let e = null, i;
6459
6443
  const s = F(h);
6460
6444
  function o() {
@@ -6473,7 +6457,7 @@ function _i(h, t) {
6473
6457
  return;
6474
6458
  const w = ot(f), m = ot(s.clientWidth - (d + x)), g = ot(s.clientHeight - (f + u)), E = ot(d), C = {
6475
6459
  rootMargin: -w + "px " + -m + "px " + -g + "px " + -E + "px",
6476
- threshold: z(0, q(1, l)) || 1
6460
+ threshold: z(0, j(1, l)) || 1
6477
6461
  };
6478
6462
  let b = !0;
6479
6463
  function y(v) {
@@ -6485,7 +6469,7 @@ function _i(h, t) {
6485
6469
  r(!1, 1e-7);
6486
6470
  }, 1e3);
6487
6471
  }
6488
- _ === 1 && !ce(c, h.getBoundingClientRect()) && r(), b = !1;
6472
+ _ === 1 && !le(c, h.getBoundingClientRect()) && r(), b = !1;
6489
6473
  }
6490
6474
  try {
6491
6475
  e = new IntersectionObserver(y, {
@@ -6500,7 +6484,7 @@ function _i(h, t) {
6500
6484
  }
6501
6485
  return r(!0), o;
6502
6486
  }
6503
- function bt(h, t, e, i) {
6487
+ function yt(h, t, e, i) {
6504
6488
  i === void 0 && (i = {});
6505
6489
  const {
6506
6490
  ancestorScroll: s = !0,
@@ -6508,13 +6492,13 @@ function bt(h, t, e, i) {
6508
6492
  elementResize: r = typeof ResizeObserver == "function",
6509
6493
  layoutShift: a = typeof IntersectionObserver == "function",
6510
6494
  animationFrame: l = !1
6511
- } = i, c = Ot(h), d = s || o ? [...c ? tt(c) : [], ...tt(t)] : [];
6495
+ } = i, c = Tt(h), d = s || o ? [...c ? tt(c) : [], ...tt(t)] : [];
6512
6496
  d.forEach((E) => {
6513
6497
  s && E.addEventListener("scroll", e, {
6514
6498
  passive: !0
6515
6499
  }), o && E.addEventListener("resize", e);
6516
6500
  });
6517
- const f = c && a ? _i(c, e) : null;
6501
+ const f = c && a ? vi(c, e) : null;
6518
6502
  let x = -1, u = null;
6519
6503
  r && (u = new ResizeObserver((E) => {
6520
6504
  let [p] = E;
@@ -6527,7 +6511,7 @@ function bt(h, t, e, i) {
6527
6511
  l && g();
6528
6512
  function g() {
6529
6513
  const E = G(h);
6530
- m && !ce(m, E) && e(), m = E, w = requestAnimationFrame(g);
6514
+ m && !le(m, E) && e(), m = E, w = requestAnimationFrame(g);
6531
6515
  }
6532
6516
  return e(), () => {
6533
6517
  var E;
@@ -6536,20 +6520,20 @@ function bt(h, t, e, i) {
6536
6520
  }), f == null || f(), (E = u) == null || E.disconnect(), u = null, l && cancelAnimationFrame(w);
6537
6521
  };
6538
6522
  }
6539
- const dt = ti, ft = ei, Mt = je, Si = Ze, ut = (h, t, e) => {
6523
+ const ht = Qe, dt = ti, Lt = qe, _i = je, ft = (h, t, e) => {
6540
6524
  const i = /* @__PURE__ */ new Map(), s = {
6541
- platform: vi,
6525
+ platform: Ri,
6542
6526
  ...e
6543
6527
  }, o = {
6544
6528
  ...s.platform,
6545
6529
  _c: i
6546
6530
  };
6547
- return qe(h, t, {
6531
+ return Ue(h, t, {
6548
6532
  ...s,
6549
6533
  platform: o
6550
6534
  });
6551
6535
  };
6552
- let Ti = class {
6536
+ let Si = class {
6553
6537
  constructor(t) {
6554
6538
  n(this, "ctx");
6555
6539
  n(this, "enable", !1);
@@ -6615,7 +6599,7 @@ let Ti = class {
6615
6599
  return;
6616
6600
  this.enable = !0, this.contentEl.style.maxWidth = `${t.overflowTooltipMaxWidth || 500}px`, this.contentEl.style.minWidth = "100px", this.contentEl.style.width = "100%", this.contentEl.style.display = "inline-block", this.contentEl.style.wordBreak = "break-all", this.contentEl.style.lineHeight = "1.5", this.contentEl.innerText = e;
6617
6601
  const s = t.drawX + i.x, o = t.drawY + i.y;
6618
- ut({
6602
+ ft({
6619
6603
  getBoundingClientRect() {
6620
6604
  return {
6621
6605
  width: t.visibleWidth,
@@ -6630,7 +6614,7 @@ let Ti = class {
6630
6614
  }
6631
6615
  }, this.floatingEl, {
6632
6616
  placement: t.overflowTooltipPlacement,
6633
- middleware: [ft(), Mt(), dt(6), Si({ element: this.arrowEl })]
6617
+ middleware: [dt(), Lt(), ht(6), _i({ element: this.arrowEl })]
6634
6618
  }).then((a) => {
6635
6619
  const { x: l, y: c, placement: d, middlewareData: f } = a;
6636
6620
  if (Object.assign(this.floatingEl.style, {
@@ -6669,7 +6653,7 @@ let Ti = class {
6669
6653
  this.contentEl.remove(), this.arrowEl.remove(), this.floatingEl.remove();
6670
6654
  }
6671
6655
  };
6672
- class Oi {
6656
+ class Ti {
6673
6657
  constructor(t) {
6674
6658
  n(this, "editorEl");
6675
6659
  n(this, "inputEl");
@@ -6694,7 +6678,7 @@ class Oi {
6694
6678
  }), this.ctx.on("cellHeaderMousedown", () => {
6695
6679
  this.enable && this.doneEdit(), this.cellTarget = null;
6696
6680
  }), this.ctx.on("hoverIconClick", (t) => {
6697
- t.editorType !== "none" && this.editCell(t.rowIndex, t.colIndex);
6681
+ this.editCell(t.rowIndex, t.colIndex);
6698
6682
  }), this.ctx.on("keydown", (t) => {
6699
6683
  if (!this.ctx.isTarget(t) || !this.ctx.focusCell)
6700
6684
  return;
@@ -6806,6 +6790,8 @@ class Oi {
6806
6790
  }
6807
6791
  startEditByInput(t, e = !1) {
6808
6792
  const i = e ? null : t.getValue(), { editorType: s } = t;
6793
+ if (s === "none")
6794
+ return;
6809
6795
  t.update(), this.ctx.config.ENABLE_MERGE_CELL_LINK && t.updateSpanInfo();
6810
6796
  let { height: o, width: r, drawY: a, drawX: l } = t;
6811
6797
  this.drawX = l, this.drawY = a;
@@ -6836,11 +6822,8 @@ class Oi {
6836
6822
  const i = this.ctx.focusCell;
6837
6823
  if (!i || ["index", "index-selection", "selection"].includes(i.type) || this.enable || !(i.isVerticalVisible() && i.isHorizontalVisible()))
6838
6824
  return;
6839
- const { rowKey: o, key: r, editorType: a } = i;
6840
- if (a === "none")
6841
- return;
6842
- const l = this.ctx.database.getReadonly(o, r);
6843
- i && !l && (this.ctx.emit("drawView"), this.enable = !0, this.ctx.editing = !0, this.cellTarget = i, this.startEditByInput(this.cellTarget, t), this.ctx.emit("startEdit", this.cellTarget));
6825
+ const { rowKey: o, key: r } = i, a = this.ctx.database.getReadonly(o, r);
6826
+ i && !a && (this.enable = !0, this.ctx.editing = !0, this.cellTarget = i, this.startEditByInput(this.cellTarget, t), this.ctx.emit("startEdit", this.cellTarget), this.ctx.emit("drawView"));
6844
6827
  }
6845
6828
  editCell(t, e) {
6846
6829
  const i = this.ctx.body.renderRows.find((c) => c.rowIndex === t);
@@ -6854,7 +6837,7 @@ class Oi {
6854
6837
  if (!o || ["index", "index-selection", "selection"].includes(o.type) || this.enable)
6855
6838
  return;
6856
6839
  const { rowKey: r, key: a } = o, l = this.ctx.database.getReadonly(r, a);
6857
- o && !l && (this.enable = !0, this.ctx.editing = !0, this.cellTarget = o, this.startEditByInput(this.cellTarget), this.ctx.emit("startEdit", this.cellTarget));
6840
+ o && !l && (this.enable = !0, this.ctx.editing = !0, this.cellTarget = o, this.startEditByInput(this.cellTarget), this.ctx.emit("startEdit", this.cellTarget), this.ctx.emit("drawView"));
6858
6841
  }
6859
6842
  doneEdit() {
6860
6843
  this.enable && (this.doneEditByInput(), this.ctx.emit("doneEdit", this.cellTarget), this.enable = !1, this.ctx.editing = !1, this.ctx.containerElement.focus({ preventScroll: !0 }), this.editorEl.style.display = "none", this.ctx.emit("draw"));
@@ -6867,7 +6850,7 @@ class Oi {
6867
6850
  (t = this.editorEl) == null || t.remove();
6868
6851
  }
6869
6852
  }
6870
- let Li = class {
6853
+ let Oi = class {
6871
6854
  constructor(t) {
6872
6855
  n(this, "ctx");
6873
6856
  n(this, "emptyEl");
@@ -6891,7 +6874,7 @@ let Li = class {
6891
6874
  this.emptyEl.remove();
6892
6875
  }
6893
6876
  };
6894
- class Mi {
6877
+ class Li {
6895
6878
  constructor(t) {
6896
6879
  n(this, "ctx");
6897
6880
  n(this, "observer");
@@ -7110,7 +7093,7 @@ class Mi {
7110
7093
  };
7111
7094
  }
7112
7095
  }
7113
- class zt {
7096
+ class Pt {
7114
7097
  constructor(t, e = [], i = {}) {
7115
7098
  n(this, "container");
7116
7099
  n(this, "menuData");
@@ -7135,16 +7118,16 @@ class zt {
7135
7118
  e ? "e-virt-table-submenu-item" : "e-virt-table-menu-item"
7136
7119
  );
7137
7120
  i.setAttribute(e ? "data-submenu" : "data-menu", t.value), t.disabled && i.classList.add("disabled");
7138
- const s = this.createElement("div", "menu-item-content");
7121
+ const s = this.createElement("div", "e-virt-table-menu-item-content");
7139
7122
  if (t.icon) {
7140
- const a = this.createElement("span", "menu-item-icon");
7123
+ const a = this.createElement("span", "e-virt-table-menu-item-icon");
7141
7124
  a.innerHTML = t.icon, s.appendChild(a);
7142
7125
  } else
7143
7126
  s.classList.add("menu-item-no-icon");
7144
- const o = this.createElement("span", "menu-item-text");
7127
+ const o = this.createElement("span", "e-virt-table-menu-item-text");
7145
7128
  if (o.textContent = t.label, s.appendChild(o), i.appendChild(s), (r = t.children) != null && r.length) {
7146
7129
  const a = this.createElement("span", "e-virt-table-menu-arrow");
7147
- a.innerHTML = jt, i.appendChild(a);
7130
+ a.innerHTML = qt, i.appendChild(a);
7148
7131
  const l = this.createSubmenu(t.children);
7149
7132
  i._submenu = l, this.container.appendChild(l);
7150
7133
  }
@@ -7198,10 +7181,10 @@ class zt {
7198
7181
  async showSubmenu(t, e) {
7199
7182
  if (this.activeSubmenus.has(e)) return;
7200
7183
  this.activeSubmenus.add(e), e.classList.add("show");
7201
- const i = bt(t, e, async () => {
7202
- const s = this.container.getBoundingClientRect(), o = window.innerWidth, r = e.offsetWidth || 200, a = o - s.right, l = s.left, c = a >= r || a >= l ? "right-start" : "left-start", { x: d, y: f } = await ut(t, e, {
7184
+ const i = yt(t, e, async () => {
7185
+ const s = this.container.getBoundingClientRect(), o = window.innerWidth, r = e.offsetWidth || 200, a = o - s.right, l = s.left, c = a >= r || a >= l ? "right-start" : "left-start", { x: d, y: f } = await ft(t, e, {
7203
7186
  placement: c,
7204
- middleware: [dt(8), ft({ padding: 8 })]
7187
+ middleware: [ht(8), dt({ padding: 8 })]
7205
7188
  });
7206
7189
  Object.assign(e.style, {
7207
7190
  left: `${d}px`,
@@ -7268,10 +7251,10 @@ class zt {
7268
7251
  }),
7269
7252
  contextElement: document.body
7270
7253
  };
7271
- bt(e, this.container, () => {
7272
- ut(e, this.container, {
7254
+ yt(e, this.container, () => {
7255
+ ft(e, this.container, {
7273
7256
  placement: "right-start",
7274
- middleware: [dt(), ft(), Mt()]
7257
+ middleware: [ht(), dt(), Lt()]
7275
7258
  }).then(({ x: i, y: s }) => {
7276
7259
  this.container && Object.assign(this.container.style, {
7277
7260
  left: `${i}px`,
@@ -7336,7 +7319,7 @@ class zt {
7336
7319
  }), t.remove();
7337
7320
  }
7338
7321
  }
7339
- class Ai {
7322
+ class Mi {
7340
7323
  constructor(t) {
7341
7324
  n(this, "ctx");
7342
7325
  n(this, "contextMenuEl");
@@ -7356,7 +7339,7 @@ class Ai {
7356
7339
  if (!i || r.length === 0) return;
7357
7340
  e.preventDefault();
7358
7341
  const { xArr: a, yArr: l } = this.ctx.selector, [c, d] = a, [f, x] = l, { rowIndex: u, colIndex: w } = t;
7359
- u >= f && u <= x && w >= c && w <= d || this.ctx.emit("setSelectorCell", t, e), this.currentDOMTreeMenu && this.currentDOMTreeMenu.destroy(), this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new zt(this.contextMenuEl, r, {
7342
+ u >= f && u <= x && w >= c && w <= d || this.ctx.emit("setSelectorCell", t, e), this.currentDOMTreeMenu && this.currentDOMTreeMenu.destroy(), this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new Pt(this.contextMenuEl, r, {
7360
7343
  onClick: (g, E) => {
7361
7344
  E === "copy" ? (this.ctx.emit("contextMenuCopy"), this.hide()) : E === "paste" ? (this.ctx.emit("contextMenuPaste"), this.hide()) : E === "cut" ? (this.ctx.emit("contextMenuCut"), this.hide()) : E === "clearSelected" && (this.ctx.emit("contextMenuClearSelected"), this.hide());
7362
7345
  }
@@ -7378,7 +7361,7 @@ class Ai {
7378
7361
  ...C,
7379
7362
  children: this.filterColumns(E)
7380
7363
  } : C);
7381
- this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new zt(this.contextMenuEl, p, {
7364
+ this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new Pt(this.contextMenuEl, p, {
7382
7365
  onClick: (C, b) => {
7383
7366
  const { xArr: y } = this.ctx.selector, [v, _] = y;
7384
7367
  if (b === "fixedLeft" || b === "fixedRight" || b === "fixedNone") {
@@ -7416,10 +7399,10 @@ class Ai {
7416
7399
  }),
7417
7400
  contextElement: document.body
7418
7401
  };
7419
- bt(e, this.contextMenuEl, () => {
7420
- ut(e, this.contextMenuEl, {
7402
+ yt(e, this.contextMenuEl, () => {
7403
+ ft(e, this.contextMenuEl, {
7421
7404
  placement: "right-start",
7422
- middleware: [dt(), ft(), Mt()]
7405
+ middleware: [ht(), dt(), Lt()]
7423
7406
  }).then(({ x: i, y: s }) => {
7424
7407
  this.contextMenuEl && Object.assign(this.contextMenuEl.style, {
7425
7408
  left: `${i}px`,
@@ -7451,7 +7434,7 @@ class Ai {
7451
7434
  this.hide(), (t = this.contextMenuEl) == null || t.remove();
7452
7435
  }
7453
7436
  }
7454
- class Hi {
7437
+ class Ai {
7455
7438
  constructor(t) {
7456
7439
  n(this, "ctx");
7457
7440
  n(this, "loadingEl");
@@ -7481,7 +7464,7 @@ class Hi {
7481
7464
  this.loadingEl.remove();
7482
7465
  }
7483
7466
  }
7484
- class Xi {
7467
+ class ki {
7485
7468
  constructor(t, e) {
7486
7469
  n(this, "options");
7487
7470
  n(this, "scroller");
@@ -7507,7 +7490,7 @@ class Xi {
7507
7490
  o,
7508
7491
  r
7509
7492
  );
7510
- this.ctx = new Me(a, this.options), this.header = new De(this.ctx), this.footer = new ke(this.ctx), this.body = new Ne(this.ctx), this.scroller = new Ae(this.ctx), this.selector = new Xe(this.ctx), this.autofill = new Be(this.ctx), this.tooltip = new Ti(this.ctx), this.empty = new Li(this.ctx), this.editor = new Oi(this.ctx), this.overlayer = new Mi(this.ctx), this.contextMenu = new Ai(this.ctx), this.loading = new Hi(this.ctx), this.ctx.on(
7493
+ this.ctx = new Le(a, this.options), this.header = new He(this.ctx), this.footer = new Ne(this.ctx), this.body = new De(this.ctx), this.scroller = new Me(this.ctx), this.selector = new ke(this.ctx), this.autofill = new Xe(this.ctx), this.tooltip = new Si(this.ctx), this.empty = new Oi(this.ctx), this.editor = new Ti(this.ctx), this.overlayer = new Li(this.ctx), this.contextMenu = new Mi(this.ctx), this.loading = new Ai(this.ctx), this.ctx.on(
7511
7494
  "draw",
7512
7495
  J(
7513
7496
  () => {
@@ -7556,7 +7539,7 @@ class Xi {
7556
7539
  this.ctx.config.init(t), this.ctx.database.init(!1), this.header.init(), this.ctx.emit("draw");
7557
7540
  }
7558
7541
  loadColumns(t) {
7559
- this.editor.doneEdit(), this.ctx.database.setColumns(t), this.ctx.database.setOriginalColumns(t), this.header.init(), this.ctx.emit("draw");
7542
+ this.editor.doneEdit(), this.ctx.database.setColumns(t), this.header.init(), this.ctx.emit("draw");
7560
7543
  }
7561
7544
  loadData(t) {
7562
7545
  this.editor.doneEdit(), this.ctx.database.setData(t), this.header.init(), this.tooltip.hide(), this.ctx.emit("draw");
@@ -7674,11 +7657,17 @@ class Xi {
7674
7657
  }
7675
7658
  setValidations(t) {
7676
7659
  if (t.forEach((e) => {
7677
- const { rowIndex: i, key: s, message: o } = e;
7678
- this.ctx.database.setValidationErrorByRowIndex(i, s, o);
7660
+ const { rowIndex: i, key: s, message: o, rowKey: r } = e;
7661
+ if (i !== void 0 && r === void 0) {
7662
+ const a = this.ctx.database.getRowKeyForRowIndex(i);
7663
+ this.ctx.database.setValidationErrorByRowKey(a, s, o);
7664
+ }
7665
+ r && this.ctx.database.setValidationErrorByRowKey(r, s, o);
7679
7666
  }), t && Array.isArray(t) && t.length) {
7680
7667
  const [e] = t;
7681
- if (e && e.rowIndex >= 0 && e.key) {
7668
+ if (e && e.rowKey)
7669
+ this.scrollToRowkey(e.rowKey), this.scrollToColkey(e.key);
7670
+ else if (e && e.rowIndex !== void 0 && e.rowIndex >= 0 && e.key) {
7682
7671
  const { rowIndex: i, key: s } = e;
7683
7672
  this.scrollToRowIndex(i), this.scrollToColkey(s);
7684
7673
  }
@@ -7773,10 +7762,10 @@ class Xi {
7773
7762
  }
7774
7763
  getUtils() {
7775
7764
  return {
7776
- mergeColCell: pe,
7777
- mergeRowCell: Ee,
7778
- getSpanArrByRow: Ut,
7779
- getSpanObjByColumn: qt
7765
+ mergeColCell: Ee,
7766
+ mergeRowCell: me,
7767
+ getSpanArrByRow: Gt,
7768
+ getSpanObjByColumn: Ut
7780
7769
  };
7781
7770
  }
7782
7771
  getColumnByKey(t) {
@@ -7791,6 +7780,6 @@ class Xi {
7791
7780
  }
7792
7781
  }
7793
7782
  export {
7794
- Xi as default
7783
+ ki as default
7795
7784
  };
7796
7785
  //# sourceMappingURL=index.es.js.map