@milaboratories/milaboratories.ui-examples.model 1.1.64 → 1.1.65
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 +7 -0
- package/dist/bundle.js +44 -43
- 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 +2 -2
- 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.1.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.1.65 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
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.43 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m14.71 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 384ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m6.54 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m14.80 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 386ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
22
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m4.
|
|
23
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 4787ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m4.30 KB[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.30 KB[39m
|
|
24
24
|
[36mvite v5.4.11 [32mbuilding for production...[36m[39m
|
|
25
25
|
transforming...
|
|
26
26
|
[32m✓[39m 9 modules transformed.
|
|
27
27
|
rendering chunks...
|
|
28
28
|
computing gzip size...
|
|
29
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m189.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m202.
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m189.64 kB[22m[1m[22m[2m │ gzip: 36.78 kB[22m[2m │ map: 406.61 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m202.67 kB[22m[1m[22m[2m │ gzip: 37.44 kB[22m[2m │ map: 408.20 kB[22m
|
|
31
|
+
[32m✓ built in 2.03s[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -3999,7 +3999,7 @@
|
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
4001
|
}
|
|
4002
|
-
function F(n2) {
|
|
4002
|
+
function F$1(n2) {
|
|
4003
4003
|
if (!n2 || typeof n2 != "object")
|
|
4004
4004
|
return false;
|
|
4005
4005
|
const e = n2;
|
|
@@ -4017,7 +4017,7 @@
|
|
|
4017
4017
|
}
|
|
4018
4018
|
}
|
|
4019
4019
|
function gn(n2) {
|
|
4020
|
-
return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4020
|
+
return F$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4021
4021
|
}
|
|
4022
4022
|
function bn(n2) {
|
|
4023
4023
|
switch (n2.type) {
|
|
@@ -4503,14 +4503,14 @@
|
|
|
4503
4503
|
});
|
|
4504
4504
|
var Xe = Object.defineProperty;
|
|
4505
4505
|
var Qe = (t, e, n2) => e in t ? Xe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4506
|
-
var
|
|
4506
|
+
var F = (t, e, n2) => Qe(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4507
4507
|
function re(t) {
|
|
4508
4508
|
return { type: "Immediate", value: t };
|
|
4509
4509
|
}
|
|
4510
4510
|
function ht() {
|
|
4511
4511
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4512
4512
|
}
|
|
4513
|
-
function
|
|
4513
|
+
function Re(t) {
|
|
4514
4514
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4515
4515
|
return globalThis.getPlatforma(t);
|
|
4516
4516
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
@@ -4538,8 +4538,8 @@
|
|
|
4538
4538
|
}
|
|
4539
4539
|
class I {
|
|
4540
4540
|
constructor(e, n2 = (r) => r) {
|
|
4541
|
-
|
|
4542
|
-
|
|
4541
|
+
F(this, "isResolved", false);
|
|
4542
|
+
F(this, "resolvedValue");
|
|
4543
4543
|
this.handle = e, this.postProcess = n2, mt(e, (r) => {
|
|
4544
4544
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4545
4545
|
});
|
|
@@ -4780,7 +4780,7 @@
|
|
|
4780
4780
|
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, d]) => o(u2, d));
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
|
-
const
|
|
4783
|
+
const De = "staging", Ke = "main";
|
|
4784
4784
|
const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$2.object({
|
|
4785
4785
|
type: z$2.string(),
|
|
4786
4786
|
importance: z$2.number().optional(),
|
|
@@ -4789,11 +4789,11 @@
|
|
|
4789
4789
|
}), xt = z$2.array(At), Ct = 1e-3, Pt = "__LABEL__", Se = "__LABEL__@1";
|
|
4790
4790
|
function Ve(t, e, n2 = {}) {
|
|
4791
4791
|
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
|
|
4792
|
-
var S,
|
|
4792
|
+
var S, R;
|
|
4793
4793
|
const w2 = e(f2);
|
|
4794
4794
|
let c2, g, x2;
|
|
4795
4795
|
"spec" in w2 && typeof w2.spec == "object" ? (c2 = w2.spec, g = w2.prefixTrace, x2 = w2.suffixTrace) : c2 = w2;
|
|
4796
|
-
const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (
|
|
4796
|
+
const p2 = (S = c2.annotations) == null ? void 0 : S[bt], A2 = (R = c2.annotations) == null ? void 0 : R[wt], m2 = (A2 ? xt.safeParse(JSON.parse(A2)).data : void 0) ?? [], v = [
|
|
4797
4797
|
...g ?? [],
|
|
4798
4798
|
...m2,
|
|
4799
4799
|
...x2 ?? []
|
|
@@ -4935,7 +4935,7 @@
|
|
|
4935
4935
|
}
|
|
4936
4936
|
function It(t) {
|
|
4937
4937
|
if (t === void 0) return;
|
|
4938
|
-
if (F(t))
|
|
4938
|
+
if (F$1(t))
|
|
4939
4939
|
return _t(t);
|
|
4940
4940
|
const e = St(t);
|
|
4941
4941
|
if (!e) return;
|
|
@@ -5050,7 +5050,7 @@
|
|
|
5050
5050
|
}
|
|
5051
5051
|
function Tt(t) {
|
|
5052
5052
|
if (t !== void 0) {
|
|
5053
|
-
if (F(t)) return t;
|
|
5053
|
+
if (F$1(t)) return t;
|
|
5054
5054
|
if (yn(t)) return bn(t);
|
|
5055
5055
|
if (t instanceof O) return ye(t);
|
|
5056
5056
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
@@ -5138,7 +5138,7 @@
|
|
|
5138
5138
|
if (t)
|
|
5139
5139
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5140
5140
|
}
|
|
5141
|
-
function
|
|
5141
|
+
function Ft(t, e) {
|
|
5142
5142
|
if (!e || e.length === 0) return t;
|
|
5143
5143
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5144
5144
|
return ke({ id: t, axisFilters: n2 });
|
|
@@ -5148,7 +5148,7 @@
|
|
|
5148
5148
|
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);
|
|
5149
5149
|
return !!e.domainAnchor || n2 || r;
|
|
5150
5150
|
}
|
|
5151
|
-
function
|
|
5151
|
+
function Rt(t) {
|
|
5152
5152
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5153
5153
|
return [];
|
|
5154
5154
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5158,9 +5158,9 @@
|
|
|
5158
5158
|
}
|
|
5159
5159
|
class ve {
|
|
5160
5160
|
constructor() {
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5161
|
+
F(this, "defaultProviderStore", []);
|
|
5162
|
+
F(this, "providers", [new Et(this.defaultProviderStore)]);
|
|
5163
|
+
F(this, "axisLabelProviders", []);
|
|
5164
5164
|
}
|
|
5165
5165
|
addColumnProvider(e) {
|
|
5166
5166
|
return this.providers.push(e), this;
|
|
@@ -5215,12 +5215,12 @@
|
|
|
5215
5215
|
if (u2(S.spec)) continue;
|
|
5216
5216
|
if (p2.has(S.id))
|
|
5217
5217
|
throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
|
|
5218
|
-
const
|
|
5219
|
-
b.has(
|
|
5218
|
+
const R = _n(S.spec);
|
|
5219
|
+
b.has(R) || (p2.add(S.id), b.add(R), A2.push(S));
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
5222
|
if (A2.length === 0) continue;
|
|
5223
|
-
const m2 =
|
|
5223
|
+
const m2 = Rt(c2), v = m2.length > 0;
|
|
5224
5224
|
for (const C2 of A2) {
|
|
5225
5225
|
if (!f(C2.spec)) continue;
|
|
5226
5226
|
const L = C2.spec;
|
|
@@ -5232,7 +5232,7 @@
|
|
|
5232
5232
|
}
|
|
5233
5233
|
if (!gn(S))
|
|
5234
5234
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
|
|
5235
|
-
const
|
|
5235
|
+
const R = It(S), k2 = m2[m2.length - 1];
|
|
5236
5236
|
if (k2 >= S.partitionKeyLength)
|
|
5237
5237
|
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5238
5238
|
const W = m2.map((_) => this.findLabels(p$1(L.axesSpec[_]))), V = [], N2 = (_, G2) => {
|
|
@@ -5242,9 +5242,9 @@
|
|
|
5242
5242
|
return;
|
|
5243
5243
|
}
|
|
5244
5244
|
const $ = m2[G2];
|
|
5245
|
-
if ($ >=
|
|
5246
|
-
throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${
|
|
5247
|
-
const J =
|
|
5245
|
+
if ($ >= R.length)
|
|
5246
|
+
throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${C2.id}`);
|
|
5247
|
+
const J = R[$];
|
|
5248
5248
|
if (!J || J.length === 0) {
|
|
5249
5249
|
V.length = 0;
|
|
5250
5250
|
return;
|
|
@@ -5293,7 +5293,7 @@
|
|
|
5293
5293
|
for (const { value: c2, label: g } of f$1) {
|
|
5294
5294
|
const { originalColumn: x2, spec: p2 } = c2, A2 = c2.type === "split" ? c2.axisFilters : void 0, m2 = kt(A2);
|
|
5295
5295
|
let v;
|
|
5296
|
-
r ? v = r.deriveS(p2, m2) : v =
|
|
5296
|
+
r ? v = r.deriveS(p2, m2) : v = Ft(x2.id, m2);
|
|
5297
5297
|
let C2 = { ...c2.adjustedSpec };
|
|
5298
5298
|
o && (C2 = {
|
|
5299
5299
|
...C2,
|
|
@@ -5343,9 +5343,9 @@
|
|
|
5343
5343
|
function Ie(t) {
|
|
5344
5344
|
return Kn$1(t, (e) => e instanceof O ? e.handle : yn(e) ? hn(e, (n2) => n2.handle) : e);
|
|
5345
5345
|
}
|
|
5346
|
-
class
|
|
5346
|
+
class Dt {
|
|
5347
5347
|
constructor() {
|
|
5348
|
-
|
|
5348
|
+
F(this, "ctx", h());
|
|
5349
5349
|
}
|
|
5350
5350
|
/**
|
|
5351
5351
|
* @deprecated use getOptions()
|
|
@@ -5614,11 +5614,11 @@
|
|
|
5614
5614
|
}
|
|
5615
5615
|
class te {
|
|
5616
5616
|
constructor() {
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5617
|
+
F(this, "ctx");
|
|
5618
|
+
F(this, "args");
|
|
5619
|
+
F(this, "uiState");
|
|
5620
|
+
F(this, "_activeArgsCache");
|
|
5621
|
+
F(this, "resultPool", new Dt());
|
|
5622
5622
|
this.ctx = h(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5623
5623
|
}
|
|
5624
5624
|
/**
|
|
@@ -5641,7 +5641,7 @@
|
|
|
5641
5641
|
);
|
|
5642
5642
|
}
|
|
5643
5643
|
get prerun() {
|
|
5644
|
-
return this.getNamedAccessor(
|
|
5644
|
+
return this.getNamedAccessor(De);
|
|
5645
5645
|
}
|
|
5646
5646
|
get outputs() {
|
|
5647
5647
|
return this.getNamedAccessor(Ke);
|
|
@@ -5695,7 +5695,7 @@
|
|
|
5695
5695
|
this.ctx.logError(e);
|
|
5696
5696
|
}
|
|
5697
5697
|
}
|
|
5698
|
-
const Y = "1.
|
|
5698
|
+
const Y = "1.33.2";
|
|
5699
5699
|
function Kt(t) {
|
|
5700
5700
|
return t.__renderLambda === true;
|
|
5701
5701
|
}
|
|
@@ -5901,13 +5901,13 @@
|
|
|
5901
5901
|
Object.entries(this._outputs).map(([n2, r]) => [n2, de(r)])
|
|
5902
5902
|
)
|
|
5903
5903
|
};
|
|
5904
|
-
return ht() ?
|
|
5904
|
+
return ht() ? Re({ sdkVersion: Y }) : { config: e };
|
|
5905
5905
|
}
|
|
5906
5906
|
}
|
|
5907
|
-
function
|
|
5907
|
+
function Wt(t) {
|
|
5908
5908
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
5909
5909
|
}
|
|
5910
|
-
function
|
|
5910
|
+
function Me(t) {
|
|
5911
5911
|
return new ve().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
|
|
5912
5912
|
name: "pl7.app/label",
|
|
5913
5913
|
axes: [{}]
|
|
@@ -5917,7 +5917,7 @@
|
|
|
5917
5917
|
function Be(t, e) {
|
|
5918
5918
|
const n2 = [], r = [];
|
|
5919
5919
|
for (const a of t)
|
|
5920
|
-
|
|
5920
|
+
Wt(a.spec) ? n2.push(a) : r.push(a);
|
|
5921
5921
|
const i = [];
|
|
5922
5922
|
for (const a of r)
|
|
5923
5923
|
for (const l2 of a.spec.axesSpec) {
|
|
@@ -5995,7 +5995,7 @@
|
|
|
5995
5995
|
function Kn(t, e, n2, r) {
|
|
5996
5996
|
var u2, d;
|
|
5997
5997
|
Array.isArray(r) && (r = { filters: r });
|
|
5998
|
-
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 = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a =
|
|
5998
|
+
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 = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Me(t.resultPool);
|
|
5999
5999
|
if (!a) return;
|
|
6000
6000
|
const l2 = Be(e.map(On), a);
|
|
6001
6001
|
if (We([...e, ...l2]))
|
|
@@ -6003,25 +6003,25 @@
|
|
|
6003
6003
|
Ge(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
|
|
6004
6004
|
);
|
|
6005
6005
|
}
|
|
6006
|
-
function
|
|
6006
|
+
function Gt(t) {
|
|
6007
6007
|
var e;
|
|
6008
6008
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
|
|
6009
6009
|
}
|
|
6010
|
-
function
|
|
6010
|
+
function Ht(t) {
|
|
6011
6011
|
var e;
|
|
6012
6012
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6013
6013
|
}
|
|
6014
6014
|
function jn(t, e, n2, r, i) {
|
|
6015
6015
|
var g, x2;
|
|
6016
|
-
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.filter((p2) => !
|
|
6016
|
+
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((x2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : x2.sorting) ?? [], l2 = e.filter((p2) => !Gt(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
|
|
6017
6017
|
if (!u2) return;
|
|
6018
|
-
const d =
|
|
6018
|
+
const d = Me(t.resultPool);
|
|
6019
6019
|
if (!d) return;
|
|
6020
6020
|
const y = new Set((() => {
|
|
6021
6021
|
var A2, m2;
|
|
6022
6022
|
if (s2 === "inner") return [];
|
|
6023
6023
|
const p2 = (m2 = (A2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A2.hiddenColIds) == null ? void 0 : m2.map(ne).filter((v) => v.type === "column").map((v) => v.id);
|
|
6024
|
-
return p2 || l2.filter((v) =>
|
|
6024
|
+
return p2 || l2.filter((v) => Ht(v.spec)).map((v) => v.id);
|
|
6025
6025
|
})());
|
|
6026
6026
|
y.delete(u2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => y.delete(p2.id));
|
|
6027
6027
|
const b = l2.filter((p2) => !y.has(p2.id)), f2 = Be(b.map(On), d), w2 = [
|
|
@@ -6220,6 +6220,7 @@
|
|
|
6220
6220
|
{ type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
|
|
6221
6221
|
{ type: "link", href: "/pl-ag-data-table-v2", label: "PlAgDataTableV2" },
|
|
6222
6222
|
{ type: "link", href: "/pl-splash-page", label: "PlSplashPage" },
|
|
6223
|
+
{ type: "link", href: "/pl-file-input-page", label: "PlFileInputPage" },
|
|
6223
6224
|
{ type: "link", href: "/errors", label: "Errors" },
|
|
6224
6225
|
{ type: "link", href: "/text-fields", label: "PlTextField" },
|
|
6225
6226
|
{ type: "link", href: "/tabs", label: "PlTabs" },
|