@milaboratories/milaboratories.ui-examples.model 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +15 -0
- package/dist/bundle.js +667 -593
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
54
54
|
}
|
|
55
55
|
util2.joinValues = joinValues;
|
|
56
|
-
util2.jsonStringifyReplacer = (
|
|
56
|
+
util2.jsonStringifyReplacer = (_2, value) => {
|
|
57
57
|
if (typeof value === "bigint") {
|
|
58
58
|
return value.toString();
|
|
59
59
|
}
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
overrideMap,
|
|
392
392
|
overrideMap === errorMap ? void 0 : errorMap
|
|
393
393
|
// then global default map
|
|
394
|
-
].filter((
|
|
394
|
+
].filter((x2) => !!x2)
|
|
395
395
|
});
|
|
396
396
|
ctx.common.issues.push(issue);
|
|
397
397
|
}
|
|
@@ -454,15 +454,15 @@
|
|
|
454
454
|
});
|
|
455
455
|
const DIRTY = (value) => ({ status: "dirty", value });
|
|
456
456
|
const OK = (value) => ({ status: "valid", value });
|
|
457
|
-
const isAborted = (
|
|
458
|
-
const isDirty = (
|
|
459
|
-
const isValid = (
|
|
460
|
-
const isAsync = (
|
|
461
|
-
function __classPrivateFieldGet(receiver, state, kind,
|
|
457
|
+
const isAborted = (x2) => x2.status === "aborted";
|
|
458
|
+
const isDirty = (x2) => x2.status === "dirty";
|
|
459
|
+
const isValid = (x2) => x2.status === "valid";
|
|
460
|
+
const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
|
|
461
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
462
462
|
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
463
463
|
return state.get(receiver);
|
|
464
464
|
}
|
|
465
|
-
function __classPrivateFieldSet(receiver, state, value, kind,
|
|
465
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
466
466
|
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
467
467
|
return state.set(receiver, value), value;
|
|
468
468
|
}
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
if (!schema)
|
|
2788
2788
|
return null;
|
|
2789
2789
|
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
2790
|
-
}).filter((
|
|
2790
|
+
}).filter((x2) => !!x2);
|
|
2791
2791
|
if (ctx.common.async) {
|
|
2792
2792
|
return Promise.all(items).then((results) => {
|
|
2793
2793
|
return ParseStatus.mergeArray(status, results);
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
ctx.schemaErrorMap,
|
|
3046
3046
|
getErrorMap(),
|
|
3047
3047
|
errorMap
|
|
3048
|
-
].filter((
|
|
3048
|
+
].filter((x2) => !!x2),
|
|
3049
3049
|
issueData: {
|
|
3050
3050
|
code: ZodIssueCode.invalid_arguments,
|
|
3051
3051
|
argumentsError: error
|
|
@@ -3061,7 +3061,7 @@
|
|
|
3061
3061
|
ctx.schemaErrorMap,
|
|
3062
3062
|
getErrorMap(),
|
|
3063
3063
|
errorMap
|
|
3064
|
-
].filter((
|
|
3064
|
+
].filter((x2) => !!x2),
|
|
3065
3065
|
issueData: {
|
|
3066
3066
|
code: ZodIssueCode.invalid_return_type,
|
|
3067
3067
|
returnTypeError: error
|
|
@@ -3914,8 +3914,8 @@
|
|
|
3914
3914
|
quotelessJson,
|
|
3915
3915
|
ZodError
|
|
3916
3916
|
});
|
|
3917
|
-
function getDefaultExportFromCjs(
|
|
3918
|
-
return
|
|
3917
|
+
function getDefaultExportFromCjs(x2) {
|
|
3918
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
3919
3919
|
}
|
|
3920
3920
|
var canonicalize;
|
|
3921
3921
|
var hasRequiredCanonicalize;
|
|
@@ -3955,239 +3955,239 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3959
|
-
var
|
|
3960
|
-
var
|
|
3961
|
-
var l$1 = (
|
|
3958
|
+
const Re = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
+
var D$1 = Object.defineProperty;
|
|
3960
|
+
var L = (e, n2, t) => n2 in e ? D$1(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
|
|
3961
|
+
var l$1 = (e, n2, t) => L(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
|
|
3962
3962
|
z$1.object({
|
|
3963
3963
|
/** Included left border. */
|
|
3964
3964
|
from: z$1.number(),
|
|
3965
3965
|
/** Excluded right border. */
|
|
3966
3966
|
to: z$1.number()
|
|
3967
3967
|
});
|
|
3968
|
-
function
|
|
3969
|
-
throw new Error("Unexpected object: " +
|
|
3968
|
+
function A(e) {
|
|
3969
|
+
throw new Error("Unexpected object: " + e);
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3972
|
-
if (!
|
|
3971
|
+
function Oe(e) {
|
|
3972
|
+
if (!e || typeof e != "object")
|
|
3973
3973
|
return false;
|
|
3974
|
-
const
|
|
3975
|
-
if (!("type" in
|
|
3974
|
+
const n2 = e;
|
|
3975
|
+
if (!("type" in n2))
|
|
3976
3976
|
return false;
|
|
3977
|
-
switch (
|
|
3977
|
+
switch (n2.type) {
|
|
3978
3978
|
case "Json":
|
|
3979
|
-
return typeof
|
|
3979
|
+
return typeof n2.keyLength == "number" && n2.data !== void 0 && typeof n2.data == "object";
|
|
3980
3980
|
case "JsonPartitioned":
|
|
3981
|
-
return typeof
|
|
3981
|
+
return typeof n2.partitionKeyLength == "number" && n2.parts !== void 0 && typeof n2.parts == "object";
|
|
3982
3982
|
case "BinaryPartitioned":
|
|
3983
|
-
return typeof
|
|
3983
|
+
return typeof n2.partitionKeyLength == "number" && n2.parts !== void 0 && typeof n2.parts == "object";
|
|
3984
3984
|
default:
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3989
|
-
if (
|
|
3990
|
-
switch (
|
|
3988
|
+
function Ce(e, n2) {
|
|
3989
|
+
if (e !== void 0)
|
|
3990
|
+
switch (e.type) {
|
|
3991
3991
|
case "Json":
|
|
3992
|
-
return
|
|
3992
|
+
return e;
|
|
3993
3993
|
case "JsonPartitioned": {
|
|
3994
3994
|
const t = {};
|
|
3995
|
-
for (const [r, o] of Object.entries(
|
|
3996
|
-
t[r] =
|
|
3995
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
3996
|
+
t[r] = n2(o);
|
|
3997
3997
|
return {
|
|
3998
|
-
...
|
|
3998
|
+
...e,
|
|
3999
3999
|
parts: t
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
4002
|
case "BinaryPartitioned": {
|
|
4003
4003
|
const t = {};
|
|
4004
|
-
for (const [r, o] of Object.entries(
|
|
4004
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
4005
4005
|
t[r] = {
|
|
4006
|
-
index:
|
|
4007
|
-
values:
|
|
4006
|
+
index: n2(o.index),
|
|
4007
|
+
values: n2(o.values)
|
|
4008
4008
|
};
|
|
4009
4009
|
return {
|
|
4010
|
-
...
|
|
4010
|
+
...e,
|
|
4011
4011
|
parts: t
|
|
4012
4012
|
};
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4017
|
-
if (!
|
|
4016
|
+
function _(e) {
|
|
4017
|
+
if (!e || typeof e != "object")
|
|
4018
4018
|
return false;
|
|
4019
|
-
const
|
|
4020
|
-
if (!("type" in
|
|
4019
|
+
const n2 = e;
|
|
4020
|
+
if (!("type" in n2))
|
|
4021
4021
|
return false;
|
|
4022
|
-
switch (
|
|
4022
|
+
switch (n2.type) {
|
|
4023
4023
|
case "Json":
|
|
4024
|
-
return typeof
|
|
4024
|
+
return typeof n2.keyLength == "number" && Array.isArray(n2.data);
|
|
4025
4025
|
case "JsonPartitioned":
|
|
4026
|
-
return typeof
|
|
4026
|
+
return typeof n2.partitionKeyLength == "number" && Array.isArray(n2.parts);
|
|
4027
4027
|
case "BinaryPartitioned":
|
|
4028
|
-
return typeof
|
|
4028
|
+
return typeof n2.partitionKeyLength == "number" && Array.isArray(n2.parts);
|
|
4029
4029
|
default:
|
|
4030
4030
|
return false;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return
|
|
4033
|
+
function $e$1(e) {
|
|
4034
|
+
return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4037
|
-
switch (
|
|
4036
|
+
function Ve$1(e) {
|
|
4037
|
+
switch (e.type) {
|
|
4038
4038
|
case "Json": {
|
|
4039
|
-
const
|
|
4039
|
+
const n2 = Object.entries(e.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
4040
4040
|
return {
|
|
4041
4041
|
type: "Json",
|
|
4042
|
-
keyLength:
|
|
4043
|
-
data:
|
|
4042
|
+
keyLength: e.keyLength,
|
|
4043
|
+
data: n2
|
|
4044
4044
|
};
|
|
4045
4045
|
}
|
|
4046
4046
|
case "JsonPartitioned": {
|
|
4047
|
-
const
|
|
4047
|
+
const n2 = Object.entries(e.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
4048
4048
|
return {
|
|
4049
4049
|
type: "JsonPartitioned",
|
|
4050
|
-
partitionKeyLength:
|
|
4051
|
-
parts:
|
|
4050
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
4051
|
+
parts: n2
|
|
4052
4052
|
};
|
|
4053
4053
|
}
|
|
4054
4054
|
case "BinaryPartitioned": {
|
|
4055
|
-
const
|
|
4055
|
+
const n2 = Object.entries(e.parts).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
4056
4056
|
return {
|
|
4057
4057
|
type: "BinaryPartitioned",
|
|
4058
|
-
partitionKeyLength:
|
|
4059
|
-
parts:
|
|
4058
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
4059
|
+
parts: n2
|
|
4060
4060
|
};
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4065
|
-
switch (
|
|
4064
|
+
function Ie$1(e) {
|
|
4065
|
+
switch (e.type) {
|
|
4066
4066
|
case "Json": {
|
|
4067
|
-
const
|
|
4068
|
-
for (const t of
|
|
4069
|
-
|
|
4067
|
+
const n2 = {};
|
|
4068
|
+
for (const t of e.data)
|
|
4069
|
+
n2[JSON.stringify(t.key)] = t.value;
|
|
4070
4070
|
return {
|
|
4071
4071
|
type: "Json",
|
|
4072
|
-
keyLength:
|
|
4073
|
-
data:
|
|
4072
|
+
keyLength: e.keyLength,
|
|
4073
|
+
data: n2
|
|
4074
4074
|
};
|
|
4075
4075
|
}
|
|
4076
4076
|
case "JsonPartitioned": {
|
|
4077
|
-
const
|
|
4078
|
-
for (const t of
|
|
4079
|
-
|
|
4077
|
+
const n2 = {};
|
|
4078
|
+
for (const t of e.parts)
|
|
4079
|
+
n2[JSON.stringify(t.key)] = t.value;
|
|
4080
4080
|
return {
|
|
4081
4081
|
type: "JsonPartitioned",
|
|
4082
|
-
partitionKeyLength:
|
|
4083
|
-
parts:
|
|
4082
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
4083
|
+
parts: n2
|
|
4084
4084
|
};
|
|
4085
4085
|
}
|
|
4086
4086
|
case "BinaryPartitioned": {
|
|
4087
|
-
const
|
|
4088
|
-
for (const t of
|
|
4089
|
-
|
|
4087
|
+
const n2 = {};
|
|
4088
|
+
for (const t of e.parts)
|
|
4089
|
+
n2[JSON.stringify(t.key)] = t.value;
|
|
4090
4090
|
return {
|
|
4091
4091
|
type: "BinaryPartitioned",
|
|
4092
|
-
partitionKeyLength:
|
|
4093
|
-
parts:
|
|
4092
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
4093
|
+
parts: n2
|
|
4094
4094
|
};
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
|
-
function
|
|
4098
|
+
function Me$1(e) {
|
|
4099
4099
|
return {
|
|
4100
|
-
columnId:
|
|
4101
|
-
spec:
|
|
4100
|
+
columnId: e.id,
|
|
4101
|
+
spec: e.spec
|
|
4102
4102
|
};
|
|
4103
4103
|
}
|
|
4104
|
-
function
|
|
4105
|
-
const { type:
|
|
4104
|
+
function y(e) {
|
|
4105
|
+
const { type: n2, name: t, domain: r } = e, o = { type: n2, name: t };
|
|
4106
4106
|
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4109
|
-
return
|
|
4108
|
+
function C(e) {
|
|
4109
|
+
return e.map(y);
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4112
|
-
return
|
|
4111
|
+
function _e$1(e) {
|
|
4112
|
+
return Re(y(e));
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4115
|
-
if (
|
|
4116
|
-
if (
|
|
4117
|
-
for (const t in
|
|
4118
|
-
if (
|
|
4114
|
+
function ee$1(e, n2) {
|
|
4115
|
+
if (e === void 0) return n2 === void 0;
|
|
4116
|
+
if (n2 === void 0) return true;
|
|
4117
|
+
for (const t in n2)
|
|
4118
|
+
if (e[t] !== n2[t]) return false;
|
|
4119
4119
|
return true;
|
|
4120
4120
|
}
|
|
4121
|
-
function
|
|
4122
|
-
return
|
|
4121
|
+
function ne$1(e, n2) {
|
|
4122
|
+
return e.name === n2.name && ee$1(e.domain, n2.domain);
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4125
|
-
return { ...
|
|
4124
|
+
function qe(e, n2) {
|
|
4125
|
+
return { ...e, src: g(e.src, n2) };
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4128
|
-
switch (
|
|
4127
|
+
function g(e, n2) {
|
|
4128
|
+
switch (e.type) {
|
|
4129
4129
|
case "column":
|
|
4130
4130
|
return {
|
|
4131
4131
|
type: "column",
|
|
4132
|
-
column: e
|
|
4132
|
+
column: n2(e.column)
|
|
4133
4133
|
};
|
|
4134
4134
|
case "slicedColumn":
|
|
4135
4135
|
return {
|
|
4136
4136
|
type: "slicedColumn",
|
|
4137
|
-
column: e
|
|
4138
|
-
newId:
|
|
4139
|
-
axisFilters:
|
|
4137
|
+
column: n2(e.column),
|
|
4138
|
+
newId: e.newId,
|
|
4139
|
+
axisFilters: e.axisFilters
|
|
4140
4140
|
};
|
|
4141
4141
|
case "inlineColumn":
|
|
4142
|
-
return
|
|
4142
|
+
return e;
|
|
4143
4143
|
case "inner":
|
|
4144
4144
|
case "full":
|
|
4145
4145
|
return {
|
|
4146
|
-
type:
|
|
4147
|
-
entries:
|
|
4146
|
+
type: e.type,
|
|
4147
|
+
entries: e.entries.map((t) => g(t, n2))
|
|
4148
4148
|
};
|
|
4149
4149
|
case "outer":
|
|
4150
4150
|
return {
|
|
4151
4151
|
type: "outer",
|
|
4152
|
-
primary:
|
|
4153
|
-
secondary:
|
|
4152
|
+
primary: g(e.primary, n2),
|
|
4153
|
+
secondary: e.secondary.map((t) => g(t, n2))
|
|
4154
4154
|
};
|
|
4155
4155
|
default:
|
|
4156
|
-
|
|
4156
|
+
A(e);
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4160
|
-
return
|
|
4159
|
+
function te(e) {
|
|
4160
|
+
return Re(e);
|
|
4161
4161
|
}
|
|
4162
|
-
function P(
|
|
4163
|
-
return
|
|
4162
|
+
function P(e) {
|
|
4163
|
+
return Re(y(e));
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4166
|
-
return JSON.stringify([
|
|
4165
|
+
function E(e, n2) {
|
|
4166
|
+
return JSON.stringify([e, n2]);
|
|
4167
4167
|
}
|
|
4168
|
-
class
|
|
4168
|
+
class He {
|
|
4169
4169
|
/**
|
|
4170
4170
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4171
4171
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
4172
4172
|
*/
|
|
4173
|
-
constructor(
|
|
4173
|
+
constructor(n2) {
|
|
4174
4174
|
l$1(this, "domains", /* @__PURE__ */ new Map());
|
|
4175
4175
|
l$1(this, "axes", /* @__PURE__ */ new Map());
|
|
4176
4176
|
l$1(this, "domainPacks", []);
|
|
4177
4177
|
l$1(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
4178
|
-
this.anchors =
|
|
4179
|
-
const t = Object.entries(
|
|
4178
|
+
this.anchors = n2;
|
|
4179
|
+
const t = Object.entries(n2);
|
|
4180
4180
|
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4181
4181
|
for (const [r, o] of t) {
|
|
4182
|
-
for (let
|
|
4183
|
-
const a = o.axesSpec[
|
|
4184
|
-
this.axes.set(
|
|
4182
|
+
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
4183
|
+
const a = o.axesSpec[i], s2 = P(a);
|
|
4184
|
+
this.axes.set(s2, { anchor: r, idx: i });
|
|
4185
4185
|
}
|
|
4186
4186
|
if (o.domain !== void 0) {
|
|
4187
|
-
const
|
|
4188
|
-
|
|
4189
|
-
for (const [a,
|
|
4190
|
-
const u2 =
|
|
4187
|
+
const i = Object.entries(o.domain);
|
|
4188
|
+
i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4189
|
+
for (const [a, s2] of i) {
|
|
4190
|
+
const u2 = E(a, s2);
|
|
4191
4191
|
this.domains.set(u2, r);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
@@ -4196,57 +4196,57 @@
|
|
|
4196
4196
|
/**
|
|
4197
4197
|
* Implementation of derive method
|
|
4198
4198
|
*/
|
|
4199
|
-
derive(
|
|
4199
|
+
derive(n2, t) {
|
|
4200
4200
|
const r = {
|
|
4201
|
-
name:
|
|
4201
|
+
name: n2.name,
|
|
4202
4202
|
axes: []
|
|
4203
4203
|
};
|
|
4204
4204
|
let o;
|
|
4205
|
-
if (
|
|
4206
|
-
|
|
4205
|
+
if (n2.domain !== void 0)
|
|
4206
|
+
e:
|
|
4207
4207
|
for (const a of this.domainPacks) {
|
|
4208
|
-
const
|
|
4208
|
+
const s2 = [];
|
|
4209
4209
|
for (const c2 of a) {
|
|
4210
|
-
const
|
|
4211
|
-
if (
|
|
4212
|
-
|
|
4210
|
+
const f = n2.domain[c2];
|
|
4211
|
+
if (f !== void 0)
|
|
4212
|
+
s2.push([c2, f]);
|
|
4213
4213
|
else
|
|
4214
|
-
break
|
|
4214
|
+
break e;
|
|
4215
4215
|
}
|
|
4216
|
-
const u2 = this.domainPackToAnchor.get(JSON.stringify(
|
|
4216
|
+
const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
|
|
4217
4217
|
if (u2 !== void 0) {
|
|
4218
4218
|
r.domainAnchor = u2, o = new Set(a);
|
|
4219
4219
|
break;
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
|
-
for (const [a,
|
|
4222
|
+
for (const [a, s2] of Object.entries(n2.domain ?? {})) {
|
|
4223
4223
|
if (o !== void 0 && o.has(a))
|
|
4224
4224
|
continue;
|
|
4225
|
-
const u2 =
|
|
4226
|
-
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } :
|
|
4225
|
+
const u2 = E(a, s2), c2 = this.domains.get(u2);
|
|
4226
|
+
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
|
|
4227
4227
|
}
|
|
4228
|
-
if (r.axes =
|
|
4229
|
-
const
|
|
4230
|
-
return u2 === void 0 ?
|
|
4228
|
+
if (r.axes = n2.axesSpec.map((a) => {
|
|
4229
|
+
const s2 = P(a), u2 = this.axes.get(s2);
|
|
4230
|
+
return u2 === void 0 ? y(a) : u2;
|
|
4231
4231
|
}), !t || t.length === 0)
|
|
4232
4232
|
return r;
|
|
4233
|
-
const
|
|
4233
|
+
const i = [];
|
|
4234
4234
|
for (const a of t) {
|
|
4235
|
-
const [
|
|
4236
|
-
if (typeof
|
|
4237
|
-
if (
|
|
4238
|
-
throw new Error(`Axis index ${
|
|
4239
|
-
|
|
4235
|
+
const [s2, u2] = a;
|
|
4236
|
+
if (typeof s2 == "number") {
|
|
4237
|
+
if (s2 < 0 || s2 >= n2.axesSpec.length)
|
|
4238
|
+
throw new Error(`Axis index ${s2} is out of bounds (0-${n2.axesSpec.length - 1})`);
|
|
4239
|
+
i.push([s2, u2]);
|
|
4240
4240
|
} else {
|
|
4241
|
-
const c2 =
|
|
4241
|
+
const c2 = n2.axesSpec.findIndex((f) => f.name === s2);
|
|
4242
4242
|
if (c2 === -1)
|
|
4243
|
-
throw new Error(`Axis with name "${
|
|
4244
|
-
|
|
4243
|
+
throw new Error(`Axis with name "${s2}" not found in the column specification`);
|
|
4244
|
+
i.push([c2, u2]);
|
|
4245
4245
|
}
|
|
4246
4246
|
}
|
|
4247
|
-
return
|
|
4247
|
+
return i.sort((a, s2) => a[0] - s2[0]), {
|
|
4248
4248
|
source: r,
|
|
4249
|
-
axisFilters:
|
|
4249
|
+
axisFilters: i
|
|
4250
4250
|
};
|
|
4251
4251
|
}
|
|
4252
4252
|
/**
|
|
@@ -4255,58 +4255,58 @@
|
|
|
4255
4255
|
* @param axisFilters Optional axis filters to apply to the column
|
|
4256
4256
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4257
4257
|
*/
|
|
4258
|
-
deriveS(
|
|
4259
|
-
return
|
|
4258
|
+
deriveS(n2, t) {
|
|
4259
|
+
return te(this.derive(n2, t));
|
|
4260
4260
|
}
|
|
4261
4261
|
}
|
|
4262
|
-
function
|
|
4263
|
-
const r = { ...
|
|
4262
|
+
function We(e, n2, t) {
|
|
4263
|
+
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4264
4264
|
if (r.domainAnchor !== void 0) {
|
|
4265
|
-
const
|
|
4266
|
-
if (!
|
|
4265
|
+
const i = e[r.domainAnchor];
|
|
4266
|
+
if (!i)
|
|
4267
4267
|
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
4268
|
-
const a =
|
|
4268
|
+
const a = i.domain || {};
|
|
4269
4269
|
r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
|
|
4270
4270
|
}
|
|
4271
4271
|
if (r.domain) {
|
|
4272
|
-
const
|
|
4273
|
-
for (const [a,
|
|
4274
|
-
if (typeof
|
|
4275
|
-
|
|
4272
|
+
const i = {};
|
|
4273
|
+
for (const [a, s2] of Object.entries(r.domain))
|
|
4274
|
+
if (typeof s2 == "string")
|
|
4275
|
+
i[a] = s2;
|
|
4276
4276
|
else {
|
|
4277
|
-
const u2 =
|
|
4277
|
+
const u2 = e[s2.anchor];
|
|
4278
4278
|
if (!u2)
|
|
4279
|
-
throw new Error(`Anchor "${
|
|
4279
|
+
throw new Error(`Anchor "${s2.anchor}" not found for domain key "${a}"`);
|
|
4280
4280
|
if (!u2.domain || u2.domain[a] === void 0) {
|
|
4281
4281
|
if (!o)
|
|
4282
|
-
throw new Error(`Domain key "${a}" not found in anchor "${
|
|
4282
|
+
throw new Error(`Domain key "${a}" not found in anchor "${s2.anchor}"`);
|
|
4283
4283
|
continue;
|
|
4284
4284
|
}
|
|
4285
|
-
|
|
4285
|
+
i[a] = u2.domain[a];
|
|
4286
4286
|
}
|
|
4287
|
-
r.domain =
|
|
4287
|
+
r.domain = i;
|
|
4288
4288
|
}
|
|
4289
|
-
return r.axes && (r.axes = r.axes.map((
|
|
4289
|
+
return r.axes && (r.axes = r.axes.map((i) => re(e, i))), r;
|
|
4290
4290
|
}
|
|
4291
|
-
function
|
|
4292
|
-
if (!
|
|
4293
|
-
return
|
|
4294
|
-
const t =
|
|
4291
|
+
function re(e, n2) {
|
|
4292
|
+
if (!oe$1(n2))
|
|
4293
|
+
return n2;
|
|
4294
|
+
const t = n2.anchor, r = e[t];
|
|
4295
4295
|
if (!r)
|
|
4296
4296
|
throw new Error(`Anchor "${t}" not found for axis reference`);
|
|
4297
|
-
if ("idx" in
|
|
4298
|
-
if (
|
|
4299
|
-
throw new Error(`Axis index ${
|
|
4300
|
-
return r.axesSpec[
|
|
4301
|
-
} else if ("name" in
|
|
4302
|
-
const o = r.axesSpec.filter((
|
|
4297
|
+
if ("idx" in n2) {
|
|
4298
|
+
if (n2.idx < 0 || n2.idx >= r.axesSpec.length)
|
|
4299
|
+
throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${t}"`);
|
|
4300
|
+
return r.axesSpec[n2.idx];
|
|
4301
|
+
} else if ("name" in n2) {
|
|
4302
|
+
const o = r.axesSpec.filter((i) => i.name === n2.name);
|
|
4303
4303
|
if (o.length > 1)
|
|
4304
|
-
throw new Error(`Multiple axes with name "${
|
|
4304
|
+
throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${t}"`);
|
|
4305
4305
|
if (o.length === 0)
|
|
4306
|
-
throw new Error(`Axis with name "${
|
|
4306
|
+
throw new Error(`Axis with name "${n2.name}" not found in anchor "${t}"`);
|
|
4307
4307
|
return o[0];
|
|
4308
|
-
} else if ("id" in
|
|
4309
|
-
const o = r.axesSpec.filter((
|
|
4308
|
+
} else if ("id" in n2) {
|
|
4309
|
+
const o = r.axesSpec.filter((i) => ne$1(n2.id, y(i)));
|
|
4310
4310
|
if (o.length > 1)
|
|
4311
4311
|
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
4312
4312
|
if (o.length === 0)
|
|
@@ -4315,33 +4315,33 @@
|
|
|
4315
4315
|
}
|
|
4316
4316
|
throw new Error("Unsupported axis reference type");
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4319
|
-
return typeof
|
|
4318
|
+
function oe$1(e) {
|
|
4319
|
+
return typeof e == "object" && "anchor" in e;
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4322
|
-
return
|
|
4321
|
+
function d(e) {
|
|
4322
|
+
return e.kind === "PColumn";
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4325
|
-
return
|
|
4324
|
+
function ie$1(e) {
|
|
4325
|
+
return d(e.spec);
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4328
|
-
if (!
|
|
4329
|
-
return
|
|
4327
|
+
function Ye$1(e) {
|
|
4328
|
+
if (!ie$1(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4329
|
+
return e;
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4332
|
-
return
|
|
4333
|
-
...
|
|
4334
|
-
data: e
|
|
4331
|
+
function Ze(e, n2) {
|
|
4332
|
+
return e === void 0 ? void 0 : {
|
|
4333
|
+
...e,
|
|
4334
|
+
data: n2(e.data)
|
|
4335
4335
|
};
|
|
4336
4336
|
}
|
|
4337
|
-
function
|
|
4338
|
-
const
|
|
4337
|
+
function en(e) {
|
|
4338
|
+
const n2 = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4339
4339
|
switch (r.type) {
|
|
4340
4340
|
case "column":
|
|
4341
|
-
|
|
4341
|
+
n2.set(r.column.id, r.column);
|
|
4342
4342
|
return;
|
|
4343
4343
|
case "slicedColumn":
|
|
4344
|
-
|
|
4344
|
+
n2.set(r.column.id, r.column);
|
|
4345
4345
|
return;
|
|
4346
4346
|
case "inlineColumn":
|
|
4347
4347
|
return;
|
|
@@ -4354,84 +4354,84 @@
|
|
|
4354
4354
|
for (const o of r.secondary) t(o);
|
|
4355
4355
|
return;
|
|
4356
4356
|
default:
|
|
4357
|
-
|
|
4357
|
+
A(r);
|
|
4358
4358
|
}
|
|
4359
4359
|
};
|
|
4360
|
-
return t(
|
|
4360
|
+
return t(e), [...n2.values()];
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4363
|
-
if (
|
|
4362
|
+
function S(e, n2) {
|
|
4363
|
+
if (e.name !== void 0 && e.name !== n2.name)
|
|
4364
4364
|
return false;
|
|
4365
|
-
if (
|
|
4366
|
-
if (Array.isArray(
|
|
4367
|
-
if (!
|
|
4365
|
+
if (e.type !== void 0) {
|
|
4366
|
+
if (Array.isArray(e.type)) {
|
|
4367
|
+
if (!e.type.includes(n2.type))
|
|
4368
4368
|
return false;
|
|
4369
|
-
} else if (
|
|
4369
|
+
} else if (e.type !== n2.type)
|
|
4370
4370
|
return false;
|
|
4371
4371
|
}
|
|
4372
|
-
if (
|
|
4373
|
-
const t =
|
|
4374
|
-
for (const [r, o] of Object.entries(
|
|
4372
|
+
if (e.domain !== void 0) {
|
|
4373
|
+
const t = n2.domain || {};
|
|
4374
|
+
for (const [r, o] of Object.entries(e.domain))
|
|
4375
4375
|
if (t[r] !== o)
|
|
4376
4376
|
return false;
|
|
4377
4377
|
}
|
|
4378
4378
|
return true;
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4381
|
-
if (
|
|
4380
|
+
function v$1(e, n2) {
|
|
4381
|
+
if (n2.name !== void 0 && e.name !== n2.name || n2.namePattern !== void 0 && !new RegExp(n2.namePattern).test(e.name))
|
|
4382
4382
|
return false;
|
|
4383
|
-
if (
|
|
4384
|
-
if (Array.isArray(
|
|
4385
|
-
if (!
|
|
4383
|
+
if (n2.type !== void 0) {
|
|
4384
|
+
if (Array.isArray(n2.type)) {
|
|
4385
|
+
if (!n2.type.includes(e.valueType))
|
|
4386
4386
|
return false;
|
|
4387
|
-
} else if (
|
|
4387
|
+
} else if (n2.type !== e.valueType)
|
|
4388
4388
|
return false;
|
|
4389
4389
|
}
|
|
4390
|
-
if (
|
|
4391
|
-
const t =
|
|
4392
|
-
for (const [r, o] of Object.entries(
|
|
4390
|
+
if (n2.domain !== void 0) {
|
|
4391
|
+
const t = e.domain || {};
|
|
4392
|
+
for (const [r, o] of Object.entries(n2.domain))
|
|
4393
4393
|
if (t[r] !== o)
|
|
4394
4394
|
return false;
|
|
4395
4395
|
}
|
|
4396
|
-
if (
|
|
4397
|
-
const t =
|
|
4398
|
-
if (
|
|
4399
|
-
for (const r of
|
|
4400
|
-
if (!t.some((o) =>
|
|
4396
|
+
if (n2.axes !== void 0) {
|
|
4397
|
+
const t = e.axesSpec.map(y);
|
|
4398
|
+
if (n2.partialAxesMatch) {
|
|
4399
|
+
for (const r of n2.axes)
|
|
4400
|
+
if (!t.some((o) => S(r, o)))
|
|
4401
4401
|
return false;
|
|
4402
4402
|
} else {
|
|
4403
|
-
if (t.length !==
|
|
4403
|
+
if (t.length !== n2.axes.length)
|
|
4404
4404
|
return false;
|
|
4405
|
-
for (let r = 0; r <
|
|
4406
|
-
if (!
|
|
4405
|
+
for (let r = 0; r < n2.axes.length; r++)
|
|
4406
|
+
if (!S(n2.axes[r], t[r]))
|
|
4407
4407
|
return false;
|
|
4408
4408
|
}
|
|
4409
4409
|
}
|
|
4410
|
-
if (
|
|
4411
|
-
const t =
|
|
4412
|
-
for (const [r, o] of Object.entries(
|
|
4410
|
+
if (n2.annotations !== void 0) {
|
|
4411
|
+
const t = e.annotations || {};
|
|
4412
|
+
for (const [r, o] of Object.entries(n2.annotations))
|
|
4413
4413
|
if (t[r] !== o)
|
|
4414
4414
|
return false;
|
|
4415
4415
|
}
|
|
4416
|
-
if (
|
|
4417
|
-
const t =
|
|
4418
|
-
for (const [r, o] of Object.entries(
|
|
4419
|
-
const
|
|
4420
|
-
if (
|
|
4416
|
+
if (n2.annotationPatterns !== void 0) {
|
|
4417
|
+
const t = e.annotations || {};
|
|
4418
|
+
for (const [r, o] of Object.entries(n2.annotationPatterns)) {
|
|
4419
|
+
const i = t[r];
|
|
4420
|
+
if (i === void 0 || !new RegExp(o).test(i))
|
|
4421
4421
|
return false;
|
|
4422
4422
|
}
|
|
4423
4423
|
}
|
|
4424
4424
|
return true;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4427
|
-
return Array.isArray(
|
|
4426
|
+
function nn(e) {
|
|
4427
|
+
return Array.isArray(e) ? (n2) => e.some((t) => d(n2) && v$1(n2, t)) : (n2) => d(n2) && v$1(n2, e);
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4430
|
-
const
|
|
4431
|
-
kind:
|
|
4432
|
-
name:
|
|
4429
|
+
function tn(e) {
|
|
4430
|
+
const n2 = {
|
|
4431
|
+
kind: e.kind,
|
|
4432
|
+
name: e.name
|
|
4433
4433
|
};
|
|
4434
|
-
return
|
|
4434
|
+
return e.domain !== void 0 && (n2.domain = e.domain), d(e) && (n2.axesSpec = C(e.axesSpec)), Re(n2);
|
|
4435
4435
|
}
|
|
4436
4436
|
z$1.object({
|
|
4437
4437
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4441,27 +4441,27 @@
|
|
|
4441
4441
|
}).describe(
|
|
4442
4442
|
"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
|
|
4443
4443
|
).readonly();
|
|
4444
|
-
function
|
|
4445
|
-
return typeof
|
|
4444
|
+
function sn(e) {
|
|
4445
|
+
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === true && "blockId" in e && "name" in e;
|
|
4446
4446
|
}
|
|
4447
|
-
function
|
|
4448
|
-
if (
|
|
4447
|
+
function un(e, n2 = true) {
|
|
4448
|
+
if (n2)
|
|
4449
4449
|
return {
|
|
4450
|
-
...
|
|
4450
|
+
...e,
|
|
4451
4451
|
requireEnrichments: true
|
|
4452
4452
|
};
|
|
4453
4453
|
{
|
|
4454
|
-
const { requireEnrichments: t, ...r } =
|
|
4454
|
+
const { requireEnrichments: t, ...r } = e;
|
|
4455
4455
|
return r;
|
|
4456
4456
|
}
|
|
4457
4457
|
}
|
|
4458
|
-
function
|
|
4459
|
-
return
|
|
4458
|
+
function fn(e, n2) {
|
|
4459
|
+
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4460
4460
|
}
|
|
4461
|
-
const
|
|
4462
|
-
z$1.string().length(
|
|
4463
|
-
function
|
|
4464
|
-
return
|
|
4461
|
+
const de$1 = 24;
|
|
4462
|
+
z$1.string().length(de$1).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4463
|
+
function mn(e) {
|
|
4464
|
+
return Re(e);
|
|
4465
4465
|
}
|
|
4466
4466
|
var stringify = { exports: {} };
|
|
4467
4467
|
var hasRequiredStringify;
|
|
@@ -4522,54 +4522,54 @@
|
|
|
4522
4522
|
cause: z$1.lazy(() => n).optional(),
|
|
4523
4523
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4524
4524
|
});
|
|
4525
|
-
var
|
|
4526
|
-
var
|
|
4527
|
-
var
|
|
4528
|
-
function
|
|
4525
|
+
var ze = Object.defineProperty;
|
|
4526
|
+
var Ye = (t, e, n2) => e in t ? ze(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4527
|
+
var k = (t, e, n2) => Ye(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4528
|
+
function ne(t) {
|
|
4529
4529
|
return { type: "Immediate", value: t };
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function ht() {
|
|
4532
4532
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function Ne(t) {
|
|
4535
4535
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4536
4536
|
return globalThis.getPlatforma(t);
|
|
4537
4537
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4538
4538
|
throw new Error("Can't get platforma instance.");
|
|
4539
4539
|
}
|
|
4540
|
-
function
|
|
4540
|
+
function gt() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
4543
|
function v() {
|
|
4544
4544
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
4547
|
-
function
|
|
4548
|
-
const n2 =
|
|
4547
|
+
function G(t, e) {
|
|
4548
|
+
const n2 = gt();
|
|
4549
4549
|
if (n2 === void 0) return false;
|
|
4550
4550
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4551
4551
|
return n2.callbackRegistry[t] = e, true;
|
|
4552
4552
|
}
|
|
4553
|
-
const
|
|
4554
|
-
function
|
|
4553
|
+
const ue = /* @__PURE__ */ new Map();
|
|
4554
|
+
function mt(t, e) {
|
|
4555
4555
|
t in v().callbackRegistry || (v().callbackRegistry[t] = (n2) => {
|
|
4556
|
-
for (const r of
|
|
4556
|
+
for (const r of ue.get(t))
|
|
4557
4557
|
r(n2);
|
|
4558
|
-
},
|
|
4558
|
+
}, ue.set(t, [])), ue.get(t).push(e);
|
|
4559
4559
|
}
|
|
4560
|
-
class
|
|
4560
|
+
class F {
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
this.handle = e, this.postProcess = n2,
|
|
4562
|
+
k(this, "isResolved", false);
|
|
4563
|
+
k(this, "resolvedValue");
|
|
4564
|
+
this.handle = e, this.postProcess = n2, mt(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
4567
4567
|
}
|
|
4568
4568
|
map(e) {
|
|
4569
|
-
return new
|
|
4569
|
+
return new F(this.handle, (n2) => e(this.postProcess(n2)));
|
|
4570
4570
|
}
|
|
4571
4571
|
mapDefined(e) {
|
|
4572
|
-
return new
|
|
4572
|
+
return new F(this.handle, (n2) => {
|
|
4573
4573
|
const r = this.postProcess(n2);
|
|
4574
4574
|
return r ? e(r) : void 0;
|
|
4575
4575
|
});
|
|
@@ -4578,7 +4578,7 @@
|
|
|
4578
4578
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4579
4579
|
}
|
|
4580
4580
|
}
|
|
4581
|
-
function
|
|
4581
|
+
function fe(t, e) {
|
|
4582
4582
|
return t === void 0 ? void 0 : e(t);
|
|
4583
4583
|
}
|
|
4584
4584
|
class D {
|
|
@@ -4620,7 +4620,7 @@
|
|
|
4620
4620
|
...this.resolvePath,
|
|
4621
4621
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4622
4622
|
];
|
|
4623
|
-
return
|
|
4623
|
+
return fe(
|
|
4624
4624
|
v().resolveWithCommon(this.handle, e, ...n2),
|
|
4625
4625
|
(i) => new D(i, r)
|
|
4626
4626
|
);
|
|
@@ -4642,7 +4642,7 @@
|
|
|
4642
4642
|
}
|
|
4643
4643
|
getError() {
|
|
4644
4644
|
const e = [...this.resolvePath, "error"];
|
|
4645
|
-
return
|
|
4645
|
+
return fe(
|
|
4646
4646
|
v().getError(this.handle),
|
|
4647
4647
|
(n2) => new D(n2, e)
|
|
4648
4648
|
);
|
|
@@ -4684,7 +4684,7 @@
|
|
|
4684
4684
|
getPColumns(e = false, n2 = "") {
|
|
4685
4685
|
const r = this.parsePObjectCollection(e, n2);
|
|
4686
4686
|
return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
|
|
4687
|
-
if (!
|
|
4687
|
+
if (!ie$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
|
|
4688
4688
|
return s2;
|
|
4689
4689
|
});
|
|
4690
4690
|
}
|
|
@@ -4702,18 +4702,18 @@
|
|
|
4702
4702
|
const i = {};
|
|
4703
4703
|
for (const [s2, o] of Object.entries(r)) {
|
|
4704
4704
|
const a = [...this.resolvePath, s2];
|
|
4705
|
-
i[s2] =
|
|
4705
|
+
i[s2] = Ze(o, (l2) => new D(l2, a));
|
|
4706
4706
|
}
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
4709
4709
|
getFileContentAsBase64(e) {
|
|
4710
|
-
return new
|
|
4710
|
+
return new F(v().getBlobContentAsBase64(this.handle, e));
|
|
4711
4711
|
}
|
|
4712
4712
|
getFileContentAsString(e) {
|
|
4713
|
-
return new
|
|
4713
|
+
return new F(v().getBlobContentAsString(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getFileContentAsJson(e) {
|
|
4716
|
-
return new
|
|
4716
|
+
return new F(
|
|
4717
4717
|
v().getBlobContentAsString(this.handle, e)
|
|
4718
4718
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4719
4719
|
}
|
|
@@ -4733,7 +4733,7 @@
|
|
|
4733
4733
|
* @returns downloaded file handle
|
|
4734
4734
|
*/
|
|
4735
4735
|
getFileHandle() {
|
|
4736
|
-
return new
|
|
4736
|
+
return new F(v().getDownloadedBlobContentHandle(this.handle));
|
|
4737
4737
|
}
|
|
4738
4738
|
/**
|
|
4739
4739
|
* @deprecated use getFileHandle
|
|
@@ -4745,7 +4745,7 @@
|
|
|
4745
4745
|
* @returns downloaded file handle
|
|
4746
4746
|
*/
|
|
4747
4747
|
getRemoteFileHandle() {
|
|
4748
|
-
return new
|
|
4748
|
+
return new F(v().getOnDemandBlobContentHandle(this.handle));
|
|
4749
4749
|
}
|
|
4750
4750
|
/**
|
|
4751
4751
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4757,22 +4757,22 @@
|
|
|
4757
4757
|
* @returns the url to the extracted folder
|
|
4758
4758
|
*/
|
|
4759
4759
|
extractArchiveAndGetURL(e) {
|
|
4760
|
-
return new
|
|
4760
|
+
return new F(v().extractArchiveAndGetURL(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getImportProgress() {
|
|
4763
|
-
return new
|
|
4763
|
+
return new F(v().getImportProgress(this.handle));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLastLogs(e) {
|
|
4766
|
-
return new
|
|
4766
|
+
return new F(v().getLastLogs(this.handle, e));
|
|
4767
4767
|
}
|
|
4768
4768
|
getProgressLog(e) {
|
|
4769
|
-
return new
|
|
4769
|
+
return new F(v().getProgressLog(this.handle, e));
|
|
4770
4770
|
}
|
|
4771
4771
|
getProgressLogWithInfo(e) {
|
|
4772
|
-
return new
|
|
4772
|
+
return new F(v().getProgressLogWithInfo(this.handle, e));
|
|
4773
4773
|
}
|
|
4774
4774
|
getLogHandle() {
|
|
4775
|
-
return new
|
|
4775
|
+
return new F(v().getLogHandle(this.handle));
|
|
4776
4776
|
}
|
|
4777
4777
|
allFieldsResolved(e = "Input") {
|
|
4778
4778
|
switch (e) {
|
|
@@ -4798,135 +4798,135 @@
|
|
|
4798
4798
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4799
4799
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4800
4800
|
);
|
|
4801
|
-
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4801
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h]) => o(u2, h));
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
|
-
const
|
|
4805
|
-
const
|
|
4804
|
+
const Ve = "staging", je = "main";
|
|
4805
|
+
const vt = "pl7.app/label", St = "pl7.app/trace", Ct = z$1.object({
|
|
4806
4806
|
type: z$1.string(),
|
|
4807
4807
|
importance: z$1.number().optional(),
|
|
4808
4808
|
id: z$1.string().optional(),
|
|
4809
4809
|
label: z$1.string()
|
|
4810
|
-
}), wt = z$1.array(
|
|
4811
|
-
function
|
|
4810
|
+
}), wt = z$1.array(Ct), At = 1e-3, Pt = "__LABEL__", _e = "__LABEL__@1";
|
|
4811
|
+
function Me(t, e, n2 = {}) {
|
|
4812
4812
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((p2) => {
|
|
4813
4813
|
var c2, m2;
|
|
4814
4814
|
const b = e(p2);
|
|
4815
|
-
let
|
|
4816
|
-
"spec" in b && typeof b.spec == "object" ? (
|
|
4817
|
-
const E2 = (c2 =
|
|
4818
|
-
...
|
|
4819
|
-
...
|
|
4820
|
-
...
|
|
4815
|
+
let d2, y2, S2;
|
|
4816
|
+
"spec" in b && typeof b.spec == "object" ? (d2 = b.spec, y2 = b.prefixTrace, S2 = b.suffixTrace) : d2 = b;
|
|
4817
|
+
const E2 = (c2 = d2.annotations) == null ? void 0 : c2[vt], _2 = (m2 = d2.annotations) == null ? void 0 : m2[St], w = (_2 ? wt.safeParse(JSON.parse(_2)).data : void 0) ?? [], A2 = [
|
|
4818
|
+
...y2 ?? [],
|
|
4819
|
+
...w,
|
|
4820
|
+
...S2 ?? []
|
|
4821
4821
|
];
|
|
4822
4822
|
if (E2 !== void 0) {
|
|
4823
|
-
const
|
|
4824
|
-
n2.addLabelAsSuffix ?
|
|
4825
|
-
}
|
|
4826
|
-
const
|
|
4827
|
-
for (let
|
|
4828
|
-
const { type:
|
|
4829
|
-
I.set(
|
|
4830
|
-
const
|
|
4831
|
-
s2.set(
|
|
4832
|
-
|
|
4823
|
+
const T = { label: E2, type: Pt, importance: -2 };
|
|
4824
|
+
n2.addLabelAsSuffix ? A2.push(T) : A2.splice(0, 0, T);
|
|
4825
|
+
}
|
|
4826
|
+
const C2 = [], I = /* @__PURE__ */ new Map();
|
|
4827
|
+
for (let T = A2.length - 1; T >= 0; --T) {
|
|
4828
|
+
const { type: U } = A2[T], V = A2[T].importance ?? 0, J = (I.get(U) ?? 0) + 1;
|
|
4829
|
+
I.set(U, J);
|
|
4830
|
+
const K = `${U}@${J}`;
|
|
4831
|
+
s2.set(K, (s2.get(K) ?? 0) + 1), r.set(
|
|
4832
|
+
K,
|
|
4833
4833
|
Math.max(
|
|
4834
|
-
r.get(
|
|
4835
|
-
|
|
4834
|
+
r.get(K) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
+
V - (A2.length - T) * At
|
|
4836
4836
|
)
|
|
4837
|
-
),
|
|
4837
|
+
), C2.push({ ...A2[T], fullType: K, occurrenceIndex: J });
|
|
4838
4838
|
}
|
|
4839
|
-
return
|
|
4839
|
+
return C2.reverse(), {
|
|
4840
4840
|
value: p2,
|
|
4841
|
-
spec:
|
|
4841
|
+
spec: d2,
|
|
4842
4842
|
label: E2,
|
|
4843
|
-
fullTrace:
|
|
4843
|
+
fullTrace: C2
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
4846
4846
|
u2.sort(([, p2], [, b]) => b - p2);
|
|
4847
4847
|
for (const [p2] of u2)
|
|
4848
4848
|
p2.endsWith("@1") || s2.get(p2) === t.length ? a.push(p2) : l2.push(p2);
|
|
4849
|
-
const
|
|
4850
|
-
const
|
|
4851
|
-
for (let
|
|
4852
|
-
const
|
|
4849
|
+
const h = (p2, b = false) => {
|
|
4850
|
+
const d2 = [];
|
|
4851
|
+
for (let y2 = 0; y2 < o.length; y2++) {
|
|
4852
|
+
const S2 = o[y2], E2 = S2.fullTrace.filter((A2) => p2.has(A2.fullType) || i && i.has(A2.type));
|
|
4853
4853
|
if (E2.length === 0)
|
|
4854
4854
|
if (b)
|
|
4855
|
-
|
|
4855
|
+
d2.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
|
-
value:
|
|
4857
|
+
value: S2.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const
|
|
4861
|
-
|
|
4862
|
-
label:
|
|
4863
|
-
value:
|
|
4860
|
+
const _2 = E2.map((A2) => A2.label), w = n2.separator ?? " / ";
|
|
4861
|
+
d2.push({
|
|
4862
|
+
label: _2.join(w),
|
|
4863
|
+
value: S2.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
4866
|
-
return
|
|
4866
|
+
return d2;
|
|
4867
4867
|
};
|
|
4868
4868
|
if (a.length === 0) {
|
|
4869
4869
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4870
|
-
return
|
|
4870
|
+
return h(new Set(_e), true);
|
|
4871
4871
|
}
|
|
4872
|
-
let
|
|
4873
|
-
for (;
|
|
4872
|
+
let f = 0, g2 = -1;
|
|
4873
|
+
for (; f < a.length; ) {
|
|
4874
4874
|
const p2 = /* @__PURE__ */ new Set();
|
|
4875
|
-
n2.includeNativeLabel && p2.add(
|
|
4876
|
-
for (let
|
|
4877
|
-
|
|
4878
|
-
const b =
|
|
4879
|
-
if (b !== void 0 && new Set(b.map((
|
|
4880
|
-
|
|
4875
|
+
n2.includeNativeLabel && p2.add(_e);
|
|
4876
|
+
for (let d2 = 0; d2 < f; ++d2) p2.add(a[d2]);
|
|
4877
|
+
g2 >= 0 && p2.add(a[g2]);
|
|
4878
|
+
const b = h(p2);
|
|
4879
|
+
if (b !== void 0 && new Set(b.map((d2) => d2.label)).size === t.length) return b;
|
|
4880
|
+
g2++, g2 >= a.length && (f++, g2 = f);
|
|
4881
4881
|
}
|
|
4882
|
-
return
|
|
4882
|
+
return h(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
4884
|
-
const
|
|
4885
|
-
const
|
|
4884
|
+
const Q = "PColumnData/", ie = Q + "ResourceMap", se = Q + "Partitioned/ResourceMap", H = Q + "JsonPartitioned", B = Q + "BinaryPartitioned", $e = Q + "Partitioned/", oe = $e + "JsonPartitioned", q = $e + "BinaryPartitioned";
|
|
4885
|
+
const ge = (t) => {
|
|
4886
4886
|
if (t.endsWith(".index"))
|
|
4887
4887
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4888
4888
|
if (t.endsWith(".values"))
|
|
4889
4889
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4890
4890
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4891
4891
|
};
|
|
4892
|
-
function
|
|
4892
|
+
function xt(t) {
|
|
4893
4893
|
if (!t) return;
|
|
4894
4894
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4895
4895
|
let i = 0;
|
|
4896
4896
|
switch (e) {
|
|
4897
|
-
case
|
|
4897
|
+
case ie:
|
|
4898
4898
|
i = n2.keyLength;
|
|
4899
4899
|
break;
|
|
4900
|
-
case
|
|
4900
|
+
case se:
|
|
4901
4901
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4902
4902
|
break;
|
|
4903
|
-
case
|
|
4903
|
+
case H:
|
|
4904
4904
|
case B:
|
|
4905
4905
|
i = n2.partitionKeyLength;
|
|
4906
4906
|
break;
|
|
4907
|
-
case
|
|
4908
|
-
case
|
|
4907
|
+
case q:
|
|
4908
|
+
case oe:
|
|
4909
4909
|
i = n2.superPartitionKeyLength + n2.partitionKeyLength;
|
|
4910
4910
|
break;
|
|
4911
4911
|
}
|
|
4912
4912
|
switch (e) {
|
|
4913
|
-
case
|
|
4914
|
-
case
|
|
4913
|
+
case ie:
|
|
4914
|
+
case H:
|
|
4915
4915
|
case B:
|
|
4916
4916
|
for (let s2 of t.listInputFields()) {
|
|
4917
|
-
e === B && (s2 =
|
|
4917
|
+
e === B && (s2 = ge(s2).baseKey);
|
|
4918
4918
|
const o = [...JSON.parse(s2)];
|
|
4919
4919
|
r.push(o);
|
|
4920
4920
|
}
|
|
4921
4921
|
break;
|
|
4922
|
+
case se:
|
|
4923
|
+
case q:
|
|
4922
4924
|
case oe:
|
|
4923
|
-
case z:
|
|
4924
|
-
case ae:
|
|
4925
4925
|
for (const s2 of t.listInputFields()) {
|
|
4926
4926
|
const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4927
4927
|
if (a !== void 0)
|
|
4928
4928
|
for (let l2 of a.listInputFields()) {
|
|
4929
|
-
e ===
|
|
4929
|
+
e === q && (l2 = ge(l2).baseKey);
|
|
4930
4930
|
const u2 = [...o, ...JSON.parse(l2)];
|
|
4931
4931
|
r.push(u2);
|
|
4932
4932
|
}
|
|
@@ -4935,7 +4935,7 @@
|
|
|
4935
4935
|
}
|
|
4936
4936
|
return { data: r, keyLength: i };
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4938
|
+
function _t(t) {
|
|
4939
4939
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4940
4940
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4941
4941
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4954,11 +4954,11 @@
|
|
|
4954
4954
|
}
|
|
4955
4955
|
return r.map((i) => Array.from(i.values()));
|
|
4956
4956
|
}
|
|
4957
|
-
function
|
|
4957
|
+
function It(t) {
|
|
4958
4958
|
if (t === void 0) return;
|
|
4959
|
-
if (
|
|
4960
|
-
return
|
|
4961
|
-
const e =
|
|
4959
|
+
if (_(t))
|
|
4960
|
+
return _t(t);
|
|
4961
|
+
const e = xt(t);
|
|
4962
4962
|
if (!e) return;
|
|
4963
4963
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4964
4964
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -4971,16 +4971,16 @@
|
|
|
4971
4971
|
}
|
|
4972
4972
|
return i.map((s2) => Array.from(s2.values()));
|
|
4973
4973
|
}
|
|
4974
|
-
function
|
|
4974
|
+
function me(t, e = []) {
|
|
4975
4975
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4976
4976
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4977
|
-
if (e.length > 0 && (n2 ===
|
|
4977
|
+
if (e.length > 0 && (n2 === oe || n2 === q))
|
|
4978
4978
|
throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
|
|
4979
4979
|
switch (n2) {
|
|
4980
|
+
case ie:
|
|
4980
4981
|
case se:
|
|
4981
|
-
case oe:
|
|
4982
4982
|
throw new Error(`Only data columns are supported, got: ${n2}`);
|
|
4983
|
-
case
|
|
4983
|
+
case H: {
|
|
4984
4984
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4985
4985
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4986
4986
|
const i = [];
|
|
@@ -5001,7 +5001,7 @@
|
|
|
5001
5001
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
5002
5002
|
const i = [], s2 = /* @__PURE__ */ new Map();
|
|
5003
5003
|
for (const o of t.listInputFields()) {
|
|
5004
|
-
const a =
|
|
5004
|
+
const a = ge(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
|
|
5005
5005
|
if (l2 === void 0) return;
|
|
5006
5006
|
let u2 = s2.get(a.baseKey);
|
|
5007
5007
|
u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
|
|
@@ -5023,16 +5023,16 @@
|
|
|
5023
5023
|
parts: i
|
|
5024
5024
|
};
|
|
5025
5025
|
}
|
|
5026
|
-
case
|
|
5026
|
+
case oe: {
|
|
5027
5027
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5028
5028
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
5029
5029
|
const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
|
|
5030
5030
|
for (const o of t.listInputFields()) {
|
|
5031
5031
|
const a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
5032
5032
|
if (a === void 0) return;
|
|
5033
|
-
if (a.resourceType.name !==
|
|
5034
|
-
throw new Error(`Expected ${
|
|
5035
|
-
const l2 =
|
|
5033
|
+
if (a.resourceType.name !== H)
|
|
5034
|
+
throw new Error(`Expected ${H} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5035
|
+
const l2 = me(a, JSON.parse(o));
|
|
5036
5036
|
if (l2 === void 0) return;
|
|
5037
5037
|
if (l2.type !== "JsonPartitioned")
|
|
5038
5038
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5044,7 +5044,7 @@
|
|
|
5044
5044
|
parts: s2
|
|
5045
5045
|
};
|
|
5046
5046
|
}
|
|
5047
|
-
case
|
|
5047
|
+
case q: {
|
|
5048
5048
|
if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
5049
5049
|
throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
|
|
5050
5050
|
const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
|
|
@@ -5053,7 +5053,7 @@
|
|
|
5053
5053
|
if (a === void 0) return;
|
|
5054
5054
|
if (a.resourceType.name !== B)
|
|
5055
5055
|
throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5056
|
-
const l2 =
|
|
5056
|
+
const l2 = me(a, JSON.parse(o));
|
|
5057
5057
|
if (l2 === void 0) return;
|
|
5058
5058
|
if (l2.type !== "BinaryPartitioned")
|
|
5059
5059
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5069,15 +5069,15 @@
|
|
|
5069
5069
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
function
|
|
5072
|
+
function Tt(t) {
|
|
5073
5073
|
if (t !== void 0) {
|
|
5074
|
-
if (
|
|
5075
|
-
if (
|
|
5076
|
-
if (t instanceof D) return
|
|
5074
|
+
if (_(t)) return t;
|
|
5075
|
+
if (Oe(t)) return Ve$1(t);
|
|
5076
|
+
if (t instanceof D) return me(t);
|
|
5077
5077
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
function
|
|
5080
|
+
function Lt(t, e) {
|
|
5081
5081
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5082
5082
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5083
5083
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5137,45 +5137,45 @@
|
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function Ft(t) {
|
|
5141
5141
|
if (!Array.isArray(t)) return false;
|
|
5142
5142
|
if (t.length === 0) return true;
|
|
5143
5143
|
const e = t[0];
|
|
5144
5144
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5145
5145
|
}
|
|
5146
|
-
class
|
|
5146
|
+
class Et {
|
|
5147
5147
|
constructor(e) {
|
|
5148
5148
|
this.columns = e;
|
|
5149
5149
|
}
|
|
5150
5150
|
selectColumns(e) {
|
|
5151
|
-
const n2 = typeof e == "function" ? e :
|
|
5151
|
+
const n2 = typeof e == "function" ? e : nn(e);
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function kt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
|
-
type: `split:${
|
|
5158
|
+
type: `split:${_e$1(e.axisId)}`,
|
|
5159
5159
|
label: e.label,
|
|
5160
5160
|
importance: 1e6
|
|
5161
5161
|
// High importance for split filters in labels
|
|
5162
5162
|
}));
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Dt(t) {
|
|
5165
5165
|
if (t)
|
|
5166
5166
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function Ot(t, e) {
|
|
5169
5169
|
if (!e || e.length === 0) return t;
|
|
5170
5170
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5171
|
-
return
|
|
5171
|
+
return Re({ id: t, axisFilters: n2 });
|
|
5172
5172
|
}
|
|
5173
|
-
function
|
|
5173
|
+
function Ie(t) {
|
|
5174
5174
|
if (!t || typeof t != "object") return false;
|
|
5175
5175
|
const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
|
|
5176
5176
|
return !!e.domainAnchor || n2 || r;
|
|
5177
5177
|
}
|
|
5178
|
-
function
|
|
5178
|
+
function Rt(t) {
|
|
5179
5179
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5180
5180
|
return [];
|
|
5181
5181
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5183,11 +5183,11 @@
|
|
|
5183
5183
|
throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");
|
|
5184
5184
|
return e.sort((n2, r) => n2 - r), e;
|
|
5185
5185
|
}
|
|
5186
|
-
class
|
|
5186
|
+
class ae {
|
|
5187
5187
|
constructor() {
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5188
|
+
k(this, "defaultProviderStore", []);
|
|
5189
|
+
k(this, "providers", [new Et(this.defaultProviderStore)]);
|
|
5190
|
+
k(this, "axisLabelProviders", []);
|
|
5191
5191
|
}
|
|
5192
5192
|
addColumnProvider(e) {
|
|
5193
5193
|
return this.providers.push(e), this;
|
|
@@ -5215,126 +5215,126 @@
|
|
|
5215
5215
|
};
|
|
5216
5216
|
let u2 = () => false;
|
|
5217
5217
|
if (a) {
|
|
5218
|
-
const
|
|
5219
|
-
if (
|
|
5218
|
+
const d2 = (Array.isArray(a) ? a : [a]).map((y2) => {
|
|
5219
|
+
if (Ie(y2)) {
|
|
5220
5220
|
if (!r)
|
|
5221
5221
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5222
|
-
return
|
|
5222
|
+
return nn(We(r.anchors, y2, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return
|
|
5224
|
+
return nn(y2);
|
|
5225
5225
|
});
|
|
5226
|
-
u2 = (
|
|
5226
|
+
u2 = (y2) => d2.some((S2) => S2(y2));
|
|
5227
5227
|
}
|
|
5228
|
-
const
|
|
5229
|
-
for (const
|
|
5230
|
-
const y =
|
|
5231
|
-
let
|
|
5232
|
-
if (y) {
|
|
5228
|
+
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], g2 = /* @__PURE__ */ new Set();
|
|
5229
|
+
for (const d$1 of h) {
|
|
5230
|
+
const y$1 = Ie(d$1);
|
|
5231
|
+
let S2;
|
|
5232
|
+
if (y$1) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
|
|
5235
|
+
S2 = We(r.anchors, d$1, n2);
|
|
5236
5236
|
} else
|
|
5237
|
-
|
|
5238
|
-
const E2 = /* @__PURE__ */ new Set(),
|
|
5239
|
-
for (const
|
|
5240
|
-
const I =
|
|
5237
|
+
S2 = d$1;
|
|
5238
|
+
const E2 = /* @__PURE__ */ new Set(), _2 = [];
|
|
5239
|
+
for (const C2 of this.providers) {
|
|
5240
|
+
const I = C2.selectColumns(S2);
|
|
5241
5241
|
for (const c2 of I) {
|
|
5242
5242
|
if (u2(c2.spec)) continue;
|
|
5243
5243
|
if (E2.has(c2.id))
|
|
5244
|
-
throw new Error(`Duplicate column id ${c2.id} in provider ${
|
|
5245
|
-
const m2 =
|
|
5246
|
-
|
|
5244
|
+
throw new Error(`Duplicate column id ${c2.id} in provider ${C2.constructor.name}`);
|
|
5245
|
+
const m2 = tn(c2.spec);
|
|
5246
|
+
g2.has(m2) || (E2.add(c2.id), g2.add(m2), _2.push(c2));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
|
-
if (
|
|
5250
|
-
const
|
|
5251
|
-
for (const
|
|
5252
|
-
if (!
|
|
5253
|
-
const I =
|
|
5254
|
-
if (
|
|
5255
|
-
if (
|
|
5256
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5257
|
-
const c2 =
|
|
5249
|
+
if (_2.length === 0) continue;
|
|
5250
|
+
const w = Rt(d$1), A2 = w.length > 0;
|
|
5251
|
+
for (const C2 of _2) {
|
|
5252
|
+
if (!d(C2.spec)) continue;
|
|
5253
|
+
const I = C2.spec;
|
|
5254
|
+
if (A2) {
|
|
5255
|
+
if (Ft(C2.data))
|
|
5256
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${C2.id}`);
|
|
5257
|
+
const c2 = Tt(C2.data);
|
|
5258
5258
|
if (!c2) {
|
|
5259
5259
|
if (s2) continue;
|
|
5260
5260
|
return;
|
|
5261
5261
|
}
|
|
5262
|
-
if (
|
|
5263
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${
|
|
5264
|
-
const m2 =
|
|
5265
|
-
if (
|
|
5266
|
-
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${
|
|
5267
|
-
const
|
|
5268
|
-
if (
|
|
5269
|
-
if (
|
|
5262
|
+
if (!$e$1(c2))
|
|
5263
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${C2.id}`);
|
|
5264
|
+
const m2 = It(c2), T = w[w.length - 1];
|
|
5265
|
+
if (T >= c2.partitionKeyLength)
|
|
5266
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${T}) in column ${I.name}`);
|
|
5267
|
+
const U = w.map((L2) => this.findLabels(y(I.axesSpec[L2]))), V = [], J = (L2, W) => {
|
|
5268
|
+
if (W >= w.length) {
|
|
5269
|
+
if (V.push([...L2]), V.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
const
|
|
5274
|
-
if (
|
|
5275
|
-
throw new Error(`Axis index ${
|
|
5276
|
-
const
|
|
5277
|
-
if (!
|
|
5278
|
-
|
|
5273
|
+
const j = w[W];
|
|
5274
|
+
if (j >= m2.length)
|
|
5275
|
+
throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${m2.length}) during split key generation for column ${C2.id}`);
|
|
5276
|
+
const M = m2[j];
|
|
5277
|
+
if (!M || M.length === 0) {
|
|
5278
|
+
V.length = 0;
|
|
5279
5279
|
return;
|
|
5280
5280
|
}
|
|
5281
|
-
for (const
|
|
5282
|
-
|
|
5281
|
+
for (const Z of M)
|
|
5282
|
+
L2.push(Z), J(L2, W + 1), L2.pop();
|
|
5283
5283
|
};
|
|
5284
|
-
if (
|
|
5284
|
+
if (J([], 0), V.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const
|
|
5287
|
-
for (let
|
|
5288
|
-
|
|
5289
|
-
const
|
|
5290
|
-
for (const
|
|
5291
|
-
const
|
|
5292
|
-
const
|
|
5293
|
-
return { axisIdx:
|
|
5286
|
+
const K = [...I.axesSpec], We2 = w.map((L2) => L2);
|
|
5287
|
+
for (let L2 = w.length - 1; L2 >= 0; L2--)
|
|
5288
|
+
K.splice(w[L2], 1);
|
|
5289
|
+
const Ge = { ...I, axesSpec: K };
|
|
5290
|
+
for (const L2 of V) {
|
|
5291
|
+
const W = L2.map((j, M) => {
|
|
5292
|
+
const Z = We2[M], He2 = y(I.axesSpec[Z]), le = U[M], qe2 = (le == null ? void 0 : le[j]) ?? String(j);
|
|
5293
|
+
return { axisIdx: Z, axisId: He2, value: j, label: qe2 };
|
|
5294
5294
|
});
|
|
5295
|
-
|
|
5295
|
+
f.push({
|
|
5296
5296
|
type: "split",
|
|
5297
|
-
originalColumn:
|
|
5297
|
+
originalColumn: C2,
|
|
5298
5298
|
spec: I,
|
|
5299
|
-
adjustedSpec:
|
|
5299
|
+
adjustedSpec: Ge,
|
|
5300
5300
|
dataEntries: c2,
|
|
5301
|
-
axisFilters:
|
|
5301
|
+
axisFilters: W
|
|
5302
5302
|
});
|
|
5303
5303
|
}
|
|
5304
5304
|
} else
|
|
5305
|
-
|
|
5305
|
+
f.push({
|
|
5306
5306
|
type: "direct",
|
|
5307
|
-
originalColumn:
|
|
5307
|
+
originalColumn: C2,
|
|
5308
5308
|
spec: I,
|
|
5309
5309
|
adjustedSpec: I
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
|
-
if (
|
|
5314
|
-
const p2 =
|
|
5315
|
-
|
|
5316
|
-
(
|
|
5317
|
-
spec:
|
|
5318
|
-
suffixTrace:
|
|
5313
|
+
if (f.length === 0) return [];
|
|
5314
|
+
const p2 = Me(
|
|
5315
|
+
f,
|
|
5316
|
+
(d2) => ({
|
|
5317
|
+
spec: d2.spec,
|
|
5318
|
+
suffixTrace: d2.type === "split" ? kt(d2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
5321
|
), b = [];
|
|
5322
|
-
for (const { value:
|
|
5323
|
-
const { originalColumn:
|
|
5324
|
-
let
|
|
5325
|
-
r ?
|
|
5326
|
-
let
|
|
5327
|
-
o && (
|
|
5328
|
-
...
|
|
5322
|
+
for (const { value: d2, label: y2 } of p2) {
|
|
5323
|
+
const { originalColumn: S2, spec: E2 } = d2, _2 = d2.type === "split" ? d2.axisFilters : void 0, w = Dt(_2);
|
|
5324
|
+
let A2;
|
|
5325
|
+
r ? A2 = r.deriveS(E2, w) : A2 = Ot(S2.id, w);
|
|
5326
|
+
let C2 = { ...d2.adjustedSpec };
|
|
5327
|
+
o && (C2 = {
|
|
5328
|
+
...C2,
|
|
5329
5329
|
annotations: {
|
|
5330
|
-
...
|
|
5331
|
-
"pl7.app/label":
|
|
5330
|
+
...C2.annotations ?? {},
|
|
5331
|
+
"pl7.app/label": y2
|
|
5332
5332
|
}
|
|
5333
5333
|
}), b.push({
|
|
5334
|
-
id:
|
|
5335
|
-
spec:
|
|
5336
|
-
data: () =>
|
|
5337
|
-
label:
|
|
5334
|
+
id: A2,
|
|
5335
|
+
spec: C2,
|
|
5336
|
+
data: () => d2.type === "split" ? Ie$1(Lt(d2.dataEntries, w)) : d2.originalColumn.data,
|
|
5337
|
+
label: y2
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
5340
5340
|
return b;
|
|
@@ -5362,7 +5362,40 @@
|
|
|
5362
5362
|
return i;
|
|
5363
5363
|
}
|
|
5364
5364
|
}
|
|
5365
|
-
function
|
|
5365
|
+
function ye(t) {
|
|
5366
|
+
const e = (i) => i.operator !== "InSet" ? i : {
|
|
5367
|
+
operator: "Or",
|
|
5368
|
+
operands: i.references.map((s2) => ({
|
|
5369
|
+
operator: "Equal",
|
|
5370
|
+
reference: s2
|
|
5371
|
+
}))
|
|
5372
|
+
}, n2 = (i, s2) => {
|
|
5373
|
+
switch (i.operator) {
|
|
5374
|
+
case "And":
|
|
5375
|
+
return {
|
|
5376
|
+
...i,
|
|
5377
|
+
operands: i.operands.map((a) => n2(a, s2))
|
|
5378
|
+
};
|
|
5379
|
+
case "Or":
|
|
5380
|
+
return {
|
|
5381
|
+
...i,
|
|
5382
|
+
operands: i.operands.map((a) => n2(a, s2))
|
|
5383
|
+
};
|
|
5384
|
+
case "Not":
|
|
5385
|
+
return {
|
|
5386
|
+
...i,
|
|
5387
|
+
operand: n2(i.operand, s2)
|
|
5388
|
+
};
|
|
5389
|
+
default:
|
|
5390
|
+
return s2(i);
|
|
5391
|
+
}
|
|
5392
|
+
}, r = (i, s2) => ({
|
|
5393
|
+
...i,
|
|
5394
|
+
predicate: n2(i.predicate, s2)
|
|
5395
|
+
});
|
|
5396
|
+
return t.map((i) => r(i, e));
|
|
5397
|
+
}
|
|
5398
|
+
function ce(t, e) {
|
|
5366
5399
|
if (t === void 0) return e === void 0;
|
|
5367
5400
|
if (e === void 0) return true;
|
|
5368
5401
|
for (const n2 in e)
|
|
@@ -5370,11 +5403,11 @@
|
|
|
5370
5403
|
return true;
|
|
5371
5404
|
}
|
|
5372
5405
|
function Te(t) {
|
|
5373
|
-
return
|
|
5406
|
+
return Ze(t, (e) => e instanceof D ? e.handle : Oe(e) ? Ce(e, (n2) => n2.handle) : e);
|
|
5374
5407
|
}
|
|
5375
|
-
class
|
|
5408
|
+
class Kt {
|
|
5376
5409
|
constructor() {
|
|
5377
|
-
|
|
5410
|
+
k(this, "ctx", v());
|
|
5378
5411
|
}
|
|
5379
5412
|
/**
|
|
5380
5413
|
* @deprecated use getOptions()
|
|
@@ -5383,28 +5416,28 @@
|
|
|
5383
5416
|
return this.ctx.calculateOptions(e);
|
|
5384
5417
|
}
|
|
5385
5418
|
getOptions(e, n2) {
|
|
5386
|
-
const r = typeof e == "function" ? e :
|
|
5419
|
+
const r = typeof e == "function" ? e : nn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5387
5420
|
let s2 = {}, o = false;
|
|
5388
|
-
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ?
|
|
5389
|
-
ref:
|
|
5421
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Me(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5422
|
+
ref: un(a, o),
|
|
5390
5423
|
label: l2
|
|
5391
5424
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5392
|
-
ref:
|
|
5425
|
+
ref: un(a, o),
|
|
5393
5426
|
label: s2(l2, a)
|
|
5394
5427
|
}));
|
|
5395
5428
|
}
|
|
5396
5429
|
resolveAnchorCtx(e) {
|
|
5397
|
-
if (e instanceof
|
|
5430
|
+
if (e instanceof He) return e;
|
|
5398
5431
|
const n2 = {};
|
|
5399
5432
|
for (const [r, i] of Object.entries(e))
|
|
5400
|
-
if (
|
|
5433
|
+
if (sn(i)) {
|
|
5401
5434
|
const s2 = this.getPColumnSpecByRef(i);
|
|
5402
5435
|
if (!s2)
|
|
5403
5436
|
return;
|
|
5404
5437
|
n2[r] = s2;
|
|
5405
5438
|
} else
|
|
5406
5439
|
n2[r] = i;
|
|
5407
|
-
return new
|
|
5440
|
+
return new He(n2);
|
|
5408
5441
|
}
|
|
5409
5442
|
/**
|
|
5410
5443
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5417,7 +5450,7 @@
|
|
|
5417
5450
|
getAnchoredPColumns(e, n2, r) {
|
|
5418
5451
|
const i = this.resolveAnchorCtx(e);
|
|
5419
5452
|
if (i)
|
|
5420
|
-
return new
|
|
5453
|
+
return new ae().addColumnProvider(this).addAxisLabelProvider(this).getColumns(n2, {
|
|
5421
5454
|
...r,
|
|
5422
5455
|
anchorCtx: i
|
|
5423
5456
|
});
|
|
@@ -5454,7 +5487,7 @@
|
|
|
5454
5487
|
getCanonicalOptions(e, n2, r) {
|
|
5455
5488
|
const i = this.resolveAnchorCtx(e);
|
|
5456
5489
|
if (!i) return;
|
|
5457
|
-
const s2 = new
|
|
5490
|
+
const s2 = new ae().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(n2, {
|
|
5458
5491
|
...r,
|
|
5459
5492
|
anchorCtx: i
|
|
5460
5493
|
});
|
|
@@ -5497,7 +5530,7 @@
|
|
|
5497
5530
|
ref: n2.ref,
|
|
5498
5531
|
obj: {
|
|
5499
5532
|
...n2.obj,
|
|
5500
|
-
data:
|
|
5533
|
+
data: fn(
|
|
5501
5534
|
n2.obj.data,
|
|
5502
5535
|
(r) => new D(r, [n2.ref.blockId, n2.ref.name])
|
|
5503
5536
|
)
|
|
@@ -5526,7 +5559,7 @@
|
|
|
5526
5559
|
)) == null ? void 0 : r.obj;
|
|
5527
5560
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5528
5561
|
if (n2)
|
|
5529
|
-
return
|
|
5562
|
+
return Ze(
|
|
5530
5563
|
n2,
|
|
5531
5564
|
(i) => new D(i, [e.blockId, e.name])
|
|
5532
5565
|
);
|
|
@@ -5539,7 +5572,7 @@
|
|
|
5539
5572
|
getPColumnByRef(e) {
|
|
5540
5573
|
const n2 = this.getDataByRef(e);
|
|
5541
5574
|
if (n2)
|
|
5542
|
-
return
|
|
5575
|
+
return Ye$1(n2);
|
|
5543
5576
|
}
|
|
5544
5577
|
/**
|
|
5545
5578
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5549,7 +5582,7 @@
|
|
|
5549
5582
|
getPColumnSpecByRef(e) {
|
|
5550
5583
|
const n2 = this.getSpecByRef(e);
|
|
5551
5584
|
if (n2) {
|
|
5552
|
-
if (!
|
|
5585
|
+
if (!d(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
|
|
5553
5586
|
return n2;
|
|
5554
5587
|
}
|
|
5555
5588
|
}
|
|
@@ -5568,13 +5601,13 @@
|
|
|
5568
5601
|
findDataWithCompatibleSpec(e) {
|
|
5569
5602
|
const n2 = [];
|
|
5570
5603
|
e: for (const r of this.getData().entries) {
|
|
5571
|
-
if (!
|
|
5604
|
+
if (!d(r.obj.spec))
|
|
5572
5605
|
continue;
|
|
5573
5606
|
const i = r.obj.spec;
|
|
5574
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5607
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ce(e.domain, i.domain)) {
|
|
5575
5608
|
for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
|
|
5576
5609
|
const o = e.axesSpec[s2], a = i.axesSpec[s2];
|
|
5577
|
-
if (o.name !== a.name || o.type !== a.type || !
|
|
5610
|
+
if (o.name !== a.name || o.type !== a.type || !ce(o.domain, a.domain))
|
|
5578
5611
|
continue e;
|
|
5579
5612
|
}
|
|
5580
5613
|
n2.push(r.obj);
|
|
@@ -5589,9 +5622,9 @@
|
|
|
5589
5622
|
findLabels(e) {
|
|
5590
5623
|
const n2 = this.getData();
|
|
5591
5624
|
for (const r of n2.entries) {
|
|
5592
|
-
if (!
|
|
5625
|
+
if (!ie$1(r.obj)) continue;
|
|
5593
5626
|
const i = r.obj.spec;
|
|
5594
|
-
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type &&
|
|
5627
|
+
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ce(e.domain, i.axesSpec[0].domain)) {
|
|
5595
5628
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5596
5629
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5597
5630
|
return Object.fromEntries(
|
|
@@ -5610,13 +5643,13 @@
|
|
|
5610
5643
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5611
5644
|
*/
|
|
5612
5645
|
selectColumns(e) {
|
|
5613
|
-
const n2 = typeof e == "function" ? e :
|
|
5614
|
-
return this.getSpecs().entries.filter(({ obj: i }) =>
|
|
5646
|
+
const n2 = typeof e == "function" ? e : nn(e);
|
|
5647
|
+
return this.getSpecs().entries.filter(({ obj: i }) => d(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5615
5648
|
const o = s2;
|
|
5616
5649
|
let a = null;
|
|
5617
5650
|
const l2 = this;
|
|
5618
5651
|
return {
|
|
5619
|
-
id:
|
|
5652
|
+
id: Re(i),
|
|
5620
5653
|
spec: o,
|
|
5621
5654
|
get data() {
|
|
5622
5655
|
var u2;
|
|
@@ -5641,36 +5674,54 @@
|
|
|
5641
5674
|
return r;
|
|
5642
5675
|
}
|
|
5643
5676
|
}
|
|
5644
|
-
class
|
|
5677
|
+
class ee {
|
|
5645
5678
|
constructor() {
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
this.ctx = v()
|
|
5679
|
+
k(this, "ctx");
|
|
5680
|
+
k(this, "_argsCache");
|
|
5681
|
+
k(this, "_uiStateCache");
|
|
5682
|
+
k(this, "_activeArgsCache");
|
|
5683
|
+
k(this, "resultPool", new Kt());
|
|
5684
|
+
this.ctx = v();
|
|
5685
|
+
}
|
|
5686
|
+
get args() {
|
|
5687
|
+
if (this._argsCache === void 0) {
|
|
5688
|
+
const e = this.ctx.args, n2 = typeof e == "function" ? e() : e;
|
|
5689
|
+
this._argsCache = { v: JSON.parse(n2) };
|
|
5690
|
+
}
|
|
5691
|
+
return this._argsCache.v;
|
|
5692
|
+
}
|
|
5693
|
+
get uiState() {
|
|
5694
|
+
if (this._uiStateCache === void 0) {
|
|
5695
|
+
const e = this.ctx.uiState, n2 = typeof e == "function" ? e() : e;
|
|
5696
|
+
this._uiStateCache = { v: n2 ? JSON.parse(n2) : {} };
|
|
5697
|
+
}
|
|
5698
|
+
return this._uiStateCache.v;
|
|
5652
5699
|
}
|
|
5653
5700
|
/**
|
|
5654
5701
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
5655
5702
|
* Returns undefined, if block was never executed or stopped mid-way execution, so that the result was cleared.
|
|
5656
5703
|
* */
|
|
5657
5704
|
get activeArgs() {
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5705
|
+
if (this._activeArgsCache === void 0) {
|
|
5706
|
+
const e = this.ctx.activeArgs, n2 = typeof e == "function" ? e() : e;
|
|
5707
|
+
this._activeArgsCache = {
|
|
5708
|
+
v: n2 ? JSON.parse(n2) : void 0
|
|
5709
|
+
};
|
|
5710
|
+
}
|
|
5711
|
+
return this._activeArgsCache.v;
|
|
5661
5712
|
}
|
|
5662
5713
|
// /** Can be used to determine features provided by the desktop instance. */
|
|
5663
5714
|
// public get featureFlags() {
|
|
5664
5715
|
// return this.ctx.featureFlags;
|
|
5665
5716
|
// }
|
|
5666
5717
|
getNamedAccessor(e) {
|
|
5667
|
-
return
|
|
5718
|
+
return fe(
|
|
5668
5719
|
this.ctx.getAccessorHandleByName(e),
|
|
5669
5720
|
(n2) => new D(n2, [e])
|
|
5670
5721
|
);
|
|
5671
5722
|
}
|
|
5672
5723
|
get prerun() {
|
|
5673
|
-
return this.getNamedAccessor(
|
|
5724
|
+
return this.getNamedAccessor(Ve);
|
|
5674
5725
|
}
|
|
5675
5726
|
get outputs() {
|
|
5676
5727
|
return this.getNamedAccessor(je);
|
|
@@ -5685,16 +5736,20 @@
|
|
|
5685
5736
|
}
|
|
5686
5737
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5687
5738
|
var i;
|
|
5688
|
-
const n2 = e.some((s2) => !(s2.data instanceof D) ||
|
|
5739
|
+
const n2 = e.some((s2) => !(s2.data instanceof D) || Oe(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5689
5740
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5690
5741
|
}
|
|
5691
5742
|
patchPTableDef(e) {
|
|
5692
|
-
var n2;
|
|
5693
|
-
return (n2 = this.ctx.featureFlags) != null && n2.pTablePartitionFiltersSupport
|
|
5743
|
+
var n2, r;
|
|
5744
|
+
return (n2 = this.ctx.featureFlags) != null && n2.pTablePartitionFiltersSupport || (e = {
|
|
5694
5745
|
...e,
|
|
5695
5746
|
partitionFilters: [],
|
|
5696
5747
|
filters: [...e.partitionFilters, ...e.filters]
|
|
5697
|
-
}
|
|
5748
|
+
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
5749
|
+
...e,
|
|
5750
|
+
partitionFilters: ye(e.partitionFilters),
|
|
5751
|
+
filters: ye(e.filters)
|
|
5752
|
+
}), e;
|
|
5698
5753
|
}
|
|
5699
5754
|
// TODO remove all non-PColumn fields
|
|
5700
5755
|
createPFrame(e) {
|
|
@@ -5712,8 +5767,8 @@
|
|
|
5712
5767
|
partitionFilters: e.filters ?? [],
|
|
5713
5768
|
filters: [],
|
|
5714
5769
|
sorting: e.sorting ?? []
|
|
5715
|
-
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(
|
|
5716
|
-
|
|
5770
|
+
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(en(n2.src)), this.ctx.createPTable(
|
|
5771
|
+
qe(n2, (r) => Te(r))
|
|
5717
5772
|
);
|
|
5718
5773
|
}
|
|
5719
5774
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5733,34 +5788,35 @@
|
|
|
5733
5788
|
this.ctx.logError(e);
|
|
5734
5789
|
}
|
|
5735
5790
|
}
|
|
5736
|
-
const
|
|
5737
|
-
function
|
|
5791
|
+
const z = "1.39.6";
|
|
5792
|
+
function Nt(t) {
|
|
5738
5793
|
return t.__renderLambda === true;
|
|
5739
5794
|
}
|
|
5740
5795
|
function pe(t) {
|
|
5741
5796
|
if (t !== void 0)
|
|
5742
|
-
return
|
|
5797
|
+
return Nt(t) ? t.handle : t;
|
|
5743
5798
|
}
|
|
5744
|
-
class
|
|
5745
|
-
constructor(e, n2, r, i, s2, o, a, l2) {
|
|
5746
|
-
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
|
|
5799
|
+
const x = class x2 {
|
|
5800
|
+
constructor(e, n2, r, i, s2, o, a, l2, u2) {
|
|
5801
|
+
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2, this._featureFlags = u2;
|
|
5747
5802
|
}
|
|
5748
5803
|
static create(e = "Heavy") {
|
|
5749
|
-
return new
|
|
5804
|
+
return new x2(
|
|
5750
5805
|
e,
|
|
5751
5806
|
void 0,
|
|
5752
5807
|
{},
|
|
5753
5808
|
{},
|
|
5754
|
-
|
|
5755
|
-
|
|
5809
|
+
ne(true),
|
|
5810
|
+
ne([]),
|
|
5756
5811
|
void 0,
|
|
5757
|
-
void 0
|
|
5812
|
+
void 0,
|
|
5813
|
+
{ ...x2.INITIAL_BLOCK_FEATURE_FLAGS }
|
|
5758
5814
|
);
|
|
5759
5815
|
}
|
|
5760
5816
|
output(e, n2, r = {}) {
|
|
5761
5817
|
if (typeof n2 == "function") {
|
|
5762
5818
|
const i = `output#${e}`;
|
|
5763
|
-
return
|
|
5819
|
+
return G(i, () => n2(new ee())), new x2(
|
|
5764
5820
|
this._renderingMode,
|
|
5765
5821
|
this._initialArgs,
|
|
5766
5822
|
this._initialUiState,
|
|
@@ -5775,10 +5831,11 @@
|
|
|
5775
5831
|
this._inputsValid,
|
|
5776
5832
|
this._sections,
|
|
5777
5833
|
this._title,
|
|
5778
|
-
this._enrichmentTargets
|
|
5834
|
+
this._enrichmentTargets,
|
|
5835
|
+
this._featureFlags
|
|
5779
5836
|
);
|
|
5780
5837
|
} else
|
|
5781
|
-
return new
|
|
5838
|
+
return new x2(
|
|
5782
5839
|
this._renderingMode,
|
|
5783
5840
|
this._initialArgs,
|
|
5784
5841
|
this._initialUiState,
|
|
@@ -5789,7 +5846,8 @@
|
|
|
5789
5846
|
this._inputsValid,
|
|
5790
5847
|
this._sections,
|
|
5791
5848
|
this._title,
|
|
5792
|
-
this._enrichmentTargets
|
|
5849
|
+
this._enrichmentTargets,
|
|
5850
|
+
this._featureFlags
|
|
5793
5851
|
);
|
|
5794
5852
|
}
|
|
5795
5853
|
/** Shortcut for {@link output} with retentive flag set to true. */
|
|
@@ -5797,7 +5855,7 @@
|
|
|
5797
5855
|
return this.output(e, n2, { retentive: true });
|
|
5798
5856
|
}
|
|
5799
5857
|
argsValid(e) {
|
|
5800
|
-
return typeof e == "function" ? (
|
|
5858
|
+
return typeof e == "function" ? (G("inputsValid", () => e(new ee())), new x2(
|
|
5801
5859
|
this._renderingMode,
|
|
5802
5860
|
this._initialArgs,
|
|
5803
5861
|
this._initialUiState,
|
|
@@ -5808,8 +5866,9 @@
|
|
|
5808
5866
|
},
|
|
5809
5867
|
this._sections,
|
|
5810
5868
|
this._title,
|
|
5811
|
-
this._enrichmentTargets
|
|
5812
|
-
|
|
5869
|
+
this._enrichmentTargets,
|
|
5870
|
+
this._featureFlags
|
|
5871
|
+
)) : new x2(
|
|
5813
5872
|
this._renderingMode,
|
|
5814
5873
|
this._initialArgs,
|
|
5815
5874
|
this._initialUiState,
|
|
@@ -5817,11 +5876,12 @@
|
|
|
5817
5876
|
e,
|
|
5818
5877
|
this._sections,
|
|
5819
5878
|
this._title,
|
|
5820
|
-
this._enrichmentTargets
|
|
5879
|
+
this._enrichmentTargets,
|
|
5880
|
+
this._featureFlags
|
|
5821
5881
|
);
|
|
5822
5882
|
}
|
|
5823
5883
|
sections(e) {
|
|
5824
|
-
return Array.isArray(e) ? this.sections(
|
|
5884
|
+
return Array.isArray(e) ? this.sections(ne(e)) : typeof e == "function" ? (G("sections", () => e(new ee())), new x2(
|
|
5825
5885
|
this._renderingMode,
|
|
5826
5886
|
this._initialArgs,
|
|
5827
5887
|
this._initialUiState,
|
|
@@ -5829,8 +5889,9 @@
|
|
|
5829
5889
|
this._inputsValid,
|
|
5830
5890
|
{ __renderLambda: true, handle: "sections" },
|
|
5831
5891
|
this._title,
|
|
5832
|
-
this._enrichmentTargets
|
|
5833
|
-
|
|
5892
|
+
this._enrichmentTargets,
|
|
5893
|
+
this._featureFlags
|
|
5894
|
+
)) : new x2(
|
|
5834
5895
|
this._renderingMode,
|
|
5835
5896
|
this._initialArgs,
|
|
5836
5897
|
this._initialUiState,
|
|
@@ -5838,12 +5899,13 @@
|
|
|
5838
5899
|
this._inputsValid,
|
|
5839
5900
|
e,
|
|
5840
5901
|
this._title,
|
|
5841
|
-
this._enrichmentTargets
|
|
5902
|
+
this._enrichmentTargets,
|
|
5903
|
+
this._featureFlags
|
|
5842
5904
|
);
|
|
5843
5905
|
}
|
|
5844
5906
|
/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
|
|
5845
5907
|
title(e) {
|
|
5846
|
-
return
|
|
5908
|
+
return G("title", () => e(new ee())), new x2(
|
|
5847
5909
|
this._renderingMode,
|
|
5848
5910
|
this._initialArgs,
|
|
5849
5911
|
this._initialUiState,
|
|
@@ -5851,7 +5913,8 @@
|
|
|
5851
5913
|
this._inputsValid,
|
|
5852
5914
|
this._sections,
|
|
5853
5915
|
{ __renderLambda: true, handle: "title" },
|
|
5854
|
-
this._enrichmentTargets
|
|
5916
|
+
this._enrichmentTargets,
|
|
5917
|
+
this._featureFlags
|
|
5855
5918
|
);
|
|
5856
5919
|
}
|
|
5857
5920
|
/**
|
|
@@ -5859,7 +5922,7 @@
|
|
|
5859
5922
|
* @deprecated use {@link withArgs}
|
|
5860
5923
|
* */
|
|
5861
5924
|
initialArgs(e) {
|
|
5862
|
-
return new
|
|
5925
|
+
return new x2(
|
|
5863
5926
|
this._renderingMode,
|
|
5864
5927
|
e,
|
|
5865
5928
|
this._initialUiState,
|
|
@@ -5867,12 +5930,13 @@
|
|
|
5867
5930
|
this._inputsValid,
|
|
5868
5931
|
this._sections,
|
|
5869
5932
|
this._title,
|
|
5870
|
-
this._enrichmentTargets
|
|
5933
|
+
this._enrichmentTargets,
|
|
5934
|
+
this._featureFlags
|
|
5871
5935
|
);
|
|
5872
5936
|
}
|
|
5873
5937
|
/** Sets initial args for the block, this value must be specified. */
|
|
5874
5938
|
withArgs(e) {
|
|
5875
|
-
return new
|
|
5939
|
+
return new x2(
|
|
5876
5940
|
this._renderingMode,
|
|
5877
5941
|
e,
|
|
5878
5942
|
this._initialUiState,
|
|
@@ -5880,12 +5944,13 @@
|
|
|
5880
5944
|
this._inputsValid,
|
|
5881
5945
|
this._sections,
|
|
5882
5946
|
this._title,
|
|
5883
|
-
this._enrichmentTargets
|
|
5947
|
+
this._enrichmentTargets,
|
|
5948
|
+
this._featureFlags
|
|
5884
5949
|
);
|
|
5885
5950
|
}
|
|
5886
5951
|
/** Defines type and sets initial value for block UiState. */
|
|
5887
5952
|
withUiState(e) {
|
|
5888
|
-
return new
|
|
5953
|
+
return new x2(
|
|
5889
5954
|
this._renderingMode,
|
|
5890
5955
|
this._initialArgs,
|
|
5891
5956
|
e,
|
|
@@ -5893,7 +5958,8 @@
|
|
|
5893
5958
|
this._inputsValid,
|
|
5894
5959
|
this._sections,
|
|
5895
5960
|
this._title,
|
|
5896
|
-
this._enrichmentTargets
|
|
5961
|
+
this._enrichmentTargets,
|
|
5962
|
+
this._featureFlags
|
|
5897
5963
|
);
|
|
5898
5964
|
}
|
|
5899
5965
|
/**
|
|
@@ -5901,7 +5967,7 @@
|
|
|
5901
5967
|
* Influences dependency graph construction.
|
|
5902
5968
|
*/
|
|
5903
5969
|
enriches(e) {
|
|
5904
|
-
return
|
|
5970
|
+
return G("enrichmentTargets", e), new x2(
|
|
5905
5971
|
this._renderingMode,
|
|
5906
5972
|
this._initialArgs,
|
|
5907
5973
|
this._initialUiState,
|
|
@@ -5909,7 +5975,8 @@
|
|
|
5909
5975
|
this._inputsValid,
|
|
5910
5976
|
this._sections,
|
|
5911
5977
|
this._title,
|
|
5912
|
-
{ __renderLambda: true, handle: "enrichmentTargets" }
|
|
5978
|
+
{ __renderLambda: true, handle: "enrichmentTargets" },
|
|
5979
|
+
this._featureFlags
|
|
5913
5980
|
);
|
|
5914
5981
|
}
|
|
5915
5982
|
/** Renders all provided block settings into a pre-configured platforma API
|
|
@@ -5919,7 +5986,7 @@
|
|
|
5919
5986
|
if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
|
|
5920
5987
|
const e = {
|
|
5921
5988
|
v3: {
|
|
5922
|
-
sdkVersion:
|
|
5989
|
+
sdkVersion: z,
|
|
5923
5990
|
renderingMode: this._renderingMode,
|
|
5924
5991
|
initialArgs: this._initialArgs,
|
|
5925
5992
|
initialUiState: this._initialUiState,
|
|
@@ -5927,10 +5994,11 @@
|
|
|
5927
5994
|
sections: this._sections,
|
|
5928
5995
|
title: this._title,
|
|
5929
5996
|
outputs: this._outputs,
|
|
5930
|
-
enrichmentTargets: this._enrichmentTargets
|
|
5997
|
+
enrichmentTargets: this._enrichmentTargets,
|
|
5998
|
+
featureFlags: this._featureFlags
|
|
5931
5999
|
},
|
|
5932
6000
|
// fields below are added to allow previous desktop versions read generated configs
|
|
5933
|
-
sdkVersion:
|
|
6001
|
+
sdkVersion: z,
|
|
5934
6002
|
renderingMode: this._renderingMode,
|
|
5935
6003
|
initialArgs: this._initialArgs,
|
|
5936
6004
|
inputsValid: pe(this._inputsValid),
|
|
@@ -5939,9 +6007,15 @@
|
|
|
5939
6007
|
Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
|
|
5940
6008
|
)
|
|
5941
6009
|
};
|
|
5942
|
-
return
|
|
6010
|
+
return ht() ? Ne({ sdkVersion: z }) : { config: e };
|
|
5943
6011
|
}
|
|
5944
|
-
}
|
|
6012
|
+
};
|
|
6013
|
+
k(x, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
6014
|
+
supportsLazyState: true,
|
|
6015
|
+
requiresUIAPIVersion: 1,
|
|
6016
|
+
requiresModelAPIVersion: 1
|
|
6017
|
+
});
|
|
6018
|
+
let Le = x;
|
|
5945
6019
|
function Ue() {
|
|
5946
6020
|
return {
|
|
5947
6021
|
sourceId: null,
|
|
@@ -5958,7 +6032,7 @@
|
|
|
5958
6032
|
pTableParams: Ue()
|
|
5959
6033
|
};
|
|
5960
6034
|
}
|
|
5961
|
-
function
|
|
6035
|
+
function jt(t) {
|
|
5962
6036
|
return "version" in t ? (t.version === 2 && (t = {
|
|
5963
6037
|
version: 3,
|
|
5964
6038
|
stateCache: t.stateCache.map((e) => ({
|
|
@@ -5971,51 +6045,51 @@
|
|
|
5971
6045
|
function be(t) {
|
|
5972
6046
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
5973
6047
|
}
|
|
5974
|
-
function
|
|
5975
|
-
return new
|
|
6048
|
+
function Jt(t) {
|
|
6049
|
+
return new ae().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
5976
6050
|
name: "pl7.app/label",
|
|
5977
6051
|
axes: [{}]
|
|
5978
6052
|
// exactly one axis
|
|
5979
6053
|
}, { dontWaitAllData: true });
|
|
5980
6054
|
}
|
|
5981
|
-
function
|
|
6055
|
+
function Fe(t, e) {
|
|
5982
6056
|
const n2 = [], r = [];
|
|
5983
6057
|
for (const a of t)
|
|
5984
6058
|
be(a.spec) ? n2.push(a) : r.push(a);
|
|
5985
6059
|
const i = [];
|
|
5986
6060
|
for (const a of r)
|
|
5987
6061
|
for (const l2 of a.spec.axesSpec) {
|
|
5988
|
-
const u2 =
|
|
5989
|
-
i.some((
|
|
6062
|
+
const u2 = y(l2);
|
|
6063
|
+
i.some((h) => ne$1(h, u2)) || i.push(u2);
|
|
5990
6064
|
}
|
|
5991
6065
|
for (const a of n2) {
|
|
5992
|
-
const l2 =
|
|
6066
|
+
const l2 = y(a.spec.axesSpec[0]), u2 = i.findIndex((h) => ne$1(h, l2));
|
|
5993
6067
|
u2 !== -1 && i.splice(u2, 1);
|
|
5994
6068
|
}
|
|
5995
6069
|
const s2 = (a, l2) => {
|
|
5996
6070
|
let u2 = a.toString();
|
|
5997
6071
|
if (l2)
|
|
5998
|
-
for (const
|
|
5999
|
-
u2 +=
|
|
6072
|
+
for (const h in l2)
|
|
6073
|
+
u2 += h, u2 += l2[h];
|
|
6000
6074
|
return u2;
|
|
6001
6075
|
}, o = [];
|
|
6002
6076
|
for (const a of e) {
|
|
6003
|
-
const l2 = a.spec.axesSpec[0], u2 =
|
|
6004
|
-
if (
|
|
6005
|
-
const
|
|
6006
|
-
|
|
6007
|
-
id: s2(a.id,
|
|
6077
|
+
const l2 = a.spec.axesSpec[0], u2 = y(l2), h = i.findIndex((f) => ne$1(f, u2));
|
|
6078
|
+
if (h !== -1) {
|
|
6079
|
+
const f = i[h], g2 = Object.keys(f.domain ?? {}).length, p2 = Object.keys(l2.domain ?? {}).length;
|
|
6080
|
+
g2 > p2 ? o.push({
|
|
6081
|
+
id: s2(a.id, f.domain),
|
|
6008
6082
|
spec: {
|
|
6009
6083
|
...a.spec,
|
|
6010
|
-
axesSpec: [{ ...
|
|
6084
|
+
axesSpec: [{ ...f, annotations: l2.annotations }]
|
|
6011
6085
|
},
|
|
6012
6086
|
data: a.data
|
|
6013
|
-
}) : o.push(a), i.splice(
|
|
6087
|
+
}) : o.push(a), i.splice(h, 1);
|
|
6014
6088
|
}
|
|
6015
6089
|
}
|
|
6016
6090
|
return o;
|
|
6017
6091
|
}
|
|
6018
|
-
function
|
|
6092
|
+
function Mt(t) {
|
|
6019
6093
|
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof D, r = (i) => typeof i == "object" && "type" in i;
|
|
6020
6094
|
return t.map((i) => i.data).every((i) => {
|
|
6021
6095
|
if (e(i))
|
|
@@ -6061,65 +6135,65 @@
|
|
|
6061
6135
|
var e;
|
|
6062
6136
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
6063
6137
|
}
|
|
6064
|
-
function
|
|
6138
|
+
function Bt(t) {
|
|
6065
6139
|
var e;
|
|
6066
6140
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6067
6141
|
}
|
|
6068
|
-
function
|
|
6142
|
+
function de(t, e) {
|
|
6069
6143
|
return [...new Map(t.map((n2) => [e(n2), n2])).values()];
|
|
6070
6144
|
}
|
|
6071
6145
|
function Vn(t, e, n2, r) {
|
|
6072
6146
|
if (e.length === 0) return;
|
|
6073
|
-
const i = e.filter((c2) => !$t(c2.spec)), s2 =
|
|
6147
|
+
const i = e.filter((c2) => !$t(c2.spec)), s2 = jt(n2), o = Jt(t.resultPool);
|
|
6074
6148
|
if (!o) return;
|
|
6075
|
-
const a =
|
|
6076
|
-
...
|
|
6077
|
-
[...l2.flatMap((c2) => c2.spec.axesSpec.map((m2) =>
|
|
6078
|
-
(c2) =>
|
|
6149
|
+
const a = Fe(i.map(Me$1), o), l2 = [...i, ...a], h = [
|
|
6150
|
+
...de(
|
|
6151
|
+
[...l2.flatMap((c2) => c2.spec.axesSpec.map((m2) => y(m2)))],
|
|
6152
|
+
(c2) => mn(c2)
|
|
6079
6153
|
).map((c2) => ({ type: "axis", id: c2 })),
|
|
6080
6154
|
...l2.map((c2) => ({ type: "column", id: c2.id }))
|
|
6081
|
-
],
|
|
6082
|
-
const m2 =
|
|
6155
|
+
], f = new Set(h.map((c2) => mn(c2))), g2 = (c2) => f.has(mn(c2)), p2 = "full", b = s2.pTableParams.partitionFilters.filter((c2) => {
|
|
6156
|
+
const m2 = g2(c2.column);
|
|
6083
6157
|
return m2 || t.logWarn(`Partition filter ${JSON.stringify(c2)} does not match provided columns, skipping`), m2;
|
|
6084
|
-
}),
|
|
6158
|
+
}), d2 = de(
|
|
6085
6159
|
[...[], ...s2.pTableParams.filters],
|
|
6086
|
-
(c2) =>
|
|
6160
|
+
(c2) => mn(c2.column)
|
|
6087
6161
|
).filter((c2) => {
|
|
6088
|
-
const m2 =
|
|
6162
|
+
const m2 = g2(c2.column);
|
|
6089
6163
|
return m2 || t.logWarn(`Filter ${JSON.stringify(c2)} does not match provided columns, skipping`), m2;
|
|
6090
|
-
}), y =
|
|
6164
|
+
}), y$1 = de(
|
|
6091
6165
|
[...[], ...s2.pTableParams.sorting],
|
|
6092
|
-
(c2) =>
|
|
6166
|
+
(c2) => mn(c2.column)
|
|
6093
6167
|
).filter((c2) => {
|
|
6094
|
-
const m2 =
|
|
6168
|
+
const m2 = g2(c2.column);
|
|
6095
6169
|
return m2 || t.logWarn(`Sorting ${JSON.stringify(c2)} does not match provided columns, skipping`), m2;
|
|
6096
|
-
}),
|
|
6170
|
+
}), S2 = Ee({
|
|
6097
6171
|
columns: i,
|
|
6098
6172
|
labelColumns: a,
|
|
6099
6173
|
coreJoinType: p2,
|
|
6100
6174
|
partitionFilters: b,
|
|
6101
|
-
filters:
|
|
6102
|
-
sorting: y,
|
|
6175
|
+
filters: d2,
|
|
6176
|
+
sorting: y$1,
|
|
6103
6177
|
coreColumnPredicate: void 0
|
|
6104
|
-
}), E2 = t.createPTable(
|
|
6178
|
+
}), E2 = t.createPTable(S2), _2 = new Set((() => {
|
|
6105
6179
|
const c2 = s2.pTableParams.hiddenColIds;
|
|
6106
|
-
return c2 || i.filter((m2) =>
|
|
6180
|
+
return c2 || i.filter((m2) => Bt(m2.spec)).map((m2) => m2.id);
|
|
6107
6181
|
})());
|
|
6108
6182
|
i.filter((c2) => {
|
|
6109
6183
|
var m2;
|
|
6110
6184
|
return ((m2 = c2.spec.annotations) == null ? void 0 : m2["pl7.app/isLinkerColumn"]) === "true";
|
|
6111
|
-
}).forEach((c2) =>
|
|
6112
|
-
const
|
|
6113
|
-
if (!
|
|
6114
|
-
const
|
|
6115
|
-
columns:
|
|
6116
|
-
labelColumns:
|
|
6185
|
+
}).forEach((c2) => _2.delete(c2.id)), [...b.map((c2) => c2.column), ...d2.map((c2) => c2.column), ...y$1.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => _2.delete(c2.id));
|
|
6186
|
+
const w = i.filter((c2) => !_2.has(c2.id)), A2 = Fe(w.map(Me$1), o);
|
|
6187
|
+
if (!Mt([...w, ...A2])) return;
|
|
6188
|
+
const C2 = Ee({
|
|
6189
|
+
columns: w,
|
|
6190
|
+
labelColumns: A2,
|
|
6117
6191
|
coreJoinType: p2,
|
|
6118
6192
|
partitionFilters: b,
|
|
6119
|
-
filters:
|
|
6120
|
-
sorting: y,
|
|
6193
|
+
filters: d2,
|
|
6194
|
+
sorting: y$1,
|
|
6121
6195
|
coreColumnPredicate: void 0
|
|
6122
|
-
}), I = t.createPTable(
|
|
6196
|
+
}), I = t.createPTable(C2);
|
|
6123
6197
|
return {
|
|
6124
6198
|
sourceId: s2.pTableParams.sourceId,
|
|
6125
6199
|
fullTableHandle: E2,
|
|
@@ -6149,7 +6223,7 @@
|
|
|
6149
6223
|
numbers: z$1.array(z$1.coerce.number()),
|
|
6150
6224
|
handles: z$1.array(ImportFileHandleSchema)
|
|
6151
6225
|
});
|
|
6152
|
-
const platforma =
|
|
6226
|
+
const platforma = Le.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({
|
|
6153
6227
|
dataTableStateV2: Vt(),
|
|
6154
6228
|
dynamicSections: []
|
|
6155
6229
|
}).argsValid((ctx) => {
|
|
@@ -6261,15 +6335,15 @@
|
|
|
6261
6335
|
})
|
|
6262
6336
|
}
|
|
6263
6337
|
];
|
|
6264
|
-
for (let
|
|
6338
|
+
for (let j = 3; j < 10; ++j) {
|
|
6265
6339
|
columns.push({
|
|
6266
|
-
id: `column${
|
|
6340
|
+
id: `column${j}`,
|
|
6267
6341
|
spec: {
|
|
6268
6342
|
kind: "PColumn",
|
|
6269
6343
|
valueType: "String",
|
|
6270
6344
|
name: "value",
|
|
6271
6345
|
annotations: {
|
|
6272
|
-
"pl7.app/label": `Alphabetical column ${
|
|
6346
|
+
"pl7.app/label": `Alphabetical column ${j - 2}`,
|
|
6273
6347
|
"pl7.app/table/visibility": "optional"
|
|
6274
6348
|
},
|
|
6275
6349
|
axesSpec: [
|
|
@@ -6286,7 +6360,7 @@
|
|
|
6286
6360
|
const v2 = i + 1;
|
|
6287
6361
|
return {
|
|
6288
6362
|
key: [v2],
|
|
6289
|
-
val: v2.toString().repeat(
|
|
6363
|
+
val: v2.toString().repeat(j)
|
|
6290
6364
|
};
|
|
6291
6365
|
})
|
|
6292
6366
|
});
|