@milaboratories/milaboratories.ui-examples.model 1.1.72 → 1.1.74
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 +13 -0
- package/dist/bundle.js +132 -131
- 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 +3 -3
- package/src/index.ts +5 -9
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.74 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
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m6.69 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m15.10 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 100ms
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.59 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m15.00 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 100ms
|
|
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 1130ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m4.35 KB[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.35 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[2m190.
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[2m203.
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m190.83 kB[22m[1m[22m[2m │ gzip: 37.03 kB[22m[2m │ map: 409.95 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m203.92 kB[22m[1m[22m[2m │ gzip: 37.70 kB[22m[2m │ map: 411.51 kB[22m
|
|
31
|
+
[32m✓ built in 671ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.1.74
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 45badc9: PlElementList implementation
|
|
8
|
+
|
|
9
|
+
## 1.1.73
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [c570fd4]
|
|
14
|
+
- @platforma-sdk/model@1.34.10
|
|
15
|
+
|
|
3
16
|
## 1.1.72
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -4504,12 +4504,12 @@
|
|
|
4504
4504
|
}), c = l.extend({
|
|
4505
4505
|
cause: z$1.lazy(() => s).optional(),
|
|
4506
4506
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4507
|
-
}), m
|
|
4507
|
+
}), m = z$1.object({
|
|
4508
4508
|
type: z$1.literal("StandardError"),
|
|
4509
4509
|
name: z$1.string(),
|
|
4510
4510
|
message: z$1.string(),
|
|
4511
4511
|
stack: z$1.string().optional()
|
|
4512
|
-
}), p = m
|
|
4512
|
+
}), p = m.extend({
|
|
4513
4513
|
cause: z$1.lazy(() => s).optional(),
|
|
4514
4514
|
errors: z$1.lazy(() => s.array()).optional()
|
|
4515
4515
|
}), s = z$1.union([p, c]);
|
|
@@ -4540,7 +4540,7 @@
|
|
|
4540
4540
|
function ft() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
|
-
function
|
|
4543
|
+
function y() {
|
|
4544
4544
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
@@ -4552,7 +4552,7 @@
|
|
|
4552
4552
|
}
|
|
4553
4553
|
const ce = /* @__PURE__ */ new Map();
|
|
4554
4554
|
function ht(t, e) {
|
|
4555
|
-
t in
|
|
4555
|
+
t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
|
|
4556
4556
|
for (const r of ce.get(t))
|
|
4557
4557
|
r(n2);
|
|
4558
4558
|
}, ce.set(t, [])), ce.get(t).push(e);
|
|
@@ -4621,46 +4621,46 @@
|
|
|
4621
4621
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4622
4622
|
];
|
|
4623
4623
|
return he(
|
|
4624
|
-
|
|
4624
|
+
y().resolveWithCommon(this.handle, e, ...n2),
|
|
4625
4625
|
(i) => new E(i, r)
|
|
4626
4626
|
);
|
|
4627
4627
|
}
|
|
4628
4628
|
get resourceType() {
|
|
4629
|
-
return
|
|
4629
|
+
return y().getResourceType(this.handle);
|
|
4630
4630
|
}
|
|
4631
4631
|
getInputsLocked() {
|
|
4632
|
-
return
|
|
4632
|
+
return y().getInputsLocked(this.handle);
|
|
4633
4633
|
}
|
|
4634
4634
|
getOutputsLocked() {
|
|
4635
|
-
return
|
|
4635
|
+
return y().getOutputsLocked(this.handle);
|
|
4636
4636
|
}
|
|
4637
4637
|
getIsReadyOrError() {
|
|
4638
|
-
return
|
|
4638
|
+
return y().getIsReadyOrError(this.handle);
|
|
4639
4639
|
}
|
|
4640
4640
|
getIsFinal() {
|
|
4641
|
-
return
|
|
4641
|
+
return y().getIsFinal(this.handle);
|
|
4642
4642
|
}
|
|
4643
4643
|
getError() {
|
|
4644
4644
|
const e = [...this.resolvePath, "error"];
|
|
4645
4645
|
return he(
|
|
4646
|
-
|
|
4646
|
+
y().getError(this.handle),
|
|
4647
4647
|
(n2) => new E(n2, e)
|
|
4648
4648
|
);
|
|
4649
4649
|
}
|
|
4650
4650
|
listInputFields() {
|
|
4651
|
-
return
|
|
4651
|
+
return y().listInputFields(this.handle);
|
|
4652
4652
|
}
|
|
4653
4653
|
listOutputFields() {
|
|
4654
|
-
return
|
|
4654
|
+
return y().listOutputFields(this.handle);
|
|
4655
4655
|
}
|
|
4656
4656
|
listDynamicFields() {
|
|
4657
|
-
return
|
|
4657
|
+
return y().listDynamicFields(this.handle);
|
|
4658
4658
|
}
|
|
4659
4659
|
getKeyValueBase64(e) {
|
|
4660
|
-
return
|
|
4660
|
+
return y().getKeyValueBase64(this.handle, e);
|
|
4661
4661
|
}
|
|
4662
4662
|
getKeyValueAsString(e) {
|
|
4663
|
-
return
|
|
4663
|
+
return y().getKeyValueAsString(this.handle, e);
|
|
4664
4664
|
}
|
|
4665
4665
|
getKeyValueAsJson(e) {
|
|
4666
4666
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4668,10 +4668,10 @@
|
|
|
4668
4668
|
return JSON.parse(n2);
|
|
4669
4669
|
}
|
|
4670
4670
|
getDataBase64() {
|
|
4671
|
-
return
|
|
4671
|
+
return y().getDataBase64(this.handle);
|
|
4672
4672
|
}
|
|
4673
4673
|
getDataAsString() {
|
|
4674
|
-
return
|
|
4674
|
+
return y().getDataAsString(this.handle);
|
|
4675
4675
|
}
|
|
4676
4676
|
getDataAsJson() {
|
|
4677
4677
|
const e = this.getDataAsString();
|
|
@@ -4692,7 +4692,7 @@
|
|
|
4692
4692
|
*
|
|
4693
4693
|
*/
|
|
4694
4694
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4695
|
-
const r =
|
|
4695
|
+
const r = y().parsePObjectCollection(
|
|
4696
4696
|
this.handle,
|
|
4697
4697
|
e,
|
|
4698
4698
|
n2,
|
|
@@ -4707,14 +4707,14 @@
|
|
|
4707
4707
|
return i;
|
|
4708
4708
|
}
|
|
4709
4709
|
getFileContentAsBase64(e) {
|
|
4710
|
-
return new _(
|
|
4710
|
+
return new _(y().getBlobContentAsBase64(this.handle, e));
|
|
4711
4711
|
}
|
|
4712
4712
|
getFileContentAsString(e) {
|
|
4713
|
-
return new _(
|
|
4713
|
+
return new _(y().getBlobContentAsString(this.handle, e));
|
|
4714
4714
|
}
|
|
4715
4715
|
getFileContentAsJson(e) {
|
|
4716
4716
|
return new _(
|
|
4717
|
-
|
|
4717
|
+
y().getBlobContentAsString(this.handle, e)
|
|
4718
4718
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4719
4719
|
}
|
|
4720
4720
|
/**
|
|
@@ -4733,7 +4733,7 @@
|
|
|
4733
4733
|
* @returns downloaded file handle
|
|
4734
4734
|
*/
|
|
4735
4735
|
getFileHandle() {
|
|
4736
|
-
return new _(
|
|
4736
|
+
return new _(y().getDownloadedBlobContentHandle(this.handle));
|
|
4737
4737
|
}
|
|
4738
4738
|
/**
|
|
4739
4739
|
* @deprecated use getFileHandle
|
|
@@ -4745,7 +4745,7 @@
|
|
|
4745
4745
|
* @returns downloaded file handle
|
|
4746
4746
|
*/
|
|
4747
4747
|
getRemoteFileHandle() {
|
|
4748
|
-
return new _(
|
|
4748
|
+
return new _(y().getOnDemandBlobContentHandle(this.handle));
|
|
4749
4749
|
}
|
|
4750
4750
|
/**
|
|
4751
4751
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4757,22 +4757,22 @@
|
|
|
4757
4757
|
* @returns the url to the extracted folder
|
|
4758
4758
|
*/
|
|
4759
4759
|
extractArchiveAndGetURL(e) {
|
|
4760
|
-
return new _(
|
|
4760
|
+
return new _(y().extractArchiveAndGetURL(this.handle, e));
|
|
4761
4761
|
}
|
|
4762
4762
|
getImportProgress() {
|
|
4763
|
-
return new _(
|
|
4763
|
+
return new _(y().getImportProgress(this.handle));
|
|
4764
4764
|
}
|
|
4765
4765
|
getLastLogs(e) {
|
|
4766
|
-
return new _(
|
|
4766
|
+
return new _(y().getLastLogs(this.handle, e));
|
|
4767
4767
|
}
|
|
4768
4768
|
getProgressLog(e) {
|
|
4769
|
-
return new _(
|
|
4769
|
+
return new _(y().getProgressLog(this.handle, e));
|
|
4770
4770
|
}
|
|
4771
4771
|
getProgressLogWithInfo(e) {
|
|
4772
|
-
return new _(
|
|
4772
|
+
return new _(y().getProgressLogWithInfo(this.handle, e));
|
|
4773
4773
|
}
|
|
4774
4774
|
getLogHandle() {
|
|
4775
|
-
return new _(
|
|
4775
|
+
return new _(y().getLogHandle(this.handle));
|
|
4776
4776
|
}
|
|
4777
4777
|
allFieldsResolved(e = "Input") {
|
|
4778
4778
|
switch (e) {
|
|
@@ -4809,75 +4809,75 @@
|
|
|
4809
4809
|
label: z$1.string()
|
|
4810
4810
|
}), wt = z$1.array(bt), At = 1e-3, xt = "__LABEL__", Pe = "__LABEL__@1";
|
|
4811
4811
|
function je(t, e, n2 = {}) {
|
|
4812
|
-
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((
|
|
4812
|
+
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((p2) => {
|
|
4813
4813
|
var P2, R;
|
|
4814
|
-
const
|
|
4815
|
-
let
|
|
4816
|
-
"spec" in
|
|
4817
|
-
const h2 = (P2 =
|
|
4818
|
-
...
|
|
4814
|
+
const v = e(p2);
|
|
4815
|
+
let f2, m2, w2;
|
|
4816
|
+
"spec" in v && typeof v.spec == "object" ? (f2 = v.spec, m2 = v.prefixTrace, w2 = v.suffixTrace) : f2 = v;
|
|
4817
|
+
const h2 = (P2 = f2.annotations) == null ? void 0 : P2[yt], I = (R = f2.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], b = [
|
|
4818
|
+
...m2 ?? [],
|
|
4819
4819
|
...x,
|
|
4820
|
-
...
|
|
4820
|
+
...w2 ?? []
|
|
4821
4821
|
];
|
|
4822
4822
|
if (h2 !== void 0) {
|
|
4823
4823
|
const k2 = { label: h2, type: xt, importance: -2 };
|
|
4824
|
-
n2.addLabelAsSuffix ?
|
|
4824
|
+
n2.addLabelAsSuffix ? b.push(k2) : b.splice(0, 0, k2);
|
|
4825
4825
|
}
|
|
4826
4826
|
const A = [], L = /* @__PURE__ */ new Map();
|
|
4827
|
-
for (let k2 =
|
|
4828
|
-
const { type: W } =
|
|
4829
|
-
L.set(W,
|
|
4830
|
-
const F = `${W}@${
|
|
4827
|
+
for (let k2 = b.length - 1; k2 >= 0; --k2) {
|
|
4828
|
+
const { type: W } = b[k2], V = b[k2].importance ?? 0, N2 = (L.get(W) ?? 0) + 1;
|
|
4829
|
+
L.set(W, N2);
|
|
4830
|
+
const F = `${W}@${N2}`;
|
|
4831
4831
|
s2.set(F, (s2.get(F) ?? 0) + 1), r.set(
|
|
4832
4832
|
F,
|
|
4833
4833
|
Math.max(
|
|
4834
4834
|
r.get(F) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
-
|
|
4835
|
+
V - (b.length - k2) * At
|
|
4836
4836
|
)
|
|
4837
|
-
), A.push({ ...
|
|
4837
|
+
), A.push({ ...b[k2], fullType: F, occurrenceIndex: N2 });
|
|
4838
4838
|
}
|
|
4839
4839
|
return A.reverse(), {
|
|
4840
|
-
value:
|
|
4841
|
-
spec:
|
|
4840
|
+
value: p2,
|
|
4841
|
+
spec: f2,
|
|
4842
4842
|
label: h2,
|
|
4843
4843
|
fullTrace: A
|
|
4844
4844
|
};
|
|
4845
4845
|
}), a = [], l2 = [], u2 = [...r];
|
|
4846
|
-
u2.sort(([,
|
|
4847
|
-
for (const [
|
|
4848
|
-
|
|
4849
|
-
const c2 = (
|
|
4850
|
-
const
|
|
4851
|
-
for (let
|
|
4852
|
-
const
|
|
4846
|
+
u2.sort(([, p2], [, v]) => v - p2);
|
|
4847
|
+
for (const [p2] of u2)
|
|
4848
|
+
p2.endsWith("@1") || s2.get(p2) === t.length ? a.push(p2) : l2.push(p2);
|
|
4849
|
+
const c2 = (p2, v = false) => {
|
|
4850
|
+
const f2 = [];
|
|
4851
|
+
for (let m2 = 0; m2 < o.length; m2++) {
|
|
4852
|
+
const w2 = o[m2], h2 = w2.fullTrace.filter((b) => p2.has(b.fullType) || i && i.has(b.type));
|
|
4853
4853
|
if (h2.length === 0)
|
|
4854
|
-
if (
|
|
4855
|
-
|
|
4854
|
+
if (v)
|
|
4855
|
+
f2.push({
|
|
4856
4856
|
label: "Unlabeled",
|
|
4857
|
-
value:
|
|
4857
|
+
value: w2.value
|
|
4858
4858
|
});
|
|
4859
4859
|
else return;
|
|
4860
|
-
const I = h2.map((
|
|
4861
|
-
|
|
4860
|
+
const I = h2.map((b) => b.label), x = n2.separator ?? " / ";
|
|
4861
|
+
f2.push({
|
|
4862
4862
|
label: I.join(x),
|
|
4863
|
-
value:
|
|
4863
|
+
value: w2.value
|
|
4864
4864
|
});
|
|
4865
4865
|
}
|
|
4866
|
-
return
|
|
4866
|
+
return f2;
|
|
4867
4867
|
};
|
|
4868
4868
|
if (a.length === 0) {
|
|
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(Pe), true);
|
|
4871
4871
|
}
|
|
4872
|
-
let d = 0,
|
|
4872
|
+
let d = 0, g = -1;
|
|
4873
4873
|
for (; d < a.length; ) {
|
|
4874
|
-
const
|
|
4875
|
-
n2.includeNativeLabel &&
|
|
4876
|
-
for (let
|
|
4877
|
-
|
|
4878
|
-
const
|
|
4879
|
-
if (
|
|
4880
|
-
|
|
4874
|
+
const p2 = /* @__PURE__ */ new Set();
|
|
4875
|
+
n2.includeNativeLabel && p2.add(Pe);
|
|
4876
|
+
for (let f2 = 0; f2 < d; ++f2) p2.add(a[f2]);
|
|
4877
|
+
g >= 0 && p2.add(a[g]);
|
|
4878
|
+
const v = c2(p2);
|
|
4879
|
+
if (v !== void 0 && new Set(v.map((f2) => f2.label)).size === t.length) return v;
|
|
4880
|
+
g++, g >= a.length && (d++, g = d);
|
|
4881
4881
|
}
|
|
4882
4882
|
return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
@@ -5215,43 +5215,43 @@
|
|
|
5215
5215
|
};
|
|
5216
5216
|
let u2 = () => false;
|
|
5217
5217
|
if (a) {
|
|
5218
|
-
const
|
|
5219
|
-
if (Se(
|
|
5218
|
+
const f2 = (Array.isArray(a) ? a : [a]).map((m2) => {
|
|
5219
|
+
if (Se(m2)) {
|
|
5220
5220
|
if (!r)
|
|
5221
5221
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5222
|
-
return Gn(Mn(r.anchors,
|
|
5222
|
+
return Gn(Mn(r.anchors, m2, n2));
|
|
5223
5223
|
} else
|
|
5224
|
-
return Gn(
|
|
5224
|
+
return Gn(m2);
|
|
5225
5225
|
});
|
|
5226
|
-
u2 = (
|
|
5226
|
+
u2 = (m2) => f2.some((w2) => w2(m2));
|
|
5227
5227
|
}
|
|
5228
|
-
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [],
|
|
5229
|
-
for (const
|
|
5230
|
-
const
|
|
5231
|
-
let
|
|
5232
|
-
if (
|
|
5228
|
+
const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], g = /* @__PURE__ */ new Set();
|
|
5229
|
+
for (const f$1 of c2) {
|
|
5230
|
+
const m2 = Se(f$1);
|
|
5231
|
+
let w2;
|
|
5232
|
+
if (m2) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
|
|
5235
|
+
w2 = Mn(r.anchors, f$1, n2);
|
|
5236
5236
|
} else
|
|
5237
|
-
|
|
5237
|
+
w2 = f$1;
|
|
5238
5238
|
const h2 = /* @__PURE__ */ new Set(), I = [];
|
|
5239
5239
|
for (const A of this.providers) {
|
|
5240
|
-
const L = A.selectColumns(
|
|
5240
|
+
const L = A.selectColumns(w2);
|
|
5241
5241
|
for (const P2 of L) {
|
|
5242
5242
|
if (u2(P2.spec)) continue;
|
|
5243
5243
|
if (h2.has(P2.id))
|
|
5244
5244
|
throw new Error(`Duplicate column id ${P2.id} in provider ${A.constructor.name}`);
|
|
5245
5245
|
const R = Qn(P2.spec);
|
|
5246
|
-
|
|
5246
|
+
g.has(R) || (h2.add(P2.id), g.add(R), I.push(P2));
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
5249
|
if (I.length === 0) continue;
|
|
5250
|
-
const x = Dt(
|
|
5250
|
+
const x = Dt(f$1), b = x.length > 0;
|
|
5251
5251
|
for (const A of I) {
|
|
5252
5252
|
if (!f(A.spec)) continue;
|
|
5253
5253
|
const L = A.spec;
|
|
5254
|
-
if (
|
|
5254
|
+
if (b) {
|
|
5255
5255
|
if (Lt(A.data))
|
|
5256
5256
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
|
|
5257
5257
|
const P2 = _t(A.data);
|
|
@@ -5264,33 +5264,33 @@
|
|
|
5264
5264
|
const R = St(P2), k2 = x[x.length - 1];
|
|
5265
5265
|
if (k2 >= P2.partitionKeyLength)
|
|
5266
5266
|
throw new Error(`Not enough partition keys (${P2.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
|
|
5267
|
-
const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))),
|
|
5267
|
+
const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], N2 = (S, G) => {
|
|
5268
5268
|
if (G >= x.length) {
|
|
5269
|
-
if (
|
|
5269
|
+
if (V.push([...S]), V.length > 1e4)
|
|
5270
5270
|
throw new Error("Too many key combinations, aborting.");
|
|
5271
5271
|
return;
|
|
5272
5272
|
}
|
|
5273
|
-
const
|
|
5274
|
-
if (
|
|
5275
|
-
throw new Error(`Axis index ${
|
|
5276
|
-
const
|
|
5277
|
-
if (!
|
|
5278
|
-
|
|
5273
|
+
const $ = x[G];
|
|
5274
|
+
if ($ >= R.length)
|
|
5275
|
+
throw new Error(`Axis index ${$} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
|
|
5276
|
+
const J2 = R[$];
|
|
5277
|
+
if (!J2 || J2.length === 0) {
|
|
5278
|
+
V.length = 0;
|
|
5279
5279
|
return;
|
|
5280
5280
|
}
|
|
5281
|
-
for (const ee of
|
|
5282
|
-
S.push(ee),
|
|
5281
|
+
for (const ee of J2)
|
|
5282
|
+
S.push(ee), N2(S, G + 1), S.pop();
|
|
5283
5283
|
};
|
|
5284
|
-
if (
|
|
5284
|
+
if (N2([], 0), V.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
5286
|
const F = [...L.axesSpec], Be = x.map((S) => S);
|
|
5287
5287
|
for (let S = x.length - 1; S >= 0; S--)
|
|
5288
5288
|
F.splice(x[S], 1);
|
|
5289
5289
|
const We = { ...L, axesSpec: F };
|
|
5290
|
-
for (const S of
|
|
5291
|
-
const G = S.map((
|
|
5292
|
-
const ee = Be[
|
|
5293
|
-
return { axisIdx: ee, axisId: Ge, value:
|
|
5290
|
+
for (const S of V) {
|
|
5291
|
+
const G = S.map(($, J2) => {
|
|
5292
|
+
const ee = Be[J2], Ge = p$1(L.axesSpec[ee]), ue = W[J2], He = (ue == null ? void 0 : ue[$]) ?? String($);
|
|
5293
|
+
return { axisIdx: ee, axisId: Ge, value: $, label: He };
|
|
5294
5294
|
});
|
|
5295
5295
|
d.push({
|
|
5296
5296
|
type: "split",
|
|
@@ -5311,33 +5311,33 @@
|
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
5313
|
if (d.length === 0) return [];
|
|
5314
|
-
const
|
|
5314
|
+
const p2 = je(
|
|
5315
5315
|
d,
|
|
5316
|
-
(
|
|
5317
|
-
spec:
|
|
5318
|
-
suffixTrace:
|
|
5316
|
+
(f2) => ({
|
|
5317
|
+
spec: f2.spec,
|
|
5318
|
+
suffixTrace: f2.type === "split" ? Et(f2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
|
-
),
|
|
5322
|
-
for (const { value:
|
|
5323
|
-
const { originalColumn:
|
|
5324
|
-
let
|
|
5325
|
-
r ?
|
|
5326
|
-
let A = { ...
|
|
5321
|
+
), v = [];
|
|
5322
|
+
for (const { value: f2, label: m2 } of p2) {
|
|
5323
|
+
const { originalColumn: w2, spec: h2 } = f2, I = f2.type === "split" ? f2.axisFilters : void 0, x = kt(I);
|
|
5324
|
+
let b;
|
|
5325
|
+
r ? b = r.deriveS(h2, x) : b = Ot(w2.id, x);
|
|
5326
|
+
let A = { ...f2.adjustedSpec };
|
|
5327
5327
|
o && (A = {
|
|
5328
5328
|
...A,
|
|
5329
5329
|
annotations: {
|
|
5330
5330
|
...A.annotations ?? {},
|
|
5331
|
-
"pl7.app/label":
|
|
5331
|
+
"pl7.app/label": m2
|
|
5332
5332
|
}
|
|
5333
|
-
}),
|
|
5334
|
-
id:
|
|
5333
|
+
}), v.push({
|
|
5334
|
+
id: b,
|
|
5335
5335
|
spec: A,
|
|
5336
|
-
data: () =>
|
|
5337
|
-
label:
|
|
5336
|
+
data: () => f2.type === "split" ? Jn(It(f2.dataEntries, x)) : f2.originalColumn.data,
|
|
5337
|
+
label: m2
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
5340
|
-
return
|
|
5340
|
+
return v;
|
|
5341
5341
|
}
|
|
5342
5342
|
getColumns(e, n2) {
|
|
5343
5343
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5374,7 +5374,7 @@
|
|
|
5374
5374
|
}
|
|
5375
5375
|
class Rt {
|
|
5376
5376
|
constructor() {
|
|
5377
|
-
O(this, "ctx",
|
|
5377
|
+
O(this, "ctx", y());
|
|
5378
5378
|
}
|
|
5379
5379
|
/**
|
|
5380
5380
|
* @deprecated use getOptions()
|
|
@@ -5648,7 +5648,7 @@
|
|
|
5648
5648
|
O(this, "uiState");
|
|
5649
5649
|
O(this, "_activeArgsCache");
|
|
5650
5650
|
O(this, "resultPool", new Rt());
|
|
5651
|
-
this.ctx =
|
|
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
|
/**
|
|
5654
5654
|
* Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
|
|
@@ -5724,7 +5724,7 @@
|
|
|
5724
5724
|
this.ctx.logError(e);
|
|
5725
5725
|
}
|
|
5726
5726
|
}
|
|
5727
|
-
const Y = "1.34.
|
|
5727
|
+
const Y = "1.34.10";
|
|
5728
5728
|
function Ft(t) {
|
|
5729
5729
|
return t.__renderLambda === true;
|
|
5730
5730
|
}
|
|
@@ -5967,8 +5967,8 @@
|
|
|
5967
5967
|
for (const a of e) {
|
|
5968
5968
|
const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => Z$1(d, u2));
|
|
5969
5969
|
if (c2 !== -1) {
|
|
5970
|
-
const d = i[c2],
|
|
5971
|
-
|
|
5970
|
+
const d = i[c2], g = Object.keys(d.domain ?? {}).length, p2 = Object.keys(l2.domain ?? {}).length;
|
|
5971
|
+
g > p2 ? o.push({
|
|
5972
5972
|
id: s2(a.id, d.domain),
|
|
5973
5973
|
spec: {
|
|
5974
5974
|
...a.spec,
|
|
@@ -6041,37 +6041,37 @@
|
|
|
6041
6041
|
return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
|
|
6042
6042
|
}
|
|
6043
6043
|
function Rn(t, e, n2, r, i) {
|
|
6044
|
-
var
|
|
6045
|
-
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((
|
|
6044
|
+
var m2, w2;
|
|
6045
|
+
const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((m2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : m2.filters) ?? []], a = ((w2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : w2.sorting) ?? [], l2 = e.filter((h2) => !Kt(h2.spec)), u2 = l2.find((h2) => n2(h2.spec));
|
|
6046
6046
|
if (!u2) return;
|
|
6047
6047
|
const c2 = Ne(t.resultPool);
|
|
6048
6048
|
if (!c2) return;
|
|
6049
6049
|
const d = new Set((() => {
|
|
6050
6050
|
var I, x;
|
|
6051
6051
|
if (s2 === "inner") return [];
|
|
6052
|
-
const h2 = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(ce$1).filter((
|
|
6053
|
-
return h2 || l2.filter((
|
|
6052
|
+
const h2 = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(ce$1).filter((b) => b.type === "column").map((b) => b.id);
|
|
6053
|
+
return h2 || l2.filter((b) => jt(b.spec)).map((b) => b.id);
|
|
6054
6054
|
})());
|
|
6055
6055
|
d.delete(u2.id), [...o.map((h2) => h2.column), ...a.map((h2) => h2.column)].filter((h2) => h2.type === "column").map((h2) => d.delete(h2.id));
|
|
6056
|
-
const
|
|
6056
|
+
const g = l2.filter((h2) => !d.has(h2.id)), p2 = Je(g.map(Fn), c2), v = [
|
|
6057
6057
|
...u2.spec.axesSpec.map((h2) => ({
|
|
6058
6058
|
type: "axis",
|
|
6059
6059
|
id: p$1(h2),
|
|
6060
6060
|
spec: h2
|
|
6061
6061
|
})),
|
|
6062
|
-
...[...l2, ...
|
|
6062
|
+
...[...l2, ...p2].map((h2) => ({
|
|
6063
6063
|
type: "column",
|
|
6064
6064
|
id: h2.id,
|
|
6065
6065
|
spec: h2.spec
|
|
6066
6066
|
}))
|
|
6067
6067
|
];
|
|
6068
|
-
if (!Me([...
|
|
6069
|
-
const
|
|
6070
|
-
Ue(l2,
|
|
6068
|
+
if (!Me([...g, ...p2])) return;
|
|
6069
|
+
const f2 = t.createPTable(
|
|
6070
|
+
Ue(l2, p2, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
|
|
6071
6071
|
);
|
|
6072
6072
|
return {
|
|
6073
|
-
tableSpec:
|
|
6074
|
-
tableHandle:
|
|
6073
|
+
tableSpec: v,
|
|
6074
|
+
tableHandle: f2
|
|
6075
6075
|
};
|
|
6076
6076
|
}
|
|
6077
6077
|
const ImportFileHandleSchema = z$1.string().optional().refine(
|
|
@@ -6251,6 +6251,7 @@
|
|
|
6251
6251
|
{ type: "link", href: "/pl-splash-page", label: "PlSplashPage" },
|
|
6252
6252
|
{ type: "link", href: "/pl-file-input-page", label: "PlFileInputPage" },
|
|
6253
6253
|
{ type: "link", href: "/pl-error-boundary-page", label: "PlErrorBoundaryPage" },
|
|
6254
|
+
{ type: "link", href: "/pl-element-list-page", label: "PlElementList" },
|
|
6254
6255
|
{ type: "link", href: "/errors", label: "Errors" },
|
|
6255
6256
|
{ type: "link", href: "/text-fields", label: "PlTextField" },
|
|
6256
6257
|
{ type: "link", href: "/tabs", label: "PlTabs" },
|