@orangelogic/design-system 3.51.0 → 3.53.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/assets/validation.worker-CATXl-v2.js +1 -0
- package/library/chunks/{alert.CuW7fOVy.js → alert.l5EVK3-E.js} +2 -2
- package/library/chunks/{array-line-clamp.VOjhwp2T.js → array-line-clamp.CaiICVna.js} +2 -2
- package/library/chunks/{asset-link-format.DW4-Yf4S.js → asset-link-format.CylxIiPd.js} +9 -9
- package/library/chunks/{audio.D_O5ecXD.js → audio.BDjVHTU2.js} +2 -2
- package/library/chunks/{bicolor-picker.DKcKLKki.js → bicolor-picker.CHeZU9u5.js} +1 -1
- package/library/chunks/{block-width.BoB4DTSi.js → block-width.RHVYimlE.js} +158 -158
- package/library/chunks/{border-input-group.Bo4n74DK.js → border-input-group.DitDsVli.js} +3 -3
- package/library/chunks/{breadcrumb.qggcceb5.js → breadcrumb.wAs0dDVb.js} +1 -1
- package/library/chunks/{button.Ccrk9fUD.js → button.HVChe9zT.js} +2 -2
- package/library/chunks/{color-picker.DJWwlNQc.js → color-picker.DjOq0eFi.js} +10 -10
- package/library/chunks/{color-swatch-group.Dp778XL2.js → color-swatch-group.9Qx8Gvf2.js} +689 -613
- package/library/chunks/{color-swatch.sY1uNNSe.js → color-swatch.Czkv1Mbb.js} +5 -5
- package/library/chunks/{config-manager.B17KFYlP.js → config-manager.DjYQhlA6.js} +27 -27
- package/library/chunks/{configs-controller.CiNEXlyV.js → configs-controller.DM4UNL35.js} +55 -7
- package/library/chunks/{confirm-popover.BjAGzV05.js → confirm-popover.CmkU5LOc.js} +4 -4
- package/library/chunks/{copy-button.BLHge7EN.js → copy-button.Db9OgUsk.js} +2 -2
- package/library/chunks/{corner-position-input-group.BAvx6UsV.js → corner-position-input-group.DtjehmV9.js} +4 -4
- package/library/chunks/{date-calendar.UWxXkZCn.js → date-calendar.QH4E3gcB.js} +1 -1
- package/library/chunks/{details.DLqFxjTf.js → details.QX575PyS.js} +1 -1
- package/library/chunks/{dialog.Dw-WUyD8.js → dialog.BpXFrOri.js} +3 -3
- package/library/chunks/{document-viewer.B7_Adb8g.js → document-viewer.C6pZUsMP.js} +13 -13
- package/library/chunks/{dot-pagination.CSSalEx6.js → dot-pagination.DecVZgSJ.js} +2 -2
- package/library/chunks/{drawer.tfa9-G6a.js → drawer.DL2AzbcX.js} +2 -2
- package/library/chunks/{dropdown.DUfiVpFI.js → dropdown.jJJ_wxJN.js} +4 -4
- package/library/chunks/{dynamic-select.o5G8iUV1.js → dynamic-select.Di2M5NWC.js} +5 -5
- package/library/chunks/{e-chart.BopkVc04.js → e-chart.c19ibTnT.js} +2 -2
- package/library/chunks/{element-clamp.DzR3w7RX.js → element-clamp.B-sumN97.js} +2 -2
- package/library/chunks/{file-on-demand.D7bLG0JA.js → file-on-demand.P_3uP0Ur.js} +16 -16
- package/library/chunks/{folder-select.DA7Ezy8P.js → folder-select.33VMtLnU.js} +7 -7
- package/library/chunks/{format-time.BO9Y72qk.js → format-time.Dfu1FCrK.js} +1 -1
- package/library/chunks/{header.BaWpIXRz.js → header.BosjiWVg.js} +2 -2
- package/library/chunks/{i18n.BMXeDUpk.js → i18n.D_iHIFdS.js} +3 -0
- package/library/chunks/{icon-button.CziUJUiX.js → icon-button.D6mTxvLN.js} +2 -2
- package/library/chunks/{iframe.BnAR2-o2.js → iframe.C7j4Uzku.js} +1 -1
- package/library/chunks/{image-comparer.DStatUUS.js → image-comparer.D7C-cLm6.js} +1 -1
- package/library/chunks/{image.DzFSYcXq.js → image.nqoaGkQd.js} +11 -4
- package/library/chunks/{input.B3HfssSr.js → input.C44u0jQi.js} +1 -1
- package/library/chunks/{line-clamp.DV3tlosD.js → line-clamp.C7M133Jo.js} +2 -2
- package/library/chunks/{markdown.C-q35PEY.js → markdown.B6J44eJB.js} +2 -2
- package/library/chunks/{masonry.D7YK0FcU.js → masonry.CsJC8M6I.js} +3 -3
- package/library/chunks/{menu-item.D-IE19Jn.js → menu-item.UQ_IlBEV.js} +3 -3
- package/library/chunks/{menu.3akay3Bh.js → menu.BTt3TxEj.js} +2 -2
- package/library/chunks/{option.9V-nTQp7.js → option.CizwUJwq.js} +1 -1
- package/library/chunks/{padding-input-group.DKIv6567.js → padding-input-group.CSYzP2s4.js} +1 -1
- package/library/chunks/{pagination.Cs-s_PTI.js → pagination.Dgn16y4P.js} +7 -7
- package/library/chunks/{popup.CxGrVXG-.js → popup.DwPq0yI9.js} +1 -1
- package/library/chunks/{position-picker.CyXlSYCi.js → position-picker.aNCROlig.js} +1 -1
- package/library/chunks/{progress-bar.Cp8jz3Cn.js → progress-bar.VFfb2YnK.js} +1 -1
- package/library/chunks/{progress-ring.CMylJgKR.js → progress-ring.Czn6GoZL.js} +1 -1
- package/library/chunks/{radio-card.D4B962Sg.js → radio-card.rgobVDcV.js} +1 -1
- package/library/chunks/{range.Dl85wEtv.js → range.UVbDGy7M.js} +2 -2
- package/library/chunks/{rating.C-3rSMOT.js → rating.Dpqp5fJ2.js} +1 -1
- package/library/chunks/{relative-time.5fu63h4C.js → relative-time.ImRpAXxg.js} +1 -1
- package/library/chunks/{select.DJ_bfkBn.js → select.NoJEwBN4.js} +8 -8
- package/library/chunks/{shadow-input-group.DaDZTOGa.js → shadow-input-group.0xDWAN9L.js} +2 -2
- package/library/chunks/{share-option-list.BO50cnCs.js → share-option-list.CVyc5zE3.js} +2 -2
- package/library/chunks/{sidebar.CDTaDQY_.js → sidebar.B1CkFnS-.js} +1 -1
- package/library/chunks/{size-input-group.DvTF3TsD.js → size-input-group.DoE-qa2S.js} +5 -5
- package/library/chunks/{spinner.-79sJ3oo.js → spinner.BPSFoJkz.js} +1 -1
- package/library/chunks/{split-panel.DE2NmORY.js → split-panel.BsE9_zvp.js} +1 -1
- package/library/chunks/{src.CNvhakVg.js → src.cG4bHSGM.js} +47 -47
- package/library/chunks/{step.CIXS6vq7.js → step.ZFoTM46R.js} +3 -3
- package/library/chunks/{stepper-wizard.Bydp0R7p.js → stepper-wizard.CImDe292.js} +2 -2
- package/library/chunks/{stepper.DlYgTq-1.js → stepper.Y2ydDAom.js} +1 -1
- package/library/chunks/{tab-group._olfRqqQ.js → tab-group.DVCzY8ff.js} +7 -7
- package/library/chunks/{tab.CDVHHAgG.js → tab.DTDi6_uw.js} +3 -3
- package/library/chunks/{tag.ajqJVQQB.js → tag.DI1e3R9Y.js} +3 -3
- package/library/chunks/{tooltip.CGCOh4cQ.js → tooltip.BAg1FXgE.js} +2 -2
- package/library/chunks/{tree.huEm605f.js → tree.BFReY9S3.js} +3 -3
- package/library/chunks/{typeface.CtBzG7NU.js → typeface.DPIZSN2l.js} +3 -3
- package/library/chunks/{video.Be2Oh_tS.js → video.d4acczzs.js} +2 -2
- package/library/components/alert.js +1 -1
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +48 -48
- package/library/components/audio.js +1 -1
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dot-pagination.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- 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 +1 -1
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +16 -16
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- 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/radio-card.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 +1 -1
- 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 +1 -1
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +12779 -12613
- package/library/components/video.js +1 -1
- 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 +14 -10
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/types/src/table.d.ts +7 -6
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/utils.js +1 -1
- package/package.json +1 -1
- package/library/assets/validation.worker-DnJlaA8S.js +0 -1
|
@@ -3,41 +3,41 @@ import { c as r, d as i, n as a, r as o } from "./lit.CyJqR2kf.js";
|
|
|
3
3
|
import { a as s, i as c, n as l, r as u, t as d } from "./cortex-element.DTrNUtdr.js";
|
|
4
4
|
import { t as f } from "./query.B1yi7t71.js";
|
|
5
5
|
import { t as p } from "./query-all.NK7qxEbl.js";
|
|
6
|
-
import { t as m } from "./popup.
|
|
6
|
+
import { t as m } from "./popup.DwPq0yI9.js";
|
|
7
7
|
import { t as h } from "./component.styles.0xM1ZmBs.js";
|
|
8
8
|
import { t as g } from "./custom-element.BEMYNDK1.js";
|
|
9
|
-
import { t as _ } from "./i18n.
|
|
9
|
+
import { t as _ } from "./i18n.D_iHIFdS.js";
|
|
10
10
|
import { t as v } from "./slot.CZUlACxT.js";
|
|
11
|
-
import { O as y, S as ee, h as b, k as x, n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { g as
|
|
21
|
-
import { o as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as N } from "./tooltip.
|
|
24
|
-
import { t as se } from "./line-clamp.
|
|
25
|
-
import { t as ce } from "./tag.
|
|
11
|
+
import { O as y, S as ee, h as b, k as x, n as te, t as S } from "./watch.Ub5r8btz.js";
|
|
12
|
+
import { t as C } from "./class-map.D8nsNOVJ.js";
|
|
13
|
+
import { t as w } from "./icon-button.D6mTxvLN.js";
|
|
14
|
+
import { t as T } from "./if-defined.B29V_rEp.js";
|
|
15
|
+
import { t as E } from "./when.BUskJLtZ.js";
|
|
16
|
+
import { t as D } from "./icon.CeQpEaQz.js";
|
|
17
|
+
import { t as O } from "./spinner.BPSFoJkz.js";
|
|
18
|
+
import { t as k } from "./style-map.DPGQIxip.js";
|
|
19
|
+
import { t as ne } from "./button.HVChe9zT.js";
|
|
20
|
+
import { g as A, h as re, l as ie, t as ae } from "./string.DamEXDH2.js";
|
|
21
|
+
import { o as oe, s as j } from "./dom.dDaS97WU.js";
|
|
22
|
+
import { t as M } from "./debounce.Ci-xdsHE.js";
|
|
23
|
+
import { t as N } from "./tooltip.BAg1FXgE.js";
|
|
24
|
+
import { t as se } from "./line-clamp.C7M133Jo.js";
|
|
25
|
+
import { t as ce } from "./tag.DI1e3R9Y.js";
|
|
26
26
|
import { n as le, t as ue } from "./typography.B0mkhqTB.js";
|
|
27
27
|
import { t as de } from "./badge.H_UuxPXn.js";
|
|
28
28
|
import { t as fe } from "./checkbox.C6vsHW9n.js";
|
|
29
29
|
import { t as pe } from "./repeat.CKv9FPlC.js";
|
|
30
|
-
import { t as me } from "./dropdown.
|
|
31
|
-
import { t as he } from "./input.
|
|
32
|
-
import { t as ge } from "./menu.
|
|
33
|
-
import { t as _e } from "./menu-item.
|
|
30
|
+
import { t as me } from "./dropdown.jJJ_wxJN.js";
|
|
31
|
+
import { t as he } from "./input.C44u0jQi.js";
|
|
32
|
+
import { t as ge } from "./menu.BTt3TxEj.js";
|
|
33
|
+
import { t as _e } from "./menu-item.UQ_IlBEV.js";
|
|
34
34
|
import { t as ve } from "./space.Dd8jezXK.js";
|
|
35
35
|
import { t as ye } from "./unsafe-html.Cb838aX7.js";
|
|
36
|
-
import { t as be } from "./select.
|
|
36
|
+
import { t as be } from "./select.NoJEwBN4.js";
|
|
37
37
|
import { t as xe } from "./guard.Cf17k6Vx.js";
|
|
38
38
|
import { a as Se, f as Ce, l as we, r as Te } from "./date.BL4L64Hx.js";
|
|
39
|
-
import { t as Ee } from "./details.
|
|
40
|
-
import { i as De, s as Oe, t as ke } from "./dialog.
|
|
39
|
+
import { t as Ee } from "./details.QX575PyS.js";
|
|
40
|
+
import { i as De, s as Oe, t as ke } from "./dialog.BpXFrOri.js";
|
|
41
41
|
import { t as Ae } from "./divider.CqSNZCU8.js";
|
|
42
42
|
import { n as je } from "./toString.r2ImdBrm.js";
|
|
43
43
|
import { n as Me } from "./capitalize.BT_EavGy.js";
|
|
@@ -46,9 +46,9 @@ import { f as ze, n as Be, r as Ve, t as He } from "./responsive.L9Csz2w2.js";
|
|
|
46
46
|
import { findIndexByProp as Ue, groupBy as We, insertMultipleAtIndex as Ge, moveMultipleToIndex as Ke, multiSelectTo as qe, removeMultipleAtIndex as Je, toast as Ye } from "../utils.js";
|
|
47
47
|
import Xe from "../components/format-number.js";
|
|
48
48
|
import { t as Ze } from "./menu-section.BzzA6L5E.js";
|
|
49
|
-
import { n as Qe, t as $e } from "./pagination.
|
|
49
|
+
import { n as Qe, t as $e } from "./pagination.Dgn16y4P.js";
|
|
50
50
|
import { t as et } from "./sortable.esm.W3y3EWKS.js";
|
|
51
|
-
import { t as tt } from "./color-swatch.
|
|
51
|
+
import { t as tt } from "./color-swatch.Czkv1Mbb.js";
|
|
52
52
|
import { t as nt } from "./debounce.DrhImrNP.js";
|
|
53
53
|
import { c as rt, o as it, s as at, t as ot } from "./_baseIteratee.DWc2-Bvm.js";
|
|
54
54
|
import { n as st, r as ct, t as lt } from "./_baseUniq.h_pGICPH.js";
|
|
@@ -134,11 +134,11 @@ function Dt(e, t) {
|
|
|
134
134
|
}
|
|
135
135
|
function Ot(e, t) {
|
|
136
136
|
let n = e.facetDetails;
|
|
137
|
-
return r`<cx-facet-date-picker field=${n.facetFieldName} display-name=${n.displayName} display-format=${
|
|
137
|
+
return r`<cx-facet-date-picker field=${n.facetFieldName} display-name=${n.displayName} display-format=${T(n.displayFormat)} value=${t.dateRange?.fromDate ?? ""} from-time=${t.dateRange?.fromTime ?? Te} min=${n.min ?? ""} max=${n.max ?? ""} ?show-time=${n.showTime ?? !1}></cx-facet-date-picker>`;
|
|
138
138
|
}
|
|
139
139
|
function kt(e, t) {
|
|
140
140
|
let n = e.facetDetails;
|
|
141
|
-
return r`<cx-facet-date-range field=${n.facetFieldName} display-name=${n.displayName} display-format=${
|
|
141
|
+
return r`<cx-facet-date-range field=${n.facetFieldName} display-name=${n.displayName} display-format=${T(n.displayFormat)} from-date=${t.dateRange?.fromDate ?? ""} to-date=${t.dateRange?.toDate ?? ""} from-time=${t.dateRange?.fromTime ?? Te} to-time=${t.dateRange?.toTime ?? "23:59:59"} preset=${t.dateRange?.preset ?? ""} min=${n.min ?? ""} max=${n.max ?? ""} ?show-time=${n.showTime ?? !1} ?show-preset=${n.showPreset ?? !1}></cx-facet-date-range>`;
|
|
142
142
|
}
|
|
143
143
|
var At = {
|
|
144
144
|
[Ct.Checkbox]: Dt,
|
|
@@ -152,13 +152,13 @@ var At = {
|
|
|
152
152
|
static #t = this.styles = [h, jt];
|
|
153
153
|
static #n = this.dependencies = {
|
|
154
154
|
"cx-badge": de,
|
|
155
|
-
"cx-button":
|
|
155
|
+
"cx-button": ne,
|
|
156
156
|
"cx-details": Ee,
|
|
157
157
|
"cx-dropdown": me,
|
|
158
|
-
"cx-icon":
|
|
159
|
-
"cx-icon-button":
|
|
158
|
+
"cx-icon": D,
|
|
159
|
+
"cx-icon-button": w,
|
|
160
160
|
"cx-space": ve,
|
|
161
|
-
"cx-spinner":
|
|
161
|
+
"cx-spinner": O,
|
|
162
162
|
"cx-tag": ce,
|
|
163
163
|
"cx-tooltip": N
|
|
164
164
|
};
|
|
@@ -254,10 +254,10 @@ var At = {
|
|
|
254
254
|
} });
|
|
255
255
|
}
|
|
256
256
|
renderAppliedFilters() {
|
|
257
|
-
return r`<cx-details aria-busy=${this.loading ? "true" : "false"} class=${
|
|
257
|
+
return r`<cx-details aria-busy=${this.loading ? "true" : "false"} class=${C({
|
|
258
258
|
"applied-filters": !0,
|
|
259
259
|
"applied-filters--empty": this.appliedFiltersCount === 0
|
|
260
|
-
})}><span slot="summary" class="applied-filters__summary"><span class="applied-filters__title">${this.localize.term("appliedFilters")}${this.appliedFiltersCount > 0 ? ` (${this.appliedFiltersCount})` : o}</span>${
|
|
260
|
+
})}><span slot="summary" class="applied-filters__summary"><span class="applied-filters__title">${this.localize.term("appliedFilters")}${this.appliedFiltersCount > 0 ? ` (${this.appliedFiltersCount})` : o}</span>${E(this.loading, () => r`<span class="applied-filters__loading" role="status" aria-label=${this.localize.term("loading")}><cx-spinner></cx-spinner></span>`, () => o)}</span><cx-space direction="horizontal" spacing="small" class="applied-filters__tags">${this.renderExternalFilterTags()}
|
|
261
261
|
${this.renderSelectionCheckboxTags()}
|
|
262
262
|
${this.renderDateTags()}</cx-space></cx-details>`;
|
|
263
263
|
}
|
|
@@ -286,10 +286,10 @@ var At = {
|
|
|
286
286
|
return pe(Object.entries(this.internalSelection), ([e]) => e, ([e, t]) => t.filter((t) => this.mappedDisplayNames[e]?.[t]).map((t) => r`<cx-tag removable data-value=${t} data-type=${e}>${this.mappedDisplayNames[e][t]}</cx-tag>`));
|
|
287
287
|
}
|
|
288
288
|
renderFooter() {
|
|
289
|
-
return
|
|
289
|
+
return E(this.appliedFiltersCount > 0, () => r`<div class="panel__footer"><cx-button variant="text" @click=${this.handleClearAllClick} size="small" class="panel__clear-all-button">${this.localize.term("clear")}</cx-button></div>`, () => o);
|
|
290
290
|
}
|
|
291
291
|
render() {
|
|
292
|
-
return r`<cx-dropdown stay-open-on-select placement="bottom-start" distance="4" hoist @cx-selection-change=${this.handleSelectionChange} @cx-facet-change=${this.handleFacetChange} @cx-remove=${this.handleRemove}><cx-icon-button slot="trigger" name="filter_alt" label=${this.localize.term("filter")} class="faceted-filter__trigger">${
|
|
292
|
+
return r`<cx-dropdown stay-open-on-select placement="bottom-start" distance="4" hoist @cx-selection-change=${this.handleSelectionChange} @cx-facet-change=${this.handleFacetChange} @cx-remove=${this.handleRemove}><cx-icon-button slot="trigger" name="filter_alt" label=${this.localize.term("filter")} class="faceted-filter__trigger">${E(this.appliedFiltersCount > 0, () => r`<cx-badge slot="badge" class="faceted-filter__trigger-badge" pill size="small">${this.appliedFiltersCount}</cx-badge>`, () => o)}</cx-icon-button><div class="panel"><div class="panel__content"><div class="panel__header">${this.renderAppliedFilters()}</div><div class="panel__body">${E(this.availableFacets.length > 0, () => r`<div>${pe(this.availableFacets, (e) => e.facetFieldName, (e) => {
|
|
293
293
|
let t = this.facets.find((t) => t.facetDetails.facetFieldName === e.facetFieldName);
|
|
294
294
|
if (!t) return o;
|
|
295
295
|
let n = At[e.type ?? Ct.Checkbox];
|
|
@@ -313,34 +313,34 @@ l([s({ type: Array }), u("design:type", Array)], P.prototype, "facets", void 0),
|
|
|
313
313
|
attribute: !1,
|
|
314
314
|
type: Array
|
|
315
315
|
}), u("design:type", Array)], P.prototype, "externalFilters", void 0), l([c(), u("design:type", Object)], P.prototype, "appliedFiltersCount", void 0), l([c(), u("design:type", Object)], P.prototype, "internalSelection", void 0), l([c(), u("design:type", Object)], P.prototype, "internalDateRanges", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], P.prototype, "mappedDisplayNames", void 0), l([c(), u("design:type", typeof Map > "u" ? Object : Map)], P.prototype, "facetDetailsByField", void 0), l([
|
|
316
|
-
|
|
316
|
+
S("facets"),
|
|
317
317
|
u("design:type", Function),
|
|
318
318
|
u("design:paramtypes", []),
|
|
319
319
|
u("design:returntype", void 0)
|
|
320
320
|
], P.prototype, "handleFacetsChange", null), l([
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
S("facets"),
|
|
322
|
+
S("availableFacets"),
|
|
323
323
|
u("design:type", Function),
|
|
324
324
|
u("design:paramtypes", []),
|
|
325
325
|
u("design:returntype", void 0)
|
|
326
326
|
], P.prototype, "rebuildFacetDetailsByField", null), l([
|
|
327
|
-
|
|
327
|
+
S("selectedFacets"),
|
|
328
328
|
u("design:type", Function),
|
|
329
329
|
u("design:paramtypes", []),
|
|
330
330
|
u("design:returntype", void 0)
|
|
331
331
|
], P.prototype, "handleSelectedFacetsChange", null), l([
|
|
332
|
-
|
|
332
|
+
S("selectedDateRanges"),
|
|
333
333
|
u("design:type", Function),
|
|
334
334
|
u("design:paramtypes", []),
|
|
335
335
|
u("design:returntype", void 0)
|
|
336
336
|
], P.prototype, "handleSelectedDateRangesChange", null), l([
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
S("internalSelection"),
|
|
338
|
+
S("internalDateRanges", { waitUntilFirstUpdate: !0 }),
|
|
339
339
|
u("design:type", Function),
|
|
340
340
|
u("design:paramtypes", []),
|
|
341
341
|
u("design:returntype", void 0)
|
|
342
342
|
], P.prototype, "handleInternalSelectionChange", null), l([
|
|
343
|
-
|
|
343
|
+
S("externalFilters"),
|
|
344
344
|
u("design:type", Function),
|
|
345
345
|
u("design:paramtypes", []),
|
|
346
346
|
u("design:returntype", void 0)
|
|
@@ -437,14 +437,14 @@ var en = 1, tn = 2, nn = 4, rn = vt(function(e, t) {
|
|
|
437
437
|
}), bt(e, yt(e), n), r && (n = xt(n, en | tn | nn, $t));
|
|
438
438
|
for (var i = t.length; i--;) Qt(n, t[i]);
|
|
439
439
|
return n;
|
|
440
|
-
}), an = i`:host{--row-height:44px;min-height:var(--row-height);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);min-height:var(--row-height);
|
|
440
|
+
}), an = i`:host{--row-height:44px;min-height:var(--row-height);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);min-height:var(--row-height);background-color:var(--cx-color-neutral-100);align-items:center;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 var(--row-height);height:var(--row-height);width:var(--row-height);justify-content:center;align-items:center;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}`, R = class extends d {
|
|
441
441
|
constructor(...e) {
|
|
442
442
|
super(...e), this.localize = new _(this), this.text = "", this.tooltip = "", this.readonly = !1, this.placeholder = !1, this.selected = !1, this.configurable = !1, this.disabledTooltip = !1, this.isGroup = !1;
|
|
443
443
|
}
|
|
444
444
|
static #e = this.styles = [h, an];
|
|
445
445
|
static #t = this.dependencies = {
|
|
446
|
-
"cx-icon":
|
|
447
|
-
"cx-icon-button":
|
|
446
|
+
"cx-icon": D,
|
|
447
|
+
"cx-icon-button": w,
|
|
448
448
|
"cx-line-clamp": se,
|
|
449
449
|
"cx-tooltip": N
|
|
450
450
|
};
|
|
@@ -467,28 +467,28 @@ var en = 1, tn = 2, nn = 4, rn = vt(function(e, t) {
|
|
|
467
467
|
this.tooltipElement && (this.tooltipElement.open = !1);
|
|
468
468
|
}
|
|
469
469
|
render() {
|
|
470
|
-
return r`<div class=${
|
|
470
|
+
return r`<div class=${C({
|
|
471
471
|
"board-list-item": !0,
|
|
472
472
|
"board-list-item--checked": this.selected,
|
|
473
473
|
"board-list-item--group": this.isGroup,
|
|
474
474
|
"board-list-item--placeholder": this.placeholder,
|
|
475
475
|
"board-list-item--readonly": this.readonly
|
|
476
|
-
})}><span class="board-list-item__control">${this.selected ? r`<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">${ye(this.tooltip)}</div></cx-tooltip></div>${this.configurable && !this.readonly ? r`<cx-icon-button part="config-button" name="settings" label=${this.localize.term("configure")} @click=${this.onConfigButtonClick}></cx-icon-button>` : ""}</div>`;
|
|
476
|
+
})}><span class="board-list-item__selection-hit-area"><span class="board-list-item__control">${this.selected ? r`<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">${ye(this.tooltip)}</div></cx-tooltip></div>${this.configurable && !this.readonly ? r`<cx-icon-button part="config-button" name="settings" label=${this.localize.term("configure")} @click=${this.onConfigButtonClick}></cx-icon-button>` : ""}</div>`;
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
l([f("[part=\"config-button\"]"), u("design:type",
|
|
479
|
+
l([f("[part=\"config-button\"]"), u("design:type", w === void 0 ? Object : w)], R.prototype, "configButton", void 0), l([f("[part=\"text\"]"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], R.prototype, "textElement", void 0), l([f("[part=\"tooltip\"]"), u("design:type", N === void 0 ? Object : N)], R.prototype, "tooltipElement", void 0), l([f(".board-list-item__control"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], R.prototype, "controlElement", void 0), l([f(".board-list-item__selection-hit-area"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], R.prototype, "selectionHitAreaElement", void 0), l([s({ type: String }), u("design:type", Object)], R.prototype, "text", void 0), l([s({ type: String }), u("design:type", Object)], R.prototype, "tooltip", void 0), l([s({ type: Boolean }), u("design:type", Object)], R.prototype, "readonly", void 0), l([s({ type: Boolean }), u("design:type", Object)], R.prototype, "placeholder", void 0), l([s({ type: Boolean }), u("design:type", Object)], R.prototype, "selected", void 0), l([s({ type: Boolean }), u("design:type", Object)], R.prototype, "configurable", void 0), l([s({
|
|
480
480
|
attribute: "disabled-tooltip",
|
|
481
481
|
type: Boolean
|
|
482
482
|
}), u("design:type", Object)], R.prototype, "disabledTooltip", void 0), l([s({
|
|
483
483
|
attribute: "is-group",
|
|
484
484
|
type: Boolean
|
|
485
485
|
}), u("design:type", Object)], R.prototype, "isGroup", void 0), l([
|
|
486
|
-
|
|
486
|
+
S("disabledTooltip"),
|
|
487
487
|
u("design:type", Function),
|
|
488
488
|
u("design:paramtypes", []),
|
|
489
489
|
u("design:returntype", void 0)
|
|
490
490
|
], R.prototype, "handleDisabledTooltipChange", null), R = l([g("cx-board-list-item")], R);
|
|
491
|
-
var on = R, sn = i`: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__header--divided{margin-bottom:0}.board__divider{--spacing:0;margin-bottom:16px}.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:
|
|
491
|
+
var on = R, sn = i`: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__header--divided{margin-bottom:0}.board__divider{--spacing:0;margin-bottom:16px}.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}`, cn = (e) => {
|
|
492
492
|
let t = e.getRootNode();
|
|
493
493
|
return t instanceof ShadowRoot ? t.host : null;
|
|
494
494
|
};
|
|
@@ -498,8 +498,8 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
498
498
|
static #t = this.dependencies = {
|
|
499
499
|
"cx-board-list-item": on,
|
|
500
500
|
"cx-divider": Ae,
|
|
501
|
-
"cx-icon":
|
|
502
|
-
"cx-icon-button":
|
|
501
|
+
"cx-icon": D,
|
|
502
|
+
"cx-icon-button": w,
|
|
503
503
|
"cx-input": he,
|
|
504
504
|
"cx-tooltip": N
|
|
505
505
|
};
|
|
@@ -654,7 +654,7 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
654
654
|
let o = this._selectedItems[i];
|
|
655
655
|
if (t) this.handleShiftSelect(r);
|
|
656
656
|
else {
|
|
657
|
-
if (!(e.ctrlKey || e.metaKey) && !n.some((e) => e === r.controlElement)) {
|
|
657
|
+
if (!(e.ctrlKey || e.metaKey) && !n.some((e) => e === r.selectionHitAreaElement || e === r.controlElement)) {
|
|
658
658
|
this.selectSingleItem(r, o);
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
@@ -765,17 +765,17 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
|
|
|
765
765
|
}
|
|
766
766
|
render() {
|
|
767
767
|
let e = this.selectedCount, t = e + this.hiddenSelectedCount, n = this.isAllSelected ? r`<cx-icon class="board__checked-icon" name="check"></cx-icon>` : this.isPartiallySelected ? r`<cx-icon class="board__checked-icon" name="remove"></cx-icon>` : o, i = this.filteredItems.slice(this.start, Math.min(this.end, this.filteredItems.length)), a = this.isDragging && !this.previous[0]?.isConnected ? et.dragged?.dataset.id : void 0, s = a ? i.filter((e) => e.id !== a) : i;
|
|
768
|
-
return r`<div class=${
|
|
768
|
+
return r`<div class=${C({
|
|
769
769
|
board: !0,
|
|
770
770
|
"board--checked": this.all && (e > 0 || this.hiddenSelection !== Xt.None),
|
|
771
771
|
"board--dragging": this.isDragging
|
|
772
|
-
})}><div class=${
|
|
772
|
+
})}><div class=${C({
|
|
773
773
|
board__header: !0,
|
|
774
774
|
"board__header--divided": !!this.dividerColor
|
|
775
|
-
})}>${this.all ? r`<span class="board__select-all" part="select-all" role="checkbox" tabindex="0" aria-checked=${this.isAllSelected ? "true" : this.isPartiallySelected ? "mixed" : "false"} aria-label=${this.localize.term("selectAll")} @click=${this.handleSelectAll} @keydown=${this.handleSelectAllKeydown}>${n}</span>` : ""}<cx-tooltip content=${this.boardTitle} hoist ?disabled=${!this.boardTitle || this.isDragging}><div class="board__header__text">${this.boardTitle}</div></cx-tooltip>${
|
|
775
|
+
})}>${this.all ? r`<span class="board__select-all" part="select-all" role="checkbox" tabindex="0" aria-checked=${this.isAllSelected ? "true" : this.isPartiallySelected ? "mixed" : "false"} aria-label=${this.localize.term("selectAll")} @click=${this.handleSelectAll} @keydown=${this.handleSelectAllKeydown}>${n}</span>` : ""}<cx-tooltip content=${this.boardTitle} hoist ?disabled=${!this.boardTitle || this.isDragging}><div class="board__header__text">${this.boardTitle}</div></cx-tooltip>${E(this.allowSearch, () => r`<div class="board__header__search"><cx-input part="search-input" aria-label=${this.localize.term("search")} title=${this.localize.term("search")} placeholder=${this.localize.term("search")} size="small" value=${this.searchValue} @cx-input=${this.handleSearchChange}><cx-icon name="search" slot="prefix"></cx-icon><cx-icon-button part="search-input-clear" label=${this.localize.term("clearSearch")} name="close" size="small" slot="suffix" @click=${this.handleSearchClear}></cx-icon-button></cx-input></div>`)}</div>${E(this.dividerColor, () => r`<cx-divider class="board__divider" part="divider" style=${k({ "--color": this.dividerColor })}></cx-divider>`)}<div part="list" class="board__list" role="listbox" aria-label=${this.boardTitle || this.name} aria-multiselectable="true" tabindex="-1" @scroll=${this.handleListScroll}><div style="height: ${un * this.start}px"></div>${pe(s, (e) => e.id, (e) => r`<cx-board-list-item data-id=${e.id} data-index=${this._indexMap[e.id]} data-type=${e.type} ?disabled-tooltip=${this.isDragging} ?readonly=${e.disabled || e.id === e.group} ?selected=${!!this.selectedItems[e.id] || !1} text=${e.text} tooltip=${e.tooltip} ?configurable=${this.configurable} ?is-group=${e.id === e.group} role="option" tabindex=${e.disabled || e.id === e.group ? "-1" : "0"} aria-selected=${!!this.selectedItems[e.id]} aria-label=${e.text} @click=${this.handleSelect} @keydown=${this.handleItemKeydown}></cx-board-list-item>`)}<div style="height: ${un * (this.filteredItems.length - this.end > 0 ? this.filteredItems.length - this.end : 0)}px"></div></div><div class="board__footer">${t ? r`<div class="board__footer__text">${this.localize.term("selected")}: ${t}</div>` : r`<span></span>`}<div class="board__footer__text">${this.localize.term("total")}: ${this.totalDisplayedCount}</div></div></div>`;
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
|
-
l([f(".board"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], z.prototype, "board", void 0), l([f("[part=\"search-input\"]"), u("design:type", he === void 0 ? Object : he)], z.prototype, "searchInput", void 0), l([f("[part=\"search-input-clear\"]"), u("design:type",
|
|
778
|
+
l([f(".board"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], z.prototype, "board", void 0), l([f("[part=\"search-input\"]"), u("design:type", he === void 0 ? Object : he)], z.prototype, "searchInput", void 0), l([f("[part=\"search-input-clear\"]"), u("design:type", w === void 0 ? Object : w)], z.prototype, "searchInputClear", void 0), l([f("[part=\"list\"]"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], z.prototype, "list", void 0), l([f("[part=\"select-all\"]"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], z.prototype, "selectAllCheckBox", void 0), l([s({
|
|
779
779
|
attribute: "title",
|
|
780
780
|
reflect: !0,
|
|
781
781
|
type: String
|
|
@@ -804,17 +804,17 @@ l([f(".board"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement
|
|
|
804
804
|
attribute: "hidden-selected-count",
|
|
805
805
|
type: Number
|
|
806
806
|
}), u("design:type", Object)], z.prototype, "hiddenSelectedCount", void 0), l([c(), u("design:type", Object)], z.prototype, "abortDrag", void 0), l([c(), u("design:type", Array)], z.prototype, "items", void 0), l([c(), u("design:type", Array)], z.prototype, "_allItems", void 0), l([c(), u("design:type", Array)], z.prototype, "_filteredItems", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], z.prototype, "_selectedItems", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], z.prototype, "_selectedItemOrder", void 0), l([c(), u("design:type", Object)], z.prototype, "searchValue", void 0), l([c(), u("design:type", Object)], z.prototype, "sortable", void 0), l([c(), u("design:type", Number)], z.prototype, "_totalCount", void 0), l([c(), u("design:type", Number)], z.prototype, "_totalDisplayedCount", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], z.prototype, "_indexMap", void 0), l([c(), u("design:type", Object)], z.prototype, "isDragging", void 0), l([c(), u("design:type", Number)], z.prototype, "start", void 0), l([c(), u("design:type", Number)], z.prototype, "end", void 0), l([c(), u("design:type", typeof Array > "u" ? Object : Array)], z.prototype, "previous", void 0), l([c(), u("design:type", Object)], z.prototype, "lastSelectedItem", void 0), l([
|
|
807
|
-
|
|
807
|
+
S(["items", "searchValue"], { waitUntilFirstUpdate: !0 }),
|
|
808
808
|
u("design:type", Function),
|
|
809
809
|
u("design:paramtypes", []),
|
|
810
810
|
u("design:returntype", void 0)
|
|
811
811
|
], z.prototype, "onSearchValueChanged", null), l([
|
|
812
|
-
|
|
812
|
+
S(["data", "group"]),
|
|
813
813
|
u("design:type", Function),
|
|
814
814
|
u("design:paramtypes", []),
|
|
815
815
|
u("design:returntype", void 0)
|
|
816
816
|
], z.prototype, "onItemsChanged", null), l([
|
|
817
|
-
|
|
817
|
+
M(200, !0),
|
|
818
818
|
u("design:type", Function),
|
|
819
819
|
u("design:paramtypes", [on === void 0 ? Object : on]),
|
|
820
820
|
u("design:returntype", void 0)
|
|
@@ -975,8 +975,8 @@ var B = class extends d {
|
|
|
975
975
|
static #t = this.dependencies = {
|
|
976
976
|
"cx-board": pn,
|
|
977
977
|
"cx-faceted-filter": Nt,
|
|
978
|
-
"cx-icon":
|
|
979
|
-
"cx-icon-button":
|
|
978
|
+
"cx-icon": D,
|
|
979
|
+
"cx-icon-button": w,
|
|
980
980
|
"cx-input": he,
|
|
981
981
|
"cx-tooltip": N
|
|
982
982
|
};
|
|
@@ -1182,11 +1182,11 @@ var B = class extends d {
|
|
|
1182
1182
|
t && (this.board1OriginalData = this.firstColumnData.sort ?? !0 ? this.firstColumnData.items : [...this.firstColumnData.items].sort(_n)), n && (this.board2OriginalData = this.secondColumnData.sort ?? !0 ? this.secondColumnData.items : [...this.secondColumnData.items].sort(_n)), (t || n || e.has("labelMap")) && (this.rebuildMetadataFacets(), this.recomputeBoardData());
|
|
1183
1183
|
}
|
|
1184
1184
|
renderFilterToolbar() {
|
|
1185
|
-
return !this.canSearch && this.metadataFacetDetails.length === 0 ? o : r`<div class="multi-select__toolbar">${
|
|
1185
|
+
return !this.canSearch && this.metadataFacetDetails.length === 0 ? o : r`<div class="multi-select__toolbar">${E(this.canSearch, () => r`<cx-input class="multi-select__search" part="search-input" exportparts="clear-button:search-input-clear" aria-label=${this.localize.term("search")} title=${this.localize.term("search")} placeholder=${this.localize.term("search")} clearable value=${this.searchValue} @cx-keydown=${this.handleSearchKeydown} @cx-clear=${this.handleSearchClear}><cx-icon name="search" slot="prefix"></cx-icon></cx-input>`)}<cx-faceted-filter part="faceted-filter" selection="multiple" .facets=${this.metadataFacets} .availableFacets=${this.metadataFacetDetails} .selectedFacets=${this.selectedMetadataFacets} .externalFilters=${this.appliedFilterTags} @cx-faceted-filter-change=${this.handleMetadataFacetChange} @cx-faceted-filter-remove=${this.handleAppliedFilterRemove}></cx-faceted-filter></div>`;
|
|
1186
1186
|
}
|
|
1187
1187
|
render() {
|
|
1188
1188
|
let e = this.selectedItems[this.firstColumnData.id] ?? [], t = this.selectedItems[this.secondColumnData.id] ?? [], n = this.boardsWithOwnSearch, i = En(e, this.board1Data, this.firstColumnData.items, this.ignoreTypes), a = En(t, this.board2Data, this.secondColumnData.items, []);
|
|
1189
|
-
return r`<div class="multi-select">${this.renderFilterToolbar()}<div class="multi-select__boards" @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} .ignoreTypes=${this.ignoreTypes} hidden-selection=${i.state} hidden-selected-count=${i.count} ?allow-search=${n.has("1")} divider-color=${
|
|
1189
|
+
return r`<div class="multi-select">${this.renderFilterToolbar()}<div class="multi-select__boards" @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} .ignoreTypes=${this.ignoreTypes} hidden-selection=${i.state} hidden-selected-count=${i.count} ?allow-search=${n.has("1")} divider-color=${T(this.firstColumnData.dividerColor)}></cx-board><div class="multi-select__control"><cx-tooltip part="tooltip" content=${this.localize.term("moveSelectedItemRight")} hoist ?disabled=${!e.length}><cx-icon-button class="multi-select__control__move-button" name="arrow_forward_ios" label=${this.localize.term("moveSelectedItemRight")} @click=${this.handleMoveItemsRight} ?disabled=${!e.length}></cx-icon-button></cx-tooltip><cx-tooltip part="tooltip" content=${this.localize.term("moveSelectedItemLeft")} hoist ?disabled=${!t.length}><cx-icon-button class="multi-select__control__move-button" name="arrow_back_ios" label=${this.localize.term("moveSelectedItemLeft")} @click=${this.handleMoveItemsLeft} ?disabled=${!t.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} hidden-selection=${a.state} hidden-selected-count=${a.count} ?allow-search=${n.has("2")} divider-color=${T(this.secondColumnData.dividerColor)}></cx-board></div></div>`;
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
1192
|
l([f(".multi-select"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], B.prototype, "multiSelect", void 0), l([f("[part~=\"board-1\"]"), u("design:type", pn === void 0 ? Object : pn)], B.prototype, "board1", void 0), l([f("[part~=\"board-2\"]"), u("design:type", pn === void 0 ? Object : pn)], B.prototype, "board2", void 0), l([s({
|
|
@@ -1214,12 +1214,12 @@ l([f(".multi-select"), u("design:type", typeof HTMLElement > "u" ? Object : HTML
|
|
|
1214
1214
|
attribute: "add-limit",
|
|
1215
1215
|
type: Number
|
|
1216
1216
|
}), u("design:type", Object)], B.prototype, "addLimit", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], B.prototype, "itemMap", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], B.prototype, "selectedItems", void 0), l([c(), u("design:type", Array)], B.prototype, "initialSecondColumnItems", void 0), l([c(), u("design:type", Array)], B.prototype, "metadataFacetDetails", void 0), l([c(), u("design:type", Array)], B.prototype, "metadataFacets", void 0), l([c(), u("design:type", Object)], B.prototype, "selectedMetadataFacets", void 0), l([c(), u("design:type", Object)], B.prototype, "searchValue", void 0), l([
|
|
1217
|
-
|
|
1217
|
+
S("searchValue", { waitUntilFirstUpdate: !0 }),
|
|
1218
1218
|
u("design:type", Function),
|
|
1219
1219
|
u("design:paramtypes", []),
|
|
1220
1220
|
u("design:returntype", Promise)
|
|
1221
1221
|
], B.prototype, "onSearchValueChanged", null), l([
|
|
1222
|
-
|
|
1222
|
+
S("secondColumnData"),
|
|
1223
1223
|
u("design:type", Function),
|
|
1224
1224
|
u("design:paramtypes", []),
|
|
1225
1225
|
u("design:returntype", void 0)
|
|
@@ -1242,7 +1242,7 @@ var Dn = B, On = /* @__PURE__ */ function(e) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
static #e = this.styles = [h, kn];
|
|
1244
1244
|
static #t = this.dependencies = {
|
|
1245
|
-
"cx-button":
|
|
1245
|
+
"cx-button": ne,
|
|
1246
1246
|
"cx-dialog": ke,
|
|
1247
1247
|
"cx-multi-select": Dn
|
|
1248
1248
|
};
|
|
@@ -1289,14 +1289,14 @@ var Dn = B, On = /* @__PURE__ */ function(e) {
|
|
|
1289
1289
|
e.target === this.dialogEl && this.handleCancel();
|
|
1290
1290
|
}
|
|
1291
1291
|
render() {
|
|
1292
|
-
return r`<cx-dialog label=${this.localize.term("editColumns")} ?open=${this.open} @cx-request-close=${this.handleDialogRequestClose}><cx-multi-select .firstColumnData=${this.firstColumnData} .secondColumnData=${this.secondColumnData} @cx-multi-select-change=${this.handleMultiSelectChange}></cx-multi-select>${
|
|
1292
|
+
return r`<cx-dialog label=${this.localize.term("editColumns")} ?open=${this.open} @cx-request-close=${this.handleDialogRequestClose}><cx-multi-select .firstColumnData=${this.firstColumnData} .secondColumnData=${this.secondColumnData} @cx-multi-select-change=${this.handleMultiSelectChange}></cx-multi-select>${E(!this.canApply, () => r`<p class="table-column-editor__note">${this.localize.term("editColumnsMinVisibleNote")}</p>`)}<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>`;
|
|
1293
1293
|
}
|
|
1294
1294
|
};
|
|
1295
1295
|
l([f("cx-dialog"), u("design:type", ke === void 0 ? Object : ke)], An.prototype, "dialogEl", void 0), l([s({
|
|
1296
1296
|
reflect: !0,
|
|
1297
1297
|
type: Boolean
|
|
1298
1298
|
}), u("design:type", Object)], An.prototype, "open", void 0), l([s({ attribute: !1 }), u("design:type", Array)], An.prototype, "entries", void 0), l([c(), u("design:type", Object)], An.prototype, "firstColumnData", void 0), l([c(), u("design:type", Object)], An.prototype, "secondColumnData", void 0), l([c(), u("design:type", Array)], An.prototype, "visibleFields", void 0), l([
|
|
1299
|
-
|
|
1299
|
+
S("entries"),
|
|
1300
1300
|
u("design:type", Function),
|
|
1301
1301
|
u("design:paramtypes", []),
|
|
1302
1302
|
u("design:returntype", void 0)
|
|
@@ -1318,7 +1318,7 @@ l([s({
|
|
|
1318
1318
|
var Pn = Nn, Fn = i`:host{display:contents}cx-popup::part(popup){z-index:var(--cx-z-index-dropdown)}`, In = class extends d {
|
|
1319
1319
|
static #e = this.styles = [h, Fn];
|
|
1320
1320
|
static #t = this.dependencies = {
|
|
1321
|
-
"cx-icon":
|
|
1321
|
+
"cx-icon": D,
|
|
1322
1322
|
"cx-menu": ge,
|
|
1323
1323
|
"cx-menu-item": _e,
|
|
1324
1324
|
"cx-popup": m
|
|
@@ -1374,7 +1374,7 @@ l([f("cx-menu-item"), u("design:type", Object)], In.prototype, "firstMenuItem",
|
|
|
1374
1374
|
attribute: "hide-disabled",
|
|
1375
1375
|
type: Boolean
|
|
1376
1376
|
}), u("design:type", Object)], In.prototype, "hideDisabled", void 0), l([
|
|
1377
|
-
|
|
1377
|
+
S("open", { waitUntilFirstUpdate: !0 }),
|
|
1378
1378
|
u("design:type", Function),
|
|
1379
1379
|
u("design:paramtypes", []),
|
|
1380
1380
|
u("design:returntype", void 0)
|
|
@@ -1384,9 +1384,9 @@ var Ln = In, Rn = i`.table-row-actions__button::part(label),.table-row-actions__
|
|
|
1384
1384
|
super(...e), this.localize = new _(this), this.groupedDropdownItems = {}, this.sections = [];
|
|
1385
1385
|
}
|
|
1386
1386
|
static #e = this.dependencies = {
|
|
1387
|
-
"cx-button":
|
|
1387
|
+
"cx-button": ne,
|
|
1388
1388
|
"cx-dropdown": me,
|
|
1389
|
-
"cx-icon":
|
|
1389
|
+
"cx-icon": D,
|
|
1390
1390
|
"cx-menu": ge,
|
|
1391
1391
|
"cx-menu-item": _e,
|
|
1392
1392
|
"cx-menu-section": Ze,
|
|
@@ -1407,7 +1407,7 @@ var Ln = In, Rn = i`.table-row-actions__button::part(label),.table-row-actions__
|
|
|
1407
1407
|
} });
|
|
1408
1408
|
}
|
|
1409
1409
|
renderMenuItems(e) {
|
|
1410
|
-
return pe(e, (e) => e.name, (e) => r`<cx-menu-item class="table-row-actions__menu-item" data-action=${e.name} style=${
|
|
1410
|
+
return pe(e, (e) => e.name, (e) => r`<cx-menu-item class="table-row-actions__menu-item" data-action=${e.name} style=${k(e.style ?? {})} @click=${this.handleActionClick}>${E(e.prefixIcon, () => r`<cx-icon name=${e.prefixIcon} slot="prefix"></cx-icon>`)}
|
|
1411
1411
|
${e.label}</cx-menu-item>`);
|
|
1412
1412
|
}
|
|
1413
1413
|
renderMenuSection(e, t, n = e) {
|
|
@@ -1416,11 +1416,11 @@ var Ln = In, Rn = i`.table-row-actions__button::part(label),.table-row-actions__
|
|
|
1416
1416
|
render() {
|
|
1417
1417
|
if (!this.action) return o;
|
|
1418
1418
|
let e = this.action?.icon ?? "more_horiz";
|
|
1419
|
-
return r`<cx-dropdown hoist><cx-tooltip slot="trigger" hoist content=${this.action?.tooltip} ?disabled=${!this.action?.tooltip?.trim()}><cx-button class="table-row-actions__dropdown__trigger" aria-label=${this.action?.tooltip ?? this.action?.name ?? this.localize.term("more")}><cx-icon name=${e} style=${
|
|
1419
|
+
return r`<cx-dropdown hoist><cx-tooltip slot="trigger" hoist content=${this.action?.tooltip} ?disabled=${!this.action?.tooltip?.trim()}><cx-button class="table-row-actions__dropdown__trigger" aria-label=${this.action?.tooltip ?? this.action?.name ?? this.localize.term("more")}><cx-icon name=${e} style=${k(this.action.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip><cx-menu>${pe(this.sections, (e) => e, (e) => this.renderMenuSection(e, this.groupedDropdownItems[e], this.action?.options?.dropdownSections?.[e]))}</cx-menu></cx-dropdown>`;
|
|
1420
1420
|
}
|
|
1421
1421
|
};
|
|
1422
1422
|
l([s({ type: Object }), u("design:type", Object)], zn.prototype, "action", void 0), l([s({ type: Object }), u("design:type", Object)], zn.prototype, "row", void 0), l([s({ type: Object }), u("design:type", Object)], zn.prototype, "cell", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], zn.prototype, "groupedDropdownItems", void 0), l([c(), u("design:type", Array)], zn.prototype, "sections", void 0), l([
|
|
1423
|
-
|
|
1423
|
+
S("action"),
|
|
1424
1424
|
u("design:type", Function),
|
|
1425
1425
|
u("design:paramtypes", []),
|
|
1426
1426
|
u("design:returntype", void 0)
|
|
@@ -1431,8 +1431,8 @@ var Bn = zn, Vn = class extends d {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
static #e = this.styles = [h, Rn];
|
|
1433
1433
|
static #t = this.dependencies = {
|
|
1434
|
-
"cx-button":
|
|
1435
|
-
"cx-icon":
|
|
1434
|
+
"cx-button": ne,
|
|
1435
|
+
"cx-icon": D,
|
|
1436
1436
|
"cx-space": ve,
|
|
1437
1437
|
"cx-table-row-actions-dropdown": Bn,
|
|
1438
1438
|
"cx-tooltip": N
|
|
@@ -1446,7 +1446,7 @@ var Bn = zn, Vn = class extends d {
|
|
|
1446
1446
|
} });
|
|
1447
1447
|
}
|
|
1448
1448
|
renderButton(e) {
|
|
1449
|
-
return r`<cx-tooltip hoist content=${e.tooltip} ?disabled=${!e.tooltip?.trim()}><cx-button data-action=${e.name} class="table-row-actions__button" label=${e.tooltip ?? e.name} @click=${this.handleActionClick} ?loading=${!!e.options?.buttonProps?.loading} ?outline=${!!e.options?.buttonProps?.outline} variant=${
|
|
1449
|
+
return r`<cx-tooltip hoist content=${e.tooltip} ?disabled=${!e.tooltip?.trim()}><cx-button data-action=${e.name} class="table-row-actions__button" label=${e.tooltip ?? e.name} @click=${this.handleActionClick} ?loading=${!!e.options?.buttonProps?.loading} ?outline=${!!e.options?.buttonProps?.outline} variant=${T(e.options?.buttonProps?.variant)}><cx-icon name=${e.icon} style=${k(e.options?.iconStyle ?? {})}></cx-icon></cx-button></cx-tooltip>`;
|
|
1450
1450
|
}
|
|
1451
1451
|
renderDropdown(e) {
|
|
1452
1452
|
return r`<cx-table-row-actions-dropdown .action=${e} .row=${this.row} .cell=${this.cell}></cx-table-row-actions-dropdown>`;
|
|
@@ -1468,9 +1468,9 @@ var Hn = Vn, Un = class extends d {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
static #e = this.styles = [h];
|
|
1470
1470
|
static #t = this.dependencies = {
|
|
1471
|
-
"cx-button":
|
|
1471
|
+
"cx-button": ne,
|
|
1472
1472
|
"cx-dropdown": me,
|
|
1473
|
-
"cx-icon":
|
|
1473
|
+
"cx-icon": D,
|
|
1474
1474
|
"cx-menu": ge,
|
|
1475
1475
|
"cx-menu-item": _e
|
|
1476
1476
|
};
|
|
@@ -1520,19 +1520,19 @@ var Hn = Vn, Un = class extends d {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
renderTriggerIcon() {
|
|
1522
1522
|
let { icon: e } = this.data;
|
|
1523
|
-
return e ? r`<cx-icon class="table-dropdown-filter__icon" slot="prefix" name=${
|
|
1523
|
+
return e ? r`<cx-icon class="table-dropdown-filter__icon" slot="prefix" name=${T(e.name)} src=${T(e.src)}></cx-icon>` : o;
|
|
1524
1524
|
}
|
|
1525
1525
|
render() {
|
|
1526
1526
|
let e = this.isIconOnly ? this.triggerText : void 0;
|
|
1527
|
-
return r`<div class="table-dropdown-filter"><cx-dropdown hoist><cx-button class=${
|
|
1527
|
+
return r`<div class="table-dropdown-filter"><cx-dropdown hoist><cx-button class=${C({
|
|
1528
1528
|
"table-dropdown-filter__trigger": !0,
|
|
1529
1529
|
"table-dropdown-filter__trigger--icon-alone": this.isIconAlone,
|
|
1530
1530
|
"table-dropdown-filter__trigger--icon-only": this.isIconOnly
|
|
1531
|
-
})} slot="trigger" label=${
|
|
1531
|
+
})} slot="trigger" label=${T(e)} title=${T(e)} ?caret=${this.showCaret} outline>${this.renderTriggerIcon()}${E(!this.isIconOnly, () => this.triggerText)}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${this.renderMenuItems()}</cx-menu></cx-dropdown></div>`;
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
1534
1534
|
l([s({ type: Object }), u("design:type", Object)], Un.prototype, "data", void 0), l([c(), u("design:type", String)], Un.prototype, "activeOptionId", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], Un.prototype, "optionsMap", void 0), l([
|
|
1535
|
-
|
|
1535
|
+
S("data"),
|
|
1536
1536
|
u("design:type", Function),
|
|
1537
1537
|
u("design:paramtypes", []),
|
|
1538
1538
|
u("design:returntype", void 0)
|
|
@@ -1543,7 +1543,7 @@ var Wn = Un, Gn = class extends d {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
static #e = this.styles = [h];
|
|
1545
1545
|
static #t = this.dependencies = {
|
|
1546
|
-
"cx-button":
|
|
1546
|
+
"cx-button": ne,
|
|
1547
1547
|
"cx-dropdown": me,
|
|
1548
1548
|
"cx-menu": ge,
|
|
1549
1549
|
"cx-menu-item": _e
|
|
@@ -1568,27 +1568,27 @@ var Wn = Un, Gn = class extends d {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
renderOption(e, t, n) {
|
|
1570
1570
|
let i = n === e;
|
|
1571
|
-
return r`<cx-menu-item class=${
|
|
1571
|
+
return r`<cx-menu-item class=${C({
|
|
1572
1572
|
"group-by-option": !0,
|
|
1573
1573
|
"group-by-option--selected": i
|
|
1574
1574
|
})} data-option-id=${e} type="checkbox" ?checked=${i}>${t}</cx-menu-item>`;
|
|
1575
1575
|
}
|
|
1576
1576
|
renderOffOption(e) {
|
|
1577
1577
|
let t = e === null;
|
|
1578
|
-
return r`<cx-menu-item class=${
|
|
1578
|
+
return r`<cx-menu-item class=${C({
|
|
1579
1579
|
"group-by-option": !0,
|
|
1580
1580
|
"group-by-option--selected": t
|
|
1581
1581
|
})} data-group-by-action="off" type="checkbox" ?checked=${t}>${this.localize.term("off")}</cx-menu-item>`;
|
|
1582
1582
|
}
|
|
1583
1583
|
render() {
|
|
1584
1584
|
let e = this.groupByOptionIdSet.has(this.groupByValue) ? this.groupByValue : null;
|
|
1585
|
-
return r`<cx-dropdown hoist class="header-actions__group-by"><cx-button slot="trigger" caret>${this.localize.term("groupBy")}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${
|
|
1586
|
-
${
|
|
1585
|
+
return r`<cx-dropdown hoist class="header-actions__group-by"><cx-button slot="trigger" caret>${this.localize.term("groupBy")}</cx-button><cx-menu @cx-select=${this.handleMenuSelect}>${E(!this.groupByOptions.length, () => r`<cx-menu-item disabled=disabled>${this.localize.term("noDataAvailable")}</cx-menu-item>`)}
|
|
1586
|
+
${E(this.groupByOptions.length, () => this.renderOffOption(e))}
|
|
1587
1587
|
${pe(this.groupByOptions, (e) => e.id, (t) => this.renderOption(t.id, t.label, e))}</cx-menu></cx-dropdown>`;
|
|
1588
1588
|
}
|
|
1589
1589
|
};
|
|
1590
1590
|
l([
|
|
1591
|
-
|
|
1591
|
+
S("groupByOptions"),
|
|
1592
1592
|
u("design:type", Function),
|
|
1593
1593
|
u("design:paramtypes", []),
|
|
1594
1594
|
u("design:returntype", void 0)
|
|
@@ -1605,9 +1605,9 @@ var Kn = Gn, qn = class extends d {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
static #e = this.styles = [h];
|
|
1607
1607
|
static #t = this.dependencies = {
|
|
1608
|
-
"cx-button":
|
|
1608
|
+
"cx-button": ne,
|
|
1609
1609
|
"cx-dropdown": me,
|
|
1610
|
-
"cx-icon":
|
|
1610
|
+
"cx-icon": D,
|
|
1611
1611
|
"cx-menu": ge,
|
|
1612
1612
|
"cx-menu-item": _e
|
|
1613
1613
|
};
|
|
@@ -1648,9 +1648,9 @@ var Kn = Gn, qn = class extends d {
|
|
|
1648
1648
|
n && this.emit("cx-table-save-search-select", { detail: { id: n } });
|
|
1649
1649
|
}
|
|
1650
1650
|
render() {
|
|
1651
|
-
return r`<cx-dropdown hoist class="header-actions__saved-search"><cx-button slot="trigger" caret>${this.localize.term("savedSearches")}</cx-button><cx-menu @cx-select=${this.handleSavedSearchItemSelect}>${
|
|
1651
|
+
return r`<cx-dropdown hoist class="header-actions__saved-search"><cx-button slot="trigger" caret>${this.localize.term("savedSearches")}</cx-button><cx-menu @cx-select=${this.handleSavedSearchItemSelect}>${E(this.savedSearchItems.length === 0 && !this.loading, () => r`<cx-menu-item disabled=disabled>${this.localize.term("noSavedSearch")}</cx-menu-item>`)}
|
|
1652
1652
|
${pe(this.savedSearchItems, (e) => e.recordID, (e) => r`<cx-menu-item data-id=${e.recordID}><cx-icon name="search" slot="prefix"></cx-icon>${e.name}</cx-menu-item>`)}
|
|
1653
|
-
${
|
|
1653
|
+
${E(this.hasMore, () => r`<cx-button class="header-actions__saved-search__load-more" variant="text" @click=${this.handleLoadMore} ?loading=${this.loading}>${this.localize.term("more")}</cx-button>`)}</cx-menu></cx-dropdown>`;
|
|
1654
1654
|
}
|
|
1655
1655
|
};
|
|
1656
1656
|
l([s({
|
|
@@ -1669,7 +1669,7 @@ l([s({
|
|
|
1669
1669
|
attribute: "saved-search-page-number-param",
|
|
1670
1670
|
type: String
|
|
1671
1671
|
}), u("design:type", String)], qn.prototype, "savedSearchPageNumberParam", void 0), l([c(), u("design:type", Number)], qn.prototype, "totalCount", void 0), l([c(), u("design:type", Boolean)], qn.prototype, "loading", void 0), l([c(), u("design:type", Number)], qn.prototype, "currentPage", void 0), l([
|
|
1672
|
-
|
|
1672
|
+
S("savedSearchURL"),
|
|
1673
1673
|
u("design:type", Function),
|
|
1674
1674
|
u("design:paramtypes", []),
|
|
1675
1675
|
u("design:returntype", void 0)
|
|
@@ -1680,11 +1680,11 @@ var Jn = qn, Yn = i`:host{container-type:inline-size}.header{align-items:center;
|
|
|
1680
1680
|
}
|
|
1681
1681
|
static #e = this.styles = [h, Yn];
|
|
1682
1682
|
static #t = this.dependencies = {
|
|
1683
|
-
"cx-button":
|
|
1683
|
+
"cx-button": ne,
|
|
1684
1684
|
"cx-checkbox": fe,
|
|
1685
1685
|
"cx-dropdown": me,
|
|
1686
|
-
"cx-icon":
|
|
1687
|
-
"cx-icon-button":
|
|
1686
|
+
"cx-icon": D,
|
|
1687
|
+
"cx-icon-button": w,
|
|
1688
1688
|
"cx-input": he,
|
|
1689
1689
|
"cx-menu": ge,
|
|
1690
1690
|
"cx-menu-item": _e,
|
|
@@ -1732,10 +1732,10 @@ var Jn = qn, Yn = i`:host{container-type:inline-size}.header{align-items:center;
|
|
|
1732
1732
|
this.emit("cx-table-export", { detail: { type: "report" } });
|
|
1733
1733
|
}
|
|
1734
1734
|
renderSearch() {
|
|
1735
|
-
return r`<form class="search" id="search-form" @submit=${this.handleSearchSubmit}><cx-input class="search__input" placeholder=${this.localize.term("typeYourSearchHere")} value=${this.searchValue} clearable @cx-clear=${this.handleClearSearch}><cx-icon-button class=${
|
|
1735
|
+
return r`<form class="search" id="search-form" @submit=${this.handleSearchSubmit}><cx-input class="search__input" placeholder=${this.localize.term("typeYourSearchHere")} value=${this.searchValue} clearable @cx-clear=${this.handleClearSearch}><cx-icon-button class=${C({
|
|
1736
1736
|
search__icon: !0,
|
|
1737
1737
|
"search__icon--search": !0
|
|
1738
|
-
})} label=${this.localize.term("search")} name="search" slot="prefix" size="small" @click=${this.handleSearchSubmit}></cx-icon-button>${
|
|
1738
|
+
})} label=${this.localize.term("search")} name="search" slot="prefix" size="small" @click=${this.handleSearchSubmit}></cx-icon-button>${E(!this.noAdvancedSearch, () => r`<cx-tooltip slot="suffix" hoist content=${this.localize.term("advancedSearch")}><cx-icon-button class=${C({
|
|
1739
1739
|
search__icon: !0,
|
|
1740
1740
|
"search__icon--advanced-search": !0
|
|
1741
1741
|
})} name="tune" @click=${this.handleAdvancedSearchClick} size="small"></cx-icon-button></cx-tooltip>`)}</cx-input></form>`;
|
|
@@ -1750,22 +1750,22 @@ var Jn = qn, Yn = i`:host{container-type:inline-size}.header{align-items:center;
|
|
|
1750
1750
|
return r`<cx-table-group-by-dropdown .groupByOptions=${this.groupByOptions} group-by-value=${this.groupByValue}></cx-table-group-by-dropdown>`;
|
|
1751
1751
|
}
|
|
1752
1752
|
renderExportDropdown() {
|
|
1753
|
-
return r`<cx-dropdown hoist placement="bottom-end" distance="4" class="header-actions__dropdown"><cx-icon-button name="more_horiz" slot="trigger" outline></cx-icon-button><cx-menu>${
|
|
1754
|
-
${
|
|
1755
|
-
${
|
|
1756
|
-
${
|
|
1757
|
-
${
|
|
1753
|
+
return r`<cx-dropdown hoist placement="bottom-end" distance="4" class="header-actions__dropdown"><cx-icon-button name="more_horiz" slot="trigger" outline></cx-icon-button><cx-menu>${E(this.canExportCsv, () => r`<cx-menu-item @click=${this.handleExportCsv}>${this.localize.term("exportAsCsv")}</cx-menu-item>`)}
|
|
1754
|
+
${E(this.canExportXml, () => r`<cx-menu-item @click=${this.handleExportXml}>${this.localize.term("exportAsXml")}</cx-menu-item>`)}
|
|
1755
|
+
${E(this.canExportPdf, () => r`<cx-menu-item @click=${this.handleExportPdf}>${this.localize.term("exportAsPdf")}</cx-menu-item>`)}
|
|
1756
|
+
${E(this.canExportCustom, () => r`<cx-menu-item @click=${this.handleExportCustom}>${this.localize.term("customExport")}</cx-menu-item>`)}
|
|
1757
|
+
${E(this.canSaveReport, () => r`<cx-menu-item data-testid="save-report-menu-item" @click=${this.handleSaveReport}>${this.localize.term("saveReport")}</cx-menu-item>`)}</cx-menu></cx-dropdown>`;
|
|
1758
1758
|
}
|
|
1759
1759
|
renderDropdownFilters() {
|
|
1760
1760
|
return r`<cx-space align-items="center" spacing="x-small">${pe(this.dropdownFilters, (e) => e.id, (e) => r`<cx-table-dropdown-filter .data=${e}></cx-table-dropdown-filter>`)}</cx-space>`;
|
|
1761
1761
|
}
|
|
1762
1762
|
renderHeaderRow() {
|
|
1763
1763
|
let e = !!this.label || this.hasSlotController.test("label"), t = this.hasSlotController.test("pagination");
|
|
1764
|
-
return r`<div class=${
|
|
1764
|
+
return r`<div class=${C({
|
|
1765
1765
|
header: !0,
|
|
1766
1766
|
"header--has-label": e,
|
|
1767
1767
|
"header--has-pagination": t
|
|
1768
|
-
})}><div class="header__label"><slot name="label">${
|
|
1768
|
+
})}><div class="header__label"><slot name="label">${E(this.label, () => r`<cx-typography variant="h3">${this.label}</cx-typography>`)}</slot></div><div class="header__pagination"><slot name="pagination"></slot></div></div>`;
|
|
1769
1769
|
}
|
|
1770
1770
|
get hasHeaderActions() {
|
|
1771
1771
|
return this.selectAllState !== null || this.canSearch || this.dropdownFilters.length > 0 || this.showSavedSearch || this.hasAddAction || this.groupByOptions.length > 0 || this.canExportCsv || this.canExportXml || this.canExportPdf || this.canExportCustom || this.canSaveReport || this.hasDynamicFilter;
|
|
@@ -1775,16 +1775,16 @@ var Jn = qn, Yn = i`:host{container-type:inline-size}.header{align-items:center;
|
|
|
1775
1775
|
}
|
|
1776
1776
|
renderHeaderActions() {
|
|
1777
1777
|
let e = this.canExportCsv || this.canExportXml || this.canExportPdf || this.canExportCustom || this.canSaveReport;
|
|
1778
|
-
return r`<cx-space class="header-actions" justify-content="space-between" align-items="center"><cx-space class="header-actions__left" align-items="center" spacing="x-small">${
|
|
1779
|
-
${
|
|
1780
|
-
${
|
|
1781
|
-
${
|
|
1782
|
-
${
|
|
1783
|
-
${
|
|
1778
|
+
return r`<cx-space class="header-actions" justify-content="space-between" align-items="center"><cx-space class="header-actions__left" align-items="center" spacing="x-small">${E(this.selectAllState !== null, () => this.renderSelectAll())}
|
|
1779
|
+
${E(this.selectAllState !== null && this.selectAllState.count > 0, () => r`<slot name="select-all-actions"></slot>`, () => r`
|
|
1780
|
+
${E(this.canSearch, () => this.renderSearch())}
|
|
1781
|
+
${E(this.dropdownFilters.length, () => this.renderDropdownFilters())}
|
|
1782
|
+
${E(this.showSavedSearch, () => this.renderSavedSearchDropdown())}<slot name="dialog-dynamic-filter"></slot>`)}</cx-space><cx-space class="header-actions__right" align-items="center" spacing="x-small"><slot name="add-action">${E(this.canAdd, () => this.renderAddButton())}</slot>${E(this.groupByOptions.length, () => this.renderGroupByDropdown())}
|
|
1783
|
+
${E(e, () => this.renderExportDropdown())}</cx-space></cx-space>`;
|
|
1784
1784
|
}
|
|
1785
1785
|
render() {
|
|
1786
1786
|
return r`<cx-space class="container" direction="vertical">${this.renderHeaderRow()}
|
|
1787
|
-
${
|
|
1787
|
+
${E(this.hasHeaderActions, () => this.renderHeaderActions())}</cx-space>`;
|
|
1788
1788
|
}
|
|
1789
1789
|
};
|
|
1790
1790
|
l([f("#search-form"), u("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], V.prototype, "form", void 0), l([f(".search__input"), u("design:type", he === void 0 ? Object : he)], V.prototype, "searchInput", void 0), l([s({
|
|
@@ -2256,7 +2256,7 @@ var Xn = V, H = class {
|
|
|
2256
2256
|
n && n.classList.remove("tabulator-hover-menu--active");
|
|
2257
2257
|
}
|
|
2258
2258
|
createCxTableRowActions() {
|
|
2259
|
-
let e =
|
|
2259
|
+
let e = j(or);
|
|
2260
2260
|
return e.classList.add("tabulator-hover-menu"), e;
|
|
2261
2261
|
}
|
|
2262
2262
|
layoutRow(t) {
|
|
@@ -2905,7 +2905,7 @@ var Pr = class e extends W {
|
|
|
2905
2905
|
this.generateElement(), this.setWidth(), this._configureCell();
|
|
2906
2906
|
}
|
|
2907
2907
|
generateElement() {
|
|
2908
|
-
if (this.element =
|
|
2908
|
+
if (this.element = j(Ir), this.element.setAttribute("role", this.table.options.cellRole ?? "gridcell"), this.column.modules.format?.cellClass) {
|
|
2909
2909
|
let e = this.column.modules.format?.cellClass;
|
|
2910
2910
|
e && e.split(/\s+/).filter(Boolean).forEach((e) => this.element.classList.add(e));
|
|
2911
2911
|
}
|
|
@@ -2945,7 +2945,7 @@ var Pr = class e extends W {
|
|
|
2945
2945
|
_generateContents() {
|
|
2946
2946
|
if (!this.element) return;
|
|
2947
2947
|
this.contentElement?.parentNode !== this.element && (this.contentElement = document.createElement("div"), this.contentElement.className = "tabulator-cell-content", this.element.appendChild(this.contentElement));
|
|
2948
|
-
let e = this.chain("cell-format", [this], null, () =>
|
|
2948
|
+
let e = this.chain("cell-format", [this], null, () => A(String(this.value ?? "")));
|
|
2949
2949
|
switch (typeof e) {
|
|
2950
2950
|
case "object":
|
|
2951
2951
|
if (e instanceof Node) {
|
|
@@ -2959,7 +2959,7 @@ var Pr = class e extends W {
|
|
|
2959
2959
|
default: {
|
|
2960
2960
|
for (; this.contentElement.firstChild;) this.contentElement.firstChild.remove();
|
|
2961
2961
|
let t = document.createElement("cx-line-clamp");
|
|
2962
|
-
t.lines = 1, Object.assign(t.style, this.getTextFormat()), t.innerHTML =
|
|
2962
|
+
t.lines = 1, Object.assign(t.style, this.getTextFormat()), t.innerHTML = A(String(e)), this.contentElement.appendChild(t);
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
@@ -3177,7 +3177,7 @@ var Pr = class e extends W {
|
|
|
3177
3177
|
case "undefined":
|
|
3178
3178
|
e.innerHTML = "";
|
|
3179
3179
|
break;
|
|
3180
|
-
default: e.innerHTML = `<cx-line-clamp lines="1">${
|
|
3180
|
+
default: e.innerHTML = `<cx-line-clamp lines="1">${A(String(n))}</cx-line-clamp>`;
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
3183
|
_buildGroupHeader() {
|
|
@@ -3995,7 +3995,7 @@ var Pr = class e extends W {
|
|
|
3995
3995
|
initialize() {
|
|
3996
3996
|
if (this.table.options.dataTree) {
|
|
3997
3997
|
let e = null, t = this.table.options;
|
|
3998
|
-
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") && ni && console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl =
|
|
3998
|
+
switch (this.field = t.dataTreeChildField || "_children", this.indent = t.dataTreeChildIndent || 9, this.loadingField = t.dataTreeLoadingField || "loading", this.hasMoreField = t.dataTreeHasMoreField || "hasMore", this.options("movableRows") && ni && console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"), t.dataTreeBranchElement ? t.dataTreeBranchElement === !0 ? this.branchEl = j(Qr) : typeof t.dataTreeBranchElement == "string" ? (e = document.createElement("div"), e.innerHTML = A(t.dataTreeBranchElement), this.branchEl = e.firstChild) : this.branchEl = t.dataTreeBranchElement : this.branchEl = j($r), t.dataTreeCollapseElement ? typeof t.dataTreeCollapseElement == "string" ? (e = document.createElement("div"), e.innerHTML = A(t.dataTreeCollapseElement), this.collapseEl = e.firstChild) : this.collapseEl = t.dataTreeCollapseElement : this.collapseEl = j(Yr), t.dataTreeExpandElement ? typeof t.dataTreeExpandElement == "string" ? (e = document.createElement("div"), e.innerHTML = A(t.dataTreeExpandElement), this.expandEl = e.firstChild) : this.expandEl = t.dataTreeExpandElement : this.expandEl = j(Xr), typeof t.dataTreeStartExpanded) {
|
|
3999
3999
|
case "boolean":
|
|
4000
4000
|
this.startOpen = function() {
|
|
4001
4001
|
return t.dataTreeStartExpanded;
|
|
@@ -4081,7 +4081,7 @@ var Pr = class e extends W {
|
|
|
4081
4081
|
i.addEventListener("mousedown", (e) => {
|
|
4082
4082
|
e.stopPropagation();
|
|
4083
4083
|
});
|
|
4084
|
-
} else i =
|
|
4084
|
+
} else i = j(Zr);
|
|
4085
4085
|
i.style.setProperty("margin-inline-end", `${this.indent}px`), i.style.setProperty("margin-inline-start", "0px"), e.modules.dataTree.controlEl = i, r && r.parentNode === t ? r.parentNode.replaceChild(i, r) : t.insertBefore(i, t.firstChild);
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
@@ -4127,7 +4127,7 @@ var Pr = class e extends W {
|
|
|
4127
4127
|
generateLoadMoreButton({ childLevel: e, parentRow: t }) {
|
|
4128
4128
|
let n = new Jr({ id: "load-more" }, this.table.rowManager);
|
|
4129
4129
|
n.create(), n.modules.dataTree.index = e, n.modules.dataTree.parent = t, n.modules.dataTree.children = !1, n.modules.dataTree.open = !0;
|
|
4130
|
-
let r =
|
|
4130
|
+
let r = j(ei);
|
|
4131
4131
|
return n.getElement()?.classList.add("tabulator-tree-level-" + e), n.element.appendChild(r), r.style.setProperty("--tabulator-tree-level", String(e + 1)), r.style.setProperty("--tabulator-tree-child-indent", `${this.indent}px`), r.style.setProperty("margin-inline-start", `calc(${e + 1} * var(--tabulator-tree-step))`), r.addEventListener("click", () => {
|
|
4132
4132
|
this.dispatchExternal("dataTreeLoadMore", t.getComponent(), t.modules.dataTree.index);
|
|
4133
4133
|
}), n;
|
|
@@ -4135,7 +4135,7 @@ var Pr = class e extends W {
|
|
|
4135
4135
|
generateLoadingRow({ childLevel: e, parentRow: t }) {
|
|
4136
4136
|
let n = new Jr({ id: "loading" }, this.table.rowManager);
|
|
4137
4137
|
n.create(), n.modules.dataTree.index = e, n.modules.dataTree.parent = t, n.modules.dataTree.children = !1, n.modules.dataTree.open = !0;
|
|
4138
|
-
let r =
|
|
4138
|
+
let r = j(ti);
|
|
4139
4139
|
return n.element.appendChild(r), n.getElement()?.classList.add("tabulator-tree-level-" + e), r.style.setProperty("--tabulator-tree-level", String(e + 1)), r.style.setProperty("--tabulator-tree-child-indent", `${this.indent}px`), r.style.setProperty("margin-inline-start", `calc(${e + 1} * var(--tabulator-tree-step))`), n;
|
|
4140
4140
|
}
|
|
4141
4141
|
expandRow(e, t) {
|
|
@@ -4718,7 +4718,7 @@ function Ai(e, t, n) {
|
|
|
4718
4718
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/avatar.ts
|
|
4719
4719
|
function ji(e, t) {
|
|
4720
4720
|
let n = t ?? {}, i = e.getValue(), a = i != null && i !== "", o = !!n.initials;
|
|
4721
|
-
return !a && !o ? "" :
|
|
4721
|
+
return !a && !o ? "" : j(r`<cx-avatar image=${T(a ? String(i) : void 0)} initials=${T(n.initials)} label=${T(n.label)} shape=${T(n.shape)} style="--size: ${n.size ?? "2rem"}"></cx-avatar>`);
|
|
4722
4722
|
}
|
|
4723
4723
|
//#endregion
|
|
4724
4724
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/buttonCross.ts
|
|
@@ -4743,7 +4743,7 @@ function Fi(e) {
|
|
|
4743
4743
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/composite.ts
|
|
4744
4744
|
var Ii = r`<span style="display: inline-flex; align-items: center;"></span>`;
|
|
4745
4745
|
function Li({ spacing: e, style: t }) {
|
|
4746
|
-
let n =
|
|
4746
|
+
let n = j(Ii);
|
|
4747
4747
|
return e && (n.style.margin = e), t && Object.assign(n.style, t), n;
|
|
4748
4748
|
}
|
|
4749
4749
|
function Ri(e, t, n) {
|
|
@@ -4789,7 +4789,7 @@ function Hi(e, t, n) {
|
|
|
4789
4789
|
return t.valueMap && (r = t.valueMap[String(r)] ?? r), !Bi(r);
|
|
4790
4790
|
});
|
|
4791
4791
|
if (Bi(s) && !c && t.placeholder !== void 0) return Ri.call(this, e, t, n);
|
|
4792
|
-
let l = e.getRow(), { align: u, block: d, containerStyle: f, direction: p, gap: m, justifyContent: h, wrap: g } = t, _ = r`<cx-space class="tabulator-composite" style=${
|
|
4792
|
+
let l = e.getRow(), { align: u, block: d, containerStyle: f, direction: p, gap: m, justifyContent: h, wrap: g } = t, _ = r`<cx-space class="tabulator-composite" style=${k(f ?? {})} align-items=${u ?? "center"} ?block=${d} direction=${T(p)} justify-content=${T(h)} spacing=${m ?? "3x-small"} wrap=${g ?? "nowrap"}></cx-space>`, v = j(_), y = [];
|
|
4793
4793
|
if (t.elements.forEach((t) => {
|
|
4794
4794
|
let r = Vi({
|
|
4795
4795
|
cell: e,
|
|
@@ -4846,7 +4846,7 @@ function Ui(e) {
|
|
|
4846
4846
|
}
|
|
4847
4847
|
function Wi(e, t) {
|
|
4848
4848
|
let n = t ?? {}, i = Ui(e.getValue());
|
|
4849
|
-
return i === void 0 ? "" :
|
|
4849
|
+
return i === void 0 ? "" : j(r`<cx-format-date date=${i.toISOString()} weekday=${T(n.weekday)} era=${T(n.era)} year=${T(n.year)} month=${T(n.month)} day=${T(n.day)} hour=${T(n.hour)} minute=${T(n.minute)} second=${T(n.second)} time-zone-name=${T(n.timeZoneName)} time-zone=${T(n.timeZone)} hour-format=${T(n.hourFormat)} ?no-datetime-separator=${n.noDatetimeSeparator ?? !1}></cx-format-date>`);
|
|
4850
4850
|
}
|
|
4851
4851
|
//#endregion
|
|
4852
4852
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/datetime.ts
|
|
@@ -4876,8 +4876,8 @@ function Yi(e, t) {
|
|
|
4876
4876
|
return e == null ? "" : Array.isArray(e) ? e.join(t) : String(e);
|
|
4877
4877
|
}
|
|
4878
4878
|
function Xi(e, t) {
|
|
4879
|
-
let n = t ?? {}, i = n.arraySeparator ?? ", ", a = (t) => typeof t == "function" ? t(e) : t, o = Yi(a(n.newValue) ?? e.getValue(), i), s = Yi(a(n.oldValue) ?? "", i), c =
|
|
4880
|
-
return
|
|
4879
|
+
let n = t ?? {}, i = n.arraySeparator ?? ", ", a = (t) => typeof t == "function" ? t(e) : t, o = Yi(a(n.newValue) ?? e.getValue(), i), s = Yi(a(n.oldValue) ?? "", i), c = ie(s), l = ie(o), u = c && l ? `${c} ${l}` : l || c;
|
|
4880
|
+
return j(r`<cx-line-clamp lines="1" clamped-tooltip=${u}><cx-diff old-value=${s} new-value=${o}></cx-diff></cx-line-clamp>`);
|
|
4881
4881
|
}
|
|
4882
4882
|
//#endregion
|
|
4883
4883
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/handle.ts
|
|
@@ -4896,7 +4896,7 @@ var $i = r`<cx-icon></cx-icon>`;
|
|
|
4896
4896
|
function ea(e, t) {
|
|
4897
4897
|
let n = e.getValue(), r = t ?? {}, i;
|
|
4898
4898
|
if (i = r.getIcon ? r.getIcon(n) : typeof r.icon == "function" ? r.icon(n) : r.iconMap ? r.iconMap[n] : r.icon ? r.icon : n ? String(n) : void 0, !i) return;
|
|
4899
|
-
let a =
|
|
4899
|
+
let a = j($i);
|
|
4900
4900
|
if (a.name = i, r.size !== void 0) switch (typeof r.size) {
|
|
4901
4901
|
case "number":
|
|
4902
4902
|
a.style.setProperty("--font-size", `${r.size}px`);
|
|
@@ -4911,7 +4911,7 @@ var ta = r`<div style="display: flex; align-items: center; justify-content: cent
|
|
|
4911
4911
|
function na(e, t) {
|
|
4912
4912
|
let n = e.getValue();
|
|
4913
4913
|
if (!n) return null;
|
|
4914
|
-
let r =
|
|
4914
|
+
let r = j(ta), i = r.querySelector("img"), a = t ?? {};
|
|
4915
4915
|
switch (a.urlPrefix && (n = a.urlPrefix + e.getValue()), a.urlSuffix && (n += a.urlSuffix), i.setAttribute("src", String(n)), i.setAttribute("alt", typeof a.alt == "string" ? a.alt : ""), typeof a.height) {
|
|
4916
4916
|
case "number":
|
|
4917
4917
|
r.style.height = a.height + "px";
|
|
@@ -4974,8 +4974,8 @@ function oa(e, t, n) {
|
|
|
4974
4974
|
"mailto:",
|
|
4975
4975
|
"tel:",
|
|
4976
4976
|
""
|
|
4977
|
-
].includes(u.protocol) || n.startsWith("#") ? c.setAttribute("href", n) : (aa && console.warn("Link formatter blocked potentially unsafe URL:", n), c.setAttribute("href", "#")), t.target && c.setAttribute("target", t.target), t.rel && c.setAttribute("rel", t.rel), t.download && (o = typeof o == "function" ? o(e) : o === !0 ? "" : o, c.setAttribute("download", String(o))), c.innerHTML =
|
|
4978
|
-
let d =
|
|
4977
|
+
].includes(u.protocol) || n.startsWith("#") ? c.setAttribute("href", n) : (aa && console.warn("Link formatter blocked potentially unsafe URL:", n), c.setAttribute("href", "#")), t.target && c.setAttribute("target", t.target), t.rel && c.setAttribute("rel", t.rel), t.download && (o = typeof o == "function" ? o(e) : o === !0 ? "" : o, c.setAttribute("download", String(o))), c.innerHTML = ae(A(s));
|
|
4978
|
+
let d = j(r`<cx-line-clamp lines="1"></cx-line-clamp>`);
|
|
4979
4979
|
return d.appendChild(c), d;
|
|
4980
4980
|
}
|
|
4981
4981
|
return "\xA0";
|
|
@@ -4991,7 +4991,7 @@ function ca(e, t, n) {
|
|
|
4991
4991
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/money.ts
|
|
4992
4992
|
function la(e, t, n) {
|
|
4993
4993
|
let r = parseFloat(e.getValue()), i = "", a, o, s, c, l = t.decimal || ".", u = t.thousand || ",", d = t.negativeSign || "-", f = t.symbol || "", p = !!t.symbolAfter, m = t.precision === void 0 ? 2 : t.precision;
|
|
4994
|
-
if (isNaN(r)) return
|
|
4994
|
+
if (isNaN(r)) return ae(A(re(e.getValue())));
|
|
4995
4995
|
r < 0 && (r = Math.abs(r), i = d), a = m === !1 ? String(r) : r.toFixed(m), a = String(a).split("."), o = a[0];
|
|
4996
4996
|
let h = a.length > 1 ? l + a[1] : "";
|
|
4997
4997
|
if (t.thousand !== !1) for (s = /(\d+)(\d{3})/; s.test(o);) o = o.replace(s, "$1" + u + "$2");
|
|
@@ -5005,7 +5005,7 @@ function da(e, t) {
|
|
|
5005
5005
|
if (n == null || n === "") return;
|
|
5006
5006
|
let r = Number(n);
|
|
5007
5007
|
if (Number.isNaN(r)) return;
|
|
5008
|
-
let i = t ?? {}, a =
|
|
5008
|
+
let i = t ?? {}, a = j(ua);
|
|
5009
5009
|
a.value = r;
|
|
5010
5010
|
for (let e of Object.keys(i)) {
|
|
5011
5011
|
let t = i[e];
|
|
@@ -5016,15 +5016,15 @@ function da(e, t) {
|
|
|
5016
5016
|
//#endregion
|
|
5017
5017
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/plaintext.ts
|
|
5018
5018
|
function fa(e, t) {
|
|
5019
|
-
let n =
|
|
5019
|
+
let n = ae(A(re(e.getValue()))), i = t ?? {};
|
|
5020
5020
|
i.prefix && (n = i.prefix + n), i.suffix && (n += i.suffix);
|
|
5021
|
-
let a = r`<cx-line-clamp lines="1"><span style=${
|
|
5022
|
-
return
|
|
5021
|
+
let a = r`<cx-line-clamp lines="1"><span style=${k(i.style ?? {})}>${n}</span></cx-line-clamp>`;
|
|
5022
|
+
return j(a);
|
|
5023
5023
|
}
|
|
5024
5024
|
//#endregion
|
|
5025
5025
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/progress.ts
|
|
5026
5026
|
function pa(e, t = {}, n) {
|
|
5027
|
-
let r =
|
|
5027
|
+
let r = A(e.getValue()) || 0, i = e.getElement(), a = t.max ? t.max : 100, o = t.min ? t.min : 0, s = t.legendAlign ? t.legendAlign : "center", c, l, u = !1, d;
|
|
5028
5028
|
c = parseFloat(String(r)) <= a ? parseFloat(String(r)) : a, c = parseFloat(String(c)) >= o ? parseFloat(String(c)) : o;
|
|
5029
5029
|
let f = a - o;
|
|
5030
5030
|
if (f <= 0) c = 0;
|
|
@@ -5080,7 +5080,7 @@ function pa(e, t = {}, n) {
|
|
|
5080
5080
|
let m = document.createElement("div");
|
|
5081
5081
|
m.style.position = "relative", m.style.width = "100%", m.style.height = "100%";
|
|
5082
5082
|
let h;
|
|
5083
|
-
return u && (h = document.createElement("div"), h.style.position = "absolute", h.style.top = "0", h.style.left = "0", h.style.textAlign = s, h.style.width = "100%", h.style.color = d, h.innerHTML =
|
|
5083
|
+
return u && (h = document.createElement("div"), h.style.position = "absolute", h.style.top = "0", h.style.left = "0", h.style.textAlign = s, h.style.width = "100%", h.style.color = d, h.innerHTML = A(String(u))), n(() => {
|
|
5084
5084
|
if (!i) return;
|
|
5085
5085
|
let t;
|
|
5086
5086
|
if (e instanceof Fr) t = e.getContentElement();
|
|
@@ -5159,7 +5159,7 @@ function Sa(e, t) {
|
|
|
5159
5159
|
let t = document.createElement("span");
|
|
5160
5160
|
return t.textContent = String(e.getValue() ?? ""), t;
|
|
5161
5161
|
}
|
|
5162
|
-
let n =
|
|
5162
|
+
let n = j(_a), { offValue: r, onValue: i } = va(t);
|
|
5163
5163
|
return t.size && (n.size = t.size), n.disabled = (typeof t.disabled == "function" ? t.disabled : () => !1)(e), xa(n, e, i, r), n;
|
|
5164
5164
|
}
|
|
5165
5165
|
//#endregion
|
|
@@ -5173,18 +5173,18 @@ function wa(e, t) {
|
|
|
5173
5173
|
removable: !1,
|
|
5174
5174
|
size: "medium",
|
|
5175
5175
|
variant: "neutral"
|
|
5176
|
-
}, i =
|
|
5176
|
+
}, i = j(Ca);
|
|
5177
5177
|
return Object.assign(i, r), i.textContent = t?.getTagContent?.(n) ?? t?.tagContentMap?.[n] ?? String(n), i;
|
|
5178
5178
|
}
|
|
5179
5179
|
//#endregion
|
|
5180
5180
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/textarea.ts
|
|
5181
5181
|
function Ta(e) {
|
|
5182
|
-
return
|
|
5182
|
+
return ae(A(re(e.getValue())));
|
|
5183
5183
|
}
|
|
5184
5184
|
//#endregion
|
|
5185
5185
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/tickCross.ts
|
|
5186
5186
|
function Ea(e, t, n) {
|
|
5187
|
-
let r = e.getValue(), i = e.getElement(), a = t.allowEmpty, o = t.allowTruthy, s = Object.prototype.hasOwnProperty.call(t, "trueValue"), c = (typeof t.tickElement == "string" ?
|
|
5187
|
+
let r = e.getValue(), i = e.getElement(), a = t.allowEmpty, o = t.allowTruthy, s = Object.prototype.hasOwnProperty.call(t, "trueValue"), c = (typeof t.tickElement == "string" ? A(t.tickElement) : t.tickElement) ?? "<svg enable-background=\"new 0 0 24 24\" height=\"14\" width=\"14\" viewBox=\"0 0 24 24\" xml:space=\"preserve\" role=\"img\" aria-label=\"true\" ><path fill=\"#2DC214\" clip-rule=\"evenodd\" d=\"M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z\" fill-rule=\"evenodd\"/></svg>", l = (typeof t.crossElement == "string" ? A(t.crossElement) : t.crossElement) ?? "<svg enable-background=\"new 0 0 24 24\" height=\"14\" width=\"14\" viewBox=\"0 0 24 24\" xml:space=\"preserve\" role=\"img\" aria-label=\"false\" ><path fill=\"#CE1515\" d=\"M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z\"/></svg>";
|
|
5188
5188
|
return s && r === t.trueValue || !s && (o && r || r === !0 || r === "true" || r === "True" || r === 1 || r === "1") ? (i && i.setAttribute("aria-checked", "true"), c || "") : a && (r === "null" || r === "" || r == null) ? (i && i.setAttribute("aria-checked", "mixed"), "") : (i && i.setAttribute("aria-checked", "false"), l || "");
|
|
5189
5189
|
}
|
|
5190
5190
|
//#endregion
|
|
@@ -5208,7 +5208,7 @@ function ka(e) {
|
|
|
5208
5208
|
}
|
|
5209
5209
|
function Aa(e, t) {
|
|
5210
5210
|
let n = Oa(t ?? {}, e), i = Da(e.getValue()), a = ka(n);
|
|
5211
|
-
return
|
|
5211
|
+
return j(r`<cx-format-time .duration=${i} display-style=${T(n.displayStyle)} input-unit=${T(n.inputUnit)} locale=${T(n.locale)} placeholder=${T(n.placeholder)} units-format=${T(n.unitsFormat)} style=${k(a)}></cx-format-time>`);
|
|
5212
5212
|
}
|
|
5213
5213
|
//#endregion
|
|
5214
5214
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/toggle.ts
|
|
@@ -5230,7 +5230,7 @@ var Ma = r`<span class="tabulator-traffic-light-container"><span class="tabulato
|
|
|
5230
5230
|
function Na(e, t, n, r) {
|
|
5231
5231
|
let i = e.getValue();
|
|
5232
5232
|
if (i == null || i === "") return;
|
|
5233
|
-
let a =
|
|
5233
|
+
let a = j(Ma), o = t?.getColor?.(i) ?? t?.colorMap?.[i];
|
|
5234
5234
|
if (o) {
|
|
5235
5235
|
let e = a.querySelector(".tabulator-traffic-light");
|
|
5236
5236
|
e && (e.style.backgroundColor = o);
|
|
@@ -5245,7 +5245,7 @@ function Pa(e, t) {
|
|
|
5245
5245
|
if (n == null || n === "") return;
|
|
5246
5246
|
let i = t ?? {}, a;
|
|
5247
5247
|
i.getVariant && (a = i.getVariant(n)), !a && i.variantMap && (a = i.variantMap[n]), !a && i.variant && (a = i.variant), a ??= le.Body1;
|
|
5248
|
-
let o = r`<cx-line-clamp lines="1"><cx-typography style=${
|
|
5248
|
+
let o = r`<cx-line-clamp lines="1"><cx-typography style=${k(i.style ?? {})}></cx-typography></cx-line-clamp>`, s = j(o), c = s.querySelector("cx-typography");
|
|
5249
5249
|
c.variant = a;
|
|
5250
5250
|
let l = String(n);
|
|
5251
5251
|
return i.prefix && (l = i.prefix + l), i.suffix && (l += i.suffix), c.textContent = l, s;
|
|
@@ -5426,10 +5426,10 @@ var Ia = class e extends W {
|
|
|
5426
5426
|
let { prefixElement: e } = this.params;
|
|
5427
5427
|
if (!e) return null;
|
|
5428
5428
|
let t;
|
|
5429
|
-
return t = typeof e == "string" ?
|
|
5429
|
+
return t = typeof e == "string" ? oe(e) : e, t && (t.slot = "prefix"), t;
|
|
5430
5430
|
}
|
|
5431
5431
|
_createSelectElement() {
|
|
5432
|
-
let { autocomplete: e, clearable: t, fallbackOption: n, freeWidth: i, placeholder: a } = this.params, o = r`<cx-select style="width: 100%; margin: auto;" hoist ?clearable=${t} ?free-width=${i ?? !1} placeholder=${
|
|
5432
|
+
let { autocomplete: e, clearable: t, fallbackOption: n, freeWidth: i, placeholder: a } = this.params, o = r`<cx-select style="width: 100%; margin: auto;" hoist ?clearable=${t} ?free-width=${i ?? !1} placeholder=${T(a)}></cx-select>`, s = j(o);
|
|
5433
5433
|
n?.value != null && (s.fallbackOptionValue = this.sanitizeValue(n.value));
|
|
5434
5434
|
let c = this.createPrefixElement();
|
|
5435
5435
|
return c && s.prepend(c), e || (s.style.cursor = "default", s.style.caretColor = "transparent"), this._bindInputEvents(s), s;
|
|
@@ -5647,7 +5647,7 @@ var Ia = class e extends W {
|
|
|
5647
5647
|
}
|
|
5648
5648
|
}
|
|
5649
5649
|
_appendDivider() {
|
|
5650
|
-
let e =
|
|
5650
|
+
let e = j(za);
|
|
5651
5651
|
this.input.appendChild(e);
|
|
5652
5652
|
}
|
|
5653
5653
|
_appendSectionLabel(e) {
|
|
@@ -5657,12 +5657,12 @@ var Ia = class e extends W {
|
|
|
5657
5657
|
_appendLeafOption(e) {
|
|
5658
5658
|
let t = e.element;
|
|
5659
5659
|
if (!t) {
|
|
5660
|
-
t =
|
|
5660
|
+
t = j(Ra), t.getTextLabel = () => e.label, t.value = this.sanitizeValue(e.value);
|
|
5661
5661
|
let n = this.formatItemLabel(e, t);
|
|
5662
|
-
n && typeof n == "object" && "nodeType" in n && n instanceof HTMLElement ? t.appendChild(n) : t.innerHTML =
|
|
5662
|
+
n && typeof n == "object" && "nodeType" in n && n instanceof HTMLElement ? t.appendChild(n) : t.innerHTML = A(String(n || ""));
|
|
5663
5663
|
let r = this.params.fallbackOption?.prefix;
|
|
5664
5664
|
if (e.isFallbackOption && r) {
|
|
5665
|
-
let e =
|
|
5665
|
+
let e = oe(`<div style="display: inline-flex" slot="prefix">${A(r)}</div>`);
|
|
5666
5666
|
e && t.prepend(e);
|
|
5667
5667
|
}
|
|
5668
5668
|
t.classList.add("tabulator-edit-list-item", "tabulator-edit-list-group-level-" + e.level), e.element = t;
|
|
@@ -6195,7 +6195,7 @@ var Ia = class e extends W {
|
|
|
6195
6195
|
if (e.column.definition.editor !== "list") return;
|
|
6196
6196
|
let t = e.getElement(!0);
|
|
6197
6197
|
if (!t || t.classList.contains("tabulator-editing") || t.querySelector(`.${Za}`)) return;
|
|
6198
|
-
let n =
|
|
6198
|
+
let n = j(Qa);
|
|
6199
6199
|
n.addEventListener("mousedown", (e) => {
|
|
6200
6200
|
e.preventDefault(), e.stopPropagation();
|
|
6201
6201
|
}), n.addEventListener("click", (n) => {
|
|
@@ -6484,7 +6484,7 @@ var Ia = class e extends W {
|
|
|
6484
6484
|
return e.columns.forEach((e) => {
|
|
6485
6485
|
if (e?.component && "_column" in e.component) {
|
|
6486
6486
|
let t = document.createElement("th"), n = e.component._column.definition.cssClass ? e.component._column.definition.cssClass.split(" ") : [];
|
|
6487
|
-
t.colSpan = e.width, t.rowSpan = e.height, t.innerHTML =
|
|
6487
|
+
t.colSpan = e.width, t.rowSpan = e.height, t.innerHTML = A(String(e.value)), this.cloneTableStyle && (t.style.boxSizing = "border-box"), n.forEach((e) => {
|
|
6488
6488
|
t.classList.add(e);
|
|
6489
6489
|
});
|
|
6490
6490
|
let i = e.component.getElement();
|
|
@@ -6525,7 +6525,7 @@ var Ia = class e extends W {
|
|
|
6525
6525
|
}
|
|
6526
6526
|
generateGroupElement(e, t, n) {
|
|
6527
6527
|
let r = document.createElement("tr"), i = document.createElement("td"), a = e.columns[0];
|
|
6528
|
-
return a ? (r.classList.add("tabulator-print-table-row"), t.groupHeader && Array.isArray(t.groupHeader) && t.groupHeader[e.indent] ? a.value = t.groupHeader[e.indent](a.value, e.component?._group?.getRowCount() || 0, e.component?._group?.getData() || {}, e.component || {}) : t.groupHeader !== !1 && e.component && e.component?._group && (a.value = e.component._group.generator(a.value, e.component._group.getRowCount(), e.component._group.getData(), e.component)), i.colSpan = a.width, i.innerHTML =
|
|
6528
|
+
return a ? (r.classList.add("tabulator-print-table-row"), t.groupHeader && Array.isArray(t.groupHeader) && t.groupHeader[e.indent] ? a.value = t.groupHeader[e.indent](a.value, e.component?._group?.getRowCount() || 0, e.component?._group?.getData() || {}, e.component || {}) : t.groupHeader !== !1 && e.component && e.component?._group && (a.value = e.component._group.generator(a.value, e.component._group.getRowCount(), e.component._group.getData(), e.component)), i.colSpan = a.width, i.innerHTML = A(String(a.value)), r.classList.add("tabulator-print-table-group", "tabulator-group-level-" + e.indent), a.component && a.component.isVisible() && r.classList.add("tabulator-group-visible"), this.mapElementStyles(n.firstGroup, r, [
|
|
6529
6529
|
"border-top",
|
|
6530
6530
|
"border-left",
|
|
6531
6531
|
"border-right",
|
|
@@ -6605,7 +6605,7 @@ var Ia = class e extends W {
|
|
|
6605
6605
|
break;
|
|
6606
6606
|
case "undefined": u = "";
|
|
6607
6607
|
}
|
|
6608
|
-
u instanceof Node ? o.appendChild(u) : o.innerHTML =
|
|
6608
|
+
u instanceof Node ? o.appendChild(u) : o.innerHTML = A(String(u));
|
|
6609
6609
|
let p = [
|
|
6610
6610
|
"padding-top",
|
|
6611
6611
|
"padding-left",
|
|
@@ -7589,7 +7589,7 @@ var q = process.env.NODE_ENV === "development", Vo = class e extends W {
|
|
|
7589
7589
|
this.element = !1, this.arrowElement = !1, this.elementContents = !1, this.heightInitialized = !1, this._loadMoreRow = !1, this._loadMoreStateKey = "";
|
|
7590
7590
|
}
|
|
7591
7591
|
createElements() {
|
|
7592
|
-
this.element = document.createElement("div"), this.element.classList.add("tabulator-row"), this.element.classList.add("tabulator-group"), this.element.classList.add("tabulator-group-level-" + this.level), this.element.setAttribute("role", this.groupManager.table.options.rowGroupRole ?? "rowgroup"), this.arrowElement =
|
|
7592
|
+
this.element = document.createElement("div"), this.element.classList.add("tabulator-row"), this.element.classList.add("tabulator-group"), this.element.classList.add("tabulator-group-level-" + this.level), this.element.setAttribute("role", this.groupManager.table.options.rowGroupRole ?? "rowgroup"), this.arrowElement = j(qo), this.groupManager.table.options.movableRows !== !1 && this.groupManager.table.modExists("moveRow") && this.groupManager.table.modules.moveRow.initializeGroupHeader(this);
|
|
7593
7593
|
}
|
|
7594
7594
|
createValueGroups() {
|
|
7595
7595
|
let e = this.level + 1;
|
|
@@ -7637,7 +7637,7 @@ var q = process.env.NODE_ENV === "development", Vo = class e extends W {
|
|
|
7637
7637
|
e.parentElement !== n && e.remove();
|
|
7638
7638
|
});
|
|
7639
7639
|
let e = n.querySelector(".tabulator-group-level-indent");
|
|
7640
|
-
e || (e =
|
|
7640
|
+
e || (e = j(Jo), n.insertBefore(e, n.firstChild)), this.applyGroupIndent(e, (this.level + 1) * (this.groupManager.table.options.groupIndent ?? 36)), e.dataset.groupLevel = this.level.toString();
|
|
7641
7641
|
}
|
|
7642
7642
|
}
|
|
7643
7643
|
insertRow(e, t, n) {
|
|
@@ -7681,10 +7681,10 @@ var q = process.env.NODE_ENV === "development", Vo = class e extends W {
|
|
|
7681
7681
|
if (!e?.hasMore || !n) return this._loadMoreRow = !1, !1;
|
|
7682
7682
|
let r = new Jr({ id: `group-load-more:${this.getPathKey()}` }, n), i = (this.level + 1) * (this.groupManager.table.options.groupIndent ?? 36);
|
|
7683
7683
|
if (r.create(), e.loading) {
|
|
7684
|
-
let e =
|
|
7684
|
+
let e = j(Xo);
|
|
7685
7685
|
return r.element.appendChild(e), this.applyGroupIndent(e, i), this._loadMoreRow = r, r;
|
|
7686
7686
|
}
|
|
7687
|
-
let a =
|
|
7687
|
+
let a = j(Yo), o = this.getGroupLoadMoreEventPayload();
|
|
7688
7688
|
return r.element.appendChild(a), this.applyGroupIndent(a, i), a.addEventListener("click", (e) => {
|
|
7689
7689
|
e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), this.groupManager.table.externalEvents?.dispatch("groupLoadMore", o);
|
|
7690
7690
|
}), this._loadMoreRow = r, r;
|
|
@@ -7811,7 +7811,7 @@ var q = process.env.NODE_ENV === "development", Vo = class e extends W {
|
|
|
7811
7811
|
for (let n of t) e.push(n.getData());
|
|
7812
7812
|
if (this.elementContents = this.generator(this.key, this.getRowCount(), e, this.getComponent()), this.element) {
|
|
7813
7813
|
for (; this.element.firstChild;) this.element.removeChild(this.element.firstChild);
|
|
7814
|
-
typeof this.elementContents == "string" ? this.element.innerHTML =
|
|
7814
|
+
typeof this.elementContents == "string" ? this.element.innerHTML = A(this.elementContents) : this.element.appendChild(this.elementContents), this.arrowElement && this.element.insertBefore(this.arrowElement, this.element.firstChild);
|
|
7815
7815
|
}
|
|
7816
7816
|
}
|
|
7817
7817
|
getPath(e = []) {
|
|
@@ -7898,10 +7898,10 @@ var q = process.env.NODE_ENV === "development", Vo = class e extends W {
|
|
|
7898
7898
|
let o = this.table.options.groupHeaderCount ? "<span class=\"tabulator-group-count\">(" + r + " " + (r === 1 ? e : t.groups.items) + ")</span>" : "";
|
|
7899
7899
|
if (this.table.options.groupHeaderUseFormatter && a) {
|
|
7900
7900
|
let e = this.buildFormattedGroupHeader(n, i, a);
|
|
7901
|
-
if (e) return o && e.insertAdjacentHTML("beforeend",
|
|
7901
|
+
if (e) return o && e.insertAdjacentHTML("beforeend", A(o)), e;
|
|
7902
7902
|
}
|
|
7903
7903
|
let s = n ?? "";
|
|
7904
|
-
return this.table.options.groupHeaderCount ?
|
|
7904
|
+
return this.table.options.groupHeaderCount ? A(s + o) : A(s);
|
|
7905
7905
|
};
|
|
7906
7906
|
}), this.groupIDLookups = [], e ? this.table.modExists("columnCalcs") && this.table.options.columnCalcs !== "table" && this.table.options.columnCalcs !== "both" && this.table.modules.columnCalcs.removeCalcs() : this.table.modExists("columnCalcs") && this.table.options.columnCalcs !== "group" && (this.table.columnManager?.getRealColumns() || []).forEach((e) => {
|
|
7907
7907
|
e.definition.topCalc && this.table.modules.columnCalcs.initializeTopRow(), e.definition.bottomCalc && this.table.modules.columnCalcs.initializeBottomRow();
|
|
@@ -7945,7 +7945,7 @@ var q = process.env.NODE_ENV === "development", Vo = class e extends W {
|
|
|
7945
7945
|
}, d = typeof a.params == "function" ? a.params(u) : a.params, f = a.formatter.call(o, u, d ?? {}, () => {});
|
|
7946
7946
|
if (f == null || f === "") return null;
|
|
7947
7947
|
let p = document.createElement("span");
|
|
7948
|
-
return p.classList.add("tabulator-group-formatted"), typeof f == "string" ? p.innerHTML =
|
|
7948
|
+
return p.classList.add("tabulator-group-formatted"), typeof f == "string" ? p.innerHTML = A(f) : p.appendChild(f), p;
|
|
7949
7949
|
}
|
|
7950
7950
|
rowSample(e, t) {
|
|
7951
7951
|
if (this.table.options.groupBy) {
|
|
@@ -8325,7 +8325,7 @@ var q = process.env.NODE_ENV === "development", Vo = class e extends W {
|
|
|
8325
8325
|
!this.hasIndex && t.index && (r[t.index] = e);
|
|
8326
8326
|
for (let e = 0; e < n.length; e++) {
|
|
8327
8327
|
let t = n[e], i = this.fieldIndex[e];
|
|
8328
|
-
i != null && (r[i] =
|
|
8328
|
+
i != null && (r[i] = A(t.innerHTML));
|
|
8329
8329
|
}
|
|
8330
8330
|
i.push(r);
|
|
8331
8331
|
}
|
|
@@ -8515,13 +8515,13 @@ var cs = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
|
|
|
8515
8515
|
function b(t) {
|
|
8516
8516
|
return e.skipEmptyLines === "greedy" ? t.join("").trim() === "" : t.length === 1 && t[0].length === 0;
|
|
8517
8517
|
}
|
|
8518
|
-
function
|
|
8519
|
-
if (y && r && (
|
|
8518
|
+
function te() {
|
|
8519
|
+
if (y && r && (C("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + s.DefaultDelimiter + "'"), r = !1), e.skipEmptyLines && (y.data = y.data.filter(function(e) {
|
|
8520
8520
|
return !b(e);
|
|
8521
|
-
})),
|
|
8521
|
+
})), S()) {
|
|
8522
8522
|
if (y) {
|
|
8523
8523
|
if (Array.isArray(y.data[0])) {
|
|
8524
|
-
for (var t = 0;
|
|
8524
|
+
for (var t = 0; S() && t < y.data.length; t++) y.data[t].forEach(n);
|
|
8525
8525
|
y.data.splice(0, 1);
|
|
8526
8526
|
} else y.data.forEach(n);
|
|
8527
8527
|
}
|
|
@@ -8536,15 +8536,15 @@ var cs = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
|
|
|
8536
8536
|
})(n) ? parseFloat(n) : u.test(n) ? new Date(n) : n === "" ? null : n) : n)(s = e.header ? i >= v.length ? "__parsed_extra" : v[i] : s, c = e.transform ? e.transform(c, s) : c);
|
|
8537
8537
|
s === "__parsed_extra" ? (r[s] = r[s] || [], r[s].push(c)) : r[s] = c;
|
|
8538
8538
|
}
|
|
8539
|
-
return e.header && (i > v.length ?
|
|
8539
|
+
return e.header && (i > v.length ? C("FieldMismatch", "TooManyFields", "Too many fields: expected " + v.length + " fields but parsed " + i, p + n) : i < v.length && C("FieldMismatch", "TooFewFields", "Too few fields: expected " + v.length + " fields but parsed " + i, p + n)), r;
|
|
8540
8540
|
}
|
|
8541
8541
|
var i;
|
|
8542
8542
|
y && (e.header || e.dynamicTyping || e.transform) && (i = 1, !y.data.length || Array.isArray(y.data[0]) ? (y.data = y.data.map(n), i = y.data.length) : y.data = n(y.data, 0), e.header && y.meta && (y.meta.fields = v), p += i);
|
|
8543
8543
|
}
|
|
8544
|
-
function
|
|
8544
|
+
function S() {
|
|
8545
8545
|
return e.header && v.length === 0;
|
|
8546
8546
|
}
|
|
8547
|
-
function
|
|
8547
|
+
function C(e, t, n, r) {
|
|
8548
8548
|
e = {
|
|
8549
8549
|
type: e,
|
|
8550
8550
|
code: t,
|
|
@@ -8552,7 +8552,7 @@ var cs = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
|
|
|
8552
8552
|
}, r !== void 0 && (e.row = r), y.errors.push(e);
|
|
8553
8553
|
}
|
|
8554
8554
|
x(e.step) && (i = e.step, e.step = function(t) {
|
|
8555
|
-
y = t,
|
|
8555
|
+
y = t, S() ? te() : (te(), y.data.length !== 0 && (f += t.data.length, e.preview && f > e.preview ? n.abort() : (y.data = y.data[0], i(y, d))));
|
|
8556
8556
|
}), this.parse = function(i, a, o) {
|
|
8557
8557
|
var c = e.quoteChar || "\"", c = (e.newline ||= this.guessLineEndings(i, c), r = !1, e.delimiter ? x(e.delimiter) && (e.delimiter = e.delimiter(i), y.meta.delimiter = e.delimiter) : ((c = ((t, n, r, i, a) => {
|
|
8558
8558
|
var o, c, l, u;
|
|
@@ -8578,7 +8578,7 @@ var cs = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
|
|
|
8578
8578
|
bestDelimiter: o
|
|
8579
8579
|
};
|
|
8580
8580
|
})(i, e.newline, e.skipEmptyLines, e.comments, e.delimitersToGuess)).successful ? e.delimiter = c.bestDelimiter : (r = !0, e.delimiter = s.DefaultDelimiter), y.meta.delimiter = e.delimiter), ee(e));
|
|
8581
|
-
return e.preview && e.header && c.preview++, t = i, n = new g(c), y = n.parse(t, a, o),
|
|
8581
|
+
return e.preview && e.header && c.preview++, t = i, n = new g(c), y = n.parse(t, a, o), te(), m ? { meta: { paused: !0 } } : y || { meta: { paused: !1 } };
|
|
8582
8582
|
}, this.paused = function() {
|
|
8583
8583
|
return m;
|
|
8584
8584
|
}, this.pause = function() {
|
|
@@ -8607,78 +8607,78 @@ var cs = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
|
|
|
8607
8607
|
var p = 0, m = !1;
|
|
8608
8608
|
this.parse = function(s, g, _) {
|
|
8609
8609
|
if (typeof s != "string") throw Error("Input must be a string");
|
|
8610
|
-
var v = s.length, y = t.length, ee = n.length, b = r.length,
|
|
8611
|
-
if (!s) return
|
|
8610
|
+
var v = s.length, y = t.length, ee = n.length, b = r.length, te = x(i), S = [], C = [], w = [], T = p = 0;
|
|
8611
|
+
if (!s) return M();
|
|
8612
8612
|
if (o || !1 !== o && s.indexOf(d) === -1) {
|
|
8613
|
-
for (var
|
|
8614
|
-
if (
|
|
8615
|
-
else if (_) return
|
|
8616
|
-
if (!r ||
|
|
8617
|
-
if (
|
|
8618
|
-
if (
|
|
8619
|
-
} else
|
|
8620
|
-
if (a && a <=
|
|
8613
|
+
for (var E = s.split(n), D = 0; D < E.length; D++) {
|
|
8614
|
+
if (w = E[D], p += w.length, D !== E.length - 1) p += n.length;
|
|
8615
|
+
else if (_) return M();
|
|
8616
|
+
if (!r || w.substring(0, b) !== r) {
|
|
8617
|
+
if (te) {
|
|
8618
|
+
if (S = [], ie(w.split(t)), N(), m) return M();
|
|
8619
|
+
} else ie(w.split(t));
|
|
8620
|
+
if (a && a <= D) return S = S.slice(0, a), M(!0);
|
|
8621
8621
|
}
|
|
8622
8622
|
}
|
|
8623
|
-
return
|
|
8623
|
+
return M();
|
|
8624
8624
|
}
|
|
8625
|
-
for (var
|
|
8626
|
-
if ((
|
|
8625
|
+
for (var O = s.indexOf(t, p), k = s.indexOf(n, p), ne = new RegExp(h(f) + h(d), "g"), A = s.indexOf(d, p);;) if (s[p] === d) for (A = p, p++;;) {
|
|
8626
|
+
if ((A = s.indexOf(d, A + 1)) === -1) return _ || C.push({
|
|
8627
8627
|
type: "Quotes",
|
|
8628
8628
|
code: "MissingQuotes",
|
|
8629
8629
|
message: "Quoted field unterminated",
|
|
8630
|
-
row:
|
|
8630
|
+
row: S.length,
|
|
8631
8631
|
index: p
|
|
8632
|
-
}),
|
|
8633
|
-
if (
|
|
8634
|
-
if (d === f && s[
|
|
8635
|
-
else if (d === f ||
|
|
8636
|
-
|
|
8637
|
-
var
|
|
8638
|
-
if (s.substr(
|
|
8639
|
-
|
|
8632
|
+
}), oe();
|
|
8633
|
+
if (A === v - 1) return oe(s.substring(p, A).replace(ne, d));
|
|
8634
|
+
if (d === f && s[A + 1] === f) A++;
|
|
8635
|
+
else if (d === f || A === 0 || s[A - 1] !== f) {
|
|
8636
|
+
O !== -1 && O < A + 1 && (O = s.indexOf(t, A + 1));
|
|
8637
|
+
var re = ae((k = k !== -1 && k < A + 1 ? s.indexOf(n, A + 1) : k) === -1 ? O : Math.min(O, k));
|
|
8638
|
+
if (s.substr(A + 1 + re, y) === t) {
|
|
8639
|
+
w.push(s.substring(p, A).replace(ne, d)), s[p = A + 1 + re + y] !== d && (A = s.indexOf(d, p)), O = s.indexOf(t, p), k = s.indexOf(n, p);
|
|
8640
8640
|
break;
|
|
8641
8641
|
}
|
|
8642
|
-
if (
|
|
8643
|
-
if (
|
|
8644
|
-
if (a &&
|
|
8642
|
+
if (re = ae(k), s.substring(A + 1 + re, A + 1 + re + ee) === n) {
|
|
8643
|
+
if (w.push(s.substring(p, A).replace(ne, d)), j(A + 1 + re + ee), O = s.indexOf(t, p), A = s.indexOf(d, p), te && (N(), m)) return M();
|
|
8644
|
+
if (a && S.length >= a) return M(!0);
|
|
8645
8645
|
break;
|
|
8646
8646
|
}
|
|
8647
|
-
|
|
8647
|
+
C.push({
|
|
8648
8648
|
type: "Quotes",
|
|
8649
8649
|
code: "InvalidQuotes",
|
|
8650
8650
|
message: "Trailing quote on quoted field is malformed",
|
|
8651
|
-
row:
|
|
8651
|
+
row: S.length,
|
|
8652
8652
|
index: p
|
|
8653
|
-
}),
|
|
8653
|
+
}), A++;
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
|
-
else if (r &&
|
|
8657
|
-
if (
|
|
8658
|
-
p =
|
|
8659
|
-
} else if (
|
|
8656
|
+
else if (r && w.length === 0 && s.substring(p, p + b) === r) {
|
|
8657
|
+
if (k === -1) return M();
|
|
8658
|
+
p = k + ee, k = s.indexOf(n, p), O = s.indexOf(t, p);
|
|
8659
|
+
} else if (O !== -1 && (O < k || k === -1)) w.push(s.substring(p, O)), p = O + y, O = s.indexOf(t, p);
|
|
8660
8660
|
else {
|
|
8661
|
-
if (
|
|
8662
|
-
if (
|
|
8663
|
-
if (a &&
|
|
8664
|
-
}
|
|
8665
|
-
return ae();
|
|
8666
|
-
function re(e) {
|
|
8667
|
-
C.push(e), E = p;
|
|
8661
|
+
if (k === -1) break;
|
|
8662
|
+
if (w.push(s.substring(p, k)), j(k + ee), te && (N(), m)) return M();
|
|
8663
|
+
if (a && S.length >= a) return M(!0);
|
|
8668
8664
|
}
|
|
8665
|
+
return oe();
|
|
8669
8666
|
function ie(e) {
|
|
8670
|
-
|
|
8671
|
-
return t = e !== -1 && (e = s.substring(j + 1, e)) && e.trim() === "" ? e.length : t;
|
|
8667
|
+
S.push(e), T = p;
|
|
8672
8668
|
}
|
|
8673
8669
|
function ae(e) {
|
|
8674
|
-
|
|
8670
|
+
var t = 0;
|
|
8671
|
+
return t = e !== -1 && (e = s.substring(A + 1, e)) && e.trim() === "" ? e.length : t;
|
|
8675
8672
|
}
|
|
8676
|
-
function
|
|
8677
|
-
|
|
8673
|
+
function oe(e) {
|
|
8674
|
+
return _ || (e === void 0 && (e = s.substring(p)), w.push(e), p = v, ie(w), te && N()), M();
|
|
8678
8675
|
}
|
|
8679
|
-
function
|
|
8680
|
-
|
|
8681
|
-
|
|
8676
|
+
function j(e) {
|
|
8677
|
+
p = e, ie(w), w = [], k = s.indexOf(n, p);
|
|
8678
|
+
}
|
|
8679
|
+
function M(r) {
|
|
8680
|
+
if (e.header && !g && S.length && !u) {
|
|
8681
|
+
var i = S[0], a = Object.create(null), o = new Set(i);
|
|
8682
8682
|
let t = !1;
|
|
8683
8683
|
for (let n = 0; n < i.length; n++) {
|
|
8684
8684
|
let r = c(i[n]);
|
|
@@ -8692,20 +8692,20 @@ var cs = /* @__PURE__ */ e((/* @__PURE__ */ n(((e, t) => {
|
|
|
8692
8692
|
t && console.warn("Duplicate headers found and renamed."), u = !0;
|
|
8693
8693
|
}
|
|
8694
8694
|
return {
|
|
8695
|
-
data:
|
|
8696
|
-
errors:
|
|
8695
|
+
data: S,
|
|
8696
|
+
errors: C,
|
|
8697
8697
|
meta: {
|
|
8698
8698
|
delimiter: t,
|
|
8699
8699
|
linebreak: n,
|
|
8700
8700
|
aborted: m,
|
|
8701
8701
|
truncated: !!r,
|
|
8702
|
-
cursor:
|
|
8702
|
+
cursor: T + (g || 0),
|
|
8703
8703
|
renamedHeaders: l
|
|
8704
8704
|
}
|
|
8705
8705
|
};
|
|
8706
8706
|
}
|
|
8707
8707
|
function N() {
|
|
8708
|
-
i(
|
|
8708
|
+
i(M()), S = [], C = [];
|
|
8709
8709
|
}
|
|
8710
8710
|
}, this.abort = function() {
|
|
8711
8711
|
m = !0;
|
|
@@ -9328,7 +9328,7 @@ var fs = process.env.NODE_ENV === "development", ps = {
|
|
|
9328
9328
|
}
|
|
9329
9329
|
initializeColumnHeaderMenu(e) {
|
|
9330
9330
|
let t = e.definition.headerMenuIcon, n = document.createElement("span");
|
|
9331
|
-
n.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? n.appendChild(t) : n.innerHTML =
|
|
9331
|
+
n.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? n.appendChild(t) : n.innerHTML = A(String(t))) : n.innerHTML = A("⋮"), n.addEventListener("click", (t) => {
|
|
9332
9332
|
t.stopPropagation(), t.preventDefault(), this.loadMenuEvent(e.definition.headerMenu, t, e);
|
|
9333
9333
|
}), e.titleElement && e.titleElement.insertBefore(n, e.titleElement.firstChild);
|
|
9334
9334
|
}
|
|
@@ -9355,7 +9355,7 @@ var fs = process.env.NODE_ENV === "development", ps = {
|
|
|
9355
9355
|
else return;
|
|
9356
9356
|
n.forEach((e) => {
|
|
9357
9357
|
let n = document.createElement("div"), r = e.label, i = e.disabled;
|
|
9358
|
-
e.separator ? n.classList.add("tabulator-menu-separator") : (n.classList.add("tabulator-menu-item"), typeof r == "function" && (r = r.call(this.table, t.getComponent())), r instanceof Node ? n.appendChild(r) : n.innerHTML =
|
|
9358
|
+
e.separator ? n.classList.add("tabulator-menu-separator") : (n.classList.add("tabulator-menu-item"), typeof r == "function" && (r = r.call(this.table, t.getComponent())), r instanceof Node ? n.appendChild(r) : n.innerHTML = A(String(r || "")), typeof i == "function" && (i = i.call(this.table, t.getComponent())), i ? (n.classList.add("tabulator-menu-item-disabled"), n.addEventListener("click", (e) => {
|
|
9359
9359
|
e.stopPropagation();
|
|
9360
9360
|
})) : e.menu && e.menu.length ? n.addEventListener("click", (r) => {
|
|
9361
9361
|
r.stopPropagation(), this.loadMenu(r, t, e.menu, n, s);
|
|
@@ -9843,7 +9843,7 @@ var fs = process.env.NODE_ENV === "development", ps = {
|
|
|
9843
9843
|
}
|
|
9844
9844
|
calculatePageSizes() {
|
|
9845
9845
|
let e, t;
|
|
9846
|
-
this.table.options.paginationSize ? this.size = this.table.options.paginationSize : (e = document.createElement("div"), e.classList.add("tabulator-row"), e.style.visibility = "hidden", t = document.createElement("div"), t.classList.add("tabulator-cell"), t.innerHTML =
|
|
9846
|
+
this.table.options.paginationSize ? this.size = this.table.options.paginationSize : (e = document.createElement("div"), e.classList.add("tabulator-row"), e.style.visibility = "hidden", t = document.createElement("div"), t.classList.add("tabulator-cell"), t.innerHTML = A("Page Row Test"), e.appendChild(t), this.table.rowManager?.getTableElement().appendChild(e), this.size = Math.floor((this.table.rowManager?.getElement()?.clientHeight ?? 0) / e.offsetHeight), e.remove()), this.dispatchExternal("pageSizeChanged", this.size), this.generatePageSizeSelectList();
|
|
9847
9847
|
}
|
|
9848
9848
|
initialLoadComplete() {
|
|
9849
9849
|
this.initialLoad = !1;
|
|
@@ -9871,7 +9871,7 @@ var fs = process.env.NODE_ENV === "development", ps = {
|
|
|
9871
9871
|
}
|
|
9872
9872
|
createElements() {
|
|
9873
9873
|
let e = r`<cx-pagination back-icon-name="arrow_back" next-icon-name="arrow_forward" icon-button-size="small"></cx-pagination>`, t = r`<div slot="pagination" class="tabulator-paginator"></div>`;
|
|
9874
|
-
this.element =
|
|
9874
|
+
this.element = j(t), this.paginationElement = j(e), this.table.options.paginationShowFirst && this.paginationElement.setAttribute("show-first", ""), this.table.options.paginationShowLast && this.paginationElement.setAttribute("show-last", ""), this.table.options.showPaginationButtons && (this.paginationElement.setAttribute("show-pagination-buttons", ""), this.paginationElement.setAttribute("pagination-button-count", this.count.toString())), this.table.options.showPaginationInput && this.paginationElement.setAttribute("show-pagination-input", ""), this.paginationElement.setAttribute("label", ""), this.paginationElement.classList.add("tabulator-paginator-pagination");
|
|
9875
9875
|
}
|
|
9876
9876
|
generatePageSizeSelectList() {
|
|
9877
9877
|
let e = [], t = 1;
|
|
@@ -10215,7 +10215,7 @@ var fs = process.env.NODE_ENV === "development", ps = {
|
|
|
10215
10215
|
}
|
|
10216
10216
|
initializeColumnHeaderPopup(e) {
|
|
10217
10217
|
let t = e.definition.headerPopupIcon, n = document.createElement("span");
|
|
10218
|
-
n.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? n.appendChild(t) : n.innerHTML =
|
|
10218
|
+
n.classList.add("tabulator-header-popup-button"), t ? (typeof t == "function" && (t = t(e.getComponent())), t instanceof HTMLElement ? n.appendChild(t) : n.innerHTML = A(t)) : n.innerHTML = A("⋮"), n.addEventListener("click", (t) => {
|
|
10219
10219
|
t.stopPropagation(), t.preventDefault(), this.loadPopupEvent(e.definition.headerPopup, t, e);
|
|
10220
10220
|
}), e.titleElement && e.titleElement.insertBefore(n, e.titleElement.firstChild);
|
|
10221
10221
|
}
|
|
@@ -10234,7 +10234,7 @@ var fs = process.env.NODE_ENV === "development", ps = {
|
|
|
10234
10234
|
}
|
|
10235
10235
|
loadPopup(e, t, n, r, i) {
|
|
10236
10236
|
let a = !(e instanceof MouseEvent), o;
|
|
10237
|
-
n instanceof HTMLElement ? o = n : (o = document.createElement("div"), o.innerHTML =
|
|
10237
|
+
n instanceof HTMLElement ? o = n : (o = document.createElement("div"), o.innerHTML = A(n)), o.classList.add("tabulator-popup"), o.addEventListener("click", (e) => {
|
|
10238
10238
|
e.stopPropagation();
|
|
10239
10239
|
}), !a && e && e.preventDefault();
|
|
10240
10240
|
let s = this.popup(o);
|
|
@@ -10273,7 +10273,7 @@ var fs = process.env.NODE_ENV === "development", ps = {
|
|
|
10273
10273
|
return;
|
|
10274
10274
|
}
|
|
10275
10275
|
let c = s.generateTable(n ?? this.table.options.printConfig, t ?? this.table.options.printStyled, typeof e == "boolean" ? e ? "visible" : this.table.options.printRowRange : e || this.table.options.printRowRange, "print"), l, u;
|
|
10276
|
-
this.manualBlock = !0, this.element = document.createElement("div"), this.element.classList.add("tabulator-print-fullscreen"), this.table.options.printHeader && (a.classList.add("tabulator-print-header"), l = typeof this.table.options.printHeader == "function" ? this.table.options.printHeader.call(this.table) : this.table.options.printHeader, typeof l == "string" ? a.innerHTML =
|
|
10276
|
+
this.manualBlock = !0, this.element = document.createElement("div"), this.element.classList.add("tabulator-print-fullscreen"), this.table.options.printHeader && (a.classList.add("tabulator-print-header"), l = typeof this.table.options.printHeader == "function" ? this.table.options.printHeader.call(this.table) : this.table.options.printHeader, typeof l == "string" ? a.innerHTML = A(l) : a.appendChild(l), this.element.appendChild(a)), this.element.appendChild(c), this.table.options.printFooter && (o.classList.add("tabulator-print-footer"), u = typeof this.table.options.printFooter == "function" ? this.table.options.printFooter.call(this.table) : this.table.options.printFooter, typeof u == "string" ? o.innerHTML = A(u) : o.appendChild(u), this.element.appendChild(o)), document.body.classList.add("tabulator-print-fullscreen-hide"), document.body.appendChild(this.element);
|
|
10277
10277
|
try {
|
|
10278
10278
|
this.table.options.printFormatter && this.table.options.printFormatter(this.element, c), globalThis.print();
|
|
10279
10279
|
} finally {
|
|
@@ -10837,7 +10837,7 @@ var Ws = { format: { formatters: { responsiveCollapse: Us } } }, Gs = class exte
|
|
|
10837
10837
|
if (e.modules.responsiveLayout && this.collapseFormatter) {
|
|
10838
10838
|
if (t = e.modules.responsiveLayout.element, t) {
|
|
10839
10839
|
for (; t.firstChild;) t.removeChild(t.firstChild);
|
|
10840
|
-
n = this.collapseFormatter(this.generateCollapsedRowData(e)), n && (typeof n == "string" ? t.innerHTML =
|
|
10840
|
+
n = this.collapseFormatter(this.generateCollapsedRowData(e)), n && (typeof n == "string" ? t.innerHTML = A(n) : t.appendChild(n));
|
|
10841
10841
|
}
|
|
10842
10842
|
e.calcHeight(!0);
|
|
10843
10843
|
}
|
|
@@ -10886,13 +10886,13 @@ var Ws = { format: { formatters: { responsiveCollapse: Us } } }, Gs = class exte
|
|
|
10886
10886
|
return e.forEach((e) => {
|
|
10887
10887
|
let n = document.createElement("tr"), r = document.createElement("td"), i = document.createElement("td"), a, o = document.createElement("strong");
|
|
10888
10888
|
r.appendChild(o), this.table.modules.localize?.langBind("columns|" + e.field, (t) => {
|
|
10889
|
-
o.innerHTML =
|
|
10890
|
-
}), e.value instanceof Node ? (a = document.createElement("div"), a.appendChild(e.value), i.appendChild(a)) : i.innerHTML =
|
|
10889
|
+
o.innerHTML = A(t || e.title);
|
|
10890
|
+
}), e.value instanceof Node ? (a = document.createElement("div"), a.appendChild(e.value), i.appendChild(a)) : i.innerHTML = A(String(e.value)), n.appendChild(r), n.appendChild(i), t.appendChild(n);
|
|
10891
10891
|
}), Object.keys(e).length ? t : "";
|
|
10892
10892
|
}
|
|
10893
10893
|
}, Ks = r`<cx-checkbox></cx-checkbox>`;
|
|
10894
10894
|
function qs(e, t, n) {
|
|
10895
|
-
let r =
|
|
10895
|
+
let r = j(Ks), i = r, a = !1;
|
|
10896
10896
|
r.setAttribute("aria-label", "Select Row");
|
|
10897
10897
|
let o = this.table;
|
|
10898
10898
|
if (o.modExists("selectRow", !0)) {
|
|
@@ -11377,7 +11377,7 @@ var Js = { format: { formatters: { rowSelection: qs } } }, Ys = process.env.NODE
|
|
|
11377
11377
|
this.options("selectableRange") && (this.options("selectableRows") ? ac && console.warn("SelectRange functionality cannot be used in conjunction with row selection") : (this.maxRanges = this.options("selectableRange"), this.initializeTable(), this.initializeWatchers()), this.options("columns").findIndex((e) => e.frozen) > 0 && ac && console.warn("Having frozen column in arbitrary position with selectRange option may result in unpredictable behavior."), this.options("columns").filter((e) => e.frozen).length > 1 && ac && console.warn("Having multiple frozen columns with selectRange option may result in unpredictable behavior."));
|
|
11378
11378
|
}
|
|
11379
11379
|
initializeTable() {
|
|
11380
|
-
this.overlay = document.createElement("div"), this.overlay.classList.add("tabulator-range-overlay"), this.rangeContainer = document.createElement("div"), this.rangeContainer.classList.add("tabulator-range-container"), this.activeRangeCellElement = document.createElement("div"), this.activeRangeCellElement.classList.add("tabulator-range-cell-active"), this.hoverRangeCellElement =
|
|
11380
|
+
this.overlay = document.createElement("div"), this.overlay.classList.add("tabulator-range-overlay"), this.rangeContainer = document.createElement("div"), this.rangeContainer.classList.add("tabulator-range-container"), this.activeRangeCellElement = document.createElement("div"), this.activeRangeCellElement.classList.add("tabulator-range-cell-active"), this.hoverRangeCellElement = j(oc), this.overlay.appendChild(this.rangeContainer), this.overlay.appendChild(this.hoverRangeCellElement), this.overlay.appendChild(this.activeRangeCellElement), this.table.rowManager?.element && this.table.rowManager.element.addEventListener("keydown", this.keyDownEvent), this.resetRanges(), this.table.rowManager?.element && this.overlay && this.table.rowManager.element.appendChild(this.overlay), this.table.columnManager?.element && this.table.columnManager.element.setAttribute("tabindex", "0"), this.table.element.classList.add("tabulator-ranges");
|
|
11381
11381
|
}
|
|
11382
11382
|
initializeWatchers() {
|
|
11383
11383
|
this.columnSelection = this.options("selectableRangeColumns"), this.rowSelection = this.options("selectableRangeRows"), this.subscribe("column-init", this.initializeColumn.bind(this)), this.subscribe("column-mousedown", this.handleColumnMouseDown.bind(this)), this.subscribe("column-mousemove", this.handleColumnMouseMove.bind(this)), this.subscribe("column-resized", this.handleColumnResized.bind(this)), this.subscribe("column-moving", this.handleColumnMoving.bind(this)), this.subscribe("column-moved", this.handleColumnMoved.bind(this)), this.subscribe("column-width", this.handleColumnWidthChange.bind(this)), this.subscribe("column-height", this.layoutChange.bind(this)), this.subscribe("column-resized", this.layoutChangeNextFrame.bind(this)), this.subscribe("columns-loaded", this.updateHeaderColumn.bind(this)), this.subscribe("cell-height", this.layoutChange.bind(this)), this.subscribe("cell-rendered", this.renderCell.bind(this)), this.subscribe("cell-mousedown", this.handleCellMouseDown.bind(this)), this.subscribe("cell-mousemove", this.handleCellMouseMove.bind(this)), this.subscribe("cell-mouseout", this.handleCellMouseOut.bind(this)), this.subscribe("cell-click", this.handleCellClick.bind(this)), this.subscribe("cell-editing", this.handleEditingCell.bind(this)), this.subscribe("page-changed", this.redraw.bind(this)), this.subscribe("scroll-vertical", this.layoutChange.bind(this)), this.subscribe("scroll-horizontal", this.layoutChange.bind(this)), this.subscribe("data-destroy", this.tableDestroyed.bind(this)), this.subscribe("data-processed", this.resetRanges.bind(this)), this.subscribe("table-layout", this.layoutElement.bind(this)), this.subscribe("table-redraw", this.redraw.bind(this)), this.subscribe("table-destroy", this.tableDestroyed.bind(this)), this.subscribe("edit-editor-clear", this.finishEditingCell.bind(this)), this.subscribe("edit-blur", this.restoreFocus.bind(this)), this.subscribe("keybinding-nav-prev", this.keyNavigate.bind(this, "left")), this.subscribe("keybinding-nav-next", this.keyNavigate.bind(this, "right")), this.subscribe("keybinding-nav-left", this.keyNavigate.bind(this, "left")), this.subscribe("keybinding-nav-right", this.keyNavigate.bind(this, "right")), this.subscribe("keybinding-nav-up", this.keyNavigate.bind(this, "up")), this.subscribe("keybinding-nav-down", this.keyNavigate.bind(this, "down")), this.subscribe("keybinding-nav-range", this.keyNavigateRange.bind(this));
|
|
@@ -11982,7 +11982,7 @@ var vc = {
|
|
|
11982
11982
|
e instanceof Node && i.appendChild(e);
|
|
11983
11983
|
}
|
|
11984
11984
|
break;
|
|
11985
|
-
default: i.innerHTML =
|
|
11985
|
+
default: i.innerHTML = A(this.table.options.headerSortElement || "");
|
|
11986
11986
|
}
|
|
11987
11987
|
t.titleHolderElement && t.titleHolderElement.appendChild(i), t.modules.sort.element = i, this.setColumnHeaderSortIcon(t, I.None), this.table.options.headerSortClickElement === "icon" && i.addEventListener("mousedown", (e) => {
|
|
11988
11988
|
e.stopPropagation();
|
|
@@ -12095,7 +12095,7 @@ var vc = {
|
|
|
12095
12095
|
if (n && e.definition.headerSort && typeof this.table.options.headerSortElement == "function") {
|
|
12096
12096
|
for (; n.firstChild;) n.removeChild(n.firstChild);
|
|
12097
12097
|
let r = this.table.options.headerSortElement.call(this.table, e.getComponent(), t);
|
|
12098
|
-
r instanceof Node ? n.appendChild(r) : typeof r == "string" && (n.innerHTML =
|
|
12098
|
+
r instanceof Node ? n.appendChild(r) : typeof r == "string" && (n.innerHTML = A(r));
|
|
12099
12099
|
}
|
|
12100
12100
|
}
|
|
12101
12101
|
_sortItems(e, t) {
|
|
@@ -12427,8 +12427,8 @@ var vc = {
|
|
|
12427
12427
|
i = e;
|
|
12428
12428
|
}
|
|
12429
12429
|
typeof n == "function" && (n = n(e, t.getComponent(), o)), n instanceof HTMLElement ? r = n : (r = document.createElement("div"), n === !0 && (t instanceof Rr ? n = t.value : t.definition.field ? this.langBind("columns|" + t.definition.field, (e) => {
|
|
12430
|
-
r.innerHTML = n =
|
|
12431
|
-
}) : n = t.definition.title), r.innerHTML =
|
|
12430
|
+
r.innerHTML = n = A(e || t.definition.title);
|
|
12431
|
+
}) : n = t.definition.title), r.innerHTML = A(n)), (n || n === 0 || n === !1) && (r.classList.add("tabulator-tooltip"), r.addEventListener("mousemove", (e) => e.preventDefault()), this.popupInstance = this.popup(r), typeof i == "function" && this.popupInstance.renderCallback(i), a = this.popupInstance.containerEventCoords(e), this.popupInstance.show(a.x + 15, a.y + 15).hideOnBlur(() => {
|
|
12432
12432
|
this.dispatchExternal("tooltipClosed", t.getComponent()), this.popupInstance = null;
|
|
12433
12433
|
}), this.dispatchExternal("tooltipOpened", t.getComponent()));
|
|
12434
12434
|
}
|
|
@@ -12451,53 +12451,129 @@ function Ac(e) {
|
|
|
12451
12451
|
}
|
|
12452
12452
|
var jc = [
|
|
12453
12453
|
{
|
|
12454
|
-
|
|
12454
|
+
part: "year",
|
|
12455
|
+
pattern: "\\d{4}",
|
|
12456
|
+
token: "yyyy"
|
|
12457
|
+
},
|
|
12458
|
+
{
|
|
12459
|
+
part: "year",
|
|
12460
|
+
pattern: "\\d{4}",
|
|
12455
12461
|
token: "YYYY"
|
|
12456
12462
|
},
|
|
12457
12463
|
{
|
|
12458
|
-
|
|
12464
|
+
part: "month",
|
|
12465
|
+
pattern: "\\d{2}",
|
|
12459
12466
|
token: "MM"
|
|
12460
12467
|
},
|
|
12461
12468
|
{
|
|
12462
|
-
|
|
12469
|
+
part: "day",
|
|
12470
|
+
pattern: "\\d{2}",
|
|
12471
|
+
token: "dd"
|
|
12472
|
+
},
|
|
12473
|
+
{
|
|
12474
|
+
part: "day",
|
|
12475
|
+
pattern: "\\d{2}",
|
|
12463
12476
|
token: "DD"
|
|
12464
12477
|
},
|
|
12465
12478
|
{
|
|
12466
|
-
|
|
12479
|
+
part: "hour",
|
|
12480
|
+
pattern: "\\d{2}",
|
|
12467
12481
|
token: "HH"
|
|
12468
12482
|
},
|
|
12469
12483
|
{
|
|
12470
|
-
|
|
12484
|
+
part: "minute",
|
|
12485
|
+
pattern: "\\d{2}",
|
|
12471
12486
|
token: "mm"
|
|
12472
12487
|
},
|
|
12473
12488
|
{
|
|
12474
|
-
|
|
12489
|
+
part: "second",
|
|
12490
|
+
pattern: "\\d{2}",
|
|
12475
12491
|
token: "ss"
|
|
12492
|
+
},
|
|
12493
|
+
{
|
|
12494
|
+
part: "fraction",
|
|
12495
|
+
pattern: "\\d{3}",
|
|
12496
|
+
token: "fff"
|
|
12497
|
+
},
|
|
12498
|
+
{
|
|
12499
|
+
part: "fraction",
|
|
12500
|
+
pattern: "\\d{2}",
|
|
12501
|
+
token: "ff"
|
|
12502
|
+
},
|
|
12503
|
+
{
|
|
12504
|
+
part: "fraction",
|
|
12505
|
+
pattern: "\\d",
|
|
12506
|
+
token: "f"
|
|
12507
|
+
},
|
|
12508
|
+
{
|
|
12509
|
+
part: "offsetSign",
|
|
12510
|
+
pattern: "[+-]",
|
|
12511
|
+
token: "zzz"
|
|
12512
|
+
},
|
|
12513
|
+
{
|
|
12514
|
+
part: "offsetSign",
|
|
12515
|
+
pattern: "[+-]",
|
|
12516
|
+
token: "zz"
|
|
12517
|
+
},
|
|
12518
|
+
{
|
|
12519
|
+
part: "offsetSign",
|
|
12520
|
+
pattern: "[+-]",
|
|
12521
|
+
token: "z"
|
|
12522
|
+
},
|
|
12523
|
+
{
|
|
12524
|
+
part: "utc",
|
|
12525
|
+
pattern: "Z",
|
|
12526
|
+
token: "Z"
|
|
12476
12527
|
}
|
|
12477
12528
|
];
|
|
12478
12529
|
function Mc(e) {
|
|
12479
12530
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
12480
12531
|
}
|
|
12481
|
-
function Nc(e) {
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12532
|
+
function Nc(e, t, n) {
|
|
12533
|
+
return e.push(t), `(${n})`;
|
|
12534
|
+
}
|
|
12535
|
+
function Pc(e) {
|
|
12536
|
+
let t = [], n = "", r = 0;
|
|
12537
|
+
for (; r < e.length;) {
|
|
12538
|
+
if (e.endsWith("-HH:mm") && r === e.length - 6) {
|
|
12539
|
+
n += "-", n += Nc(t, "offsetHour", "\\d{2}"), n += ":", n += Nc(t, "offsetMinute", "\\d{2}"), t.push("offsetSign"), n += "()", r = e.length;
|
|
12540
|
+
continue;
|
|
12541
|
+
}
|
|
12542
|
+
let i = jc.find(({ token: t }) => e.startsWith(t, r));
|
|
12543
|
+
i ? (i.part === "offsetSign" ? (n += Nc(t, "offsetSign", "[+-]"), n += Nc(t, "offsetHour", i.token === "z" ? "\\d{1,2}" : "\\d{2}"), i.token === "zzz" && (n += ":", n += Nc(t, "offsetMinute", "\\d{2}"))) : n += Nc(t, i.part, i.pattern), r += i.token.length) : (n += Mc(e[r]), r += 1);
|
|
12544
|
+
}
|
|
12545
|
+
try {
|
|
12546
|
+
return {
|
|
12547
|
+
captures: t,
|
|
12548
|
+
pattern: RegExp(`^${n}$`)
|
|
12549
|
+
};
|
|
12550
|
+
} catch {
|
|
12551
|
+
return;
|
|
12489
12552
|
}
|
|
12490
|
-
return RegExp(`^${t}$`);
|
|
12491
12553
|
}
|
|
12492
|
-
function
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
if (
|
|
12497
|
-
let
|
|
12498
|
-
return
|
|
12554
|
+
function Fc(e, t) {
|
|
12555
|
+
return t.reduce((t, n, r) => ((t[n] ??= []).push(e[r + 1]), t), {});
|
|
12556
|
+
}
|
|
12557
|
+
function Ic(e, t) {
|
|
12558
|
+
if (!e?.length) return t;
|
|
12559
|
+
let n = e.map(Number);
|
|
12560
|
+
return n.every((e) => e === n[0]) ? n[0] : NaN;
|
|
12499
12561
|
}
|
|
12500
|
-
|
|
12562
|
+
function Lc(e, t) {
|
|
12563
|
+
let n = Pc(t), r = n?.pattern.exec(e);
|
|
12564
|
+
if (!r || !n) return NaN;
|
|
12565
|
+
let i = Fc(r, n.captures), a = Ic(i.year, 1970), o = Ic(i.month, 1), s = Ic(i.day, 1), c = Ic(i.hour, 0), l = Ic(i.minute, 0), u = Ic(i.second, 0), d = i.fraction?.[0] ?? "", f = d ? Number(d.padEnd(3, "0")) : 0, p = Ic(i.offsetHour, 0), m = Ic(i.offsetMinute, 0);
|
|
12566
|
+
if (o < 1 || o > 12 || c < 0 || c > 23 || l < 0 || l > 59 || u < 0 || u > 59 || p < 0 || p > 14 || m < 0 || m > 59 || p === 14 && m !== 0) return NaN;
|
|
12567
|
+
let h = i.utc !== void 0 || i.offsetSign !== void 0, g = h ? new Date(Date.UTC(a, o - 1, s, c, l, u, f)) : new Date(a, o - 1, s, c, l, u, f);
|
|
12568
|
+
if (a >= 0 && a < 100 && (h ? g.setUTCFullYear(a) : g.setFullYear(a)), (h ? g.getUTCFullYear() : g.getFullYear()) !== a || (h ? g.getUTCMonth() : g.getMonth()) !== o - 1 || (h ? g.getUTCDate() : g.getDate()) !== s) return NaN;
|
|
12569
|
+
if (i.utc !== void 0) return g.getTime();
|
|
12570
|
+
if (i.offsetSign !== void 0) {
|
|
12571
|
+
let e = (i.offsetSign[0] === "" || i.offsetSign[0] === "-" ? -1 : 1) * (p * 60 + m) * 6e4;
|
|
12572
|
+
return g.getTime() - e;
|
|
12573
|
+
}
|
|
12574
|
+
return g.getTime();
|
|
12575
|
+
}
|
|
12576
|
+
var Rc = {
|
|
12501
12577
|
alphanumeric(e) {
|
|
12502
12578
|
return J(e) ? !0 : /^[a-z0-9]+$/i.test(String(e));
|
|
12503
12579
|
},
|
|
@@ -12506,7 +12582,7 @@ var Fc = {
|
|
|
12506
12582
|
},
|
|
12507
12583
|
date(e, t) {
|
|
12508
12584
|
if (J(e)) return !0;
|
|
12509
|
-
let n = t && typeof t == "object" ? t.format : void 0, r = n === void 0 ? Ac(e) :
|
|
12585
|
+
let n = t && typeof t == "object" ? t.format : void 0, r = n === void 0 ? Ac(e) : Lc(String(e), n);
|
|
12510
12586
|
if (Number.isNaN(r)) return !1;
|
|
12511
12587
|
if (!t || typeof t != "object") return !0;
|
|
12512
12588
|
if (t.starts !== void 0) {
|
|
@@ -12583,10 +12659,10 @@ var Fc = {
|
|
|
12583
12659
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Validate/defaults/validators.ts
|
|
12584
12660
|
function Y(e) {
|
|
12585
12661
|
return function(t, n, r) {
|
|
12586
|
-
return
|
|
12662
|
+
return Rc[e](n, r);
|
|
12587
12663
|
};
|
|
12588
12664
|
}
|
|
12589
|
-
var
|
|
12665
|
+
var zc = {
|
|
12590
12666
|
alphanumeric: Y("alphanumeric"),
|
|
12591
12667
|
boolean: Y("boolean"),
|
|
12592
12668
|
date: Y("date"),
|
|
@@ -12608,38 +12684,38 @@ var Ic = {
|
|
|
12608
12684
|
return this.table.rowManager?.rows.forEach((e) => {
|
|
12609
12685
|
let t = e.getData();
|
|
12610
12686
|
t !== r && a.push(i.getFieldValue(t));
|
|
12611
|
-
}),
|
|
12687
|
+
}), Rc.unique(t, n, { columnValues: a });
|
|
12612
12688
|
}
|
|
12613
12689
|
};
|
|
12614
12690
|
//#endregion
|
|
12615
12691
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Validate/validation.worker.ts?worker
|
|
12616
|
-
function
|
|
12617
|
-
return new Worker("https://design-system.orangelogic.com/assets/validation.worker-
|
|
12692
|
+
function Bc(e) {
|
|
12693
|
+
return new Worker("https://design-system.orangelogic.com/assets/validation.worker-CATXl-v2.js", { name: e?.name });
|
|
12618
12694
|
}
|
|
12619
12695
|
//#endregion
|
|
12620
12696
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Validate/validation-worker-client.ts
|
|
12621
|
-
var
|
|
12622
|
-
function
|
|
12623
|
-
|
|
12697
|
+
var Vc = "cx-validation-request", Hc = "cx-validation-response", Uc, Wc = 0, Gc = /* @__PURE__ */ new Map();
|
|
12698
|
+
function Kc() {
|
|
12699
|
+
Gc.forEach((e) => e.reject(/* @__PURE__ */ Error("Validation worker failed"))), Gc.clear(), Uc?.terminate(), Uc = void 0;
|
|
12624
12700
|
}
|
|
12625
|
-
function
|
|
12626
|
-
return
|
|
12627
|
-
if (e.origin !== "" || e.data?.type !==
|
|
12628
|
-
let { done: t, id: n, results: r } = e.data.payload, i =
|
|
12629
|
-
i && (i.accumulatedResults.push(...r), i.onChunk?.(r), t && (
|
|
12630
|
-
}),
|
|
12701
|
+
function qc() {
|
|
12702
|
+
return Uc || (Uc = new Bc(), Uc.addEventListener("message", (e) => {
|
|
12703
|
+
if (e.origin !== "" || e.data?.type !== Hc) return;
|
|
12704
|
+
let { done: t, id: n, results: r } = e.data.payload, i = Gc.get(n);
|
|
12705
|
+
i && (i.accumulatedResults.push(...r), i.onChunk?.(r), t && (Gc.delete(n), i.resolve(i.accumulatedResults)));
|
|
12706
|
+
}), Uc.addEventListener("error", Kc), Uc.addEventListener("messageerror", Kc)), Uc;
|
|
12631
12707
|
}
|
|
12632
|
-
function
|
|
12708
|
+
function Jc(e, t) {
|
|
12633
12709
|
return new Promise((n, r) => {
|
|
12634
12710
|
let i;
|
|
12635
12711
|
try {
|
|
12636
|
-
i =
|
|
12712
|
+
i = qc();
|
|
12637
12713
|
} catch (e) {
|
|
12638
12714
|
r(e instanceof Error ? e : Error(String(e)));
|
|
12639
12715
|
return;
|
|
12640
12716
|
}
|
|
12641
|
-
let a = ++
|
|
12642
|
-
|
|
12717
|
+
let a = ++Wc;
|
|
12718
|
+
Gc.set(a, {
|
|
12643
12719
|
accumulatedResults: [],
|
|
12644
12720
|
onChunk: t,
|
|
12645
12721
|
reject: r,
|
|
@@ -12649,15 +12725,15 @@ function Gc(e, t) {
|
|
|
12649
12725
|
fields: e,
|
|
12650
12726
|
id: a
|
|
12651
12727
|
},
|
|
12652
|
-
type:
|
|
12728
|
+
type: Vc
|
|
12653
12729
|
});
|
|
12654
12730
|
});
|
|
12655
12731
|
}
|
|
12656
12732
|
//#endregion
|
|
12657
12733
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Validate/Validate.ts
|
|
12658
|
-
var
|
|
12734
|
+
var Yc = process.env.NODE_ENV === "development", Xc = 2e3, Zc = 1e3, Qc = "data-validation-message", $c = class e extends W {
|
|
12659
12735
|
static #e = this.moduleName = "validate";
|
|
12660
|
-
static #t = this.validators =
|
|
12736
|
+
static #t = this.validators = zc;
|
|
12661
12737
|
get invalidCells() {
|
|
12662
12738
|
let e = [];
|
|
12663
12739
|
return this.invalidState.forEach((t) => {
|
|
@@ -12671,7 +12747,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12671
12747
|
});
|
|
12672
12748
|
}
|
|
12673
12749
|
constructor(e) {
|
|
12674
|
-
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",
|
|
12750
|
+
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", Xc), this.registerColumnOption("validator"), this.registerColumnOption("mutateOnValidate"), this.registerTableFunction("getInvalidCells", this.getInvalidCells.bind(this)), this.registerTableFunction("clearCellValidation", this.userClearCellValidation.bind(this)), this.registerTableFunction("validate", this.userValidate.bind(this)), this.registerTableFunction("validateAsync", this.validateAsync.bind(this)), this.registerTableFunction("getValidationSummary", this.getValidationSummary.bind(this)), this.registerComponentFunction("cell", "isValid", this.cellIsValid.bind(this)), this.registerComponentFunction("cell", "clearValidation", this.clearValidation.bind(this)), this.registerComponentFunction("cell", "validate", this.cellValidate.bind(this)), this.registerComponentFunction("cell", "getValidationErrors", this.getCellValidationErrors.bind(this)), this.registerComponentFunction("column", "validate", this.columnValidate.bind(this)), this.registerComponentFunction("row", "validate", this.rowValidate.bind(this));
|
|
12675
12751
|
}
|
|
12676
12752
|
initialize() {
|
|
12677
12753
|
this.subscribe("cell-delete", this.cellDeleted.bind(this)), this.subscribe("row-deleted", this.rowDeleted.bind(this)), this.subscribe("column-deleted", this.columnDeleted.bind(this)), this.subscribe("column-layout", this.initializeColumnCheck.bind(this)), this.subscribe("edit-success", this.editValidate.bind(this)), this.subscribe("edit-editor-clear", this.editorClear.bind(this)), this.subscribe("edit-edited-clear", this.editedClear.bind(this)), this.subscribe("cell-layout", this.layoutCell.bind(this)), this.subscribe("data-processed", this.dataProcessed.bind(this));
|
|
@@ -12708,7 +12784,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12708
12784
|
this.validationGeneration++;
|
|
12709
12785
|
let e = this.invalidState.size > 0;
|
|
12710
12786
|
this.invalidState.clear(), this.table.options.validateOnLoad ? this.validateAsync().catch((e) => {
|
|
12711
|
-
|
|
12787
|
+
Yc && console.warn("Validate-on-load failed:", e);
|
|
12712
12788
|
}) : e && this.dispatchValidationChanged();
|
|
12713
12789
|
}
|
|
12714
12790
|
cellIsValid(e) {
|
|
@@ -12752,7 +12828,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12752
12828
|
}), this.dispatchValidationChanged(), !t.length || t;
|
|
12753
12829
|
}
|
|
12754
12830
|
async validateAsync() {
|
|
12755
|
-
let e = ++this.validationGeneration, t = this.table.rowManager ? [...this.table.rowManager.rows] : [], n = this.table.options.validationWorkerThreshold ??
|
|
12831
|
+
let e = ++this.validationGeneration, t = this.table.rowManager ? [...this.table.rowManager.rows] : [], n = this.table.options.validationWorkerThreshold ?? Xc;
|
|
12756
12832
|
if (this.runSuppressed(() => {
|
|
12757
12833
|
this.invalidCells.forEach((e) => this.clearValidation(e));
|
|
12758
12834
|
}), this.invalidState.clear(), n === !1 || t.length <= n) return this.userValidate(), this.getValidationSummary();
|
|
@@ -12795,7 +12871,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12795
12871
|
message: r,
|
|
12796
12872
|
params: n,
|
|
12797
12873
|
type: typeof t == "function" ? "function" : t
|
|
12798
|
-
} : (
|
|
12874
|
+
} : (Yc && console.warn("Validator Setup Error - No matching validator found:", t), !1);
|
|
12799
12875
|
}
|
|
12800
12876
|
validate(e, t, n) {
|
|
12801
12877
|
let r = [], i = this.getInvalidRecord(t) !== void 0;
|
|
@@ -12850,7 +12926,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12850
12926
|
return (this.table.columnManager?.columnsByIndex ?? []).filter((e) => e.modules.validate);
|
|
12851
12927
|
}
|
|
12852
12928
|
async validateColumnsOnWorker(e, t, n) {
|
|
12853
|
-
e.length && t.length && await
|
|
12929
|
+
e.length && t.length && await Jc(e.map((e) => ({
|
|
12854
12930
|
field: String(e.field),
|
|
12855
12931
|
rules: e.modules.validate.map((e) => ({
|
|
12856
12932
|
message: e.message,
|
|
@@ -12875,9 +12951,9 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12875
12951
|
e.modules.validate || (e.modules.validate = {}), e.modules.validate.invalid = t, this.table.options.validationMode !== "manual" && this.applyCellInvalidState(e), this.registerInvalidCell(e, t);
|
|
12876
12952
|
}
|
|
12877
12953
|
async validateColumnsOnMainThread(e, t, n) {
|
|
12878
|
-
for (let r = 0; r < t.length && e.length; r +=
|
|
12954
|
+
for (let r = 0; r < t.length && e.length; r += Zc) {
|
|
12879
12955
|
if (n !== this.validationGeneration) return;
|
|
12880
|
-
let i = Math.min(r +
|
|
12956
|
+
let i = Math.min(r + Zc, t.length);
|
|
12881
12957
|
this.runSuppressed(() => {
|
|
12882
12958
|
for (let n = r; n < i; n++) {
|
|
12883
12959
|
let r = t[n];
|
|
@@ -12895,12 +12971,12 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12895
12971
|
if (!t) return;
|
|
12896
12972
|
t.classList.add("tabulator-validation-fail");
|
|
12897
12973
|
let n = (Array.isArray(e.modules.validate?.invalid) ? e.modules.validate.invalid : []).map((e) => e.message).filter((e) => !!e);
|
|
12898
|
-
n.length && (t.setAttribute(
|
|
12974
|
+
n.length && (t.setAttribute(Qc, n.join("\n")), e.modules.validate.messageApplied = !0);
|
|
12899
12975
|
}
|
|
12900
12976
|
clearCellInvalidState(e) {
|
|
12901
12977
|
if (!e.loaded) return;
|
|
12902
12978
|
let t = e.getElement();
|
|
12903
|
-
t && (t.classList.remove("tabulator-validation-fail"), e.modules.validate?.messageApplied && (t.removeAttribute(
|
|
12979
|
+
t && (t.classList.remove("tabulator-validation-fail"), e.modules.validate?.messageApplied && (t.removeAttribute(Qc), e.modules.validate.messageApplied = !1));
|
|
12904
12980
|
}
|
|
12905
12981
|
runSuppressed(e) {
|
|
12906
12982
|
this.suppressValidationChanged = !0;
|
|
@@ -12913,7 +12989,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12913
12989
|
dispatchValidationChanged() {
|
|
12914
12990
|
this.suppressValidationChanged || this.dispatchExternal("validationChanged", this.getValidationSummary());
|
|
12915
12991
|
}
|
|
12916
|
-
},
|
|
12992
|
+
}, el = /* @__PURE__ */ t({
|
|
12917
12993
|
AccessibilityModule: () => er,
|
|
12918
12994
|
AccessorModule: () => ur,
|
|
12919
12995
|
AjaxModule: () => yr,
|
|
@@ -12953,8 +13029,8 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12953
13029
|
SortModule: () => xc,
|
|
12954
13030
|
SpreadsheetModule: () => Ec,
|
|
12955
13031
|
TooltipModule: () => Dc,
|
|
12956
|
-
ValidateModule: () =>
|
|
12957
|
-
}),
|
|
13032
|
+
ValidateModule: () => $c
|
|
13033
|
+
}), tl = class extends Or {
|
|
12958
13034
|
constructor(e) {
|
|
12959
13035
|
super(e);
|
|
12960
13036
|
}
|
|
@@ -12973,7 +13049,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12973
13049
|
async reinitializeColumnWidths(e) {
|
|
12974
13050
|
await Promise.all(e.map((e) => e.reinitializeWidth()));
|
|
12975
13051
|
}
|
|
12976
|
-
},
|
|
13052
|
+
}, nl = process.env.NODE_ENV === "development", rl = class extends Or {
|
|
12977
13053
|
constructor(e) {
|
|
12978
13054
|
super(e), this.leftCol = 0, this.rightCol = 0, this.scrollLeft = 0, this.vDomScrollPosLeft = 0, this.vDomScrollPosRight = 0, this.vDomPadLeft = 0, this.vDomPadRight = 0, this.fitDataColAvg = 0, this.windowBuffer = 200, this.visibleRowsCache = null, this.initialized = !1, this.isFitData = !1, this.columns = [];
|
|
12979
13055
|
}
|
|
@@ -12982,7 +13058,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
12982
13058
|
}
|
|
12983
13059
|
compatibilityCheck() {
|
|
12984
13060
|
let e = this.table.options.layout;
|
|
12985
|
-
|
|
13061
|
+
nl && (e === "fitDataTable" && console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"), this.table.options.responsiveLayout && console.warn("Horizontal Virtual DOM is not compatible with responsive columns"), this.table.options.rtl && console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction"));
|
|
12986
13062
|
}
|
|
12987
13063
|
layoutCheck() {
|
|
12988
13064
|
let e = this.table.options.layout || "";
|
|
@@ -13159,7 +13235,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13159
13235
|
if (n && r) try {
|
|
13160
13236
|
r.removeChild(n);
|
|
13161
13237
|
} catch (e) {
|
|
13162
|
-
|
|
13238
|
+
nl && console.warn("Could not removeColRight", e?.message || e);
|
|
13163
13239
|
}
|
|
13164
13240
|
}
|
|
13165
13241
|
}
|
|
@@ -13184,7 +13260,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13184
13260
|
if (n && r) try {
|
|
13185
13261
|
r.removeChild(n);
|
|
13186
13262
|
} catch (e) {
|
|
13187
|
-
|
|
13263
|
+
nl && console.warn("Could not removeColLeft", e?.message || e);
|
|
13188
13264
|
}
|
|
13189
13265
|
}
|
|
13190
13266
|
}
|
|
@@ -13236,7 +13312,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13236
13312
|
}
|
|
13237
13313
|
}
|
|
13238
13314
|
}
|
|
13239
|
-
},
|
|
13315
|
+
}, il = process.env.NODE_ENV === "development", al = class {
|
|
13240
13316
|
constructor(e, t, n = {}) {
|
|
13241
13317
|
this.registeredDefaults = {}, this.table = e, this.msgType = t, this.registeredDefaults = { ...n };
|
|
13242
13318
|
}
|
|
@@ -13246,13 +13322,13 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13246
13322
|
generate(e, t = {}) {
|
|
13247
13323
|
let n = { ...this.registeredDefaults }, r = this.table.options.debugInvalidOptions || t.debugInvalidOptions === !0;
|
|
13248
13324
|
Object.assign(n, e);
|
|
13249
|
-
for (let e in t) Object.hasOwn(t, e) && (Object.hasOwn(n, e) || (
|
|
13325
|
+
for (let e in t) Object.hasOwn(t, e) && (Object.hasOwn(n, e) || (il && r && console.warn("Invalid " + this.msgType + " option:", e), n[e] = t[e]));
|
|
13250
13326
|
for (let e in n) Object.hasOwn(n, e) && (e in t ? n[e] = t[e] : Array.isArray(n[e]) ? n[e] = Object.assign([], n[e]) : typeof n[e] == "object" && n[e] !== null ? n[e] = { ...n[e] } : (n[e] === void 0 || n[e] === null) && delete n[e]);
|
|
13251
13327
|
return n;
|
|
13252
13328
|
}
|
|
13253
|
-
},
|
|
13329
|
+
}, ol = process.env.NODE_ENV === "development", sl = class extends H {
|
|
13254
13330
|
constructor(e) {
|
|
13255
|
-
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
|
|
13331
|
+
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 al(this.table, "column definition", zr), this.redrawBlock = !1, this.redrawBlockUpdate = null, this.renderer = null;
|
|
13256
13332
|
}
|
|
13257
13333
|
initialize() {
|
|
13258
13334
|
this.initializeRenderer(), this.headersElement = this.createHeadersElement(), this.contentsElement = this.createHeaderContentsElement(), this.element = this.createHeaderElement(), this.contentsElement.insertBefore(this.headersElement, this.contentsElement.firstChild), this.element.insertBefore(this.contentsElement, this.element.firstChild), this.initializeScrollWheelWatcher(), this.subscribe("scroll-horizontal", this.scrollHorizontal.bind(this)), this.subscribe("scrollbar-vertical", this.padVerticalScrollbar.bind(this)), this.subscribe("column-show", this.updateLastCellClass.bind(this)), this.subscribe("column-hide", this.updateLastCellClass.bind(this));
|
|
@@ -13270,10 +13346,10 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13270
13346
|
}
|
|
13271
13347
|
initializeRenderer() {
|
|
13272
13348
|
let e, t = {
|
|
13273
|
-
basic:
|
|
13274
|
-
virtual:
|
|
13349
|
+
basic: tl,
|
|
13350
|
+
virtual: rl
|
|
13275
13351
|
};
|
|
13276
|
-
e = typeof this.table.options.renderHorizontal == "string" ? t[this.table.options.renderHorizontal] : this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) :
|
|
13352
|
+
e = typeof this.table.options.renderHorizontal == "string" ? t[this.table.options.renderHorizontal] : this.table.options.renderHorizontal, e ? (this.renderer = new e(this.table), this.renderer.initialize()) : ol && console.error("Unable to find matching renderer:", this.table.options.renderHorizontal);
|
|
13277
13353
|
}
|
|
13278
13354
|
createHeadersElement() {
|
|
13279
13355
|
let e = document.createElement("div");
|
|
@@ -13501,7 +13577,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13501
13577
|
i("Scroll Error - Invalid elements");
|
|
13502
13578
|
return;
|
|
13503
13579
|
}
|
|
13504
|
-
if (e.hidden)
|
|
13580
|
+
if (e.hidden) ol && console.warn("Scroll Error - Column not visible"), i("Scroll Error - Column not visible");
|
|
13505
13581
|
else {
|
|
13506
13582
|
let a = 0, o = e.getLeftOffset(), s = 0, c = e.getElement();
|
|
13507
13583
|
switch (t) {
|
|
@@ -13557,7 +13633,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13557
13633
|
redraw(e) {
|
|
13558
13634
|
this.element && U.elVisible(this.element) && this.verticalAlignHeaders(), e && (this.table.rowManager?.resetScroll(), this.table.rowManager?.reinitialize()), this.confirm("table-redrawing", e) || this.layoutRefresh(e || !1), this.dispatch("table-redraw", e), this.table.footerManager?.redraw();
|
|
13559
13635
|
}
|
|
13560
|
-
},
|
|
13636
|
+
}, cl = {
|
|
13561
13637
|
debugEventsExternal: !1,
|
|
13562
13638
|
debugEventsInternal: !1,
|
|
13563
13639
|
debugInvalidOptions: !0,
|
|
@@ -13598,7 +13674,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13598
13674
|
dataLoaderErrorTimeout: 3e3,
|
|
13599
13675
|
dataSendParams: {},
|
|
13600
13676
|
dataReceiveParams: {}
|
|
13601
|
-
},
|
|
13677
|
+
}, ll = class extends H {
|
|
13602
13678
|
constructor(e) {
|
|
13603
13679
|
super(e), this.active = !1, this.element = this.createElement(), this.containerElement = this.createContainerElement(), this.external = !1;
|
|
13604
13680
|
}
|
|
@@ -13616,7 +13692,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13616
13692
|
initializeElement() {
|
|
13617
13693
|
if (this.table.options.footerElement) switch (typeof this.table.options.footerElement) {
|
|
13618
13694
|
case "string":
|
|
13619
|
-
if (this.table.options.footerElement.startsWith("<")) this.containerElement.innerHTML =
|
|
13695
|
+
if (this.table.options.footerElement.startsWith("<")) this.containerElement.innerHTML = A(this.table.options.footerElement);
|
|
13620
13696
|
else {
|
|
13621
13697
|
this.external = !0;
|
|
13622
13698
|
let e = document.querySelector(this.table.options.footerElement);
|
|
@@ -13647,7 +13723,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13647
13723
|
redraw() {
|
|
13648
13724
|
this.dispatch("footer-redraw");
|
|
13649
13725
|
}
|
|
13650
|
-
},
|
|
13726
|
+
}, ul = class extends Or {
|
|
13651
13727
|
constructor(e) {
|
|
13652
13728
|
super(e), this.scrollTop = 0, this.scrollLeft = 0, this.verticalFillMode = "fill";
|
|
13653
13729
|
}
|
|
@@ -13691,7 +13767,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13691
13767
|
visibleRows() {
|
|
13692
13768
|
return this.rows();
|
|
13693
13769
|
}
|
|
13694
|
-
},
|
|
13770
|
+
}, dl = class extends Or {
|
|
13695
13771
|
constructor(e) {
|
|
13696
13772
|
super(e), this.scrollTop = 0, this.scrollLeft = 0, this.vDomRowHeight = 20, this.vDomTop = 0, this.vDomBottom = 0, this.vDomScrollPosTop = 0, this.vDomScrollPosBottom = 0, this.vDomTopPad = 0, this.vDomBottomPad = 0, this.vDomMaxRenderChain = 90, this.vDomWindowBuffer = 0, this.vDomWindowMinTotalRows = 20, this.vDomWindowMinMarginRows = 5, this.vDomTopNewRows = [], this.vDomBottomNewRows = [], this.vDomScrollHeight = 0, this.verticalFillMode = "fill";
|
|
13697
13773
|
}
|
|
@@ -13758,15 +13834,15 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13758
13834
|
return o.slice(i, a + 1);
|
|
13759
13835
|
}
|
|
13760
13836
|
_virtualRenderFill(e, t, n) {
|
|
13761
|
-
let r = this.tableElement, i = this.elementVertical, a = 0, o = 0, s = 0, c = 0, l = 0, u = 0, d = this.rows(), f = d.length, p = 0, m, h, g = [], _ = 0, v = 0, y = this.table.rowManager?.fixedHeight ?? !1, ee = this.table.element ? globalThis.getComputedStyle(this.table.element).getPropertyValue("--table-max-height").trim() : "", b = y || ee !== "" && ee !== "auto", x = this.elementVertical?.clientHeight ?? 0,
|
|
13837
|
+
let r = this.tableElement, i = this.elementVertical, a = 0, o = 0, s = 0, c = 0, l = 0, u = 0, d = this.rows(), f = d.length, p = 0, m, h, g = [], _ = 0, v = 0, y = this.table.rowManager?.fixedHeight ?? !1, ee = this.table.element ? globalThis.getComputedStyle(this.table.element).getPropertyValue("--table-max-height").trim() : "", b = y || ee !== "" && ee !== "auto", x = this.elementVertical?.clientHeight ?? 0, te = this.table.options.rowHeight, S = !0;
|
|
13762
13838
|
if (e ||= 0, n ||= 0, !e) this.clear();
|
|
13763
13839
|
else {
|
|
13764
13840
|
for (; r?.firstChild;) r.removeChild(r.firstChild);
|
|
13765
13841
|
c = (f - e + 1) * this.vDomRowHeight, c < x && (e -= Math.ceil((x - c) / this.vDomRowHeight), e < 0 && (e = 0)), a = Math.min(Math.max(Math.floor(this.vDomWindowBuffer / this.vDomRowHeight), this.vDomWindowMinMarginRows), e), e -= a;
|
|
13766
13842
|
}
|
|
13767
|
-
let
|
|
13768
|
-
if (f && this.elementVertical && (U.elVisible(this.elementVertical) ||
|
|
13769
|
-
for (this.vDomTop = e, this.vDomBottom = e - 1, b ? (
|
|
13843
|
+
let C = !this.table.initialized || !!t;
|
|
13844
|
+
if (f && this.elementVertical && (U.elVisible(this.elementVertical) || C)) {
|
|
13845
|
+
for (this.vDomTop = e, this.vDomBottom = e - 1, b ? (te && (v = x / te + this.vDomWindowBuffer / te), v = Math.max(this.vDomWindowMinTotalRows, Math.ceil(v))) : v = f; (v == f || o <= x + this.vDomWindowBuffer || _ < this.vDomWindowMinTotalRows) && this.vDomBottom < f - 1;) {
|
|
13770
13846
|
for (g = [], h = document.createDocumentFragment(), u = 0; u < v && this.vDomBottom < f - 1;) {
|
|
13771
13847
|
p = this.vDomBottom + 1, m = d[p], this.styleRow(m, p), m.initialize(!1, !0), !m.heightInitialized && !this.table.options.rowHeight && m.clearCellHeight();
|
|
13772
13848
|
let e = m.getElement();
|
|
@@ -13779,7 +13855,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13779
13855
|
e.heightInitialized || e.setCellHeight();
|
|
13780
13856
|
}), g.forEach((e) => {
|
|
13781
13857
|
s = e.getHeight(), _ < a ? l += s : o += s, s > this.vDomWindowBuffer && (this.vDomWindowBuffer = s * 2), _++;
|
|
13782
|
-
}),
|
|
13858
|
+
}), S = this.table.rowManager?.adjustTableSize() || !1, x = this.elementVertical.clientHeight, S && b && (te = o / _, v = Math.max(this.vDomWindowMinTotalRows, Math.ceil(x / te + this.vDomWindowBuffer / te)));
|
|
13783
13859
|
}
|
|
13784
13860
|
e ? (this.vDomTopPad = t ? this.vDomRowHeight * this.vDomTop + n : this.scrollTop - l, this.vDomBottomPad = this.vDomBottom == f - 1 ? 0 : Math.max(this.vDomScrollHeight - this.vDomTopPad - o - l, 0)) : (this.vDomTopPad = 0, this.vDomRowHeight = Math.floor((o + l) / _), this.vDomBottomPad = this.vDomRowHeight * (f - this.vDomBottom - 1), this.vDomScrollHeight = l + o + this.vDomBottomPad - x), r && (r.style.paddingTop = this.vDomTopPad + "px", r.style.paddingBottom = this.vDomBottomPad + "px"), t && (this.scrollTop = this.vDomTopPad + l + n - (this.elementVertical.scrollWidth > this.elementVertical.clientWidth ? this.elementVertical.offsetHeight - x : 0)), this.scrollTop = Math.min(this.scrollTop, this.elementVertical.scrollHeight - x), this.elementVertical.scrollWidth > this.elementVertical.clientWidth && t && (this.scrollTop += this.elementVertical.offsetHeight - x), this.vDomScrollPosTop = this.scrollTop, this.vDomScrollPosBottom = this.scrollTop, i && (i.scrollTop = this.scrollTop), this.dispatch("render-virtual-fill");
|
|
13785
13861
|
}
|
|
@@ -13853,7 +13929,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13853
13929
|
for (let t of e) t.calcHeight();
|
|
13854
13930
|
for (let t of e) t.setCellHeight();
|
|
13855
13931
|
}
|
|
13856
|
-
},
|
|
13932
|
+
}, fl = process.env.NODE_ENV === "development", pl = r`<div class="tabulator-tableholder-wrapper"></div>`, ml = class extends H {
|
|
13857
13933
|
get fixedHeight() {
|
|
13858
13934
|
return this.detectFixedHeight();
|
|
13859
13935
|
}
|
|
@@ -13861,7 +13937,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13861
13937
|
super(e), this.headerWidthObserver = null, this.headerWidthSyncFrame = null, this.element = this.createHolderElement(), this.wrapperElement = this.createWrapperElement(), this.wrapperElement.appendChild(this.element), this.tableElement = this.createTableElement(), this.heightFixer = this.createTableElement(), this.placeholder = null, this.placeholderContents = null, this.firstRender = !1, this.renderMode = "virtual", this.rows = [], this.activeRowsPipeline = [], this.activeRows = [], this.activeRowsCount = 0, this.displayRows = [], this.displayRowsCount = 0, this.scrollTop = 0, this.scrollLeft = 0, this.redrawBlock = !1, this.redrawBlockRestoreConfig = !1, this.redrawBlockRenderInPosition = !1, this.dataPipeline = [], this.displayPipeline = [], this.scrollbarWidth = 0, this.renderer = null, this.rowIndexMap = /* @__PURE__ */ new Map();
|
|
13862
13938
|
}
|
|
13863
13939
|
createWrapperElement() {
|
|
13864
|
-
return
|
|
13940
|
+
return j(pl);
|
|
13865
13941
|
}
|
|
13866
13942
|
createHolderElement() {
|
|
13867
13943
|
let e = document.createElement("div");
|
|
@@ -13878,8 +13954,8 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13878
13954
|
let e = document.createElement("div");
|
|
13879
13955
|
if (e.classList.add("tabulator-placeholder"), typeof t == "string") {
|
|
13880
13956
|
let n = document.createElement("div");
|
|
13881
|
-
n.classList.add("tabulator-placeholder-contents"), n.innerHTML =
|
|
13882
|
-
} else typeof HTMLElement < "u" && t instanceof HTMLElement ? (e.appendChild(t), this.placeholderContents = t) : (
|
|
13957
|
+
n.classList.add("tabulator-placeholder-contents"), n.innerHTML = A(t), e.appendChild(n), this.placeholderContents = n;
|
|
13958
|
+
} else typeof HTMLElement < "u" && t instanceof HTMLElement ? (e.appendChild(t), this.placeholderContents = t) : (fl && console.warn("Invalid placeholder provided, must be string or HTML Element", t), this.placeholder = null);
|
|
13883
13959
|
this.placeholder = e;
|
|
13884
13960
|
}
|
|
13885
13961
|
}
|
|
@@ -13971,8 +14047,8 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
13971
14047
|
if (e && typeof e == "object") {
|
|
13972
14048
|
let t = new G(e, this);
|
|
13973
14049
|
this.rows.push(t), this.registerRowInMap(t);
|
|
13974
|
-
} else
|
|
13975
|
-
}), this.refreshActiveData(!1, !1, t), this.dispatch("data-processed", e), this.dispatchExternal("dataProcessed", e)) :
|
|
14050
|
+
} else fl && console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:", e);
|
|
14051
|
+
}), this.refreshActiveData(!1, !1, t), this.dispatch("data-processed", e), this.dispatchExternal("dataProcessed", e)) : fl && console.error("Data Loading Error - Unable to process data due to invalid data type \nExpecting: array \nReceived: ", typeof e, "\nData: ", e);
|
|
13976
14052
|
}
|
|
13977
14053
|
_wipeElements() {
|
|
13978
14054
|
this.dispatch("rows-wipe"), this.destroy(), this.adjustTableSize(), this.dispatch("rows-wiped");
|
|
@@ -14080,13 +14156,13 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14080
14156
|
this.scrollLeft = e, this.element.scrollLeft = e, this.dispatch("scroll-horizontal", e);
|
|
14081
14157
|
}
|
|
14082
14158
|
registerDataPipelineHandler(e, t) {
|
|
14083
|
-
t == null ?
|
|
14159
|
+
t == null ? fl && console.error("Data pipeline handlers must have a priority in order to be registered") : (this.dataPipeline.push({
|
|
14084
14160
|
handler: e,
|
|
14085
14161
|
priority: t
|
|
14086
14162
|
}), this.dataPipeline.sort((e, t) => e.priority - t.priority));
|
|
14087
14163
|
}
|
|
14088
14164
|
registerDisplayPipelineHandler(e, t) {
|
|
14089
|
-
t == null ?
|
|
14165
|
+
t == null ? fl && console.error("Display pipeline handlers must have a priority in order to be registered") : (this.displayPipeline.push({
|
|
14090
14166
|
handler: e,
|
|
14091
14167
|
priority: t
|
|
14092
14168
|
}), this.displayPipeline.sort((e, t) => e.priority - t.priority));
|
|
@@ -14104,7 +14180,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14104
14180
|
if (a = this.dataPipeline.findIndex((t) => t.handler === e), a > -1) i = "dataPipeline", t && (a == this.dataPipeline.length - 1 ? i = "display" : a++);
|
|
14105
14181
|
else if (a = this.displayPipeline.findIndex((t) => t.handler === e), a > -1) i = "displayPipeline", t && (a == this.displayPipeline.length - 1 ? i = "end" : a++);
|
|
14106
14182
|
else {
|
|
14107
|
-
|
|
14183
|
+
fl && console.error("Unable to refresh data, invalid handler provided", e);
|
|
14108
14184
|
return;
|
|
14109
14185
|
}
|
|
14110
14186
|
} else i = e || "all", a = 0;
|
|
@@ -14191,10 +14267,10 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14191
14267
|
}
|
|
14192
14268
|
initializeRenderer() {
|
|
14193
14269
|
let e, t = {
|
|
14194
|
-
basic:
|
|
14195
|
-
virtual:
|
|
14270
|
+
basic: ul,
|
|
14271
|
+
virtual: dl
|
|
14196
14272
|
};
|
|
14197
|
-
e = typeof this.table.options.renderVertical == "string" ? t[this.table.options.renderVertical] : this.table.options.renderVertical, e ? (this.renderMode = this.table.options.renderVertical, this.renderer = new e(this.table, this.element, this.tableElement), this.renderer?.initialize()) :
|
|
14273
|
+
e = typeof this.table.options.renderVertical == "string" ? t[this.table.options.renderVertical] : this.table.options.renderVertical, e ? (this.renderMode = this.table.options.renderVertical, this.renderer = new e(this.table, this.element, this.tableElement), this.renderer?.initialize()) : fl && console.error("Unable to find matching renderer:", this.table.options.renderVertical);
|
|
14198
14274
|
}
|
|
14199
14275
|
getRenderMode() {
|
|
14200
14276
|
return this.renderMode;
|
|
@@ -14293,7 +14369,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14293
14369
|
e.initEvent("scroll", !1, !0), this.element.dispatchEvent(e);
|
|
14294
14370
|
} else this.element.dispatchEvent(new Event("scroll"));
|
|
14295
14371
|
}
|
|
14296
|
-
},
|
|
14372
|
+
}, hl = class extends H {
|
|
14297
14373
|
constructor(e) {
|
|
14298
14374
|
super(e), this.type = null, this.element = this._createAlertElement(), this.msgElement = this._createMsgElement(), this.element.appendChild(this.msgElement);
|
|
14299
14375
|
}
|
|
@@ -14313,26 +14389,26 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14313
14389
|
for (this.clear(), this.dispatch("alert-show", t), this.type = t; this.msgElement.firstChild;) this.msgElement.removeChild(this.msgElement.firstChild);
|
|
14314
14390
|
this.element.classList.add(this._typeClass()), this.msgElement.classList.add(this._typeClass());
|
|
14315
14391
|
let n;
|
|
14316
|
-
n = typeof e == "function" ? e() : e, n instanceof HTMLElement ? this.msgElement.appendChild(n) : this.msgElement.innerHTML =
|
|
14392
|
+
n = typeof e == "function" ? e() : e, n instanceof HTMLElement ? this.msgElement.appendChild(n) : this.msgElement.innerHTML = A(String(n)), this.table.element.appendChild(this.element);
|
|
14317
14393
|
}
|
|
14318
14394
|
}
|
|
14319
14395
|
clear() {
|
|
14320
14396
|
this.dispatch("alert-hide", this.type), this.element.parentNode && this.element.parentNode.removeChild(this.element), this.element.classList.remove(this._typeClass()), this.msgElement.classList.remove(this._typeClass()), this.type = null;
|
|
14321
14397
|
}
|
|
14322
|
-
},
|
|
14398
|
+
}, gl = process.env.NODE_ENV === "development", _l = class {
|
|
14323
14399
|
constructor(e) {
|
|
14324
14400
|
this.bindings = {}, this.table = e;
|
|
14325
14401
|
}
|
|
14326
14402
|
bind(e, t, n) {
|
|
14327
|
-
this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ?
|
|
14403
|
+
this.bindings[e] || (this.bindings[e] = {}), this.bindings[e][t] ? gl && console.warn("Unable to bind component handler, a matching function name is already bound", e, t, n) : this.bindings[e][t] = n;
|
|
14328
14404
|
}
|
|
14329
14405
|
handle(e, t, n) {
|
|
14330
14406
|
if (typeof n == "string") {
|
|
14331
14407
|
if (this.bindings[e]?.[n] && typeof this.bindings[e][n].bind == "function") return this.bindings[e][n].bind(null, t);
|
|
14332
|
-
|
|
14408
|
+
gl && n !== "then" && !n.startsWith("_") && this.table.options.debugInvalidComponentFuncs && console.error("The " + e + " component does not have a " + n + " function, have you checked that you have the correct Tabulator module installed?");
|
|
14333
14409
|
}
|
|
14334
14410
|
}
|
|
14335
|
-
},
|
|
14411
|
+
}, vl = process.env.NODE_ENV === "development", yl = class e extends H {
|
|
14336
14412
|
static #e = this.DEBOUNCE_DELAY = 500;
|
|
14337
14413
|
constructor(e) {
|
|
14338
14414
|
super(e), this.debounceTimer = null, this.pendingPromise = null, this.pendingResolve = null, this.pendingReject = null, this.requestOrder = 0, this.loading = !1, this.externalLoading = !1;
|
|
@@ -14355,7 +14431,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14355
14431
|
if (this.dispatchExternal("dataLoading", e), e && typeof e == "string" && (e.startsWith("{") || e.startsWith("["))) try {
|
|
14356
14432
|
e = JSON.parse(e);
|
|
14357
14433
|
} catch (e) {
|
|
14358
|
-
throw
|
|
14434
|
+
throw vl && console.error("Data Load Error: ", e), e;
|
|
14359
14435
|
}
|
|
14360
14436
|
return this.confirm("data-loading", [
|
|
14361
14437
|
e,
|
|
@@ -14372,14 +14448,14 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14372
14448
|
n,
|
|
14373
14449
|
i
|
|
14374
14450
|
], !1, Promise.resolve([])).then((e) => {
|
|
14375
|
-
if (this.table.destroyed)
|
|
14451
|
+
if (this.table.destroyed) vl && console.warn("Data Load Response Blocked - Table has been destroyed");
|
|
14376
14452
|
else {
|
|
14377
14453
|
!Array.isArray(e) && typeof e == "object" && (e = this.mapParams(e, this.objectInvert(this.table.options.dataReceiveParams || {})));
|
|
14378
14454
|
let t = this.chain("data-loaded", [e], null, e);
|
|
14379
|
-
o == this.requestOrder ? (this.clearAlert(), t !== !1 && (this.dispatchExternal("dataLoaded", t), this.table.rowManager?.setData(t, r, a ?? !r))) :
|
|
14455
|
+
o == this.requestOrder ? (this.clearAlert(), t !== !1 && (this.dispatchExternal("dataLoaded", t), this.table.rowManager?.setData(t, r, a ?? !r))) : vl && console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made");
|
|
14380
14456
|
}
|
|
14381
14457
|
}).catch((e) => {
|
|
14382
|
-
|
|
14458
|
+
vl && console.error("Data Load Error: ", e), this.dispatchExternal("dataLoadError", e), i || this.alertError(), setTimeout(() => {
|
|
14383
14459
|
this.externalLoading ? (this.table.alertManager?.clear(), this.alertLoader()) : this.clearAlert();
|
|
14384
14460
|
}, this.table.options.dataLoaderErrorTimeout);
|
|
14385
14461
|
}).finally(() => {
|
|
@@ -14406,7 +14482,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14406
14482
|
}
|
|
14407
14483
|
alertLoader() {
|
|
14408
14484
|
if ((this.pendingPromise || this.loading || this.externalLoading) && this.table.alertManager?.element.parentNode) return;
|
|
14409
|
-
let e = typeof this.table.options.dataLoader == "function" ? this.table.options.dataLoader() : this.table.options.dataLoader, t = r`<cx-spinner aria-hidden="true"></cx-spinner>`, n =
|
|
14485
|
+
let e = typeof this.table.options.dataLoader == "function" ? this.table.options.dataLoader() : this.table.options.dataLoader, t = r`<cx-spinner aria-hidden="true"></cx-spinner>`, n = j(t);
|
|
14410
14486
|
e && this.table.alertManager?.alert(this.table.options.dataLoaderLoading || n, "loading");
|
|
14411
14487
|
}
|
|
14412
14488
|
alertError() {
|
|
@@ -14415,7 +14491,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14415
14491
|
clearAlert() {
|
|
14416
14492
|
this.externalLoading || this.table.alertManager?.clear();
|
|
14417
14493
|
}
|
|
14418
|
-
},
|
|
14494
|
+
}, bl = process.env.NODE_ENV === "development", xl = class extends H {
|
|
14419
14495
|
constructor(e) {
|
|
14420
14496
|
super(e), this.deps = {}, this.props = {};
|
|
14421
14497
|
}
|
|
@@ -14443,14 +14519,14 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14443
14519
|
return this.deps[e] ? n = this.deps[e] : globalThis[e] ? (this.deps[e] = globalThis[e], n = this.deps[e]) : t || this.error(e), n;
|
|
14444
14520
|
}
|
|
14445
14521
|
error(e) {
|
|
14446
|
-
|
|
14522
|
+
bl && console.error("Unable to find dependency", e, "Please check documentation and ensure you have imported the required library into your project");
|
|
14447
14523
|
}
|
|
14448
|
-
},
|
|
14524
|
+
}, Sl = process.env.NODE_ENV === "development", Cl = class extends H {
|
|
14449
14525
|
constructor(e) {
|
|
14450
14526
|
super(e);
|
|
14451
14527
|
}
|
|
14452
14528
|
_warnUser(...e) {
|
|
14453
|
-
this.options("debugDeprecation") &&
|
|
14529
|
+
this.options("debugDeprecation") && Sl && console.warn(...e);
|
|
14454
14530
|
}
|
|
14455
14531
|
check(e, t, n) {
|
|
14456
14532
|
if (this.options(e) === void 0 || this.options(e) === null) return !0;
|
|
@@ -14468,7 +14544,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14468
14544
|
msg(e) {
|
|
14469
14545
|
this._warnUser(e);
|
|
14470
14546
|
}
|
|
14471
|
-
},
|
|
14547
|
+
}, wl = process.env.NODE_ENV === "development", Tl = class {
|
|
14472
14548
|
constructor(e, t, n) {
|
|
14473
14549
|
this.events = {}, this.subscriptionNotifiers = {}, this.table = e, this.events = {}, this.optionsList = t || {}, this.subscriptionNotifiers = {}, this.dispatch = n ? this._debugDispatch.bind(this) : this._dispatch.bind(this), this.debug = n;
|
|
14474
14550
|
}
|
|
@@ -14484,12 +14560,12 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14484
14560
|
let n = this.events[e].findIndex((e) => e === t);
|
|
14485
14561
|
if (n > -1) this.events[e].splice(n, 1);
|
|
14486
14562
|
else {
|
|
14487
|
-
|
|
14563
|
+
wl && console.warn("Cannot remove event, no matching event found:", e, t);
|
|
14488
14564
|
return;
|
|
14489
14565
|
}
|
|
14490
14566
|
} else delete this.events[e];
|
|
14491
14567
|
} else {
|
|
14492
|
-
|
|
14568
|
+
wl && console.warn("Cannot remove event, no events set on:", e);
|
|
14493
14569
|
return;
|
|
14494
14570
|
}
|
|
14495
14571
|
this._notifySubscriptionChange(e, this.subscribed(e));
|
|
@@ -14512,9 +14588,9 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14512
14588
|
}
|
|
14513
14589
|
_debugDispatch(e, ...t) {
|
|
14514
14590
|
let n = "ExternalEvent:" + e;
|
|
14515
|
-
return
|
|
14591
|
+
return wl && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(n, ...t), this._dispatch(e, ...t);
|
|
14516
14592
|
}
|
|
14517
|
-
},
|
|
14593
|
+
}, El = process.env.NODE_ENV === "development", Dl = class extends H {
|
|
14518
14594
|
constructor(e) {
|
|
14519
14595
|
super(e), this.el = null, this.abortClasses = ["tabulator-headers", "tabulator-table"], this.previousTargets = {}, this.listeners = [
|
|
14520
14596
|
"click",
|
|
@@ -14643,7 +14719,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14643
14719
|
case "column":
|
|
14644
14720
|
r.components.includes("column") && (n = this.table.columnManager?.findColumn(a));
|
|
14645
14721
|
break;
|
|
14646
|
-
case "cell": r.components.includes("cell") && (i.row instanceof G ? n = i.row.findCell(a) :
|
|
14722
|
+
case "cell": r.components.includes("cell") && (i.row instanceof G ? n = i.row.findCell(a) : El && t.row && console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));
|
|
14647
14723
|
}
|
|
14648
14724
|
n && (i[e] = n, o[e] = {
|
|
14649
14725
|
component: n,
|
|
@@ -14667,7 +14743,7 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14667
14743
|
n.handler && this.el && (this.el.removeEventListener(t, n.handler), n.handler = null);
|
|
14668
14744
|
}
|
|
14669
14745
|
}
|
|
14670
|
-
},
|
|
14746
|
+
}, Ol = process.env.NODE_ENV === "development", kl = class {
|
|
14671
14747
|
constructor(e) {
|
|
14672
14748
|
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;
|
|
14673
14749
|
}
|
|
@@ -14686,12 +14762,12 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14686
14762
|
let n = this.events[e].findIndex((e) => e.callback === t);
|
|
14687
14763
|
if (n > -1) this.events[e].splice(n, 1), this.events[e].length || delete this.events[e];
|
|
14688
14764
|
else {
|
|
14689
|
-
|
|
14765
|
+
Ol && console.warn("Cannot remove event, no matching event found:", e, t);
|
|
14690
14766
|
return;
|
|
14691
14767
|
}
|
|
14692
14768
|
} else delete this.events[e];
|
|
14693
14769
|
} else {
|
|
14694
|
-
|
|
14770
|
+
Ol && console.warn("Cannot remove event, no events set on:", e);
|
|
14695
14771
|
return;
|
|
14696
14772
|
}
|
|
14697
14773
|
this._notifySubscriptionChange(e, this.subscribed(e));
|
|
@@ -14724,20 +14800,20 @@ var Kc = process.env.NODE_ENV === "development", qc = 2e3, Jc = 1e3, Yc = "data-
|
|
|
14724
14800
|
}
|
|
14725
14801
|
_debugDispatch(e, ...t) {
|
|
14726
14802
|
let n = "InternalEvent:" + e;
|
|
14727
|
-
return
|
|
14803
|
+
return Ol && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(n, ...t), this._dispatch(e, ...t);
|
|
14728
14804
|
}
|
|
14729
14805
|
_debugChain(e, t, n, r) {
|
|
14730
14806
|
let i = "InternalEvent:" + e;
|
|
14731
|
-
return
|
|
14807
|
+
return Ol && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(i, t, n, r), this._chain(e, t, n, r);
|
|
14732
14808
|
}
|
|
14733
14809
|
_debugConfirm(e, t) {
|
|
14734
14810
|
let n = "InternalEvent:" + e;
|
|
14735
|
-
return
|
|
14811
|
+
return Ol && (this.debug === !0 || Array.isArray(this.debug) && this.debug.includes(e)) && console.log(n, t), this._confirm(e, t);
|
|
14736
14812
|
}
|
|
14737
14813
|
};
|
|
14738
14814
|
//#endregion
|
|
14739
14815
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Layout/defaults/modes/fitColumns.ts
|
|
14740
|
-
function
|
|
14816
|
+
function Al(e) {
|
|
14741
14817
|
let t = this.table.element?.clientWidth || 0, n = this.table.columnManager?.contentsElement;
|
|
14742
14818
|
if (n) {
|
|
14743
14819
|
let e = getComputedStyle(n), r = Number.parseFloat(e.borderLeftWidth) || 0, i = Number.parseFloat(e.borderRightWidth) || 0;
|
|
@@ -14788,18 +14864,18 @@ function Dl(e) {
|
|
|
14788
14864
|
}
|
|
14789
14865
|
//#endregion
|
|
14790
14866
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Layout/defaults/modes/fitData.ts
|
|
14791
|
-
async function
|
|
14867
|
+
async function jl(e, t) {
|
|
14792
14868
|
t && this.table.columnManager?.renderer && await this.table.columnManager.renderer.reinitializeColumnWidths(e), this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
14793
14869
|
}
|
|
14794
14870
|
//#endregion
|
|
14795
14871
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Layout/defaults/modes/fitDataGeneral.ts
|
|
14796
|
-
async function
|
|
14872
|
+
async function Ml(e) {
|
|
14797
14873
|
for (let t of e) await t.reinitializeWidth();
|
|
14798
14874
|
this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", !0) && this.table.modules.responsiveLayout.update();
|
|
14799
14875
|
}
|
|
14800
14876
|
//#endregion
|
|
14801
14877
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Layout/defaults/modes/fitDataStretch.ts
|
|
14802
|
-
async function
|
|
14878
|
+
async function Nl(e) {
|
|
14803
14879
|
let t = 0, n = this.table.element?.clientWidth || 0, r = this.table.columnManager?.contentsElement;
|
|
14804
14880
|
if (r) {
|
|
14805
14881
|
let e = getComputedStyle(r), t = Number.parseFloat(e.borderLeftWidth) || 0, i = Number.parseFloat(e.borderRightWidth) || 0;
|
|
@@ -14811,15 +14887,15 @@ async function Al(e) {
|
|
|
14811
14887
|
}
|
|
14812
14888
|
//#endregion
|
|
14813
14889
|
//#region ../../packages/hybrid/table-core/src/tabulator-tables/modules/Layout/defaults/modes.ts
|
|
14814
|
-
var
|
|
14815
|
-
fitColumns:
|
|
14816
|
-
fitData:
|
|
14817
|
-
fitDataFill:
|
|
14818
|
-
fitDataStretch:
|
|
14819
|
-
fitDataTable:
|
|
14820
|
-
},
|
|
14890
|
+
var Pl = {
|
|
14891
|
+
fitColumns: Al,
|
|
14892
|
+
fitData: jl,
|
|
14893
|
+
fitDataFill: Ml,
|
|
14894
|
+
fitDataStretch: Nl,
|
|
14895
|
+
fitDataTable: Ml
|
|
14896
|
+
}, Fl = process.env.NODE_ENV === "development", Il = class e extends W {
|
|
14821
14897
|
static #e = this.moduleName = "layout";
|
|
14822
|
-
static #t = this.modes =
|
|
14898
|
+
static #t = this.modes = Pl;
|
|
14823
14899
|
constructor(e) {
|
|
14824
14900
|
super(e), this.mode = null, this.registerTableOption("layout", "fitData"), this.registerTableOption("layoutColumnsOnNewData", !1), this.registerColumnOption("widthGrow"), this.registerColumnOption("widthShrink");
|
|
14825
14901
|
}
|
|
@@ -14827,7 +14903,7 @@ var jl = {
|
|
|
14827
14903
|
let t = this.table.options.layout;
|
|
14828
14904
|
t && e.modes[t] ? this.mode = t :
|
|
14829
14905
|
/* c8 ignore next 5 */
|
|
14830
|
-
(
|
|
14906
|
+
(Fl && console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : " + t), this.mode = "fitData"), this.table.element.setAttribute("tabulator-layout", this.mode), this.subscribe("column-init", this.initializeColumn.bind(this));
|
|
14831
14907
|
}
|
|
14832
14908
|
initializeColumn(e) {
|
|
14833
14909
|
e.definition.widthGrow !== null && e.definition.widthGrow !== void 0 && (e.definition.widthGrow = Number(e.definition.widthGrow)), e.definition.widthShrink !== null && e.definition.widthShrink !== void 0 && (e.definition.widthShrink = Number(e.definition.widthShrink));
|
|
@@ -14839,7 +14915,7 @@ var jl = {
|
|
|
14839
14915
|
let n = this.table.columnManager?.columnsByIndex.find((e) => e.definition.variableHeight || e.definition.formatter === "textarea");
|
|
14840
14916
|
this.dispatch("layout-refreshing"), this.mode && e.modes[this.mode] && await Promise.resolve(e.modes[this.mode].call(this, this.table.columnManager?.columnsByIndex || [], t)), n && this.table.rowManager?.normalizeHeight(!0), this.dispatch("layout-refreshed");
|
|
14841
14917
|
}
|
|
14842
|
-
},
|
|
14918
|
+
}, Ll = { default: {
|
|
14843
14919
|
columns: {},
|
|
14844
14920
|
data: {
|
|
14845
14921
|
error: "Error",
|
|
@@ -14872,9 +14948,9 @@ var jl = {
|
|
|
14872
14948
|
prev: "Prev",
|
|
14873
14949
|
prev_title: "Prev Page"
|
|
14874
14950
|
}
|
|
14875
|
-
} },
|
|
14951
|
+
} }, Rl = process.env.NODE_ENV === "development", zl = class e extends W {
|
|
14876
14952
|
static #e = this.moduleName = "localize";
|
|
14877
|
-
static #t = this.langs =
|
|
14953
|
+
static #t = this.langs = Ll;
|
|
14878
14954
|
constructor(e) {
|
|
14879
14955
|
super(e), this.locale = "default", this.lang = !1, this.bindings = {}, this.langList = {}, this.registerTableOption("locale", !1), this.registerTableOption("langs", {});
|
|
14880
14956
|
}
|
|
@@ -14902,7 +14978,7 @@ var jl = {
|
|
|
14902
14978
|
};
|
|
14903
14979
|
if (t && !this.langList[t]) {
|
|
14904
14980
|
let e = t.split("-")[0];
|
|
14905
|
-
this.langList[e] ? (
|
|
14981
|
+
this.langList[e] ? (Rl && console.warn("Localization Error - Exact matching locale not found, using closest match: ", t, e), t = e) : (Rl && console.warn("Localization Error - Matching locale not found, using default: ", t), t = "default");
|
|
14906
14982
|
}
|
|
14907
14983
|
this.locale = t, this.lang = U.deepClone(this.langList.default || {}), t !== "default" && this.langList[t] && n(this.langList[t], this.lang), this.dispatchExternal("localized", this.locale, this.lang), this._executeBindings();
|
|
14908
14984
|
}
|
|
@@ -14933,7 +15009,7 @@ var jl = {
|
|
|
14933
15009
|
t(this.getText(e), this.lang || {});
|
|
14934
15010
|
});
|
|
14935
15011
|
}
|
|
14936
|
-
},
|
|
15012
|
+
}, Bl = process.env.NODE_ENV === "development", Vl = class extends W {
|
|
14937
15013
|
static #e = this.moduleName = "comms";
|
|
14938
15014
|
constructor(e) {
|
|
14939
15015
|
super(e);
|
|
@@ -14951,17 +15027,17 @@ var jl = {
|
|
|
14951
15027
|
let i = this.getConnections(e);
|
|
14952
15028
|
i.forEach((e) => {
|
|
14953
15029
|
e.tableComms(this.table.element, t, n, r);
|
|
14954
|
-
}), !i.length && e &&
|
|
15030
|
+
}), !i.length && e && Bl && console.warn("Table Connection Error - No tables matching selector found", e);
|
|
14955
15031
|
}
|
|
14956
15032
|
receive(e, t, n, r) {
|
|
14957
15033
|
if (this.table.modExists(t)) return this.table.modules[t]?.commsReceived?.(e, n, r);
|
|
14958
|
-
|
|
15034
|
+
Bl && console.warn("Inter-table Comms Error - no such module:", t);
|
|
14959
15035
|
}
|
|
14960
|
-
},
|
|
14961
|
-
CommsModule: () =>
|
|
14962
|
-
LayoutModule: () =>
|
|
14963
|
-
LocalizeModule: () =>
|
|
14964
|
-
}),
|
|
15036
|
+
}, Hl = /* @__PURE__ */ t({
|
|
15037
|
+
CommsModule: () => Vl,
|
|
15038
|
+
LayoutModule: () => Il,
|
|
15039
|
+
LocalizeModule: () => zl
|
|
15040
|
+
}), Ul = process.env.NODE_ENV === "development", Wl = class e {
|
|
14965
15041
|
static #e = this.registry = {
|
|
14966
15042
|
deregister(t) {
|
|
14967
15043
|
let n = e.registry.tables.indexOf(t);
|
|
@@ -14974,11 +15050,11 @@ var jl = {
|
|
|
14974
15050
|
} else typeof HTMLElement < "u" && t instanceof HTMLElement || t instanceof e ? (a = e.registry.matchElement(t), a && r.push(a)) : Array.isArray(t) ? t.forEach((t) => {
|
|
14975
15051
|
let n = e.registry.lookupTable(t, !0);
|
|
14976
15052
|
r.push(...n);
|
|
14977
|
-
}) :
|
|
15053
|
+
}) : Ul && !n && console.warn("Table Connection Error - Invalid Selector", t);
|
|
14978
15054
|
return r;
|
|
14979
15055
|
},
|
|
14980
15056
|
matchElement(t) {
|
|
14981
|
-
return e.registry.tables.find((e) => t instanceof
|
|
15057
|
+
return e.registry.tables.find((e) => t instanceof ql ? e === t : e.element === t);
|
|
14982
15058
|
},
|
|
14983
15059
|
register(t) {
|
|
14984
15060
|
e.registry.tables.push(t);
|
|
@@ -14989,7 +15065,7 @@ var jl = {
|
|
|
14989
15065
|
let n = e.registry.lookupTable(t, !0);
|
|
14990
15066
|
return Array.isArray(n) && !n.length ? !1 : n;
|
|
14991
15067
|
}
|
|
14992
|
-
},
|
|
15068
|
+
}, Gl = process.env.NODE_ENV === "development", Kl = class e extends Wl {
|
|
14993
15069
|
static #e = this.moduleBindings = {};
|
|
14994
15070
|
static #t = this.moduleExtensions = {};
|
|
14995
15071
|
static #n = this.modulesRegistered = !1;
|
|
@@ -14998,16 +15074,16 @@ var jl = {
|
|
|
14998
15074
|
super(), this.modulesCore = [], this.modulesRegular = [];
|
|
14999
15075
|
}
|
|
15000
15076
|
static initializeModuleBinder(t) {
|
|
15001
|
-
e.modulesRegistered || (e.modulesRegistered = !0, e._registerModules(
|
|
15077
|
+
e.modulesRegistered || (e.modulesRegistered = !0, e._registerModules(Hl, !0), t && e._registerModules(t));
|
|
15002
15078
|
}
|
|
15003
15079
|
static _extendModule(t, n, r) {
|
|
15004
15080
|
if (e.moduleBindings[t]) {
|
|
15005
15081
|
let i = e.moduleBindings[t][n];
|
|
15006
15082
|
if (i) {
|
|
15007
15083
|
if (typeof r == "object") for (let e in r) i[e] = r[e];
|
|
15008
|
-
else
|
|
15009
|
-
} else
|
|
15010
|
-
} else
|
|
15084
|
+
else Gl && console.warn("Module Error - Invalid value type, it must be an object");
|
|
15085
|
+
} else Gl && console.warn("Module Error - property does not exist:", n);
|
|
15086
|
+
} else Gl && console.warn("Module Error - module does not exist:", t);
|
|
15011
15087
|
}
|
|
15012
15088
|
static _registerModules(t, n) {
|
|
15013
15089
|
let r = Object.values(t);
|
|
@@ -15021,7 +15097,7 @@ var jl = {
|
|
|
15021
15097
|
});
|
|
15022
15098
|
}
|
|
15023
15099
|
static _registerModuleBinding(t) {
|
|
15024
|
-
t.moduleName ? e.moduleBindings[t.moduleName] = t :
|
|
15100
|
+
t.moduleName ? e.moduleBindings[t.moduleName] = t : Gl && console.error("Unable to bind module, no moduleName defined", t.moduleName);
|
|
15025
15101
|
}
|
|
15026
15102
|
static _registerModuleExtensions(t) {
|
|
15027
15103
|
let n = t.moduleExtensions;
|
|
@@ -15048,8 +15124,8 @@ var jl = {
|
|
|
15048
15124
|
}
|
|
15049
15125
|
t.sort((e, t) => (e.constructor.moduleInitOrder ?? 0) > (t.constructor.moduleInitOrder ?? 0) ? 1 : -1), n.sort((e, t) => (e.constructor.moduleInitOrder ?? 0) > (t.constructor.moduleInitOrder ?? 0) ? 1 : -1), this.modulesRegular = t.concat(r.concat(n));
|
|
15050
15126
|
}
|
|
15051
|
-
}, X = process.env.NODE_ENV === "development",
|
|
15052
|
-
static #e = this.defaultOptions =
|
|
15127
|
+
}, X = process.env.NODE_ENV === "development", ql = class e extends Kl {
|
|
15128
|
+
static #e = this.defaultOptions = cl;
|
|
15053
15129
|
static extendModule(...t) {
|
|
15054
15130
|
e.initializeModuleBinder(), e._extendModule(...t);
|
|
15055
15131
|
}
|
|
@@ -15057,7 +15133,7 @@ var jl = {
|
|
|
15057
15133
|
e.initializeModuleBinder(), e._registerModule(...t);
|
|
15058
15134
|
}
|
|
15059
15135
|
constructor(t, n, r) {
|
|
15060
|
-
super(), e.initializeModuleBinder(r), this.options = {}, this.columnManager = null, this.rowManager = null, this.footerManager = null, this.alertManager = null, this.vdomHoz = null, this.externalEvents = null, this.eventBus = null, this.interactionMonitor = !1, this.browser = "", this.browserSlow = !1, this.browserMobile = !1, this.rtl = !1, this.originalElement = null, this.componentFunctionBinder = new
|
|
15136
|
+
super(), e.initializeModuleBinder(r), this.options = {}, this.columnManager = null, this.rowManager = null, this.footerManager = null, this.alertManager = null, this.vdomHoz = null, this.externalEvents = null, this.eventBus = null, this.interactionMonitor = !1, this.browser = "", this.browserSlow = !1, this.browserMobile = !1, this.rtl = !1, this.originalElement = null, this.componentFunctionBinder = new _l(this), this.dataLoader = null, this.modules = {}, this.modulesCore = [], this.modulesRegular = [], this.deprecationAdvisor = new Cl(this), this.optionsList = new al(this, "table constructor"), this.dependencyRegistry = new xl(this), this.initialized = !1, this.destroyed = !1, this.initializeElement(t) && (this.initializeCoreSystems(n), setTimeout(() => {
|
|
15061
15137
|
this._create();
|
|
15062
15138
|
})), this.constructor.registry.register(this);
|
|
15063
15139
|
}
|
|
@@ -15070,7 +15146,7 @@ var jl = {
|
|
|
15070
15146
|
return X && console.error("Tabulator Creation Error - Invalid element provided:", e), !1;
|
|
15071
15147
|
}
|
|
15072
15148
|
initializeCoreSystems(t) {
|
|
15073
|
-
this.columnManager = new
|
|
15149
|
+
this.columnManager = new sl(this), this.rowManager = new ml(this), this.footerManager = new ll(this), this.dataLoader = new yl(this), this.alertManager = new hl(this), this.toolbar = t?.toolbarElement, this._bindModules(), this.options = this.optionsList.generate(e.defaultOptions, t), this._clearObjectPointers(), this._mapDeprecatedFunctionality(), this.externalEvents = new Tl(this, this.options, this.options.debugEventsExternal), this.eventBus = new kl(this.options.debugEventsInternal), this.interactionMonitor = new Dl(this), this.dataLoader.initialize(), this.footerManager.initialize(), this.dependencyRegistry.initialize();
|
|
15074
15150
|
}
|
|
15075
15151
|
_mapDeprecatedFunctionality() {}
|
|
15076
15152
|
_clearSelection() {
|
|
@@ -15336,17 +15412,17 @@ var jl = {
|
|
|
15336
15412
|
let t = this.modules[e];
|
|
15337
15413
|
return !t && X && console.error("Tabulator module not installed: " + e), t;
|
|
15338
15414
|
}
|
|
15339
|
-
},
|
|
15415
|
+
}, Jl = class extends ql {
|
|
15340
15416
|
static extendModule(...e) {
|
|
15341
|
-
|
|
15417
|
+
ql.initializeModuleBinder(el), ql._extendModule(...e);
|
|
15342
15418
|
}
|
|
15343
15419
|
static registerModule(...e) {
|
|
15344
|
-
|
|
15420
|
+
ql.initializeModuleBinder(el), ql._registerModule(...e);
|
|
15345
15421
|
}
|
|
15346
15422
|
constructor(e, t) {
|
|
15347
|
-
super(e, t,
|
|
15423
|
+
super(e, t, el);
|
|
15348
15424
|
}
|
|
15349
|
-
},
|
|
15425
|
+
}, Yl = new Set(Object.values(Se)), Xl = class {
|
|
15350
15426
|
constructor(e) {
|
|
15351
15427
|
this.facets = [], this.availableFacets = [], this.host = e, e.addController(this);
|
|
15352
15428
|
}
|
|
@@ -15360,11 +15436,11 @@ var jl = {
|
|
|
15360
15436
|
let t = e?.facets;
|
|
15361
15437
|
if (!t && !this.host.facetConfig) return;
|
|
15362
15438
|
t && (this.host.hasFacets = !0);
|
|
15363
|
-
let n =
|
|
15439
|
+
let n = Zl(this.host.facetConfig ?? ""), r = eu(t ?? {}, n);
|
|
15364
15440
|
this.facets = r, this.availableFacets = r.map((e) => e.facetDetails), this.host.requestUpdate();
|
|
15365
15441
|
}
|
|
15366
15442
|
};
|
|
15367
|
-
function
|
|
15443
|
+
function Zl(e) {
|
|
15368
15444
|
let t = /* @__PURE__ */ new Map();
|
|
15369
15445
|
if (!e.trim()) return t;
|
|
15370
15446
|
for (let n of e.trim().split(/\s*,\s*/)) {
|
|
@@ -15374,16 +15450,16 @@ function Jl(e) {
|
|
|
15374
15450
|
s === wt.Checkbox && (c.includes(St.Single) || c.includes(St.Multiple)) ? t.set(a, {
|
|
15375
15451
|
displayName: o,
|
|
15376
15452
|
facetFieldName: a,
|
|
15377
|
-
selection:
|
|
15453
|
+
selection: Ql(c),
|
|
15378
15454
|
type: Ct.Checkbox
|
|
15379
15455
|
}) : s === wt.DatePicker ? t.set(a, {
|
|
15380
|
-
displayFormat:
|
|
15456
|
+
displayFormat: $l(c),
|
|
15381
15457
|
displayName: o,
|
|
15382
15458
|
facetFieldName: a,
|
|
15383
15459
|
showTime: c.includes(Tt.ShowTime),
|
|
15384
15460
|
type: Ct.DatePicker
|
|
15385
15461
|
}) : s === wt.DateRangePicker && t.set(a, {
|
|
15386
|
-
displayFormat:
|
|
15462
|
+
displayFormat: $l(c),
|
|
15387
15463
|
displayName: o,
|
|
15388
15464
|
facetFieldName: a,
|
|
15389
15465
|
showPreset: c.includes(Tt.ShowPreset),
|
|
@@ -15393,13 +15469,13 @@ function Jl(e) {
|
|
|
15393
15469
|
}
|
|
15394
15470
|
return t;
|
|
15395
15471
|
}
|
|
15396
|
-
function
|
|
15472
|
+
function Ql(e) {
|
|
15397
15473
|
return e.includes(St.Multiple) ? St.Multiple : St.Single;
|
|
15398
15474
|
}
|
|
15399
|
-
function
|
|
15400
|
-
return e.find((e) =>
|
|
15475
|
+
function $l(e) {
|
|
15476
|
+
return e.find((e) => Yl.has(e));
|
|
15401
15477
|
}
|
|
15402
|
-
function
|
|
15478
|
+
function eu(e, t) {
|
|
15403
15479
|
let n = new Set(Object.keys(e));
|
|
15404
15480
|
for (let [e, r] of t) r.type !== Ct.Checkbox && n.add(e);
|
|
15405
15481
|
return [...n].map((n) => ({
|
|
@@ -15416,7 +15492,7 @@ function Zl(e, t) {
|
|
|
15416
15492
|
}
|
|
15417
15493
|
//#endregion
|
|
15418
15494
|
//#region ../../packages/hybrid/table-core/src/table/controllers/ajax-facets/ajax-facet-filter-controller.ts
|
|
15419
|
-
var
|
|
15495
|
+
var tu = class {
|
|
15420
15496
|
constructor(e, t) {
|
|
15421
15497
|
this.host = e, this.filterController = t, this.handleFacetedFilterChange = this.handleFacetedFilterChange.bind(this), e.addController(this);
|
|
15422
15498
|
}
|
|
@@ -15430,7 +15506,7 @@ var Ql = class {
|
|
|
15430
15506
|
let { dateRanges: t, selection: n } = e.detail;
|
|
15431
15507
|
this.filterController.syncFacetedFilters(n), t && this.filterController.syncDateRangeFilters(t, this.host.dateFilterCompareFormat);
|
|
15432
15508
|
}
|
|
15433
|
-
},
|
|
15509
|
+
}, nu = class {
|
|
15434
15510
|
constructor(e) {
|
|
15435
15511
|
this.filters = /* @__PURE__ */ new Map(), this.isConnected = !1, this.lastAppliedFilters = null, this.host = e, this.host.addController(this);
|
|
15436
15512
|
}
|
|
@@ -15546,7 +15622,7 @@ var Ql = class {
|
|
|
15546
15622
|
let e = this.host.tabulatorInstance;
|
|
15547
15623
|
if (!e?.initialized) return;
|
|
15548
15624
|
let t = this.getFilters(), n = this.getMergedFilters();
|
|
15549
|
-
if (!
|
|
15625
|
+
if (!te(n, this.lastAppliedFilters)) {
|
|
15550
15626
|
if (this.lastAppliedFilters === null && t.length === 0) {
|
|
15551
15627
|
this.lastAppliedFilters = n;
|
|
15552
15628
|
return;
|
|
@@ -15554,7 +15630,7 @@ var Ql = class {
|
|
|
15554
15630
|
this.lastAppliedFilters = n, e.setFilter(n);
|
|
15555
15631
|
}
|
|
15556
15632
|
}
|
|
15557
|
-
},
|
|
15633
|
+
}, ru = class {
|
|
15558
15634
|
constructor(e) {
|
|
15559
15635
|
this.isSelectAllMode = !1, this.deselectedIds = /* @__PURE__ */ new Set(), this.selectedIdsForRemote = /* @__PURE__ */ new Set(), this.remoteTotalCount = 0, this.selectedRowsCount = 0, this.selectionSyncSkip = !1, this.isPageTransition = !1, this.host = e, this.host.addController(this), this.handleRowSelectionChanged = this.handleRowSelectionChanged.bind(this), this.handleDataLoaded = this.handleDataLoaded.bind(this), this.handleDataLoading = this.handleDataLoading.bind(this);
|
|
15560
15636
|
}
|
|
@@ -15674,32 +15750,32 @@ var Ql = class {
|
|
|
15674
15750
|
findDisabledFn() {
|
|
15675
15751
|
return [typeof this.host.rowHeader == "object" ? this.host.rowHeader : void 0, ...this.host.columns ?? []].find((e) => e?.formatter === "rowSelection" || e?.titleFormatter === "rowSelection")?.formatterParams?.disabled;
|
|
15676
15752
|
}
|
|
15677
|
-
}, tu = i`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srgb, var(--cx-color-neutral-0) 40%, transparent);text-align:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.tabulator .tabulator-alert.tabulator-alert-state-loading{--loading-offset:var(--cx-spacing-x-small);top:calc(var(--header-height,var(--cx-spacing-3x-large)) + var(--border-width) + var(--loading-offset));height:calc(100% - var(--header-height,var(--cx-spacing-3x-large)) - var(--border-width) - var(--loading-offset))}.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading{height:100%;top:0}.tabulator .tabulator-alert .tabulator-alert-msg{padding:var(--cx-spacing-small) var(--cx-spacing-large);border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-0);font-weight:700;font-size:var(--cx-font-size-medium);margin:0 auto;display:inline-block}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{color:var(--cx-color-neutral-1000)}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid var(--cx-color-danger);color:var(--cx-color-danger-900)}`, nu = i`:host{--width:100%;--table-height:var(--height,auto);--table-min-height:var(--min-height,0);--table-max-height:var(--max-height,auto);--color:var(--cx-color-neutral-900);--background-color:var(--cx-color-neutral-0);--border-width:var(--cx-input-border-width);--border-color:var(--cx-color-neutral-200);--outer-border-color:var(--border-color);--border-radius:var(--cx-border-radius-medium);--row-background-color:var(--cx-color-neutral-0);--row-even-background-color:var(--cx-color-neutral-0);--row-hover-background-color:var(--cx-color-neutral-0);--row-even-hover-background-color:var(--cx-color-neutral-0);--row-gap:0;--frozen-border-color:var(--cx-color-neutral-300);--frozen-overlay-z-index:12;--frozen-divider-z-index:13;--header-background-color:var(--cx-color-neutral-50);--header-hover-background-color:var(--cx-color-primary-50);--header-font-family:var(--cx-font-sans);--header-font-style:normal;--header-font-weight:var(--cx-font-weight-medium);--header-font-size:var(--cx-font-size-x-small);--header-color:var(--cx-color-neutral-700);--header-border-right:1px solid var(--cx-color-neutral-200);--header-border-bottom:none;--header-height:var(--cx-spacing-3x-large);--header-horizontal-padding:var(--cx-spacing-large);--body-background-color:var(--cx-color-neutral-0);--cell-border-color:transparent;--cell-bottom-border-color:var(--cx-color-neutral-200);--cell-horizontal-padding:var(--cx-spacing-large);--cell-padding-top:var(--cx-spacing-2x-small);--cell-padding-right:var(--cell-horizontal-padding);--cell-padding-bottom:var(--cx-spacing-2x-small);--cell-padding-left:var(--cell-horizontal-padding);--column-gap:0px;--cell-font-family:var(--cx-font-sans);--cell-font-size:var(--cx-font-size-small);--cell-font-weight:var(--cx-font-weight-regular);--cell-line-height:normal;--cell-hover-background-color:var(--cx-color-neutral-50);--group-count-color:var(--cx-color-danger-500);--group-row-background-color:var(--row-background-color);--group-row-hover-background-color:var(--row-hover-background-color);--group-row-border-color:var(--cx-color-neutral-200);--group-row-color:var(--cx-color-neutral-900);--group-row-font-weight:var(--cx-font-weight-medium);--row-header-border-color:var(--cx-color-neutral-200);--tabulator-tree-control-width:18px;--tabulator-tree-child-indent:9px;--tabulator-tree-step:calc(var(--tabulator-tree-control-width) + var(--tabulator-tree-child-indent));isolation:isolate;width:var(--width);display:block}.container{height:100%}.tabulator{background-color:var(--background-color);font-size:var(--font-size,var(--cx-font-size-small));text-align:left;height:var(--table-height);min-height:var(--table-min-height);max-height:var(--table-max-height);border-radius:var(--cx-border-radius-medium);border-inline:var(--border-width) solid transparent;flex-direction:column;line-height:normal;display:flex;position:relative;overflow:hidden}.tabulator.tabulator-overflow-x{border-inline-color:var(--outer-border-color);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-tableholder-wrapper{flex:1;width:fit-content;max-width:100%;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-tableholder{white-space:nowrap;-webkit-overflow-scrolling:touch;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);flex:1;min-width:0;position:relative;overflow:auto}.tabulator .tabulator-tableholder-wrapper:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator.tabulator-header-hidden .tabulator-tableholder-wrapper:before{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-table{background-color:var(--body-background-color,var(--cx-color-neutral-0));white-space:nowrap;color:var(--color);min-width:100%;display:inline-block;position:relative;overflow:visible}`, ru = i`.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:var(--cx-color-neutral-200)!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;text-align:left;border-bottom:1px solid var(--cx-color-neutral-400);border-top:1px solid var(--cx-color-neutral-400);width:100%;overflow:hidden;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}`, iu = i`.tabulator-clickable-cell{color:var(--clickable-cell-color,var(--cx-color-primary-600));cursor:pointer}.tabulator-clickable-cell:hover{text-decoration:underline}.tabulator-clickable-cell cx-icon,.tabulator-clickable-cell cx-icon-button{color:var(--color)}`, au = i`.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:none}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;width:7px;height:9px;margin-top:-9px;position:absolute}.tabulator-row .tabulator-cell .tabulator-data-tree-control{flex:0 0 var(--tabulator-tree-control-width);vertical-align:middle;width:var(--tabulator-tree-control-width);justify-content:center;align-items:center;display:inline-flex}`, ou = i`.tabulator-row .tabulator-cell.tabulator-editing{padding:0 var(--cell-horizontal-padding);outline:none}.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing select{font-size:inherit;color:inherit;border-radius:var(--cx-input-border-radius-medium);background:0 0;border:none;outline:none;padding:0;font-family:inherit}.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing select{border:var(--border-width) solid var(--border-color);background:0 0;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:var(--border-width) solid var(--cx-color-danger);background:var(--cx-color-danger-100)}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:var(--border-width) solid var(--border-color);color:var(--cx-color-danger);background:0 0}.tabulator-row .tabulator-cell.tabulator-editing.tabulator-edit-list{padding:0 var(--cx-spacing-x-small)}.tabulator-edit-list{position:relative}.tabulator-edit-list:not(.tabulator-editing) .tabulator-cell-content{padding-right:var(--cx-spacing-large)}.tabulator-edit-list-trigger{top:50%;right:var(--cx-spacing-small);width:var(--cx-spacing-large);appearance:none;height:100%;color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;transform:translateY(-50%)}.tabulator-edit-list.tabulator-editing .tabulator-edit-list-trigger{display:none}.tabulator-edit-list-trigger-caret{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-500)}`, su = i`.tabulator .tabulator-footer{border-top:1px solid var(--cx-color-neutral-400);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-500);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;font-weight:700}.tabulator .tabulator-footer .tabulator-footer-contents{padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);flex-direction:row;justify-content:space-between;align-items:center;display:flex}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}`, cu = i`.tabulator-row .tabulator-cell a{color:var(--cx-color-primary-600);text-decoration:none}.tabulator-row .tabulator-cell a:hover{text-decoration:underline}.tabulator-row .tabulator-cell .tabulator-traffic-light-container{align-items:center;gap:var(--cx-spacing-x-small);display:inline-flex}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:var(--cx-border-radius-x-large);width:14px;height:14px;display:inline-block}.tabulator-composite,.tabulator-composite>span,.tabulator-composite>span>cx-line-clamp{min-width:0}.tabulator-composite,.tabulator-composite>span{overflow:hidden}.tabulator-composite>span:has(cx-icon,img,cx-avatar,cx-switch){flex-shrink:0}`, lu = i`.tabulator:has(.tabulator-frozen) .tabulator-tableholder-wrapper:before,.tabulator:has(.tabulator-frozen) .tabulator-header:before{z-index:var(--frozen-overlay-z-index)}.tabulator:not(.tabulator-rtl) .tabulator-header .tabulator-col.tabulator-frozen.tabulator-frozen-left,.tabulator:not(.tabulator-rtl) .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right-color:#0000}.tabulator:not(.tabulator-rtl) .tabulator-header .tabulator-col.tabulator-frozen.tabulator-frozen-right,.tabulator:not(.tabulator-rtl) .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left-color:#0000}.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-start):before,.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-end):after{content:"";background-color:var(--frozen-border-color);pointer-events:none;width:2px;z-index:var(--frozen-divider-z-index);position:absolute;top:0;bottom:0}.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-start):before{left:calc(var(--frozen-left-width,0px) - 2px)}.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-end):after{right:calc(var(--frozen-right-width,0px) + var(--frozen-scrollbar-width,0px) - 2px)}.tabulator .tabulator-col-resize-handle.tabulator-col-resize-handle-pinned-end{width:6px;z-index:var(--frozen-overlay-z-index);margin-left:-3px;margin-right:-3px}.tabulator:has(.tabulator-frozen) .tabulator-tableholder::-webkit-scrollbar-track:horizontal{margin-left:var(--frozen-left-width,0px);margin-right:var(--frozen-right-width,0px)}.tabulator.tabulator-rtl:has(.tabulator-frozen) .tabulator-tableholder::-webkit-scrollbar-track:horizontal{margin-left:var(--frozen-right-width,0px);margin-right:var(--frozen-left-width,0px)}.tabulator:has(.tabulator-frozen)>.os-scrollbar-horizontal{margin-left:var(--frozen-left-width,0px);margin-right:var(--frozen-right-width,0px)}.tabulator.tabulator-rtl:has(.tabulator-frozen)>.os-scrollbar-horizontal{margin-left:var(--frozen-right-width,0px);margin-right:var(--frozen-left-width,0px)}`, uu = i`.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--group-row-border-color);border-right:var(--border-width) solid var(--group-row-border-color);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--group-row-background-color);min-width:100%;line-height:var(--header-height);color:var(--group-row-color);font-weight:var(--group-row-font-weight)}.tabulator-row.tabulator-group.tabulator-row-last{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:var(--group-row-hover-background-color)}}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-flex}.tabulator-row.tabulator-group .tabulator-group-count{margin-left:var(--cx-spacing-small);color:var(--group-count-color)}`, du = i`:host{--selected-column-header-background-color:var(--header-background-color);--selected-column-header-color:var(--header-color)}.tabulator .tabulator-header{box-sizing:border-box;width:fit-content;max-width:100%;font-family:var(--header-font-family);font-style:var(--header-font-style);font-weight:var(--header-font-weight);font-size:var(--header-font-size);color:var(--header-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;outline:none;position:relative}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{box-sizing:border-box;width:100%;position:relative;overflow:hidden}.tabulator .tabulator-header:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom:var(--header-border-bottom);border-top-right-radius:var(--border-radius);border-top-left-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator .tabulator-header .tabulator-col:last-of-type{border-right:none}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{background-color:var(--header-background-color);display:inline-block}.tabulator .tabulator-header .tabulator-col{box-sizing:border-box;border-right:var(--header-border-right);background:var(--header-background-color);text-align:left;vertical-align:bottom;height:var(--header-height);flex-direction:column;justify-content:center;display:inline-flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{border:solid var(--border-width) var(--border-color);background:var(--cx-color-neutral-300);pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:var(--selected-column-header-background-color);color:var(--selected-column-header-color)}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--header-horizontal-padding);position:relative}.tabulator .tabulator-header .tabulator-col:not(:last-of-type) .tabulator-col-content{padding-right:calc(var(--header-horizontal-padding) + var(--column-gap))}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 var(--cx-spacing-x-small)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{align-items:center;gap:var(--cx-spacing-2x-small);display:flex;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;flex:auto;width:100%;min-width:0;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:initial}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;border:solid var(--border-width) var(--border-color);width:100%;padding:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{inline-size:var(--cx-spacing-medium);block-size:var(--cx-spacing-medium);flex:none;order:-1;justify-content:center;align-items:center;display:flex;position:static}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter cx-icon{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-400)}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid var(--cx-color-neutral-400);margin-right:-1px;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:var(--cx-spacing-3x-small);text-align:center;width:100%;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:var(--cx-spacing-3x-small)}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer}.tabulator .tabulator-header .tabulator-col:hover{background-color:var(--header-hover-background-color)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter cx-icon{visibility:hidden}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none]:hover .tabulator-col-content .tabulator-col-sorter cx-icon{visibility:visible}}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;inline-size:auto;position:absolute;inset:4px 0 auto}.tabulator .tabulator-header .tabulator-frozen{z-index:11;position:sticky;left:0}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen-rows-holder{border-bottom:2px solid var(--frozen-border-color);display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}`, fu = i`:host{--hover-menu-background-color:transparent}.tabulator-hover-menu{padding-left:var(--cell-horizontal-padding);padding-right:var(--cell-horizontal-padding);background-color:var(--hover-menu-background-color);opacity:0;pointer-events:none;z-index:12;align-items:center;height:100%;display:flex;position:absolute;top:0}.tabulator:not(.tabulator-editing) .tabulator-hover-menu--active{opacity:1;pointer-events:auto}`, pu = i`.tabulator-row .tabulator-cell.tabulator-row-handle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;justify-content:center;align-items:center;display:inline-flex}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-600)}`, mu = i`:host{--scrollbar-size:17px;--scrollbar-thumb-border-width:7px;--scrollbar-thumb-border-width-hover:4px;--scrollbar-thumb-border-color:#0000;--scrollbar-thumb-radius:13px;--scrollbar-thumb-min-size:50px}.table{position:relative}.table>.os-scrollbar-vertical,.table>.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless{top:calc(var(--header-height) + var(--border-width))}.table.tabulator-header-hidden>.os-scrollbar-vertical,.table.tabulator-header-hidden>.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless{top:var(--border-width)}.table>.os-scrollbar{--os-size:var(--scrollbar-size);--os-padding-perpendicular:0px;--os-padding-axis:0px;--os-handle-border-radius:var(--scrollbar-thumb-radius);--os-handle-border:var(--scrollbar-thumb-border-width) solid var(--scrollbar-thumb-border-color);--os-handle-border-hover:var(--scrollbar-thumb-border-width-hover) solid var(--scrollbar-thumb-border-color);--os-handle-border-active:var(--scrollbar-thumb-border-width-hover) solid var(--scrollbar-thumb-border-color);--os-handle-min-size:var(--scrollbar-thumb-min-size)}.table>.os-scrollbar .os-scrollbar-handle{background-clip:padding-box}`, hu = i`.tabulator .tabulator-footer .tabulator-paginator{flex:1}.tabulator .tabulator-footer .tabulator-paginator-pagination{margin-left:auto}.tabulator-paginator-pagination{--font-size:var(--cx-font-size-x-small);--pagination-input-font-size:var(--cx-font-size-x-small)}.tabulator-paginator-pagination::part(back-icon),.tabulator-paginator-pagination::part(next-icon){--font-size:var(--cx-font-size-medium)}`, gu = i`:host{--placeholder-color:var(--cx-color-neutral-800);--placeholder-font-weight:var(--cx-font-weight-regular);--placeholder-font-size:var(--cx-font-size-small)}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder{box-sizing:border-box;justify-content:center;align-items:center;width:100%;min-width:100%;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-placeholder .tabulator-placeholder-contents{height:100%;padding:var(--cx-spacing-small);color:var(--placeholder-color);font-family:var(--cx-font-sans);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-font-size);white-space:normal;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder.tabulator-placeholder--initializing .tabulator-placeholder-contents{visibility:hidden}.tabulator.tabulator-all-columns-hidden .tabulator-header{width:100%;height:var(--header-height);min-height:var(--header-height)}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents{background-color:var(--header-background-color);flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-header:before{box-sizing:border-box;width:auto;height:auto;inset:0}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents .tabulator-headers{box-sizing:border-box;flex:1;align-self:stretch;width:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-tableholder-wrapper{width:100%}.tabulator-row.tabulator-placeholder-row{border-left:var(--border-width) solid var(--cell-border-color);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding)}`, _u = i`.tabulator-toggle{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-200);flex-direction:row;display:flex}.tabulator-toggle.tabulator-toggle-on{background:var(--cx-color-primary-700)}.tabulator-toggle .tabulator-toggle-switch{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-0)}.tabulator-popup-container{box-sizing:border-box;background:var(--cx-color-neutral-0);border:var(--border-width) solid var(--cx-color-neutral-400);font-size:var(--cx-font-size-small);-webkit-overflow-scrolling:touch;z-index:10000;display:inline-block;position:absolute;overflow-y:auto;box-shadow:0 0 5px #0003}.tabulator-popup{padding:var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small)}.tabulator-tooltip{max-width:min(500px,100%);padding:var(--cx-spacing-3x-small) var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small);box-shadow:none;font-size:var(--cx-font-size-x-small);pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);user-select:none;position:relative}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:var(--cx-color-neutral-50)}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:var(--cx-spacing-x-large)}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{content:"";border-width:var(--border-width) var(--border-width) 0 0;border-style:solid;border-color:var(--cx-color-neutral-400);vertical-align:top;width:7px;height:7px;display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:var(--border-width) solid var(--cx-color-neutral-400)}`, vu = i`.tabulator-print-fullscreen{z-index:10000;position:absolute;inset:0}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{vertical-align:middle;width:7px;height:9px;margin-top:-9px;margin-right:var(--cx-spacing-2x-small);border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;display:inline-block}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--cx-color-neutral-400);border-right:var(--border-width) solid var(--cx-color-neutral-400);border-top:var(--border-width) solid var(--cx-color-neutral-400);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--cx-color-neutral-300);min-width:100%;font-weight:700}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:#0000001a}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group span{margin-left:var(--cx-spacing-small);color:var(--cx-color-danger)}`, yu = i`.tabulator .tabulator-col-resize-handle{z-index:11;vertical-align:middle;width:6px;margin-left:-3px;margin-right:-3px;display:inline-block;position:relative}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-col-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:4px;height:100%;margin-left:-.5px;position:absolute;top:0}.tabulator .tabulator-row-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:100%;height:4px;margin-top:-.5px;position:absolute;left:0}`, bu = i`.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-600);width:15px;height:15px;color:var(--cx-color-neutral-0);justify-content:center;align-items:center;font-size:1.1em;font-weight:700;display:inline-flex}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}`, xu = i`.tabulator-row{box-sizing:border-box;background-color:var(--row-background-color);background-clip:padding-box;min-height:22px;display:flex;position:relative}.tabulator-row+.tabulator-row{border-top:var(--row-gap) solid transparent}.tabulator-row .tabulator-cell-first{border-left:var(--border-width) solid var(--outer-border-color)}.tabulator-row.tabulator-row-even{background-color:var(--row-even-background-color)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:var(--row-hover-background-color);cursor:pointer}.tabulator-row.tabulator-row-even.tabulator-selectable:hover{background-color:var(--row-even-hover-background-color);cursor:pointer}}.tabulator-cell.tabulator-selection-cell-disabled cx-checkbox{--cx-checkbox-disabled-background:var(--cx-color-neutral-100);--cx-checkbox-disabled-border-color:var(--cx-color-neutral-200)}.tabulator-row.tabulator-selected:not(:has(cx-checkbox)){background-color:var(--cx-color-primary-200)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:not(:has(cx-checkbox)):hover{background-color:var(--cx-color-primary-300);cursor:pointer}}.tabulator-row.tabulator-row-moving{border:var(--border-width) solid var(--cx-color-neutral-1000);background:var(--cx-color-neutral-0)}.tabulator-row.tabulator-moving{border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);pointer-events:none;z-index:15;position:absolute}.tabulator-header-hidden .tabulator-row.tabulator-row-first .tabulator-cell.tabulator-cell-last{border-top-right-radius:var(--border-radius)}.tabulator-row .tabulator-row-resize-handle{height:5px;position:absolute;bottom:0;left:0;right:0}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:var(--cx-spacing-2x-small);border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400)}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:var(--cx-font-size-small)}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:var(--cx-spacing-small)}.tabulator-row .tabulator-cell{vertical-align:middle;box-sizing:border-box;padding:var(--cell-padding-top) var(--cell-padding-right) var(--cell-padding-bottom) var(--cell-padding-left);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);display:inline-flex;position:relative}.tabulator-row .tabulator-cell:not(.tabulator-cell-last){padding-right:calc(var(--cell-padding-right) + var(--column-gap))}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell:not(:has(cx-checkbox)):hover,.tabulator-row .tabulator-cell.tabulator-frozen:not(:has(cx-checkbox)):hover{background-color:var(--cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-selection-cell-disabled:hover{cursor:default}}.tabulator-row .tabulator-cell:has(cx-checkbox),.tabulator-row .tabulator-cell.tabulator-frozen:has(cx-checkbox){background-color:var(--row-background-color)}.tabulator-row.tabulator-row-even .tabulator-cell:has(cx-checkbox),.tabulator-row.tabulator-row-even .tabulator-cell.tabulator-frozen:has(cx-checkbox){background-color:var(--row-even-background-color)}.tabulator-row .tabulator-cell .tabulator-cell-content{width:100%;height:100%;font-family:var(--cell-font-family);font-size:var(--cell-font-size);font-weight:var(--cell-font-weight);line-height:var(--cell-line-height);align-items:center;display:inline-flex}.tabulator-row .tabulator-cell .tabulator-cell-content cx-line-clamp{width:100%;max-width:max-content}.tabulator-row .tabulator-cell.tabulator-row-header{border-right:var(--border-width) solid var(--row-header-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;z-index:11;display:inline-block;position:sticky;left:0}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator-row:has(+.tabulator-placeholder-row) .tabulator-cell{border-bottom:none}`, Su = i`.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:var(--border-width) solid var(--cx-color-neutral-400);border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:initial;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:var(--border-width) solid var(--cell-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:initial;margin-left:var(--cx-spacing-2x-small);border-bottom-left-radius:initial;border-left:initial;border-right:2px solid var(--cx-color-neutral-400);border-bottom-right-radius:1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid var(--frozen-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid var(--frozen-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}`, Cu = [
|
|
15678
|
-
|
|
15753
|
+
}, iu = i`.tabulator .tabulator-alert{z-index:100;background:color-mix(in srgb, var(--cx-color-neutral-0) 40%, transparent);text-align:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.tabulator .tabulator-alert.tabulator-alert-state-loading{--loading-offset:var(--cx-spacing-x-small);top:calc(var(--header-height,var(--cx-spacing-3x-large)) + var(--border-width) + var(--loading-offset));height:calc(100% - var(--header-height,var(--cx-spacing-3x-large)) - var(--border-width) - var(--loading-offset))}.tabulator.tabulator-header-hidden .tabulator-alert.tabulator-alert-state-loading{height:100%;top:0}.tabulator .tabulator-alert .tabulator-alert-msg{padding:var(--cx-spacing-small) var(--cx-spacing-large);border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-0);font-weight:700;font-size:var(--cx-font-size-medium);margin:0 auto;display:inline-block}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{color:var(--cx-color-neutral-1000)}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid var(--cx-color-danger);color:var(--cx-color-danger-900)}`, au = i`:host{--width:100%;--table-height:var(--height,auto);--table-min-height:var(--min-height,0);--table-max-height:var(--max-height,auto);--color:var(--cx-color-neutral-900);--background-color:var(--cx-color-neutral-0);--border-width:var(--cx-input-border-width);--border-color:var(--cx-color-neutral-200);--outer-border-color:var(--border-color);--border-radius:var(--cx-border-radius-medium);--row-background-color:var(--cx-color-neutral-0);--row-even-background-color:var(--cx-color-neutral-0);--row-hover-background-color:var(--cx-color-neutral-0);--row-even-hover-background-color:var(--cx-color-neutral-0);--row-gap:0;--frozen-border-color:var(--cx-color-neutral-300);--frozen-overlay-z-index:12;--frozen-divider-z-index:13;--header-background-color:var(--cx-color-neutral-50);--header-hover-background-color:var(--cx-color-primary-50);--header-font-family:var(--cx-font-sans);--header-font-style:normal;--header-font-weight:var(--cx-font-weight-medium);--header-font-size:var(--cx-font-size-x-small);--header-color:var(--cx-color-neutral-700);--header-border-right:1px solid var(--cx-color-neutral-200);--header-border-bottom:none;--header-height:var(--cx-spacing-3x-large);--header-horizontal-padding:var(--cx-spacing-large);--body-background-color:var(--cx-color-neutral-0);--cell-border-color:transparent;--cell-bottom-border-color:var(--cx-color-neutral-200);--cell-horizontal-padding:var(--cx-spacing-large);--cell-padding-top:var(--cx-spacing-2x-small);--cell-padding-right:var(--cell-horizontal-padding);--cell-padding-bottom:var(--cx-spacing-2x-small);--cell-padding-left:var(--cell-horizontal-padding);--column-gap:0px;--cell-font-family:var(--cx-font-sans);--cell-font-size:var(--cx-font-size-small);--cell-font-weight:var(--cx-font-weight-regular);--cell-line-height:normal;--cell-hover-background-color:var(--cx-color-neutral-50);--group-count-color:var(--cx-color-danger-500);--group-row-background-color:var(--row-background-color);--group-row-hover-background-color:var(--row-hover-background-color);--group-row-border-color:var(--cx-color-neutral-200);--group-row-color:var(--cx-color-neutral-900);--group-row-font-weight:var(--cx-font-weight-medium);--row-header-border-color:var(--cx-color-neutral-200);--tabulator-tree-control-width:18px;--tabulator-tree-child-indent:9px;--tabulator-tree-step:calc(var(--tabulator-tree-control-width) + var(--tabulator-tree-child-indent));isolation:isolate;width:var(--width);display:block}.container{height:100%}.tabulator{background-color:var(--background-color);font-size:var(--font-size,var(--cx-font-size-small));text-align:left;height:var(--table-height);min-height:var(--table-min-height);max-height:var(--table-max-height);border-radius:var(--cx-border-radius-medium);border-inline:var(--border-width) solid transparent;flex-direction:column;line-height:normal;display:flex;position:relative;overflow:hidden}.tabulator.tabulator-overflow-x{border-inline-color:var(--outer-border-color);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-tableholder-wrapper{flex:1;width:fit-content;max-width:100%;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-tableholder{white-space:nowrap;-webkit-overflow-scrolling:touch;border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);flex:1;min-width:0;position:relative;overflow:auto}.tabulator .tabulator-tableholder-wrapper:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator.tabulator-header-hidden .tabulator-tableholder-wrapper:before{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-table{background-color:var(--body-background-color,var(--cx-color-neutral-0));white-space:nowrap;color:var(--color);min-width:100%;display:inline-block;position:relative;overflow:visible}`, ou = i`.tabulator .tabulator-header .tabulator-calcs-holder{box-sizing:border-box;border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{font-weight:700;background:var(--cx-color-neutral-200)!important}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid var(--cx-color-neutral-400)}.tabulator .tabulator-footer .tabulator-calcs-holder{box-sizing:border-box;text-align:left;border-bottom:1px solid var(--cx-color-neutral-400);border-top:1px solid var(--cx-color-neutral-400);width:100%;overflow:hidden;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{display:inline-block;background:var(--cx-color-neutral-100)!important}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}`, su = i`.tabulator-clickable-cell{color:var(--clickable-cell-color,var(--cx-color-primary-600));cursor:pointer}.tabulator-clickable-cell:hover{text-decoration:underline}.tabulator-clickable-cell cx-icon,.tabulator-clickable-cell cx-icon-button{color:var(--color)}`, cu = i`.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:none}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;width:7px;height:9px;margin-top:-9px;position:absolute}.tabulator-row .tabulator-cell .tabulator-data-tree-control{flex:0 0 var(--tabulator-tree-control-width);vertical-align:middle;width:var(--tabulator-tree-control-width);justify-content:center;align-items:center;display:inline-flex}`, lu = i`.tabulator-row .tabulator-cell.tabulator-editing{padding:0 var(--cell-horizontal-padding);outline:none}.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator:not(.tabulator-ranges) .tabulator-row .tabulator-cell.tabulator-editing select{font-size:inherit;color:inherit;border-radius:var(--cx-input-border-radius-medium);background:0 0;border:none;outline:none;padding:0;font-family:inherit}.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-ranges .tabulator-row .tabulator-cell.tabulator-editing select{border:var(--border-width) solid var(--border-color);background:0 0;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:var(--border-width) solid var(--cx-color-danger);background:var(--cx-color-danger-100)}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{border:var(--border-width) solid var(--border-color);color:var(--cx-color-danger);background:0 0}.tabulator-row .tabulator-cell.tabulator-editing.tabulator-edit-list{padding:0 var(--cx-spacing-x-small)}.tabulator-edit-list{position:relative}.tabulator-edit-list:not(.tabulator-editing) .tabulator-cell-content{padding-right:var(--cx-spacing-large)}.tabulator-edit-list-trigger{top:50%;right:var(--cx-spacing-small);width:var(--cx-spacing-large);appearance:none;height:100%;color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;transform:translateY(-50%)}.tabulator-edit-list.tabulator-editing .tabulator-edit-list-trigger{display:none}.tabulator-edit-list-trigger-caret{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-500)}`, uu = i`.tabulator .tabulator-footer{border-top:1px solid var(--cx-color-neutral-400);background-color:var(--cx-color-neutral-200);color:var(--cx-color-neutral-500);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;font-weight:700}.tabulator .tabulator-footer .tabulator-footer-contents{padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);flex-direction:row;justify-content:space-between;align-items:center;display:flex}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}`, du = i`.tabulator-row .tabulator-cell a{color:var(--cx-color-primary-600);text-decoration:none}.tabulator-row .tabulator-cell a:hover{text-decoration:underline}.tabulator-row .tabulator-cell .tabulator-traffic-light-container{align-items:center;gap:var(--cx-spacing-x-small);display:inline-flex}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:var(--cx-border-radius-x-large);width:14px;height:14px;display:inline-block}.tabulator-composite,.tabulator-composite>span,.tabulator-composite>span>cx-line-clamp{min-width:0}.tabulator-composite,.tabulator-composite>span{overflow:hidden}.tabulator-composite>span:has(cx-icon,img,cx-avatar,cx-switch){flex-shrink:0}`, fu = i`.tabulator:has(.tabulator-frozen) .tabulator-tableholder-wrapper:before,.tabulator:has(.tabulator-frozen) .tabulator-header:before{z-index:var(--frozen-overlay-z-index)}.tabulator:not(.tabulator-rtl) .tabulator-header .tabulator-col.tabulator-frozen.tabulator-frozen-left,.tabulator:not(.tabulator-rtl) .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right-color:#0000}.tabulator:not(.tabulator-rtl) .tabulator-header .tabulator-col.tabulator-frozen.tabulator-frozen-right,.tabulator:not(.tabulator-rtl) .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left-color:#0000}.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-start):before,.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-end):after{content:"";background-color:var(--frozen-border-color);pointer-events:none;width:2px;z-index:var(--frozen-divider-z-index);position:absolute;top:0;bottom:0}.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-start):before{left:calc(var(--frozen-left-width,0px) - 2px)}.tabulator:not(.tabulator-rtl):has(.tabulator-frozen-pinned-end):after{right:calc(var(--frozen-right-width,0px) + var(--frozen-scrollbar-width,0px) - 2px)}.tabulator .tabulator-col-resize-handle.tabulator-col-resize-handle-pinned-end{width:6px;z-index:var(--frozen-overlay-z-index);margin-left:-3px;margin-right:-3px}.tabulator:has(.tabulator-frozen) .tabulator-tableholder::-webkit-scrollbar-track:horizontal{margin-left:var(--frozen-left-width,0px);margin-right:var(--frozen-right-width,0px)}.tabulator.tabulator-rtl:has(.tabulator-frozen) .tabulator-tableholder::-webkit-scrollbar-track:horizontal{margin-left:var(--frozen-right-width,0px);margin-right:var(--frozen-left-width,0px)}.tabulator:has(.tabulator-frozen)>.os-scrollbar-horizontal{margin-left:var(--frozen-left-width,0px);margin-right:var(--frozen-right-width,0px)}.tabulator.tabulator-rtl:has(.tabulator-frozen)>.os-scrollbar-horizontal{margin-left:var(--frozen-right-width,0px);margin-right:var(--frozen-left-width,0px)}`, pu = i`.tabulator-row.tabulator-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--group-row-border-color);border-right:var(--border-width) solid var(--group-row-border-color);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--group-row-background-color);min-width:100%;line-height:var(--header-height);color:var(--group-row-color);font-weight:var(--group-row-font-weight)}.tabulator-row.tabulator-group.tabulator-row-last{border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{cursor:pointer;background-color:var(--group-row-hover-background-color)}}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-flex}.tabulator-row.tabulator-group .tabulator-group-count{margin-left:var(--cx-spacing-small);color:var(--group-count-color)}`, mu = i`:host{--selected-column-header-background-color:var(--header-background-color);--selected-column-header-color:var(--header-color)}.tabulator .tabulator-header{box-sizing:border-box;width:fit-content;max-width:100%;font-family:var(--header-font-family);font-style:var(--header-font-style);font-weight:var(--header-font-weight);font-size:var(--header-font-size);color:var(--header-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;outline:none;position:relative}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{box-sizing:border-box;width:100%;position:relative;overflow:hidden}.tabulator .tabulator-header:before{content:"";z-index:1;pointer-events:none;border:var(--border-width) solid var(--outer-border-color);border-bottom:var(--header-border-bottom);border-top-right-radius:var(--border-radius);border-top-left-radius:var(--border-radius);width:100%;height:100%;display:block;position:absolute;top:0;left:0}.tabulator .tabulator-header .tabulator-col:last-of-type{border-right:none}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{background-color:var(--header-background-color);display:inline-block}.tabulator .tabulator-header .tabulator-col{box-sizing:border-box;border-right:var(--header-border-right);background:var(--header-background-color);text-align:left;vertical-align:bottom;height:var(--header-height);flex-direction:column;justify-content:center;display:inline-flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col.tabulator-moving{border:solid var(--border-width) var(--border-color);background:var(--cx-color-neutral-300);pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:var(--selected-column-header-background-color);color:var(--selected-column-header-color)}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--header-horizontal-padding);position:relative}.tabulator .tabulator-header .tabulator-col:not(:last-of-type) .tabulator-col-content{padding-right:calc(var(--header-horizontal-padding) + var(--column-gap))}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 var(--cx-spacing-x-small)}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{align-items:center;gap:var(--cx-spacing-2x-small);display:flex;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;vertical-align:bottom;flex:auto;width:100%;min-width:0;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{white-space:normal;text-overflow:initial}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{box-sizing:border-box;border:solid var(--border-width) var(--border-color);width:100%;padding:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-0)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{inline-size:var(--cx-spacing-medium);block-size:var(--cx-spacing-medium);flex:none;order:-1;justify-content:center;align-items:center;display:flex;position:static}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter cx-icon{--font-size:var(--cx-font-size-medium);color:var(--cx-color-neutral-400)}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid var(--cx-color-neutral-400);margin-right:-1px;display:flex;position:relative;overflow:hidden}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:var(--cx-spacing-3x-small);text-align:center;width:100%;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:var(--cx-spacing-3x-small)}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{width:0;height:0}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{cursor:pointer}.tabulator .tabulator-header .tabulator-col:hover{background-color:var(--header-hover-background-color)}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter cx-icon{visibility:hidden}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none]:hover .tabulator-col-content .tabulator-col-sorter cx-icon{visibility:visible}}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{writing-mode:vertical-rl;text-orientation:mixed;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-right:0;padding-bottom:var(--cx-spacing-large)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{justify-content:center;inline-size:auto;position:absolute;inset:4px 0 auto}.tabulator .tabulator-header .tabulator-frozen{z-index:11;position:sticky;left:0}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator .tabulator-header .tabulator-frozen-rows-holder{border-bottom:2px solid var(--frozen-border-color);display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}`, hu = i`:host{--hover-menu-background-color:transparent}.tabulator-hover-menu{padding-left:var(--cell-horizontal-padding);padding-right:var(--cell-horizontal-padding);background-color:var(--hover-menu-background-color);opacity:0;pointer-events:none;z-index:12;align-items:center;height:100%;display:flex;position:absolute;top:0}.tabulator:not(.tabulator-editing) .tabulator-hover-menu--active{opacity:1;pointer-events:auto}`, gu = i`.tabulator-row .tabulator-cell.tabulator-row-handle{-webkit-user-select:none;-moz-user-select:none;-khtml-user-select:none;-o-user-select:none;justify-content:center;align-items:center;display:inline-flex}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{width:100%;height:3px;margin-top:var(--cx-spacing-3x-small);background:var(--cx-color-neutral-600)}`, _u = i`:host{--scrollbar-size:17px;--scrollbar-thumb-border-width:7px;--scrollbar-thumb-border-width-hover:4px;--scrollbar-thumb-border-color:#0000;--scrollbar-thumb-radius:13px;--scrollbar-thumb-min-size:50px}.table{position:relative}.table>.os-scrollbar-vertical,.table>.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless{top:calc(var(--header-height) + var(--border-width))}.table.tabulator-header-hidden>.os-scrollbar-vertical,.table.tabulator-header-hidden>.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless{top:var(--border-width)}.table>.os-scrollbar{--os-size:var(--scrollbar-size);--os-padding-perpendicular:0px;--os-padding-axis:0px;--os-handle-border-radius:var(--scrollbar-thumb-radius);--os-handle-border:var(--scrollbar-thumb-border-width) solid var(--scrollbar-thumb-border-color);--os-handle-border-hover:var(--scrollbar-thumb-border-width-hover) solid var(--scrollbar-thumb-border-color);--os-handle-border-active:var(--scrollbar-thumb-border-width-hover) solid var(--scrollbar-thumb-border-color);--os-handle-min-size:var(--scrollbar-thumb-min-size)}.table>.os-scrollbar .os-scrollbar-handle{background-clip:padding-box}`, vu = i`.tabulator .tabulator-footer .tabulator-paginator{flex:1}.tabulator .tabulator-footer .tabulator-paginator-pagination{margin-left:auto}.tabulator-paginator-pagination{--font-size:var(--cx-font-size-x-small);--pagination-input-font-size:var(--cx-font-size-x-small)}.tabulator-paginator-pagination::part(back-icon),.tabulator-paginator-pagination::part(next-icon){--font-size:var(--cx-font-size-medium)}`, yu = i`:host{--placeholder-color:var(--cx-color-neutral-800);--placeholder-font-weight:var(--cx-font-weight-regular);--placeholder-font-size:var(--cx-font-size-small)}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder{box-sizing:border-box;justify-content:center;align-items:center;width:100%;min-width:100%;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-placeholder .tabulator-placeholder-contents{height:100%;padding:var(--cx-spacing-small);color:var(--placeholder-color);font-family:var(--cx-font-sans);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-font-size);white-space:normal;justify-content:center;align-items:center;display:flex}.tabulator .tabulator-tableholder-wrapper .tabulator-placeholder.tabulator-placeholder--initializing .tabulator-placeholder-contents{visibility:hidden}.tabulator.tabulator-all-columns-hidden .tabulator-header{width:100%;height:var(--header-height);min-height:var(--header-height)}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents{background-color:var(--header-background-color);flex-direction:column;width:100%;height:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-header:before{box-sizing:border-box;width:auto;height:auto;inset:0}.tabulator.tabulator-all-columns-hidden .tabulator-header .tabulator-header-contents .tabulator-headers{box-sizing:border-box;flex:1;align-self:stretch;width:100%;min-height:0;display:flex}.tabulator.tabulator-all-columns-hidden .tabulator-tableholder-wrapper{width:100%}.tabulator-row.tabulator-placeholder-row{border-left:var(--border-width) solid var(--cell-border-color);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);padding:var(--cx-spacing-2x-small) var(--cell-horizontal-padding)}`, bu = i`.tabulator-toggle{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-200);flex-direction:row;display:flex}.tabulator-toggle.tabulator-toggle-on{background:var(--cx-color-primary-700)}.tabulator-toggle .tabulator-toggle-switch{box-sizing:border-box;border:var(--border-width) solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-0)}.tabulator-popup-container{box-sizing:border-box;background:var(--cx-color-neutral-0);border:var(--border-width) solid var(--cx-color-neutral-400);font-size:var(--cx-font-size-small);-webkit-overflow-scrolling:touch;z-index:10000;display:inline-block;position:absolute;overflow-y:auto;box-shadow:0 0 5px #0003}.tabulator-popup{padding:var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small)}.tabulator-tooltip{max-width:min(500px,100%);padding:var(--cx-spacing-3x-small) var(--cx-spacing-2x-small);border-radius:var(--cx-border-radius-small);box-shadow:none;font-size:var(--cx-font-size-x-small);pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:var(--cx-spacing-2x-small) var(--cx-spacing-small);user-select:none;position:relative}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{cursor:pointer;background:var(--cx-color-neutral-50)}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:var(--cx-spacing-x-large)}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{content:"";border-width:var(--border-width) var(--border-width) 0 0;border-style:solid;border-color:var(--cx-color-neutral-400);vertical-align:top;width:7px;height:7px;display:inline-block;position:absolute;top:calc(5px + .4em);right:10px;transform:rotate(45deg)}.tabulator-menu .tabulator-menu-separator{border-top:var(--border-width) solid var(--cx-color-neutral-400)}`, xu = i`.tabulator-print-fullscreen{z-index:10000;position:absolute;inset:0}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{vertical-align:middle;width:7px;height:9px;margin-top:-9px;margin-right:var(--cx-spacing-2x-small);border-left:2px solid var(--cx-color-neutral-400);border-bottom:2px solid var(--cx-color-neutral-400);border-bottom-left-radius:1px;display:inline-block}.tabulator-print-table .tabulator-print-table-group{box-sizing:border-box;border-bottom:var(--border-width) solid var(--cx-color-neutral-400);border-right:var(--border-width) solid var(--cx-color-neutral-400);border-top:var(--border-width) solid var(--cx-color-neutral-400);padding:var(--cx-spacing-2x-small);padding-left:var(--cx-spacing-small);background:var(--cx-color-neutral-300);min-width:100%;font-weight:700}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{cursor:pointer;background-color:#0000001a}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group span{margin-left:var(--cx-spacing-small);color:var(--cx-color-danger)}`, Su = i`.tabulator .tabulator-col-resize-handle{z-index:11;vertical-align:middle;width:6px;margin-left:-3px;margin-right:-3px;display:inline-block;position:relative}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{width:3px;margin-right:0}.tabulator .tabulator-col-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:4px;height:100%;margin-left:-.5px;position:absolute;top:0}.tabulator .tabulator-row-resize-guide{background-color:var(--cx-color-neutral-400);opacity:.5;width:100%;height:4px;margin-top:-.5px;position:absolute;left:0}`, Cu = i`.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{-webkit-user-select:none;-moz-user-select:none;user-select:none;-khtml-user-select:none;-o-user-select:none;border-radius:var(--cx-border-radius-x-large);background:var(--cx-color-neutral-600);width:15px;height:15px;color:var(--cx-color-neutral-0);justify-content:center;align-items:center;font-size:1.1em;font-weight:700;display:inline-flex}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{opacity:.7;cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}`, wu = i`.tabulator-row{box-sizing:border-box;background-color:var(--row-background-color);background-clip:padding-box;min-height:22px;display:flex;position:relative}.tabulator-row+.tabulator-row{border-top:var(--row-gap) solid transparent}.tabulator-row .tabulator-cell-first{border-left:var(--border-width) solid var(--outer-border-color)}.tabulator-row.tabulator-row-even{background-color:var(--row-even-background-color)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:var(--row-hover-background-color);cursor:pointer}.tabulator-row.tabulator-row-even.tabulator-selectable:hover{background-color:var(--row-even-hover-background-color);cursor:pointer}}.tabulator-cell.tabulator-selection-cell-disabled cx-checkbox{--cx-checkbox-disabled-background:var(--cx-color-neutral-100);--cx-checkbox-disabled-border-color:var(--cx-color-neutral-200)}.tabulator-row.tabulator-selected:not(:has(cx-checkbox)){background-color:var(--cx-color-primary-200)}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:not(:has(cx-checkbox)):hover{background-color:var(--cx-color-primary-300);cursor:pointer}}.tabulator-row.tabulator-row-moving{border:var(--border-width) solid var(--cx-color-neutral-1000);background:var(--cx-color-neutral-0)}.tabulator-row.tabulator-moving{border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400);pointer-events:none;z-index:15;position:absolute}.tabulator-header-hidden .tabulator-row.tabulator-row-first .tabulator-cell.tabulator-cell-last{border-top-right-radius:var(--border-radius)}.tabulator-row .tabulator-row-resize-handle{height:5px;position:absolute;bottom:0;left:0;right:0}.tabulator-row .tabulator-row-resize-handle.prev{top:0;bottom:auto}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{box-sizing:border-box;padding:var(--cx-spacing-2x-small);border-top:var(--border-width) solid var(--cx-color-neutral-400);border-bottom:var(--border-width) solid var(--cx-color-neutral-400)}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:var(--cx-font-size-small)}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:var(--cx-spacing-small)}.tabulator-row .tabulator-cell{vertical-align:middle;box-sizing:border-box;padding:var(--cell-padding-top) var(--cell-padding-right) var(--cell-padding-bottom) var(--cell-padding-left);border-right:var(--border-width) solid var(--cell-border-color);border-bottom:var(--border-width) solid var(--cell-bottom-border-color);display:inline-flex;position:relative}.tabulator-row .tabulator-cell:not(.tabulator-cell-last){padding-right:calc(var(--cell-padding-right) + var(--column-gap))}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell:not(:has(cx-checkbox)):hover,.tabulator-row .tabulator-cell.tabulator-frozen:not(:has(cx-checkbox)):hover{background-color:var(--cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-selection-cell-disabled:hover{cursor:default}}.tabulator-row .tabulator-cell:has(cx-checkbox),.tabulator-row .tabulator-cell.tabulator-frozen:has(cx-checkbox){background-color:var(--row-background-color)}.tabulator-row.tabulator-row-even .tabulator-cell:has(cx-checkbox),.tabulator-row.tabulator-row-even .tabulator-cell.tabulator-frozen:has(cx-checkbox){background-color:var(--row-even-background-color)}.tabulator-row .tabulator-cell .tabulator-cell-content{width:100%;height:100%;font-family:var(--cell-font-family);font-size:var(--cell-font-size);font-weight:var(--cell-font-weight);line-height:var(--cell-line-height);align-items:center;display:inline-flex}.tabulator-row .tabulator-cell .tabulator-cell-content cx-line-clamp{width:100%;max-width:max-content}.tabulator-row .tabulator-cell.tabulator-row-header{border-right:var(--border-width) solid var(--row-header-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;z-index:11;display:inline-block;position:sticky;left:0}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid var(--frozen-border-color)}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid var(--frozen-border-color)}.tabulator-row:has(+.tabulator-placeholder-row) .tabulator-cell{border-bottom:none}`, Tu = i`.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{text-align:initial;direction:rtl}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{text-align:initial;border-left:var(--border-width) solid var(--cx-color-neutral-400);border-right:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-right:initial;margin-left:-1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-right:initial;border-left:var(--border-width) solid var(--cell-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{margin-right:initial;margin-left:var(--cx-spacing-2x-small);border-bottom-left-radius:initial;border-left:initial;border-right:2px solid var(--cx-color-neutral-400);border-bottom-right-radius:1px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid var(--frozen-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid var(--frozen-border-color)}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{width:3px;margin-left:0;margin-right:-3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}`, Eu = [
|
|
15754
|
+
au,
|
|
15755
|
+
_u,
|
|
15679
15756
|
mu,
|
|
15680
|
-
du,
|
|
15681
|
-
gu,
|
|
15682
|
-
ru,
|
|
15683
|
-
i`:host{--table-active-cell-border-color:var(--border-color);--table-selected-cell-border-width:1px;--table-selected-cell-border-style:solid;--table-selected-only-cell-background-color:transparent;--table-selected-range-cell-background-color:var(--cx-color-neutral-100);--table-selected-range-selection-start-cell-background-color:var(--cx-color-neutral-50);--table-selected-cell-hover-background-color:var(--cx-color-neutral-50);--table-editable-only-cell-selected-background-color:var(--cx-color-primary-50);--table-editable-cell-hover-background-color:var(--cx-color-primary-50);--table-editable-only-cell-active-border-color:var(--cx-color-primary-600)}.tabulator .tabulator-tableholder .tabulator-range-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active,.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-hover{box-sizing:border-box;border-color:var(--table-active-cell-border-color);border-style:var(--table-selected-cell-border-style);border-width:var(--table-selected-cell-border-width);background-color:var(--table-selected-only-cell-background-color);position:absolute}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral-1000)}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)){background-color:var(--table-selected-range-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selection-start:not(.tabulator-range-row-header):not(:has(cx-checkbox)){background-color:var(--table-selected-range-selection-start-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)):hover{background-color:var(--table-selected-cell-hover-background-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-only-cell-active.tabulator-range-cell-active{border-color:var(--table-editable-only-cell-active-border-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-cell-hover{border:var(--border-width) solid var(--table-editable-only-cell-active-border-color)}.tabulator-row .tabulator-cell.tabulator-editable:not(:has(cx-checkbox)):hover{background-color:var(--table-editable-cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-only-cell-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)){background-color:var(--table-editable-only-cell-selected-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)):hover{background-color:var(--table-editable-cell-hover-background-color)}`,
|
|
15684
|
-
su,
|
|
15685
|
-
i`.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{padding:var(--cx-spacing-2x-small);border:solid var(--border-width) var(--border-color);border-top:none;border-bottom-right-radius:5px;border-bottom-left-radius:5px;font-size:.9em;display:inline-block}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:var(--cx-color-neutral-0)}`,
|
|
15686
|
-
hu,
|
|
15687
15757
|
yu,
|
|
15688
|
-
tu,
|
|
15689
|
-
xu,
|
|
15690
15758
|
ou,
|
|
15691
|
-
|
|
15692
|
-
au,
|
|
15693
|
-
bu,
|
|
15694
|
-
cu,
|
|
15759
|
+
i`:host{--table-active-cell-border-color:var(--border-color);--table-selected-cell-border-width:1px;--table-selected-cell-border-style:solid;--table-selected-only-cell-background-color:transparent;--table-selected-range-cell-background-color:var(--cx-color-neutral-100);--table-selected-range-selection-start-cell-background-color:var(--cx-color-neutral-50);--table-selected-cell-hover-background-color:var(--cx-color-neutral-50);--table-editable-only-cell-selected-background-color:var(--cx-color-primary-50);--table-editable-cell-hover-background-color:var(--cx-color-primary-50);--table-editable-only-cell-active-border-color:var(--cx-color-primary-600)}.tabulator .tabulator-tableholder .tabulator-range-overlay{z-index:10;pointer-events:none;position:absolute;inset:0}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active,.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-hover{box-sizing:border-box;border-color:var(--table-active-cell-border-color);border-style:var(--table-selected-cell-border-style);border-width:var(--table-selected-cell-border-width);background-color:var(--table-selected-only-cell-background-color);position:absolute}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-neutral-300);color:var(--cx-color-neutral-1000)}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:var(--cx-color-primary-500);color:var(--cx-color-neutral-0)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)){background-color:var(--table-selected-range-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selection-start:not(.tabulator-range-row-header):not(:has(cx-checkbox)){background-color:var(--table-selected-range-selection-start-cell-background-color)}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)):hover{background-color:var(--table-selected-cell-hover-background-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-only-cell-active.tabulator-range-cell-active{border-color:var(--table-editable-only-cell-active-border-color)}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-editable.tabulator-range-cell-hover{border:var(--border-width) solid var(--table-editable-only-cell-active-border-color)}.tabulator-row .tabulator-cell.tabulator-editable:not(:has(cx-checkbox)):hover{background-color:var(--table-editable-cell-hover-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-only-cell-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)){background-color:var(--table-editable-only-cell-selected-background-color)}.tabulator-row .tabulator-cell.tabulator-editable.tabulator-range-selected:not(.tabulator-range-row-header):not(:has(cx-checkbox)):hover{background-color:var(--table-editable-cell-hover-background-color)}`,
|
|
15695
15760
|
uu,
|
|
15696
|
-
|
|
15697
|
-
Su,
|
|
15761
|
+
i`.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{padding:var(--cx-spacing-2x-small);border:solid var(--border-width) var(--border-color);border-top:none;border-bottom-right-radius:5px;border-bottom-left-radius:5px;font-size:.9em;display:inline-block}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:var(--cx-color-neutral-0)}`,
|
|
15698
15762
|
vu,
|
|
15699
|
-
|
|
15763
|
+
Su,
|
|
15700
15764
|
iu,
|
|
15701
|
-
|
|
15702
|
-
|
|
15765
|
+
wu,
|
|
15766
|
+
lu,
|
|
15767
|
+
gu,
|
|
15768
|
+
cu,
|
|
15769
|
+
Cu,
|
|
15770
|
+
du,
|
|
15771
|
+
pu,
|
|
15772
|
+
bu,
|
|
15773
|
+
Tu,
|
|
15774
|
+
xu,
|
|
15775
|
+
hu,
|
|
15776
|
+
su,
|
|
15777
|
+
fu
|
|
15778
|
+
], Du = {
|
|
15703
15779
|
formatter: function() {
|
|
15704
15780
|
let e = document.createElement("div");
|
|
15705
15781
|
e.style.display = "flex", e.style.alignItems = "center", e.style.justifyContent = "center", e.style.width = "100%", e.style.height = "100%", e.style.userSelect = "none", e.dataset.testid = "movable-row-button";
|
|
@@ -15712,7 +15788,7 @@ var Ql = class {
|
|
|
15712
15788
|
rowHandle: !0,
|
|
15713
15789
|
title: "",
|
|
15714
15790
|
width: 40
|
|
15715
|
-
},
|
|
15791
|
+
}, Ou = {
|
|
15716
15792
|
fromAttribute: (e) => {
|
|
15717
15793
|
if (typeof e == "string") {
|
|
15718
15794
|
if (!e.trim()) return;
|
|
@@ -15726,7 +15802,7 @@ var Ql = class {
|
|
|
15726
15802
|
return e;
|
|
15727
15803
|
},
|
|
15728
15804
|
toAttribute: (e) => typeof e == "function" ? "" : Array.isArray(e) ? JSON.stringify(e) : typeof e == "number" ? e.toString() : e
|
|
15729
|
-
},
|
|
15805
|
+
}, ku = {
|
|
15730
15806
|
fromAttribute: (e) => {
|
|
15731
15807
|
if (typeof e == "string") {
|
|
15732
15808
|
if (!e.trim()) return !0;
|
|
@@ -15739,7 +15815,7 @@ var Ql = class {
|
|
|
15739
15815
|
return e;
|
|
15740
15816
|
},
|
|
15741
15817
|
toAttribute: (e) => typeof e == "function" ? "" : Array.isArray(e) ? JSON.stringify(e) : typeof e == "boolean" ? e.toString() : e
|
|
15742
|
-
},
|
|
15818
|
+
}, Au = {
|
|
15743
15819
|
fromAttribute: (e) => {
|
|
15744
15820
|
if (typeof e == "string") {
|
|
15745
15821
|
if (!e.trim()) return;
|
|
@@ -15752,13 +15828,13 @@ var Ql = class {
|
|
|
15752
15828
|
},
|
|
15753
15829
|
toAttribute: (e) => typeof e == "function" ? "" : Array.isArray(e) ? JSON.stringify(e) : e
|
|
15754
15830
|
};
|
|
15755
|
-
function
|
|
15831
|
+
function ju(e, t) {
|
|
15756
15832
|
let n = t === I.Desc ? "arrow_downward" : "arrow_upward";
|
|
15757
|
-
return
|
|
15833
|
+
return j(r`<cx-icon name=${n} aria-hidden="true"></cx-icon>`);
|
|
15758
15834
|
}
|
|
15759
15835
|
//#endregion
|
|
15760
15836
|
//#region ../../packages/hybrid/table-core/src/table/table-data-loader.ts
|
|
15761
|
-
function
|
|
15837
|
+
function Mu(e, t, n, r = 500) {
|
|
15762
15838
|
return new Promise((i, a) => {
|
|
15763
15839
|
if (!Number.isInteger(r) || r < 1) {
|
|
15764
15840
|
a(/* @__PURE__ */ RangeError("chunkSize must be a positive integer"));
|
|
@@ -15797,40 +15873,40 @@ function ku(e, t, n, r = 500) {
|
|
|
15797
15873
|
});
|
|
15798
15874
|
});
|
|
15799
15875
|
}
|
|
15800
|
-
async function
|
|
15876
|
+
async function Nu(e, t, n, r = 500, i = "") {
|
|
15801
15877
|
if (!Number.isInteger(r) || r < 1) throw RangeError("chunkSize must be a positive integer");
|
|
15802
|
-
let { columns: a, rows: o } =
|
|
15878
|
+
let { columns: a, rows: o } = Bu(e, i);
|
|
15803
15879
|
t(a);
|
|
15804
15880
|
for (let e = 0; e < o.length; e += r) await n(o.slice(e, e + r));
|
|
15805
15881
|
return o.length;
|
|
15806
15882
|
}
|
|
15807
|
-
async function
|
|
15883
|
+
async function Pu(e, t, n, r = 500, i = "") {
|
|
15808
15884
|
if (!Number.isInteger(r) || r < 1) throw RangeError("chunkSize must be a positive integer");
|
|
15809
|
-
let { columns: a, rows: o } =
|
|
15885
|
+
let { columns: a, rows: o } = Ru(JSON.parse(e), i);
|
|
15810
15886
|
t(a);
|
|
15811
15887
|
for (let e = 0; e < o.length; e += r) await n(o.slice(e, e + r));
|
|
15812
15888
|
return o.length;
|
|
15813
15889
|
}
|
|
15814
|
-
function
|
|
15890
|
+
function Fu(e) {
|
|
15815
15891
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
15816
15892
|
}
|
|
15817
|
-
function
|
|
15893
|
+
function Iu(e) {
|
|
15818
15894
|
return e.split(/[./]/).filter((e) => e.length > 0);
|
|
15819
15895
|
}
|
|
15820
|
-
function
|
|
15821
|
-
return
|
|
15896
|
+
function Lu(e, t) {
|
|
15897
|
+
return Iu(t).reduce((e, t) => {
|
|
15822
15898
|
if (typeof e == "object" && e) return e[t];
|
|
15823
15899
|
}, e);
|
|
15824
15900
|
}
|
|
15825
|
-
function
|
|
15901
|
+
function Ru(e, t = "") {
|
|
15826
15902
|
if (t) {
|
|
15827
|
-
let n =
|
|
15903
|
+
let n = Lu(e, t);
|
|
15828
15904
|
if (!Array.isArray(n)) throw Error(`Data path "${t}" did not resolve to an array`);
|
|
15829
15905
|
if (n.length === 0) return {
|
|
15830
15906
|
columns: [],
|
|
15831
15907
|
rows: []
|
|
15832
15908
|
};
|
|
15833
|
-
if (!n.every(
|
|
15909
|
+
if (!n.every(Fu)) throw Error(`Data path "${t}" must resolve to an array of row objects`);
|
|
15834
15910
|
let r = n[0];
|
|
15835
15911
|
return {
|
|
15836
15912
|
columns: Object.keys(r).map((e) => ({
|
|
@@ -15845,7 +15921,7 @@ function Fu(e, t = "") {
|
|
|
15845
15921
|
columns: [],
|
|
15846
15922
|
rows: []
|
|
15847
15923
|
};
|
|
15848
|
-
if (!e.every(
|
|
15924
|
+
if (!e.every(Fu)) throw Error("JSON array must contain row objects");
|
|
15849
15925
|
let t = e[0];
|
|
15850
15926
|
return {
|
|
15851
15927
|
columns: Object.keys(t).map((e) => ({
|
|
@@ -15856,23 +15932,23 @@ function Fu(e, t = "") {
|
|
|
15856
15932
|
};
|
|
15857
15933
|
}
|
|
15858
15934
|
let n = e;
|
|
15859
|
-
if (Array.isArray(n.columns) && Array.isArray(n.data) && n.data.every(
|
|
15935
|
+
if (Array.isArray(n.columns) && Array.isArray(n.data) && n.data.every(Fu)) return {
|
|
15860
15936
|
columns: n.columns,
|
|
15861
15937
|
rows: n.data
|
|
15862
15938
|
};
|
|
15863
15939
|
throw Error("JSON data must be an array of row objects or a { columns, data } envelope");
|
|
15864
15940
|
}
|
|
15865
|
-
function
|
|
15866
|
-
let n =
|
|
15941
|
+
function zu(e, t) {
|
|
15942
|
+
let n = Iu(t).reduce((e, t) => e ? /^\d+$/.test(t) ? e.children[Number(t)] ?? null : Hu(e, t) : null, e);
|
|
15867
15943
|
if (!n) throw Error(`Data path "${t}" did not resolve to an element`);
|
|
15868
15944
|
return n;
|
|
15869
15945
|
}
|
|
15870
|
-
function
|
|
15946
|
+
function Bu(e, t = "") {
|
|
15871
15947
|
let n = new DOMParser().parseFromString(e, "text/xml"), r = n.querySelector("parsererror");
|
|
15872
15948
|
if (r) throw Error(`XML parse error: ${r.textContent?.trim() ?? "unknown error"}`);
|
|
15873
15949
|
let i = n.documentElement;
|
|
15874
|
-
if (t) return
|
|
15875
|
-
let a =
|
|
15950
|
+
if (t) return Vu(Array.from(zu(i, t).children));
|
|
15951
|
+
let a = Hu(i, "columns"), o = Hu(i, "rows");
|
|
15876
15952
|
if (a && o) {
|
|
15877
15953
|
let e = Array.from(a.children).map((e) => ({
|
|
15878
15954
|
field: e.getAttribute("field") ?? e.tagName,
|
|
@@ -15880,12 +15956,12 @@ function Lu(e, t = "") {
|
|
|
15880
15956
|
}));
|
|
15881
15957
|
return {
|
|
15882
15958
|
columns: e,
|
|
15883
|
-
rows: Array.from(o.children).map((t) =>
|
|
15959
|
+
rows: Array.from(o.children).map((t) => Wu(t, e.map((e) => e.field).filter((e) => e !== void 0)))
|
|
15884
15960
|
};
|
|
15885
15961
|
}
|
|
15886
|
-
return
|
|
15962
|
+
return Vu(Array.from(i.children));
|
|
15887
15963
|
}
|
|
15888
|
-
function
|
|
15964
|
+
function Vu(e) {
|
|
15889
15965
|
if (e.length === 0) return {
|
|
15890
15966
|
columns: [],
|
|
15891
15967
|
rows: []
|
|
@@ -15900,14 +15976,14 @@ function Ru(e) {
|
|
|
15900
15976
|
field: e,
|
|
15901
15977
|
title: e
|
|
15902
15978
|
})),
|
|
15903
|
-
rows: e.map((e) =>
|
|
15979
|
+
rows: e.map((e) => Wu(e, n))
|
|
15904
15980
|
};
|
|
15905
15981
|
}
|
|
15906
|
-
function
|
|
15982
|
+
function Hu(e, t) {
|
|
15907
15983
|
for (let n of Array.from(e.children)) if (n.tagName.toLowerCase() === t.toLowerCase()) return n;
|
|
15908
15984
|
return null;
|
|
15909
15985
|
}
|
|
15910
|
-
function
|
|
15986
|
+
function Uu(e) {
|
|
15911
15987
|
let t = e.trim();
|
|
15912
15988
|
if (t.length === 0) return e;
|
|
15913
15989
|
if (t === "true") return !0;
|
|
@@ -15916,13 +15992,13 @@ function Bu(e) {
|
|
|
15916
15992
|
let n = Number(t);
|
|
15917
15993
|
return !Number.isNaN(n) && Number.isFinite(n) ? n : e;
|
|
15918
15994
|
}
|
|
15919
|
-
function
|
|
15995
|
+
function Wu(e, t) {
|
|
15920
15996
|
let n = /* @__PURE__ */ new Map();
|
|
15921
|
-
for (let t of Array.from(e.children)) n.set(t.tagName,
|
|
15997
|
+
for (let t of Array.from(e.children)) n.set(t.tagName, Uu(t.textContent ?? ""));
|
|
15922
15998
|
return Object.fromEntries(t.map((e) => [e, n.has(e) ? n.get(e) : ""]));
|
|
15923
15999
|
}
|
|
15924
16000
|
F.Csv, F.Json, F.Xml;
|
|
15925
|
-
function
|
|
16001
|
+
function Gu(e, t) {
|
|
15926
16002
|
let n = e.toLowerCase().split("?")[0].split("#")[0].split(".").pop() ?? "";
|
|
15927
16003
|
if (n === "csv") return F.Csv;
|
|
15928
16004
|
if (n === "json") return F.Json;
|
|
@@ -15930,13 +16006,13 @@ function Hu(e, t) {
|
|
|
15930
16006
|
let r = (t ?? "").toLowerCase();
|
|
15931
16007
|
return r.includes("text/csv") ? F.Csv : r.includes("application/json") || r.includes("text/json") || r.includes("+json") ? F.Json : r.includes("application/xml") || r.includes("text/xml") || r.includes("+xml") ? F.Xml : F.Csv;
|
|
15932
16008
|
}
|
|
15933
|
-
function
|
|
15934
|
-
return e === F.Auto ?
|
|
16009
|
+
function Ku(e, t, n) {
|
|
16010
|
+
return e === F.Auto ? Gu(t, n) : e;
|
|
15935
16011
|
}
|
|
15936
16012
|
//#endregion
|
|
15937
16013
|
//#region ../../packages/hybrid/table-core/src/table/table-in-memory-data.ts
|
|
15938
|
-
var
|
|
15939
|
-
function
|
|
16014
|
+
var qu = 2e3;
|
|
16015
|
+
function Ju(e, t, n) {
|
|
15940
16016
|
let r = e, i = typeof t.SearchText == "string" ? t.SearchText : "";
|
|
15941
16017
|
if (i && n.tabulatorInstance) {
|
|
15942
16018
|
let e = n.tabulatorInstance.createFilterFieldFunction(n.searchFields), t = {
|
|
@@ -15968,16 +16044,16 @@ function Gu(e, t, n) {
|
|
|
15968
16044
|
}
|
|
15969
16045
|
return r;
|
|
15970
16046
|
}
|
|
15971
|
-
function
|
|
16047
|
+
function Yu(e, t) {
|
|
15972
16048
|
return async (n, r, i) => {
|
|
15973
|
-
let a = e() ?? [], o = i ?? {}, s =
|
|
16049
|
+
let a = e() ?? [], o = i ?? {}, s = Ju(a, o, t()), c = Number(o.PageNumber) || 1, l = Number(o.PageSize) || s.length || 1, u = (c - 1) * l;
|
|
15974
16050
|
return {
|
|
15975
16051
|
data: s.slice(u, u + l),
|
|
15976
16052
|
totalCount: s.length
|
|
15977
16053
|
};
|
|
15978
16054
|
};
|
|
15979
16055
|
}
|
|
15980
|
-
function
|
|
16056
|
+
function Xu(e) {
|
|
15981
16057
|
if (!e) return [];
|
|
15982
16058
|
let t = Array.isArray(e) ? e : [e], n = [];
|
|
15983
16059
|
return t.forEach((e) => {
|
|
@@ -15994,22 +16070,22 @@ function qu(e) {
|
|
|
15994
16070
|
});
|
|
15995
16071
|
}), n;
|
|
15996
16072
|
}
|
|
15997
|
-
function
|
|
16073
|
+
function Zu(e) {
|
|
15998
16074
|
return e === "" || e == null;
|
|
15999
16075
|
}
|
|
16000
|
-
function
|
|
16076
|
+
function Qu(e) {
|
|
16001
16077
|
let t = [];
|
|
16002
16078
|
return e.forEach((e, n) => {
|
|
16003
16079
|
let r = e.rules.some((e) => e.type === "unique"), i = /* @__PURE__ */ new Map();
|
|
16004
16080
|
r && e.values.forEach((e) => {
|
|
16005
|
-
|
|
16081
|
+
Zu(e) || i.set(e, (i.get(e) ?? 0) + 1);
|
|
16006
16082
|
}), e.values.forEach((r, a) => {
|
|
16007
16083
|
let o = [];
|
|
16008
16084
|
e.rules.forEach((e) => {
|
|
16009
16085
|
let t;
|
|
16010
|
-
if (e.type === "unique") t =
|
|
16086
|
+
if (e.type === "unique") t = Zu(r) || (i.get(r) ?? 0) <= 1;
|
|
16011
16087
|
else {
|
|
16012
|
-
let n =
|
|
16088
|
+
let n = Rc[e.type];
|
|
16013
16089
|
t = !n || n(r, e.parameters);
|
|
16014
16090
|
}
|
|
16015
16091
|
t || o.push({
|
|
@@ -16025,17 +16101,17 @@ function Yu(e) {
|
|
|
16025
16101
|
});
|
|
16026
16102
|
}), t;
|
|
16027
16103
|
}
|
|
16028
|
-
function
|
|
16104
|
+
function $u(e) {
|
|
16029
16105
|
let t = 0;
|
|
16030
16106
|
return e.forEach((e) => {
|
|
16031
16107
|
t += e.size;
|
|
16032
16108
|
}), t;
|
|
16033
16109
|
}
|
|
16034
|
-
async function
|
|
16110
|
+
async function ed(e, t, n, r, i, a = qu) {
|
|
16035
16111
|
let o = [], s = [];
|
|
16036
16112
|
if (t.forEach((t) => {
|
|
16037
16113
|
if (typeof t.field != "string" || t.field === "") return;
|
|
16038
|
-
let n =
|
|
16114
|
+
let n = Xu(t.validator);
|
|
16039
16115
|
if (n.length === 0) return;
|
|
16040
16116
|
let r = i?.columnManager?.getColumnByField(t.field);
|
|
16041
16117
|
o.push({
|
|
@@ -16044,13 +16120,13 @@ async function Zu(e, t, n, r, i, a = Wu) {
|
|
|
16044
16120
|
values: e.map((e) => r ? r.getFieldValue(e) : e[t.field])
|
|
16045
16121
|
}), s.push(t.field);
|
|
16046
16122
|
}), o.length === 0) return !1;
|
|
16047
|
-
let c = a ??
|
|
16123
|
+
let c = a ?? qu, l = c !== !1 && e.length > c, u;
|
|
16048
16124
|
if (l) try {
|
|
16049
|
-
u = await
|
|
16125
|
+
u = await Jc(o);
|
|
16050
16126
|
} catch {
|
|
16051
|
-
u =
|
|
16127
|
+
u = Qu(o);
|
|
16052
16128
|
}
|
|
16053
|
-
else u =
|
|
16129
|
+
else u = Qu(o);
|
|
16054
16130
|
return u.forEach((e) => {
|
|
16055
16131
|
let t = s[e.fieldIndex];
|
|
16056
16132
|
if (!t) return;
|
|
@@ -16058,7 +16134,7 @@ async function Zu(e, t, n, r, i, a = Wu) {
|
|
|
16058
16134
|
a || (a = /* @__PURE__ */ new Map(), r.set(i, a)), a.set(t, e.failures);
|
|
16059
16135
|
}), !0;
|
|
16060
16136
|
}
|
|
16061
|
-
function
|
|
16137
|
+
function td(e, t) {
|
|
16062
16138
|
return e.map((e) => {
|
|
16063
16139
|
if (typeof e.field != "string" || e.field === "" || !e.validator) return e;
|
|
16064
16140
|
let n = e.field, r = e.formatter, i = (e, i, a) => {
|
|
@@ -16066,7 +16142,7 @@ function Qu(e, t) {
|
|
|
16066
16142
|
if (l.modules.validate || (l.modules.validate = {}), c && c.length > 0) {
|
|
16067
16143
|
l.modules.validate.invalid = c;
|
|
16068
16144
|
let t = e.getElement();
|
|
16069
|
-
t && (t.classList.add("tabulator-validation-fail"), t.setAttribute(
|
|
16145
|
+
t && (t.classList.add("tabulator-validation-fail"), t.setAttribute(Qc, c.map((e) => e.message).filter(Boolean).join("\n")));
|
|
16070
16146
|
} else l.modules.validate.invalid = !1;
|
|
16071
16147
|
return o;
|
|
16072
16148
|
};
|
|
@@ -16076,7 +16152,7 @@ function Qu(e, t) {
|
|
|
16076
16152
|
};
|
|
16077
16153
|
});
|
|
16078
16154
|
}
|
|
16079
|
-
function
|
|
16155
|
+
function nd(e, t) {
|
|
16080
16156
|
e.some((e) => e.mutateOnValidate) && t && t.getRows().forEach((e) => {
|
|
16081
16157
|
e.getCells().forEach((e) => {
|
|
16082
16158
|
if (!e.getColumn().getDefinition().mutateOnValidate) return;
|
|
@@ -16085,11 +16161,11 @@ function $u(e, t) {
|
|
|
16085
16161
|
});
|
|
16086
16162
|
});
|
|
16087
16163
|
}
|
|
16088
|
-
function
|
|
16164
|
+
function rd(e, t) {
|
|
16089
16165
|
let n = t?.modules?.mutator;
|
|
16090
16166
|
n && e.forEach((e) => n.transformRow(e, "data"));
|
|
16091
16167
|
}
|
|
16092
|
-
function
|
|
16168
|
+
function id(e, t, n, r, i) {
|
|
16093
16169
|
let a = t.filter((e) => e.mutateOnValidate && typeof e.field == "string" && e.field !== "" && typeof e.mutator == "function");
|
|
16094
16170
|
if (a.length === 0) return;
|
|
16095
16171
|
let o = t.filter((e) => typeof e.field == "string" && e.field !== "");
|
|
@@ -16114,24 +16190,24 @@ function td(e, t, n, r, i) {
|
|
|
16114
16190
|
}
|
|
16115
16191
|
//#endregion
|
|
16116
16192
|
//#region ../../packages/hybrid/table-core/src/table/table.ts
|
|
16117
|
-
var
|
|
16118
|
-
static #e =
|
|
16193
|
+
var ad, Z = class extends d {
|
|
16194
|
+
static #e = ad = this;
|
|
16119
16195
|
static #t = this.styles = [
|
|
16120
16196
|
h,
|
|
16121
|
-
|
|
16197
|
+
Eu,
|
|
16122
16198
|
Oe
|
|
16123
16199
|
];
|
|
16124
16200
|
static #n = this.dependencies = {
|
|
16125
|
-
"cx-button":
|
|
16201
|
+
"cx-button": ne,
|
|
16126
16202
|
"cx-checkbox": fe,
|
|
16127
16203
|
"cx-divider": Ae,
|
|
16128
16204
|
"cx-faceted-filter": Nt,
|
|
16129
16205
|
"cx-format-number": Xe,
|
|
16130
|
-
"cx-icon":
|
|
16131
|
-
"cx-icon-button":
|
|
16206
|
+
"cx-icon": D,
|
|
16207
|
+
"cx-icon-button": w,
|
|
16132
16208
|
"cx-select": be,
|
|
16133
16209
|
"cx-space": ve,
|
|
16134
|
-
"cx-spinner":
|
|
16210
|
+
"cx-spinner": O,
|
|
16135
16211
|
"cx-table-column-editor": jn,
|
|
16136
16212
|
"cx-table-footer": Pn,
|
|
16137
16213
|
"cx-table-header-menu": Ln,
|
|
@@ -16208,9 +16284,9 @@ var nd, Z = class extends d {
|
|
|
16208
16284
|
async initTable() {
|
|
16209
16285
|
this.tabulatorInstance &&= (this.selectAllController.resetSelection(), this.overflowObserver?.disconnect(), this.osInstance?.destroy(), this.tabulatorInstance.off("tableBuilt"), this.tabulatorInstance.destroy(), null), this.filterController.syncDropdownFilterSources(this.dropdownFilters);
|
|
16210
16286
|
let e = this.filterController.getMergedFilters();
|
|
16211
|
-
!this.pagination || !this.dataUrl?.trim() ? (this.internalAjaxRequestFunc = void 0, this.inMemoryDataUrlRows = null, this.inMemoryValidationResult = null, this.lastAttemptedDataUrl = null) : this.internalAjaxRequestFunc ||=
|
|
16287
|
+
!this.pagination || !this.dataUrl?.trim() ? (this.internalAjaxRequestFunc = void 0, this.inMemoryDataUrlRows = null, this.inMemoryValidationResult = null, this.lastAttemptedDataUrl = null) : this.internalAjaxRequestFunc ||= Yu(() => this.inMemoryDataUrlRows, () => this.inMemoryFilterSortContext);
|
|
16212
16288
|
let t = this.rowHeader;
|
|
16213
|
-
t ?? (this.movableRows ? t =
|
|
16289
|
+
t ?? (this.movableRows ? t = Du : this.responsiveLayout === "collapse" && (t = { formatter: "responsiveCollapse" })), this.tabulatorInstance = new Jl(this.table, {
|
|
16214
16290
|
ajaxConfig: { method: this.ajaxMethod },
|
|
16215
16291
|
ajaxContentType: this.ajaxMethod?.toUpperCase() === "POST" ? "json" : "form",
|
|
16216
16292
|
ajaxParams: this.ajaxParams,
|
|
@@ -16268,7 +16344,7 @@ var nd, Z = class extends d {
|
|
|
16268
16344
|
groupValues: this.groupValues,
|
|
16269
16345
|
headerFilterLiveFilterDelay: this.headerFilterLiveFilterDelay,
|
|
16270
16346
|
headerHidden: this.noHeader,
|
|
16271
|
-
headerSortElement:
|
|
16347
|
+
headerSortElement: ju,
|
|
16272
16348
|
hoverMenu: this.hoverMenu,
|
|
16273
16349
|
index: this.rowIdField,
|
|
16274
16350
|
initialFilter: e,
|
|
@@ -16331,7 +16407,7 @@ var nd, Z = class extends d {
|
|
|
16331
16407
|
this.initialized && this.initScrollbars();
|
|
16332
16408
|
}
|
|
16333
16409
|
constructor() {
|
|
16334
|
-
super(), this.localize = new _(this), this.hasSlotController = new v(this, "add-action"), this.osInstance = null, this.resizeObserver = null, this.overflowObserver = null, this.ajaxFacetsController = new
|
|
16410
|
+
super(), this.localize = new _(this), this.hasSlotController = new v(this, "add-action"), this.osInstance = null, this.resizeObserver = null, this.overflowObserver = null, this.ajaxFacetsController = new Xl(this), this.filterController = new nu(this), this.ajaxFacetFilterController = new tu(this, this.filterController), this.selectAllController = new ru(this), this.shadowRootAutoloader = new Et(this), this.validationTooltipAnchor = null, this.validationTooltipHidePromise = null, this.movableRows = !1, this.movableColumns = !1, this.data = void 0, this.rowHeight = 48, this.layout = "fitColumns", this.columns = [], this.footerElement = void 0, this.responsiveLayout = !1, this.responsiveLayoutCollapseFormatter = void 0, this.responsiveLayoutCollapseUseFormatters = void 0, this.rowHeader = void 0, this.noHeader = !1, this.textDirection = void 0, this.responsiveLayoutCollapseStartOpen = void 0, this.renderVerticalBuffer = void 0, this.renderVertical = "virtual", this.validateOnLoad = !1, this.validationWorkerThreshold = void 0, this.columnDefaults = {}, this.headerContextMenu = !1, this.canSearch = !1, this.noAdvancedSearch = !1, this.showSavedSearch = !1, this.searchFields = [], this.searchMatchAnyKeyword = !1, this.canAdd = !1, this.addLabel = this.localize.term("add"), this.canExportCsv = !1, this.canExportXml = !1, this.canExportPdf = !1, this.canExportCustom = !1, this.canSaveReport = !1, this.savedSearchURL = "", this.savedSearchItems = [], this.savedSearchPageSizeParam = "PageSize", this.savedSearchPageSize = 10, this.savedSearchPageNumberParam = "PageNumber", this.dropdownFilters = [], this.groupByOptions = [], this.ajaxURL = void 0, this.ajaxMethod = "GET", this.ajaxURLGenerator = void 0, this.ajaxParams = void 0, this.ajaxResponse = void 0, this.facetConfig = void 0, this.additionalAppliedFilters = [], this.dataSendParams = void 0, this.dataReceiveParams = void 0, this.noAutoResize = !1, this.resizableRows = !1, this.resizableColumnFit = !1, this.resizableColumnGuide = !1, this.resizableRowGuide = !1, this.frozenRows = void 0, this.frozenRowsField = "id", this.placeholder = this.localize.term("noData"), this.groupBy = void 0, this.groupHeader = void 0, this.groupHeaderCount = !1, this.groupHeaderUseFormatter = !1, this.groupIndent = 36, this.groupHeaderPrint = void 0, this.groupHeaderClipboard = void 0, this.groupHeaderDownload = void 0, this.groupHeaderHtmlOutput = void 0, this.groupStartOpen = !1, this.groupStartOpenValues = void 0, this.groupToggleElement = "arrow", this.groupValues = [], this.groupUpdateOnCellEdit = !1, this.groupLoadMoreMeta = {}, this.dataTree = !1, this.dataTreeChildField = "_children", this.dataTreeLoadingField = "loading", this.dataTreeHasMoreField = "hasMore", this.dataTreeFilter = !1, this.dataTreeSort = !1, this.dataTreeElementColumn = void 0, this.dataTreeChildIndent = 9, this.dataTreeStartExpanded = !1, this.dataTreeSelectPropagate = !1, this.dataTreeExpandElement = void 0, this.dataTreeCollapseElement = void 0, this.spreadsheet = !1, this.spreadsheetColumns = 50, this.spreadsheetRows = 50, this.spreadsheetColumnDefinition = void 0, this.spreadsheetOutputFull = !1, this.editorEmptyValue = "", this.spreadsheetSheets = void 0, this.spreadsheetSheetTabs = !1, this.spreadsheetData = void 0, this.selectableRange = 1, this.noSelectable = !1, this.selectableRangeColumns = !1, this.selectableRangeRows = !1, this.selectableRangeClearCells = !1, this.editTriggerEvent = "dblclick", this.selectableRangeAutoFocus = !1, this.noClipboard = !1, this.clipboardAction = Rt.Both, this.clipboardCopyRowRange = "range", this.clipboardPasteParser = void 0, this.clipboardPasteAction = "insert", this.clipboardCopyConfig = { columnHeaders: !1 }, this.clipboardNoCopyStyled = !1, this.pagination = !1, this.paginationMode = Vt.Local, this.paginationSize = void 0, this.paginationInitialPage = 1, this.paginationButtonCount = 5, this.showPaginationButtons = !1, this.hidePaginationInput = !1, this.pageSizeOptions = void 0, this.paginationAddRow = "page", this.paginationCounter = Qe.Both, this.paginationShowFirst = !1, this.paginationShowLast = !1, this.paginationPlacement = Ft.TopEnd, this.noHeaderRowReserve = !1, this.hoverMenu = void 0, this.label = "", this.tabulatorRole = "grid", this.columnGroupRole = "columngroup", this.columnHeaderRole = "columnheader", this.rowRole = "row", this.rowGroupRole = "rowgroup", this.cellRole = "gridcell", this.filterMode = Vt.Local, this.placeholderHeaderFilter = "No matching data", this.noColumnPlaceholderText = this.localize.term("noColumnsVisible"), this.useOverlayScrollbar = !1, this.loading = !1, this.canSelectAll = !1, this.rowIdField = "id", this.dataUrl = "", this.dateFilterCompareFormat = Ht.IsoDateTime, this.dataFormat = F.Auto, this.dataUrlPath = "", this.preserveColumnsOnLoad = !1, this.tabulatorInstance = null, this.watchedEvents = /* @__PURE__ */ new Set(), this.activeSearchValue = "", this.dataUrlRequestId = 0, this.inMemoryDataUrlRows = null, this.inMemoryValidationResult = null, this.internalAjaxRequestFunc = void 0, this.lastAttemptedDataUrl = null, this.hasFacets = !1, this.headerMenuOpen = !1, this.headerMenuField = "", this.headerMenuPointX = 0, this.headerMenuPointY = 0, this.headerMenuHideDisabled = !1, this.columnEditorOpen = !1, this.columnEditorEntries = [], this.handleTableBuilt = () => {
|
|
16335
16411
|
this.initScrollbars(), this.initOverflowObserver(), this.tabulatorInstance?.setColumns(this.columns ?? []), this.validateOnLoad && this.tabulatorInstance?.validateAsync(), this.filterController.syncDropdownFilterSources(this.dropdownFilters), this.handleSearch(), this.filterController.applyFilters(), this.refreshInMemoryPaginationCount(), this.placePaginator(), this.dataUrl && (!this.pagination || this.lastAttemptedDataUrl !== this.dataUrl.trim()) && this.loadFromDataUrl();
|
|
16336
16412
|
}, this.handleValidationChanged = (e) => {
|
|
16337
16413
|
this.validationTooltipAnchor && !this.validationTooltipAnchor.isConnected && this.hideValidationTooltip();
|
|
@@ -16369,7 +16445,7 @@ var nd, Z = class extends d {
|
|
|
16369
16445
|
}), this.resizeObserver.observe(this);
|
|
16370
16446
|
}
|
|
16371
16447
|
handleValidationMouseOver(e) {
|
|
16372
|
-
let t = e.target?.closest(`[${
|
|
16448
|
+
let t = e.target?.closest(`[${Qc}]`);
|
|
16373
16449
|
if (t && (globalThis.clearTimeout(this.validationTooltipHideTimeout), t !== this.validationTooltipAnchor)) {
|
|
16374
16450
|
if (this.validationTooltipAnchor = t, this.validationTooltipHidePromise) {
|
|
16375
16451
|
this.validationTooltipHidePromise.then(() => {
|
|
@@ -16561,7 +16637,7 @@ var nd, Z = class extends d {
|
|
|
16561
16637
|
}
|
|
16562
16638
|
handleTableExport(e) {
|
|
16563
16639
|
if (e.stopPropagation(), !this.tabulatorInstance) return;
|
|
16564
|
-
let t = this.inMemoryDataUrlRows ?
|
|
16640
|
+
let t = this.inMemoryDataUrlRows ? Ju(this.inMemoryDataUrlRows, {
|
|
16565
16641
|
SearchText: this.activeSearchValue,
|
|
16566
16642
|
Sort: this.buildActiveSortParam(),
|
|
16567
16643
|
filters: this.tabulatorInstance.getFilters(!0).filter((e) => e.type !== L.Keywords && e.type !== L.Like)
|
|
@@ -16598,9 +16674,9 @@ var nd, Z = class extends d {
|
|
|
16598
16674
|
let t = s.length;
|
|
16599
16675
|
e.forEach((e) => {
|
|
16600
16676
|
e.__cxRowIndex = s.length, s.push(e);
|
|
16601
|
-
}),
|
|
16602
|
-
}, m =
|
|
16603
|
-
return t === F.Csv ? await
|
|
16677
|
+
}), rd(e, this.tabulatorInstance), !d && s.length >= r && (d = !0, a(l, s)), d && !this.hasActiveDataFilter && this.updatePaginationCountLive(s.length), await ed(e, u, t, c, this.tabulatorInstance, this.validationWorkerThreshold) && n === this.dataUrlRequestId && o(s.length, c), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
16678
|
+
}, m = ad.IN_MEMORY_PARSE_CHUNK_SIZE;
|
|
16679
|
+
return t === F.Csv ? await Mu(e, f, p, m) : t === F.Json ? await Pu(e, f, p, m, this.dataUrlPath) : t === F.Xml && await Nu(e, f, p, m, this.dataUrlPath), d || a(l, s), {
|
|
16604
16680
|
columns: l,
|
|
16605
16681
|
rows: s,
|
|
16606
16682
|
validationResult: c
|
|
@@ -16622,7 +16698,7 @@ var nd, Z = class extends d {
|
|
|
16622
16698
|
}
|
|
16623
16699
|
countFilteredInMemoryRows(e) {
|
|
16624
16700
|
let t = this.activeDataFilters.filter((e) => e.type !== L.Keywords && e.type !== L.Like);
|
|
16625
|
-
return
|
|
16701
|
+
return Ju(e, {
|
|
16626
16702
|
SearchText: this.activeSearchValue,
|
|
16627
16703
|
filters: t
|
|
16628
16704
|
}, this.inMemoryFilterSortContext).length;
|
|
@@ -16635,7 +16711,7 @@ var nd, Z = class extends d {
|
|
|
16635
16711
|
t && (t.setMaxRows(e), t.paginationElement && (t.paginationElement.count = e));
|
|
16636
16712
|
}
|
|
16637
16713
|
async streamCsvData(e, t) {
|
|
16638
|
-
let n = !0, r = await
|
|
16714
|
+
let n = !0, r = await Mu(e, (e) => {
|
|
16639
16715
|
t === this.dataUrlRequestId && (this.columns = this.resolveColumnsAfterLoad(e));
|
|
16640
16716
|
}, async (e) => {
|
|
16641
16717
|
t === this.dataUrlRequestId && (n ? (await this.tabulatorInstance?.setData(e), n = !1) : await this.tabulatorInstance?.addData(e), await new Promise((e) => requestAnimationFrame(() => e())));
|
|
@@ -16648,7 +16724,7 @@ var nd, Z = class extends d {
|
|
|
16648
16724
|
r ? (await this.tabulatorInstance?.setData(e), r = !1) : await this.tabulatorInstance?.addData(e), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
16649
16725
|
}, a;
|
|
16650
16726
|
try {
|
|
16651
|
-
a = await
|
|
16727
|
+
a = await Pu(e, (e) => {
|
|
16652
16728
|
t === this.dataUrlRequestId && (this.columns = this.resolveColumnsAfterLoad(e));
|
|
16653
16729
|
}, i, 500, this.dataUrlPath);
|
|
16654
16730
|
} catch (e) {
|
|
@@ -16663,7 +16739,7 @@ var nd, Z = class extends d {
|
|
|
16663
16739
|
r ? (await this.tabulatorInstance?.setData(e), r = !1) : await this.tabulatorInstance?.addData(e), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
16664
16740
|
}, a;
|
|
16665
16741
|
try {
|
|
16666
|
-
a = await
|
|
16742
|
+
a = await Nu(e, (e) => {
|
|
16667
16743
|
t === this.dataUrlRequestId && (this.columns = this.resolveColumnsAfterLoad(e));
|
|
16668
16744
|
}, i, 500, this.dataUrlPath);
|
|
16669
16745
|
} catch (e) {
|
|
@@ -16679,24 +16755,24 @@ var nd, Z = class extends d {
|
|
|
16679
16755
|
try {
|
|
16680
16756
|
let n = await fetch(e);
|
|
16681
16757
|
if (!n.ok) throw Error(`Failed to fetch data: ${n.status} ${n.statusText}`);
|
|
16682
|
-
let r = n.headers.get("content-type"), i =
|
|
16758
|
+
let r = n.headers.get("content-type"), i = Ku(this.dataFormat, e, r);
|
|
16683
16759
|
if (t !== this.dataUrlRequestId) return;
|
|
16684
16760
|
let a = await n.text();
|
|
16685
16761
|
if (t !== this.dataUrlRequestId) return;
|
|
16686
16762
|
if (this.pagination) {
|
|
16687
|
-
let n = this.paginationSize ?? 200, r = !1, o = [], s = 0, { rows: c, validationResult: l } = await this.parseDataUrlIntoMemory(a, i, t, n, (e) => (o =
|
|
16763
|
+
let n = this.paginationSize ?? 200, r = !1, o = [], s = 0, { rows: c, validationResult: l } = await this.parseDataUrlIntoMemory(a, i, t, n, (e) => (o = td(this.resolveColumnsAfterLoad(e), () => this.inMemoryValidationResult), o), (e, n) => {
|
|
16688
16764
|
r || t !== this.dataUrlRequestId || (r = !0, this.inMemoryDataUrlRows = n, this.columns = o, this.tabulatorInstance?.setData(void 0), this.setLoading(!1));
|
|
16689
16765
|
}, (e, n) => {
|
|
16690
|
-
t === this.dataUrlRequestId && (this.inMemoryValidationResult = n, this.inMemoryDataUrlRows && (
|
|
16766
|
+
t === this.dataUrlRequestId && (this.inMemoryValidationResult = n, this.inMemoryDataUrlRows && (id(this.inMemoryDataUrlRows, o, s, e, n), s = e), this.emit("cx-table-validation-change", { detail: {
|
|
16691
16767
|
complete: !1,
|
|
16692
|
-
invalidCellCount:
|
|
16768
|
+
invalidCellCount: $u(n),
|
|
16693
16769
|
invalidCells: []
|
|
16694
|
-
} }), r && (
|
|
16770
|
+
} }), r && (nd(o, this.tabulatorInstance), this.tabulatorInstance?.redraw(!0)));
|
|
16695
16771
|
});
|
|
16696
16772
|
if (t !== this.dataUrlRequestId) return;
|
|
16697
|
-
this.inMemoryValidationResult = l,
|
|
16773
|
+
this.inMemoryValidationResult = l, id(c, o, s, c.length, l), this.refreshInMemoryPaginationCount(), t === this.dataUrlRequestId && await this.tabulatorInstance?.setData(void 0), t === this.dataUrlRequestId && (this.emit("cx-table-validation-change", { detail: {
|
|
16698
16774
|
complete: !0,
|
|
16699
|
-
invalidCellCount:
|
|
16775
|
+
invalidCellCount: $u(l),
|
|
16700
16776
|
invalidCells: []
|
|
16701
16777
|
} }), this.emit("cx-table-data-load", { detail: {
|
|
16702
16778
|
format: i,
|
|
@@ -16745,8 +16821,8 @@ var nd, Z = class extends d {
|
|
|
16745
16821
|
} : r : Array.isArray(r) ? r : r?.data ?? r;
|
|
16746
16822
|
}
|
|
16747
16823
|
renderToolbar() {
|
|
16748
|
-
return r`<cx-table-toolbar label=${this.label} ?pagination=${this.pagination} pagination-placement=${
|
|
16749
|
-
${
|
|
16824
|
+
return r`<cx-table-toolbar label=${this.label} ?pagination=${this.pagination} pagination-placement=${T(this.pagination ? this.paginationPlacement : void 0)} ?no-header-row-reserve=${this.noHeaderRowReserve} ?has-dynamic-filter=${this.hasFacets} ?can-search=${this.canSearch} search-value=${this.searchValue} ?can-add=${this.canAdd} add-label=${this.addLabel} ?can-export-csv=${this.canExportCsv} ?can-export-xml=${this.canExportXml} ?can-export-pdf=${this.canExportPdf} ?can-export-custom=${this.canExportCustom} ?can-save-report=${this.canSaveReport} ?show-saved-search=${this.showSavedSearch} ?no-advanced-search=${this.noAdvancedSearch} .dropdownFilters=${this.dropdownFilters} .groupByOptions=${this.groupByOptions} group-by-value=${typeof this.groupBy == "string" ? this.groupBy : ""} saved-search-url=${this.savedSearchURL} .savedSearchItems=${this.savedSearchItems} saved-search-page-size-param=${this.savedSearchPageSizeParam} saved-search-page-size=${this.savedSearchPageSize} saved-search-page-number-param=${this.savedSearchPageNumberParam} .selectAllState=${this.canSelectAll ? this.selectAllController.state : null} @cx-search=${this.handleSearch} @cx-table-export=${this.handleTableExport} @cx-table-dropdown-filter-change=${this.handleDropdownFilterChange} @cx-table-group-by-change=${this.handleTableGroupByChange} @cx-table-select-all-change=${this.handleSelectAllChange}><slot name="select-all-actions" slot="select-all-actions"></slot>${E(this.hasFacets, () => r`<cx-faceted-filter slot="dialog-dynamic-filter" .facets=${this.ajaxFacetsController.facets} .availableFacets=${this.ajaxFacetsController.availableFacets} .externalFilters=${this.appliedFilterTags} @cx-faceted-filter-remove=${this.handleAppliedFilterRemove}></cx-faceted-filter>`)}
|
|
16825
|
+
${E(this.hasSlotController.test("add-action"), () => r`<slot name="add-action" slot="add-action"></slot>`)}</cx-table-toolbar>`;
|
|
16750
16826
|
}
|
|
16751
16827
|
renderPaginationFooter() {
|
|
16752
16828
|
return r`<cx-table-footer part="pagination-footer" pagination-placement=${this.paginationPlacement}></cx-table-footer>`;
|
|
@@ -16810,10 +16886,10 @@ var nd, Z = class extends d {
|
|
|
16810
16886
|
this.columnEditorOpen = !1, this.emit("cx-table-columns-change", { detail: { visibleFields: e } });
|
|
16811
16887
|
}
|
|
16812
16888
|
render() {
|
|
16813
|
-
return r`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${
|
|
16889
|
+
return r`<cx-space part="base" direction="vertical" spacing="large" wrap="nowrap" class=${C({
|
|
16814
16890
|
container: !0,
|
|
16815
16891
|
"container--overlay-scrollbar": this.useOverlayScrollbar
|
|
16816
|
-
})}>${
|
|
16892
|
+
})}>${E(this.showTableToolbar, () => this.renderToolbar())}<div part="table" class="table" @mouseover=${this.handleValidationMouseOver} @mouseout=${this.handleValidationMouseOut} @contextmenu=${this.handleHeaderContextMenu}></div>${E(this.showPaginationFooter, () => this.renderPaginationFooter())}</cx-space><cx-tooltip class="validation-tooltip" trigger="manual" disabled-hover-bridge></cx-tooltip><cx-table-header-menu ?open=${this.headerMenuOpen} point-x=${this.headerMenuPointX} point-y=${this.headerMenuPointY} field=${this.headerMenuField} ?hide-disabled=${this.headerMenuHideDisabled} @cx-table-header-menu-select=${this.handleHeaderMenuSelect} @cx-table-header-menu-close=${this.handleHeaderMenuClose}></cx-table-header-menu><cx-table-column-editor ?open=${this.columnEditorOpen} .entries=${this.columnEditorEntries} @cx-table-column-editor-apply=${this.handleColumnEditorApply} @cx-table-column-editor-cancel=${this.handleColumnEditorCancel}></cx-table-column-editor>`;
|
|
16817
16893
|
}
|
|
16818
16894
|
};
|
|
16819
16895
|
l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? Object : HTMLDivElement)], Z.prototype, "tabulatorHolder", void 0), l([f(".tabulator"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], Z.prototype, "tabulatorElement", void 0), l([f(".table"), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], Z.prototype, "table", void 0), l([f("cx-table-toolbar"), u("design:type", Xn === void 0 ? Object : Xn)], Z.prototype, "tableToolbar", void 0), l([f("cx-table-footer"), u("design:type", Object)], Z.prototype, "tableFooter", void 0), l([f(".validation-tooltip"), u("design:type", N === void 0 ? Object : N)], Z.prototype, "validationTooltip", void 0), l([s({
|
|
@@ -16997,7 +17073,7 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
16997
17073
|
type: Boolean
|
|
16998
17074
|
}), u("design:type", Boolean)], Z.prototype, "resizableRowGuide", void 0), l([s({
|
|
16999
17075
|
attribute: "frozen-rows",
|
|
17000
|
-
converter:
|
|
17076
|
+
converter: Ou
|
|
17001
17077
|
}), u("design:type", Object)], Z.prototype, "frozenRows", void 0), l([s({
|
|
17002
17078
|
attribute: "frozen-rows-field",
|
|
17003
17079
|
type: String
|
|
@@ -17006,7 +17082,7 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17006
17082
|
type: String
|
|
17007
17083
|
}), u("design:type", String)], Z.prototype, "placeholder", void 0), l([s({
|
|
17008
17084
|
attribute: "group-by",
|
|
17009
|
-
converter:
|
|
17085
|
+
converter: Au
|
|
17010
17086
|
}), u("design:type", Object)], Z.prototype, "groupBy", void 0), l([s({ attribute: "group-header" }), u("design:type", Object)], Z.prototype, "groupHeader", void 0), l([s({
|
|
17011
17087
|
attribute: "group-header-count",
|
|
17012
17088
|
type: Boolean
|
|
@@ -17079,7 +17155,7 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17079
17155
|
type: Number
|
|
17080
17156
|
}), u("design:type", Number)], Z.prototype, "dataTreeChildIndent", void 0), l([s({
|
|
17081
17157
|
attribute: "data-tree-start-expanded",
|
|
17082
|
-
converter:
|
|
17158
|
+
converter: ku
|
|
17083
17159
|
}), u("design:type", Object)], Z.prototype, "dataTreeStartExpanded", void 0), l([s({
|
|
17084
17160
|
attribute: "data-tree-select-propagate",
|
|
17085
17161
|
type: Boolean
|
|
@@ -17268,17 +17344,17 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17268
17344
|
attribute: "preserve-columns-on-load",
|
|
17269
17345
|
type: Boolean
|
|
17270
17346
|
}), u("design:type", Object)], Z.prototype, "preserveColumnsOnLoad", void 0), l([c(), u("design:type", Object)], Z.prototype, "tabulatorInstance", void 0), l([c(), u("design:type", Object)], Z.prototype, "watchedEvents", void 0), l([c(), u("design:type", String)], Z.prototype, "activeSearchValue", void 0), l([c(), u("design:type", Object)], Z.prototype, "dataUrlRequestId", void 0), l([c(), u("design:type", Object)], Z.prototype, "hasFacets", void 0), l([c(), u("design:type", Object)], Z.prototype, "headerMenuOpen", void 0), l([c(), u("design:type", Object)], Z.prototype, "headerMenuField", void 0), l([c(), u("design:type", Object)], Z.prototype, "headerMenuPointX", void 0), l([c(), u("design:type", Object)], Z.prototype, "headerMenuPointY", void 0), l([c(), u("design:type", Object)], Z.prototype, "headerMenuHideDisabled", void 0), l([c(), u("design:type", Object)], Z.prototype, "columnEditorOpen", void 0), l([c(), u("design:type", Array)], Z.prototype, "columnEditorEntries", void 0), l([
|
|
17271
|
-
|
|
17347
|
+
S("useOverlayScrollbar"),
|
|
17272
17348
|
u("design:type", Function),
|
|
17273
17349
|
u("design:paramtypes", []),
|
|
17274
17350
|
u("design:returntype", void 0)
|
|
17275
17351
|
], Z.prototype, "handleUseOverlayScrollbarChange", null), l([
|
|
17276
|
-
|
|
17352
|
+
S(/* @__PURE__ */ "movableRows.movableColumns.rowHeight.layout.footerElement.responsiveLayout.responsiveLayoutCollapseStartOpen.responsiveLayoutCollapseFormatter.responsiveLayoutCollapseUseFormatters.rowHeader.noHeader.textDirection.renderVerticalBuffer.renderVertical.columnDefaults.ajaxURL.ajaxMethod.ajaxURLGenerator.ajaxParams.ajaxResponse.ajaxRequestFunc.dataSendParams.dataReceiveParams.noAutoResize.resizableRows.resizableColumnFit.resizableColumnGuide.resizableRowGuide.frozenRows.frozenRowsField.placeholder.groupHeaderPrint.groupHeaderClipboard.groupHeaderCount.groupHeaderDownload.groupHeaderHtmlOutput.groupToggleElement.groupStartOpen.groupStartOpenValues.groupIndent.groupUpdateOnCellEdit.dataTree.dataTreeChildField.dataTreeLoadingField.dataTreeHasMoreField.dataTreeFilter.dataTreeSort.dataTreeElementColumn.dataTreeChildIndent.dataTreeStartExpanded.dataTreeSelectPropagate.dataTreeExpandElement.dataTreeCollapseElement.spreadsheet.spreadsheetColumns.spreadsheetRows.spreadsheetColumnDefinition.spreadsheetOutputFull.hidePaginationInput.editorEmptyValue.spreadsheetSheets.spreadsheetSheetTabs.selectableRange.noSelectable.selectableRangeColumns.selectableRangeRows.selectableRangeClearCells.editTriggerEvent.selectableRangeAutoFocus.noClipboard.clipboardAction.clipboardCopyRowRange.clipboardPasteParser.clipboardPasteAction.clipboardCopyConfig.clipboardNoCopyStyled.pagination.paginationMode.paginationButtonCount.pageSizeOptions.paginationAddRow.paginationCounter.hoverMenu.tabulatorRole.columnGroupRole.columnHeaderRole.rowRole.rowGroupRole.cellRole.filterMode.initialFilter.initialHeaderFilter.headerFilterLiveFilterDelay.placeholderHeaderFilter.canSelectAll.rowIdField.validateOnLoad.validationWorkerThreshold".split(".")),
|
|
17277
17353
|
u("design:type", Function),
|
|
17278
17354
|
u("design:paramtypes", []),
|
|
17279
17355
|
u("design:returntype", void 0)
|
|
17280
17356
|
], Z.prototype, "handleLayoutChange", null), l([
|
|
17281
|
-
|
|
17357
|
+
S("data", {
|
|
17282
17358
|
deepCompare: !0,
|
|
17283
17359
|
waitUntilFirstUpdate: !0
|
|
17284
17360
|
}),
|
|
@@ -17286,12 +17362,12 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17286
17362
|
u("design:paramtypes", []),
|
|
17287
17363
|
u("design:returntype", void 0)
|
|
17288
17364
|
], Z.prototype, "handleDataChange", null), l([
|
|
17289
|
-
|
|
17365
|
+
S("spreadsheetData", { waitUntilFirstUpdate: !0 }),
|
|
17290
17366
|
u("design:type", Function),
|
|
17291
17367
|
u("design:paramtypes", []),
|
|
17292
17368
|
u("design:returntype", void 0)
|
|
17293
17369
|
], Z.prototype, "handleSpreadsheetDataChange", null), l([
|
|
17294
|
-
|
|
17370
|
+
S("columns", {
|
|
17295
17371
|
deepCompare: !0,
|
|
17296
17372
|
waitUntilFirstUpdate: !0
|
|
17297
17373
|
}),
|
|
@@ -17299,32 +17375,32 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17299
17375
|
u("design:paramtypes", []),
|
|
17300
17376
|
u("design:returntype", void 0)
|
|
17301
17377
|
], Z.prototype, "handleColumnsChange", null), l([
|
|
17302
|
-
|
|
17378
|
+
S("noColumnPlaceholderText", { waitUntilFirstUpdate: !0 }),
|
|
17303
17379
|
u("design:type", Function),
|
|
17304
17380
|
u("design:paramtypes", []),
|
|
17305
17381
|
u("design:returntype", void 0)
|
|
17306
17382
|
], Z.prototype, "handleNoColumnPlaceholderTextChange", null), l([
|
|
17307
|
-
|
|
17383
|
+
S("groupBy", { waitUntilFirstUpdate: !0 }),
|
|
17308
17384
|
u("design:type", Function),
|
|
17309
17385
|
u("design:paramtypes", []),
|
|
17310
17386
|
u("design:returntype", void 0)
|
|
17311
17387
|
], Z.prototype, "handleGroupByChange", null), l([
|
|
17312
|
-
|
|
17388
|
+
S("groupHeader", { waitUntilFirstUpdate: !0 }),
|
|
17313
17389
|
u("design:type", Function),
|
|
17314
17390
|
u("design:paramtypes", []),
|
|
17315
17391
|
u("design:returntype", void 0)
|
|
17316
17392
|
], Z.prototype, "handleGroupHeaderChange", null), l([
|
|
17317
|
-
|
|
17393
|
+
S("groupHeaderUseFormatter", { waitUntilFirstUpdate: !0 }),
|
|
17318
17394
|
u("design:type", Function),
|
|
17319
17395
|
u("design:paramtypes", []),
|
|
17320
17396
|
u("design:returntype", void 0)
|
|
17321
17397
|
], Z.prototype, "handleGroupHeaderUseFormatterChange", null), l([
|
|
17322
|
-
|
|
17398
|
+
S("groupValues", { waitUntilFirstUpdate: !0 }),
|
|
17323
17399
|
u("design:type", Function),
|
|
17324
17400
|
u("design:paramtypes", []),
|
|
17325
17401
|
u("design:returntype", void 0)
|
|
17326
17402
|
], Z.prototype, "handleGroupValuesChange", null), l([
|
|
17327
|
-
|
|
17403
|
+
S("groupLoadMoreMeta", {
|
|
17328
17404
|
deepCompare: !0,
|
|
17329
17405
|
waitUntilFirstUpdate: !0
|
|
17330
17406
|
}),
|
|
@@ -17332,42 +17408,42 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17332
17408
|
u("design:paramtypes", []),
|
|
17333
17409
|
u("design:returntype", void 0)
|
|
17334
17410
|
], Z.prototype, "handleGroupLoadMoreMetaChange", null), l([
|
|
17335
|
-
|
|
17411
|
+
S("paginationSize", { waitUntilFirstUpdate: !0 }),
|
|
17336
17412
|
u("design:type", Function),
|
|
17337
17413
|
u("design:paramtypes", []),
|
|
17338
17414
|
u("design:returntype", void 0)
|
|
17339
17415
|
], Z.prototype, "handlePaginationSizeChange", null), l([
|
|
17340
|
-
|
|
17416
|
+
S("pagination", { waitUntilFirstUpdate: !0 }),
|
|
17341
17417
|
u("design:type", Function),
|
|
17342
17418
|
u("design:paramtypes", []),
|
|
17343
17419
|
u("design:returntype", Promise)
|
|
17344
17420
|
], Z.prototype, "handlePaginationChange", null), l([
|
|
17345
|
-
|
|
17421
|
+
S("paginationPlacement", { waitUntilFirstUpdate: !0 }),
|
|
17346
17422
|
u("design:type", Function),
|
|
17347
17423
|
u("design:paramtypes", []),
|
|
17348
17424
|
u("design:returntype", Promise)
|
|
17349
17425
|
], Z.prototype, "handlePaginationPlacementChange", null), l([
|
|
17350
|
-
|
|
17426
|
+
S("paginationInitialPage"),
|
|
17351
17427
|
u("design:type", Function),
|
|
17352
17428
|
u("design:paramtypes", []),
|
|
17353
17429
|
u("design:returntype", void 0)
|
|
17354
17430
|
], Z.prototype, "handlePaginationInitialPageChange", null), l([
|
|
17355
|
-
|
|
17431
|
+
S("loading", { waitUntilFirstUpdate: !0 }),
|
|
17356
17432
|
u("design:type", Function),
|
|
17357
17433
|
u("design:paramtypes", []),
|
|
17358
17434
|
u("design:returntype", void 0)
|
|
17359
17435
|
], Z.prototype, "handleLoadingChange", null), l([
|
|
17360
|
-
|
|
17436
|
+
S("searchFields", { waitUntilFirstUpdate: !0 }),
|
|
17361
17437
|
u("design:type", Function),
|
|
17362
17438
|
u("design:paramtypes", []),
|
|
17363
17439
|
u("design:returntype", void 0)
|
|
17364
17440
|
], Z.prototype, "handleSearchFieldsChange", null), l([
|
|
17365
|
-
|
|
17441
|
+
S("searchMatchAnyKeyword", { waitUntilFirstUpdate: !0 }),
|
|
17366
17442
|
u("design:type", Function),
|
|
17367
17443
|
u("design:paramtypes", []),
|
|
17368
17444
|
u("design:returntype", void 0)
|
|
17369
17445
|
], Z.prototype, "handleSearchMatchAnyKeywordChange", null), l([
|
|
17370
|
-
|
|
17446
|
+
S("dropdownFilters", {
|
|
17371
17447
|
deepCompare: !0,
|
|
17372
17448
|
waitUntilFirstUpdate: !0
|
|
17373
17449
|
}),
|
|
@@ -17375,7 +17451,7 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17375
17451
|
u("design:paramtypes", []),
|
|
17376
17452
|
u("design:returntype", void 0)
|
|
17377
17453
|
], Z.prototype, "handleDropdownFiltersPropChange", null), l([
|
|
17378
|
-
|
|
17454
|
+
S([
|
|
17379
17455
|
"dataUrl",
|
|
17380
17456
|
"dataFormat",
|
|
17381
17457
|
"dataUrlPath"
|
|
@@ -17383,18 +17459,18 @@ l([f(".tabulator-tableholder"), u("design:type", typeof HTMLDivElement > "u" ? O
|
|
|
17383
17459
|
u("design:type", Function),
|
|
17384
17460
|
u("design:paramtypes", []),
|
|
17385
17461
|
u("design:returntype", void 0)
|
|
17386
|
-
], Z.prototype, "handleDataUrlChange", null), Z =
|
|
17462
|
+
], Z.prototype, "handleDataUrlChange", null), Z = ad = l([g("cx-table"), u("design:paramtypes", [])], Z);
|
|
17387
17463
|
//#endregion
|
|
17388
17464
|
//#region ../../packages/hybrid/table-core/src/index.ts
|
|
17389
|
-
var
|
|
17465
|
+
var od = Z, Q = /* @__PURE__ */ function(e) {
|
|
17390
17466
|
return e.Circles = "circles", e.Grid = "grid", e.Table = "table", e;
|
|
17391
|
-
}({}),
|
|
17467
|
+
}({}), sd = /* @__PURE__ */ function(e) {
|
|
17392
17468
|
return e.Custom = "custom", e.FillContainer = "fill-container", e.HugContents = "hug-contents", e;
|
|
17393
|
-
}({}),
|
|
17469
|
+
}({}), cd = /* @__PURE__ */ function(e) {
|
|
17394
17470
|
return e.Center = "center", e.Left = "left", e.Right = "right", e;
|
|
17395
|
-
}({}),
|
|
17471
|
+
}({}), ld = /* @__PURE__ */ function(e) {
|
|
17396
17472
|
return e.ColumnTitles = "column-titles", e.PaletteName = "palette-name", e.SeparatorLine = "separator-line", e;
|
|
17397
|
-
}({}),
|
|
17473
|
+
}({}), ud = {
|
|
17398
17474
|
alignment: "left",
|
|
17399
17475
|
color: "",
|
|
17400
17476
|
constraints: !1,
|
|
@@ -17406,12 +17482,12 @@ var rd = Z, Q = /* @__PURE__ */ function(e) {
|
|
|
17406
17482
|
minWidth: "",
|
|
17407
17483
|
width: "",
|
|
17408
17484
|
widthMode: "hug-contents"
|
|
17409
|
-
},
|
|
17485
|
+
}, dd = /* @__PURE__ */ new Set([
|
|
17410
17486
|
"HEX",
|
|
17411
17487
|
"RGB",
|
|
17412
17488
|
"CMYK",
|
|
17413
17489
|
"PMS"
|
|
17414
|
-
]),
|
|
17490
|
+
]), fd = new Set(Object.values(ld)), pd = { resizable: !1 }, md = {
|
|
17415
17491
|
field: "name",
|
|
17416
17492
|
formatter: (e) => {
|
|
17417
17493
|
let t = e.getRow().getData(), n = document.createElement("div");
|
|
@@ -17425,7 +17501,7 @@ var rd = Z, Q = /* @__PURE__ */ function(e) {
|
|
|
17425
17501
|
headerSort: !1,
|
|
17426
17502
|
hozAlign: "left",
|
|
17427
17503
|
title: "Name"
|
|
17428
|
-
},
|
|
17504
|
+
}, hd = [
|
|
17429
17505
|
{
|
|
17430
17506
|
field: "hex",
|
|
17431
17507
|
headerHozAlign: "left",
|
|
@@ -17456,10 +17532,10 @@ var rd = Z, Q = /* @__PURE__ */ function(e) {
|
|
|
17456
17532
|
title: "PMS"
|
|
17457
17533
|
}
|
|
17458
17534
|
];
|
|
17459
|
-
function
|
|
17535
|
+
function gd(e, t, n) {
|
|
17460
17536
|
let i = t.getValue() ?? "";
|
|
17461
17537
|
if (!i) return null;
|
|
17462
|
-
let o = r`<cx-copy-button copy-label=${e.term("clickToCopy")} focus-copy-label=${e.term("pressEnterOrCtrlCToCopy")} hoist label=${`${n}, ${t.getField()} ${e.term("code")} ${i}. ${e.term("clickOrPressCtrlCToCopy")}`} no-icon tooltip-distance="0" value=${i} style=${
|
|
17538
|
+
let o = r`<cx-copy-button copy-label=${e.term("clickToCopy")} focus-copy-label=${e.term("pressEnterOrCtrlCToCopy")} hoist label=${`${n}, ${t.getField()} ${e.term("code")} ${i}. ${e.term("clickOrPressCtrlCToCopy")}`} no-icon tooltip-distance="0" value=${i} style=${k({
|
|
17463
17539
|
"--button-background-color": "transparent",
|
|
17464
17540
|
"--button-font-family": "var(--swatch-font-family, var(--cx-font-sans))",
|
|
17465
17541
|
"--button-font-size": "var(--swatch-font-size, var(--cx-font-size-large))",
|
|
@@ -17468,7 +17544,7 @@ function pd(e, t, n) {
|
|
|
17468
17544
|
"--button-padding": "0",
|
|
17469
17545
|
"--button-text-color": "var(--swatch-text-color, var(--cx-color-neutral))",
|
|
17470
17546
|
"max-width": "100%"
|
|
17471
|
-
})}><span style=${
|
|
17547
|
+
})}><span style=${k({
|
|
17472
17548
|
display: "inline-block",
|
|
17473
17549
|
maxWidth: "100%",
|
|
17474
17550
|
overflowWrap: "anywhere",
|
|
@@ -17477,10 +17553,10 @@ function pd(e, t, n) {
|
|
|
17477
17553
|
})}>${i}</span></cx-copy-button>`, s = document.createDocumentFragment();
|
|
17478
17554
|
return a(o, s), s.firstElementChild;
|
|
17479
17555
|
}
|
|
17480
|
-
var
|
|
17556
|
+
var _d = (e, t) => [
|
|
17481
17557
|
{
|
|
17482
17558
|
field: "hex",
|
|
17483
|
-
formatter: (n) =>
|
|
17559
|
+
formatter: (n) => gd(e, n, t),
|
|
17484
17560
|
headerHozAlign: "left",
|
|
17485
17561
|
headerSort: !1,
|
|
17486
17562
|
hozAlign: "center",
|
|
@@ -17488,7 +17564,7 @@ var md = (e, t) => [
|
|
|
17488
17564
|
},
|
|
17489
17565
|
{
|
|
17490
17566
|
field: "rgb",
|
|
17491
|
-
formatter: (n) =>
|
|
17567
|
+
formatter: (n) => gd(e, n, t),
|
|
17492
17568
|
headerHozAlign: "left",
|
|
17493
17569
|
headerSort: !1,
|
|
17494
17570
|
hozAlign: "center",
|
|
@@ -17496,7 +17572,7 @@ var md = (e, t) => [
|
|
|
17496
17572
|
},
|
|
17497
17573
|
{
|
|
17498
17574
|
field: "cmyk",
|
|
17499
|
-
formatter: (n) =>
|
|
17575
|
+
formatter: (n) => gd(e, n, t),
|
|
17500
17576
|
headerHozAlign: "left",
|
|
17501
17577
|
headerSort: !1,
|
|
17502
17578
|
hozAlign: "center",
|
|
@@ -17504,18 +17580,18 @@ var md = (e, t) => [
|
|
|
17504
17580
|
},
|
|
17505
17581
|
{
|
|
17506
17582
|
field: "pms",
|
|
17507
|
-
formatter: (n) =>
|
|
17583
|
+
formatter: (n) => gd(e, n, t),
|
|
17508
17584
|
headerHozAlign: "left",
|
|
17509
17585
|
headerSort: !1,
|
|
17510
17586
|
hozAlign: "center",
|
|
17511
17587
|
title: "PMS"
|
|
17512
17588
|
}
|
|
17513
17589
|
];
|
|
17514
|
-
function
|
|
17590
|
+
function vd(e) {
|
|
17515
17591
|
return {
|
|
17516
|
-
field:
|
|
17592
|
+
field: yd(e.id),
|
|
17517
17593
|
formatter: (t) => {
|
|
17518
|
-
let n = t.getValue() ?? "", i = r`<span style=${
|
|
17594
|
+
let n = t.getValue() ?? "", i = r`<span style=${k({
|
|
17519
17595
|
color: e.color || "var(--swatch-text-color, var(--cx-color-neutral-900))",
|
|
17520
17596
|
display: "inline-block",
|
|
17521
17597
|
fontFamily: e.fontFamily || "var(--swatch-font-family, var(--cx-font-sans))",
|
|
@@ -17535,20 +17611,20 @@ function hd(e) {
|
|
|
17535
17611
|
title: e.name
|
|
17536
17612
|
};
|
|
17537
17613
|
}
|
|
17538
|
-
function
|
|
17614
|
+
function yd(e) {
|
|
17539
17615
|
return `custom-${e}`;
|
|
17540
17616
|
}
|
|
17541
17617
|
//#endregion
|
|
17542
17618
|
//#region ../../packages/organisms/src/color-swatch-group/color-swatch-group.styles.ts
|
|
17543
|
-
var
|
|
17619
|
+
var bd = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--grid-gap);--grid-row-gap:var(--grid-gap);--padding:0;--palette-title-font-size:var(--cx-font-size-x-large);--palette-title-color:light-dark(#000,#fff);--column-title-font-size:var(--cx-font-size-large);--column-title-color:light-dark(#000,#fff);--name-swatch-width:64px;--name-swatch-height:32px;--name-swatch-border-radius:0;--swatch-circle-size:350px;--swatch-circle-border-radius:1000px;--swatch-circle-content-align:center;--swatch-circle-content-justify:center;--swatch-circle-content-margin:0px;--swatch-group-horizontal-gap:-120px;--swatch-border:light-dark(#0000,#0000) 0px;--swatch-border-radius:var(--cx-border-radius-x-large);--swatch-box-shadow:0px 0px 0px 0px light-dark(#0000,#0000);--swatch-content-justify:space-between;--swatch-content-margin:var(--cx-spacing-medium);--swatch-min-height:50px;--swatch-text-color:light-dark(#000,#fff);--swatch-font-size:var(--cx-font-size-large);padding:var(--cx-focus-ring-width);width:100%;min-width:0;display:block}.color-swatch-group__swatches{padding:var(--padding,0);width:100%;max-width:100%;height:100%}.color-swatch-group__table-container{width:100%;min-width:0;max-width:100%}.color-swatch-group__measure{visibility:hidden;pointer-events:none;box-sizing:border-box;white-space:nowrap;padding-right:calc(var(--row-padding-right,var(--cx-spacing-2x-small)) + var(--table-column-gap,0px));padding-left:var(--row-padding-left,var(--cx-spacing-2x-small));font-family:var(--swatch-font-family,var(--cx-font-sans));font-style:var(--swatch-font-style,normal);font-weight:var(--swatch-font-weight,var(--cx-font-weight-regular));font-size:var(--swatch-font-size,var(--cx-font-size-large));position:absolute;top:0;left:0}.color-swatch-group__measure--title{padding-right:calc(var(--row-padding-left,var(--cx-spacing-2x-small)) + var(--table-column-gap,0px));font-family:var(--column-title-font-family,var(--swatch-font-family,var(--cx-font-sans)));font-style:var(--column-title-font-style,var(--swatch-font-style,normal));font-weight:var(--column-title-font-weight,var(--swatch-font-weight,var(--cx-font-weight-semibold)));font-size:var(--column-title-font-size,var(--swatch-font-size,var(--cx-font-size-large)))}.color-swatch-group__measure--copyable{border:var(--cx-input-border-width) solid transparent;text-transform:var(--cx-button-text-transform,none)}.color-swatch-group__measure--name{padding-left:calc(var(--row-padding-left,var(--cx-spacing-2x-small)) + var(--name-swatch-width,64px) + var(--cx-spacing-small))}.color-swatch-group__title{--font-family:var(--palette-title-font-family,var(--swatch-font-family,var(--cx-font-sans)));--font-style:var(--palette-title-font-style);--font-weight:var(--palette-title-font-weight);--font-size:var(--palette-title-font-size);--color:var(--palette-title-color)}.color-swatch-group__table-container:focus-visible{outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.color-swatch-group__swatches--circles--horizontal,.color-swatch-group__swatches--circles--vertical{--spacing-container-gap:0px}.color-swatch-group__swatches--circles--horizontal{overflow:auto}.color-swatch-group__swatches--circles--horizontal>cx-color-swatch:not(:first-child){margin-left:var(--swatch-group-horizontal-gap,-120px)}.color-swatch-group__swatches--circles--vertical>cx-color-swatch:not(:first-child){margin-top:var(--swatch-group-vertical-gap,var(--swatch-group-horizontal-gap,-50px))}.color-swatch-group__swatches--circles--vertical__item--mobile{--swatch-size:100%}.color-swatch-group__swatches--grid{align-items:stretch;column-gap:var(--grid-column-gap,var(--grid-gap,var(--cx-spacing-medium)));row-gap:var(--grid-row-gap,var(--grid-gap,var(--cx-spacing-medium)));display:grid}.color-swatch-group__table{font-family:var(--swatch-font-family,var(--cx-font-sans));font-style:var(--swatch-font-style,normal);--width:var(--table-width,100%);--body-background-color:transparent;--row-background-color:transparent;--row-even-background-color:transparent;--row-hover-background-color:var(--cx-color-neutral-50);--row-even-hover-background-color:var(--cx-color-neutral-50);--header-background-color:transparent;--group-row-background-color:transparent;--cell-border-color:transparent;--cell-bottom-border-color:transparent;--header-font-family:var(--column-title-font-family,var(--swatch-font-family,var(--cx-font-sans)));--header-font-style:var(--column-title-font-style,var(--swatch-font-style,normal));--header-font-size:var(--column-title-font-size,var(--swatch-font-size,var(--cx-font-size-large)));--header-font-weight:var(--column-title-font-weight,var(--swatch-font-weight,var(--cx-font-weight-semibold)));--header-color:var(--column-title-color,var(--cx-color-neutral-700));--header-border-right:none;--cell-font-family:var(--swatch-font-family,var(--cx-font-sans));--cell-font-size:var(--swatch-font-size,var(--cx-font-size-large));--cell-font-weight:var(--swatch-font-weight,var(--cx-font-weight-regular));--cell-line-height:normal;--cell-hover-background-color:transparent;--color:var(--swatch-text-color,var(--cx-color-neutral-900));--placeholder-font-size:var(--cx-font-size-medium-large);--cell-horizontal-padding:var(--cx-spacing-2x-small);--cell-padding-top:var(--row-padding-top,var(--cx-spacing-2x-small));--cell-padding-right:var(--row-padding-right,var(--cx-spacing-2x-small));--cell-padding-bottom:var(--row-padding-bottom,var(--cx-spacing-2x-small));--cell-padding-left:var(--row-padding-left,var(--cx-spacing-2x-small));--header-horizontal-padding:var(--row-padding-left,var(--cx-spacing-2x-small));--row-gap:var(--table-row-gap,0);--column-gap:var(--table-column-gap,0px);--header-border-bottom:1px solid var(--cx-color-neutral-200);--hover-menu-background-color:var(--row-hover-background-color);--outer-border-color:transparent}.color-swatch-group__table--no-separator{--header-border-bottom:none}.color-swatch-group__table::part(table){background-color:#0000}`, xd = "unnamed", Sd = 5, Cd = { fromAttribute: (e) => {
|
|
17544
17620
|
let t = Number.parseFloat(e ?? "");
|
|
17545
17621
|
return Number.isFinite(t) ? t : void 0;
|
|
17546
17622
|
} }, $ = class extends d {
|
|
17547
|
-
static #e = this.styles = [h,
|
|
17623
|
+
static #e = this.styles = [h, bd];
|
|
17548
17624
|
static #t = this.dependencies = {
|
|
17549
17625
|
"cx-color-swatch": tt,
|
|
17550
17626
|
"cx-space": ve,
|
|
17551
|
-
"cx-table":
|
|
17627
|
+
"cx-table": od,
|
|
17552
17628
|
"cx-typography": ue
|
|
17553
17629
|
};
|
|
17554
17630
|
constructor() {
|
|
@@ -17558,10 +17634,10 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17558
17634
|
"CMYK",
|
|
17559
17635
|
"PMS"
|
|
17560
17636
|
], this.multiLanguage = !1, this.codeAlignment = Fe.SameLine, this.codeSeparator = Ne.Comma, this.hexFormat = Le.LeadingHash, this.showElements = [
|
|
17561
|
-
|
|
17562
|
-
|
|
17563
|
-
|
|
17564
|
-
], this.nameColumnWidthMode =
|
|
17637
|
+
ld.PaletteName,
|
|
17638
|
+
ld.ColumnTitles,
|
|
17639
|
+
ld.SeparatorLine
|
|
17640
|
+
], this.nameColumnWidthMode = sd.HugContents, this.nameColumnConstraints = !1, this.nameColumnWidth = "", this.codeColumnWidthMode = sd.HugContents, this.codeColumnConstraints = !1, this.codeColumnWidth = "", this.customColumns = [], this.gradientEffect = !1, this.breakpoints = He, this.deviceType = ze.Desktop, this.currentCol = 0, this.visibleElements = new Set(this.showElements), this.hugWidths = {}, this.isFocused = !1, this.canFocusContainer = !0, this.isContainerFocused = !1, this.handleWindowResize = this.handleWindowResize.bind(this);
|
|
17565
17641
|
}
|
|
17566
17642
|
runFirstUpdated() {
|
|
17567
17643
|
this.setAttribute("role", "region"), this.setAttribute("aria-label", this.localize.term("colorSwatches")), this.setAttribute("aria-roledescription", this.localize.term("colorSwatches")), this.breakpoints = Be(this, this.breakpoints), this.handleResize();
|
|
@@ -17609,8 +17685,8 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17609
17685
|
let e = this.measureEl;
|
|
17610
17686
|
if (!e) return this.hugWidths;
|
|
17611
17687
|
let t = {};
|
|
17612
|
-
for (let n of [
|
|
17613
|
-
for (let n of this.customColumns) this.recordHugWidth(t,
|
|
17688
|
+
for (let n of [md, ...hd]) this.recordHugWidth(t, n.field, this.measureBuiltInColumn(e, n));
|
|
17689
|
+
for (let n of this.customColumns) this.recordHugWidth(t, yd(n.id), this.measureCustomColumn(e, n));
|
|
17614
17690
|
return e.textContent = "", e.removeAttribute("style"), t;
|
|
17615
17691
|
}
|
|
17616
17692
|
measureProbe(e, t, n = [], r = {}) {
|
|
@@ -17619,7 +17695,7 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17619
17695
|
return e.textContent = t, e.offsetWidth;
|
|
17620
17696
|
}
|
|
17621
17697
|
measureBuiltInColumn(e, t) {
|
|
17622
|
-
let { field: n } = t, r = n ===
|
|
17698
|
+
let { field: n } = t, r = n === md.field, i = this.canCopy ? ["copyable"] : [], a = this.localize.lang()?.toLowerCase(), o = this.measureProbe(e, t.title, ["title"]);
|
|
17623
17699
|
for (let t of this.data) {
|
|
17624
17700
|
let s = r && this.multiLanguage && a ? t[`name-${a}`] ?? t.name : t[n], c = typeof s == "string" && !r ? this.formatCode(n, s) : s;
|
|
17625
17701
|
typeof c == "string" && c && (o = Math.max(o, r ? this.measureProbe(e, c, ["name"]) : this.measureProbe(e, c, i)));
|
|
@@ -17637,7 +17713,7 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17637
17713
|
return r;
|
|
17638
17714
|
}
|
|
17639
17715
|
recordHugWidth(e, t, n) {
|
|
17640
|
-
n > 0 && (e[t] = Math.ceil(n) +
|
|
17716
|
+
n > 0 && (e[t] = Math.ceil(n) + Sd);
|
|
17641
17717
|
}
|
|
17642
17718
|
gradientStopsFor(e) {
|
|
17643
17719
|
if (!this.gradientEffect || this.variant !== Q.Grid) return "";
|
|
@@ -17658,26 +17734,26 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17658
17734
|
}
|
|
17659
17735
|
flattenMetadata(e) {
|
|
17660
17736
|
let t = {};
|
|
17661
|
-
for (let n of this.customColumns) t[
|
|
17737
|
+
for (let n of this.customColumns) t[yd(n.id)] = e.metadata?.[n.id] ?? "";
|
|
17662
17738
|
return t;
|
|
17663
17739
|
}
|
|
17664
17740
|
formatCode(e, t) {
|
|
17665
17741
|
return e === "hex" ? Ie(t, this.hexFormat) : e === "rgb" || e === "cmyk" ? Pe(t, this.codeSeparator) : t;
|
|
17666
17742
|
}
|
|
17667
17743
|
applyColumnSettings(e, t) {
|
|
17668
|
-
let n = { ...e }, r = t.widthMode ===
|
|
17744
|
+
let n = { ...e }, r = t.widthMode === sd.HugContents;
|
|
17669
17745
|
if (n.variableHeight = !r, n.formatter = (t) => {
|
|
17670
17746
|
let n = e.formatter ? e.formatter(t) : document.createElement("span");
|
|
17671
17747
|
return n ? (e.formatter || (n.textContent = String(t.getValue() ?? "")), n.style.setProperty("--swatch-cell-white-space", r ? "nowrap" : "normal"), n.style.whiteSpace = "var(--swatch-cell-white-space)", n.style.overflowWrap = "anywhere", n.style.flexWrap = r ? "nowrap" : "wrap", n.style.rowGap = "0", n) : null;
|
|
17672
|
-
}, t.widthMode ===
|
|
17673
|
-
else if (t.widthMode ===
|
|
17748
|
+
}, t.widthMode === sd.HugContents) n.width = this.hugWidths[e.field];
|
|
17749
|
+
else if (t.widthMode === sd.Custom) {
|
|
17674
17750
|
let e = t.width?.trim() ?? "", r = Number.parseFloat(e);
|
|
17675
17751
|
/^\d+(?:\.\d+)?(?:px|%)?$/.test(e) && Number.isFinite(r) && r > 0 && (n.width = e.endsWith("%") ? e : r);
|
|
17676
17752
|
} else n.widthGrow = 1;
|
|
17677
17753
|
return t.constraints && (t.minWidth && (n.minWidth = t.minWidth), t.maxWidth && (n.maxWidth = t.maxWidth)), t.alignment && (n.hozAlign = t.alignment, n.headerHozAlign = t.alignment), n;
|
|
17678
17754
|
}
|
|
17679
17755
|
getTableColumns(e) {
|
|
17680
|
-
let t = this.canCopy ?
|
|
17756
|
+
let t = this.canCopy ? _d(this.localize, e) : hd, n = {
|
|
17681
17757
|
alignment: this.nameColumnAlignment,
|
|
17682
17758
|
constraints: this.nameColumnConstraints,
|
|
17683
17759
|
maxWidth: this.nameColumnMaxWidth,
|
|
@@ -17693,15 +17769,15 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17693
17769
|
widthMode: this.codeColumnWidthMode
|
|
17694
17770
|
};
|
|
17695
17771
|
return [
|
|
17696
|
-
this.applyColumnSettings(
|
|
17772
|
+
this.applyColumnSettings(md, n),
|
|
17697
17773
|
...t.filter((e) => this.showCodes.includes(e.field.toUpperCase())).map((e) => this.applyColumnSettings(e, r)),
|
|
17698
|
-
...this.customColumns.map((e) => this.applyColumnSettings(
|
|
17774
|
+
...this.customColumns.map((e) => this.applyColumnSettings(vd(e), {
|
|
17699
17775
|
alignment: e.alignment,
|
|
17700
17776
|
constraints: !!e.constraints,
|
|
17701
|
-
maxWidth:
|
|
17702
|
-
minWidth:
|
|
17777
|
+
maxWidth: Cd.fromAttribute(e.maxWidth ?? null),
|
|
17778
|
+
minWidth: Cd.fromAttribute(e.minWidth ?? null),
|
|
17703
17779
|
width: e.width,
|
|
17704
|
-
widthMode: e.widthMode ??
|
|
17780
|
+
widthMode: e.widthMode ?? sd.HugContents
|
|
17705
17781
|
}))
|
|
17706
17782
|
];
|
|
17707
17783
|
}
|
|
@@ -17730,7 +17806,7 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17730
17806
|
}
|
|
17731
17807
|
categorizeByPalette() {
|
|
17732
17808
|
return Object.values(this.data.reduce((e, t) => {
|
|
17733
|
-
let n = t.palette?.trim() ? t.palette :
|
|
17809
|
+
let n = t.palette?.trim() ? t.palette : xd;
|
|
17734
17810
|
return e[n] || (e[n] = {
|
|
17735
17811
|
colors: [],
|
|
17736
17812
|
palette: n
|
|
@@ -17758,7 +17834,7 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17758
17834
|
render() {
|
|
17759
17835
|
let e = this.currentDirection, t = this.localize.lang();
|
|
17760
17836
|
return r`
|
|
17761
|
-
${
|
|
17837
|
+
${E(this.variant === Q.Table, () => r`<span class="color-swatch-group__measure" aria-hidden="true"></span><cx-space class="color-swatch-group__swatches" direction="vertical" spacing="2x-small">${xe([
|
|
17762
17838
|
this.data,
|
|
17763
17839
|
this.showElements,
|
|
17764
17840
|
...this.columnGuardDependencies
|
|
@@ -17771,15 +17847,15 @@ var _d = i`:host{--grid-gap:var(--cx-spacing-medium);--grid-column-gap:var(--gri
|
|
|
17771
17847
|
...this.multiLanguage && t ? { name: e[`name-${t.toLowerCase()}`] ?? e.name } : {},
|
|
17772
17848
|
rgb: this.formatCode("rgb", e.rgb ?? "")
|
|
17773
17849
|
}));
|
|
17774
|
-
return r`<div tabindex=${
|
|
17850
|
+
return r`<div tabindex=${T(this.canFocusContainer ? "0" : void 0)} data-table-container class="color-swatch-group__table-container" @focusin=${this.handleFocusIn} @focusout=${this.handleFocusOut} @keydown=${this.handleKeyDown}>${E(this.visibleElements.has(ld.PaletteName), () => r`<cx-typography class="color-swatch-group__title" variant="h3">${e.palette === xd ? this.localize.term("noPalette") : this.localize.term("shadesPalette", e.palette)}</cx-typography>`)}<cx-table part="table" tabindex=${this.isFocused ? void 0 : "-1"} no-selectable ?no-header=${!this.visibleElements.has(ld.ColumnTitles)} layout="fitColumns" .columns=${xe(this.columnGuardDependencies, () => this.getTableColumns(e.palette))} .columnDefaults=${pd} .rowHeight=${void 0} .data=${n} class=${C({
|
|
17775
17851
|
"color-swatch-group__table": !0,
|
|
17776
|
-
"color-swatch-group__table--no-separator": !this.visibleElements.has(
|
|
17852
|
+
"color-swatch-group__table--no-separator": !this.visibleElements.has(ld.SeparatorLine)
|
|
17777
17853
|
})}></cx-table></div>`;
|
|
17778
|
-
}))}</cx-space>`, () => r`<cx-space part="color-swatch" role="list" aria-label=${this.localize.term("listOfColors")} aria-roledescription=${this.localize.term("listOfColors")} direction=${e} justify-content="flex-start" wrap=${this.variant === "circles" ? "nowrap" : "wrap"} class=${
|
|
17854
|
+
}))}</cx-space>`, () => r`<cx-space part="color-swatch" role="list" aria-label=${this.localize.term("listOfColors")} aria-roledescription=${this.localize.term("listOfColors")} direction=${e} justify-content="flex-start" wrap=${this.variant === "circles" ? "nowrap" : "wrap"} class=${C({
|
|
17779
17855
|
"color-swatch-group__swatches": !0,
|
|
17780
17856
|
"color-swatch-group__swatches--grid": this.variant === Q.Grid,
|
|
17781
17857
|
[`color-swatch-group__swatches--circles--${e}`]: this.variant === Q.Circles
|
|
17782
|
-
})} style=${
|
|
17858
|
+
})} style=${k({ gridTemplateColumns: this.currentCol >= this.maxCol ? `repeat(${this.maxCol}, 1fr)` : "repeat(auto-fit, minmax(165px, 1fr))" })}>${pe(this.data, (e) => e.name, (n, i) => r`<cx-color-swatch part="color-swatch-item" role="listitem" aria-label=${this.localize.term("colorOfTotal", i + 1, this.data.length)} hex=${n.hex} rgb=${n.rgb} cmyk=${n.cmyk} pms=${n.pms} name=${this.multiLanguage && t ? n[`name-${t.toLowerCase()}`] ?? n.name : n.name} variant=${this.swatchVariant} ?can-copy=${this.canCopy} ?can-focus-code-only=${this.isFocused} gradient-stops=${this.gradientStopsFor(i)} .showCodes=${this.showCodes} code-alignment=${this.codeAlignment} code-separator=${this.codeSeparator} hex-format=${this.hexFormat} no-auto-convert class=${C({
|
|
17783
17859
|
[`color-swatch-group__swatches--circles--${e}__item`]: this.variant === Q.Circles,
|
|
17784
17860
|
"color-swatch-group__swatches--circles--vertical__item--mobile": this.variant === Q.Circles && this.deviceType === ze.Mobile
|
|
17785
17861
|
})} @keydown=${this.handleKeyDown} @focusout=${this.handleFocusOut}></cx-color-swatch>`)}</cx-space>`)}
|
|
@@ -17803,7 +17879,7 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17803
17879
|
}), u("design:type", Object)], $.prototype, "canCopy", void 0), l([s({
|
|
17804
17880
|
attribute: "show-codes",
|
|
17805
17881
|
converter: {
|
|
17806
|
-
fromAttribute: (e) => (e?.split(" ") ?? []).filter((e) =>
|
|
17882
|
+
fromAttribute: (e) => (e?.split(" ") ?? []).filter((e) => dd.has(e)),
|
|
17807
17883
|
toAttribute: (e) => e.join(" ")
|
|
17808
17884
|
},
|
|
17809
17885
|
reflect: !0
|
|
@@ -17826,7 +17902,7 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17826
17902
|
}), u("design:type", Le === void 0 ? Object : Le)], $.prototype, "hexFormat", void 0), l([s({
|
|
17827
17903
|
attribute: "show-elements",
|
|
17828
17904
|
converter: {
|
|
17829
|
-
fromAttribute: (e) => (e?.split(" ") ?? []).filter((e) =>
|
|
17905
|
+
fromAttribute: (e) => (e?.split(" ") ?? []).filter((e) => fd.has(e)),
|
|
17830
17906
|
toAttribute: (e) => e.join(" ")
|
|
17831
17907
|
},
|
|
17832
17908
|
reflect: !0
|
|
@@ -17834,16 +17910,16 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17834
17910
|
attribute: "name-column-width-mode",
|
|
17835
17911
|
reflect: !0,
|
|
17836
17912
|
type: String
|
|
17837
|
-
}), u("design:type",
|
|
17913
|
+
}), u("design:type", sd === void 0 ? Object : sd)], $.prototype, "nameColumnWidthMode", void 0), l([s({
|
|
17838
17914
|
attribute: "name-column-constraints",
|
|
17839
17915
|
reflect: !0,
|
|
17840
17916
|
type: Boolean
|
|
17841
17917
|
}), u("design:type", Object)], $.prototype, "nameColumnConstraints", void 0), l([s({
|
|
17842
17918
|
attribute: "name-column-min-width",
|
|
17843
|
-
converter:
|
|
17919
|
+
converter: Cd
|
|
17844
17920
|
}), u("design:type", Number)], $.prototype, "nameColumnMinWidth", void 0), l([s({
|
|
17845
17921
|
attribute: "name-column-max-width",
|
|
17846
|
-
converter:
|
|
17922
|
+
converter: Cd
|
|
17847
17923
|
}), u("design:type", Number)], $.prototype, "nameColumnMaxWidth", void 0), l([s({
|
|
17848
17924
|
attribute: "name-column-width",
|
|
17849
17925
|
type: String
|
|
@@ -17851,20 +17927,20 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17851
17927
|
attribute: "name-column-alignment",
|
|
17852
17928
|
reflect: !0,
|
|
17853
17929
|
type: String
|
|
17854
|
-
}), u("design:type",
|
|
17930
|
+
}), u("design:type", cd === void 0 ? Object : cd)], $.prototype, "nameColumnAlignment", void 0), l([s({
|
|
17855
17931
|
attribute: "code-column-width-mode",
|
|
17856
17932
|
reflect: !0,
|
|
17857
17933
|
type: String
|
|
17858
|
-
}), u("design:type",
|
|
17934
|
+
}), u("design:type", sd === void 0 ? Object : sd)], $.prototype, "codeColumnWidthMode", void 0), l([s({
|
|
17859
17935
|
attribute: "code-column-constraints",
|
|
17860
17936
|
reflect: !0,
|
|
17861
17937
|
type: Boolean
|
|
17862
17938
|
}), u("design:type", Object)], $.prototype, "codeColumnConstraints", void 0), l([s({
|
|
17863
17939
|
attribute: "code-column-min-width",
|
|
17864
|
-
converter:
|
|
17940
|
+
converter: Cd
|
|
17865
17941
|
}), u("design:type", Number)], $.prototype, "codeColumnMinWidth", void 0), l([s({
|
|
17866
17942
|
attribute: "code-column-max-width",
|
|
17867
|
-
converter:
|
|
17943
|
+
converter: Cd
|
|
17868
17944
|
}), u("design:type", Number)], $.prototype, "codeColumnMaxWidth", void 0), l([s({
|
|
17869
17945
|
attribute: "code-column-width",
|
|
17870
17946
|
type: String
|
|
@@ -17872,7 +17948,7 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17872
17948
|
attribute: "code-column-alignment",
|
|
17873
17949
|
reflect: !0,
|
|
17874
17950
|
type: String
|
|
17875
|
-
}), u("design:type",
|
|
17951
|
+
}), u("design:type", cd === void 0 ? Object : cd)], $.prototype, "codeColumnAlignment", void 0), l([s({
|
|
17876
17952
|
attribute: "custom-columns",
|
|
17877
17953
|
reflect: !0,
|
|
17878
17954
|
type: Array
|
|
@@ -17881,26 +17957,26 @@ l([f(".color-swatch-group__swatches"), u("design:type", typeof HTMLDivElement >
|
|
|
17881
17957
|
reflect: !0,
|
|
17882
17958
|
type: Boolean
|
|
17883
17959
|
}), u("design:type", Object)], $.prototype, "gradientEffect", void 0), l([c(), u("design:type", Array)], $.prototype, "breakpoints", void 0), l([c(), u("design:type", ze === void 0 ? Object : ze)], $.prototype, "deviceType", void 0), l([c(), u("design:type", Object)], $.prototype, "currentCol", void 0), l([c(), u("design:type", Object)], $.prototype, "visibleElements", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], $.prototype, "hugWidths", void 0), l([c(), u("design:type", Object)], $.prototype, "isFocused", void 0), l([c(), u("design:type", Object)], $.prototype, "canFocusContainer", void 0), l([c(), u("design:type", Object)], $.prototype, "isContainerFocused", void 0), l([
|
|
17884
|
-
|
|
17960
|
+
M(100),
|
|
17885
17961
|
u("design:type", Function),
|
|
17886
17962
|
u("design:paramtypes", []),
|
|
17887
17963
|
u("design:returntype", void 0)
|
|
17888
17964
|
], $.prototype, "handleWindowResize", null), l([
|
|
17889
|
-
|
|
17965
|
+
S("variant", { waitUntilFirstUpdate: !0 }),
|
|
17890
17966
|
u("design:type", Function),
|
|
17891
17967
|
u("design:paramtypes", []),
|
|
17892
17968
|
u("design:returntype", void 0)
|
|
17893
17969
|
], $.prototype, "handleResize", null), l([
|
|
17894
|
-
|
|
17970
|
+
S("showElements"),
|
|
17895
17971
|
u("design:type", Function),
|
|
17896
17972
|
u("design:paramtypes", []),
|
|
17897
17973
|
u("design:returntype", void 0)
|
|
17898
17974
|
], $.prototype, "handleShowElementsChange", null), l([
|
|
17899
|
-
|
|
17975
|
+
S("isFocused", { waitUntilFirstUpdate: !0 }),
|
|
17900
17976
|
u("design:type", Function),
|
|
17901
17977
|
u("design:paramtypes", []),
|
|
17902
17978
|
u("design:returntype", void 0)
|
|
17903
17979
|
], $.prototype, "handleIsFocusedChange", null), $ = l([g("cx-color-swatch-group"), u("design:paramtypes", [])], $);
|
|
17904
|
-
var
|
|
17980
|
+
var wd = $;
|
|
17905
17981
|
//#endregion
|
|
17906
|
-
export {
|
|
17982
|
+
export { ld as a, od as c, Ut as d, Bt as f, Ct as h, sd as i, Dn as l, St as m, yd as n, Q as o, Nt as p, cd as r, ud as s, wd as t, rn as u };
|