@milaboratories/milaboratories.ui-examples.model 1.2.13 → 1.2.15
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 +15 -0
- package/dist/bundle.js +58 -58
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
- package/src/index.ts +5 -4
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.15 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[32m8.46 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m19.15 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 221ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m8.57 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m19.23 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 221ms
|
|
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 5093ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.87 KB[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.87 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 2.
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m196.22 kB[22m[1m[22m[2m │ gzip: 38.10 kB[22m[2m │ map: 438.60 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m209.80 kB[22m[1m[22m[2m │ gzip: 38.80 kB[22m[2m │ map: 440.22 kB[22m
|
|
31
|
+
[32m✓ built in 2.72s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.2.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 41140f4: PlAgDataTableV2 - selection & focusRow updated
|
|
8
|
+
- Updated dependencies [41140f4]
|
|
9
|
+
- @platforma-sdk/model@1.41.4
|
|
10
|
+
|
|
11
|
+
## 1.2.14
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [d469422]
|
|
16
|
+
- @platforma-sdk/model@1.41.3
|
|
17
|
+
|
|
3
18
|
## 1.2.13
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
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) {
|
|
@@ -4551,7 +4551,7 @@
|
|
|
4551
4551
|
return n2.callbackRegistry[t] = e, true;
|
|
4552
4552
|
}
|
|
4553
4553
|
const fe = /* @__PURE__ */ new Map();
|
|
4554
|
-
function
|
|
4554
|
+
function xt(t, e) {
|
|
4555
4555
|
t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
|
|
4556
4556
|
for (const r of fe.get(t))
|
|
4557
4557
|
r(n2);
|
|
@@ -4561,7 +4561,7 @@
|
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
4562
|
V(this, "isResolved", false);
|
|
4563
4563
|
V(this, "resolvedValue");
|
|
4564
|
-
this.handle = e, this.postProcess = n2,
|
|
4564
|
+
this.handle = e, this.postProcess = n2, xt(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
4567
4567
|
}
|
|
@@ -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
|
}
|
|
@@ -4814,7 +4814,7 @@
|
|
|
4814
4814
|
const y2 = e(d2);
|
|
4815
4815
|
let p2, g2, C;
|
|
4816
4816
|
"spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec, g2 = y2.prefixTrace, C = y2.suffixTrace) : p2 = y2;
|
|
4817
|
-
const E = (c2 = p2.annotations) == null ? void 0 : c2[_t],
|
|
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
|
...g2 ?? [],
|
|
4819
4819
|
...S2,
|
|
4820
4820
|
...C ?? []
|
|
@@ -4823,10 +4823,10 @@
|
|
|
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 = [], F2 = /* @__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 = (F2.get($) ?? 0) + 1;
|
|
4829
|
+
F2.set($, j);
|
|
4830
4830
|
const N2 = `${$}@${j}`;
|
|
4831
4831
|
o.set(N2, (o.get(N2) ?? 0) + 1), r.set(
|
|
4832
4832
|
N2,
|
|
@@ -4857,9 +4857,9 @@
|
|
|
4857
4857
|
value: C.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const
|
|
4860
|
+
const x2 = E.map((P) => P.label), S2 = n2.separator ?? " / ";
|
|
4861
4861
|
p2.push({
|
|
4862
|
-
label:
|
|
4862
|
+
label: x2.join(S2),
|
|
4863
4863
|
value: C.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
@@ -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
|
}
|
|
@@ -5235,22 +5235,22 @@
|
|
|
5235
5235
|
C = Xe$1(r.anchors, p2, n2);
|
|
5236
5236
|
} else
|
|
5237
5237
|
C = p2;
|
|
5238
|
-
const E = /* @__PURE__ */ new Set(),
|
|
5238
|
+
const E = /* @__PURE__ */ new Set(), x2 = [];
|
|
5239
5239
|
for (const T of this.providers) {
|
|
5240
|
-
const
|
|
5241
|
-
for (const c2 of
|
|
5240
|
+
const F2 = T.selectColumns(C);
|
|
5241
|
+
for (const c2 of F2) {
|
|
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
5245
|
const v2 = on(c2.spec);
|
|
5246
|
-
m2.has(v2) || (E.add(c2.id), m2.add(v2),
|
|
5246
|
+
m2.has(v2) || (E.add(c2.id), m2.add(v2), x2.push(c2));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
|
-
if (
|
|
5249
|
+
if (x2.length === 0) continue;
|
|
5250
5250
|
const S2 = $t(p2), P = S2.length > 0;
|
|
5251
|
-
for (const T of
|
|
5251
|
+
for (const T of x2) {
|
|
5252
5252
|
if (!l$1(T.spec)) continue;
|
|
5253
|
-
const
|
|
5253
|
+
const F2 = 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}`);
|
|
@@ -5263,8 +5263,8 @@
|
|
|
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 ${F2.name}`);
|
|
5267
|
+
const $ = S2.map((_2) => this.findLabels(y(F2.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 = [...F2.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 = { ...F2, 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(F2.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: F2,
|
|
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: F2,
|
|
5309
|
+
adjustedSpec: F2
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
@@ -5320,7 +5320,7 @@
|
|
|
5320
5320
|
l2
|
|
5321
5321
|
), y$1 = [];
|
|
5322
5322
|
for (const { value: p2, label: g2 } of d2) {
|
|
5323
|
-
const { originalColumn: C, spec: E } = p2,
|
|
5323
|
+
const { originalColumn: C, spec: E } = p2, x2 = p2.type === "split" ? p2.axisFilters : void 0, S2 = Bt(x2);
|
|
5324
5324
|
let P;
|
|
5325
5325
|
r ? P = r.deriveS(E, S2) : P = Jt(C.id, S2);
|
|
5326
5326
|
let T = { ...p2.adjustedSpec };
|
|
@@ -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.4", 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(
|
|
@@ -6196,13 +6196,13 @@
|
|
|
6196
6196
|
filters: p2,
|
|
6197
6197
|
sorting: g2,
|
|
6198
6198
|
coreColumnPredicate: void 0
|
|
6199
|
-
}), E = t.createPTable(C),
|
|
6199
|
+
}), E = t.createPTable(C), x2 = 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
|
-
i.filter((c2) => Pe(c2.spec)).forEach((c2) =>
|
|
6204
|
-
const S2 = i.filter((c2) => !
|
|
6205
|
-
if (!
|
|
6203
|
+
i.filter((c2) => Pe(c2.spec)).forEach((c2) => x2.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) => x2.delete(c2.id));
|
|
6204
|
+
const S2 = i.filter((c2) => !x2.has(c2.id)), P = Re(S2.map(qe), s2);
|
|
6205
|
+
if (!Yt([...S2, ...P])) return;
|
|
6206
6206
|
const T = Ne({
|
|
6207
6207
|
columns: S2,
|
|
6208
6208
|
labelColumns: P,
|
|
@@ -6211,18 +6211,18 @@
|
|
|
6211
6211
|
filters: p2,
|
|
6212
6212
|
sorting: g2,
|
|
6213
6213
|
coreColumnPredicate: void 0
|
|
6214
|
-
}),
|
|
6214
|
+
}), F2 = t.createPTable(T);
|
|
6215
6215
|
return {
|
|
6216
6216
|
sourceId: o.pTableParams.sourceId,
|
|
6217
6217
|
fullTableHandle: E,
|
|
6218
|
-
visibleTableHandle:
|
|
6218
|
+
visibleTableHandle: F2
|
|
6219
6219
|
};
|
|
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
|
);
|
|
@@ -6242,13 +6242,13 @@
|
|
|
6242
6242
|
return toList(range(0, n2)).map(cb);
|
|
6243
6243
|
}
|
|
6244
6244
|
const $BlockArgs = z$1.object({
|
|
6245
|
-
tableNumRows: z$1.number().default(100),
|
|
6246
6245
|
numbers: z$1.array(z$1.coerce.number()),
|
|
6247
6246
|
handles: z$1.array(ImportFileHandleSchema)
|
|
6248
6247
|
});
|
|
6249
|
-
const platforma = Oe.create("Heavy").withArgs({ numbers: [1, 2, 3, 4],
|
|
6248
|
+
const platforma = Oe.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], handles: [] }).withUiState({
|
|
6250
6249
|
dataTableV2: {
|
|
6251
6250
|
sourceId: "source_1",
|
|
6251
|
+
numRows: 200,
|
|
6252
6252
|
state: De()
|
|
6253
6253
|
},
|
|
6254
6254
|
dynamicSections: [],
|
|
@@ -6267,7 +6267,7 @@
|
|
|
6267
6267
|
const progresses = m2 == null ? void 0 : m2.mapFields((name, val) => [name, val == null ? void 0 : val.getImportProgress()]);
|
|
6268
6268
|
return Object.fromEntries(progresses ?? []);
|
|
6269
6269
|
}).output("ptV2Sheets", (ctx) => {
|
|
6270
|
-
const rowCount = ctx.
|
|
6270
|
+
const rowCount = ctx.uiState.dataTableV2.numRows ?? 0;
|
|
6271
6271
|
const sheets = [
|
|
6272
6272
|
{
|
|
6273
6273
|
axis: {
|
|
@@ -6286,7 +6286,7 @@
|
|
|
6286
6286
|
];
|
|
6287
6287
|
return rowCount > 0 ? sheets : [];
|
|
6288
6288
|
}).output("ptV2", (ctx) => {
|
|
6289
|
-
const rowCount = ctx.
|
|
6289
|
+
const rowCount = ctx.uiState.dataTableV2.numRows ?? 0;
|
|
6290
6290
|
const makePartitionId = (rowCount2, i) => Math.floor(2 * i / (rowCount2 + 1));
|
|
6291
6291
|
const columns = [
|
|
6292
6292
|
{
|
|
@@ -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
|