@milaboratories/milaboratories.ui-examples.model 1.0.40 → 1.0.41

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.0.40 build /home/runner/work/platforma/platforma/etc/block-components/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.0.41 build /home/runner/work/platforma/platforma/etc/block-components/ui-examples/model
3
3
  > tsup && vite build && block-tools build-model
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -12,12 +12,12 @@
12
12
  ESM Build start
13
13
  CJS dist/index.cjs 2.81 KB
14
14
  CJS dist/index.cjs.map 7.09 KB
15
- CJS ⚡️ Build success in 78ms
15
+ CJS ⚡️ Build success in 86ms
16
16
  ESM dist/index.js 2.76 KB
17
17
  ESM dist/index.js.map 7.03 KB
18
- ESM ⚡️ Build success in 78ms
18
+ ESM ⚡️ Build success in 86ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 830ms
20
+ DTS ⚡️ Build success in 862ms
21
21
  DTS dist/index.d.cts 1.70 KB
22
22
  DTS dist/index.d.ts 1.70 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 140.56 kB │ gzip: 25.33 kB │ map: 301.90 kB
29
- dist/bundle.js 150.49 kB │ gzip: 25.78 kB │ map: 302.98 kB
30
- ✓ built in 386ms
28
+ dist/bundle.js 140.56 kB │ gzip: 25.33 kB │ map: 302.03 kB
29
+ dist/bundle.js 150.50 kB │ gzip: 25.78 kB │ map: 303.11 kB
30
+ ✓ built in 380ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.0.41
4
+
5
+ ### Patch Changes
6
+
7
+ - @platforma-sdk/model@1.13.2
8
+
3
9
  ## 1.0.40
4
10
 
5
11
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -391,7 +391,7 @@
391
391
  overrideMap,
392
392
  overrideMap === errorMap ? void 0 : errorMap
393
393
  // then global default map
394
- ].filter((x2) => !!x2)
394
+ ].filter((x) => !!x)
395
395
  });
396
396
  ctx.common.issues.push(issue);
397
397
  }
@@ -454,10 +454,10 @@
454
454
  });
455
455
  const DIRTY = (value) => ({ status: "dirty", value });
456
456
  const OK = (value) => ({ status: "valid", value });
