@milaboratories/milaboratories.ui-examples.model 1.1.67 → 1.1.69
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +13 -0
- package/dist/bundle.js +193 -193
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -3955,7 +3955,7 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3958
|
+
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
3959
|
var I = Object.defineProperty;
|
|
3960
3960
|
var D = (n2, e, t) => e in n2 ? I(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
|
|
3961
3961
|
var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
|
|
@@ -4102,14 +4102,14 @@
|
|
|
4102
4102
|
};
|
|
4103
4103
|
}
|
|
4104
4104
|
function p$1(n2) {
|
|
4105
|
-
const { type: e, name: t, domain: r } = n2;
|
|
4106
|
-
return
|
|
4105
|
+
const { type: e, name: t, domain: r } = n2, o = { type: e, name: t };
|
|
4106
|
+
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4107
4107
|
}
|
|
4108
4108
|
function C(n2) {
|
|
4109
4109
|
return n2.map(p$1);
|
|
4110
4110
|
}
|
|
4111
4111
|
function In(n2) {
|
|
4112
|
-
return
|
|
4112
|
+
return ke(p$1(n2));
|
|
4113
4113
|
}
|
|
4114
4114
|
function z$1(n2, e) {
|
|
4115
4115
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4121,7 +4121,7 @@
|
|
|
4121
4121
|
function X(n2, e) {
|
|
4122
4122
|
return n2.name === e.name && z$1(n2.domain, e.domain);
|
|
4123
4123
|
}
|
|
4124
|
-
function Dn(n2, e) {
|
|
4124
|
+
function Dn$1(n2, e) {
|
|
4125
4125
|
return { ...n2, src: h(n2.src, e) };
|
|
4126
4126
|
}
|
|
4127
4127
|
function h(n2, e) {
|
|
@@ -4157,10 +4157,10 @@
|
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
4159
|
function G(n2) {
|
|
4160
|
-
return
|
|
4160
|
+
return ke(n2);
|
|
4161
4161
|
}
|
|
4162
4162
|
function x(n2) {
|
|
4163
|
-
return
|
|
4163
|
+
return ke(p$1(n2));
|
|
4164
4164
|
}
|
|
4165
4165
|
function A(n2, e) {
|
|
4166
4166
|
return JSON.stringify([n2, e]);
|
|
@@ -4359,7 +4359,7 @@
|
|
|
4359
4359
|
};
|
|
4360
4360
|
return t(n2), [...e.values()];
|
|
4361
4361
|
}
|
|
4362
|
-
function k
|
|
4362
|
+
function k(n2, e) {
|
|
4363
4363
|
if (n2.name !== void 0 && n2.name !== e.name)
|
|
4364
4364
|
return false;
|
|
4365
4365
|
if (n2.type !== void 0) {
|
|
@@ -4397,13 +4397,13 @@
|
|
|
4397
4397
|
const t = n2.axesSpec.map(p$1);
|
|
4398
4398
|
if (e.partialAxesMatch) {
|
|
4399
4399
|
for (const r of e.axes)
|
|
4400
|
-
if (!t.some((o) => k
|
|
4400
|
+
if (!t.some((o) => k(r, o)))
|
|
4401
4401
|
return false;
|
|
4402
4402
|
} else {
|
|
4403
4403
|
if (t.length !== e.axes.length)
|
|
4404
4404
|
return false;
|
|
4405
4405
|
for (let r = 0; r < e.axes.length; r++)
|
|
4406
|
-
if (!k
|
|
4406
|
+
if (!k(e.axes[r], t[r]))
|
|
4407
4407
|
return false;
|
|
4408
4408
|
}
|
|
4409
4409
|
}
|
|
@@ -4431,7 +4431,7 @@
|
|
|
4431
4431
|
kind: n2.kind,
|
|
4432
4432
|
name: n2.name
|
|
4433
4433
|
};
|
|
4434
|
-
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)),
|
|
4434
|
+
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), ke(e);
|
|
4435
4435
|
}
|
|
4436
4436
|
z$2.object({
|
|
4437
4437
|
__isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4504,12 +4504,12 @@
|
|
|
4504
4504
|
}), c = l.extend({
|
|
4505
4505
|
cause: z$2.lazy(() => s).optional(),
|
|
4506
4506
|
errors: z$2.lazy(() => s.array()).optional()
|
|
4507
|
-
}), m = z$2.object({
|
|
4507
|
+
}), m$1 = z$2.object({
|
|
4508
4508
|
type: z$2.literal("StandardError"),
|
|
4509
4509
|
name: z$2.string(),
|
|
4510
4510
|
message: z$2.string(),
|
|
4511
4511
|
stack: z$2.string().optional()
|
|
4512
|
-
}), p = m.extend({
|
|
4512
|
+
}), p = m$1.extend({
|
|
4513
4513
|
cause: z$2.lazy(() => s).optional(),
|
|
4514
4514
|
errors: z$2.lazy(() => s.array()).optional()
|
|
4515
4515
|
}), s = z$2.union([p, c]);
|
|
@@ -4524,14 +4524,14 @@
|
|
|
4524
4524
|
});
|
|
4525
4525
|
var qe = Object.defineProperty;
|
|
4526
4526
|
var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4527
|
-
var
|
|
4527
|
+
var O = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4528
4528
|
function re(t) {
|
|
4529
4529
|
return { type: "Immediate", value: t };
|
|
4530
4530
|
}
|
|
4531
4531
|
function dt() {
|
|
4532
4532
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function De(t) {
|
|
4535
4535
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4536
4536
|
return globalThis.getPlatforma(t);
|
|
4537
4537
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
@@ -4540,7 +4540,7 @@
|
|
|
4540
4540
|
function pt() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
|
-
function
|
|
4543
|
+
function m() {
|
|
4544
4544
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
@@ -4552,15 +4552,15 @@
|
|
|
4552
4552
|
}
|
|
4553
4553
|
const ce = /* @__PURE__ */ new Map();
|
|
4554
4554
|
function ft(t, e) {
|
|
4555
|
-
t in
|
|
4555
|
+
t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
|
|
4556
4556
|
for (const r of ce.get(t))
|
|
4557
4557
|
r(n2);
|
|
4558
4558
|
}, ce.set(t, [])), ce.get(t).push(e);
|
|
4559
4559
|
}
|
|
4560
4560
|
class _ {
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
|
-
|
|
4563
|
-
|
|
4562
|
+
O(this, "isResolved", false);
|
|
4563
|
+
O(this, "resolvedValue");
|
|
4564
4564
|
this.handle = e, this.postProcess = n2, ft(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
@@ -4621,46 +4621,46 @@
|
|
|
4621
4621
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4622
4622
|
];
|
|
4623
4623
|
return he(
|
|
4624
|
-
|
|
4624
|
+
m().resolveWithCommon(this.handle, e, ...n2),
|
|
4625
4625
|
(i) => new E(i, r)
|
|
4626
4626
|
);
|
|
4627
4627
|
}
|
|
4628
4628
|
get resourceType() {
|
|
4629
|
-
return
|
|
4629
|
+
return m().getResourceType(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getInputsLocked() {
|
|
4632
|
-
return
|
|
4632
|
+
return m().getInputsLocked(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getOutputsLocked() {
|
|
4635
|
-
return
|
|
4635
|
+
return m().getOutputsLocked(this.handle);
|
|
4636
4636
|
}
|
|
4637
4637
|
getIsReadyOrError() {
|
|
4638
|
-
return
|
|
4638
|
+
return m().getIsReadyOrError(this.handle);
|
|
4639
4639
|
}
|
|
4640
4640
|
getIsFinal() {
|
|
4641
|
-
return
|
|
4641
|
+
return m().getIsFinal(this.handle);
|
|
4642
4642
|
}
|
|
4643
4643
|
getError() {
|
|
4644
4644
|
const e = [...this.resolvePath, "error"];
|
|
4645
4645
|
return he(
|
|
4646
|
-
|
|
4646
|
+
m().getError(this.handle),
|
|
4647
4647
|
(n2) => new E(n2, e)
|
|
4648
4648
|
);
|
|
4649
4649
|
}
|
|
4650
4650
|
listInputFields() {
|
|
4651
|
-
return
|
|
4651
|
+
return m().listInputFields(this.handle);
|
|
4652
4652
|
}
|
|
4653
4653
|
listOutputFields() {
|
|
4654
|
-
return
|
|
4654
|
+
return m().listOutputFields(this.handle);
|
|
4655
4655
|
}
|
|
4656
4656
|
listDynamicFields() {
|
|
4657
|
-
return
|
|
4657
|
+
return m().listDynamicFields(this.handle);
|
|
4658
4658
|
}
|
|
4659
4659
|
getKeyValueBase64(e) {
|
|
4660
|
-
return
|
|
4660
|
+
return m().getKeyValueBase64(this.handle, e);
|
|
4661
4661
|
}
|
|
4662
4662
|
getKeyValueAsString(e) {
|
|
4663
|
-
return
|
|
4663
|
+
return m().getKeyValueAsString(this.handle, e);
|
|
4664
4664
|
}
|
|
4665
4665
|
getKeyValueAsJson(e) {
|
|
4666
4666
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4668,10 +4668,10 @@
|
|
|
4668
4668
|
return JSON.parse(n2);
|
|
4669
4669
|
}
|
|
4670
4670
|
getDataBase64() {
|
|
4671
|
-
return
|
|
4671
|
+
return m().getDataBase64(this.handle);
|
|
4672
4672
|
}
|
|
4673
4673
|
getDataAsString() {
|
|
4674
|
-
return
|
|
4674
|
+
return m().getDataAsString(this.handle);
|
|
4675
4675
|
}
|
|
4676
4676
|
getDataAsJson() {
|
|
4677
4677
|
const e = this.getDataAsString();
|
|
@@ -4692,7 +4692,7 @@
|
|
|
4692
4692
|
*
|
|
4693
4693
|
*/
|
|
4694
4694
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4695
|
-
const r =
|
|
4695
|
+
const r = m().parsePObjectCollection(
|
|
4696
4696
|
this.handle,
|
|
4697
4697
|
e,
|
|
4698
4698
|
n2,
|
|
@@ -4707,14 +4707,14 @@
|
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
4709
4709
|
getFileContentAsBase64(e) {
|
|
4710
|
-
return new _(
|
|
4710
|
+
return new _(m().getBlobContentAsBase64(this.handle, e));
|
|
4711
4711
|
}
|
|
4712
4712
|
getFileContentAsString(e) {
|
|
4713
|
-
return new _(
|
|
4713
|
+
return new _(m().getBlobContentAsString(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getFileContentAsJson(e) {
|
|
4716
4716
|
return new _(
|
|
4717
|
-
|
|
4717
|
+
m().getBlobContentAsString(this.handle, e)
|
|
4718
4718
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4719
4719
|
}
|
|
4720
4720
|
/**
|
|
@@ -4733,7 +4733,7 @@
|
|
|
4733
4733
|
* @returns downloaded file handle
|
|
4734
4734
|
*/
|
|
4735
4735
|
getFileHandle() {
|
|
4736
|
-
return new _(
|
|
4736
|
+
return new _(m().getDownloadedBlobContentHandle(this.handle));
|
|
4737
4737
|
}
|
|
4738
4738
|
/**
|
|
4739
4739
|
* @deprecated use getFileHandle
|
|
@@ -4745,7 +4745,7 @@
|
|
|
4745
4745
|
* @returns downloaded file handle
|
|
4746
4746
|
*/
|
|
4747
4747
|
getRemoteFileHandle() {
|
|
4748
|
-
return new _(
|
|
4748
|
+
return new _(m().getOnDemandBlobContentHandle(this.handle));
|
|
4749
4749
|
}
|
|
4750
4750
|
/**
|
|
4751
4751
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4757,22 +4757,22 @@
|
|
|
4757
4757
|
* @returns the url to the extracted folder
|
|
4758
4758
|
*/
|
|
4759
4759
|
extractArchiveAndGetURL(e) {
|
|
4760
|
-
return new _(
|
|
4760
|
+
return new _(m().extractArchiveAndGetURL(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getImportProgress() {
|
|
4763
|
-
return new _(
|
|
4763
|
+
return new _(m().getImportProgress(this.handle));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLastLogs(e) {
|
|
4766
|
-
return new _(
|
|
4766
|
+
return new _(m().getLastLogs(this.handle, e));
|
|
4767
4767
|
}
|
|
4768
4768
|
getProgressLog(e) {
|
|
4769
|
-
return new _(
|
|
4769
|
+
return new _(m().getProgressLog(this.handle, e));
|
|
4770
4770
|
}
|
|
4771
4771
|
getProgressLogWithInfo(e) {
|
|
4772
|
-
return new _(
|
|
4772
|
+
return new _(m().getProgressLogWithInfo(this.handle, e));
|
|
4773
4773
|
}
|
|
4774
4774
|
getLogHandle() {
|
|
4775
|
-
return new _(
|
|
4775
|
+
return new _(m().getLogHandle(this.handle));
|
|
4776
4776
|
}
|
|
4777
4777
|
allFieldsResolved(e = "Input") {
|
|
4778
4778
|
switch (e) {
|
|
@@ -4801,7 +4801,7 @@
|
|
|
4801
4801
|
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, c2]) => o(u2, c2));
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
|
-
const
|
|
4804
|
+
const Re = "staging", Fe = "main";
|
|
4805
4805
|
const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$2.object({
|
|
4806
4806
|
type: z$2.string(),
|
|
4807
4807
|
importance: z$2.number().optional(),
|
|
@@ -4810,36 +4810,36 @@
|
|
|
4810
4810
|
}), bt = z$2.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
|
|
4811
4811
|
function Ve(t, e, n2 = {}) {
|
|
4812
4812
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
|
|
4813
|
-
var P,
|
|
4813
|
+
var P, F2;
|
|
4814
4814
|
const w2 = e(f2);
|
|
4815
|
-
let
|
|
4816
|
-
"spec" in w2 && typeof w2.spec == "object" ? (
|
|
4817
|
-
const
|
|
4818
|
-
...
|
|
4815
|
+
let p2, g, b;
|
|
4816
|
+
"spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
|
|
4817
|
+
const h2 = (P = p2.annotations) == null ? void 0 : P[mt], I2 = (F2 = p2.annotations) == null ? void 0 : F2[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], v = [
|
|
4818
|
+
...g ?? [],
|
|
4819
4819
|
...x2,
|
|
4820
4820
|
...b ?? []
|
|
4821
4821
|
];
|
|
4822
|
-
if (
|
|
4823
|
-
const
|
|
4824
|
-
n2.addLabelAsSuffix ?
|
|
4825
|
-
}
|
|
4826
|
-
const A2 = [],
|
|
4827
|
-
for (let
|
|
4828
|
-
const { type: W } =
|
|
4829
|
-
|
|
4830
|
-
const
|
|
4831
|
-
s2.set(
|
|
4832
|
-
|
|
4822
|
+
if (h2 !== void 0) {
|
|
4823
|
+
const k2 = { label: h2, type: At, importance: -2 };
|
|
4824
|
+
n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
|
|
4825
|
+
}
|
|
4826
|
+
const A2 = [], L = /* @__PURE__ */ new Map();
|
|
4827
|
+
for (let k2 = v.length - 1; k2 >= 0; --k2) {
|
|
4828
|
+
const { type: W } = v[k2], V = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
|
|
4829
|
+
L.set(W, $);
|
|
4830
|
+
const K = `${W}@${$}`;
|
|
4831
|
+
s2.set(K, (s2.get(K) ?? 0) + 1), r.set(
|
|
4832
|
+
K,
|
|
4833
4833
|
Math.max(
|
|
4834
|
-
r.get(
|
|
4835
|
-
V - (
|
|
4834
|
+
r.get(K) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
+
V - (v.length - k2) * wt
|
|
4836
4836
|
)
|
|
4837
|
-
), A2.push({ ...
|
|
4837
|
+
), A2.push({ ...v[k2], fullType: K, occurrenceIndex: $ });
|
|
4838
4838
|
}
|
|
4839
4839
|
return A2.reverse(), {
|
|
4840
4840
|
value: f2,
|
|
4841
|
-
spec:
|
|
4842
|
-
label:
|
|
4841
|
+
spec: p2,
|
|
4842
|
+
label: h2,
|
|
4843
4843
|
fullTrace: A2
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
@@ -4847,37 +4847,37 @@
|
|
|
4847
4847
|
for (const [f2] of u2)
|
|
4848
4848
|
f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
|
|
4849
4849
|
const c2 = (f2, w2 = false) => {
|
|
4850
|
-
const
|
|
4851
|
-
for (let
|
|
4852
|
-
const b = o[
|
|
4853
|
-
if (
|
|
4850
|
+
const p2 = [];
|
|
4851
|
+
for (let g = 0; g < o.length; g++) {
|
|
4852
|
+
const b = o[g], h2 = b.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
|
|
4853
|
+
if (h2.length === 0)
|
|
4854
4854
|
if (w2)
|
|
4855
|
-
|
|
4855
|
+
p2.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
4857
|
value: b.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const I2 =
|
|
4861
|
-
|
|
4860
|
+
const I2 = h2.map((v) => v.label), x2 = n2.separator ?? " / ";
|
|
4861
|
+
p2.push({
|
|
4862
4862
|
label: I2.join(x2),
|
|
4863
4863
|
value: b.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
4866
|
-
return
|
|
4866
|
+
return p2;
|
|
4867
4867
|
};
|
|
4868
4868
|
if (a.length === 0) {
|
|
4869
4869
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4870
4870
|
return c2(new Set(Pe), true);
|
|
4871
4871
|
}
|
|
4872
|
-
let
|
|
4873
|
-
for (;
|
|
4872
|
+
let d = 0, y = -1;
|
|
4873
|
+
for (; d < a.length; ) {
|
|
4874
4874
|
const f2 = /* @__PURE__ */ new Set();
|
|
4875
4875
|
n2.includeNativeLabel && f2.add(Pe);
|
|
4876
|
-
for (let
|
|
4877
|
-
|
|
4876
|
+
for (let p2 = 0; p2 < d; ++p2) f2.add(a[p2]);
|
|
4877
|
+
y >= 0 && f2.add(a[y]);
|
|
4878
4878
|
const w2 = c2(f2);
|
|
4879
|
-
if (w2 !== void 0 && new Set(w2.map((
|
|
4880
|
-
|
|
4879
|
+
if (w2 !== void 0 && new Set(w2.map((p2) => p2.label)).size === t.length) return w2;
|
|
4880
|
+
y++, y >= a.length && (d++, y = d);
|
|
4881
4881
|
}
|
|
4882
4882
|
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
@@ -5143,7 +5143,7 @@
|
|
|
5143
5143
|
const e = t[0];
|
|
5144
5144
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5145
5145
|
}
|
|
5146
|
-
class
|
|
5146
|
+
class Lt {
|
|
5147
5147
|
constructor(e) {
|
|
5148
5148
|
this.columns = e;
|
|
5149
5149
|
}
|
|
@@ -5152,7 +5152,7 @@
|
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function Tt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
5158
|
type: `split:${In(e.axisId)}`,
|
|
@@ -5165,17 +5165,17 @@
|
|
|
5165
5165
|
if (t)
|
|
5166
5166
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function kt(t, e) {
|
|
5169
5169
|
if (!e || e.length === 0) return t;
|
|
5170
5170
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5171
|
-
return
|
|
5171
|
+
return ke({ id: t, axisFilters: n2 });
|
|
5172
5172
|
}
|
|
5173
5173
|
function Se(t) {
|
|
5174
5174
|
if (!t || typeof t != "object") return false;
|
|
5175
5175
|
const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
|
|
5176
5176
|
return !!e.domainAnchor || n2 || r;
|
|
5177
5177
|
}
|
|
5178
|
-
function
|
|
5178
|
+
function Ot(t) {
|
|
5179
5179
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5180
5180
|
return [];
|
|
5181
5181
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5185,9 +5185,9 @@
|
|
|
5185
5185
|
}
|
|
5186
5186
|
class le {
|
|
5187
5187
|
constructor() {
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5188
|
+
O(this, "defaultProviderStore", []);
|
|
5189
|
+
O(this, "providers", [new Lt(this.defaultProviderStore)]);
|
|
5190
|
+
O(this, "axisLabelProviders", []);
|
|
5191
5191
|
}
|
|
5192
5192
|
addColumnProvider(e) {
|
|
5193
5193
|
return this.providers.push(e), this;
|
|
@@ -5215,43 +5215,43 @@
|
|
|
5215
5215
|
};
|
|
5216
5216
|
let u2 = () => false;
|
|
5217
5217
|
if (a) {
|
|
5218
|
-
const
|
|
5219
|
-
if (Se(
|
|
5218
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
|
|
5219
|
+
if (Se(g)) {
|
|
5220
5220
|
if (!r)
|
|
5221
5221
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5222
|
-
return _n(Bn(r.anchors,
|
|
5222
|
+
return _n(Bn(r.anchors, g, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return _n(
|
|
5224
|
+
return _n(g);
|
|
5225
5225
|
});
|
|
5226
|
-
u2 = (
|
|
5226
|
+
u2 = (g) => p2.some((b) => b(g));
|
|
5227
5227
|
}
|
|
5228
|
-
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e],
|
|
5229
|
-
for (const
|
|
5230
|
-
const
|
|
5228
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], y = /* @__PURE__ */ new Set();
|
|
5229
|
+
for (const p2 of c2) {
|
|
5230
|
+
const g = Se(p2);
|
|
5231
5231
|
let b;
|
|
5232
|
-
if (
|
|
5232
|
+
if (g) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
b = Bn(r.anchors,
|
|
5235
|
+
b = Bn(r.anchors, p2, n2);
|
|
5236
5236
|
} else
|
|
5237
|
-
b =
|
|
5238
|
-
const
|
|
5237
|
+
b = p2;
|
|
5238
|
+
const h2 = /* @__PURE__ */ new Set(), I2 = [];
|
|
5239
5239
|
for (const A2 of this.providers) {
|
|
5240
|
-
const
|
|
5241
|
-
for (const P of
|
|
5240
|
+
const L = A2.selectColumns(b);
|
|
5241
|
+
for (const P of L) {
|
|
5242
5242
|
if (u2(P.spec)) continue;
|
|
5243
|
-
if (
|
|
5243
|
+
if (h2.has(P.id))
|
|
5244
5244
|
throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
|
|
5245
|
-
const
|
|
5246
|
-
|
|
5245
|
+
const F2 = Mn(P.spec);
|
|
5246
|
+
y.has(F2) || (h2.add(P.id), y.add(F2), I2.push(P));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
5249
|
if (I2.length === 0) continue;
|
|
5250
|
-
const x2 =
|
|
5250
|
+
const x2 = Ot(p2), v = x2.length > 0;
|
|
5251
5251
|
for (const A2 of I2) {
|
|
5252
5252
|
if (!f(A2.spec)) continue;
|
|
5253
|
-
const
|
|
5254
|
-
if (
|
|
5253
|
+
const L = A2.spec;
|
|
5254
|
+
if (v) {
|
|
5255
5255
|
if (It(A2.data))
|
|
5256
5256
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
|
|
5257
5257
|
const P = St(A2.data);
|
|
@@ -5261,19 +5261,19 @@
|
|
|
5261
5261
|
}
|
|
5262
5262
|
if (!bn(P))
|
|
5263
5263
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
|
|
5264
|
-
const
|
|
5265
|
-
if (
|
|
5266
|
-
throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${
|
|
5267
|
-
const W = x2.map((S) => this.findLabels(p$1(
|
|
5264
|
+
const F2 = Pt(P), k2 = x2[x2.length - 1];
|
|
5265
|
+
if (k2 >= P.partitionKeyLength)
|
|
5266
|
+
throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5267
|
+
const W = x2.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], $ = (S, G2) => {
|
|
5268
5268
|
if (G2 >= x2.length) {
|
|
5269
5269
|
if (V.push([...S]), V.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
5273
|
const j = x2[G2];
|
|
5274
|
-
if (j >=
|
|
5275
|
-
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${
|
|
5276
|
-
const N2 =
|
|
5274
|
+
if (j >= F2.length)
|
|
5275
|
+
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${F2.length}) during split key generation for column ${A2.id}`);
|
|
5276
|
+
const N2 = F2[j];
|
|
5277
5277
|
if (!N2 || N2.length === 0) {
|
|
5278
5278
|
V.length = 0;
|
|
5279
5279
|
return;
|
|
@@ -5283,58 +5283,58 @@
|
|
|
5283
5283
|
};
|
|
5284
5284
|
if ($([], 0), V.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const
|
|
5286
|
+
const K = [...L.axesSpec], Be = x2.map((S) => S);
|
|
5287
5287
|
for (let S = x2.length - 1; S >= 0; S--)
|
|
5288
|
-
|
|
5289
|
-
const We = { ...
|
|
5288
|
+
K.splice(x2[S], 1);
|
|
5289
|
+
const We = { ...L, axesSpec: K };
|
|
5290
5290
|
for (const S of V) {
|
|
5291
5291
|
const G2 = S.map((j, N2) => {
|
|
5292
|
-
const ee2 = Be[N2], Ge = p$1(
|
|
5292
|
+
const ee2 = Be[N2], Ge = p$1(L.axesSpec[ee2]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
|
|
5293
5293
|
return { axisIdx: ee2, axisId: Ge, value: j, label: He };
|
|
5294
5294
|
});
|
|
5295
|
-
|
|
5295
|
+
d.push({
|
|
5296
5296
|
type: "split",
|
|
5297
5297
|
originalColumn: A2,
|
|
5298
|
-
spec:
|
|
5298
|
+
spec: L,
|
|
5299
5299
|
adjustedSpec: We,
|
|
5300
5300
|
dataEntries: P,
|
|
5301
5301
|
axisFilters: G2
|
|
5302
5302
|
});
|
|
5303
5303
|
}
|
|
5304
5304
|
} else
|
|
5305
|
-
|
|
5305
|
+
d.push({
|
|
5306
5306
|
type: "direct",
|
|
5307
5307
|
originalColumn: A2,
|
|
5308
|
-
spec:
|
|
5309
|
-
adjustedSpec:
|
|
5308
|
+
spec: L,
|
|
5309
|
+
adjustedSpec: L
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
|
-
if (
|
|
5313
|
+
if (d.length === 0) return [];
|
|
5314
5314
|
const f$1 = Ve(
|
|
5315
|
-
|
|
5316
|
-
(
|
|
5317
|
-
spec:
|
|
5318
|
-
suffixTrace:
|
|
5315
|
+
d,
|
|
5316
|
+
(p2) => ({
|
|
5317
|
+
spec: p2.spec,
|
|
5318
|
+
suffixTrace: p2.type === "split" ? Tt(p2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
5321
|
), w2 = [];
|
|
5322
|
-
for (const { value:
|
|
5323
|
-
const { originalColumn: b, spec:
|
|
5324
|
-
let
|
|
5325
|
-
r ?
|
|
5326
|
-
let A2 = { ...
|
|
5322
|
+
for (const { value: p2, label: g } of f$1) {
|
|
5323
|
+
const { originalColumn: b, spec: h2 } = p2, I2 = p2.type === "split" ? p2.axisFilters : void 0, x2 = Et(I2);
|
|
5324
|
+
let v;
|
|
5325
|
+
r ? v = r.deriveS(h2, x2) : v = kt(b.id, x2);
|
|
5326
|
+
let A2 = { ...p2.adjustedSpec };
|
|
5327
5327
|
o && (A2 = {
|
|
5328
5328
|
...A2,
|
|
5329
5329
|
annotations: {
|
|
5330
5330
|
...A2.annotations ?? {},
|
|
5331
|
-
"pl7.app/label":
|
|
5331
|
+
"pl7.app/label": g
|
|
5332
5332
|
}
|
|
5333
5333
|
}), w2.push({
|
|
5334
|
-
id:
|
|
5334
|
+
id: v,
|
|
5335
5335
|
spec: A2,
|
|
5336
|
-
data: () =>
|
|
5337
|
-
label:
|
|
5336
|
+
data: () => p2.type === "split" ? Pn(_t(p2.dataEntries, x2)) : p2.originalColumn.data,
|
|
5337
|
+
label: g
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
5340
5340
|
return w2;
|
|
@@ -5372,9 +5372,9 @@
|
|
|
5372
5372
|
function _e(t) {
|
|
5373
5373
|
return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
|
|
5374
5374
|
}
|
|
5375
|
-
class
|
|
5375
|
+
class Dt {
|
|
5376
5376
|
constructor() {
|
|
5377
|
-
|
|
5377
|
+
O(this, "ctx", m());
|
|
5378
5378
|
}
|
|
5379
5379
|
/**
|
|
5380
5380
|
* @deprecated use getOptions()
|
|
@@ -5616,7 +5616,7 @@
|
|
|
5616
5616
|
let a = null;
|
|
5617
5617
|
const l2 = this;
|
|
5618
5618
|
return {
|
|
5619
|
-
id:
|
|
5619
|
+
id: ke(i),
|
|
5620
5620
|
spec: o,
|
|
5621
5621
|
get data() {
|
|
5622
5622
|
var u2;
|
|
@@ -5643,12 +5643,12 @@
|
|
|
5643
5643
|
}
|
|
5644
5644
|
class te {
|
|
5645
5645
|
constructor() {
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
this.ctx =
|
|
5646
|
+
O(this, "ctx");
|
|
5647
|
+
O(this, "args");
|
|
5648
|
+
O(this, "uiState");
|
|
5649
|
+
O(this, "_activeArgsCache");
|
|
5650
|
+
O(this, "resultPool", new Dt());
|
|
5651
|
+
this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5652
5652
|
}
|
|
5653
5653
|
/**
|
|
5654
5654
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5670,7 +5670,7 @@
|
|
|
5670
5670
|
);
|
|
5671
5671
|
}
|
|
5672
5672
|
get prerun() {
|
|
5673
|
-
return this.getNamedAccessor(
|
|
5673
|
+
return this.getNamedAccessor(Re);
|
|
5674
5674
|
}
|
|
5675
5675
|
get outputs() {
|
|
5676
5676
|
return this.getNamedAccessor(Fe);
|
|
@@ -5704,7 +5704,7 @@
|
|
|
5704
5704
|
filters: e.filters ?? [],
|
|
5705
5705
|
sorting: e.sorting ?? []
|
|
5706
5706
|
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
|
|
5707
|
-
Dn(n2, (r) => _e(r))
|
|
5707
|
+
Dn$1(n2, (r) => _e(r))
|
|
5708
5708
|
);
|
|
5709
5709
|
}
|
|
5710
5710
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5724,20 +5724,20 @@
|
|
|
5724
5724
|
this.ctx.logError(e);
|
|
5725
5725
|
}
|
|
5726
5726
|
}
|
|
5727
|
-
const Y = "1.33.
|
|
5728
|
-
function
|
|
5727
|
+
const Y = "1.33.16";
|
|
5728
|
+
function Rt(t) {
|
|
5729
5729
|
return t.__renderLambda === true;
|
|
5730
5730
|
}
|
|
5731
5731
|
function pe(t) {
|
|
5732
5732
|
if (t !== void 0)
|
|
5733
|
-
return
|
|
5733
|
+
return Rt(t) ? t.handle : t;
|
|
5734
5734
|
}
|
|
5735
|
-
class
|
|
5735
|
+
class T {
|
|
5736
5736
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5737
5737
|
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
|
|
5738
5738
|
}
|
|
5739
5739
|
static create(e = "Heavy") {
|
|
5740
|
-
return new
|
|
5740
|
+
return new T(
|
|
5741
5741
|
e,
|
|
5742
5742
|
void 0,
|
|
5743
5743
|
{},
|
|
@@ -5751,7 +5751,7 @@
|
|
|
5751
5751
|
output(e, n2, r = {}) {
|
|
5752
5752
|
if (typeof n2 == "function") {
|
|
5753
5753
|
const i = `output#${e}`;
|
|
5754
|
-
return H(i, () => n2(new te())), new
|
|
5754
|
+
return H(i, () => n2(new te())), new T(
|
|
5755
5755
|
this._renderingMode,
|
|
5756
5756
|
this._initialArgs,
|
|
5757
5757
|
this._initialUiState,
|
|
@@ -5769,7 +5769,7 @@
|
|
|
5769
5769
|
this._enrichmentTargets
|
|
5770
5770
|
);
|
|
5771
5771
|
} else
|
|
5772
|
-
return new
|
|
5772
|
+
return new T(
|
|
5773
5773
|
this._renderingMode,
|
|
5774
5774
|
this._initialArgs,
|
|
5775
5775
|
this._initialUiState,
|
|
@@ -5788,7 +5788,7 @@
|
|
|
5788
5788
|
return this.output(e, n2, { retentive: true });
|
|
5789
5789
|
}
|
|
5790
5790
|
argsValid(e) {
|
|
5791
|
-
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new
|
|
5791
|
+
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new T(
|
|
5792
5792
|
this._renderingMode,
|
|
5793
5793
|
this._initialArgs,
|
|
5794
5794
|
this._initialUiState,
|
|
@@ -5800,7 +5800,7 @@
|
|
|
5800
5800
|
this._sections,
|
|
5801
5801
|
this._title,
|
|
5802
5802
|
this._enrichmentTargets
|
|
5803
|
-
)) : new
|
|
5803
|
+
)) : new T(
|
|
5804
5804
|
this._renderingMode,
|
|
5805
5805
|
this._initialArgs,
|
|
5806
5806
|
this._initialUiState,
|
|
@@ -5812,7 +5812,7 @@
|
|
|
5812
5812
|
);
|
|
5813
5813
|
}
|
|
5814
5814
|
sections(e) {
|
|
5815
|
-
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new
|
|
5815
|
+
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new T(
|
|
5816
5816
|
this._renderingMode,
|
|
5817
5817
|
this._initialArgs,
|
|
5818
5818
|
this._initialUiState,
|
|
@@ -5821,7 +5821,7 @@
|
|
|
5821
5821
|
{ __renderLambda: true, handle: "sections" },
|
|
5822
5822
|
this._title,
|
|
5823
5823
|
this._enrichmentTargets
|
|
5824
|
-
)) : new
|
|
5824
|
+
)) : new T(
|
|
5825
5825
|
this._renderingMode,
|
|
5826
5826
|
this._initialArgs,
|
|
5827
5827
|
this._initialUiState,
|
|
@@ -5834,7 +5834,7 @@
|
|
|
5834
5834
|
}
|
|
5835
5835
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5836
5836
|
title(e) {
|
|
5837
|
-
return H("title", () => e(new te())), new
|
|
5837
|
+
return H("title", () => e(new te())), new T(
|
|
5838
5838
|
this._renderingMode,
|
|
5839
5839
|
this._initialArgs,
|
|
5840
5840
|
this._initialUiState,
|
|
@@ -5850,7 +5850,7 @@
|
|
|
5850
5850
|
* @deprecated use {@link withArgs}
|
|
5851
5851
|
* */
|
|
5852
5852
|
initialArgs(e) {
|
|
5853
|
-
return new
|
|
5853
|
+
return new T(
|
|
5854
5854
|
this._renderingMode,
|
|
5855
5855
|
e,
|
|
5856
5856
|
this._initialUiState,
|
|
@@ -5863,7 +5863,7 @@
|
|
|
5863
5863
|
}
|
|
5864
5864
|
/** Sets initial args for the block, this value must be specified. */
|
|
5865
5865
|
withArgs(e) {
|
|
5866
|
-
return new
|
|
5866
|
+
return new T(
|
|
5867
5867
|
this._renderingMode,
|
|
5868
5868
|
e,
|
|
5869
5869
|
this._initialUiState,
|
|
@@ -5876,7 +5876,7 @@
|
|
|
5876
5876
|
}
|
|
5877
5877
|
/** Defines type and sets initial value for block UiState. */
|
|
5878
5878
|
withUiState(e) {
|
|
5879
|
-
return new
|
|
5879
|
+
return new T(
|
|
5880
5880
|
this._renderingMode,
|
|
5881
5881
|
this._initialArgs,
|
|
5882
5882
|
e,
|
|
@@ -5892,7 +5892,7 @@
|
|
|
5892
5892
|
* Influences dependency graph construction.
|
|
5893
5893
|
*/
|
|
5894
5894
|
enriches(e) {
|
|
5895
|
-
return H("enrichmentTargets", e), new
|
|
5895
|
+
return H("enrichmentTargets", e), new T(
|
|
5896
5896
|
this._renderingMode,
|
|
5897
5897
|
this._initialArgs,
|
|
5898
5898
|
this._initialUiState,
|
|
@@ -5930,7 +5930,7 @@
|
|
|
5930
5930
|
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5931
5931
|
)
|
|
5932
5932
|
};
|
|
5933
|
-
return dt() ?
|
|
5933
|
+
return dt() ? De({ sdkVersion: Y }) : { config: e };
|
|
5934
5934
|
}
|
|
5935
5935
|
}
|
|
5936
5936
|
function ve(t) {
|
|
@@ -5965,14 +5965,14 @@
|
|
|
5965
5965
|
return u2;
|
|
5966
5966
|
}, o = [];
|
|
5967
5967
|
for (const a of e) {
|
|
5968
|
-
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((
|
|
5968
|
+
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => X(d, u2));
|
|
5969
5969
|
if (c2 !== -1) {
|
|
5970
|
-
const
|
|
5971
|
-
|
|
5972
|
-
id: s2(a.id,
|
|
5970
|
+
const d = i[c2], y = Object.keys(d.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
|
|
5971
|
+
y > f2 ? o.push({
|
|
5972
|
+
id: s2(a.id, d.domain),
|
|
5973
5973
|
spec: {
|
|
5974
5974
|
...a.spec,
|
|
5975
|
-
axesSpec: [{ ...
|
|
5975
|
+
axesSpec: [{ ...d, annotations: l2.annotations }]
|
|
5976
5976
|
},
|
|
5977
5977
|
data: a.data
|
|
5978
5978
|
}) : o.push(a), i.splice(c2, 1);
|
|
@@ -6021,7 +6021,7 @@
|
|
|
6021
6021
|
sorting: i
|
|
6022
6022
|
};
|
|
6023
6023
|
}
|
|
6024
|
-
function
|
|
6024
|
+
function On(t, e, n2, r) {
|
|
6025
6025
|
var u2, c2;
|
|
6026
6026
|
Array.isArray(r) && (r = { filters: r });
|
|
6027
6027
|
const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((c2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : c2.sorting) ?? [], a = Ne(t.resultPool);
|
|
@@ -6040,38 +6040,38 @@
|
|
|
6040
6040
|
var e;
|
|
6041
6041
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6042
6042
|
}
|
|
6043
|
-
function
|
|
6044
|
-
var
|
|
6045
|
-
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((
|
|
6043
|
+
function Dn(t, e, n2, r, i) {
|
|
6044
|
+
var g, b;
|
|
6045
|
+
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((h2) => !Ft(h2.spec)), u2 = l2.find((h2) => n2(h2.spec));
|
|
6046
6046
|
if (!u2) return;
|
|
6047
6047
|
const c2 = Ne(t.resultPool);
|
|
6048
6048
|
if (!c2) return;
|
|
6049
|
-
const
|
|
6049
|
+
const d = new Set((() => {
|
|
6050
6050
|
var I2, x2;
|
|
6051
6051
|
if (s2 === "inner") return [];
|
|
6052
|
-
const
|
|
6053
|
-
return
|
|
6052
|
+
const h2 = (x2 = (I2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I2.hiddenColIds) == null ? void 0 : x2.map(ee).filter((v) => v.type === "column").map((v) => v.id);
|
|
6053
|
+
return h2 || l2.filter((v) => Kt(v.spec)).map((v) => v.id);
|
|
6054
6054
|
})());
|
|
6055
|
-
|
|
6056
|
-
const
|
|
6057
|
-
...u2.spec.axesSpec.map((
|
|
6055
|
+
d.delete(u2.id), [...o.map((h2) => h2.column), ...a.map((h2) => h2.column)].filter((h2) => h2.type === "column").map((h2) => d.delete(h2.id));
|
|
6056
|
+
const y = l2.filter((h2) => !d.has(h2.id)), f2 = Je(y.map($n), c2), w2 = [
|
|
6057
|
+
...u2.spec.axesSpec.map((h2) => ({
|
|
6058
6058
|
type: "axis",
|
|
6059
|
-
id: p$1(
|
|
6060
|
-
spec:
|
|
6059
|
+
id: p$1(h2),
|
|
6060
|
+
spec: h2
|
|
6061
6061
|
})),
|
|
6062
|
-
...[...l2, ...f2].map((
|
|
6062
|
+
...[...l2, ...f2].map((h2) => ({
|
|
6063
6063
|
type: "column",
|
|
6064
|
-
id:
|
|
6065
|
-
spec:
|
|
6064
|
+
id: h2.id,
|
|
6065
|
+
spec: h2.spec
|
|
6066
6066
|
}))
|
|
6067
6067
|
];
|
|
6068
|
-
if (!Me([...
|
|
6069
|
-
const
|
|
6068
|
+
if (!Me([...y, ...f2])) return;
|
|
6069
|
+
const p2 = t.createPTable(
|
|
6070
6070
|
Ue(l2, f2, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
|
|
6071
6071
|
);
|
|
6072
6072
|
return {
|
|
6073
6073
|
tableSpec: w2,
|
|
6074
|
-
tableHandle:
|
|
6074
|
+
tableHandle: p2
|
|
6075
6075
|
};
|
|
6076
6076
|
}
|
|
6077
6077
|
const ImportFileHandleSchema = z$2.string().optional().refine(
|
|
@@ -6097,7 +6097,7 @@
|
|
|
6097
6097
|
numbers: z$2.array(z$2.coerce.number()),
|
|
6098
6098
|
handles: z$2.array(ImportFileHandleSchema)
|
|
6099
6099
|
});
|
|
6100
|
-
const platforma =
|
|
6100
|
+
const platforma = T.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
|
|
6101
6101
|
if (ctx.args.numbers.length === 5) {
|
|
6102
6102
|
throw new Error("argsValid: test error");
|
|
6103
6103
|
}
|
|
@@ -6120,7 +6120,7 @@
|
|
|
6120
6120
|
val: v.toString()
|
|
6121
6121
|
};
|
|
6122
6122
|
});
|
|
6123
|
-
return
|
|
6123
|
+
return On(
|
|
6124
6124
|
ctx,
|
|
6125
6125
|
[
|
|
6126
6126
|
{
|
|
@@ -6173,7 +6173,7 @@
|
|
|
6173
6173
|
val: v.toString()
|
|
6174
6174
|
};
|
|
6175
6175
|
});
|
|
6176
|
-
return
|
|
6176
|
+
return Dn(
|
|
6177
6177
|
ctx,
|
|
6178
6178
|
[
|
|
6179
6179
|
{
|