@milaboratories/milaboratories.ui-examples.model 1.1.0 → 1.1.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @milaboratories/milaboratories.ui-examples.model@1.1.0 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.1.1 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
3
3
  > tsup && vite build && block-tools build-model
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,14 +10,14 @@
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- ESM dist/index.js 2.34 KB
14
- ESM dist/index.js.map 5.55 KB
15
- ESM ⚡️ Build success in 75ms
16
13
  CJS dist/index.cjs 2.39 KB
17
14
  CJS dist/index.cjs.map 5.59 KB
18
- CJS ⚡️ Build success in 75ms
15
+ CJS ⚡️ Build success in 68ms
16
+ ESM dist/index.js 2.34 KB
17
+ ESM dist/index.js.map 5.55 KB
18
+ ESM ⚡️ Build success in 67ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 890ms
20
+ DTS ⚡️ Build success in 863ms
21
21
  DTS dist/index.d.cts 1.27 KB
22
22
  DTS dist/index.d.ts 1.27 KB
23
23
  vite v5.4.11 building for production...
@@ -25,6 +25,6 @@ transforming...
25
25
  ✓ 4 modules transformed.
26
26
  rendering chunks...
27
27
  computing gzip size...
28
- dist/bundle.js 142.27 kB │ gzip: 25.73 kB │ map: 308.45 kB
29
- dist/bundle.js 152.35 kB │ gzip: 26.19 kB │ map: 309.57 kB
30
- ✓ built in 419ms
28
+ dist/bundle.js 142.64 kB │ gzip: 25.77 kB │ map: 309.02 kB
29
+ dist/bundle.js 152.74 kB │ gzip: 26.24 kB │ map: 310.14 kB
30
+ ✓ built in 430ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1c8631b]
8
+ - @platforma-sdk/model@1.20.0
9
+
3
10
  ## 1.1.0
4
11
 
5
12
  ### Minor Changes
