@milaboratories/milaboratories.pool-explorer.model 1.0.69 → 1.0.71
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 +9 -9
- package/CHANGELOG.md +14 -0
- package/dist/bundle.js +222 -201
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
return obj;
|
|
21
21
|
};
|
|
22
22
|
util2.getValidEnumValues = (obj) => {
|
|
23
|
-
const validKeys = util2.objectKeys(obj).filter((
|
|
23
|
+
const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
|
|
24
24
|
const filtered = {};
|
|
25
|
-
for (const
|
|
26
|
-
filtered[
|
|
25
|
+
for (const k of validKeys) {
|
|
26
|
+
filtered[k] = obj[k];
|
|
27
27
|
}
|
|
28
28
|
return util2.objectValues(filtered);
|
|
29
29
|
};
|
|
@@ -2659,17 +2659,17 @@
|
|
|
2659
2659
|
});
|
|
2660
2660
|
}
|
|
2661
2661
|
}
|
|
2662
|
-
function mergeValues(a,
|
|
2662
|
+
function mergeValues(a, b2) {
|
|
2663
2663
|
const aType = getParsedType(a);
|
|
2664
|
-
const bType = getParsedType(
|
|
2665
|
-
if (a ===
|
|
2664
|
+
const bType = getParsedType(b2);
|
|
2665
|
+
if (a === b2) {
|
|
2666
2666
|
return { valid: true, data: a };
|
|
2667
2667
|
} else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
2668
|
-
const bKeys = util.objectKeys(
|
|
2668
|
+
const bKeys = util.objectKeys(b2);
|
|
2669
2669
|
const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
2670
|
-
const newObj = { ...a, ...
|
|
2670
|
+
const newObj = { ...a, ...b2 };
|
|
2671
2671
|
for (const key of sharedKeys) {
|
|
2672
|
-
const sharedValue = mergeValues(a[key],
|
|
2672
|
+
const sharedValue = mergeValues(a[key], b2[key]);
|
|
2673
2673
|
if (!sharedValue.valid) {
|
|
2674
2674
|
return { valid: false };
|
|
2675
2675
|
}
|
|
@@ -2677,13 +2677,13 @@
|
|
|
2677
2677
|
}
|
|
2678
2678
|
return { valid: true, data: newObj };
|
|
2679
2679
|
} else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
|
|
2680
|
-
if (a.length !==
|
|
2680
|
+
if (a.length !== b2.length) {
|
|
2681
2681
|
return { valid: false };
|
|
2682
2682
|
}
|
|
2683
2683
|
const newArray = [];
|
|
2684
2684
|
for (let index = 0; index < a.length; index++) {
|
|
2685
2685
|
const itemA = a[index];
|
|
2686
|
-
const itemB =
|
|
2686
|
+
const itemB = b2[index];
|
|
2687
2687
|
const sharedValue = mergeValues(itemA, itemB);
|
|
2688
2688
|
if (!sharedValue.valid) {
|
|
2689
2689
|
return { valid: false };
|
|
@@ -2691,7 +2691,7 @@
|
|
|
2691
2691
|
newArray.push(sharedValue.data);
|
|
2692
2692
|
}
|
|
2693
2693
|
return { valid: true, data: newArray };
|
|
2694
|
-
} else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +
|
|
2694
|
+
} else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b2) {
|
|
2695
2695
|
return { valid: true, data: a };
|
|
2696
2696
|
} else {
|
|
2697
2697
|
return { valid: false };
|
|
@@ -3662,10 +3662,10 @@
|
|
|
3662
3662
|
}
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
|
-
static create(a,
|
|
3665
|
+
static create(a, b2) {
|
|
3666
3666
|
return new ZodPipeline({
|
|
3667
3667
|
in: a,
|
|
3668
|
-
out:
|
|
3668
|
+
out: b2,
|
|
3669
3669
|
typeName: ZodFirstPartyTypeKind.ZodPipeline
|
|
3670
3670
|
});
|
|
3671
3671
|
}
|
|
@@ -3955,7 +3955,7 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3958
|
+
const Be = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
3959
|
var R = Object.defineProperty;
|
|
3960
3960
|
var L$1 = (e, n2, t) => n2 in e ? R(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
|
|
3961
3961
|
var d = (e, n2, t) => L$1(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
|
|
@@ -4099,11 +4099,11 @@
|
|
|
4099
4099
|
const { type: n2, name: t, domain: r } = e, o = { type: n2, name: t };
|
|
4100
4100
|
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4101
4101
|
}
|
|
4102
|
-
function
|
|
4102
|
+
function F(e) {
|
|
4103
4103
|
return e.map(y);
|
|
4104
4104
|
}
|
|
4105
4105
|
function Te$1(e) {
|
|
4106
|
-
return
|
|
4106
|
+
return Be(y(e));
|
|
4107
4107
|
}
|
|
4108
4108
|
function ee$1(e, n2) {
|
|
4109
4109
|
if (e === void 0) return n2 === void 0;
|
|
@@ -4151,15 +4151,15 @@
|
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
4153
|
function te(e) {
|
|
4154
|
-
return
|
|
4154
|
+
return Be(e);
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4157
|
-
return
|
|
4156
|
+
function x(e) {
|
|
4157
|
+
return Be(y(e));
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function S(e, n2) {
|
|
4160
4160
|
return JSON.stringify([e, n2]);
|
|
4161
4161
|
}
|
|
4162
|
-
class Ge {
|
|
4162
|
+
let Ge$1 = class Ge {
|
|
4163
4163
|
/**
|
|
4164
4164
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4165
4165
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4174,14 +4174,14 @@
|
|
|
4174
4174
|
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4175
4175
|
for (const [r, o] of t) {
|
|
4176
4176
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
4177
|
-
const a = o.axesSpec[i], s2 =
|
|
4177
|
+
const a = o.axesSpec[i], s2 = x(a);
|
|
4178
4178
|
this.axes.set(s2, { anchor: r, idx: i });
|
|
4179
4179
|
}
|
|
4180
4180
|
if (o.domain !== void 0) {
|
|
4181
4181
|
const i = Object.entries(o.domain);
|
|
4182
4182
|
i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4183
4183
|
for (const [a, s2] of i) {
|
|
4184
|
-
const u2 =
|
|
4184
|
+
const u2 = S(a, s2);
|
|
4185
4185
|
this.domains.set(u2, r);
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
@@ -4216,11 +4216,11 @@
|
|
|
4216
4216
|
for (const [a, s2] of Object.entries(n2.domain ?? {})) {
|
|
4217
4217
|
if (o !== void 0 && o.has(a))
|
|
4218
4218
|
continue;
|
|
4219
|
-
const u2 =
|
|
4219
|
+
const u2 = S(a, s2), c2 = this.domains.get(u2);
|
|
4220
4220
|
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
|
|
4221
4221
|
}
|
|
4222
4222
|
if (r.axes = n2.axesSpec.map((a) => {
|
|
4223
|
-
const s2 =
|
|
4223
|
+
const s2 = x(a), u2 = this.axes.get(s2);
|
|
4224
4224
|
return u2 === void 0 ? y(a) : u2;
|
|
4225
4225
|
}), !t || t.length === 0)
|
|
4226
4226
|
return r;
|
|
@@ -4252,8 +4252,8 @@
|
|
|
4252
4252
|
deriveS(n2, t) {
|
|
4253
4253
|
return te(this.derive(n2, t));
|
|
4254
4254
|
}
|
|
4255
|
-
}
|
|
4256
|
-
function Xe(e, n2, t) {
|
|
4255
|
+
};
|
|
4256
|
+
function Xe$1(e, n2, t) {
|
|
4257
4257
|
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4258
4258
|
if (r.domainAnchor !== void 0) {
|
|
4259
4259
|
const i = e[r.domainAnchor];
|
|
@@ -4353,7 +4353,7 @@
|
|
|
4353
4353
|
};
|
|
4354
4354
|
return t(e), [...n2.values()];
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4356
|
+
function v(e, n2) {
|
|
4357
4357
|
if (e.name !== void 0 && e.name !== n2.name)
|
|
4358
4358
|
return false;
|
|
4359
4359
|
if (e.type !== void 0) {
|
|
@@ -4371,7 +4371,7 @@
|
|
|
4371
4371
|
}
|
|
4372
4372
|
return true;
|
|
4373
4373
|
}
|
|
4374
|
-
function
|
|
4374
|
+
function N(e, n2) {
|
|
4375
4375
|
if (n2.name !== void 0 && e.name !== n2.name || n2.namePattern !== void 0 && !new RegExp(n2.namePattern).test(e.name))
|
|
4376
4376
|
return false;
|
|
4377
4377
|
if (n2.type !== void 0) {
|
|
@@ -4391,13 +4391,13 @@
|
|
|
4391
4391
|
const t = e.axesSpec.map(y);
|
|
4392
4392
|
if (n2.partialAxesMatch) {
|
|
4393
4393
|
for (const r of n2.axes)
|
|
4394
|
-
if (!t.some((o) =>
|
|
4394
|
+
if (!t.some((o) => v(r, o)))
|
|
4395
4395
|
return false;
|
|
4396
4396
|
} else {
|
|
4397
4397
|
if (t.length !== n2.axes.length)
|
|
4398
4398
|
return false;
|
|
4399
4399
|
for (let r = 0; r < n2.axes.length; r++)
|
|
4400
|
-
if (!
|
|
4400
|
+
if (!v(n2.axes[r], t[r]))
|
|
4401
4401
|
return false;
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
@@ -4418,14 +4418,14 @@
|
|
|
4418
4418
|
return true;
|
|
4419
4419
|
}
|
|
4420
4420
|
function rn(e) {
|
|
4421
|
-
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) &&
|
|
4421
|
+
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && N(n2, t)) : (n2) => l$1(n2) && N(n2, e);
|
|
4422
4422
|
}
|
|
4423
4423
|
function on(e) {
|
|
4424
4424
|
const n2 = {
|
|
4425
4425
|
kind: e.kind,
|
|
4426
4426
|
name: e.name
|
|
4427
4427
|
};
|
|
4428
|
-
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec =
|
|
4428
|
+
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = F(e.axesSpec)), Be(n2);
|
|
4429
4429
|
}
|
|
4430
4430
|
z$1.object({
|
|
4431
4431
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4513,46 +4513,46 @@
|
|
|
4513
4513
|
cause: z$1.lazy(() => n).optional(),
|
|
4514
4514
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4515
4515
|
});
|
|
4516
|
-
var
|
|
4517
|
-
var
|
|
4518
|
-
var
|
|
4516
|
+
var it = Object.defineProperty;
|
|
4517
|
+
var ot = (t, e, n2) => e in t ? it(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4518
|
+
var V = (t, e, n2) => ot(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4519
4519
|
function se(t) {
|
|
4520
4520
|
return { type: "Immediate", value: t };
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function At() {
|
|
4523
4523
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function $e(t) {
|
|
4526
4526
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4527
4527
|
return globalThis.getPlatforma(t);
|
|
4528
4528
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4529
4529
|
throw new Error("Can't get platforma instance.");
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function wt() {
|
|
4532
4532
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function b() {
|
|
4535
4535
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4536
4536
|
throw new Error("Not in config rendering context");
|
|
4537
4537
|
}
|
|
4538
4538
|
function G(t, e) {
|
|
4539
|
-
const n2 =
|
|
4539
|
+
const n2 = wt();
|
|
4540
4540
|
if (n2 === void 0) return false;
|
|
4541
4541
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4542
4542
|
return n2.callbackRegistry[t] = e, true;
|
|
4543
4543
|
}
|
|
4544
4544
|
const fe = /* @__PURE__ */ new Map();
|
|
4545
|
-
function
|
|
4546
|
-
t in
|
|
4545
|
+
function xt(t, e) {
|
|
4546
|
+
t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
|
|
4547
4547
|
for (const r of fe.get(t))
|
|
4548
4548
|
r(n2);
|
|
4549
4549
|
}, fe.set(t, [])), fe.get(t).push(e);
|
|
4550
4550
|
}
|
|
4551
4551
|
class L {
|
|
4552
4552
|
constructor(e, n2 = (r) => r) {
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
this.handle = e, this.postProcess = n2,
|
|
4553
|
+
V(this, "isResolved", false);
|
|
4554
|
+
V(this, "resolvedValue");
|
|
4555
|
+
this.handle = e, this.postProcess = n2, xt(e, (r) => {
|
|
4556
4556
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4557
4557
|
});
|
|
4558
4558
|
}
|
|
@@ -4569,7 +4569,7 @@
|
|
|
4569
4569
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4570
4570
|
}
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4572
|
+
function ye(t, e) {
|
|
4573
4573
|
return t === void 0 ? void 0 : e(t);
|
|
4574
4574
|
}
|
|
4575
4575
|
class O {
|
|
@@ -4611,47 +4611,47 @@
|
|
|
4611
4611
|
...this.resolvePath,
|
|
4612
4612
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4613
4613
|
];
|
|
4614
|
-
return
|
|
4615
|
-
|
|
4614
|
+
return ye(
|
|
4615
|
+
b().resolveWithCommon(this.handle, e, ...n2),
|
|
4616
4616
|
(i) => new O(i, r)
|
|
4617
4617
|
);
|
|
4618
4618
|
}
|
|
4619
4619
|
get resourceType() {
|
|
4620
|
-
return
|
|
4620
|
+
return b().getResourceType(this.handle);
|
|
4621
4621
|
}
|
|
4622
4622
|
getInputsLocked() {
|
|
4623
|
-
return
|
|
4623
|
+
return b().getInputsLocked(this.handle);
|
|
4624
4624
|
}
|
|
4625
4625
|
getOutputsLocked() {
|
|
4626
|
-
return
|
|
4626
|
+
return b().getOutputsLocked(this.handle);
|
|
4627
4627
|
}
|
|
4628
4628
|
getIsReadyOrError() {
|
|
4629
|
-
return
|
|
4629
|
+
return b().getIsReadyOrError(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getIsFinal() {
|
|
4632
|
-
return
|
|
4632
|
+
return b().getIsFinal(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getError() {
|
|
4635
4635
|
const e = [...this.resolvePath, "error"];
|
|
4636
|
-
return
|
|
4637
|
-
|
|
4636
|
+
return ye(
|
|
4637
|
+
b().getError(this.handle),
|
|
4638
4638
|
(n2) => new O(n2, e)
|
|
4639
4639
|
);
|
|
4640
4640
|
}
|
|
4641
4641
|
listInputFields() {
|
|
4642
|
-
return
|
|
4642
|
+
return b().listInputFields(this.handle);
|
|
4643
4643
|
}
|
|
4644
4644
|
listOutputFields() {
|
|
4645
|
-
return
|
|
4645
|
+
return b().listOutputFields(this.handle);
|
|
4646
4646
|
}
|
|
4647
4647
|
listDynamicFields() {
|
|
4648
|
-
return
|
|
4648
|
+
return b().listDynamicFields(this.handle);
|
|
4649
4649
|
}
|
|
4650
4650
|
getKeyValueBase64(e) {
|
|
4651
|
-
return
|
|
4651
|
+
return b().getKeyValueBase64(this.handle, e);
|
|
4652
4652
|
}
|
|
4653
4653
|
getKeyValueAsString(e) {
|
|
4654
|
-
return
|
|
4654
|
+
return b().getKeyValueAsString(this.handle, e);
|
|
4655
4655
|
}
|
|
4656
4656
|
getKeyValueAsJson(e) {
|
|
4657
4657
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4659,10 +4659,10 @@
|
|
|
4659
4659
|
return JSON.parse(n2);
|
|
4660
4660
|
}
|
|
4661
4661
|
getDataBase64() {
|
|
4662
|
-
return
|
|
4662
|
+
return b().getDataBase64(this.handle);
|
|
4663
4663
|
}
|
|
4664
4664
|
getDataAsString() {
|
|
4665
|
-
return
|
|
4665
|
+
return b().getDataAsString(this.handle);
|
|
4666
4666
|
}
|
|
4667
4667
|
getDataAsJson() {
|
|
4668
4668
|
const e = this.getDataAsString();
|
|
@@ -4683,7 +4683,7 @@
|
|
|
4683
4683
|
*
|
|
4684
4684
|
*/
|
|
4685
4685
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4686
|
-
const r =
|
|
4686
|
+
const r = b().parsePObjectCollection(
|
|
4687
4687
|
this.handle,
|
|
4688
4688
|
e,
|
|
4689
4689
|
n2,
|
|
@@ -4698,14 +4698,14 @@
|
|
|
4698
4698
|
return i;
|
|
4699
4699
|
}
|
|
4700
4700
|
getFileContentAsBase64(e) {
|
|
4701
|
-
return new L(
|
|
4701
|
+
return new L(b().getBlobContentAsBase64(this.handle, e));
|
|
4702
4702
|
}
|
|
4703
4703
|
getFileContentAsString(e) {
|
|
4704
|
-
return new L(
|
|
4704
|
+
return new L(b().getBlobContentAsString(this.handle, e));
|
|
4705
4705
|
}
|
|
4706
4706
|
getFileContentAsJson(e) {
|
|
4707
4707
|
return new L(
|
|
4708
|
-
|
|
4708
|
+
b().getBlobContentAsString(this.handle, e)
|
|
4709
4709
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4710
4710
|
}
|
|
4711
4711
|
/**
|
|
@@ -4724,7 +4724,7 @@
|
|
|
4724
4724
|
* @returns downloaded file handle
|
|
4725
4725
|
*/
|
|
4726
4726
|
getFileHandle() {
|
|
4727
|
-
return new L(
|
|
4727
|
+
return new L(b().getDownloadedBlobContentHandle(this.handle));
|
|
4728
4728
|
}
|
|
4729
4729
|
/**
|
|
4730
4730
|
* @deprecated use getFileHandle
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
* @returns downloaded file handle
|
|
4737
4737
|
*/
|
|
4738
4738
|
getRemoteFileHandle() {
|
|
4739
|
-
return new L(
|
|
4739
|
+
return new L(b().getOnDemandBlobContentHandle(this.handle));
|
|
4740
4740
|
}
|
|
4741
4741
|
/**
|
|
4742
4742
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4748,22 +4748,22 @@
|
|
|
4748
4748
|
* @returns the url to the extracted folder
|
|
4749
4749
|
*/
|
|
4750
4750
|
extractArchiveAndGetURL(e) {
|
|
4751
|
-
return new L(
|
|
4751
|
+
return new L(b().extractArchiveAndGetURL(this.handle, e));
|
|
4752
4752
|
}
|
|
4753
4753
|
getImportProgress() {
|
|
4754
|
-
return new L(
|
|
4754
|
+
return new L(b().getImportProgress(this.handle));
|
|
4755
4755
|
}
|
|
4756
4756
|
getLastLogs(e) {
|
|
4757
|
-
return new L(
|
|
4757
|
+
return new L(b().getLastLogs(this.handle, e));
|
|
4758
4758
|
}
|
|
4759
4759
|
getProgressLog(e) {
|
|
4760
|
-
return new L(
|
|
4760
|
+
return new L(b().getProgressLog(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getProgressLogWithInfo(e) {
|
|
4763
|
-
return new L(
|
|
4763
|
+
return new L(b().getProgressLogWithInfo(this.handle, e));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLogHandle() {
|
|
4766
|
-
return new L(
|
|
4766
|
+
return new L(b().getLogHandle(this.handle));
|
|
4767
4767
|
}
|
|
4768
4768
|
allFieldsResolved(e = "Input") {
|
|
4769
4769
|
switch (e) {
|
|
@@ -4792,87 +4792,87 @@
|
|
|
4792
4792
|
return o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h]) => s2(u2, h));
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
4795
|
-
const
|
|
4796
|
-
const
|
|
4795
|
+
const We = "staging", Ge = "main";
|
|
4796
|
+
const _t = "pl7.app/label", Lt = "pl7.app/trace", Et = z$1.object({
|
|
4797
4797
|
type: z$1.string(),
|
|
4798
4798
|
importance: z$1.number().optional(),
|
|
4799
4799
|
id: z$1.string().optional(),
|
|
4800
4800
|
label: z$1.string()
|
|
4801
|
-
}),
|
|
4802
|
-
function
|
|
4801
|
+
}), Vt = z$1.array(Et), kt = 1e-3, Ot = "__LABEL__", Ee = "__LABEL__@1";
|
|
4802
|
+
function ze(t, e, n2 = {}) {
|
|
4803
4803
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((d2) => {
|
|
4804
|
-
var c2,
|
|
4805
|
-
const
|
|
4806
|
-
let p2,
|
|
4807
|
-
"spec" in
|
|
4808
|
-
const
|
|
4809
|
-
...
|
|
4804
|
+
var c2, v2;
|
|
4805
|
+
const y2 = e(d2);
|
|
4806
|
+
let p2, g2, C;
|
|
4807
|
+
"spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec, g2 = y2.prefixTrace, C = y2.suffixTrace) : p2 = y2;
|
|
4808
|
+
const E = (c2 = p2.annotations) == null ? void 0 : c2[_t], x2 = (v2 = p2.annotations) == null ? void 0 : v2[Lt], S2 = (x2 ? Vt.safeParse(JSON.parse(x2)).data : void 0) ?? [], P = [
|
|
4809
|
+
...g2 ?? [],
|
|
4810
4810
|
...S2,
|
|
4811
|
-
...
|
|
4811
|
+
...C ?? []
|
|
4812
4812
|
];
|
|
4813
|
-
if (
|
|
4814
|
-
const I = { label:
|
|
4813
|
+
if (E !== void 0) {
|
|
4814
|
+
const I = { label: E, type: Ot, importance: -2 };
|
|
4815
4815
|
n2.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
|
|
4816
4816
|
}
|
|
4817
|
-
const T = [],
|
|
4817
|
+
const T = [], F2 = /* @__PURE__ */ new Map();
|
|
4818
4818
|
for (let I = P.length - 1; I >= 0; --I) {
|
|
4819
|
-
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (
|
|
4820
|
-
|
|
4821
|
-
const
|
|
4822
|
-
o.set(
|
|
4823
|
-
|
|
4819
|
+
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (F2.get($) ?? 0) + 1;
|
|
4820
|
+
F2.set($, j);
|
|
4821
|
+
const N2 = `${$}@${j}`;
|
|
4822
|
+
o.set(N2, (o.get(N2) ?? 0) + 1), r.set(
|
|
4823
|
+
N2,
|
|
4824
4824
|
Math.max(
|
|
4825
|
-
r.get(
|
|
4825
|
+
r.get(N2) ?? Number.NEGATIVE_INFINITY,
|
|
4826
4826
|
K - (P.length - I) * kt
|
|
4827
4827
|
)
|
|
4828
|
-
), T.push({ ...P[I], fullType:
|
|
4828
|
+
), T.push({ ...P[I], fullType: N2, occurrenceIndex: j });
|
|
4829
4829
|
}
|
|
4830
4830
|
return T.reverse(), {
|
|
4831
4831
|
value: d2,
|
|
4832
4832
|
spec: p2,
|
|
4833
|
-
label:
|
|
4833
|
+
label: E,
|
|
4834
4834
|
fullTrace: T
|
|
4835
4835
|
};
|
|
4836
4836
|
}), a = [], l2 = [], u2 = [...r];
|
|
4837
|
-
u2.sort(([, d2], [,
|
|
4837
|
+
u2.sort(([, d2], [, y2]) => y2 - d2);
|
|
4838
4838
|
for (const [d2] of u2)
|
|
4839
4839
|
d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
|
|
4840
|
-
const h = (d2,
|
|
4840
|
+
const h = (d2, y2 = false) => {
|
|
4841
4841
|
const p2 = [];
|
|
4842
|
-
for (let
|
|
4843
|
-
const
|
|
4844
|
-
if (
|
|
4845
|
-
if (
|
|
4842
|
+
for (let g2 = 0; g2 < s2.length; g2++) {
|
|
4843
|
+
const C = s2[g2], E = C.fullTrace.filter((P) => d2.has(P.fullType) || i && i.has(P.type));
|
|
4844
|
+
if (E.length === 0)
|
|
4845
|
+
if (y2)
|
|
4846
4846
|
p2.push({
|
|
4847
4847
|
label: "Unlabeled",
|
|
4848
|
-
value:
|
|
4848
|
+
value: C.value
|
|
4849
4849
|
});
|
|
4850
4850
|
else return;
|
|
4851
|
-
const x2 =
|
|
4851
|
+
const x2 = E.map((P) => P.label), S2 = n2.separator ?? " / ";
|
|
4852
4852
|
p2.push({
|
|
4853
4853
|
label: x2.join(S2),
|
|
4854
|
-
value:
|
|
4854
|
+
value: C.value
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
4857
4857
|
return p2;
|
|
4858
4858
|
};
|
|
4859
4859
|
if (a.length === 0) {
|
|
4860
4860
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4861
|
-
return h(new Set(
|
|
4861
|
+
return h(new Set(Ee), true);
|
|
4862
4862
|
}
|
|
4863
4863
|
let f = 0, m2 = -1;
|
|
4864
4864
|
for (; f < a.length; ) {
|
|
4865
4865
|
const d2 = /* @__PURE__ */ new Set();
|
|
4866
|
-
n2.includeNativeLabel && d2.add(
|
|
4866
|
+
n2.includeNativeLabel && d2.add(Ee);
|
|
4867
4867
|
for (let p2 = 0; p2 < f; ++p2) d2.add(a[p2]);
|
|
4868
4868
|
m2 >= 0 && d2.add(a[m2]);
|
|
4869
|
-
const
|
|
4870
|
-
if (
|
|
4869
|
+
const y2 = h(d2);
|
|
4870
|
+
if (y2 !== void 0 && new Set(y2.map((p2) => p2.label)).size === t.length) return y2;
|
|
4871
4871
|
m2++, m2 >= a.length && (f++, m2 = f);
|
|
4872
4872
|
}
|
|
4873
4873
|
return h(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4874
4874
|
}
|
|
4875
|
-
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", J = ee + "BinaryPartitioned",
|
|
4875
|
+
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", J = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
|
|
4876
4876
|
const ve = (t) => {
|
|
4877
4877
|
if (t.endsWith(".index"))
|
|
4878
4878
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4880,7 +4880,7 @@
|
|
|
4880
4880
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4881
4881
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4882
4882
|
};
|
|
4883
|
-
function
|
|
4883
|
+
function Dt(t) {
|
|
4884
4884
|
if (!t) return;
|
|
4885
4885
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4886
4886
|
let i = 0;
|
|
@@ -4926,7 +4926,7 @@
|
|
|
4926
4926
|
}
|
|
4927
4927
|
return { data: r, keyLength: i };
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4929
|
+
function Rt(t) {
|
|
4930
4930
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4931
4931
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4932
4932
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4945,11 +4945,11 @@
|
|
|
4945
4945
|
}
|
|
4946
4946
|
return r.map((i) => Array.from(i.values()));
|
|
4947
4947
|
}
|
|
4948
|
-
function
|
|
4948
|
+
function Nt(t) {
|
|
4949
4949
|
if (t === void 0) return;
|
|
4950
4950
|
if (_(t))
|
|
4951
|
-
return
|
|
4952
|
-
const e =
|
|
4951
|
+
return Rt(t);
|
|
4952
|
+
const e = Dt(t);
|
|
4953
4953
|
if (!e) return;
|
|
4954
4954
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4955
4955
|
for (let o = 0; o < r; ++o)
|
|
@@ -5060,7 +5060,7 @@
|
|
|
5060
5060
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5063
|
+
function Ut(t) {
|
|
5064
5064
|
if (t !== void 0) {
|
|
5065
5065
|
if (_(t)) return t;
|
|
5066
5066
|
if (Ce$1(t)) return je(t);
|
|
@@ -5068,7 +5068,7 @@
|
|
|
5068
5068
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5069
5069
|
}
|
|
5070
5070
|
}
|
|
5071
|
-
function
|
|
5071
|
+
function Kt(t, e) {
|
|
5072
5072
|
const n2 = [...e].sort((o, s2) => s2[0] - o[0]);
|
|
5073
5073
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5074
5074
|
const { partitionKeyLength: o } = t;
|
|
@@ -5128,13 +5128,13 @@
|
|
|
5128
5128
|
}
|
|
5129
5129
|
}
|
|
5130
5130
|
}
|
|
5131
|
-
function
|
|
5131
|
+
function Mt(t) {
|
|
5132
5132
|
if (!Array.isArray(t)) return false;
|
|
5133
5133
|
if (t.length === 0) return true;
|
|
5134
5134
|
const e = t[0];
|
|
5135
5135
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5136
5136
|
}
|
|
5137
|
-
class
|
|
5137
|
+
class jt {
|
|
5138
5138
|
constructor(e) {
|
|
5139
5139
|
this.columns = e;
|
|
5140
5140
|
}
|
|
@@ -5143,7 +5143,7 @@
|
|
|
5143
5143
|
return this.columns.filter((r) => n2(r.spec));
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5146
|
+
function qt(t) {
|
|
5147
5147
|
if (t)
|
|
5148
5148
|
return t.map((e) => ({
|
|
5149
5149
|
type: `split:${Te$1(e.axisId)}`,
|
|
@@ -5152,21 +5152,21 @@
|
|
|
5152
5152
|
// High importance for split filters in labels
|
|
5153
5153
|
}));
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function Bt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5158
5158
|
}
|
|
5159
|
-
function
|
|
5159
|
+
function Jt(t, e) {
|
|
5160
5160
|
if (!e || e.length === 0) return t;
|
|
5161
5161
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5162
|
-
return
|
|
5162
|
+
return Be({ id: t, axisFilters: n2 });
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Ve(t) {
|
|
5165
5165
|
if (!t || typeof t != "object") return false;
|
|
5166
5166
|
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);
|
|
5167
5167
|
return !!e.domainAnchor || n2 || r;
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5169
|
+
function $t(t) {
|
|
5170
5170
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5171
5171
|
return [];
|
|
5172
5172
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5176,9 +5176,9 @@
|
|
|
5176
5176
|
}
|
|
5177
5177
|
class Q {
|
|
5178
5178
|
constructor() {
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5179
|
+
V(this, "defaultProviderStore", []);
|
|
5180
|
+
V(this, "providers", [new jt(this.defaultProviderStore)]);
|
|
5181
|
+
V(this, "axisLabelProviders", []);
|
|
5182
5182
|
}
|
|
5183
5183
|
addColumnProvider(e) {
|
|
5184
5184
|
return this.providers.push(e), this;
|
|
@@ -5206,65 +5206,65 @@
|
|
|
5206
5206
|
};
|
|
5207
5207
|
let u2 = () => false;
|
|
5208
5208
|
if (a) {
|
|
5209
|
-
const p2 = (Array.isArray(a) ? a : [a]).map((
|
|
5210
|
-
if (
|
|
5209
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((g2) => {
|
|
5210
|
+
if (Ve(g2)) {
|
|
5211
5211
|
if (!r)
|
|
5212
5212
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5213
|
-
return rn(Xe(r.anchors,
|
|
5213
|
+
return rn(Xe$1(r.anchors, g2, n2));
|
|
5214
5214
|
} else
|
|
5215
|
-
return rn(
|
|
5215
|
+
return rn(g2);
|
|
5216
5216
|
});
|
|
5217
|
-
u2 = (
|
|
5217
|
+
u2 = (g2) => p2.some((C) => C(g2));
|
|
5218
5218
|
}
|
|
5219
5219
|
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
|
|
5220
5220
|
for (const p2 of h) {
|
|
5221
|
-
const
|
|
5222
|
-
let
|
|
5223
|
-
if (
|
|
5221
|
+
const g2 = Ve(p2);
|
|
5222
|
+
let C;
|
|
5223
|
+
if (g2) {
|
|
5224
5224
|
if (!r)
|
|
5225
5225
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5226
|
-
|
|
5226
|
+
C = Xe$1(r.anchors, p2, n2);
|
|
5227
5227
|
} else
|
|
5228
|
-
|
|
5229
|
-
const
|
|
5228
|
+
C = p2;
|
|
5229
|
+
const E = /* @__PURE__ */ new Set(), x2 = [];
|
|
5230
5230
|
for (const T of this.providers) {
|
|
5231
|
-
const
|
|
5232
|
-
for (const c2 of
|
|
5231
|
+
const F2 = T.selectColumns(C);
|
|
5232
|
+
for (const c2 of F2) {
|
|
5233
5233
|
if (u2(c2.spec)) continue;
|
|
5234
|
-
if (
|
|
5234
|
+
if (E.has(c2.id))
|
|
5235
5235
|
throw new Error(`Duplicate column id ${c2.id} in provider ${T.constructor.name}`);
|
|
5236
|
-
const
|
|
5237
|
-
m2.has(
|
|
5236
|
+
const v2 = on(c2.spec);
|
|
5237
|
+
m2.has(v2) || (E.add(c2.id), m2.add(v2), x2.push(c2));
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
5240
5240
|
if (x2.length === 0) continue;
|
|
5241
|
-
const S2 =
|
|
5241
|
+
const S2 = $t(p2), P = S2.length > 0;
|
|
5242
5242
|
for (const T of x2) {
|
|
5243
5243
|
if (!l$1(T.spec)) continue;
|
|
5244
|
-
const
|
|
5244
|
+
const F2 = T.spec;
|
|
5245
5245
|
if (P) {
|
|
5246
|
-
if (
|
|
5246
|
+
if (Mt(T.data))
|
|
5247
5247
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
|
|
5248
|
-
const c2 =
|
|
5248
|
+
const c2 = Ut(T.data);
|
|
5249
5249
|
if (!c2) {
|
|
5250
5250
|
if (o) continue;
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
5253
|
if (!Ve$1(c2))
|
|
5254
5254
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T.id}`);
|
|
5255
|
-
const
|
|
5255
|
+
const v2 = Nt(c2), I = S2[S2.length - 1];
|
|
5256
5256
|
if (I >= c2.partitionKeyLength)
|
|
5257
|
-
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${
|
|
5258
|
-
const $ = S2.map((_2) => this.findLabels(y(
|
|
5257
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${F2.name}`);
|
|
5258
|
+
const $ = S2.map((_2) => this.findLabels(y(F2.axesSpec[_2]))), K = [], j = (_2, W) => {
|
|
5259
5259
|
if (W >= S2.length) {
|
|
5260
5260
|
if (K.push([..._2]), K.length > 1e4)
|
|
5261
5261
|
throw new Error("Too many key combinations, aborting.");
|
|
5262
5262
|
return;
|
|
5263
5263
|
}
|
|
5264
5264
|
const M = S2[W];
|
|
5265
|
-
if (M >=
|
|
5266
|
-
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${
|
|
5267
|
-
const q =
|
|
5265
|
+
if (M >= v2.length)
|
|
5266
|
+
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v2.length}) during split key generation for column ${T.id}`);
|
|
5267
|
+
const q = v2[M];
|
|
5268
5268
|
if (!q || q.length === 0) {
|
|
5269
5269
|
K.length = 0;
|
|
5270
5270
|
return;
|
|
@@ -5274,20 +5274,20 @@
|
|
|
5274
5274
|
};
|
|
5275
5275
|
if (j([], 0), K.length === 0)
|
|
5276
5276
|
continue;
|
|
5277
|
-
const
|
|
5277
|
+
const N2 = [...F2.axesSpec], et = S2.map((_2) => _2);
|
|
5278
5278
|
for (let _2 = S2.length - 1; _2 >= 0; _2--)
|
|
5279
|
-
|
|
5280
|
-
const
|
|
5279
|
+
N2.splice(S2[_2], 1);
|
|
5280
|
+
const tt = { ...F2, axesSpec: N2 };
|
|
5281
5281
|
for (const _2 of K) {
|
|
5282
5282
|
const W = _2.map((M, q) => {
|
|
5283
|
-
const te2 =
|
|
5284
|
-
return { axisIdx: te2, axisId:
|
|
5283
|
+
const te2 = et[q], nt = y(F2.axesSpec[te2]), de2 = $[q], rt = (de2 == null ? void 0 : de2[M]) ?? String(M);
|
|
5284
|
+
return { axisIdx: te2, axisId: nt, value: M, label: rt };
|
|
5285
5285
|
});
|
|
5286
5286
|
f.push({
|
|
5287
5287
|
type: "split",
|
|
5288
5288
|
originalColumn: T,
|
|
5289
|
-
spec:
|
|
5290
|
-
adjustedSpec:
|
|
5289
|
+
spec: F2,
|
|
5290
|
+
adjustedSpec: tt,
|
|
5291
5291
|
dataEntries: c2,
|
|
5292
5292
|
axisFilters: W
|
|
5293
5293
|
});
|
|
@@ -5296,39 +5296,39 @@
|
|
|
5296
5296
|
f.push({
|
|
5297
5297
|
type: "direct",
|
|
5298
5298
|
originalColumn: T,
|
|
5299
|
-
spec:
|
|
5300
|
-
adjustedSpec:
|
|
5299
|
+
spec: F2,
|
|
5300
|
+
adjustedSpec: F2
|
|
5301
5301
|
});
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
5304
5304
|
if (f.length === 0) return [];
|
|
5305
|
-
const d2 =
|
|
5305
|
+
const d2 = ze(
|
|
5306
5306
|
f,
|
|
5307
5307
|
(p2) => ({
|
|
5308
5308
|
spec: p2.spec,
|
|
5309
|
-
suffixTrace: p2.type === "split" ?
|
|
5309
|
+
suffixTrace: p2.type === "split" ? qt(p2.axisFilters) : void 0
|
|
5310
5310
|
}),
|
|
5311
5311
|
l2
|
|
5312
|
-
),
|
|
5313
|
-
for (const { value: p2, label:
|
|
5314
|
-
const { originalColumn:
|
|
5312
|
+
), y$1 = [];
|
|
5313
|
+
for (const { value: p2, label: g2 } of d2) {
|
|
5314
|
+
const { originalColumn: C, spec: E } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, S2 = Bt(x2);
|
|
5315
5315
|
let P;
|
|
5316
|
-
r ? P = r.deriveS(
|
|
5316
|
+
r ? P = r.deriveS(E, S2) : P = Jt(C.id, S2);
|
|
5317
5317
|
let T = { ...p2.adjustedSpec };
|
|
5318
5318
|
s2 && (T = {
|
|
5319
5319
|
...T,
|
|
5320
5320
|
annotations: {
|
|
5321
5321
|
...T.annotations ?? {},
|
|
5322
|
-
"pl7.app/label":
|
|
5322
|
+
"pl7.app/label": g2
|
|
5323
5323
|
}
|
|
5324
|
-
}),
|
|
5324
|
+
}), y$1.push({
|
|
5325
5325
|
id: P,
|
|
5326
5326
|
spec: T,
|
|
5327
|
-
data: () => p2.type === "split" ? Ie(
|
|
5328
|
-
label:
|
|
5327
|
+
data: () => p2.type === "split" ? Ie(Kt(p2.dataEntries, S2)) : p2.originalColumn.data,
|
|
5328
|
+
label: g2
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
5331
|
-
return
|
|
5331
|
+
return y$1;
|
|
5332
5332
|
}
|
|
5333
5333
|
getColumns(e, n2) {
|
|
5334
5334
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5396,9 +5396,9 @@
|
|
|
5396
5396
|
function ke(t) {
|
|
5397
5397
|
return nn(t, (e) => e instanceof O ? e.handle : Ce$1(e) ? Fe(e, (n2) => n2.handle) : e);
|
|
5398
5398
|
}
|
|
5399
|
-
class
|
|
5399
|
+
class Wt {
|
|
5400
5400
|
constructor() {
|
|
5401
|
-
|
|
5401
|
+
V(this, "ctx", b());
|
|
5402
5402
|
}
|
|
5403
5403
|
/**
|
|
5404
5404
|
* @deprecated use getOptions()
|
|
@@ -5409,7 +5409,7 @@
|
|
|
5409
5409
|
getOptions(e, n2) {
|
|
5410
5410
|
const r = typeof e == "function" ? e : rn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5411
5411
|
let o = {}, s2 = false;
|
|
5412
|
-
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ?
|
|
5412
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5413
5413
|
ref: fn(a, s2),
|
|
5414
5414
|
label: l2
|
|
5415
5415
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
@@ -5418,7 +5418,7 @@
|
|
|
5418
5418
|
}));
|
|
5419
5419
|
}
|
|
5420
5420
|
resolveAnchorCtx(e) {
|
|
5421
|
-
if (e instanceof Ge) return e;
|
|
5421
|
+
if (e instanceof Ge$1) return e;
|
|
5422
5422
|
const n2 = {};
|
|
5423
5423
|
for (const [r, i] of Object.entries(e))
|
|
5424
5424
|
if (un(i)) {
|
|
@@ -5428,7 +5428,7 @@
|
|
|
5428
5428
|
n2[r] = o;
|
|
5429
5429
|
} else
|
|
5430
5430
|
n2[r] = i;
|
|
5431
|
-
return new Ge(n2);
|
|
5431
|
+
return new Ge$1(n2);
|
|
5432
5432
|
}
|
|
5433
5433
|
/**
|
|
5434
5434
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5640,7 +5640,7 @@
|
|
|
5640
5640
|
let a = null;
|
|
5641
5641
|
const l2 = this;
|
|
5642
5642
|
return {
|
|
5643
|
-
id:
|
|
5643
|
+
id: Be(i),
|
|
5644
5644
|
spec: s2,
|
|
5645
5645
|
get data() {
|
|
5646
5646
|
var u2;
|
|
@@ -5667,12 +5667,12 @@
|
|
|
5667
5667
|
}
|
|
5668
5668
|
class ne {
|
|
5669
5669
|
constructor() {
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
this.ctx =
|
|
5670
|
+
V(this, "ctx");
|
|
5671
|
+
V(this, "_argsCache");
|
|
5672
|
+
V(this, "_uiStateCache");
|
|
5673
|
+
V(this, "_activeArgsCache");
|
|
5674
|
+
V(this, "resultPool", new Wt());
|
|
5675
|
+
this.ctx = b();
|
|
5676
5676
|
}
|
|
5677
5677
|
get args() {
|
|
5678
5678
|
if (this._argsCache === void 0) {
|
|
@@ -5706,16 +5706,16 @@
|
|
|
5706
5706
|
// return this.ctx.featureFlags;
|
|
5707
5707
|
// }
|
|
5708
5708
|
getNamedAccessor(e) {
|
|
5709
|
-
return
|
|
5709
|
+
return ye(
|
|
5710
5710
|
this.ctx.getAccessorHandleByName(e),
|
|
5711
5711
|
(n2) => new O(n2, [e])
|
|
5712
5712
|
);
|
|
5713
5713
|
}
|
|
5714
5714
|
get prerun() {
|
|
5715
|
-
return this.getNamedAccessor(
|
|
5715
|
+
return this.getNamedAccessor(We);
|
|
5716
5716
|
}
|
|
5717
5717
|
get outputs() {
|
|
5718
|
-
return this.getNamedAccessor(
|
|
5718
|
+
return this.getNamedAccessor(Ge);
|
|
5719
5719
|
}
|
|
5720
5720
|
/**
|
|
5721
5721
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5779,13 +5779,13 @@
|
|
|
5779
5779
|
this.ctx.logError(e);
|
|
5780
5780
|
}
|
|
5781
5781
|
}
|
|
5782
|
-
const X = "1.
|
|
5783
|
-
function
|
|
5782
|
+
const X = "1.41.0";
|
|
5783
|
+
function Gt(t) {
|
|
5784
5784
|
return t.__renderLambda === true;
|
|
5785
5785
|
}
|
|
5786
5786
|
function me(t) {
|
|
5787
5787
|
if (t !== void 0)
|
|
5788
|
-
return
|
|
5788
|
+
return Gt(t) ? t.handle : t;
|
|
5789
5789
|
}
|
|
5790
5790
|
const w = class w2 {
|
|
5791
5791
|
constructor(e, n2, r, i, o, s2, a, l2, u2) {
|
|
@@ -5953,6 +5953,20 @@
|
|
|
5953
5953
|
this._featureFlags
|
|
5954
5954
|
);
|
|
5955
5955
|
}
|
|
5956
|
+
/** Sets or overrides feature flags for the block. */
|
|
5957
|
+
withFeatureFlags(e) {
|
|
5958
|
+
return new w2(
|
|
5959
|
+
this._renderingMode,
|
|
5960
|
+
this._initialArgs,
|
|
5961
|
+
this._initialUiState,
|
|
5962
|
+
this._outputs,
|
|
5963
|
+
this._inputsValid,
|
|
5964
|
+
this._sections,
|
|
5965
|
+
this._title,
|
|
5966
|
+
this._enrichmentTargets,
|
|
5967
|
+
{ ...this._featureFlags, ...e }
|
|
5968
|
+
);
|
|
5969
|
+
}
|
|
5956
5970
|
/**
|
|
5957
5971
|
* Defines how to derive list of upstream references this block is meant to enrich with its exports from block args.
|
|
5958
5972
|
* Influences dependency graph construction.
|
|
@@ -5973,9 +5987,16 @@
|
|
|
5973
5987
|
/** Renders all provided block settings into a pre-configured platforma API
|
|
5974
5988
|
* instance, that can be used in frontend to interact with block state, and
|
|
5975
5989
|
* other features provided by the platforma to the block. */
|
|
5976
|
-
done() {
|
|
5990
|
+
done(e) {
|
|
5991
|
+
const n2 = e ?? 1;
|
|
5992
|
+
return this.withFeatureFlags({
|
|
5993
|
+
...this._featureFlags,
|
|
5994
|
+
requiresUIAPIVersion: n2
|
|
5995
|
+
})._done(n2);
|
|
5996
|
+
}
|
|
5997
|
+
_done(e) {
|
|
5977
5998
|
if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
|
|
5978
|
-
const
|
|
5999
|
+
const n2 = {
|
|
5979
6000
|
v3: {
|
|
5980
6001
|
sdkVersion: X,
|
|
5981
6002
|
renderingMode: this._renderingMode,
|
|
@@ -5995,19 +6016,19 @@
|
|
|
5995
6016
|
inputsValid: me(this._inputsValid),
|
|
5996
6017
|
sections: me(this._sections),
|
|
5997
6018
|
outputs: Object.fromEntries(
|
|
5998
|
-
Object.entries(this._outputs).map(([
|
|
6019
|
+
Object.entries(this._outputs).map(([r, i]) => [r, me(i)])
|
|
5999
6020
|
)
|
|
6000
6021
|
};
|
|
6001
|
-
return
|
|
6022
|
+
return globalThis.platformaApiVersion = e, At() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
|
|
6002
6023
|
}
|
|
6003
6024
|
};
|
|
6004
|
-
|
|
6025
|
+
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
6005
6026
|
supportsLazyState: true,
|
|
6006
6027
|
requiresUIAPIVersion: 1,
|
|
6007
6028
|
requiresModelAPIVersion: 1
|
|
6008
6029
|
});
|
|
6009
|
-
let
|
|
6010
|
-
const platforma =
|
|
6030
|
+
let Oe = w;
|
|
6031
|
+
const platforma = Oe.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
6011
6032
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
6012
6033
|
}).title((ctx) => "Pool explorer").done();
|
|
6013
6034
|
exports2.platforma = platforma;
|