@milaboratories/milaboratories.ui-examples.model 1.2.13 → 1.2.14
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 +7 -0
- package/dist/bundle.js +25 -25
- 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 "/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.14 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,14 +11,14 @@
|
|
|
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.60 KB[39m
|
|
15
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m19.25 KB[39m
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in 301ms
|
|
17
14
|
[32mESM[39m [1mdist/index.js [22m[32m8.48 KB[39m
|
|
18
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m19.17 KB[39m
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 147ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m8.60 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m19.25 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 147ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 1541ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.98 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.98 KB[39m
|
|
24
24
|
[36mvite v6.3.5 [32mbuilding for production...[36m[39m
|
|
@@ -26,6 +26,6 @@ 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.25 kB[22m[1m[22m[2m │ gzip: 38.12 kB[22m[2m │ map: 438.51 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m209.82 kB[22m[1m[22m[2m │ gzip: 38.81 kB[22m[2m │ map: 440.12 kB[22m
|
|
31
|
+
[32m✓ built in 1.01s[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -4328,7 +4328,7 @@
|
|
|
4328
4328
|
if (!ie(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4329
4329
|
return e;
|
|
4330
4330
|
}
|
|
4331
|
-
function nn
|
|
4331
|
+
function nn(e, n2) {
|
|
4332
4332
|
return e === void 0 ? void 0 : {
|
|
4333
4333
|
...e,
|
|
4334
4334
|
data: n2(e.data)
|
|
@@ -4423,7 +4423,7 @@
|
|
|
4423
4423
|
}
|
|
4424
4424
|
return true;
|
|
4425
4425
|
}
|
|
4426
|
-
function rn(e) {
|
|
4426
|
+
function rn$1(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
4429
|
function on(e) {
|
|
@@ -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] = nn
|
|
4705
|
+
i[o] = nn(s2, (l2) => new O(l2, a));
|
|
4706
4706
|
}
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
@@ -5148,7 +5148,7 @@
|
|
|
5148
5148
|
this.columns = e;
|
|
5149
5149
|
}
|
|
5150
5150
|
selectColumns(e) {
|
|
5151
|
-
const n2 = typeof e == "function" ? e : rn(e);
|
|
5151
|
+
const n2 = typeof e == "function" ? e : rn$1(e);
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
@@ -5219,9 +5219,9 @@
|
|
|
5219
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 rn(Xe$1(r.anchors, g2, n2));
|
|
5222
|
+
return rn$1(Xe$1(r.anchors, g2, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return rn(g2);
|
|
5224
|
+
return rn$1(g2);
|
|
5225
5225
|
});
|
|
5226
5226
|
u2 = (g2) => p2.some((C) => C(g2));
|
|
5227
5227
|
}
|
|
@@ -5403,7 +5403,7 @@
|
|
|
5403
5403
|
return true;
|
|
5404
5404
|
}
|
|
5405
5405
|
function ke(t) {
|
|
5406
|
-
return nn
|
|
5406
|
+
return nn(t, (e) => e instanceof O ? e.handle : Ce$1(e) ? Fe(e, (n2) => n2.handle) : e);
|
|
5407
5407
|
}
|
|
5408
5408
|
class Wt {
|
|
5409
5409
|
constructor() {
|
|
@@ -5416,7 +5416,7 @@
|
|
|
5416
5416
|
return this.ctx.calculateOptions(e);
|
|
5417
5417
|
}
|
|
5418
5418
|
getOptions(e, n2) {
|
|
5419
|
-
const r = typeof e == "function" ? e : rn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5419
|
+
const r = typeof e == "function" ? e : rn$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
5422
|
ref: fn(a, s2),
|
|
@@ -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 nn
|
|
5562
|
+
return nn(
|
|
5563
5563
|
n2,
|
|
5564
5564
|
(i) => new O(i, [e.blockId, e.name])
|
|
5565
5565
|
);
|
|
@@ -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 : rn(e);
|
|
5646
|
+
const n2 = typeof e == "function" ? e : rn$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;
|
|
@@ -5788,13 +5788,13 @@
|
|
|
5788
5788
|
this.ctx.logError(e);
|
|
5789
5789
|
}
|
|
5790
5790
|
}
|
|
5791
|
-
const
|
|
5792
|
-
function
|
|
5791
|
+
const Gt = "1.41.3", X = Gt;
|
|
5792
|
+
function Ht(t) {
|
|
5793
5793
|
return t.__renderLambda === true;
|
|
5794
5794
|
}
|
|
5795
5795
|
function me(t) {
|
|
5796
5796
|
if (t !== void 0)
|
|
5797
|
-
return
|
|
5797
|
+
return Ht(t) ? t.handle : t;
|
|
5798
5798
|
}
|
|
5799
5799
|
const w = class w2 {
|
|
5800
5800
|
constructor(e, n2, r, i, o, s2, a, l2, u2) {
|
|
@@ -6053,7 +6053,7 @@
|
|
|
6053
6053
|
pTableParams: Qe()
|
|
6054
6054
|
};
|
|
6055
6055
|
}
|
|
6056
|
-
function
|
|
6056
|
+
function zt(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 Xt(t) {
|
|
6070
6070
|
return new Q().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
6071
6071
|
name: "pl7.app/label",
|
|
6072
6072
|
axes: [{}]
|
|
@@ -6110,7 +6110,7 @@
|
|
|
6110
6110
|
}
|
|
6111
6111
|
return s2;
|
|
6112
6112
|
}
|
|
6113
|
-
function
|
|
6113
|
+
function Yt(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,20 +6152,20 @@
|
|
|
6152
6152
|
sorting: t.sorting
|
|
6153
6153
|
};
|
|
6154
6154
|
}
|
|
6155
|
-
function
|
|
6155
|
+
function Qt(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 Zt(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 Gn(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) || !Qt(c2.spec)), o = zt(n2), s2 = Xt(t.resultPool);
|
|
6169
6169
|
if (!s2) return;
|
|
6170
6170
|
const a = Re(i.map(qe), s2), l2 = [...i, ...a], h = [
|
|
6171
6171
|
...ge(
|
|
@@ -6198,11 +6198,11 @@
|
|
|
6198
6198
|
coreColumnPredicate: void 0
|
|
6199
6199
|
}), E = t.createPTable(C), F2 = new Set((() => {
|
|
6200
6200
|
const c2 = o.pTableParams.hiddenColIds;
|
|
6201
|
-
return c2 || i.filter((v2) =>
|
|
6201
|
+
return c2 || i.filter((v2) => Zt(v2.spec)).map((v2) => v2.id);
|
|
6202
6202
|
})());
|
|
6203
6203
|
i.filter((c2) => Pe(c2.spec)).forEach((c2) => F2.delete(c2.id)), [...y$1.map((c2) => c2.column), ...p2.map((c2) => c2.column), ...g2.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => F2.delete(c2.id));
|
|
6204
6204
|
const S2 = i.filter((c2) => !F2.has(c2.id)), P = Re(S2.map(qe), s2);
|
|
6205
|
-
if (!
|
|
6205
|
+
if (!Yt([...S2, ...P])) return;
|
|
6206
6206
|
const T = Ne({
|
|
6207
6207
|
columns: S2,
|
|
6208
6208
|
labelColumns: P,
|
|
@@ -6220,9 +6220,9 @@
|
|
|
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[rn]) === "true";
|
|
6224
6224
|
}
|
|
6225
|
-
const
|
|
6225
|
+
const rn = "pl7.app/isLinkerColumn";
|
|
6226
6226
|
const ImportFileHandleSchema = z$1.string().optional().refine(
|
|
6227
6227
|
(_a) => true
|
|
6228
6228
|
);
|
|
@@ -6458,7 +6458,7 @@
|
|
|
6458
6458
|
})
|
|
6459
6459
|
});
|
|
6460
6460
|
}
|
|
6461
|
-
return
|
|
6461
|
+
return Gn(
|
|
6462
6462
|
ctx,
|
|
6463
6463
|
columns,
|
|
6464
6464
|
ctx.uiState.dataTableV2.state
|