@milaboratories/milaboratories.ui-examples.model 1.2.19 → 1.2.21
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 +13 -0
- package/dist/bundle.js +391 -391
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -3955,20 +3955,20 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const Be = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
-
var
|
|
3960
|
-
var
|
|
3961
|
-
var d = (e, n2,
|
|
3958
|
+
const Be$1 = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
+
var V$1 = Object.defineProperty;
|
|
3960
|
+
var T = (e, n2, r) => n2 in e ? V$1(e, n2, { enumerable: true, configurable: true, writable: true, value: r }) : e[n2] = r;
|
|
3961
|
+
var d = (e, n2, r) => T(e, typeof n2 != "symbol" ? n2 + "" : n2, r);
|
|
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
|
|
3968
|
+
function g(e) {
|
|
3969
3969
|
throw new Error("Unexpected object: " + e);
|
|
3970
3970
|
}
|
|
3971
|
-
function $
|
|
3971
|
+
function Se$1(e) {
|
|
3972
3972
|
if (!e || typeof e != "object")
|
|
3973
3973
|
return false;
|
|
3974
3974
|
const n2 = e;
|
|
@@ -3985,30 +3985,30 @@
|
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Oe$1(e, n2) {
|
|
3989
3989
|
if (e !== void 0)
|
|
3990
3990
|
switch (e.type) {
|
|
3991
3991
|
case "Json":
|
|
3992
3992
|
return e;
|
|
3993
3993
|
case "JsonPartitioned": {
|
|
3994
|
-
const
|
|
3995
|
-
for (const [
|
|
3996
|
-
t
|
|
3994
|
+
const r = {};
|
|
3995
|
+
for (const [t, o] of Object.entries(e.parts))
|
|
3996
|
+
r[t] = n2(o);
|
|
3997
3997
|
return {
|
|
3998
3998
|
...e,
|
|
3999
|
-
parts:
|
|
3999
|
+
parts: r
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
4002
|
case "BinaryPartitioned": {
|
|
4003
|
-
const
|
|
4004
|
-
for (const [
|
|
4005
|
-
t
|
|
4003
|
+
const r = {};
|
|
4004
|
+
for (const [t, o] of Object.entries(e.parts))
|
|
4005
|
+
r[t] = {
|
|
4006
4006
|
index: n2(o.index),
|
|
4007
4007
|
values: n2(o.values)
|
|
4008
4008
|
};
|
|
4009
4009
|
return {
|
|
4010
4010
|
...e,
|
|
4011
|
-
parts:
|
|
4011
|
+
parts: r
|
|
4012
4012
|
};
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
@@ -4030,13 +4030,13 @@
|
|
|
4030
4030
|
return false;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4033
|
+
function Fe(e) {
|
|
4034
4034
|
return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function je(e) {
|
|
4037
4037
|
switch (e.type) {
|
|
4038
4038
|
case "Json": {
|
|
4039
|
-
const n2 = Object.entries(e.data).map(([
|
|
4039
|
+
const n2 = Object.entries(e.data).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
4040
4040
|
return {
|
|
4041
4041
|
type: "Json",
|
|
4042
4042
|
keyLength: e.keyLength,
|
|
@@ -4044,7 +4044,7 @@
|
|
|
4044
4044
|
};
|
|
4045
4045
|
}
|
|
4046
4046
|
case "JsonPartitioned": {
|
|
4047
|
-
const n2 = Object.entries(e.parts).map(([
|
|
4047
|
+
const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
4048
4048
|
return {
|
|
4049
4049
|
type: "JsonPartitioned",
|
|
4050
4050
|
partitionKeyLength: e.partitionKeyLength,
|
|
@@ -4052,7 +4052,7 @@
|
|
|
4052
4052
|
};
|
|
4053
4053
|
}
|
|
4054
4054
|
case "BinaryPartitioned": {
|
|
4055
|
-
const n2 = Object.entries(e.parts).map(([
|
|
4055
|
+
const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
4056
4056
|
return {
|
|
4057
4057
|
type: "BinaryPartitioned",
|
|
4058
4058
|
partitionKeyLength: e.partitionKeyLength,
|
|
@@ -4061,12 +4061,12 @@
|
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function Ie(e) {
|
|
4065
4065
|
switch (e.type) {
|
|
4066
4066
|
case "Json": {
|
|
4067
4067
|
const n2 = {};
|
|
4068
|
-
for (const
|
|
4069
|
-
n2[JSON.stringify(
|
|
4068
|
+
for (const r of e.data)
|
|
4069
|
+
n2[JSON.stringify(r.key)] = r.value;
|
|
4070
4070
|
return {
|
|
4071
4071
|
type: "Json",
|
|
4072
4072
|
keyLength: e.keyLength,
|
|
@@ -4075,8 +4075,8 @@
|
|
|
4075
4075
|
}
|
|
4076
4076
|
case "JsonPartitioned": {
|
|
4077
4077
|
const n2 = {};
|
|
4078
|
-
for (const
|
|
4079
|
-
n2[JSON.stringify(
|
|
4078
|
+
for (const r of e.parts)
|
|
4079
|
+
n2[JSON.stringify(r.key)] = r.value;
|
|
4080
4080
|
return {
|
|
4081
4081
|
type: "JsonPartitioned",
|
|
4082
4082
|
partitionKeyLength: e.partitionKeyLength,
|
|
@@ -4085,8 +4085,8 @@
|
|
|
4085
4085
|
}
|
|
4086
4086
|
case "BinaryPartitioned": {
|
|
4087
4087
|
const n2 = {};
|
|
4088
|
-
for (const
|
|
4089
|
-
n2[JSON.stringify(
|
|
4088
|
+
for (const r of e.parts)
|
|
4089
|
+
n2[JSON.stringify(r.key)] = r.value;
|
|
4090
4090
|
return {
|
|
4091
4091
|
type: "BinaryPartitioned",
|
|
4092
4092
|
partitionKeyLength: e.partitionKeyLength,
|
|
@@ -4095,33 +4095,33 @@
|
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
|
-
function
|
|
4098
|
+
function Ve$1(e) {
|
|
4099
4099
|
return {
|
|
4100
4100
|
columnId: e.id,
|
|
4101
4101
|
spec: e.spec
|
|
4102
4102
|
};
|
|
4103
4103
|
}
|
|
4104
|
-
function
|
|
4105
|
-
const { type: n2, name:
|
|
4106
|
-
return
|
|
4104
|
+
function h(e) {
|
|
4105
|
+
const { type: n2, name: r, domain: t } = e, o = { type: n2, name: r };
|
|
4106
|
+
return t && Object.entries(t).length > 0 && Object.assign(o, { domain: t }), o;
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4109
|
-
return e.map(
|
|
4108
|
+
function I(e) {
|
|
4109
|
+
return e.map(h);
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4112
|
-
return Be(
|
|
4111
|
+
function Te$1(e) {
|
|
4112
|
+
return Be$1(h(e));
|
|
4113
4113
|
}
|
|
4114
|
-
function
|
|
4114
|
+
function G$1(e, n2) {
|
|
4115
4115
|
if (e === void 0) return n2 === void 0;
|
|
4116
4116
|
if (n2 === void 0) return true;
|
|
4117
|
-
for (const
|
|
4118
|
-
if (e[
|
|
4117
|
+
for (const r in n2)
|
|
4118
|
+
if (e[r] !== n2[r]) return false;
|
|
4119
4119
|
return true;
|
|
4120
4120
|
}
|
|
4121
|
-
function
|
|
4122
|
-
return e.name === n2.name &&
|
|
4121
|
+
function X$1(e, n2) {
|
|
4122
|
+
return e.name === n2.name && G$1(e.domain, n2.domain);
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function Be(e, n2) {
|
|
4125
4125
|
return { ...e, src: b$1(e.src, n2) };
|
|
4126
4126
|
}
|
|
4127
4127
|
function b$1(e, n2) {
|
|
@@ -4144,28 +4144,28 @@
|
|
|
4144
4144
|
case "full":
|
|
4145
4145
|
return {
|
|
4146
4146
|
type: e.type,
|
|
4147
|
-
entries: e.entries.map((
|
|
4147
|
+
entries: e.entries.map((r) => b$1(r, n2))
|
|
4148
4148
|
};
|
|
4149
4149
|
case "outer":
|
|
4150
4150
|
return {
|
|
4151
4151
|
type: "outer",
|
|
4152
4152
|
primary: b$1(e.primary, n2),
|
|
4153
|
-
secondary: e.secondary.map((
|
|
4153
|
+
secondary: e.secondary.map((r) => b$1(r, n2))
|
|
4154
4154
|
};
|
|
4155
4155
|
default:
|
|
4156
|
-
|
|
4156
|
+
g(e);
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4160
|
-
return Be(e);
|
|
4159
|
+
function Q$1(e) {
|
|
4160
|
+
return Be$1(e);
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4163
|
-
return Be(
|
|
4162
|
+
function A(e) {
|
|
4163
|
+
return Be$1(h(e));
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4165
|
+
function x(e, n2) {
|
|
4166
4166
|
return JSON.stringify([e, n2]);
|
|
4167
4167
|
}
|
|
4168
|
-
|
|
4168
|
+
class Me {
|
|
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
|
|
@@ -4176,19 +4176,19 @@
|
|
|
4176
4176
|
d(this, "domainPacks", []);
|
|
4177
4177
|
d(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
4178
4178
|
this.anchors = n2;
|
|
4179
|
-
const
|
|
4180
|
-
|
|
4181
|
-
for (const [
|
|
4179
|
+
const r = Object.entries(n2);
|
|
4180
|
+
r.sort((t, o) => t[0].localeCompare(o[0]));
|
|
4181
|
+
for (const [t, o] of r) {
|
|
4182
4182
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
4183
|
-
const
|
|
4184
|
-
this.axes.set(
|
|
4183
|
+
const s2 = o.axesSpec[i], a = A(s2);
|
|
4184
|
+
this.axes.set(a, { anchor: t, idx: i });
|
|
4185
4185
|
}
|
|
4186
4186
|
if (o.domain !== void 0) {
|
|
4187
4187
|
const i = Object.entries(o.domain);
|
|
4188
|
-
i.sort((
|
|
4189
|
-
for (const [
|
|
4190
|
-
const u2 =
|
|
4191
|
-
this.domains.set(u2,
|
|
4188
|
+
i.sort((s2, a) => s2[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(i), t), this.domainPacks.push(i.map(([s2]) => s2));
|
|
4189
|
+
for (const [s2, a] of i) {
|
|
4190
|
+
const u2 = x(s2, a);
|
|
4191
|
+
this.domains.set(u2, t);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
4194
|
}
|
|
@@ -4196,56 +4196,56 @@
|
|
|
4196
4196
|
/**
|
|
4197
4197
|
* Implementation of derive method
|
|
4198
4198
|
*/
|
|
4199
|
-
derive(n2,
|
|
4200
|
-
const
|
|
4199
|
+
derive(n2, r) {
|
|
4200
|
+
const t = {
|
|
4201
4201
|
name: n2.name,
|
|
4202
4202
|
axes: []
|
|
4203
4203
|
};
|
|
4204
4204
|
let o;
|
|
4205
4205
|
if (n2.domain !== void 0)
|
|
4206
4206
|
e:
|
|
4207
|
-
for (const
|
|
4208
|
-
const
|
|
4209
|
-
for (const c2 of
|
|
4207
|
+
for (const s2 of this.domainPacks) {
|
|
4208
|
+
const a = [];
|
|
4209
|
+
for (const c2 of s2) {
|
|
4210
4210
|
const f = n2.domain[c2];
|
|
4211
4211
|
if (f !== void 0)
|
|
4212
|
-
|
|
4212
|
+
a.push([c2, f]);
|
|
4213
4213
|
else
|
|
4214
4214
|
break e;
|
|
4215
4215
|
}
|
|
4216
|
-
const u2 = this.domainPackToAnchor.get(JSON.stringify(
|
|
4216
|
+
const u2 = this.domainPackToAnchor.get(JSON.stringify(a));
|
|
4217
4217
|
if (u2 !== void 0) {
|
|
4218
|
-
|
|
4218
|
+
t.domainAnchor = u2, o = new Set(s2);
|
|
4219
4219
|
break;
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
|
-
for (const [
|
|
4223
|
-
if (o !== void 0 && o.has(
|
|
4222
|
+
for (const [s2, a] of Object.entries(n2.domain ?? {})) {
|
|
4223
|
+
if (o !== void 0 && o.has(s2))
|
|
4224
4224
|
continue;
|
|
4225
|
-
const u2 =
|
|
4226
|
-
|
|
4227
|
-
}
|
|
4228
|
-
if (
|
|
4229
|
-
const
|
|
4230
|
-
return u2 === void 0 ?
|
|
4231
|
-
}), !
|
|
4232
|
-
return
|
|
4225
|
+
const u2 = x(s2, a), c2 = this.domains.get(u2);
|
|
4226
|
+
t.domain ?? (t.domain = {}), t.domain[s2] = c2 ? { anchor: c2 } : a;
|
|
4227
|
+
}
|
|
4228
|
+
if (t.axes = n2.axesSpec.map((s2) => {
|
|
4229
|
+
const a = A(s2), u2 = this.axes.get(a);
|
|
4230
|
+
return u2 === void 0 ? h(s2) : u2;
|
|
4231
|
+
}), !r || r.length === 0)
|
|
4232
|
+
return t;
|
|
4233
4233
|
const i = [];
|
|
4234
|
-
for (const
|
|
4235
|
-
const [
|
|
4236
|
-
if (typeof
|
|
4237
|
-
if (
|
|
4238
|
-
throw new Error(`Axis index ${
|
|
4239
|
-
i.push([
|
|
4234
|
+
for (const s2 of r) {
|
|
4235
|
+
const [a, u2] = s2;
|
|
4236
|
+
if (typeof a == "number") {
|
|
4237
|
+
if (a < 0 || a >= n2.axesSpec.length)
|
|
4238
|
+
throw new Error(`Axis index ${a} is out of bounds (0-${n2.axesSpec.length - 1})`);
|
|
4239
|
+
i.push([a, u2]);
|
|
4240
4240
|
} else {
|
|
4241
|
-
const c2 = n2.axesSpec.findIndex((f) => f.name ===
|
|
4241
|
+
const c2 = n2.axesSpec.findIndex((f) => f.name === a);
|
|
4242
4242
|
if (c2 === -1)
|
|
4243
|
-
throw new Error(`Axis with name "${
|
|
4243
|
+
throw new Error(`Axis with name "${a}" not found in the column specification`);
|
|
4244
4244
|
i.push([c2, u2]);
|
|
4245
4245
|
}
|
|
4246
4246
|
}
|
|
4247
|
-
return i.sort((
|
|
4248
|
-
source:
|
|
4247
|
+
return i.sort((s2, a) => s2[0] - a[0]), {
|
|
4248
|
+
source: t,
|
|
4249
4249
|
axisFilters: i
|
|
4250
4250
|
};
|
|
4251
4251
|
}
|
|
@@ -4255,111 +4255,111 @@
|
|
|
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(n2,
|
|
4259
|
-
return
|
|
4258
|
+
deriveS(n2, r) {
|
|
4259
|
+
return Q$1(this.derive(n2, r));
|
|
4260
4260
|
}
|
|
4261
|
-
}
|
|
4262
|
-
function
|
|
4263
|
-
const
|
|
4264
|
-
if (
|
|
4265
|
-
const i = e[
|
|
4261
|
+
}
|
|
4262
|
+
function _e(e, n2, r) {
|
|
4263
|
+
const t = { ...n2 }, o = (r == null ? void 0 : r.ignoreMissingDomains) ?? false;
|
|
4264
|
+
if (t.domainAnchor !== void 0) {
|
|
4265
|
+
const i = e[t.domainAnchor];
|
|
4266
4266
|
if (!i)
|
|
4267
|
-
throw new Error(`Anchor "${
|
|
4268
|
-
const
|
|
4269
|
-
|
|
4267
|
+
throw new Error(`Anchor "${t.domainAnchor}" not found`);
|
|
4268
|
+
const s2 = i.domain || {};
|
|
4269
|
+
t.domain = { ...s2, ...t.domain }, delete t.domainAnchor;
|
|
4270
4270
|
}
|
|
4271
|
-
if (
|
|
4271
|
+
if (t.domain) {
|
|
4272
4272
|
const i = {};
|
|
4273
|
-
for (const [
|
|
4274
|
-
if (typeof
|
|
4275
|
-
i[
|
|
4273
|
+
for (const [s2, a] of Object.entries(t.domain))
|
|
4274
|
+
if (typeof a == "string")
|
|
4275
|
+
i[s2] = a;
|
|
4276
4276
|
else {
|
|
4277
|
-
const u2 = e[
|
|
4277
|
+
const u2 = e[a.anchor];
|
|
4278
4278
|
if (!u2)
|
|
4279
|
-
throw new Error(`Anchor "${
|
|
4280
|
-
if (!u2.domain || u2.domain[
|
|
4279
|
+
throw new Error(`Anchor "${a.anchor}" not found for domain key "${s2}"`);
|
|
4280
|
+
if (!u2.domain || u2.domain[s2] === void 0) {
|
|
4281
4281
|
if (!o)
|
|
4282
|
-
throw new Error(`Domain key "${
|
|
4282
|
+
throw new Error(`Domain key "${s2}" not found in anchor "${a.anchor}"`);
|
|
4283
4283
|
continue;
|
|
4284
4284
|
}
|
|
4285
|
-
i[
|
|
4285
|
+
i[s2] = u2.domain[s2];
|
|
4286
4286
|
}
|
|
4287
|
-
|
|
4287
|
+
t.domain = i;
|
|
4288
4288
|
}
|
|
4289
|
-
return
|
|
4289
|
+
return t.axes && (t.axes = t.axes.map((i) => Y(e, i))), t;
|
|
4290
4290
|
}
|
|
4291
|
-
function
|
|
4292
|
-
if (!
|
|
4291
|
+
function Y(e, n2) {
|
|
4292
|
+
if (!Z(n2))
|
|
4293
4293
|
return n2;
|
|
4294
|
-
const
|
|
4295
|
-
if (!
|
|
4296
|
-
throw new Error(`Anchor "${
|
|
4294
|
+
const r = n2.anchor, t = e[r];
|
|
4295
|
+
if (!t)
|
|
4296
|
+
throw new Error(`Anchor "${r}" not found for axis reference`);
|
|
4297
4297
|
if ("idx" in n2) {
|
|
4298
|
-
if (n2.idx < 0 || n2.idx >=
|
|
4299
|
-
throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${
|
|
4300
|
-
return
|
|
4298
|
+
if (n2.idx < 0 || n2.idx >= t.axesSpec.length)
|
|
4299
|
+
throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${r}"`);
|
|
4300
|
+
return t.axesSpec[n2.idx];
|
|
4301
4301
|
} else if ("name" in n2) {
|
|
4302
|
-
const o =
|
|
4302
|
+
const o = t.axesSpec.filter((i) => i.name === n2.name);
|
|
4303
4303
|
if (o.length > 1)
|
|
4304
|
-
throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${
|
|
4304
|
+
throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${r}"`);
|
|
4305
4305
|
if (o.length === 0)
|
|
4306
|
-
throw new Error(`Axis with name "${n2.name}" not found in anchor "${
|
|
4306
|
+
throw new Error(`Axis with name "${n2.name}" not found in anchor "${r}"`);
|
|
4307
4307
|
return o[0];
|
|
4308
4308
|
} else if ("id" in n2) {
|
|
4309
|
-
const o =
|
|
4309
|
+
const o = t.axesSpec.filter((i) => X$1(n2.id, h(i)));
|
|
4310
4310
|
if (o.length > 1)
|
|
4311
|
-
throw new Error(`Multiple matching axes found for matcher in anchor "${
|
|
4311
|
+
throw new Error(`Multiple matching axes found for matcher in anchor "${r}"`);
|
|
4312
4312
|
if (o.length === 0)
|
|
4313
|
-
throw new Error(`No matching axis found for matcher in anchor "${
|
|
4313
|
+
throw new Error(`No matching axis found for matcher in anchor "${r}"`);
|
|
4314
4314
|
return o[0];
|
|
4315
4315
|
}
|
|
4316
4316
|
throw new Error("Unsupported axis reference type");
|
|
4317
4317
|
}
|
|
4318
|
-
function
|
|
4318
|
+
function Z(e) {
|
|
4319
4319
|
return typeof e == "object" && "anchor" in e;
|
|
4320
4320
|
}
|
|
4321
4321
|
function l$1(e) {
|
|
4322
4322
|
return e.kind === "PColumn";
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function ee$1(e) {
|
|
4325
4325
|
return l$1(e.spec);
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4328
|
-
if (!
|
|
4327
|
+
function We$1(e) {
|
|
4328
|
+
if (!ee$1(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4329
4329
|
return e;
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4331
|
+
function Ge$1(e, n2) {
|
|
4332
4332
|
return e === void 0 ? void 0 : {
|
|
4333
4333
|
...e,
|
|
4334
4334
|
data: n2(e.data)
|
|
4335
4335
|
};
|
|
4336
4336
|
}
|
|
4337
|
-
function
|
|
4338
|
-
const n2 = /* @__PURE__ */ new Map(),
|
|
4339
|
-
switch (
|
|
4337
|
+
function Xe$1(e) {
|
|
4338
|
+
const n2 = /* @__PURE__ */ new Map(), r = (t) => {
|
|
4339
|
+
switch (t.type) {
|
|
4340
4340
|
case "column":
|
|
4341
|
-
n2.set(
|
|
4341
|
+
n2.set(t.column.id, t.column);
|
|
4342
4342
|
return;
|
|
4343
4343
|
case "slicedColumn":
|
|
4344
|
-
n2.set(
|
|
4344
|
+
n2.set(t.column.id, t.column);
|
|
4345
4345
|
return;
|
|
4346
4346
|
case "inlineColumn":
|
|
4347
4347
|
return;
|
|
4348
4348
|
case "full":
|
|
4349
4349
|
case "inner":
|
|
4350
|
-
for (const o of
|
|
4350
|
+
for (const o of t.entries) r(o);
|
|
4351
4351
|
return;
|
|
4352
4352
|
case "outer":
|
|
4353
|
-
t
|
|
4354
|
-
for (const o of
|
|
4353
|
+
r(t.primary);
|
|
4354
|
+
for (const o of t.secondary) r(o);
|
|
4355
4355
|
return;
|
|
4356
4356
|
default:
|
|
4357
|
-
|
|
4357
|
+
g(t);
|
|
4358
4358
|
}
|
|
4359
4359
|
};
|
|
4360
|
-
return
|
|
4360
|
+
return r(e), [...n2.values()];
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4362
|
+
function P(e, n2) {
|
|
4363
4363
|
if (e.name !== void 0 && e.name !== n2.name)
|
|
4364
4364
|
return false;
|
|
4365
4365
|
if (e.type !== void 0) {
|
|
@@ -4370,14 +4370,14 @@
|
|
|
4370
4370
|
return false;
|
|
4371
4371
|
}
|
|
4372
4372
|
if (e.domain !== void 0) {
|
|
4373
|
-
const
|
|
4374
|
-
for (const [
|
|
4375
|
-
if (t
|
|
4373
|
+
const r = n2.domain || {};
|
|
4374
|
+
for (const [t, o] of Object.entries(e.domain))
|
|
4375
|
+
if (r[t] !== o)
|
|
4376
4376
|
return false;
|
|
4377
4377
|
}
|
|
4378
4378
|
return true;
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4380
|
+
function E(e, n2) {
|
|
4381
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
4383
|
if (n2.type !== void 0) {
|
|
@@ -4388,50 +4388,50 @@
|
|
|
4388
4388
|
return false;
|
|
4389
4389
|
}
|
|
4390
4390
|
if (n2.domain !== void 0) {
|
|
4391
|
-
const
|
|
4392
|
-
for (const [
|
|
4393
|
-
if (t
|
|
4391
|
+
const r = e.domain || {};
|
|
4392
|
+
for (const [t, o] of Object.entries(n2.domain))
|
|
4393
|
+
if (r[t] !== o)
|
|
4394
4394
|
return false;
|
|
4395
4395
|
}
|
|
4396
4396
|
if (n2.axes !== void 0) {
|
|
4397
|
-
const
|
|
4397
|
+
const r = e.axesSpec.map(h);
|
|
4398
4398
|
if (n2.partialAxesMatch) {
|
|
4399
|
-
for (const
|
|
4400
|
-
if (!
|
|
4399
|
+
for (const t of n2.axes)
|
|
4400
|
+
if (!r.some((o) => P(t, o)))
|
|
4401
4401
|
return false;
|
|
4402
4402
|
} else {
|
|
4403
|
-
if (
|
|
4403
|
+
if (r.length !== n2.axes.length)
|
|
4404
4404
|
return false;
|
|
4405
|
-
for (let
|
|
4406
|
-
if (!
|
|
4405
|
+
for (let t = 0; t < n2.axes.length; t++)
|
|
4406
|
+
if (!P(n2.axes[t], r[t]))
|
|
4407
4407
|
return false;
|
|
4408
4408
|
}
|
|
4409
4409
|
}
|
|
4410
4410
|
if (n2.annotations !== void 0) {
|
|
4411
|
-
const
|
|
4412
|
-
for (const [
|
|
4413
|
-
if (t
|
|
4411
|
+
const r = e.annotations || {};
|
|
4412
|
+
for (const [t, o] of Object.entries(n2.annotations))
|
|
4413
|
+
if (r[t] !== o)
|
|
4414
4414
|
return false;
|
|
4415
4415
|
}
|
|
4416
4416
|
if (n2.annotationPatterns !== void 0) {
|
|
4417
|
-
const
|
|
4418
|
-
for (const [
|
|
4419
|
-
const i = t
|
|
4417
|
+
const r = e.annotations || {};
|
|
4418
|
+
for (const [t, o] of Object.entries(n2.annotationPatterns)) {
|
|
4419
|
+
const i = r[t];
|
|
4420
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(e) ? (n2) => e.some((
|
|
4426
|
+
function Qe$1(e) {
|
|
4427
|
+
return Array.isArray(e) ? (n2) => e.some((r) => l$1(n2) && E(n2, r)) : (n2) => l$1(n2) && E(n2, e);
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function Ye(e) {
|
|
4430
4430
|
const n2 = {
|
|
4431
4431
|
kind: e.kind,
|
|
4432
4432
|
name: e.name
|
|
4433
4433
|
};
|
|
4434
|
-
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec =
|
|
4434
|
+
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = I(e.axesSpec)), Be$1(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
|
|
4444
|
+
function nn$1(e) {
|
|
4445
4445
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === true && "blockId" in e && "name" in e;
|
|
4446
4446
|
}
|
|
4447
|
-
function
|
|
4447
|
+
function tn(e, n2 = true) {
|
|
4448
4448
|
if (n2)
|
|
4449
4449
|
return {
|
|
4450
4450
|
...e,
|
|
4451
4451
|
requireEnrichments: true
|
|
4452
4452
|
};
|
|
4453
4453
|
{
|
|
4454
|
-
const { requireEnrichments:
|
|
4455
|
-
return
|
|
4454
|
+
const { requireEnrichments: r, ...t } = e;
|
|
4455
|
+
return t;
|
|
4456
4456
|
}
|
|
4457
4457
|
}
|
|
4458
|
-
function
|
|
4458
|
+
function an(e, n2) {
|
|
4459
4459
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4460
4460
|
}
|
|
4461
|
-
const
|
|
4462
|
-
z$1.string().length(
|
|
4463
|
-
function
|
|
4464
|
-
return Be(e);
|
|
4461
|
+
const ae = 24;
|
|
4462
|
+
z$1.string().length(ae).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4463
|
+
function fn(e) {
|
|
4464
|
+
return Be$1(e);
|
|
4465
4465
|
}
|
|
4466
4466
|
var stringify = { exports: {} };
|
|
4467
4467
|
var hasRequiredStringify;
|
|
@@ -4528,7 +4528,7 @@
|
|
|
4528
4528
|
function se(t) {
|
|
4529
4529
|
return { type: "Immediate", value: t };
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function Pt() {
|
|
4532
4532
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4533
4533
|
}
|
|
4534
4534
|
function $e(t) {
|
|
@@ -4537,7 +4537,7 @@
|
|
|
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 At() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
4543
|
function b() {
|
|
@@ -4545,13 +4545,13 @@
|
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
4547
4547
|
function G(t, e) {
|
|
4548
|
-
const n2 =
|
|
4548
|
+
const n2 = At();
|
|
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
4553
|
const fe = /* @__PURE__ */ new Map();
|
|
4554
|
-
function
|
|
4554
|
+
function wt(t, e) {
|
|
4555
4555
|
t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
|
|
4556
4556
|
for (const r of fe.get(t))
|
|
4557
4557
|
r(n2);
|
|
@@ -4561,7 +4561,7 @@
|
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
4562
|
V(this, "isResolved", false);
|
|
4563
4563
|
V(this, "resolvedValue");
|
|
4564
|
-
this.handle = e, this.postProcess = n2,
|
|
4564
|
+
this.handle = e, this.postProcess = n2, wt(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
4567
4567
|
}
|
|
@@ -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(([, o]) => {
|
|
4687
|
-
if (!
|
|
4687
|
+
if (!ee$1(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
|
|
4688
4688
|
return o;
|
|
4689
4689
|
});
|
|
4690
4690
|
}
|
|
@@ -4702,7 +4702,7 @@
|
|
|
4702
4702
|
const i = {};
|
|
4703
4703
|
for (const [o, s2] of Object.entries(r)) {
|
|
4704
4704
|
const a = [...this.resolvePath, o];
|
|
4705
|
-
i[o] =
|
|
4705
|
+
i[o] = Ge$1(s2, (l2) => new O(l2, a));
|
|
4706
4706
|
}
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
@@ -4798,76 +4798,76 @@
|
|
|
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 o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4801
|
+
return o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h2]) => s2(u2, h2));
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
4804
|
const We = "staging", Ge = "main";
|
|
4805
|
-
const
|
|
4805
|
+
const It = "pl7.app/label", _t = "pl7.app/trace", Lt = 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
|
-
}),
|
|
4810
|
+
}), Et = z$1.array(Lt), Vt = 1e-3, kt = "__LABEL__", Ee = "__LABEL__@1";
|
|
4811
4811
|
function ze(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, o = /* @__PURE__ */ new Map(), s2 = t.map((d2) => {
|
|
4813
|
-
var c2,
|
|
4814
|
-
const
|
|
4815
|
-
let p2,
|
|
4816
|
-
"spec" in
|
|
4817
|
-
const
|
|
4818
|
-
...
|
|
4819
|
-
...
|
|
4820
|
-
...
|
|
4813
|
+
var c2, v;
|
|
4814
|
+
const y = e(d2);
|
|
4815
|
+
let p2, g2, C;
|
|
4816
|
+
"spec" in y && typeof y.spec == "object" ? (p2 = y.spec, g2 = y.prefixTrace, C = y.suffixTrace) : p2 = y;
|
|
4817
|
+
const E2 = (c2 = p2.annotations) == null ? void 0 : c2[It], F = (v = p2.annotations) == null ? void 0 : v[_t], S = (F ? Et.safeParse(JSON.parse(F)).data : void 0) ?? [], P2 = [
|
|
4818
|
+
...g2 ?? [],
|
|
4819
|
+
...S,
|
|
4820
|
+
...C ?? []
|
|
4821
4821
|
];
|
|
4822
|
-
if (
|
|
4823
|
-
const
|
|
4824
|
-
n2.addLabelAsSuffix ?
|
|
4825
|
-
}
|
|
4826
|
-
const
|
|
4827
|
-
for (let
|
|
4828
|
-
const { type: $ } =
|
|
4829
|
-
|
|
4830
|
-
const
|
|
4831
|
-
o.set(
|
|
4832
|
-
|
|
4822
|
+
if (E2 !== void 0) {
|
|
4823
|
+
const I2 = { label: E2, type: kt, importance: -2 };
|
|
4824
|
+
n2.addLabelAsSuffix ? P2.push(I2) : P2.splice(0, 0, I2);
|
|
4825
|
+
}
|
|
4826
|
+
const T2 = [], x2 = /* @__PURE__ */ new Map();
|
|
4827
|
+
for (let I2 = P2.length - 1; I2 >= 0; --I2) {
|
|
4828
|
+
const { type: $ } = P2[I2], K = P2[I2].importance ?? 0, j = (x2.get($) ?? 0) + 1;
|
|
4829
|
+
x2.set($, j);
|
|
4830
|
+
const N = `${$}@${j}`;
|
|
4831
|
+
o.set(N, (o.get(N) ?? 0) + 1), r.set(
|
|
4832
|
+
N,
|
|
4833
4833
|
Math.max(
|
|
4834
|
-
r.get(
|
|
4835
|
-
K - (
|
|
4834
|
+
r.get(N) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
+
K - (P2.length - I2) * Vt
|
|
4836
4836
|
)
|
|
4837
|
-
),
|
|
4837
|
+
), T2.push({ ...P2[I2], fullType: N, occurrenceIndex: j });
|
|
4838
4838
|
}
|
|
4839
|
-
return
|
|
4839
|
+
return T2.reverse(), {
|
|
4840
4840
|
value: d2,
|
|
4841
4841
|
spec: p2,
|
|
4842
|
-
label:
|
|
4843
|
-
fullTrace:
|
|
4842
|
+
label: E2,
|
|
4843
|
+
fullTrace: T2
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
4846
|
-
u2.sort(([, d2], [,
|
|
4846
|
+
u2.sort(([, d2], [, y]) => y - d2);
|
|
4847
4847
|
for (const [d2] of u2)
|
|
4848
4848
|
d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
|
|
4849
|
-
const
|
|
4849
|
+
const h2 = (d2, y = false) => {
|
|
4850
4850
|
const p2 = [];
|
|
4851
|
-
for (let
|
|
4852
|
-
const
|
|
4853
|
-
if (
|
|
4854
|
-
if (
|
|
4851
|
+
for (let g2 = 0; g2 < s2.length; g2++) {
|
|
4852
|
+
const C = s2[g2], E2 = C.fullTrace.filter((P2) => d2.has(P2.fullType) || i && i.has(P2.type));
|
|
4853
|
+
if (E2.length === 0)
|
|
4854
|
+
if (y)
|
|
4855
4855
|
p2.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
|
-
value:
|
|
4857
|
+
value: C.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const
|
|
4860
|
+
const F = E2.map((P2) => P2.label), S = n2.separator ?? " / ";
|
|
4861
4861
|
p2.push({
|
|
4862
|
-
label:
|
|
4863
|
-
value:
|
|
4862
|
+
label: F.join(S),
|
|
4863
|
+
value: C.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
4866
4866
|
return p2;
|
|
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 h2(new Set(Ee), true);
|
|
4871
4871
|
}
|
|
4872
4872
|
let f = 0, m2 = -1;
|
|
4873
4873
|
for (; f < a.length; ) {
|
|
@@ -4875,11 +4875,11 @@
|
|
|
4875
4875
|
n2.includeNativeLabel && d2.add(Ee);
|
|
4876
4876
|
for (let p2 = 0; p2 < f; ++p2) d2.add(a[p2]);
|
|
4877
4877
|
m2 >= 0 && d2.add(a[m2]);
|
|
4878
|
-
const
|
|
4879
|
-
if (
|
|
4878
|
+
const y = h2(d2);
|
|
4879
|
+
if (y !== void 0 && new Set(y.map((p2) => p2.label)).size === t.length) return y;
|
|
4880
4880
|
m2++, m2 >= a.length && (f++, m2 = f);
|
|
4881
4881
|
}
|
|
4882
|
-
return
|
|
4882
|
+
return h2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
4884
4884
|
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", J = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
|
|
4885
4885
|
const ve = (t) => {
|
|
@@ -4889,7 +4889,7 @@
|
|
|
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 Ot(t) {
|
|
4893
4893
|
if (!t) return;
|
|
4894
4894
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4895
4895
|
let i = 0;
|
|
@@ -4935,7 +4935,7 @@
|
|
|
4935
4935
|
}
|
|
4936
4936
|
return { data: r, keyLength: i };
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4938
|
+
function Dt(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 Rt(t) {
|
|
4958
4958
|
if (t === void 0) return;
|
|
4959
4959
|
if (_(t))
|
|
4960
|
-
return
|
|
4961
|
-
const e =
|
|
4960
|
+
return Dt(t);
|
|
4961
|
+
const e = Ot(t);
|
|
4962
4962
|
if (!e) return;
|
|
4963
4963
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4964
4964
|
for (let o = 0; o < r; ++o)
|
|
@@ -5069,15 +5069,15 @@
|
|
|
5069
5069
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
function
|
|
5072
|
+
function Nt(t) {
|
|
5073
5073
|
if (t !== void 0) {
|
|
5074
5074
|
if (_(t)) return t;
|
|
5075
|
-
if ($
|
|
5075
|
+
if (Se$1(t)) return je(t);
|
|
5076
5076
|
if (t instanceof O) return Ce(t);
|
|
5077
5077
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
function
|
|
5080
|
+
function Ut(t, e) {
|
|
5081
5081
|
const n2 = [...e].sort((o, s2) => s2[0] - o[0]);
|
|
5082
5082
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5083
5083
|
const { partitionKeyLength: o } = t;
|
|
@@ -5137,45 +5137,45 @@
|
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function Kt(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 Mt {
|
|
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 : Qe$1(e);
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function jt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
|
-
type: `split:${
|
|
5158
|
+
type: `split:${Te$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 qt(t) {
|
|
5165
5165
|
if (t)
|
|
5166
5166
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function Bt(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 Be({ id: t, axisFilters: n2 });
|
|
5171
|
+
return Be$1({ id: t, axisFilters: n2 });
|
|
5172
5172
|
}
|
|
5173
5173
|
function Ve(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 Jt(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);
|
|
@@ -5186,7 +5186,7 @@
|
|
|
5186
5186
|
class Q {
|
|
5187
5187
|
constructor() {
|
|
5188
5188
|
V(this, "defaultProviderStore", []);
|
|
5189
|
-
V(this, "providers", [new
|
|
5189
|
+
V(this, "providers", [new Mt(this.defaultProviderStore)]);
|
|
5190
5190
|
V(this, "axisLabelProviders", []);
|
|
5191
5191
|
}
|
|
5192
5192
|
addColumnProvider(e) {
|
|
@@ -5215,87 +5215,87 @@
|
|
|
5215
5215
|
};
|
|
5216
5216
|
let u2 = () => false;
|
|
5217
5217
|
if (a) {
|
|
5218
|
-
const p2 = (Array.isArray(a) ? a : [a]).map((
|
|
5219
|
-
if (Ve(
|
|
5218
|
+
const p2 = (Array.isArray(a) ? a : [a]).map((g2) => {
|
|
5219
|
+
if (Ve(g2)) {
|
|
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 Qe$1(_e(r.anchors, g2, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return
|
|
5224
|
+
return Qe$1(g2);
|
|
5225
5225
|
});
|
|
5226
|
-
u2 = (
|
|
5226
|
+
u2 = (g2) => p2.some((C) => C(g2));
|
|
5227
5227
|
}
|
|
5228
|
-
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
|
|
5229
|
-
for (const p2 of h) {
|
|
5230
|
-
const
|
|
5231
|
-
let
|
|
5232
|
-
if (
|
|
5228
|
+
const h$1 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
|
|
5229
|
+
for (const p2 of h$1) {
|
|
5230
|
+
const g2 = Ve(p2);
|
|
5231
|
+
let C;
|
|
5232
|
+
if (g2) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
|
|
5235
|
+
C = _e(r.anchors, p2, n2);
|
|
5236
5236
|
} else
|
|
5237
|
-
|
|
5238
|
-
const
|
|
5239
|
-
for (const
|
|
5240
|
-
const
|
|
5241
|
-
for (const c2 of
|
|
5237
|
+
C = p2;
|
|
5238
|
+
const E2 = /* @__PURE__ */ new Set(), F = [];
|
|
5239
|
+
for (const T2 of this.providers) {
|
|
5240
|
+
const x2 = T2.selectColumns(C);
|
|
5241
|
+
for (const c2 of x2) {
|
|
5242
5242
|
if (u2(c2.spec)) continue;
|
|
5243
|
-
if (
|
|
5244
|
-
throw new Error(`Duplicate column id ${c2.id} in provider ${
|
|
5245
|
-
const
|
|
5246
|
-
m2.has(
|
|
5243
|
+
if (E2.has(c2.id))
|
|
5244
|
+
throw new Error(`Duplicate column id ${c2.id} in provider ${T2.constructor.name}`);
|
|
5245
|
+
const v = Ye(c2.spec);
|
|
5246
|
+
m2.has(v) || (E2.add(c2.id), m2.add(v), F.push(c2));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
|
-
if (
|
|
5250
|
-
const
|
|
5251
|
-
for (const
|
|
5252
|
-
if (!l$1(
|
|
5253
|
-
const
|
|
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 (F.length === 0) continue;
|
|
5250
|
+
const S = Jt(p2), P2 = S.length > 0;
|
|
5251
|
+
for (const T2 of F) {
|
|
5252
|
+
if (!l$1(T2.spec)) continue;
|
|
5253
|
+
const x2 = T2.spec;
|
|
5254
|
+
if (P2) {
|
|
5255
|
+
if (Kt(T2.data))
|
|
5256
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T2.id}`);
|
|
5257
|
+
const c2 = Nt(T2.data);
|
|
5258
5258
|
if (!c2) {
|
|
5259
5259
|
if (o) 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
|
|
5265
|
-
if (
|
|
5266
|
-
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${
|
|
5267
|
-
const $ =
|
|
5268
|
-
if (W >=
|
|
5262
|
+
if (!Fe(c2))
|
|
5263
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T2.id}`);
|
|
5264
|
+
const v = Rt(c2), I2 = S[S.length - 1];
|
|
5265
|
+
if (I2 >= c2.partitionKeyLength)
|
|
5266
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I2}) in column ${x2.name}`);
|
|
5267
|
+
const $ = S.map((_2) => this.findLabels(h(x2.axesSpec[_2]))), K = [], j = (_2, W) => {
|
|
5268
|
+
if (W >= S.length) {
|
|
5269
5269
|
if (K.push([..._2]), K.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
const M =
|
|
5274
|
-
if (M >=
|
|
5275
|
-
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${
|
|
5276
|
-
const q =
|
|
5273
|
+
const M = S[W];
|
|
5274
|
+
if (M >= v.length)
|
|
5275
|
+
throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v.length}) during split key generation for column ${T2.id}`);
|
|
5276
|
+
const q = v[M];
|
|
5277
5277
|
if (!q || q.length === 0) {
|
|
5278
5278
|
K.length = 0;
|
|
5279
5279
|
return;
|
|
5280
5280
|
}
|
|
5281
|
-
for (const
|
|
5282
|
-
_2.push(
|
|
5281
|
+
for (const te of q)
|
|
5282
|
+
_2.push(te), j(_2, W + 1), _2.pop();
|
|
5283
5283
|
};
|
|
5284
5284
|
if (j([], 0), K.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const
|
|
5287
|
-
for (let _2 =
|
|
5288
|
-
|
|
5289
|
-
const tt = { ...
|
|
5286
|
+
const N = [...x2.axesSpec], et = S.map((_2) => _2);
|
|
5287
|
+
for (let _2 = S.length - 1; _2 >= 0; _2--)
|
|
5288
|
+
N.splice(S[_2], 1);
|
|
5289
|
+
const tt = { ...x2, axesSpec: N };
|
|
5290
5290
|
for (const _2 of K) {
|
|
5291
5291
|
const W = _2.map((M, q) => {
|
|
5292
|
-
const
|
|
5293
|
-
return { axisIdx:
|
|
5292
|
+
const te = et[q], nt = h(x2.axesSpec[te]), de = $[q], rt = (de == null ? void 0 : de[M]) ?? String(M);
|
|
5293
|
+
return { axisIdx: te, axisId: nt, value: M, label: rt };
|
|
5294
5294
|
});
|
|
5295
5295
|
f.push({
|
|
5296
5296
|
type: "split",
|
|
5297
|
-
originalColumn:
|
|
5298
|
-
spec:
|
|
5297
|
+
originalColumn: T2,
|
|
5298
|
+
spec: x2,
|
|
5299
5299
|
adjustedSpec: tt,
|
|
5300
5300
|
dataEntries: c2,
|
|
5301
5301
|
axisFilters: W
|
|
@@ -5304,9 +5304,9 @@
|
|
|
5304
5304
|
} else
|
|
5305
5305
|
f.push({
|
|
5306
5306
|
type: "direct",
|
|
5307
|
-
originalColumn:
|
|
5308
|
-
spec:
|
|
5309
|
-
adjustedSpec:
|
|
5307
|
+
originalColumn: T2,
|
|
5308
|
+
spec: x2,
|
|
5309
|
+
adjustedSpec: x2
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
@@ -5315,29 +5315,29 @@
|
|
|
5315
5315
|
f,
|
|
5316
5316
|
(p2) => ({
|
|
5317
5317
|
spec: p2.spec,
|
|
5318
|
-
suffixTrace: p2.type === "split" ?
|
|
5318
|
+
suffixTrace: p2.type === "split" ? jt(p2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
|
-
), y
|
|
5322
|
-
for (const { value: p2, label:
|
|
5323
|
-
const { originalColumn:
|
|
5324
|
-
let
|
|
5325
|
-
r ?
|
|
5326
|
-
let
|
|
5327
|
-
s2 && (
|
|
5328
|
-
...
|
|
5321
|
+
), y = [];
|
|
5322
|
+
for (const { value: p2, label: g2 } of d2) {
|
|
5323
|
+
const { originalColumn: C, spec: E2 } = p2, F = p2.type === "split" ? p2.axisFilters : void 0, S = qt(F);
|
|
5324
|
+
let P2;
|
|
5325
|
+
r ? P2 = r.deriveS(E2, S) : P2 = Bt(C.id, S);
|
|
5326
|
+
let T2 = { ...p2.adjustedSpec };
|
|
5327
|
+
s2 && (T2 = {
|
|
5328
|
+
...T2,
|
|
5329
5329
|
annotations: {
|
|
5330
|
-
...
|
|
5331
|
-
"pl7.app/label":
|
|
5330
|
+
...T2.annotations ?? {},
|
|
5331
|
+
"pl7.app/label": g2
|
|
5332
5332
|
}
|
|
5333
|
-
}), y
|
|
5334
|
-
id:
|
|
5335
|
-
spec:
|
|
5336
|
-
data: () => p2.type === "split" ?
|
|
5337
|
-
label:
|
|
5333
|
+
}), y.push({
|
|
5334
|
+
id: P2,
|
|
5335
|
+
spec: T2,
|
|
5336
|
+
data: () => p2.type === "split" ? Ie(Ut(p2.dataEntries, S)) : p2.originalColumn.data,
|
|
5337
|
+
label: g2
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
5340
|
-
return y
|
|
5340
|
+
return y;
|
|
5341
5341
|
}
|
|
5342
5342
|
getColumns(e, n2) {
|
|
5343
5343
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5403,9 +5403,9 @@
|
|
|
5403
5403
|
return true;
|
|
5404
5404
|
}
|
|
5405
5405
|
function ke(t) {
|
|
5406
|
-
return
|
|
5406
|
+
return Ge$1(t, (e) => e instanceof O ? e.handle : Se$1(e) ? Oe$1(e, (n2) => n2.handle) : e);
|
|
5407
5407
|
}
|
|
5408
|
-
class
|
|
5408
|
+
class $t {
|
|
5409
5409
|
constructor() {
|
|
5410
5410
|
V(this, "ctx", b());
|
|
5411
5411
|
}
|
|
@@ -5416,28 +5416,28 @@
|
|
|
5416
5416
|
return this.ctx.calculateOptions(e);
|
|
5417
5417
|
}
|
|
5418
5418
|
getOptions(e, n2) {
|
|
5419
|
-
const r = typeof e == "function" ? e :
|
|
5419
|
+
const r = typeof e == "function" ? e : Qe$1(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5420
5420
|
let o = {}, s2 = false;
|
|
5421
5421
|
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5422
|
-
ref:
|
|
5422
|
+
ref: tn(a, s2),
|
|
5423
5423
|
label: l2
|
|
5424
5424
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5425
|
-
ref:
|
|
5425
|
+
ref: tn(a, s2),
|
|
5426
5426
|
label: o(l2, a)
|
|
5427
5427
|
}));
|
|
5428
5428
|
}
|
|
5429
5429
|
resolveAnchorCtx(e) {
|
|
5430
|
-
if (e instanceof
|
|
5430
|
+
if (e instanceof Me) return e;
|
|
5431
5431
|
const n2 = {};
|
|
5432
5432
|
for (const [r, i] of Object.entries(e))
|
|
5433
|
-
if (
|
|
5433
|
+
if (nn$1(i)) {
|
|
5434
5434
|
const o = this.getPColumnSpecByRef(i);
|
|
5435
5435
|
if (!o)
|
|
5436
5436
|
return;
|
|
5437
5437
|
n2[r] = o;
|
|
5438
5438
|
} else
|
|
5439
5439
|
n2[r] = i;
|
|
5440
|
-
return new
|
|
5440
|
+
return new Me(n2);
|
|
5441
5441
|
}
|
|
5442
5442
|
/**
|
|
5443
5443
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5530,7 +5530,7 @@
|
|
|
5530
5530
|
ref: n2.ref,
|
|
5531
5531
|
obj: {
|
|
5532
5532
|
...n2.obj,
|
|
5533
|
-
data:
|
|
5533
|
+
data: an(
|
|
5534
5534
|
n2.obj.data,
|
|
5535
5535
|
(r) => new O(r, [n2.ref.blockId, n2.ref.name])
|
|
5536
5536
|
)
|
|
@@ -5559,7 +5559,7 @@
|
|
|
5559
5559
|
)) == null ? void 0 : r.obj;
|
|
5560
5560
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5561
5561
|
if (n2)
|
|
5562
|
-
return
|
|
5562
|
+
return Ge$1(
|
|
5563
5563
|
n2,
|
|
5564
5564
|
(i) => new O(i, [e.blockId, e.name])
|
|
5565
5565
|
);
|
|
@@ -5572,7 +5572,7 @@
|
|
|
5572
5572
|
getPColumnByRef(e) {
|
|
5573
5573
|
const n2 = this.getDataByRef(e);
|
|
5574
5574
|
if (n2)
|
|
5575
|
-
return
|
|
5575
|
+
return We$1(n2);
|
|
5576
5576
|
}
|
|
5577
5577
|
/**
|
|
5578
5578
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5622,7 +5622,7 @@
|
|
|
5622
5622
|
findLabels(e) {
|
|
5623
5623
|
const n2 = this.getData();
|
|
5624
5624
|
for (const r of n2.entries) {
|
|
5625
|
-
if (!
|
|
5625
|
+
if (!ee$1(r.obj)) continue;
|
|
5626
5626
|
const i = r.obj.spec;
|
|
5627
5627
|
if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && he(e.domain, i.axesSpec[0].domain)) {
|
|
5628
5628
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
@@ -5643,13 +5643,13 @@
|
|
|
5643
5643
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5644
5644
|
*/
|
|
5645
5645
|
selectColumns(e) {
|
|
5646
|
-
const n2 = typeof e == "function" ? e :
|
|
5646
|
+
const n2 = typeof e == "function" ? e : Qe$1(e);
|
|
5647
5647
|
return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
|
|
5648
5648
|
const s2 = o;
|
|
5649
5649
|
let a = null;
|
|
5650
5650
|
const l2 = this;
|
|
5651
5651
|
return {
|
|
5652
|
-
id: Be(i),
|
|
5652
|
+
id: Be$1(i),
|
|
5653
5653
|
spec: s2,
|
|
5654
5654
|
get data() {
|
|
5655
5655
|
var u2;
|
|
@@ -5680,7 +5680,7 @@
|
|
|
5680
5680
|
V(this, "_argsCache");
|
|
5681
5681
|
V(this, "_uiStateCache");
|
|
5682
5682
|
V(this, "_activeArgsCache");
|
|
5683
|
-
V(this, "resultPool", new
|
|
5683
|
+
V(this, "resultPool", new $t());
|
|
5684
5684
|
this.ctx = b();
|
|
5685
5685
|
}
|
|
5686
5686
|
get args() {
|
|
@@ -5736,7 +5736,7 @@
|
|
|
5736
5736
|
}
|
|
5737
5737
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5738
5738
|
var i;
|
|
5739
|
-
const n2 = e.some((o) => !(o.data instanceof O) || $
|
|
5739
|
+
const n2 = e.some((o) => !(o.data instanceof O) || Se$1(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5740
5740
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5741
5741
|
}
|
|
5742
5742
|
patchPTableDef(e) {
|
|
@@ -5767,8 +5767,8 @@
|
|
|
5767
5767
|
partitionFilters: e.filters ?? [],
|
|
5768
5768
|
filters: [],
|
|
5769
5769
|
sorting: e.sorting ?? []
|
|
5770
|
-
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(
|
|
5771
|
-
|
|
5770
|
+
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(Xe$1(n2.src)), this.ctx.createPTable(
|
|
5771
|
+
Be(n2, (r) => ke(r))
|
|
5772
5772
|
);
|
|
5773
5773
|
}
|
|
5774
5774
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5788,13 +5788,13 @@
|
|
|
5788
5788
|
this.ctx.logError(e);
|
|
5789
5789
|
}
|
|
5790
5790
|
}
|
|
5791
|
-
const
|
|
5792
|
-
function
|
|
5791
|
+
const Wt = "1.42.8", X = Wt;
|
|
5792
|
+
function Gt(t) {
|
|
5793
5793
|
return t.__renderLambda === true;
|
|
5794
5794
|
}
|
|
5795
5795
|
function me(t) {
|
|
5796
5796
|
if (t !== void 0)
|
|
5797
|
-
return
|
|
5797
|
+
return Gt(t) ? t.handle : t;
|
|
5798
5798
|
}
|
|
5799
5799
|
const w = class w2 {
|
|
5800
5800
|
constructor(e, n2, r, i, o, s2, a, l2, u2) {
|
|
@@ -6028,7 +6028,7 @@
|
|
|
6028
6028
|
Object.entries(this._outputs).map(([r, i]) => [r, me(i)])
|
|
6029
6029
|
)
|
|
6030
6030
|
};
|
|
6031
|
-
return globalThis.platformaApiVersion = e,
|
|
6031
|
+
return globalThis.platformaApiVersion = e, Pt() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
|
|
6032
6032
|
}
|
|
6033
6033
|
};
|
|
6034
6034
|
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
@@ -6053,7 +6053,7 @@
|
|
|
6053
6053
|
pTableParams: Qe()
|
|
6054
6054
|
};
|
|
6055
6055
|
}
|
|
6056
|
-
function
|
|
6056
|
+
function Ht(t) {
|
|
6057
6057
|
return "version" in t || (t = De()), t.version === 2 && (t = {
|
|
6058
6058
|
version: 3,
|
|
6059
6059
|
stateCache: t.stateCache.map((e) => ({
|
|
@@ -6066,7 +6066,7 @@
|
|
|
6066
6066
|
function Se(t) {
|
|
6067
6067
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
6068
6068
|
}
|
|
6069
|
-
function
|
|
6069
|
+
function zt(t) {
|
|
6070
6070
|
return new Q().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
6071
6071
|
name: "pl7.app/label",
|
|
6072
6072
|
axes: [{}]
|
|
@@ -6080,24 +6080,24 @@
|
|
|
6080
6080
|
const i = [];
|
|
6081
6081
|
for (const a of r)
|
|
6082
6082
|
for (const l2 of a.spec.axesSpec) {
|
|
6083
|
-
const u2 =
|
|
6084
|
-
i.some((
|
|
6083
|
+
const u2 = h(l2);
|
|
6084
|
+
i.some((h2) => X$1(h2, u2)) || i.push(u2);
|
|
6085
6085
|
}
|
|
6086
6086
|
for (const a of n2) {
|
|
6087
|
-
const l2 =
|
|
6087
|
+
const l2 = h(a.spec.axesSpec[0]), u2 = i.findIndex((h2) => X$1(h2, l2));
|
|
6088
6088
|
u2 !== -1 && i.splice(u2, 1);
|
|
6089
6089
|
}
|
|
6090
6090
|
const o = (a, l2) => {
|
|
6091
6091
|
let u2 = a.toString();
|
|
6092
6092
|
if (l2)
|
|
6093
|
-
for (const
|
|
6094
|
-
u2 +=
|
|
6093
|
+
for (const h2 in l2)
|
|
6094
|
+
u2 += h2, u2 += l2[h2];
|
|
6095
6095
|
return u2;
|
|
6096
6096
|
}, s2 = [];
|
|
6097
6097
|
for (const a of e) {
|
|
6098
|
-
const l2 = a.spec.axesSpec[0], u2 =
|
|
6099
|
-
if (h !== -1) {
|
|
6100
|
-
const f = i[h], m2 = Object.keys(f.domain ?? {}).length, d2 = Object.keys(l2.domain ?? {}).length;
|
|
6098
|
+
const l2 = a.spec.axesSpec[0], u2 = h(l2), h$1 = i.findIndex((f) => X$1(f, u2));
|
|
6099
|
+
if (h$1 !== -1) {
|
|
6100
|
+
const f = i[h$1], m2 = Object.keys(f.domain ?? {}).length, d2 = Object.keys(l2.domain ?? {}).length;
|
|
6101
6101
|
m2 > d2 ? s2.push({
|
|
6102
6102
|
id: o(a.id, f.domain),
|
|
6103
6103
|
spec: {
|
|
@@ -6105,12 +6105,12 @@
|
|
|
6105
6105
|
axesSpec: [{ ...f, annotations: l2.annotations }]
|
|
6106
6106
|
},
|
|
6107
6107
|
data: a.data
|
|
6108
|
-
}) : s2.push(a), i.splice(h, 1);
|
|
6108
|
+
}) : s2.push(a), i.splice(h$1, 1);
|
|
6109
6109
|
}
|
|
6110
6110
|
}
|
|
6111
6111
|
return s2;
|
|
6112
6112
|
}
|
|
6113
|
-
function
|
|
6113
|
+
function Xt(t) {
|
|
6114
6114
|
const e = (i) => Array.isArray(i), n2 = (i) => i instanceof O, r = (i) => typeof i == "object" && "type" in i;
|
|
6115
6115
|
return t.map((i) => i.data).every((i) => {
|
|
6116
6116
|
if (e(i))
|
|
@@ -6152,77 +6152,77 @@
|
|
|
6152
6152
|
sorting: t.sorting
|
|
6153
6153
|
};
|
|
6154
6154
|
}
|
|
6155
|
-
function
|
|
6155
|
+
function Yt(t) {
|
|
6156
6156
|
var e;
|
|
6157
6157
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
6158
6158
|
}
|
|
6159
|
-
function
|
|
6159
|
+
function Qt(t) {
|
|
6160
6160
|
var e;
|
|
6161
6161
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6162
6162
|
}
|
|
6163
6163
|
function ge(t, e) {
|
|
6164
6164
|
return [...new Map(t.map((n2) => [e(n2), n2])).values()];
|
|
6165
6165
|
}
|
|
6166
|
-
function
|
|
6166
|
+
function Wn(t, e, n2, r) {
|
|
6167
6167
|
if (e.length === 0) return;
|
|
6168
|
-
const i = e.filter((c2) => Pe(c2.spec) || !
|
|
6168
|
+
const i = e.filter((c2) => Pe(c2.spec) || !Yt(c2.spec)), o = Ht(n2), s2 = zt(t.resultPool);
|
|
6169
6169
|
if (!s2) return;
|
|
6170
|
-
const a = Re(i.map(
|
|
6170
|
+
const a = Re(i.map(Ve$1), s2), l2 = [...i, ...a], h$1 = [
|
|
6171
6171
|
...ge(
|
|
6172
|
-
[...l2.flatMap((c2) => c2.spec.axesSpec.map((
|
|
6173
|
-
(c2) =>
|
|
6172
|
+
[...l2.flatMap((c2) => c2.spec.axesSpec.map((v) => h(v)))],
|
|
6173
|
+
(c2) => fn(c2)
|
|
6174
6174
|
).map((c2) => ({ type: "axis", id: c2 })),
|
|
6175
6175
|
...l2.map((c2) => ({ type: "column", id: c2.id }))
|
|
6176
|
-
], f = new Set(h.map((c2) =>
|
|
6177
|
-
const
|
|
6178
|
-
return
|
|
6176
|
+
], f = new Set(h$1.map((c2) => fn(c2))), m2 = (c2) => f.has(fn(c2)), d2 = "full", y = o.pTableParams.partitionFilters.filter((c2) => {
|
|
6177
|
+
const v = m2(c2.column);
|
|
6178
|
+
return v || t.logWarn(`Partition filter ${JSON.stringify(c2)} does not match provided columns, skipping`), v;
|
|
6179
6179
|
}), p2 = ge(
|
|
6180
6180
|
[...[], ...o.pTableParams.filters],
|
|
6181
|
-
(c2) =>
|
|
6181
|
+
(c2) => fn(c2.column)
|
|
6182
6182
|
).filter((c2) => {
|
|
6183
|
-
const
|
|
6184
|
-
return
|
|
6185
|
-
}),
|
|
6183
|
+
const v = m2(c2.column);
|
|
6184
|
+
return v || t.logWarn(`Filter ${JSON.stringify(c2)} does not match provided columns, skipping`), v;
|
|
6185
|
+
}), g2 = ge(
|
|
6186
6186
|
[...[], ...o.pTableParams.sorting],
|
|
6187
|
-
(c2) =>
|
|
6187
|
+
(c2) => fn(c2.column)
|
|
6188
6188
|
).filter((c2) => {
|
|
6189
|
-
const
|
|
6190
|
-
return
|
|
6191
|
-
}),
|
|
6189
|
+
const v = m2(c2.column);
|
|
6190
|
+
return v || t.logWarn(`Sorting ${JSON.stringify(c2)} does not match provided columns, skipping`), v;
|
|
6191
|
+
}), C = Ne({
|
|
6192
6192
|
columns: i,
|
|
6193
6193
|
labelColumns: a,
|
|
6194
6194
|
coreJoinType: d2,
|
|
6195
|
-
partitionFilters: y
|
|
6195
|
+
partitionFilters: y,
|
|
6196
6196
|
filters: p2,
|
|
6197
|
-
sorting:
|
|
6197
|
+
sorting: g2,
|
|
6198
6198
|
coreColumnPredicate: void 0
|
|
6199
|
-
}),
|
|
6199
|
+
}), E2 = t.createPTable(C), F = new Set((() => {
|
|
6200
6200
|
const c2 = o.pTableParams.hiddenColIds;
|
|
6201
|
-
return c2 || i.filter((
|
|
6201
|
+
return c2 || i.filter((v) => Qt(v.spec)).map((v) => v.id);
|
|
6202
6202
|
})());
|
|
6203
|
-
i.filter((c2) => Pe(c2.spec)).forEach((c2) =>
|
|
6204
|
-
const
|
|
6205
|
-
if (!
|
|
6206
|
-
const
|
|
6207
|
-
columns:
|
|
6208
|
-
labelColumns:
|
|
6203
|
+
i.filter((c2) => Pe(c2.spec)).forEach((c2) => F.delete(c2.id)), [...y.map((c2) => c2.column), ...p2.map((c2) => c2.column), ...g2.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => F.delete(c2.id));
|
|
6204
|
+
const S = i.filter((c2) => !F.has(c2.id)), P2 = Re(S.map(Ve$1), s2);
|
|
6205
|
+
if (!Xt([...S, ...P2])) return;
|
|
6206
|
+
const T2 = Ne({
|
|
6207
|
+
columns: S,
|
|
6208
|
+
labelColumns: P2,
|
|
6209
6209
|
coreJoinType: d2,
|
|
6210
|
-
partitionFilters: y
|
|
6210
|
+
partitionFilters: y,
|
|
6211
6211
|
filters: p2,
|
|
6212
|
-
sorting:
|
|
6212
|
+
sorting: g2,
|
|
6213
6213
|
coreColumnPredicate: void 0
|
|
6214
|
-
}),
|
|
6214
|
+
}), x2 = t.createPTable(T2);
|
|
6215
6215
|
return {
|
|
6216
6216
|
sourceId: o.pTableParams.sourceId,
|
|
6217
|
-
fullTableHandle:
|
|
6218
|
-
visibleTableHandle:
|
|
6217
|
+
fullTableHandle: E2,
|
|
6218
|
+
visibleTableHandle: x2
|
|
6219
6219
|
};
|
|
6220
6220
|
}
|
|
6221
6221
|
function Pe(t) {
|
|
6222
6222
|
var e;
|
|
6223
|
-
return ((e = t.annotations) == null ? void 0 : e[
|
|
6223
|
+
return ((e = t.annotations) == null ? void 0 : e[nn]) === "true";
|
|
6224
6224
|
}
|
|
6225
|
-
const
|
|
6225
|
+
const nn = "pl7.app/isLinkerColumn";
|
|
6226
6226
|
const ImportFileHandleSchema = z$1.string().optional().refine(
|
|
6227
6227
|
(_a) => true
|
|
6228
6228
|
);
|
|
@@ -6319,10 +6319,10 @@
|
|
|
6319
6319
|
]
|
|
6320
6320
|
},
|
|
6321
6321
|
data: times(rowCount, (i) => {
|
|
6322
|
-
const
|
|
6322
|
+
const v = i + 1;
|
|
6323
6323
|
return {
|
|
6324
|
-
key: [makePartitionId(rowCount,
|
|
6325
|
-
val:
|
|
6324
|
+
key: [makePartitionId(rowCount, v), v],
|
|
6325
|
+
val: v.toString()
|
|
6326
6326
|
};
|
|
6327
6327
|
})
|
|
6328
6328
|
},
|
|
@@ -6356,10 +6356,10 @@
|
|
|
6356
6356
|
]
|
|
6357
6357
|
},
|
|
6358
6358
|
data: times(rowCount, (i) => {
|
|
6359
|
-
const
|
|
6359
|
+
const v = i + 1;
|
|
6360
6360
|
return {
|
|
6361
|
-
key: [makePartitionId(rowCount,
|
|
6362
|
-
val:
|
|
6361
|
+
key: [makePartitionId(rowCount, v), v],
|
|
6362
|
+
val: v + 0.1
|
|
6363
6363
|
};
|
|
6364
6364
|
})
|
|
6365
6365
|
},
|
|
@@ -6383,10 +6383,10 @@
|
|
|
6383
6383
|
]
|
|
6384
6384
|
},
|
|
6385
6385
|
data: times(rowCount, (i) => {
|
|
6386
|
-
const
|
|
6386
|
+
const v = i + 1;
|
|
6387
6387
|
return {
|
|
6388
|
-
key: [
|
|
6389
|
-
val: 1e5 -
|
|
6388
|
+
key: [v],
|
|
6389
|
+
val: 1e5 - v
|
|
6390
6390
|
};
|
|
6391
6391
|
})
|
|
6392
6392
|
},
|
|
@@ -6419,9 +6419,9 @@
|
|
|
6419
6419
|
]
|
|
6420
6420
|
},
|
|
6421
6421
|
data: times(rowCount, (i) => {
|
|
6422
|
-
const
|
|
6422
|
+
const v = i + 1;
|
|
6423
6423
|
return {
|
|
6424
|
-
key: [
|
|
6424
|
+
key: [v, v],
|
|
6425
6425
|
val: 1
|
|
6426
6426
|
};
|
|
6427
6427
|
})
|
|
@@ -6450,15 +6450,15 @@
|
|
|
6450
6450
|
]
|
|
6451
6451
|
},
|
|
6452
6452
|
data: times(rowCount, (i) => {
|
|
6453
|
-
const
|
|
6453
|
+
const v = i + 1;
|
|
6454
6454
|
return {
|
|
6455
|
-
key: [
|
|
6456
|
-
val:
|
|
6455
|
+
key: [v],
|
|
6456
|
+
val: v.toString().repeat(j)
|
|
6457
6457
|
};
|
|
6458
6458
|
})
|
|
6459
6459
|
});
|
|
6460
6460
|
}
|
|
6461
|
-
return
|
|
6461
|
+
return Wn(
|
|
6462
6462
|
ctx,
|
|
6463
6463
|
columns,
|
|
6464
6464
|
ctx.uiState.dataTableV2.state
|