@milaboratories/milaboratories.pool-explorer.model 1.0.62 → 1.0.63
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 +166 -129
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -4030,7 +4030,7 @@
|
|
|
4030
4030
|
return false;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function $e(e) {
|
|
4033
|
+
function $e$1(e) {
|
|
4034
4034
|
return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
|
|
4035
4035
|
}
|
|
4036
4036
|
function Ve$1(e) {
|
|
@@ -4115,7 +4115,7 @@
|
|
|
4115
4115
|
function ne$1(e, n2) {
|
|
4116
4116
|
return e.name === n2.name && ee$1(e.domain, n2.domain);
|
|
4117
4117
|
}
|
|
4118
|
-
function qe
|
|
4118
|
+
function qe(e, n2) {
|
|
4119
4119
|
return { ...e, src: g(e.src, n2) };
|
|
4120
4120
|
}
|
|
4121
4121
|
function g(e, n2) {
|
|
@@ -4318,7 +4318,7 @@
|
|
|
4318
4318
|
function ie$1(e) {
|
|
4319
4319
|
return d(e.spec);
|
|
4320
4320
|
}
|
|
4321
|
-
function Ye(e) {
|
|
4321
|
+
function Ye$1(e) {
|
|
4322
4322
|
if (!ie$1(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4323
4323
|
return e;
|
|
4324
4324
|
}
|
|
@@ -4452,8 +4452,8 @@
|
|
|
4452
4452
|
function fn(e, n2) {
|
|
4453
4453
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4454
4454
|
}
|
|
4455
|
-
const de
|
|
4456
|
-
z$1.string().length(de
|
|
4455
|
+
const de = 24;
|
|
4456
|
+
z$1.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4457
4457
|
var stringify = { exports: {} };
|
|
4458
4458
|
var hasRequiredStringify;
|
|
4459
4459
|
function requireStringify() {
|
|
@@ -4513,22 +4513,22 @@
|
|
|
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 k = (t, e, n2) =>
|
|
4516
|
+
var ze = Object.defineProperty;
|
|
4517
|
+
var Ye = (t, e, n2) => e in t ? ze(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4518
|
+
var k = (t, e, n2) => Ye(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4519
4519
|
function ne(t) {
|
|
4520
4520
|
return { type: "Immediate", value: t };
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function ht() {
|
|
4523
4523
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function Ne(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 gt() {
|
|
4532
4532
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4533
4533
|
}
|
|
4534
4534
|
function v() {
|
|
@@ -4536,13 +4536,13 @@
|
|
|
4536
4536
|
throw new Error("Not in config rendering context");
|
|
4537
4537
|
}
|
|
4538
4538
|
function G(t, e) {
|
|
4539
|
-
const n2 =
|
|
4539
|
+
const n2 = gt();
|
|
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 ue = /* @__PURE__ */ new Map();
|
|
4545
|
-
function
|
|
4545
|
+
function mt(t, e) {
|
|
4546
4546
|
t in v().callbackRegistry || (v().callbackRegistry[t] = (n2) => {
|
|
4547
4547
|
for (const r of ue.get(t))
|
|
4548
4548
|
r(n2);
|
|
@@ -4552,7 +4552,7 @@
|
|
|
4552
4552
|
constructor(e, n2 = (r) => r) {
|
|
4553
4553
|
k(this, "isResolved", false);
|
|
4554
4554
|
k(this, "resolvedValue");
|
|
4555
|
-
this.handle = e, this.postProcess = n2,
|
|
4555
|
+
this.handle = e, this.postProcess = n2, mt(e, (r) => {
|
|
4556
4556
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4557
4557
|
});
|
|
4558
4558
|
}
|
|
@@ -4792,29 +4792,29 @@
|
|
|
4792
4792
|
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h]) => o(u2, h));
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
4795
|
-
const
|
|
4796
|
-
const
|
|
4795
|
+
const Ve = "staging", je = "main";
|
|
4796
|
+
const vt = "pl7.app/label", St = "pl7.app/trace", Ct = 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
|
|
4803
|
-
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((
|
|
4801
|
+
}), wt = z$1.array(Ct), At = 1e-3, Pt = "__LABEL__", _e = "__LABEL__@1";
|
|
4802
|
+
function Me(t, e, n2 = {}) {
|
|
4803
|
+
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((p2) => {
|
|
4804
4804
|
var c2, m2;
|
|
4805
|
-
const b = e(
|
|
4806
|
-
let
|
|
4807
|
-
"spec" in b && typeof b.spec == "object" ? (
|
|
4808
|
-
const E2 = (c2 =
|
|
4805
|
+
const b = e(p2);
|
|
4806
|
+
let d2, y2, S2;
|
|
4807
|
+
"spec" in b && typeof b.spec == "object" ? (d2 = b.spec, y2 = b.prefixTrace, S2 = b.suffixTrace) : d2 = b;
|
|
4808
|
+
const E2 = (c2 = d2.annotations) == null ? void 0 : c2[vt], _2 = (m2 = d2.annotations) == null ? void 0 : m2[St], w = (_2 ? wt.safeParse(JSON.parse(_2)).data : void 0) ?? [], A2 = [
|
|
4809
4809
|
...y2 ?? [],
|
|
4810
4810
|
...w,
|
|
4811
|
-
...
|
|
4811
|
+
...S2 ?? []
|
|
4812
4812
|
];
|
|
4813
4813
|
if (E2 !== void 0) {
|
|
4814
|
-
const T = { label: E2, type:
|
|
4814
|
+
const T = { label: E2, type: Pt, importance: -2 };
|
|
4815
4815
|
n2.addLabelAsSuffix ? A2.push(T) : A2.splice(0, 0, T);
|
|
4816
4816
|
}
|
|
4817
|
-
const
|
|
4817
|
+
const C2 = [], I = /* @__PURE__ */ new Map();
|
|
4818
4818
|
for (let T = A2.length - 1; T >= 0; --T) {
|
|
4819
4819
|
const { type: U } = A2[T], V = A2[T].importance ?? 0, J = (I.get(U) ?? 0) + 1;
|
|
4820
4820
|
I.set(U, J);
|
|
@@ -4823,56 +4823,56 @@
|
|
|
4823
4823
|
K,
|
|
4824
4824
|
Math.max(
|
|
4825
4825
|
r.get(K) ?? Number.NEGATIVE_INFINITY,
|
|
4826
|
-
V - (A2.length - T) *
|
|
4826
|
+
V - (A2.length - T) * At
|
|
4827
4827
|
)
|
|
4828
|
-
),
|
|
4828
|
+
), C2.push({ ...A2[T], fullType: K, occurrenceIndex: J });
|
|
4829
4829
|
}
|
|
4830
|
-
return
|
|
4831
|
-
value:
|
|
4832
|
-
spec:
|
|
4830
|
+
return C2.reverse(), {
|
|
4831
|
+
value: p2,
|
|
4832
|
+
spec: d2,
|
|
4833
4833
|
label: E2,
|
|
4834
|
-
fullTrace:
|
|
4834
|
+
fullTrace: C2
|
|
4835
4835
|
};
|
|
4836
4836
|
}), a = [], l2 = [], u2 = [...r];
|
|
4837
|
-
u2.sort(([,
|
|
4838
|
-
for (const [
|
|
4839
|
-
|
|
4840
|
-
const h = (
|
|
4841
|
-
const
|
|
4837
|
+
u2.sort(([, p2], [, b]) => b - p2);
|
|
4838
|
+
for (const [p2] of u2)
|
|
4839
|
+
p2.endsWith("@1") || s2.get(p2) === t.length ? a.push(p2) : l2.push(p2);
|
|
4840
|
+
const h = (p2, b = false) => {
|
|
4841
|
+
const d2 = [];
|
|
4842
4842
|
for (let y2 = 0; y2 < o.length; y2++) {
|
|
4843
|
-
const
|
|
4843
|
+
const S2 = o[y2], E2 = S2.fullTrace.filter((A2) => p2.has(A2.fullType) || i && i.has(A2.type));
|
|
4844
4844
|
if (E2.length === 0)
|
|
4845
4845
|
if (b)
|
|
4846
|
-
|
|
4846
|
+
d2.push({
|
|
4847
4847
|
label: "Unlabeled",
|
|
4848
|
-
value:
|
|
4848
|
+
value: S2.value
|
|
4849
4849
|
});
|
|
4850
4850
|
else return;
|
|
4851
4851
|
const _2 = E2.map((A2) => A2.label), w = n2.separator ?? " / ";
|
|
4852
|
-
|
|
4852
|
+
d2.push({
|
|
4853
4853
|
label: _2.join(w),
|
|
4854
|
-
value:
|
|
4854
|
+
value: S2.value
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
4857
|
-
return
|
|
4857
|
+
return d2;
|
|
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(_e), true);
|
|
4862
4862
|
}
|
|
4863
4863
|
let f = 0, g2 = -1;
|
|
4864
4864
|
for (; f < a.length; ) {
|
|
4865
|
-
const
|
|
4866
|
-
n2.includeNativeLabel &&
|
|
4867
|
-
for (let
|
|
4868
|
-
g2 >= 0 &&
|
|
4869
|
-
const b = h(
|
|
4870
|
-
if (b !== void 0 && new Set(b.map((
|
|
4865
|
+
const p2 = /* @__PURE__ */ new Set();
|
|
4866
|
+
n2.includeNativeLabel && p2.add(_e);
|
|
4867
|
+
for (let d2 = 0; d2 < f; ++d2) p2.add(a[d2]);
|
|
4868
|
+
g2 >= 0 && p2.add(a[g2]);
|
|
4869
|
+
const b = h(p2);
|
|
4870
|
+
if (b !== void 0 && new Set(b.map((d2) => d2.label)).size === t.length) return b;
|
|
4871
4871
|
g2++, g2 >= a.length && (f++, g2 = f);
|
|
4872
4872
|
}
|
|
4873
4873
|
return h(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4874
4874
|
}
|
|
4875
|
-
const Q = "PColumnData/", ie = Q + "ResourceMap", se = Q + "Partitioned/ResourceMap", H = Q + "JsonPartitioned", B = Q + "BinaryPartitioned",
|
|
4875
|
+
const Q = "PColumnData/", ie = Q + "ResourceMap", se = Q + "Partitioned/ResourceMap", H = Q + "JsonPartitioned", B = Q + "BinaryPartitioned", $e = Q + "Partitioned/", oe = $e + "JsonPartitioned", q = $e + "BinaryPartitioned";
|
|
4876
4876
|
const ge = (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 xt(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 _t(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 It(t) {
|
|
4949
4949
|
if (t === void 0) return;
|
|
4950
4950
|
if (_(t))
|
|
4951
|
-
return
|
|
4952
|
-
const e =
|
|
4951
|
+
return _t(t);
|
|
4952
|
+
const e = xt(t);
|
|
4953
4953
|
if (!e) return;
|
|
4954
4954
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4955
4955
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -5060,7 +5060,7 @@
|
|
|
5060
5060
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
|
-
function
|
|
5063
|
+
function Tt(t) {
|
|
5064
5064
|
if (t !== void 0) {
|
|
5065
5065
|
if (_(t)) return t;
|
|
5066
5066
|
if (Oe(t)) return Ve$1(t);
|
|
@@ -5068,7 +5068,7 @@
|
|
|
5068
5068
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5069
5069
|
}
|
|
5070
5070
|
}
|
|
5071
|
-
function
|
|
5071
|
+
function Lt(t, e) {
|
|
5072
5072
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5073
5073
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5074
5074
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5128,13 +5128,13 @@
|
|
|
5128
5128
|
}
|
|
5129
5129
|
}
|
|
5130
5130
|
}
|
|
5131
|
-
function
|
|
5131
|
+
function Ft(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 Et {
|
|
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 kt(t) {
|
|
5147
5147
|
if (t)
|
|
5148
5148
|
return t.map((e) => ({
|
|
5149
5149
|
type: `split:${_e$1(e.axisId)}`,
|
|
@@ -5152,16 +5152,16 @@
|
|
|
5152
5152
|
// High importance for split filters in labels
|
|
5153
5153
|
}));
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function Dt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5158
5158
|
}
|
|
5159
|
-
function
|
|
5159
|
+
function Ot(t, e) {
|
|
5160
5160
|
if (!e || e.length === 0) return t;
|
|
5161
5161
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5162
5162
|
return Re({ id: t, axisFilters: n2 });
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Ie(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;
|
|
@@ -5177,7 +5177,7 @@
|
|
|
5177
5177
|
class ae {
|
|
5178
5178
|
constructor() {
|
|
5179
5179
|
k(this, "defaultProviderStore", []);
|
|
5180
|
-
k(this, "providers", [new
|
|
5180
|
+
k(this, "providers", [new Et(this.defaultProviderStore)]);
|
|
5181
5181
|
k(this, "axisLabelProviders", []);
|
|
5182
5182
|
}
|
|
5183
5183
|
addColumnProvider(e) {
|
|
@@ -5206,53 +5206,53 @@
|
|
|
5206
5206
|
};
|
|
5207
5207
|
let u2 = () => false;
|
|
5208
5208
|
if (a) {
|
|
5209
|
-
const
|
|
5210
|
-
if (
|
|
5209
|
+
const d2 = (Array.isArray(a) ? a : [a]).map((y2) => {
|
|
5210
|
+
if (Ie(y2)) {
|
|
5211
5211
|
if (!r)
|
|
5212
5212
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5213
5213
|
return nn(We(r.anchors, y2, n2));
|
|
5214
5214
|
} else
|
|
5215
5215
|
return nn(y2);
|
|
5216
5216
|
});
|
|
5217
|
-
u2 = (y2) =>
|
|
5217
|
+
u2 = (y2) => d2.some((S2) => S2(y2));
|
|
5218
5218
|
}
|
|
5219
5219
|
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], g2 = /* @__PURE__ */ new Set();
|
|
5220
|
-
for (const
|
|
5221
|
-
const y$1 =
|
|
5222
|
-
let
|
|
5220
|
+
for (const d$1 of h) {
|
|
5221
|
+
const y$1 = Ie(d$1);
|
|
5222
|
+
let S2;
|
|
5223
5223
|
if (y$1) {
|
|
5224
5224
|
if (!r)
|
|
5225
5225
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5226
|
-
|
|
5226
|
+
S2 = We(r.anchors, d$1, n2);
|
|
5227
5227
|
} else
|
|
5228
|
-
|
|
5228
|
+
S2 = d$1;
|
|
5229
5229
|
const E2 = /* @__PURE__ */ new Set(), _2 = [];
|
|
5230
|
-
for (const
|
|
5231
|
-
const I =
|
|
5230
|
+
for (const C2 of this.providers) {
|
|
5231
|
+
const I = C2.selectColumns(S2);
|
|
5232
5232
|
for (const c2 of I) {
|
|
5233
5233
|
if (u2(c2.spec)) continue;
|
|
5234
5234
|
if (E2.has(c2.id))
|
|
5235
|
-
throw new Error(`Duplicate column id ${c2.id} in provider ${
|
|
5235
|
+
throw new Error(`Duplicate column id ${c2.id} in provider ${C2.constructor.name}`);
|
|
5236
5236
|
const m2 = tn(c2.spec);
|
|
5237
5237
|
g2.has(m2) || (E2.add(c2.id), g2.add(m2), _2.push(c2));
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
5240
5240
|
if (_2.length === 0) continue;
|
|
5241
|
-
const w = Rt(
|
|
5242
|
-
for (const
|
|
5243
|
-
if (!d(
|
|
5244
|
-
const I =
|
|
5241
|
+
const w = Rt(d$1), A2 = w.length > 0;
|
|
5242
|
+
for (const C2 of _2) {
|
|
5243
|
+
if (!d(C2.spec)) continue;
|
|
5244
|
+
const I = C2.spec;
|
|
5245
5245
|
if (A2) {
|
|
5246
|
-
if (
|
|
5247
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5248
|
-
const c2 =
|
|
5246
|
+
if (Ft(C2.data))
|
|
5247
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${C2.id}`);
|
|
5248
|
+
const c2 = Tt(C2.data);
|
|
5249
5249
|
if (!c2) {
|
|
5250
5250
|
if (s2) continue;
|
|
5251
5251
|
return;
|
|
5252
5252
|
}
|
|
5253
|
-
if (!$e(c2))
|
|
5254
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${
|
|
5255
|
-
const m2 =
|
|
5253
|
+
if (!$e$1(c2))
|
|
5254
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${C2.id}`);
|
|
5255
|
+
const m2 = It(c2), T = w[w.length - 1];
|
|
5256
5256
|
if (T >= c2.partitionKeyLength)
|
|
5257
5257
|
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${T}) in column ${I.name}`);
|
|
5258
5258
|
const U = w.map((L2) => this.findLabels(y(I.axesSpec[L2]))), V = [], J = (L2, W) => {
|
|
@@ -5263,7 +5263,7 @@
|
|
|
5263
5263
|
}
|
|
5264
5264
|
const j = w[W];
|
|
5265
5265
|
if (j >= m2.length)
|
|
5266
|
-
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${m2.length}) during split key generation for column ${
|
|
5266
|
+
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${m2.length}) during split key generation for column ${C2.id}`);
|
|
5267
5267
|
const M = m2[j];
|
|
5268
5268
|
if (!M || M.length === 0) {
|
|
5269
5269
|
V.length = 0;
|
|
@@ -5274,20 +5274,20 @@
|
|
|
5274
5274
|
};
|
|
5275
5275
|
if (J([], 0), V.length === 0)
|
|
5276
5276
|
continue;
|
|
5277
|
-
const K = [...I.axesSpec],
|
|
5277
|
+
const K = [...I.axesSpec], We2 = w.map((L2) => L2);
|
|
5278
5278
|
for (let L2 = w.length - 1; L2 >= 0; L2--)
|
|
5279
5279
|
K.splice(w[L2], 1);
|
|
5280
|
-
const
|
|
5280
|
+
const Ge = { ...I, axesSpec: K };
|
|
5281
5281
|
for (const L2 of V) {
|
|
5282
5282
|
const W = L2.map((j, M) => {
|
|
5283
|
-
const Z =
|
|
5284
|
-
return { axisIdx: Z, axisId:
|
|
5283
|
+
const Z = We2[M], He2 = y(I.axesSpec[Z]), le = U[M], qe2 = (le == null ? void 0 : le[j]) ?? String(j);
|
|
5284
|
+
return { axisIdx: Z, axisId: He2, value: j, label: qe2 };
|
|
5285
5285
|
});
|
|
5286
5286
|
f.push({
|
|
5287
5287
|
type: "split",
|
|
5288
|
-
originalColumn:
|
|
5288
|
+
originalColumn: C2,
|
|
5289
5289
|
spec: I,
|
|
5290
|
-
adjustedSpec:
|
|
5290
|
+
adjustedSpec: Ge,
|
|
5291
5291
|
dataEntries: c2,
|
|
5292
5292
|
axisFilters: W
|
|
5293
5293
|
});
|
|
@@ -5295,36 +5295,36 @@
|
|
|
5295
5295
|
} else
|
|
5296
5296
|
f.push({
|
|
5297
5297
|
type: "direct",
|
|
5298
|
-
originalColumn:
|
|
5298
|
+
originalColumn: C2,
|
|
5299
5299
|
spec: I,
|
|
5300
5300
|
adjustedSpec: I
|
|
5301
5301
|
});
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
5304
5304
|
if (f.length === 0) return [];
|
|
5305
|
-
const
|
|
5305
|
+
const p2 = Me(
|
|
5306
5306
|
f,
|
|
5307
|
-
(
|
|
5308
|
-
spec:
|
|
5309
|
-
suffixTrace:
|
|
5307
|
+
(d2) => ({
|
|
5308
|
+
spec: d2.spec,
|
|
5309
|
+
suffixTrace: d2.type === "split" ? kt(d2.axisFilters) : void 0
|
|
5310
5310
|
}),
|
|
5311
5311
|
l2
|
|
5312
5312
|
), b = [];
|
|
5313
|
-
for (const { value:
|
|
5314
|
-
const { originalColumn:
|
|
5313
|
+
for (const { value: d2, label: y2 } of p2) {
|
|
5314
|
+
const { originalColumn: S2, spec: E2 } = d2, _2 = d2.type === "split" ? d2.axisFilters : void 0, w = Dt(_2);
|
|
5315
5315
|
let A2;
|
|
5316
|
-
r ? A2 = r.deriveS(E2, w) : A2 =
|
|
5317
|
-
let
|
|
5318
|
-
o && (
|
|
5319
|
-
...
|
|
5316
|
+
r ? A2 = r.deriveS(E2, w) : A2 = Ot(S2.id, w);
|
|
5317
|
+
let C2 = { ...d2.adjustedSpec };
|
|
5318
|
+
o && (C2 = {
|
|
5319
|
+
...C2,
|
|
5320
5320
|
annotations: {
|
|
5321
|
-
...
|
|
5321
|
+
...C2.annotations ?? {},
|
|
5322
5322
|
"pl7.app/label": y2
|
|
5323
5323
|
}
|
|
5324
5324
|
}), b.push({
|
|
5325
5325
|
id: A2,
|
|
5326
|
-
spec:
|
|
5327
|
-
data: () =>
|
|
5326
|
+
spec: C2,
|
|
5327
|
+
data: () => d2.type === "split" ? Ie$1(Lt(d2.dataEntries, w)) : d2.originalColumn.data,
|
|
5328
5328
|
label: y2
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
@@ -5353,6 +5353,39 @@
|
|
|
5353
5353
|
return i;
|
|
5354
5354
|
}
|
|
5355
5355
|
}
|
|
5356
|
+
function ye(t) {
|
|
5357
|
+
const e = (i) => i.operator !== "InSet" ? i : {
|
|
5358
|
+
operator: "Or",
|
|
5359
|
+
operands: i.references.map((s2) => ({
|
|
5360
|
+
operator: "Equal",
|
|
5361
|
+
reference: s2
|
|
5362
|
+
}))
|
|
5363
|
+
}, n2 = (i, s2) => {
|
|
5364
|
+
switch (i.operator) {
|
|
5365
|
+
case "And":
|
|
5366
|
+
return {
|
|
5367
|
+
...i,
|
|
5368
|
+
operands: i.operands.map((a) => n2(a, s2))
|
|
5369
|
+
};
|
|
5370
|
+
case "Or":
|
|
5371
|
+
return {
|
|
5372
|
+
...i,
|
|
5373
|
+
operands: i.operands.map((a) => n2(a, s2))
|
|
5374
|
+
};
|
|
5375
|
+
case "Not":
|
|
5376
|
+
return {
|
|
5377
|
+
...i,
|
|
5378
|
+
operand: n2(i.operand, s2)
|
|
5379
|
+
};
|
|
5380
|
+
default:
|
|
5381
|
+
return s2(i);
|
|
5382
|
+
}
|
|
5383
|
+
}, r = (i, s2) => ({
|
|
5384
|
+
...i,
|
|
5385
|
+
predicate: n2(i.predicate, s2)
|
|
5386
|
+
});
|
|
5387
|
+
return t.map((i) => r(i, e));
|
|
5388
|
+
}
|
|
5356
5389
|
function ce(t, e) {
|
|
5357
5390
|
if (t === void 0) return e === void 0;
|
|
5358
5391
|
if (e === void 0) return true;
|
|
@@ -5360,10 +5393,10 @@
|
|
|
5360
5393
|
if (t[n2] !== e[n2]) return false;
|
|
5361
5394
|
return true;
|
|
5362
5395
|
}
|
|
5363
|
-
function
|
|
5396
|
+
function Te(t) {
|
|
5364
5397
|
return Ze(t, (e) => e instanceof D ? e.handle : Oe(e) ? Ce(e, (n2) => n2.handle) : e);
|
|
5365
5398
|
}
|
|
5366
|
-
class
|
|
5399
|
+
class Kt {
|
|
5367
5400
|
constructor() {
|
|
5368
5401
|
k(this, "ctx", v());
|
|
5369
5402
|
}
|
|
@@ -5376,7 +5409,7 @@
|
|
|
5376
5409
|
getOptions(e, n2) {
|
|
5377
5410
|
const r = typeof e == "function" ? e : nn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5378
5411
|
let s2 = {}, o = false;
|
|
5379
|
-
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ?
|
|
5412
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Me(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5380
5413
|
ref: un(a, o),
|
|
5381
5414
|
label: l2
|
|
5382
5415
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
@@ -5530,7 +5563,7 @@
|
|
|
5530
5563
|
getPColumnByRef(e) {
|
|
5531
5564
|
const n2 = this.getDataByRef(e);
|
|
5532
5565
|
if (n2)
|
|
5533
|
-
return Ye(n2);
|
|
5566
|
+
return Ye$1(n2);
|
|
5534
5567
|
}
|
|
5535
5568
|
/**
|
|
5536
5569
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5638,7 +5671,7 @@
|
|
|
5638
5671
|
k(this, "_argsCache");
|
|
5639
5672
|
k(this, "_uiStateCache");
|
|
5640
5673
|
k(this, "_activeArgsCache");
|
|
5641
|
-
k(this, "resultPool", new
|
|
5674
|
+
k(this, "resultPool", new Kt());
|
|
5642
5675
|
this.ctx = v();
|
|
5643
5676
|
}
|
|
5644
5677
|
get args() {
|
|
@@ -5679,10 +5712,10 @@
|
|
|
5679
5712
|
);
|
|
5680
5713
|
}
|
|
5681
5714
|
get prerun() {
|
|
5682
|
-
return this.getNamedAccessor(
|
|
5715
|
+
return this.getNamedAccessor(Ve);
|
|
5683
5716
|
}
|
|
5684
5717
|
get outputs() {
|
|
5685
|
-
return this.getNamedAccessor(
|
|
5718
|
+
return this.getNamedAccessor(je);
|
|
5686
5719
|
}
|
|
5687
5720
|
/**
|
|
5688
5721
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5698,17 +5731,21 @@
|
|
|
5698
5731
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5699
5732
|
}
|
|
5700
5733
|
patchPTableDef(e) {
|
|
5701
|
-
var n2;
|
|
5702
|
-
return (n2 = this.ctx.featureFlags) != null && n2.pTablePartitionFiltersSupport
|
|
5734
|
+
var n2, r;
|
|
5735
|
+
return (n2 = this.ctx.featureFlags) != null && n2.pTablePartitionFiltersSupport || (e = {
|
|
5703
5736
|
...e,
|
|
5704
5737
|
partitionFilters: [],
|
|
5705
5738
|
filters: [...e.partitionFilters, ...e.filters]
|
|
5706
|
-
}
|
|
5739
|
+
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
5740
|
+
...e,
|
|
5741
|
+
partitionFilters: ye(e.partitionFilters),
|
|
5742
|
+
filters: ye(e.filters)
|
|
5743
|
+
}), e;
|
|
5707
5744
|
}
|
|
5708
5745
|
// TODO remove all non-PColumn fields
|
|
5709
5746
|
createPFrame(e) {
|
|
5710
5747
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5711
|
-
e.map((n2) =>
|
|
5748
|
+
e.map((n2) => Te(n2))
|
|
5712
5749
|
);
|
|
5713
5750
|
}
|
|
5714
5751
|
createPTable(e) {
|
|
@@ -5722,7 +5759,7 @@
|
|
|
5722
5759
|
filters: [],
|
|
5723
5760
|
sorting: e.sorting ?? []
|
|
5724
5761
|
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(en(n2.src)), this.ctx.createPTable(
|
|
5725
|
-
qe
|
|
5762
|
+
qe(n2, (r) => Te(r))
|
|
5726
5763
|
);
|
|
5727
5764
|
}
|
|
5728
5765
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5742,13 +5779,13 @@
|
|
|
5742
5779
|
this.ctx.logError(e);
|
|
5743
5780
|
}
|
|
5744
5781
|
}
|
|
5745
|
-
const z = "1.39.
|
|
5746
|
-
function
|
|
5782
|
+
const z = "1.39.6";
|
|
5783
|
+
function Nt(t) {
|
|
5747
5784
|
return t.__renderLambda === true;
|
|
5748
5785
|
}
|
|
5749
|
-
function
|
|
5786
|
+
function pe(t) {
|
|
5750
5787
|
if (t !== void 0)
|
|
5751
|
-
return
|
|
5788
|
+
return Nt(t) ? t.handle : t;
|
|
5752
5789
|
}
|
|
5753
5790
|
const x = class x2 {
|
|
5754
5791
|
constructor(e, n2, r, i, s2, o, a, l2, u2) {
|
|
@@ -5955,13 +5992,13 @@
|
|
|
5955
5992
|
sdkVersion: z,
|
|
5956
5993
|
renderingMode: this._renderingMode,
|
|
5957
5994
|
initialArgs: this._initialArgs,
|
|
5958
|
-
inputsValid:
|
|
5959
|
-
sections:
|
|
5995
|
+
inputsValid: pe(this._inputsValid),
|
|
5996
|
+
sections: pe(this._sections),
|
|
5960
5997
|
outputs: Object.fromEntries(
|
|
5961
|
-
Object.entries(this._outputs).map(([n2, r]) => [n2,
|
|
5998
|
+
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5962
5999
|
)
|
|
5963
6000
|
};
|
|
5964
|
-
return
|
|
6001
|
+
return ht() ? Ne({ sdkVersion: z }) : { config: e };
|
|
5965
6002
|
}
|
|
5966
6003
|
};
|
|
5967
6004
|
k(x, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
@@ -5969,8 +6006,8 @@
|
|
|
5969
6006
|
requiresUIAPIVersion: 1,
|
|
5970
6007
|
requiresModelAPIVersion: 1
|
|
5971
6008
|
});
|
|
5972
|
-
let
|
|
5973
|
-
const platforma =
|
|
6009
|
+
let Le = x;
|
|
6010
|
+
const platforma = Le.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
5974
6011
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
5975
6012
|
}).title((ctx) => "Pool explorer").done();
|
|
5976
6013
|
exports2.platforma = platforma;
|