@milaboratories/milaboratories.ui-examples.model 1.0.34 → 1.0.36

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.34 build /home/runner/work/platforma/platforma/etc/block-components/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.0.36 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
@@ -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.66 KB
14
- ESM dist/index.js.map 6.80 KB
15
- ESM ⚡️ Build success in 83ms
16
- CJS dist/index.cjs 2.71 KB
17
- CJS dist/index.cjs.map 6.85 KB
18
- CJS ⚡️ Build success in 83ms
13
+ CJS dist/index.cjs 2.70 KB
14
+ CJS dist/index.cjs.map 6.83 KB
15
+ CJS ⚡️ Build success in 80ms
16
+ ESM dist/index.js 2.65 KB
17
+ ESM dist/index.js.map 6.78 KB
18
+ ESM ⚡️ Build success in 80ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 877ms
20
+ DTS ⚡️ Build success in 831ms
21
21
  DTS dist/index.d.cts 1.67 KB
22
22
  DTS dist/index.d.ts 1.67 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 137.01 kB │ gzip: 24.10 kB │ map: 291.96 kB
29
- dist/bundle.js 146.75 kB │ gzip: 24.54 kB │ map: 293.03 kB
30
- ✓ built in 378ms
28
+ dist/bundle.js 137.00 kB │ gzip: 24.12 kB │ map: 291.96 kB
29
+ dist/bundle.js 146.73 kB │ gzip: 24.56 kB │ map: 293.02 kB
30
+ ✓ built in 370ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.0.36
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ade3acf]
8
+ - @platforma-sdk/model@1.10.12
9
+
10
+ ## 1.0.35
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [8187ba2]
15
+ - @platforma-sdk/model@1.10.2
16
+
3
17
  ## 1.0.34
4
18
 
5
19
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4402,7 +4402,7 @@
4402
4402
  return this.ctx.getCurrentUnstableMarker();
4403
4403
  }
4404
4404
  }
4405
- const b = "1.10.0";
4405
+ const b = "1.10.12";
4406
4406
  function Z(e) {
4407
4407
  return e.__renderLambda === true;
4408
4408
  }
@@ -4592,7 +4592,7 @@
4592
4592
  const $BlockArgs = z.object({
4593
4593
  numbers: z.array(z.coerce.number())
4594
4594
  });
4595
- const platforma = p.create("Heavy").withArgs({ numbers: [] }).withUiState({ dataTableState: void 0 }).output("numbers", (ctx) => {
4595
+ const platforma = p.create("Heavy").withArgs({ numbers: [1, 2, 3] }).withUiState({ dataTableState: void 0 }).output("numbers", (ctx) => {
4596
4596
  var _a, _b;
4597
4597
  return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
4598
4598
  }).output("pFrame", (ctx) => {
@@ -4613,19 +4613,18 @@
4613
4613
  if (!collection || !collection.isComplete) return void 0;
4614
4614
  const columns = collection.entries.map(({ obj }) => obj).filter(x$1);
4615
4615
  if (columns.length === 0) return void 0;
4616
- try {
4617
- return ctx.createPTable({
4618
- src: i(join, (idAndSpec) => {
4619
- const column = columns.find((it) => it.id === idAndSpec.columnId);
4620
- if (!column) throw Error(`column '${column}' not ready`);
4621
- return column;
4622
- }),
4623
- filters: ((_e = (_d = ctx.uiState.dataTableState) == null ? void 0 : _d.tableState.pTableParams) == null ? void 0 : _e.filters) ?? [],
4624
- sorting: ((_g = (_f = ctx.uiState.dataTableState) == null ? void 0 : _f.tableState.pTableParams) == null ? void 0 : _g.sorting) ?? []
4625
- });
4626
- } catch (err) {
4627
- return void 0;
4628
- }
4616
+ let columnMissing = false;
4617
+ const src = i(join, (idAndSpec) => {
4618
+ const column = columns.find((it) => it.id === idAndSpec.columnId);
4619
+ if (!column) columnMissing = true;
4620
+ return column;
4621
+ });
4622
+ if (columnMissing) return void 0;
4623
+ return ctx.createPTable({
4624
+ src,
4625
+ filters: ((_e = (_d = ctx.uiState.dataTableState) == null ? void 0 : _d.tableState.pTableParams) == null ? void 0 : _e.filters) ?? [],
4626
+ sorting: ((_g = (_f = ctx.uiState.dataTableState) == null ? void 0 : _f.tableState.pTableParams) == null ? void 0 : _g.sorting) ?? []
4627
+ });
4629
4628
  }).sections((ctx) => {
4630
4629
  return [
4631
4630
  { type: "link", href: "/", label: "Icons/Masks" },