@milaboratories/milaboratories.ui-examples.model 1.1.66 → 1.1.67
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 +7 -0
- package/dist/bundle.js +315 -307
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
54
54
|
}
|
|
55
55
|
util2.joinValues = joinValues;
|
|
56
|
-
util2.jsonStringifyReplacer = (
|
|
56
|
+
util2.jsonStringifyReplacer = (_2, value) => {
|
|
57
57
|
if (typeof value === "bigint") {
|
|
58
58
|
return value.toString();
|
|
59
59
|
}
|
|
@@ -3955,9 +3955,9 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3959
|
-
var I
|
|
3960
|
-
var D = (n2, e, t) => e in n2 ? I
|
|
3958
|
+
const Oe = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
+
var I = Object.defineProperty;
|
|
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);
|
|
3962
3962
|
z$2.object({
|
|
3963
3963
|
/** Included left border. */
|
|
@@ -4013,7 +4013,7 @@
|
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
|
-
function F
|
|
4016
|
+
function F(n2) {
|
|
4017
4017
|
if (!n2 || typeof n2 != "object")
|
|
4018
4018
|
return false;
|
|
4019
4019
|
const e = n2;
|
|
@@ -4031,7 +4031,7 @@
|
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
4033
|
function bn(n2) {
|
|
4034
|
-
return F
|
|
4034
|
+
return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4035
4035
|
}
|
|
4036
4036
|
function wn(n2) {
|
|
4037
4037
|
switch (n2.type) {
|
|
@@ -4109,7 +4109,7 @@
|
|
|
4109
4109
|
return n2.map(p$1);
|
|
4110
4110
|
}
|
|
4111
4111
|
function In(n2) {
|
|
4112
|
-
return
|
|
4112
|
+
return Oe(p$1(n2));
|
|
4113
4113
|
}
|
|
4114
4114
|
function z$1(n2, e) {
|
|
4115
4115
|
if (n2 === void 0) return e === void 0;
|
|
@@ -4122,9 +4122,9 @@
|
|
|
4122
4122
|
return n2.name === e.name && z$1(n2.domain, e.domain);
|
|
4123
4123
|
}
|
|
4124
4124
|
function Dn(n2, e) {
|
|
4125
|
-
return { ...n2, src: h
|
|
4125
|
+
return { ...n2, src: h(n2.src, e) };
|
|
4126
4126
|
}
|
|
4127
|
-
function h
|
|
4127
|
+
function h(n2, e) {
|
|
4128
4128
|
switch (n2.type) {
|
|
4129
4129
|
case "column":
|
|
4130
4130
|
return {
|
|
@@ -4144,23 +4144,23 @@
|
|
|
4144
4144
|
case "full":
|
|
4145
4145
|
return {
|
|
4146
4146
|
type: n2.type,
|
|
4147
|
-
entries: n2.entries.map((t) => h
|
|
4147
|
+
entries: n2.entries.map((t) => h(t, e))
|
|
4148
4148
|
};
|
|
4149
4149
|
case "outer":
|
|
4150
4150
|
return {
|
|
4151
4151
|
type: "outer",
|
|
4152
|
-
primary: h
|
|
4153
|
-
secondary: n2.secondary.map((t) => h
|
|
4152
|
+
primary: h(n2.primary, e),
|
|
4153
|
+
secondary: n2.secondary.map((t) => h(t, e))
|
|
4154
4154
|
};
|
|
4155
4155
|
default:
|
|
4156
4156
|
w(n2);
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
4159
|
function G(n2) {
|
|
4160
|
-
return
|
|
4160
|
+
return Oe(n2);
|
|
4161
4161
|
}
|
|
4162
4162
|
function x(n2) {
|
|
4163
|
-
return
|
|
4163
|
+
return Oe(p$1(n2));
|
|
4164
4164
|
}
|
|
4165
4165
|
function A(n2, e) {
|
|
4166
4166
|
return JSON.stringify([n2, e]);
|
|
@@ -4328,7 +4328,7 @@
|
|
|
4328
4328
|
if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4329
4329
|
return n2;
|
|
4330
4330
|
}
|
|
4331
|
-
function Kn
|
|
4331
|
+
function Kn(n2, e) {
|
|
4332
4332
|
return n2 === void 0 ? void 0 : {
|
|
4333
4333
|
...n2,
|
|
4334
4334
|
data: e(n2.data)
|
|
@@ -4359,7 +4359,7 @@
|
|
|
4359
4359
|
};
|
|
4360
4360
|
return t(n2), [...e.values()];
|
|
4361
4361
|
}
|
|
4362
|
-
function k(n2, e) {
|
|
4362
|
+
function k$1(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(r, o)))
|
|
4400
|
+
if (!t.some((o) => k$1(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(e.axes[r], t[r]))
|
|
4406
|
+
if (!k$1(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)), Oe(e);
|
|
4435
4435
|
}
|
|
4436
4436
|
z$2.object({
|
|
4437
4437
|
__isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4522,13 +4522,13 @@
|
|
|
4522
4522
|
cause: z$2.lazy(() => n).optional(),
|
|
4523
4523
|
errors: z$2.lazy(() => n.array()).optional()
|
|
4524
4524
|
});
|
|
4525
|
-
var
|
|
4526
|
-
var
|
|
4527
|
-
var
|
|
4525
|
+
var qe = Object.defineProperty;
|
|
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 k = (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
|
-
function
|
|
4531
|
+
function dt() {
|
|
4532
4532
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4533
4533
|
}
|
|
4534
4534
|
function Re(t) {
|
|
@@ -4537,39 +4537,39 @@
|
|
|
4537
4537
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4538
4538
|
throw new Error("Can't get platforma instance.");
|
|
4539
4539
|
}
|
|
4540
|
-
function
|
|
4540
|
+
function pt() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
|
-
function
|
|
4543
|
+
function g() {
|
|
4544
4544
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
4547
4547
|
function H(t, e) {
|
|
4548
|
-
const n2 =
|
|
4548
|
+
const n2 = pt();
|
|
4549
4549
|
if (n2 === void 0) return false;
|
|
4550
4550
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4551
4551
|
return n2.callbackRegistry[t] = e, true;
|
|
4552
4552
|
}
|
|
4553
4553
|
const ce = /* @__PURE__ */ new Map();
|
|
4554
|
-
function
|
|
4555
|
-
t in
|
|
4554
|
+
function ft(t, e) {
|
|
4555
|
+
t in g().callbackRegistry || (g().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
|
-
class
|
|
4560
|
+
class _ {
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
this.handle = e, this.postProcess = n2,
|
|
4562
|
+
k(this, "isResolved", false);
|
|
4563
|
+
k(this, "resolvedValue");
|
|
4564
|
+
this.handle = e, this.postProcess = n2, ft(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
4567
4567
|
}
|
|
4568
4568
|
map(e) {
|
|
4569
|
-
return new
|
|
4569
|
+
return new _(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4570
4570
|
}
|
|
4571
4571
|
mapDefined(e) {
|
|
4572
|
-
return new
|
|
4572
|
+
return new _(this.handle, (n2) => {
|
|
4573
4573
|
const r = this.postProcess(n2);
|
|
4574
4574
|
return r ? e(r) : void 0;
|
|
4575
4575
|
});
|
|
@@ -4581,7 +4581,7 @@
|
|
|
4581
4581
|
function he(t, e) {
|
|
4582
4582
|
return t === void 0 ? void 0 : e(t);
|
|
4583
4583
|
}
|
|
4584
|
-
class
|
|
4584
|
+
class E {
|
|
4585
4585
|
constructor(e, n2) {
|
|
4586
4586
|
this.handle = e, this.resolvePath = n2;
|
|
4587
4587
|
}
|
|
@@ -4621,46 +4621,46 @@
|
|
|
4621
4621
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4622
4622
|
];
|
|
4623
4623
|
return he(
|
|
4624
|
-
|
|
4625
|
-
(i) => new
|
|
4624
|
+
g().resolveWithCommon(this.handle, e, ...n2),
|
|
4625
|
+
(i) => new E(i, r)
|
|
4626
4626
|
);
|
|
4627
4627
|
}
|
|
4628
4628
|
get resourceType() {
|
|
4629
|
-
return
|
|
4629
|
+
return g().getResourceType(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getInputsLocked() {
|
|
4632
|
-
return
|
|
4632
|
+
return g().getInputsLocked(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getOutputsLocked() {
|
|
4635
|
-
return
|
|
4635
|
+
return g().getOutputsLocked(this.handle);
|
|
4636
4636
|
}
|
|
4637
4637
|
getIsReadyOrError() {
|
|
4638
|
-
return
|
|
4638
|
+
return g().getIsReadyOrError(this.handle);
|
|
4639
4639
|
}
|
|
4640
4640
|
getIsFinal() {
|
|
4641
|
-
return
|
|
4641
|
+
return g().getIsFinal(this.handle);
|
|
4642
4642
|
}
|
|
4643
4643
|
getError() {
|
|
4644
4644
|
const e = [...this.resolvePath, "error"];
|
|
4645
4645
|
return he(
|
|
4646
|
-
|
|
4647
|
-
(n2) => new
|
|
4646
|
+
g().getError(this.handle),
|
|
4647
|
+
(n2) => new E(n2, e)
|
|
4648
4648
|
);
|
|
4649
4649
|
}
|
|
4650
4650
|
listInputFields() {
|
|
4651
|
-
return
|
|
4651
|
+
return g().listInputFields(this.handle);
|
|
4652
4652
|
}
|
|
4653
4653
|
listOutputFields() {
|
|
4654
|
-
return
|
|
4654
|
+
return g().listOutputFields(this.handle);
|
|
4655
4655
|
}
|
|
4656
4656
|
listDynamicFields() {
|
|
4657
|
-
return
|
|
4657
|
+
return g().listDynamicFields(this.handle);
|
|
4658
4658
|
}
|
|
4659
4659
|
getKeyValueBase64(e) {
|
|
4660
|
-
return
|
|
4660
|
+
return g().getKeyValueBase64(this.handle, e);
|
|
4661
4661
|
}
|
|
4662
4662
|
getKeyValueAsString(e) {
|
|
4663
|
-
return
|
|
4663
|
+
return g().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 g().getDataBase64(this.handle);
|
|
4672
4672
|
}
|
|
4673
4673
|
getDataAsString() {
|
|
4674
|
-
return
|
|
4674
|
+
return g().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 = g().parsePObjectCollection(
|
|
4696
4696
|
this.handle,
|
|
4697
4697
|
e,
|
|
4698
4698
|
n2,
|
|
@@ -4702,19 +4702,19 @@
|
|
|
4702
4702
|
const i = {};
|
|
4703
4703
|
for (const [s2, o] of Object.entries(r)) {
|
|
4704
4704
|
const a = [...this.resolvePath, s2];
|
|
4705
|
-
i[s2] = Kn
|
|
4705
|
+
i[s2] = Kn(o, (l2) => new E(l2, a));
|
|
4706
4706
|
}
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
4709
4709
|
getFileContentAsBase64(e) {
|
|
4710
|
-
return new
|
|
4710
|
+
return new _(g().getBlobContentAsBase64(this.handle, e));
|
|
4711
4711
|
}
|
|
4712
4712
|
getFileContentAsString(e) {
|
|
4713
|
-
return new
|
|
4713
|
+
return new _(g().getBlobContentAsString(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getFileContentAsJson(e) {
|
|
4716
|
-
return new
|
|
4717
|
-
|
|
4716
|
+
return new _(
|
|
4717
|
+
g().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 _(g().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 _(g().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 _(g().extractArchiveAndGetURL(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getImportProgress() {
|
|
4763
|
-
return new
|
|
4763
|
+
return new _(g().getImportProgress(this.handle));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLastLogs(e) {
|
|
4766
|
-
return new
|
|
4766
|
+
return new _(g().getLastLogs(this.handle, e));
|
|
4767
4767
|
}
|
|
4768
4768
|
getProgressLog(e) {
|
|
4769
|
-
return new
|
|
4769
|
+
return new _(g().getProgressLog(this.handle, e));
|
|
4770
4770
|
}
|
|
4771
4771
|
getProgressLogWithInfo(e) {
|
|
4772
|
-
return new
|
|
4772
|
+
return new _(g().getProgressLogWithInfo(this.handle, e));
|
|
4773
4773
|
}
|
|
4774
4774
|
getLogHandle() {
|
|
4775
|
-
return new
|
|
4775
|
+
return new _(g().getLogHandle(this.handle));
|
|
4776
4776
|
}
|
|
4777
4777
|
allFieldsResolved(e = "Input") {
|
|
4778
4778
|
switch (e) {
|
|
@@ -4798,90 +4798,90 @@
|
|
|
4798
4798
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4799
4799
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4800
4800
|
);
|
|
4801
|
-
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4801
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, c2]) => o(u2, c2));
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
|
-
const De = "staging",
|
|
4805
|
-
const
|
|
4804
|
+
const De = "staging", Fe = "main";
|
|
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(),
|
|
4808
4808
|
id: z$2.string().optional(),
|
|
4809
4809
|
label: z$2.string()
|
|
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
|
|
4813
|
+
var P, R;
|
|
4814
4814
|
const w2 = e(f2);
|
|
4815
|
-
let
|
|
4816
|
-
"spec" in w2 && typeof w2.spec == "object" ? (
|
|
4817
|
-
const p2 = (
|
|
4818
|
-
...
|
|
4819
|
-
...
|
|
4820
|
-
...
|
|
4815
|
+
let d, h2, b;
|
|
4816
|
+
"spec" in w2 && typeof w2.spec == "object" ? (d = w2.spec, h2 = w2.prefixTrace, b = w2.suffixTrace) : d = w2;
|
|
4817
|
+
const p2 = (P = d.annotations) == null ? void 0 : P[mt], I2 = (R = d.annotations) == null ? void 0 : R[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], y = [
|
|
4818
|
+
...h2 ?? [],
|
|
4819
|
+
...x2,
|
|
4820
|
+
...b ?? []
|
|
4821
4821
|
];
|
|
4822
4822
|
if (p2 !== void 0) {
|
|
4823
|
-
const
|
|
4824
|
-
n2.addLabelAsSuffix ?
|
|
4825
|
-
}
|
|
4826
|
-
const
|
|
4827
|
-
for (let
|
|
4828
|
-
const { type: W } =
|
|
4829
|
-
|
|
4830
|
-
const
|
|
4831
|
-
s2.set(
|
|
4832
|
-
|
|
4823
|
+
const O = { label: p2, type: At, importance: -2 };
|
|
4824
|
+
n2.addLabelAsSuffix ? y.push(O) : y.splice(0, 0, O);
|
|
4825
|
+
}
|
|
4826
|
+
const A2 = [], T = /* @__PURE__ */ new Map();
|
|
4827
|
+
for (let O = y.length - 1; O >= 0; --O) {
|
|
4828
|
+
const { type: W } = y[O], V = y[O].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
|
|
4829
|
+
T.set(W, $);
|
|
4830
|
+
const F2 = `${W}@${$}`;
|
|
4831
|
+
s2.set(F2, (s2.get(F2) ?? 0) + 1), r.set(
|
|
4832
|
+
F2,
|
|
4833
4833
|
Math.max(
|
|
4834
|
-
r.get(
|
|
4835
|
-
V - (
|
|
4834
|
+
r.get(F2) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
+
V - (y.length - O) * wt
|
|
4836
4836
|
)
|
|
4837
|
-
),
|
|
4837
|
+
), A2.push({ ...y[O], fullType: F2, occurrenceIndex: $ });
|
|
4838
4838
|
}
|
|
4839
|
-
return
|
|
4839
|
+
return A2.reverse(), {
|
|
4840
4840
|
value: f2,
|
|
4841
|
-
spec:
|
|
4841
|
+
spec: d,
|
|
4842
4842
|
label: p2,
|
|
4843
|
-
fullTrace:
|
|
4843
|
+
fullTrace: A2
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
4846
4846
|
u2.sort(([, f2], [, w2]) => w2 - f2);
|
|
4847
4847
|
for (const [f2] of u2)
|
|
4848
4848
|
f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
|
|
4849
|
-
const
|
|
4850
|
-
const
|
|
4851
|
-
for (let
|
|
4852
|
-
const
|
|
4849
|
+
const c2 = (f2, w2 = false) => {
|
|
4850
|
+
const d = [];
|
|
4851
|
+
for (let h2 = 0; h2 < o.length; h2++) {
|
|
4852
|
+
const b = o[h2], p2 = b.fullTrace.filter((y) => f2.has(y.fullType) || i && i.has(y.type));
|
|
4853
4853
|
if (p2.length === 0)
|
|
4854
4854
|
if (w2)
|
|
4855
|
-
|
|
4855
|
+
d.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
|
-
value:
|
|
4857
|
+
value: b.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const
|
|
4861
|
-
|
|
4862
|
-
label:
|
|
4863
|
-
value:
|
|
4860
|
+
const I2 = p2.map((y) => y.label), x2 = n2.separator ?? " / ";
|
|
4861
|
+
d.push({
|
|
4862
|
+
label: I2.join(x2),
|
|
4863
|
+
value: b.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
4866
|
-
return
|
|
4866
|
+
return d;
|
|
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
|
-
return
|
|
4870
|
+
return c2(new Set(Pe), true);
|
|
4871
4871
|
}
|
|
4872
|
-
let
|
|
4873
|
-
for (;
|
|
4872
|
+
let m2 = 0, v = -1;
|
|
4873
|
+
for (; m2 < a.length; ) {
|
|
4874
4874
|
const f2 = /* @__PURE__ */ new Set();
|
|
4875
|
-
n2.includeNativeLabel && f2.add(
|
|
4876
|
-
for (let
|
|
4877
|
-
|
|
4878
|
-
const w2 =
|
|
4879
|
-
if (w2 !== void 0 && new Set(w2.map((
|
|
4880
|
-
|
|
4875
|
+
n2.includeNativeLabel && f2.add(Pe);
|
|
4876
|
+
for (let d = 0; d < m2; ++d) f2.add(a[d]);
|
|
4877
|
+
v >= 0 && f2.add(a[v]);
|
|
4878
|
+
const w2 = c2(f2);
|
|
4879
|
+
if (w2 !== void 0 && new Set(w2.map((d) => d.label)).size === t.length) return w2;
|
|
4880
|
+
v++, v >= a.length && (m2++, v = m2);
|
|
4881
4881
|
}
|
|
4882
|
-
return
|
|
4882
|
+
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
4884
|
-
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned",
|
|
4884
|
+
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", je = Z + "Partitioned/", ae = je + "JsonPartitioned", z = je + "BinaryPartitioned";
|
|
4885
4885
|
const me = (t) => {
|
|
4886
4886
|
if (t.endsWith(".index"))
|
|
4887
4887
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4889,7 +4889,7 @@
|
|
|
4889
4889
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4890
4890
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4891
4891
|
};
|
|
4892
|
-
function
|
|
4892
|
+
function xt(t) {
|
|
4893
4893
|
if (!t) return;
|
|
4894
4894
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4895
4895
|
let i = 0;
|
|
@@ -4935,7 +4935,7 @@
|
|
|
4935
4935
|
}
|
|
4936
4936
|
return { data: r, keyLength: i };
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4938
|
+
function Ct(t) {
|
|
4939
4939
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4940
4940
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4941
4941
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4954,11 +4954,11 @@
|
|
|
4954
4954
|
}
|
|
4955
4955
|
return r.map((i) => Array.from(i.values()));
|
|
4956
4956
|
}
|
|
4957
|
-
function
|
|
4957
|
+
function Pt(t) {
|
|
4958
4958
|
if (t === void 0) return;
|
|
4959
|
-
if (F
|
|
4960
|
-
return
|
|
4961
|
-
const e =
|
|
4959
|
+
if (F(t))
|
|
4960
|
+
return Ct(t);
|
|
4961
|
+
const e = xt(t);
|
|
4962
4962
|
if (!e) return;
|
|
4963
4963
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4964
4964
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -5069,15 +5069,15 @@
|
|
|
5069
5069
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
function
|
|
5072
|
+
function St(t) {
|
|
5073
5073
|
if (t !== void 0) {
|
|
5074
|
-
if (F
|
|
5074
|
+
if (F(t)) return t;
|
|
5075
5075
|
if (hn(t)) return wn(t);
|
|
5076
|
-
if (t instanceof
|
|
5076
|
+
if (t instanceof E) return ye(t);
|
|
5077
5077
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
function
|
|
5080
|
+
function _t(t, e) {
|
|
5081
5081
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5082
5082
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5083
5083
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5137,7 +5137,13 @@
|
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
|
|
5140
|
+
function It(t) {
|
|
5141
|
+
if (!Array.isArray(t)) return false;
|
|
5142
|
+
if (t.length === 0) return true;
|
|
5143
|
+
const e = t[0];
|
|
5144
|
+
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5145
|
+
}
|
|
5146
|
+
class Tt {
|
|
5141
5147
|
constructor(e) {
|
|
5142
5148
|
this.columns = e;
|
|
5143
5149
|
}
|
|
@@ -5146,7 +5152,7 @@
|
|
|
5146
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5147
5153
|
}
|
|
5148
5154
|
}
|
|
5149
|
-
function
|
|
5155
|
+
function Lt(t) {
|
|
5150
5156
|
if (t)
|
|
5151
5157
|
return t.map((e) => ({
|
|
5152
5158
|
type: `split:${In(e.axisId)}`,
|
|
@@ -5155,21 +5161,21 @@
|
|
|
5155
5161
|
// High importance for split filters in labels
|
|
5156
5162
|
}));
|
|
5157
5163
|
}
|
|
5158
|
-
function
|
|
5164
|
+
function Et(t) {
|
|
5159
5165
|
if (t)
|
|
5160
5166
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5161
5167
|
}
|
|
5162
|
-
function
|
|
5168
|
+
function Ot(t, e) {
|
|
5163
5169
|
if (!e || e.length === 0) return t;
|
|
5164
5170
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5165
|
-
return
|
|
5171
|
+
return Oe({ id: t, axisFilters: n2 });
|
|
5166
5172
|
}
|
|
5167
|
-
function
|
|
5173
|
+
function Se(t) {
|
|
5168
5174
|
if (!t || typeof t != "object") return false;
|
|
5169
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);
|
|
5170
5176
|
return !!e.domainAnchor || n2 || r;
|
|
5171
5177
|
}
|
|
5172
|
-
function
|
|
5178
|
+
function kt(t) {
|
|
5173
5179
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5174
5180
|
return [];
|
|
5175
5181
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5177,11 +5183,11 @@
|
|
|
5177
5183
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5178
5184
|
return e.sort((n2, r) => n2 - r), e;
|
|
5179
5185
|
}
|
|
5180
|
-
class
|
|
5186
|
+
class le {
|
|
5181
5187
|
constructor() {
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5188
|
+
k(this, "defaultProviderStore", []);
|
|
5189
|
+
k(this, "providers", [new Tt(this.defaultProviderStore)]);
|
|
5190
|
+
k(this, "axisLabelProviders", []);
|
|
5185
5191
|
}
|
|
5186
5192
|
addColumnProvider(e) {
|
|
5187
5193
|
return this.providers.push(e), this;
|
|
@@ -5209,124 +5215,126 @@
|
|
|
5209
5215
|
};
|
|
5210
5216
|
let u2 = () => false;
|
|
5211
5217
|
if (a) {
|
|
5212
|
-
const
|
|
5213
|
-
if (
|
|
5218
|
+
const d = (Array.isArray(a) ? a : [a]).map((h2) => {
|
|
5219
|
+
if (Se(h2)) {
|
|
5214
5220
|
if (!r)
|
|
5215
5221
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5216
|
-
return _n(Bn(r.anchors,
|
|
5222
|
+
return _n(Bn(r.anchors, h2, n2));
|
|
5217
5223
|
} else
|
|
5218
|
-
return _n(
|
|
5224
|
+
return _n(h2);
|
|
5219
5225
|
});
|
|
5220
|
-
u2 = (
|
|
5226
|
+
u2 = (h2) => d.some((b) => b(h2));
|
|
5221
5227
|
}
|
|
5222
|
-
const
|
|
5223
|
-
for (const
|
|
5224
|
-
const
|
|
5225
|
-
let
|
|
5226
|
-
if (
|
|
5228
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], m2 = [], v = /* @__PURE__ */ new Set();
|
|
5229
|
+
for (const d of c2) {
|
|
5230
|
+
const h2 = Se(d);
|
|
5231
|
+
let b;
|
|
5232
|
+
if (h2) {
|
|
5227
5233
|
if (!r)
|
|
5228
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5229
|
-
|
|
5235
|
+
b = Bn(r.anchors, d, n2);
|
|
5230
5236
|
} else
|
|
5231
|
-
|
|
5232
|
-
const p2 = /* @__PURE__ */ new Set(),
|
|
5233
|
-
for (const
|
|
5234
|
-
const
|
|
5235
|
-
for (const
|
|
5236
|
-
if (u2(
|
|
5237
|
-
if (p2.has(
|
|
5238
|
-
throw new Error(`Duplicate column id ${
|
|
5239
|
-
const R = Mn(
|
|
5240
|
-
|
|
5237
|
+
b = d;
|
|
5238
|
+
const p2 = /* @__PURE__ */ new Set(), I2 = [];
|
|
5239
|
+
for (const A2 of this.providers) {
|
|
5240
|
+
const T = A2.selectColumns(b);
|
|
5241
|
+
for (const P of T) {
|
|
5242
|
+
if (u2(P.spec)) continue;
|
|
5243
|
+
if (p2.has(P.id))
|
|
5244
|
+
throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
|
|
5245
|
+
const R = Mn(P.spec);
|
|
5246
|
+
v.has(R) || (p2.add(P.id), v.add(R), I2.push(P));
|
|
5241
5247
|
}
|
|
5242
5248
|
}
|
|
5243
|
-
if (
|
|
5244
|
-
const
|
|
5245
|
-
for (const
|
|
5246
|
-
if (!f(
|
|
5247
|
-
const
|
|
5248
|
-
if (
|
|
5249
|
-
|
|
5250
|
-
|
|
5249
|
+
if (I2.length === 0) continue;
|
|
5250
|
+
const x2 = kt(d), y = x2.length > 0;
|
|
5251
|
+
for (const A2 of I2) {
|
|
5252
|
+
if (!f(A2.spec)) continue;
|
|
5253
|
+
const T = A2.spec;
|
|
5254
|
+
if (y) {
|
|
5255
|
+
if (It(A2.data))
|
|
5256
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
|
|
5257
|
+
const P = St(A2.data);
|
|
5258
|
+
if (!P) {
|
|
5251
5259
|
if (s2) continue;
|
|
5252
5260
|
return;
|
|
5253
5261
|
}
|
|
5254
|
-
if (!bn(
|
|
5255
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5256
|
-
const R =
|
|
5257
|
-
if (
|
|
5258
|
-
throw new Error(`Not enough partition keys (${
|
|
5259
|
-
const W =
|
|
5260
|
-
if (G2 >=
|
|
5261
|
-
if (V.push([...
|
|
5262
|
+
if (!bn(P))
|
|
5263
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
|
|
5264
|
+
const R = Pt(P), O = x2[x2.length - 1];
|
|
5265
|
+
if (O >= P.partitionKeyLength)
|
|
5266
|
+
throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${O}) in column ${T.name}`);
|
|
5267
|
+
const W = x2.map((S) => this.findLabels(p$1(T.axesSpec[S]))), V = [], $ = (S, G2) => {
|
|
5268
|
+
if (G2 >= x2.length) {
|
|
5269
|
+
if (V.push([...S]), V.length > 1e4)
|
|
5262
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5263
5271
|
return;
|
|
5264
5272
|
}
|
|
5265
|
-
const
|
|
5266
|
-
if (
|
|
5267
|
-
throw new Error(`Axis index ${
|
|
5268
|
-
const
|
|
5269
|
-
if (!
|
|
5273
|
+
const j = x2[G2];
|
|
5274
|
+
if (j >= R.length)
|
|
5275
|
+
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A2.id}`);
|
|
5276
|
+
const N2 = R[j];
|
|
5277
|
+
if (!N2 || N2.length === 0) {
|
|
5270
5278
|
V.length = 0;
|
|
5271
5279
|
return;
|
|
5272
5280
|
}
|
|
5273
|
-
for (const ee2 of
|
|
5274
|
-
|
|
5281
|
+
for (const ee2 of N2)
|
|
5282
|
+
S.push(ee2), $(S, G2 + 1), S.pop();
|
|
5275
5283
|
};
|
|
5276
|
-
if (
|
|
5284
|
+
if ($([], 0), V.length === 0)
|
|
5277
5285
|
continue;
|
|
5278
|
-
const
|
|
5279
|
-
for (let
|
|
5280
|
-
|
|
5281
|
-
const
|
|
5282
|
-
for (const
|
|
5283
|
-
const G2 =
|
|
5284
|
-
const ee2 =
|
|
5285
|
-
return { axisIdx: ee2, axisId:
|
|
5286
|
+
const F2 = [...T.axesSpec], Be = x2.map((S) => S);
|
|
5287
|
+
for (let S = x2.length - 1; S >= 0; S--)
|
|
5288
|
+
F2.splice(x2[S], 1);
|
|
5289
|
+
const We = { ...T, axesSpec: F2 };
|
|
5290
|
+
for (const S of V) {
|
|
5291
|
+
const G2 = S.map((j, N2) => {
|
|
5292
|
+
const ee2 = Be[N2], Ge = p$1(T.axesSpec[ee2]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
|
|
5293
|
+
return { axisIdx: ee2, axisId: Ge, value: j, label: He };
|
|
5286
5294
|
});
|
|
5287
|
-
|
|
5295
|
+
m2.push({
|
|
5288
5296
|
type: "split",
|
|
5289
|
-
originalColumn:
|
|
5290
|
-
spec:
|
|
5291
|
-
adjustedSpec:
|
|
5292
|
-
dataEntries:
|
|
5297
|
+
originalColumn: A2,
|
|
5298
|
+
spec: T,
|
|
5299
|
+
adjustedSpec: We,
|
|
5300
|
+
dataEntries: P,
|
|
5293
5301
|
axisFilters: G2
|
|
5294
5302
|
});
|
|
5295
5303
|
}
|
|
5296
5304
|
} else
|
|
5297
|
-
|
|
5305
|
+
m2.push({
|
|
5298
5306
|
type: "direct",
|
|
5299
|
-
originalColumn:
|
|
5300
|
-
spec:
|
|
5301
|
-
adjustedSpec:
|
|
5307
|
+
originalColumn: A2,
|
|
5308
|
+
spec: T,
|
|
5309
|
+
adjustedSpec: T
|
|
5302
5310
|
});
|
|
5303
5311
|
}
|
|
5304
5312
|
}
|
|
5305
|
-
if (
|
|
5313
|
+
if (m2.length === 0) return [];
|
|
5306
5314
|
const f$1 = Ve(
|
|
5307
|
-
|
|
5308
|
-
(
|
|
5309
|
-
spec:
|
|
5310
|
-
suffixTrace:
|
|
5315
|
+
m2,
|
|
5316
|
+
(d) => ({
|
|
5317
|
+
spec: d.spec,
|
|
5318
|
+
suffixTrace: d.type === "split" ? Lt(d.axisFilters) : void 0
|
|
5311
5319
|
}),
|
|
5312
5320
|
l2
|
|
5313
5321
|
), w2 = [];
|
|
5314
|
-
for (const { value:
|
|
5315
|
-
const { originalColumn:
|
|
5316
|
-
let
|
|
5317
|
-
r ?
|
|
5318
|
-
let
|
|
5319
|
-
o && (
|
|
5320
|
-
...
|
|
5322
|
+
for (const { value: d, label: h2 } of f$1) {
|
|
5323
|
+
const { originalColumn: b, spec: p2 } = d, I2 = d.type === "split" ? d.axisFilters : void 0, x2 = Et(I2);
|
|
5324
|
+
let y;
|
|
5325
|
+
r ? y = r.deriveS(p2, x2) : y = Ot(b.id, x2);
|
|
5326
|
+
let A2 = { ...d.adjustedSpec };
|
|
5327
|
+
o && (A2 = {
|
|
5328
|
+
...A2,
|
|
5321
5329
|
annotations: {
|
|
5322
|
-
...
|
|
5323
|
-
"pl7.app/label":
|
|
5330
|
+
...A2.annotations ?? {},
|
|
5331
|
+
"pl7.app/label": h2
|
|
5324
5332
|
}
|
|
5325
5333
|
}), w2.push({
|
|
5326
|
-
id:
|
|
5327
|
-
spec:
|
|
5328
|
-
data: () =>
|
|
5329
|
-
label:
|
|
5334
|
+
id: y,
|
|
5335
|
+
spec: A2,
|
|
5336
|
+
data: () => d.type === "split" ? Pn(_t(d.dataEntries, x2)) : d.originalColumn.data,
|
|
5337
|
+
label: h2
|
|
5330
5338
|
});
|
|
5331
5339
|
}
|
|
5332
5340
|
return w2;
|
|
@@ -5354,19 +5362,19 @@
|
|
|
5354
5362
|
return i;
|
|
5355
5363
|
}
|
|
5356
5364
|
}
|
|
5357
|
-
function
|
|
5365
|
+
function de(t, e) {
|
|
5358
5366
|
if (t === void 0) return e === void 0;
|
|
5359
5367
|
if (e === void 0) return true;
|
|
5360
5368
|
for (const n2 in e)
|
|
5361
5369
|
if (t[n2] !== e[n2]) return false;
|
|
5362
5370
|
return true;
|
|
5363
5371
|
}
|
|
5364
|
-
function
|
|
5365
|
-
return Kn
|
|
5372
|
+
function _e(t) {
|
|
5373
|
+
return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
|
|
5366
5374
|
}
|
|
5367
|
-
class
|
|
5375
|
+
class Rt {
|
|
5368
5376
|
constructor() {
|
|
5369
|
-
|
|
5377
|
+
k(this, "ctx", g());
|
|
5370
5378
|
}
|
|
5371
5379
|
/**
|
|
5372
5380
|
* @deprecated use getOptions()
|
|
@@ -5409,7 +5417,7 @@
|
|
|
5409
5417
|
getAnchoredPColumns(e, n2, r) {
|
|
5410
5418
|
const i = this.resolveAnchorCtx(e);
|
|
5411
5419
|
if (i)
|
|
5412
|
-
return new
|
|
5420
|
+
return new le().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5413
5421
|
...r,
|
|
5414
5422
|
anchorCtx: i
|
|
5415
5423
|
});
|
|
@@ -5446,7 +5454,7 @@
|
|
|
5446
5454
|
getCanonicalOptions(e, n2, r) {
|
|
5447
5455
|
const i = this.resolveAnchorCtx(e);
|
|
5448
5456
|
if (!i) return;
|
|
5449
|
-
const s2 = new
|
|
5457
|
+
const s2 = new le().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5450
5458
|
...r,
|
|
5451
5459
|
anchorCtx: i
|
|
5452
5460
|
});
|
|
@@ -5470,7 +5478,7 @@
|
|
|
5470
5478
|
ref: n2.ref,
|
|
5471
5479
|
obj: {
|
|
5472
5480
|
...n2.obj,
|
|
5473
|
-
data: new
|
|
5481
|
+
data: new E(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5474
5482
|
}
|
|
5475
5483
|
}))
|
|
5476
5484
|
};
|
|
@@ -5491,7 +5499,7 @@
|
|
|
5491
5499
|
...n2.obj,
|
|
5492
5500
|
data: Gn(
|
|
5493
5501
|
n2.obj.data,
|
|
5494
|
-
(r) => new
|
|
5502
|
+
(r) => new E(r, [n2.ref.blockId, n2.ref.name])
|
|
5495
5503
|
)
|
|
5496
5504
|
}
|
|
5497
5505
|
}))
|
|
@@ -5518,9 +5526,9 @@
|
|
|
5518
5526
|
)) == null ? void 0 : r.obj;
|
|
5519
5527
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5520
5528
|
if (n2)
|
|
5521
|
-
return Kn
|
|
5529
|
+
return Kn(
|
|
5522
5530
|
n2,
|
|
5523
|
-
(i) => new
|
|
5531
|
+
(i) => new E(i, [e.blockId, e.name])
|
|
5524
5532
|
);
|
|
5525
5533
|
}
|
|
5526
5534
|
/**
|
|
@@ -5563,10 +5571,10 @@
|
|
|
5563
5571
|
if (!f(r.obj.spec))
|
|
5564
5572
|
continue;
|
|
5565
5573
|
const i = r.obj.spec;
|
|
5566
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5574
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && de(e.domain, i.domain)) {
|
|
5567
5575
|
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5568
5576
|
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5569
|
-
if (o.name !== a.name || o.type !== a.type || !
|
|
5577
|
+
if (o.name !== a.name || o.type !== a.type || !de(o.domain, a.domain))
|
|
5570
5578
|
continue e;
|
|
5571
5579
|
}
|
|
5572
5580
|
n2.push(r.obj);
|
|
@@ -5583,7 +5591,7 @@
|
|
|
5583
5591
|
for (const r of n2.entries) {
|
|
5584
5592
|
if (!Z$1(r.obj)) continue;
|
|
5585
5593
|
const i = r.obj.spec;
|
|
5586
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5594
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && de(e.domain, i.axesSpec[0].domain)) {
|
|
5587
5595
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5588
5596
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5589
5597
|
return Object.fromEntries(
|
|
@@ -5608,7 +5616,7 @@
|
|
|
5608
5616
|
let a = null;
|
|
5609
5617
|
const l2 = this;
|
|
5610
5618
|
return {
|
|
5611
|
-
id:
|
|
5619
|
+
id: Oe(i),
|
|
5612
5620
|
spec: o,
|
|
5613
5621
|
get data() {
|
|
5614
5622
|
var u2;
|
|
@@ -5635,12 +5643,12 @@
|
|
|
5635
5643
|
}
|
|
5636
5644
|
class te {
|
|
5637
5645
|
constructor() {
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
this.ctx =
|
|
5646
|
+
k(this, "ctx");
|
|
5647
|
+
k(this, "args");
|
|
5648
|
+
k(this, "uiState");
|
|
5649
|
+
k(this, "_activeArgsCache");
|
|
5650
|
+
k(this, "resultPool", new Rt());
|
|
5651
|
+
this.ctx = g(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5644
5652
|
}
|
|
5645
5653
|
/**
|
|
5646
5654
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5658,14 +5666,14 @@
|
|
|
5658
5666
|
getNamedAccessor(e) {
|
|
5659
5667
|
return he(
|
|
5660
5668
|
this.ctx.getAccessorHandleByName(e),
|
|
5661
|
-
(n2) => new
|
|
5669
|
+
(n2) => new E(n2, [e])
|
|
5662
5670
|
);
|
|
5663
5671
|
}
|
|
5664
5672
|
get prerun() {
|
|
5665
5673
|
return this.getNamedAccessor(De);
|
|
5666
5674
|
}
|
|
5667
5675
|
get outputs() {
|
|
5668
|
-
return this.getNamedAccessor(
|
|
5676
|
+
return this.getNamedAccessor(Fe);
|
|
5669
5677
|
}
|
|
5670
5678
|
/**
|
|
5671
5679
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5677,13 +5685,13 @@
|
|
|
5677
5685
|
}
|
|
5678
5686
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5679
5687
|
var i;
|
|
5680
|
-
const n2 = e.some((s2) => !(s2.data instanceof
|
|
5688
|
+
const n2 = e.some((s2) => !(s2.data instanceof E) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5681
5689
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5682
5690
|
}
|
|
5683
5691
|
// TODO remove all non-PColumn fields
|
|
5684
5692
|
createPFrame(e) {
|
|
5685
5693
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5686
|
-
e.map((n2) =>
|
|
5694
|
+
e.map((n2) => _e(n2))
|
|
5687
5695
|
);
|
|
5688
5696
|
}
|
|
5689
5697
|
createPTable(e) {
|
|
@@ -5696,7 +5704,7 @@
|
|
|
5696
5704
|
filters: e.filters ?? [],
|
|
5697
5705
|
sorting: e.sorting ?? []
|
|
5698
5706
|
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
|
|
5699
|
-
Dn(n2, (r) =>
|
|
5707
|
+
Dn(n2, (r) => _e(r))
|
|
5700
5708
|
);
|
|
5701
5709
|
}
|
|
5702
5710
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5716,20 +5724,20 @@
|
|
|
5716
5724
|
this.ctx.logError(e);
|
|
5717
5725
|
}
|
|
5718
5726
|
}
|
|
5719
|
-
const Y = "1.33.
|
|
5720
|
-
function
|
|
5727
|
+
const Y = "1.33.10";
|
|
5728
|
+
function Dt(t) {
|
|
5721
5729
|
return t.__renderLambda === true;
|
|
5722
5730
|
}
|
|
5723
|
-
function
|
|
5731
|
+
function pe(t) {
|
|
5724
5732
|
if (t !== void 0)
|
|
5725
|
-
return
|
|
5733
|
+
return Dt(t) ? t.handle : t;
|
|
5726
5734
|
}
|
|
5727
|
-
class
|
|
5735
|
+
class L {
|
|
5728
5736
|
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5729
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;
|
|
5730
5738
|
}
|
|
5731
5739
|
static create(e = "Heavy") {
|
|
5732
|
-
return new
|
|
5740
|
+
return new L(
|
|
5733
5741
|
e,
|
|
5734
5742
|
void 0,
|
|
5735
5743
|
{},
|
|
@@ -5743,7 +5751,7 @@
|
|
|
5743
5751
|
output(e, n2, r = {}) {
|
|
5744
5752
|
if (typeof n2 == "function") {
|
|
5745
5753
|
const i = `output#${e}`;
|
|
5746
|
-
return H(i, () => n2(new te())), new
|
|
5754
|
+
return H(i, () => n2(new te())), new L(
|
|
5747
5755
|
this._renderingMode,
|
|
5748
5756
|
this._initialArgs,
|
|
5749
5757
|
this._initialUiState,
|
|
@@ -5761,7 +5769,7 @@
|
|
|
5761
5769
|
this._enrichmentTargets
|
|
5762
5770
|
);
|
|
5763
5771
|
} else
|
|
5764
|
-
return new
|
|
5772
|
+
return new L(
|
|
5765
5773
|
this._renderingMode,
|
|
5766
5774
|
this._initialArgs,
|
|
5767
5775
|
this._initialUiState,
|
|
@@ -5780,7 +5788,7 @@
|
|
|
5780
5788
|
return this.output(e, n2, { retentive: true });
|
|
5781
5789
|
}
|
|
5782
5790
|
argsValid(e) {
|
|
5783
|
-
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new
|
|
5791
|
+
return typeof e == "function" ? (H("inputsValid", () => e(new te())), new L(
|
|
5784
5792
|
this._renderingMode,
|
|
5785
5793
|
this._initialArgs,
|
|
5786
5794
|
this._initialUiState,
|
|
@@ -5792,7 +5800,7 @@
|
|
|
5792
5800
|
this._sections,
|
|
5793
5801
|
this._title,
|
|
5794
5802
|
this._enrichmentTargets
|
|
5795
|
-
)) : new
|
|
5803
|
+
)) : new L(
|
|
5796
5804
|
this._renderingMode,
|
|
5797
5805
|
this._initialArgs,
|
|
5798
5806
|
this._initialUiState,
|
|
@@ -5804,7 +5812,7 @@
|
|
|
5804
5812
|
);
|
|
5805
5813
|
}
|
|
5806
5814
|
sections(e) {
|
|
5807
|
-
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 L(
|
|
5808
5816
|
this._renderingMode,
|
|
5809
5817
|
this._initialArgs,
|
|
5810
5818
|
this._initialUiState,
|
|
@@ -5813,7 +5821,7 @@
|
|
|
5813
5821
|
{ __renderLambda: true, handle: "sections" },
|
|
5814
5822
|
this._title,
|
|
5815
5823
|
this._enrichmentTargets
|
|
5816
|
-
)) : new
|
|
5824
|
+
)) : new L(
|
|
5817
5825
|
this._renderingMode,
|
|
5818
5826
|
this._initialArgs,
|
|
5819
5827
|
this._initialUiState,
|
|
@@ -5826,7 +5834,7 @@
|
|
|
5826
5834
|
}
|
|
5827
5835
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5828
5836
|
title(e) {
|
|
5829
|
-
return H("title", () => e(new te())), new
|
|
5837
|
+
return H("title", () => e(new te())), new L(
|
|
5830
5838
|
this._renderingMode,
|
|
5831
5839
|
this._initialArgs,
|
|
5832
5840
|
this._initialUiState,
|
|
@@ -5842,7 +5850,7 @@
|
|
|
5842
5850
|
* @deprecated use {@link withArgs}
|
|
5843
5851
|
* */
|
|
5844
5852
|
initialArgs(e) {
|
|
5845
|
-
return new
|
|
5853
|
+
return new L(
|
|
5846
5854
|
this._renderingMode,
|
|
5847
5855
|
e,
|
|
5848
5856
|
this._initialUiState,
|
|
@@ -5855,7 +5863,7 @@
|
|
|
5855
5863
|
}
|
|
5856
5864
|
/** Sets initial args for the block, this value must be specified. */
|
|
5857
5865
|
withArgs(e) {
|
|
5858
|
-
return new
|
|
5866
|
+
return new L(
|
|
5859
5867
|
this._renderingMode,
|
|
5860
5868
|
e,
|
|
5861
5869
|
this._initialUiState,
|
|
@@ -5868,7 +5876,7 @@
|
|
|
5868
5876
|
}
|
|
5869
5877
|
/** Defines type and sets initial value for block UiState. */
|
|
5870
5878
|
withUiState(e) {
|
|
5871
|
-
return new
|
|
5879
|
+
return new L(
|
|
5872
5880
|
this._renderingMode,
|
|
5873
5881
|
this._initialArgs,
|
|
5874
5882
|
e,
|
|
@@ -5884,7 +5892,7 @@
|
|
|
5884
5892
|
* Influences dependency graph construction.
|
|
5885
5893
|
*/
|
|
5886
5894
|
enriches(e) {
|
|
5887
|
-
return H("enrichmentTargets", e), new
|
|
5895
|
+
return H("enrichmentTargets", e), new L(
|
|
5888
5896
|
this._renderingMode,
|
|
5889
5897
|
this._initialArgs,
|
|
5890
5898
|
this._initialUiState,
|
|
@@ -5916,64 +5924,64 @@
|
|
|
5916
5924
|
sdkVersion: Y,
|
|
5917
5925
|
renderingMode: this._renderingMode,
|
|
5918
5926
|
initialArgs: this._initialArgs,
|
|
5919
|
-
inputsValid:
|
|
5920
|
-
sections:
|
|
5927
|
+
inputsValid: pe(this._inputsValid),
|
|
5928
|
+
sections: pe(this._sections),
|
|
5921
5929
|
outputs: Object.fromEntries(
|
|
5922
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5930
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5923
5931
|
)
|
|
5924
5932
|
};
|
|
5925
|
-
return
|
|
5933
|
+
return dt() ? Re({ sdkVersion: Y }) : { config: e };
|
|
5926
5934
|
}
|
|
5927
5935
|
}
|
|
5928
|
-
function
|
|
5936
|
+
function ve(t) {
|
|
5929
5937
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
5930
5938
|
}
|
|
5931
|
-
function
|
|
5932
|
-
return new
|
|
5939
|
+
function Ne(t) {
|
|
5940
|
+
return new le().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
5933
5941
|
name: "pl7.app/label",
|
|
5934
5942
|
axes: [{}]
|
|
5935
5943
|
// exactly one axis
|
|
5936
5944
|
}, { dontWaitAllData: true });
|
|
5937
5945
|
}
|
|
5938
|
-
function
|
|
5946
|
+
function Je(t, e) {
|
|
5939
5947
|
const n2 = [], r = [];
|
|
5940
5948
|
for (const a of t)
|
|
5941
|
-
|
|
5949
|
+
ve(a.spec) ? n2.push(a) : r.push(a);
|
|
5942
5950
|
const i = [];
|
|
5943
5951
|
for (const a of r)
|
|
5944
5952
|
for (const l2 of a.spec.axesSpec) {
|
|
5945
5953
|
const u2 = p$1(l2);
|
|
5946
|
-
i.some((
|
|
5954
|
+
i.some((c2) => X(c2, u2)) || i.push(u2);
|
|
5947
5955
|
}
|
|
5948
5956
|
for (const a of n2) {
|
|
5949
|
-
const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((
|
|
5957
|
+
const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((c2) => X(c2, l2));
|
|
5950
5958
|
u2 !== -1 && i.splice(u2, 1);
|
|
5951
5959
|
}
|
|
5952
5960
|
const s2 = (a, l2) => {
|
|
5953
5961
|
let u2 = a.toString();
|
|
5954
5962
|
if (l2)
|
|
5955
|
-
for (const
|
|
5956
|
-
u2 +=
|
|
5963
|
+
for (const c2 in l2)
|
|
5964
|
+
u2 += c2, u2 += l2[c2];
|
|
5957
5965
|
return u2;
|
|
5958
5966
|
}, o = [];
|
|
5959
5967
|
for (const a of e) {
|
|
5960
|
-
const l2 = a.spec.axesSpec[0], u2 = p$1(l2),
|
|
5961
|
-
if (
|
|
5962
|
-
const
|
|
5963
|
-
|
|
5964
|
-
id: s2(a.id,
|
|
5968
|
+
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((m2) => X(m2, u2));
|
|
5969
|
+
if (c2 !== -1) {
|
|
5970
|
+
const m2 = i[c2], v = Object.keys(m2.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
|
|
5971
|
+
v > f2 ? o.push({
|
|
5972
|
+
id: s2(a.id, m2.domain),
|
|
5965
5973
|
spec: {
|
|
5966
5974
|
...a.spec,
|
|
5967
|
-
axesSpec: [{ ...
|
|
5975
|
+
axesSpec: [{ ...m2, annotations: l2.annotations }]
|
|
5968
5976
|
},
|
|
5969
5977
|
data: a.data
|
|
5970
|
-
}) : o.push(a), i.splice(
|
|
5978
|
+
}) : o.push(a), i.splice(c2, 1);
|
|
5971
5979
|
}
|
|
5972
5980
|
}
|
|
5973
5981
|
return o;
|
|
5974
5982
|
}
|
|
5975
|
-
function
|
|
5976
|
-
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof
|
|
5983
|
+
function Me(t) {
|
|
5984
|
+
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof E, r = (i) => typeof i == "object" && "type" in i;
|
|
5977
5985
|
return t.map((i) => i.data).every((i) => {
|
|
5978
5986
|
if (e(i))
|
|
5979
5987
|
return true;
|
|
@@ -5992,7 +6000,7 @@
|
|
|
5992
6000
|
throw Error(`unsupported column data type: ${i}`);
|
|
5993
6001
|
});
|
|
5994
6002
|
}
|
|
5995
|
-
function
|
|
6003
|
+
function Ue(t, e, n2, r, i, s2) {
|
|
5996
6004
|
let o = t;
|
|
5997
6005
|
const a = [];
|
|
5998
6006
|
if (s2) {
|
|
@@ -6013,39 +6021,39 @@
|
|
|
6013
6021
|
sorting: i
|
|
6014
6022
|
};
|
|
6015
6023
|
}
|
|
6016
|
-
function
|
|
6017
|
-
var u2,
|
|
6024
|
+
function kn(t, e, n2, r) {
|
|
6025
|
+
var u2, c2;
|
|
6018
6026
|
Array.isArray(r) && (r = { filters: r });
|
|
6019
|
-
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 = ((
|
|
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);
|
|
6020
6028
|
if (!a) return;
|
|
6021
|
-
const l2 =
|
|
6022
|
-
if (
|
|
6029
|
+
const l2 = Je(e.map($n), a);
|
|
6030
|
+
if (Me([...e, ...l2]))
|
|
6023
6031
|
return t.createPTable(
|
|
6024
|
-
|
|
6032
|
+
Ue(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
|
|
6025
6033
|
);
|
|
6026
6034
|
}
|
|
6027
|
-
function
|
|
6035
|
+
function Ft(t) {
|
|
6028
6036
|
var e;
|
|
6029
6037
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
6030
6038
|
}
|
|
6031
|
-
function
|
|
6039
|
+
function Kt(t) {
|
|
6032
6040
|
var e;
|
|
6033
6041
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6034
6042
|
}
|
|
6035
|
-
function
|
|
6036
|
-
var
|
|
6037
|
-
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((
|
|
6043
|
+
function Rn(t, e, n2, r, i) {
|
|
6044
|
+
var h2, b;
|
|
6045
|
+
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((h2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : h2.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((p2) => !Ft(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
|
|
6038
6046
|
if (!u2) return;
|
|
6039
|
-
const
|
|
6040
|
-
if (!
|
|
6041
|
-
const
|
|
6042
|
-
var
|
|
6047
|
+
const c2 = Ne(t.resultPool);
|
|
6048
|
+
if (!c2) return;
|
|
6049
|
+
const m2 = new Set((() => {
|
|
6050
|
+
var I2, x2;
|
|
6043
6051
|
if (s2 === "inner") return [];
|
|
6044
|
-
const p2 = (
|
|
6045
|
-
return p2 || l2.filter((
|
|
6052
|
+
const p2 = (x2 = (I2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I2.hiddenColIds) == null ? void 0 : x2.map(ee).filter((y) => y.type === "column").map((y) => y.id);
|
|
6053
|
+
return p2 || l2.filter((y) => Kt(y.spec)).map((y) => y.id);
|
|
6046
6054
|
})());
|
|
6047
|
-
|
|
6048
|
-
const
|
|
6055
|
+
m2.delete(u2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => m2.delete(p2.id));
|
|
6056
|
+
const v = l2.filter((p2) => !m2.has(p2.id)), f2 = Je(v.map($n), c2), w2 = [
|
|
6049
6057
|
...u2.spec.axesSpec.map((p2) => ({
|
|
6050
6058
|
type: "axis",
|
|
6051
6059
|
id: p$1(p2),
|
|
@@ -6057,13 +6065,13 @@
|
|
|
6057
6065
|
spec: p2.spec
|
|
6058
6066
|
}))
|
|
6059
6067
|
];
|
|
6060
|
-
if (!
|
|
6061
|
-
const
|
|
6062
|
-
|
|
6068
|
+
if (!Me([...v, ...f2])) return;
|
|
6069
|
+
const d = t.createPTable(
|
|
6070
|
+
Ue(l2, f2, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
|
|
6063
6071
|
);
|
|
6064
6072
|
return {
|
|
6065
6073
|
tableSpec: w2,
|
|
6066
|
-
tableHandle:
|
|
6074
|
+
tableHandle: d
|
|
6067
6075
|
};
|
|
6068
6076
|
}
|
|
6069
6077
|
const ImportFileHandleSchema = z$2.string().optional().refine(
|
|
@@ -6089,7 +6097,7 @@
|
|
|
6089
6097
|
numbers: z$2.array(z$2.coerce.number()),
|
|
6090
6098
|
handles: z$2.array(ImportFileHandleSchema)
|
|
6091
6099
|
});
|
|
6092
|
-
const platforma =
|
|
6100
|
+
const platforma = L.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
|
|
6093
6101
|
if (ctx.args.numbers.length === 5) {
|
|
6094
6102
|
throw new Error("argsValid: test error");
|
|
6095
6103
|
}
|
|
@@ -6112,7 +6120,7 @@
|
|
|
6112
6120
|
val: v.toString()
|
|
6113
6121
|
};
|
|
6114
6122
|
});
|
|
6115
|
-
return
|
|
6123
|
+
return kn(
|
|
6116
6124
|
ctx,
|
|
6117
6125
|
[
|
|
6118
6126
|
{
|
|
@@ -6165,7 +6173,7 @@
|
|
|
6165
6173
|
val: v.toString()
|
|
6166
6174
|
};
|
|
6167
6175
|
});
|
|
6168
|
-
return
|
|
6176
|
+
return Rn(
|
|
6169
6177
|
ctx,
|
|
6170
6178
|
[
|
|
6171
6179
|
{
|