@orangelogic/design-system 3.37.0 → 3.38.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-DnJlaA8S.js +1 -0
- package/library/chunks/{bicolor-picker.B4ZD7ay_.js → bicolor-picker.BFLMj79r.js} +1 -1
- package/library/chunks/{border-input-group.CMO_vZr7.js → border-input-group.DvjGBsxF.js} +1 -1
- package/library/chunks/{color-picker.DcOFcqNc.js → color-picker.CJL_5JjX.js} +2 -2
- package/library/chunks/{color-swatch-group.WK1lxWBb.js → color-swatch-group.NBdhiXFI.js} +15 -16
- package/library/chunks/{config-manager.pmq8X4fL.js → config-manager.DSN_CtAN.js} +10 -10
- package/library/chunks/{config-manager.utils.BZfQZRNB.js → config-manager.utils.08u3_NXs.js} +12 -12
- package/library/chunks/{configs-controller.TDcTRz6j.js → configs-controller.qLdjsXb7.js} +98 -122
- package/library/chunks/{confirm-popover.Bhuho1eH.js → confirm-popover.Difhn86O.js} +1 -1
- package/library/chunks/{document-viewer.Stz7LwUo.js → document-viewer.c03KTUv2.js} +3 -3
- package/library/chunks/{dropdown.DAkv7EHP.js → dropdown.jv7u3Wm8.js} +1 -1
- package/library/chunks/{file-on-demand.DPD5c2WX.js → file-on-demand.7OPAGIG4.js} +2 -2
- package/library/chunks/{menu-item.d6CiFKnX.js → menu-item.BpILLN4i.js} +31 -31
- package/library/chunks/{menu.uZIhl1-k.js → menu.BPTg0Ebu.js} +1 -1
- package/library/chunks/{shadow-input-group.CNLTwiHw.js → shadow-input-group.ByN6pEvN.js} +1 -1
- package/library/chunks/{src.nnbfATmJ.js → src.BPWnRgJw.js} +7 -7
- package/library/chunks/{tab-group.LErcQpn1.js → tab-group.n9Wud7bJ.js} +3 -3
- package/library/components/atoms.js +10 -10
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/types.js +34 -23
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -2
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +3 -5
- package/library/packages/organisms/src/downloader/data/core/WorkerProxy.d.ts +1 -0
- package/library/packages/organisms/src/downloader/data/core/worker/app/DownloadManager.d.ts +6 -0
- package/library/packages/organisms/src/downloader/downloader.d.ts +2 -0
- package/library/packages/types/src/menu-item.d.ts +10 -3
- package/library/react-web-component.d.ts +3 -3
- package/package.json +1 -1
- package/library/assets/validation.worker-BSuTSsWh.js +0 -1
|
@@ -24,7 +24,7 @@ import { t as ue } from "../chunks/alert.C-yzkTnx.js";
|
|
|
24
24
|
import { t as de } from "../chunks/am-chart.COOKOvT1.js";
|
|
25
25
|
import { t as fe } from "../chunks/animated-image.w6VdagCh.js";
|
|
26
26
|
import { t as I } from "../chunks/animation.CRLxJUWm.js";
|
|
27
|
-
import { n as pe, r as me, t as he } from "../chunks/src.
|
|
27
|
+
import { n as pe, r as me, t as he } from "../chunks/src.BPWnRgJw.js";
|
|
28
28
|
import { t as ge } from "../chunks/style-map.DPGQIxip.js";
|
|
29
29
|
import { n as _e, t as ve } from "../chunks/button.BE-fTtOZ.js";
|
|
30
30
|
import { c as ye, i as be, l as xe, o as Se, r as Ce, s as we } from "../chunks/resizable-component.styles.v9pbLDG5.js";
|
|
@@ -38,7 +38,7 @@ import { t as kt } from "../chunks/resize-observer.D9EHlnZI.js";
|
|
|
38
38
|
import { t as At } from "../chunks/line-clamp.CUDArhQk.js";
|
|
39
39
|
import { t as jt } from "../chunks/tag.pKuKheLJ.js";
|
|
40
40
|
import { t as Mt } from "../chunks/array-line-clamp.C1AjzjRt.js";
|
|
41
|
-
import { C as Nt, D as Pt, E as Ft, S as It, T as Lt, a as Rt, b as zt, d as Bt, f as Vt, l as Ht, n as Ut, o as Wt, u as Gt, v as Kt, w as qt, x as Jt, y as Yt } from "../chunks/config-manager.utils.
|
|
41
|
+
import { C as Nt, D as Pt, E as Ft, S as It, T as Lt, a as Rt, b as zt, d as Bt, f as Vt, l as Ht, n as Ut, o as Wt, u as Gt, v as Kt, w as qt, x as Jt, y as Yt } from "../chunks/config-manager.utils.08u3_NXs.js";
|
|
42
42
|
import { n as Xt, t as Zt } from "../chunks/position-picker.dY_vgF_H.js";
|
|
43
43
|
import { a as Qt, i as $t, n as en, o as tn, r as nn, s as rn, t as an } from "../chunks/src.BJhIYoMP.js";
|
|
44
44
|
import { a as on, c as sn, i as cn, n as ln, o as un, r as dn, t as fn, u as pn } from "../chunks/time.p1t0NCwj.js";
|
|
@@ -49,8 +49,8 @@ import { n as Pn, t as Fn } from "../chunks/typography.B0mkhqTB.js";
|
|
|
49
49
|
import { t as In } from "../chunks/audio.DILTfO5v.js";
|
|
50
50
|
import { t as Ln } from "../chunks/avatar.Ce0OZHBT.js";
|
|
51
51
|
import { t as Rn } from "../chunks/badge.H_UuxPXn.js";
|
|
52
|
-
import { t as zn } from "../chunks/
|
|
53
|
-
import { t as Bn } from "../chunks/
|
|
52
|
+
import { t as zn } from "../chunks/box.DvLxXaBD.js";
|
|
53
|
+
import { t as Bn } from "../chunks/breadcrumb.CtZqzMBY.js";
|
|
54
54
|
import { t as Vn } from "../chunks/breadcrumb-item.nHAFmgtO.js";
|
|
55
55
|
import { t as Hn } from "../chunks/button-group.CPfXrqyq.js";
|
|
56
56
|
import { t as Un } from "../chunks/card.3c-X4hqR.js";
|
|
@@ -60,12 +60,12 @@ import { a as Kn, c as qn, i as Jn, l as Yn, n as Xn, o as Zn, r as Qn, s as $n,
|
|
|
60
60
|
import { t as tr } from "../chunks/drag.s0AcVpKh.js";
|
|
61
61
|
import { n as nr, t as rr } from "../chunks/math.od1DVmRk.js";
|
|
62
62
|
import { t as ir } from "../chunks/repeat.CKv9FPlC.js";
|
|
63
|
-
import { t as ar } from "../chunks/dropdown.
|
|
63
|
+
import { t as ar } from "../chunks/dropdown.jv7u3Wm8.js";
|
|
64
64
|
import { t as or } from "../chunks/focus-when-visible.DKscgyKo.js";
|
|
65
65
|
import { n as sr, t as cr } from "../chunks/tabbable.Bflg1dha.js";
|
|
66
66
|
import { n as lr, t as ur } from "../chunks/input.HC75Gdv_.js";
|
|
67
|
-
import { t as dr } from "../chunks/menu.
|
|
68
|
-
import { n as fr, r as pr, t as mr } from "../chunks/menu-item.
|
|
67
|
+
import { t as dr } from "../chunks/menu.BPTg0Ebu.js";
|
|
68
|
+
import { n as fr, r as pr, t as mr } from "../chunks/menu-item.BpILLN4i.js";
|
|
69
69
|
import { n as hr, t as gr } from "../chunks/ref.CU1NC5AM.js";
|
|
70
70
|
import { t as _r } from "../chunks/textarea.Bc4eCJgT.js";
|
|
71
71
|
import { t as vr } from "../chunks/option.CxsY_LQ-.js";
|
|
@@ -76,13 +76,13 @@ import { t as Er } from "../chunks/user-agent.D2bRhUeS.js";
|
|
|
76
76
|
import { t as Dr } from "../chunks/unsafe-html.Cb838aX7.js";
|
|
77
77
|
import { t as Or } from "../chunks/select.DLMCyAHm.js";
|
|
78
78
|
import { t as kr } from "../chunks/tab.B7cI6tex.js";
|
|
79
|
-
import { a as Ar, i as jr, n as Mr, r as Nr, t as Pr } from "../chunks/tab-group.
|
|
79
|
+
import { a as Ar, i as jr, n as Mr, r as Nr, t as Pr } from "../chunks/tab-group.n9Wud7bJ.js";
|
|
80
80
|
import { t as Fr } from "../chunks/parse.CDrJ-NY7.js";
|
|
81
81
|
import { t as Ir } from "../chunks/guard.Cf17k6Vx.js";
|
|
82
82
|
import { t as Lr } from "../chunks/map.ByDuLduF.js";
|
|
83
83
|
import { t as Rr } from "../chunks/tab-panel.BxeoKuSv.js";
|
|
84
84
|
import { t as zr } from "../chunks/visually-hidden.Bv3SInZp.js";
|
|
85
|
-
import { t as Br } from "../chunks/color-picker.
|
|
85
|
+
import { t as Br } from "../chunks/color-picker.CJL_5JjX.js";
|
|
86
86
|
import { t as Vr } from "../chunks/copy-button.DXNp4KvI.js";
|
|
87
87
|
import { S as Hr, _ as Ur, a as Wr, b as Gr, c as Kr, d as qr, f as Jr, g as Yr, h as Xr, i as Zr, l as Qr, m as $r, n as ei, o as ti, p as ni, r as ri, s as ii, t as ai, u as oi, v as si, x as ci, y as li } from "../chunks/date.BL4L64Hx.js";
|
|
88
88
|
import { t as ui } from "../chunks/date-calendar.Dobpjwzs.js";
|
|
@@ -94,7 +94,7 @@ import { t as hi } from "../chunks/diff.C5J0fzbu.js";
|
|
|
94
94
|
import { t as gi } from "../chunks/capitalize.BT_EavGy.js";
|
|
95
95
|
import { t as _i } from "../chunks/drawer.rdGcXxzU.js";
|
|
96
96
|
import { t as vi } from "../chunks/progress-bar.Br8Zi53n.js";
|
|
97
|
-
import { t as yi } from "../chunks/document-viewer.
|
|
97
|
+
import { t as yi } from "../chunks/document-viewer.c03KTUv2.js";
|
|
98
98
|
import { a as bi, c as xi, d as Si, f as Ci, i as wi, l as Ti, n as Ei, o as Di, p as Oi, r as ki, s as Ai, t as ji, u as Mi } from "../chunks/url.CZO_DV8Y.js";
|
|
99
99
|
import { a as Ni, c as Pi, d as Fi, f as Ii, h as Li, i as Ri, l as zi, m as Bi, n as Vi, o as Hi, p as Ui, r as Wi, s as Gi, t as Ki, u as qi } from "../chunks/color.CIOzHtLK.js";
|
|
100
100
|
import { t as Ji } from "../chunks/converters.CFh-tT4P.js";
|
|
@@ -144,10 +144,10 @@ import { t as vs } from "../chunks/timecode.Bte9Ww5o.js";
|
|
|
144
144
|
import { a as ys, i as bs, o as xs } from "../chunks/tree.0n9ApKdO.js";
|
|
145
145
|
import { t as Ss } from "../chunks/v4.JyXW8GUB.js";
|
|
146
146
|
import { n as Cs, t as ws } from "../chunks/video.BVMZglAW.js";
|
|
147
|
-
import { t as Ts } from "../chunks/bicolor-picker.
|
|
148
|
-
import { t as Es } from "../chunks/border-input-group.
|
|
147
|
+
import { t as Ts } from "../chunks/bicolor-picker.BFLMj79r.js";
|
|
148
|
+
import { t as Es } from "../chunks/border-input-group.DvjGBsxF.js";
|
|
149
149
|
import { t as Ds } from "../chunks/color-swatch.CjsFtiDs.js";
|
|
150
|
-
import { t as Os } from "../chunks/confirm-popover.
|
|
150
|
+
import { t as Os } from "../chunks/confirm-popover.Difhn86O.js";
|
|
151
151
|
import { t as ks } from "../chunks/corner-position-input-group.80bovr6F.js";
|
|
152
152
|
import { t as As } from "../chunks/cropper.D4ymxgab.js";
|
|
153
153
|
import { t as js } from "../chunks/toNumber.BBjIwSoo.js";
|
|
@@ -159,18 +159,18 @@ import { t as Rs } from "../chunks/choose.C2vpqhLc.js";
|
|
|
159
159
|
import { t as zs } from "../chunks/masonry.MH1B7um_.js";
|
|
160
160
|
import { t as Bs } from "../chunks/padding-input-group.DYHH1M0o.js";
|
|
161
161
|
import { t as Vs } from "../chunks/position-picker.B3klGTsy.js";
|
|
162
|
-
import { t as Hs } from "../chunks/shadow-input-group.
|
|
162
|
+
import { t as Hs } from "../chunks/shadow-input-group.ByN6pEvN.js";
|
|
163
163
|
import { t as Us } from "../chunks/share-option-list.CP5eOort.js";
|
|
164
164
|
import { t as Ws } from "../chunks/sidebar.C7hLNDp-.js";
|
|
165
165
|
import { t as Gs } from "../chunks/size-input-group.PcWfpR6-.js";
|
|
166
166
|
import { t as Ks } from "../chunks/stepper-wizard.D0bqPHhx.js";
|
|
167
167
|
import { t as qs } from "../chunks/typeface.BSwJtcyV.js";
|
|
168
168
|
import { T as Js, _ as Ys, a as Xs, b as Zs, c as Qs, d as $s, l as ec, m as tc, n as nc, o as rc, s as ic, t as ac, v as oc } from "../chunks/asset-link-format.DwCsUsTb.js";
|
|
169
|
-
import { c as sc, h as cc, l as lc, m as uc, p as dc, t as fc, u as pc } from "../chunks/color-swatch-group.
|
|
169
|
+
import { c as sc, h as cc, l as lc, m as uc, p as dc, t as fc, u as pc } from "../chunks/color-swatch-group.NBdhiXFI.js";
|
|
170
170
|
import { n as mc } from "../chunks/isArrayLikeObject.Da3IzQeH.js";
|
|
171
|
-
import { t as hc } from "../chunks/file-on-demand.
|
|
171
|
+
import { t as hc } from "../chunks/file-on-demand.7OPAGIG4.js";
|
|
172
172
|
import "../events.js";
|
|
173
|
-
import { $ as gc, A as _c, D as vc, E as yc, F as bc, G as xc, H as Sc, I as Cc, M as eee, N as tee, O as nee, P as ree, Q as iee, S as wc, T as aee, U as Tc, W as oee, X as Ec, Z as Dc, _ as Oc, a as see, b as cee, c as lee, d as kc, et as Ac, h as jc, i as Mc, j as uee, k as dee, l as fee, m as pee, r as mee, s as Nc, t as Pc, tt as Fc, u as Ic, v as Lc, w as Rc, x as zc } from "../chunks/configs-controller.
|
|
173
|
+
import { $ as gc, A as _c, D as vc, E as yc, F as bc, G as xc, H as Sc, I as Cc, M as eee, N as tee, O as nee, P as ree, Q as iee, S as wc, T as aee, U as Tc, W as oee, X as Ec, Z as Dc, _ as Oc, a as see, b as cee, c as lee, d as kc, et as Ac, h as jc, i as Mc, j as uee, k as dee, l as fee, m as pee, r as mee, s as Nc, t as Pc, tt as Fc, u as Ic, v as Lc, w as Rc, x as zc } from "../chunks/configs-controller.qLdjsXb7.js";
|
|
174
174
|
import { i as Bc } from "../chunks/timer.M6Aa3L_j.js";
|
|
175
175
|
import { a as Vc, c as Hc, d as Uc, f as Wc, i as Gc, l as Kc, n as qc, o as Jc, r as Yc, s as Xc, t as Zc, u as Qc } from "../chunks/src.CLGAM3OO.js";
|
|
176
176
|
import { t as $c } from "../chunks/value.C4_tUrAq.js";
|
|
@@ -28410,6 +28410,9 @@ var wO = class extends d {
|
|
|
28410
28410
|
isSelectableOption(e) {
|
|
28411
28411
|
return !!e.group && !e.type && !e.submenu?.length && !e.icon;
|
|
28412
28412
|
}
|
|
28413
|
+
resolveMenuItemType(e) {
|
|
28414
|
+
return e.type === "switch" ? pr.Checkbox : this.isSelectableOption(e) ? pr.Selectable : pr.Normal;
|
|
28415
|
+
}
|
|
28413
28416
|
render() {
|
|
28414
28417
|
return r`<!-- Set auto-width-factor to 0.5 to account for submenu --><cx-dropdown auto-width-factor="0.5" stay-open-on-select hoist><slot name="trigger" slot="trigger"><cx-button slot="trigger" variant=${this.triggerButtonVariant} caret size=${this.triggerButtonSize} class="dropdown__trigger-button">${this.label}</cx-button></slot>${ir(this.items, (e) => e.title, (e) => this.renderMenuSection(e))}</cx-dropdown>`;
|
|
28415
28418
|
}
|
|
@@ -28432,11 +28435,11 @@ var wO = class extends d {
|
|
|
28432
28435
|
let n = e.value === "sort", o = e.value === "groupBy";
|
|
28433
28436
|
return a?.length ? n || o ? r`${i} ${a[1]?.label ?? ""}
|
|
28434
28437
|
${a[1] ? `(${a[0]?.label})` : a[0]?.label ?? ""}` : r`${i} ${e.label} (${a[0].label})` : t ? r`${i}<span class="horizontal-text">${e.label}</span>` : e.type === "switch" ? r`${i}<cx-line-clamp lines="1">${e.label}</cx-line-clamp>` : r`${i} ${e.label}`;
|
|
28435
|
-
}, s = e.selected ? e.selectedTip : e.unselectedTip, c = e.type === "switch", l = this.
|
|
28438
|
+
}, s = e.selected ? e.selectedTip : e.unselectedTip, c = e.type === "switch", l = this.resolveMenuItemType(e), u = fr.has(l), d = r`<cx-menu-item type=${l} ?checked=${u && !!e.selected} class=${j({
|
|
28436
28439
|
"disable-chevron": !e.submenu,
|
|
28437
28440
|
"disable-hover": e.type === "button",
|
|
28438
28441
|
selected: !!e.selected && e.type !== "switch" || !!a?.length || !!e.forceHighlight
|
|
28439
|
-
})} data-group=${e.group} data-event-name=${e.eventName} ?data-setting=${e.icon === "settings"} ?disabled=${e.disabled}
|
|
28442
|
+
})} data-group=${e.group} data-event-name=${e.eventName} ?data-setting=${e.icon === "settings"} ?disabled=${e.disabled} .value=${e.value}>${e.type === "button" ? r`<cx-button size="medium" ?disabled=${e.disabled} @click=${this.handleButtonClick}>${i} ${e.label}</cx-button>` : o()}
|
|
28440
28443
|
${e.type === "switch" ? r`<cx-switch slot="suffix" inert aria-hidden="true" show-icon ?checked=${e.selected || !1} ?disabled=${e.disabled}></cx-switch>` : ""}
|
|
28441
28444
|
${e.submenu?.length ? r`<div slot="suffix" class="submenu-indicator"><span>${Pse(e.submenu)}</span></div><cx-menu slot="submenu" aria-label=${e.label}>${e.disabled ? "" : e.submenu.map((e) => this.renderMenuSection(e))}</cx-menu>` : ""}
|
|
28442
28445
|
${n ? r`<cx-tooltip slot="suffix" content=${n} ?disabled=${!n} hoist><cx-icon class="menu-item__tooltip__icon" name="info" tabindex="0" label=${n}></cx-icon></cx-tooltip>` : ""}
|
|
@@ -94889,7 +94892,7 @@ var ATe = [
|
|
|
94889
94892
|
return this.mappedSupportedLanguages.length > 1;
|
|
94890
94893
|
}
|
|
94891
94894
|
ensureConfigUi() {
|
|
94892
|
-
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.
|
|
94895
|
+
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.DSN_CtAN.js"), import("../chunks/configs-controller.qLdjsXb7.js").then((e) => e.n)]).then(async ([, e]) => {
|
|
94893
94896
|
this.configsController ??= new e.default(this.localize), await customElements.whenDefined("cx-config-manager"), await this.configManager?.updateComplete;
|
|
94894
94897
|
});
|
|
94895
94898
|
}
|
|
@@ -102588,6 +102591,9 @@ var q7 = "downloader_chunkSize", J7 = "downloader_rocketMode", yDe = class {
|
|
|
102588
102591
|
handleCookiesRejected() {
|
|
102589
102592
|
return this.invoke("handleCookiesRejected", []);
|
|
102590
102593
|
}
|
|
102594
|
+
handleCookiesAccepted() {
|
|
102595
|
+
return this.invoke("handleCookiesAccepted", []);
|
|
102596
|
+
}
|
|
102591
102597
|
async registerDownload(e) {
|
|
102592
102598
|
return this.invoke("registerDownload", [e]);
|
|
102593
102599
|
}
|
|
@@ -103182,7 +103188,7 @@ var n9 = {
|
|
|
103182
103188
|
[V5.Failed]: 0,
|
|
103183
103189
|
[V5.Paused]: 0,
|
|
103184
103190
|
[V5.WaitingServerProcessing]: 0
|
|
103185
|
-
}, this.isAllDownloadingFilesCompleted = !1, this.updateFilesInterval = null, this.checkDefaultRootNameInterval = null, this.checkCookiesRejectedInterval = void 0, this.cancelSingle = (e) => {
|
|
103191
|
+
}, this.isAllDownloadingFilesCompleted = !1, this.updateFilesInterval = null, this.checkDefaultRootNameInterval = null, this.checkCookiesRejectedInterval = void 0, this.checkCookiesAcceptedInterval = void 0, this.cancelSingle = (e) => {
|
|
103186
103192
|
this.manager?.cancelFile(e);
|
|
103187
103193
|
}, this.onCancelAll = async () => {
|
|
103188
103194
|
await this.manager?.cancelAllFiles(Object.keys(this.allFiles).filter((e) => this.allFiles[e].status !== V5.Cancelled));
|
|
@@ -103379,7 +103385,12 @@ var n9 = {
|
|
|
103379
103385
|
}
|
|
103380
103386
|
setCheckCookiesRejectedInterval() {
|
|
103381
103387
|
this.checkCookiesRejectedInterval && clearInterval(this.checkCookiesRejectedInterval), this.checkCookiesRejectedInterval = setInterval(() => {
|
|
103382
|
-
this.cookiesForDownloaderV2Rejected && (this.manager?.handleCookiesRejected(), clearInterval(this.checkCookiesRejectedInterval));
|
|
103388
|
+
this.cookiesForDownloaderV2Rejected && (this.manager?.handleCookiesRejected(), clearInterval(this.checkCookiesRejectedInterval), this.setCheckCookiesAcceptedInterval());
|
|
103389
|
+
}, 1e3);
|
|
103390
|
+
}
|
|
103391
|
+
setCheckCookiesAcceptedInterval() {
|
|
103392
|
+
this.checkCookiesAcceptedInterval && clearInterval(this.checkCookiesAcceptedInterval), this.checkCookiesAcceptedInterval = setInterval(() => {
|
|
103393
|
+
this.cookiesForDownloaderV2Rejected || (this.manager?.handleCookiesAccepted(), clearInterval(this.checkCookiesAcceptedInterval), this.setCheckCookiesRejectedInterval());
|
|
103383
103394
|
}, 1e3);
|
|
103384
103395
|
}
|
|
103385
103396
|
async updateSortedFiles() {
|
|
@@ -110940,4 +110951,4 @@ l([s({ type: String }), u("design:type", Object)], $9.prototype, "value", void 0
|
|
|
110940
110951
|
], $9.prototype, "handleValueChange", null), $9 = Q9 = l([C("cx-xml-editor")], $9);
|
|
110941
110952
|
var nke = $9;
|
|
110942
110953
|
//#endregion
|
|
110943
|
-
export { fa as AUTO_FALLBACK_FORMAT, pa as AUTO_FORMAT_EXTENSION, ma as AUTO_ORIGINAL_FORMAT_MAX_BYTES, Ki as CMYK_VALIDATION_REGEX, oi as CalendarGrid, Vi as ColorType, an as CornerPosition, d as CortexElement, ha as CortexPopupController, wee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Eu as CxAnnotator, fle as CxAnnotatorComment, Mt as CxArrayLineClamp, Nu as CxAssetDataDisplay, zt as CxAssetFormatPicker, ac as CxAssetLinkFormat, Lt as CxAssetPicker, Yt as CxAssetTransformationDialog, In as CxAudio, Ln as CxAvatar, Rn as CxBadge, Ale as CxBentoGrid, Ts as CxBicolorPicker, Es as CxBorderInputGroup,
|
|
110954
|
+
export { fa as AUTO_FALLBACK_FORMAT, pa as AUTO_FORMAT_EXTENSION, ma as AUTO_ORIGINAL_FORMAT_MAX_BYTES, Ki as CMYK_VALIDATION_REGEX, oi as CalendarGrid, Vi as ColorType, an as CornerPosition, d as CortexElement, ha as CortexPopupController, wee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Eu as CxAnnotator, fle as CxAnnotatorComment, Mt as CxArrayLineClamp, Nu as CxAssetDataDisplay, zt as CxAssetFormatPicker, ac as CxAssetLinkFormat, Lt as CxAssetPicker, Yt as CxAssetTransformationDialog, In as CxAudio, Ln as CxAvatar, Rn as CxBadge, Ale as CxBentoGrid, Ts as CxBicolorPicker, Es as CxBorderInputGroup, zn as CxBox, Bn as CxBreadcrumb, Vn as CxBreadcrumbItem, ve as CxButton, Hn as CxButtonGroup, Vle as CxCapacityPlanner, Un as CxCard, KP as CxCarousel, xz as CxChartPlanBuilder, LR as CxChatbot, Wn as CxCheckbox, Dz as CxClusterManagement, Br as CxColorPicker, Ds as CxColorSwatch, fc as CxColorSwatchGroup, nP as CxComment, jz as CxCommentV1, Os as CxConfirmPopover, LTe as CxContentBuilder, qTe as CxContentBuilderViewer, Vr as CxCopyButton, ks as CxCornerPositionInputGroup, As as CxCropper, Rt as CxDamCustomToolbarButtonsEditor, mle as CxDashboardFilter, Iu as CxDashboardIframe, yle as CxDashboardTable, zu as CxDataTabGroup, ui as CxDateCalendar, di as CxDetails, Uu as CxDetailsGroup, fi as CxDialog, hi as CxDiff, mi as CxDivider, Yu as CxDocsExample, yi as CxDocumentViewer, ko as CxDotPagination, Ao as CxDotStatus, qt as CxDownloadFormatPicker, wDe as CxDownloader, _i as CxDrawer, ar as CxDropdown, Ns as CxDynamicSelect, jo as CxEChart, Mo as CxElementClamp, ed as CxEstimatedReadingTime, od as CxFacetDatePicker, fd as CxFacetDateRange, dc as CxFacetedFilter, _d as CxFacetedFilterFacet, hc as CxFileOnDemand, EDe as CxFindAndReplace, Ls as CxFolderSelect, Nt as CxFontPicker, No as CxFormatBytes, Po as CxFormatDate, Fo as CxFormatNumber, Io as CxFormatTime, xd as CxGalleryItem, C_ as CxGraphView, Lo as CxGrid, Ro as CxGridItem, zo as CxHeader, Ho as CxHubConnection, ce as CxIcon, oe as CxIconButton, It as CxIconPicker, Wo as CxIframe, To as CxImage, Go as CxImageComparer, Ko as CxInclude, ur as CxInput, rd as CxInputDatePicker, ld as CxInputDateRangePicker, qo as CxInputGroup, ODe as CxLightbox, At as CxLineClamp, Wt as CxListEditor, $o as CxMarkdown, QD as CxMarkdownViewer, zs as CxMasonry, tO as CxMentions, dr as CxMenu, mr as CxMenuItem, es as CxMenuLabel, ts as CxMenuSection, lc as CxMultiSelect, ns as CxMutationObserver, vr as CxOption, Bs as CxPaddingInputGroup, gse as CxPageOutline, rs as CxPagination, Tse as CxPdfViewerToolbar, h as CxPopup, Vs as CxPositionPicker, vi as CxProgressBar, is as CxProgressRing, Dse as CxPublishPage, as as CxQrCode, ss as CxRadio, cs as CxRadioButton, ls as CxRadioCard, us as CxRadioGroup, ds as CxRange, fs as CxRating, ps as CxRelativeTime, kt as CxResizeObserver, Or as CxSelect, Hs as CxShadowInputGroup, Us as CxShareOptionList, Ws as CxSidebar, Gs as CxSizeInputGroup, Do as CxSkeleton, yr as CxSpace, ADe as CxSpaceSelector, z3 as CxSpecialCharactersDialog, le as CxSpinner, ms as CxSplitPanel, kse as CxStatCard, hs as CxStep, gs as CxStepper, Ks as CxStepperWizard, Mse as CxStorybook, _s as CxSwitch, kr as CxTab, Pr as CxTabGroup, Rr as CxTabPanel, jt as CxTag, LDe as CxTemplateSwitcher, UOe as CxTextToSpeech, _r as CxTextarea, vs as CxTimecode, Ot as CxTooltip, bs as CxTree, ys as CxTreeItem, Jt as CxTypeSubtypeSelect, qs as CxTypeface, Fn as CxTypography, Cs as CxVideo, TO as CxViewAndSort, zr as CxVisuallyHidden, nke as CxXmlEditor, oa as DEFAULT_BREAKPOINTS, ai as DateRangePresets, ga as DragScroll, en as Easing, nn as EasingFunction, _t as FormControlController, $t as GsapEasing, Wi as HEX_ALPHA_VALIDATION_REGEX, Ri as HEX_VALIDATION_REGEX, O as HasSlotController, _a as HistoryManager, Pt as IconPickerVariant, va as KeyboardKey, T as LocalizeController, er as MIN_GRADIENT_STOPS, Zt as OBJECT_POSITION_BY_CROP_FOCUS, Qt as ObjectFit, tn as Orientation, ya as PRECISION, Xt as PositionPickerValue, ji as RELATIVE_URL_REGEX, Ni as RGB_VALIDATION_REGEX, ba as SRCSET_WIDTH_LADDER, rn as TransitionType, Ei as URL_DOMAIN_VALIDATION_REGEX, ki as URL_INTRANET_DOMAIN_VALIDATION_REGEX, wi as URL_PROTOCOL_VALIDATION_REGEX, bi as URL_VALIDATION_REGEX, xr as activeElements, qr as addMonths, xa as adjustRelativeValues, y as animateTo, Di as appendProtocol, Ai as appendQueryParam, Sa as applyTransformationsToUrl, Ca as applyWidthToAssetUrl, wa as buildAssetSrcset, Ta as buildSizesFromDisplayWidth, Ea as buildTransformationString, Nn as buildWaveformPath, jn as calculateAspectRatioFit, rr as clamp, Dn as cleanImageFileName, fn as clearZeroDurationParts, g as componentStyles, Hi as convertColor, Sn as convertDataUnits, vn as convertDurationToMilliseconds, bn as convertPixelsToAspectRatio, kn as convertSrcToBlob, Xn as createStopId, Tn as cropImage, ut as cssValueToPx, C as customElement, mt as customErrorValidityState, Dt as debounce, Gn as defaultValue, Da as downloadAsset, tr as drag, Ge as emptyToSpace, Be as escapeXML, Gi as extractColor, Ue as extractExtension, Oa as extractFrames, Le as extractRootData, gn as extractValueAndUnit, Mn as extractWaveformPeaks, ka as fetchCortexApi, Tt as findAncestorWithBuggyStyle, xt as findContainingBlock, Ct as findCuttingAncestor, Aa as findFrameByColAndRow, ja as findIndexByProp, or as focusWhenVisible, he as fontAwesomeIconNames, gt as formCollections, mn as formatAspectRatioString, Pi as formatColorCodeSeparator, ln as formatDurationPartsManually, zi as formatHexCode, Jr as formatIsoToDisplay, ni as formatMonthYearLabel, yn as formatNumberWithGrouping, Me as formatSecondsToTime, Ve as formatTimeToSeconds, dn as formatWithIntlDurationFormat, xn as gcd, at as getActiveElement, pi as getActiveModals, ie as getAnimation, pe as getAnimationNames, pt as getAssociatedForm, ct as getAttributes, We as getAttributesString, na as getBreakpointsFromCSS, Ma as getBrowserFontVariants, qi as getColorType, Cn as getContainedImageSize, nt as getCortexPopupLayer, Ze as getCurrentZIndex, $r as getDateMask, br as getDeepestActiveElement, ia as getDeviceType, cn as getDurationPartsByUnitsFormat, me as getEasingNames, ot as getElementFromHTMLString, lt as getElementFromTemplate, Xr as getFirstDayOfWeek, Na as getFontFamilyOptionValue, Pa as getFontFamilyVariants, Fa as getFormControls, ua as getHighlightedTitle, la as getHighlightedTitleHtml, E as getInnerHTML, Ia as getInterval, Fi as getLightDarkCssString, On as getNaturalWidthHeight, Qe as getNeededPaddingForBoxShadow, yt as getNextAncestor, Sr as getOffset, rt as getRelativeClickPercentage, L as getRootIDString, cr as getTabbableBoundary, sr as getTabbableElements, D as getTextContent, Yr as getTodayIsoDate, La as getTypefaceOptionValue, Ra as groupBy, za as hasTransformSegment, Re as htmlToPlainText, Ba as insertAtIndex, Va as insertFrameToCache, Ha as insertMultipleAtIndex, Qn as interpolateStopColor, vt as isChrome, Er as isCortexAdobePlugin, dt as isDomElement, $e as isElementInHorizontalView, xi as isExpiredAssetUrl, St as isFirefox, Ua as isFontFamilyAvailable, Wa as isFormInteracted, Ke as isGalleryItemCardType, Jn as isGradientString, wt as isIOS, et as isInElement, Ga as isModKey, z as isSafari, An as isSaveSrcValid, Ti as isValidDomainOrIntranetUrl, Ur as isValidIsoDate, Mi as isValidUrl, si as isoToDate, Ka as isoWeekNumber, st as loadScript, Tr as lockBodyScrolling, Ii as luminanceTextColor, qa as moveMultipleToIndex, Ja as moveToIndex, Ya as multiSelectTo, Kn as normalizeAngle, li as normalizeToIsoDate, Xa as omit, Za as openAssetOverview, Qa as openFolderOverview, $a as openLink, Pe as padPath, Fe as parseBooleanString, Ui as parseBorder, Gr as parseDisplayToIso, x as parseDuration, eo as parseFileSizeToBytes, Zn as parseGradient, ci as parseIsoDate, to as parseJsonString, Bi as parseLightDark, no as parseListString, Li as parseShadow, ro as parseTransformations, io as pick, bt as popoverSupported, v as prefersReducedMotion, nr as quantizeLargestRemainder, ao as quoteFontFamily, oo as readLocalStorageValue, it as readSearchConsistency, He as reducePathToDirectChild, w as registerTranslation, so as removeAtIndex, co as removeMultipleAtIndex, wn as resizeImage, lo as resolveAutoFormat, uo as resolveAutoMaxWidth, Si as resolveSpaceUrl, hn as rotateBox, En as rotateImage, ze as safeExtension, R as safeString, Ie as sanitizeHTML, _n as sanitizeRotation, Cr as scrollIntoView, fo as serialize, $n as serializeGradient, M as setAnimation, re as setDefaultAnimation, po as shareAsset, _ as shimKeyframesHeightAuto, tt as sortByTopPosition, qn as sortStops, mo as sortTypefaceVariants, Fr as splitBoxValues, je as splitCamelCaseFormatted, Yn as splitTopLevel, b as stopAnimations, Et as supportHLS, ho as testFontAvailability, Ji as timecodeConverter, qe as toCamelCase, Hr as toIsoDate, Xe as toKebabCase, Ne as toPascalCase, Ci as toRelativeUrl, Ye as toTitleCase, Oi as toUrlPathKey, go as toast, ke as truncateTextMiddle, Te as unescapeXML, wr as unlockBodyScrolling, _o as unquoteFontFamily, Je as upperFirst, ft as validValidityState, ht as valueMissingValidityState, S as waitForEvent, A as watch, vo as writeLocalStorageValue };
|
package/library/package.json
CHANGED
|
@@ -46,9 +46,9 @@ export default class CxMenuItem extends CortexElement {
|
|
|
46
46
|
anchor: HTMLAnchorElement | null;
|
|
47
47
|
menuItem: HTMLElement;
|
|
48
48
|
submenuIcon: HTMLElement;
|
|
49
|
-
/** The type of menu item to render. To use `checked`, this value must be set to `checkbox`. */
|
|
49
|
+
/** The type of menu item to render. To use `checked`, this value must be set to `checkbox` or `selectable`. */
|
|
50
50
|
type: MenuItemType;
|
|
51
|
-
/** Overrides the ARIA role derived from `type`.
|
|
51
|
+
/** Overrides the ARIA role derived from `type`. */
|
|
52
52
|
itemRole?: MenuItemRole;
|
|
53
53
|
/** The trigger type for the submenu. */
|
|
54
54
|
submenuTrigger: 'hover' | 'click' | 'both';
|
|
@@ -61,12 +61,10 @@ export default class CxViewAndSort extends CortexElement {
|
|
|
61
61
|
private handleItemTooltipMouseEnter;
|
|
62
62
|
private handleItemTooltipMouseLeave;
|
|
63
63
|
private handleActionClick;
|
|
64
|
-
/**
|
|
65
|
-
* Whether an item is one option out of a set the user picks from, such as items per page, and
|
|
66
|
-
* so needs `aria-checked`. Options share a `group`; switches, buttons, submenu openers and
|
|
67
|
-
* settings actions are excluded.
|
|
68
|
-
*/
|
|
64
|
+
/** Whether an item is one choice in a picker (e.g. items-per-page), rendered as `type="selectable"`. */
|
|
69
65
|
private isSelectableOption;
|
|
66
|
+
/** Maps a data item to the `cx-menu-item` type that should render it. */
|
|
67
|
+
private resolveMenuItemType;
|
|
70
68
|
render(): TemplateResult<1>;
|
|
71
69
|
renderMenuSection(section: MenuSection): TemplateResult;
|
|
72
70
|
renderMenuItem(item: MenuItem, isHorizontal?: boolean, tooltip?: string): TemplateResult;
|
|
@@ -29,6 +29,7 @@ export declare class WorkerProxy implements IDownloadManager {
|
|
|
29
29
|
start(enableRocketMode: boolean, keepDownloading: boolean): Promise<void>;
|
|
30
30
|
restart(): Promise<void>;
|
|
31
31
|
handleCookiesRejected(): void;
|
|
32
|
+
handleCookiesAccepted(): Promise<void>;
|
|
32
33
|
registerDownload(transactionID: string): Promise<string | null>;
|
|
33
34
|
startDownload(transactionID: string, location: string): Promise<void>;
|
|
34
35
|
pauseFile(fileID: string): Promise<void>;
|
|
@@ -35,6 +35,11 @@ export type IDownloadManager = {
|
|
|
35
35
|
getChunkSize: () => Promise<number>;
|
|
36
36
|
getDefaultRootName: () => Promise<string | null>;
|
|
37
37
|
getFile: (id: string) => Promise<GetFileQuery.QueryResult>;
|
|
38
|
+
/**
|
|
39
|
+
* Do necessary handling when the user has accepted cookies for downloader again
|
|
40
|
+
* after previously rejecting them
|
|
41
|
+
*/
|
|
42
|
+
handleCookiesAccepted: () => Promise<void>;
|
|
38
43
|
/**
|
|
39
44
|
* Do necessary handling when the user has rejected cookies for downloader
|
|
40
45
|
*/
|
|
@@ -81,6 +86,7 @@ export declare class DownloadManager implements IDownloadManager {
|
|
|
81
86
|
private databaseDiscarded;
|
|
82
87
|
constructor(context: DownloadContext, downloadDatabase: DownloadDatabase, downloadTransactionsRepo: IDownloadTransactionsRepository, downloadFilesRepo: IDownloadFilesRepository, downloadChunksRepo: IDownloadChunksRepository, downloadApiClient: IDownloadApiClient, storage: IStorage, eventHub: IEventHub, logger: ILogger, retrier: IRetrier, locker: ILocker);
|
|
83
88
|
handleCookiesRejected(): void;
|
|
89
|
+
handleCookiesAccepted(): Promise<void>;
|
|
84
90
|
private setupBackgroundJobs;
|
|
85
91
|
isRocketModeEnabled(): Promise<boolean>;
|
|
86
92
|
private internalToggleRocketMode;
|
|
@@ -145,6 +145,8 @@ export default class CxDownloader extends CortexElement {
|
|
|
145
145
|
setCheckDefaultRootNameInterval(): void;
|
|
146
146
|
checkCookiesRejectedInterval: NodeJS.Timer | undefined;
|
|
147
147
|
setCheckCookiesRejectedInterval(): void;
|
|
148
|
+
checkCookiesAcceptedInterval: NodeJS.Timer | undefined;
|
|
149
|
+
setCheckCookiesAcceptedInterval(): void;
|
|
148
150
|
cancelSingle: (id: string) => void;
|
|
149
151
|
onCancelAll: () => Promise<void>;
|
|
150
152
|
onClear: (id: string) => void;
|
|
@@ -17,17 +17,24 @@ export declare enum AriaCurrentValue {
|
|
|
17
17
|
Step = "step",
|
|
18
18
|
Time = "time"
|
|
19
19
|
}
|
|
20
|
-
/** The kind of menu item to render. `Checkbox` is required before `checked` has any effect. */
|
|
20
|
+
/** The kind of menu item to render. `Checkbox` or `Selectable` is required before `checked` has any effect. */
|
|
21
21
|
export declare enum MenuItemType {
|
|
22
22
|
Checkbox = "checkbox",
|
|
23
|
-
Normal = "normal"
|
|
23
|
+
Normal = "normal",
|
|
24
|
+
/** Same behavior and role as `Normal`; may also show the checkmark. Purely visual — the host owns `checked`. */
|
|
25
|
+
Selectable = "selectable"
|
|
24
26
|
}
|
|
27
|
+
/** `MenuItemType` values allowed to set `checked`. Only `Checkbox` also exposes `aria-checked`. */
|
|
28
|
+
export declare const CHECKED_ALLOWED_MENU_ITEM_TYPES: Set<MenuItemType>;
|
|
25
29
|
/**
|
|
26
30
|
* Interface for menu item data that can be shared between events and components
|
|
27
31
|
* This breaks the circular dependency between events and atoms packages
|
|
28
32
|
*/
|
|
29
33
|
export interface MenuItemData {
|
|
30
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Whether the menu item is checked. Only the `checkbox` and `selectable` types honor it;
|
|
36
|
+
* only `checkbox` also exposes `aria-checked`.
|
|
37
|
+
*/
|
|
31
38
|
checked?: boolean;
|
|
32
39
|
/** Whether the menu item is disabled */
|
|
33
40
|
disabled?: boolean;
|
|
@@ -549,11 +549,11 @@
|
|
|
549
549
|
interface CxMenuItemAttributes extends HTMLAttributes<CxMenuItem> {
|
|
550
550
|
|
|
551
551
|
/**
|
|
552
|
-
* The type of menu item to render. To use `checked`, this value must be set to `checkbox`.
|
|
552
|
+
* The type of menu item to render. To use `checked`, this value must be set to `checkbox` or `selectable`.
|
|
553
553
|
*/
|
|
554
|
-
type?: "checkbox" | "normal";
|
|
554
|
+
type?: "checkbox" | "normal" | "selectable";
|
|
555
555
|
/**
|
|
556
|
-
* Overrides the ARIA role derived from `type`.
|
|
556
|
+
* Overrides the ARIA role derived from `type`.
|
|
557
557
|
*/
|
|
558
558
|
itemRole?: "menuitemcheckbox" | "menuitem" | "menuitemradio";
|
|
559
559
|
/**
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(){function e(e){return e===``||e==null}function t(e){return Number.isFinite(Number(e))}function n(e,t){if(!t||typeof t!=`object`)return!0;let n=Number(e);return!(t.min!==void 0&&n<t.min||t.max!==void 0&&n>t.max)}function r(e){return e instanceof Date?e.getTime():typeof e==`number`?Number.isFinite(e)?e:NaN:typeof e==`string`?Date.parse(e):NaN}let i=[{groupName:`year`,token:`YYYY`},{groupName:`month`,token:`MM`},{groupName:`day`,token:`DD`},{groupName:`hour`,token:`HH`},{groupName:`minute`,token:`mm`},{groupName:`second`,token:`ss`}];function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function o(e){let t=``,n=0;for(;n<e.length;){let r=i.find(({token:t})=>e.startsWith(t,n));if(r){let e=r.token.length;t+=`(?<${r.groupName}>\\d{${e}})`,n+=e}else t+=a(e[n]),n+=1}return RegExp(`^${t}$`)}function s(e,t){let n=o(t).exec(e);if(!n?.groups)return!1;let r=Number(n.groups.year??`1970`),i=Number(n.groups.month??`1`),a=Number(n.groups.day??`1`),s=Number(n.groups.hour??`0`),c=Number(n.groups.minute??`0`),l=Number(n.groups.second??`0`);if(i<1||i>12||s>23||c>59||l>59)return!1;let u=new Date(r,i-1,a,s,c,l);return u.getFullYear()===r&&u.getMonth()===i-1&&u.getDate()===a}let c={alphanumeric(t){return e(t)?!0:/^[a-z0-9]+$/i.test(String(t))},boolean(t){return e(t)?!0:typeof t==`boolean`||t===`true`||t===`false`},date(t,n){if(e(t))return!0;if(n&&typeof n==`object`&&n.format!==void 0&&!s(String(t),n.format))return!1;let i=r(t);if(Number.isNaN(i))return!1;if(!n||typeof n!=`object`)return!0;if(n.starts!==void 0){let e=r(n.starts);if(Number.isNaN(e)||i<e)return!1}if(n.ends!==void 0){let e=r(n.ends);if(Number.isNaN(e)||i>e)return!1}return!0},ends(t,n){return e(t)?!0:String(t).toLowerCase().endsWith(String(n).toLowerCase())},float(r,i){if(e(r))return!0;let a=Number(r);return t(r)&&a%1!=0&&n(r,i)},in(t,n){if(e(t))return!0;let r=typeof n==`string`?n.split(`|`):n;return Array.isArray(r)&&r.includes(t)},integer(r,i){if(e(r))return!0;let a=Number(r);return t(r)&&Math.floor(a)===a&&n(r,i)},max(t,n){return e(t)?!0:Number.parseFloat(String(t))<=Number(n)},maxLength(t,n){return e(t)?!0:String(t).length<=Number(n)},min(t,n){return e(t)?!0:Number.parseFloat(String(t))>=Number(n)},minLength(t,n){return e(t)?!0:String(t).length>=Number(n)},numeric(t,r){return e(t)?!0:!Number.isNaN(Number(t))&&n(t,r)},regex(t,n){if(e(t))return!0;let r;r=n instanceof RegExp?n:n===void 0?``:String(n);try{return new RegExp(r).test(String(t))}catch{return!1}},required(t){return!e(t)},starts(t,n){return e(t)?!0:String(t).toLowerCase().startsWith(String(n).toLowerCase())},string(t,n){if(e(t))return!0;if(!Number.isNaN(Number(t)))return!1;if(!n||typeof n!=`object`)return!0;let r=String(t).length;return!(n.minLength!==void 0&&r<n.minLength||n.maxLength!==void 0&&r>n.maxLength)},unique(t,n,r){return e(t)||!r?.columnValues?!0:!r.columnValues.some(e=>e===t)}},l=1e3;function u(e){return e===``||e==null}function d(e){let t=/* @__PURE__ */ new Map;return e.forEach(e=>{u(e)||t.set(e,(t.get(e)??0)+1)}),t}function f(e,t,n){let r=[];return t.forEach(t=>{let i;if(t.type===`unique`)i=u(e)||(n.get(e)??0)<=1;else{let n=c[t.type];i=!n||n(e,t.parameters)}i||r.push({message:t.message,parameters:t.parameters,type:t.type})}),r}globalThis.addEventListener(`message`,e=>{if(e.origin!==``||e.data?.type!==`cx-validation-request`)return;let{fields:t,id:n}=e.data.payload,r=t.map(e=>e.rules.some(e=>e.type===`unique`)?d(e.values):/* @__PURE__ */ new Map),i=t.reduce((e,t)=>Math.max(e,t.values.length),0);for(let e=0;e<i||e===0;e+=l){let a=Math.min(e+l,i),o=[];for(let n=e;n<a;n++)t.forEach((e,t)=>{let i=f(e.values[n],e.rules,r[t]);i.length&&o.push({failures:i,fieldIndex:t,rowIndex:n})});let s={done:a>=i,id:n,results:o};if(globalThis.postMessage({payload:s,type:`cx-validation-response`}),a>=i)break}})})();
|