package/dist/bundle.js CHANGED
@@ -3974,7 +3974,7 @@
3974
3974
  if (!U$1(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
3975
3975
  return t;
3976
3976
  }
3977
- function Z(t, n) {
3977
+ function Z$1(t, n) {
3978
3978
  return t === void 0 ? void 0 : {
3979
3979
  ...t,
3980
3980
  data: n(t.data)
@@ -4003,10 +4003,10 @@
4003
4003
  function v(t, n) {
4004
4004
  return t.ok ? { ok: true, value: n(t.value) } : t;
4005
4005
  }
4006
- var ct = Object.defineProperty;
4007
- var pt = (e, t, n) => t in e ? ct(e, t, { enumerable: true, configurable: true, writable: true, value: n }) : e[t] = n;
4008
- var w = (e, t, n) => pt(e, typeof t != "symbol" ? t + "" : t, n);
4009
- function k(e) {
4006
+ var pt = Object.defineProperty;
4007
+ var dt = (e, t, n) => t in e ? pt(e, t, { enumerable: true, configurable: true, writable: true, value: n }) : e[t] = n;
4008
+ var w = (e, t, n) => dt(e, typeof t != "symbol" ? t + "" : t, n);
4009
+ function D(e) {
4010
4010
  return { type: "Immediate", value: e };
4011
4011
  }
4012
4012
  function vt() {
@@ -4034,16 +4034,16 @@
4034
4034
  const N = /* @__PURE__ */ new Map();
4035
4035
  function St(e, t) {
4036
4036
  e in u().callbackRegistry || (u().callbackRegistry[e] = (n) => {
4037
- for (const s of N.get(e))
4038
- s(n);
4037
+ for (const r of N.get(e))
4038
+ r(n);
4039
4039
  }, N.set(e, [])), N.get(e).push(t);
4040
4040
  }
4041
4041
  class g {
4042
- constructor(t, n = (s) => s) {
4042
+ constructor(t, n = (r) => r) {
4043
4043
  w(this, "isResolved", false);
4044
4044
  w(this, "resolvedValue");
4045
- this.handle = t, this.postProcess = n, St(t, (s) => {
4046
- this.resolvedValue = n(s), this.isResolved = true;
4045
+ this.handle = t, this.postProcess = n, St(t, (r) => {
4046
+ this.resolvedValue = n(r), this.isResolved = true;
4047
4047
  });
4048
4048
  }
4049
4049
  map(t) {
@@ -4051,15 +4051,15 @@
4051
4051
  }
4052
4052
  mapDefined(t) {
4053
4053
  return new g(this.handle, (n) => {
4054
- const s = this.postProcess(n);
4055
- return s ? t(s) : void 0;
4054
+ const r = this.postProcess(n);
4055
+ return r ? t(r) : void 0;
4056
4056
  });
4057
4057
  }
4058
4058
  toJSON() {
4059
4059
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
4060
4060
  }
4061
4061
  }
4062
- function X(e) {
4062
+ function Q(e) {
4063
4063
  return e === void 0 ? void 0 : new _(e);
4064
4064
  }
4065
4065
  class _ {
@@ -4068,27 +4068,27 @@
4068
4068
  }
4069
4069
  resolve(...t) {
4070
4070
  const n = t.map(
4071
- (s) => ({
4071
+ (r) => ({
4072
4072
  assertFieldType: "Input",
4073
- ...typeof s == "string" ? { field: s } : s
4073
+ ...typeof r == "string" ? { field: r } : r
4074
4074
  })
4075
4075
  );
4076
4076
  return this.resolveWithCommon({}, ...n);
4077
4077
  }
4078
4078
  resolveOutput(...t) {
4079
4079
  const n = t.map(
4080
- (s) => ({
4080
+ (r) => ({
4081
4081
  assertFieldType: "Output",
4082
- ...typeof s == "string" ? { field: s } : s
4082
+ ...typeof r == "string" ? { field: r } : r
4083
4083
  })
4084
4084
  );
4085
4085
  return this.resolveWithCommon({}, ...n);
4086
4086
  }
4087
4087
  resolveInput(...t) {
4088
4088
  const n = t.map(
4089
- (s) => ({
4089
+ (r) => ({
4090
4090
  assertFieldType: "Input",
4091
- ...typeof s == "string" ? { field: s } : s
4091
+ ...typeof r == "string" ? { field: r } : r
4092
4092
  })
4093
4093
  );
4094
4094
  return this.resolveWithCommon({}, ...n);
@@ -4097,7 +4097,7 @@
4097
4097
  return this.resolveWithCommon({}, ...t);
4098
4098
  }
4099
4099
  resolveWithCommon(t, ...n) {
4100
- return X(u().resolveWithCommon(this.handle, t, ...n));
4100
+ return Q(u().resolveWithCommon(this.handle, t, ...n));
4101
4101
  }
4102
4102
  get resourceType() {
4103
4103
  return u().getResourceType(this.handle);
@@ -4115,7 +4115,7 @@
4115
4115
  return u().getIsFinal(this.handle);
4116
4116
  }
4117
4117
  getError() {
4118
- return X(u().getError(this.handle));
4118
+ return Q(u().getError(this.handle));
4119
4119
  }
4120
4120
  listInputFields() {
4121
4121
  return u().listInputFields(this.handle);
@@ -4152,8 +4152,8 @@
4152
4152
  *
4153
4153
  */
4154
4154
  getPColumns(t = false, n = "") {
4155
- const s = this.parsePObjectCollection(t, n);
4156
- return s === void 0 ? void 0 : Object.entries(s).map(([, i]) => {
4155
+ const r = this.parsePObjectCollection(t, n);
4156
+ return r === void 0 ? void 0 : Object.entries(r).map(([, i]) => {
4157
4157
  if (!U$1(i)) throw new Error(`not a PColumn (kind = ${i.spec.kind})`);
4158
4158
  return i;
4159
4159
  });
@@ -4162,16 +4162,16 @@
4162
4162
  *
4163
4163
  */
4164
4164
  parsePObjectCollection(t = false, n = "") {
4165
- const s = u().parsePObjectCollection(
4165
+ const r = u().parsePObjectCollection(
4166
4166
  this.handle,
4167
4167
  t,
4168
4168
  n
4169
4169
  );
4170
- if (s === void 0) return;
4171
- const r = {};
4172
- for (const [i, o2] of Object.entries(s))
4173
- r[i] = Z(o2, (l) => new _(l));
4174
- return r;
4170
+ if (r === void 0) return;
4171
+ const s = {};
4172
+ for (const [i, o2] of Object.entries(r))
4173
+ s[i] = Z$1(o2, (l) => new _(l));
4174
+ return s;
4175
4175
  }
4176
4176
  getFileContentAsBase64() {
4177
4177
  return new g(u().getBlobContentAsBase64(this.handle));
@@ -4245,29 +4245,29 @@
4245
4245
  }
4246
4246
  }
4247
4247
  mapFields(t, n) {
4248
- const { fieldType: s, requireLocked: r, skipUnresolved: i } = {
4248
+ const { fieldType: r, requireLocked: s, skipUnresolved: i } = {
4249
4249
  fieldType: "Input",
4250
4250
  requireLocked: true,
4251
4251
  skipUnresolved: false,
4252
4252
  ...n
4253
4253
  }, o2 = t;
4254
- if (r && (s === "Input" && !this.getInputsLocked() || s === "Output" && !this.getOutputsLocked()))
4254
+ if (s && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
4255
4255
  return;
4256
- let a = (s === "Input" ? this.listInputFields() : s === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4257
- (c) => [c, this.resolve({ field: c, assertFieldType: s })]
4256
+ let a = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4257
+ (c) => [c, this.resolve({ field: c, assertFieldType: r })]
4258
4258
  );
4259
4259
  return i && (a = a.filter((c) => c[1] !== void 0)), a.map(([c, f2]) => o2(c, f2));
4260
4260
  }
4261
4261
  }
4262
- const rt = "staging", it = "main";
4262
+ const it = "staging", ot = "main";
4263
4263
  const It = "pl7.app/label", Pt = "pl7.app/trace", Rt = z$1.object({
4264
4264
  type: z$1.string(),
4265
4265
  importance: z$1.number().optional(),
4266
4266
  id: z$1.string().optional(),
4267
4267
  label: z$1.string()
4268
- }), Ft = z$1.array(Rt), Tt = 1e-3, Ot = "__LABEL__", Q = "__LABEL__@1";
4269
- function Dt(e, t, n = {}) {
4270
- const s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = e.map((p) => {
4268
+ }), Ft = z$1.array(Rt), Tt = 1e-3, Ot = "__LABEL__", Z = "__LABEL__@1";
4269
+ function kt(e, t, n = {}) {
4270
+ const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i = e.map((p) => {
4271
4271
  var q, z2;
4272
4272
  const m = t(p), y = (q = m.annotations) == null ? void 0 : q[It], T2 = (z2 = m.annotations) == null ? void 0 : z2[Pt], b = (T2 ? Ft.safeParse(JSON.parse(T2)).data : void 0) ?? [];
4273
4273
  if (y) {
@@ -4276,14 +4276,14 @@
4276
4276
  }
4277
4277
  const E = [], W = /* @__PURE__ */ new Map();
4278
4278
  for (let v2 = b.length - 1; v2 >= 0; --v2) {
4279
- const { type: V } = b[v2], ut = b[v2].importance ?? 0, j = (W.get(V) ?? 0) + 1;
4279
+ const { type: V } = b[v2], ct = b[v2].importance ?? 0, j = (W.get(V) ?? 0) + 1;
4280
4280
  W.set(V, j);
4281
4281
  const I = `${V}@${j}`;
4282
- r.set(I, (r.get(I) ?? 0) + 1), s.set(
4282
+ s.set(I, (s.get(I) ?? 0) + 1), r.set(
4283
4283
  I,
4284
4284
  Math.max(
4285
- s.get(I) ?? Number.NEGATIVE_INFINITY,
4286
- ut - (b.length - v2) * Tt
4285
+ r.get(I) ?? Number.NEGATIVE_INFINITY,
4286
+ ct - (b.length - v2) * Tt
4287
4287
  )
4288
4288
  ), E.push({ ...b[v2], fullType: I, occurenceIndex: j });
4289
4289
  }
@@ -4293,10 +4293,10 @@
4293
4293
  label: y,
4294
4294
  fullTrace: E
4295
4295
  };
4296
- }), o2 = [], l = [], a = [...s];
4296
+ }), o2 = [], l = [], a = [...r];
4297
4297
  a.sort(([, p], [, m]) => m - p);
4298
4298
  for (const [p] of a)
4299
- p.endsWith("@1") || r.get(p) === e.length ? o2.push(p) : l.push(p);
4299
+ p.endsWith("@1") || s.get(p) === e.length ? o2.push(p) : l.push(p);
4300
4300
  const c = (p) => i.map((m) => {
4301
4301
  const y = m.fullTrace.filter((b) => p.has(b.fullType)).map((b) => b.label), T2 = n.separator ?? " / ";
4302
4302
  return {
@@ -4306,12 +4306,12 @@
4306
4306
  });
4307
4307
  if (o2.length === 0) {
4308
4308
  if (l.length !== 0) throw new Error("Assertion error.");
4309
- return c(new Set(Q));
4309
+ return c(new Set(Z));
4310
4310
  }
4311
4311
  let f2 = 0, S2 = 0;
4312
4312
  for (; f2 < o2.length; ) {
4313
4313
  const p = /* @__PURE__ */ new Set();
4314
- n.includeNativeLabel && p.add(Q);
4314
+ n.includeNativeLabel && p.add(Z);
4315
4315
  for (let y = 0; y < f2; ++y) p.add(o2[y]);
4316
4316
  p.add(o2[S2]);
4317
4317
  const m = c(p);
@@ -4320,12 +4320,12 @@
4320
4320
  }
4321
4321
  return c(/* @__PURE__ */ new Set([...o2, ...l]));
4322
4322
  }
4323
- class kt {
4323
+ class Dt {
4324
4324
  constructor() {
4325
4325
  w(this, "ctx", u());
4326
4326
  w(this, "defaultLabelFn", (t, n) => {
4327
- var s;
4328
- return ((s = t.annotations) == null ? void 0 : s["pl7.app/label"]) ?? "Unlabelled";
4327
+ var r;
4328
+ return ((r = t.annotations) == null ? void 0 : r["pl7.app/label"]) ?? "Unlabelled";
4329
4329
  });
4330
4330
  }
4331
4331
  /**
@@ -4335,13 +4335,13 @@
4335
4335
  return this.ctx.calculateOptions(t);
4336
4336
  }
4337
4337
  getOptions(t, n) {
4338
- const s = this.getSpecs().entries.filter((r) => t(r.obj));
4339
- return typeof n == "object" || typeof n > "u" ? Dt(s, (r) => r.obj, n ?? {}).map(({ value: { ref: r }, label: i }) => ({
4340
- ref: r,
4338
+ const r = this.getSpecs().entries.filter((s) => t(s.obj));
4339
+ return typeof n == "object" || typeof n > "u" ? kt(r, (s) => s.obj, n ?? {}).map(({ value: { ref: s }, label: i }) => ({
4340
+ ref: s,
4341
4341
  label: i
4342
- })) : s.map((r) => ({
4343
- ref: r.ref,
4344
- label: n(r.obj, r.ref)
4342
+ })) : r.map((s) => ({
4343
+ ref: s.ref,
4344
+ label: n(s.obj, s.ref)
4345
4345
  }));
4346
4346
  }
4347
4347
  /**
@@ -4377,7 +4377,7 @@
4377
4377
  ref: n.ref,
4378
4378
  obj: {
4379
4379
  ...n.obj,
4380
- data: v(n.obj.data, (s) => new _(s))
4380
+ data: v(n.obj.data, (r) => new _(r))
4381
4381
  }
4382
4382
  }))
4383
4383
  };
@@ -4398,10 +4398,10 @@
4398
4398
  getDataByRef(t) {
4399
4399
  var n;
4400
4400
  return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (n = this.getData().entries.find(
4401
- (s) => s.ref.blockId === t.blockId && s.ref.name === t.name
4402
- )) == null ? void 0 : n.obj : Z(
4401
+ (r) => r.ref.blockId === t.blockId && r.ref.name === t.name
4402
+ )) == null ? void 0 : n.obj : Z$1(
4403
4403
  this.ctx.getDataFromResultPoolByRef(t.blockId, t.name),
4404
- (s) => new _(s)
4404
+ (r) => new _(r)
4405
4405
  );
4406
4406
  }
4407
4407
  /**
@@ -4414,6 +4414,18 @@
4414
4414
  if (n)
4415
4415
  return Y(n);
4416
4416
  }
4417
+ /**
4418
+ * Returns spec associated with the ref ensuring that it is a p-column spec.
4419
+ * @param ref a Ref
4420
+ * @returns p-column spec associated with the ref
4421
+ */
4422
+ getPColumnSpecByRef(t) {
4423
+ const n = this.getSpecByRef(t);
4424
+ if (n) {
4425
+ if (!o(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
4426
+ return n;
4427
+ }
4428
+ }
4417
4429
  /**
4418
4430
  * @param ref a Ref
4419
4431
  * @returns object spec associated with the ref
@@ -4421,7 +4433,7 @@
4421
4433
  getSpecByRef(t) {
4422
4434
  var n;
4423
4435
  return typeof this.ctx.getSpecFromResultPoolByRef > "u" ? (n = this.getSpecs().entries.find(
4424
- (s) => s.ref.blockId === t.blockId && s.ref.name === t.name
4436
+ (r) => r.ref.blockId === t.blockId && r.ref.name === t.name
4425
4437
  )) == null ? void 0 : n.obj : this.ctx.getSpecFromResultPoolByRef(t.blockId, t.name);
4426
4438
  }
4427
4439
  /**
@@ -4431,17 +4443,17 @@
4431
4443
  */
4432
4444
  findDataWithCompatibleSpec(t) {
4433
4445
  const n = [];
4434
- t: for (const s of this.getData().entries) {
4435
- if (!o(s.obj.spec))
4446
+ t: for (const r of this.getData().entries) {
4447
+ if (!o(r.obj.spec))
4436
4448
  continue;
4437
- const r = s.obj.spec;
4438
- if (t.name === r.name && t.valueType === r.valueType && t.axesSpec.length === r.axesSpec.length && $(t.domain, r.domain)) {
4449
+ const s = r.obj.spec;
4450
+ if (t.name === s.name && t.valueType === s.valueType && t.axesSpec.length === s.axesSpec.length && $(t.domain, s.domain)) {
4439
4451
  for (let i = 0; i < t.axesSpec.length; ++i) {
4440
- const o2 = t.axesSpec[i], l = r.axesSpec[i];
4452
+ const o2 = t.axesSpec[i], l = s.axesSpec[i];
4441
4453
  if (o2.name !== l.name || o2.type !== l.type || !$(o2.domain, l.domain))
4442
4454
  continue t;
4443
4455
  }
4444
- n.push(s.obj);
4456
+ n.push(r.obj);
4445
4457
  }
4446
4458
  }
4447
4459
  return n;
@@ -4454,12 +4466,12 @@
4454
4466
  if (e[n] !== t[n]) return false;
4455
4467
  return true;
4456
4468
  }
4457
- class D {
4469
+ class k {
4458
4470
  constructor() {
4459
4471
  w(this, "ctx");
4460
4472
  w(this, "args");
4461
4473
  w(this, "uiState");
4462
- w(this, "resultPool", new kt());
4474
+ w(this, "resultPool", new Dt());
4463
4475
  this.ctx = u(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : void 0;
4464
4476
  }
4465
4477
  getNamedAccessor(t) {
@@ -4467,7 +4479,7 @@
4467
4479
  return n ? new _(n) : void 0;
4468
4480
  }
4469
4481
  get prerun() {
4470
- return this.getNamedAccessor(rt);
4482
+ return this.getNamedAccessor(it);
4471
4483
  }
4472
4484
  /**
4473
4485
  * @deprecated use prerun
@@ -4482,7 +4494,7 @@
4482
4494
  return this.precalc;
4483
4495
  }
4484
4496
  get outputs() {
4485
- return this.getNamedAccessor(it);
4497
+ return this.getNamedAccessor(ot);
4486
4498
  }
4487
4499
  /**
4488
4500
  * @deprecated use outputs
@@ -4496,29 +4508,29 @@
4496
4508
  */
4497
4509
  findLabels(t) {
4498
4510
  const n = this.resultPool.getData();
4499
- for (const s of n.entries) {
4500
- if (!U$1(s.obj)) continue;
4501
- const r = s.obj.spec;
4502
- if (r.name === "pl7.app/label" && r.axesSpec.length === 1 && r.axesSpec[0].name === t.name && r.axesSpec[0].type === t.type && $(t.domain, r.axesSpec[0].domain)) {
4503
- if (s.obj.data.resourceType.name !== "PColumnData/Json")
4504
- throw Error(`Expected JSON column for labels, got: ${s.obj.data.resourceType.name}`);
4505
- return new Map(
4511
+ for (const r of n.entries) {
4512
+ if (!U$1(r.obj)) continue;
4513
+ const s = r.obj.spec;
4514
+ if (s.name === "pl7.app/label" && s.axesSpec.length === 1 && s.axesSpec[0].name === t.name && s.axesSpec[0].type === t.type && $(t.domain, s.axesSpec[0].domain)) {
4515
+ if (r.obj.data.resourceType.name !== "PColumnData/Json")
4516
+ throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
4517
+ return Object.fromEntries(
4506
4518
  Object.entries(
4507
- s.obj.data.getDataAsJson().data
4519
+ r.obj.data.getDataAsJson().data
4508
4520
  ).map((o2) => [JSON.parse(o2[0])[0], o2[1]])
4509
4521
  );
4510
4522
  }
4511
4523
  }
4512
4524
  }
4513
4525
  verifyInlineColumnsSupport(t) {
4514
- var r;
4515
- const n = t.some((i) => !(i.data instanceof _)), s = ((r = this.ctx.featureFlags) == null ? void 0 : r.inlineColumnsSupport) === true;
4516
- if (n && !s) throw Error("inline columns not supported");
4526
+ var s;
4527
+ const n = t.some((i) => !(i.data instanceof _)), r = ((s = this.ctx.featureFlags) == null ? void 0 : s.inlineColumnsSupport) === true;
4528
+ if (n && !r) throw Error("inline columns not supported");
4517
4529
  }
4518
4530
  createPFrame(t) {
4519
- return this.verifyInlineColumnsSupport(t), this.ctx.createPFrame(t.map((n) => Z(
4531
+ return this.verifyInlineColumnsSupport(t), this.ctx.createPFrame(t.map((n) => Z$1(
4520
4532
  n,
4521
- (s) => s instanceof _ ? s.handle : s
4533
+ (r) => r instanceof _ ? r.handle : r
4522
4534
  )));
4523
4535
  }
4524
4536
  createPTable(t) {
@@ -4526,13 +4538,13 @@
4526
4538
  return "columns" in t ? n = {
4527
4539
  src: {
4528
4540
  type: "full",
4529
- entries: t.columns.map((s) => ({ type: "column", column: s }))
4541
+ entries: t.columns.map((r) => ({ type: "column", column: r }))
4530
4542
  },
4531
4543
  filters: t.filters ?? [],
4532
4544
  sorting: t.sorting ?? []
4533
- } : n = t, this.verifyInlineColumnsSupport(T(n.src)), this.ctx.createPTable(M(n, (s) => Z(
4534
- s,
4535
- (r) => r instanceof _ ? r.handle : r
4545
+ } : n = t, this.verifyInlineColumnsSupport(T(n.src)), this.ctx.createPTable(M(n, (r) => Z$1(
4546
+ r,
4547
+ (s) => s instanceof _ ? s.handle : s
4536
4548
  )));
4537
4549
  }
4538
4550
  /** @deprecated scheduled for removal from SDK */
@@ -4544,7 +4556,7 @@
4544
4556
  return this.ctx.getCurrentUnstableMarker();
4545
4557
  }
4546
4558
  }
4547
- const P = "1.19.0";
4559
+ const P = "1.20.0";
4548
4560
  function xt(e) {
4549
4561
  return e.__renderLambda === true;
4550
4562
  }
@@ -4553,8 +4565,8 @@
4553
4565
  return xt(e) ? e.handle : e;
4554
4566
  }
4555
4567
  class h {
4556
- constructor(t, n, s, r, i, o2, l) {
4557
- this._renderingMode = t, this._initialArgs = n, this._initialUiState = s, this._outputs = r, this._inputsValid = i, this._sections = o2, this._title = l;
4568
+ constructor(t, n, r, s, i, o2, l) {
4569
+ this._renderingMode = t, this._initialArgs = n, this._initialUiState = r, this._outputs = s, this._inputsValid = i, this._sections = o2, this._title = l;
4558
4570
  }
4559
4571
  static create(t = "Heavy") {
4560
4572
  return new h(
@@ -4562,15 +4574,15 @@
4562
4574
  void 0,
4563
4575
  {},
4564
4576
  {},
4565
- k(true),
4566
- k([]),
4577
+ D(true),
4578
+ D([]),
4567
4579
  void 0
4568
4580
  );
4569
4581
  }
4570
- output(t, n, s = {}) {
4582
+ output(t, n, r = {}) {
4571
4583
  if (typeof n == "function") {
4572
- const r = `output#${t}`;
4573
- return O(r, () => n(new D())), new h(
4584
+ const s = `output#${t}`;
4585
+ return O(s, () => n(new k())), new h(
4574
4586
  this._renderingMode,
4575
4587
  this._initialArgs,
4576
4588
  this._initialUiState,
@@ -4578,8 +4590,8 @@
4578
4590
  ...this._outputs,
4579
4591
  [t]: {
4580
4592
  __renderLambda: true,
4581
- handle: r,
4582
- ...s
4593
+ handle: s,
4594
+ ...r
4583
4595
  }
4584
4596
  },
4585
4597
  this._inputsValid,
@@ -4609,7 +4621,7 @@
4609
4621
  return this.inputsValid(t);
4610
4622
  }
4611
4623
  argsValid(t) {
4612
- return typeof t == "function" ? (O("inputsValid", () => t(new D())), new h(
4624
+ return typeof t == "function" ? (O("inputsValid", () => t(new k())), new h(
4613
4625
  this._renderingMode,
4614
4626
  this._initialArgs,
4615
4627
  this._initialUiState,
@@ -4634,7 +4646,7 @@
4634
4646
  return this.argsValid(t);
4635
4647
  }
4636
4648
  sections(t) {
4637
- return Array.isArray(t) ? this.sections(k(t)) : typeof t == "function" ? (O("sections", () => t(new D())), new h(
4649
+ return Array.isArray(t) ? this.sections(D(t)) : typeof t == "function" ? (O("sections", () => t(new k())), new h(
4638
4650
  this._renderingMode,
4639
4651
  this._initialArgs,
4640
4652
  this._initialUiState,
@@ -4653,7 +4665,7 @@
4653
4665
  );
4654
4666
  }
4655
4667
  title(t) {
4656
- return O("title", () => t(new D())), new h(
4668
+ return O("title", () => t(new k())), new h(
4657
4669
  this._renderingMode,
4658
4670
  this._initialArgs,
4659
4671
  this._initialUiState,
@@ -4725,19 +4737,19 @@
4725
4737
  inputsValid: U(this._inputsValid),
4726
4738
  sections: U(this._sections),
4727
4739
  outputs: Object.fromEntries(
4728
- Object.entries(this._outputs).map(([n, s]) => [n, U(s)])
4740
+ Object.entries(this._outputs).map(([n, r]) => [n, U(r)])
4729
4741
  )
4730
4742
  };
4731
4743
  return vt() ? st({ sdkVersion: P }) : { config: t };
4732
4744
  }
4733
4745
  }
4734
- function me(e, t, n, s) {
4746
+ function me(e, t, n, r) {
4735
4747
  var o2, l;
4736
- const r = e.resultPool.getData().entries.map((a) => a.obj).filter(U$1).filter((a) => a.spec.name === "pl7.app/label" && a.spec.axesSpec.length === 1), i = /* @__PURE__ */ new Map();
4748
+ const s = e.resultPool.getData().entries.map((a) => a.obj).filter(U$1).filter((a) => a.spec.name === "pl7.app/label" && a.spec.axesSpec.length === 1), i = /* @__PURE__ */ new Map();
4737
4749
  for (const a of t)
4738
4750
  for (const c of a.spec.axesSpec) {
4739
4751
  const f2 = S(c);
4740
- for (const S$1 of r)
4752
+ for (const S$1 of s)
4741
4753
  z(f2, S(S$1.spec.axesSpec[0])) && i.set(S$1.id, S$1);
4742
4754
  }
4743
4755
  if (![...t, ...i.values()].some(
@@ -4752,7 +4764,7 @@
4752
4764
  },
4753
4765
  secondary: [...i.values()].map((a) => ({ type: "column", column: a }))
4754
4766
  },
4755
- filters: [...((o2 = n == null ? void 0 : n.pTableParams) == null ? void 0 : o2.filters) ?? [], ...s ?? []],
4767
+ filters: [...((o2 = n == null ? void 0 : n.pTableParams) == null ? void 0 : o2.filters) ?? [], ...r ?? []],
4756
4768
  sorting: ((l = n == null ? void 0 : n.pTableParams) == null ? void 0 : l.sorting) ?? []
4757
4769
  });
4758
4770
  }