@milaboratories/milaboratories.ui-examples.model 1.0.35 → 1.0.37

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.35 build /home/runner/work/platforma/platforma/etc/block-components/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.0.37 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,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.71 KB
14
- CJS dist/index.cjs.map 6.85 KB
15
- CJS ⚡️ Build success in 85ms
16
- ESM dist/index.js 2.66 KB
17
- ESM dist/index.js.map 6.80 KB
18
- ESM ⚡️ Build success in 86ms
13
+ CJS dist/index.cjs 2.75 KB
14
+ CJS dist/index.cjs.map 6.96 KB
15
+ CJS ⚡️ Build success in 83ms
16
+ ESM dist/index.js 2.70 KB
17
+ ESM dist/index.js.map 6.91 KB
18
+ ESM ⚡️ Build success in 83ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 864ms
21
- DTS dist/index.d.cts 1.67 KB
22
- DTS dist/index.d.ts 1.67 KB
20
+ DTS ⚡️ Build success in 866ms
21
+ DTS dist/index.d.cts 1.68 KB
22
+ DTS dist/index.d.ts 1.68 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 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 384ms
28
+ dist/bundle.js 137.06 kB │ gzip: 24.12 kB │ map: 292.06 kB
29
+ dist/bundle.js 146.79 kB │ gzip: 24.56 kB │ map: 293.13 kB
30
+ ✓ built in 422ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.0.37
4
+
5
+ ### Patch Changes
6
+
7
+ - ec5be92: Accordion + simple section separator
8
+
9
+ ## 1.0.36
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [ade3acf]
14
+ - @platforma-sdk/model@1.10.12
15
+
3
16
  ## 1.0.35
4
17
 
5
18
  ### 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.2";
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,35 +4613,35 @@
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" },
4631
+ { type: "link", href: "/form-components", label: "Form Components" },
4632
4632
  { type: "link", href: "/log-view", label: "PlLogView" },
4633
4633
  { type: "link", href: "/modals", label: "Modals" },
4634
4634
  { type: "link", href: "/select-files", label: "Select Files" },
4635
4635
  { type: "link", href: "/inject-env", label: "Inject env" },
4636
4636
  { type: "link", href: "/dropdowns", label: "Dropdowns" },
4637
4637
  { type: "link", href: "/use-watch-fetch", label: "useWatchFetch" },
4638
- { type: "link", href: "/form-components", label: "Form Components" },
4639
4638
  { type: "link", href: "/typography", label: "Typography" },
4640
4639
  { type: "link", href: "/ag-grid-vue", label: "AgGridVue" },
4641
4640
  { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
4642
4641
  { type: "link", href: "/errors", label: "Errors" },
4643
4642
  { type: "link", href: "/text-fields", label: "PlTextField" },
4644
- { type: "link", href: "/tabs", label: "PlTabs" }
4643
+ { type: "link", href: "/tabs", label: "PlTabs" },
4644
+ { type: "link", href: "/drafts", label: "Drafts" }
4645
4645
  ];
4646
4646
  }).done();
4647
4647
  exports2.$BlockArgs = $BlockArgs;