@milaboratories/milaboratories.ui-examples.model 1.1.38 → 1.1.40
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 +232 -220
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -4258,10 +4258,10 @@
|
|
|
4258
4258
|
}
|
|
4259
4259
|
e.domain = r;
|
|
4260
4260
|
}
|
|
4261
|
-
return e.axes && (e.axes = e.axes.map((r) => Q
|
|
4261
|
+
return e.axes && (e.axes = e.axes.map((r) => Q(n2, r))), e;
|
|
4262
4262
|
}
|
|
4263
|
-
function Q
|
|
4264
|
-
if (!Y(t))
|
|
4263
|
+
function Q(n2, t) {
|
|
4264
|
+
if (!Y$1(t))
|
|
4265
4265
|
return t;
|
|
4266
4266
|
const e = t.anchor, r = n2[e];
|
|
4267
4267
|
if (!r)
|
|
@@ -4287,17 +4287,17 @@
|
|
|
4287
4287
|
}
|
|
4288
4288
|
throw new Error("Unsupported axis reference type");
|
|
4289
4289
|
}
|
|
4290
|
-
function Y(n2) {
|
|
4290
|
+
function Y$1(n2) {
|
|
4291
4291
|
return typeof n2 == "object" && "anchor" in n2;
|
|
4292
4292
|
}
|
|
4293
4293
|
function f(n2) {
|
|
4294
4294
|
return n2.kind === "PColumn";
|
|
4295
4295
|
}
|
|
4296
|
-
function Z(n2) {
|
|
4296
|
+
function Z$1(n2) {
|
|
4297
4297
|
return f(n2.spec);
|
|
4298
4298
|
}
|
|
4299
4299
|
function In(n2) {
|
|
4300
|
-
if (!Z(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4300
|
+
if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
|
|
4301
4301
|
return n2;
|
|
4302
4302
|
}
|
|
4303
4303
|
function Bn(n2, t) {
|
|
@@ -4445,12 +4445,12 @@
|
|
|
4445
4445
|
}), c = l.extend({
|
|
4446
4446
|
cause: z$1.lazy(() => s).optional(),
|
|
4447
4447
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4448
|
-
}), m = z$1.object({
|
|
4448
|
+
}), m$1 = z$1.object({
|
|
4449
4449
|
type: z$1.literal("StandardError"),
|
|
4450
4450
|
name: z$1.string(),
|
|
4451
4451
|
message: z$1.string(),
|
|
4452
4452
|
stack: z$1.string().optional()
|
|
4453
|
-
}), p = m.extend({
|
|
4453
|
+
}), p = m$1.extend({
|
|
4454
4454
|
cause: z$1.lazy(() => s).optional(),
|
|
4455
4455
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4456
4456
|
}), s = z$1.union([p, c]);
|
|
@@ -4466,7 +4466,7 @@
|
|
|
4466
4466
|
var je = Object.defineProperty;
|
|
4467
4467
|
var Ke = (t, e, n2) => e in t ? je(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4468
4468
|
var L = (t, e, n2) => Ke(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4469
|
-
function
|
|
4469
|
+
function Z(t) {
|
|
4470
4470
|
return { type: "Immediate", value: t };
|
|
4471
4471
|
}
|
|
4472
4472
|
function Xe() {
|
|
@@ -4481,11 +4481,11 @@
|
|
|
4481
4481
|
function Qe() {
|
|
4482
4482
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4483
4483
|
}
|
|
4484
|
-
function
|
|
4484
|
+
function m() {
|
|
4485
4485
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4486
4486
|
throw new Error("Not in config rendering context");
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4488
|
+
function Y(t, e) {
|
|
4489
4489
|
const n2 = Qe();
|
|
4490
4490
|
if (n2 === void 0) return false;
|
|
4491
4491
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
@@ -4493,12 +4493,12 @@
|
|
|
4493
4493
|
}
|
|
4494
4494
|
const ae = /* @__PURE__ */ new Map();
|
|
4495
4495
|
function Ze(t, e) {
|
|
4496
|
-
t in
|
|
4496
|
+
t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
|
|
4497
4497
|
for (const r of ae.get(t))
|
|
4498
4498
|
r(n2);
|
|
4499
4499
|
}, ae.set(t, [])), ae.get(t).push(e);
|
|
4500
4500
|
}
|
|
4501
|
-
class
|
|
4501
|
+
class C {
|
|
4502
4502
|
constructor(e, n2 = (r) => r) {
|
|
4503
4503
|
L(this, "isResolved", false);
|
|
4504
4504
|
L(this, "resolvedValue");
|
|
@@ -4507,10 +4507,10 @@
|
|
|
4507
4507
|
});
|
|
4508
4508
|
}
|
|
4509
4509
|
map(e) {
|
|
4510
|
-
return new
|
|
4510
|
+
return new C(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4511
4511
|
}
|
|
4512
4512
|
mapDefined(e) {
|
|
4513
|
-
return new
|
|
4513
|
+
return new C(this.handle, (n2) => {
|
|
4514
4514
|
const r = this.postProcess(n2);
|
|
4515
4515
|
return r ? e(r) : void 0;
|
|
4516
4516
|
});
|
|
@@ -4522,7 +4522,7 @@
|
|
|
4522
4522
|
function pe(t, e) {
|
|
4523
4523
|
return t === void 0 ? void 0 : e(t);
|
|
4524
4524
|
}
|
|
4525
|
-
class
|
|
4525
|
+
class _ {
|
|
4526
4526
|
constructor(e, n2) {
|
|
4527
4527
|
this.handle = e, this.resolvePath = n2;
|
|
4528
4528
|
}
|
|
@@ -4562,46 +4562,46 @@
|
|
|
4562
4562
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4563
4563
|
];
|
|
4564
4564
|
return pe(
|
|
4565
|
-
|
|
4566
|
-
(i) => new
|
|
4565
|
+
m().resolveWithCommon(this.handle, e, ...n2),
|
|
4566
|
+
(i) => new _(i, r)
|
|
4567
4567
|
);
|
|
4568
4568
|
}
|
|
4569
4569
|
get resourceType() {
|
|
4570
|
-
return
|
|
4570
|
+
return m().getResourceType(this.handle);
|
|
4571
4571
|
}
|
|
4572
4572
|
getInputsLocked() {
|
|
4573
|
-
return
|
|
4573
|
+
return m().getInputsLocked(this.handle);
|
|
4574
4574
|
}
|
|
4575
4575
|
getOutputsLocked() {
|
|
4576
|
-
return
|
|
4576
|
+
return m().getOutputsLocked(this.handle);
|
|
4577
4577
|
}
|
|
4578
4578
|
getIsReadyOrError() {
|
|
4579
|
-
return
|
|
4579
|
+
return m().getIsReadyOrError(this.handle);
|
|
4580
4580
|
}
|
|
4581
4581
|
getIsFinal() {
|
|
4582
|
-
return
|
|
4582
|
+
return m().getIsFinal(this.handle);
|
|
4583
4583
|
}
|
|
4584
4584
|
getError() {
|
|
4585
4585
|
const e = [...this.resolvePath, "error"];
|
|
4586
4586
|
return pe(
|
|
4587
|
-
|
|
4588
|
-
(n2) => new
|
|
4587
|
+
m().getError(this.handle),
|
|
4588
|
+
(n2) => new _(n2, e)
|
|
4589
4589
|
);
|
|
4590
4590
|
}
|
|
4591
4591
|
listInputFields() {
|
|
4592
|
-
return
|
|
4592
|
+
return m().listInputFields(this.handle);
|
|
4593
4593
|
}
|
|
4594
4594
|
listOutputFields() {
|
|
4595
|
-
return
|
|
4595
|
+
return m().listOutputFields(this.handle);
|
|
4596
4596
|
}
|
|
4597
4597
|
listDynamicFields() {
|
|
4598
|
-
return
|
|
4598
|
+
return m().listDynamicFields(this.handle);
|
|
4599
4599
|
}
|
|
4600
4600
|
getKeyValueBase64(e) {
|
|
4601
|
-
return
|
|
4601
|
+
return m().getKeyValueBase64(this.handle, e);
|
|
4602
4602
|
}
|
|
4603
4603
|
getKeyValueAsString(e) {
|
|
4604
|
-
return
|
|
4604
|
+
return m().getKeyValueAsString(this.handle, e);
|
|
4605
4605
|
}
|
|
4606
4606
|
getKeyValueAsJson(e) {
|
|
4607
4607
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4609,10 +4609,10 @@
|
|
|
4609
4609
|
return JSON.parse(n2);
|
|
4610
4610
|
}
|
|
4611
4611
|
getDataBase64() {
|
|
4612
|
-
return
|
|
4612
|
+
return m().getDataBase64(this.handle);
|
|
4613
4613
|
}
|
|
4614
4614
|
getDataAsString() {
|
|
4615
|
-
return
|
|
4615
|
+
return m().getDataAsString(this.handle);
|
|
4616
4616
|
}
|
|
4617
4617
|
getDataAsJson() {
|
|
4618
4618
|
const e = this.getDataAsString();
|
|
@@ -4625,7 +4625,7 @@
|
|
|
4625
4625
|
getPColumns(e = false, n2 = "") {
|
|
4626
4626
|
const r = this.parsePObjectCollection(e, n2);
|
|
4627
4627
|
return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
|
|
4628
|
-
if (!Z(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
|
|
4628
|
+
if (!Z$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
|
|
4629
4629
|
return s2;
|
|
4630
4630
|
});
|
|
4631
4631
|
}
|
|
@@ -4633,7 +4633,7 @@
|
|
|
4633
4633
|
*
|
|
4634
4634
|
*/
|
|
4635
4635
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4636
|
-
const r =
|
|
4636
|
+
const r = m().parsePObjectCollection(
|
|
4637
4637
|
this.handle,
|
|
4638
4638
|
e,
|
|
4639
4639
|
n2,
|
|
@@ -4643,19 +4643,19 @@
|
|
|
4643
4643
|
const i = {};
|
|
4644
4644
|
for (const [s2, o] of Object.entries(r)) {
|
|
4645
4645
|
const a = [...this.resolvePath, s2];
|
|
4646
|
-
i[s2] = Bn(o, (l2) => new
|
|
4646
|
+
i[s2] = Bn(o, (l2) => new _(l2, a));
|
|
4647
4647
|
}
|
|
4648
4648
|
return i;
|
|
4649
4649
|
}
|
|
4650
4650
|
getFileContentAsBase64() {
|
|
4651
|
-
return new
|
|
4651
|
+
return new C(m().getBlobContentAsBase64(this.handle));
|
|
4652
4652
|
}
|
|
4653
4653
|
getFileContentAsString() {
|
|
4654
|
-
return new
|
|
4654
|
+
return new C(m().getBlobContentAsString(this.handle));
|
|
4655
4655
|
}
|
|
4656
4656
|
getFileContentAsJson() {
|
|
4657
|
-
return new
|
|
4658
|
-
|
|
4657
|
+
return new C(
|
|
4658
|
+
m().getBlobContentAsString(this.handle)
|
|
4659
4659
|
).mapDefined((e) => JSON.parse(e));
|
|
4660
4660
|
}
|
|
4661
4661
|
/**
|
|
@@ -4674,7 +4674,7 @@
|
|
|
4674
4674
|
* @returns downloaded file handle
|
|
4675
4675
|
*/
|
|
4676
4676
|
getFileHandle() {
|
|
4677
|
-
return new
|
|
4677
|
+
return new C(m().getDownloadedBlobContentHandle(this.handle));
|
|
4678
4678
|
}
|
|
4679
4679
|
/**
|
|
4680
4680
|
* @deprecated use getFileHandle
|
|
@@ -4686,7 +4686,7 @@
|
|
|
4686
4686
|
* @returns downloaded file handle
|
|
4687
4687
|
*/
|
|
4688
4688
|
getRemoteFileHandle() {
|
|
4689
|
-
return new
|
|
4689
|
+
return new C(m().getOnDemandBlobContentHandle(this.handle));
|
|
4690
4690
|
}
|
|
4691
4691
|
/**
|
|
4692
4692
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4698,22 +4698,22 @@
|
|
|
4698
4698
|
* @returns the url to the extracted folder
|
|
4699
4699
|
*/
|
|
4700
4700
|
extractArchiveAndGetURL(e) {
|
|
4701
|
-
return new
|
|
4701
|
+
return new C(m().extractArchiveAndGetURL(this.handle, e));
|
|
4702
4702
|
}
|
|
4703
4703
|
getImportProgress() {
|
|
4704
|
-
return new
|
|
4704
|
+
return new C(m().getImportProgress(this.handle));
|
|
4705
4705
|
}
|
|
4706
4706
|
getLastLogs(e) {
|
|
4707
|
-
return new
|
|
4707
|
+
return new C(m().getLastLogs(this.handle, e));
|
|
4708
4708
|
}
|
|
4709
4709
|
getProgressLog(e) {
|
|
4710
|
-
return new
|
|
4710
|
+
return new C(m().getProgressLog(this.handle, e));
|
|
4711
4711
|
}
|
|
4712
4712
|
getProgressLogWithInfo(e) {
|
|
4713
|
-
return new
|
|
4713
|
+
return new C(m().getProgressLogWithInfo(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getLogHandle() {
|
|
4716
|
-
return new
|
|
4716
|
+
return new C(m().getLogHandle(this.handle));
|
|
4717
4717
|
}
|
|
4718
4718
|
allFieldsResolved(e = "Input") {
|
|
4719
4719
|
switch (e) {
|
|
@@ -4737,9 +4737,9 @@
|
|
|
4737
4737
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
4738
4738
|
return;
|
|
4739
4739
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4740
|
-
(
|
|
4740
|
+
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4741
4741
|
);
|
|
4742
|
-
return s2 && (l2 = l2.filter((
|
|
4742
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, S]) => o(u2, S));
|
|
4743
4743
|
}
|
|
4744
4744
|
}
|
|
4745
4745
|
const Ie = "staging", Le = "main";
|
|
@@ -4749,68 +4749,79 @@
|
|
|
4749
4749
|
id: z$1.string().optional(),
|
|
4750
4750
|
label: z$1.string()
|
|
4751
4751
|
}), st = z$1.array(it), ot = 1e-3, at = "__LABEL__", ve = "__LABEL__@1";
|
|
4752
|
-
function
|
|
4753
|
-
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((
|
|
4754
|
-
var
|
|
4755
|
-
const
|
|
4756
|
-
let
|
|
4757
|
-
"spec" in
|
|
4758
|
-
const
|
|
4759
|
-
...
|
|
4760
|
-
...
|
|
4761
|
-
...
|
|
4752
|
+
function Ee(t, e, n2 = {}) {
|
|
4753
|
+
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((p2) => {
|
|
4754
|
+
var q, F;
|
|
4755
|
+
const c2 = e(p2);
|
|
4756
|
+
let h, A2, y2;
|
|
4757
|
+
"spec" in c2 && typeof c2.spec == "object" ? (h = c2.spec, A2 = c2.prefixTrace, y2 = c2.suffixTrace) : h = c2;
|
|
4758
|
+
const v = (q = h.annotations) == null ? void 0 : q[nt], g = (F = h.annotations) == null ? void 0 : F[rt], P = (g ? st.safeParse(JSON.parse(g)).data : void 0) ?? [], b = [
|
|
4759
|
+
...A2 ?? [],
|
|
4760
|
+
...P,
|
|
4761
|
+
...y2 ?? []
|
|
4762
4762
|
];
|
|
4763
|
-
if (
|
|
4764
|
-
const
|
|
4765
|
-
n2.addLabelAsSuffix ?
|
|
4766
|
-
}
|
|
4767
|
-
const
|
|
4768
|
-
for (let
|
|
4769
|
-
const { type: R } =
|
|
4770
|
-
|
|
4771
|
-
const
|
|
4772
|
-
i.set(
|
|
4773
|
-
|
|
4763
|
+
if (v) {
|
|
4764
|
+
const I = { label: v, type: at, importance: -2 };
|
|
4765
|
+
n2.addLabelAsSuffix ? b.push(I) : b.splice(0, 0, I);
|
|
4766
|
+
}
|
|
4767
|
+
const k2 = [], $2 = /* @__PURE__ */ new Map();
|
|
4768
|
+
for (let I = b.length - 1; I >= 0; --I) {
|
|
4769
|
+
const { type: R } = b[I], se = b[I].importance ?? 0, J = ($2.get(R) ?? 0) + 1;
|
|
4770
|
+
$2.set(R, J);
|
|
4771
|
+
const w2 = `${R}@${J}`;
|
|
4772
|
+
i.set(w2, (i.get(w2) ?? 0) + 1), r.set(
|
|
4773
|
+
w2,
|
|
4774
4774
|
Math.max(
|
|
4775
|
-
r.get(
|
|
4776
|
-
|
|
4775
|
+
r.get(w2) ?? Number.NEGATIVE_INFINITY,
|
|
4776
|
+
se - (b.length - I) * ot
|
|
4777
4777
|
)
|
|
4778
|
-
),
|
|
4778
|
+
), k2.push({ ...b[I], fullType: w2, occurenceIndex: J });
|
|
4779
4779
|
}
|
|
4780
|
-
return
|
|
4781
|
-
value:
|
|
4782
|
-
spec:
|
|
4783
|
-
label:
|
|
4784
|
-
fullTrace:
|
|
4780
|
+
return k2.reverse(), {
|
|
4781
|
+
value: p2,
|
|
4782
|
+
spec: h,
|
|
4783
|
+
label: v,
|
|
4784
|
+
fullTrace: k2
|
|
4785
4785
|
};
|
|
4786
4786
|
}), o = [], a = [], l2 = [...r];
|
|
4787
|
-
l2.sort(([,
|
|
4788
|
-
for (const [
|
|
4789
|
-
|
|
4790
|
-
const
|
|
4791
|
-
const
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4787
|
+
l2.sort(([, p2], [, c2]) => c2 - p2);
|
|
4788
|
+
for (const [p2] of l2)
|
|
4789
|
+
p2.endsWith("@1") || i.get(p2) === t.length ? o.push(p2) : a.push(p2);
|
|
4790
|
+
const u2 = (p2) => {
|
|
4791
|
+
const c2 = [];
|
|
4792
|
+
for (let h = 0; h < s2.length; h++) {
|
|
4793
|
+
const A2 = s2[h], y2 = A2.fullTrace.filter((P) => p2.has(P.fullType));
|
|
4794
|
+
if (y2.length === 0)
|
|
4795
|
+
return;
|
|
4796
|
+
const v = y2.map((P) => P.label), g = n2.separator ?? " / ";
|
|
4797
|
+
c2.push({
|
|
4798
|
+
label: v.join(g),
|
|
4799
|
+
value: A2.value
|
|
4800
|
+
});
|
|
4801
|
+
}
|
|
4802
|
+
return c2;
|
|
4803
|
+
};
|
|
4797
4804
|
if (o.length === 0) {
|
|
4798
4805
|
if (a.length !== 0) throw new Error("Assertion error.");
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4806
|
+
const p2 = u2(new Set(ve));
|
|
4807
|
+
if (p2 === void 0) throw new Error("Assertion error.");
|
|
4808
|
+
return p2;
|
|
4809
|
+
}
|
|
4810
|
+
let S = 0, d = 0;
|
|
4811
|
+
for (; S < o.length; ) {
|
|
4812
|
+
const p2 = /* @__PURE__ */ new Set();
|
|
4813
|
+
n2.includeNativeLabel && p2.add(ve);
|
|
4814
|
+
for (let h = 0; h < S; ++h) p2.add(o[h]);
|
|
4815
|
+
p2.add(o[d]);
|
|
4816
|
+
const c2 = u2(p2);
|
|
4817
|
+
if (c2 !== void 0 && new Set(c2.map((h) => h.label)).size === t.length) return c2;
|
|
4818
|
+
d++, d >= o.length && (S++, d = S);
|
|
4819
|
+
}
|
|
4820
|
+
const f2 = u2(/* @__PURE__ */ new Set([...o, ...a]));
|
|
4821
|
+
if (f2 === void 0) throw new Error("Assertion error.");
|
|
4822
|
+
return f2;
|
|
4812
4823
|
}
|
|
4813
|
-
const H = "PColumnData/",
|
|
4824
|
+
const H = "PColumnData/", te = H + "ResourceMap", ne = H + "Partitioned/ResourceMap", U = H + "JsonPartitioned", V = H + "BinaryPartitioned", Fe = H + "Partitioned/", re = Fe + "JsonPartitioned", B = Fe + "BinaryPartitioned";
|
|
4814
4825
|
const fe = (t) => {
|
|
4815
4826
|
if (t.endsWith(".index"))
|
|
4816
4827
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4823,10 +4834,10 @@
|
|
|
4823
4834
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4824
4835
|
let i = 0;
|
|
4825
4836
|
switch (e) {
|
|
4826
|
-
case
|
|
4837
|
+
case te:
|
|
4827
4838
|
i = n2.keyLength;
|
|
4828
4839
|
break;
|
|
4829
|
-
case
|
|
4840
|
+
case ne:
|
|
4830
4841
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4831
4842
|
break;
|
|
4832
4843
|
case U:
|
|
@@ -4834,12 +4845,12 @@
|
|
|
4834
4845
|
i = n2.partitionKeyLength;
|
|
4835
4846
|
break;
|
|
4836
4847
|
case B:
|
|
4837
|
-
case
|
|
4848
|
+
case re:
|
|
4838
4849
|
i = n2.superPartitionKeyLength + n2.partitionKeyLength;
|
|
4839
4850
|
break;
|
|
4840
4851
|
}
|
|
4841
4852
|
switch (e) {
|
|
4842
|
-
case
|
|
4853
|
+
case te:
|
|
4843
4854
|
case U:
|
|
4844
4855
|
case V:
|
|
4845
4856
|
for (let s2 of t.listInputFields()) {
|
|
@@ -4848,16 +4859,16 @@
|
|
|
4848
4859
|
r.push(o);
|
|
4849
4860
|
}
|
|
4850
4861
|
break;
|
|
4851
|
-
case
|
|
4862
|
+
case ne:
|
|
4852
4863
|
case B:
|
|
4853
|
-
case
|
|
4864
|
+
case re:
|
|
4854
4865
|
for (const s2 of t.listInputFields()) {
|
|
4855
4866
|
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4856
4867
|
if (a !== void 0)
|
|
4857
4868
|
for (let l2 of a.listInputFields()) {
|
|
4858
4869
|
e === B && (l2 = fe(l2).baseKey);
|
|
4859
|
-
const
|
|
4860
|
-
r.push(
|
|
4870
|
+
const u2 = [...o, ...JSON.parse(l2)];
|
|
4871
|
+
r.push(u2);
|
|
4861
4872
|
}
|
|
4862
4873
|
}
|
|
4863
4874
|
break;
|
|
@@ -4903,11 +4914,11 @@
|
|
|
4903
4914
|
function he(t, e = []) {
|
|
4904
4915
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4905
4916
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4906
|
-
if (e.length > 0 && (n2 ===
|
|
4917
|
+
if (e.length > 0 && (n2 === re || n2 === B))
|
|
4907
4918
|
throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
|
|
4908
4919
|
switch (n2) {
|
|
4920
|
+
case te:
|
|
4909
4921
|
case ne:
|
|
4910
|
-
case re:
|
|
4911
4922
|
throw new Error(`Only data columns are supported, got: ${n2}`);
|
|
4912
4923
|
case U: {
|
|
4913
4924
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
@@ -4932,8 +4943,8 @@
|
|
|
4932
4943
|
for (const o of t.listInputFields()) {
|
|
4933
4944
|
const a = fe(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4934
4945
|
if (l2 === void 0) return;
|
|
4935
|
-
let
|
|
4936
|
-
|
|
4946
|
+
let u2 = s2.get(a.baseKey);
|
|
4947
|
+
u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
4937
4948
|
}
|
|
4938
4949
|
for (const [o, a] of s2.entries()) {
|
|
4939
4950
|
if (!a.index || !a.values) return;
|
|
@@ -4952,7 +4963,7 @@
|
|
|
4952
4963
|
parts: i
|
|
4953
4964
|
};
|
|
4954
4965
|
}
|
|
4955
|
-
case
|
|
4966
|
+
case re: {
|
|
4956
4967
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4957
4968
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
4958
4969
|
const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
|
|
@@ -5002,7 +5013,7 @@
|
|
|
5002
5013
|
if (t !== void 0) {
|
|
5003
5014
|
if (j(t)) return t;
|
|
5004
5015
|
if (pn(t)) return ln(t);
|
|
5005
|
-
if (t instanceof
|
|
5016
|
+
if (t instanceof _) return he(t);
|
|
5006
5017
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5007
5018
|
}
|
|
5008
5019
|
}
|
|
@@ -5135,110 +5146,111 @@
|
|
|
5135
5146
|
const { anchorCtx: r, labelOps: i, dontWaitAllData: s2 = false, overrideLabelAnnotation: o = false } = n2 ?? {}, a = {
|
|
5136
5147
|
...o && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
|
|
5137
5148
|
...i ?? {}
|
|
5138
|
-
}, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e],
|
|
5139
|
-
for (const
|
|
5140
|
-
const
|
|
5141
|
-
let
|
|
5142
|
-
if (
|
|
5149
|
+
}, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
|
|
5150
|
+
for (const f$1 of l2) {
|
|
5151
|
+
const p2 = yt(f$1);
|
|
5152
|
+
let c2;
|
|
5153
|
+
if (p2) {
|
|
5143
5154
|
if (!r)
|
|
5144
5155
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5145
|
-
|
|
5156
|
+
c2 = $n(r.anchors, f$1);
|
|
5146
5157
|
} else
|
|
5147
|
-
|
|
5148
|
-
const
|
|
5158
|
+
c2 = f$1;
|
|
5159
|
+
const h = /* @__PURE__ */ new Set(), A2 = [];
|
|
5149
5160
|
for (const g of this.providers) {
|
|
5150
|
-
const
|
|
5151
|
-
for (const
|
|
5152
|
-
if (
|
|
5153
|
-
|
|
5161
|
+
const P = g.selectColumns(c2);
|
|
5162
|
+
for (const b of P) {
|
|
5163
|
+
if (h.has(b.id)) throw new Error(`Duplicate column id ${b.id} in provider ${g.constructor.name}`);
|
|
5164
|
+
h.add(b.id), A2.push(b);
|
|
5154
5165
|
}
|
|
5155
5166
|
}
|
|
5156
|
-
if (
|
|
5157
|
-
const
|
|
5158
|
-
for (const g of
|
|
5167
|
+
if (A2.length === 0) continue;
|
|
5168
|
+
const y$1 = vt(f$1), v = y$1.length > 0;
|
|
5169
|
+
for (const g of A2) {
|
|
5159
5170
|
if (!f(g.spec)) continue;
|
|
5160
|
-
const
|
|
5161
|
-
if (
|
|
5162
|
-
const
|
|
5163
|
-
if (!
|
|
5171
|
+
const P = g.spec;
|
|
5172
|
+
if (v) {
|
|
5173
|
+
const b = pt(g.data);
|
|
5174
|
+
if (!b) {
|
|
5164
5175
|
if (s2) continue;
|
|
5165
5176
|
return;
|
|
5166
5177
|
}
|
|
5167
|
-
if (!yn(
|
|
5168
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5169
|
-
const k2 = ct(
|
|
5170
|
-
if ($2 >=
|
|
5171
|
-
throw new Error(`Not enough partition keys (${
|
|
5172
|
-
const q =
|
|
5173
|
-
if (N2 >=
|
|
5174
|
-
|
|
5178
|
+
if (!yn(b))
|
|
5179
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${b.type} for column ${g.id}`);
|
|
5180
|
+
const k2 = ct(b), $2 = y$1[y$1.length - 1];
|
|
5181
|
+
if ($2 >= b.partitionKeyLength)
|
|
5182
|
+
throw new Error(`Not enough partition keys (${b.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${P.name}`);
|
|
5183
|
+
const q = y$1.map((w2) => this.findLabels(y(P.axesSpec[w2]))), F = [], I = (w2, N2) => {
|
|
5184
|
+
if (N2 >= y$1.length) {
|
|
5185
|
+
if (F.push([...w2]), F.length > 1e4)
|
|
5186
|
+
throw new Error("Too many key combinations, aborting.");
|
|
5175
5187
|
return;
|
|
5176
5188
|
}
|
|
5177
|
-
const D =
|
|
5189
|
+
const D = y$1[N2];
|
|
5178
5190
|
if (D >= k2.length)
|
|
5179
5191
|
throw new Error(`Axis index ${D} out of bounds for unique keys array (length ${k2.length}) during split key generation for column ${g.id}`);
|
|
5180
5192
|
const O = k2[D];
|
|
5181
5193
|
if (!O || O.length === 0) {
|
|
5182
|
-
|
|
5194
|
+
F.length = 0;
|
|
5183
5195
|
return;
|
|
5184
5196
|
}
|
|
5185
|
-
for (const
|
|
5186
|
-
|
|
5197
|
+
for (const z2 of O)
|
|
5198
|
+
w2.push(z2), I(w2, N2 + 1), w2.pop();
|
|
5187
5199
|
};
|
|
5188
|
-
if (
|
|
5200
|
+
if (I([], 0), F.length === 0)
|
|
5189
5201
|
continue;
|
|
5190
|
-
const
|
|
5191
|
-
for (let
|
|
5192
|
-
|
|
5193
|
-
const
|
|
5194
|
-
for (const
|
|
5195
|
-
const N2 =
|
|
5196
|
-
const
|
|
5197
|
-
return { axisIdx:
|
|
5202
|
+
const R = [...P.axesSpec], se = y$1.map((w2) => w2);
|
|
5203
|
+
for (let w2 = y$1.length - 1; w2 >= 0; w2--)
|
|
5204
|
+
R.splice(y$1[w2], 1);
|
|
5205
|
+
const J = { ...P, axesSpec: R };
|
|
5206
|
+
for (const w2 of F) {
|
|
5207
|
+
const N2 = w2.map((D, O) => {
|
|
5208
|
+
const z2 = se[O], Re = y(P.axesSpec[z2]), oe = q[O], Oe = (oe == null ? void 0 : oe[D]) ?? String(D);
|
|
5209
|
+
return { axisIdx: z2, axisId: Re, value: D, label: Oe };
|
|
5198
5210
|
});
|
|
5199
|
-
|
|
5211
|
+
u2.push({
|
|
5200
5212
|
type: "split",
|
|
5201
5213
|
originalColumn: g,
|
|
5202
|
-
spec:
|
|
5203
|
-
adjustedSpec:
|
|
5204
|
-
dataEntries:
|
|
5214
|
+
spec: P,
|
|
5215
|
+
adjustedSpec: J,
|
|
5216
|
+
dataEntries: b,
|
|
5205
5217
|
axisFilters: N2
|
|
5206
5218
|
});
|
|
5207
5219
|
}
|
|
5208
5220
|
} else
|
|
5209
|
-
|
|
5221
|
+
u2.push({
|
|
5210
5222
|
type: "direct",
|
|
5211
5223
|
originalColumn: g,
|
|
5212
|
-
spec:
|
|
5213
|
-
adjustedSpec:
|
|
5224
|
+
spec: P,
|
|
5225
|
+
adjustedSpec: P
|
|
5214
5226
|
});
|
|
5215
5227
|
}
|
|
5216
5228
|
}
|
|
5217
|
-
if (
|
|
5218
|
-
const
|
|
5219
|
-
|
|
5220
|
-
(
|
|
5221
|
-
spec:
|
|
5222
|
-
suffixTrace:
|
|
5229
|
+
if (u2.length === 0) return [];
|
|
5230
|
+
const S = Ee(
|
|
5231
|
+
u2,
|
|
5232
|
+
(f2) => ({
|
|
5233
|
+
spec: f2.spec,
|
|
5234
|
+
suffixTrace: f2.type === "split" ? ht(f2.axisFilters) : void 0
|
|
5223
5235
|
}),
|
|
5224
5236
|
a
|
|
5225
5237
|
), d = [];
|
|
5226
|
-
for (const { value:
|
|
5227
|
-
const { originalColumn:
|
|
5228
|
-
let
|
|
5229
|
-
r ?
|
|
5230
|
-
let g = { ...
|
|
5238
|
+
for (const { value: f2, label: p2 } of S) {
|
|
5239
|
+
const { originalColumn: c2, spec: h } = f2, A2 = f2.type === "split" ? f2.axisFilters : void 0, y2 = gt(A2);
|
|
5240
|
+
let v;
|
|
5241
|
+
r ? v = r.deriveS(h, y2) : v = mt(c2.id, y2);
|
|
5242
|
+
let g = { ...f2.adjustedSpec };
|
|
5231
5243
|
o && (g = {
|
|
5232
5244
|
...g,
|
|
5233
5245
|
annotations: {
|
|
5234
5246
|
...g.annotations ?? {},
|
|
5235
|
-
"pl7.app/label":
|
|
5247
|
+
"pl7.app/label": p2
|
|
5236
5248
|
}
|
|
5237
5249
|
}), d.push({
|
|
5238
|
-
id:
|
|
5250
|
+
id: v,
|
|
5239
5251
|
spec: g,
|
|
5240
|
-
data: () =>
|
|
5241
|
-
label:
|
|
5252
|
+
data: () => f2.type === "split" ? hn(dt(f2.dataEntries, y2)) : f2.originalColumn.data,
|
|
5253
|
+
label: p2
|
|
5242
5254
|
});
|
|
5243
5255
|
}
|
|
5244
5256
|
return d;
|
|
@@ -5274,11 +5286,11 @@
|
|
|
5274
5286
|
return true;
|
|
5275
5287
|
}
|
|
5276
5288
|
function we(t) {
|
|
5277
|
-
return Bn(t, (e) => e instanceof
|
|
5289
|
+
return Bn(t, (e) => e instanceof _ ? e.handle : pn(e) ? mn(e, (n2) => n2.handle) : e);
|
|
5278
5290
|
}
|
|
5279
5291
|
class bt {
|
|
5280
5292
|
constructor() {
|
|
5281
|
-
L(this, "ctx",
|
|
5293
|
+
L(this, "ctx", m());
|
|
5282
5294
|
}
|
|
5283
5295
|
/**
|
|
5284
5296
|
* @deprecated use getOptions()
|
|
@@ -5288,7 +5300,7 @@
|
|
|
5288
5300
|
}
|
|
5289
5301
|
getOptions(e, n2) {
|
|
5290
5302
|
const r = typeof e == "function" ? e : Fn(e), i = this.getSpecs().entries.filter((s2) => r(s2.obj));
|
|
5291
|
-
return typeof n2 == "object" || typeof n2 > "u" ?
|
|
5303
|
+
return typeof n2 == "object" || typeof n2 > "u" ? Ee(i, (s2) => s2.obj, n2 ?? {}).map(({ value: { ref: s2 }, label: o }) => ({
|
|
5292
5304
|
ref: s2,
|
|
5293
5305
|
label: o
|
|
5294
5306
|
})) : i.map((s2) => ({
|
|
@@ -5381,7 +5393,7 @@
|
|
|
5381
5393
|
ref: n2.ref,
|
|
5382
5394
|
obj: {
|
|
5383
5395
|
...n2.obj,
|
|
5384
|
-
data: new
|
|
5396
|
+
data: new _(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5385
5397
|
}
|
|
5386
5398
|
}))
|
|
5387
5399
|
};
|
|
@@ -5402,7 +5414,7 @@
|
|
|
5402
5414
|
...n2.obj,
|
|
5403
5415
|
data: _n(
|
|
5404
5416
|
n2.obj.data,
|
|
5405
|
-
(r) => new
|
|
5417
|
+
(r) => new _(r, [n2.ref.blockId, n2.ref.name])
|
|
5406
5418
|
)
|
|
5407
5419
|
}
|
|
5408
5420
|
}))
|
|
@@ -5431,7 +5443,7 @@
|
|
|
5431
5443
|
if (n2)
|
|
5432
5444
|
return Bn(
|
|
5433
5445
|
n2,
|
|
5434
|
-
(i) => new
|
|
5446
|
+
(i) => new _(i, [e.blockId, e.name])
|
|
5435
5447
|
);
|
|
5436
5448
|
}
|
|
5437
5449
|
/**
|
|
@@ -5492,7 +5504,7 @@
|
|
|
5492
5504
|
findLabels(e) {
|
|
5493
5505
|
const n2 = this.getData();
|
|
5494
5506
|
for (const r of n2.entries) {
|
|
5495
|
-
if (!Z(r.obj)) continue;
|
|
5507
|
+
if (!Z$1(r.obj)) continue;
|
|
5496
5508
|
const i = r.obj.spec;
|
|
5497
5509
|
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && le(e.domain, i.axesSpec[0].domain)) {
|
|
5498
5510
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
@@ -5522,8 +5534,8 @@
|
|
|
5522
5534
|
id: Pe(i),
|
|
5523
5535
|
spec: o,
|
|
5524
5536
|
get data() {
|
|
5525
|
-
var
|
|
5526
|
-
return a !== null || (a = (
|
|
5537
|
+
var u2;
|
|
5538
|
+
return a !== null || (a = (u2 = l2.getPColumnByRef(i)) == null ? void 0 : u2.data), a;
|
|
5527
5539
|
}
|
|
5528
5540
|
};
|
|
5529
5541
|
});
|
|
@@ -5541,14 +5553,14 @@
|
|
|
5541
5553
|
}));
|
|
5542
5554
|
}
|
|
5543
5555
|
}
|
|
5544
|
-
class
|
|
5556
|
+
class X {
|
|
5545
5557
|
constructor() {
|
|
5546
5558
|
L(this, "ctx");
|
|
5547
5559
|
L(this, "args");
|
|
5548
5560
|
L(this, "uiState");
|
|
5549
5561
|
L(this, "_activeArgsCache");
|
|
5550
5562
|
L(this, "resultPool", new bt());
|
|
5551
|
-
this.ctx =
|
|
5563
|
+
this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5552
5564
|
}
|
|
5553
5565
|
/**
|
|
5554
5566
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5566,7 +5578,7 @@
|
|
|
5566
5578
|
getNamedAccessor(e) {
|
|
5567
5579
|
return pe(
|
|
5568
5580
|
this.ctx.getAccessorHandleByName(e),
|
|
5569
|
-
(n2) => new
|
|
5581
|
+
(n2) => new _(n2, [e])
|
|
5570
5582
|
);
|
|
5571
5583
|
}
|
|
5572
5584
|
get prerun() {
|
|
@@ -5585,7 +5597,7 @@
|
|
|
5585
5597
|
}
|
|
5586
5598
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5587
5599
|
var i;
|
|
5588
|
-
const n2 = e.some((s2) => !(s2.data instanceof
|
|
5600
|
+
const n2 = e.some((s2) => !(s2.data instanceof _) || pn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5589
5601
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5590
5602
|
}
|
|
5591
5603
|
// TODO remove all non-PColumn fields
|
|
@@ -5616,7 +5628,7 @@
|
|
|
5616
5628
|
return this.ctx.getCurrentUnstableMarker();
|
|
5617
5629
|
}
|
|
5618
5630
|
}
|
|
5619
|
-
const M = "1.28.
|
|
5631
|
+
const M = "1.28.4";
|
|
5620
5632
|
function wt(t) {
|
|
5621
5633
|
return t.__renderLambda === true;
|
|
5622
5634
|
}
|
|
@@ -5634,15 +5646,15 @@
|
|
|
5634
5646
|
void 0,
|
|
5635
5647
|
{},
|
|
5636
5648
|
{},
|
|
5637
|
-
|
|
5638
|
-
|
|
5649
|
+
Z(true),
|
|
5650
|
+
Z([]),
|
|
5639
5651
|
void 0
|
|
5640
5652
|
);
|
|
5641
5653
|
}
|
|
5642
5654
|
output(e, n2, r = {}) {
|
|
5643
5655
|
if (typeof n2 == "function") {
|
|
5644
5656
|
const i = `output#${e}`;
|
|
5645
|
-
return
|
|
5657
|
+
return Y(i, () => n2(new X())), new T(
|
|
5646
5658
|
this._renderingMode,
|
|
5647
5659
|
this._initialArgs,
|
|
5648
5660
|
this._initialUiState,
|
|
@@ -5677,7 +5689,7 @@
|
|
|
5677
5689
|
return this.output(e, n2, { retentive: true });
|
|
5678
5690
|
}
|
|
5679
5691
|
argsValid(e) {
|
|
5680
|
-
return typeof e == "function" ? (
|
|
5692
|
+
return typeof e == "function" ? (Y("inputsValid", () => e(new X())), new T(
|
|
5681
5693
|
this._renderingMode,
|
|
5682
5694
|
this._initialArgs,
|
|
5683
5695
|
this._initialUiState,
|
|
@@ -5699,7 +5711,7 @@
|
|
|
5699
5711
|
);
|
|
5700
5712
|
}
|
|
5701
5713
|
sections(e) {
|
|
5702
|
-
return Array.isArray(e) ? this.sections(
|
|
5714
|
+
return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (Y("sections", () => e(new X())), new T(
|
|
5703
5715
|
this._renderingMode,
|
|
5704
5716
|
this._initialArgs,
|
|
5705
5717
|
this._initialUiState,
|
|
@@ -5719,7 +5731,7 @@
|
|
|
5719
5731
|
}
|
|
5720
5732
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5721
5733
|
title(e) {
|
|
5722
|
-
return
|
|
5734
|
+
return Y("title", () => e(new X())), new T(
|
|
5723
5735
|
this._renderingMode,
|
|
5724
5736
|
this._initialArgs,
|
|
5725
5737
|
this._initialUiState,
|
|
@@ -5798,39 +5810,39 @@
|
|
|
5798
5810
|
}
|
|
5799
5811
|
}
|
|
5800
5812
|
function fn(t, e, n2, r) {
|
|
5801
|
-
var
|
|
5813
|
+
var u2, S;
|
|
5802
5814
|
Array.isArray(r) && (r = { filters: r });
|
|
5803
|
-
const i = t.resultPool.getData().entries.map((d) => d.obj).filter(Z).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), s2 = (d,
|
|
5804
|
-
let
|
|
5805
|
-
if (
|
|
5806
|
-
for (const
|
|
5807
|
-
|
|
5808
|
-
return
|
|
5815
|
+
const i = t.resultPool.getData().entries.map((d) => d.obj).filter(Z$1).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), s2 = (d, f2) => {
|
|
5816
|
+
let p2 = d.toString();
|
|
5817
|
+
if (f2)
|
|
5818
|
+
for (const c2 in f2)
|
|
5819
|
+
p2 += c2, p2 += f2[c2];
|
|
5820
|
+
return p2;
|
|
5809
5821
|
}, o = /* @__PURE__ */ new Map();
|
|
5810
5822
|
for (const d of e)
|
|
5811
|
-
for (const
|
|
5812
|
-
const
|
|
5813
|
-
for (const
|
|
5814
|
-
const
|
|
5815
|
-
if (z(
|
|
5816
|
-
const
|
|
5817
|
-
if (
|
|
5818
|
-
const g = s2(
|
|
5823
|
+
for (const f2 of d.spec.axesSpec) {
|
|
5824
|
+
const p2 = y(f2);
|
|
5825
|
+
for (const c2 of i) {
|
|
5826
|
+
const h = c2.spec.axesSpec[0], A2 = y(c2.spec.axesSpec[0]);
|
|
5827
|
+
if (z(p2, A2)) {
|
|
5828
|
+
const y2 = Object.keys(p2.domain ?? {}).length, v = Object.keys(A2.domain ?? {}).length;
|
|
5829
|
+
if (y2 > v) {
|
|
5830
|
+
const g = s2(c2.id, p2.domain);
|
|
5819
5831
|
o.set(g, {
|
|
5820
5832
|
id: g,
|
|
5821
5833
|
spec: {
|
|
5822
|
-
...
|
|
5823
|
-
axesSpec: [{ ...
|
|
5834
|
+
...c2.spec,
|
|
5835
|
+
axesSpec: [{ ...p2, annotations: h.annotations }]
|
|
5824
5836
|
},
|
|
5825
|
-
data:
|
|
5837
|
+
data: c2.data
|
|
5826
5838
|
});
|
|
5827
5839
|
} else
|
|
5828
|
-
o.set(s2(
|
|
5840
|
+
o.set(s2(c2.id), c2);
|
|
5829
5841
|
}
|
|
5830
5842
|
}
|
|
5831
5843
|
}
|
|
5832
5844
|
if ([...e, ...o.values()].some(
|
|
5833
|
-
(d) => d.data instanceof
|
|
5845
|
+
(d) => d.data instanceof _ && !d.data.getIsReadyOrError()
|
|
5834
5846
|
))
|
|
5835
5847
|
return;
|
|
5836
5848
|
let a = e;
|
|
@@ -5849,8 +5861,8 @@
|
|
|
5849
5861
|
},
|
|
5850
5862
|
secondary: l2.map((d) => ({ type: "column", column: d }))
|
|
5851
5863
|
},
|
|
5852
|
-
filters: [...(r == null ? void 0 : r.filters) ?? [], ...((
|
|
5853
|
-
sorting: ((
|
|
5864
|
+
filters: [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []],
|
|
5865
|
+
sorting: ((S = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : S.sorting) ?? []
|
|
5854
5866
|
});
|
|
5855
5867
|
}
|
|
5856
5868
|
const ImportFileHandleSchema = z$1.string().optional().refine(
|