@milaboratories/milaboratories.ui-examples.model 1.1.65 → 1.1.66
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 +15 -15
- package/CHANGELOG.md +6 -0
- package/dist/bundle.js +132 -110
- 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 +4 -4
- package/src/index.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
WARN Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
|
|
2
2
|
|
|
3
|
-
> @milaboratories/milaboratories.ui-examples.model@1.1.
|
|
3
|
+
> @milaboratories/milaboratories.ui-examples.model@1.1.66 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.62 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m14.96 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 362ms
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.51 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m14.87 KB[39m
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 363ms
|
|
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.
|
|
24
|
-
[36mvite
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 3575ms
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m4.33 KB[39m
|
|
23
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.33 KB[39m
|
|
24
|
+
[36mvite v6.3.5 [32mbuilding for production...[36m[39m
|
|
25
25
|
transforming...
|
|
26
|
-
[32m✓[39m
|
|
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 2.
|
|
29
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m190.39 kB[22m[1m[22m[2m │ gzip: 36.92 kB[22m[2m │ map: 407.18 kB[22m
|
|
30
|
+
[2mdist/[22m[36mbundle.js [39m[1m[2m203.46 kB[22m[1m[22m[2m │ gzip: 37.58 kB[22m[2m │ map: 408.73 kB[22m
|
|
31
|
+
[32m✓ built in 2.35s[39m
|
package/CHANGELOG.md
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -2,40 +2,6 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.model = {}));
|
|
3
3
|
})(this, function(exports2) {
|
|
4
4
|
"use strict";
|
|
5
|
-
function getDefaultExportFromCjs(x2) {
|
|
6
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
7
|
-
}
|
|
8
|
-
var canonicalize = function serialize(object) {
|
|
9
|
-
if (typeof object === "number" && isNaN(object)) {
|
|
10
|
-
throw new Error("NaN is not allowed");
|
|
11
|
-
}
|
|
12
|
-
if (typeof object === "number" && !isFinite(object)) {
|
|
13
|
-
throw new Error("Infinity is not allowed");
|
|
14
|
-
}
|
|
15
|
-
if (object === null || typeof object !== "object") {
|
|
16
|
-
return JSON.stringify(object);
|
|
17
|
-
}
|
|
18
|
-
if (object.toJSON instanceof Function) {
|
|
19
|
-
return serialize(object.toJSON());
|
|
20
|
-
}
|
|
21
|
-
if (Array.isArray(object)) {
|
|
22
|
-
const values2 = object.reduce((t, cv, ci) => {
|
|
23
|
-
const comma = ci === 0 ? "" : ",";
|
|
24
|
-
const value = cv === void 0 || typeof cv === "symbol" ? null : cv;
|
|
25
|
-
return `${t}${comma}${serialize(value)}`;
|
|
26
|
-
}, "");
|
|
27
|
-
return `[${values2}]`;
|
|
28
|
-
}
|
|
29
|
-
const values = Object.keys(object).sort().reduce((t, cv) => {
|
|
30
|
-
if (object[cv] === void 0 || typeof object[cv] === "symbol") {
|
|
31
|
-
return t;
|
|
32
|
-
}
|
|
33
|
-
const comma = t.length === 0 ? "" : ",";
|
|
34
|
-
return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;
|
|
35
|
-
}, "");
|
|
36
|
-
return `{${values}}`;
|
|
37
|
-
};
|
|
38
|
-
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalize);
|
|
39
5
|
var util;
|
|
40
6
|
(function(util2) {
|
|
41
7
|
util2.assertEqual = (val) => val;
|
|
@@ -493,11 +459,11 @@
|
|
|
493
459
|
const isValid = (x2) => x2.status === "valid";
|
|
494
460
|
const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
|
|
495
461
|
function __classPrivateFieldGet(receiver, state, kind, f2) {
|
|
496
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
462
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
497
463
|
return state.get(receiver);
|
|
498
464
|
}
|
|
499
465
|
function __classPrivateFieldSet(receiver, state, value, kind, f2) {
|
|
500
|
-
if (typeof state === "function" ? receiver !== state ||
|
|
466
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
501
467
|
return state.set(receiver, value), value;
|
|
502
468
|
}
|
|
503
469
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
@@ -3948,13 +3914,61 @@
|
|
|
3948
3914
|
quotelessJson,
|
|
3949
3915
|
ZodError
|
|
3950
3916
|
});
|
|
3917
|
+
function getDefaultExportFromCjs(x2) {
|
|
3918
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
3919
|
+
}
|
|
3920
|
+
var canonicalize;
|
|
3921
|
+
var hasRequiredCanonicalize;
|
|
3922
|
+
function requireCanonicalize() {
|
|
3923
|
+
if (hasRequiredCanonicalize) return canonicalize;
|
|
3924
|
+
hasRequiredCanonicalize = 1;
|
|
3925
|
+
canonicalize = function serialize(object) {
|
|
3926
|
+
if (typeof object === "number" && isNaN(object)) {
|
|
3927
|
+
throw new Error("NaN is not allowed");
|
|
3928
|
+
}
|
|
3929
|
+
if (typeof object === "number" && !isFinite(object)) {
|
|
3930
|
+
throw new Error("Infinity is not allowed");
|
|
3931
|
+
}
|
|
3932
|
+
if (object === null || typeof object !== "object") {
|
|
3933
|
+
return JSON.stringify(object);
|
|
3934
|
+
}
|
|
3935
|
+
if (object.toJSON instanceof Function) {
|
|
3936
|
+
return serialize(object.toJSON());
|
|
3937
|
+
}
|
|
3938
|
+
if (Array.isArray(object)) {
|
|
3939
|
+
const values2 = object.reduce((t, cv, ci) => {
|
|
3940
|
+
const comma = ci === 0 ? "" : ",";
|
|
3941
|
+
const value = cv === void 0 || typeof cv === "symbol" ? null : cv;
|
|
3942
|
+
return `${t}${comma}${serialize(value)}`;
|
|
3943
|
+
}, "");
|
|
3944
|
+
return `[${values2}]`;
|
|
3945
|
+
}
|
|
3946
|
+
const values = Object.keys(object).sort().reduce((t, cv) => {
|
|
3947
|
+
if (object[cv] === void 0 || typeof object[cv] === "symbol") {
|
|
3948
|
+
return t;
|
|
3949
|
+
}
|
|
3950
|
+
const comma = t.length === 0 ? "" : ",";
|
|
3951
|
+
return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;
|
|
3952
|
+
}, "");
|
|
3953
|
+
return `{${values}}`;
|
|
3954
|
+
};
|
|
3955
|
+
return canonicalize;
|
|
3956
|
+
}
|
|
3957
|
+
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
+
const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3951
3959
|
var I$1 = Object.defineProperty;
|
|
3952
3960
|
var D = (n2, e, t) => e in n2 ? I$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
|
|
3953
3961
|
var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
|
|
3962
|
+
z$2.object({
|
|
3963
|
+
/** Included left border. */
|
|
3964
|
+
from: z$2.number(),
|
|
3965
|
+
/** Excluded right border. */
|
|
3966
|
+
to: z$2.number()
|
|
3967
|
+
});
|
|
3954
3968
|
function w(n2) {
|
|
3955
3969
|
throw new Error("Unexpected object: " + n2);
|
|
3956
3970
|
}
|
|
3957
|
-
function
|
|
3971
|
+
function hn(n2) {
|
|
3958
3972
|
if (!n2 || typeof n2 != "object")
|
|
3959
3973
|
return false;
|
|
3960
3974
|
const e = n2;
|
|
@@ -3971,7 +3985,7 @@
|
|
|
3971
3985
|
return false;
|
|
3972
3986
|
}
|
|
3973
3987
|
}
|
|
3974
|
-
function
|
|
3988
|
+
function gn(n2, e) {
|
|
3975
3989
|
if (n2 !== void 0)
|
|
3976
3990
|
switch (n2.type) {
|
|
3977
3991
|
case "Json":
|
|
@@ -4016,10 +4030,10 @@
|
|
|
4016
4030
|
return false;
|
|
4017
4031
|
}
|
|
4018
4032
|
}
|
|
4019
|
-
function
|
|
4033
|
+
function bn(n2) {
|
|
4020
4034
|
return F$1(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
|
|
4021
4035
|
}
|
|
4022
|
-
function
|
|
4036
|
+
function wn(n2) {
|
|
4023
4037
|
switch (n2.type) {
|
|
4024
4038
|
case "Json": {
|
|
4025
4039
|
const e = Object.entries(n2.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
|
|
@@ -4047,7 +4061,7 @@
|
|
|
4047
4061
|
}
|
|
4048
4062
|
}
|
|
4049
4063
|
}
|
|
4050
|
-
function
|
|
4064
|
+
function Pn(n2) {
|
|
4051
4065
|
switch (n2.type) {
|
|
4052
4066
|
case "Json": {
|
|
4053
4067
|
const e = {};
|
|
@@ -4081,7 +4095,7 @@
|
|
|
4081
4095
|
}
|
|
4082
4096
|
}
|
|
4083
4097
|
}
|
|
4084
|
-
function
|
|
4098
|
+
function $n(n2) {
|
|
4085
4099
|
return {
|
|
4086
4100
|
columnId: n2.id,
|
|
4087
4101
|
spec: n2.spec
|
|
@@ -4094,7 +4108,7 @@
|
|
|
4094
4108
|
function C(n2) {
|
|
4095
4109
|
return n2.map(p$1);
|
|
4096
4110
|
}
|
|
4097
|
-
function
|
|
4111
|
+
function In(n2) {
|
|
4098
4112
|
return ke(p$1(n2));
|
|
4099
4113
|
}
|
|
4100
4114
|
function z$1(n2, e) {
|
|
@@ -4107,7 +4121,7 @@
|
|
|
4107
4121
|
function X(n2, e) {
|
|
4108
4122
|
return n2.name === e.name && z$1(n2.domain, e.domain);
|
|
4109
4123
|
}
|
|
4110
|
-
function
|
|
4124
|
+
function Dn(n2, e) {
|
|
4111
4125
|
return { ...n2, src: h$1(n2.src, e) };
|
|
4112
4126
|
}
|
|
4113
4127
|
function h$1(n2, e) {
|
|
@@ -4151,7 +4165,7 @@
|
|
|
4151
4165
|
function A(n2, e) {
|
|
4152
4166
|
return JSON.stringify([n2, e]);
|
|
4153
4167
|
}
|
|
4154
|
-
class
|
|
4168
|
+
class Vn {
|
|
4155
4169
|
/**
|
|
4156
4170
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4157
4171
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
@@ -4193,9 +4207,9 @@
|
|
|
4193
4207
|
for (const a of this.domainPacks) {
|
|
4194
4208
|
const i = [];
|
|
4195
4209
|
for (const c2 of a) {
|
|
4196
|
-
const
|
|
4197
|
-
if (
|
|
4198
|
-
i.push([c2,
|
|
4210
|
+
const m2 = e.domain[c2];
|
|
4211
|
+
if (m2 !== void 0)
|
|
4212
|
+
i.push([c2, m2]);
|
|
4199
4213
|
else
|
|
4200
4214
|
break n;
|
|
4201
4215
|
}
|
|
@@ -4224,7 +4238,7 @@
|
|
|
4224
4238
|
throw new Error(`Axis index ${i} is out of bounds (0-${e.axesSpec.length - 1})`);
|
|
4225
4239
|
s2.push([i, u2]);
|
|
4226
4240
|
} else {
|
|
4227
|
-
const c2 = e.axesSpec.findIndex((
|
|
4241
|
+
const c2 = e.axesSpec.findIndex((m2) => m2.name === i);
|
|
4228
4242
|
if (c2 === -1)
|
|
4229
4243
|
throw new Error(`Axis with name "${i}" not found in the column specification`);
|
|
4230
4244
|
s2.push([c2, u2]);
|
|
@@ -4245,7 +4259,7 @@
|
|
|
4245
4259
|
return G(this.derive(e, t));
|
|
4246
4260
|
}
|
|
4247
4261
|
}
|
|
4248
|
-
function
|
|
4262
|
+
function Bn(n2, e, t) {
|
|
4249
4263
|
const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4250
4264
|
if (r.domainAnchor !== void 0) {
|
|
4251
4265
|
const s2 = n2[r.domainAnchor];
|
|
@@ -4320,7 +4334,7 @@
|
|
|
4320
4334
|
data: e(n2.data)
|
|
4321
4335
|
};
|
|
4322
4336
|
}
|
|
4323
|
-
function
|
|
4337
|
+
function vn(n2) {
|
|
4324
4338
|
const e = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4325
4339
|
switch (r.type) {
|
|
4326
4340
|
case "column":
|
|
@@ -4409,10 +4423,10 @@
|
|
|
4409
4423
|
}
|
|
4410
4424
|
return true;
|
|
4411
4425
|
}
|
|
4412
|
-
function
|
|
4426
|
+
function _n(n2) {
|
|
4413
4427
|
return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
|
|
4414
4428
|
}
|
|
4415
|
-
function
|
|
4429
|
+
function Mn(n2) {
|
|
4416
4430
|
const e = {
|
|
4417
4431
|
kind: n2.kind,
|
|
4418
4432
|
name: n2.name
|
|
@@ -4427,10 +4441,10 @@
|
|
|
4427
4441
|
}).describe(
|
|
4428
4442
|
"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
|
|
4429
4443
|
).readonly();
|
|
4430
|
-
function
|
|
4444
|
+
function qn(n2) {
|
|
4431
4445
|
return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
|
|
4432
4446
|
}
|
|
4433
|
-
function
|
|
4447
|
+
function zn(n2, e = true) {
|
|
4434
4448
|
if (e)
|
|
4435
4449
|
return {
|
|
4436
4450
|
...n2,
|
|
@@ -4441,38 +4455,45 @@
|
|
|
4441
4455
|
return r;
|
|
4442
4456
|
}
|
|
4443
4457
|
}
|
|
4444
|
-
function
|
|
4458
|
+
function Gn(n2, e) {
|
|
4445
4459
|
return n2.ok ? { ok: true, value: e(n2.value) } : n2;
|
|
4446
4460
|
}
|
|
4447
4461
|
const sn = 24;
|
|
4448
4462
|
z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4449
|
-
function
|
|
4463
|
+
function ee(n2) {
|
|
4450
4464
|
return JSON.parse(n2);
|
|
4451
4465
|
}
|
|
4452
4466
|
var stringify = { exports: {} };
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
if (
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4467
|
+
var hasRequiredStringify;
|
|
4468
|
+
function requireStringify() {
|
|
4469
|
+
if (hasRequiredStringify) return stringify.exports;
|
|
4470
|
+
hasRequiredStringify = 1;
|
|
4471
|
+
(function(module2, exports3) {
|
|
4472
|
+
exports3 = module2.exports = stringify2;
|
|
4473
|
+
exports3.getSerialize = serializer;
|
|
4474
|
+
function stringify2(obj, replacer, spaces, cycleReplacer) {
|
|
4475
|
+
return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
|
|
4476
|
+
}
|
|
4477
|
+
function serializer(replacer, cycleReplacer) {
|
|
4478
|
+
var stack = [], keys = [];
|
|
4479
|
+
if (cycleReplacer == null) cycleReplacer = function(key, value) {
|
|
4480
|
+
if (stack[0] === value) return "[Circular ~]";
|
|
4481
|
+
return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
|
|
4482
|
+
};
|
|
4483
|
+
return function(key, value) {
|
|
4484
|
+
if (stack.length > 0) {
|
|
4485
|
+
var thisPos = stack.indexOf(this);
|
|
4486
|
+
~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
|
|
4487
|
+
~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
|
|
4488
|
+
if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value);
|
|
4489
|
+
} else stack.push(value);
|
|
4490
|
+
return replacer == null ? value : replacer.call(this, key, value);
|
|
4491
|
+
};
|
|
4492
|
+
}
|
|
4493
|
+
})(stringify, stringify.exports);
|
|
4494
|
+
return stringify.exports;
|
|
4495
|
+
}
|
|
4496
|
+
requireStringify();
|
|
4476
4497
|
const l = z$2.object({
|
|
4477
4498
|
type: z$2.literal("PlError"),
|
|
4478
4499
|
name: z$2.string(),
|
|
@@ -5051,7 +5072,7 @@
|
|
|
5051
5072
|
function Tt(t) {
|
|
5052
5073
|
if (t !== void 0) {
|
|
5053
5074
|
if (F$1(t)) return t;
|
|
5054
|
-
if (
|
|
5075
|
+
if (hn(t)) return wn(t);
|
|
5055
5076
|
if (t instanceof O) return ye(t);
|
|
5056
5077
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5057
5078
|
}
|
|
@@ -5121,14 +5142,14 @@
|
|
|
5121
5142
|
this.columns = e;
|
|
5122
5143
|
}
|
|
5123
5144
|
selectColumns(e) {
|
|
5124
|
-
const n2 = typeof e == "function" ? e :
|
|
5145
|
+
const n2 = typeof e == "function" ? e : _n(e);
|
|
5125
5146
|
return this.columns.filter((r) => n2(r.spec));
|
|
5126
5147
|
}
|
|
5127
5148
|
}
|
|
5128
5149
|
function Ot(t) {
|
|
5129
5150
|
if (t)
|
|
5130
5151
|
return t.map((e) => ({
|
|
5131
|
-
type: `split:${
|
|
5152
|
+
type: `split:${In(e.axisId)}`,
|
|
5132
5153
|
label: e.label,
|
|
5133
5154
|
importance: 1e6
|
|
5134
5155
|
// High importance for split filters in labels
|
|
@@ -5192,9 +5213,9 @@
|
|
|
5192
5213
|
if (_e(g)) {
|
|
5193
5214
|
if (!r)
|
|
5194
5215
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5195
|
-
return
|
|
5216
|
+
return _n(Bn(r.anchors, g, n2));
|
|
5196
5217
|
} else
|
|
5197
|
-
return
|
|
5218
|
+
return _n(g);
|
|
5198
5219
|
});
|
|
5199
5220
|
u2 = (g) => c2.some((x2) => x2(g));
|
|
5200
5221
|
}
|
|
@@ -5205,7 +5226,7 @@
|
|
|
5205
5226
|
if (g) {
|
|
5206
5227
|
if (!r)
|
|
5207
5228
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5208
|
-
x2 =
|
|
5229
|
+
x2 = Bn(r.anchors, c2, n2);
|
|
5209
5230
|
} else
|
|
5210
5231
|
x2 = c2;
|
|
5211
5232
|
const p2 = /* @__PURE__ */ new Set(), A2 = [];
|
|
@@ -5215,7 +5236,7 @@
|
|
|
5215
5236
|
if (u2(S.spec)) continue;
|
|
5216
5237
|
if (p2.has(S.id))
|
|
5217
5238
|
throw new Error(`Duplicate column id ${S.id} in provider ${C2.constructor.name}`);
|
|
5218
|
-
const R =
|
|
5239
|
+
const R = Mn(S.spec);
|
|
5219
5240
|
b.has(R) || (p2.add(S.id), b.add(R), A2.push(S));
|
|
5220
5241
|
}
|
|
5221
5242
|
}
|
|
@@ -5230,7 +5251,7 @@
|
|
|
5230
5251
|
if (s2) continue;
|
|
5231
5252
|
return;
|
|
5232
5253
|
}
|
|
5233
|
-
if (!
|
|
5254
|
+
if (!bn(S))
|
|
5234
5255
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${C2.id}`);
|
|
5235
5256
|
const R = It(S), k2 = m2[m2.length - 1];
|
|
5236
5257
|
if (k2 >= S.partitionKeyLength)
|
|
@@ -5249,8 +5270,8 @@
|
|
|
5249
5270
|
V.length = 0;
|
|
5250
5271
|
return;
|
|
5251
5272
|
}
|
|
5252
|
-
for (const
|
|
5253
|
-
_.push(
|
|
5273
|
+
for (const ee2 of J)
|
|
5274
|
+
_.push(ee2), N2(_, G2 + 1), _.pop();
|
|
5254
5275
|
};
|
|
5255
5276
|
if (N2([], 0), V.length === 0)
|
|
5256
5277
|
continue;
|
|
@@ -5260,8 +5281,8 @@
|
|
|
5260
5281
|
const qe = { ...L, axesSpec: j };
|
|
5261
5282
|
for (const _ of V) {
|
|
5262
5283
|
const G2 = _.map(($, J) => {
|
|
5263
|
-
const
|
|
5264
|
-
return { axisIdx:
|
|
5284
|
+
const ee2 = He[J], ze = p$1(L.axesSpec[ee2]), le = W[J], Ye = (le == null ? void 0 : le[$]) ?? String($);
|
|
5285
|
+
return { axisIdx: ee2, axisId: ze, value: $, label: Ye };
|
|
5265
5286
|
});
|
|
5266
5287
|
y.push({
|
|
5267
5288
|
type: "split",
|
|
@@ -5304,7 +5325,7 @@
|
|
|
5304
5325
|
}), w2.push({
|
|
5305
5326
|
id: v,
|
|
5306
5327
|
spec: C2,
|
|
5307
|
-
data: () => c2.type === "split" ?
|
|
5328
|
+
data: () => c2.type === "split" ? Pn(Lt(c2.dataEntries, m2)) : c2.originalColumn.data,
|
|
5308
5329
|
label: g
|
|
5309
5330
|
});
|
|
5310
5331
|
}
|
|
@@ -5341,7 +5362,7 @@
|
|
|
5341
5362
|
return true;
|
|
5342
5363
|
}
|
|
5343
5364
|
function Ie(t) {
|
|
5344
|
-
return Kn$1(t, (e) => e instanceof O ? e.handle :
|
|
5365
|
+
return Kn$1(t, (e) => e instanceof O ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
|
|
5345
5366
|
}
|
|
5346
5367
|
class Dt {
|
|
5347
5368
|
constructor() {
|
|
@@ -5354,28 +5375,28 @@
|
|
|
5354
5375
|
return this.ctx.calculateOptions(e);
|
|
5355
5376
|
}
|
|
5356
5377
|
getOptions(e, n2) {
|
|
5357
|
-
const r = typeof e == "function" ? e :
|
|
5378
|
+
const r = typeof e == "function" ? e : _n(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5358
5379
|
let s2 = {}, o = false;
|
|
5359
5380
|
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" ? Ve(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5360
|
-
ref:
|
|
5381
|
+
ref: zn(a, o),
|
|
5361
5382
|
label: l2
|
|
5362
5383
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5363
|
-
ref:
|
|
5384
|
+
ref: zn(a, o),
|
|
5364
5385
|
label: s2(l2, a)
|
|
5365
5386
|
}));
|
|
5366
5387
|
}
|
|
5367
5388
|
resolveAnchorCtx(e) {
|
|
5368
|
-
if (e instanceof
|
|
5389
|
+
if (e instanceof Vn) return e;
|
|
5369
5390
|
const n2 = {};
|
|
5370
5391
|
for (const [r, i] of Object.entries(e))
|
|
5371
|
-
if (
|
|
5392
|
+
if (qn(i)) {
|
|
5372
5393
|
const s2 = this.getPColumnSpecByRef(i);
|
|
5373
5394
|
if (!s2)
|
|
5374
5395
|
return;
|
|
5375
5396
|
n2[r] = s2;
|
|
5376
5397
|
} else
|
|
5377
5398
|
n2[r] = i;
|
|
5378
|
-
return new
|
|
5399
|
+
return new Vn(n2);
|
|
5379
5400
|
}
|
|
5380
5401
|
/**
|
|
5381
5402
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5468,7 +5489,7 @@
|
|
|
5468
5489
|
ref: n2.ref,
|
|
5469
5490
|
obj: {
|
|
5470
5491
|
...n2.obj,
|
|
5471
|
-
data:
|
|
5492
|
+
data: Gn(
|
|
5472
5493
|
n2.obj.data,
|
|
5473
5494
|
(r) => new O(r, [n2.ref.blockId, n2.ref.name])
|
|
5474
5495
|
)
|
|
@@ -5581,7 +5602,7 @@
|
|
|
5581
5602
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5582
5603
|
*/
|
|
5583
5604
|
selectColumns(e) {
|
|
5584
|
-
const n2 = typeof e == "function" ? e :
|
|
5605
|
+
const n2 = typeof e == "function" ? e : _n(e);
|
|
5585
5606
|
return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
|
|
5586
5607
|
const o = s2;
|
|
5587
5608
|
let a = null;
|
|
@@ -5656,7 +5677,7 @@
|
|
|
5656
5677
|
}
|
|
5657
5678
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5658
5679
|
var i;
|
|
5659
|
-
const n2 = e.some((s2) => !(s2.data instanceof O) ||
|
|
5680
|
+
const n2 = e.some((s2) => !(s2.data instanceof O) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5660
5681
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5661
5682
|
}
|
|
5662
5683
|
// TODO remove all non-PColumn fields
|
|
@@ -5674,8 +5695,8 @@
|
|
|
5674
5695
|
},
|
|
5675
5696
|
filters: e.filters ?? [],
|
|
5676
5697
|
sorting: e.sorting ?? []
|
|
5677
|
-
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(
|
|
5678
|
-
|
|
5698
|
+
} : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
|
|
5699
|
+
Dn(n2, (r) => Ie(r))
|
|
5679
5700
|
);
|
|
5680
5701
|
}
|
|
5681
5702
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5695,7 +5716,7 @@
|
|
|
5695
5716
|
this.ctx.logError(e);
|
|
5696
5717
|
}
|
|
5697
5718
|
}
|
|
5698
|
-
const Y = "1.33.
|
|
5719
|
+
const Y = "1.33.8";
|
|
5699
5720
|
function Kt(t) {
|
|
5700
5721
|
return t.__renderLambda === true;
|
|
5701
5722
|
}
|
|
@@ -5997,7 +6018,7 @@
|
|
|
5997
6018
|
Array.isArray(r) && (r = { filters: r });
|
|
5998
6019
|
const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((d = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Me(t.resultPool);
|
|
5999
6020
|
if (!a) return;
|
|
6000
|
-
const l2 = Be(e.map(
|
|
6021
|
+
const l2 = Be(e.map($n), a);
|
|
6001
6022
|
if (We([...e, ...l2]))
|
|
6002
6023
|
return t.createPTable(
|
|
6003
6024
|
Ge(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
|
|
@@ -6020,11 +6041,11 @@
|
|
|
6020
6041
|
const y = new Set((() => {
|
|
6021
6042
|
var A2, m2;
|
|
6022
6043
|
if (s2 === "inner") return [];
|
|
6023
|
-
const p2 = (m2 = (A2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A2.hiddenColIds) == null ? void 0 : m2.map(
|
|
6044
|
+
const p2 = (m2 = (A2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A2.hiddenColIds) == null ? void 0 : m2.map(ee).filter((v) => v.type === "column").map((v) => v.id);
|
|
6024
6045
|
return p2 || l2.filter((v) => Ht(v.spec)).map((v) => v.id);
|
|
6025
6046
|
})());
|
|
6026
6047
|
y.delete(u2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => y.delete(p2.id));
|
|
6027
|
-
const b = l2.filter((p2) => !y.has(p2.id)), f2 = Be(b.map(
|
|
6048
|
+
const b = l2.filter((p2) => !y.has(p2.id)), f2 = Be(b.map($n), d), w2 = [
|
|
6028
6049
|
...u2.spec.axesSpec.map((p2) => ({
|
|
6029
6050
|
type: "axis",
|
|
6030
6051
|
id: p$1(p2),
|
|
@@ -6179,7 +6200,7 @@
|
|
|
6179
6200
|
data
|
|
6180
6201
|
}
|
|
6181
6202
|
],
|
|
6182
|
-
|
|
6203
|
+
_n({
|
|
6183
6204
|
name: "example"
|
|
6184
6205
|
}),
|
|
6185
6206
|
ctx.uiState.dataTableState.tableState,
|
|
@@ -6221,6 +6242,7 @@
|
|
|
6221
6242
|
{ type: "link", href: "/pl-ag-data-table-v2", label: "PlAgDataTableV2" },
|
|
6222
6243
|
{ type: "link", href: "/pl-splash-page", label: "PlSplashPage" },
|
|
6223
6244
|
{ type: "link", href: "/pl-file-input-page", label: "PlFileInputPage" },
|
|
6245
|
+
{ type: "link", href: "/pl-error-boundary-page", label: "PlErrorBoundaryPage" },
|
|
6224
6246
|
{ type: "link", href: "/errors", label: "Errors" },
|
|
6225
6247
|
{ type: "link", href: "/text-fields", label: "PlTextField" },
|
|
6226
6248
|
{ type: "link", href: "/tabs", label: "PlTabs" },
|