@milaboratories/milaboratories.ui-examples.model 1.1.14 → 1.1.16

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/dist/bundle.js CHANGED
@@ -3917,7 +3917,7 @@
3917
3917
  function b$1(t) {
3918
3918
  throw new Error("Unexpected object: " + t);
3919
3919
  }
3920
- function J(t) {
3920
+ function J$1(t) {
3921
3921
  const { type: n, name: e, domain: r } = t;
3922
3922
  return { type: n, name: e, ...r && { domain: r } };
3923
3923
  }
@@ -3967,11 +3967,11 @@
3967
3967
  function i(t) {
3968
3968
  return t.kind === "PColumn";
3969
3969
  }
3970
- function W(t) {
3970
+ function W$1(t) {
3971
3971
  return i(t.spec);
3972
3972
  }
3973
3973
  function dt(t) {
3974
- if (!W(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
3974
+ if (!W$1(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
3975
3975
  return t;
3976
3976
  }
3977
3977
  function lt(t, n) {
@@ -4006,17 +4006,17 @@
4006
4006
  const Q = 24;
4007
4007
  z.string().length(Q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4008
4008
  var fe = Object.defineProperty;
4009
- var he = (n, e, t) => e in n ? fe(n, e, { enumerable: true, configurable: true, writable: true, value: t }) : n[e] = t;
4010
- var S = (n, e, t) => he(n, typeof e != "symbol" ? e + "" : e, t);
4011
- function V(n) {
4012
- return { type: "Immediate", value: n };
4009
+ var he = (t, e, n) => e in t ? fe(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
4010
+ var S = (t, e, n) => he(t, typeof e != "symbol" ? e + "" : e, n);
4011
+ function V(t) {
4012
+ return { type: "Immediate", value: t };
4013
4013
  }
4014
4014
  function Se() {
4015
4015
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4016
4016
  }
4017
- function oe(n) {
4018
- if (n && typeof globalThis.getPlatforma == "function")
4019
- return globalThis.getPlatforma(n);
4017
+ function oe(t) {
4018
+ if (t && typeof globalThis.getPlatforma == "function")
4019
+ return globalThis.getPlatforma(t);
4020
4020
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4021
4021
  throw new Error("Can't get platforma instance.");
4022
4022
  }
@@ -4027,33 +4027,33 @@
4027
4027
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4028
4028
  throw new Error("Not in config rendering context");
4029
4029
  }
4030
- function E(n, e) {
4031
- const t = we();
4032
- if (t === void 0) return false;
4033
- if (n in t.callbackRegistry) throw new Error(`Callback with key ${n} already registered.`);
4034
- return t.callbackRegistry[n] = e, true;
4030
+ function D(t, e) {
4031
+ const n = we();
4032
+ if (n === void 0) return false;
4033
+ if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4034
+ return n.callbackRegistry[t] = e, true;
4035
4035
  }
4036
- const U = /* @__PURE__ */ new Map();
4037
- function Ce(n, e) {
4038
- n in c().callbackRegistry || (c().callbackRegistry[n] = (t) => {
4039
- for (const r of U.get(n))
4040
- r(t);
4041
- }, U.set(n, [])), U.get(n).push(e);
4036
+ const J = /* @__PURE__ */ new Map();
4037
+ function Ae(t, e) {
4038
+ t in c().callbackRegistry || (c().callbackRegistry[t] = (n) => {
4039
+ for (const r of J.get(t))
4040
+ r(n);
4041
+ }, J.set(t, [])), J.get(t).push(e);
4042
4042
  }
4043
- class _ {
4044
- constructor(e, t = (r) => r) {
4043
+ class b {
4044
+ constructor(e, n = (r) => r) {
4045
4045
  S(this, "isResolved", false);
4046
4046
  S(this, "resolvedValue");
4047
- this.handle = e, this.postProcess = t, Ce(e, (r) => {
4048
- this.resolvedValue = t(r), this.isResolved = true;
4047
+ this.handle = e, this.postProcess = n, Ae(e, (r) => {
4048
+ this.resolvedValue = n(r), this.isResolved = true;
4049
4049
  });
4050
4050
  }
4051
4051
  map(e) {
4052
- return new _(this.handle, (t) => e(this.postProcess(t)));
4052
+ return new b(this.handle, (n) => e(this.postProcess(n)));
4053
4053
  }
4054
4054
  mapDefined(e) {
4055
- return new _(this.handle, (t) => {
4056
- const r = this.postProcess(t);
4055
+ return new b(this.handle, (n) => {
4056
+ const r = this.postProcess(n);
4057
4057
  return r ? e(r) : void 0;
4058
4058
  });
4059
4059
  }
@@ -4061,51 +4061,51 @@
4061
4061
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
4062
4062
  }
4063
4063
  }
4064
- function H(n, e) {
4065
- return n === void 0 ? void 0 : e(n);
4064
+ function W(t, e) {
4065
+ return t === void 0 ? void 0 : e(t);
4066
4066
  }
4067
- class b {
4068
- constructor(e, t) {
4069
- this.handle = e, this.resolvePath = t;
4067
+ class v {
4068
+ constructor(e, n) {
4069
+ this.handle = e, this.resolvePath = n;
4070
4070
  }
4071
4071
  resolve(...e) {
4072
- const t = e.map(
4072
+ const n = e.map(
4073
4073
  (r) => ({
4074
4074
  assertFieldType: "Input",
4075
4075
  ...typeof r == "string" ? { field: r } : r
4076
4076
  })
4077
4077
  );
4078
- return this.resolveWithCommon({}, ...t);
4078
+ return this.resolveWithCommon({}, ...n);
4079
4079
  }
4080
4080
  resolveOutput(...e) {
4081
- const t = e.map(
4081
+ const n = e.map(
4082
4082
  (r) => ({
4083
4083
  assertFieldType: "Output",
4084
4084
  ...typeof r == "string" ? { field: r } : r
4085
4085
  })
4086
4086
  );
4087
- return this.resolveWithCommon({}, ...t);
4087
+ return this.resolveWithCommon({}, ...n);
4088
4088
  }
4089
4089
  resolveInput(...e) {
4090
- const t = e.map(
4090
+ const n = e.map(
4091
4091
  (r) => ({
4092
4092
  assertFieldType: "Input",
4093
4093
  ...typeof r == "string" ? { field: r } : r
4094
4094
  })
4095
4095
  );
4096
- return this.resolveWithCommon({}, ...t);
4096
+ return this.resolveWithCommon({}, ...n);
4097
4097
  }
4098
4098
  resolveAny(...e) {
4099
4099
  return this.resolveWithCommon({}, ...e);
4100
4100
  }
4101
- resolveWithCommon(e, ...t) {
4101
+ resolveWithCommon(e, ...n) {
4102
4102
  const r = [
4103
4103
  ...this.resolvePath,
4104
- ...t.map((s) => typeof s == "string" ? s : s.field)
4104
+ ...n.map((s) => typeof s == "string" ? s : s.field)
4105
4105
  ];
4106
- return H(
4107
- c().resolveWithCommon(this.handle, e, ...t),
4108
- (s) => new b(s, r)
4106
+ return W(
4107
+ c().resolveWithCommon(this.handle, e, ...n),
4108
+ (s) => new v(s, r)
4109
4109
  );
4110
4110
  }
4111
4111
  get resourceType() {
@@ -4125,9 +4125,9 @@
4125
4125
  }
4126
4126
  getError() {
4127
4127
  const e = [...this.resolvePath, "error"];
4128
- return H(
4128
+ return W(
4129
4129
  c().getError(this.handle),
4130
- (t) => new b(t, e)
4130
+ (n) => new v(n, e)
4131
4131
  );
4132
4132
  }
4133
4133
  listInputFields() {
@@ -4146,9 +4146,9 @@
4146
4146
  return c().getKeyValueAsString(this.handle, e);
4147
4147
  }
4148
4148
  getKeyValueAsJson(e) {
4149
- const t = this.getKeyValueAsString(e);
4150
- if (t == null) throw new Error("Resource has no content.");
4151
- return JSON.parse(t);
4149
+ const n = this.getKeyValueAsString(e);
4150
+ if (n == null) throw new Error("Resource has no content.");
4151
+ return JSON.parse(n);
4152
4152
  }
4153
4153
  getDataBase64() {
4154
4154
  return c().getDataBase64(this.handle);
@@ -4164,39 +4164,39 @@
4164
4164
  /**
4165
4165
  *
4166
4166
  */
4167
- getPColumns(e = false, t = "") {
4168
- const r = this.parsePObjectCollection(e, t);
4167
+ getPColumns(e = false, n = "") {
4168
+ const r = this.parsePObjectCollection(e, n);
4169
4169
  return r === void 0 ? void 0 : Object.entries(r).map(([, i2]) => {
4170
- if (!W(i2)) throw new Error(`not a PColumn (kind = ${i2.spec.kind})`);
4170
+ if (!W$1(i2)) throw new Error(`not a PColumn (kind = ${i2.spec.kind})`);
4171
4171
  return i2;
4172
4172
  });
4173
4173
  }
4174
4174
  /**
4175
4175
  *
4176
4176
  */
4177
- parsePObjectCollection(e = false, t = "") {
4177
+ parsePObjectCollection(e = false, n = "") {
4178
4178
  const r = c().parsePObjectCollection(
4179
4179
  this.handle,
4180
4180
  e,
4181
- t,
4181
+ n,
4182
4182
  ...this.resolvePath
4183
4183
  );
4184
4184
  if (r === void 0) return;
4185
4185
  const s = {};
4186
4186
  for (const [i2, o] of Object.entries(r)) {
4187
4187
  const l = [...this.resolvePath, i2];
4188
- s[i2] = lt(o, (a) => new b(a, l));
4188
+ s[i2] = lt(o, (a) => new v(a, l));
4189
4189
  }
4190
4190
  return s;
4191
4191
  }
4192
4192
  getFileContentAsBase64() {
4193
- return new _(c().getBlobContentAsBase64(this.handle));
4193
+ return new b(c().getBlobContentAsBase64(this.handle));
4194
4194
  }
4195
4195
  getFileContentAsString() {
4196
- return new _(c().getBlobContentAsString(this.handle));
4196
+ return new b(c().getBlobContentAsString(this.handle));
4197
4197
  }
4198
4198
  getFileContentAsJson() {
4199
- return new _(
4199
+ return new b(
4200
4200
  c().getBlobContentAsString(this.handle)
4201
4201
  ).mapDefined((e) => JSON.parse(e));
4202
4202
  }
@@ -4216,7 +4216,7 @@
4216
4216
  * @returns downloaded file handle
4217
4217
  */
4218
4218
  getFileHandle() {
4219
- return new _(c().getDownloadedBlobContentHandle(this.handle));
4219
+ return new b(c().getDownloadedBlobContentHandle(this.handle));
4220
4220
  }
4221
4221
  /**
4222
4222
  * @deprecated use getFileHandle
@@ -4228,7 +4228,7 @@
4228
4228
  * @returns downloaded file handle
4229
4229
  */
4230
4230
  getRemoteFileHandle() {
4231
- return new _(c().getOnDemandBlobContentHandle(this.handle));
4231
+ return new b(c().getOnDemandBlobContentHandle(this.handle));
4232
4232
  }
4233
4233
  /**
4234
4234
  * @deprecated use getRemoteFileHandle
@@ -4236,36 +4236,45 @@
4236
4236
  getOnDemandBlobHandle() {
4237
4237
  return this.getRemoteFileHandle();
4238
4238
  }
4239
+ /**
4240
+ * @returns the url to the extracted folder
4241
+ */
4242
+ extractArchiveAndGetURL(e) {
4243
+ return new b(c().extractArchiveAndGetURL(this.handle, e));
4244
+ }
4239
4245
  getImportProgress() {
4240
- return new _(c().getImportProgress(this.handle));
4246
+ return new b(c().getImportProgress(this.handle));
4241
4247
  }
4242
4248
  getLastLogs(e) {
4243
- return new _(c().getLastLogs(this.handle, e));
4249
+ return new b(c().getLastLogs(this.handle, e));
4244
4250
  }
4245
4251
  getProgressLog(e) {
4246
- return new _(c().getProgressLog(this.handle, e));
4252
+ return new b(c().getProgressLog(this.handle, e));
4253
+ }
4254
+ getProgressLogWithInfo(e) {
4255
+ return new b(c().getProgressLogWithInfo(this.handle, e));
4247
4256
  }
4248
4257
  getLogHandle() {
4249
- return new _(c().getLogHandle(this.handle));
4258
+ return new b(c().getLogHandle(this.handle));
4250
4259
  }
4251
4260
  allFieldsResolved(e = "Input") {
4252
4261
  switch (e) {
4253
4262
  case "Input":
4254
4263
  return this.getInputsLocked() && this.listInputFields().every(
4255
- (t) => this.resolve({ field: t, assertFieldType: "Input" }) !== void 0
4264
+ (n) => this.resolve({ field: n, assertFieldType: "Input" }) !== void 0
4256
4265
  );
4257
4266
  case "Output":
4258
4267
  return this.getOutputsLocked() && this.listOutputFields().every(
4259
- (t) => this.resolve({ field: t, assertFieldType: "Output" }) !== void 0
4268
+ (n) => this.resolve({ field: n, assertFieldType: "Output" }) !== void 0
4260
4269
  );
4261
4270
  }
4262
4271
  }
4263
- mapFields(e, t) {
4272
+ mapFields(e, n) {
4264
4273
  const { fieldType: r, requireLocked: s, skipUnresolved: i2 } = {
4265
4274
  fieldType: "Input",
4266
4275
  requireLocked: true,
4267
4276
  skipUnresolved: false,
4268
- ...t
4277
+ ...n
4269
4278
  }, o = e;
4270
4279
  if (s && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
4271
4280
  return;
@@ -4276,32 +4285,32 @@
4276
4285
  }
4277
4286
  }
4278
4287
  const ae = "staging", le = "main";
4279
- const Ie = "pl7.app/label", Fe = "pl7.app/trace", Re = z.object({
4288
+ const Ie = "pl7.app/label", Re = "pl7.app/trace", Fe = z.object({
4280
4289
  type: z.string(),
4281
4290
  importance: z.number().optional(),
4282
4291
  id: z.string().optional(),
4283
4292
  label: z.string()
4284
- }), Te = z.array(Re), Oe = 1e-3, xe = "__LABEL__", ee = "__LABEL__@1";
4285
- function ke(n, e, t = {}) {
4286
- const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i2 = n.map((p) => {
4287
- var F, Q2;
4288
- const g = e(p), f2 = (F = g.annotations) == null ? void 0 : F[Ie], C = (Q2 = g.annotations) == null ? void 0 : Q2[Fe], y = (C ? Te.safeParse(JSON.parse(C)).data : void 0) ?? [];
4293
+ }), xe = z.array(Fe), Te = 1e-3, Oe = "__LABEL__", ee = "__LABEL__@1";
4294
+ function ke(t, e, n = {}) {
4295
+ const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i2 = t.map((p) => {
4296
+ var R, Q2;
4297
+ const g = e(p), f2 = (R = g.annotations) == null ? void 0 : R[Ie], A = (Q2 = g.annotations) == null ? void 0 : Q2[Re], y = (A ? xe.safeParse(JSON.parse(A)).data : void 0) ?? [];
4289
4298
  if (f2) {
4290
- const w = { label: f2, type: xe, importance: -2 };
4291
- t.addLabelAsSuffix ? y.push(w) : y.splice(0, 0, w);
4299
+ const w = { label: f2, type: Oe, importance: -2 };
4300
+ n.addLabelAsSuffix ? y.push(w) : y.splice(0, 0, w);
4292
4301
  }
4293
- const I = [], D = /* @__PURE__ */ new Map();
4302
+ const I = [], L = /* @__PURE__ */ new Map();
4294
4303
  for (let w = y.length - 1; w >= 0; --w) {
4295
- const { type: M } = y[w], pe = y[w].importance ?? 0, J2 = (D.get(M) ?? 0) + 1;
4296
- D.set(M, J2);
4297
- const R = `${M}@${J2}`;
4298
- s.set(R, (s.get(R) ?? 0) + 1), r.set(
4299
- R,
4304
+ const { type: N } = y[w], pe = y[w].importance ?? 0, M = (L.get(N) ?? 0) + 1;
4305
+ L.set(N, M);
4306
+ const F = `${N}@${M}`;
4307
+ s.set(F, (s.get(F) ?? 0) + 1), r.set(
4308
+ F,
4300
4309
  Math.max(
4301
- r.get(R) ?? Number.NEGATIVE_INFINITY,
4302
- pe - (y.length - w) * Oe
4310
+ r.get(F) ?? Number.NEGATIVE_INFINITY,
4311
+ pe - (y.length - w) * Te
4303
4312
  )
4304
- ), I.push({ ...y[w], fullType: R, occurenceIndex: J2 });
4313
+ ), I.push({ ...y[w], fullType: F, occurenceIndex: M });
4305
4314
  }
4306
4315
  return I.reverse(), {
4307
4316
  value: p,
@@ -4312,11 +4321,11 @@
4312
4321
  }), o = [], l = [], a = [...r];
4313
4322
  a.sort(([, p], [, g]) => g - p);
4314
4323
  for (const [p] of a)
4315
- p.endsWith("@1") || s.get(p) === n.length ? o.push(p) : l.push(p);
4324
+ p.endsWith("@1") || s.get(p) === t.length ? o.push(p) : l.push(p);
4316
4325
  const u = (p) => i2.map((g) => {
4317
- const f2 = g.fullTrace.filter((y) => p.has(y.fullType)).map((y) => y.label), C = t.separator ?? " / ";
4326
+ const f2 = g.fullTrace.filter((y) => p.has(y.fullType)).map((y) => y.label), A = n.separator ?? " / ";
4318
4327
  return {
4319
- label: f2.join(C),
4328
+ label: f2.join(A),
4320
4329
  value: g.value
4321
4330
  };
4322
4331
  });
@@ -4327,19 +4336,19 @@
4327
4336
  let h = 0, d = 0;
4328
4337
  for (; h < o.length; ) {
4329
4338
  const p = /* @__PURE__ */ new Set();
4330
- t.includeNativeLabel && p.add(ee);
4339
+ n.includeNativeLabel && p.add(ee);
4331
4340
  for (let f2 = 0; f2 < h; ++f2) p.add(o[f2]);
4332
4341
  p.add(o[d]);
4333
4342
  const g = u(p);
4334
- if (new Set(g.map((f2) => f2.label)).size === n.length) return g;
4343
+ if (new Set(g.map((f2) => f2.label)).size === t.length) return g;
4335
4344
  d++, d == o.length && (h++, d = h);
4336
4345
  }
4337
4346
  return u(/* @__PURE__ */ new Set([...o, ...l]));
4338
4347
  }
4339
- class De {
4348
+ class Le {
4340
4349
  constructor() {
4341
4350
  S(this, "ctx", c());
4342
- S(this, "defaultLabelFn", (e, t) => {
4351
+ S(this, "defaultLabelFn", (e, n) => {
4343
4352
  var r;
4344
4353
  return ((r = e.annotations) == null ? void 0 : r["pl7.app/label"]) ?? "Unlabelled";
4345
4354
  });
@@ -4350,14 +4359,14 @@
4350
4359
  calculateOptions(e) {
4351
4360
  return this.ctx.calculateOptions(e);
4352
4361
  }
4353
- getOptions(e, t) {
4362
+ getOptions(e, n) {
4354
4363
  const r = this.getSpecs().entries.filter((s) => e(s.obj));
4355
- return typeof t == "object" || typeof t > "u" ? ke(r, (s) => s.obj, t ?? {}).map(({ value: { ref: s }, label: i2 }) => ({
4364
+ return typeof n == "object" || typeof n > "u" ? ke(r, (s) => s.obj, n ?? {}).map(({ value: { ref: s }, label: i2 }) => ({
4356
4365
  ref: s,
4357
4366
  label: i2
4358
4367
  })) : r.map((s) => ({
4359
4368
  ref: s.ref,
4360
- label: t(s.obj, s.ref)
4369
+ label: n(s.obj, s.ref)
4361
4370
  }));
4362
4371
  }
4363
4372
  /**
@@ -4370,11 +4379,11 @@
4370
4379
  const e = this.ctx.getDataFromResultPool();
4371
4380
  return {
4372
4381
  isComplete: e.isComplete,
4373
- entries: e.entries.map((t) => ({
4374
- ref: t.ref,
4382
+ entries: e.entries.map((n) => ({
4383
+ ref: n.ref,
4375
4384
  obj: {
4376
- ...t.obj,
4377
- data: new b(t.obj.data, [t.ref.blockId, t.ref.name])
4385
+ ...n.obj,
4386
+ data: new v(n.obj.data, [n.ref.blockId, n.ref.name])
4378
4387
  }
4379
4388
  }))
4380
4389
  };
@@ -4389,13 +4398,13 @@
4389
4398
  const e = this.ctx.getDataWithErrorsFromResultPool();
4390
4399
  return {
4391
4400
  isComplete: e.isComplete,
4392
- entries: e.entries.map((t) => ({
4393
- ref: t.ref,
4401
+ entries: e.entries.map((n) => ({
4402
+ ref: n.ref,
4394
4403
  obj: {
4395
- ...t.obj,
4404
+ ...n.obj,
4396
4405
  data: mt(
4397
- t.obj.data,
4398
- (r) => new b(r, [t.ref.blockId, t.ref.name])
4406
+ n.obj.data,
4407
+ (r) => new v(r, [n.ref.blockId, n.ref.name])
4399
4408
  )
4400
4409
  }
4401
4410
  }))
@@ -4415,12 +4424,12 @@
4415
4424
  * @returns data associated with the ref
4416
4425
  */
4417
4426
  getDataByRef(e) {
4418
- var t;
4419
- return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (t = this.getData().entries.find(
4427
+ var n;
4428
+ return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (n = this.getData().entries.find(
4420
4429
  (r) => r.ref.blockId === e.blockId && r.ref.name === e.name
4421
- )) == null ? void 0 : t.obj : lt(
4430
+ )) == null ? void 0 : n.obj : lt(
4422
4431
  this.ctx.getDataFromResultPoolByRef(e.blockId, e.name),
4423
- (r) => new b(r, [e.blockId, e.name])
4432
+ (r) => new v(r, [e.blockId, e.name])
4424
4433
  );
4425
4434
  }
4426
4435
  /**
@@ -4429,9 +4438,9 @@
4429
4438
  * @returns p-column associated with the ref
4430
4439
  */
4431
4440
  getPColumnByRef(e) {
4432
- const t = this.getDataByRef(e);
4433
- if (t)
4434
- return dt(t);
4441
+ const n = this.getDataByRef(e);
4442
+ if (n)
4443
+ return dt(n);
4435
4444
  }
4436
4445
  /**
4437
4446
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -4439,10 +4448,10 @@
4439
4448
  * @returns p-column spec associated with the ref
4440
4449
  */
4441
4450
  getPColumnSpecByRef(e) {
4442
- const t = this.getSpecByRef(e);
4443
- if (t) {
4444
- if (!i(t)) throw new Error(`not a PColumn spec (kind = ${t.kind})`);
4445
- return t;
4451
+ const n = this.getSpecByRef(e);
4452
+ if (n) {
4453
+ if (!i(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
4454
+ return n;
4446
4455
  }
4447
4456
  }
4448
4457
  /**
@@ -4450,10 +4459,10 @@
4450
4459
  * @returns object spec associated with the ref
4451
4460
  */
4452
4461
  getSpecByRef(e) {
4453
- var t;
4454
- return typeof this.ctx.getSpecFromResultPoolByRef > "u" ? (t = this.getSpecs().entries.find(
4462
+ var n;
4463
+ return typeof this.ctx.getSpecFromResultPoolByRef > "u" ? (n = this.getSpecs().entries.find(
4455
4464
  (r) => r.ref.blockId === e.blockId && r.ref.name === e.name
4456
- )) == null ? void 0 : t.obj : this.ctx.getSpecFromResultPoolByRef(e.blockId, e.name);
4465
+ )) == null ? void 0 : n.obj : this.ctx.getSpecFromResultPoolByRef(e.blockId, e.name);
4457
4466
  }
4458
4467
  /**
4459
4468
  * @param spec object specification
@@ -4461,7 +4470,7 @@
4461
4470
  * @deprecated delete this method after Jan 1, 2025
4462
4471
  */
4463
4472
  findDataWithCompatibleSpec(e) {
4464
- const t = [];
4473
+ const n = [];
4465
4474
  e: for (const r of this.getData().entries) {
4466
4475
  if (!i(r.obj.spec))
4467
4476
  continue;
@@ -4472,26 +4481,26 @@
4472
4481
  if (o.name !== l.name || o.type !== l.type || !q(o.domain, l.domain))
4473
4482
  continue e;
4474
4483
  }
4475
- t.push(r.obj);
4484
+ n.push(r.obj);
4476
4485
  }
4477
4486
  }
4478
- return t;
4487
+ return n;
4479
4488
  }
4480
4489
  }
4481
- function q(n, e) {
4482
- if (n === void 0) return e === void 0;
4490
+ function q(t, e) {
4491
+ if (t === void 0) return e === void 0;
4483
4492
  if (e === void 0) return true;
4484
- for (const t in e)
4485
- if (n[t] !== e[t]) return false;
4493
+ for (const n in e)
4494
+ if (t[n] !== e[n]) return false;
4486
4495
  return true;
4487
4496
  }
4488
- class L {
4497
+ class E {
4489
4498
  constructor() {
4490
4499
  S(this, "ctx");
4491
4500
  S(this, "args");
4492
4501
  S(this, "uiState");
4493
4502
  S(this, "_activeArgsCache");
4494
- S(this, "resultPool", new De());
4503
+ S(this, "resultPool", new Le());
4495
4504
  this.ctx = c(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
4496
4505
  }
4497
4506
  /**
@@ -4508,9 +4517,9 @@
4508
4517
  // return this.ctx.featureFlags;
4509
4518
  // }
4510
4519
  getNamedAccessor(e) {
4511
- return H(
4520
+ return W(
4512
4521
  this.ctx.getAccessorHandleByName(e),
4513
- (t) => new b(t, [e])
4522
+ (n) => new v(n, [e])
4514
4523
  );
4515
4524
  }
4516
4525
  get prerun() {
@@ -4524,9 +4533,9 @@
4524
4533
  * @returns a map of axis value => label
4525
4534
  */
4526
4535
  findLabels(e) {
4527
- const t = this.resultPool.getData();
4528
- for (const r of t.entries) {
4529
- if (!W(r.obj)) continue;
4536
+ const n = this.resultPool.getData();
4537
+ for (const r of n.entries) {
4538
+ if (!W$1(r.obj)) continue;
4530
4539
  const s = r.obj.spec;
4531
4540
  if (s.name === "pl7.app/label" && s.axesSpec.length === 1 && s.axesSpec[0].name === e.name && s.axesSpec[0].type === e.type && q(e.domain, s.axesSpec[0].domain)) {
4532
4541
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -4541,27 +4550,27 @@
4541
4550
  }
4542
4551
  verifyInlineColumnsSupport(e) {
4543
4552
  var s;
4544
- const t = e.some((i2) => !(i2.data instanceof b)), r = ((s = this.ctx.featureFlags) == null ? void 0 : s.inlineColumnsSupport) === true;
4545
- if (t && !r) throw Error("inline columns not supported");
4553
+ const n = e.some((i2) => !(i2.data instanceof v)), r = ((s = this.ctx.featureFlags) == null ? void 0 : s.inlineColumnsSupport) === true;
4554
+ if (n && !r) throw Error("inline columns not supported");
4546
4555
  }
4547
4556
  createPFrame(e) {
4548
4557
  return this.verifyInlineColumnsSupport(e), this.ctx.createPFrame(
4549
- e.map((t) => lt(t, (r) => r instanceof b ? r.handle : r))
4558
+ e.map((n) => lt(n, (r) => r instanceof v ? r.handle : r))
4550
4559
  );
4551
4560
  }
4552
4561
  createPTable(e) {
4553
- var t;
4554
- return "columns" in e ? t = {
4562
+ var n;
4563
+ return "columns" in e ? n = {
4555
4564
  src: {
4556
4565
  type: "full",
4557
4566
  entries: e.columns.map((r) => ({ type: "column", column: r }))
4558
4567
  },
4559
4568
  filters: e.filters ?? [],
4560
4569
  sorting: e.sorting ?? []
4561
- } : t = e, this.verifyInlineColumnsSupport(pt(t.src)), this.ctx.createPTable(
4570
+ } : n = e, this.verifyInlineColumnsSupport(pt(n.src)), this.ctx.createPTable(
4562
4571
  it(
4563
- t,
4564
- (r) => lt(r, (s) => s instanceof b ? s.handle : s)
4572
+ n,
4573
+ (r) => lt(r, (s) => s instanceof v ? s.handle : s)
4565
4574
  )
4566
4575
  );
4567
4576
  }
@@ -4574,20 +4583,20 @@
4574
4583
  return this.ctx.getCurrentUnstableMarker();
4575
4584
  }
4576
4585
  }
4577
- const O = "1.22.0";
4578
- function Le(n) {
4579
- return n.__renderLambda === true;
4586
+ const T = "1.22.18";
4587
+ function Ee(t) {
4588
+ return t.__renderLambda === true;
4580
4589
  }
4581
- function G(n) {
4582
- if (n !== void 0)
4583
- return Le(n) ? n.handle : n;
4590
+ function K(t) {
4591
+ if (t !== void 0)
4592
+ return Ee(t) ? t.handle : t;
4584
4593
  }
4585
- class v {
4586
- constructor(e, t, r, s, i2, o, l) {
4587
- this._renderingMode = e, this._initialArgs = t, this._initialUiState = r, this._outputs = s, this._inputsValid = i2, this._sections = o, this._title = l;
4594
+ class _ {
4595
+ constructor(e, n, r, s, i2, o, l) {
4596
+ this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = s, this._inputsValid = i2, this._sections = o, this._title = l;
4588
4597
  }
4589
4598
  static create(e = "Heavy") {
4590
- return new v(
4599
+ return new _(
4591
4600
  e,
4592
4601
  void 0,
4593
4602
  {},
@@ -4597,10 +4606,10 @@
4597
4606
  void 0
4598
4607
  );
4599
4608
  }
4600
- output(e, t, r = {}) {
4601
- if (typeof t == "function") {
4609
+ output(e, n, r = {}) {
4610
+ if (typeof n == "function") {
4602
4611
  const s = `output#${e}`;
4603
- return E(s, () => t(new L())), new v(
4612
+ return D(s, () => n(new E())), new _(
4604
4613
  this._renderingMode,
4605
4614
  this._initialArgs,
4606
4615
  this._initialUiState,
@@ -4617,13 +4626,13 @@
4617
4626
  this._title
4618
4627
  );
4619
4628
  } else
4620
- return new v(
4629
+ return new _(
4621
4630
  this._renderingMode,
4622
4631
  this._initialArgs,
4623
4632
  this._initialUiState,
4624
4633
  {
4625
4634
  ...this._outputs,
4626
- [e]: t
4635
+ [e]: n
4627
4636
  },
4628
4637
  this._inputsValid,
4629
4638
  this._sections,
@@ -4631,11 +4640,11 @@
4631
4640
  );
4632
4641
  }
4633
4642
  /** Shortcut for {@link output} with retentive flag set to true. */
4634
- retentiveOutput(e, t) {
4635
- return this.output(e, t, { retentive: true });
4643
+ retentiveOutput(e, n) {
4644
+ return this.output(e, n, { retentive: true });
4636
4645
  }
4637
4646
  argsValid(e) {
4638
- return typeof e == "function" ? (E("inputsValid", () => e(new L())), new v(
4647
+ return typeof e == "function" ? (D("inputsValid", () => e(new E())), new _(
4639
4648
  this._renderingMode,
4640
4649
  this._initialArgs,
4641
4650
  this._initialUiState,
@@ -4646,7 +4655,7 @@
4646
4655
  },
4647
4656
  this._sections,
4648
4657
  this._title
4649
- )) : new v(
4658
+ )) : new _(
4650
4659
  this._renderingMode,
4651
4660
  this._initialArgs,
4652
4661
  this._initialUiState,
@@ -4657,7 +4666,7 @@
4657
4666
  );
4658
4667
  }
4659
4668
  sections(e) {
4660
- return Array.isArray(e) ? this.sections(V(e)) : typeof e == "function" ? (E("sections", () => e(new L())), new v(
4669
+ return Array.isArray(e) ? this.sections(V(e)) : typeof e == "function" ? (D("sections", () => e(new E())), new _(
4661
4670
  this._renderingMode,
4662
4671
  this._initialArgs,
4663
4672
  this._initialUiState,
@@ -4665,7 +4674,7 @@
4665
4674
  this._inputsValid,
4666
4675
  { __renderLambda: true, handle: "sections" },
4667
4676
  this._title
4668
- )) : new v(
4677
+ )) : new _(
4669
4678
  this._renderingMode,
4670
4679
  this._initialArgs,
4671
4680
  this._initialUiState,
@@ -4677,7 +4686,7 @@
4677
4686
  }
4678
4687
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
4679
4688
  title(e) {
4680
- return E("title", () => e(new L())), new v(
4689
+ return D("title", () => e(new E())), new _(
4681
4690
  this._renderingMode,
4682
4691
  this._initialArgs,
4683
4692
  this._initialUiState,
@@ -4692,7 +4701,7 @@
4692
4701
  * @deprecated use {@link withArgs}
4693
4702
  * */
4694
4703
  initialArgs(e) {
4695
- return new v(
4704
+ return new _(
4696
4705
  this._renderingMode,
4697
4706
  e,
4698
4707
  this._initialUiState,
@@ -4704,7 +4713,7 @@
4704
4713
  }
4705
4714
  /** Sets initial args for the block, this value must be specified. */
4706
4715
  withArgs(e) {
4707
- return new v(
4716
+ return new _(
4708
4717
  this._renderingMode,
4709
4718
  e,
4710
4719
  this._initialUiState,
@@ -4716,7 +4725,7 @@
4716
4725
  }
4717
4726
  /** Defines type and sets initial value for block UiState. */
4718
4727
  withUiState(e) {
4719
- return new v(
4728
+ return new _(
4720
4729
  this._renderingMode,
4721
4730
  this._initialArgs,
4722
4731
  e,
@@ -4733,7 +4742,7 @@
4733
4742
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
4734
4743
  const e = {
4735
4744
  v3: {
4736
- sdkVersion: O,
4745
+ sdkVersion: T,
4737
4746
  renderingMode: this._renderingMode,
4738
4747
  initialArgs: this._initialArgs,
4739
4748
  initialUiState: this._initialUiState,
@@ -4743,22 +4752,22 @@
4743
4752
  outputs: this._outputs
4744
4753
  },
4745
4754
  // fields below are added to allow previous desktop versions read generated configs
4746
- sdkVersion: O,
4755
+ sdkVersion: T,
4747
4756
  renderingMode: this._renderingMode,
4748
4757
  initialArgs: this._initialArgs,
4749
- inputsValid: G(this._inputsValid),
4750
- sections: G(this._sections),
4758
+ inputsValid: K(this._inputsValid),
4759
+ sections: K(this._sections),
4751
4760
  outputs: Object.fromEntries(
4752
- Object.entries(this._outputs).map(([t, r]) => [t, G(r)])
4761
+ Object.entries(this._outputs).map(([n, r]) => [n, K(r)])
4753
4762
  )
4754
4763
  };
4755
- return Se() ? oe({ sdkVersion: O }) : { config: e };
4764
+ return Se() ? oe({ sdkVersion: T }) : { config: e };
4756
4765
  }
4757
4766
  }
4758
- function _t(n, e, t, r) {
4767
+ function wt(t, e, n, r) {
4759
4768
  var u, h;
4760
4769
  Array.isArray(r) && (r = { filters: r });
4761
- const s = n.resultPool.getData().entries.map((d) => d.obj).filter(W).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), i2 = (d, p) => {
4770
+ const s = t.resultPool.getData().entries.map((d) => d.obj).filter(W$1).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), i2 = (d, p) => {
4762
4771
  let g = d.toString();
4763
4772
  if (p)
4764
4773
  for (const f2 in p)
@@ -4767,18 +4776,18 @@
4767
4776
  }, o = /* @__PURE__ */ new Map();
4768
4777
  for (const d of e)
4769
4778
  for (const p of d.spec.axesSpec) {
4770
- const g = J(p);
4779
+ const g = J$1(p);
4771
4780
  for (const f2 of s) {
4772
- const C = f2.spec.axesSpec[0], y = J(f2.spec.axesSpec[0]);
4781
+ const A = f2.spec.axesSpec[0], y = J$1(f2.spec.axesSpec[0]);
4773
4782
  if (ot(g, y)) {
4774
- const I = Object.keys(g.domain ?? {}).length, D = Object.keys(y.domain ?? {}).length;
4775
- if (I > D) {
4776
- const F = i2(f2.id, g.domain);
4777
- o.set(F, {
4778
- id: F,
4783
+ const I = Object.keys(g.domain ?? {}).length, L = Object.keys(y.domain ?? {}).length;
4784
+ if (I > L) {
4785
+ const R = i2(f2.id, g.domain);
4786
+ o.set(R, {
4787
+ id: R,
4779
4788
  spec: {
4780
4789
  ...f2.spec,
4781
- axesSpec: [{ ...g, annotations: C.annotations }]
4790
+ axesSpec: [{ ...g, annotations: A.annotations }]
4782
4791
  },
4783
4792
  data: f2.data
4784
4793
  });
@@ -4788,7 +4797,7 @@
4788
4797
  }
4789
4798
  }
4790
4799
  if ([...e, ...o.values()].some(
4791
- (d) => d.data instanceof b && !d.data.getIsReadyOrError()
4800
+ (d) => d.data instanceof v && !d.data.getIsReadyOrError()
4792
4801
  ))
4793
4802
  return;
4794
4803
  let l = e;
@@ -4798,7 +4807,7 @@
4798
4807
  for (const d of e)
4799
4808
  r.coreColumnPredicate(d.spec) ? l.push(d) : a.push(d);
4800
4809
  }
4801
- return a.push(...o.values()), n.createPTable({
4810
+ return a.push(...o.values()), t.createPTable({
4802
4811
  src: {
4803
4812
  type: "outer",
4804
4813
  primary: {
@@ -4807,20 +4816,20 @@
4807
4816
  },
4808
4817
  secondary: a.map((d) => ({ type: "column", column: d }))
4809
4818
  },
4810
- filters: [...(r == null ? void 0 : r.filters) ?? [], ...((u = t == null ? void 0 : t.pTableParams) == null ? void 0 : u.filters) ?? []],
4811
- sorting: ((h = t == null ? void 0 : t.pTableParams) == null ? void 0 : h.sorting) ?? []
4819
+ filters: [...(r == null ? void 0 : r.filters) ?? [], ...((u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters) ?? []],
4820
+ sorting: ((h = n == null ? void 0 : n.pTableParams) == null ? void 0 : h.sorting) ?? []
4812
4821
  });
4813
4822
  }
4814
4823
  const $BlockArgs = z.object({
4815
4824
  numbers: z.array(z.coerce.number())
4816
4825
  });
4817
- const platforma = v.create("Heavy").withArgs({ numbers: [1, 2, 3, 4] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).output("numbers", (ctx) => {
4826
+ const platforma = _.create("Heavy").withArgs({ numbers: [1, 2, 3, 4] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).output("numbers", (ctx) => {
4818
4827
  var _a, _b;
4819
4828
  return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
4820
4829
  }).output("pt", (ctx) => {
4821
4830
  var _a, _b, _c, _d, _e;
4822
4831
  if (!((_c = (_b = (_a = ctx.uiState) == null ? void 0 : _a.dataTableState) == null ? void 0 : _b.tableState.pTableParams) == null ? void 0 : _c.filters)) return void 0;
4823
- return _t(ctx, [
4832
+ return wt(ctx, [
4824
4833
  {
4825
4834
  id: "example",
4826
4835
  spec: {
@@ -4868,6 +4877,7 @@
4868
4877
  { type: "link", href: "/typography", label: "Typography" },
4869
4878
  { type: "link", href: "/ag-grid-vue", label: "AgGridVue" },
4870
4879
  { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
4880
+ { type: "link", href: "/pl-ag-overlay-loading", label: "PlAgOverlayLoadingPage" },
4871
4881
  { type: "link", href: "/errors", label: "Errors" },
4872
4882
  { type: "link", href: "/text-fields", label: "PlTextField" },
4873
4883
  { type: "link", href: "/tabs", label: "PlTabs" },