457
- const isAborted = (x2) => x2.status === "aborted";
458
- const isDirty = (x2) => x2.status === "dirty";
459
- const isValid = (x2) => x2.status === "valid";
460
- const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
457
+ const isAborted = (x) => x.status === "aborted";
458
+ const isDirty = (x) => x.status === "dirty";
459
+ const isValid = (x) => x.status === "valid";
460
+ const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
461
461
  function __classPrivateFieldGet(receiver, state, kind, f) {
462
462
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
463
463
  return state.get(receiver);
@@ -2787,7 +2787,7 @@
2787
2787
  if (!schema)
2788
2788
  return null;
2789
2789
  return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2790
- }).filter((x2) => !!x2);
2790
+ }).filter((x) => !!x);
2791
2791
  if (ctx.common.async) {
2792
2792
  return Promise.all(items).then((results) => {
2793
2793
  return ParseStatus.mergeArray(status, results);
@@ -3045,7 +3045,7 @@
3045
3045
  ctx.schemaErrorMap,
3046
3046
  getErrorMap(),
3047
3047
  errorMap
3048
- ].filter((x2) => !!x2),
3048
+ ].filter((x) => !!x),
3049
3049
  issueData: {
3050
3050
  code: ZodIssueCode.invalid_arguments,
3051
3051
  argumentsError: error
@@ -3061,7 +3061,7 @@
3061
3061
  ctx.schemaErrorMap,
3062
3062
  getErrorMap(),
3063
3063
  errorMap
3064
- ].filter((x2) => !!x2),
3064
+ ].filter((x) => !!x),
3065
3065
  issueData: {
3066
3066
  code: ZodIssueCode.invalid_return_type,
3067
3067
  returnTypeError: error
@@ -3917,7 +3917,7 @@
3917
3917
  function c(n) {
3918
3918
  throw new Error("Unexpected object: " + n);
3919
3919
  }
3920
- function D$1(n, t) {
3920
+ function E(n, t) {
3921
3921
  return { ...n, src: i(n.src, t) };
3922
3922
  }
3923
3923
  function i(n, t) {
@@ -3955,20 +3955,20 @@
3955
3955
  function r(n) {
3956
3956
  return n.kind === "PColumn";
3957
3957
  }
3958
- function x(n) {
3958
+ function w$1(n) {
3959
3959
  return r(n.spec);
3960
3960
  }
3961
- function B(n) {
3962
- if (!x(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
3961
+ function L(n) {
3962
+ if (!w$1(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
3963
3963
  return n;
3964
3964
  }
3965
- function L(n, t) {
3965
+ function O$1(n, t) {
3966
3966
  return n === void 0 ? void 0 : {
3967
3967
  ...n,
3968
3968
  data: t(n.data)
3969
3969
  };
3970
3970
  }
3971
- function O$1(n, t) {
3971
+ function J(n, t) {
3972
3972
  return n.ok ? { ok: true, value: t(n.value) } : n;
3973
3973
  }
3974
3974
  var ct = Object.defineProperty;
@@ -4122,7 +4122,7 @@
4122
4122
  getPColumns(t = false, n = "") {
4123
4123
  const r2 = this.parsePObjectCollection(t, n);
4124
4124
  return r2 === void 0 ? void 0 : Object.entries(r2).map(([, i2]) => {
4125
- if (!x(i2)) throw new Error(`not a PColumn (kind = ${i2.spec.kind})`);
4125
+ if (!w$1(i2)) throw new Error(`not a PColumn (kind = ${i2.spec.kind})`);
4126
4126
  return i2;
4127
4127
  });
4128
4128
  }
@@ -4138,7 +4138,7 @@
4138
4138
  if (r2 === void 0) return;
4139
4139
  const s = {};
4140
4140
  for (const [i2, o] of Object.entries(r2))
4141
- s[i2] = L(o, (a) => new w(a));
4141
+ s[i2] = O$1(o, (a) => new w(a));
4142
4142
  return s;
4143
4143
  }
4144
4144
  getFileContentAsBase64() {
@@ -4241,9 +4241,9 @@
4241
4241
  y && b.splice(0, 0, { label: y, type: Rt, importance: -2 });
4242
4242
  const V = [], q = /* @__PURE__ */ new Map();
4243
4243
  for (let S = b.length - 1; S >= 0; --S) {
4244
- const { type: E } = b[S], ut = b[S].importance ?? 0, j = (q.get(E) ?? 0) + 1;
4245
- q.set(E, j);
4246
- const I = `${E}@${j}`;
4244
+ const { type: E2 } = b[S], ut = b[S].importance ?? 0, j = (q.get(E2) ?? 0) + 1;
4245
+ q.set(E2, j);
4246
+ const I = `${E2}@${j}`;
4247
4247
  s.set(I, (s.get(I) ?? 0) + 1), r2.set(
4248
4248
  I,
4249
4249
  Math.max(
@@ -4344,7 +4344,7 @@
4344
4344
  ref: n.ref,
4345
4345
  obj: {
4346
4346
  ...n.obj,
4347
- data: O$1(n.obj.data, (r2) => new w(r2))
4347
+ data: J(n.obj.data, (r2) => new w(r2))
4348
4348
  }
4349
4349
  }))
4350
4350
  };
@@ -4366,7 +4366,7 @@
4366
4366
  var n;
4367
4367
  return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (n = this.getData().entries.find(
4368
4368
  (r2) => r2.ref.blockId === t.blockId && r2.ref.name === t.name
4369
- )) == null ? void 0 : n.obj : L(
4369
+ )) == null ? void 0 : n.obj : O$1(
4370
4370
  this.ctx.getDataFromResultPoolByRef(t.blockId, t.name),
4371
4371
  (r2) => new w(r2)
4372
4372
  );
@@ -4379,7 +4379,7 @@
4379
4379
  getPColumnByRef(t) {
4380
4380
  const n = this.getDataByRef(t);
4381
4381
  if (n)
4382
- return B(n);
4382
+ return L(n);
4383
4383
  }
4384
4384
  /**
4385
4385
  * @param ref a Ref
@@ -4464,7 +4464,7 @@
4464
4464
  findLabels(t) {
4465
4465
  const n = this.resultPool.getData();
4466
4466
  for (const r2 of n.entries) {
4467
- if (!x(r2.obj)) continue;
4467
+ if (!w$1(r2.obj)) continue;
4468
4468
  const s = r2.obj.spec;
4469
4469
  if (s.name === "pl7.app/label" && s.axesSpec.length === 1 && s.axesSpec[0].name === t.name && s.axesSpec[0].type === t.type && K(t.domain, s.axesSpec[0].domain)) {
4470
4470
  if (r2.obj.data.resourceType.name !== "PColumnData/Json")
@@ -4478,7 +4478,7 @@
4478
4478
  }
4479
4479
  }
4480
4480
  createPFrame(t) {
4481
- return this.ctx.createPFrame(t.map((n) => L(n, (r2) => r2.handle)));
4481
+ return this.ctx.createPFrame(t.map((n) => O$1(n, (r2) => r2.handle)));
4482
4482
  }
4483
4483
  createPTable(t) {
4484
4484
  var n;
@@ -4489,7 +4489,7 @@
4489
4489
  },
4490
4490
  filters: t.filters ?? [],
4491
4491
  sorting: t.sorting ?? []
4492
- } : n = t, this.ctx.createPTable(D$1(n, (r2) => L(r2, (s) => s.handle)));
4492
+ } : n = t, this.ctx.createPTable(E(n, (r2) => O$1(r2, (s) => s.handle)));
4493
4493
  }
4494
4494
  /** @deprecated scheduled for removal from SDK */
4495
4495
  getBlockLabel(t) {
@@ -4500,7 +4500,7 @@
4500
4500
  return this.ctx.getCurrentUnstableMarker();
4501
4501
  }
4502
4502
  }
4503
- const C = "1.13.0";
4503
+ const C = "1.13.2";
4504
4504
  function kt(e) {
4505
4505
  return e.__renderLambda === true;
4506
4506
  }
@@ -4697,7 +4697,7 @@
4697
4697
  const collection = ctx.resultPool.getData();
4698
4698
  if (collection === void 0 || !collection.isComplete) return void 0;
4699
4699
  const valueTypes = ["Int", "Long", "Float", "Double", "String", "Bytes"];
4700
- const columns = collection.entries.map(({ obj }) => obj).filter(x).filter((column) => valueTypes.find((valueType) => valueType === column.spec.valueType));
4700
+ const columns = collection.entries.map(({ obj }) => obj).filter(w$1).filter((column) => valueTypes.find((valueType) => valueType === column.spec.valueType));
4701
4701
  try {
4702
4702
  return ctx.createPFrame(columns);
4703
4703
  } catch (err) {
@@ -4709,7 +4709,7 @@
4709
4709
  if (!join) return void 0;
4710
4710
  const collection = ctx.resultPool.getData();
4711
4711
  if (!collection || !collection.isComplete) return void 0;
4712
- const columns = collection.entries.map(({ obj }) => obj).filter(x);
4712
+ const columns = collection.entries.map(({ obj }) => obj).filter(w$1);
4713
4713
  if (columns.length === 0) return void 0;
4714
4714
  let columnMissing = false;
4715
4715
  const src = i(join, (idAndSpec) => {