@platforma-sdk/ui-vue 1.42.15 → 1.42.19
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 +33 -28
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js +5 -5
- package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +41 -41
- package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-source-v2.js +124 -125
- package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
- package/dist/components/PlAgDataTable/sources/table-state-v2.js +3 -3
- package/dist/components/PlAgDataTable/sources/value-rendering.d.ts.map +1 -1
- package/dist/components/PlAgDataTable/sources/value-rendering.js +24 -25
- package/dist/components/PlAgDataTable/sources/value-rendering.js.map +1 -1
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.d.ts.map +1 -1
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.js +7 -86
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.js.map +1 -1
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue2.js +103 -2
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue2.js.map +1 -1
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue3.js +9 -0
- package/dist/components/PlAgGridColumnManager/PlAgGridColumnManager.vue3.js.map +1 -0
- package/dist/components/PlAgGridColumnManager/useFilteredItems.d.ts +15 -0
- package/dist/components/PlAgGridColumnManager/useFilteredItems.d.ts.map +1 -0
- package/dist/components/PlAgGridColumnManager/useFilteredItems.js +35 -0
- package/dist/components/PlAgGridColumnManager/useFilteredItems.js.map +1 -0
- package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +12 -12
- package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +2 -2
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.d.ts.map +1 -1
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js +21 -20
- package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/data.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment/data.js +170 -185
- package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
- package/dist/components/PlTableFilters/filters-state.js +8 -8
- package/dist/components/PlTableFilters/filters_logic.d.ts.map +1 -1
- package/dist/components/PlTableFilters/filters_logic.js +67 -77
- package/dist/components/PlTableFilters/filters_logic.js.map +1 -1
- package/dist/defineApp.js +20 -20
- package/dist/internal/UpdateSerializer.js +3 -3
- package/dist/lib/model/common/dist/index.js +523 -414
- package/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/lib/ui/uikit/dist/components/DataTable/TableComponent.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAccordion/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue2.js.map +1 -0
- package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlAutocomplete/PlAutocomplete.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdown/PlDropdown.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlFileDialog/Local.vue.js +6 -6
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +28 -28
- package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
- package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js +89 -63
- package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
- package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlTextArea/PlTextArea.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/components/PlTextField/PlTextField.vue.js +1 -1
- package/dist/lib/ui/uikit/dist/generated/components/svg/images/{SvgRequired.vue.js → SvgRequired.vue2.js} +1 -1
- package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue2.js.map +1 -0
- package/dist/lib/ui/uikit/dist/helpers/dom.js.map +1 -1
- package/dist/lib/ui/uikit/dist/helpers/downloadContent.js +32 -0
- package/dist/lib/ui/uikit/dist/helpers/downloadContent.js.map +1 -0
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +201 -159
- package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
- package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +521 -517
- package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
- package/dist/lib.js +52 -50
- package/dist/lib.js.map +1 -1
- package/dist/sdk/model/dist/index.js +410 -406
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/PlAgDataTable/sources/table-source-v2.ts +20 -16
- package/src/components/PlAgDataTable/sources/value-rendering.ts +15 -7
- package/src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue +28 -4
- package/src/components/PlAgGridColumnManager/useFilteredItems.ts +68 -0
- package/src/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue +1 -0
- package/src/components/PlMultiSequenceAlignment/data.ts +12 -12
- package/src/components/PlTableFilters/filters_logic.ts +18 -15
- package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
- package/dist/lib/ui/uikit/dist/generated/components/svg/images/SvgRequired.vue.js.map +0 -1
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { isPTableAbsent as
|
|
2
|
-
import { PTableAbsent as
|
|
3
|
-
import
|
|
1
|
+
import { PColumnName as ue, readAnnotation as M, readAnnotationJson as Ne, isPTableAbsent as Re, stringifyJson as $e, ValueType as Ke, uniquePlId as Be, Annotation as O, isDataInfo as de, extractAllColumns as je, mapPTableDef as Je, selectorsToPredicate as q, withEnrichments as ge, AnchoredIdDeriver as me, isPlRef as Me, mapValueInVOE as qe, mapPObjectData as pe, ensurePColumn as We, isPColumnSpec as Y, isPColumn as _e, parseJson as He, resolveAnchors as ye, deriveNativeId as Xe, isPartitionedDataInfoEntries as ze, getAxisId as be, entriesToDataInfo as Ge, isDataInfoEntries as Ae, dataInfoToEntries as Ye, canonicalizeAxisId as Qe, mapDataInfo as Ze } from "../../../lib/model/common/dist/index.js";
|
|
2
|
+
import { AnnotationJson as Jt, AxisSpec as Mt, Domain as qt, PTableAbsent as Wt, PTableNA as Ht, PlId as Xt, PlIdBytes as zt, PlIdLength as Gt, canonicalizeJson as Yt, deserializeError as Qt, ensureError as Zt, getAxesId as en, getPTableColumnId as tn, hasAbortError as nn, isPTableNA as rn, isPTableValueAxis as sn, mapJoinEntry as an, matchAxis as on, matchAxisId as ln, matchPColumn as un, pTableValue as dn, readDomain as pn, readMetadata as cn, readMetadataJson as fn, readMetadataJsonOrThrow as hn, stringifyColumnId as gn, unwrapResult as mn } from "../../../lib/model/common/dist/index.js";
|
|
3
|
+
import Ie from "../../../_virtual/canonicalize.js";
|
|
4
4
|
import U from "../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
|
|
5
|
-
import { BasePlErrorLike as
|
|
6
|
-
var
|
|
5
|
+
import { BasePlErrorLike as bn, ErrorLike as vn, PlErrorLike as Tn, StandardErrorLike as Pn, ensureErrorLike as Cn } from "../../../lib/model/pl-error-like/dist/index.js";
|
|
6
|
+
var et = Object.defineProperty, tt = (n, e, t) => e in n ? et(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, S = (n, e, t) => tt(n, typeof e != "symbol" ? e + "" : e, t);
|
|
7
7
|
function ee(n) {
|
|
8
8
|
return { type: "Immediate", value: n };
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function nt() {
|
|
11
11
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function xe(n) {
|
|
14
14
|
if (n && typeof globalThis.getPlatforma == "function")
|
|
15
15
|
return globalThis.getPlatforma(n);
|
|
16
16
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
17
17
|
throw new Error("Can't get platforma instance.");
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function rt() {
|
|
20
20
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function d() {
|
|
23
23
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
24
24
|
throw new Error("Not in config rendering context");
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const t =
|
|
26
|
+
function B(n, e) {
|
|
27
|
+
const t = rt();
|
|
28
28
|
if (t === void 0) return !1;
|
|
29
29
|
if (n in t.callbackRegistry) throw new Error(`Callback with key ${n} already registered.`);
|
|
30
30
|
return t.callbackRegistry[n] = e, !0;
|
|
31
31
|
}
|
|
32
32
|
const te = /* @__PURE__ */ new Map();
|
|
33
|
-
function
|
|
34
|
-
n in
|
|
33
|
+
function it(n, e) {
|
|
34
|
+
n in d().callbackRegistry || (d().callbackRegistry[n] = (t) => {
|
|
35
35
|
for (const r of te.get(n))
|
|
36
36
|
r(t);
|
|
37
37
|
}, te.set(n, [])), te.get(n).push(e);
|
|
38
38
|
}
|
|
39
|
-
class
|
|
39
|
+
class C {
|
|
40
40
|
constructor(e, t = (r) => r) {
|
|
41
|
-
|
|
41
|
+
S(this, "isResolved", !1), S(this, "resolvedValue"), this.handle = e, this.postProcess = t, it(e, (r) => {
|
|
42
42
|
this.resolvedValue = t(r), this.isResolved = !0;
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
map(e) {
|
|
46
|
-
return new
|
|
46
|
+
return new C(this.handle, (t) => e(this.postProcess(t)));
|
|
47
47
|
}
|
|
48
48
|
mapDefined(e) {
|
|
49
|
-
return new
|
|
49
|
+
return new C(this.handle, (t) => {
|
|
50
50
|
const r = this.postProcess(t);
|
|
51
51
|
return r ? e(r) : void 0;
|
|
52
52
|
});
|
|
@@ -98,46 +98,46 @@ class I {
|
|
|
98
98
|
...t.map((i) => typeof i == "string" ? i : i.field)
|
|
99
99
|
];
|
|
100
100
|
return ie(
|
|
101
|
-
|
|
101
|
+
d().resolveWithCommon(this.handle, e, ...t),
|
|
102
102
|
(i) => new I(i, r)
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
get resourceType() {
|
|
106
|
-
return
|
|
106
|
+
return d().getResourceType(this.handle);
|
|
107
107
|
}
|
|
108
108
|
getInputsLocked() {
|
|
109
|
-
return
|
|
109
|
+
return d().getInputsLocked(this.handle);
|
|
110
110
|
}
|
|
111
111
|
getOutputsLocked() {
|
|
112
|
-
return
|
|
112
|
+
return d().getOutputsLocked(this.handle);
|
|
113
113
|
}
|
|
114
114
|
getIsReadyOrError() {
|
|
115
|
-
return
|
|
115
|
+
return d().getIsReadyOrError(this.handle);
|
|
116
116
|
}
|
|
117
117
|
getIsFinal() {
|
|
118
|
-
return
|
|
118
|
+
return d().getIsFinal(this.handle);
|
|
119
119
|
}
|
|
120
120
|
getError() {
|
|
121
121
|
const e = [...this.resolvePath, "error"];
|
|
122
122
|
return ie(
|
|
123
|
-
|
|
123
|
+
d().getError(this.handle),
|
|
124
124
|
(t) => new I(t, e)
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
listInputFields() {
|
|
128
|
-
return
|
|
128
|
+
return d().listInputFields(this.handle);
|
|
129
129
|
}
|
|
130
130
|
listOutputFields() {
|
|
131
|
-
return
|
|
131
|
+
return d().listOutputFields(this.handle);
|
|
132
132
|
}
|
|
133
133
|
listDynamicFields() {
|
|
134
|
-
return
|
|
134
|
+
return d().listDynamicFields(this.handle);
|
|
135
135
|
}
|
|
136
136
|
getKeyValueBase64(e) {
|
|
137
|
-
return
|
|
137
|
+
return d().getKeyValueBase64(this.handle, e);
|
|
138
138
|
}
|
|
139
139
|
getKeyValueAsString(e) {
|
|
140
|
-
return
|
|
140
|
+
return d().getKeyValueAsString(this.handle, e);
|
|
141
141
|
}
|
|
142
142
|
getKeyValueAsJson(e) {
|
|
143
143
|
const t = this.getKeyValueAsString(e);
|
|
@@ -145,10 +145,10 @@ class I {
|
|
|
145
145
|
return JSON.parse(t);
|
|
146
146
|
}
|
|
147
147
|
getDataBase64() {
|
|
148
|
-
return
|
|
148
|
+
return d().getDataBase64(this.handle);
|
|
149
149
|
}
|
|
150
150
|
getDataAsString() {
|
|
151
|
-
return
|
|
151
|
+
return d().getDataAsString(this.handle);
|
|
152
152
|
}
|
|
153
153
|
getDataAsJson() {
|
|
154
154
|
const e = this.getDataAsString();
|
|
@@ -161,7 +161,7 @@ class I {
|
|
|
161
161
|
getPColumns(e = !1, t = "") {
|
|
162
162
|
const r = this.parsePObjectCollection(e, t);
|
|
163
163
|
return r === void 0 ? void 0 : Object.entries(r).map(([, i]) => {
|
|
164
|
-
if (!
|
|
164
|
+
if (!_e(i)) throw new Error(`not a PColumn (kind = ${i.spec.kind})`);
|
|
165
165
|
return i;
|
|
166
166
|
});
|
|
167
167
|
}
|
|
@@ -169,7 +169,7 @@ class I {
|
|
|
169
169
|
*
|
|
170
170
|
*/
|
|
171
171
|
parsePObjectCollection(e = !1, t = "") {
|
|
172
|
-
const r =
|
|
172
|
+
const r = d().parsePObjectCollection(
|
|
173
173
|
this.handle,
|
|
174
174
|
e,
|
|
175
175
|
t,
|
|
@@ -184,14 +184,14 @@ class I {
|
|
|
184
184
|
return i;
|
|
185
185
|
}
|
|
186
186
|
getFileContentAsBase64(e) {
|
|
187
|
-
return new
|
|
187
|
+
return new C(d().getBlobContentAsBase64(this.handle, e));
|
|
188
188
|
}
|
|
189
189
|
getFileContentAsString(e) {
|
|
190
|
-
return new
|
|
190
|
+
return new C(d().getBlobContentAsString(this.handle, e));
|
|
191
191
|
}
|
|
192
192
|
getFileContentAsJson(e) {
|
|
193
|
-
return new
|
|
194
|
-
|
|
193
|
+
return new C(
|
|
194
|
+
d().getBlobContentAsString(this.handle, e)
|
|
195
195
|
).mapDefined((t) => JSON.parse(t));
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
@@ -210,7 +210,7 @@ class I {
|
|
|
210
210
|
* @returns downloaded file handle
|
|
211
211
|
*/
|
|
212
212
|
getFileHandle() {
|
|
213
|
-
return new
|
|
213
|
+
return new C(d().getDownloadedBlobContentHandle(this.handle));
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* @deprecated use getFileHandle
|
|
@@ -222,7 +222,7 @@ class I {
|
|
|
222
222
|
* @returns downloaded file handle
|
|
223
223
|
*/
|
|
224
224
|
getRemoteFileHandle() {
|
|
225
|
-
return new
|
|
225
|
+
return new C(d().getOnDemandBlobContentHandle(this.handle));
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* @deprecated use getRemoteFileHandle
|
|
@@ -234,22 +234,22 @@ class I {
|
|
|
234
234
|
* @returns the url to the extracted folder
|
|
235
235
|
*/
|
|
236
236
|
extractArchiveAndGetURL(e) {
|
|
237
|
-
return new
|
|
237
|
+
return new C(d().extractArchiveAndGetURL(this.handle, e));
|
|
238
238
|
}
|
|
239
239
|
getImportProgress() {
|
|
240
|
-
return new
|
|
240
|
+
return new C(d().getImportProgress(this.handle));
|
|
241
241
|
}
|
|
242
242
|
getLastLogs(e) {
|
|
243
|
-
return new
|
|
243
|
+
return new C(d().getLastLogs(this.handle, e));
|
|
244
244
|
}
|
|
245
245
|
getProgressLog(e) {
|
|
246
|
-
return new
|
|
246
|
+
return new C(d().getProgressLog(this.handle, e));
|
|
247
247
|
}
|
|
248
248
|
getProgressLogWithInfo(e) {
|
|
249
|
-
return new
|
|
249
|
+
return new C(d().getProgressLogWithInfo(this.handle, e));
|
|
250
250
|
}
|
|
251
251
|
getLogHandle() {
|
|
252
|
-
return new
|
|
252
|
+
return new C(d().getLogHandle(this.handle));
|
|
253
253
|
}
|
|
254
254
|
allFieldsResolved(e = "Input") {
|
|
255
255
|
switch (e) {
|
|
@@ -275,96 +275,95 @@ class I {
|
|
|
275
275
|
let o = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
276
276
|
(l) => [l, this.resolve({ field: l, assertFieldType: r })]
|
|
277
277
|
);
|
|
278
|
-
return a && (o = o.filter((l) => l[1] !== void 0)), o.map(([l,
|
|
278
|
+
return a && (o = o.filter((l) => l[1] !== void 0)), o.map(([l, g]) => s(l, g));
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
const
|
|
281
|
+
const st = "staging", at = "main", ot = U.object({
|
|
282
282
|
type: U.string(),
|
|
283
283
|
importance: U.number().optional(),
|
|
284
284
|
id: U.string().optional(),
|
|
285
285
|
label: U.string()
|
|
286
|
-
}),
|
|
287
|
-
function
|
|
288
|
-
const r = /* @__PURE__ */ new Map(), i = t.forceTraceElements !== void 0 && t.forceTraceElements.length > 0 ? new Set(t.forceTraceElements) : void 0, a = /* @__PURE__ */ new Map(), s = n.map((
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
...
|
|
295
|
-
...
|
|
296
|
-
...F ?? []
|
|
286
|
+
}), lt = U.array(ot), ut = 1e-3, dt = "__LABEL__", ve = "__LABEL__@1";
|
|
287
|
+
function Fe(n, e, t = {}) {
|
|
288
|
+
const r = /* @__PURE__ */ new Map(), i = t.forceTraceElements !== void 0 && t.forceTraceElements.length > 0 ? new Set(t.forceTraceElements) : void 0, a = /* @__PURE__ */ new Map(), s = n.map((f) => {
|
|
289
|
+
const m = e(f);
|
|
290
|
+
let u, y, T;
|
|
291
|
+
"spec" in m && typeof m.spec == "object" ? (u = m.spec, y = m.prefixTrace, T = m.suffixTrace) : u = m;
|
|
292
|
+
const _ = M(u, O.Label), x = M(u, O.Trace), b = (x ? lt.safeParse(He(x)).data : void 0) ?? [], h = [
|
|
293
|
+
...y ?? [],
|
|
294
|
+
...b,
|
|
295
|
+
...T ?? []
|
|
297
296
|
];
|
|
298
|
-
if (
|
|
299
|
-
const
|
|
300
|
-
t.addLabelAsSuffix ?
|
|
297
|
+
if (_ !== void 0) {
|
|
298
|
+
const p = { label: _, type: dt, importance: -2 };
|
|
299
|
+
t.addLabelAsSuffix ? h.push(p) : h.splice(0, 0, p);
|
|
301
300
|
}
|
|
302
|
-
const
|
|
303
|
-
for (let
|
|
304
|
-
const { type:
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
a.set(
|
|
308
|
-
|
|
301
|
+
const c = [], w = /* @__PURE__ */ new Map();
|
|
302
|
+
for (let p = h.length - 1; p >= 0; --p) {
|
|
303
|
+
const { type: F } = h[p], H = h[p].importance ?? 0, $ = (w.get(F) ?? 0) + 1;
|
|
304
|
+
w.set(F, $);
|
|
305
|
+
const A = `${F}@${$}`;
|
|
306
|
+
a.set(A, (a.get(A) ?? 0) + 1), r.set(
|
|
307
|
+
A,
|
|
309
308
|
Math.max(
|
|
310
|
-
r.get(
|
|
311
|
-
|
|
309
|
+
r.get(A) ?? Number.NEGATIVE_INFINITY,
|
|
310
|
+
H - (h.length - p) * ut
|
|
312
311
|
)
|
|
313
|
-
),
|
|
312
|
+
), c.push({ ...h[p], fullType: A, occurrenceIndex: $ });
|
|
314
313
|
}
|
|
315
|
-
return
|
|
316
|
-
value:
|
|
317
|
-
spec:
|
|
318
|
-
label:
|
|
319
|
-
fullTrace:
|
|
314
|
+
return c.reverse(), {
|
|
315
|
+
value: f,
|
|
316
|
+
spec: u,
|
|
317
|
+
label: _,
|
|
318
|
+
fullTrace: c
|
|
320
319
|
};
|
|
321
|
-
}), o = [], l = [],
|
|
322
|
-
|
|
323
|
-
for (const [
|
|
324
|
-
|
|
325
|
-
const
|
|
320
|
+
}), o = [], l = [], g = [...r];
|
|
321
|
+
g.sort(([, f], [, m]) => m - f);
|
|
322
|
+
for (const [f] of g)
|
|
323
|
+
f.endsWith("@1") || a.get(f) === n.length ? o.push(f) : l.push(f);
|
|
324
|
+
const R = (f, m = !1) => {
|
|
326
325
|
const u = [];
|
|
327
|
-
for (let
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
if (
|
|
326
|
+
for (let y = 0; y < s.length; y++) {
|
|
327
|
+
const T = s[y], _ = T.fullTrace.filter((h) => f.has(h.fullType) || i && i.has(h.type));
|
|
328
|
+
if (_.length === 0)
|
|
329
|
+
if (m)
|
|
331
330
|
u.push({
|
|
332
331
|
label: "Unlabeled",
|
|
333
|
-
value:
|
|
332
|
+
value: T.value
|
|
334
333
|
});
|
|
335
334
|
else return;
|
|
336
|
-
const
|
|
335
|
+
const x = _.map((h) => h.label), b = t.separator ?? " / ";
|
|
337
336
|
u.push({
|
|
338
|
-
label:
|
|
339
|
-
value:
|
|
337
|
+
label: x.join(b),
|
|
338
|
+
value: T.value
|
|
340
339
|
});
|
|
341
340
|
}
|
|
342
341
|
return u;
|
|
343
342
|
};
|
|
344
343
|
if (o.length === 0) {
|
|
345
344
|
if (l.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
346
|
-
return
|
|
347
|
-
}
|
|
348
|
-
let
|
|
349
|
-
for (;
|
|
350
|
-
const
|
|
351
|
-
t.includeNativeLabel &&
|
|
352
|
-
for (let u = 0; u <
|
|
353
|
-
V >= 0 &&
|
|
354
|
-
const
|
|
355
|
-
if (
|
|
356
|
-
V++, V >= o.length && (
|
|
357
|
-
}
|
|
358
|
-
return
|
|
345
|
+
return R(new Set(ve), !0);
|
|
346
|
+
}
|
|
347
|
+
let L = 0, V = -1;
|
|
348
|
+
for (; L < o.length; ) {
|
|
349
|
+
const f = /* @__PURE__ */ new Set();
|
|
350
|
+
t.includeNativeLabel && f.add(ve);
|
|
351
|
+
for (let u = 0; u < L; ++u) f.add(o[u]);
|
|
352
|
+
V >= 0 && f.add(o[V]);
|
|
353
|
+
const m = R(f);
|
|
354
|
+
if (m !== void 0 && new Set(m.map((u) => u.label)).size === n.length) return m;
|
|
355
|
+
V++, V >= o.length && (L++, V = L);
|
|
356
|
+
}
|
|
357
|
+
return R(/* @__PURE__ */ new Set([...o, ...l]), !0);
|
|
359
358
|
}
|
|
360
|
-
const
|
|
359
|
+
const W = "PColumnData/", se = W + "ResourceMap", ae = W + "Partitioned/ResourceMap", j = W + "JsonPartitioned", N = W + "BinaryPartitioned", Ee = W + "Partitioned/", Z = Ee + "JsonPartitioned", J = Ee + "BinaryPartitioned", oe = (n) => {
|
|
361
360
|
if (n.endsWith(".index"))
|
|
362
361
|
return { baseKey: n.substring(0, n.length - 6), type: "index" };
|
|
363
362
|
if (n.endsWith(".values"))
|
|
364
363
|
return { baseKey: n.substring(0, n.length - 7), type: "values" };
|
|
365
364
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${n}`);
|
|
366
365
|
};
|
|
367
|
-
function
|
|
366
|
+
function pt(n) {
|
|
368
367
|
if (!n) return;
|
|
369
368
|
const e = n.resourceType.name, t = n.getDataAsJson(), r = [];
|
|
370
369
|
let i = 0;
|
|
@@ -375,42 +374,42 @@ function at(n) {
|
|
|
375
374
|
case ae:
|
|
376
375
|
i = t.partitionKeyLength + t.keyLength;
|
|
377
376
|
break;
|
|
378
|
-
case
|
|
379
|
-
case
|
|
377
|
+
case j:
|
|
378
|
+
case N:
|
|
380
379
|
i = t.partitionKeyLength;
|
|
381
380
|
break;
|
|
382
|
-
case
|
|
381
|
+
case J:
|
|
383
382
|
case Z:
|
|
384
383
|
i = t.superPartitionKeyLength + t.partitionKeyLength;
|
|
385
384
|
break;
|
|
386
385
|
}
|
|
387
386
|
switch (e) {
|
|
388
387
|
case se:
|
|
389
|
-
case
|
|
390
|
-
case
|
|
388
|
+
case j:
|
|
389
|
+
case N:
|
|
391
390
|
for (let a of n.listInputFields()) {
|
|
392
|
-
e ===
|
|
391
|
+
e === N && (a = oe(a).baseKey);
|
|
393
392
|
const s = [...JSON.parse(a)];
|
|
394
393
|
r.push(s);
|
|
395
394
|
}
|
|
396
395
|
break;
|
|
397
396
|
case ae:
|
|
398
|
-
case
|
|
397
|
+
case J:
|
|
399
398
|
case Z:
|
|
400
399
|
for (const a of n.listInputFields()) {
|
|
401
400
|
const s = [...JSON.parse(a)], o = n.resolve({ field: a, assertFieldType: "Input" });
|
|
402
401
|
if (o !== void 0)
|
|
403
402
|
for (let l of o.listInputFields()) {
|
|
404
|
-
e ===
|
|
405
|
-
const
|
|
406
|
-
r.push(
|
|
403
|
+
e === J && (l = oe(l).baseKey);
|
|
404
|
+
const g = [...s, ...JSON.parse(l)];
|
|
405
|
+
r.push(g);
|
|
407
406
|
}
|
|
408
407
|
}
|
|
409
408
|
break;
|
|
410
409
|
}
|
|
411
410
|
return { data: r, keyLength: i };
|
|
412
411
|
}
|
|
413
|
-
function
|
|
412
|
+
function ct(n) {
|
|
414
413
|
if (n.type !== "JsonPartitioned" && n.type !== "BinaryPartitioned")
|
|
415
414
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${n.type}`);
|
|
416
415
|
const { parts: e, partitionKeyLength: t } = n, r = [];
|
|
@@ -429,11 +428,11 @@ function ot(n) {
|
|
|
429
428
|
}
|
|
430
429
|
return r.map((i) => Array.from(i.values()));
|
|
431
430
|
}
|
|
432
|
-
function
|
|
431
|
+
function ft(n) {
|
|
433
432
|
if (n === void 0) return;
|
|
434
|
-
if (
|
|
435
|
-
return
|
|
436
|
-
const e =
|
|
433
|
+
if (Ae(n))
|
|
434
|
+
return ct(n);
|
|
435
|
+
const e = pt(n);
|
|
437
436
|
if (!e) return;
|
|
438
437
|
const { data: t, keyLength: r } = e, i = [];
|
|
439
438
|
for (let a = 0; a < r; ++a)
|
|
@@ -449,13 +448,13 @@ function lt(n) {
|
|
|
449
448
|
function le(n, e = []) {
|
|
450
449
|
if (n === void 0 || !n.getIsReadyOrError()) return;
|
|
451
450
|
const t = n.resourceType.name, r = n.getDataAsJson();
|
|
452
|
-
if (e.length > 0 && (t === Z || t ===
|
|
451
|
+
if (e.length > 0 && (t === Z || t === J))
|
|
453
452
|
throw new Error(`Unexpected nested super-partitioned resource: ${t}`);
|
|
454
453
|
switch (t) {
|
|
455
454
|
case se:
|
|
456
455
|
case ae:
|
|
457
456
|
throw new Error(`Only data columns are supported, got: ${t}`);
|
|
458
|
-
case
|
|
457
|
+
case j: {
|
|
459
458
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
460
459
|
throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
|
|
461
460
|
const i = [];
|
|
@@ -471,15 +470,15 @@ function le(n, e = []) {
|
|
|
471
470
|
parts: i
|
|
472
471
|
};
|
|
473
472
|
}
|
|
474
|
-
case
|
|
473
|
+
case N: {
|
|
475
474
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
476
475
|
throw new Error(`Missing partitionKeyLength in metadata for ${t}`);
|
|
477
476
|
const i = [], a = /* @__PURE__ */ new Map();
|
|
478
477
|
for (const s of n.listInputFields()) {
|
|
479
478
|
const o = oe(s), l = n.resolve({ field: s, assertFieldType: "Input" });
|
|
480
479
|
if (l === void 0) return;
|
|
481
|
-
let
|
|
482
|
-
|
|
480
|
+
let g = a.get(o.baseKey);
|
|
481
|
+
g || (g = {}, a.set(o.baseKey, g)), o.type === "index" ? g.index = l : g.values = l;
|
|
483
482
|
}
|
|
484
483
|
for (const [s, o] of a.entries()) {
|
|
485
484
|
if (!o.index || !o.values) return;
|
|
@@ -505,8 +504,8 @@ function le(n, e = []) {
|
|
|
505
504
|
for (const s of n.listInputFields()) {
|
|
506
505
|
const o = n.resolve({ field: s, assertFieldType: "Input" });
|
|
507
506
|
if (o === void 0) return;
|
|
508
|
-
if (o.resourceType.name !==
|
|
509
|
-
throw new Error(`Expected ${
|
|
507
|
+
if (o.resourceType.name !== j)
|
|
508
|
+
throw new Error(`Expected ${j} inside ${t}, but got ${o.resourceType.name}`);
|
|
510
509
|
const l = le(o, JSON.parse(s));
|
|
511
510
|
if (l === void 0) return;
|
|
512
511
|
if (l.type !== "JsonPartitioned")
|
|
@@ -519,15 +518,15 @@ function le(n, e = []) {
|
|
|
519
518
|
parts: a
|
|
520
519
|
};
|
|
521
520
|
}
|
|
522
|
-
case
|
|
521
|
+
case J: {
|
|
523
522
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
524
523
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${t}`);
|
|
525
524
|
const i = r.superPartitionKeyLength + r.partitionKeyLength, a = [];
|
|
526
525
|
for (const s of n.listInputFields()) {
|
|
527
526
|
const o = n.resolve({ field: s, assertFieldType: "Input" });
|
|
528
527
|
if (o === void 0) return;
|
|
529
|
-
if (o.resourceType.name !==
|
|
530
|
-
throw new Error(`Expected ${
|
|
528
|
+
if (o.resourceType.name !== N)
|
|
529
|
+
throw new Error(`Expected ${N} inside ${t}, but got ${o.resourceType.name}`);
|
|
531
530
|
const l = le(o, JSON.parse(s));
|
|
532
531
|
if (l === void 0) return;
|
|
533
532
|
if (l.type !== "BinaryPartitioned")
|
|
@@ -544,15 +543,15 @@ function le(n, e = []) {
|
|
|
544
543
|
throw new Error(`Unknown resource type: ${t}`);
|
|
545
544
|
}
|
|
546
545
|
}
|
|
547
|
-
function
|
|
546
|
+
function ht(n) {
|
|
548
547
|
if (n !== void 0) {
|
|
549
|
-
if (
|
|
550
|
-
if (
|
|
548
|
+
if (Ae(n)) return n;
|
|
549
|
+
if (de(n)) return Ye(n);
|
|
551
550
|
if (n instanceof I) return le(n);
|
|
552
551
|
throw new Error(`Unexpected input type: ${typeof n}`);
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
|
-
function
|
|
554
|
+
function gt(n, e) {
|
|
556
555
|
const t = [...e].sort((s, o) => o[0] - s[0]), { type: r } = n;
|
|
557
556
|
switch (r) {
|
|
558
557
|
case "Json": {
|
|
@@ -624,45 +623,45 @@ function pt(n, e) {
|
|
|
624
623
|
};
|
|
625
624
|
}
|
|
626
625
|
}
|
|
627
|
-
function
|
|
626
|
+
function mt(n) {
|
|
628
627
|
if (!Array.isArray(n)) return !1;
|
|
629
628
|
if (n.length === 0) return !0;
|
|
630
629
|
const e = n[0];
|
|
631
630
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
632
631
|
}
|
|
633
|
-
class
|
|
632
|
+
class yt {
|
|
634
633
|
constructor(e) {
|
|
635
634
|
this.columns = e;
|
|
636
635
|
}
|
|
637
636
|
selectColumns(e) {
|
|
638
|
-
const t = typeof e == "function" ? e :
|
|
637
|
+
const t = typeof e == "function" ? e : q(e);
|
|
639
638
|
return this.columns.filter((r) => t(r.spec));
|
|
640
639
|
}
|
|
641
640
|
}
|
|
642
|
-
function
|
|
641
|
+
function bt(n) {
|
|
643
642
|
if (n)
|
|
644
643
|
return n.map((e) => ({
|
|
645
|
-
type: `split:${
|
|
644
|
+
type: `split:${Qe(e.axisId)}`,
|
|
646
645
|
label: e.label,
|
|
647
646
|
importance: 1e6
|
|
648
647
|
// High importance for split filters in labels
|
|
649
648
|
}));
|
|
650
649
|
}
|
|
651
|
-
function
|
|
650
|
+
function vt(n) {
|
|
652
651
|
if (n)
|
|
653
652
|
return n.map((e) => [e.axisIdx, e.value]);
|
|
654
653
|
}
|
|
655
|
-
function
|
|
654
|
+
function Tt(n, e) {
|
|
656
655
|
if (!e || e.length === 0) return n;
|
|
657
656
|
const t = [...e].sort((r, i) => r[0] - i[0]);
|
|
658
|
-
return
|
|
657
|
+
return Ie({ id: n, axisFilters: t });
|
|
659
658
|
}
|
|
660
|
-
function
|
|
659
|
+
function Te(n) {
|
|
661
660
|
if (!n || typeof n != "object") return !1;
|
|
662
661
|
const e = n, t = 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);
|
|
663
662
|
return !!e.domainAnchor || t || r;
|
|
664
663
|
}
|
|
665
|
-
function
|
|
664
|
+
function Pt(n) {
|
|
666
665
|
if (typeof n != "object" || !("axes" in n) || n.axes === void 0)
|
|
667
666
|
return [];
|
|
668
667
|
const e = n.axes.map((t, r) => typeof t == "object" && "split" in t && t.split === !0 ? r : -1).filter((t) => t !== -1);
|
|
@@ -670,9 +669,9 @@ function mt(n) {
|
|
|
670
669
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
671
670
|
return e.sort((t, r) => t - r), e;
|
|
672
671
|
}
|
|
673
|
-
class
|
|
672
|
+
class Pe {
|
|
674
673
|
constructor() {
|
|
675
|
-
|
|
674
|
+
S(this, "defaultProviderStore", []), S(this, "providers", [new yt(this.defaultProviderStore)]), S(this, "axisLabelProviders", []);
|
|
676
675
|
}
|
|
677
676
|
addColumnProvider(e) {
|
|
678
677
|
return this.providers.push(e), this;
|
|
@@ -698,131 +697,131 @@ class be {
|
|
|
698
697
|
...s && (i == null ? void 0 : i.includeNativeLabel) !== !1 ? { includeNativeLabel: !0 } : {},
|
|
699
698
|
...i ?? {}
|
|
700
699
|
};
|
|
701
|
-
let
|
|
700
|
+
let g = () => !1;
|
|
702
701
|
if (o) {
|
|
703
|
-
const u = (Array.isArray(o) ? o : [o]).map((
|
|
704
|
-
if (
|
|
702
|
+
const u = (Array.isArray(o) ? o : [o]).map((y) => {
|
|
703
|
+
if (Te(y)) {
|
|
705
704
|
if (!r)
|
|
706
705
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
707
|
-
return
|
|
706
|
+
return q(ye(r.anchors, y, t));
|
|
708
707
|
} else
|
|
709
|
-
return
|
|
708
|
+
return q(y);
|
|
710
709
|
});
|
|
711
|
-
|
|
710
|
+
g = (y) => u.some((T) => T(y));
|
|
712
711
|
}
|
|
713
|
-
const
|
|
714
|
-
for (const u of
|
|
715
|
-
const
|
|
716
|
-
let
|
|
717
|
-
if (
|
|
712
|
+
const R = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], L = [], V = /* @__PURE__ */ new Set();
|
|
713
|
+
for (const u of R) {
|
|
714
|
+
const y = Te(u);
|
|
715
|
+
let T;
|
|
716
|
+
if (y) {
|
|
718
717
|
if (!r)
|
|
719
718
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
720
|
-
|
|
719
|
+
T = ye(r.anchors, u, t);
|
|
721
720
|
} else
|
|
722
|
-
|
|
723
|
-
const
|
|
724
|
-
for (const
|
|
725
|
-
const
|
|
726
|
-
for (const
|
|
727
|
-
if (
|
|
728
|
-
if (
|
|
729
|
-
throw new Error(`Duplicate column id ${
|
|
730
|
-
const
|
|
731
|
-
V.has(
|
|
721
|
+
T = u;
|
|
722
|
+
const _ = /* @__PURE__ */ new Set(), x = [];
|
|
723
|
+
for (const c of this.providers) {
|
|
724
|
+
const w = c.selectColumns(T);
|
|
725
|
+
for (const p of w) {
|
|
726
|
+
if (g(p.spec)) continue;
|
|
727
|
+
if (_.has(p.id))
|
|
728
|
+
throw new Error(`Duplicate column id ${p.id} in provider ${c.constructor.name}`);
|
|
729
|
+
const F = Xe(p.spec);
|
|
730
|
+
V.has(F) || (_.add(p.id), V.add(F), x.push(p));
|
|
732
731
|
}
|
|
733
732
|
}
|
|
734
|
-
if (
|
|
735
|
-
const
|
|
736
|
-
for (const
|
|
737
|
-
if (!Y(
|
|
738
|
-
const
|
|
739
|
-
if (
|
|
740
|
-
if (
|
|
741
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
742
|
-
const
|
|
743
|
-
if (!
|
|
733
|
+
if (x.length === 0) continue;
|
|
734
|
+
const b = Pt(u), h = b.length > 0;
|
|
735
|
+
for (const c of x) {
|
|
736
|
+
if (!Y(c.spec)) continue;
|
|
737
|
+
const w = c.spec;
|
|
738
|
+
if (h) {
|
|
739
|
+
if (mt(c.data))
|
|
740
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${c.id}`);
|
|
741
|
+
const p = ht(c.data);
|
|
742
|
+
if (!p) {
|
|
744
743
|
if (a) continue;
|
|
745
744
|
return;
|
|
746
745
|
}
|
|
747
|
-
if (!
|
|
748
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
749
|
-
const
|
|
750
|
-
if (
|
|
751
|
-
throw new Error(`Not enough partition keys (${
|
|
752
|
-
const
|
|
753
|
-
if (
|
|
754
|
-
if (
|
|
746
|
+
if (!ze(p))
|
|
747
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${p.type} for column ${c.id}`);
|
|
748
|
+
const F = ft(p), H = b[b.length - 1];
|
|
749
|
+
if (H >= p.partitionKeyLength)
|
|
750
|
+
throw new Error(`Not enough partition keys (${p.partitionKeyLength}) for requested split axes (max index ${H}) in column ${w.name}`);
|
|
751
|
+
const $ = b.map((P) => this.findLabels(be(w.axesSpec[P]))), A = [], ce = (P, K) => {
|
|
752
|
+
if (K >= b.length) {
|
|
753
|
+
if (A.push([...P]), A.length > 1e4)
|
|
755
754
|
throw new Error("Too many key combinations, aborting.");
|
|
756
755
|
return;
|
|
757
756
|
}
|
|
758
|
-
const
|
|
759
|
-
if (
|
|
760
|
-
throw new Error(`Axis index ${
|
|
761
|
-
const
|
|
762
|
-
if (!
|
|
763
|
-
|
|
757
|
+
const k = b[K];
|
|
758
|
+
if (k >= F.length)
|
|
759
|
+
throw new Error(`Axis index ${k} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${c.id}`);
|
|
760
|
+
const D = F[k];
|
|
761
|
+
if (!D || D.length === 0) {
|
|
762
|
+
A.length = 0;
|
|
764
763
|
return;
|
|
765
764
|
}
|
|
766
|
-
for (const X of
|
|
767
|
-
|
|
765
|
+
for (const X of D)
|
|
766
|
+
P.push(X), ce(P, K + 1), P.pop();
|
|
768
767
|
};
|
|
769
|
-
if (
|
|
768
|
+
if (ce([], 0), A.length === 0)
|
|
770
769
|
continue;
|
|
771
|
-
const
|
|
772
|
-
for (let
|
|
773
|
-
|
|
774
|
-
const
|
|
775
|
-
for (const
|
|
776
|
-
const
|
|
777
|
-
const X =
|
|
778
|
-
return { axisIdx: X, axisId:
|
|
770
|
+
const fe = [...w.axesSpec], Oe = b.map((P) => P);
|
|
771
|
+
for (let P = b.length - 1; P >= 0; P--)
|
|
772
|
+
fe.splice(b[P], 1);
|
|
773
|
+
const ke = { ...w, axesSpec: fe };
|
|
774
|
+
for (const P of A) {
|
|
775
|
+
const K = P.map((k, D) => {
|
|
776
|
+
const X = Oe[D], De = be(w.axesSpec[X]), he = $[D], Ue = (he == null ? void 0 : he[k]) ?? String(k);
|
|
777
|
+
return { axisIdx: X, axisId: De, value: k, label: Ue };
|
|
779
778
|
});
|
|
780
|
-
|
|
779
|
+
L.push({
|
|
781
780
|
type: "split",
|
|
782
|
-
originalColumn:
|
|
783
|
-
spec:
|
|
784
|
-
adjustedSpec:
|
|
785
|
-
dataEntries:
|
|
786
|
-
axisFilters:
|
|
781
|
+
originalColumn: c,
|
|
782
|
+
spec: w,
|
|
783
|
+
adjustedSpec: ke,
|
|
784
|
+
dataEntries: p,
|
|
785
|
+
axisFilters: K
|
|
787
786
|
});
|
|
788
787
|
}
|
|
789
788
|
} else
|
|
790
|
-
|
|
789
|
+
L.push({
|
|
791
790
|
type: "direct",
|
|
792
|
-
originalColumn:
|
|
793
|
-
spec:
|
|
794
|
-
adjustedSpec:
|
|
791
|
+
originalColumn: c,
|
|
792
|
+
spec: w,
|
|
793
|
+
adjustedSpec: w
|
|
795
794
|
});
|
|
796
795
|
}
|
|
797
796
|
}
|
|
798
|
-
if (
|
|
799
|
-
const
|
|
800
|
-
|
|
797
|
+
if (L.length === 0) return [];
|
|
798
|
+
const f = Fe(
|
|
799
|
+
L,
|
|
801
800
|
(u) => ({
|
|
802
801
|
spec: u.spec,
|
|
803
|
-
suffixTrace: u.type === "split" ?
|
|
802
|
+
suffixTrace: u.type === "split" ? bt(u.axisFilters) : void 0
|
|
804
803
|
}),
|
|
805
804
|
l
|
|
806
|
-
),
|
|
807
|
-
for (const { value: u, label:
|
|
808
|
-
const { originalColumn:
|
|
809
|
-
let
|
|
810
|
-
r ?
|
|
811
|
-
let
|
|
812
|
-
s && (
|
|
813
|
-
...
|
|
805
|
+
), m = [];
|
|
806
|
+
for (const { value: u, label: y } of f) {
|
|
807
|
+
const { originalColumn: T, spec: _ } = u, x = u.type === "split" ? u.axisFilters : void 0, b = vt(x);
|
|
808
|
+
let h;
|
|
809
|
+
r ? h = r.deriveS(_, b) : h = Tt(T.id, b);
|
|
810
|
+
let c = { ...u.adjustedSpec };
|
|
811
|
+
s && (c = {
|
|
812
|
+
...c,
|
|
814
813
|
annotations: {
|
|
815
|
-
...
|
|
816
|
-
|
|
814
|
+
...c.annotations ?? {},
|
|
815
|
+
[O.Label]: y
|
|
817
816
|
}
|
|
818
|
-
}),
|
|
819
|
-
id:
|
|
820
|
-
spec:
|
|
821
|
-
data: () => u.type === "split" ?
|
|
822
|
-
label:
|
|
817
|
+
}), m.push({
|
|
818
|
+
id: h,
|
|
819
|
+
spec: c,
|
|
820
|
+
data: () => u.type === "split" ? Ge(gt(u.dataEntries, b)) : u.originalColumn.data,
|
|
821
|
+
label: y
|
|
823
822
|
});
|
|
824
823
|
}
|
|
825
|
-
return
|
|
824
|
+
return m;
|
|
826
825
|
}
|
|
827
826
|
getColumns(e, t) {
|
|
828
827
|
const r = this.getUniversalEntries(e, {
|
|
@@ -847,7 +846,7 @@ class be {
|
|
|
847
846
|
return i;
|
|
848
847
|
}
|
|
849
848
|
}
|
|
850
|
-
function
|
|
849
|
+
function Ce(n) {
|
|
851
850
|
const e = (i) => i.operator !== "InSet" ? i : {
|
|
852
851
|
operator: "Or",
|
|
853
852
|
operands: i.references.map((a) => ({
|
|
@@ -887,12 +886,12 @@ function ne(n, e) {
|
|
|
887
886
|
if (n[t] !== e[t]) return !1;
|
|
888
887
|
return !0;
|
|
889
888
|
}
|
|
890
|
-
function
|
|
891
|
-
return pe(n, (e) => e instanceof I ? e.handle :
|
|
889
|
+
function we(n) {
|
|
890
|
+
return pe(n, (e) => e instanceof I ? e.handle : de(e) ? Ze(e, (t) => t.handle) : e);
|
|
892
891
|
}
|
|
893
|
-
class
|
|
892
|
+
class Ct {
|
|
894
893
|
constructor() {
|
|
895
|
-
|
|
894
|
+
S(this, "ctx", d());
|
|
896
895
|
}
|
|
897
896
|
/**
|
|
898
897
|
* @deprecated use getOptions()
|
|
@@ -901,28 +900,28 @@ class yt {
|
|
|
901
900
|
return this.ctx.calculateOptions(e);
|
|
902
901
|
}
|
|
903
902
|
getOptions(e, t) {
|
|
904
|
-
const r = typeof e == "function" ? e :
|
|
903
|
+
const r = typeof e == "function" ? e : q(e), i = this.getSpecs().entries.filter((o) => r(o.obj));
|
|
905
904
|
let a = {}, s = !1;
|
|
906
|
-
return typeof t < "u" && (typeof t == "function" ? a = t : typeof t == "object" && ("includeNativeLabel" in t || "separator" in t || "addLabelAsSuffix" in t ? a = t : (t = t, a = t.label ?? {}, s = t.refsWithEnrichments ?? !1))), typeof a == "object" ?
|
|
907
|
-
ref:
|
|
905
|
+
return typeof t < "u" && (typeof t == "function" ? a = t : typeof t == "object" && ("includeNativeLabel" in t || "separator" in t || "addLabelAsSuffix" in t ? a = t : (t = t, a = t.label ?? {}, s = t.refsWithEnrichments ?? !1))), typeof a == "object" ? Fe(i, (o) => o.obj, a ?? {}).map(({ value: { ref: o }, label: l }) => ({
|
|
906
|
+
ref: ge(o, s),
|
|
908
907
|
label: l
|
|
909
908
|
})) : i.map(({ ref: o, obj: l }) => ({
|
|
910
|
-
ref:
|
|
909
|
+
ref: ge(o, s),
|
|
911
910
|
label: a(l, o)
|
|
912
911
|
}));
|
|
913
912
|
}
|
|
914
913
|
resolveAnchorCtx(e) {
|
|
915
|
-
if (e instanceof
|
|
914
|
+
if (e instanceof me) return e;
|
|
916
915
|
const t = {};
|
|
917
916
|
for (const [r, i] of Object.entries(e))
|
|
918
|
-
if (
|
|
917
|
+
if (Me(i)) {
|
|
919
918
|
const a = this.getPColumnSpecByRef(i);
|
|
920
919
|
if (!a)
|
|
921
920
|
return;
|
|
922
921
|
t[r] = a;
|
|
923
922
|
} else
|
|
924
923
|
t[r] = i;
|
|
925
|
-
return new
|
|
924
|
+
return new me(t);
|
|
926
925
|
}
|
|
927
926
|
/**
|
|
928
927
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -935,7 +934,7 @@ class yt {
|
|
|
935
934
|
getAnchoredPColumns(e, t, r) {
|
|
936
935
|
const i = this.resolveAnchorCtx(e);
|
|
937
936
|
if (i)
|
|
938
|
-
return new
|
|
937
|
+
return new Pe().addColumnProvider(this).addAxisLabelProvider(this).getColumns(t, {
|
|
939
938
|
...r,
|
|
940
939
|
anchorCtx: i
|
|
941
940
|
});
|
|
@@ -972,7 +971,7 @@ class yt {
|
|
|
972
971
|
getCanonicalOptions(e, t, r) {
|
|
973
972
|
const i = this.resolveAnchorCtx(e);
|
|
974
973
|
if (!i) return;
|
|
975
|
-
const a = new
|
|
974
|
+
const a = new Pe().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(t, {
|
|
976
975
|
...r,
|
|
977
976
|
anchorCtx: i
|
|
978
977
|
});
|
|
@@ -1015,7 +1014,7 @@ class yt {
|
|
|
1015
1014
|
ref: t.ref,
|
|
1016
1015
|
obj: {
|
|
1017
1016
|
...t.obj,
|
|
1018
|
-
data:
|
|
1017
|
+
data: qe(
|
|
1019
1018
|
t.obj.data,
|
|
1020
1019
|
(r) => new I(r, [t.ref.blockId, t.ref.name])
|
|
1021
1020
|
)
|
|
@@ -1057,7 +1056,7 @@ class yt {
|
|
|
1057
1056
|
getPColumnByRef(e) {
|
|
1058
1057
|
const t = this.getDataByRef(e);
|
|
1059
1058
|
if (t)
|
|
1060
|
-
return
|
|
1059
|
+
return We(t);
|
|
1061
1060
|
}
|
|
1062
1061
|
/**
|
|
1063
1062
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -1107,9 +1106,9 @@ class yt {
|
|
|
1107
1106
|
findLabels(e) {
|
|
1108
1107
|
const t = this.getData();
|
|
1109
1108
|
for (const r of t.entries) {
|
|
1110
|
-
if (!
|
|
1109
|
+
if (!_e(r.obj)) continue;
|
|
1111
1110
|
const i = r.obj.spec;
|
|
1112
|
-
if (i.name ===
|
|
1111
|
+
if (i.name === ue.Label && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ne(e.domain, i.axesSpec[0].domain)) {
|
|
1113
1112
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
1114
1113
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
1115
1114
|
return Object.fromEntries(
|
|
@@ -1128,13 +1127,13 @@ class yt {
|
|
|
1128
1127
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
1129
1128
|
*/
|
|
1130
1129
|
selectColumns(e) {
|
|
1131
|
-
const t = typeof e == "function" ? e :
|
|
1130
|
+
const t = typeof e == "function" ? e : q(e);
|
|
1132
1131
|
return this.getSpecs().entries.filter(({ obj: r }) => Y(r) ? t(r) : !1).map(({ ref: r, obj: i }) => {
|
|
1133
1132
|
const a = i;
|
|
1134
1133
|
let s = null;
|
|
1135
1134
|
const o = this;
|
|
1136
1135
|
return {
|
|
1137
|
-
id:
|
|
1136
|
+
id: Ie(r),
|
|
1138
1137
|
spec: a,
|
|
1139
1138
|
get data() {
|
|
1140
1139
|
var l;
|
|
@@ -1148,20 +1147,19 @@ class yt {
|
|
|
1148
1147
|
* @returns a map of axis value => label
|
|
1149
1148
|
*/
|
|
1150
1149
|
findLabelsForColumnAxis(e, t) {
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
return Object.fromEntries(s.map((o) => [o, i[o] ?? "Unlabelled"]));
|
|
1150
|
+
const r = this.findLabels(e.axesSpec[t]);
|
|
1151
|
+
if (!r) return;
|
|
1152
|
+
const i = M(e, `pl7.app/axisKeys/${t}`);
|
|
1153
|
+
if (i !== void 0) {
|
|
1154
|
+
const a = JSON.parse(i);
|
|
1155
|
+
return Object.fromEntries(a.map((s) => [s, r[s] ?? "Unlabelled"]));
|
|
1158
1156
|
} else
|
|
1159
|
-
return
|
|
1157
|
+
return r;
|
|
1160
1158
|
}
|
|
1161
1159
|
}
|
|
1162
1160
|
class z {
|
|
1163
1161
|
constructor() {
|
|
1164
|
-
|
|
1162
|
+
S(this, "ctx"), S(this, "_argsCache"), S(this, "_uiStateCache"), S(this, "_activeArgsCache"), S(this, "resultPool", new Ct()), this.ctx = d();
|
|
1165
1163
|
}
|
|
1166
1164
|
get args() {
|
|
1167
1165
|
if (this._argsCache === void 0) {
|
|
@@ -1201,10 +1199,10 @@ class z {
|
|
|
1201
1199
|
);
|
|
1202
1200
|
}
|
|
1203
1201
|
get prerun() {
|
|
1204
|
-
return this.getNamedAccessor(
|
|
1202
|
+
return this.getNamedAccessor(st);
|
|
1205
1203
|
}
|
|
1206
1204
|
get outputs() {
|
|
1207
|
-
return this.getNamedAccessor(
|
|
1205
|
+
return this.getNamedAccessor(at);
|
|
1208
1206
|
}
|
|
1209
1207
|
/**
|
|
1210
1208
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -1216,7 +1214,7 @@ class z {
|
|
|
1216
1214
|
}
|
|
1217
1215
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
1218
1216
|
var t;
|
|
1219
|
-
const r = e.some((a) => !(a.data instanceof I) ||
|
|
1217
|
+
const r = e.some((a) => !(a.data instanceof I) || de(a.data)), i = ((t = this.ctx.featureFlags) == null ? void 0 : t.inlineColumnsSupport) === !0;
|
|
1220
1218
|
if (r && !i) throw Error("Inline or explicit columns not supported");
|
|
1221
1219
|
}
|
|
1222
1220
|
patchPTableDef(e) {
|
|
@@ -1227,14 +1225,14 @@ class z {
|
|
|
1227
1225
|
filters: [...e.partitionFilters, ...e.filters]
|
|
1228
1226
|
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
1229
1227
|
...e,
|
|
1230
|
-
partitionFilters:
|
|
1231
|
-
filters:
|
|
1228
|
+
partitionFilters: Ce(e.partitionFilters),
|
|
1229
|
+
filters: Ce(e.filters)
|
|
1232
1230
|
}), e;
|
|
1233
1231
|
}
|
|
1234
1232
|
// TODO remove all non-PColumn fields
|
|
1235
1233
|
createPFrame(e) {
|
|
1236
1234
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
1237
|
-
e.map((t) =>
|
|
1235
|
+
e.map((t) => we(t))
|
|
1238
1236
|
);
|
|
1239
1237
|
}
|
|
1240
1238
|
createPTable(e) {
|
|
@@ -1247,8 +1245,8 @@ class z {
|
|
|
1247
1245
|
partitionFilters: e.filters ?? [],
|
|
1248
1246
|
filters: [],
|
|
1249
1247
|
sorting: e.sorting ?? []
|
|
1250
|
-
}) : t = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(
|
|
1251
|
-
|
|
1248
|
+
}) : t = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(je(t.src)), this.ctx.createPTable(
|
|
1249
|
+
Je(t, (r) => we(r))
|
|
1252
1250
|
);
|
|
1253
1251
|
}
|
|
1254
1252
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -1268,17 +1266,17 @@ class z {
|
|
|
1268
1266
|
this.ctx.logError(e);
|
|
1269
1267
|
}
|
|
1270
1268
|
}
|
|
1271
|
-
const
|
|
1272
|
-
function
|
|
1269
|
+
const wt = "1.42.16", Q = wt;
|
|
1270
|
+
function St(n) {
|
|
1273
1271
|
return n.__renderLambda === !0;
|
|
1274
1272
|
}
|
|
1275
1273
|
function re(n) {
|
|
1276
1274
|
if (n !== void 0)
|
|
1277
|
-
return
|
|
1275
|
+
return St(n) ? n.handle : n;
|
|
1278
1276
|
}
|
|
1279
|
-
const
|
|
1280
|
-
constructor(e, t, r, i, a, s, o, l,
|
|
1281
|
-
this._renderingMode = e, this._initialArgs = t, this._initialUiState = r, this._outputs = i, this._inputsValid = a, this._sections = s, this._title = o, this._enrichmentTargets = l, this._featureFlags =
|
|
1277
|
+
const _t = class v {
|
|
1278
|
+
constructor(e, t, r, i, a, s, o, l, g) {
|
|
1279
|
+
this._renderingMode = e, this._initialArgs = t, this._initialUiState = r, this._outputs = i, this._inputsValid = a, this._sections = s, this._title = o, this._enrichmentTargets = l, this._featureFlags = g;
|
|
1282
1280
|
}
|
|
1283
1281
|
static create(e = "Heavy") {
|
|
1284
1282
|
return new v(
|
|
@@ -1296,7 +1294,7 @@ const Tt = class v {
|
|
|
1296
1294
|
output(e, t, r = {}) {
|
|
1297
1295
|
if (typeof t == "function") {
|
|
1298
1296
|
const i = `output#${e}`;
|
|
1299
|
-
return
|
|
1297
|
+
return B(i, () => t(new z())), new v(
|
|
1300
1298
|
this._renderingMode,
|
|
1301
1299
|
this._initialArgs,
|
|
1302
1300
|
this._initialUiState,
|
|
@@ -1335,7 +1333,7 @@ const Tt = class v {
|
|
|
1335
1333
|
return this.output(e, t, { retentive: !0 });
|
|
1336
1334
|
}
|
|
1337
1335
|
argsValid(e) {
|
|
1338
|
-
return typeof e == "function" ? (
|
|
1336
|
+
return typeof e == "function" ? (B("inputsValid", () => e(new z())), new v(
|
|
1339
1337
|
this._renderingMode,
|
|
1340
1338
|
this._initialArgs,
|
|
1341
1339
|
this._initialUiState,
|
|
@@ -1361,7 +1359,7 @@ const Tt = class v {
|
|
|
1361
1359
|
);
|
|
1362
1360
|
}
|
|
1363
1361
|
sections(e) {
|
|
1364
|
-
return Array.isArray(e) ? this.sections(ee(e)) : typeof e == "function" ? (
|
|
1362
|
+
return Array.isArray(e) ? this.sections(ee(e)) : typeof e == "function" ? (B("sections", () => e(new z())), new v(
|
|
1365
1363
|
this._renderingMode,
|
|
1366
1364
|
this._initialArgs,
|
|
1367
1365
|
this._initialUiState,
|
|
@@ -1385,7 +1383,7 @@ const Tt = class v {
|
|
|
1385
1383
|
}
|
|
1386
1384
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
1387
1385
|
title(e) {
|
|
1388
|
-
return
|
|
1386
|
+
return B("title", () => e(new z())), new v(
|
|
1389
1387
|
this._renderingMode,
|
|
1390
1388
|
this._initialArgs,
|
|
1391
1389
|
this._initialUiState,
|
|
@@ -1461,7 +1459,7 @@ const Tt = class v {
|
|
|
1461
1459
|
* Influences dependency graph construction.
|
|
1462
1460
|
*/
|
|
1463
1461
|
enriches(e) {
|
|
1464
|
-
return
|
|
1462
|
+
return B("enrichmentTargets", e), new v(
|
|
1465
1463
|
this._renderingMode,
|
|
1466
1464
|
this._initialArgs,
|
|
1467
1465
|
this._initialUiState,
|
|
@@ -1508,15 +1506,15 @@ const Tt = class v {
|
|
|
1508
1506
|
Object.entries(this._outputs).map(([r, i]) => [r, re(i)])
|
|
1509
1507
|
)
|
|
1510
1508
|
};
|
|
1511
|
-
return globalThis.platformaApiVersion = e,
|
|
1509
|
+
return globalThis.platformaApiVersion = e, nt() ? xe({ sdkVersion: Q, apiVersion: platformaApiVersion }) : { config: t };
|
|
1512
1510
|
}
|
|
1513
1511
|
};
|
|
1514
|
-
|
|
1512
|
+
S(_t, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
1515
1513
|
supportsLazyState: !0,
|
|
1516
1514
|
requiresUIAPIVersion: 1,
|
|
1517
1515
|
requiresModelAPIVersion: 1
|
|
1518
1516
|
});
|
|
1519
|
-
function
|
|
1517
|
+
function Le() {
|
|
1520
1518
|
return {
|
|
1521
1519
|
sourceId: null,
|
|
1522
1520
|
hiddenColIds: null,
|
|
@@ -1525,78 +1523,74 @@ function Fe() {
|
|
|
1525
1523
|
sorting: []
|
|
1526
1524
|
};
|
|
1527
1525
|
}
|
|
1528
|
-
function
|
|
1526
|
+
function Se() {
|
|
1529
1527
|
return {
|
|
1530
1528
|
version: 4,
|
|
1531
1529
|
stateCache: [],
|
|
1532
|
-
pTableParams:
|
|
1530
|
+
pTableParams: Le()
|
|
1533
1531
|
};
|
|
1534
1532
|
}
|
|
1535
|
-
function
|
|
1536
|
-
return "version" in n || (n =
|
|
1533
|
+
function Ft(n) {
|
|
1534
|
+
return "version" in n || (n = Se()), n.version === 2 && (n = {
|
|
1537
1535
|
version: 3,
|
|
1538
1536
|
stateCache: n.stateCache.map((e) => ({
|
|
1539
1537
|
...e,
|
|
1540
1538
|
filtersState: []
|
|
1541
1539
|
})),
|
|
1542
|
-
pTableParams:
|
|
1543
|
-
}), n.version === 3 && (n =
|
|
1540
|
+
pTableParams: Le()
|
|
1541
|
+
}), n.version === 3 && (n = Se()), n;
|
|
1544
1542
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return n.axesSpec.length === 1 && n.name ===
|
|
1543
|
+
function Et(n) {
|
|
1544
|
+
return n.axesSpec.length === 1 && n.name === ue.Label;
|
|
1547
1545
|
}
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1550
|
-
return ((e = n.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
1546
|
+
function Lt(n) {
|
|
1547
|
+
return M(n, O.Table.Visibility) === "hidden";
|
|
1551
1548
|
}
|
|
1552
|
-
function
|
|
1553
|
-
|
|
1554
|
-
return ((e = n.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
1549
|
+
function Vt(n) {
|
|
1550
|
+
return M(n, O.Table.Visibility) === "optional";
|
|
1555
1551
|
}
|
|
1556
|
-
function
|
|
1557
|
-
|
|
1558
|
-
return ((e = n.annotations) == null ? void 0 : e[Pt]) === "true";
|
|
1552
|
+
function Ot(n) {
|
|
1553
|
+
return !!Ne(n, O.IsLinkerColumn);
|
|
1559
1554
|
}
|
|
1560
|
-
|
|
1561
|
-
function Et({
|
|
1555
|
+
function kt({
|
|
1562
1556
|
selection: n,
|
|
1563
|
-
columnId: e =
|
|
1557
|
+
columnId: e = Be(),
|
|
1564
1558
|
label: t = "Selection marker",
|
|
1565
1559
|
domain: r
|
|
1566
1560
|
}) {
|
|
1567
1561
|
if (!(n != null && n.axesSpec.length))
|
|
1568
1562
|
return;
|
|
1569
|
-
const i = n.selectedKeys.filter((a) => a.every((s) => !
|
|
1563
|
+
const i = n.selectedKeys.filter((a) => a.every((s) => !Re(s))).map((a) => ({ key: a, val: 1 }));
|
|
1570
1564
|
if (i.length)
|
|
1571
1565
|
return {
|
|
1572
1566
|
id: e,
|
|
1573
1567
|
spec: {
|
|
1574
1568
|
kind: "PColumn",
|
|
1575
|
-
valueType:
|
|
1576
|
-
name:
|
|
1569
|
+
valueType: Ke.Int,
|
|
1570
|
+
name: ue.Table.RowSelection,
|
|
1577
1571
|
axesSpec: n.axesSpec,
|
|
1578
1572
|
...r && Object.keys(r).length && { domain: r },
|
|
1579
1573
|
annotations: {
|
|
1580
|
-
|
|
1581
|
-
|
|
1574
|
+
[O.Label]: t,
|
|
1575
|
+
[O.DiscreteValues]: $e([1])
|
|
1582
1576
|
}
|
|
1583
1577
|
},
|
|
1584
1578
|
data: i
|
|
1585
1579
|
};
|
|
1586
1580
|
}
|
|
1587
|
-
function
|
|
1581
|
+
function Dt() {
|
|
1588
1582
|
return {
|
|
1589
1583
|
axesSpec: [],
|
|
1590
1584
|
selectedKeys: []
|
|
1591
1585
|
};
|
|
1592
1586
|
}
|
|
1593
|
-
function
|
|
1587
|
+
function E(n) {
|
|
1594
1588
|
return n.valueType === "Int" || n.valueType === "Long" || n.valueType === "Float" || n.valueType === "Double";
|
|
1595
1589
|
}
|
|
1596
1590
|
function G(n) {
|
|
1597
1591
|
return n.valueType === "String";
|
|
1598
1592
|
}
|
|
1599
|
-
const
|
|
1593
|
+
const Ve = {
|
|
1600
1594
|
lessThan: {
|
|
1601
1595
|
label: "Col < X (Less Than)",
|
|
1602
1596
|
form: {
|
|
@@ -1617,7 +1611,7 @@ const xe = {
|
|
|
1617
1611
|
defaultValue: () => 0
|
|
1618
1612
|
}
|
|
1619
1613
|
},
|
|
1620
|
-
supportedFor:
|
|
1614
|
+
supportedFor: E
|
|
1621
1615
|
},
|
|
1622
1616
|
greaterThan: {
|
|
1623
1617
|
label: "Col > X (Greater Than)",
|
|
@@ -1639,7 +1633,7 @@ const xe = {
|
|
|
1639
1633
|
defaultValue: () => 0
|
|
1640
1634
|
}
|
|
1641
1635
|
},
|
|
1642
|
-
supportedFor:
|
|
1636
|
+
supportedFor: E
|
|
1643
1637
|
},
|
|
1644
1638
|
lessThanOrEqual: {
|
|
1645
1639
|
label: "Col ≤ X (Less Than or Equal)",
|
|
@@ -1661,7 +1655,7 @@ const xe = {
|
|
|
1661
1655
|
defaultValue: () => 0
|
|
1662
1656
|
}
|
|
1663
1657
|
},
|
|
1664
|
-
supportedFor:
|
|
1658
|
+
supportedFor: E
|
|
1665
1659
|
},
|
|
1666
1660
|
greaterThanOrEqual: {
|
|
1667
1661
|
label: "Col ≥ X (Greater Than or Equal)",
|
|
@@ -1683,7 +1677,7 @@ const xe = {
|
|
|
1683
1677
|
defaultValue: () => 0
|
|
1684
1678
|
}
|
|
1685
1679
|
},
|
|
1686
|
-
supportedFor:
|
|
1680
|
+
supportedFor: E
|
|
1687
1681
|
},
|
|
1688
1682
|
lessThanColumn: {
|
|
1689
1683
|
label: "Col₁ < Col₂ (Compare Columns)",
|
|
@@ -1712,7 +1706,7 @@ const xe = {
|
|
|
1712
1706
|
}
|
|
1713
1707
|
}
|
|
1714
1708
|
},
|
|
1715
|
-
supportedFor: (n, e) =>
|
|
1709
|
+
supportedFor: (n, e) => E(n) && (e === void 0 || E(e))
|
|
1716
1710
|
},
|
|
1717
1711
|
lessThanColumnOrEqual: {
|
|
1718
1712
|
label: "Col₁ ≤ Col₂ (Compare Columns)",
|
|
@@ -1741,7 +1735,7 @@ const xe = {
|
|
|
1741
1735
|
}
|
|
1742
1736
|
}
|
|
1743
1737
|
},
|
|
1744
|
-
supportedFor: (n, e) =>
|
|
1738
|
+
supportedFor: (n, e) => E(n) && (e === void 0 || E(e))
|
|
1745
1739
|
},
|
|
1746
1740
|
topN: {
|
|
1747
1741
|
label: "Top N",
|
|
@@ -1763,7 +1757,7 @@ const xe = {
|
|
|
1763
1757
|
defaultValue: () => 10
|
|
1764
1758
|
}
|
|
1765
1759
|
},
|
|
1766
|
-
supportedFor:
|
|
1760
|
+
supportedFor: E
|
|
1767
1761
|
},
|
|
1768
1762
|
bottomN: {
|
|
1769
1763
|
label: "Bottom N",
|
|
@@ -1785,7 +1779,7 @@ const xe = {
|
|
|
1785
1779
|
defaultValue: () => 10
|
|
1786
1780
|
}
|
|
1787
1781
|
},
|
|
1788
|
-
supportedFor:
|
|
1782
|
+
supportedFor: E
|
|
1789
1783
|
},
|
|
1790
1784
|
patternContainSubsequence: {
|
|
1791
1785
|
label: "Col ~ Seq (Contain Subsequence)",
|
|
@@ -1960,115 +1954,125 @@ const xe = {
|
|
|
1960
1954
|
supportedFor: () => !1
|
|
1961
1955
|
}
|
|
1962
1956
|
};
|
|
1963
|
-
function
|
|
1964
|
-
return n ? Object.entries(
|
|
1957
|
+
function Ut(n) {
|
|
1958
|
+
return n ? Object.entries(Ve).filter(([e, t]) => t.supportedFor(n)).map(([e, t]) => ({
|
|
1965
1959
|
label: t.label,
|
|
1966
1960
|
value: e
|
|
1967
1961
|
})) : [];
|
|
1968
1962
|
}
|
|
1969
|
-
function
|
|
1970
|
-
return
|
|
1963
|
+
function Nt(n) {
|
|
1964
|
+
return Ve[n];
|
|
1971
1965
|
}
|
|
1972
|
-
function
|
|
1966
|
+
function Rt() {
|
|
1973
1967
|
return platformaApiVersion ?? 1;
|
|
1974
1968
|
}
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
1969
|
+
function $t() {
|
|
1970
|
+
return xe({ sdkVersion: Q, apiVersion: platformaApiVersion });
|
|
1977
1971
|
}
|
|
1978
|
-
function
|
|
1972
|
+
function Kt(n) {
|
|
1979
1973
|
if (typeof globalThis.getEnvironmentValue == "function")
|
|
1980
1974
|
return globalThis.getEnvironmentValue(n);
|
|
1981
1975
|
}
|
|
1982
1976
|
export {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
1977
|
+
me as AnchoredIdDeriver,
|
|
1978
|
+
O as Annotation,
|
|
1979
|
+
Jt as AnnotationJson,
|
|
1980
|
+
Mt as AxisSpec,
|
|
1981
|
+
bn as BasePlErrorLike,
|
|
1982
|
+
qt as Domain,
|
|
1983
|
+
vn as ErrorLike,
|
|
1984
|
+
C as FutureRef,
|
|
1985
|
+
Pe as PColumnCollection,
|
|
1986
|
+
ue as PColumnName,
|
|
1987
|
+
Wt as PTableAbsent,
|
|
1988
|
+
Ht as PTableNA,
|
|
1989
|
+
Tn as PlErrorLike,
|
|
1990
|
+
Xt as PlId,
|
|
1991
|
+
zt as PlIdBytes,
|
|
1992
|
+
Gt as PlIdLength,
|
|
1993
|
+
N as RT_BINARY_PARTITIONED,
|
|
1994
|
+
J as RT_BINARY_SUPER_PARTITIONED,
|
|
1995
|
+
j as RT_JSON_PARTITIONED,
|
|
2000
1996
|
Z as RT_JSON_SUPER_PARTITIONED,
|
|
2001
1997
|
se as RT_RESOURCE_MAP,
|
|
2002
1998
|
ae as RT_RESOURCE_MAP_PARTITIONED,
|
|
2003
1999
|
z as RenderCtx,
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2000
|
+
Ct as ResultPool,
|
|
2001
|
+
Pn as StandardErrorLike,
|
|
2002
|
+
lt as Trace,
|
|
2003
|
+
ot as TraceEntry,
|
|
2008
2004
|
I as TreeNodeAccessor,
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2005
|
+
Ke as ValueType,
|
|
2006
|
+
Qe as canonicalizeAxisId,
|
|
2007
|
+
Yt as canonicalizeJson,
|
|
2008
|
+
ht as convertOrParsePColumnData,
|
|
2009
|
+
Se as createPlDataTableStateV2,
|
|
2010
|
+
Dt as createPlSelectionModel,
|
|
2011
|
+
kt as createRowSelectionColumn,
|
|
2012
|
+
Ye as dataInfoToEntries,
|
|
2013
|
+
Fe as deriveLabels,
|
|
2014
|
+
Xe as deriveNativeId,
|
|
2015
|
+
Qt as deserializeError,
|
|
2019
2016
|
re as downgradeCfgOrLambda,
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2017
|
+
Zt as ensureError,
|
|
2018
|
+
Cn as ensureErrorLike,
|
|
2019
|
+
We as ensurePColumn,
|
|
2020
|
+
Ge as entriesToDataInfo,
|
|
2021
|
+
je as extractAllColumns,
|
|
2022
|
+
gt as filterDataInfoEntries,
|
|
2023
|
+
Ve as filterUiMetadata,
|
|
2024
|
+
en as getAxesId,
|
|
2025
|
+
be as getAxisId,
|
|
2026
|
+
Kt as getEnvironmentValue,
|
|
2027
|
+
Nt as getFilterUiMetadata,
|
|
2028
|
+
Ut as getFilterUiTypeOptions,
|
|
2032
2029
|
ee as getImmediate,
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2030
|
+
tn as getPTableColumnId,
|
|
2031
|
+
pt as getPartitionKeysList,
|
|
2032
|
+
Rt as getPlatformaApiVersion,
|
|
2033
|
+
$t as getRawPlatformaInstance,
|
|
2034
|
+
ft as getUniquePartitionKeys,
|
|
2035
|
+
nn as hasAbortError,
|
|
2039
2036
|
ie as ifDef,
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2037
|
+
Lt as isColumnHidden,
|
|
2038
|
+
Vt as isColumnOptional,
|
|
2039
|
+
St as isConfigLambda,
|
|
2040
|
+
de as isDataInfo,
|
|
2041
|
+
Ae as isDataInfoEntries,
|
|
2042
|
+
Et as isLabelColumn,
|
|
2043
|
+
Ot as isLinkerColumn,
|
|
2044
|
+
_e as isPColumn,
|
|
2048
2045
|
Y as isPColumnSpec,
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2046
|
+
Re as isPTableAbsent,
|
|
2047
|
+
rn as isPTableNA,
|
|
2048
|
+
sn as isPTableValueAxis,
|
|
2049
|
+
ze as isPartitionedDataInfoEntries,
|
|
2050
|
+
Me as isPlRef,
|
|
2051
|
+
Le as makeDefaultPTableParams,
|
|
2052
|
+
Ze as mapDataInfo,
|
|
2053
|
+
an as mapJoinEntry,
|
|
2057
2054
|
pe as mapPObjectData,
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2055
|
+
Je as mapPTableDef,
|
|
2056
|
+
qe as mapValueInVOE,
|
|
2057
|
+
on as matchAxis,
|
|
2058
|
+
ln as matchAxisId,
|
|
2059
|
+
un as matchPColumn,
|
|
2060
|
+
dn as pTableValue,
|
|
2061
|
+
He as parseJson,
|
|
2065
2062
|
le as parsePColumnData,
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2063
|
+
M as readAnnotation,
|
|
2064
|
+
Ne as readAnnotationJson,
|
|
2065
|
+
pn as readDomain,
|
|
2066
|
+
cn as readMetadata,
|
|
2067
|
+
fn as readMetadataJson,
|
|
2068
|
+
hn as readMetadataJsonOrThrow,
|
|
2069
|
+
ye as resolveAnchors,
|
|
2070
|
+
q as selectorsToPredicate,
|
|
2071
|
+
gn as stringifyColumnId,
|
|
2072
|
+
$e as stringifyJson,
|
|
2073
|
+
Be as uniquePlId,
|
|
2074
|
+
mn as unwrapResult,
|
|
2075
|
+
Ft as upgradePlDataTableStateV2,
|
|
2076
|
+
ge as withEnrichments
|
|
2073
2077
|
};
|
|
2074
2078
|
//# sourceMappingURL=index.js.map
|