@milaboratories/milaboratories.ui-examples.model 1.1.62 → 1.1.64
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 +14 -0
- package/dist/bundle.js +317 -308
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}, "");
|
|
36
36
|
return `{${values}}`;
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
|
|
39
39
|
var util;
|
|
40
40
|
(function(util2) {
|
|
41
41
|
util2.assertEqual = (val) => val;
|
|
@@ -3999,7 +3999,7 @@
|
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
4001
|
}
|
|
4002
|
-
function F
|
|
4002
|
+
function F(n2) {
|
|
4003
4003
|
if (!n2 || typeof n2 != "object")
|
|
4004
4004
|
return false;
|
|
4005
4005
|
const e = n2;
|
|
@@ -4017,7 +4017,7 @@
|
|
|
4017
4017
|
}
|
|
4018
4018
|
}
|
|
4019
4019
|
function gn(n2) {
|
|
4020
|
-
return F
|
|
4020
|
+
return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4021
4021
|
}
|
|
4022
4022
|
function bn(n2) {
|
|
4023
4023
|
switch (n2.type) {
|
|
@@ -4095,7 +4095,7 @@
|
|
|
4095
4095
|
return n2.map(p$1);
|
|
4096
4096
|
}
|
|
4097
4097
|
function $n(n2) {
|
|
4098
|
-
return
|
|
4098
|
+
return ke(p$1(n2));
|
|
4099
4099
|
}
|
|
4100
4100
|
function z$1(n2, e) {
|
|
4101
4101
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4108,9 +4108,9 @@
|
|
|
4108
4108
|
return n2.name === e.name && z$1(n2.domain, e.domain);
|
|
4109
4109
|
}
|
|
4110
4110
|
function In(n2, e) {
|
|
4111
|
-
return { ...n2, src: h(n2.src, e) };
|
|
4111
|
+
return { ...n2, src: h$1(n2.src, e) };
|
|
4112
4112
|
}
|
|
4113
|
-
function h(n2, e) {
|
|
4113
|
+
function h$1(n2, e) {
|
|
4114
4114
|
switch (n2.type) {
|
|
4115
4115
|
case "column":
|
|
4116
4116
|
return {
|
|
@@ -4130,23 +4130,23 @@
|
|
|
4130
4130
|
case "full":
|
|
4131
4131
|
return {
|
|
4132
4132
|
type: n2.type,
|
|
4133
|
-
entries: n2.entries.map((t) => h(t, e))
|
|
4133
|
+
entries: n2.entries.map((t) => h$1(t, e))
|
|
4134
4134
|
};
|
|
4135
4135
|
case "outer":
|
|
4136
4136
|
return {
|
|
4137
4137
|
type: "outer",
|
|
4138
|
-
primary: h(n2.primary, e),
|
|
4139
|
-
secondary: n2.secondary.map((t) => h(t, e))
|
|
4138
|
+
primary: h$1(n2.primary, e),
|
|
4139
|
+
secondary: n2.secondary.map((t) => h$1(t, e))
|
|
4140
4140
|
};
|
|
4141
4141
|
default:
|
|
4142
4142
|
w(n2);
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
4145
4145
|
function G(n2) {
|
|
4146
|
-
return
|
|
4146
|
+
return ke(n2);
|
|
4147
4147
|
}
|
|
4148
4148
|
function x(n2) {
|
|
4149
|
-
return
|
|
4149
|
+
return ke(p$1(n2));
|
|
4150
4150
|
}
|
|
4151
4151
|
function A(n2, e) {
|
|
4152
4152
|
return JSON.stringify([n2, e]);
|
|
@@ -4304,23 +4304,23 @@
|
|
|
4304
4304
|
function Y$1(n2) {
|
|
4305
4305
|
return typeof n2 == "object" && "anchor" in n2;
|
|
4306
4306
|
}
|
|
4307
|
-
function f
|
|
4307
|
+
function f(n2) {
|
|
4308
4308
|
return n2.kind === "PColumn";
|
|
4309
4309
|
}
|
|
4310
4310
|
function Z$1(n2) {
|
|
4311
|
-
return f
|
|
4311
|
+
return f(n2.spec);
|
|
4312
4312
|
}
|
|
4313
4313
|
function Un(n2) {
|
|
4314
4314
|
if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4315
4315
|
return n2;
|
|
4316
4316
|
}
|
|
4317
|
-
function Kn(n2, e) {
|
|
4317
|
+
function Kn$1(n2, e) {
|
|
4318
4318
|
return n2 === void 0 ? void 0 : {
|
|
4319
4319
|
...n2,
|
|
4320
4320
|
data: e(n2.data)
|
|
4321
4321
|
};
|
|
4322
4322
|
}
|
|
4323
|
-
function Rn
|
|
4323
|
+
function Rn(n2) {
|
|
4324
4324
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4325
4325
|
switch (r.type) {
|
|
4326
4326
|
case "column":
|
|
@@ -4410,14 +4410,14 @@
|
|
|
4410
4410
|
return true;
|
|
4411
4411
|
}
|
|
4412
4412
|
function vn(n2) {
|
|
4413
|
-
return Array.isArray(n2) ? (e) => n2.some((t) => f
|
|
4413
|
+
return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
|
|
4414
4414
|
}
|
|
4415
4415
|
function _n(n2) {
|
|
4416
4416
|
const e = {
|
|
4417
4417
|
kind: n2.kind,
|
|
4418
4418
|
name: n2.name
|
|
4419
4419
|
};
|
|
4420
|
-
return n2.domain !== void 0 && (e.domain = n2.domain), f
|
|
4420
|
+
return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), ke(e);
|
|
4421
4421
|
}
|
|
4422
4422
|
z$2.object({
|
|
4423
4423
|
__isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4501,46 +4501,46 @@
|
|
|
4501
4501
|
cause: z$2.lazy(() => n).optional(),
|
|
4502
4502
|
errors: z$2.lazy(() => n.array()).optional()
|
|
4503
4503
|
});
|
|
4504
|
-
var
|
|
4505
|
-
var
|
|
4506
|
-
var
|
|
4504
|
+
var Xe = Object.defineProperty;
|
|
4505
|
+
var Qe = (t, e, n2) => e in t ? Xe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4506
|
+
var R = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4507
4507
|
function re(t) {
|
|
4508
4508
|
return { type: "Immediate", value: t };
|
|
4509
4509
|
}
|
|
4510
|
-
function
|
|
4510
|
+
function ht() {
|
|
4511
4511
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4512
4512
|
}
|
|
4513
|
-
function
|
|
4513
|
+
function De(t) {
|
|
4514
4514
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4515
4515
|
return globalThis.getPlatforma(t);
|
|
4516
4516
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4517
4517
|
throw new Error("Can't get platforma instance.");
|
|
4518
4518
|
}
|
|
4519
|
-
function
|
|
4519
|
+
function gt() {
|
|
4520
4520
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function h() {
|
|
4523
4523
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4524
4524
|
throw new Error("Not in config rendering context");
|
|
4525
4525
|
}
|
|
4526
4526
|
function H(t, e) {
|
|
4527
|
-
const n2 =
|
|
4527
|
+
const n2 = gt();
|
|
4528
4528
|
if (n2 === void 0) return false;
|
|
4529
4529
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4530
4530
|
return n2.callbackRegistry[t] = e, true;
|
|
4531
4531
|
}
|
|
4532
|
-
const
|
|
4533
|
-
function
|
|
4534
|
-
t in
|
|
4535
|
-
for (const r of
|
|
4532
|
+
const ce = /* @__PURE__ */ new Map();
|
|
4533
|
+
function mt(t, e) {
|
|
4534
|
+
t in h().callbackRegistry || (h().callbackRegistry[t] = (n2) => {
|
|
4535
|
+
for (const r of ce.get(t))
|
|
4536
4536
|
r(n2);
|
|
4537
|
-
},
|
|
4537
|
+
}, ce.set(t, [])), ce.get(t).push(e);
|
|
4538
4538
|
}
|
|
4539
4539
|
class I {
|
|
4540
4540
|
constructor(e, n2 = (r) => r) {
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
this.handle = e, this.postProcess = n2,
|
|
4541
|
+
R(this, "isResolved", false);
|
|
4542
|
+
R(this, "resolvedValue");
|
|
4543
|
+
this.handle = e, this.postProcess = n2, mt(e, (r) => {
|
|
4544
4544
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4545
4545
|
});
|
|
4546
4546
|
}
|
|
@@ -4557,10 +4557,10 @@
|
|
|
4557
4557
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4558
4558
|
}
|
|
4559
4559
|
}
|
|
4560
|
-
function
|
|
4560
|
+
function he(t, e) {
|
|
4561
4561
|
return t === void 0 ? void 0 : e(t);
|
|
4562
4562
|
}
|
|
4563
|
-
class
|
|
4563
|
+
class O {
|
|
4564
4564
|
constructor(e, n2) {
|
|
4565
4565
|
this.handle = e, this.resolvePath = n2;
|
|
4566
4566
|
}
|
|
@@ -4599,47 +4599,47 @@
|
|
|
4599
4599
|
...this.resolvePath,
|
|
4600
4600
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4601
4601
|
];
|
|
4602
|
-
return
|
|
4603
|
-
|
|
4604
|
-
(i) => new
|
|
4602
|
+
return he(
|
|
4603
|
+
h().resolveWithCommon(this.handle, e, ...n2),
|
|
4604
|
+
(i) => new O(i, r)
|
|
4605
4605
|
);
|
|
4606
4606
|
}
|
|
4607
4607
|
get resourceType() {
|
|
4608
|
-
return
|
|
4608
|
+
return h().getResourceType(this.handle);
|
|
4609
4609
|
}
|
|
4610
4610
|
getInputsLocked() {
|
|
4611
|
-
return
|
|
4611
|
+
return h().getInputsLocked(this.handle);
|
|
4612
4612
|
}
|
|
4613
4613
|
getOutputsLocked() {
|
|
4614
|
-
return
|
|
4614
|
+
return h().getOutputsLocked(this.handle);
|
|
4615
4615
|
}
|
|
4616
4616
|
getIsReadyOrError() {
|
|
4617
|
-
return
|
|
4617
|
+
return h().getIsReadyOrError(this.handle);
|
|
4618
4618
|
}
|
|
4619
4619
|
getIsFinal() {
|
|
4620
|
-
return
|
|
4620
|
+
return h().getIsFinal(this.handle);
|
|
4621
4621
|
}
|
|
4622
4622
|
getError() {
|
|
4623
4623
|
const e = [...this.resolvePath, "error"];
|
|
4624
|
-
return
|
|
4625
|
-
|
|
4626
|
-
(n2) => new
|
|
4624
|
+
return he(
|
|
4625
|
+
h().getError(this.handle),
|
|
4626
|
+
(n2) => new O(n2, e)
|
|
4627
4627
|
);
|
|
4628
4628
|
}
|
|
4629
4629
|
listInputFields() {
|
|
4630
|
-
return
|
|
4630
|
+
return h().listInputFields(this.handle);
|
|
4631
4631
|
}
|
|
4632
4632
|
listOutputFields() {
|
|
4633
|
-
return
|
|
4633
|
+
return h().listOutputFields(this.handle);
|
|
4634
4634
|
}
|
|
4635
4635
|
listDynamicFields() {
|
|
4636
|
-
return
|
|
4636
|
+
return h().listDynamicFields(this.handle);
|
|
4637
4637
|
}
|
|
4638
4638
|
getKeyValueBase64(e) {
|
|
4639
|
-
return
|
|
4639
|
+
return h().getKeyValueBase64(this.handle, e);
|
|
4640
4640
|
}
|
|
4641
4641
|
getKeyValueAsString(e) {
|
|
4642
|
-
return
|
|
4642
|
+
return h().getKeyValueAsString(this.handle, e);
|
|
4643
4643
|
}
|
|
4644
4644
|
getKeyValueAsJson(e) {
|
|
4645
4645
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4647,10 +4647,10 @@
|
|
|
4647
4647
|
return JSON.parse(n2);
|
|
4648
4648
|
}
|
|
4649
4649
|
getDataBase64() {
|
|
4650
|
-
return
|
|
4650
|
+
return h().getDataBase64(this.handle);
|
|
4651
4651
|
}
|
|
4652
4652
|
getDataAsString() {
|
|
4653
|
-
return
|
|
4653
|
+
return h().getDataAsString(this.handle);
|
|
4654
4654
|
}
|
|
4655
4655
|
getDataAsJson() {
|
|
4656
4656
|
const e = this.getDataAsString();
|
|
@@ -4671,7 +4671,7 @@
|
|
|
4671
4671
|
*
|
|
4672
4672
|
*/
|
|
4673
4673
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4674
|
-
const r =
|
|
4674
|
+
const r = h().parsePObjectCollection(
|
|
4675
4675
|
this.handle,
|
|
4676
4676
|
e,
|
|
4677
4677
|
n2,
|
|
@@ -4681,19 +4681,19 @@
|
|
|
4681
4681
|
const i = {};
|
|
4682
4682
|
for (const [s2, o] of Object.entries(r)) {
|
|
4683
4683
|
const a = [...this.resolvePath, s2];
|
|
4684
|
-
i[s2] = Kn(o, (l2) => new
|
|
4684
|
+
i[s2] = Kn$1(o, (l2) => new O(l2, a));
|
|
4685
4685
|
}
|
|
4686
4686
|
return i;
|
|
4687
4687
|
}
|
|
4688
4688
|
getFileContentAsBase64(e) {
|
|
4689
|
-
return new I(
|
|
4689
|
+
return new I(h().getBlobContentAsBase64(this.handle, e));
|
|
4690
4690
|
}
|
|
4691
4691
|
getFileContentAsString(e) {
|
|
4692
|
-
return new I(
|
|
4692
|
+
return new I(h().getBlobContentAsString(this.handle, e));
|
|
4693
4693
|
}
|
|
4694
4694
|
getFileContentAsJson(e) {
|
|
4695
4695
|
return new I(
|
|
4696
|
-
|
|
4696
|
+
h().getBlobContentAsString(this.handle, e)
|
|
4697
4697
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4698
4698
|
}
|
|
4699
4699
|
/**
|
|
@@ -4712,7 +4712,7 @@
|
|
|
4712
4712
|
* @returns downloaded file handle
|
|
4713
4713
|
*/
|
|
4714
4714
|
getFileHandle() {
|
|
4715
|
-
return new I(
|
|
4715
|
+
return new I(h().getDownloadedBlobContentHandle(this.handle));
|
|
4716
4716
|
}
|
|
4717
4717
|
/**
|
|
4718
4718
|
* @deprecated use getFileHandle
|
|
@@ -4724,7 +4724,7 @@
|
|
|
4724
4724
|
* @returns downloaded file handle
|
|
4725
4725
|
*/
|
|
4726
4726
|
getRemoteFileHandle() {
|
|
4727
|
-
return new I(
|
|
4727
|
+
return new I(h().getOnDemandBlobContentHandle(this.handle));
|
|
4728
4728
|
}
|
|
4729
4729
|
/**
|
|
4730
4730
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4736,22 +4736,22 @@
|
|
|
4736
4736
|
* @returns the url to the extracted folder
|
|
4737
4737
|
*/
|
|
4738
4738
|
extractArchiveAndGetURL(e) {
|
|
4739
|
-
return new I(
|
|
4739
|
+
return new I(h().extractArchiveAndGetURL(this.handle, e));
|
|
4740
4740
|
}
|
|
4741
4741
|
getImportProgress() {
|
|
4742
|
-
return new I(
|
|
4742
|
+
return new I(h().getImportProgress(this.handle));
|
|
4743
4743
|
}
|
|
4744
4744
|
getLastLogs(e) {
|
|
4745
|
-
return new I(
|
|
4745
|
+
return new I(h().getLastLogs(this.handle, e));
|
|
4746
4746
|
}
|
|
4747
4747
|
getProgressLog(e) {
|
|
4748
|
-
return new I(
|
|
4748
|
+
return new I(h().getProgressLog(this.handle, e));
|
|
4749
4749
|
}
|
|
4750
4750
|
getProgressLogWithInfo(e) {
|
|
4751
|
-
return new I(
|
|
4751
|
+
return new I(h().getProgressLogWithInfo(this.handle, e));
|
|
4752
4752
|
}
|
|
4753
4753
|
getLogHandle() {
|
|
4754
|
-
return new I(
|
|
4754
|
+
return new I(h().getLogHandle(this.handle));
|
|
4755
4755
|
}
|
|
4756
4756
|
allFieldsResolved(e = "Input") {
|
|
4757
4757
|
switch (e) {
|
|
@@ -4780,95 +4780,95 @@
|
|
|
4780
4780
|
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
|
-
const
|
|
4784
|
-
const
|
|
4783
|
+
const Fe = "staging", Ke = "main";
|
|
4784
|
+
const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$2.object({
|
|
4785
4785
|
type: z$2.string(),
|
|
4786
4786
|
importance: z$2.number().optional(),
|
|
4787
4787
|
id: z$2.string().optional(),
|
|
4788
4788
|
label: z$2.string()
|
|
4789
|
-
}),
|
|
4789
|
+
}), xt = z$2.array(At), Ct = 1e-3, Pt = "__LABEL__", Se = "__LABEL__@1";
|
|
4790
4790
|
function Ve(t, e, n2 = {}) {
|
|
4791
|
-
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((
|
|
4792
|
-
var S,
|
|
4793
|
-
const
|
|
4794
|
-
let c2,
|
|
4795
|
-
"spec" in
|
|
4796
|
-
const p2 = (S = c2.annotations) == null ? void 0 : S[
|
|
4797
|
-
...
|
|
4798
|
-
...
|
|
4799
|
-
...
|
|
4791
|
+
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) => {
|
|
4792
|
+
var S, D2;
|
|
4793
|
+
const w2 = e(f2);
|
|
4794
|
+
let c2, g, x2;
|
|
4795
|
+
"spec" in w2 && typeof w2.spec == "object" ? (c2 = w2.spec, g = w2.prefixTrace, x2 = w2.suffixTrace) : c2 = w2;
|
|
4796
|
+
const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (D2 = c2.annotations) == null ? void 0 : D2[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
|
|
4797
|
+
...g ?? [],
|
|
4798
|
+
...m2,
|
|
4799
|
+
...x2 ?? []
|
|
4800
4800
|
];
|
|
4801
4801
|
if (p2 !== void 0) {
|
|
4802
|
-
const
|
|
4803
|
-
n2.addLabelAsSuffix ?
|
|
4804
|
-
}
|
|
4805
|
-
const
|
|
4806
|
-
for (let
|
|
4807
|
-
const { type: W } =
|
|
4808
|
-
|
|
4809
|
-
const
|
|
4810
|
-
s2.set(
|
|
4811
|
-
|
|
4802
|
+
const k2 = { label: p2, type: Pt, importance: -2 };
|
|
4803
|
+
n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
|
|
4804
|
+
}
|
|
4805
|
+
const C2 = [], L = /* @__PURE__ */ new Map();
|
|
4806
|
+
for (let k2 = v.length - 1; k2 >= 0; --k2) {
|
|
4807
|
+
const { type: W } = v[k2], V = v[k2].importance ?? 0, N2 = (L.get(W) ?? 0) + 1;
|
|
4808
|
+
L.set(W, N2);
|
|
4809
|
+
const j = `${W}@${N2}`;
|
|
4810
|
+
s2.set(j, (s2.get(j) ?? 0) + 1), r.set(
|
|
4811
|
+
j,
|
|
4812
4812
|
Math.max(
|
|
4813
|
-
r.get(
|
|
4814
|
-
|
|
4813
|
+
r.get(j) ?? Number.NEGATIVE_INFINITY,
|
|
4814
|
+
V - (v.length - k2) * Ct
|
|
4815
4815
|
)
|
|
4816
|
-
),
|
|
4816
|
+
), C2.push({ ...v[k2], fullType: j, occurrenceIndex: N2 });
|
|
4817
4817
|
}
|
|
4818
|
-
return
|
|
4819
|
-
value:
|
|
4818
|
+
return C2.reverse(), {
|
|
4819
|
+
value: f2,
|
|
4820
4820
|
spec: c2,
|
|
4821
4821
|
label: p2,
|
|
4822
|
-
fullTrace:
|
|
4822
|
+
fullTrace: C2
|
|
4823
4823
|
};
|
|
4824
4824
|
}), a = [], l2 = [], u2 = [...r];
|
|
4825
|
-
u2.sort(([,
|
|
4826
|
-
for (const [
|
|
4827
|
-
|
|
4828
|
-
const d = (
|
|
4825
|
+
u2.sort(([, f2], [, w2]) => w2 - f2);
|
|
4826
|
+
for (const [f2] of u2)
|
|
4827
|
+
f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
|
|
4828
|
+
const d = (f2, w2 = false) => {
|
|
4829
4829
|
const c2 = [];
|
|
4830
|
-
for (let
|
|
4831
|
-
const
|
|
4830
|
+
for (let g = 0; g < o.length; g++) {
|
|
4831
|
+
const x2 = o[g], p2 = x2.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
|
|
4832
4832
|
if (p2.length === 0)
|
|
4833
|
-
if (
|
|
4833
|
+
if (w2)
|
|
4834
4834
|
c2.push({
|
|
4835
4835
|
label: "Unlabeled",
|
|
4836
|
-
value:
|
|
4836
|
+
value: x2.value
|
|
4837
4837
|
});
|
|
4838
4838
|
else return;
|
|
4839
|
-
const A2 = p2.map((
|
|
4839
|
+
const A2 = p2.map((v) => v.label), m2 = n2.separator ?? " / ";
|
|
4840
4840
|
c2.push({
|
|
4841
|
-
label: A2.join(
|
|
4842
|
-
value:
|
|
4841
|
+
label: A2.join(m2),
|
|
4842
|
+
value: x2.value
|
|
4843
4843
|
});
|
|
4844
4844
|
}
|
|
4845
4845
|
return c2;
|
|
4846
4846
|
};
|
|
4847
4847
|
if (a.length === 0) {
|
|
4848
4848
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4849
|
-
return d(new Set(
|
|
4850
|
-
}
|
|
4851
|
-
let
|
|
4852
|
-
for (;
|
|
4853
|
-
const
|
|
4854
|
-
n2.includeNativeLabel &&
|
|
4855
|
-
for (let c2 = 0; c2 <
|
|
4856
|
-
|
|
4857
|
-
const
|
|
4858
|
-
if (
|
|
4859
|
-
|
|
4849
|
+
return d(new Set(Se), true);
|
|
4850
|
+
}
|
|
4851
|
+
let y = 0, b = -1;
|
|
4852
|
+
for (; y < a.length; ) {
|
|
4853
|
+
const f2 = /* @__PURE__ */ new Set();
|
|
4854
|
+
n2.includeNativeLabel && f2.add(Se);
|
|
4855
|
+
for (let c2 = 0; c2 < y; ++c2) f2.add(a[c2]);
|
|
4856
|
+
b >= 0 && f2.add(a[b]);
|
|
4857
|
+
const w2 = d(f2);
|
|
4858
|
+
if (w2 !== void 0 && new Set(w2.map((c2) => c2.label)).size === t.length) return w2;
|
|
4859
|
+
b++, b >= a.length && (y++, b = y);
|
|
4860
4860
|
}
|
|
4861
4861
|
return d(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4862
4862
|
}
|
|
4863
|
-
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned",
|
|
4864
|
-
const
|
|
4863
|
+
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", $e = Z + "Partitioned/", ae = $e + "JsonPartitioned", z = $e + "BinaryPartitioned";
|
|
4864
|
+
const me = (t) => {
|
|
4865
4865
|
if (t.endsWith(".index"))
|
|
4866
4866
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4867
4867
|
if (t.endsWith(".values"))
|
|
4868
4868
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4869
4869
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4870
4870
|
};
|
|
4871
|
-
function
|
|
4871
|
+
function St(t) {
|
|
4872
4872
|
if (!t) return;
|
|
4873
4873
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4874
4874
|
let i = 0;
|
|
@@ -4893,7 +4893,7 @@
|
|
|
4893
4893
|
case q:
|
|
4894
4894
|
case B:
|
|
4895
4895
|
for (let s2 of t.listInputFields()) {
|
|
4896
|
-
e === B && (s2 =
|
|
4896
|
+
e === B && (s2 = me(s2).baseKey);
|
|
4897
4897
|
const o = [...JSON.parse(s2)];
|
|
4898
4898
|
r.push(o);
|
|
4899
4899
|
}
|
|
@@ -4905,7 +4905,7 @@
|
|
|
4905
4905
|
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4906
4906
|
if (a !== void 0)
|
|
4907
4907
|
for (let l2 of a.listInputFields()) {
|
|
4908
|
-
e === z && (l2 =
|
|
4908
|
+
e === z && (l2 = me(l2).baseKey);
|
|
4909
4909
|
const u2 = [...o, ...JSON.parse(l2)];
|
|
4910
4910
|
r.push(u2);
|
|
4911
4911
|
}
|
|
@@ -4914,7 +4914,7 @@
|
|
|
4914
4914
|
}
|
|
4915
4915
|
return { data: r, keyLength: i };
|
|
4916
4916
|
}
|
|
4917
|
-
function
|
|
4917
|
+
function _t(t) {
|
|
4918
4918
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4919
4919
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4920
4920
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4933,11 +4933,11 @@
|
|
|
4933
4933
|
}
|
|
4934
4934
|
return r.map((i) => Array.from(i.values()));
|
|
4935
4935
|
}
|
|
4936
|
-
function
|
|
4936
|
+
function It(t) {
|
|
4937
4937
|
if (t === void 0) return;
|
|
4938
|
-
if (F
|
|
4939
|
-
return
|
|
4940
|
-
const e =
|
|
4938
|
+
if (F(t))
|
|
4939
|
+
return _t(t);
|
|
4940
|
+
const e = St(t);
|
|
4941
4941
|
if (!e) return;
|
|
4942
4942
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4943
4943
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -4950,7 +4950,7 @@
|
|
|
4950
4950
|
}
|
|
4951
4951
|
return i.map((s2) => Array.from(s2.values()));
|
|
4952
4952
|
}
|
|
4953
|
-
function
|
|
4953
|
+
function ye(t, e = []) {
|
|
4954
4954
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4955
4955
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4956
4956
|
if (e.length > 0 && (n2 === ae || n2 === z))
|
|
@@ -4980,7 +4980,7 @@
|
|
|
4980
4980
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4981
4981
|
const i = [], s2 = /* @__PURE__ */ new Map();
|
|
4982
4982
|
for (const o of t.listInputFields()) {
|
|
4983
|
-
const a =
|
|
4983
|
+
const a = me(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4984
4984
|
if (l2 === void 0) return;
|
|
4985
4985
|
let u2 = s2.get(a.baseKey);
|
|
4986
4986
|
u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
@@ -5011,7 +5011,7 @@
|
|
|
5011
5011
|
if (a === void 0) return;
|
|
5012
5012
|
if (a.resourceType.name !== q)
|
|
5013
5013
|
throw new Error(`Expected ${q} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5014
|
-
const l2 =
|
|
5014
|
+
const l2 = ye(a, JSON.parse(o));
|
|
5015
5015
|
if (l2 === void 0) return;
|
|
5016
5016
|
if (l2.type !== "JsonPartitioned")
|
|
5017
5017
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5032,7 +5032,7 @@
|
|
|
5032
5032
|
if (a === void 0) return;
|
|
5033
5033
|
if (a.resourceType.name !== B)
|
|
5034
5034
|
throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5035
|
-
const l2 =
|
|
5035
|
+
const l2 = ye(a, JSON.parse(o));
|
|
5036
5036
|
if (l2 === void 0) return;
|
|
5037
5037
|
if (l2.type !== "BinaryPartitioned")
|
|
5038
5038
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5048,15 +5048,15 @@
|
|
|
5048
5048
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5049
5049
|
}
|
|
5050
5050
|
}
|
|
5051
|
-
function
|
|
5051
|
+
function Tt(t) {
|
|
5052
5052
|
if (t !== void 0) {
|
|
5053
|
-
if (F
|
|
5053
|
+
if (F(t)) return t;
|
|
5054
5054
|
if (yn(t)) return bn(t);
|
|
5055
|
-
if (t instanceof
|
|
5055
|
+
if (t instanceof O) return ye(t);
|
|
5056
5056
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5057
5057
|
}
|
|
5058
5058
|
}
|
|
5059
|
-
function
|
|
5059
|
+
function Lt(t, e) {
|
|
5060
5060
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5061
5061
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5062
5062
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5116,7 +5116,7 @@
|
|
|
5116
5116
|
}
|
|
5117
5117
|
}
|
|
5118
5118
|
}
|
|
5119
|
-
class
|
|
5119
|
+
class Et {
|
|
5120
5120
|
constructor(e) {
|
|
5121
5121
|
this.columns = e;
|
|
5122
5122
|
}
|
|
@@ -5125,7 +5125,7 @@
|
|
|
5125
5125
|
return this.columns.filter((r) => n2(r.spec));
|
|
5126
5126
|
}
|
|
5127
5127
|
}
|
|
5128
|
-
function
|
|
5128
|
+
function Ot(t) {
|
|
5129
5129
|
if (t)
|
|
5130
5130
|
return t.map((e) => ({
|
|
5131
5131
|
type: `split:${$n(e.axisId)}`,
|
|
@@ -5134,21 +5134,21 @@
|
|
|
5134
5134
|
// High importance for split filters in labels
|
|
5135
5135
|
}));
|
|
5136
5136
|
}
|
|
5137
|
-
function
|
|
5137
|
+
function kt(t) {
|
|
5138
5138
|
if (t)
|
|
5139
5139
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5140
5140
|
}
|
|
5141
|
-
function
|
|
5141
|
+
function Rt(t, e) {
|
|
5142
5142
|
if (!e || e.length === 0) return t;
|
|
5143
5143
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5144
|
-
return
|
|
5144
|
+
return ke({ id: t, axisFilters: n2 });
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5146
|
+
function _e(t) {
|
|
5147
5147
|
if (!t || typeof t != "object") return false;
|
|
5148
5148
|
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);
|
|
5149
5149
|
return !!e.domainAnchor || n2 || r;
|
|
5150
5150
|
}
|
|
5151
|
-
function
|
|
5151
|
+
function Dt(t) {
|
|
5152
5152
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5153
5153
|
return [];
|
|
5154
5154
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5156,11 +5156,11 @@
|
|
|
5156
5156
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5157
5157
|
return e.sort((n2, r) => n2 - r), e;
|
|
5158
5158
|
}
|
|
5159
|
-
class
|
|
5159
|
+
class ve {
|
|
5160
5160
|
constructor() {
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5161
|
+
R(this, "defaultProviderStore", []);
|
|
5162
|
+
R(this, "providers", [new Et(this.defaultProviderStore)]);
|
|
5163
|
+
R(this, "axisLabelProviders", []);
|
|
5164
5164
|
}
|
|
5165
5165
|
addColumnProvider(e) {
|
|
5166
5166
|
return this.providers.push(e), this;
|
|
@@ -5188,127 +5188,127 @@
|
|
|
5188
5188
|
};
|
|
5189
5189
|
let u2 = () => false;
|
|
5190
5190
|
if (a) {
|
|
5191
|
-
const c2 = (Array.isArray(a) ? a : [a]).map((
|
|
5192
|
-
if (
|
|
5191
|
+
const c2 = (Array.isArray(a) ? a : [a]).map((g) => {
|
|
5192
|
+
if (_e(g)) {
|
|
5193
5193
|
if (!r)
|
|
5194
5194
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5195
|
-
return vn(Vn(r.anchors,
|
|
5195
|
+
return vn(Vn(r.anchors, g, n2));
|
|
5196
5196
|
} else
|
|
5197
|
-
return vn(
|
|
5197
|
+
return vn(g);
|
|
5198
5198
|
});
|
|
5199
|
-
u2 = (
|
|
5199
|
+
u2 = (g) => c2.some((x2) => x2(g));
|
|
5200
5200
|
}
|
|
5201
|
-
const d = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e],
|
|
5201
|
+
const d = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], y = [], b = /* @__PURE__ */ new Set();
|
|
5202
5202
|
for (const c2 of d) {
|
|
5203
|
-
const
|
|
5204
|
-
let
|
|
5205
|
-
if (
|
|
5203
|
+
const g = _e(c2);
|
|
5204
|
+
let x2;
|
|
5205
|
+
if (g) {
|
|
5206
5206
|
if (!r)
|
|
5207
5207
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5208
|
-
|
|
5208
|
+
x2 = Vn(r.anchors, c2, n2);
|
|
5209
5209
|
} else
|
|
5210
|
-
|
|
5210
|
+
x2 = c2;
|
|
5211
5211
|
const p2 = /* @__PURE__ */ new Set(), A2 = [];
|
|
5212
|
-
for (const
|
|
5213
|
-
const
|
|
5214
|
-
for (const S of
|
|
5212
|
+
for (const C2 of this.providers) {
|
|
5213
|
+
const L = C2.selectColumns(x2);
|
|
5214
|
+
for (const S of L) {
|
|
5215
5215
|
if (u2(S.spec)) continue;
|
|
5216
5216
|
if (p2.has(S.id))
|
|
5217
|
-
throw new Error(`Duplicate column id ${S.id} in provider ${
|
|
5218
|
-
const
|
|
5219
|
-
|
|
5217
|
+
throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
|
|
5218
|
+
const D2 = _n(S.spec);
|
|
5219
|
+
b.has(D2) || (p2.add(S.id), b.add(D2), A2.push(S));
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
5222
|
if (A2.length === 0) continue;
|
|
5223
|
-
const
|
|
5224
|
-
for (const
|
|
5225
|
-
if (!f
|
|
5226
|
-
const
|
|
5227
|
-
if (
|
|
5228
|
-
const S =
|
|
5223
|
+
const m2 = Dt(c2), v = m2.length > 0;
|
|
5224
|
+
for (const C2 of A2) {
|
|
5225
|
+
if (!f(C2.spec)) continue;
|
|
5226
|
+
const L = C2.spec;
|
|
5227
|
+
if (v) {
|
|
5228
|
+
const S = Tt(C2.data);
|
|
5229
5229
|
if (!S) {
|
|
5230
5230
|
if (s2) continue;
|
|
5231
5231
|
return;
|
|
5232
5232
|
}
|
|
5233
5233
|
if (!gn(S))
|
|
5234
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${
|
|
5235
|
-
const
|
|
5236
|
-
if (
|
|
5237
|
-
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${
|
|
5238
|
-
const W =
|
|
5239
|
-
if (G2 >=
|
|
5240
|
-
if (
|
|
5234
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
|
|
5235
|
+
const D2 = It(S), k2 = m2[m2.length - 1];
|
|
5236
|
+
if (k2 >= S.partitionKeyLength)
|
|
5237
|
+
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5238
|
+
const W = m2.map((_) => this.findLabels(p$1(L.axesSpec[_]))), V = [], N2 = (_, G2) => {
|
|
5239
|
+
if (G2 >= m2.length) {
|
|
5240
|
+
if (V.push([..._]), V.length > 1e4)
|
|
5241
5241
|
throw new Error("Too many key combinations, aborting.");
|
|
5242
5242
|
return;
|
|
5243
5243
|
}
|
|
5244
|
-
const
|
|
5245
|
-
if (
|
|
5246
|
-
throw new Error(`Axis index ${
|
|
5247
|
-
const J =
|
|
5244
|
+
const $ = m2[G2];
|
|
5245
|
+
if ($ >= D2.length)
|
|
5246
|
+
throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${D2.length}) during split key generation for column ${C2.id}`);
|
|
5247
|
+
const J = D2[$];
|
|
5248
5248
|
if (!J || J.length === 0) {
|
|
5249
|
-
|
|
5249
|
+
V.length = 0;
|
|
5250
5250
|
return;
|
|
5251
5251
|
}
|
|
5252
5252
|
for (const ee of J)
|
|
5253
|
-
_.push(ee),
|
|
5253
|
+
_.push(ee), N2(_, G2 + 1), _.pop();
|
|
5254
5254
|
};
|
|
5255
|
-
if (
|
|
5255
|
+
if (N2([], 0), V.length === 0)
|
|
5256
5256
|
continue;
|
|
5257
|
-
const
|
|
5258
|
-
for (let _ =
|
|
5259
|
-
|
|
5260
|
-
const
|
|
5261
|
-
for (const _ of
|
|
5262
|
-
const G2 = _.map((
|
|
5263
|
-
const ee =
|
|
5264
|
-
return { axisIdx: ee, axisId:
|
|
5257
|
+
const j = [...L.axesSpec], He = m2.map((_) => _);
|
|
5258
|
+
for (let _ = m2.length - 1; _ >= 0; _--)
|
|
5259
|
+
j.splice(m2[_], 1);
|
|
5260
|
+
const qe = { ...L, axesSpec: j };
|
|
5261
|
+
for (const _ of V) {
|
|
5262
|
+
const G2 = _.map(($, J) => {
|
|
5263
|
+
const ee = He[J], ze = p$1(L.axesSpec[ee]), le = W[J], Ye = (le == null ? void 0 : le[$]) ?? String($);
|
|
5264
|
+
return { axisIdx: ee, axisId: ze, value: $, label: Ye };
|
|
5265
5265
|
});
|
|
5266
|
-
|
|
5266
|
+
y.push({
|
|
5267
5267
|
type: "split",
|
|
5268
|
-
originalColumn:
|
|
5269
|
-
spec:
|
|
5270
|
-
adjustedSpec:
|
|
5268
|
+
originalColumn: C2,
|
|
5269
|
+
spec: L,
|
|
5270
|
+
adjustedSpec: qe,
|
|
5271
5271
|
dataEntries: S,
|
|
5272
5272
|
axisFilters: G2
|
|
5273
5273
|
});
|
|
5274
5274
|
}
|
|
5275
5275
|
} else
|
|
5276
|
-
|
|
5276
|
+
y.push({
|
|
5277
5277
|
type: "direct",
|
|
5278
|
-
originalColumn:
|
|
5279
|
-
spec:
|
|
5280
|
-
adjustedSpec:
|
|
5278
|
+
originalColumn: C2,
|
|
5279
|
+
spec: L,
|
|
5280
|
+
adjustedSpec: L
|
|
5281
5281
|
});
|
|
5282
5282
|
}
|
|
5283
5283
|
}
|
|
5284
|
-
if (
|
|
5285
|
-
const
|
|
5286
|
-
|
|
5284
|
+
if (y.length === 0) return [];
|
|
5285
|
+
const f$1 = Ve(
|
|
5286
|
+
y,
|
|
5287
5287
|
(c2) => ({
|
|
5288
5288
|
spec: c2.spec,
|
|
5289
|
-
suffixTrace: c2.type === "split" ?
|
|
5289
|
+
suffixTrace: c2.type === "split" ? Ot(c2.axisFilters) : void 0
|
|
5290
5290
|
}),
|
|
5291
5291
|
l2
|
|
5292
|
-
),
|
|
5293
|
-
for (const { value: c2, label:
|
|
5294
|
-
const { originalColumn:
|
|
5295
|
-
let
|
|
5296
|
-
r ?
|
|
5297
|
-
let
|
|
5298
|
-
o && (
|
|
5299
|
-
...
|
|
5292
|
+
), w2 = [];
|
|
5293
|
+
for (const { value: c2, label: g } of f$1) {
|
|
5294
|
+
const { originalColumn: x2, spec: p2 } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, m2 = kt(A2);
|
|
5295
|
+
let v;
|
|
5296
|
+
r ? v = r.deriveS(p2, m2) : v = Rt(x2.id, m2);
|
|
5297
|
+
let C2 = { ...c2.adjustedSpec };
|
|
5298
|
+
o && (C2 = {
|
|
5299
|
+
...C2,
|
|
5300
5300
|
annotations: {
|
|
5301
|
-
...
|
|
5302
|
-
"pl7.app/label":
|
|
5301
|
+
...C2.annotations ?? {},
|
|
5302
|
+
"pl7.app/label": g
|
|
5303
5303
|
}
|
|
5304
|
-
}),
|
|
5305
|
-
id:
|
|
5306
|
-
spec:
|
|
5307
|
-
data: () => c2.type === "split" ? wn(
|
|
5308
|
-
label:
|
|
5304
|
+
}), w2.push({
|
|
5305
|
+
id: v,
|
|
5306
|
+
spec: C2,
|
|
5307
|
+
data: () => c2.type === "split" ? wn(Lt(c2.dataEntries, m2)) : c2.originalColumn.data,
|
|
5308
|
+
label: g
|
|
5309
5309
|
});
|
|
5310
5310
|
}
|
|
5311
|
-
return
|
|
5311
|
+
return w2;
|
|
5312
5312
|
}
|
|
5313
5313
|
getColumns(e, n2) {
|
|
5314
5314
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5333,19 +5333,19 @@
|
|
|
5333
5333
|
return i;
|
|
5334
5334
|
}
|
|
5335
5335
|
}
|
|
5336
|
-
function
|
|
5336
|
+
function pe(t, e) {
|
|
5337
5337
|
if (t === void 0) return e === void 0;
|
|
5338
5338
|
if (e === void 0) return true;
|
|
5339
5339
|
for (const n2 in e)
|
|
5340
5340
|
if (t[n2] !== e[n2]) return false;
|
|
5341
5341
|
return true;
|
|
5342
5342
|
}
|
|
5343
|
-
function
|
|
5344
|
-
return Kn(t, (e) => e instanceof
|
|
5343
|
+
function Ie(t) {
|
|
5344
|
+
return Kn$1(t, (e) => e instanceof O ? e.handle : yn(e) ? hn(e, (n2) => n2.handle) : e);
|
|
5345
5345
|
}
|
|
5346
|
-
class
|
|
5346
|
+
class Ft {
|
|
5347
5347
|
constructor() {
|
|
5348
|
-
|
|
5348
|
+
R(this, "ctx", h());
|
|
5349
5349
|
}
|
|
5350
5350
|
/**
|
|
5351
5351
|
* @deprecated use getOptions()
|
|
@@ -5388,7 +5388,7 @@
|
|
|
5388
5388
|
getAnchoredPColumns(e, n2, r) {
|
|
5389
5389
|
const i = this.resolveAnchorCtx(e);
|
|
5390
5390
|
if (i)
|
|
5391
|
-
return new
|
|
5391
|
+
return new ve().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5392
5392
|
...r,
|
|
5393
5393
|
anchorCtx: i
|
|
5394
5394
|
});
|
|
@@ -5425,7 +5425,7 @@
|
|
|
5425
5425
|
getCanonicalOptions(e, n2, r) {
|
|
5426
5426
|
const i = this.resolveAnchorCtx(e);
|
|
5427
5427
|
if (!i) return;
|
|
5428
|
-
const s2 = new
|
|
5428
|
+
const s2 = new ve().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5429
5429
|
...r,
|
|
5430
5430
|
anchorCtx: i
|
|
5431
5431
|
});
|
|
@@ -5449,7 +5449,7 @@
|
|
|
5449
5449
|
ref: n2.ref,
|
|
5450
5450
|
obj: {
|
|
5451
5451
|
...n2.obj,
|
|
5452
|
-
data: new
|
|
5452
|
+
data: new O(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5453
5453
|
}
|
|
5454
5454
|
}))
|
|
5455
5455
|
};
|
|
@@ -5470,7 +5470,7 @@
|
|
|
5470
5470
|
...n2.obj,
|
|
5471
5471
|
data: Xn(
|
|
5472
5472
|
n2.obj.data,
|
|
5473
|
-
(r) => new
|
|
5473
|
+
(r) => new O(r, [n2.ref.blockId, n2.ref.name])
|
|
5474
5474
|
)
|
|
5475
5475
|
}
|
|
5476
5476
|
}))
|
|
@@ -5497,9 +5497,9 @@
|
|
|
5497
5497
|
)) == null ? void 0 : r.obj;
|
|
5498
5498
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5499
5499
|
if (n2)
|
|
5500
|
-
return Kn(
|
|
5500
|
+
return Kn$1(
|
|
5501
5501
|
n2,
|
|
5502
|
-
(i) => new
|
|
5502
|
+
(i) => new O(i, [e.blockId, e.name])
|
|
5503
5503
|
);
|
|
5504
5504
|
}
|
|
5505
5505
|
/**
|
|
@@ -5520,7 +5520,7 @@
|
|
|
5520
5520
|
getPColumnSpecByRef(e) {
|
|
5521
5521
|
const n2 = this.getSpecByRef(e);
|
|
5522
5522
|
if (n2) {
|
|
5523
|
-
if (!f
|
|
5523
|
+
if (!f(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
|
|
5524
5524
|
return n2;
|
|
5525
5525
|
}
|
|
5526
5526
|
}
|
|
@@ -5539,13 +5539,13 @@
|
|
|
5539
5539
|
findDataWithCompatibleSpec(e) {
|
|
5540
5540
|
const n2 = [];
|
|
5541
5541
|
e: for (const r of this.getData().entries) {
|
|
5542
|
-
if (!f
|
|
5542
|
+
if (!f(r.obj.spec))
|
|
5543
5543
|
continue;
|
|
5544
5544
|
const i = r.obj.spec;
|
|
5545
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5545
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && pe(e.domain, i.domain)) {
|
|
5546
5546
|
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5547
5547
|
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5548
|
-
if (o.name !== a.name || o.type !== a.type || !
|
|
5548
|
+
if (o.name !== a.name || o.type !== a.type || !pe(o.domain, a.domain))
|
|
5549
5549
|
continue e;
|
|
5550
5550
|
}
|
|
5551
5551
|
n2.push(r.obj);
|
|
@@ -5562,7 +5562,7 @@
|
|
|
5562
5562
|
for (const r of n2.entries) {
|
|
5563
5563
|
if (!Z$1(r.obj)) continue;
|
|
5564
5564
|
const i = r.obj.spec;
|
|
5565
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5565
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && pe(e.domain, i.axesSpec[0].domain)) {
|
|
5566
5566
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5567
5567
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5568
5568
|
return Object.fromEntries(
|
|
@@ -5582,12 +5582,12 @@
|
|
|
5582
5582
|
*/
|
|
5583
5583
|
selectColumns(e) {
|
|
5584
5584
|
const n2 = typeof e == "function" ? e : vn(e);
|
|
5585
|
-
return this.getSpecs().entries.filter(({ obj: i }) => f
|
|
5585
|
+
return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5586
5586
|
const o = s2;
|
|
5587
5587
|
let a = null;
|
|
5588
5588
|
const l2 = this;
|
|
5589
5589
|
return {
|
|
5590
|
-
id:
|
|
5590
|
+
id: ke(i),
|
|
5591
5591
|
spec: o,
|
|
5592
5592
|
get data() {
|
|
5593
5593
|
var u2;
|
|
@@ -5614,12 +5614,12 @@
|
|
|
5614
5614
|
}
|
|
5615
5615
|
class te {
|
|
5616
5616
|
constructor() {
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
this.ctx =
|
|
5617
|
+
R(this, "ctx");
|
|
5618
|
+
R(this, "args");
|
|
5619
|
+
R(this, "uiState");
|
|
5620
|
+
R(this, "_activeArgsCache");
|
|
5621
|
+
R(this, "resultPool", new Ft());
|
|
5622
|
+
this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5623
5623
|
}
|
|
5624
5624
|
/**
|
|
5625
5625
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5635,16 +5635,16 @@
|
|
|
5635
5635
|
// return this.ctx.featureFlags;
|
|
5636
5636
|
// }
|
|
5637
5637
|
getNamedAccessor(e) {
|
|
5638
|
-
return
|
|
5638
|
+
return he(
|
|
5639
5639
|
this.ctx.getAccessorHandleByName(e),
|
|
5640
|
-
(n2) => new
|
|
5640
|
+
(n2) => new O(n2, [e])
|
|
5641
5641
|
);
|
|
5642
5642
|
}
|
|
5643
5643
|
get prerun() {
|
|
5644
|
-
return this.getNamedAccessor(
|
|
5644
|
+
return this.getNamedAccessor(Fe);
|
|
5645
5645
|
}
|
|
5646
5646
|
get outputs() {
|
|
5647
|
-
return this.getNamedAccessor(
|
|
5647
|
+
return this.getNamedAccessor(Ke);
|
|
5648
5648
|
}
|
|
5649
5649
|
/**
|
|
5650
5650
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5656,13 +5656,13 @@
|
|
|
5656
5656
|
}
|
|
5657
5657
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5658
5658
|
var i;
|
|
5659
|
-
const n2 = e.some((s2) => !(s2.data instanceof
|
|
5659
|
+
const n2 = e.some((s2) => !(s2.data instanceof O) || yn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5660
5660
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5661
5661
|
}
|
|
5662
5662
|
// TODO remove all non-PColumn fields
|
|
5663
5663
|
createPFrame(e) {
|
|
5664
5664
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5665
|
-
e.map((n2) =>
|
|
5665
|
+
e.map((n2) => Ie(n2))
|
|
5666
5666
|
);
|
|
5667
5667
|
}
|
|
5668
5668
|
createPTable(e) {
|
|
@@ -5674,8 +5674,8 @@
|
|
|
5674
5674
|
},
|
|
5675
5675
|
filters: e.filters ?? [],
|
|
5676
5676
|
sorting: e.sorting ?? []
|
|
5677
|
-
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Rn
|
|
5678
|
-
In(n2, (r) =>
|
|
5677
|
+
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Rn(n2.src)), this.ctx.createPTable(
|
|
5678
|
+
In(n2, (r) => Ie(r))
|
|
5679
5679
|
);
|
|
5680
5680
|
}
|
|
5681
5681
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5685,21 +5685,30 @@
|
|
|
5685
5685
|
getCurrentUnstableMarker() {
|
|
5686
5686
|
return this.ctx.getCurrentUnstableMarker();
|
|
5687
5687
|
}
|
|
5688
|
+
logInfo(e) {
|
|
5689
|
+
this.ctx.logInfo(e);
|
|
5690
|
+
}
|
|
5691
|
+
logWarn(e) {
|
|
5692
|
+
this.ctx.logWarn(e);
|
|
5693
|
+
}
|
|
5694
|
+
logError(e) {
|
|
5695
|
+
this.ctx.logError(e);
|
|
5696
|
+
}
|
|
5688
5697
|
}
|
|
5689
|
-
const Y = "1.
|
|
5690
|
-
function
|
|
5698
|
+
const Y = "1.32.1";
|
|
5699
|
+
function Kt(t) {
|
|
5691
5700
|
return t.__renderLambda === true;
|
|
5692
5701
|
}
|
|
5693
|
-
function
|
|
5702
|
+
function de(t) {
|
|
5694
5703
|
if (t !== void 0)
|
|
5695
|
-
return
|
|
5704
|
+
return Kt(t) ? t.handle : t;
|
|
5696
5705
|
}
|
|
5697
|
-
class
|
|
5706
|
+
class E {
|
|
5698
5707
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5699
5708
|
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
|
|
5700
5709
|
}
|
|
5701
5710
|
static create(e = "Heavy") {
|
|
5702
|
-
return new
|
|
5711
|
+
return new E(
|
|
5703
5712
|
e,
|
|
5704
5713
|
void 0,
|
|
5705
5714
|
{},
|
|
@@ -5713,7 +5722,7 @@
|
|
|
5713
5722
|
output(e, n2, r = {}) {
|
|
5714
5723
|
if (typeof n2 == "function") {
|
|
5715
5724
|
const i = `output#${e}`;
|
|
5716
|
-
return H(i, () => n2(new te())), new
|
|
5725
|
+
return H(i, () => n2(new te())), new E(
|
|
5717
5726
|
this._renderingMode,
|
|
5718
5727
|
this._initialArgs,
|
|
5719
5728
|
this._initialUiState,
|
|
@@ -5731,7 +5740,7 @@
|
|
|
5731
5740
|
this._enrichmentTargets
|
|
5732
5741
|
);
|
|
5733
5742
|
} else
|
|
5734
|
-
return new
|
|
5743
|
+
return new E(
|
|
5735
5744
|
this._renderingMode,
|
|
5736
5745
|
this._initialArgs,
|
|
5737
5746
|
this._initialUiState,
|
|
@@ -5750,7 +5759,7 @@
|
|
|
5750
5759
|
return this.output(e, n2, { retentive: true });
|
|
5751
5760
|
}
|
|
5752
5761
|
argsValid(e) {
|
|
5753
|
-
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new
|
|
5762
|
+
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new E(
|
|
5754
5763
|
this._renderingMode,
|
|
5755
5764
|
this._initialArgs,
|
|
5756
5765
|
this._initialUiState,
|
|
@@ -5762,7 +5771,7 @@
|
|
|
5762
5771
|
this._sections,
|
|
5763
5772
|
this._title,
|
|
5764
5773
|
this._enrichmentTargets
|
|
5765
|
-
)) : new
|
|
5774
|
+
)) : new E(
|
|
5766
5775
|
this._renderingMode,
|
|
5767
5776
|
this._initialArgs,
|
|
5768
5777
|
this._initialUiState,
|
|
@@ -5774,7 +5783,7 @@
|
|
|
5774
5783
|
);
|
|
5775
5784
|
}
|
|
5776
5785
|
sections(e) {
|
|
5777
|
-
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new
|
|
5786
|
+
return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new E(
|
|
5778
5787
|
this._renderingMode,
|
|
5779
5788
|
this._initialArgs,
|
|
5780
5789
|
this._initialUiState,
|
|
@@ -5783,7 +5792,7 @@
|
|
|
5783
5792
|
{ __renderLambda: true, handle: "sections" },
|
|
5784
5793
|
this._title,
|
|
5785
5794
|
this._enrichmentTargets
|
|
5786
|
-
)) : new
|
|
5795
|
+
)) : new E(
|
|
5787
5796
|
this._renderingMode,
|
|
5788
5797
|
this._initialArgs,
|
|
5789
5798
|
this._initialUiState,
|
|
@@ -5796,7 +5805,7 @@
|
|
|
5796
5805
|
}
|
|
5797
5806
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5798
5807
|
title(e) {
|
|
5799
|
-
return H("title", () => e(new te())), new
|
|
5808
|
+
return H("title", () => e(new te())), new E(
|
|
5800
5809
|
this._renderingMode,
|
|
5801
5810
|
this._initialArgs,
|
|
5802
5811
|
this._initialUiState,
|
|
@@ -5812,7 +5821,7 @@
|
|
|
5812
5821
|
* @deprecated use {@link withArgs}
|
|
5813
5822
|
* */
|
|
5814
5823
|
initialArgs(e) {
|
|
5815
|
-
return new
|
|
5824
|
+
return new E(
|
|
5816
5825
|
this._renderingMode,
|
|
5817
5826
|
e,
|
|
5818
5827
|
this._initialUiState,
|
|
@@ -5825,7 +5834,7 @@
|
|
|
5825
5834
|
}
|
|
5826
5835
|
/** Sets initial args for the block, this value must be specified. */
|
|
5827
5836
|
withArgs(e) {
|
|
5828
|
-
return new
|
|
5837
|
+
return new E(
|
|
5829
5838
|
this._renderingMode,
|
|
5830
5839
|
e,
|
|
5831
5840
|
this._initialUiState,
|
|
@@ -5838,7 +5847,7 @@
|
|
|
5838
5847
|
}
|
|
5839
5848
|
/** Defines type and sets initial value for block UiState. */
|
|
5840
5849
|
withUiState(e) {
|
|
5841
|
-
return new
|
|
5850
|
+
return new E(
|
|
5842
5851
|
this._renderingMode,
|
|
5843
5852
|
this._initialArgs,
|
|
5844
5853
|
e,
|
|
@@ -5854,7 +5863,7 @@
|
|
|
5854
5863
|
* Influences dependency graph construction.
|
|
5855
5864
|
*/
|
|
5856
5865
|
enriches(e) {
|
|
5857
|
-
return H("enrichmentTargets", e), new
|
|
5866
|
+
return H("enrichmentTargets", e), new E(
|
|
5858
5867
|
this._renderingMode,
|
|
5859
5868
|
this._initialArgs,
|
|
5860
5869
|
this._initialUiState,
|
|
@@ -5886,29 +5895,29 @@
|
|
|
5886
5895
|
sdkVersion: Y,
|
|
5887
5896
|
renderingMode: this._renderingMode,
|
|
5888
5897
|
initialArgs: this._initialArgs,
|
|
5889
|
-
inputsValid:
|
|
5890
|
-
sections:
|
|
5898
|
+
inputsValid: de(this._inputsValid),
|
|
5899
|
+
sections: de(this._sections),
|
|
5891
5900
|
outputs: Object.fromEntries(
|
|
5892
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5901
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
|
|
5893
5902
|
)
|
|
5894
5903
|
};
|
|
5895
|
-
return
|
|
5904
|
+
return ht() ? De({ sdkVersion: Y }) : { config: e };
|
|
5896
5905
|
}
|
|
5897
5906
|
}
|
|
5898
|
-
function
|
|
5907
|
+
function Gt(t) {
|
|
5899
5908
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
5900
5909
|
}
|
|
5901
|
-
function
|
|
5902
|
-
return new
|
|
5910
|
+
function Ue(t) {
|
|
5911
|
+
return new ve().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
5903
5912
|
name: "pl7.app/label",
|
|
5904
5913
|
axes: [{}]
|
|
5905
5914
|
// exactly one axis
|
|
5906
5915
|
}, { dontWaitAllData: true });
|
|
5907
5916
|
}
|
|
5908
|
-
function
|
|
5917
|
+
function Be(t, e) {
|
|
5909
5918
|
const n2 = [], r = [];
|
|
5910
5919
|
for (const a of t)
|
|
5911
|
-
|
|
5920
|
+
Gt(a.spec) ? n2.push(a) : r.push(a);
|
|
5912
5921
|
const i = [];
|
|
5913
5922
|
for (const a of r)
|
|
5914
5923
|
for (const l2 of a.spec.axesSpec) {
|
|
@@ -5927,14 +5936,14 @@
|
|
|
5927
5936
|
return u2;
|
|
5928
5937
|
}, o = [];
|
|
5929
5938
|
for (const a of e) {
|
|
5930
|
-
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), d = i.findIndex((
|
|
5939
|
+
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), d = i.findIndex((y) => X(y, u2));
|
|
5931
5940
|
if (d !== -1) {
|
|
5932
|
-
const
|
|
5933
|
-
|
|
5934
|
-
id: s2(a.id,
|
|
5941
|
+
const y = i[d], b = Object.keys(y.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
|
|
5942
|
+
b > f2 ? o.push({
|
|
5943
|
+
id: s2(a.id, y.domain),
|
|
5935
5944
|
spec: {
|
|
5936
5945
|
...a.spec,
|
|
5937
|
-
axesSpec: [{ ...
|
|
5946
|
+
axesSpec: [{ ...y, annotations: l2.annotations }]
|
|
5938
5947
|
},
|
|
5939
5948
|
data: a.data
|
|
5940
5949
|
}) : o.push(a), i.splice(d, 1);
|
|
@@ -5942,8 +5951,8 @@
|
|
|
5942
5951
|
}
|
|
5943
5952
|
return o;
|
|
5944
5953
|
}
|
|
5945
|
-
function
|
|
5946
|
-
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof
|
|
5954
|
+
function We(t) {
|
|
5955
|
+
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof O, r = (i) => typeof i == "object" && "type" in i;
|
|
5947
5956
|
return t.map((i) => i.data).every((i) => {
|
|
5948
5957
|
if (e(i))
|
|
5949
5958
|
return true;
|
|
@@ -5962,7 +5971,7 @@
|
|
|
5962
5971
|
throw Error(`unsupported column data type: ${i}`);
|
|
5963
5972
|
});
|
|
5964
5973
|
}
|
|
5965
|
-
function
|
|
5974
|
+
function Ge(t, e, n2, r, i, s2) {
|
|
5966
5975
|
let o = t;
|
|
5967
5976
|
const a = [];
|
|
5968
5977
|
if (s2) {
|
|
@@ -5983,56 +5992,56 @@
|
|
|
5983
5992
|
sorting: i
|
|
5984
5993
|
};
|
|
5985
5994
|
}
|
|
5986
|
-
function
|
|
5995
|
+
function Kn(t, e, n2, r) {
|
|
5987
5996
|
var u2, d;
|
|
5988
5997
|
Array.isArray(r) && (r = { filters: r });
|
|
5989
|
-
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 = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a =
|
|
5998
|
+
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 = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Ue(t.resultPool);
|
|
5990
5999
|
if (!a) return;
|
|
5991
|
-
const l2 =
|
|
5992
|
-
if (
|
|
6000
|
+
const l2 = Be(e.map(On), a);
|
|
6001
|
+
if (We([...e, ...l2]))
|
|
5993
6002
|
return t.createPTable(
|
|
5994
|
-
|
|
6003
|
+
Ge(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
|
|
5995
6004
|
);
|
|
5996
6005
|
}
|
|
5997
|
-
function
|
|
6006
|
+
function Ht(t) {
|
|
5998
6007
|
var e;
|
|
5999
6008
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
6000
6009
|
}
|
|
6001
|
-
function
|
|
6010
|
+
function qt(t) {
|
|
6002
6011
|
var e;
|
|
6003
6012
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6004
6013
|
}
|
|
6005
|
-
function
|
|
6006
|
-
var
|
|
6007
|
-
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((
|
|
6014
|
+
function jn(t, e, n2, r, i) {
|
|
6015
|
+
var g, x2;
|
|
6016
|
+
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 = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.filter((p2) => !Ht(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
|
|
6008
6017
|
if (!u2) return;
|
|
6009
|
-
const d =
|
|
6018
|
+
const d = Ue(t.resultPool);
|
|
6010
6019
|
if (!d) return;
|
|
6011
|
-
const
|
|
6012
|
-
var A2,
|
|
6020
|
+
const y = new Set((() => {
|
|
6021
|
+
var A2, m2;
|
|
6013
6022
|
if (s2 === "inner") return [];
|
|
6014
|
-
const p2 = (
|
|
6015
|
-
return p2 || l2.filter((
|
|
6023
|
+
const p2 = (m2 = (A2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A2.hiddenColIds) == null ? void 0 : m2.map(ne).filter((v) => v.type === "column").map((v) => v.id);
|
|
6024
|
+
return p2 || l2.filter((v) => qt(v.spec)).map((v) => v.id);
|
|
6016
6025
|
})());
|
|
6017
|
-
|
|
6018
|
-
const
|
|
6026
|
+
y.delete(u2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => y.delete(p2.id));
|
|
6027
|
+
const b = l2.filter((p2) => !y.has(p2.id)), f2 = Be(b.map(On), d), w2 = [
|
|
6019
6028
|
...u2.spec.axesSpec.map((p2) => ({
|
|
6020
6029
|
type: "axis",
|
|
6021
6030
|
id: p$1(p2),
|
|
6022
6031
|
spec: p2
|
|
6023
6032
|
})),
|
|
6024
|
-
...[...l2, ...
|
|
6033
|
+
...[...l2, ...f2].map((p2) => ({
|
|
6025
6034
|
type: "column",
|
|
6026
6035
|
id: p2.id,
|
|
6027
6036
|
spec: p2.spec
|
|
6028
6037
|
}))
|
|
6029
6038
|
];
|
|
6030
|
-
if (!
|
|
6039
|
+
if (!We([...b, ...f2])) return;
|
|
6031
6040
|
const c2 = t.createPTable(
|
|
6032
|
-
|
|
6041
|
+
Ge(l2, f2, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
|
|
6033
6042
|
);
|
|
6034
6043
|
return {
|
|
6035
|
-
tableSpec:
|
|
6044
|
+
tableSpec: w2,
|
|
6036
6045
|
tableHandle: c2
|
|
6037
6046
|
};
|
|
6038
6047
|
}
|
|
@@ -6059,7 +6068,7 @@
|
|
|
6059
6068
|
numbers: z$2.array(z$2.coerce.number()),
|
|
6060
6069
|
handles: z$2.array(ImportFileHandleSchema)
|
|
6061
6070
|
});
|
|
6062
|
-
const platforma =
|
|
6071
|
+
const platforma = E.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
|
|
6063
6072
|
if (ctx.args.numbers.length === 5) {
|
|
6064
6073
|
throw new Error("argsValid: test error");
|
|
6065
6074
|
}
|
|
@@ -6082,7 +6091,7 @@
|
|
|
6082
6091
|
val: v.toString()
|
|
6083
6092
|
};
|
|
6084
6093
|
});
|
|
6085
|
-
return
|
|
6094
|
+
return Kn(
|
|
6086
6095
|
ctx,
|
|
6087
6096
|
[
|
|
6088
6097
|
{
|
|
@@ -6135,7 +6144,7 @@
|
|
|
6135
6144
|
val: v.toString()
|
|
6136
6145
|
};
|
|
6137
6146
|
});
|
|
6138
|
-
return
|
|
6147
|
+
return jn(
|
|
6139
6148
|
ctx,
|
|
6140
6149
|
[
|
|
6141
6150
|
{
|