@milaboratories/milaboratories.ui-examples.model 1.1.48 → 1.1.49
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 +7 -0
- package/dist/bundle.js +67 -67
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
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.49 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
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
[34mESM[39m Build start
|
|
14
14
|
[32mESM[39m [1mdist/index.js [22m[32m4.87 KB[39m
|
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m11.51 KB[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 124ms
|
|
17
17
|
[32mCJS[39m [1mdist/index.cjs [22m[32m5.01 KB[39m
|
|
18
18
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m11.55 KB[39m
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 124ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 1666ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.43 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.43 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[2m183.16 kB[22m[1m[22m[2m │ gzip: 35.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m195.80 kB[22m[1m[22m[2m │ gzip: 36.
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m183.16 kB[22m[1m[22m[2m │ gzip: 35.50 kB[22m[2m │ map: 393.10 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m195.80 kB[22m[1m[22m[2m │ gzip: 36.13 kB[22m[2m │ map: 394.64 kB[22m
|
|
31
|
+
[32m✓ built in 845ms[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -4748,7 +4748,7 @@
|
|
|
4748
4748
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4749
4749
|
(u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
|
|
4750
4750
|
);
|
|
4751
|
-
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2,
|
|
4751
|
+
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, y]) => o(u2, y));
|
|
4752
4752
|
}
|
|
4753
4753
|
}
|
|
4754
4754
|
const Ee = "staging", Fe = "main";
|
|
@@ -4759,18 +4759,18 @@
|
|
|
4759
4759
|
label: z.string()
|
|
4760
4760
|
}), dt = z.array(pt), ft = 1e-3, ht = "__LABEL__", Ae = "__LABEL__@1";
|
|
4761
4761
|
function Oe(t, e, n2 = {}) {
|
|
4762
|
-
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((
|
|
4762
|
+
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
|
|
4763
4763
|
var q2, F;
|
|
4764
|
-
const h = e(
|
|
4765
|
-
let
|
|
4766
|
-
"spec" in h && typeof h.spec == "object" ? (
|
|
4767
|
-
const
|
|
4764
|
+
const h = e(f2);
|
|
4765
|
+
let d, x2, c2;
|
|
4766
|
+
"spec" in h && typeof h.spec == "object" ? (d = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : d = h;
|
|
4767
|
+
const v = (q2 = d.annotations) == null ? void 0 : q2[ut], g = (F = d.annotations) == null ? void 0 : F[ct], b = (g ? dt.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
|
|
4768
4768
|
...x2 ?? [],
|
|
4769
|
-
...
|
|
4769
|
+
...b,
|
|
4770
4770
|
...c2 ?? []
|
|
4771
4771
|
];
|
|
4772
|
-
if (
|
|
4773
|
-
const _ = { label:
|
|
4772
|
+
if (v) {
|
|
4773
|
+
const _ = { label: v, type: ht, importance: -2 };
|
|
4774
4774
|
n2.addLabelAsSuffix ? A2.push(_) : A2.splice(0, 0, _);
|
|
4775
4775
|
}
|
|
4776
4776
|
const D = [], $2 = /* @__PURE__ */ new Map();
|
|
@@ -4787,24 +4787,24 @@
|
|
|
4787
4787
|
), D.push({ ...A2[_], fullType: P, occurenceIndex: J });
|
|
4788
4788
|
}
|
|
4789
4789
|
return D.reverse(), {
|
|
4790
|
-
value:
|
|
4791
|
-
spec:
|
|
4792
|
-
label:
|
|
4790
|
+
value: f2,
|
|
4791
|
+
spec: d,
|
|
4792
|
+
label: v,
|
|
4793
4793
|
fullTrace: D
|
|
4794
4794
|
};
|
|
4795
4795
|
}), o = [], a = [], l2 = [...r];
|
|
4796
|
-
l2.sort(([,
|
|
4797
|
-
for (const [
|
|
4798
|
-
|
|
4799
|
-
const u2 = (
|
|
4796
|
+
l2.sort(([, f2], [, h]) => h - f2);
|
|
4797
|
+
for (const [f2] of l2)
|
|
4798
|
+
f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
|
|
4799
|
+
const u2 = (f2) => {
|
|
4800
4800
|
const h = [];
|
|
4801
|
-
for (let
|
|
4802
|
-
const x2 = s2[
|
|
4801
|
+
for (let d = 0; d < s2.length; d++) {
|
|
4802
|
+
const x2 = s2[d], c2 = x2.fullTrace.filter((b) => f2.has(b.fullType));
|
|
4803
4803
|
if (c2.length === 0)
|
|
4804
4804
|
return;
|
|
4805
|
-
const
|
|
4805
|
+
const v = c2.map((b) => b.label), g = n2.separator ?? " / ";
|
|
4806
4806
|
h.push({
|
|
4807
|
-
label:
|
|
4807
|
+
label: v.join(g),
|
|
4808
4808
|
value: x2.value
|
|
4809
4809
|
});
|
|
4810
4810
|
}
|
|
@@ -4812,19 +4812,19 @@
|
|
|
4812
4812
|
};
|
|
4813
4813
|
if (o.length === 0) {
|
|
4814
4814
|
if (a.length !== 0) throw new Error("Assertion error.");
|
|
4815
|
-
const
|
|
4816
|
-
if (
|
|
4817
|
-
return
|
|
4818
|
-
}
|
|
4819
|
-
let
|
|
4820
|
-
for (;
|
|
4821
|
-
const
|
|
4822
|
-
n2.includeNativeLabel &&
|
|
4823
|
-
for (let
|
|
4824
|
-
|
|
4825
|
-
const h = u2(
|
|
4826
|
-
if (h !== void 0 && new Set(h.map((
|
|
4827
|
-
|
|
4815
|
+
const f2 = u2(new Set(Ae));
|
|
4816
|
+
if (f2 === void 0) throw new Error("Assertion error.");
|
|
4817
|
+
return f2;
|
|
4818
|
+
}
|
|
4819
|
+
let y = 0, w2 = 0;
|
|
4820
|
+
for (; y < o.length; ) {
|
|
4821
|
+
const f2 = /* @__PURE__ */ new Set();
|
|
4822
|
+
n2.includeNativeLabel && f2.add(Ae);
|
|
4823
|
+
for (let d = 0; d < y; ++d) f2.add(o[d]);
|
|
4824
|
+
f2.add(o[w2]);
|
|
4825
|
+
const h = u2(f2);
|
|
4826
|
+
if (h !== void 0 && new Set(h.map((d) => d.label)).size === t.length) return h;
|
|
4827
|
+
w2++, w2 >= o.length && (y++, w2 = y);
|
|
4828
4828
|
}
|
|
4829
4829
|
const p2 = u2(/* @__PURE__ */ new Set([...o, ...a]));
|
|
4830
4830
|
if (p2 === void 0) throw new Error("Assertion error.");
|
|
@@ -5157,28 +5157,28 @@
|
|
|
5157
5157
|
...i ?? {}
|
|
5158
5158
|
}, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
|
|
5159
5159
|
for (const p2 of l2) {
|
|
5160
|
-
const
|
|
5160
|
+
const f$1 = Ct(p2);
|
|
5161
5161
|
let h;
|
|
5162
|
-
if (
|
|
5162
|
+
if (f$1) {
|
|
5163
5163
|
if (!r)
|
|
5164
5164
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5165
5165
|
h = Dn(r.anchors, p2, n2);
|
|
5166
5166
|
} else
|
|
5167
5167
|
h = p2;
|
|
5168
|
-
const
|
|
5168
|
+
const d = /* @__PURE__ */ new Set(), x2 = [];
|
|
5169
5169
|
for (const g of this.providers) {
|
|
5170
|
-
const
|
|
5171
|
-
for (const A2 of
|
|
5172
|
-
if (
|
|
5173
|
-
|
|
5170
|
+
const b = g.selectColumns(h);
|
|
5171
|
+
for (const A2 of b) {
|
|
5172
|
+
if (d.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
|
|
5173
|
+
d.add(A2.id), x2.push(A2);
|
|
5174
5174
|
}
|
|
5175
5175
|
}
|
|
5176
5176
|
if (x2.length === 0) continue;
|
|
5177
|
-
const c2 = St(p2),
|
|
5177
|
+
const c2 = St(p2), v = c2.length > 0;
|
|
5178
5178
|
for (const g of x2) {
|
|
5179
5179
|
if (!f(g.spec)) continue;
|
|
5180
|
-
const
|
|
5181
|
-
if (
|
|
5180
|
+
const b = g.spec;
|
|
5181
|
+
if (v) {
|
|
5182
5182
|
const A2 = vt(g.data);
|
|
5183
5183
|
if (!A2) {
|
|
5184
5184
|
if (s2) continue;
|
|
@@ -5188,8 +5188,8 @@
|
|
|
5188
5188
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${g.id}`);
|
|
5189
5189
|
const D = yt(A2), $2 = c2[c2.length - 1];
|
|
5190
5190
|
if ($2 >= A2.partitionKeyLength)
|
|
5191
|
-
throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${
|
|
5192
|
-
const q2 = c2.map((P) => this.findLabels(p$1(
|
|
5191
|
+
throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${b.name}`);
|
|
5192
|
+
const q2 = c2.map((P) => this.findLabels(p$1(b.axesSpec[P]))), F = [], _ = (P, N2) => {
|
|
5193
5193
|
if (N2 >= c2.length) {
|
|
5194
5194
|
if (F.push([...P]), F.length > 1e4)
|
|
5195
5195
|
throw new Error("Too many key combinations, aborting.");
|
|
@@ -5208,19 +5208,19 @@
|
|
|
5208
5208
|
};
|
|
5209
5209
|
if (_([], 0), F.length === 0)
|
|
5210
5210
|
continue;
|
|
5211
|
-
const R = [...
|
|
5211
|
+
const R = [...b.axesSpec], se = c2.map((P) => P);
|
|
5212
5212
|
for (let P = c2.length - 1; P >= 0; P--)
|
|
5213
5213
|
R.splice(c2[P], 1);
|
|
5214
|
-
const J = { ...
|
|
5214
|
+
const J = { ...b, axesSpec: R };
|
|
5215
5215
|
for (const P of F) {
|
|
5216
5216
|
const N2 = P.map((O, k2) => {
|
|
5217
|
-
const z2 = se[k2], Ne = p$1(
|
|
5217
|
+
const z2 = se[k2], Ne = p$1(b.axesSpec[z2]), oe = q2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
|
|
5218
5218
|
return { axisIdx: z2, axisId: Ne, value: O, label: Be };
|
|
5219
5219
|
});
|
|
5220
5220
|
u2.push({
|
|
5221
5221
|
type: "split",
|
|
5222
5222
|
originalColumn: g,
|
|
5223
|
-
spec:
|
|
5223
|
+
spec: b,
|
|
5224
5224
|
adjustedSpec: J,
|
|
5225
5225
|
dataEntries: A2,
|
|
5226
5226
|
axisFilters: N2
|
|
@@ -5230,39 +5230,39 @@
|
|
|
5230
5230
|
u2.push({
|
|
5231
5231
|
type: "direct",
|
|
5232
5232
|
originalColumn: g,
|
|
5233
|
-
spec:
|
|
5234
|
-
adjustedSpec:
|
|
5233
|
+
spec: b,
|
|
5234
|
+
adjustedSpec: b
|
|
5235
5235
|
});
|
|
5236
5236
|
}
|
|
5237
5237
|
}
|
|
5238
5238
|
if (u2.length === 0) return [];
|
|
5239
|
-
const
|
|
5239
|
+
const y = Oe(
|
|
5240
5240
|
u2,
|
|
5241
5241
|
(p2) => ({
|
|
5242
5242
|
spec: p2.spec,
|
|
5243
5243
|
suffixTrace: p2.type === "split" ? At(p2.axisFilters) : void 0
|
|
5244
5244
|
}),
|
|
5245
5245
|
a
|
|
5246
|
-
),
|
|
5247
|
-
for (const { value: p2, label:
|
|
5248
|
-
const { originalColumn: h, spec:
|
|
5249
|
-
let
|
|
5250
|
-
r ?
|
|
5246
|
+
), w2 = [];
|
|
5247
|
+
for (const { value: p2, label: f2 } of y) {
|
|
5248
|
+
const { originalColumn: h, spec: d } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, c2 = Pt(x2);
|
|
5249
|
+
let v;
|
|
5250
|
+
r ? v = r.deriveS(d, c2) : v = xt(h.id, c2);
|
|
5251
5251
|
let g = { ...p2.adjustedSpec };
|
|
5252
5252
|
o && (g = {
|
|
5253
5253
|
...g,
|
|
5254
5254
|
annotations: {
|
|
5255
5255
|
...g.annotations ?? {},
|
|
5256
|
-
"pl7.app/label":
|
|
5256
|
+
"pl7.app/label": f2
|
|
5257
5257
|
}
|
|
5258
|
-
}),
|
|
5259
|
-
id:
|
|
5258
|
+
}), w2.push({
|
|
5259
|
+
id: v,
|
|
5260
5260
|
spec: g,
|
|
5261
5261
|
data: () => p2.type === "split" ? gn(bt(p2.dataEntries, c2)) : p2.originalColumn.data,
|
|
5262
|
-
label:
|
|
5262
|
+
label: f2
|
|
5263
5263
|
});
|
|
5264
5264
|
}
|
|
5265
|
-
return
|
|
5265
|
+
return w2;
|
|
5266
5266
|
}
|
|
5267
5267
|
getColumns(e, n2) {
|
|
5268
5268
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5640,7 +5640,7 @@
|
|
|
5640
5640
|
return this.ctx.getCurrentUnstableMarker();
|
|
5641
5641
|
}
|
|
5642
5642
|
}
|
|
5643
|
-
const M = "1.29.
|
|
5643
|
+
const M = "1.29.17";
|
|
5644
5644
|
function _t(t) {
|
|
5645
5645
|
return t.__renderLambda === true;
|
|
5646
5646
|
}
|
|
@@ -5842,8 +5842,8 @@
|
|
|
5842
5842
|
for (const a of e) {
|
|
5843
5843
|
const l2 = a.spec.axesSpec[0], u2 = p$1(a.spec.axesSpec[0]);
|
|
5844
5844
|
if (G(o, u2)) {
|
|
5845
|
-
const
|
|
5846
|
-
if (
|
|
5845
|
+
const y = Object.keys(o.domain ?? {}).length, w2 = Object.keys(u2.domain ?? {}).length;
|
|
5846
|
+
if (y > w2) {
|
|
5847
5847
|
const p2 = n2(a.id, o.domain);
|
|
5848
5848
|
r.set(p2, {
|
|
5849
5849
|
id: p2,
|
|
@@ -5902,9 +5902,9 @@
|
|
|
5902
5902
|
};
|
|
5903
5903
|
}
|
|
5904
5904
|
function Cn(t, e, n2, r) {
|
|
5905
|
-
var u2,
|
|
5905
|
+
var u2, y;
|
|
5906
5906
|
Array.isArray(r) && (r = { filters: r });
|
|
5907
|
-
const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((
|
|
5907
|
+
const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((y = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : y.sorting) ?? [], a = je(t.resultPool);
|
|
5908
5908
|
if (!a) return;
|
|
5909
5909
|
const l2 = Ve(e.map(Cn$1), a);
|
|
5910
5910
|
if (Ke([...e, ...l2]))
|