@platforma-sdk/model 1.33.17 → 1.34.8
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/dist/components/PFrameForGraphs.d.ts +12 -0
- package/dist/components/PFrameForGraphs.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.d.ts +9 -7
- package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +216 -220
- package/dist/index.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/PFrameForGraphs.ts +12 -0
- package/src/components/PlMultiSequenceAlignment.ts +34 -49
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var qe = Object.defineProperty;
|
|
2
2
|
var ze = (t, e, n) => e in t ? qe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var O = (t, e, n) => ze(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { isPColumn as Le, mapPObjectData as be, isDataInfoEntries as Te, isDataInfo as we, dataInfoToEntries as Ye, selectorsToPredicate as X, resolveAnchors as Ae, deriveNativeId as Xe, isPColumnSpec as ne, isPartitionedDataInfoEntries as Qe, getAxisId as D, entriesToDataInfo as Ze, canonicalizeAxisId as et, withEnrichments as xe, AnchoredIdDeriver as Ce, isPlRef as tt, mapValueInVOE as nt, ensurePColumn as rt, extractAllColumns as it, mapPTableDef as st, mapDataInfo as ot, canonicalizeJson as
|
|
4
|
+
import { isPColumn as Le, mapPObjectData as be, isDataInfoEntries as Te, isDataInfo as we, dataInfoToEntries as Ye, selectorsToPredicate as X, resolveAnchors as Ae, deriveNativeId as Xe, isPColumnSpec as ne, isPartitionedDataInfoEntries as Qe, getAxisId as D, entriesToDataInfo as Ze, canonicalizeAxisId as et, withEnrichments as xe, AnchoredIdDeriver as Ce, isPlRef as tt, mapValueInVOE as nt, ensurePColumn as rt, extractAllColumns as it, mapPTableDef as st, mapDataInfo as ot, canonicalizeJson as K, matchAxisId as U, getColumnIdAndSpec as Ee, parseJson as fe, isPTableAbsent as at, uniquePlId as lt, PTableNA as ut } from "@milaboratories/pl-model-common";
|
|
5
5
|
export * from "@milaboratories/pl-model-common";
|
|
6
6
|
import ke from "canonicalize";
|
|
7
7
|
import { z as M } from "zod";
|
|
8
8
|
export * from "@milaboratories/pl-error-like";
|
|
9
|
-
class
|
|
9
|
+
class ct extends Error {
|
|
10
10
|
constructor(e, n) {
|
|
11
11
|
super(`${e.length}${n ? "+" : ""} errors, first error: ` + e[0].message), this.errors = e, this.moreErrors = n;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
if (!t.ok) throw new
|
|
14
|
+
function dt(t) {
|
|
15
|
+
if (!t.ok) throw new ct(t.errors, t.moreErrors);
|
|
16
16
|
return t.value;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Zt(t) {
|
|
19
19
|
return new Proxy(t, {
|
|
20
20
|
get(e, n) {
|
|
21
|
-
return
|
|
21
|
+
return dt(e[n]);
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
}
|
|
@@ -28,13 +28,13 @@ function C(t) {
|
|
|
28
28
|
function Q(t) {
|
|
29
29
|
return { type: "GetFromCtx", variable: t };
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function en(t) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Isolate",
|
|
34
34
|
cfg: t
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
const
|
|
37
|
+
const tn = Q("$args"), nn = Q("$it"), rn = Q("$prod"), sn = Q("$staging"), on = Q("$ui");
|
|
38
38
|
function re(t) {
|
|
39
39
|
return { type: "Immediate", value: t };
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function Oe(t) {
|
|
|
46
46
|
template: e
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function an(...t) {
|
|
50
50
|
const e = [];
|
|
51
51
|
for (const n of t) e.push(C(n));
|
|
52
52
|
return {
|
|
@@ -61,7 +61,7 @@ function ie(t, e) {
|
|
|
61
61
|
field: C(e)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ln(t, e, n = "$it") {
|
|
65
65
|
return {
|
|
66
66
|
type: "MapRecordValues",
|
|
67
67
|
source: t,
|
|
@@ -69,7 +69,7 @@ function an(t, e, n = "$it") {
|
|
|
69
69
|
itVar: n
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function un(t, e, n = "$it") {
|
|
73
73
|
return {
|
|
74
74
|
type: "MapArrayValues",
|
|
75
75
|
source: t,
|
|
@@ -77,46 +77,46 @@ function ln(t, e, n = "$it") {
|
|
|
77
77
|
itVar: n
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function cn(t) {
|
|
81
81
|
return {
|
|
82
82
|
type: "Flatten",
|
|
83
83
|
source: t
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function dn(t) {
|
|
87
87
|
return {
|
|
88
88
|
type: "IsEmpty",
|
|
89
89
|
arg: t
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function pn(t) {
|
|
93
93
|
return {
|
|
94
94
|
type: "Not",
|
|
95
95
|
operand: t
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function fn(t, e) {
|
|
99
99
|
return {
|
|
100
100
|
type: "And",
|
|
101
101
|
operand1: t,
|
|
102
102
|
operand2: e
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function hn(t, e) {
|
|
106
106
|
return {
|
|
107
107
|
type: "Or",
|
|
108
108
|
operand1: t,
|
|
109
109
|
operand2: e
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function gn(t, e) {
|
|
113
113
|
return {
|
|
114
114
|
type: "GetResourceField",
|
|
115
115
|
source: C(t),
|
|
116
116
|
field: C(e)
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function mn() {
|
|
120
120
|
return function(t) {
|
|
121
121
|
return {
|
|
122
122
|
type: "GetResourceValueAsJson",
|
|
@@ -124,7 +124,7 @@ function gn() {
|
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function yn(t, e, n = "$it") {
|
|
128
128
|
return {
|
|
129
129
|
type: "MapResourceFields",
|
|
130
130
|
source: t,
|
|
@@ -132,21 +132,21 @@ function mn(t, e, n = "$it") {
|
|
|
132
132
|
itVar: n
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function vn(t, e) {
|
|
136
136
|
return {
|
|
137
137
|
type: "GetBlobContent",
|
|
138
138
|
range: e,
|
|
139
139
|
source: C(t)
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function bn(t, e) {
|
|
143
143
|
return {
|
|
144
144
|
type: "GetBlobContentAsString",
|
|
145
145
|
range: e,
|
|
146
146
|
source: C(t)
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function wn() {
|
|
150
150
|
return function(t, e) {
|
|
151
151
|
return {
|
|
152
152
|
type: "GetBlobContentAsJson",
|
|
@@ -155,59 +155,59 @@ function bn() {
|
|
|
155
155
|
};
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function An(t) {
|
|
159
159
|
return {
|
|
160
160
|
type: "GetDownloadedBlobContent",
|
|
161
161
|
source: C(t)
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function xn(t) {
|
|
165
165
|
return {
|
|
166
166
|
type: "GetOnDemandBlobContent",
|
|
167
167
|
source: C(t)
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Cn(t, e) {
|
|
171
171
|
return {
|
|
172
172
|
type: "ExtractArchiveAndGetURL",
|
|
173
173
|
format: e,
|
|
174
174
|
source: C(t)
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Pn(t) {
|
|
178
178
|
return {
|
|
179
179
|
type: "GetImportProgress",
|
|
180
180
|
source: C(t)
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Sn(t, e) {
|
|
184
184
|
return {
|
|
185
185
|
type: "GetLastLogs",
|
|
186
186
|
source: C(t),
|
|
187
187
|
lines: e
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function _n(t, e) {
|
|
191
191
|
return {
|
|
192
192
|
type: "GetProgressLog",
|
|
193
193
|
source: C(t),
|
|
194
194
|
patternToSearch: e
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function In(t, e) {
|
|
198
198
|
return {
|
|
199
199
|
type: "GetProgressLogWithInfo",
|
|
200
200
|
source: C(t),
|
|
201
201
|
patternToSearch: e
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Ln(t) {
|
|
205
205
|
return {
|
|
206
206
|
type: "GetLogHandle",
|
|
207
207
|
source: C(t)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function pt() {
|
|
211
211
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
212
212
|
}
|
|
213
213
|
function De(t) {
|
|
@@ -216,7 +216,7 @@ function De(t) {
|
|
|
216
216
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
217
217
|
throw new Error("Can't get platforma instance.");
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function ft() {
|
|
220
220
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
221
221
|
}
|
|
222
222
|
function m() {
|
|
@@ -224,13 +224,13 @@ function m() {
|
|
|
224
224
|
throw new Error("Not in config rendering context");
|
|
225
225
|
}
|
|
226
226
|
function H(t, e) {
|
|
227
|
-
const n =
|
|
227
|
+
const n = ft();
|
|
228
228
|
if (n === void 0) return !1;
|
|
229
229
|
if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
230
230
|
return n.callbackRegistry[t] = e, !0;
|
|
231
231
|
}
|
|
232
232
|
const ce = /* @__PURE__ */ new Map();
|
|
233
|
-
function
|
|
233
|
+
function ht(t, e) {
|
|
234
234
|
t in m().callbackRegistry || (m().callbackRegistry[t] = (n) => {
|
|
235
235
|
for (const r of ce.get(t))
|
|
236
236
|
r(n);
|
|
@@ -240,7 +240,7 @@ class _ {
|
|
|
240
240
|
constructor(e, n = (r) => r) {
|
|
241
241
|
O(this, "isResolved", !1);
|
|
242
242
|
O(this, "resolvedValue");
|
|
243
|
-
this.handle = e, this.postProcess = n,
|
|
243
|
+
this.handle = e, this.postProcess = n, ht(e, (r) => {
|
|
244
244
|
this.resolvedValue = n(r), this.isResolved = !0;
|
|
245
245
|
});
|
|
246
246
|
}
|
|
@@ -480,7 +480,7 @@ class E {
|
|
|
480
480
|
return s && (l = l.filter((u) => u[1] !== void 0)), l.map(([u, c]) => o(u, c));
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const Re = "staging", Fe = "main",
|
|
483
|
+
const Re = "staging", Fe = "main", gt = {
|
|
484
484
|
explicitColumnsSupport: !0,
|
|
485
485
|
inlineColumnsSupport: !0,
|
|
486
486
|
activeArgs: !0
|
|
@@ -498,50 +498,50 @@ function ge(t, e, n) {
|
|
|
498
498
|
for (const [, i] of Object.entries(n))
|
|
499
499
|
i !== n && ge(t, e, i);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function mt(t) {
|
|
502
502
|
const e = /* @__PURE__ */ new Set();
|
|
503
503
|
return ge(e, /* @__PURE__ */ new Set(), t), e;
|
|
504
504
|
}
|
|
505
|
-
const
|
|
505
|
+
const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
506
506
|
__proto__: null,
|
|
507
|
-
GlobalCfgRenderCtxFeatureFlags:
|
|
507
|
+
GlobalCfgRenderCtxFeatureFlags: gt,
|
|
508
508
|
MainAccessorName: Fe,
|
|
509
509
|
StagingAccessorName: Re,
|
|
510
|
-
getAllFutureAwaits:
|
|
510
|
+
getAllFutureAwaits: mt,
|
|
511
511
|
isFutureAwait: Ke
|
|
512
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
512
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = "pl7.app/label", vt = "pl7.app/trace", bt = M.object({
|
|
513
513
|
type: M.string(),
|
|
514
514
|
importance: M.number().optional(),
|
|
515
515
|
id: M.string().optional(),
|
|
516
516
|
label: M.string()
|
|
517
|
-
}),
|
|
518
|
-
function
|
|
517
|
+
}), wt = M.array(bt), At = 1e-3, xt = "__LABEL__", Pe = "__LABEL__@1";
|
|
518
|
+
function je(t, e, n = {}) {
|
|
519
519
|
const r = /* @__PURE__ */ new Map(), i = n.forceTraceElements !== void 0 && n.forceTraceElements.length > 0 ? new Set(n.forceTraceElements) : void 0, s = /* @__PURE__ */ new Map(), o = t.map((f) => {
|
|
520
|
-
var P,
|
|
520
|
+
var P, R;
|
|
521
521
|
const w = e(f);
|
|
522
522
|
let p, g, b;
|
|
523
523
|
"spec" in w && typeof w.spec == "object" ? (p = w.spec, g = w.prefixTrace, b = w.suffixTrace) : p = w;
|
|
524
|
-
const h = (P = p.annotations) == null ? void 0 : P[
|
|
524
|
+
const h = (P = p.annotations) == null ? void 0 : P[yt], I = (R = p.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], v = [
|
|
525
525
|
...g ?? [],
|
|
526
526
|
...x,
|
|
527
527
|
...b ?? []
|
|
528
528
|
];
|
|
529
529
|
if (h !== void 0) {
|
|
530
|
-
const k = { label: h, type:
|
|
530
|
+
const k = { label: h, type: xt, importance: -2 };
|
|
531
531
|
n.addLabelAsSuffix ? v.push(k) : v.splice(0, 0, k);
|
|
532
532
|
}
|
|
533
533
|
const A = [], L = /* @__PURE__ */ new Map();
|
|
534
534
|
for (let k = v.length - 1; k >= 0; --k) {
|
|
535
|
-
const { type: W } = v[k],
|
|
535
|
+
const { type: W } = v[k], j = v[k].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
|
|
536
536
|
L.set(W, $);
|
|
537
|
-
const
|
|
538
|
-
s.set(
|
|
539
|
-
|
|
537
|
+
const F = `${W}@${$}`;
|
|
538
|
+
s.set(F, (s.get(F) ?? 0) + 1), r.set(
|
|
539
|
+
F,
|
|
540
540
|
Math.max(
|
|
541
|
-
r.get(
|
|
542
|
-
|
|
541
|
+
r.get(F) ?? Number.NEGATIVE_INFINITY,
|
|
542
|
+
j - (v.length - k) * At
|
|
543
543
|
)
|
|
544
|
-
), A.push({ ...v[k], fullType:
|
|
544
|
+
), A.push({ ...v[k], fullType: F, occurrenceIndex: $ });
|
|
545
545
|
}
|
|
546
546
|
return A.reverse(), {
|
|
547
547
|
value: f,
|
|
@@ -588,7 +588,7 @@ function Ve(t, e, n = {}) {
|
|
|
588
588
|
}
|
|
589
589
|
return c(/* @__PURE__ */ new Set([...a, ...l]), !0);
|
|
590
590
|
}
|
|
591
|
-
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned",
|
|
591
|
+
const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", Ve = Z + "Partitioned/", ae = Ve + "JsonPartitioned", z = Ve + "BinaryPartitioned";
|
|
592
592
|
function $e(t, e, n, r = [], i) {
|
|
593
593
|
if (t === void 0) return !1;
|
|
594
594
|
switch (t.resourceType.name) {
|
|
@@ -622,7 +622,7 @@ function $e(t, e, n, r = [], i) {
|
|
|
622
622
|
throw new Error(`Unknown resource type: ${t.resourceType.name}`);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function En(t, e, n = !1) {
|
|
626
626
|
const r = [];
|
|
627
627
|
return { isComplete: $e(t, e, r, [], n), data: r };
|
|
628
628
|
}
|
|
@@ -633,7 +633,7 @@ const me = (t) => {
|
|
|
633
633
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
634
634
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
635
635
|
};
|
|
636
|
-
function
|
|
636
|
+
function Ct(t) {
|
|
637
637
|
if (!t) return;
|
|
638
638
|
const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
|
|
639
639
|
let i = 0;
|
|
@@ -679,7 +679,7 @@ function xt(t) {
|
|
|
679
679
|
}
|
|
680
680
|
return { data: r, keyLength: i };
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function Pt(t) {
|
|
683
683
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
684
684
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
685
685
|
const { parts: e, partitionKeyLength: n } = t, r = [];
|
|
@@ -698,11 +698,11 @@ function Ct(t) {
|
|
|
698
698
|
}
|
|
699
699
|
return r.map((i) => Array.from(i.values()));
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function St(t) {
|
|
702
702
|
if (t === void 0) return;
|
|
703
703
|
if (Te(t))
|
|
704
|
-
return
|
|
705
|
-
const e =
|
|
704
|
+
return Pt(t);
|
|
705
|
+
const e = Ct(t);
|
|
706
706
|
if (!e) return;
|
|
707
707
|
const { data: n, keyLength: r } = e, i = [];
|
|
708
708
|
for (let s = 0; s < r; ++s)
|
|
@@ -813,7 +813,7 @@ function ye(t, e = []) {
|
|
|
813
813
|
throw new Error(`Unknown resource type: ${n}`);
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function _t(t) {
|
|
817
817
|
if (t !== void 0) {
|
|
818
818
|
if (Te(t)) return t;
|
|
819
819
|
if (we(t)) return Ye(t);
|
|
@@ -821,7 +821,7 @@ function St(t) {
|
|
|
821
821
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function It(t, e) {
|
|
825
825
|
const n = [...e].sort((s, o) => o[0] - s[0]);
|
|
826
826
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
827
827
|
const { partitionKeyLength: s } = t;
|
|
@@ -881,13 +881,13 @@ function _t(t, e) {
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Lt(t) {
|
|
885
885
|
if (!Array.isArray(t)) return !1;
|
|
886
886
|
if (t.length === 0) return !0;
|
|
887
887
|
const e = t[0];
|
|
888
888
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
889
889
|
}
|
|
890
|
-
class
|
|
890
|
+
class Tt {
|
|
891
891
|
constructor(e) {
|
|
892
892
|
this.columns = e;
|
|
893
893
|
}
|
|
@@ -896,7 +896,7 @@ class Lt {
|
|
|
896
896
|
return this.columns.filter((r) => n(r.spec));
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Et(t) {
|
|
900
900
|
if (t)
|
|
901
901
|
return t.map((e) => ({
|
|
902
902
|
type: `split:${et(e.axisId)}`,
|
|
@@ -905,11 +905,11 @@ function Tt(t) {
|
|
|
905
905
|
// High importance for split filters in labels
|
|
906
906
|
}));
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function kt(t) {
|
|
909
909
|
if (t)
|
|
910
910
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function Ot(t, e) {
|
|
913
913
|
if (!e || e.length === 0) return t;
|
|
914
914
|
const n = [...e].sort((r, i) => r[0] - i[0]);
|
|
915
915
|
return ke({ id: t, axisFilters: n });
|
|
@@ -919,7 +919,7 @@ function Se(t) {
|
|
|
919
919
|
const e = t, n = 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);
|
|
920
920
|
return !!e.domainAnchor || n || r;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Dt(t) {
|
|
923
923
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
924
924
|
return [];
|
|
925
925
|
const e = t.axes.map((n, r) => typeof n == "object" && "split" in n && n.split === !0 ? r : -1).filter((n) => n !== -1);
|
|
@@ -930,7 +930,7 @@ function Ot(t) {
|
|
|
930
930
|
class le {
|
|
931
931
|
constructor() {
|
|
932
932
|
O(this, "defaultProviderStore", []);
|
|
933
|
-
O(this, "providers", [new
|
|
933
|
+
O(this, "providers", [new Tt(this.defaultProviderStore)]);
|
|
934
934
|
O(this, "axisLabelProviders", []);
|
|
935
935
|
}
|
|
936
936
|
addColumnProvider(e) {
|
|
@@ -986,55 +986,55 @@ class le {
|
|
|
986
986
|
if (u(P.spec)) continue;
|
|
987
987
|
if (h.has(P.id))
|
|
988
988
|
throw new Error(`Duplicate column id ${P.id} in provider ${A.constructor.name}`);
|
|
989
|
-
const
|
|
990
|
-
y.has(
|
|
989
|
+
const R = Xe(P.spec);
|
|
990
|
+
y.has(R) || (h.add(P.id), y.add(R), I.push(P));
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
if (I.length === 0) continue;
|
|
994
|
-
const x =
|
|
994
|
+
const x = Dt(p), v = x.length > 0;
|
|
995
995
|
for (const A of I) {
|
|
996
996
|
if (!ne(A.spec)) continue;
|
|
997
997
|
const L = A.spec;
|
|
998
998
|
if (v) {
|
|
999
|
-
if (
|
|
999
|
+
if (Lt(A.data))
|
|
1000
1000
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
|
|
1001
|
-
const P =
|
|
1001
|
+
const P = _t(A.data);
|
|
1002
1002
|
if (!P) {
|
|
1003
1003
|
if (s) continue;
|
|
1004
1004
|
return;
|
|
1005
1005
|
}
|
|
1006
1006
|
if (!Qe(P))
|
|
1007
1007
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A.id}`);
|
|
1008
|
-
const
|
|
1008
|
+
const R = St(P), k = x[x.length - 1];
|
|
1009
1009
|
if (k >= P.partitionKeyLength)
|
|
1010
1010
|
throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${k}) in column ${L.name}`);
|
|
1011
|
-
const W = x.map((S) => this.findLabels(D(L.axesSpec[S]))),
|
|
1011
|
+
const W = x.map((S) => this.findLabels(D(L.axesSpec[S]))), j = [], $ = (S, G) => {
|
|
1012
1012
|
if (G >= x.length) {
|
|
1013
|
-
if (
|
|
1013
|
+
if (j.push([...S]), j.length > 1e4)
|
|
1014
1014
|
throw new Error("Too many key combinations, aborting.");
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
|
-
const
|
|
1018
|
-
if (
|
|
1019
|
-
throw new Error(`Axis index ${
|
|
1020
|
-
const N =
|
|
1017
|
+
const V = x[G];
|
|
1018
|
+
if (V >= R.length)
|
|
1019
|
+
throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
|
|
1020
|
+
const N = R[V];
|
|
1021
1021
|
if (!N || N.length === 0) {
|
|
1022
|
-
|
|
1022
|
+
j.length = 0;
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
for (const ee of N)
|
|
1026
1026
|
S.push(ee), $(S, G + 1), S.pop();
|
|
1027
1027
|
};
|
|
1028
|
-
if ($([], 0),
|
|
1028
|
+
if ($([], 0), j.length === 0)
|
|
1029
1029
|
continue;
|
|
1030
|
-
const
|
|
1030
|
+
const F = [...L.axesSpec], Be = x.map((S) => S);
|
|
1031
1031
|
for (let S = x.length - 1; S >= 0; S--)
|
|
1032
|
-
|
|
1033
|
-
const We = { ...L, axesSpec:
|
|
1034
|
-
for (const S of
|
|
1035
|
-
const G = S.map((
|
|
1036
|
-
const ee = Be[N], Ge = D(L.axesSpec[ee]), ue = W[N], He = (ue == null ? void 0 : ue[
|
|
1037
|
-
return { axisIdx: ee, axisId: Ge, value:
|
|
1032
|
+
F.splice(x[S], 1);
|
|
1033
|
+
const We = { ...L, axesSpec: F };
|
|
1034
|
+
for (const S of j) {
|
|
1035
|
+
const G = S.map((V, N) => {
|
|
1036
|
+
const ee = Be[N], Ge = D(L.axesSpec[ee]), ue = W[N], He = (ue == null ? void 0 : ue[V]) ?? String(V);
|
|
1037
|
+
return { axisIdx: ee, axisId: Ge, value: V, label: He };
|
|
1038
1038
|
});
|
|
1039
1039
|
d.push({
|
|
1040
1040
|
type: "split",
|
|
@@ -1055,18 +1055,18 @@ class le {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
if (d.length === 0) return [];
|
|
1058
|
-
const f =
|
|
1058
|
+
const f = je(
|
|
1059
1059
|
d,
|
|
1060
1060
|
(p) => ({
|
|
1061
1061
|
spec: p.spec,
|
|
1062
|
-
suffixTrace: p.type === "split" ?
|
|
1062
|
+
suffixTrace: p.type === "split" ? Et(p.axisFilters) : void 0
|
|
1063
1063
|
}),
|
|
1064
1064
|
l
|
|
1065
1065
|
), w = [];
|
|
1066
1066
|
for (const { value: p, label: g } of f) {
|
|
1067
|
-
const { originalColumn: b, spec: h } = p, I = p.type === "split" ? p.axisFilters : void 0, x =
|
|
1067
|
+
const { originalColumn: b, spec: h } = p, I = p.type === "split" ? p.axisFilters : void 0, x = kt(I);
|
|
1068
1068
|
let v;
|
|
1069
|
-
r ? v = r.deriveS(h, x) : v =
|
|
1069
|
+
r ? v = r.deriveS(h, x) : v = Ot(b.id, x);
|
|
1070
1070
|
let A = { ...p.adjustedSpec };
|
|
1071
1071
|
o && (A = {
|
|
1072
1072
|
...A,
|
|
@@ -1077,7 +1077,7 @@ class le {
|
|
|
1077
1077
|
}), w.push({
|
|
1078
1078
|
id: v,
|
|
1079
1079
|
spec: A,
|
|
1080
|
-
data: () => p.type === "split" ? Ze(
|
|
1080
|
+
data: () => p.type === "split" ? Ze(It(p.dataEntries, x)) : p.originalColumn.data,
|
|
1081
1081
|
label: g
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
@@ -1116,7 +1116,7 @@ function de(t, e) {
|
|
|
1116
1116
|
function _e(t) {
|
|
1117
1117
|
return be(t, (e) => e instanceof E ? e.handle : we(e) ? ot(e, (n) => n.handle) : e);
|
|
1118
1118
|
}
|
|
1119
|
-
class
|
|
1119
|
+
class Rt {
|
|
1120
1120
|
constructor() {
|
|
1121
1121
|
O(this, "ctx", m());
|
|
1122
1122
|
}
|
|
@@ -1129,7 +1129,7 @@ class Dt {
|
|
|
1129
1129
|
getOptions(e, n) {
|
|
1130
1130
|
const r = typeof e == "function" ? e : X(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
1131
1131
|
let s = {}, o = !1;
|
|
1132
|
-
return typeof n < "u" && (typeof n == "function" ? s = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? s = n : (n = n, s = n.label ?? {}, o = n.refsWithEnrichments ?? !1))), typeof s == "object" ?
|
|
1132
|
+
return typeof n < "u" && (typeof n == "function" ? s = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? s = n : (n = n, s = n.label ?? {}, o = n.refsWithEnrichments ?? !1))), typeof s == "object" ? je(i, (a) => a.obj, s ?? {}).map(({ value: { ref: a }, label: l }) => ({
|
|
1133
1133
|
ref: xe(a, o),
|
|
1134
1134
|
label: l
|
|
1135
1135
|
})) : i.map(({ ref: a, obj: l }) => ({
|
|
@@ -1392,7 +1392,7 @@ class te {
|
|
|
1392
1392
|
O(this, "uiState");
|
|
1393
1393
|
// lazy rendering because this feature is rarely used
|
|
1394
1394
|
O(this, "_activeArgsCache");
|
|
1395
|
-
O(this, "resultPool", new
|
|
1395
|
+
O(this, "resultPool", new Rt());
|
|
1396
1396
|
this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
1397
1397
|
}
|
|
1398
1398
|
/**
|
|
@@ -1469,19 +1469,19 @@ class te {
|
|
|
1469
1469
|
this.ctx.logError(e);
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
|
-
const Y = "1.
|
|
1473
|
-
function
|
|
1472
|
+
const Y = "1.34.8";
|
|
1473
|
+
function Ft(t) {
|
|
1474
1474
|
return t.__renderLambda === !0;
|
|
1475
1475
|
}
|
|
1476
1476
|
function pe(t) {
|
|
1477
1477
|
if (t !== void 0)
|
|
1478
|
-
return
|
|
1478
|
+
return Ft(t) ? t.handle : t;
|
|
1479
1479
|
}
|
|
1480
1480
|
function J(t) {
|
|
1481
1481
|
if (t !== void 0)
|
|
1482
1482
|
return typeof t == "string" ? { __renderLambda: !0, handle: t, retentive: !1 } : t;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function kn(t) {
|
|
1485
1485
|
if (t.v3 !== void 0) {
|
|
1486
1486
|
const {
|
|
1487
1487
|
initialArgs: e,
|
|
@@ -1747,16 +1747,16 @@ class T {
|
|
|
1747
1747
|
Object.entries(this._outputs).map(([n, r]) => [n, pe(r)])
|
|
1748
1748
|
)
|
|
1749
1749
|
};
|
|
1750
|
-
return
|
|
1750
|
+
return pt() ? De({ sdkVersion: Y }) : { config: e };
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function On(t) {
|
|
1754
1754
|
const e = t.type;
|
|
1755
1755
|
switch (e) {
|
|
1756
1756
|
case "axis":
|
|
1757
|
-
return
|
|
1757
|
+
return K(t);
|
|
1758
1758
|
case "column":
|
|
1759
|
-
return
|
|
1759
|
+
return K(t);
|
|
1760
1760
|
default:
|
|
1761
1761
|
throw Error(`unsupported column type: ${e}`);
|
|
1762
1762
|
}
|
|
@@ -1849,7 +1849,7 @@ function Ue(t, e, n, r, i, s) {
|
|
|
1849
1849
|
sorting: i
|
|
1850
1850
|
};
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function Dn(t, e, n, r) {
|
|
1853
1853
|
var u, c;
|
|
1854
1854
|
Array.isArray(r) && (r = { filters: r });
|
|
1855
1855
|
const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s = [...(r == null ? void 0 : r.filters) ?? [], ...((u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters) ?? []], o = ((c = n == null ? void 0 : n.pTableParams) == null ? void 0 : c.sorting) ?? [], a = Ne(t.resultPool);
|
|
@@ -1860,17 +1860,17 @@ function On(t, e, n, r) {
|
|
|
1860
1860
|
Ue(e, l, i, s, o, r == null ? void 0 : r.coreColumnPredicate)
|
|
1861
1861
|
);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function Kt(t) {
|
|
1864
1864
|
var e;
|
|
1865
1865
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function jt(t) {
|
|
1868
1868
|
var e;
|
|
1869
1869
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function Rn(t, e, n, r, i) {
|
|
1872
1872
|
var g, b;
|
|
1873
|
-
const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l = e.filter((h) => !
|
|
1873
|
+
const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l = e.filter((h) => !Kt(h.spec)), u = l.find((h) => n(h.spec));
|
|
1874
1874
|
if (!u) return;
|
|
1875
1875
|
const c = Ne(t.resultPool);
|
|
1876
1876
|
if (!c) return;
|
|
@@ -1878,7 +1878,7 @@ function Dn(t, e, n, r, i) {
|
|
|
1878
1878
|
var I, x;
|
|
1879
1879
|
if (s === "inner") return [];
|
|
1880
1880
|
const h = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(fe).filter((v) => v.type === "column").map((v) => v.id);
|
|
1881
|
-
return h || l.filter((v) =>
|
|
1881
|
+
return h || l.filter((v) => jt(v.spec)).map((v) => v.id);
|
|
1882
1882
|
})());
|
|
1883
1883
|
d.delete(u.id), [...o.map((h) => h.column), ...a.map((h) => h.column)].filter((h) => h.type === "column").map((h) => d.delete(h.id));
|
|
1884
1884
|
const y = l.filter((h) => !d.has(h.id)), f = Je(y.map(Ee), c), w = [
|
|
@@ -1902,7 +1902,7 @@ function Dn(t, e, n, r, i) {
|
|
|
1902
1902
|
tableHandle: p
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Fn(t, e, n) {
|
|
1906
1906
|
const r = t.resultPool.findLabels(e);
|
|
1907
1907
|
return {
|
|
1908
1908
|
axis: e,
|
|
@@ -1921,7 +1921,7 @@ const Vt = (t, e) => {
|
|
|
1921
1921
|
n += i, n += s;
|
|
1922
1922
|
}), n;
|
|
1923
1923
|
};
|
|
1924
|
-
function
|
|
1924
|
+
function $t(t) {
|
|
1925
1925
|
if (!t.length)
|
|
1926
1926
|
return [];
|
|
1927
1927
|
let e = [[]];
|
|
@@ -1932,16 +1932,16 @@ function jt(t) {
|
|
|
1932
1932
|
}), e = r;
|
|
1933
1933
|
}), e;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Nt(t) {
|
|
1936
1936
|
var e;
|
|
1937
|
-
return t.axesSpec.length === 2 && ((e = t.annotations) == null ? void 0 : e[
|
|
1937
|
+
return t.axesSpec.length === 2 && ((e = t.annotations) == null ? void 0 : e[Mt]) === "true";
|
|
1938
1938
|
}
|
|
1939
|
-
const
|
|
1940
|
-
function
|
|
1939
|
+
const Jt = "pl7.app/graph/isVirtual", Ie = "pl7.app/label", Mt = "pl7.app/isLinkerColumn";
|
|
1940
|
+
function Ut(t) {
|
|
1941
1941
|
var n, r;
|
|
1942
1942
|
const e = /* @__PURE__ */ new Map();
|
|
1943
1943
|
for (const { spec: i } of t) {
|
|
1944
|
-
const s = i.axesSpec.map(D).map(
|
|
1944
|
+
const s = i.axesSpec.map(D).map(K);
|
|
1945
1945
|
s.forEach((o) => {
|
|
1946
1946
|
e.has(o) || e.set(o, /* @__PURE__ */ new Set());
|
|
1947
1947
|
});
|
|
@@ -1953,11 +1953,11 @@ function Mt(t) {
|
|
|
1953
1953
|
}
|
|
1954
1954
|
return e;
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1957
|
-
const n =
|
|
1956
|
+
function Bt(t, e) {
|
|
1957
|
+
const n = Ut(t), r = [...n.keys()].map(fe), i = [];
|
|
1958
1958
|
for (const l of e.values()) {
|
|
1959
1959
|
const u = r.find((c) => U(l, c));
|
|
1960
|
-
u && i.push(
|
|
1960
|
+
u && i.push(K(u));
|
|
1961
1961
|
}
|
|
1962
1962
|
const s = new Set(i), o = /* @__PURE__ */ new Map();
|
|
1963
1963
|
let a = [...i];
|
|
@@ -1970,22 +1970,22 @@ function Ut(t, e) {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
return o;
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function Wt(t, e) {
|
|
1974
1974
|
const n = [];
|
|
1975
1975
|
return e.forEach((r) => {
|
|
1976
|
-
n.push(...
|
|
1976
|
+
n.push(...Gt(t, r));
|
|
1977
1977
|
}), n;
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function Gt(t, e) {
|
|
1980
1980
|
const n = e.spec.axesSpec.map(D);
|
|
1981
|
-
if (n.every((u) => t.has(
|
|
1981
|
+
if (n.every((u) => t.has(K(u))))
|
|
1982
1982
|
return [e];
|
|
1983
1983
|
const r = n.map((u) => {
|
|
1984
1984
|
const c = [];
|
|
1985
1985
|
for (const [d, y] of t)
|
|
1986
1986
|
U(y, u) && !U(u, y) && c.push(y);
|
|
1987
1987
|
return c;
|
|
1988
|
-
}), i =
|
|
1988
|
+
}), i = $t(r), s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), a = i.map((u) => {
|
|
1989
1989
|
const c = /* @__PURE__ */ new Set();
|
|
1990
1990
|
return u.map((d, y) => {
|
|
1991
1991
|
const f = e.spec.axesSpec[y].domain, w = d.domain;
|
|
@@ -2010,7 +2010,7 @@ function Wt(t, e) {
|
|
|
2010
2010
|
return (b = JSON.parse(g)) == null ? void 0 : b[1];
|
|
2011
2011
|
}).join(" / "), w = {
|
|
2012
2012
|
...e.spec.annotations,
|
|
2013
|
-
[
|
|
2013
|
+
[Jt]: "true"
|
|
2014
2014
|
};
|
|
2015
2015
|
return (y || f) && (w[Ie] = y && f ? y + " / " + f : y + f), {
|
|
2016
2016
|
id: d,
|
|
@@ -2027,7 +2027,7 @@ function Wt(t, e) {
|
|
|
2027
2027
|
});
|
|
2028
2028
|
return [e, ...l];
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function Kn(t, e) {
|
|
2031
2031
|
if (!e) return;
|
|
2032
2032
|
const n = new le();
|
|
2033
2033
|
n.addColumnProvider(t.resultPool), n.addColumns(e);
|
|
@@ -2035,9 +2035,9 @@ function Fn(t, e) {
|
|
|
2035
2035
|
for (const d of e)
|
|
2036
2036
|
for (const y of d.spec.axesSpec) {
|
|
2037
2037
|
const f = D(y);
|
|
2038
|
-
r.set(
|
|
2038
|
+
r.set(K(f), f), i.set(K(f), f);
|
|
2039
2039
|
}
|
|
2040
|
-
const s = n.getColumns((d) =>
|
|
2040
|
+
const s = n.getColumns((d) => Nt(d)) ?? [], o = Bt(s, r);
|
|
2041
2041
|
for (const d of o)
|
|
2042
2042
|
r.set(...d), i.set(...d);
|
|
2043
2043
|
const a = (n.getColumns([...r.values()].map((d) => ({
|
|
@@ -2047,48 +2047,45 @@ function Fn(t, e) {
|
|
|
2047
2047
|
for (const d of a)
|
|
2048
2048
|
for (const y of d.spec.axesSpec) {
|
|
2049
2049
|
const f = D(y);
|
|
2050
|
-
i.set(
|
|
2050
|
+
i.set(K(f), f);
|
|
2051
2051
|
}
|
|
2052
2052
|
const l = (n.getColumns([...i.values()].map((d) => ({
|
|
2053
2053
|
axes: [d],
|
|
2054
2054
|
partialAxesMatch: !0
|
|
2055
|
-
})), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((d) => ve(d.spec)), u = [...a, ...l], c =
|
|
2055
|
+
})), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((d) => ve(d.spec)), u = [...a, ...l], c = Wt(r, u);
|
|
2056
2056
|
if (!c.some(
|
|
2057
2057
|
(d) => d.data instanceof E && !d.data.getIsReadyOrError()
|
|
2058
2058
|
))
|
|
2059
2059
|
return t.createPFrame(c);
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
}
|
|
2072
|
-
function Vn(t, e, n, r) {
|
|
2073
|
-
if (!(!e || e.axesSpec.length === 0))
|
|
2061
|
+
function jn({
|
|
2062
|
+
selection: t,
|
|
2063
|
+
columnId: e = lt(),
|
|
2064
|
+
label: n = "Selection marker",
|
|
2065
|
+
domain: r
|
|
2066
|
+
}) {
|
|
2067
|
+
if (!(t != null && t.axesSpec.length))
|
|
2068
|
+
return;
|
|
2069
|
+
const i = t.selectedKeys.filter((s) => s.every((o) => !at(o))).map((s) => ({ key: s, val: 1 }));
|
|
2070
|
+
if (i.length)
|
|
2074
2071
|
return {
|
|
2075
|
-
id:
|
|
2072
|
+
id: e,
|
|
2076
2073
|
spec: {
|
|
2077
2074
|
kind: "PColumn",
|
|
2078
2075
|
valueType: "Int",
|
|
2079
2076
|
name: "pl7.app/table/row-selection",
|
|
2080
|
-
axesSpec:
|
|
2081
|
-
...r && { domain: r },
|
|
2077
|
+
axesSpec: t.axesSpec,
|
|
2078
|
+
...r && Object.keys(r).length && { domain: r },
|
|
2082
2079
|
annotations: {
|
|
2083
|
-
"pl7.app/label": n
|
|
2080
|
+
"pl7.app/label": n,
|
|
2084
2081
|
"pl7.app/discreteValues": "[1]"
|
|
2085
2082
|
}
|
|
2086
2083
|
},
|
|
2087
|
-
data:
|
|
2084
|
+
data: i
|
|
2088
2085
|
};
|
|
2089
2086
|
}
|
|
2090
|
-
function
|
|
2091
|
-
return t ===
|
|
2087
|
+
function Vn(t) {
|
|
2088
|
+
return t === ut ? (console.error("Axis value can never be N/A"), "") : t;
|
|
2092
2089
|
}
|
|
2093
2090
|
class $n {
|
|
2094
2091
|
constructor(e) {
|
|
@@ -2110,7 +2107,7 @@ class $n {
|
|
|
2110
2107
|
return await platforma.pFrameDriver.getUniqueValues(this.handle, e);
|
|
2111
2108
|
}
|
|
2112
2109
|
}
|
|
2113
|
-
function
|
|
2110
|
+
function Ht(t) {
|
|
2114
2111
|
return Oe({
|
|
2115
2112
|
__isRef: !0,
|
|
2116
2113
|
blockId: ie(t, "blockId"),
|
|
@@ -2119,19 +2116,19 @@ function Gt(t) {
|
|
|
2119
2116
|
}
|
|
2120
2117
|
function Nn(t) {
|
|
2121
2118
|
return Oe({
|
|
2122
|
-
ref:
|
|
2119
|
+
ref: Ht(ie(t, "ref")),
|
|
2123
2120
|
label: ie(t, "label")
|
|
2124
2121
|
});
|
|
2125
2122
|
}
|
|
2126
2123
|
const Jn = {
|
|
2127
2124
|
sdkVersion: Y
|
|
2128
2125
|
};
|
|
2129
|
-
function
|
|
2126
|
+
function qt() {
|
|
2130
2127
|
return De({ sdkVersion: Y });
|
|
2131
2128
|
}
|
|
2132
2129
|
function Mn(t) {
|
|
2133
2130
|
try {
|
|
2134
|
-
return
|
|
2131
|
+
return qt();
|
|
2135
2132
|
} catch {
|
|
2136
2133
|
return t;
|
|
2137
2134
|
}
|
|
@@ -2141,19 +2138,19 @@ function Un(t) {
|
|
|
2141
2138
|
return globalThis.getEnvironmentValue(t);
|
|
2142
2139
|
}
|
|
2143
2140
|
export {
|
|
2144
|
-
|
|
2141
|
+
tn as Args,
|
|
2145
2142
|
T as BlockModel,
|
|
2146
2143
|
Jn as CurrentSdkInfo,
|
|
2147
2144
|
_ as FutureRef,
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2145
|
+
Jt as IS_VIRTUAL_COLUMN,
|
|
2146
|
+
nn as It,
|
|
2147
|
+
Tn as JsRenderInternal,
|
|
2151
2148
|
Ie as LABEL_ANNOTATION,
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2149
|
+
Mt as LINKER_COLUMN_ANNOTATION,
|
|
2150
|
+
rn as MainOutputs,
|
|
2151
|
+
ct as OutputError,
|
|
2152
|
+
yt as PAnnotationLabel,
|
|
2153
|
+
vt as PAnnotationTrace,
|
|
2157
2154
|
le as PColumnCollection,
|
|
2158
2155
|
$n as PFrameImpl,
|
|
2159
2156
|
B as RT_BINARY_PARTITIONED,
|
|
@@ -2163,74 +2160,73 @@ export {
|
|
|
2163
2160
|
se as RT_RESOURCE_MAP,
|
|
2164
2161
|
oe as RT_RESOURCE_MAP_PARTITIONED,
|
|
2165
2162
|
te as RenderCtx,
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2163
|
+
Rt as ResultPool,
|
|
2164
|
+
sn as StagingOutputs,
|
|
2165
|
+
wt as Trace,
|
|
2166
|
+
bt as TraceEntry,
|
|
2170
2167
|
E as TreeNodeAccessor,
|
|
2171
|
-
|
|
2168
|
+
on as UiState,
|
|
2172
2169
|
Me as allColumnsComputed,
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2170
|
+
fn as and,
|
|
2171
|
+
_t as convertOrParsePColumnData,
|
|
2172
|
+
Kn as createPFrameForGraphs,
|
|
2173
|
+
Dn as createPlDataTable,
|
|
2174
|
+
Fn as createPlDataTableSheet,
|
|
2175
|
+
Rn as createPlDataTableV2,
|
|
2176
|
+
jn as createRowSelectionColumn,
|
|
2177
|
+
je as deriveLabels,
|
|
2181
2178
|
pe as downgradeCfgOrLambda,
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2179
|
+
Wt as enrichCompatible,
|
|
2180
|
+
Cn as extractArchiveAndGetURL,
|
|
2181
|
+
kn as extractConfig,
|
|
2182
|
+
It as filterDataInfoEntries,
|
|
2183
|
+
cn as flatten,
|
|
2187
2184
|
Nn as fromPlOption,
|
|
2188
|
-
|
|
2185
|
+
Ht as fromPlRef,
|
|
2189
2186
|
Ne as getAllLabelColumns,
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2187
|
+
Bt as getAvailableWithLinkersAxes,
|
|
2188
|
+
vn as getBlobContent,
|
|
2189
|
+
wn as getBlobContentAsJson,
|
|
2190
|
+
bn as getBlobContentAsString,
|
|
2191
|
+
An as getDownloadedBlobContent,
|
|
2195
2192
|
Un as getEnvironmentValue,
|
|
2196
2193
|
Q as getFromCfg,
|
|
2197
2194
|
re as getImmediate,
|
|
2198
|
-
|
|
2195
|
+
Pn as getImportProgress,
|
|
2199
2196
|
ie as getJsonField,
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2197
|
+
Sn as getLastLogs,
|
|
2198
|
+
Ut as getLinkerColumnsMap,
|
|
2199
|
+
Ln as getLogHandle,
|
|
2203
2200
|
Je as getMatchingLabelColumns,
|
|
2204
|
-
|
|
2205
|
-
|
|
2201
|
+
xn as getOnDemandBlobContent,
|
|
2202
|
+
Ct as getPartitionKeysList,
|
|
2206
2203
|
Mn as getPlatformaOrDefault,
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2204
|
+
_n as getProgressLog,
|
|
2205
|
+
In as getProgressLogWithInfo,
|
|
2206
|
+
qt as getRawPlatformaInstance,
|
|
2207
|
+
gn as getResourceField,
|
|
2208
|
+
mn as getResourceValueAsJson,
|
|
2209
|
+
St as getUniquePartitionKeys,
|
|
2213
2210
|
he as ifDef,
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2211
|
+
Kt as isColumnHidden,
|
|
2212
|
+
jt as isColumnOptional,
|
|
2213
|
+
Ft as isConfigLambda,
|
|
2214
|
+
dn as isEmpty,
|
|
2218
2215
|
ve as isLabelColumn,
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2216
|
+
Nt as isLinkerColumn,
|
|
2217
|
+
en as isolate,
|
|
2218
|
+
an as makeArray,
|
|
2222
2219
|
Oe as makeObject,
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2220
|
+
un as mapArrayValues,
|
|
2221
|
+
Vn as mapPTableValueToAxisKey,
|
|
2222
|
+
ln as mapRecordValues,
|
|
2223
|
+
yn as mapResourceFields,
|
|
2224
|
+
pn as not,
|
|
2225
|
+
hn as or,
|
|
2229
2226
|
ye as parsePColumnData,
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
Qt as wrapOutputs
|
|
2227
|
+
En as parseResourceMap,
|
|
2228
|
+
dt as readOutput,
|
|
2229
|
+
On as stringifyPTableColumnSpec,
|
|
2230
|
+
Zt as wrapOutputs
|
|
2235
2231
|
};
|
|
2236
2232
|
//# sourceMappingURL=index.mjs.map
|