@milaboratories/milaboratories.ui-examples.model 1.1.6 → 1.1.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @milaboratories/milaboratories.ui-examples.model@1.1.6 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.1.8 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,21 +10,21 @@
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- CJS dist/index.cjs 2.53 KB
14
- CJS dist/index.cjs.map 5.88 KB
15
- CJS ⚡️ Build success in 69ms
16
- ESM dist/index.js 2.48 KB
17
- ESM dist/index.js.map 5.84 KB
13
+ ESM dist/index.js 2.54 KB
14
+ ESM dist/index.js.map 5.97 KB
18
15
  ESM ⚡️ Build success in 69ms
16
+ CJS dist/index.cjs 2.58 KB
17
+ CJS dist/index.cjs.map 6.01 KB
18
+ CJS ⚡️ Build success in 69ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 818ms
21
- DTS dist/index.d.cts 1.30 KB
22
- DTS dist/index.d.ts 1.30 KB
20
+ DTS ⚡️ Build success in 795ms
21
+ DTS dist/index.d.cts 1.32 KB
22
+ DTS dist/index.d.ts 1.32 KB
23
23
  vite v5.4.11 building for production...
24
24
  transforming...
25
25
  ✓ 4 modules transformed.
26
26
  rendering chunks...
27
27
  computing gzip size...
28
- dist/bundle.js 143.84 kB │ gzip: 26.09 kB │ map: 311.69 kB
29
- dist/bundle.js 154.03 kB │ gzip: 26.58 kB │ map: 312.82 kB
30
- ✓ built in 384ms
28
+ dist/bundle.js 144.01 kB │ gzip: 26.18 kB │ map: 313.73 kB
29
+ dist/bundle.js 154.20 kB │ gzip: 26.67 kB │ map: 314.85 kB
30
+ ✓ built in 424ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 78d049b: added PlProgressCell
8
+
9
+ ## 1.1.7
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [079f50e]
14
+ - @platforma-sdk/model@1.20.27
15
+
3
16
  ## 1.1.6
4
17
 
5
18
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -3914,27 +3914,27 @@
3914
3914
  quotelessJson,
3915
3915
  ZodError
3916
3916
  });
