@orangelogic/design-system 2.212.0 → 2.213.0
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/library/chunks/{asset-link-format.C6BPob3e.js → asset-link-format.ofivwxXM.js} +5 -5
- package/library/chunks/{button.BnkkUqiI.js → button.CrhpoXK8.js} +1 -1
- package/library/chunks/{color-swatch-group.ACpuo8Pe.js → color-swatch-group.Dr7mWhCT.js} +384 -381
- package/library/chunks/{color-swatch.D6Gg5bpz.js → color-swatch.CSsvAlq8.js} +1 -1
- package/library/chunks/{confirm-popover.jCP9CdcD.js → confirm-popover.CrB-N3KV.js} +3 -3
- package/library/chunks/{dialog.B6hZ7fvn.js → dialog.DWa11p4j.js} +2 -2
- package/library/chunks/{document-viewer.CgSEgZ5S.js → document-viewer.UJBcwZWE.js} +5 -5
- package/library/chunks/{dot-pagination.BqGFeFXK.js → dot-pagination.ry5d0ZtQ.js} +1 -1
- package/library/chunks/{folder-select.CIqVGGFl.js → folder-select.BIXyzMCY.js} +4 -4
- package/library/chunks/{header.CB8GuYBG.js → header.tVm8jCBb.js} +1 -1
- package/library/chunks/{i18n.DbXTTLXx.js → i18n.CXIpdSSZ.js} +5 -2
- package/library/chunks/{icon-button.CVrxJcZq.js → icon-button.BBLy-yj3.js} +1 -1
- package/library/chunks/{iframe.-GCTFas1.js → iframe.FHGbVxm4.js} +1 -1
- package/library/chunks/{image.ZANuNTs8.js → image.BYDGEbte.js} +46 -37
- package/library/chunks/{input.33UmFGqR.js → input.B1JamaTE.js} +1 -1
- package/library/chunks/{markdown.DOHru2Rz.js → markdown.Cc9XwWxA.js} +2 -2
- package/library/chunks/{option.CCJLbAuF.js → option.DmQWgEVq.js} +1 -1
- package/library/chunks/{pagination.jGOZVKL5.js → pagination.GYpExPiQ.js} +5 -5
- package/library/chunks/{tab-group.uSHlsFu8.js → tab-group.PQnc285p.js} +3 -3
- package/library/chunks/{tree.CmEdKtzK.js → tree.BS7eGCf0.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +3 -3
- package/library/components/atoms.js +14 -14
- package/library/components/audio.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +3 -3
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +6 -6
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +3364 -3276
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +1 -1
- package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -0
- package/library/packages/organisms/src/chatbot/chatbot.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +11 -1
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +4 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import Si from "../components/space.js";
|
|
2
2
|
import { C as Nr, T as Sn } from "./typography.IqHbnd3C.js";
|
|
3
3
|
import { n as m, C as Pe } from "./lib-cortex-element.CVMmyPMC.js";
|
|
4
|
-
import { C as Vr, a as ts } from "./color-swatch.
|
|
5
|
-
import { c as
|
|
6
|
-
import { C as Et } from "./button.
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as ri } from "./icon-button.
|
|
4
|
+
import { C as Vr, a as ts } from "./color-swatch.CSsvAlq8.js";
|
|
5
|
+
import { c as We } from "./component.styles.CRO4Odto.js";
|
|
6
|
+
import { C as Et } from "./button.CrhpoXK8.js";
|
|
7
|
+
import { C as Dn, o as kn, O as Tn } from "./dialog.DWa11p4j.js";
|
|
8
|
+
import { C as ri } from "./icon-button.BBLy-yj3.js";
|
|
9
9
|
import It from "../components/tooltip.js";
|
|
10
10
|
import { i as Br, r as Mn, f as Rt, m as Fn, a as Ln, t as $r, g as zn, b as _n, c as On } from "./toast.GT3J-T2_.js";
|
|
11
11
|
import { c as Ie } from "./custom-element.L4WJXn1j.js";
|
|
12
|
-
import { L as tt } from "./i18n.
|
|
12
|
+
import { L as tt } from "./i18n.CXIpdSSZ.js";
|
|
13
13
|
import { b as An, S as Pn, c as Vo, p as In, w as V, E as Hn } from "./watch.DJF5K-8U.js";
|
|
14
14
|
import { i as q, x, E as ut, B as Nn } from "./lit-element.jLBm65_O.js";
|
|
15
15
|
import { r as F } from "./state.CSDxrqLd.js";
|
|
16
|
-
import { e as
|
|
16
|
+
import { e as ce } from "./query.BBf1UFkC.js";
|
|
17
17
|
import { a as Vn, b as Bn } from "./_baseXor.DixEm6JQ.js";
|
|
18
18
|
import { a as Gi, i as _t, b as Wr } from "./isArrayLikeObject.D7afXo-f.js";
|
|
19
19
|
import { b as Ui, a as $n, c as jr, t as Wn } from "./_baseIteratee.sC2wLi2m.js";
|
|
@@ -21,7 +21,7 @@ import { l as oi, i as jn, f as Gn } from "./_flatRest.D3ZVApI5.js";
|
|
|
21
21
|
import { a as lo } from "./toString.B1zKIiZc.js";
|
|
22
22
|
import { a as Un, b as Kn } from "./_baseUniq.lwMgmtt2.js";
|
|
23
23
|
import { C as gt } from "./icon.CpHbi8tH.js";
|
|
24
|
-
import { C as Gr } from "./input.
|
|
24
|
+
import { C as Gr } from "./input.B1JamaTE.js";
|
|
25
25
|
import { d as Ur } from "./debounce.DaHuiSGU.js";
|
|
26
26
|
import { e as Ze } from "./class-map.BiVq-cVR.js";
|
|
27
27
|
import { c as Ke } from "./repeat.CFjcER6_.js";
|
|
@@ -40,7 +40,7 @@ import { o as ft } from "./style-map.llVFPd__.js";
|
|
|
40
40
|
import li from "../components/dropdown.js";
|
|
41
41
|
import ia from "../components/menu-section.js";
|
|
42
42
|
import Kr from "../components/checkbox.js";
|
|
43
|
-
import { C as sa, P as oa } from "./pagination.
|
|
43
|
+
import { C as sa, P as oa } from "./pagination.GYpExPiQ.js";
|
|
44
44
|
import { H as qr } from "./slot.j5oheLJC.js";
|
|
45
45
|
import { g as B, a as Bo } from "./dom.gRV2cDjL.js";
|
|
46
46
|
import "./browser.BHOCIF_A.js";
|
|
@@ -108,25 +108,25 @@ function Ra(r, e) {
|
|
|
108
108
|
function Sa(r) {
|
|
109
109
|
return jn(r) ? void 0 : r;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var Da = 1, ka = 2, Ta = 4, Go = Gn(function(r, e) {
|
|
112
112
|
var t = {};
|
|
113
113
|
if (r == null)
|
|
114
114
|
return t;
|
|
115
115
|
var i = !1;
|
|
116
116
|
e = lo(e, function(o) {
|
|
117
117
|
return o = jr(o, r), i || (i = o.length > 1), o;
|
|
118
|
-
}), qn(r, Xn(r), t), i && (t = Jn(t,
|
|
118
|
+
}), qn(r, Xn(r), t), i && (t = Jn(t, Da | ka | Ta, Sa));
|
|
119
119
|
for (var s = e.length; s--; )
|
|
120
120
|
Ra(t, e[s]);
|
|
121
121
|
return t;
|
|
122
122
|
});
|
|
123
|
-
const Ma = q`:host{min-height:40px;display:block}.board-list-item{--toggle-size:var(--cx-toggle-size-medium);border:1px solid #0000;border-bottom-color:var(--cx-color-neutral-300);font-family:var(--cx-font-sans);
|
|
124
|
-
var Fa = Object.defineProperty, La = Object.getOwnPropertyDescriptor,
|
|
123
|
+
const Ma = q`:host{min-height:40px;display:block}.board-list-item{--toggle-size:var(--cx-toggle-size-medium);border:1px solid #0000;border-bottom-color:var(--cx-color-neutral-300);font-family:var(--cx-font-sans);background-color:var(--cx-color-neutral-100);align-items:center;min-height:40px;display:flex;overflow:hidden}.board-list-item--placeholder{border-bottom-color:#0000}.board-list-item--placeholder .board-list-item__selection-hit-area{display:none}.board-list-item:not(.board-list-item--group):not(.board-list-item--placeholder):hover{transition:var(--cx-transition-slow);background-color:var(--cx-color-primary-50);cursor:grab;border:1px solid var(--cx-color-primary-300)}.board-list-item__selection-hit-area{cursor:pointer;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.board-list-item__control{width:var(--toggle-size);height:var(--toggle-size);border:solid var(--cx-input-border-width) var(--cx-input-border-color);background-color:var(--cx-input-background-color);color:var(--cx-color-neutral-0);transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;cursor:pointer;border-radius:4px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.board-list-item__text{flex:1;align-items:center;width:0;height:100%;display:flex;position:relative}[part=config-button]{margin-left:16px}.board-list-item__text__content{font-weight:var(--cx-font-weight-regular);line-height:var(--cx-item-line-height,1.4);text-overflow:ellipsis;z-index:1;display:block;position:relative;overflow:hidden}.board-list-item__text__anchor{z-index:0;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.board-list-item__checked-icon{display:inline-flex}.board-list-item--group{background-color:var(--cx-color-neutral-300)}.board-list-item:not(.board-list-item--checked):not(.board-list-item--readonly) .board-list-item__control:hover{border-color:var(--cx-input-border-color-hover);background-color:var(--cx-input-background-color-hover)}.board-list-item--checked .board-list-item__control{border-color:var(--cx-color-primary);background-color:var(--cx-color-primary)}.board-list-item--readonly .board-list-item__control{cursor:default;background-color:#0000;border-color:#0000}.board-list-item--readonly .board-list-item__selection-hit-area{cursor:default}:host(:focus-visible){outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width));border-radius:2px}`;
|
|
124
|
+
var Fa = Object.defineProperty, La = Object.getOwnPropertyDescriptor, He = (r, e, t, i) => {
|
|
125
125
|
for (var s = i > 1 ? void 0 : i ? La(e, t) : e, o = r.length - 1, n; o >= 0; o--)
|
|
126
126
|
(n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
|
|
127
127
|
return i && s && Fa(e, t, s), s;
|
|
128
128
|
};
|
|
129
|
-
let
|
|
129
|
+
let ye = class extends Pe {
|
|
130
130
|
constructor() {
|
|
131
131
|
super(...arguments), this.localize = new tt(this), this.text = "", this.tooltip = "", this.readonly = !1, this.placeholder = !1, this.selected = !1, this.configurable = !1, this.disabledTooltip = !1, this.isGroup = !1;
|
|
132
132
|
}
|
|
@@ -155,59 +155,62 @@ let Ee = class extends Pe {
|
|
|
155
155
|
"board-list-item--group": this.isGroup,
|
|
156
156
|
"board-list-item--placeholder": this.placeholder,
|
|
157
157
|
"board-list-item--readonly": this.readonly
|
|
158
|
-
})}><span class="board-list-item__control">${this.selected ? x`<cx-icon class="board-list-item__checked-icon" name="check"></cx-icon>` : ""}</span><div part="text" class="board-list-item__text" @mouseenter=${this.onTextMouseEnter} @mouseleave=${this.onTextMouseLeave}><cx-line-clamp part="text-content" class="board-list-item__text__content" lines="2" ?disabled-tooltip=${!!this.tooltip} disabled-hover-bridge>${this.text}</cx-line-clamp><cx-tooltip part="tooltip" hoist trigger="manual" ?disabled=${this.disabledTooltip || !this.tooltip} disabled-hover-bridge><div class="board-list-item__text__anchor"></div><div slot="content">${Qn(this.tooltip)}</div></cx-tooltip></div>${this.configurable && !this.readonly ? x`<cx-icon-button part="config-button" name="settings" label=${this.localize.term("configure")} @click=${this.onConfigButtonClick}></cx-icon-button>` : ""}</div>`;
|
|
158
|
+
})}><span class="board-list-item__selection-hit-area"><span class="board-list-item__control">${this.selected ? x`<cx-icon class="board-list-item__checked-icon" name="check"></cx-icon>` : ""}</span></span><div part="text" class="board-list-item__text" @mouseenter=${this.onTextMouseEnter} @mouseleave=${this.onTextMouseLeave}><cx-line-clamp part="text-content" class="board-list-item__text__content" lines="2" ?disabled-tooltip=${!!this.tooltip} disabled-hover-bridge>${this.text}</cx-line-clamp><cx-tooltip part="tooltip" hoist trigger="manual" ?disabled=${this.disabledTooltip || !this.tooltip} disabled-hover-bridge><div class="board-list-item__text__anchor"></div><div slot="content">${Qn(this.tooltip)}</div></cx-tooltip></div>${this.configurable && !this.readonly ? x`<cx-icon-button part="config-button" name="settings" label=${this.localize.term("configure")} @click=${this.onConfigButtonClick}></cx-icon-button>` : ""}</div>`;
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
ye.styles = [We, Ma];
|
|
162
|
+
ye.dependencies = {
|
|
163
163
|
"cx-icon": gt,
|
|
164
164
|
"cx-icon-button": ri,
|
|
165
165
|
"cx-line-clamp": Zn,
|
|
166
166
|
"cx-tooltip": It
|
|
167
167
|
};
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
],
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
],
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
],
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
],
|
|
180
|
-
|
|
168
|
+
He([
|
|
169
|
+
ce('[part="config-button"]')
|
|
170
|
+
], ye.prototype, "configButton", 2);
|
|
171
|
+
He([
|
|
172
|
+
ce('[part="text"]')
|
|
173
|
+
], ye.prototype, "textElement", 2);
|
|
174
|
+
He([
|
|
175
|
+
ce('[part="tooltip"]')
|
|
176
|
+
], ye.prototype, "tooltipElement", 2);
|
|
177
|
+
He([
|
|
178
|
+
ce(".board-list-item__control")
|
|
179
|
+
], ye.prototype, "controlElement", 2);
|
|
180
|
+
He([
|
|
181
|
+
ce(".board-list-item__selection-hit-area")
|
|
182
|
+
], ye.prototype, "selectionHitAreaElement", 2);
|
|
183
|
+
He([
|
|
181
184
|
m({ type: String })
|
|
182
|
-
],
|
|
183
|
-
|
|
185
|
+
], ye.prototype, "text", 2);
|
|
186
|
+
He([
|
|
184
187
|
m({ type: String })
|
|
185
|
-
],
|
|
186
|
-
|
|
188
|
+
], ye.prototype, "tooltip", 2);
|
|
189
|
+
He([
|
|
187
190
|
m({ type: Boolean })
|
|
188
|
-
],
|
|
189
|
-
|
|
191
|
+
], ye.prototype, "readonly", 2);
|
|
192
|
+
He([
|
|
190
193
|
m({ type: Boolean })
|
|
191
|
-
],
|
|
192
|
-
|
|
194
|
+
], ye.prototype, "placeholder", 2);
|
|
195
|
+
He([
|
|
193
196
|
m({ type: Boolean })
|
|
194
|
-
],
|
|
195
|
-
|
|
197
|
+
], ye.prototype, "selected", 2);
|
|
198
|
+
He([
|
|
196
199
|
m({ type: Boolean })
|
|
197
|
-
],
|
|
198
|
-
|
|
200
|
+
], ye.prototype, "configurable", 2);
|
|
201
|
+
He([
|
|
199
202
|
m({ attribute: "disabled-tooltip", type: Boolean })
|
|
200
|
-
],
|
|
201
|
-
|
|
203
|
+
], ye.prototype, "disabledTooltip", 2);
|
|
204
|
+
He([
|
|
202
205
|
m({ attribute: "is-group", type: Boolean })
|
|
203
|
-
],
|
|
204
|
-
|
|
206
|
+
], ye.prototype, "isGroup", 2);
|
|
207
|
+
He([
|
|
205
208
|
V("disabledTooltip")
|
|
206
|
-
],
|
|
207
|
-
|
|
209
|
+
], ye.prototype, "handleDisabledTooltipChange", 1);
|
|
210
|
+
ye = He([
|
|
208
211
|
Ie("cx-board-list-item")
|
|
209
|
-
],
|
|
210
|
-
const za = q`:host{--cx-tooltip-arrow-size:0;flex:1;display:block}.board{--toggle-size:var(--cx-toggle-size-medium);background-color:var(--cx-color-neutral-100);border:1px solid var(--cx-color-neutral-300);border-radius:4px;flex-direction:column;height:100%;padding:16px 16px 0;display:flex}.board--dragging cx-input{pointer-events:none}.board__header{align-items:center;gap:16px;width:100%;height:40px;margin-bottom:16px;display:flex}.board__list{flex:1;max-height:500px;padding-left:0;overflow:hidden scroll}.board__header__text{-webkit-line-clamp:2;color:var(--cx-color-neutral);font-family:var(--cx-font-sans);text-overflow:ellipsis;white-space:pre-wrap;-webkit-box-orient:vertical;flex:1;font-weight:700;display:-webkit-box;overflow:hidden}.board__header__search{flex:0 0 160px}.board__footer{justify-content:space-between;align-items:center;height:40px;display:flex}.board__footer__text{font-family:var(--cx-font-sans)}.board__select-all{width:var(--toggle-size);height:var(--toggle-size);border:solid var(--cx-input-border-width) var(--cx-input-border-color);background-color:var(--cx-input-background-color);color:var(--cx-color-neutral-0);cursor:pointer;transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;border-radius:
|
|
212
|
+
], ye);
|
|
213
|
+
const za = q`:host{--cx-tooltip-arrow-size:0;flex:1;display:block}.board{--toggle-size:var(--cx-toggle-size-medium);background-color:var(--cx-color-neutral-100);border:1px solid var(--cx-color-neutral-300);border-radius:4px;flex-direction:column;height:100%;padding:16px 16px 0;display:flex}.board--dragging cx-input{pointer-events:none}.board__header{align-items:center;gap:16px;width:100%;height:40px;margin-bottom:16px;display:flex}.board__list{flex:1;max-height:500px;padding-left:0;overflow:hidden scroll}.board__header__text{-webkit-line-clamp:2;color:var(--cx-color-neutral);font-family:var(--cx-font-sans);text-overflow:ellipsis;white-space:pre-wrap;-webkit-box-orient:vertical;flex:1;font-weight:700;display:-webkit-box;overflow:hidden}.board__header__search{flex:0 0 160px}.board__footer{justify-content:space-between;align-items:center;height:40px;display:flex}.board__footer__text{font-family:var(--cx-font-sans)}.board__select-all{width:var(--toggle-size);height:var(--toggle-size);border:solid var(--cx-input-border-width) var(--cx-input-border-color);background-color:var(--cx-input-background-color);color:var(--cx-color-neutral-0);cursor:pointer;transition:var(--cx-transition-fast) border-color, var(--cx-transition-fast) background-color, var(--cx-transition-fast) color, var(--cx-transition-fast) box-shadow;border-radius:4px;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.board--checked .board__select-all{border-color:var(--cx-color-primary);background-color:var(--cx-color-primary)}.board__select-all:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.board__checked-icon{display:inline-flex}`, _a = (r) => {
|
|
211
214
|
const e = r.getRootNode();
|
|
212
215
|
return e instanceof ShadowRoot ? e.host : null;
|
|
213
216
|
};
|
|
@@ -407,7 +410,7 @@ let $ = class extends Pe {
|
|
|
407
410
|
this.handleShiftSelect(i);
|
|
408
411
|
else {
|
|
409
412
|
if (!(r.ctrlKey || r.metaKey) && !t.some(
|
|
410
|
-
(h) => h === i.controlElement
|
|
413
|
+
(h) => h === i.selectionHitAreaElement || h === i.controlElement
|
|
411
414
|
)) {
|
|
412
415
|
this.selectSingleItem(i, n);
|
|
413
416
|
return;
|
|
@@ -583,28 +586,28 @@ let $ = class extends Pe {
|
|
|
583
586
|
)}<div style="height: ${40 * (this.filteredItems.length - this.end > 0 ? this.filteredItems.length - this.end : 0)}px"></div></div><div class="board__footer">${r ? x`<div class="board__footer__text">${this.localize.term("selected")}: ${r}</div>` : x`<span></span>`}<div class="board__footer__text">${this.localize.term("total")}: ${this.totalDisplayedCount}</div></div></div>`;
|
|
584
587
|
}
|
|
585
588
|
};
|
|
586
|
-
$.styles = [
|
|
589
|
+
$.styles = [We, za];
|
|
587
590
|
$.dependencies = {
|
|
588
|
-
"cx-board-list-item":
|
|
591
|
+
"cx-board-list-item": ye,
|
|
589
592
|
"cx-icon": gt,
|
|
590
593
|
"cx-icon-button": ri,
|
|
591
594
|
"cx-input": Gr,
|
|
592
595
|
"cx-tooltip": It
|
|
593
596
|
};
|
|
594
597
|
X([
|
|
595
|
-
|
|
598
|
+
ce(".board")
|
|
596
599
|
], $.prototype, "board", 2);
|
|
597
600
|
X([
|
|
598
|
-
|
|
601
|
+
ce('[part="search-input"]')
|
|
599
602
|
], $.prototype, "searchInput", 2);
|
|
600
603
|
X([
|
|
601
|
-
|
|
604
|
+
ce('[part="search-input-clear"]')
|
|
602
605
|
], $.prototype, "searchInputClear", 2);
|
|
603
606
|
X([
|
|
604
|
-
|
|
607
|
+
ce('[part="list"]')
|
|
605
608
|
], $.prototype, "list", 2);
|
|
606
609
|
X([
|
|
607
|
-
|
|
610
|
+
ce('[part="select-all"]')
|
|
608
611
|
], $.prototype, "selectAllCheckBox", 2);
|
|
609
612
|
X([
|
|
610
613
|
m({ attribute: "title", reflect: !0, type: String })
|
|
@@ -917,20 +920,20 @@ let Te = class extends Pe {
|
|
|
917
920
|
return x`<div class="multi-select" @cx-board-change=${this.handleBoardChange} @cx-board-selected-change=${this.handleSelectedChange}><cx-board part="board-1" title=${this.firstColumnData.title} name=${this.firstColumnData.id} all .data=${this.board1Data} ?sort=${this.firstColumnData.sort ?? !1} .ignore-types=${this.ignoreTypes} allow-search></cx-board><div class="multi-select__control"><cx-tooltip part="tooltip" content=${this.localize.term("moveSelectedItemRight")} hoist ?disabled=${!r.length}><cx-icon-button class="multi-select__control__move-button" name="arrow_forward_ios" label=${this.localize.term("moveSelectedItemRight")} @click=${this.handleMoveItemsRight} ?disabled=${!r.length}></cx-icon-button></cx-tooltip><cx-tooltip part="tooltip" content=${this.localize.term("moveSelectedItemLeft")} hoist ?disabled=${!e.length}><cx-icon-button class="multi-select__control__move-button" name="arrow_back_ios" label=${this.localize.term("moveSelectedItemLeft")} @click=${this.handleMoveItemsLeft} ?disabled=${!e.length}></cx-icon-button></cx-tooltip></div><cx-board part="board-2" title=${this.secondColumnData.title} name=${this.secondColumnData.id} all .data=${this.board2Data} ?configurable=${this.configurable} ?sort=${this.secondColumnData.sort ?? !0}></cx-board></div>`;
|
|
918
921
|
}
|
|
919
922
|
};
|
|
920
|
-
Te.styles = [
|
|
923
|
+
Te.styles = [We, Ia];
|
|
921
924
|
Te.dependencies = {
|
|
922
925
|
"cx-board": $,
|
|
923
926
|
"cx-icon-button": ri,
|
|
924
927
|
"cx-tooltip": It
|
|
925
928
|
};
|
|
926
929
|
qe([
|
|
927
|
-
|
|
930
|
+
ce(".multi-select")
|
|
928
931
|
], Te.prototype, "multiSelect", 2);
|
|
929
932
|
qe([
|
|
930
|
-
|
|
933
|
+
ce('[part~="board-1"]')
|
|
931
934
|
], Te.prototype, "board1", 2);
|
|
932
935
|
qe([
|
|
933
|
-
|
|
936
|
+
ce('[part~="board-2"]')
|
|
934
937
|
], Te.prototype, "board2", 2);
|
|
935
938
|
qe([
|
|
936
939
|
m({ attribute: "first-column-data", type: Object })
|
|
@@ -1033,14 +1036,14 @@ let Qe = class extends Pe {
|
|
|
1033
1036
|
)}<div slot="footer" class="table-column-editor__footer"><cx-button @click=${this.handleCancel}>${this.localize.term("cancel")}</cx-button><cx-button variant="primary" ?disabled=${!this.canApply} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></div></cx-dialog>`;
|
|
1034
1037
|
}
|
|
1035
1038
|
};
|
|
1036
|
-
Qe.styles = [
|
|
1039
|
+
Qe.styles = [We, Va];
|
|
1037
1040
|
Qe.dependencies = {
|
|
1038
1041
|
"cx-button": Et,
|
|
1039
|
-
"cx-dialog":
|
|
1042
|
+
"cx-dialog": Dn,
|
|
1040
1043
|
"cx-multi-select": Te
|
|
1041
1044
|
};
|
|
1042
1045
|
Ht([
|
|
1043
|
-
|
|
1046
|
+
ce("cx-dialog")
|
|
1044
1047
|
], Qe.prototype, "dialogEl", 2);
|
|
1045
1048
|
Ht([
|
|
1046
1049
|
m({ reflect: !0, type: Boolean })
|
|
@@ -1080,7 +1083,7 @@ let Ei = class extends Pe {
|
|
|
1080
1083
|
return x`<slot name="pagination"></slot>`;
|
|
1081
1084
|
}
|
|
1082
1085
|
};
|
|
1083
|
-
Ei.styles = [
|
|
1086
|
+
Ei.styles = [We, Wa];
|
|
1084
1087
|
Zr([
|
|
1085
1088
|
m({ attribute: "pagination-placement", reflect: !0, type: String })
|
|
1086
1089
|
], Ei.prototype, "paginationPlacement", 2);
|
|
@@ -1137,7 +1140,7 @@ let et = class extends Pe {
|
|
|
1137
1140
|
return x`<cx-popup ?active=${this.open} .anchor=${this.virtualAnchor} strategy="overlay" placement="bottom-start" flip shift @cx-opened=${this.handlePopupOpened}><cx-menu @cx-select=${this.handleMenuSelect}><cx-menu-item data-action=${Ci.EditColumns}><cx-icon slot="prefix" name="edit"></cx-icon>${this.localize.term("editColumns")}</cx-menu-item><cx-menu-item data-action=${Ci.HideColumn} ?disabled=${this.hideDisabled}><cx-icon slot="prefix" name="visibility_off"></cx-icon>${this.localize.term("hideColumn")}</cx-menu-item></cx-menu></cx-popup>`;
|
|
1138
1141
|
}
|
|
1139
1142
|
};
|
|
1140
|
-
et.styles = [
|
|
1143
|
+
et.styles = [We, Ua];
|
|
1141
1144
|
et.dependencies = {
|
|
1142
1145
|
"cx-icon": gt,
|
|
1143
1146
|
"cx-menu": ni,
|
|
@@ -1145,7 +1148,7 @@ et.dependencies = {
|
|
|
1145
1148
|
"cx-popup": ea
|
|
1146
1149
|
};
|
|
1147
1150
|
Nt([
|
|
1148
|
-
|
|
1151
|
+
ce("cx-menu-item")
|
|
1149
1152
|
], et.prototype, "firstMenuItem", 2);
|
|
1150
1153
|
Nt([
|
|
1151
1154
|
m({ reflect: !0, type: Boolean })
|
|
@@ -1304,7 +1307,7 @@ let At = class extends Pe {
|
|
|
1304
1307
|
)}</cx-space>`;
|
|
1305
1308
|
}
|
|
1306
1309
|
};
|
|
1307
|
-
At.styles = [
|
|
1310
|
+
At.styles = [We, Xa];
|
|
1308
1311
|
At.dependencies = {
|
|
1309
1312
|
"cx-button": Et,
|
|
1310
1313
|
"cx-icon": gt,
|
|
@@ -1328,7 +1331,7 @@ Xi([
|
|
|
1328
1331
|
At = Xi([
|
|
1329
1332
|
Ie("cx-table-row-actions")
|
|
1330
1333
|
], At);
|
|
1331
|
-
var el = Object.defineProperty, tl = Object.getOwnPropertyDescriptor,
|
|
1334
|
+
var el = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, Di = (r, e, t, i) => {
|
|
1332
1335
|
for (var s = i > 1 ? void 0 : i ? tl(e, t) : e, o = r.length - 1, n; o >= 0; o--)
|
|
1333
1336
|
(n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
|
|
1334
1337
|
return i && s && el(e, t, s), s;
|
|
@@ -1404,7 +1407,7 @@ let Ct = class extends Pe {
|
|
|
1404
1407
|
})} slot="trigger" label=${Z(r)} title=${Z(r)} ?caret=${this.showCaret} outline>${this.renderTriggerIcon()}${J(!this.isIconOnly, () => this.triggerText)}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${this.renderMenuItems()}</cx-menu></cx-dropdown></div>`;
|
|
1405
1408
|
}
|
|
1406
1409
|
};
|
|
1407
|
-
Ct.styles = [
|
|
1410
|
+
Ct.styles = [We];
|
|
1408
1411
|
Ct.dependencies = {
|
|
1409
1412
|
"cx-button": Et,
|
|
1410
1413
|
"cx-dropdown": li,
|
|
@@ -1412,19 +1415,19 @@ Ct.dependencies = {
|
|
|
1412
1415
|
"cx-menu": ni,
|
|
1413
1416
|
"cx-menu-item": ai
|
|
1414
1417
|
};
|
|
1415
|
-
|
|
1418
|
+
Di([
|
|
1416
1419
|
m({ type: Object })
|
|
1417
1420
|
], Ct.prototype, "data", 2);
|
|
1418
|
-
|
|
1421
|
+
Di([
|
|
1419
1422
|
F()
|
|
1420
1423
|
], Ct.prototype, "activeOptionId", 2);
|
|
1421
|
-
|
|
1424
|
+
Di([
|
|
1422
1425
|
F()
|
|
1423
1426
|
], Ct.prototype, "optionsMap", 2);
|
|
1424
|
-
|
|
1427
|
+
Di([
|
|
1425
1428
|
V("data")
|
|
1426
1429
|
], Ct.prototype, "handleDataChange", 1);
|
|
1427
|
-
Ct =
|
|
1430
|
+
Ct = Di([
|
|
1428
1431
|
Ie("cx-table-dropdown-filter")
|
|
1429
1432
|
], Ct);
|
|
1430
1433
|
var il = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Ji = (r, e, t, i) => {
|
|
@@ -1489,7 +1492,7 @@ let Pt = class extends Pe {
|
|
|
1489
1492
|
)}</cx-menu></cx-dropdown>`;
|
|
1490
1493
|
}
|
|
1491
1494
|
};
|
|
1492
|
-
Pt.styles = [
|
|
1495
|
+
Pt.styles = [We];
|
|
1493
1496
|
Pt.dependencies = {
|
|
1494
1497
|
"cx-button": Et,
|
|
1495
1498
|
"cx-dropdown": li,
|
|
@@ -1513,7 +1516,7 @@ var ol = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, bt = (r, e
|
|
|
1513
1516
|
(n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
|
|
1514
1517
|
return i && s && ol(e, t, s), s;
|
|
1515
1518
|
};
|
|
1516
|
-
let
|
|
1519
|
+
let $e = class extends Pe {
|
|
1517
1520
|
constructor() {
|
|
1518
1521
|
super(...arguments), this.localize = new tt(this), this.fetchController = null, this.requestId = 0, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.totalCount = 0, this.loading = !1, this.currentPage = 1;
|
|
1519
1522
|
}
|
|
@@ -1581,8 +1584,8 @@ let Be = class extends Pe {
|
|
|
1581
1584
|
)}</cx-menu></cx-dropdown>`;
|
|
1582
1585
|
}
|
|
1583
1586
|
};
|
|
1584
|
-
|
|
1585
|
-
|
|
1587
|
+
$e.styles = [We];
|
|
1588
|
+
$e.dependencies = {
|
|
1586
1589
|
"cx-button": Et,
|
|
1587
1590
|
"cx-dropdown": li,
|
|
1588
1591
|
"cx-icon": gt,
|
|
@@ -1591,34 +1594,34 @@ Be.dependencies = {
|
|
|
1591
1594
|
};
|
|
1592
1595
|
bt([
|
|
1593
1596
|
m({ attribute: "saved-search-url", type: String })
|
|
1594
|
-
],
|
|
1597
|
+
], $e.prototype, "savedSearchURL", 2);
|
|
1595
1598
|
bt([
|
|
1596
1599
|
m({ attribute: "saved-search-items", type: Array })
|
|
1597
|
-
],
|
|
1600
|
+
], $e.prototype, "savedSearchItems", 2);
|
|
1598
1601
|
bt([
|
|
1599
1602
|
m({ attribute: "saved-search-page-size-param", type: String })
|
|
1600
|
-
],
|
|
1603
|
+
], $e.prototype, "savedSearchPageSizeParam", 2);
|
|
1601
1604
|
bt([
|
|
1602
1605
|
m({ attribute: "saved-search-page-size", type: Number })
|
|
1603
|
-
],
|
|
1606
|
+
], $e.prototype, "savedSearchPageSize", 2);
|
|
1604
1607
|
bt([
|
|
1605
1608
|
m({ attribute: "saved-search-page-number-param", type: String })
|
|
1606
|
-
],
|
|
1609
|
+
], $e.prototype, "savedSearchPageNumberParam", 2);
|
|
1607
1610
|
bt([
|
|
1608
1611
|
F()
|
|
1609
|
-
],
|
|
1612
|
+
], $e.prototype, "totalCount", 2);
|
|
1610
1613
|
bt([
|
|
1611
1614
|
F()
|
|
1612
|
-
],
|
|
1615
|
+
], $e.prototype, "loading", 2);
|
|
1613
1616
|
bt([
|
|
1614
1617
|
F()
|
|
1615
|
-
],
|
|
1618
|
+
], $e.prototype, "currentPage", 2);
|
|
1616
1619
|
bt([
|
|
1617
1620
|
V("savedSearchURL")
|
|
1618
|
-
],
|
|
1619
|
-
|
|
1621
|
+
], $e.prototype, "handleSavedSearchURLChange", 1);
|
|
1622
|
+
$e = bt([
|
|
1620
1623
|
Ie("cx-table-saved-search-dropdown")
|
|
1621
|
-
],
|
|
1624
|
+
], $e);
|
|
1622
1625
|
const nl = q`:host{container-type:inline-size}.header{align-items:center;gap:var(--cx-spacing-small);flex-wrap:wrap;display:none}.header--has-label,.header--has-pagination{display:flex}:host([pagination]) .header{min-height:var(--cx-input-height-medium);display:flex}:host([pagination][no-header-row-reserve][pagination-placement^=bottom]) .header:not(.header--has-label):not(.header--has-pagination){display:none}.header__label{flex:auto;align-items:center;min-width:0;display:flex}.header:not(.header--has-label) .header__label{display:none}.header:not(.header--has-label){justify-content:flex-end}.header__pagination{flex-shrink:0;align-items:center;display:flex}:host([pagination-placement=top-start]) .header__label,:host([pagination-placement=top-center]) .header__label{flex-basis:100%}:host([pagination-placement=top-start]) .header:not(.header--has-label){justify-content:flex-start}:host([pagination-placement=top-center]) .header:not(.header--has-label){justify-content:center}@container (width>=480px){:host([pagination-placement=top-center]) .header.header--has-label,:host([pagination-placement=top-center]) .header.header--has-pagination{grid-template-columns:1fr auto 1fr;display:grid}:host([pagination-placement=top-center]) .header__pagination{grid-column:2}}.header-actions{flex:1}.search{flex:1;max-width:500px}.header-actions__left{flex:1}.search__input{max-width:500px}.search__input:focus-within{border-radius:var(--cx-input-border-radius-medium);--cx-input-border-color-focus:var(--search-border-color-focus,var(--cx-color-primary-600));outline:var(--search-border-width-focus,0) solid var(--cx-input-border-color-focus)}.search__icon{--font-size:var(--cx-font-size-medium)}.search__icon--search{margin-inline-start:var(--cx-spacing-2x-small)}.search__icon--advanced-search{margin-inline-end:var(--cx-spacing-2x-small)}.header-actions__dropdown::part(trigger){line-height:1}.table-dropdown-filter__trigger{--cx-button-text-transform:none}.table-dropdown-filter__trigger--icon-only{--padding:0 var(--cx-spacing-x-small)}.table-dropdown-filter__icon{--font-size:var(--dropdown-filter-icon-size,var(--cx-font-size-large));color:var(--dropdown-filter-icon-color,currentColor)}.header-actions__group-by{--cx-button-text-transform:none}.header-actions__group-by .group-by-option--selected{--label-color:var(--cx-color-primary-600)}.header-actions__group-by .group-by-option{--checked-icon-size:20px;--checked-icon-color:var(--cx-color-primary-600)}.toolbar__select-all-checkbox{flex-shrink:0}.header-actions__saved-search{--cx-button-text-transform:none;--checked-icon-display:none}.header-actions__saved-search__load-more{width:100%;padding:0 var(--cx-spacing-x-small)}`;
|
|
1623
1626
|
var al = Object.defineProperty, ll = Object.getOwnPropertyDescriptor, ie = (r, e, t, i) => {
|
|
1624
1627
|
for (var s = i > 1 ? void 0 : i ? ll(e, t) : e, o = r.length - 1, n; o >= 0; o--)
|
|
@@ -1768,7 +1771,7 @@ let ee = class extends Pe {
|
|
|
1768
1771
|
${J(this.hasHeaderActions, () => this.renderHeaderActions())}</cx-space>`;
|
|
1769
1772
|
}
|
|
1770
1773
|
};
|
|
1771
|
-
ee.styles = [
|
|
1774
|
+
ee.styles = [We, nl];
|
|
1772
1775
|
ee.dependencies = {
|
|
1773
1776
|
"cx-button": Et,
|
|
1774
1777
|
"cx-checkbox": Kr,
|
|
@@ -1782,15 +1785,15 @@ ee.dependencies = {
|
|
|
1782
1785
|
"cx-space": Si,
|
|
1783
1786
|
"cx-table-dropdown-filter": Ct,
|
|
1784
1787
|
"cx-table-group-by-dropdown": Pt,
|
|
1785
|
-
"cx-table-saved-search-dropdown":
|
|
1788
|
+
"cx-table-saved-search-dropdown": $e,
|
|
1786
1789
|
"cx-tooltip": It,
|
|
1787
1790
|
"cx-typography": Nr
|
|
1788
1791
|
};
|
|
1789
1792
|
ie([
|
|
1790
|
-
|
|
1793
|
+
ce("#search-form")
|
|
1791
1794
|
], ee.prototype, "form", 2);
|
|
1792
1795
|
ie([
|
|
1793
|
-
|
|
1796
|
+
ce(".search__input")
|
|
1794
1797
|
], ee.prototype, "searchInput", 2);
|
|
1795
1798
|
ie([
|
|
1796
1799
|
m({
|
|
@@ -3059,23 +3062,23 @@ const Rl = {
|
|
|
3059
3062
|
}), o.push(l);
|
|
3060
3063
|
}), o) : !1;
|
|
3061
3064
|
}
|
|
3062
|
-
},
|
|
3065
|
+
}, Dl = {
|
|
3063
3066
|
copyToClipboard: function(r) {
|
|
3064
3067
|
this.table.modules.edit?.currentCell || this.table.modExists("clipboard", !0) && (r.preventDefault(), this.table.modules.clipboard?.copy(void 0, !0));
|
|
3065
3068
|
}
|
|
3066
|
-
},
|
|
3069
|
+
}, kl = {
|
|
3067
3070
|
copyToClipboard: ["ctrl + 67", "meta + 67"]
|
|
3068
3071
|
}, Tl = {
|
|
3069
3072
|
keybindings: {
|
|
3070
|
-
actions:
|
|
3071
|
-
bindings:
|
|
3073
|
+
actions: Dl,
|
|
3074
|
+
bindings: kl
|
|
3072
3075
|
}
|
|
3073
3076
|
}, Yo = process.env.NODE_ENV === "development";
|
|
3074
3077
|
function Zo(r) {
|
|
3075
3078
|
const e = globalThis.clipboardData, t = r;
|
|
3076
3079
|
return e ?? r.clipboardData ?? t.originalEvent?.clipboardData ?? void 0;
|
|
3077
3080
|
}
|
|
3078
|
-
const
|
|
3081
|
+
const kt = class kt extends I {
|
|
3079
3082
|
// block copy actions not originating from this command
|
|
3080
3083
|
handleCopyEvent(e) {
|
|
3081
3084
|
let t, i, s;
|
|
@@ -3137,7 +3140,7 @@ const Dt = class Dt extends I {
|
|
|
3137
3140
|
setPasteAction(e) {
|
|
3138
3141
|
switch (typeof e) {
|
|
3139
3142
|
case "string": {
|
|
3140
|
-
const t =
|
|
3143
|
+
const t = kt.pasteActions[e];
|
|
3141
3144
|
t ? this.pasteAction = t : Yo && console.warn("Clipboard Error - No such paste action found:", e);
|
|
3142
3145
|
break;
|
|
3143
3146
|
}
|
|
@@ -3149,7 +3152,7 @@ const Dt = class Dt extends I {
|
|
|
3149
3152
|
setPasteParser(e) {
|
|
3150
3153
|
switch (typeof e) {
|
|
3151
3154
|
case "string": {
|
|
3152
|
-
const t =
|
|
3155
|
+
const t = kt.pasteParsers[e];
|
|
3153
3156
|
t ? this.pasteParser = t : Yo && console.warn("Clipboard Error - No such paste parser found:", e);
|
|
3154
3157
|
break;
|
|
3155
3158
|
}
|
|
@@ -3186,8 +3189,8 @@ const Dt = class Dt extends I {
|
|
|
3186
3189
|
return i?.getData && (t = i.getData("text/plain")), t;
|
|
3187
3190
|
}
|
|
3188
3191
|
};
|
|
3189
|
-
|
|
3190
|
-
let Cs =
|
|
3192
|
+
kt.moduleName = "clipboard", kt.moduleExtensions = Tl, kt.pasteActions = Rl, kt.pasteParsers = Sl;
|
|
3193
|
+
let Cs = kt;
|
|
3191
3194
|
class uo {
|
|
3192
3195
|
constructor(e) {
|
|
3193
3196
|
return this._cell = e, new Proxy(this, {
|
|
@@ -3253,7 +3256,7 @@ class uo {
|
|
|
3253
3256
|
}
|
|
3254
3257
|
}
|
|
3255
3258
|
const Ml = x`<div class="tabulator-cell"></div>`, Fl = process.env.NODE_ENV === "development";
|
|
3256
|
-
class
|
|
3259
|
+
class ki extends Me {
|
|
3257
3260
|
constructor(e, t) {
|
|
3258
3261
|
super(e.table), this.table = e.table, this.column = e, this.row = t, this.element = null, this.contentElement = null, this.value = null, this.oldValue = null, this.modules = {}, this.height = null, this.width = null, this.minWidth = null, this.component = null, this.loaded = !1, this.hoverMenuElement = null, this.deleted = !1, this.build();
|
|
3259
3262
|
}
|
|
@@ -3461,10 +3464,10 @@ const rn = {
|
|
|
3461
3464
|
variableHeight: void 0,
|
|
3462
3465
|
vertAlign: void 0,
|
|
3463
3466
|
width: void 0
|
|
3464
|
-
}, Bt = process.env.NODE_ENV === "development",
|
|
3467
|
+
}, Bt = process.env.NODE_ENV === "development", De = class De extends Me {
|
|
3465
3468
|
constructor(e, t, i) {
|
|
3466
3469
|
super(t.table), this.definition = e, this.parent = t, this.type = "column", this.columns = [], this.cells = [], this.isGroup = !1, this.isRowHeader = i ?? !1, this.element = this.createElement(), this.contentElement = !1, this.titleHolderElement = !1, this.titleElement = !1, this.groupElement = this.createGroupElement(), this.hozAlign = "", this.vertAlign = "", this.field = !1, this.fieldStructure = [], this.getFieldValue = this._getFlatData, this.setFieldValue = this._setFlatData, this.titleDownload = null, this.titleFormatterRendered = !1, this.mapDefinitions(), this.setField(this.definition.field), this.modules = {}, this.width = null, this.widthStyled = "", this.maxWidth = null, this.maxWidthStyled = "", this.maxInitialWidth = null, this.minWidth = null, this.minWidthStyled = "", this.widthFixed = !1, this.hidden = !1, this.component = null, this.definition.columns ? (this.isGroup = !0, this.definition.columns.forEach((s) => {
|
|
3467
|
-
const o = new
|
|
3470
|
+
const o = new De(s, this);
|
|
3468
3471
|
this.attachColumn(o);
|
|
3469
3472
|
}), this.checkColumnVisibility()) : t.registerColumnField(this), this._initialize();
|
|
3470
3473
|
}
|
|
@@ -3493,13 +3496,13 @@ const rn = {
|
|
|
3493
3496
|
for (const t in e)
|
|
3494
3497
|
Object.hasOwn(e, t) && (this.definition[t] === void 0 || this.definition[t] === null) && (this.definition[t] = e[t]);
|
|
3495
3498
|
this.definition = this.table.columnManager?.optionsList.generate(
|
|
3496
|
-
|
|
3499
|
+
De.defaultOptionList,
|
|
3497
3500
|
this.definition
|
|
3498
3501
|
);
|
|
3499
3502
|
}
|
|
3500
3503
|
checkDefinition() {
|
|
3501
3504
|
Object.keys(this.definition).forEach((e) => {
|
|
3502
|
-
Bt && !(e in
|
|
3505
|
+
Bt && !(e in De.defaultOptionList) && console.warn(
|
|
3503
3506
|
`Invalid column definition option in '${this.field || this.definition.title}' column: ${e}`
|
|
3504
3507
|
);
|
|
3505
3508
|
});
|
|
@@ -3669,7 +3672,7 @@ const rn = {
|
|
|
3669
3672
|
if (!this.element)
|
|
3670
3673
|
return;
|
|
3671
3674
|
let i;
|
|
3672
|
-
if (this.parent instanceof
|
|
3675
|
+
if (this.parent instanceof De && this.parent.isGroup)
|
|
3673
3676
|
i = this.parent.getGroupElement().clientHeight;
|
|
3674
3677
|
else if ("getHeadersElement" in this.parent) {
|
|
3675
3678
|
const s = this.parent.getHeadersElement();
|
|
@@ -3756,29 +3759,29 @@ const rn = {
|
|
|
3756
3759
|
}
|
|
3757
3760
|
// show column
|
|
3758
3761
|
async show(e, t) {
|
|
3759
|
-
this.hidden && (this.hidden = !1, this.element && (this.element.style.display = ""), this.parent instanceof
|
|
3762
|
+
this.hidden && (this.hidden = !1, this.element && (this.element.style.display = ""), this.parent instanceof De && this.parent.isGroup && await this.parent.checkColumnVisibility(), this.cells.forEach((i) => {
|
|
3760
3763
|
i.show();
|
|
3761
3764
|
}), !this.isGroup && this.width === null && await this.reinitializeWidth(), this.table.columnManager?.verticalAlignHeaders(), this.dispatch("column-show", this, t), e || this.dispatchExternal(
|
|
3762
3765
|
"columnVisibilityChanged",
|
|
3763
3766
|
this.getComponent(),
|
|
3764
3767
|
!0
|
|
3765
|
-
), this.parent instanceof
|
|
3768
|
+
), this.parent instanceof De && this.parent.isGroup && this.parent.matchChildWidths(), this.silent || (this.layoutMode() === "fitColumns" ? this.table.columnManager?.refreshVisibilityLayout() : this.table.columnManager?.rerenderColumns()));
|
|
3766
3769
|
}
|
|
3767
3770
|
// hide column
|
|
3768
3771
|
hide(e, t) {
|
|
3769
|
-
this.hidden || (this.hidden = !0, this.element && (this.element.style.display = "none"), this.table.columnManager?.verticalAlignHeaders(), this.parent instanceof
|
|
3772
|
+
this.hidden || (this.hidden = !0, this.element && (this.element.style.display = "none"), this.table.columnManager?.verticalAlignHeaders(), this.parent instanceof De && this.parent.isGroup && this.parent.checkColumnVisibility(), this.cells.forEach((i) => {
|
|
3770
3773
|
i.hide();
|
|
3771
3774
|
}), this.dispatch("column-hide", this, t), e || this.dispatchExternal(
|
|
3772
3775
|
"columnVisibilityChanged",
|
|
3773
3776
|
this.getComponent(),
|
|
3774
3777
|
!1
|
|
3775
|
-
), this.parent instanceof
|
|
3778
|
+
), this.parent instanceof De && this.parent.isGroup && this.parent.matchChildWidths(), this.silent || (this.layoutMode() === "fitColumns" ? this.table.columnManager?.refreshVisibilityLayout() : this.table.columnManager?.rerenderColumns()));
|
|
3776
3779
|
}
|
|
3777
3780
|
matchChildWidths() {
|
|
3778
3781
|
let e = 0;
|
|
3779
3782
|
this.contentElement && this.columns.length && (this.columns.forEach((t) => {
|
|
3780
3783
|
t.hidden || (e += t.getWidth());
|
|
3781
|
-
}), this.contentElement.style.maxWidth = e - 1 + "px", this.table.initialized && this.element && (this.element.style.width = e + "px"), this.parent instanceof
|
|
3784
|
+
}), this.contentElement.style.maxWidth = e - 1 + "px", this.table.initialized && this.element && (this.element.style.width = e + "px"), this.parent instanceof De && this.parent.isGroup && this.parent.matchChildWidths());
|
|
3782
3785
|
}
|
|
3783
3786
|
removeChild(e) {
|
|
3784
3787
|
const t = this.columns.indexOf(e);
|
|
@@ -3793,7 +3796,7 @@ const rn = {
|
|
|
3793
3796
|
this.table.element.clientWidth / 100 * parseInt(e, 10)
|
|
3794
3797
|
) : t = Number(e) : t = e, this.minWidth !== null && (t = Math.max(this.minWidth, t)), this.maxWidth && (t = Math.min(this.maxWidth, t)), this.width = t, this.widthStyled = t ? t + "px" : "", this.element && (this.element.style.width = this.widthStyled), this.isGroup || this.cells.forEach((i) => {
|
|
3795
3798
|
i.setWidth();
|
|
3796
|
-
}), this.parent instanceof
|
|
3799
|
+
}), this.parent instanceof De && this.parent.isGroup && this.parent.matchChildWidths(), this.dispatch("column-width", this), this.subscribedExternal("columnWidth") && this.dispatchExternal("columnWidth", this.getComponent());
|
|
3797
3800
|
}
|
|
3798
3801
|
checkCellHeights() {
|
|
3799
3802
|
const e = [];
|
|
@@ -3815,7 +3818,7 @@ const rn = {
|
|
|
3815
3818
|
if (!this.element)
|
|
3816
3819
|
return 0;
|
|
3817
3820
|
let e = this.element.offsetLeft;
|
|
3818
|
-
return this.parent instanceof
|
|
3821
|
+
return this.parent instanceof De && this.parent.isGroup && (e += this.parent.getLeftOffset()), e;
|
|
3819
3822
|
}
|
|
3820
3823
|
getHeight() {
|
|
3821
3824
|
return this.element ? Math.ceil(this.element.getBoundingClientRect().height) : 0;
|
|
@@ -3850,7 +3853,7 @@ const rn = {
|
|
|
3850
3853
|
const t = this.cells.length;
|
|
3851
3854
|
for (let i = 0; i < t; i++)
|
|
3852
3855
|
this.cells[0].delete();
|
|
3853
|
-
this.element && this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element = !1, this.contentElement = !1, this.titleElement = !1, this.groupElement = !1, this.parent instanceof
|
|
3856
|
+
this.element && this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element = !1, this.contentElement = !1, this.titleElement = !1, this.groupElement = !1, this.parent instanceof De && this.parent.isGroup && this.parent.removeChild(this), this.table.columnManager?.deregisterColumn(this), this.table.columnManager?.rerenderColumns(!0), this.dispatch("column-deleted", this), e();
|
|
3854
3857
|
});
|
|
3855
3858
|
}
|
|
3856
3859
|
columnRendered() {
|
|
@@ -3861,7 +3864,7 @@ const rn = {
|
|
|
3861
3864
|
*/
|
|
3862
3865
|
// generate cell for this column
|
|
3863
3866
|
generateCell(e) {
|
|
3864
|
-
const t = new
|
|
3867
|
+
const t = new ki(this, e);
|
|
3865
3868
|
return this.cells.push(t), t;
|
|
3866
3869
|
}
|
|
3867
3870
|
nextColumn() {
|
|
@@ -3915,7 +3918,7 @@ const rn = {
|
|
|
3915
3918
|
), Promise.reject(
|
|
3916
3919
|
"Column Update Error - The updateDefinition function is only available on columns, not column groups"
|
|
3917
3920
|
);
|
|
3918
|
-
if (!(this.parent instanceof
|
|
3921
|
+
if (!(this.parent instanceof De) || !this.parent.isGroup) {
|
|
3919
3922
|
const t = { ...this.getDefinition() }, i = Object.assign(t, e);
|
|
3920
3923
|
return this.table.columnManager ? this.table.columnManager.addColumn(i, !1, this).then((s) => (i.field == this.field && (this.field = !1), this.delete().then(() => s.getComponent()))) : Promise.reject("ColumnManager not available");
|
|
3921
3924
|
} else
|
|
@@ -3939,11 +3942,11 @@ const rn = {
|
|
|
3939
3942
|
return (this.table.columnManager?.getVisibleColumnsByIndex().indexOf(this) ?? -1) + 1;
|
|
3940
3943
|
}
|
|
3941
3944
|
getParentComponent() {
|
|
3942
|
-
return this.parent instanceof
|
|
3945
|
+
return this.parent instanceof De ? this.parent.getComponent() : !1;
|
|
3943
3946
|
}
|
|
3944
3947
|
};
|
|
3945
|
-
|
|
3946
|
-
let
|
|
3948
|
+
De.defaultOptionList = rn;
|
|
3949
|
+
let Be = De;
|
|
3947
3950
|
class po {
|
|
3948
3951
|
constructor(e) {
|
|
3949
3952
|
return this._row = e, new Proxy(this, {
|
|
@@ -4019,7 +4022,7 @@ class po {
|
|
|
4019
4022
|
}
|
|
4020
4023
|
}
|
|
4021
4024
|
const Qo = process.env.NODE_ENV === "development";
|
|
4022
|
-
class
|
|
4025
|
+
class ke extends Me {
|
|
4023
4026
|
constructor(e, t, i = "row") {
|
|
4024
4027
|
super(t.table), this.parent = t, this.data = {}, this.type = i, this.element = !1, this.modules = {}, this.cells = [], this.height = 0, this.heightStyled = "", this.manualHeight = !1, this.outerHeight = 0, this.initialized = !1, this.heightInitialized = !1, this.position = 0, this.positionWatchers = [], this.component = null, this.created = !1, this.setData(e);
|
|
4025
4028
|
}
|
|
@@ -4340,7 +4343,7 @@ const zl = {
|
|
|
4340
4343
|
return e.classList.add("tabulator-calcs-holder"), e;
|
|
4341
4344
|
}
|
|
4342
4345
|
initialize() {
|
|
4343
|
-
this.genColumn = new
|
|
4346
|
+
this.genColumn = new Be({ field: "value", title: "" }, this), this.subscribe("cell-value-changed", this.cellValueChanged.bind(this)), this.subscribe("column-init", this.initializeColumnCheck.bind(this)), this.subscribe("row-deleted", this.rowsUpdated.bind(this)), this.subscribe("scroll-horizontal", this.scrollHorizontal.bind(this)), this.subscribe("row-added", this.rowsUpdated.bind(this)), this.subscribe("column-moved", this.recalcActiveRows.bind(this)), this.subscribe("column-add", this.recalcActiveRows.bind(this)), this.subscribe("data-refreshed", this.recalcActiveRowsRefresh.bind(this)), this.subscribe("table-redraw", this.tableRedraw.bind(this)), this.subscribe("rows-visible", this.visibleRows.bind(this)), this.subscribe("scrollbar-vertical", this.adjustForScrollbar.bind(this)), this.subscribe("redraw-blocked", this.blockRedraw.bind(this)), this.subscribe("redraw-restored", this.restoreRedraw.bind(this)), this.subscribe("table-redrawing", this.resizeHolderWidth.bind(this)), this.subscribe("column-resized", this.resizeHolderWidth.bind(this)), this.subscribe("column-show", this.resizeHolderWidth.bind(this)), this.subscribe("column-hide", this.resizeHolderWidth.bind(this)), this.registerTableFunction("getCalcResults", this.getResults.bind(this)), this.registerTableFunction("recalc", this.userRecalc.bind(this)), this.resizeHolderWidth();
|
|
4344
4347
|
}
|
|
4345
4348
|
resizeHolderWidth() {
|
|
4346
4349
|
this.table.columnManager?.headersElement && (this.topElement.style.minWidth = this.table.columnManager.headersElement.offsetWidth + "px");
|
|
@@ -4498,7 +4501,7 @@ const zl = {
|
|
|
4498
4501
|
generateRow(e, t) {
|
|
4499
4502
|
const i = this.generateRowData(e, t);
|
|
4500
4503
|
this.table.modExists("mutator") && this.table.modules.mutator?.disable();
|
|
4501
|
-
const s = new
|
|
4504
|
+
const s = new ke(i, this, "calc");
|
|
4502
4505
|
return this.table.modExists("mutator") && this.table.modules.mutator?.enable(), s.getElement().classList.add("tabulator-calcs", "tabulator-calcs-" + e), s.component = null, s.getComponent = () => (s.component || (s.component = new Ll(s)), s.component), s.generateCells = () => {
|
|
4503
4506
|
const o = [];
|
|
4504
4507
|
this.table.columnManager?.columnsByIndex.forEach((n) => {
|
|
@@ -4516,7 +4519,7 @@ const zl = {
|
|
|
4516
4519
|
),
|
|
4517
4520
|
params: {}
|
|
4518
4521
|
}, this.genColumn.definition.cssClass = n.definition.cssClass;
|
|
4519
|
-
const h = new
|
|
4522
|
+
const h = new ki(this.genColumn, s);
|
|
4520
4523
|
h.getElement(), h.column = n, h.setWidth(), n.cells.push(h), o.push(h), n.hidden && h.hide();
|
|
4521
4524
|
}
|
|
4522
4525
|
}), s.cells = o;
|
|
@@ -4573,7 +4576,7 @@ const zl = {
|
|
|
4573
4576
|
};
|
|
4574
4577
|
Tt.moduleName = "columnCalcs", Tt.calculations = zl;
|
|
4575
4578
|
let Es = Tt;
|
|
4576
|
-
class xs extends
|
|
4579
|
+
class xs extends ke {
|
|
4577
4580
|
constructor(e = {}, t) {
|
|
4578
4581
|
super(e, t), this.type = "placeholder", this.height = 0, this.outerHeight = 0, this.initialized = !1, this.modules = {}, this.cells = [];
|
|
4579
4582
|
}
|
|
@@ -4770,7 +4773,7 @@ const _l = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
4770
4773
|
const t = [];
|
|
4771
4774
|
return e.forEach((i) => {
|
|
4772
4775
|
let s, o;
|
|
4773
|
-
t.push(i), i instanceof
|
|
4776
|
+
t.push(i), i instanceof ke && (i.create(), s = i.modules.dataTree, !s.index && s.children !== !1 && (o = this.getChildren(i, !1, !0), o.forEach((n) => {
|
|
4774
4777
|
n.create(), t.push(n);
|
|
4775
4778
|
})));
|
|
4776
4779
|
}), t;
|
|
@@ -4793,7 +4796,7 @@ const _l = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
4793
4796
|
Array.isArray(i) || (i = i ? [i] : []);
|
|
4794
4797
|
const s = e.modules.dataTree.index + 1;
|
|
4795
4798
|
if (i.forEach((o) => {
|
|
4796
|
-
const n = new
|
|
4799
|
+
const n = new ke(o || {}, this.table.rowManager);
|
|
4797
4800
|
n.create(), n.modules.dataTree.index = s, n.modules.dataTree.parent = e, n.modules.dataTree.children && (n.modules.dataTree.open = this.startOpen(
|
|
4798
4801
|
n.getComponent(),
|
|
4799
4802
|
n.modules.dataTree.index
|
|
@@ -4936,13 +4939,13 @@ const _l = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
4936
4939
|
return t.children && (Array.isArray(t.children) || (e.modules.dataTree.children = this.generateChildren(e)), this.table.modExists("filter") && this.table.options.dataTreeFilter ? s = this.table.modules.filter?.filter(
|
|
4937
4940
|
e.modules.dataTree.children
|
|
4938
4941
|
) || [] : s = e.modules.dataTree.children, s.forEach((o) => {
|
|
4939
|
-
o instanceof
|
|
4942
|
+
o instanceof ke && i.push(o);
|
|
4940
4943
|
})), i;
|
|
4941
4944
|
}
|
|
4942
4945
|
rowDeleting(e) {
|
|
4943
4946
|
const t = e.modules.dataTree;
|
|
4944
4947
|
t && t.children && Array.isArray(t.children) && t.children.forEach((i) => {
|
|
4945
|
-
i instanceof
|
|
4948
|
+
i instanceof ke && i.wipe();
|
|
4946
4949
|
});
|
|
4947
4950
|
}
|
|
4948
4951
|
rowDelete(e) {
|
|
@@ -4964,14 +4967,14 @@ const _l = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
4964
4967
|
findChildIndex(e, t) {
|
|
4965
4968
|
let i = !1;
|
|
4966
4969
|
if (typeof e == "object")
|
|
4967
|
-
if (e instanceof
|
|
4970
|
+
if (e instanceof ke)
|
|
4968
4971
|
i = e.data;
|
|
4969
4972
|
else if (e._getSelf)
|
|
4970
4973
|
i = e._getSelf().data;
|
|
4971
4974
|
else if (typeof HTMLElement < "u" && e instanceof HTMLElement) {
|
|
4972
4975
|
const s = t.modules.dataTree;
|
|
4973
4976
|
if (s) {
|
|
4974
|
-
const o = s.children?.find((n) => n instanceof
|
|
4977
|
+
const o = s.children?.find((n) => n instanceof ke ? n.element === e : !1);
|
|
4975
4978
|
o && (i = o.data);
|
|
4976
4979
|
}
|
|
4977
4980
|
} else e === null && (i = !1);
|
|
@@ -4992,7 +4995,7 @@ const _l = x`<span class="tabulator-data-tree-control" tabindex="0"><cx-icon-but
|
|
|
4992
4995
|
getTreeChildren(e, t, i) {
|
|
4993
4996
|
const s = e.modules.dataTree, o = [];
|
|
4994
4997
|
return s?.children && (Array.isArray(s.children) || (e.modules.dataTree.children = this.generateChildren(e)), s.children.forEach((n) => {
|
|
4995
|
-
n instanceof
|
|
4998
|
+
n instanceof ke && (t ? o.push(n.getComponent()) : o.push(n), i && this.getTreeChildren(n, t, i).forEach(
|
|
4996
4999
|
(a) => {
|
|
4997
5000
|
o.push(a);
|
|
4998
5001
|
}
|
|
@@ -5122,7 +5125,7 @@ const tr = process.env.NODE_ENV === "development", Bl = function(r, e = {}, t) {
|
|
|
5122
5125
|
function d(f, w) {
|
|
5123
5126
|
const E = [];
|
|
5124
5127
|
return f.columns.forEach((y) => {
|
|
5125
|
-
let
|
|
5128
|
+
let D;
|
|
5126
5129
|
if (y) {
|
|
5127
5130
|
let T = y.value;
|
|
5128
5131
|
switch (typeof T) {
|
|
@@ -5133,11 +5136,11 @@ const tr = process.env.NODE_ENV === "development", Bl = function(r, e = {}, t) {
|
|
|
5133
5136
|
T = "";
|
|
5134
5137
|
break;
|
|
5135
5138
|
}
|
|
5136
|
-
|
|
5139
|
+
D = {
|
|
5137
5140
|
colSpan: y.width,
|
|
5138
5141
|
content: T,
|
|
5139
5142
|
rowSpan: y.height
|
|
5140
|
-
}, w && (
|
|
5143
|
+
}, w && (D.styles = w), E.push(D);
|
|
5141
5144
|
}
|
|
5142
5145
|
}), E;
|
|
5143
5146
|
}
|
|
@@ -5187,23 +5190,23 @@ const tr = process.env.NODE_ENV === "development", Bl = function(r, e = {}, t) {
|
|
|
5187
5190
|
const f = [], w = [], E = {}, y = {
|
|
5188
5191
|
e: {
|
|
5189
5192
|
c: r[0] ? r[0].columns.reduce(
|
|
5190
|
-
(
|
|
5193
|
+
(D, T) => D + (T?.width ? T.width : 1),
|
|
5191
5194
|
0
|
|
5192
5195
|
) : 0,
|
|
5193
5196
|
r: r.length
|
|
5194
5197
|
},
|
|
5195
5198
|
s: { c: 0, r: 0 }
|
|
5196
5199
|
};
|
|
5197
|
-
return r.forEach((
|
|
5198
|
-
const
|
|
5199
|
-
|
|
5200
|
-
L ? (
|
|
5200
|
+
return r.forEach((D, T) => {
|
|
5201
|
+
const de = [];
|
|
5202
|
+
D.columns.forEach((L, ge) => {
|
|
5203
|
+
L ? (de.push(
|
|
5201
5204
|
!(L.value instanceof Date) && typeof L.value == "object" ? JSON.stringify(L.value) : L.value
|
|
5202
5205
|
), (L.width > 1 || L.height > -1) && (L.height > 1 || L.width > 1) && w.push({
|
|
5203
5206
|
e: { c: ge + L.width - 1, r: T + L.height - 1 },
|
|
5204
5207
|
s: { c: ge, r: T }
|
|
5205
|
-
})) :
|
|
5206
|
-
}), f.push(
|
|
5208
|
+
})) : de.push("");
|
|
5209
|
+
}), f.push(de);
|
|
5207
5210
|
}), o.utils.sheet_add_aoa(E, f), E["!ref"] = o.utils.encode_range(y), w.length && (E["!merges"] = w), E;
|
|
5208
5211
|
}
|
|
5209
5212
|
if (e.sheetOnly) {
|
|
@@ -5729,7 +5732,7 @@ function gh(r, e, t) {
|
|
|
5729
5732
|
gap: f,
|
|
5730
5733
|
justifyContent: w,
|
|
5731
5734
|
wrap: E
|
|
5732
|
-
} = e, y = x`<cx-space class="tabulator-composite" style=${ft(p ?? {})} align-items=${c ?? "center"} ?block=${d} direction=${Z(u)} justify-content=${Z(w)} spacing=${f ?? "3x-small"} wrap=${E ?? "nowrap"}></cx-space>`,
|
|
5735
|
+
} = e, y = x`<cx-space class="tabulator-composite" style=${ft(p ?? {})} align-items=${c ?? "center"} ?block=${d} direction=${Z(u)} justify-content=${Z(w)} spacing=${f ?? "3x-small"} wrap=${E ?? "nowrap"}></cx-space>`, D = B(y), T = [];
|
|
5733
5736
|
return e.elements.forEach((L) => {
|
|
5734
5737
|
const ge = nr({
|
|
5735
5738
|
cell: r,
|
|
@@ -5750,7 +5753,7 @@ function gh(r, e, t) {
|
|
|
5750
5753
|
getType: () => "cell",
|
|
5751
5754
|
getValue: () => Y,
|
|
5752
5755
|
value: Y
|
|
5753
|
-
}, R = typeof L.formatterParams == "function" ? L.formatterParams(C) : L.formatterParams ?? {},
|
|
5756
|
+
}, R = typeof L.formatterParams == "function" ? L.formatterParams(C) : L.formatterParams ?? {}, k = (re) => {
|
|
5754
5757
|
t && t(re);
|
|
5755
5758
|
};
|
|
5756
5759
|
let S;
|
|
@@ -5759,7 +5762,7 @@ function gh(r, e, t) {
|
|
|
5759
5762
|
this,
|
|
5760
5763
|
C,
|
|
5761
5764
|
R,
|
|
5762
|
-
|
|
5765
|
+
k
|
|
5763
5766
|
);
|
|
5764
5767
|
} catch {
|
|
5765
5768
|
S = String(Y ?? "");
|
|
@@ -5780,7 +5783,7 @@ function gh(r, e, t) {
|
|
|
5780
5783
|
return [z];
|
|
5781
5784
|
const C = document.createElement("span");
|
|
5782
5785
|
return typeof Y == "string" ? C.textContent = Y : C.appendChild(Y.cloneNode(!0)), [z, C];
|
|
5783
|
-
}).forEach((L) =>
|
|
5786
|
+
}).forEach((L) => D.appendChild(L)), D);
|
|
5784
5787
|
}
|
|
5785
5788
|
function bh(r) {
|
|
5786
5789
|
if (r == null || r === "")
|
|
@@ -5837,13 +5840,13 @@ function Rh(r, e, t) {
|
|
|
5837
5840
|
function Sh(r, e, t) {
|
|
5838
5841
|
return r.getValue();
|
|
5839
5842
|
}
|
|
5840
|
-
const
|
|
5841
|
-
function
|
|
5843
|
+
const Dh = x`<cx-icon></cx-icon>`;
|
|
5844
|
+
function kh(r, e) {
|
|
5842
5845
|
const t = r.getValue(), i = e ?? {};
|
|
5843
5846
|
let s;
|
|
5844
5847
|
if (i.getIcon ? s = i.getIcon(t) : typeof i.icon == "function" ? s = i.icon(t) : i.iconMap ? s = i.iconMap[t] : i.icon ? s = i.icon : s = t ? String(t) : void 0, !s)
|
|
5845
5848
|
return;
|
|
5846
|
-
const o = B(
|
|
5849
|
+
const o = B(Dh);
|
|
5847
5850
|
if (o.name = s, i.size !== void 0)
|
|
5848
5851
|
switch (typeof i.size) {
|
|
5849
5852
|
case "number":
|
|
@@ -6253,7 +6256,7 @@ const an = {
|
|
|
6253
6256
|
diff: xh,
|
|
6254
6257
|
handle: Rh,
|
|
6255
6258
|
html: Sh,
|
|
6256
|
-
icon:
|
|
6259
|
+
icon: kh,
|
|
6257
6260
|
image: Mh,
|
|
6258
6261
|
json: Lh,
|
|
6259
6262
|
link: _h,
|
|
@@ -6703,14 +6706,14 @@ class hc {
|
|
|
6703
6706
|
return 0;
|
|
6704
6707
|
if (!(c.test(i) && c.test(s)))
|
|
6705
6708
|
return i > s ? 1 : -1;
|
|
6706
|
-
const y = i.match(h),
|
|
6707
|
-
if (!y || !
|
|
6709
|
+
const y = i.match(h), D = s.match(h);
|
|
6710
|
+
if (!y || !D)
|
|
6708
6711
|
return i > s ? 1 : -1;
|
|
6709
|
-
for (i = y.join(""), s =
|
|
6712
|
+
for (i = y.join(""), s = D.join(""), l = Math.min(i.length, s.length); a < l; )
|
|
6710
6713
|
if (o = i[a], n = s[a++], o !== n) {
|
|
6711
|
-
const T = Number(o),
|
|
6712
|
-
if (Number.isFinite(T) && Number.isFinite(
|
|
6713
|
-
const L = o.startsWith("0") ? Number.parseFloat("." + o) : T, ge = n.startsWith("0") ? Number.parseFloat("." + n) :
|
|
6714
|
+
const T = Number(o), de = Number(n);
|
|
6715
|
+
if (Number.isFinite(T) && Number.isFinite(de) && !Number.isNaN(T) && !Number.isNaN(de)) {
|
|
6716
|
+
const L = o.startsWith("0") ? Number.parseFloat("." + o) : T, ge = n.startsWith("0") ? Number.parseFloat("." + n) : de;
|
|
6714
6717
|
return L - ge;
|
|
6715
6718
|
} else
|
|
6716
6719
|
return o > n ? 1 : -1;
|
|
@@ -6962,18 +6965,18 @@ const cc = function(r, e, t, i, s) {
|
|
|
6962
6965
|
const d = document.createElement("div"), p = document.createElement("div");
|
|
6963
6966
|
let u = !1, f = !1;
|
|
6964
6967
|
function w() {
|
|
6965
|
-
const y = window.getComputedStyle(o, null),
|
|
6968
|
+
const y = window.getComputedStyle(o, null), D = h * Math.round(
|
|
6966
6969
|
p.offsetWidth / ((o.clientWidth - parseInt(y.getPropertyValue("padding-left")) - parseInt(y.getPropertyValue("padding-right"))) / 100)
|
|
6967
6970
|
) + a;
|
|
6968
|
-
t(
|
|
6971
|
+
t(D), o.setAttribute("aria-valuenow", String(D)), o.setAttribute("aria-label", String(D));
|
|
6969
6972
|
}
|
|
6970
6973
|
if (d.style.position = "absolute", d.style.right = "0", d.style.top = "0", d.style.bottom = "0", d.style.width = "5px", d.classList.add("tabulator-progress-handle"), p.style.display = "inline-block", p.style.position = "relative", p.style.height = "100%", p.style.backgroundColor = "#488CE9", p.style.maxWidth = "100%", p.style.minWidth = "0%", s.elementAttributes && typeof s.elementAttributes == "object")
|
|
6971
6974
|
for (const y in s.elementAttributes)
|
|
6972
6975
|
if (y.charAt(0) === "+") {
|
|
6973
|
-
const
|
|
6976
|
+
const D = y.slice(1);
|
|
6974
6977
|
p.setAttribute(
|
|
6975
|
-
|
|
6976
|
-
(p.getAttribute(
|
|
6978
|
+
D,
|
|
6979
|
+
(p.getAttribute(D) || "") + s.elementAttributes["+" + D]
|
|
6977
6980
|
);
|
|
6978
6981
|
} else
|
|
6979
6982
|
p.setAttribute(y, s.elementAttributes[y]);
|
|
@@ -7049,8 +7052,8 @@ const cc = function(r, e, t, i, s) {
|
|
|
7049
7052
|
"svg"
|
|
7050
7053
|
);
|
|
7051
7054
|
function u(E) {
|
|
7052
|
-
c.forEach((y,
|
|
7053
|
-
|
|
7055
|
+
c.forEach((y, D) => {
|
|
7056
|
+
D < E ? (o.table.browser === "ie" ? y.setAttribute("class", "tabulator-star-active") : y.classList.replace(
|
|
7054
7057
|
"tabulator-star-inactive",
|
|
7055
7058
|
"tabulator-star-active"
|
|
7056
7059
|
), y.innerHTML = '<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>') : (o.table.browser === "ie" ? y.setAttribute("class", "tabulator-star-inactive") : y.classList.replace(
|
|
@@ -7060,14 +7063,14 @@ const cc = function(r, e, t, i, s) {
|
|
|
7060
7063
|
});
|
|
7061
7064
|
}
|
|
7062
7065
|
function f(E) {
|
|
7063
|
-
const y = document.createElement("span"),
|
|
7064
|
-
c.push(
|
|
7066
|
+
const y = document.createElement("span"), D = p.cloneNode(!0);
|
|
7067
|
+
c.push(D), y.addEventListener("mouseenter", (T) => {
|
|
7065
7068
|
T.stopPropagation(), T.stopImmediatePropagation(), u(E);
|
|
7066
7069
|
}), y.addEventListener("mousemove", (T) => {
|
|
7067
7070
|
T.stopPropagation(), T.stopImmediatePropagation();
|
|
7068
7071
|
}), y.addEventListener("click", (T) => {
|
|
7069
7072
|
T.stopPropagation(), T.stopImmediatePropagation(), t(E), n.blur();
|
|
7070
|
-
}), y.appendChild(
|
|
7073
|
+
}), y.appendChild(D), d.appendChild(y);
|
|
7071
7074
|
}
|
|
7072
7075
|
function w(E) {
|
|
7073
7076
|
const y = Math.max(0, Math.min(E, l));
|
|
@@ -7640,8 +7643,8 @@ const cc = function(r, e, t, i, s) {
|
|
|
7640
7643
|
n.appendChild(l), o();
|
|
7641
7644
|
const E = n.children;
|
|
7642
7645
|
for (const y of E)
|
|
7643
|
-
y.addEventListener("click", (
|
|
7644
|
-
|
|
7646
|
+
y.addEventListener("click", (D) => {
|
|
7647
|
+
D.stopPropagation();
|
|
7645
7648
|
});
|
|
7646
7649
|
} else
|
|
7647
7650
|
return Mi && console.warn(
|
|
@@ -7678,7 +7681,7 @@ const cc = function(r, e, t, i, s) {
|
|
|
7678
7681
|
}
|
|
7679
7682
|
};
|
|
7680
7683
|
gi.moduleName = "edit", gi.editors = vc;
|
|
7681
|
-
let
|
|
7684
|
+
let Ds = gi;
|
|
7682
7685
|
const Ec = {}, xc = {
|
|
7683
7686
|
active: function() {
|
|
7684
7687
|
return this.options.pagination ? this.rowManager?.getDisplayRows(
|
|
@@ -8162,7 +8165,7 @@ const Rc = process.env.NODE_ENV === "development", Ft = class Ft extends I {
|
|
|
8162
8165
|
}
|
|
8163
8166
|
};
|
|
8164
8167
|
Ft.moduleName = "export", Ft.columnLookups = Ec, Ft.rowLookups = xc;
|
|
8165
|
-
let
|
|
8168
|
+
let ks = Ft;
|
|
8166
8169
|
const cr = process.env.NODE_ENV === "development", Sc = {
|
|
8167
8170
|
// not equal to
|
|
8168
8171
|
"!=": function(r, e, t, i) {
|
|
@@ -8225,15 +8228,15 @@ const cr = process.env.NODE_ENV === "development", Sc = {
|
|
|
8225
8228
|
starts: function(r, e, t, i) {
|
|
8226
8229
|
return r == null ? e === r : e != null ? String(e).toLowerCase().startsWith(r.toLowerCase()) : !1;
|
|
8227
8230
|
}
|
|
8228
|
-
},
|
|
8231
|
+
}, Dc = /<[^>]*>/g;
|
|
8229
8232
|
function Qi(r) {
|
|
8230
8233
|
return !!r && typeof r == "object" && !Array.isArray(r) && typeof r != "function";
|
|
8231
8234
|
}
|
|
8232
8235
|
function Vi(r, e, t) {
|
|
8233
8236
|
e != null && (t !== void 0 && e === t || r.push(e));
|
|
8234
8237
|
}
|
|
8235
|
-
function
|
|
8236
|
-
return r == null ? "" : String(r).replace(
|
|
8238
|
+
function kc(r) {
|
|
8239
|
+
return r == null ? "" : String(r).replace(Dc, "");
|
|
8237
8240
|
}
|
|
8238
8241
|
function Oe(r) {
|
|
8239
8242
|
try {
|
|
@@ -8356,9 +8359,9 @@ function Ac(r) {
|
|
|
8356
8359
|
let w = f[0];
|
|
8357
8360
|
const E = f.length > 1 ? o + f[1] : "";
|
|
8358
8361
|
if (i.thousand !== !1) {
|
|
8359
|
-
const
|
|
8360
|
-
for (;
|
|
8361
|
-
w = w.replace(
|
|
8362
|
+
const D = /(\d+)(\d{3})/;
|
|
8363
|
+
for (; D.test(w); )
|
|
8364
|
+
w = w.replace(D, "$1" + n + "$2");
|
|
8362
8365
|
}
|
|
8363
8366
|
let y = w + E;
|
|
8364
8367
|
return i.negativeSign === !0 ? (y = "(" + y + ")", [h ? y + l : l + y]) : [h ? p + y + l : p + l + y];
|
|
@@ -8454,7 +8457,7 @@ function Bc(r) {
|
|
|
8454
8457
|
function pn(r) {
|
|
8455
8458
|
if (typeof r.rawValue != "string" || !r.rawValue.includes("<"))
|
|
8456
8459
|
return [];
|
|
8457
|
-
const e =
|
|
8460
|
+
const e = kc(r.rawValue);
|
|
8458
8461
|
return !e || e === r.rawValue ? [] : [e];
|
|
8459
8462
|
}
|
|
8460
8463
|
function $c(r) {
|
|
@@ -8857,17 +8860,17 @@ const Ae = process.env.NODE_ENV === "development", ct = class ct extends I {
|
|
|
8857
8860
|
"headerFilters|columns|" + e.definition.field,
|
|
8858
8861
|
(y) => {
|
|
8859
8862
|
if (h) {
|
|
8860
|
-
const
|
|
8861
|
-
h.setAttribute("placeholder",
|
|
8863
|
+
const D = y != null && y ? y : e.definition.headerFilterPlaceholder || s.langText("headerFilters|default");
|
|
8864
|
+
h.setAttribute("placeholder", D || "");
|
|
8862
8865
|
}
|
|
8863
8866
|
}
|
|
8864
8867
|
), h.addEventListener("click", (y) => {
|
|
8865
8868
|
y.stopPropagation(), h && h.focus();
|
|
8866
8869
|
}), h.addEventListener("focus", () => {
|
|
8867
|
-
const y = this.table.columnManager?.contentsElement,
|
|
8868
|
-
if (y &&
|
|
8869
|
-
const T = y.scrollLeft,
|
|
8870
|
-
T !==
|
|
8870
|
+
const y = this.table.columnManager?.contentsElement, D = this.table.rowManager?.element;
|
|
8871
|
+
if (y && D && this.table.rowManager && this.table.columnManager) {
|
|
8872
|
+
const T = y.scrollLeft, de = D.scrollLeft;
|
|
8873
|
+
T !== de && (this.table.rowManager.scrollHorizontal(T), this.table.columnManager.scrollHorizontal(T));
|
|
8871
8874
|
}
|
|
8872
8875
|
}), d = !1, p = function(y) {
|
|
8873
8876
|
d && clearTimeout(d), d = setTimeout(() => {
|
|
@@ -9243,9 +9246,9 @@ const Kc = process.env.NODE_ENV === "development", Co = class Co extends I {
|
|
|
9243
9246
|
e.isGroup || !this.frozenCheck(e) || (this.rebuildFrozenLists(), this.layout());
|
|
9244
9247
|
}
|
|
9245
9248
|
frozenCheck(e) {
|
|
9246
|
-
return e.parent instanceof
|
|
9249
|
+
return e.parent instanceof Be && e.parent.isGroup && e.definition.frozen && Kc && console.warn(
|
|
9247
9250
|
"Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"
|
|
9248
|
-
), e.parent instanceof
|
|
9251
|
+
), e.parent instanceof Be && e.parent.isGroup ? this.frozenCheck(e.parent) : !!e.definition.frozen;
|
|
9249
9252
|
}
|
|
9250
9253
|
// layout calculation rows
|
|
9251
9254
|
layoutCalcRows() {
|
|
@@ -9264,7 +9267,7 @@ const Kc = process.env.NODE_ENV === "development", Co = class Co extends I {
|
|
|
9264
9267
|
let i = 0, s = 0;
|
|
9265
9268
|
this.leftColumns.forEach((o, n) => {
|
|
9266
9269
|
const a = o.modules.frozen;
|
|
9267
|
-
if (a.marginValue = i, a.margin = a.marginValue + "px", o.hidden || (i += o.getWidth()), n === this.leftColumns.length - 1 ? a.edge = !0 : a.edge = !1, o.parent instanceof
|
|
9270
|
+
if (a.marginValue = i, a.margin = a.marginValue + "px", o.hidden || (i += o.getWidth()), n === this.leftColumns.length - 1 ? a.edge = !0 : a.edge = !1, o.parent instanceof Be && o.parent.isGroup) {
|
|
9268
9271
|
const l = this.getColGroupParentElement(o);
|
|
9269
9272
|
t.includes(l) || (this.layoutElement(l, o), t.push(l)), l.classList.toggle(
|
|
9270
9273
|
"tabulator-frozen-left",
|
|
@@ -9280,7 +9283,7 @@ const Kc = process.env.NODE_ENV === "development", Co = class Co extends I {
|
|
|
9280
9283
|
});
|
|
9281
9284
|
}), this.rightColumns.forEach((o, n) => {
|
|
9282
9285
|
const a = o.modules.frozen;
|
|
9283
|
-
a.marginValue = s, a.margin = a.marginValue + "px", o.hidden || (s += o.getWidth()), n === this.rightColumns.length - 1 ? a.edge = !0 : a.edge = !1, o.parent instanceof
|
|
9286
|
+
a.marginValue = s, a.margin = a.marginValue + "px", o.hidden || (s += o.getWidth()), n === this.rightColumns.length - 1 ? a.edge = !0 : a.edge = !1, o.parent instanceof Be && o.parent.isGroup ? this.layoutElement(this.getColGroupParentElement(o), o) : this.layoutElement(o.getElement(), o), e && !o.hidden && o.cells.forEach((l) => {
|
|
9284
9287
|
this.layoutElement(l.getElement(!0), o);
|
|
9285
9288
|
});
|
|
9286
9289
|
}), this.rightMargin = s + "px", this.table.element?.style.setProperty(
|
|
@@ -9292,7 +9295,7 @@ const Kc = process.env.NODE_ENV === "development", Co = class Co extends I {
|
|
|
9292
9295
|
);
|
|
9293
9296
|
}
|
|
9294
9297
|
getColGroupParentElement(e) {
|
|
9295
|
-
return e.parent instanceof
|
|
9298
|
+
return e.parent instanceof Be && e.parent.isGroup ? this.getColGroupParentElement(e.parent) : e.getElement();
|
|
9296
9299
|
}
|
|
9297
9300
|
// layout columns appropriately
|
|
9298
9301
|
layout() {
|
|
@@ -10421,9 +10424,9 @@ const Qc = {
|
|
|
10421
10424
|
// rebind rows to new element after deletion
|
|
10422
10425
|
_rebindRow(e, t) {
|
|
10423
10426
|
this.history.forEach((i) => {
|
|
10424
|
-
if (i.component instanceof
|
|
10427
|
+
if (i.component instanceof ke)
|
|
10425
10428
|
i.component === e && (i.component = t);
|
|
10426
|
-
else if (i.component instanceof
|
|
10429
|
+
else if (i.component instanceof ki && i.component.row === e) {
|
|
10427
10430
|
const s = i.component.column.getField();
|
|
10428
10431
|
if (s) {
|
|
10429
10432
|
const o = t.getCell(s);
|
|
@@ -10541,20 +10544,20 @@ function ad() {
|
|
|
10541
10544
|
var R = ge(C);
|
|
10542
10545
|
R.chunkSize = parseInt(R.chunkSize), C.step || C.chunk || (R.chunkSize = null), this._handle = new E(R), (this._handle.streamer = this)._config = R;
|
|
10543
10546
|
}).call(this, b), this.parseChunk = function(C, R) {
|
|
10544
|
-
var
|
|
10545
|
-
if (this.isFirstChunk && 0 <
|
|
10547
|
+
var k = parseInt(this._config.skipFirstNLines) || 0;
|
|
10548
|
+
if (this.isFirstChunk && 0 < k) {
|
|
10546
10549
|
let _ = this._config.newline;
|
|
10547
|
-
_ || (S = this._config.quoteChar || '"', _ = this._handle.guessLineEndings(C, S)), C = [...C.split(_).slice(
|
|
10550
|
+
_ || (S = this._config.quoteChar || '"', _ = this._handle.guessLineEndings(C, S)), C = [...C.split(_).slice(k)].join(_);
|
|
10548
10551
|
}
|
|
10549
10552
|
this.isFirstChunk && z(this._config.beforeFirstChunk) && (S = this._config.beforeFirstChunk(C)) !== void 0 && (C = S), this.isFirstChunk = !1, this._halted = !1;
|
|
10550
|
-
var
|
|
10553
|
+
var k = this._partialLine + C, S = (this._partialLine = "", this._handle.parse(k, this._baseIndex, !this._finished));
|
|
10551
10554
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
10552
|
-
if (C = S.meta.cursor,
|
|
10555
|
+
if (C = S.meta.cursor, k = (this._finished || (this._partialLine = k.substring(C - this._baseIndex), this._baseIndex = C), S && S.data && (this._rowCount += S.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), n) i.postMessage({ results: S, workerId: h.WORKER_ID, finished: k });
|
|
10553
10556
|
else if (z(this._config.chunk) && !R) {
|
|
10554
10557
|
if (this._config.chunk(S, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
10555
10558
|
this._completeResults = S = void 0;
|
|
10556
10559
|
}
|
|
10557
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(S.data), this._completeResults.errors = this._completeResults.errors.concat(S.errors), this._completeResults.meta = S.meta), this._completed || !
|
|
10560
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(S.data), this._completeResults.errors = this._completeResults.errors.concat(S.errors), this._completeResults.meta = S.meta), this._completed || !k || !z(this._config.complete) || S && S.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), k || S && S.meta.paused || this._nextChunk(), S;
|
|
10558
10561
|
}
|
|
10559
10562
|
this._halted = !0;
|
|
10560
10563
|
}, this._sendError = function(C) {
|
|
@@ -10573,8 +10576,8 @@ function ad() {
|
|
|
10573
10576
|
if (this._finished) this._chunkLoaded();
|
|
10574
10577
|
else {
|
|
10575
10578
|
if (C = new XMLHttpRequest(), this._config.withCredentials && (C.withCredentials = this._config.withCredentials), o || (C.onload = Y(this._chunkLoaded, this), C.onerror = Y(this._chunkError, this)), C.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !o), this._config.downloadRequestHeaders) {
|
|
10576
|
-
var R,
|
|
10577
|
-
for (R in
|
|
10579
|
+
var R, k = this._config.downloadRequestHeaders;
|
|
10580
|
+
for (R in k) C.setRequestHeader(R, k[R]);
|
|
10578
10581
|
}
|
|
10579
10582
|
var S;
|
|
10580
10583
|
this._config.chunkSize && (S = this._start + this._config.chunkSize - 1, C.setRequestHeader("Range", "bytes=" + this._start + "-" + S));
|
|
@@ -10593,14 +10596,14 @@ function ad() {
|
|
|
10593
10596
|
}
|
|
10594
10597
|
function u(b) {
|
|
10595
10598
|
(b = b || {}).chunkSize || (b.chunkSize = h.LocalChunkSize), d.call(this, b);
|
|
10596
|
-
var C, R,
|
|
10599
|
+
var C, R, k = typeof FileReader < "u";
|
|
10597
10600
|
this.stream = function(S) {
|
|
10598
|
-
this._input = S, R = S.slice || S.webkitSlice || S.mozSlice,
|
|
10601
|
+
this._input = S, R = S.slice || S.webkitSlice || S.mozSlice, k ? ((C = new FileReader()).onload = Y(this._chunkLoaded, this), C.onerror = Y(this._chunkError, this)) : C = new FileReaderSync(), this._nextChunk();
|
|
10599
10602
|
}, this._nextChunk = function() {
|
|
10600
10603
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
10601
10604
|
}, this._readChunk = function() {
|
|
10602
10605
|
var S = this._input, _ = (this._config.chunkSize && (_ = Math.min(this._start + this._config.chunkSize, this._input.size), S = R.call(S, this._start, _)), C.readAsText(S, this._config.encoding));
|
|
10603
|
-
|
|
10606
|
+
k || this._chunkLoaded({ target: { result: _ } });
|
|
10604
10607
|
}, this._chunkLoaded = function(S) {
|
|
10605
10608
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(S.target.result);
|
|
10606
10609
|
}, this._chunkError = function() {
|
|
@@ -10612,13 +10615,13 @@ function ad() {
|
|
|
10612
10615
|
d.call(this, b = b || {}), this.stream = function(R) {
|
|
10613
10616
|
return C = R, this._nextChunk();
|
|
10614
10617
|
}, this._nextChunk = function() {
|
|
10615
|
-
var R,
|
|
10616
|
-
if (!this._finished) return R = this._config.chunkSize, C = R ? (
|
|
10618
|
+
var R, k;
|
|
10619
|
+
if (!this._finished) return R = this._config.chunkSize, C = R ? (k = C.substring(0, R), C.substring(R)) : (k = C, ""), this._finished = !C, this.parseChunk(k);
|
|
10617
10620
|
};
|
|
10618
10621
|
}
|
|
10619
10622
|
function w(b) {
|
|
10620
10623
|
d.call(this, b = b || {});
|
|
10621
|
-
var C = [], R = !0,
|
|
10624
|
+
var C = [], R = !0, k = !1;
|
|
10622
10625
|
this.pause = function() {
|
|
10623
10626
|
d.prototype.pause.apply(this, arguments), this._input.pause();
|
|
10624
10627
|
}, this.resume = function() {
|
|
@@ -10626,7 +10629,7 @@ function ad() {
|
|
|
10626
10629
|
}, this.stream = function(S) {
|
|
10627
10630
|
this._input = S, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
10628
10631
|
}, this._checkIsFinished = function() {
|
|
10629
|
-
|
|
10632
|
+
k && C.length === 1 && (this._finished = !0);
|
|
10630
10633
|
}, this._nextChunk = function() {
|
|
10631
10634
|
this._checkIsFinished(), C.length ? this.parseChunk(C.shift()) : R = !0;
|
|
10632
10635
|
}, this._streamData = Y(function(S) {
|
|
@@ -10638,18 +10641,18 @@ function ad() {
|
|
|
10638
10641
|
}, this), this._streamError = Y(function(S) {
|
|
10639
10642
|
this._streamCleanUp(), this._sendError(S);
|
|
10640
10643
|
}, this), this._streamEnd = Y(function() {
|
|
10641
|
-
this._streamCleanUp(),
|
|
10644
|
+
this._streamCleanUp(), k = !0, this._streamData("");
|
|
10642
10645
|
}, this), this._streamCleanUp = Y(function() {
|
|
10643
10646
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
10644
10647
|
}, this);
|
|
10645
10648
|
}
|
|
10646
10649
|
function E(b) {
|
|
10647
|
-
var C, R,
|
|
10650
|
+
var C, R, k, S, _ = Math.pow(2, 53), re = -_, je = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Xe = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, W = this, pe = 0, O = 0, Fe = !1, H = !1, j = [], M = { data: [], errors: [], meta: {} };
|
|
10648
10651
|
function Ge(K) {
|
|
10649
10652
|
return b.skipEmptyLines === "greedy" ? K.join("").trim() === "" : K.length === 1 && K[0].length === 0;
|
|
10650
10653
|
}
|
|
10651
10654
|
function ne() {
|
|
10652
|
-
if (M &&
|
|
10655
|
+
if (M && k && (it("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + h.DefaultDelimiter + "'"), k = !1), b.skipEmptyLines && (M.data = M.data.filter(function(A) {
|
|
10653
10656
|
return !Ge(A);
|
|
10654
10657
|
})), be()) {
|
|
10655
10658
|
let A = function(ae, we) {
|
|
@@ -10662,8 +10665,8 @@ function ad() {
|
|
|
10662
10665
|
}
|
|
10663
10666
|
function G(A, ae) {
|
|
10664
10667
|
for (var we = b.header ? {} : [], se = 0; se < A.length; se++) {
|
|
10665
|
-
var oe = se, U = A[se], U = ((st, N) => ((
|
|
10666
|
-
if (je.test(
|
|
10668
|
+
var oe = se, U = A[se], U = ((st, N) => ((ue) => (b.dynamicTypingFunction && b.dynamicTyping[ue] === void 0 && (b.dynamicTyping[ue] = b.dynamicTypingFunction(ue)), (b.dynamicTyping[ue] || b.dynamicTyping) === !0))(st) ? N === "true" || N === "TRUE" || N !== "false" && N !== "FALSE" && (((ue) => {
|
|
10669
|
+
if (je.test(ue) && (ue = parseFloat(ue), re < ue && ue < _))
|
|
10667
10670
|
return 1;
|
|
10668
10671
|
})(N) ? parseFloat(N) : Xe.test(N) ? new Date(N) : N === "" ? null : N) : N)(oe = b.header ? se >= j.length ? "__parsed_extra" : j[se] : oe, U = b.transform ? b.transform(U, oe) : U);
|
|
10669
10672
|
oe === "__parsed_extra" ? (we[oe] = we[oe] || [], we[oe].push(U)) : we[oe] = U;
|
|
@@ -10682,16 +10685,16 @@ function ad() {
|
|
|
10682
10685
|
z(b.step) && (S = b.step, b.step = function(K) {
|
|
10683
10686
|
M = K, be() ? ne() : (ne(), M.data.length !== 0 && (pe += K.data.length, b.preview && pe > b.preview ? R.abort() : (M.data = M.data[0], S(M, W))));
|
|
10684
10687
|
}), this.parse = function(K, G, fe) {
|
|
10685
|
-
var A = b.quoteChar || '"', A = (b.newline || (b.newline = this.guessLineEndings(K, A)),
|
|
10686
|
-
var st, N,
|
|
10688
|
+
var A = b.quoteChar || '"', A = (b.newline || (b.newline = this.guessLineEndings(K, A)), k = !1, b.delimiter ? z(b.delimiter) && (b.delimiter = b.delimiter(K), M.meta.delimiter = b.delimiter) : ((A = ((ae, we, se, oe, U) => {
|
|
10689
|
+
var st, N, ue, xt;
|
|
10687
10690
|
U = U || [",", " ", "|", ";", h.RECORD_SEP, h.UNIT_SEP];
|
|
10688
10691
|
for (var Jt = 0; Jt < U.length; Jt++) {
|
|
10689
|
-
for (var nt, hi = U[Jt], Le = 0, at = 0,
|
|
10690
|
-
0 <
|
|
10692
|
+
for (var nt, hi = U[Jt], Le = 0, at = 0, Ee = 0, Ne = (ue = void 0, new D({ comments: oe, delimiter: hi, newline: we, preview: 10 }).parse(ae)), wt = 0; wt < Ne.data.length; wt++) se && Ge(Ne.data[wt]) ? Ee++ : (nt = Ne.data[wt].length, at += nt, ue === void 0 ? ue = nt : 0 < nt && (Le += Math.abs(nt - ue), ue = nt));
|
|
10693
|
+
0 < Ne.data.length && (at /= Ne.data.length - Ee), (N === void 0 || Le <= N) && (xt === void 0 || xt < at) && 1.99 < at && (N = Le, st = hi, xt = at);
|
|
10691
10694
|
}
|
|
10692
10695
|
return { successful: !!(b.delimiter = st), bestDelimiter: st };
|
|
10693
|
-
})(K, b.newline, b.skipEmptyLines, b.comments, b.delimitersToGuess)).successful ? b.delimiter = A.bestDelimiter : (
|
|
10694
|
-
return b.preview && b.header && A.preview++, C = K, R = new
|
|
10696
|
+
})(K, b.newline, b.skipEmptyLines, b.comments, b.delimitersToGuess)).successful ? b.delimiter = A.bestDelimiter : (k = !0, b.delimiter = h.DefaultDelimiter), M.meta.delimiter = b.delimiter), ge(b));
|
|
10697
|
+
return b.preview && b.header && A.preview++, C = K, R = new D(A), M = R.parse(C, G, fe), ne(), Fe ? { meta: { paused: !0 } } : M || { meta: { paused: !1 } };
|
|
10695
10698
|
}, this.paused = function() {
|
|
10696
10699
|
return Fe;
|
|
10697
10700
|
}, this.pause = function() {
|
|
@@ -10717,23 +10720,23 @@ function ad() {
|
|
|
10717
10720
|
function y(b) {
|
|
10718
10721
|
return b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
10719
10722
|
}
|
|
10720
|
-
function
|
|
10721
|
-
var C = (b = b || {}).delimiter, R = b.newline,
|
|
10722
|
-
if (b.escapeChar !== void 0 && (pe = b.escapeChar), (typeof C != "string" || -1 < h.BAD_DELIMITERS.indexOf(C)) && (C = ","),
|
|
10723
|
-
|
|
10723
|
+
function D(b) {
|
|
10724
|
+
var C = (b = b || {}).delimiter, R = b.newline, k = b.comments, S = b.step, _ = b.preview, re = b.fastMode, je = null, Xe = !1, W = b.quoteChar == null ? '"' : b.quoteChar, pe = W;
|
|
10725
|
+
if (b.escapeChar !== void 0 && (pe = b.escapeChar), (typeof C != "string" || -1 < h.BAD_DELIMITERS.indexOf(C)) && (C = ","), k === C) throw new Error("Comment character same as delimiter");
|
|
10726
|
+
k === !0 ? k = "#" : (typeof k != "string" || -1 < h.BAD_DELIMITERS.indexOf(k)) && (k = !1), R !== `
|
|
10724
10727
|
` && R !== "\r" && R !== `\r
|
|
10725
10728
|
` && (R = `
|
|
10726
10729
|
`);
|
|
10727
10730
|
var O = 0, Fe = !1;
|
|
10728
10731
|
this.parse = function(H, j, M) {
|
|
10729
10732
|
if (typeof H != "string") throw new Error("Input must be a string");
|
|
10730
|
-
var Ge = H.length, ne = C.length, be = R.length, it =
|
|
10733
|
+
var Ge = H.length, ne = C.length, be = R.length, it = k.length, K = z(S), G = [], fe = [], A = [], ae = O = 0;
|
|
10731
10734
|
if (!H) return Le();
|
|
10732
10735
|
if (re || re !== !1 && H.indexOf(W) === -1) {
|
|
10733
10736
|
for (var we = H.split(R), se = 0; se < we.length; se++) {
|
|
10734
10737
|
if (A = we[se], O += A.length, se !== we.length - 1) O += R.length;
|
|
10735
10738
|
else if (M) return Le();
|
|
10736
|
-
if (!
|
|
10739
|
+
if (!k || A.substring(0, it) !== k) {
|
|
10737
10740
|
if (K) {
|
|
10738
10741
|
if (G = [], xt(A.split(C)), at(), Fe) return Le();
|
|
10739
10742
|
} else xt(A.split(C));
|
|
@@ -10748,20 +10751,20 @@ function ad() {
|
|
|
10748
10751
|
if (W === pe && H[N + 1] === pe) N++;
|
|
10749
10752
|
else if (W === pe || N === 0 || H[N - 1] !== pe) {
|
|
10750
10753
|
oe !== -1 && oe < N + 1 && (oe = H.indexOf(C, N + 1));
|
|
10751
|
-
var
|
|
10752
|
-
if (H.substr(N + 1 +
|
|
10753
|
-
A.push(H.substring(O, N).replace(st, W)), H[O = N + 1 +
|
|
10754
|
+
var ue = Jt((U = U !== -1 && U < N + 1 ? H.indexOf(R, N + 1) : U) === -1 ? oe : Math.min(oe, U));
|
|
10755
|
+
if (H.substr(N + 1 + ue, ne) === C) {
|
|
10756
|
+
A.push(H.substring(O, N).replace(st, W)), H[O = N + 1 + ue + ne] !== W && (N = H.indexOf(W, O)), oe = H.indexOf(C, O), U = H.indexOf(R, O);
|
|
10754
10757
|
break;
|
|
10755
10758
|
}
|
|
10756
|
-
if (
|
|
10757
|
-
if (A.push(H.substring(O, N).replace(st, W)), hi(N + 1 +
|
|
10759
|
+
if (ue = Jt(U), H.substring(N + 1 + ue, N + 1 + ue + be) === R) {
|
|
10760
|
+
if (A.push(H.substring(O, N).replace(st, W)), hi(N + 1 + ue + be), oe = H.indexOf(C, O), N = H.indexOf(W, O), K && (at(), Fe)) return Le();
|
|
10758
10761
|
if (_ && G.length >= _) return Le(!0);
|
|
10759
10762
|
break;
|
|
10760
10763
|
}
|
|
10761
10764
|
fe.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: G.length, index: O }), N++;
|
|
10762
10765
|
}
|
|
10763
10766
|
}
|
|
10764
|
-
else if (
|
|
10767
|
+
else if (k && A.length === 0 && H.substring(O, O + it) === k) {
|
|
10765
10768
|
if (U === -1) return Le();
|
|
10766
10769
|
O = U + be, U = H.indexOf(R, O), oe = H.indexOf(C, O);
|
|
10767
10770
|
} else if (oe !== -1 && (oe < U || U === -1)) A.push(H.substring(O, oe)), O = oe + ne, oe = H.indexOf(C, O);
|
|
@@ -10771,35 +10774,35 @@ function ad() {
|
|
|
10771
10774
|
if (_ && G.length >= _) return Le(!0);
|
|
10772
10775
|
}
|
|
10773
10776
|
return nt();
|
|
10774
|
-
function xt(
|
|
10775
|
-
G.push(
|
|
10777
|
+
function xt(Ee) {
|
|
10778
|
+
G.push(Ee), ae = O;
|
|
10776
10779
|
}
|
|
10777
|
-
function Jt(
|
|
10778
|
-
var
|
|
10779
|
-
return
|
|
10780
|
+
function Jt(Ee) {
|
|
10781
|
+
var Ne = 0;
|
|
10782
|
+
return Ne = Ee !== -1 && (Ee = H.substring(N + 1, Ee)) && Ee.trim() === "" ? Ee.length : Ne;
|
|
10780
10783
|
}
|
|
10781
|
-
function nt(
|
|
10782
|
-
return M || (
|
|
10784
|
+
function nt(Ee) {
|
|
10785
|
+
return M || (Ee === void 0 && (Ee = H.substring(O)), A.push(Ee), O = Ge, xt(A), K && at()), Le();
|
|
10783
10786
|
}
|
|
10784
|
-
function hi(
|
|
10785
|
-
O =
|
|
10787
|
+
function hi(Ee) {
|
|
10788
|
+
O = Ee, xt(A), A = [], U = H.indexOf(R, O);
|
|
10786
10789
|
}
|
|
10787
|
-
function Le(
|
|
10790
|
+
function Le(Ee) {
|
|
10788
10791
|
if (b.header && !j && G.length && !Xe) {
|
|
10789
|
-
var
|
|
10792
|
+
var Ne = G[0], wt = /* @__PURE__ */ Object.create(null), es = new Set(Ne);
|
|
10790
10793
|
let Ho = !1;
|
|
10791
|
-
for (let Yt = 0; Yt <
|
|
10792
|
-
let lt = c(
|
|
10794
|
+
for (let Yt = 0; Yt < Ne.length; Yt++) {
|
|
10795
|
+
let lt = c(Ne[Yt]);
|
|
10793
10796
|
if (wt[lt = z(b.transformHeader) ? b.transformHeader(lt, Yt) : lt]) {
|
|
10794
10797
|
let ci, No = wt[lt];
|
|
10795
10798
|
for (; ci = lt + "_" + No, No++, es.has(ci); ) ;
|
|
10796
|
-
es.add(ci),
|
|
10797
|
-
} else wt[lt] = 1,
|
|
10799
|
+
es.add(ci), Ne[Yt] = ci, wt[lt]++, Ho = !0, (je = je === null ? {} : je)[ci] = lt;
|
|
10800
|
+
} else wt[lt] = 1, Ne[Yt] = lt;
|
|
10798
10801
|
es.add(lt);
|
|
10799
10802
|
}
|
|
10800
10803
|
Ho && console.warn("Duplicate headers found and renamed."), Xe = !0;
|
|
10801
10804
|
}
|
|
10802
|
-
return { data: G, errors: fe, meta: { delimiter: C, linebreak: R, aborted: Fe, truncated: !!
|
|
10805
|
+
return { data: G, errors: fe, meta: { delimiter: C, linebreak: R, aborted: Fe, truncated: !!Ee, cursor: ae + (j || 0), renamedHeaders: je } };
|
|
10803
10806
|
}
|
|
10804
10807
|
function at() {
|
|
10805
10808
|
S(Le()), G = [], fe = [];
|
|
@@ -10811,20 +10814,20 @@ function ad() {
|
|
|
10811
10814
|
};
|
|
10812
10815
|
}
|
|
10813
10816
|
function T(b) {
|
|
10814
|
-
var C = b.data, R = a[C.workerId],
|
|
10817
|
+
var C = b.data, R = a[C.workerId], k = !1;
|
|
10815
10818
|
if (C.error) R.userError(C.error, C.file);
|
|
10816
10819
|
else if (C.results && C.results.data) {
|
|
10817
10820
|
var S = { abort: function() {
|
|
10818
|
-
|
|
10821
|
+
k = !0, de(C.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
10819
10822
|
}, pause: L, resume: L };
|
|
10820
10823
|
if (z(R.userStep)) {
|
|
10821
|
-
for (var _ = 0; _ < C.results.data.length && (R.userStep({ data: C.results.data[_], errors: C.results.errors, meta: C.results.meta }, S), !
|
|
10824
|
+
for (var _ = 0; _ < C.results.data.length && (R.userStep({ data: C.results.data[_], errors: C.results.errors, meta: C.results.meta }, S), !k); _++) ;
|
|
10822
10825
|
delete C.results;
|
|
10823
10826
|
} else z(R.userChunk) && (R.userChunk(C.results, S, C.file), delete C.results);
|
|
10824
10827
|
}
|
|
10825
|
-
C.finished && !
|
|
10828
|
+
C.finished && !k && de(C.workerId, C.results);
|
|
10826
10829
|
}
|
|
10827
|
-
function
|
|
10830
|
+
function de(b, C) {
|
|
10828
10831
|
var R = a[b];
|
|
10829
10832
|
z(R.userComplete) && R.userComplete(C), R.terminate(), delete a[b];
|
|
10830
10833
|
}
|
|
@@ -10849,19 +10852,19 @@ function ad() {
|
|
|
10849
10852
|
var R = (C = C || {}).dynamicTyping || !1;
|
|
10850
10853
|
if (z(R) && (C.dynamicTypingFunction = R, R = {}), C.dynamicTyping = R, C.transform = !!z(C.transform) && C.transform, !C.worker || !h.WORKERS_SUPPORTED) return R = null, h.NODE_STREAM_INPUT, typeof b == "string" ? (b = c(b), R = new (C.download ? p : f)(C)) : b.readable === !0 && z(b.read) && z(b.on) ? R = new w(C) : (i.File && b instanceof File || b instanceof Object) && (R = new u(C)), R.stream(b);
|
|
10851
10854
|
(R = (() => {
|
|
10852
|
-
var
|
|
10853
|
-
return !!h.WORKERS_SUPPORTED && (
|
|
10855
|
+
var k;
|
|
10856
|
+
return !!h.WORKERS_SUPPORTED && (k = (() => {
|
|
10854
10857
|
var S = i.URL || i.webkitURL || null, _ = t.toString();
|
|
10855
10858
|
return h.BLOB_URL || (h.BLOB_URL = S.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", _, ")();"], { type: "text/javascript" })));
|
|
10856
|
-
})(), (
|
|
10859
|
+
})(), (k = new i.Worker(k)).onmessage = T, k.id = l++, a[k.id] = k);
|
|
10857
10860
|
})()).userStep = C.step, R.userChunk = C.chunk, R.userComplete = C.complete, R.userError = C.error, C.step = z(C.step), C.chunk = z(C.chunk), C.complete = z(C.complete), C.error = z(C.error), delete C.worker, R.postMessage({ input: b, config: C, workerId: R.id });
|
|
10858
10861
|
}, h.unparse = function(b, C) {
|
|
10859
|
-
var R = !1,
|
|
10862
|
+
var R = !1, k = !0, S = ",", _ = `\r
|
|
10860
10863
|
`, re = '"', je = re + re, Xe = !1, W = null, pe = !1, O = ((() => {
|
|
10861
10864
|
if (typeof C == "object") {
|
|
10862
10865
|
if (typeof C.delimiter != "string" || h.BAD_DELIMITERS.filter(function(j) {
|
|
10863
10866
|
return C.delimiter.indexOf(j) !== -1;
|
|
10864
|
-
}).length || (S = C.delimiter), typeof C.quotes != "boolean" && typeof C.quotes != "function" && !Array.isArray(C.quotes) || (R = C.quotes), typeof C.skipEmptyLines != "boolean" && typeof C.skipEmptyLines != "string" || (Xe = C.skipEmptyLines), typeof C.newline == "string" && (_ = C.newline), typeof C.quoteChar == "string" && (re = C.quoteChar, je = re + re), typeof C.header == "boolean" && (
|
|
10867
|
+
}).length || (S = C.delimiter), typeof C.quotes != "boolean" && typeof C.quotes != "function" && !Array.isArray(C.quotes) || (R = C.quotes), typeof C.skipEmptyLines != "boolean" && typeof C.skipEmptyLines != "string" || (Xe = C.skipEmptyLines), typeof C.newline == "string" && (_ = C.newline), typeof C.quoteChar == "string" && (re = C.quoteChar, je = re + re), typeof C.header == "boolean" && (k = C.header), Array.isArray(C.columns)) {
|
|
10865
10868
|
if (C.columns.length === 0) throw new Error("Option columns is empty");
|
|
10866
10869
|
W = C.columns;
|
|
10867
10870
|
}
|
|
@@ -10875,7 +10878,7 @@ function ad() {
|
|
|
10875
10878
|
throw new Error("Unable to serialize unrecognized input");
|
|
10876
10879
|
function Fe(j, M, Ge) {
|
|
10877
10880
|
var ne = "", be = (typeof j == "string" && (j = JSON.parse(j)), typeof M == "string" && (M = JSON.parse(M)), Array.isArray(j) && 0 < j.length), it = !Array.isArray(M[0]);
|
|
10878
|
-
if (be &&
|
|
10881
|
+
if (be && k) {
|
|
10879
10882
|
for (var K = 0; K < j.length; K++) 0 < K && (ne += S), ne += H(j[K], K);
|
|
10880
10883
|
0 < M.length && (ne += _);
|
|
10881
10884
|
}
|
|
@@ -10907,13 +10910,13 @@ function ad() {
|
|
|
10907
10910
|
})(ne, h.BAD_DELIMITERS) || -1 < ne.indexOf(S) || -1 < Ge.indexOf(re) || ne.charAt(0) === " " || ne.charAt(ne.length - 1) === " ") ? re + ne + re : ne);
|
|
10908
10911
|
}
|
|
10909
10912
|
}, h.RECORD_SEP = "", h.UNIT_SEP = "", h.BYTE_ORDER_MARK = "\uFEFF", h.BAD_DELIMITERS = ["\r", `
|
|
10910
|
-
`, '"', h.BYTE_ORDER_MARK], h.WORKERS_SUPPORTED = !o && !!i.Worker, h.NODE_STREAM_INPUT = 1, h.LocalChunkSize = 10485760, h.RemoteChunkSize = 5242880, h.DefaultDelimiter = ",", h.Parser =
|
|
10913
|
+
`, '"', h.BYTE_ORDER_MARK], h.WORKERS_SUPPORTED = !o && !!i.Worker, h.NODE_STREAM_INPUT = 1, h.LocalChunkSize = 10485760, h.RemoteChunkSize = 5242880, h.DefaultDelimiter = ",", h.Parser = D, h.ParserHandle = E, h.NetworkStreamer = p, h.FileStreamer = u, h.StringStreamer = f, h.ReadableStreamStreamer = w, i.jQuery && ((s = i.jQuery).fn.parse = function(b) {
|
|
10911
10914
|
var C = b.config || {}, R = [];
|
|
10912
10915
|
return this.each(function(_) {
|
|
10913
10916
|
if (!(s(this).prop("tagName").toUpperCase() === "INPUT" && s(this).attr("type").toLowerCase() === "file" && i.FileReader) || !this.files || this.files.length === 0) return !0;
|
|
10914
10917
|
for (var re = 0; re < this.files.length; re++) R.push({ file: this.files[re], inputElem: this, instanceConfig: s.extend({}, C) });
|
|
10915
|
-
}),
|
|
10916
|
-
function
|
|
10918
|
+
}), k(), this;
|
|
10919
|
+
function k() {
|
|
10917
10920
|
if (R.length === 0) z(b.complete) && b.complete();
|
|
10918
10921
|
else {
|
|
10919
10922
|
var _, re, je, Xe, W = R[0];
|
|
@@ -10932,7 +10935,7 @@ function ad() {
|
|
|
10932
10935
|
}
|
|
10933
10936
|
}
|
|
10934
10937
|
function S() {
|
|
10935
|
-
R.splice(0, 1),
|
|
10938
|
+
R.splice(0, 1), k();
|
|
10936
10939
|
}
|
|
10937
10940
|
}), n && (i.onmessage = function(b) {
|
|
10938
10941
|
b = b.data, h.WORKER_ID === void 0 && b && (h.WORKER_ID = b.workerId), typeof b.input == "string" ? i.postMessage({ workerId: h.WORKER_ID, results: h.parse(b.input, b.config), finished: !0 }) : (i.File && b.input instanceof File || b.input instanceof Object) && (b = h.parse(b.input, b.config)) && i.postMessage({ workerId: h.WORKER_ID, results: b, finished: !0 });
|
|
@@ -11307,7 +11310,7 @@ const So = class So extends I {
|
|
|
11307
11310
|
dispatchEvent(e, t, i) {
|
|
11308
11311
|
const s = i.getComponent();
|
|
11309
11312
|
let o;
|
|
11310
|
-
this.columnSubscribers[e] && (i instanceof
|
|
11313
|
+
this.columnSubscribers[e] && (i instanceof ki ? o = i.column.definition[e] : i instanceof Be && (o = i.definition[e]), o && o(t, s)), this.dispatchExternal(e, t, s);
|
|
11311
11314
|
}
|
|
11312
11315
|
};
|
|
11313
11316
|
So.moduleName = "interaction";
|
|
@@ -11440,7 +11443,7 @@ const fd = {
|
|
|
11440
11443
|
};
|
|
11441
11444
|
Lt.moduleName = "keybindings", Lt.bindings = md, Lt.actions = fd;
|
|
11442
11445
|
let As = Lt;
|
|
11443
|
-
const
|
|
11446
|
+
const Do = class Do extends I {
|
|
11444
11447
|
constructor(e) {
|
|
11445
11448
|
super(e), this.menuContainer = null, this.nestedMenuBlock = !1, this.currentComponent = null, this.rootPopup = null, this.columnSubscribers = {}, this.registerTableOption("rowContextMenu", !1), this.registerTableOption("rowClickMenu", !1), this.registerTableOption("rowDblClickMenu", !1), this.registerTableOption("groupContextMenu", !1), this.registerTableOption("groupClickMenu", !1), this.registerTableOption("groupDblClickMenu", !1), this.registerColumnOption("headerContextMenu"), this.registerColumnOption("headerClickMenu"), this.registerColumnOption("headerDblClickMenu"), this.registerColumnOption("headerMenu"), this.registerColumnOption("headerMenuIcon"), this.registerColumnOption("contextMenu"), this.registerColumnOption("clickMenu"), this.registerColumnOption("dblClickMenu");
|
|
11446
11449
|
}
|
|
@@ -11563,9 +11566,9 @@ const ko = class ko extends I {
|
|
|
11563
11566
|
}
|
|
11564
11567
|
}
|
|
11565
11568
|
};
|
|
11566
|
-
|
|
11567
|
-
let Ps =
|
|
11568
|
-
const
|
|
11569
|
+
Do.moduleName = "menu";
|
|
11570
|
+
let Ps = Do;
|
|
11571
|
+
const ko = class ko extends I {
|
|
11569
11572
|
constructor(e) {
|
|
11570
11573
|
super(e), this.placeholderElement = this.createPlaceholderElement(), this.hoverElement = !1, this.checkTimeout = !1, this.checkPeriod = 250, this.moving = !1, this.toCol = !1, this.toColAfter = !1, this.startX = 0, this.autoScrollMargin = 40, this.autoScrollStep = 5, this.autoScrollTimeout = !1, this.touchMove = !1, this.moveHover = this.moveHover.bind(this), this.endMove = this.endMove.bind(this), this.registerTableOption("movableColumns", !1);
|
|
11571
11574
|
}
|
|
@@ -11721,8 +11724,8 @@ const Do = class Do extends I {
|
|
|
11721
11724
|
}, 1)));
|
|
11722
11725
|
}
|
|
11723
11726
|
};
|
|
11724
|
-
|
|
11725
|
-
let Is =
|
|
11727
|
+
ko.moduleName = "moveColumn";
|
|
11728
|
+
let Is = ko;
|
|
11726
11729
|
const bd = {
|
|
11727
11730
|
add: function(r, e, t) {
|
|
11728
11731
|
return r && this.table.addRow(r.getData("")), !0;
|
|
@@ -12492,7 +12495,7 @@ const gr = process.env.NODE_ENV === "development", Cd = {
|
|
|
12492
12495
|
local: function(r, e, t) {
|
|
12493
12496
|
localStorage.setItem(r + "-" + e, JSON.stringify(t));
|
|
12494
12497
|
}
|
|
12495
|
-
}, Li = process.env.NODE_ENV === "development",
|
|
12498
|
+
}, Li = process.env.NODE_ENV === "development", Ve = class Ve extends I {
|
|
12496
12499
|
constructor(e) {
|
|
12497
12500
|
super(e), this.mode = "", this.id = "", this.defWatcherBlock = !1, this.config = {}, this.readFunc = !1, this.writeFunc = !1, this.registerTableOption("persistence", !1), this.registerTableOption("persistenceID", ""), this.registerTableOption("persistenceMode", !0), this.registerTableOption("persistenceReaderFunc", !1), this.registerTableOption("persistenceWriterFunc", !1);
|
|
12498
12501
|
}
|
|
@@ -12515,23 +12518,23 @@ const gr = process.env.NODE_ENV === "development", Cd = {
|
|
|
12515
12518
|
this.readFunc = this.table.options.persistenceReaderFunc;
|
|
12516
12519
|
else {
|
|
12517
12520
|
const s = this.table.options.persistenceReaderFunc;
|
|
12518
|
-
s in
|
|
12521
|
+
s in Ve.readers ? this.readFunc = Ve.readers[s] : Li && console.warn(
|
|
12519
12522
|
"Persistence Read Error - invalid reader set",
|
|
12520
12523
|
this.table.options.persistenceReaderFunc
|
|
12521
12524
|
);
|
|
12522
12525
|
}
|
|
12523
|
-
else this.mode in
|
|
12526
|
+
else this.mode in Ve.readers ? this.readFunc = Ve.readers[this.mode] : Li && console.warn("Persistence Read Error - invalid reader set", this.mode);
|
|
12524
12527
|
if (this.table.options.persistenceWriterFunc)
|
|
12525
12528
|
if (typeof this.table.options.persistenceWriterFunc == "function")
|
|
12526
12529
|
this.writeFunc = this.table.options.persistenceWriterFunc;
|
|
12527
12530
|
else {
|
|
12528
12531
|
const s = this.table.options.persistenceWriterFunc;
|
|
12529
|
-
s in
|
|
12532
|
+
s in Ve.writers ? this.writeFunc = Ve.writers[s] : Li && console.warn(
|
|
12530
12533
|
"Persistence Write Error - invalid reader set",
|
|
12531
12534
|
this.table.options.persistenceWriterFunc
|
|
12532
12535
|
);
|
|
12533
12536
|
}
|
|
12534
|
-
else this.mode in
|
|
12537
|
+
else this.mode in Ve.writers ? this.writeFunc = Ve.writers[this.mode] : Li && console.warn("Persistence Write Error - invalid writer set", this.mode);
|
|
12535
12538
|
this.id = "tabulator-" + (t || this.table.element.getAttribute("id") || ""), this.config = {
|
|
12536
12539
|
columns: this.table.options.persistence === !0 ? ["title", "width", "visible"] : this.table.options.persistence.columns,
|
|
12537
12540
|
filter: this.table.options.persistence === !0 || this.table.options.persistence.filter,
|
|
@@ -12699,8 +12702,8 @@ const gr = process.env.NODE_ENV === "development", Cd = {
|
|
|
12699
12702
|
}), t;
|
|
12700
12703
|
}
|
|
12701
12704
|
};
|
|
12702
|
-
|
|
12703
|
-
let Bs =
|
|
12705
|
+
Ve.moduleName = "persistence", Ve.moduleInitOrder = -10, Ve.readers = Cd, Ve.writers = Ed;
|
|
12706
|
+
let Bs = Ve;
|
|
12704
12707
|
const Mo = class Mo extends I {
|
|
12705
12708
|
constructor(e) {
|
|
12706
12709
|
super(e), this.columnSubscribers = {}, this.registerTableOption("rowContextPopup", !1), this.registerTableOption("rowClickPopup", !1), this.registerTableOption("rowDblClickPopup", !1), this.registerTableOption("groupContextPopup", !1), this.registerTableOption("groupClickPopup", !1), this.registerTableOption("groupDblClickPopup", !1), this.registerColumnOption("headerContextPopup"), this.registerColumnOption("headerClickPopup"), this.registerColumnOption("headerDblClickPopup"), this.registerColumnOption("headerPopup"), this.registerColumnOption("headerPopupIcon"), this.registerColumnOption("contextPopup"), this.registerColumnOption("clickPopup"), this.registerColumnOption("dblClickPopup"), this.registerComponentFunction(
|
|
@@ -13643,7 +13646,7 @@ const Rd = {
|
|
|
13643
13646
|
$i.moduleName = "responsiveLayout", $i.moduleExtensions = Rd;
|
|
13644
13647
|
let qs = $i;
|
|
13645
13648
|
const Sd = x`<cx-checkbox></cx-checkbox>`;
|
|
13646
|
-
function
|
|
13649
|
+
function Dd(r, e, t) {
|
|
13647
13650
|
const i = B(Sd);
|
|
13648
13651
|
let s = i, o = !1;
|
|
13649
13652
|
i.setAttribute("aria-label", "Select Row");
|
|
@@ -13670,10 +13673,10 @@ function kd(r, e, t) {
|
|
|
13670
13673
|
}
|
|
13671
13674
|
return s;
|
|
13672
13675
|
}
|
|
13673
|
-
const
|
|
13676
|
+
const kd = {
|
|
13674
13677
|
format: {
|
|
13675
13678
|
formatters: {
|
|
13676
|
-
rowSelection:
|
|
13679
|
+
rowSelection: Dd
|
|
13677
13680
|
}
|
|
13678
13681
|
}
|
|
13679
13682
|
}, wr = process.env.NODE_ENV === "development", Wi = class Wi extends I {
|
|
@@ -13899,7 +13902,7 @@ const Dd = {
|
|
|
13899
13902
|
this._deselectRow(s, !0);
|
|
13900
13903
|
}
|
|
13901
13904
|
};
|
|
13902
|
-
Wi.moduleName = "selectRow", Wi.moduleExtensions =
|
|
13905
|
+
Wi.moduleName = "selectRow", Wi.moduleExtensions = kd;
|
|
13903
13906
|
let Xs = Wi;
|
|
13904
13907
|
const Td = {
|
|
13905
13908
|
range: function(r) {
|
|
@@ -14489,8 +14492,8 @@ const $t = process.env.NODE_ENV === "development", Hd = x`<div class="tabulator-
|
|
|
14489
14492
|
if (this.rowHeader && n === 0 && (n = 1), t || u.setStart(o, n), u.setEnd(o, n), t || (this.selecting = Ue.Cell), s = f.top !== u.top || f.bottom !== u.bottom || f.left !== u.left || f.right !== u.right, s) {
|
|
14490
14493
|
const E = u.end.row ?? 0, y = u.end.col ?? 0;
|
|
14491
14494
|
a = this.getRowByRangePos(E), l = this.getColumnByRangePos(y);
|
|
14492
|
-
const
|
|
14493
|
-
|
|
14495
|
+
const D = a.getElement(), T = l.getElement(), de = this.table.rowManager?.getElement(), L = this.table.columnManager?.getElement();
|
|
14496
|
+
D && T && de && L && (h = D.getBoundingClientRect(), d = T.getBoundingClientRect(), c = de.getBoundingClientRect(), p = L.getBoundingClientRect(), h.top >= c.top && h.bottom <= c.bottom || (D.parentNode && T.parentNode ? this.autoScroll(u, D, T) : a.getComponent().scrollTo(void 0, !1)), d.left >= p.left + this.getRowHeaderWidth() && d.right <= p.right || (D.parentNode && T.parentNode ? this.autoScroll(u, D, T) : l.getComponent().scrollTo(void 0, !1))), this.layoutElement();
|
|
14494
14497
|
}
|
|
14495
14498
|
return !0;
|
|
14496
14499
|
}
|
|
@@ -14807,15 +14810,15 @@ function Nd(r, e, t, i, s, o, n) {
|
|
|
14807
14810
|
let E = 0;
|
|
14808
14811
|
for (; E < w; ) {
|
|
14809
14812
|
let y = u[E];
|
|
14810
|
-
const
|
|
14811
|
-
if (y !==
|
|
14812
|
-
const T = Number(y),
|
|
14813
|
-
if (isFinite(T) && isFinite(
|
|
14813
|
+
const D = f[E++];
|
|
14814
|
+
if (y !== D) {
|
|
14815
|
+
const T = Number(y), de = Number(D);
|
|
14816
|
+
if (isFinite(T) && isFinite(de)) {
|
|
14814
14817
|
y.charAt(0) === "0" && (y = "." + y);
|
|
14815
|
-
const L =
|
|
14818
|
+
const L = D.charAt(0) === "0" ? "." + D : D;
|
|
14816
14819
|
return Number(y) - Number(L);
|
|
14817
14820
|
} else
|
|
14818
|
-
return y >
|
|
14821
|
+
return y > D ? 1 : -1;
|
|
14819
14822
|
}
|
|
14820
14823
|
}
|
|
14821
14824
|
return u.length === f.length ? 0 : u.length > f.length ? 1 : -1;
|
|
@@ -15590,7 +15593,7 @@ const Po = class Po extends I {
|
|
|
15590
15593
|
function a(l) {
|
|
15591
15594
|
o = l;
|
|
15592
15595
|
}
|
|
15593
|
-
typeof i == "function" && (i = i(e, t.getComponent(), a)), i instanceof HTMLElement ? s = i : (s = document.createElement("div"), i === !0 && (t instanceof
|
|
15596
|
+
typeof i == "function" && (i = i(e, t.getComponent(), a)), i instanceof HTMLElement ? s = i : (s = document.createElement("div"), i === !0 && (t instanceof ki ? i = t.value : t.definition.field ? this.langBind(
|
|
15594
15597
|
"columns|" + t.definition.field,
|
|
15595
15598
|
(l) => {
|
|
15596
15599
|
s.innerHTML = i = P(
|
|
@@ -15814,20 +15817,20 @@ function iu(r) {
|
|
|
15814
15817
|
);
|
|
15815
15818
|
}
|
|
15816
15819
|
const su = "cx-validation-request", ou = "cx-validation-response";
|
|
15817
|
-
let
|
|
15820
|
+
let Dt, ru = 0;
|
|
15818
15821
|
const Ri = /* @__PURE__ */ new Map();
|
|
15819
15822
|
function xr() {
|
|
15820
15823
|
Ri.forEach(
|
|
15821
15824
|
(r) => r.reject(new Error("Validation worker failed"))
|
|
15822
|
-
), Ri.clear(),
|
|
15825
|
+
), Ri.clear(), Dt?.terminate(), Dt = void 0;
|
|
15823
15826
|
}
|
|
15824
15827
|
function nu() {
|
|
15825
|
-
return
|
|
15828
|
+
return Dt || (Dt = new iu(), Dt.addEventListener("message", (r) => {
|
|
15826
15829
|
if (r.origin !== "" || r.data?.type !== ou)
|
|
15827
15830
|
return;
|
|
15828
15831
|
const { done: e, id: t, results: i } = r.data.payload, s = Ri.get(t);
|
|
15829
15832
|
s && (s.accumulatedResults.push(...i), s.onChunk?.(i), e && (Ri.delete(t), s.resolve(s.accumulatedResults)));
|
|
15830
|
-
}),
|
|
15833
|
+
}), Dt.addEventListener("error", xr), Dt.addEventListener("messageerror", xr)), Dt;
|
|
15831
15834
|
}
|
|
15832
15835
|
function gn(r, e) {
|
|
15833
15836
|
return new Promise((t, i) => {
|
|
@@ -15847,7 +15850,7 @@ function gn(r, e) {
|
|
|
15847
15850
|
}), s.postMessage({ payload: { fields: r, id: o }, type: su });
|
|
15848
15851
|
});
|
|
15849
15852
|
}
|
|
15850
|
-
const Rr = process.env.NODE_ENV === "development", Sr = 2e3,
|
|
15853
|
+
const Rr = process.env.NODE_ENV === "development", Sr = 2e3, Dr = 1e3, Qt = "data-validation-message", vi = class vi extends I {
|
|
15851
15854
|
constructor(e) {
|
|
15852
15855
|
super(e), this.invalidState = /* @__PURE__ */ new Map(), this.mutateOnValidateColumns = /* @__PURE__ */ new Set(), this.validationGeneration = 0, this.suppressValidationChanged = !1, this.registerTableOption("validationMode", "blocking"), this.registerTableOption("validateOnLoad", !1), this.registerTableOption("validationWorkerThreshold", Sr), this.registerColumnOption("validator"), this.registerColumnOption("mutateOnValidate"), this.registerTableFunction(
|
|
15853
15856
|
"getInvalidCells",
|
|
@@ -16176,10 +16179,10 @@ const Rr = process.env.NODE_ENV === "development", Sr = 2e3, kr = 1e3, Qt = "dat
|
|
|
16176
16179
|
* responsive.
|
|
16177
16180
|
*/
|
|
16178
16181
|
async validateColumnsOnMainThread(e, t, i) {
|
|
16179
|
-
for (let s = 0; s < t.length && e.length; s +=
|
|
16182
|
+
for (let s = 0; s < t.length && e.length; s += Dr) {
|
|
16180
16183
|
if (i !== this.validationGeneration)
|
|
16181
16184
|
return;
|
|
16182
|
-
const o = Math.min(s +
|
|
16185
|
+
const o = Math.min(s + Dr, t.length);
|
|
16183
16186
|
this.runSuppressed(() => {
|
|
16184
16187
|
for (let n = s; n < o; n++) {
|
|
16185
16188
|
const a = t[n];
|
|
@@ -16243,8 +16246,8 @@ const as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16243
16246
|
ColumnCalcsModule: Es,
|
|
16244
16247
|
DataTreeModule: Rs,
|
|
16245
16248
|
DownloadModule: Ss,
|
|
16246
|
-
EditModule:
|
|
16247
|
-
ExportModule:
|
|
16249
|
+
EditModule: Ds,
|
|
16250
|
+
ExportModule: ks,
|
|
16248
16251
|
FilterModule: Bi,
|
|
16249
16252
|
FormatModule: Ni,
|
|
16250
16253
|
FrozenColumnsModule: Ts,
|
|
@@ -16617,7 +16620,7 @@ class bn {
|
|
|
16617
16620
|
return i;
|
|
16618
16621
|
}
|
|
16619
16622
|
}
|
|
16620
|
-
const
|
|
16623
|
+
const kr = process.env.NODE_ENV === "development";
|
|
16621
16624
|
class cu extends Me {
|
|
16622
16625
|
constructor(e) {
|
|
16623
16626
|
super(e), this.blockHozScrollEvent = !1, this.headersElement = null, this.contentsElement = null, this.rowHeader = null, this.columns = [], this.columnsByIndex = [], this.columnsByField = {}, this.scrollLeft = 0, this.optionsList = new bn(
|
|
@@ -16650,7 +16653,7 @@ class cu extends Me {
|
|
|
16650
16653
|
basic: au,
|
|
16651
16654
|
virtual: lu
|
|
16652
16655
|
};
|
|
16653
|
-
typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) :
|
|
16656
|
+
typeof this.table.options.renderHorizontal == "string" ? e = t[this.table.options.renderHorizontal] : e = this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) : kr && console.error(
|
|
16654
16657
|
"Unable to find matching renderer:",
|
|
16655
16658
|
this.table.options.renderHorizontal
|
|
16656
16659
|
);
|
|
@@ -16760,7 +16763,7 @@ class cu extends Me {
|
|
|
16760
16763
|
...this.table.options.rowHeader,
|
|
16761
16764
|
title: "title" in this.table.options.rowHeader && this.table.options.rowHeader.title || ""
|
|
16762
16765
|
};
|
|
16763
|
-
this.rowHeader = new
|
|
16766
|
+
this.rowHeader = new Be(t, this, !0), this.columns.push(this.rowHeader), this.headersElement && this.headersElement.appendChild(this.rowHeader.getElement()), this.rowHeader.columnRendered();
|
|
16764
16767
|
}
|
|
16765
16768
|
e.forEach((t) => {
|
|
16766
16769
|
this._addColumn(t);
|
|
@@ -16768,10 +16771,10 @@ class cu extends Me {
|
|
|
16768
16771
|
}
|
|
16769
16772
|
}
|
|
16770
16773
|
_addColumn(e, t, i) {
|
|
16771
|
-
const s = new
|
|
16774
|
+
const s = new Be(e, this), o = s.getElement();
|
|
16772
16775
|
let n = i ? this.findColumnIndex(i) : !1;
|
|
16773
16776
|
if (t && this.rowHeader && (!i || i === this.rowHeader) && (t = !1, i = this.rowHeader, n = 0), i && typeof n == "number" && n > -1) {
|
|
16774
|
-
const a = i instanceof
|
|
16777
|
+
const a = i instanceof Be ? i.getTopColumn() : i._getSelf()?.getTopColumn();
|
|
16775
16778
|
if (a) {
|
|
16776
16779
|
const l = this.columns.indexOf(a), h = a.getElement();
|
|
16777
16780
|
h && h.parentNode && (t ? (this.columns.splice(l, 0, s), h.parentNode.insertBefore(o, h)) : (this.columns.splice(l + 1, 0, s), h.parentNode.insertBefore(o, h.nextSibling)));
|
|
@@ -16816,7 +16819,7 @@ class cu extends Me {
|
|
|
16816
16819
|
findColumn(e) {
|
|
16817
16820
|
let t;
|
|
16818
16821
|
if (typeof e == "object") {
|
|
16819
|
-
if (e instanceof
|
|
16822
|
+
if (e instanceof Be)
|
|
16820
16823
|
return e;
|
|
16821
16824
|
if (e instanceof ys)
|
|
16822
16825
|
return e._getSelf() || !1;
|
|
@@ -16897,7 +16900,7 @@ class cu extends Me {
|
|
|
16897
16900
|
!e.element || !t.element || !t.element.parentNode || (t.element.parentNode.insertBefore(e.element, t.element), i && t.element.parentNode.insertBefore(t.element, e.element), this.moveColumnActual(e, t, i), this.verticalAlignHeaders(), this.table.rowManager?.reinitialize());
|
|
16898
16901
|
}
|
|
16899
16902
|
moveColumnActual(e, t, i) {
|
|
16900
|
-
e.parent instanceof
|
|
16903
|
+
e.parent instanceof Be && e.parent.isGroup ? this._moveColumnInArray(
|
|
16901
16904
|
e.parent.columns,
|
|
16902
16905
|
e,
|
|
16903
16906
|
t,
|
|
@@ -16927,7 +16930,7 @@ class cu extends Me {
|
|
|
16927
16930
|
return;
|
|
16928
16931
|
}
|
|
16929
16932
|
if (e.hidden)
|
|
16930
|
-
|
|
16933
|
+
kr && console.warn("Scroll Error - Column not visible"), o("Scroll Error - Column not visible");
|
|
16931
16934
|
else {
|
|
16932
16935
|
let n = 0;
|
|
16933
16936
|
const a = e.getLeftOffset();
|
|
@@ -17269,8 +17272,8 @@ class fu extends Yi {
|
|
|
17269
17272
|
const s = this.tableElement, o = this.elementVertical;
|
|
17270
17273
|
let n = 0, a = 0, l = 0, h = 0, c = 0, d = 0;
|
|
17271
17274
|
const p = this.rows(), u = p.length;
|
|
17272
|
-
let f = 0, w, E, y = [],
|
|
17273
|
-
const
|
|
17275
|
+
let f = 0, w, E, y = [], D = 0, T = 0;
|
|
17276
|
+
const de = this.table.rowManager?.fixedHeight ?? !1, L = this.table.element ? globalThis.getComputedStyle(this.table.element).getPropertyValue("--table-max-height").trim() : "", Y = de || L !== "" && L !== "auto";
|
|
17274
17277
|
let z = this.elementVertical?.clientHeight ?? 0, b = this.table.options.rowHeight, C = !0;
|
|
17275
17278
|
if (e = e || 0, i = i || 0, !e)
|
|
17276
17279
|
this.clear();
|
|
@@ -17292,21 +17295,21 @@ class fu extends Yi {
|
|
|
17292
17295
|
for (this.vDomTop = e, this.vDomBottom = e - 1, Y ? (b && (T = z / b + this.vDomWindowBuffer / b), T = Math.max(
|
|
17293
17296
|
this.vDomWindowMinTotalRows,
|
|
17294
17297
|
Math.ceil(T)
|
|
17295
|
-
)) : T = u; (T == u || a <= z + this.vDomWindowBuffer ||
|
|
17298
|
+
)) : T = u; (T == u || a <= z + this.vDomWindowBuffer || D < this.vDomWindowMinTotalRows) && this.vDomBottom < u - 1; ) {
|
|
17296
17299
|
for (y = [], E = document.createDocumentFragment(), d = 0; d < T && this.vDomBottom < u - 1; ) {
|
|
17297
17300
|
f = this.vDomBottom + 1, w = p[f], this.styleRow(w, f), w.initialize(!1, !0), !w.heightInitialized && !this.table.options.rowHeight && w.clearCellHeight();
|
|
17298
|
-
const
|
|
17299
|
-
|
|
17301
|
+
const k = w.getElement();
|
|
17302
|
+
k && E.appendChild(k), y.push(w), this.vDomBottom++, d++;
|
|
17300
17303
|
}
|
|
17301
17304
|
if (!y.length)
|
|
17302
17305
|
break;
|
|
17303
|
-
s?.appendChild(E), y.forEach((
|
|
17304
|
-
|
|
17305
|
-
}), y.forEach((
|
|
17306
|
-
|
|
17307
|
-
}), y.forEach((
|
|
17308
|
-
l =
|
|
17309
|
-
}), C = this.table.rowManager?.adjustTableSize() || !1, z = this.elementVertical.clientHeight, C && Y && (b = a /
|
|
17306
|
+
s?.appendChild(E), y.forEach((k) => {
|
|
17307
|
+
k.rendered(), k.heightInitialized || k.calcHeight(!0);
|
|
17308
|
+
}), y.forEach((k) => {
|
|
17309
|
+
k.heightInitialized || k.setCellHeight();
|
|
17310
|
+
}), y.forEach((k) => {
|
|
17311
|
+
l = k.getHeight(), D < n ? c += l : a += l, l > this.vDomWindowBuffer && (this.vDomWindowBuffer = l * 2), D++;
|
|
17312
|
+
}), C = this.table.rowManager?.adjustTableSize() || !1, z = this.elementVertical.clientHeight, C && Y && (b = a / D, T = Math.max(
|
|
17310
17313
|
this.vDomWindowMinTotalRows,
|
|
17311
17314
|
Math.ceil(
|
|
17312
17315
|
z / b + this.vDomWindowBuffer / b
|
|
@@ -17317,7 +17320,7 @@ class fu extends Yi {
|
|
|
17317
17320
|
this.vDomScrollHeight - this.vDomTopPad - a - c,
|
|
17318
17321
|
0
|
|
17319
17322
|
)) : (this.vDomTopPad = 0, this.vDomRowHeight = Math.floor(
|
|
17320
|
-
(a + c) /
|
|
17323
|
+
(a + c) / D
|
|
17321
17324
|
), this.vDomBottomPad = this.vDomRowHeight * (u - this.vDomBottom - 1), this.vDomScrollHeight = c + a + this.vDomBottomPad - z), s && (s.style.paddingTop = this.vDomTopPad + "px", s.style.paddingBottom = this.vDomBottomPad + "px"), t && (this.scrollTop = this.vDomTopPad + c + i - (this.elementVertical.scrollWidth > this.elementVertical.clientWidth ? this.elementVertical.offsetHeight - z : 0)), this.scrollTop = Math.min(
|
|
17322
17325
|
this.scrollTop,
|
|
17323
17326
|
this.elementVertical.scrollHeight - z
|
|
@@ -17489,7 +17492,7 @@ class gu extends Me {
|
|
|
17489
17492
|
*/
|
|
17490
17493
|
findRow(e) {
|
|
17491
17494
|
if (typeof e == "object") {
|
|
17492
|
-
if (e instanceof
|
|
17495
|
+
if (e instanceof ke)
|
|
17493
17496
|
return e;
|
|
17494
17497
|
if (e instanceof po)
|
|
17495
17498
|
return e._getSelf() || !1;
|
|
@@ -17591,7 +17594,7 @@ class gu extends Me {
|
|
|
17591
17594
|
_setDataActual(e, t) {
|
|
17592
17595
|
this.dispatchExternal("dataProcessing", e), this._wipeElements(), Array.isArray(e) ? (this.dispatch("data-processing", e), e.forEach((i) => {
|
|
17593
17596
|
if (i && typeof i == "object") {
|
|
17594
|
-
const s = new
|
|
17597
|
+
const s = new ke(i, this);
|
|
17595
17598
|
this.rows.push(s), this.registerRowInMap(s);
|
|
17596
17599
|
} else Wt && console.warn(
|
|
17597
17600
|
"Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",
|
|
@@ -17644,7 +17647,7 @@ Data: `,
|
|
|
17644
17647
|
return (e ?? this.table.options.addRowPos) === "top";
|
|
17645
17648
|
}
|
|
17646
17649
|
addRowActual(e, t, i, s) {
|
|
17647
|
-
const o = e instanceof
|
|
17650
|
+
const o = e instanceof ke ? e : new ke(e || {}, this);
|
|
17648
17651
|
let n = t, a = -1, l, h;
|
|
17649
17652
|
return i || (h = this.chain("row-adding-position", [o, n], null, {
|
|
17650
17653
|
index: i,
|
|
@@ -17690,12 +17693,12 @@ Data: `,
|
|
|
17690
17693
|
nextDisplayRow(e, t) {
|
|
17691
17694
|
const i = this.getDisplayRowIndex(e);
|
|
17692
17695
|
let s = !1;
|
|
17693
|
-
return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof
|
|
17696
|
+
return i !== !1 && i < this.displayRowsCount - 1 && (s = this.getDisplayRows()[i + 1]), s && (!(s instanceof ke) || s.type != "row") ? this.nextDisplayRow(s, t) : s;
|
|
17694
17697
|
}
|
|
17695
17698
|
prevDisplayRow(e, t) {
|
|
17696
17699
|
const i = this.getDisplayRowIndex(e);
|
|
17697
17700
|
let s = !1;
|
|
17698
|
-
return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof
|
|
17701
|
+
return i && (s = this.getDisplayRows()[i - 1]), t && s && (!(s instanceof ke) || s.type != "row") ? this.prevDisplayRow(s, t) : s;
|
|
17699
17702
|
}
|
|
17700
17703
|
findRowIndex(e, t) {
|
|
17701
17704
|
let i;
|
|
@@ -18478,7 +18481,7 @@ class Su extends Me {
|
|
|
18478
18481
|
s.components.includes("column") && (h = this.table.columnManager?.findColumn(c));
|
|
18479
18482
|
break;
|
|
18480
18483
|
case "cell":
|
|
18481
|
-
s.components.includes("cell") && (o.row instanceof
|
|
18484
|
+
s.components.includes("cell") && (o.row instanceof ke ? h = o.row.findCell(c) : Ru && t.row && console.warn(
|
|
18482
18485
|
"Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"
|
|
18483
18486
|
));
|
|
18484
18487
|
break;
|
|
@@ -18509,7 +18512,7 @@ class Su extends Me {
|
|
|
18509
18512
|
}
|
|
18510
18513
|
}
|
|
18511
18514
|
const pi = process.env.NODE_ENV === "development";
|
|
18512
|
-
class
|
|
18515
|
+
class Du {
|
|
18513
18516
|
constructor(e) {
|
|
18514
18517
|
this.events = {}, this.subscriptionNotifiers = {}, this.events = {}, this.subscriptionNotifiers = {}, this.dispatch = e ? this._debugDispatch.bind(this) : this._dispatch.bind(this), this.chain = e ? this._debugChain.bind(this) : this._chain.bind(this), this.confirm = e ? this._debugConfirm.bind(this) : this._confirm.bind(this), this.debug = e;
|
|
18515
18518
|
}
|
|
@@ -18582,7 +18585,7 @@ class ku {
|
|
|
18582
18585
|
return pi && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, t), this._confirm(e, t);
|
|
18583
18586
|
}
|
|
18584
18587
|
}
|
|
18585
|
-
function
|
|
18588
|
+
function ku(r) {
|
|
18586
18589
|
let e = this.table.element?.clientWidth || 0;
|
|
18587
18590
|
const t = this.table.columnManager?.contentsElement;
|
|
18588
18591
|
if (t) {
|
|
@@ -18596,28 +18599,28 @@ function Du(r) {
|
|
|
18596
18599
|
let E;
|
|
18597
18600
|
return typeof w == "string" ? w.indexOf("%") > -1 ? E = i / 100 * parseInt(w, 10) : E = parseInt(w, 10) : E = w || 0, E;
|
|
18598
18601
|
}
|
|
18599
|
-
function f(w, E, y,
|
|
18602
|
+
function f(w, E, y, D) {
|
|
18600
18603
|
const T = [];
|
|
18601
|
-
let
|
|
18604
|
+
let de = 0, L = 0, ge = 0, Y = n, z = 0, b = 0;
|
|
18602
18605
|
const C = [];
|
|
18603
18606
|
function R(S) {
|
|
18604
18607
|
return y * (S.column.definition.widthGrow || 1);
|
|
18605
18608
|
}
|
|
18606
|
-
function
|
|
18609
|
+
function k(S) {
|
|
18607
18610
|
return u(S.width) - y * (S.column.definition.widthShrink || 0);
|
|
18608
18611
|
}
|
|
18609
18612
|
return w.forEach((S) => {
|
|
18610
|
-
const _ =
|
|
18611
|
-
S.column.minWidth && S.column.minWidth >= _ ? T.push(S) : S.column.maxWidth && S.column.maxWidth < _ ? (S.width = S.column.maxWidth, E -= S.column.maxWidth, Y -=
|
|
18613
|
+
const _ = D ? k(S) : R(S);
|
|
18614
|
+
S.column.minWidth && S.column.minWidth >= _ ? T.push(S) : S.column.maxWidth && S.column.maxWidth < _ ? (S.width = S.column.maxWidth, E -= S.column.maxWidth, Y -= D ? S.column.definition.widthShrink || 1 : S.column.definition.widthGrow || 1, Y && (y = Math.floor(E / Y))) : (C.push(S), b += D ? S.column.definition.widthShrink || 1 : S.column.definition.widthGrow || 1);
|
|
18612
18615
|
}), T.length ? (T.forEach((S) => {
|
|
18613
|
-
|
|
18614
|
-
}), L = E -
|
|
18616
|
+
de += D ? S.width - (S.column.minWidth ?? 0) : S.column.minWidth ?? 0, S.width = S.column.minWidth ?? 0;
|
|
18617
|
+
}), L = E - de, ge = b ? Math.floor(L / b) : L, z = f(
|
|
18615
18618
|
C,
|
|
18616
18619
|
L,
|
|
18617
18620
|
ge,
|
|
18618
|
-
|
|
18621
|
+
D
|
|
18619
18622
|
)) : (z = b ? E - Math.floor(E / b) * b : E, C.forEach((S) => {
|
|
18620
|
-
S.width =
|
|
18623
|
+
S.width = D ? k(S) : R(S);
|
|
18621
18624
|
})), z;
|
|
18622
18625
|
}
|
|
18623
18626
|
if (this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout?.update(), this.table.rowManager?.element && this.table.rowManager.element.scrollHeight > this.table.rowManager.element.clientHeight) {
|
|
@@ -18625,10 +18628,10 @@ function Du(r) {
|
|
|
18625
18628
|
i -= w.offsetWidth - w.clientWidth;
|
|
18626
18629
|
}
|
|
18627
18630
|
r.forEach((w) => {
|
|
18628
|
-
let E, y,
|
|
18629
|
-
w.hidden || (E = w.definition.width, y = parseInt(String(w.minWidth ?? 0), 10), E ? (
|
|
18631
|
+
let E, y, D;
|
|
18632
|
+
w.hidden || (E = w.definition.width, y = parseInt(String(w.minWidth ?? 0), 10), E ? (D = u(E), s += D > y ? D : y, w.definition.widthShrink && (h.push({
|
|
18630
18633
|
column: w,
|
|
18631
|
-
width:
|
|
18634
|
+
width: D > y ? D : y
|
|
18632
18635
|
}), c += w.definition.widthShrink || 0)) : (l.push({
|
|
18633
18636
|
column: w,
|
|
18634
18637
|
width: 0
|
|
@@ -18668,7 +18671,7 @@ async function Mu(r) {
|
|
|
18668
18671
|
n ? (o = s - e + n.getWidth(), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && (n.setWidth(0), this.table.modules.responsiveLayout?.update()), o > 0 ? n.setWidth(o) : await n.reinitializeWidth()) : this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
18669
18672
|
}
|
|
18670
18673
|
const Fu = {
|
|
18671
|
-
fitColumns:
|
|
18674
|
+
fitColumns: ku,
|
|
18672
18675
|
fitData: Tu,
|
|
18673
18676
|
fitDataFill: Mr,
|
|
18674
18677
|
fitDataStretch: Mu,
|
|
@@ -19011,7 +19014,7 @@ const le = process.env.NODE_ENV === "development", yt = class yt extends ro {
|
|
|
19011
19014
|
this,
|
|
19012
19015
|
this.options,
|
|
19013
19016
|
this.options.debugEventsExternal
|
|
19014
|
-
), this.eventBus = new
|
|
19017
|
+
), this.eventBus = new Du(this.options.debugEventsInternal), this.interactionMonitor = new Su(this), this.dataLoader.initialize(), this.footerManager.initialize(), this.dependencyRegistry.initialize();
|
|
19015
19018
|
}
|
|
19016
19019
|
// convert deprecated functionality to new functions
|
|
19017
19020
|
_mapDeprecatedFunctionality() {
|
|
@@ -19474,7 +19477,7 @@ const Nu = {
|
|
|
19474
19477
|
[rt.DatePicker]: Iu,
|
|
19475
19478
|
[rt.DateRange]: Hu
|
|
19476
19479
|
}, Vu = q`:host{display:contents}cx-dropdown{--panel-overflow:hidden}cx-details{--expand-icon-size:24px}.panel{--header-background-color:transparent;--header-font-size:var(--cx-font-size-medium);--panel-width:min(280px, 90dvw);width:var(--panel-width);max-height:var(--panel-max-height,600px);position:relative}.panel:has(cx-facet-date-range[show-time],cx-facet-date-picker[show-time]){--panel-width:min(385px, 90dvw)}.panel__content{max-height:var(--panel-max-height,600px);flex-direction:column;display:flex}.panel__header{flex-shrink:0}.panel__body{flex:1;min-height:0;overflow-y:auto}.panel__footer{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);border-top:1px solid var(--cx-color-neutral-200);flex-shrink:0;display:flex}.applied-filters__summary{align-items:center;gap:var(--cx-spacing-2x-small);display:inline-flex}.applied-filters__title{font-weight:var(--cx-font-weight-medium);color:var(--cx-color-neutral-900)}.applied-filters__loading{align-items:center;display:inline-flex}.applied-filters{--content-padding:0 var(--cx-spacing-medium);min-width:100%;width:var(--panel-width)}.applied-filters::part(summary){flex:none}.applied-filters::part(base),cx-faceted-filter-facet::part(base){border-top-width:0;border-left-width:0;border-right-width:0}.applied-filters--empty::part(content){display:none}.faceted-filter__trigger{--font-size:var(--trigger-icon-size,var(--cx-font-size-large))}.faceted-filter__trigger::part(base){background-color:var(--cx-color-neutral-100)}.faceted-filter__trigger-badge{--font-size:var(--cx-font-size-x-small);margin-block-start:calc(-1 * var(--cx-spacing-x-small));margin-inline-end:calc(-1 * var(--cx-spacing-x-small))}.applied-filters__tags{max-width:var(--panel-width);padding-bottom:var(--cx-spacing-x-small)}.panel__clear-all-button{--cx-button-text-transform:none;padding-top:var(--cx-spacing-2x-small);padding-bottom:var(--cx-spacing-2x-small)}.panel__clear-all-button::part(label){text-decoration:underline}.panel__clear-all-button:not([disabled])::part(base):hover{color:var(--cx-color-neutral-800);background-color:#0000;border-color:#0000}cx-tag::part(remove-button){font-size:var(--cx-font-size-x-small)}cx-tag::part(remove-button__base){min-height:unset;min-width:unset;padding:var(--cx-spacing-3x-small)}`;
|
|
19477
|
-
var Bu = Object.defineProperty, $u = Object.getOwnPropertyDescriptor,
|
|
19480
|
+
var Bu = Object.defineProperty, $u = Object.getOwnPropertyDescriptor, Ce = (r, e, t, i) => {
|
|
19478
19481
|
for (var s = i > 1 ? void 0 : i ? $u(e, t) : e, o = r.length - 1, n; o >= 0; o--)
|
|
19479
19482
|
(n = r[o]) && (s = (i ? n(e, t, s) : n(s)) || s);
|
|
19480
19483
|
return i && s && Bu(e, t, s), s;
|
|
@@ -19702,7 +19705,7 @@ let he = class extends Pe {
|
|
|
19702
19705
|
)}</div>${this.renderFooter()}</div></div></cx-dropdown>`;
|
|
19703
19706
|
}
|
|
19704
19707
|
};
|
|
19705
|
-
he.styles = [
|
|
19708
|
+
he.styles = [We, Vu];
|
|
19706
19709
|
he.dependencies = {
|
|
19707
19710
|
"cx-badge": ua,
|
|
19708
19711
|
"cx-button": Et,
|
|
@@ -19715,63 +19718,63 @@ he.dependencies = {
|
|
|
19715
19718
|
"cx-tag": fa,
|
|
19716
19719
|
"cx-tooltip": It
|
|
19717
19720
|
};
|
|
19718
|
-
|
|
19721
|
+
Ce([
|
|
19719
19722
|
m({ type: Array })
|
|
19720
19723
|
], he.prototype, "facets", 2);
|
|
19721
|
-
|
|
19724
|
+
Ce([
|
|
19722
19725
|
m({ attribute: "available-facets", type: Array })
|
|
19723
19726
|
], he.prototype, "availableFacets", 2);
|
|
19724
|
-
|
|
19727
|
+
Ce([
|
|
19725
19728
|
m({ attribute: "selected-facets", type: Object })
|
|
19726
19729
|
], he.prototype, "selectedFacets", 2);
|
|
19727
|
-
|
|
19730
|
+
Ce([
|
|
19728
19731
|
m({ attribute: "selected-date-ranges", type: Object })
|
|
19729
19732
|
], he.prototype, "selectedDateRanges", 2);
|
|
19730
|
-
|
|
19733
|
+
Ce([
|
|
19731
19734
|
m({ type: String })
|
|
19732
19735
|
], he.prototype, "selection", 2);
|
|
19733
|
-
|
|
19736
|
+
Ce([
|
|
19734
19737
|
m({ type: Boolean })
|
|
19735
19738
|
], he.prototype, "loading", 2);
|
|
19736
|
-
|
|
19739
|
+
Ce([
|
|
19737
19740
|
m({ attribute: !1, type: Array })
|
|
19738
19741
|
], he.prototype, "externalFilters", 2);
|
|
19739
|
-
|
|
19742
|
+
Ce([
|
|
19740
19743
|
F()
|
|
19741
19744
|
], he.prototype, "appliedFiltersCount", 2);
|
|
19742
|
-
|
|
19745
|
+
Ce([
|
|
19743
19746
|
F()
|
|
19744
19747
|
], he.prototype, "internalSelection", 2);
|
|
19745
|
-
|
|
19748
|
+
Ce([
|
|
19746
19749
|
F()
|
|
19747
19750
|
], he.prototype, "internalDateRanges", 2);
|
|
19748
|
-
|
|
19751
|
+
Ce([
|
|
19749
19752
|
F()
|
|
19750
19753
|
], he.prototype, "mappedDisplayNames", 2);
|
|
19751
|
-
|
|
19754
|
+
Ce([
|
|
19752
19755
|
F()
|
|
19753
19756
|
], he.prototype, "facetDetailsByField", 2);
|
|
19754
|
-
|
|
19757
|
+
Ce([
|
|
19755
19758
|
V("facets")
|
|
19756
19759
|
], he.prototype, "handleFacetsChange", 1);
|
|
19757
|
-
|
|
19760
|
+
Ce([
|
|
19758
19761
|
V("facets"),
|
|
19759
19762
|
V("availableFacets")
|
|
19760
19763
|
], he.prototype, "rebuildFacetDetailsByField", 1);
|
|
19761
|
-
|
|
19764
|
+
Ce([
|
|
19762
19765
|
V("selectedFacets")
|
|
19763
19766
|
], he.prototype, "handleSelectedFacetsChange", 1);
|
|
19764
|
-
|
|
19767
|
+
Ce([
|
|
19765
19768
|
V("selectedDateRanges")
|
|
19766
19769
|
], he.prototype, "handleSelectedDateRangesChange", 1);
|
|
19767
|
-
|
|
19770
|
+
Ce([
|
|
19768
19771
|
V("internalSelection"),
|
|
19769
19772
|
V("internalDateRanges", { waitUntilFirstUpdate: !0 })
|
|
19770
19773
|
], he.prototype, "handleInternalSelectionChange", 1);
|
|
19771
|
-
|
|
19774
|
+
Ce([
|
|
19772
19775
|
V("externalFilters")
|
|
19773
19776
|
], he.prototype, "handleExternalFiltersChange", 1);
|
|
19774
|
-
he =
|
|
19777
|
+
he = Ce([
|
|
19775
19778
|
Ie("cx-faceted-filter")
|
|
19776
19779
|
], he);
|
|
19777
19780
|
const Wu = new Set(Object.values(Jr));
|
|
@@ -20342,7 +20345,7 @@ const Yu = q`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srg
|
|
|
20342
20345
|
},
|
|
20343
20346
|
toAttribute: (r) => typeof r == "function" ? "" : Array.isArray(r) ? JSON.stringify(r) : r
|
|
20344
20347
|
};
|
|
20345
|
-
function
|
|
20348
|
+
function Dp(r, e) {
|
|
20346
20349
|
const t = e === Se.Desc ? "arrow_downward" : "arrow_upward";
|
|
20347
20350
|
return B(
|
|
20348
20351
|
x`<cx-icon name=${t} aria-hidden="true"></cx-icon>`
|
|
@@ -20373,11 +20376,11 @@ function _r(r, e, t, i = 500) {
|
|
|
20373
20376
|
}
|
|
20374
20377
|
const w = p.data;
|
|
20375
20378
|
if (!n) {
|
|
20376
|
-
const E = w.map((
|
|
20377
|
-
a = E.map((
|
|
20378
|
-
const T = y.get(
|
|
20379
|
-
return y.set(
|
|
20380
|
-
}), e(a.map((
|
|
20379
|
+
const E = w.map((D, T) => D.trim() || `column_${T}`), y = /* @__PURE__ */ new Map();
|
|
20380
|
+
a = E.map((D) => {
|
|
20381
|
+
const T = y.get(D) ?? 0;
|
|
20382
|
+
return y.set(D, T + 1), T === 0 ? D : `${D}_${T}`;
|
|
20383
|
+
}), e(a.map((D) => ({ field: D, title: D }))), n = !0;
|
|
20381
20384
|
return;
|
|
20382
20385
|
}
|
|
20383
20386
|
l.push(Object.fromEntries(a.map((E, y) => [E, w[y] ?? ""]))), h++, l.length >= i && d(l.splice(0, i));
|
|
@@ -20409,7 +20412,7 @@ function cs(r) {
|
|
|
20409
20412
|
function vn(r) {
|
|
20410
20413
|
return r.split(/[./]/).filter((e) => e.length > 0);
|
|
20411
20414
|
}
|
|
20412
|
-
function
|
|
20415
|
+
function kp(r, e) {
|
|
20413
20416
|
return vn(e).reduce((t, i) => {
|
|
20414
20417
|
if (!(t === null || typeof t != "object"))
|
|
20415
20418
|
return t[i];
|
|
@@ -20417,7 +20420,7 @@ function Dp(r, e) {
|
|
|
20417
20420
|
}
|
|
20418
20421
|
function yn(r, e = "") {
|
|
20419
20422
|
if (e) {
|
|
20420
|
-
const i =
|
|
20423
|
+
const i = kp(r, e);
|
|
20421
20424
|
if (!Array.isArray(i))
|
|
20422
20425
|
throw new Error(`Data path "${e}" did not resolve to an array`);
|
|
20423
20426
|
if (i.length === 0)
|
|
@@ -20749,7 +20752,7 @@ let g = class extends Pe {
|
|
|
20749
20752
|
groupValues: this.groupValues,
|
|
20750
20753
|
headerFilterLiveFilterDelay: this.headerFilterLiveFilterDelay,
|
|
20751
20754
|
headerHidden: this.noHeader,
|
|
20752
|
-
headerSortElement:
|
|
20755
|
+
headerSortElement: Dp,
|
|
20753
20756
|
hoverMenu: this.hoverMenu,
|
|
20754
20757
|
index: this.rowIdField,
|
|
20755
20758
|
initialFilter: this.initialFilter,
|
|
@@ -21614,9 +21617,9 @@ Rn = function() {
|
|
|
21614
21617
|
return this.groupStartOpenValues !== void 0 && this.groupStartOpenValues !== null ? (r) => this.groupStartOpenValues?.includes(r) ?? !1 : this.groupStartOpen;
|
|
21615
21618
|
};
|
|
21616
21619
|
g.styles = [
|
|
21617
|
-
|
|
21620
|
+
We,
|
|
21618
21621
|
Cp,
|
|
21619
|
-
|
|
21622
|
+
kn
|
|
21620
21623
|
];
|
|
21621
21624
|
g.dependencies = {
|
|
21622
21625
|
"cx-button": Et,
|
|
@@ -21638,22 +21641,22 @@ g.dependencies = {
|
|
|
21638
21641
|
};
|
|
21639
21642
|
g.IN_MEMORY_PARSE_CHUNK_SIZE = 2e4;
|
|
21640
21643
|
v([
|
|
21641
|
-
|
|
21644
|
+
ce(".tabulator-tableholder")
|
|
21642
21645
|
], g.prototype, "tabulatorHolder", 2);
|
|
21643
21646
|
v([
|
|
21644
|
-
|
|
21647
|
+
ce(".tabulator")
|
|
21645
21648
|
], g.prototype, "tabulatorElement", 2);
|
|
21646
21649
|
v([
|
|
21647
|
-
|
|
21650
|
+
ce(".table")
|
|
21648
21651
|
], g.prototype, "table", 2);
|
|
21649
21652
|
v([
|
|
21650
|
-
|
|
21653
|
+
ce("cx-table-toolbar")
|
|
21651
21654
|
], g.prototype, "tableToolbar", 2);
|
|
21652
21655
|
v([
|
|
21653
|
-
|
|
21656
|
+
ce("cx-table-footer")
|
|
21654
21657
|
], g.prototype, "tableFooter", 2);
|
|
21655
21658
|
v([
|
|
21656
|
-
|
|
21659
|
+
ce(".validation-tooltip")
|
|
21657
21660
|
], g.prototype, "validationTooltip", 2);
|
|
21658
21661
|
v([
|
|
21659
21662
|
m({
|
|
@@ -22969,7 +22972,7 @@ let me = class extends Pe {
|
|
|
22969
22972
|
`;
|
|
22970
22973
|
}
|
|
22971
22974
|
};
|
|
22972
|
-
me.styles = [
|
|
22975
|
+
me.styles = [We, Kp];
|
|
22973
22976
|
me.dependencies = {
|
|
22974
22977
|
"cx-color-swatch": Vr,
|
|
22975
22978
|
"cx-space": Si,
|
|
@@ -22977,7 +22980,7 @@ me.dependencies = {
|
|
|
22977
22980
|
"cx-typography": Nr
|
|
22978
22981
|
};
|
|
22979
22982
|
xe([
|
|
22980
|
-
|
|
22983
|
+
ce(".color-swatch-group__swatches")
|
|
22981
22984
|
], me.prototype, "containerEl", 2);
|
|
22982
22985
|
xe([
|
|
22983
22986
|
ga("cx-table")
|