@milaboratories/milaboratories.ui-examples.model 1.1.40 → 1.1.42
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 +9 -9
- package/CHANGELOG.md +13 -0
- package/dist/bundle.js +102 -96
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/opt/actions-runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.ui-examples.model@1.1.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.1.42 build /opt/actions-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,14 +11,14 @@
|
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[32m4.74 KB[39m
|
|
15
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m11.23 KB[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in 90ms
|
|
17
14
|
[32mCJS[39m [1mdist/index.cjs [22m[32m4.88 KB[39m
|
|
18
15
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m11.28 KB[39m
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 157ms
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m4.74 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m11.23 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 158ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 1770ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.40 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.40 KB[39m
|
|
24
24
|
[36mvite v5.4.11 [32mbuilding for production...[36m[39m
|
|
@@ -26,6 +26,6 @@ transforming...
|
|
|
26
26
|
[32m✓[39m 9 modules transformed.
|
|
27
27
|
rendering chunks...
|
|
28
28
|
computing gzip size...
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m194.
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m182.19 kB[22m[1m[22m[2m │ gzip: 35.25 kB[22m[2m │ map: 388.10 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m194.75 kB[22m[1m[22m[2m │ gzip: 35.87 kB[22m[2m │ map: 389.61 kB[22m
|
|
31
|
+
[32m✓ built in 813ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.1.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @platforma-sdk/model@1.29.2
|
|
8
|
+
|
|
9
|
+
## 1.1.41
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [fed27f0]
|
|
14
|
+
- @platforma-sdk/model@1.29.0
|
|
15
|
+
|
|
3
16
|
## 1.1.40
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -3949,8 +3949,8 @@
|
|
|
3949
3949
|
ZodError
|
|
3950
3950
|
});
|
|
3951
3951
|
var $ = Object.defineProperty;
|
|
3952
|
-
var
|
|
3953
|
-
var
|
|
3952
|
+
var D = (n2, t, e) => t in n2 ? $(n2, t, { enumerable: true, configurable: true, writable: true, value: e }) : n2[t] = e;
|
|
3953
|
+
var m$2 = (n2, t, e) => D(n2, typeof t != "symbol" ? t + "" : t, e);
|
|
3954
3954
|
function w(n2) {
|
|
3955
3955
|
throw new Error("Unexpected object: " + n2);
|
|
3956
3956
|
}
|
|
@@ -4081,12 +4081,12 @@
|
|
|
4081
4081
|
}
|
|
4082
4082
|
}
|
|
4083
4083
|
}
|
|
4084
|
-
function
|
|
4084
|
+
function p$1(n2) {
|
|
4085
4085
|
const { type: t, name: e, domain: r } = n2;
|
|
4086
4086
|
return { type: t, name: e, ...r && { domain: r } };
|
|
4087
4087
|
}
|
|
4088
4088
|
function En(n2) {
|
|
4089
|
-
return Pe(
|
|
4089
|
+
return Pe(p$1(n2));
|
|
4090
4090
|
}
|
|
4091
4091
|
function X$1(n2, t) {
|
|
4092
4092
|
if (n2 === void 0) return t === void 0;
|
|
@@ -4135,7 +4135,7 @@
|
|
|
4135
4135
|
return Pe(n2);
|
|
4136
4136
|
}
|
|
4137
4137
|
function A(n2) {
|
|
4138
|
-
return Pe(
|
|
4138
|
+
return Pe(p$1(n2));
|
|
4139
4139
|
}
|
|
4140
4140
|
function x(n2, t) {
|
|
4141
4141
|
return JSON.stringify([n2, t]);
|
|
@@ -4146,23 +4146,23 @@
|
|
|
4146
4146
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
4147
4147
|
*/
|
|
4148
4148
|
constructor(t) {
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4149
|
+
m$2(this, "domains", /* @__PURE__ */ new Map());
|
|
4150
|
+
m$2(this, "axes", /* @__PURE__ */ new Map());
|
|
4151
|
+
m$2(this, "domainPacks", []);
|
|
4152
|
+
m$2(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
4153
4153
|
this.anchors = t;
|
|
4154
4154
|
const e = Object.entries(t);
|
|
4155
4155
|
e.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4156
4156
|
for (const [r, o] of e) {
|
|
4157
|
-
for (let
|
|
4158
|
-
const a = o.axesSpec[
|
|
4159
|
-
this.axes.set(
|
|
4157
|
+
for (let s2 = 0; s2 < o.axesSpec.length; s2++) {
|
|
4158
|
+
const a = o.axesSpec[s2], i = A(a);
|
|
4159
|
+
this.axes.set(i, { anchor: r, idx: s2 });
|
|
4160
4160
|
}
|
|
4161
4161
|
if (o.domain !== void 0) {
|
|
4162
|
-
const
|
|
4163
|
-
|
|
4164
|
-
for (const [a,
|
|
4165
|
-
const u2 = x(a,
|
|
4162
|
+
const s2 = Object.entries(o.domain);
|
|
4163
|
+
s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
|
|
4164
|
+
for (const [a, i] of s2) {
|
|
4165
|
+
const u2 = x(a, i);
|
|
4166
4166
|
this.domains.set(u2, r);
|
|
4167
4167
|
}
|
|
4168
4168
|
}
|
|
@@ -4180,48 +4180,48 @@
|
|
|
4180
4180
|
if (t.domain !== void 0)
|
|
4181
4181
|
n:
|
|
4182
4182
|
for (const a of this.domainPacks) {
|
|
4183
|
-
const
|
|
4183
|
+
const i = [];
|
|
4184
4184
|
for (const c2 of a) {
|
|
4185
4185
|
const d = t.domain[c2];
|
|
4186
4186
|
if (d !== void 0)
|
|
4187
|
-
|
|
4187
|
+
i.push([c2, d]);
|
|
4188
4188
|
else
|
|
4189
4189
|
break n;
|
|
4190
4190
|
}
|
|
4191
|
-
const u2 = this.domainPackToAnchor.get(JSON.stringify(
|
|
4191
|
+
const u2 = this.domainPackToAnchor.get(JSON.stringify(i));
|
|
4192
4192
|
if (u2 !== void 0) {
|
|
4193
4193
|
r.domainAnchor = u2, o = new Set(a);
|
|
4194
4194
|
break;
|
|
4195
4195
|
}
|
|
4196
4196
|
}
|
|
4197
|
-
for (const [a,
|
|
4197
|
+
for (const [a, i] of Object.entries(t.domain ?? {})) {
|
|
4198
4198
|
if (o !== void 0 && o.has(a))
|
|
4199
4199
|
continue;
|
|
4200
|
-
const u2 = x(a,
|
|
4201
|
-
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } :
|
|
4200
|
+
const u2 = x(a, i), c2 = this.domains.get(u2);
|
|
4201
|
+
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
|
|
4202
4202
|
}
|
|
4203
4203
|
if (r.axes = t.axesSpec.map((a) => {
|
|
4204
|
-
const
|
|
4205
|
-
return
|
|
4204
|
+
const i = A(a), u2 = this.axes.get(i);
|
|
4205
|
+
return u2 === void 0 ? p$1(a) : u2;
|
|
4206
4206
|
}), !e || e.length === 0)
|
|
4207
4207
|
return r;
|
|
4208
|
-
const
|
|
4208
|
+
const s2 = [];
|
|
4209
4209
|
for (const a of e) {
|
|
4210
|
-
const [
|
|
4211
|
-
if (typeof
|
|
4212
|
-
if (
|
|
4213
|
-
throw new Error(`Axis index ${
|
|
4214
|
-
|
|
4210
|
+
const [i, u2] = a;
|
|
4211
|
+
if (typeof i == "number") {
|
|
4212
|
+
if (i < 0 || i >= t.axesSpec.length)
|
|
4213
|
+
throw new Error(`Axis index ${i} is out of bounds (0-${t.axesSpec.length - 1})`);
|
|
4214
|
+
s2.push([i, u2]);
|
|
4215
4215
|
} else {
|
|
4216
|
-
const c2 = t.axesSpec.findIndex((d) => d.name ===
|
|
4216
|
+
const c2 = t.axesSpec.findIndex((d) => d.name === i);
|
|
4217
4217
|
if (c2 === -1)
|
|
4218
|
-
throw new Error(`Axis with name "${
|
|
4219
|
-
|
|
4218
|
+
throw new Error(`Axis with name "${i}" not found in the column specification`);
|
|
4219
|
+
s2.push([c2, u2]);
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
|
-
return
|
|
4222
|
+
return s2.sort((a, i) => a[0] - i[0]), {
|
|
4223
4223
|
source: r,
|
|
4224
|
-
axisFilters:
|
|
4224
|
+
axisFilters: s2
|
|
4225
4225
|
};
|
|
4226
4226
|
}
|
|
4227
4227
|
/**
|
|
@@ -4234,31 +4234,34 @@
|
|
|
4234
4234
|
return G(this.derive(t, e));
|
|
4235
4235
|
}
|
|
4236
4236
|
}
|
|
4237
|
-
function $n(n2, t) {
|
|
4238
|
-
const
|
|
4239
|
-
if (
|
|
4240
|
-
const
|
|
4241
|
-
if (!
|
|
4242
|
-
throw new Error(`Anchor "${
|
|
4243
|
-
const
|
|
4244
|
-
|
|
4245
|
-
}
|
|
4246
|
-
if (
|
|
4247
|
-
const
|
|
4248
|
-
for (const [
|
|
4237
|
+
function $n(n2, t, e) {
|
|
4238
|
+
const r = { ...t }, o = (e == null ? void 0 : e.ignoreMissingDomains) ?? false;
|
|
4239
|
+
if (r.domainAnchor !== void 0) {
|
|
4240
|
+
const s2 = n2[r.domainAnchor];
|
|
4241
|
+
if (!s2)
|
|
4242
|
+
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
4243
|
+
const a = s2.domain || {};
|
|
4244
|
+
r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
|
|
4245
|
+
}
|
|
4246
|
+
if (r.domain) {
|
|
4247
|
+
const s2 = {};
|
|
4248
|
+
for (const [a, i] of Object.entries(r.domain))
|
|
4249
4249
|
if (typeof i == "string")
|
|
4250
|
-
|
|
4250
|
+
s2[a] = i;
|
|
4251
4251
|
else {
|
|
4252
|
-
const
|
|
4253
|
-
if (!
|
|
4254
|
-
throw new Error(`Anchor "${i.anchor}" not found for domain key "${
|
|
4255
|
-
if (!
|
|
4256
|
-
|
|
4257
|
-
|
|
4252
|
+
const u2 = n2[i.anchor];
|
|
4253
|
+
if (!u2)
|
|
4254
|
+
throw new Error(`Anchor "${i.anchor}" not found for domain key "${a}"`);
|
|
4255
|
+
if (!u2.domain || u2.domain[a] === void 0) {
|
|
4256
|
+
if (!o)
|
|
4257
|
+
throw new Error(`Domain key "${a}" not found in anchor "${i.anchor}"`);
|
|
4258
|
+
continue;
|
|
4259
|
+
}
|
|
4260
|
+
s2[a] = u2.domain[a];
|
|
4258
4261
|
}
|
|
4259
|
-
|
|
4262
|
+
r.domain = s2;
|
|
4260
4263
|
}
|
|
4261
|
-
return
|
|
4264
|
+
return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
|
|
4262
4265
|
}
|
|
4263
4266
|
function Q(n2, t) {
|
|
4264
4267
|
if (!Y$1(t))
|
|
@@ -4271,14 +4274,14 @@
|
|
|
4271
4274
|
throw new Error(`Axis index ${t.idx} out of bounds for anchor "${e}"`);
|
|
4272
4275
|
return r.axesSpec[t.idx];
|
|
4273
4276
|
} else if ("name" in t) {
|
|
4274
|
-
const o = r.axesSpec.filter((
|
|
4277
|
+
const o = r.axesSpec.filter((s2) => s2.name === t.name);
|
|
4275
4278
|
if (o.length > 1)
|
|
4276
4279
|
throw new Error(`Multiple axes with name "${t.name}" found in anchor "${e}"`);
|
|
4277
4280
|
if (o.length === 0)
|
|
4278
4281
|
throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);
|
|
4279
4282
|
return o[0];
|
|
4280
4283
|
} else if ("id" in t) {
|
|
4281
|
-
const o = r.axesSpec.filter((
|
|
4284
|
+
const o = r.axesSpec.filter((s2) => z(t.id, p$1(s2)));
|
|
4282
4285
|
if (o.length > 1)
|
|
4283
4286
|
throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);
|
|
4284
4287
|
if (o.length === 0)
|
|
@@ -4364,7 +4367,7 @@
|
|
|
4364
4367
|
return false;
|
|
4365
4368
|
}
|
|
4366
4369
|
if (t.axes !== void 0) {
|
|
4367
|
-
const e = n2.axesSpec.map(
|
|
4370
|
+
const e = n2.axesSpec.map(p$1);
|
|
4368
4371
|
if (t.partialAxesMatch) {
|
|
4369
4372
|
for (const r of t.axes)
|
|
4370
4373
|
if (!e.some((o) => k(r, o)))
|
|
@@ -4386,8 +4389,8 @@
|
|
|
4386
4389
|
if (t.annotationPatterns !== void 0) {
|
|
4387
4390
|
const e = n2.annotations || {};
|
|
4388
4391
|
for (const [r, o] of Object.entries(t.annotationPatterns)) {
|
|
4389
|
-
const
|
|
4390
|
-
if (
|
|
4392
|
+
const s2 = e[r];
|
|
4393
|
+
if (s2 === void 0 || !new RegExp(o).test(s2))
|
|
4391
4394
|
return false;
|
|
4392
4395
|
}
|
|
4393
4396
|
}
|
|
@@ -4753,12 +4756,12 @@
|
|
|
4753
4756
|
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((p2) => {
|
|
4754
4757
|
var q, F;
|
|
4755
4758
|
const c2 = e(p2);
|
|
4756
|
-
let h, A2,
|
|
4757
|
-
"spec" in c2 && typeof c2.spec == "object" ? (h = c2.spec, A2 = c2.prefixTrace,
|
|
4759
|
+
let h, A2, y;
|
|
4760
|
+
"spec" in c2 && typeof c2.spec == "object" ? (h = c2.spec, A2 = c2.prefixTrace, y = c2.suffixTrace) : h = c2;
|
|
4758
4761
|
const v = (q = h.annotations) == null ? void 0 : q[nt], g = (F = h.annotations) == null ? void 0 : F[rt], P = (g ? st.safeParse(JSON.parse(g)).data : void 0) ?? [], b = [
|
|
4759
4762
|
...A2 ?? [],
|
|
4760
4763
|
...P,
|
|
4761
|
-
...
|
|
4764
|
+
...y ?? []
|
|
4762
4765
|
];
|
|
4763
4766
|
if (v) {
|
|
4764
4767
|
const I = { label: v, type: at, importance: -2 };
|
|
@@ -4790,10 +4793,10 @@
|
|
|
4790
4793
|
const u2 = (p2) => {
|
|
4791
4794
|
const c2 = [];
|
|
4792
4795
|
for (let h = 0; h < s2.length; h++) {
|
|
4793
|
-
const A2 = s2[h],
|
|
4794
|
-
if (
|
|
4796
|
+
const A2 = s2[h], y = A2.fullTrace.filter((P) => p2.has(P.fullType));
|
|
4797
|
+
if (y.length === 0)
|
|
4795
4798
|
return;
|
|
4796
|
-
const v =
|
|
4799
|
+
const v = y.map((P) => P.label), g = n2.separator ?? " / ";
|
|
4797
4800
|
c2.push({
|
|
4798
4801
|
label: v.join(g),
|
|
4799
4802
|
value: A2.value
|
|
@@ -5153,7 +5156,7 @@
|
|
|
5153
5156
|
if (p2) {
|
|
5154
5157
|
if (!r)
|
|
5155
5158
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5156
|
-
c2 = $n(r.anchors, f$1);
|
|
5159
|
+
c2 = $n(r.anchors, f$1, n2);
|
|
5157
5160
|
} else
|
|
5158
5161
|
c2 = f$1;
|
|
5159
5162
|
const h = /* @__PURE__ */ new Set(), A2 = [];
|
|
@@ -5165,7 +5168,7 @@
|
|
|
5165
5168
|
}
|
|
5166
5169
|
}
|
|
5167
5170
|
if (A2.length === 0) continue;
|
|
5168
|
-
const y
|
|
5171
|
+
const y = vt(f$1), v = y.length > 0;
|
|
5169
5172
|
for (const g of A2) {
|
|
5170
5173
|
if (!f(g.spec)) continue;
|
|
5171
5174
|
const P = g.spec;
|
|
@@ -5177,19 +5180,19 @@
|
|
|
5177
5180
|
}
|
|
5178
5181
|
if (!yn(b))
|
|
5179
5182
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${b.type} for column ${g.id}`);
|
|
5180
|
-
const k2 = ct(b), $2 = y
|
|
5183
|
+
const k2 = ct(b), $2 = y[y.length - 1];
|
|
5181
5184
|
if ($2 >= b.partitionKeyLength)
|
|
5182
5185
|
throw new Error(`Not enough partition keys (${b.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${P.name}`);
|
|
5183
|
-
const q = y
|
|
5184
|
-
if (N2 >= y
|
|
5186
|
+
const q = y.map((w2) => this.findLabels(p$1(P.axesSpec[w2]))), F = [], I = (w2, N2) => {
|
|
5187
|
+
if (N2 >= y.length) {
|
|
5185
5188
|
if (F.push([...w2]), F.length > 1e4)
|
|
5186
5189
|
throw new Error("Too many key combinations, aborting.");
|
|
5187
5190
|
return;
|
|
5188
5191
|
}
|
|
5189
|
-
const
|
|
5190
|
-
if (
|
|
5191
|
-
throw new Error(`Axis index ${
|
|
5192
|
-
const O = k2[
|
|
5192
|
+
const D2 = y[N2];
|
|
5193
|
+
if (D2 >= k2.length)
|
|
5194
|
+
throw new Error(`Axis index ${D2} out of bounds for unique keys array (length ${k2.length}) during split key generation for column ${g.id}`);
|
|
5195
|
+
const O = k2[D2];
|
|
5193
5196
|
if (!O || O.length === 0) {
|
|
5194
5197
|
F.length = 0;
|
|
5195
5198
|
return;
|
|
@@ -5199,14 +5202,14 @@
|
|
|
5199
5202
|
};
|
|
5200
5203
|
if (I([], 0), F.length === 0)
|
|
5201
5204
|
continue;
|
|
5202
|
-
const R = [...P.axesSpec], se = y
|
|
5203
|
-
for (let w2 = y
|
|
5204
|
-
R.splice(y
|
|
5205
|
+
const R = [...P.axesSpec], se = y.map((w2) => w2);
|
|
5206
|
+
for (let w2 = y.length - 1; w2 >= 0; w2--)
|
|
5207
|
+
R.splice(y[w2], 1);
|
|
5205
5208
|
const J = { ...P, axesSpec: R };
|
|
5206
5209
|
for (const w2 of F) {
|
|
5207
|
-
const N2 = w2.map((
|
|
5208
|
-
const z2 = se[O], Re =
|
|
5209
|
-
return { axisIdx: z2, axisId: Re, value:
|
|
5210
|
+
const N2 = w2.map((D2, O) => {
|
|
5211
|
+
const z2 = se[O], Re = p$1(P.axesSpec[z2]), oe = q[O], Oe = (oe == null ? void 0 : oe[D2]) ?? String(D2);
|
|
5212
|
+
return { axisIdx: z2, axisId: Re, value: D2, label: Oe };
|
|
5210
5213
|
});
|
|
5211
5214
|
u2.push({
|
|
5212
5215
|
type: "split",
|
|
@@ -5236,9 +5239,9 @@
|
|
|
5236
5239
|
a
|
|
5237
5240
|
), d = [];
|
|
5238
5241
|
for (const { value: f2, label: p2 } of S) {
|
|
5239
|
-
const { originalColumn: c2, spec: h } = f2, A2 = f2.type === "split" ? f2.axisFilters : void 0,
|
|
5242
|
+
const { originalColumn: c2, spec: h } = f2, A2 = f2.type === "split" ? f2.axisFilters : void 0, y = gt(A2);
|
|
5240
5243
|
let v;
|
|
5241
|
-
r ? v = r.deriveS(h,
|
|
5244
|
+
r ? v = r.deriveS(h, y) : v = mt(c2.id, y);
|
|
5242
5245
|
let g = { ...f2.adjustedSpec };
|
|
5243
5246
|
o && (g = {
|
|
5244
5247
|
...g,
|
|
@@ -5249,7 +5252,7 @@
|
|
|
5249
5252
|
}), d.push({
|
|
5250
5253
|
id: v,
|
|
5251
5254
|
spec: g,
|
|
5252
|
-
data: () => f2.type === "split" ? hn(dt(f2.dataEntries,
|
|
5255
|
+
data: () => f2.type === "split" ? hn(dt(f2.dataEntries, y)) : f2.originalColumn.data,
|
|
5253
5256
|
label: p2
|
|
5254
5257
|
});
|
|
5255
5258
|
}
|
|
@@ -5545,12 +5548,15 @@
|
|
|
5545
5548
|
* @returns a map of axis value => label
|
|
5546
5549
|
*/
|
|
5547
5550
|
findLabelsForColumnAxis(e, n2) {
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5551
|
+
var s2;
|
|
5552
|
+
const r = this.findLabels(e.axesSpec[n2]);
|
|
5553
|
+
if (!r) return;
|
|
5554
|
+
const i = (s2 = e.annotations) == null ? void 0 : s2["pl7.app/axisKeys/" + n2];
|
|
5555
|
+
if (i !== void 0) {
|
|
5556
|
+
const o = JSON.parse(i);
|
|
5557
|
+
return Object.fromEntries(o.map((a) => [a, r[a] ?? "Unlabelled"]));
|
|
5558
|
+
} else
|
|
5559
|
+
return r;
|
|
5554
5560
|
}
|
|
5555
5561
|
}
|
|
5556
5562
|
class X {
|
|
@@ -5628,7 +5634,7 @@
|
|
|
5628
5634
|
return this.ctx.getCurrentUnstableMarker();
|
|
5629
5635
|
}
|
|
5630
5636
|
}
|
|
5631
|
-
const M = "1.
|
|
5637
|
+
const M = "1.29.2";
|
|
5632
5638
|
function wt(t) {
|
|
5633
5639
|
return t.__renderLambda === true;
|
|
5634
5640
|
}
|
|
@@ -5821,12 +5827,12 @@
|
|
|
5821
5827
|
}, o = /* @__PURE__ */ new Map();
|
|
5822
5828
|
for (const d of e)
|
|
5823
5829
|
for (const f2 of d.spec.axesSpec) {
|
|
5824
|
-
const p2 =
|
|
5830
|
+
const p2 = p$1(f2);
|
|
5825
5831
|
for (const c2 of i) {
|
|
5826
|
-
const h = c2.spec.axesSpec[0], A2 =
|
|
5832
|
+
const h = c2.spec.axesSpec[0], A2 = p$1(c2.spec.axesSpec[0]);
|
|
5827
5833
|
if (z(p2, A2)) {
|
|
5828
|
-
const
|
|
5829
|
-
if (
|
|
5834
|
+
const y = Object.keys(p2.domain ?? {}).length, v = Object.keys(A2.domain ?? {}).length;
|
|
5835
|
+
if (y > v) {
|
|
5830
5836
|
const g = s2(c2.id, p2.domain);
|
|
5831
5837
|
o.set(g, {
|
|
5832
5838
|
id: g,
|