3917
- function f(t) {
3917
+ function b$1(t) {
3918
3918
  throw new Error("Unexpected object: " + t);
3919
3919
  }
3920
- function S$1(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
  }
3924
- function B$1(t, n) {
3924
+ function _$1(t, n) {
3925
3925
  if (t === void 0) return n === void 0;
3926
3926
  if (n === void 0) return true;
3927
3927
  for (const e in n)
3928
3928
  if (t[e] !== n[e]) return false;
3929
3929
  return true;
3930
3930
  }
3931
- function M(t, n) {
3932
- return t.name === n.name && B$1(t.domain, n.domain);
3931
+ function ot$1(t, n) {
3932
+ return t.name === n.name && _$1(t.domain, n.domain);
3933
3933
  }
3934
- function q(t, n) {
3935
- return { ...t, src: u$1(t.src, n) };
3934
+ function it$1(t, n) {
3935
+ return { ...t, src: f(t.src, n) };
3936
3936
  }
3937
- function u$1(t, n) {
3937
+ function f(t, n) {
3938
3938
  switch (t.type) {
3939
3939
  case "column":
3940
3940
  return {
@@ -3945,16 +3945,16 @@
3945
3945
  case "full":
3946
3946
  return {
3947
3947
  type: t.type,
3948
- entries: t.entries.map((e) => u$1(e, n))
3948
+ entries: t.entries.map((e) => f(e, n))
3949
3949
  };
3950
3950
  case "outer":
3951
3951
  return {
3952
3952
  type: "outer",
3953
- primary: u$1(t.primary, n),
3954
- secondary: t.secondary.map((e) => u$1(e, n))
3953
+ primary: f(t.primary, n),
3954
+ secondary: t.secondary.map((e) => f(e, n))
3955
3955
  };
3956
3956
  default:
3957
- f(t);
3957
+ b$1(t);
3958
3958
  }
3959
3959
  }
3960
3960
  z.object({
@@ -3967,20 +3967,20 @@
3967
3967
  function i(t) {
3968
3968
  return t.kind === "PColumn";
3969
3969
  }
3970
- function U$1(t) {
3970
+ function W(t) {
3971
3971
  return i(t.spec);
3972
3972
  }
3973
- function Z$1(t) {
3974
- if (!U$1(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
3973
+ function dt$1(t) {
3974
+ if (!W(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
3975
3975
  return t;
3976
3976
  }
3977
- function T(t, n) {
3977
+ function lt(t, n) {
3978
3978
  return t === void 0 ? void 0 : {
3979
3979
  ...t,
3980
3980
  data: n(t.data)
3981
3981
  };
3982
3982
  }
3983
- function v$1(t) {
3983
+ function pt$1(t) {
3984
3984
  const n = /* @__PURE__ */ new Map(), e = (r) => {
3985
3985
  switch (r.type) {
3986
3986
  case "column":
@@ -3995,14 +3995,16 @@
3995
3995
  for (const o of r.secondary) e(o);
3996
3996
  return;
3997
3997
  default:
3998
- f(r);
3998
+ b$1(r);
3999
3999
  }
4000
4000
  };
4001
4001
  return e(t), [...n.values()];
4002
4002
  }
4003
- function tt(t, n) {
4003
+ function mt(t, n) {
4004
4004
  return t.ok ? { ok: true, value: n(t.value) } : t;
4005
4005
  }
4006
+ const Q = 24;
4007
+ z.string().length(Q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4006
4008
  var dt = Object.defineProperty;
4007
4009
  var pt = (e, t, n) => t in e ? dt(e, t, { enumerable: true, configurable: true, writable: true, value: n }) : e[t] = n;
4008
4010
  var S = (e, t, n) => pt(e, typeof t != "symbol" ? t + "" : t, n);
@@ -4165,7 +4167,7 @@
4165
4167
  getPColumns(t = false, n = "") {
4166
4168
  const s = this.parsePObjectCollection(t, n);
4167
4169
  return s === void 0 ? void 0 : Object.entries(s).map(([, r]) => {
4168
- if (!U$1(r)) throw new Error(`not a PColumn (kind = ${r.spec.kind})`);
4170
+ if (!W(r)) throw new Error(`not a PColumn (kind = ${r.spec.kind})`);
4169
4171
  return r;
4170
4172
  });
4171
4173
  }
@@ -4183,7 +4185,7 @@
4183
4185
  const i2 = {};
4184
4186
  for (const [r, o] of Object.entries(s)) {
4185
4187
  const l = [...this.resolvePath, r];
4186
- i2[r] = T(o, (d) => new _(d, l));
4188
+ i2[r] = lt(o, (d) => new _(d, l));
4187
4189
  }
4188
4190
  return i2;
4189
4191
  }
@@ -4288,10 +4290,10 @@
4288
4290
  const w = { label: h, type: Ot, importance: -2 };
4289
4291
  n.addLabelAsSuffix ? y.push(w) : y.splice(0, 0, w);
4290
4292
  }
4291
- const C = [], q2 = /* @__PURE__ */ new Map();
4293
+ const C = [], q = /* @__PURE__ */ new Map();
4292
4294
  for (let w = y.length - 1; w >= 0; --w) {
4293
- const { type: V } = y[w], ct = y[w].importance ?? 0, j = (q2.get(V) ?? 0) + 1;
4294
- q2.set(V, j);
4295
+ const { type: V } = y[w], ct = y[w].importance ?? 0, j = (q.get(V) ?? 0) + 1;
4296
+ q.set(V, j);
4295
4297
  const R = `${V}@${j}`;
4296
4298
  i2.set(R, (i2.get(R) ?? 0) + 1), s.set(
4297
4299
  R,
@@ -4391,7 +4393,7 @@
4391
4393
  ref: n.ref,
4392
4394
  obj: {
4393
4395
  ...n.obj,
4394
- data: tt(
4396
+ data: mt(
4395
4397
  n.obj.data,
4396
4398
  (s) => new _(s, [n.ref.blockId, n.ref.name])
4397
4399
  )
@@ -4416,7 +4418,7 @@
4416
4418
  var n;
4417
4419
  return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (n = this.getData().entries.find(
4418
4420
  (s) => s.ref.blockId === t.blockId && s.ref.name === t.name
4419
- )) == null ? void 0 : n.obj : T(
4421
+ )) == null ? void 0 : n.obj : lt(
4420
4422
  this.ctx.getDataFromResultPoolByRef(t.blockId, t.name),
4421
4423
  (s) => new _(s, [t.blockId, t.name])
4422
4424
  );
@@ -4429,7 +4431,7 @@
4429
4431
  getPColumnByRef(t) {
4430
4432
  const n = this.getDataByRef(t);
4431
4433
  if (n)
4432
- return Z$1(n);
4434
+ return dt$1(n);
4433
4435
  }
4434
4436
  /**
4435
4437
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -4489,7 +4491,7 @@
4489
4491
  S(this, "args");
4490
4492
  S(this, "uiState");
4491
4493
  S(this, "resultPool", new Dt());
4492
- this.ctx = u(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : void 0;
4494
+ this.ctx = u(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
4493
4495
  }
4494
4496
  getNamedAccessor(t) {
4495
4497
  return J(
@@ -4528,7 +4530,7 @@
4528
4530
  findLabels(t) {
4529
4531
  const n = this.resultPool.getData();
4530
4532
  for (const s of n.entries) {
4531
- if (!U$1(s.obj)) continue;
4533
+ if (!W(s.obj)) continue;
4532
4534
  const i2 = s.obj.spec;
4533
4535
  if (i2.name === "pl7.app/label" && i2.axesSpec.length === 1 && i2.axesSpec[0].name === t.name && i2.axesSpec[0].type === t.type && K(t.domain, i2.axesSpec[0].domain)) {
4534
4536
  if (s.obj.data.resourceType.name !== "PColumnData/Json")
@@ -4547,10 +4549,9 @@
4547
4549
  if (n && !s) throw Error("inline columns not supported");
4548
4550
  }
4549
4551
  createPFrame(t) {
4550
- return this.verifyInlineColumnsSupport(t), this.ctx.createPFrame(t.map((n) => T(
4551
- n,
4552
- (s) => s instanceof _ ? s.handle : s
4553
- )));
4552
+ return this.verifyInlineColumnsSupport(t), this.ctx.createPFrame(
4553
+ t.map((n) => lt(n, (s) => s instanceof _ ? s.handle : s))
4554
+ );
4554
4555
  }
4555
4556
  createPTable(t) {
4556
4557
  var n;
@@ -4561,10 +4562,12 @@
4561
4562
  },
4562
4563
  filters: t.filters ?? [],
4563
4564
  sorting: t.sorting ?? []
4564
- } : n = t, this.verifyInlineColumnsSupport(v$1(n.src)), this.ctx.createPTable(q(n, (s) => T(
4565
- s,
4566
- (i2) => i2 instanceof _ ? i2.handle : i2
4567
- )));
4565
+ } : n = t, this.verifyInlineColumnsSupport(pt$1(n.src)), this.ctx.createPTable(
4566
+ it$1(
4567
+ n,
4568
+ (s) => lt(s, (i2) => i2 instanceof _ ? i2.handle : i2)
4569
+ )
4570
+ );
4568
4571
  }
4569
4572
  /** @deprecated scheduled for removal from SDK */
4570
4573
  getBlockLabel(t) {
@@ -4575,7 +4578,7 @@
4575
4578
  return this.ctx.getCurrentUnstableMarker();
4576
4579
  }
4577
4580
  }
4578
- const F = "1.20.24";
4581
+ const F = "1.20.27";
4579
4582
  function xt(e) {
4580
4583
  return e.__renderLambda === true;
4581
4584
  }
@@ -4764,7 +4767,7 @@
4764
4767
  }
4765
4768
  function me(e, t, n, s) {
4766
4769
  var l, d;
4767
- const i2 = e.resultPool.getData().entries.map((a) => a.obj).filter(U$1).filter((a) => a.spec.name === "pl7.app/label" && a.spec.axesSpec.length === 1), r = (a, p) => {
4770
+ const i2 = e.resultPool.getData().entries.map((a) => a.obj).filter(W).filter((a) => a.spec.name === "pl7.app/label" && a.spec.axesSpec.length === 1), r = (a, p) => {
4768
4771
  let g = a.toString();
4769
4772
  if (p)
4770
4773
  for (const c in p)
@@ -4773,10 +4776,10 @@
4773
4776
  }, o = /* @__PURE__ */ new Map();
4774
4777
  for (const a of t)
4775
4778
  for (const p of a.spec.axesSpec) {
4776
- const g = S$1(p);
4779
+ const g = J$1(p);
4777
4780
  for (const c of i2) {
4778
- const m = c.spec.axesSpec[0], h = S$1(c.spec.axesSpec[0]);
4779
- if (M(g, h)) {
4781
+ const m = c.spec.axesSpec[0], h = J$1(c.spec.axesSpec[0]);
4782
+ if (ot$1(g, h)) {
4780
4783
  const P = Object.keys(g.domain ?? {}).length, y = Object.keys(h.domain ?? {}).length;
4781
4784
  if (P > y) {
4782
4785
  const C = r(c.id, g.domain);
@@ -4849,6 +4852,7 @@
4849
4852
  ]);
4850
4853
  }).sections((ctx) => {
4851
4854
  return [
4855
+ { type: "link", href: "/loaders", label: "Loaders" },
4852
4856
  { type: "link", href: "/", label: "Icons/Masks" },
4853
4857
  { type: "link", href: "/layout", label: "Layout" },
4854
4858
  { type: "link", href: "/form-components", label: "Form Components" },