@milaboratories/milaboratories.ui-examples.model 1.1.76 → 1.1.78
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 +13 -0
- package/dist/bundle.js +93 -89
- 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 "/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.78 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
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
[34mESM[39m Build start
|
|
14
14
|
[32mESM[39m [1mdist/index.js [22m[32m7.75 KB[39m
|
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m17.76 KB[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 294ms
|
|
17
17
|
[32mCJS[39m [1mdist/index.cjs [22m[32m7.86 KB[39m
|
|
18
18
|
[32mCJS[39m [1mdist/index.cjs.map [22m[32m17.86 KB[39m
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 294ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 4602ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m3.23 KB[39m
|
|
23
23
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.23 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[2m192.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m205.
|
|
31
|
-
[32m✓ built in 2.
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m192.40 kB[22m[1m[22m[2m │ gzip: 37.48 kB[22m[2m │ map: 413.36 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m205.64 kB[22m[1m[22m[2m │ gzip: 38.14 kB[22m[2m │ map: 414.96 kB[22m
|
|
31
|
+
[32m✓ built in 2.23s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.1.78
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @platforma-sdk/model@1.37.14
|
|
8
|
+
|
|
9
|
+
## 1.1.77
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [10e5841]
|
|
14
|
+
- @platforma-sdk/model@1.37.11
|
|
15
|
+
|
|
3
16
|
## 1.1.76
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -4162,7 +4162,7 @@
|
|
|
4162
4162
|
function P(n2) {
|
|
4163
4163
|
return Re(p$1(n2));
|
|
4164
4164
|
}
|
|
4165
|
-
function k
|
|
4165
|
+
function k(n2, e) {
|
|
4166
4166
|
return JSON.stringify([n2, e]);
|
|
4167
4167
|
}
|
|
4168
4168
|
class _n {
|
|
@@ -4187,7 +4187,7 @@
|
|
|
4187
4187
|
const s2 = Object.entries(o.domain);
|
|
4188
4188
|
s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
|
|
4189
4189
|
for (const [a, i] of s2) {
|
|
4190
|
-
const u2 = k
|
|
4190
|
+
const u2 = k(a, i);
|
|
4191
4191
|
this.domains.set(u2, r);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
@@ -4222,7 +4222,7 @@
|
|
|
4222
4222
|
for (const [a, i] of Object.entries(e.domain ?? {})) {
|
|
4223
4223
|
if (o !== void 0 && o.has(a))
|
|
4224
4224
|
continue;
|
|
4225
|
-
const u2 = k
|
|
4225
|
+
const u2 = k(a, i), c2 = this.domains.get(u2);
|
|
4226
4226
|
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
|
|
4227
4227
|
}
|
|
4228
4228
|
if (r.axes = e.axesSpec.map((a) => {
|
|
@@ -4524,7 +4524,7 @@
|
|
|
4524
4524
|
});
|
|
4525
4525
|
var Ye = Object.defineProperty;
|
|
4526
4526
|
var Xe = (t, e, n2) => e in t ? Ye(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4527
|
-
var
|
|
4527
|
+
var D = (t, e, n2) => Xe(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4528
4528
|
function re(t) {
|
|
4529
4529
|
return { type: "Immediate", value: t };
|
|
4530
4530
|
}
|
|
@@ -4559,8 +4559,8 @@
|
|
|
4559
4559
|
}
|
|
4560
4560
|
class I {
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
|
-
|
|
4563
|
-
|
|
4562
|
+
D(this, "isResolved", false);
|
|
4563
|
+
D(this, "resolvedValue");
|
|
4564
4564
|
this.handle = e, this.postProcess = n2, mt(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
@@ -4814,33 +4814,33 @@
|
|
|
4814
4814
|
const m2 = e(p2);
|
|
4815
4815
|
let f2, v, b;
|
|
4816
4816
|
"spec" in m2 && typeof m2.spec == "object" ? (f2 = m2.spec, v = m2.prefixTrace, b = m2.suffixTrace) : f2 = m2;
|
|
4817
|
-
const
|
|
4817
|
+
const h2 = (S = f2.annotations) == null ? void 0 : S[bt], w2 = (F = f2.annotations) == null ? void 0 : F[wt], x = (w2 ? xt.safeParse(JSON.parse(w2)).data : void 0) ?? [], C = [
|
|
4818
4818
|
...v ?? [],
|
|
4819
|
-
...
|
|
4819
|
+
...x,
|
|
4820
4820
|
...b ?? []
|
|
4821
4821
|
];
|
|
4822
|
-
if (
|
|
4823
|
-
const
|
|
4824
|
-
n2.addLabelAsSuffix ? C.push(
|
|
4822
|
+
if (h2 !== void 0) {
|
|
4823
|
+
const k2 = { label: h2, type: Pt, importance: -2 };
|
|
4824
|
+
n2.addLabelAsSuffix ? C.push(k2) : C.splice(0, 0, k2);
|
|
4825
4825
|
}
|
|
4826
|
-
const
|
|
4827
|
-
for (let
|
|
4828
|
-
const { type: W } = C[
|
|
4826
|
+
const A = [], T = /* @__PURE__ */ new Map();
|
|
4827
|
+
for (let k2 = C.length - 1; k2 >= 0; --k2) {
|
|
4828
|
+
const { type: W } = C[k2], j2 = C[k2].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
|
|
4829
4829
|
T.set(W, $);
|
|
4830
4830
|
const K2 = `${W}@${$}`;
|
|
4831
4831
|
s2.set(K2, (s2.get(K2) ?? 0) + 1), r.set(
|
|
4832
4832
|
K2,
|
|
4833
4833
|
Math.max(
|
|
4834
4834
|
r.get(K2) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
-
j2 - (C.length -
|
|
4835
|
+
j2 - (C.length - k2) * Ct
|
|
4836
4836
|
)
|
|
4837
|
-
),
|
|
4837
|
+
), A.push({ ...C[k2], fullType: K2, occurrenceIndex: $ });
|
|
4838
4838
|
}
|
|
4839
|
-
return
|
|
4839
|
+
return A.reverse(), {
|
|
4840
4840
|
value: p2,
|
|
4841
4841
|
spec: f2,
|
|
4842
|
-
label:
|
|
4843
|
-
fullTrace:
|
|
4842
|
+
label: h2,
|
|
4843
|
+
fullTrace: A
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
4846
4846
|
u2.sort(([, p2], [, m2]) => m2 - p2);
|
|
@@ -4849,17 +4849,17 @@
|
|
|
4849
4849
|
const c2 = (p2, m2 = false) => {
|
|
4850
4850
|
const f2 = [];
|
|
4851
4851
|
for (let v = 0; v < o.length; v++) {
|
|
4852
|
-
const b = o[v],
|
|
4853
|
-
if (
|
|
4852
|
+
const b = o[v], h2 = b.fullTrace.filter((C) => p2.has(C.fullType) || i && i.has(C.type));
|
|
4853
|
+
if (h2.length === 0)
|
|
4854
4854
|
if (m2)
|
|
4855
4855
|
f2.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
4857
|
value: b.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const
|
|
4860
|
+
const w2 = h2.map((C) => C.label), x = n2.separator ?? " / ";
|
|
4861
4861
|
f2.push({
|
|
4862
|
-
label:
|
|
4862
|
+
label: w2.join(x),
|
|
4863
4863
|
value: b.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
@@ -4869,15 +4869,15 @@
|
|
|
4869
4869
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4870
4870
|
return c2(new Set(Te), true);
|
|
4871
4871
|
}
|
|
4872
|
-
let d = 0,
|
|
4872
|
+
let d = 0, g = -1;
|
|
4873
4873
|
for (; d < a.length; ) {
|
|
4874
4874
|
const p2 = /* @__PURE__ */ new Set();
|
|
4875
4875
|
n2.includeNativeLabel && p2.add(Te);
|
|
4876
4876
|
for (let f2 = 0; f2 < d; ++f2) p2.add(a[f2]);
|
|
4877
|
-
|
|
4877
|
+
g >= 0 && p2.add(a[g]);
|
|
4878
4878
|
const m2 = c2(p2);
|
|
4879
4879
|
if (m2 !== void 0 && new Set(m2.map((f2) => f2.label)).size === t.length) return m2;
|
|
4880
|
-
|
|
4880
|
+
g++, g >= a.length && (d++, g = d);
|
|
4881
4881
|
}
|
|
4882
4882
|
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
@@ -5143,7 +5143,7 @@
|
|
|
5143
5143
|
const e = t[0];
|
|
5144
5144
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5145
5145
|
}
|
|
5146
|
-
class
|
|
5146
|
+
class kt {
|
|
5147
5147
|
constructor(e) {
|
|
5148
5148
|
this.columns = e;
|
|
5149
5149
|
}
|
|
@@ -5152,7 +5152,7 @@
|
|
|
5152
5152
|
return this.columns.filter((r) => n2(r.spec));
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function Dt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
5158
|
type: `split:${Rn(e.axisId)}`,
|
|
@@ -5185,9 +5185,9 @@
|
|
|
5185
5185
|
}
|
|
5186
5186
|
class le {
|
|
5187
5187
|
constructor() {
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5188
|
+
D(this, "defaultProviderStore", []);
|
|
5189
|
+
D(this, "providers", [new kt(this.defaultProviderStore)]);
|
|
5190
|
+
D(this, "axisLabelProviders", []);
|
|
5191
5191
|
}
|
|
5192
5192
|
addColumnProvider(e) {
|
|
5193
5193
|
return this.providers.push(e), this;
|
|
@@ -5225,7 +5225,7 @@
|
|
|
5225
5225
|
});
|
|
5226
5226
|
u2 = (v) => f2.some((b) => b(v));
|
|
5227
5227
|
}
|
|
5228
|
-
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [],
|
|
5228
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], g = /* @__PURE__ */ new Set();
|
|
5229
5229
|
for (const f$1 of c2) {
|
|
5230
5230
|
const v = Le(f$1);
|
|
5231
5231
|
let b;
|
|
@@ -5235,44 +5235,44 @@
|
|
|
5235
5235
|
b = Mn(r.anchors, f$1, n2);
|
|
5236
5236
|
} else
|
|
5237
5237
|
b = f$1;
|
|
5238
|
-
const
|
|
5239
|
-
for (const
|
|
5240
|
-
const T =
|
|
5238
|
+
const h2 = /* @__PURE__ */ new Set(), w2 = [];
|
|
5239
|
+
for (const A of this.providers) {
|
|
5240
|
+
const T = A.selectColumns(b);
|
|
5241
5241
|
for (const S of T) {
|
|
5242
5242
|
if (u2(S.spec)) continue;
|
|
5243
|
-
if (
|
|
5244
|
-
throw new Error(`Duplicate column id ${S.id} in provider ${
|
|
5243
|
+
if (h2.has(S.id))
|
|
5244
|
+
throw new Error(`Duplicate column id ${S.id} in provider ${A.constructor.name}`);
|
|
5245
5245
|
const F = Qn(S.spec);
|
|
5246
|
-
|
|
5246
|
+
g.has(F) || (h2.add(S.id), g.add(F), w2.push(S));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
|
-
if (
|
|
5250
|
-
const
|
|
5251
|
-
for (const
|
|
5252
|
-
if (!f(
|
|
5253
|
-
const T =
|
|
5249
|
+
if (w2.length === 0) continue;
|
|
5250
|
+
const x = Ft(f$1), C = x.length > 0;
|
|
5251
|
+
for (const A of w2) {
|
|
5252
|
+
if (!f(A.spec)) continue;
|
|
5253
|
+
const T = A.spec;
|
|
5254
5254
|
if (C) {
|
|
5255
|
-
if (Et(
|
|
5256
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5257
|
-
const S = Tt(
|
|
5255
|
+
if (Et(A.data))
|
|
5256
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
|
|
5257
|
+
const S = Tt(A.data);
|
|
5258
5258
|
if (!S) {
|
|
5259
5259
|
if (s2) continue;
|
|
5260
5260
|
return;
|
|
5261
5261
|
}
|
|
5262
5262
|
if (!Sn(S))
|
|
5263
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${
|
|
5264
|
-
const F = It(S),
|
|
5265
|
-
if (
|
|
5266
|
-
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${
|
|
5267
|
-
const W =
|
|
5268
|
-
if (G >=
|
|
5263
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${A.id}`);
|
|
5264
|
+
const F = It(S), k2 = x[x.length - 1];
|
|
5265
|
+
if (k2 >= S.partitionKeyLength)
|
|
5266
|
+
throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${T.name}`);
|
|
5267
|
+
const W = x.map((_) => this.findLabels(p$1(T.axesSpec[_]))), j2 = [], $ = (_, G) => {
|
|
5268
|
+
if (G >= x.length) {
|
|
5269
5269
|
if (j2.push([..._]), j2.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
const N2 =
|
|
5273
|
+
const N2 = x[G];
|
|
5274
5274
|
if (N2 >= F.length)
|
|
5275
|
-
throw new Error(`Axis index ${N2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${
|
|
5275
|
+
throw new Error(`Axis index ${N2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${A.id}`);
|
|
5276
5276
|
const J2 = F[N2];
|
|
5277
5277
|
if (!J2 || J2.length === 0) {
|
|
5278
5278
|
j2.length = 0;
|
|
@@ -5283,9 +5283,9 @@
|
|
|
5283
5283
|
};
|
|
5284
5284
|
if ($([], 0), j2.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const K2 = [...T.axesSpec], Ge =
|
|
5287
|
-
for (let _ =
|
|
5288
|
-
K2.splice(
|
|
5286
|
+
const K2 = [...T.axesSpec], Ge = x.map((_) => _);
|
|
5287
|
+
for (let _ = x.length - 1; _ >= 0; _--)
|
|
5288
|
+
K2.splice(x[_], 1);
|
|
5289
5289
|
const He = { ...T, axesSpec: K2 };
|
|
5290
5290
|
for (const _ of j2) {
|
|
5291
5291
|
const G = _.map((N2, J2) => {
|
|
@@ -5294,7 +5294,7 @@
|
|
|
5294
5294
|
});
|
|
5295
5295
|
d.push({
|
|
5296
5296
|
type: "split",
|
|
5297
|
-
originalColumn:
|
|
5297
|
+
originalColumn: A,
|
|
5298
5298
|
spec: T,
|
|
5299
5299
|
adjustedSpec: He,
|
|
5300
5300
|
dataEntries: S,
|
|
@@ -5304,7 +5304,7 @@
|
|
|
5304
5304
|
} else
|
|
5305
5305
|
d.push({
|
|
5306
5306
|
type: "direct",
|
|
5307
|
-
originalColumn:
|
|
5307
|
+
originalColumn: A,
|
|
5308
5308
|
spec: T,
|
|
5309
5309
|
adjustedSpec: T
|
|
5310
5310
|
});
|
|
@@ -5315,25 +5315,25 @@
|
|
|
5315
5315
|
d,
|
|
5316
5316
|
(f2) => ({
|
|
5317
5317
|
spec: f2.spec,
|
|
5318
|
-
suffixTrace: f2.type === "split" ?
|
|
5318
|
+
suffixTrace: f2.type === "split" ? Dt(f2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
5321
|
), m2 = [];
|
|
5322
5322
|
for (const { value: f2, label: v } of p2) {
|
|
5323
|
-
const { originalColumn: b, spec:
|
|
5323
|
+
const { originalColumn: b, spec: h2 } = f2, w2 = f2.type === "split" ? f2.axisFilters : void 0, x = Ot(w2);
|
|
5324
5324
|
let C;
|
|
5325
|
-
r ? C = r.deriveS(
|
|
5326
|
-
let
|
|
5327
|
-
o && (
|
|
5328
|
-
...
|
|
5325
|
+
r ? C = r.deriveS(h2, x) : C = Rt(b.id, x);
|
|
5326
|
+
let A = { ...f2.adjustedSpec };
|
|
5327
|
+
o && (A = {
|
|
5328
|
+
...A,
|
|
5329
5329
|
annotations: {
|
|
5330
|
-
...
|
|
5330
|
+
...A.annotations ?? {},
|
|
5331
5331
|
"pl7.app/label": v
|
|
5332
5332
|
}
|
|
5333
5333
|
}), m2.push({
|
|
5334
5334
|
id: C,
|
|
5335
|
-
spec:
|
|
5336
|
-
data: () => f2.type === "split" ? Jn(Lt(f2.dataEntries,
|
|
5335
|
+
spec: A,
|
|
5336
|
+
data: () => f2.type === "split" ? Jn(Lt(f2.dataEntries, x)) : f2.originalColumn.data,
|
|
5337
5337
|
label: v
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
@@ -5374,7 +5374,7 @@
|
|
|
5374
5374
|
}
|
|
5375
5375
|
class Kt {
|
|
5376
5376
|
constructor() {
|
|
5377
|
-
|
|
5377
|
+
D(this, "ctx", y());
|
|
5378
5378
|
}
|
|
5379
5379
|
/**
|
|
5380
5380
|
* @deprecated use getOptions()
|
|
@@ -5643,11 +5643,11 @@
|
|
|
5643
5643
|
}
|
|
5644
5644
|
class te {
|
|
5645
5645
|
constructor() {
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5646
|
+
D(this, "ctx");
|
|
5647
|
+
D(this, "args");
|
|
5648
|
+
D(this, "uiState");
|
|
5649
|
+
D(this, "_activeArgsCache");
|
|
5650
|
+
D(this, "resultPool", new Kt());
|
|
5651
5651
|
this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
|
|
5652
5652
|
}
|
|
5653
5653
|
/**
|
|
@@ -5724,7 +5724,7 @@
|
|
|
5724
5724
|
this.ctx.logError(e);
|
|
5725
5725
|
}
|
|
5726
5726
|
}
|
|
5727
|
-
const Y = "1.37.
|
|
5727
|
+
const Y = "1.37.14";
|
|
5728
5728
|
function Vt(t) {
|
|
5729
5729
|
return t.__renderLambda === true;
|
|
5730
5730
|
}
|
|
@@ -5981,8 +5981,8 @@
|
|
|
5981
5981
|
for (const a of e) {
|
|
5982
5982
|
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => Z$1(d, u2));
|
|
5983
5983
|
if (c2 !== -1) {
|
|
5984
|
-
const d = i[c2],
|
|
5985
|
-
|
|
5984
|
+
const d = i[c2], g = Object.keys(d.domain ?? {}).length, p2 = Object.keys(l2.domain ?? {}).length;
|
|
5985
|
+
g > p2 ? o.push({
|
|
5986
5986
|
id: s2(a.id, d.domain),
|
|
5987
5987
|
spec: {
|
|
5988
5988
|
...a.spec,
|
|
@@ -6064,28 +6064,32 @@
|
|
|
6064
6064
|
return [...new Map(t.map((n2) => [e(n2), n2])).values()];
|
|
6065
6065
|
}
|
|
6066
6066
|
function Kn(t, e, n2, r) {
|
|
6067
|
+
if (e.length === 0) return;
|
|
6067
6068
|
const i = jt(n2 ?? Ue()), s2 = (r == null ? void 0 : r.coreJoinType) ?? "full", o = ue(
|
|
6068
6069
|
[...(r == null ? void 0 : r.filters) ?? [], ...i.pTableParams.filters],
|
|
6069
|
-
(
|
|
6070
|
+
(h2) => ue$1(h2.column)
|
|
6070
6071
|
), a = ue(
|
|
6071
6072
|
[...(r == null ? void 0 : r.sorting) ?? [], ...i.pTableParams.sorting],
|
|
6072
|
-
(
|
|
6073
|
-
), l2 = e.filter((
|
|
6073
|
+
(h2) => ue$1(h2.column)
|
|
6074
|
+
), l2 = e.filter((h2) => !Nt(h2.spec)), u2 = Be(t.resultPool);
|
|
6074
6075
|
if (!u2) return;
|
|
6075
|
-
const c2 = we(l2.map(Fn$1), u2), d = Ae(l2, c2, s2, o, a, r == null ? void 0 : r.coreColumnPredicate),
|
|
6076
|
+
const c2 = we(l2.map(Fn$1), u2), d = Ae(l2, c2, s2, o, a, r == null ? void 0 : r.coreColumnPredicate), g = t.createPTable(d), p2 = new Set((() => {
|
|
6076
6077
|
if (s2 === "inner") return [];
|
|
6077
|
-
const
|
|
6078
|
-
return
|
|
6078
|
+
const h2 = i.pTableParams.hiddenColIds;
|
|
6079
|
+
return h2 || l2.filter((w2) => $t(w2.spec)).map((w2) => w2.id);
|
|
6079
6080
|
})());
|
|
6080
|
-
|
|
6081
|
-
var
|
|
6082
|
-
return (
|
|
6083
|
-
}).forEach((
|
|
6084
|
-
|
|
6081
|
+
l2.filter((h2) => {
|
|
6082
|
+
var w2;
|
|
6083
|
+
return ((w2 = h2.spec.annotations) == null ? void 0 : w2["pl7.app/isLinkerColumn"]) === "true";
|
|
6084
|
+
}).forEach((h2) => p2.delete(h2.id)), r != null && r.coreColumnPredicate && l2.flatMap((w2) => {
|
|
6085
|
+
var x;
|
|
6086
|
+
return (x = r == null ? void 0 : r.coreColumnPredicate) != null && x.call(r, w2.spec) ? [w2.id] : [];
|
|
6087
|
+
}).forEach((w2) => p2.delete(w2)), [...o.map((h2) => h2.column), ...a.map((h2) => h2.column)].filter((h2) => h2.type === "column").forEach((h2) => p2.delete(h2.id));
|
|
6088
|
+
const m2 = l2.filter((h2) => !p2.has(h2.id)), f2 = we(m2.map(Fn$1), u2);
|
|
6085
6089
|
if (!We([...m2, ...f2])) return;
|
|
6086
6090
|
const v = Ae(m2, f2, s2, o, a, r == null ? void 0 : r.coreColumnPredicate), b = t.createPTable(v);
|
|
6087
6091
|
return {
|
|
6088
|
-
fullTableHandle:
|
|
6092
|
+
fullTableHandle: g,
|
|
6089
6093
|
visibleTableHandle: b
|
|
6090
6094
|
};
|
|
6091
6095
|
}
|