@milaboratories/milaboratories.ui-examples.model 1.2.6 → 1.2.8
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 +14 -0
- package/dist/bundle.js +114 -84
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +32 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +32 -2
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +2 -2
- package/src/index.ts +36 -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.2.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.2.8 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
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
15
|
-
[32mESM[39m [1mdist/index.js.map [22m[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
17
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
18
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[
|
|
19
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m7.45 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m17.04 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 140ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m7.56 KB[39m
|
|
18
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m17.12 KB[39m
|
|
19
|
+
[32mCJS[39m ⚡️ Build success in 140ms
|
|
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 1214ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m2.90 KB[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.90 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[
|
|
30
|
-
[2mdist/[22m[36mbundle.js [39m[1m[
|
|
31
|
-
[32m✓ built in
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m194.56 kB[22m[1m[22m[2m │ gzip: 37.89 kB[22m[2m │ map: 423.25 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m208.01 kB[22m[1m[22m[2m │ gzip: 38.56 kB[22m[2m │ map: 424.88 kB[22m
|
|
31
|
+
[32m✓ built in 764ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @milaboratories/milaboratories.ui-examples.model
|
|
2
2
|
|
|
3
|
+
## 1.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d6334f9: Adopt PlAgDataTableV2 for v2api in desktop
|
|
8
|
+
|
|
9
|
+
## 1.2.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 890240e: PlAgDataTableV2 - support sorting and filtering by label column
|
|
14
|
+
- Updated dependencies [890240e]
|
|
15
|
+
- @platforma-sdk/model@1.40.1
|
|
16
|
+
|
|
3
17
|
## 1.2.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/bundle.js
CHANGED
|
@@ -3955,7 +3955,7 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3958
|
+
const Ve$1 = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
3959
|
var R$1 = Object.defineProperty;
|
|
3960
3960
|
var L = (e, n2, t) => n2 in e ? R$1(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
|
|
3961
3961
|
var d = (e, n2, t) => L(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
|
|
@@ -4109,7 +4109,7 @@
|
|
|
4109
4109
|
return e.map(y);
|
|
4110
4110
|
}
|
|
4111
4111
|
function Te$1(e) {
|
|
4112
|
-
return
|
|
4112
|
+
return Ve$1(y(e));
|
|
4113
4113
|
}
|
|
4114
4114
|
function ee(e, n2) {
|
|
4115
4115
|
if (e === void 0) return n2 === void 0;
|
|
@@ -4157,15 +4157,15 @@
|
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
4159
|
function te$1(e) {
|
|
4160
|
-
return
|
|
4160
|
+
return Ve$1(e);
|
|
4161
4161
|
}
|
|
4162
4162
|
function E(e) {
|
|
4163
|
-
return
|
|
4163
|
+
return Ve$1(y(e));
|
|
4164
4164
|
}
|
|
4165
4165
|
function x$1(e, n2) {
|
|
4166
4166
|
return JSON.stringify([e, n2]);
|
|
4167
4167
|
}
|
|
4168
|
-
|
|
4168
|
+
class Ge {
|
|
4169
4169
|
/**
|
|
4170
4170
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4171
4171
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4258,8 +4258,8 @@
|
|
|
4258
4258
|
deriveS(n2, t) {
|
|
4259
4259
|
return te$1(this.derive(n2, t));
|
|
4260
4260
|
}
|
|
4261
|
-
}
|
|
4262
|
-
function Xe
|
|
4261
|
+
}
|
|
4262
|
+
function Xe(e, n2, t) {
|
|
4263
4263
|
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4264
4264
|
if (r.domainAnchor !== void 0) {
|
|
4265
4265
|
const i = e[r.domainAnchor];
|
|
@@ -4431,7 +4431,7 @@
|
|
|
4431
4431
|
kind: e.kind,
|
|
4432
4432
|
name: e.name
|
|
4433
4433
|
};
|
|
4434
|
-
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)),
|
|
4434
|
+
return e.domain !== void 0 && (n2.domain = e.domain), l$1(e) && (n2.axesSpec = C(e.axesSpec)), Ve$1(n2);
|
|
4435
4435
|
}
|
|
4436
4436
|
z$1.object({
|
|
4437
4437
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4461,7 +4461,7 @@
|
|
|
4461
4461
|
const de$1 = 24;
|
|
4462
4462
|
z$1.string().length(de$1).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4463
4463
|
function hn(e) {
|
|
4464
|
-
return
|
|
4464
|
+
return Ve$1(e);
|
|
4465
4465
|
}
|
|
4466
4466
|
var stringify = { exports: {} };
|
|
4467
4467
|
var hasRequiredStringify;
|
|
@@ -4522,22 +4522,22 @@
|
|
|
4522
4522
|
cause: z$1.lazy(() => n).optional(),
|
|
4523
4523
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4524
4524
|
});
|
|
4525
|
-
var
|
|
4526
|
-
var
|
|
4527
|
-
var k = (t, e, n2) =>
|
|
4525
|
+
var Qe = Object.defineProperty;
|
|
4526
|
+
var Ze = (t, e, n2) => e in t ? Qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4527
|
+
var k = (t, e, n2) => Ze(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4528
4528
|
function ie(t) {
|
|
4529
4529
|
return { type: "Immediate", value: t };
|
|
4530
4530
|
}
|
|
4531
|
-
function
|
|
4531
|
+
function bt() {
|
|
4532
4532
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function je(t) {
|
|
4535
4535
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4536
4536
|
return globalThis.getPlatforma(t);
|
|
4537
4537
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4538
4538
|
throw new Error("Can't get platforma instance.");
|
|
4539
4539
|
}
|
|
4540
|
-
function
|
|
4540
|
+
function vt() {
|
|
4541
4541
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4542
4542
|
}
|
|
4543
4543
|
function v() {
|
|
@@ -4545,13 +4545,13 @@
|
|
|
4545
4545
|
throw new Error("Not in config rendering context");
|
|
4546
4546
|
}
|
|
4547
4547
|
function G(t, e) {
|
|
4548
|
-
const n2 =
|
|
4548
|
+
const n2 = vt();
|
|
4549
4549
|
if (n2 === void 0) return false;
|
|
4550
4550
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4551
4551
|
return n2.callbackRegistry[t] = e, true;
|
|
4552
4552
|
}
|
|
4553
4553
|
const pe = /* @__PURE__ */ new Map();
|
|
4554
|
-
function
|
|
4554
|
+
function Ct(t, e) {
|
|
4555
4555
|
t in v().callbackRegistry || (v().callbackRegistry[t] = (n2) => {
|
|
4556
4556
|
for (const r of pe.get(t))
|
|
4557
4557
|
r(n2);
|
|
@@ -4561,7 +4561,7 @@
|
|
|
4561
4561
|
constructor(e, n2 = (r) => r) {
|
|
4562
4562
|
k(this, "isResolved", false);
|
|
4563
4563
|
k(this, "resolvedValue");
|
|
4564
|
-
this.handle = e, this.postProcess = n2,
|
|
4564
|
+
this.handle = e, this.postProcess = n2, Ct(e, (r) => {
|
|
4565
4565
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4566
4566
|
});
|
|
4567
4567
|
}
|
|
@@ -4801,26 +4801,26 @@
|
|
|
4801
4801
|
return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h]) => o(u2, h));
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
|
-
const
|
|
4805
|
-
const
|
|
4804
|
+
const Je = "staging", $e = "main";
|
|
4805
|
+
const At = "pl7.app/label", Pt = "pl7.app/trace", xt = z$1.object({
|
|
4806
4806
|
type: z$1.string(),
|
|
4807
4807
|
importance: z$1.number().optional(),
|
|
4808
4808
|
id: z$1.string().optional(),
|
|
4809
4809
|
label: z$1.string()
|
|
4810
|
-
}),
|
|
4811
|
-
function
|
|
4810
|
+
}), _t = z$1.array(xt), It = 1e-3, Tt = "__LABEL__", Ie = "__LABEL__@1";
|
|
4811
|
+
function Ue(t, e, n2 = {}) {
|
|
4812
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((d2) => {
|
|
4813
4813
|
var c2, b;
|
|
4814
4814
|
const y2 = e(d2);
|
|
4815
4815
|
let p2, m2, C2;
|
|
4816
4816
|
"spec" in y2 && typeof y2.spec == "object" ? (p2 = y2.spec, m2 = y2.prefixTrace, C2 = y2.suffixTrace) : p2 = y2;
|
|
4817
|
-
const E2 = (c2 = p2.annotations) == null ? void 0 : c2[
|
|
4817
|
+
const E2 = (c2 = p2.annotations) == null ? void 0 : c2[At], _2 = (b = p2.annotations) == null ? void 0 : b[Pt], w = (_2 ? _t.safeParse(JSON.parse(_2)).data : void 0) ?? [], A2 = [
|
|
4818
4818
|
...m2 ?? [],
|
|
4819
4819
|
...w,
|
|
4820
4820
|
...C2 ?? []
|
|
4821
4821
|
];
|
|
4822
4822
|
if (E2 !== void 0) {
|
|
4823
|
-
const T = { label: E2, type:
|
|
4823
|
+
const T = { label: E2, type: Tt, importance: -2 };
|
|
4824
4824
|
n2.addLabelAsSuffix ? A2.push(T) : A2.splice(0, 0, T);
|
|
4825
4825
|
}
|
|
4826
4826
|
const S2 = [], I = /* @__PURE__ */ new Map();
|
|
@@ -4832,7 +4832,7 @@
|
|
|
4832
4832
|
K,
|
|
4833
4833
|
Math.max(
|
|
4834
4834
|
r.get(K) ?? Number.NEGATIVE_INFINITY,
|
|
4835
|
-
V - (A2.length - T) *
|
|
4835
|
+
V - (A2.length - T) * It
|
|
4836
4836
|
)
|
|
4837
4837
|
), S2.push({ ...A2[T], fullType: K, occurrenceIndex: j });
|
|
4838
4838
|
}
|
|
@@ -4881,7 +4881,7 @@
|
|
|
4881
4881
|
}
|
|
4882
4882
|
return h(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4883
4883
|
}
|
|
4884
|
-
const Z = "PColumnData/", oe = Z + "ResourceMap", ae = Z + "Partitioned/ResourceMap", H = Z + "JsonPartitioned", B = Z + "BinaryPartitioned",
|
|
4884
|
+
const Z = "PColumnData/", oe = Z + "ResourceMap", ae = Z + "Partitioned/ResourceMap", H = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", We = Z + "Partitioned/", le = We + "JsonPartitioned", q = We + "BinaryPartitioned";
|
|
4885
4885
|
const ye = (t) => {
|
|
4886
4886
|
if (t.endsWith(".index"))
|
|
4887
4887
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
@@ -4889,7 +4889,7 @@
|
|
|
4889
4889
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4890
4890
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4891
4891
|
};
|
|
4892
|
-
function
|
|
4892
|
+
function Lt(t) {
|
|
4893
4893
|
if (!t) return;
|
|
4894
4894
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4895
4895
|
let i = 0;
|
|
@@ -4935,7 +4935,7 @@
|
|
|
4935
4935
|
}
|
|
4936
4936
|
return { data: r, keyLength: i };
|
|
4937
4937
|
}
|
|
4938
|
-
function
|
|
4938
|
+
function Ft(t) {
|
|
4939
4939
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4940
4940
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4941
4941
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4954,11 +4954,11 @@
|
|
|
4954
4954
|
}
|
|
4955
4955
|
return r.map((i) => Array.from(i.values()));
|
|
4956
4956
|
}
|
|
4957
|
-
function
|
|
4957
|
+
function Et(t) {
|
|
4958
4958
|
if (t === void 0) return;
|
|
4959
4959
|
if (_(t))
|
|
4960
|
-
return
|
|
4961
|
-
const e =
|
|
4960
|
+
return Ft(t);
|
|
4961
|
+
const e = Lt(t);
|
|
4962
4962
|
if (!e) return;
|
|
4963
4963
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4964
4964
|
for (let s2 = 0; s2 < r; ++s2)
|
|
@@ -5069,7 +5069,7 @@
|
|
|
5069
5069
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
function
|
|
5072
|
+
function kt(t) {
|
|
5073
5073
|
if (t !== void 0) {
|
|
5074
5074
|
if (_(t)) return t;
|
|
5075
5075
|
if (Ce$1(t)) return je$1(t);
|
|
@@ -5077,7 +5077,7 @@
|
|
|
5077
5077
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
function
|
|
5080
|
+
function Dt(t, e) {
|
|
5081
5081
|
const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
|
|
5082
5082
|
if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
|
|
5083
5083
|
const { partitionKeyLength: s2 } = t;
|
|
@@ -5137,13 +5137,13 @@
|
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
|
-
function
|
|
5140
|
+
function Rt(t) {
|
|
5141
5141
|
if (!Array.isArray(t)) return false;
|
|
5142
5142
|
if (t.length === 0) return true;
|
|
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 Ot {
|
|
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 Kt(t) {
|
|
5156
5156
|
if (t)
|
|
5157
5157
|
return t.map((e) => ({
|
|
5158
5158
|
type: `split:${Te$1(e.axisId)}`,
|
|
@@ -5161,21 +5161,21 @@
|
|
|
5161
5161
|
// High importance for split filters in labels
|
|
5162
5162
|
}));
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Nt(t) {
|
|
5165
5165
|
if (t)
|
|
5166
5166
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function Vt(t, e) {
|
|
5169
5169
|
if (!e || e.length === 0) return t;
|
|
5170
5170
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5171
|
-
return
|
|
5171
|
+
return Ve$1({ id: t, axisFilters: n2 });
|
|
5172
5172
|
}
|
|
5173
5173
|
function Te(t) {
|
|
5174
5174
|
if (!t || typeof t != "object") return false;
|
|
5175
5175
|
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);
|
|
5176
5176
|
return !!e.domainAnchor || n2 || r;
|
|
5177
5177
|
}
|
|
5178
|
-
function
|
|
5178
|
+
function Mt(t) {
|
|
5179
5179
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5180
5180
|
return [];
|
|
5181
5181
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5186,7 +5186,7 @@
|
|
|
5186
5186
|
class X {
|
|
5187
5187
|
constructor() {
|
|
5188
5188
|
k(this, "defaultProviderStore", []);
|
|
5189
|
-
k(this, "providers", [new
|
|
5189
|
+
k(this, "providers", [new Ot(this.defaultProviderStore)]);
|
|
5190
5190
|
k(this, "axisLabelProviders", []);
|
|
5191
5191
|
}
|
|
5192
5192
|
addColumnProvider(e) {
|
|
@@ -5219,7 +5219,7 @@
|
|
|
5219
5219
|
if (Te(m2)) {
|
|
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
|
|
5222
|
+
return rn(Xe(r.anchors, m2, n2));
|
|
5223
5223
|
} else
|
|
5224
5224
|
return rn(m2);
|
|
5225
5225
|
});
|
|
@@ -5232,7 +5232,7 @@
|
|
|
5232
5232
|
if (m2) {
|
|
5233
5233
|
if (!r)
|
|
5234
5234
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5235
|
-
C2 = Xe
|
|
5235
|
+
C2 = Xe(r.anchors, p2, n2);
|
|
5236
5236
|
} else
|
|
5237
5237
|
C2 = p2;
|
|
5238
5238
|
const E2 = /* @__PURE__ */ new Set(), _2 = [];
|
|
@@ -5247,21 +5247,21 @@
|
|
|
5247
5247
|
}
|
|
5248
5248
|
}
|
|
5249
5249
|
if (_2.length === 0) continue;
|
|
5250
|
-
const w =
|
|
5250
|
+
const w = Mt(p2), A2 = w.length > 0;
|
|
5251
5251
|
for (const S2 of _2) {
|
|
5252
5252
|
if (!l$1(S2.spec)) continue;
|
|
5253
5253
|
const I = S2.spec;
|
|
5254
5254
|
if (A2) {
|
|
5255
|
-
if (
|
|
5255
|
+
if (Rt(S2.data))
|
|
5256
5256
|
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${S2.id}`);
|
|
5257
|
-
const c2 =
|
|
5257
|
+
const c2 = kt(S2.data);
|
|
5258
5258
|
if (!c2) {
|
|
5259
5259
|
if (s2) continue;
|
|
5260
5260
|
return;
|
|
5261
5261
|
}
|
|
5262
5262
|
if (!Ve(c2))
|
|
5263
5263
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${S2.id}`);
|
|
5264
|
-
const b =
|
|
5264
|
+
const b = Et(c2), T = w[w.length - 1];
|
|
5265
5265
|
if (T >= c2.partitionKeyLength)
|
|
5266
5266
|
throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${T}) in column ${I.name}`);
|
|
5267
5267
|
const U = w.map((L2) => this.findLabels(y(I.axesSpec[L2]))), V = [], j = (L2, W) => {
|
|
@@ -5283,20 +5283,20 @@
|
|
|
5283
5283
|
};
|
|
5284
5284
|
if (j([], 0), V.length === 0)
|
|
5285
5285
|
continue;
|
|
5286
|
-
const K = [...I.axesSpec],
|
|
5286
|
+
const K = [...I.axesSpec], qe2 = w.map((L2) => L2);
|
|
5287
5287
|
for (let L2 = w.length - 1; L2 >= 0; L2--)
|
|
5288
5288
|
K.splice(w[L2], 1);
|
|
5289
|
-
const
|
|
5289
|
+
const ze2 = { ...I, axesSpec: K };
|
|
5290
5290
|
for (const L2 of V) {
|
|
5291
5291
|
const W = L2.map((M, J) => {
|
|
5292
|
-
const ee2 =
|
|
5293
|
-
return { axisIdx: ee2, axisId:
|
|
5292
|
+
const ee2 = qe2[J], Ye = y(I.axesSpec[ee2]), ce = U[J], Xe2 = (ce == null ? void 0 : ce[M]) ?? String(M);
|
|
5293
|
+
return { axisIdx: ee2, axisId: Ye, value: M, label: Xe2 };
|
|
5294
5294
|
});
|
|
5295
5295
|
f.push({
|
|
5296
5296
|
type: "split",
|
|
5297
5297
|
originalColumn: S2,
|
|
5298
5298
|
spec: I,
|
|
5299
|
-
adjustedSpec:
|
|
5299
|
+
adjustedSpec: ze2,
|
|
5300
5300
|
dataEntries: c2,
|
|
5301
5301
|
axisFilters: W
|
|
5302
5302
|
});
|
|
@@ -5311,18 +5311,18 @@
|
|
|
5311
5311
|
}
|
|
5312
5312
|
}
|
|
5313
5313
|
if (f.length === 0) return [];
|
|
5314
|
-
const d2 =
|
|
5314
|
+
const d2 = Ue(
|
|
5315
5315
|
f,
|
|
5316
5316
|
(p2) => ({
|
|
5317
5317
|
spec: p2.spec,
|
|
5318
|
-
suffixTrace: p2.type === "split" ?
|
|
5318
|
+
suffixTrace: p2.type === "split" ? Kt(p2.axisFilters) : void 0
|
|
5319
5319
|
}),
|
|
5320
5320
|
l2
|
|
5321
5321
|
), y$1 = [];
|
|
5322
5322
|
for (const { value: p2, label: m2 } of d2) {
|
|
5323
|
-
const { originalColumn: C2, spec: E2 } = p2, _2 = p2.type === "split" ? p2.axisFilters : void 0, w =
|
|
5323
|
+
const { originalColumn: C2, spec: E2 } = p2, _2 = p2.type === "split" ? p2.axisFilters : void 0, w = Nt(_2);
|
|
5324
5324
|
let A2;
|
|
5325
|
-
r ? A2 = r.deriveS(E2, w) : A2 =
|
|
5325
|
+
r ? A2 = r.deriveS(E2, w) : A2 = Vt(C2.id, w);
|
|
5326
5326
|
let S2 = { ...p2.adjustedSpec };
|
|
5327
5327
|
o && (S2 = {
|
|
5328
5328
|
...S2,
|
|
@@ -5333,7 +5333,7 @@
|
|
|
5333
5333
|
}), y$1.push({
|
|
5334
5334
|
id: A2,
|
|
5335
5335
|
spec: S2,
|
|
5336
|
-
data: () => p2.type === "split" ? Ie$1(
|
|
5336
|
+
data: () => p2.type === "split" ? Ie$1(Dt(p2.dataEntries, w)) : p2.originalColumn.data,
|
|
5337
5337
|
label: m2
|
|
5338
5338
|
});
|
|
5339
5339
|
}
|
|
@@ -5405,7 +5405,7 @@
|
|
|
5405
5405
|
function Le(t) {
|
|
5406
5406
|
return nn(t, (e) => e instanceof R ? e.handle : Ce$1(e) ? Fe$1(e, (n2) => n2.handle) : e);
|
|
5407
5407
|
}
|
|
5408
|
-
class
|
|
5408
|
+
class jt {
|
|
5409
5409
|
constructor() {
|
|
5410
5410
|
k(this, "ctx", v());
|
|
5411
5411
|
}
|
|
@@ -5418,7 +5418,7 @@
|
|
|
5418
5418
|
getOptions(e, n2) {
|
|
5419
5419
|
const r = typeof e == "function" ? e : rn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5420
5420
|
let s2 = {}, o = false;
|
|
5421
|
-
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ?
|
|
5421
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Ue(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5422
5422
|
ref: fn(a, o),
|
|
5423
5423
|
label: l2
|
|
5424
5424
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
@@ -5427,7 +5427,7 @@
|
|
|
5427
5427
|
}));
|
|
5428
5428
|
}
|
|
5429
5429
|
resolveAnchorCtx(e) {
|
|
5430
|
-
if (e instanceof Ge
|
|
5430
|
+
if (e instanceof Ge) return e;
|
|
5431
5431
|
const n2 = {};
|
|
5432
5432
|
for (const [r, i] of Object.entries(e))
|
|
5433
5433
|
if (un(i)) {
|
|
@@ -5437,7 +5437,7 @@
|
|
|
5437
5437
|
n2[r] = s2;
|
|
5438
5438
|
} else
|
|
5439
5439
|
n2[r] = i;
|
|
5440
|
-
return new Ge
|
|
5440
|
+
return new Ge(n2);
|
|
5441
5441
|
}
|
|
5442
5442
|
/**
|
|
5443
5443
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5649,7 +5649,7 @@
|
|
|
5649
5649
|
let a = null;
|
|
5650
5650
|
const l2 = this;
|
|
5651
5651
|
return {
|
|
5652
|
-
id:
|
|
5652
|
+
id: Ve$1(i),
|
|
5653
5653
|
spec: o,
|
|
5654
5654
|
get data() {
|
|
5655
5655
|
var u2;
|
|
@@ -5680,7 +5680,7 @@
|
|
|
5680
5680
|
k(this, "_argsCache");
|
|
5681
5681
|
k(this, "_uiStateCache");
|
|
5682
5682
|
k(this, "_activeArgsCache");
|
|
5683
|
-
k(this, "resultPool", new
|
|
5683
|
+
k(this, "resultPool", new jt());
|
|
5684
5684
|
this.ctx = v();
|
|
5685
5685
|
}
|
|
5686
5686
|
get args() {
|
|
@@ -5721,10 +5721,10 @@
|
|
|
5721
5721
|
);
|
|
5722
5722
|
}
|
|
5723
5723
|
get prerun() {
|
|
5724
|
-
return this.getNamedAccessor(
|
|
5724
|
+
return this.getNamedAccessor(Je);
|
|
5725
5725
|
}
|
|
5726
5726
|
get outputs() {
|
|
5727
|
-
return this.getNamedAccessor(
|
|
5727
|
+
return this.getNamedAccessor($e);
|
|
5728
5728
|
}
|
|
5729
5729
|
/**
|
|
5730
5730
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5788,13 +5788,13 @@
|
|
|
5788
5788
|
this.ctx.logError(e);
|
|
5789
5789
|
}
|
|
5790
5790
|
}
|
|
5791
|
-
const z = "1.40.
|
|
5792
|
-
function
|
|
5791
|
+
const z = "1.40.1";
|
|
5792
|
+
function Jt(t) {
|
|
5793
5793
|
return t.__renderLambda === true;
|
|
5794
5794
|
}
|
|
5795
5795
|
function fe(t) {
|
|
5796
5796
|
if (t !== void 0)
|
|
5797
|
-
return
|
|
5797
|
+
return Jt(t) ? t.handle : t;
|
|
5798
5798
|
}
|
|
5799
5799
|
const x = class x2 {
|
|
5800
5800
|
constructor(e, n2, r, i, s2, o, a, l2, u2) {
|
|
@@ -6007,7 +6007,7 @@
|
|
|
6007
6007
|
Object.entries(this._outputs).map(([n2, r]) => [n2, fe(r)])
|
|
6008
6008
|
)
|
|
6009
6009
|
};
|
|
6010
|
-
return
|
|
6010
|
+
return bt() ? je({ sdkVersion: z }) : { config: e };
|
|
6011
6011
|
}
|
|
6012
6012
|
};
|
|
6013
6013
|
k(x, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
@@ -6016,7 +6016,7 @@
|
|
|
6016
6016
|
requiresModelAPIVersion: 1
|
|
6017
6017
|
});
|
|
6018
6018
|
let Fe = x;
|
|
6019
|
-
function
|
|
6019
|
+
function He() {
|
|
6020
6020
|
return {
|
|
6021
6021
|
sourceId: null,
|
|
6022
6022
|
hiddenColIds: null,
|
|
@@ -6025,22 +6025,22 @@
|
|
|
6025
6025
|
sorting: []
|
|
6026
6026
|
};
|
|
6027
6027
|
}
|
|
6028
|
-
function
|
|
6028
|
+
function Ee() {
|
|
6029
6029
|
return {
|
|
6030
|
-
version:
|
|
6030
|
+
version: 4,
|
|
6031
6031
|
stateCache: [],
|
|
6032
|
-
pTableParams:
|
|
6032
|
+
pTableParams: He()
|
|
6033
6033
|
};
|
|
6034
6034
|
}
|
|
6035
6035
|
function $t(t) {
|
|
6036
|
-
return "version" in t
|
|
6036
|
+
return "version" in t || (t = Ee()), t.version === 2 && (t = {
|
|
6037
6037
|
version: 3,
|
|
6038
6038
|
stateCache: t.stateCache.map((e) => ({
|
|
6039
6039
|
...e,
|
|
6040
6040
|
filtersState: []
|
|
6041
6041
|
})),
|
|
6042
|
-
pTableParams:
|
|
6043
|
-
}), t
|
|
6042
|
+
pTableParams: He()
|
|
6043
|
+
}), t.version === 3 && (t = Ee()), t;
|
|
6044
6044
|
}
|
|
6045
6045
|
function Ce(t) {
|
|
6046
6046
|
return t.axesSpec.length === 1 && t.name === "pl7.app/label";
|
|
@@ -6052,7 +6052,7 @@
|
|
|
6052
6052
|
// exactly one axis
|
|
6053
6053
|
}, { dontWaitAllData: true });
|
|
6054
6054
|
}
|
|
6055
|
-
function
|
|
6055
|
+
function ke(t, e) {
|
|
6056
6056
|
const n2 = [], r = [];
|
|
6057
6057
|
for (const a of t)
|
|
6058
6058
|
Ce(a.spec) ? n2.push(a) : r.push(a);
|
|
@@ -6109,7 +6109,7 @@
|
|
|
6109
6109
|
throw Error(`unsupported column data type: ${i}`);
|
|
6110
6110
|
});
|
|
6111
6111
|
}
|
|
6112
|
-
function
|
|
6112
|
+
function De(t) {
|
|
6113
6113
|
let e = t.columns;
|
|
6114
6114
|
const n2 = [];
|
|
6115
6115
|
if (t.coreColumnPredicate) {
|
|
@@ -6146,7 +6146,7 @@
|
|
|
6146
6146
|
if (e.length === 0) return;
|
|
6147
6147
|
const i = e.filter((c2) => !Wt(c2.spec)), s2 = $t(n2), o = Bt(t.resultPool);
|
|
6148
6148
|
if (!o) return;
|
|
6149
|
-
const a =
|
|
6149
|
+
const a = ke(i.map(qe), o), l2 = [...i, ...a], h = [
|
|
6150
6150
|
...he(
|
|
6151
6151
|
[...l2.flatMap((c2) => c2.spec.axesSpec.map((b) => y(b)))],
|
|
6152
6152
|
(c2) => hn(c2)
|
|
@@ -6167,7 +6167,7 @@
|
|
|
6167
6167
|
).filter((c2) => {
|
|
6168
6168
|
const b = g2(c2.column);
|
|
6169
6169
|
return b || t.logWarn(`Sorting ${JSON.stringify(c2)} does not match provided columns, skipping`), b;
|
|
6170
|
-
}), C2 =
|
|
6170
|
+
}), C2 = De({
|
|
6171
6171
|
columns: i,
|
|
6172
6172
|
labelColumns: a,
|
|
6173
6173
|
coreJoinType: d2,
|
|
@@ -6183,9 +6183,9 @@
|
|
|
6183
6183
|
var b;
|
|
6184
6184
|
return ((b = c2.spec.annotations) == null ? void 0 : b["pl7.app/isLinkerColumn"]) === "true";
|
|
6185
6185
|
}).forEach((c2) => _2.delete(c2.id)), [...y$1.map((c2) => c2.column), ...p2.map((c2) => c2.column), ...m2.map((c2) => c2.column)].filter((c2) => c2.type === "column").forEach((c2) => _2.delete(c2.id));
|
|
6186
|
-
const w = i.filter((c2) => !_2.has(c2.id)), A2 =
|
|
6186
|
+
const w = i.filter((c2) => !_2.has(c2.id)), A2 = ke(w.map(qe), o);
|
|
6187
6187
|
if (!Ut([...w, ...A2])) return;
|
|
6188
|
-
const S2 =
|
|
6188
|
+
const S2 = De({
|
|
6189
6189
|
columns: w,
|
|
6190
6190
|
labelColumns: A2,
|
|
6191
6191
|
coreJoinType: d2,
|
|
@@ -6224,7 +6224,10 @@
|
|
|
6224
6224
|
handles: z$1.array(ImportFileHandleSchema)
|
|
6225
6225
|
});
|
|
6226
6226
|
const platforma = Fe.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({
|
|
6227
|
-
|
|
6227
|
+
dataTableV2: {
|
|
6228
|
+
sourceId: "source_1",
|
|
6229
|
+
state: Ee()
|
|
6230
|
+
},
|
|
6228
6231
|
dynamicSections: []
|
|
6229
6232
|
}).argsValid((ctx) => {
|
|
6230
6233
|
if (ctx.args.numbers.length === 5) {
|
|
@@ -6333,6 +6336,33 @@
|
|
|
6333
6336
|
val: v2 + 0.1
|
|
6334
6337
|
};
|
|
6335
6338
|
})
|
|
6339
|
+
},
|
|
6340
|
+
{
|
|
6341
|
+
id: "labelColumn",
|
|
6342
|
+
spec: {
|
|
6343
|
+
kind: "PColumn",
|
|
6344
|
+
valueType: "Int",
|
|
6345
|
+
name: "pl7.app/label",
|
|
6346
|
+
annotations: {
|
|
6347
|
+
"pl7.app/label": "Int axis labels"
|
|
6348
|
+
},
|
|
6349
|
+
axesSpec: [
|
|
6350
|
+
{
|
|
6351
|
+
type: "Int",
|
|
6352
|
+
name: "index",
|
|
6353
|
+
annotations: {
|
|
6354
|
+
"pl7.app/label": "Int axis"
|
|
6355
|
+
}
|
|
6356
|
+
}
|
|
6357
|
+
]
|
|
6358
|
+
},
|
|
6359
|
+
data: times(rowCount, (i) => {
|
|
6360
|
+
const v2 = i + 1;
|
|
6361
|
+
return {
|
|
6362
|
+
key: [v2],
|
|
6363
|
+
val: 1e5 - v2
|
|
6364
|
+
};
|
|
6365
|
+
})
|
|
6336
6366
|
}
|
|
6337
6367
|
];
|
|
6338
6368
|
for (let j = 3; j < 10; ++j) {
|
|
@@ -6368,7 +6398,7 @@
|
|
|
6368
6398
|
return Jn(
|
|
6369
6399
|
ctx,
|
|
6370
6400
|
columns,
|
|
6371
|
-
ctx.uiState.
|
|
6401
|
+
ctx.uiState.dataTableV2.state
|
|
6372
6402
|
);
|
|
6373
6403
|
}).title((ctx) => {
|
|
6374
6404
|
if (ctx.args.numbers.length === 5) {
|