@milaboratories/milaboratories.ui-examples.model 1.2.17 → 1.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +13 -13
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +100 -99
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.ui-examples.model@1.2.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.2.19 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
|
|
4
4
|
> tsup && vite build && block-tools build-model
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m8.
|
|
15
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m19.
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[32m8.
|
|
18
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m19.
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m8.65 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m19.38 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 128ms
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m8.54 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m19.31 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 128ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
22
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.
|
|
23
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 1095ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.90 KB[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.90 KB[39m
|
|
24
24
|
[36mvite v6.3.5 [32mbuilding for production...[36m[39m
|
|
25
25
|
transforming...
|
|
26
26
|
[32m✓[39m 11 modules transformed.
|
|
27
27
|
rendering chunks...
|
|
28
28
|
computing gzip size...
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m196.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m209.
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m196.29 kB[22m[1m[22m[2m │ gzip: 38.12 kB[22m[2m │ map: 438.90 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m209.87 kB[22m[1m[22m[2m │ gzip: 38.81 kB[22m[2m │ map: 440.51 kB[22m
|
|
31
|
+
[32m✓ built in 548ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.2.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 911f928: Fix PlNumberField min/max constraint
|
|
8
|
+
|
|
9
|
+
## 1.2.18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- @platforma-sdk/model@1.42.1
|
|
14
|
+
|
|
3
15
|
## 1.2.17
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -3968,7 +3968,7 @@
|
|
|
3968
3968
|
function A(e) {
|
|
3969
3969
|
throw new Error("Unexpected object: " + e);
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3971
|
+
function $e$1(e) {
|
|
3972
3972
|
if (!e || typeof e != "object")
|
|
3973
3973
|
return false;
|
|
3974
3974
|
const n2 = e;
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Ve$1(e, n2) {
|
|
3989
3989
|
if (e !== void 0)
|
|
3990
3990
|
switch (e.type) {
|
|
3991
3991
|
case "Json":
|
|
@@ -4030,10 +4030,10 @@
|
|
|
4030
4030
|
return false;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4033
|
+
function Ie(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
4039
|
const n2 = Object.entries(e.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function De$1(e) {
|
|
4065
4065
|
switch (e.type) {
|
|
4066
4066
|
case "Json": {
|
|
4067
4067
|
const n2 = {};
|
|
@@ -4095,7 +4095,7 @@
|
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
4097
|
}
|
|
4098
|
-
function
|
|
4098
|
+
function ze$1(e) {
|
|
4099
4099
|
return {
|
|
4100
4100
|
columnId: e.id,
|
|
4101
4101
|
spec: e.spec
|
|
@@ -4105,10 +4105,10 @@
|
|
|
4105
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
|
|
4108
|
+
function C(e) {
|
|
4109
4109
|
return e.map(y);
|
|
4110
4110
|
}
|
|
4111
|
-
function
|
|
4111
|
+
function He(e) {
|
|
4112
4112
|
return Be(y(e));
|
|
4113
4113
|
}
|
|
4114
4114
|
function ee$1(e, n2) {
|
|
@@ -4121,10 +4121,10 @@
|
|
|
4121
4121
|
function ne$1(e, n2) {
|
|
4122
4122
|
return e.name === n2.name && ee$1(e.domain, n2.domain);
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4125
|
-
return { ...e, src:
|
|
4124
|
+
function We$1(e, n2) {
|
|
4125
|
+
return { ...e, src: b$1(e.src, n2) };
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4127
|
+
function b$1(e, n2) {
|
|
4128
4128
|
switch (e.type) {
|
|
4129
4129
|
case "column":
|
|
4130
4130
|
return {
|
|
@@ -4144,13 +4144,13 @@
|
|
|
4144
4144
|
case "full":
|
|
4145
4145
|
return {
|
|
4146
4146
|
type: e.type,
|
|
4147
|
-
entries: e.entries.map((t) =>
|
|
4147
|
+
entries: e.entries.map((t) => b$1(t, n2))
|
|
4148
4148
|
};
|
|
4149
4149
|
case "outer":
|
|
4150
4150
|
return {
|
|
4151
4151
|
type: "outer",
|
|
4152
|
-
primary:
|
|
4153
|
-
secondary: e.secondary.map((t) =>
|
|
4152
|
+
primary: b$1(e.primary, n2),
|
|
4153
|
+
secondary: e.secondary.map((t) => b$1(t, n2))
|
|
4154
4154
|
};
|
|
4155
4155
|
default:
|
|
4156
4156
|
A(e);
|
|
@@ -4165,7 +4165,7 @@
|
|
|
4165
4165
|
function S(e, n2) {
|
|
4166
4166
|
return JSON.stringify([e, n2]);
|
|
4167
4167
|
}
|
|
4168
|
-
let
|
|
4168
|
+
let Qe$1 = class Qe {
|
|
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
|
|
@@ -4259,7 +4259,7 @@
|
|
|
4259
4259
|
return te(this.derive(n2, t));
|
|
4260
4260
|
}
|
|
4261
4261
|
};
|
|
4262
|
-
function
|
|
4262
|
+
function Ye(e, n2, t) {
|
|
4263
4263
|
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4264
4264
|
if (r.domainAnchor !== void 0) {
|
|
4265
4265
|
const i = e[r.domainAnchor];
|
|
@@ -4324,17 +4324,17 @@
|
|
|
4324
4324
|
function ie(e) {
|
|
4325
4325
|
return l$1(e.spec);
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4327
|
+
function tn(e) {
|
|
4328
4328
|
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4329
4329
|
return e;
|
|
4330
4330
|
}
|
|
4331
|
-
function
|
|
4331
|
+
function rn$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
|
|
4337
|
+
function on(e) {
|
|
4338
4338
|
const n2 = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4339
4339
|
switch (r.type) {
|
|
4340
4340
|
case "column":
|
|
@@ -4423,15 +4423,15 @@
|
|
|
4423
4423
|
}
|
|
4424
4424
|
return true;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function sn(e) {
|
|
4427
4427
|
return Array.isArray(e) ? (n2) => e.some((t) => l$1(n2) && N(n2, t)) : (n2) => l$1(n2) && N(n2, e);
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function an(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 = C(e.axesSpec)), Be(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,10 +4441,10 @@
|
|
|
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 fn(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 ln(e, n2 = true) {
|
|
4448
4448
|
if (n2)
|
|
4449
4449
|
return {
|
|
4450
4450
|
...e,
|
|
@@ -4455,12 +4455,12 @@
|
|
|
4455
4455
|
return r;
|
|
4456
4456
|
}
|
|
4457
4457
|
}
|
|
4458
|
-
function
|
|
4458
|
+
function mn(e, n2) {
|
|
4459
4459
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4460
4460
|
}
|
|
4461
4461
|
const de = 24;
|
|
4462
4462
|
z$1.string().length(de).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4463
|
-
function
|
|
4463
|
+
function gn(e) {
|
|
4464
4464
|
return Be(e);
|
|
4465
4465
|
}
|
|
4466
4466
|
var stringify = { exports: {} };
|
|
@@ -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] = rn$1(s2, (l2) => new O(l2, a));
|
|
4706
4706
|
}
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
@@ -4812,21 +4812,21 @@
|
|
|
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
4813
|
var c2, v2;
|
|
4814
4814
|
const y2 = e(d2);
|
|
4815
|
-
let p2,
|
|
4816
|
-
"spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec,
|
|
4815
|
+
let p2, g, C2;
|
|
4816
|
+
"spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec, g = y2.prefixTrace, C2 = y2.suffixTrace) : p2 = y2;
|
|
4817
4817
|
const E = (c2 = p2.annotations) == null ? void 0 : c2[_t], x2 = (v2 = p2.annotations) == null ? void 0 : v2[Lt], S2 = (x2 ? Vt.safeParse(JSON.parse(x2)).data : void 0) ?? [], P = [
|
|
4818
|
-
...
|
|
4818
|
+
...g ?? [],
|
|
4819
4819
|
...S2,
|
|
4820
|
-
...
|
|
4820
|
+
...C2 ?? []
|
|
4821
4821
|
];
|
|
4822
4822
|
if (E !== void 0) {
|
|
4823
4823
|
const I = { label: E, type: Ot, importance: -2 };
|
|
4824
4824
|
n2.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
|
|
4825
4825
|
}
|
|
4826
|
-
const T = [],
|
|
4826
|
+
const T = [], F = /* @__PURE__ */ new Map();
|
|
4827
4827
|
for (let I = P.length - 1; I >= 0; --I) {
|
|
4828
|
-
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (
|
|
4829
|
-
|
|
4828
|
+
const { type: $ } = P[I], K = P[I].importance ?? 0, j = (F.get($) ?? 0) + 1;
|
|
4829
|
+
F.set($, j);
|
|
4830
4830
|
const N2 = `${$}@${j}`;
|
|
4831
4831
|
o.set(N2, (o.get(N2) ?? 0) + 1), r.set(
|
|
4832
4832
|
N2,
|
|
@@ -4848,19 +4848,19 @@
|
|
|
4848
4848
|
d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
|
|
4849
4849
|
const h = (d2, y2 = false) => {
|
|
4850
4850
|
const p2 = [];
|
|
4851
|
-
for (let
|
|
4852
|
-
const
|
|
4851
|
+
for (let g = 0; g < s2.length; g++) {
|
|
4852
|
+
const C2 = s2[g], E = C2.fullTrace.filter((P) => d2.has(P.fullType) || i && i.has(P.type));
|
|
4853
4853
|
if (E.length === 0)
|
|
4854
4854
|
if (y2)
|
|
4855
4855
|
p2.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
|
-
value:
|
|
4857
|
+
value: C2.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
4860
|
const x2 = E.map((P) => P.label), S2 = n2.separator ?? " / ";
|
|
4861
4861
|
p2.push({
|
|
4862
4862
|
label: x2.join(S2),
|
|
4863
|
-
value:
|
|
4863
|
+
value: C2.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
4866
4866
|
return p2;
|
|
@@ -5072,7 +5072,7 @@
|
|
|
5072
5072
|
function Ut(t) {
|
|
5073
5073
|
if (t !== void 0) {
|
|
5074
5074
|
if (_(t)) return t;
|
|
5075
|
-
if (
|
|
5075
|
+
if ($e$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
|
}
|
|
@@ -5148,14 +5148,14 @@
|
|
|
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 : sn(e);
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
5155
|
function qt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
|
-
type: `split:${
|
|
5158
|
+
type: `split:${He(e.axisId)}`,
|
|
5159
5159
|
label: e.label,
|
|
5160
5160
|
importance: 1e6
|
|
5161
5161
|
// High importance for split filters in labels
|
|
@@ -5215,34 +5215,34 @@
|
|
|
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((g) => {
|
|
5219
|
+
if (Ve(g)) {
|
|
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 sn(Ye(r.anchors, g, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return
|
|
5224
|
+
return sn(g);
|
|
5225
5225
|
});
|
|
5226
|
-
u2 = (
|
|
5226
|
+
u2 = (g) => p2.some((C2) => C2(g));
|
|
5227
5227
|
}
|
|
5228
5228
|
const h = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
|
|
5229
5229
|
for (const p2 of h) {
|
|
5230
|
-
const
|
|
5231
|
-
let
|
|
5232
|
-
if (
|
|
5230
|
+
const g = Ve(p2);
|
|
5231
|
+
let C2;
|
|
5232
|
+
if (g) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
|
|
5235
|
+
C2 = Ye(r.anchors, p2, n2);
|
|
5236
5236
|
} else
|
|
5237
|
-
|
|
5237
|
+
C2 = p2;
|
|
5238
5238
|
const E = /* @__PURE__ */ new Set(), x2 = [];
|
|
5239
5239
|
for (const T of this.providers) {
|
|
5240
|
-
const
|
|
5241
|
-
for (const c2 of
|
|
5240
|
+
const F = T.selectColumns(C2);
|
|
5241
|
+
for (const c2 of F) {
|
|
5242
5242
|
if (u2(c2.spec)) continue;
|
|
5243
5243
|
if (E.has(c2.id))
|
|
5244
5244
|
throw new Error(`Duplicate column id ${c2.id} in provider ${T.constructor.name}`);
|
|
5245
|
-
const v2 =
|
|
5245
|
+
const v2 = an(c2.spec);
|
|
5246
5246
|
m2.has(v2) || (E.add(c2.id), m2.add(v2), x2.push(c2));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
@@ -5250,7 +5250,7 @@
|
|
|
5250
5250
|
const S2 = $t(p2), P = S2.length > 0;
|
|
5251
5251
|
for (const T of x2) {
|
|
5252
5252
|
if (!l$1(T.spec)) continue;
|
|
5253
|
-
const
|
|
5253
|
+
const F = T.spec;
|
|
5254
5254
|
if (P) {
|
|
5255
5255
|
if (Mt(T.data))
|
|
5256
5256
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
|
|
@@ -5259,12 +5259,12 @@
|
|
|
5259
5259
|
if (o) continue;
|
|
5260
5260
|
return;
|
|
5261
5261
|
}
|
|
5262
|
-
if (!
|
|
5262
|
+
if (!Ie(c2))
|
|
5263
5263
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T.id}`);
|
|
5264
5264
|
const v2 = Nt(c2), I = S2[S2.length - 1];
|
|
5265
5265
|
if (I >= c2.partitionKeyLength)
|
|
5266
|
-
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${
|
|
5267
|
-
const $ = S2.map((_2) => this.findLabels(y(
|
|
5266
|
+
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I}) in column ${F.name}`);
|
|
5267
|
+
const $ = S2.map((_2) => this.findLabels(y(F.axesSpec[_2]))), K = [], j = (_2, W) => {
|
|
5268
5268
|
if (W >= S2.length) {
|
|
5269
5269
|
if (K.push([..._2]), K.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
@@ -5283,19 +5283,19 @@
|
|
|
5283
5283
|
};
|
|
5284
5284
|
if (j([], 0), K.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const N2 = [...
|
|
5286
|
+
const N2 = [...F.axesSpec], et = S2.map((_2) => _2);
|
|
5287
5287
|
for (let _2 = S2.length - 1; _2 >= 0; _2--)
|
|
5288
5288
|
N2.splice(S2[_2], 1);
|
|
5289
|
-
const tt = { ...
|
|
5289
|
+
const tt = { ...F, axesSpec: N2 };
|
|
5290
5290
|
for (const _2 of K) {
|
|
5291
5291
|
const W = _2.map((M, q) => {
|
|
5292
|
-
const te2 = et[q], nt = y(
|
|
5292
|
+
const te2 = et[q], nt = y(F.axesSpec[te2]), de2 = $[q], rt = (de2 == null ? void 0 : de2[M]) ?? String(M);
|
|
5293
5293
|
return { axisIdx: te2, axisId: nt, value: M, label: rt };
|
|
5294
5294
|
});
|
|
5295
5295
|
f.push({
|
|
5296
5296
|
type: "split",
|
|
5297
5297
|
originalColumn: T,
|
|
5298
|
-
spec:
|
|
5298
|
+
spec: F,
|
|
5299
5299
|
adjustedSpec: tt,
|
|
5300
5300
|
dataEntries: c2,
|
|
5301
5301
|
axisFilters: W
|
|
@@ -5305,8 +5305,8 @@
|
|
|
5305
5305
|
f.push({
|
|
5306
5306
|
type: "direct",
|
|
5307
5307
|
originalColumn: T,
|
|
5308
|
-
spec:
|
|
5309
|
-
adjustedSpec:
|
|
5308
|
+
spec: F,
|
|
5309
|
+
adjustedSpec: F
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
@@ -5319,22 +5319,22 @@
|
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
5321
|
), y$1 = [];
|
|
5322
|
-
for (const { value: p2, label:
|
|
5323
|
-
const { originalColumn:
|
|
5322
|
+
for (const { value: p2, label: g } of d2) {
|
|
5323
|
+
const { originalColumn: C2, spec: E } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, S2 = Bt(x2);
|
|
5324
5324
|
let P;
|
|
5325
|
-
r ? P = r.deriveS(E, S2) : P = Jt(
|
|
5325
|
+
r ? P = r.deriveS(E, S2) : P = Jt(C2.id, S2);
|
|
5326
5326
|
let T = { ...p2.adjustedSpec };
|
|
5327
5327
|
s2 && (T = {
|
|
5328
5328
|
...T,
|
|
5329
5329
|
annotations: {
|
|
5330
5330
|
...T.annotations ?? {},
|
|
5331
|
-
"pl7.app/label":
|
|
5331
|
+
"pl7.app/label": g
|
|
5332
5332
|
}
|
|
5333
5333
|
}), y$1.push({
|
|
5334
5334
|
id: P,
|
|
5335
5335
|
spec: T,
|
|
5336
|
-
data: () => p2.type === "split" ?
|
|
5337
|
-
label:
|
|
5336
|
+
data: () => p2.type === "split" ? De$1(Kt(p2.dataEntries, S2)) : p2.originalColumn.data,
|
|
5337
|
+
label: g
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
5340
5340
|
return y$1;
|
|
@@ -5403,7 +5403,7 @@
|
|
|
5403
5403
|
return true;
|
|
5404
5404
|
}
|
|
5405
5405
|
function ke(t) {
|
|
5406
|
-
return
|
|
5406
|
+
return rn$1(t, (e) => e instanceof O ? e.handle : $e$1(e) ? Ve$1(e, (n2) => n2.handle) : e);
|
|
5407
5407
|
}
|
|
5408
5408
|
class Wt {
|
|
5409
5409
|
constructor() {
|
|
@@ -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 : sn(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: ln(a, s2),
|
|
5423
5423
|
label: l2
|
|
5424
5424
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5425
|
-
ref:
|
|
5425
|
+
ref: ln(a, s2),
|
|
5426
5426
|
label: o(l2, a)
|
|
5427
5427
|
}));
|
|
5428
5428
|
}
|
|
5429
5429
|
resolveAnchorCtx(e) {
|
|
5430
|
-
if (e instanceof
|
|
5430
|
+
if (e instanceof Qe$1) return e;
|
|
5431
5431
|
const n2 = {};
|
|
5432
5432
|
for (const [r, i] of Object.entries(e))
|
|
5433
|
-
if (
|
|
5433
|
+
if (fn(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 Qe$1(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: mn(
|
|
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 rn$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 tn(n2);
|
|
5576
5576
|
}
|
|
5577
5577
|
/**
|
|
5578
5578
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5643,7 +5643,7 @@
|
|
|
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 : sn(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;
|
|
@@ -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) || $e$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(on(n2.src)), this.ctx.createPTable(
|
|
5771
|
+
We$1(n2, (r) => ke(r))
|
|
5772
5772
|
);
|
|
5773
5773
|
}
|
|
5774
5774
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5788,7 +5788,7 @@
|
|
|
5788
5788
|
this.ctx.logError(e);
|
|
5789
5789
|
}
|
|
5790
5790
|
}
|
|
5791
|
-
const Gt = "1.42.
|
|
5791
|
+
const Gt = "1.42.1", X = Gt;
|
|
5792
5792
|
function Ht(t) {
|
|
5793
5793
|
return t.__renderLambda === true;
|
|
5794
5794
|
}
|
|
@@ -6167,41 +6167,41 @@
|
|
|
6167
6167
|
if (e.length === 0) return;
|
|
6168
6168
|
const i = e.filter((c2) => Pe(c2.spec) || !Qt(c2.spec)), o = zt(n2), s2 = Xt(t.resultPool);
|
|
6169
6169
|
if (!s2) return;
|
|
6170
|
-
const a = Re(i.map(
|
|
6170
|
+
const a = Re(i.map(ze$1), s2), l2 = [...i, ...a], h = [
|
|
6171
6171
|
...ge(
|
|
6172
6172
|
[...l2.flatMap((c2) => c2.spec.axesSpec.map((v2) => y(v2)))],
|
|
6173
|
-
(c2) =>
|
|
6173
|
+
(c2) => gn(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) =>
|
|
6176
|
+
], f = new Set(h.map((c2) => gn(c2))), m2 = (c2) => f.has(gn(c2)), d2 = "full", y$1 = o.pTableParams.partitionFilters.filter((c2) => {
|
|
6177
6177
|
const v2 = m2(c2.column);
|
|
6178
6178
|
return v2 || t.logWarn(`Partition filter ${JSON.stringify(c2)} does not match provided columns, skipping`), v2;
|
|
6179
6179
|
}), p2 = ge(
|
|
6180
6180
|
[...[], ...o.pTableParams.filters],
|
|
6181
|
-
(c2) =>
|
|
6181
|
+
(c2) => gn(c2.column)
|
|
6182
6182
|
).filter((c2) => {
|
|
6183
6183
|
const v2 = m2(c2.column);
|
|
6184
6184
|
return v2 || t.logWarn(`Filter ${JSON.stringify(c2)} does not match provided columns, skipping`), v2;
|
|
6185
|
-
}),
|
|
6185
|
+
}), g = ge(
|
|
6186
6186
|
[...[], ...o.pTableParams.sorting],
|
|
6187
|
-
(c2) =>
|
|
6187
|
+
(c2) => gn(c2.column)
|
|
6188
6188
|
).filter((c2) => {
|
|
6189
6189
|
const v2 = m2(c2.column);
|
|
6190
6190
|
return v2 || t.logWarn(`Sorting ${JSON.stringify(c2)} does not match provided columns, skipping`), v2;
|
|
6191
|
-
}),
|
|
6191
|
+
}), C2 = Ne({
|
|
6192
6192
|
columns: i,
|
|
6193
6193
|
labelColumns: a,
|
|
6194
6194
|
coreJoinType: d2,
|
|
6195
6195
|
partitionFilters: y$1,
|
|
6196
6196
|
filters: p2,
|
|
6197
|
-
sorting:
|
|
6197
|
+
sorting: g,
|
|
6198
6198
|
coreColumnPredicate: void 0
|
|
6199
|
-
}), E = t.createPTable(
|
|
6199
|
+
}), E = t.createPTable(C2), x2 = new Set((() => {
|
|
6200
6200
|
const c2 = o.pTableParams.hiddenColIds;
|
|
6201
6201
|
return c2 || i.filter((v2) => Zt(v2.spec)).map((v2) => v2.id);
|
|
6202
6202
|
})());
|
|
6203
|
-
i.filter((c2) => Pe(c2.spec)).forEach((c2) => x2.delete(c2.id)), [...y$1.map((c2) => c2.column), ...p2.map((c2) => c2.column), ...
|
|
6204
|
-
const S2 = i.filter((c2) => !x2.has(c2.id)), P = Re(S2.map(
|
|
6203
|
+
i.filter((c2) => Pe(c2.spec)).forEach((c2) => x2.delete(c2.id)), [...y$1.map((c2) => c2.column), ...p2.map((c2) => c2.column), ...g.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => x2.delete(c2.id));
|
|
6204
|
+
const S2 = i.filter((c2) => !x2.has(c2.id)), P = Re(S2.map(ze$1), s2);
|
|
6205
6205
|
if (!Yt([...S2, ...P])) return;
|
|
6206
6206
|
const T = Ne({
|
|
6207
6207
|
columns: S2,
|
|
@@ -6209,13 +6209,13 @@
|
|
|
6209
6209
|
coreJoinType: d2,
|
|
6210
6210
|
partitionFilters: y$1,
|
|
6211
6211
|
filters: p2,
|
|
6212
|
-
sorting:
|
|
6212
|
+
sorting: g,
|
|
6213
6213
|
coreColumnPredicate: void 0
|
|
6214
|
-
}),
|
|
6214
|
+
}), F = t.createPTable(T);
|
|
6215
6215
|
return {
|
|
6216
6216
|
sourceId: o.pTableParams.sourceId,
|
|
6217
6217
|
fullTableHandle: E,
|
|
6218
|
-
visibleTableHandle:
|
|
6218
|
+
visibleTableHandle: F
|
|
6219
6219
|
};
|
|
6220
6220
|
}
|
|
6221
6221
|
function Pe(t) {
|
|
@@ -6494,6 +6494,7 @@
|
|
|
6494
6494
|
{ type: "link", href: "/pl-ag-data-table-v2", label: "PlAgDataTableV2" },
|
|
6495
6495
|
{ type: "link", href: "/pl-splash-page", label: "PlSplashPage" },
|
|
6496
6496
|
{ type: "link", href: "/pl-file-input-page", label: "PlFileInputPage" },
|
|
6497
|
+
{ type: "link", href: "/pl-number-field-page", label: "PlNumberFieldPage" },
|
|
6497
6498
|
{ type: "link", href: "/pl-error-boundary-page", label: "PlErrorBoundaryPage" },
|
|
6498
6499
|
{ type: "link", href: "/pl-element-list-page", label: "PlElementList" },
|
|
6499
6500
|
{ type: "link", href: "/errors", label: "Errors" },
|