@milaboratories/milaboratories.ui-examples.model 1.1.10 → 1.1.11

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.10 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.1.11 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.58 KB
14
- CJS dist/index.cjs.map 6.01 KB
15
- CJS ⚡️ Build success in 67ms
16
- ESM dist/index.js 2.54 KB
17
- ESM dist/index.js.map 5.97 KB
18
- ESM ⚡️ Build success in 67ms
13
+ CJS dist/index.cjs 3.02 KB
14
+ CJS dist/index.cjs.map 7.15 KB
15
+ CJS ⚡️ Build success in 77ms
16
+ ESM dist/index.js 2.97 KB
17
+ ESM dist/index.js.map 7.11 KB
18
+ ESM ⚡️ Build success in 78ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 830ms
21
- DTS dist/index.d.cts 1.32 KB
22
- DTS dist/index.d.ts 1.32 KB
20
+ DTS ⚡️ Build success in 829ms
21
+ DTS dist/index.d.cts 1.43 KB
22
+ DTS dist/index.d.ts 1.43 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 144.26 kB │ gzip: 26.25 kB │ map: 315.64 kB
29
- dist/bundle.js 154.47 kB │ gzip: 26.75 kB │ map: 316.77 kB
30
- ✓ built in 404ms
28
+ dist/bundle.js 144.71 kB │ gzip: 26.38 kB │ map: 316.68 kB
29
+ dist/bundle.js 154.95 kB │ gzip: 26.88 kB │ map: 317.80 kB
30
+ ✓ built in 394ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 32966e6: [desktop] Custom design for “+ add graph“ etc. sections
8
+ - @platforma-sdk/model@1.21.20
9
+
3
10
  ## 1.1.10
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4578,7 +4578,7 @@
4578
4578
  return this.ctx.getCurrentUnstableMarker();
4579
4579
  }
4580
4580
  }
4581
- const T = "1.21.10";
4581
+ const T = "1.21.20";
4582
4582
  function Le(n) {
4583
4583
  return n.__renderLambda === true;
4584
4584
  }
@@ -4824,7 +4824,7 @@
4824
4824
  const $BlockArgs = z.object({
4825
4825
  numbers: z.array(z.coerce.number())
4826
4826
  });
4827
- const platforma = v.create("Heavy").withArgs({ numbers: [1, 2, 3] }).withUiState({ dataTableState: void 0 }).output("numbers", (ctx) => {
4827
+ const platforma = v.create("Heavy").withArgs({ numbers: [1, 2, 3, 4] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).output("numbers", (ctx) => {
4828
4828
  var _a, _b;
4829
4829
  return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
4830
4830
  }).output("pt", (ctx) => {
@@ -4856,10 +4856,15 @@
4856
4856
  ]
4857
4857
  }
4858
4858
  ], ctx.uiState.dataTableState.tableState, [
4859
- ...(_d = ctx.uiState.dataTableState.tableState.pTableParams) == null ? void 0 : _d.filters,
4859
+ ...((_d = ctx.uiState.dataTableState.tableState.pTableParams) == null ? void 0 : _d.filters) ?? [],
4860
4860
  ...((_e = ctx.uiState.dataTableState.filterModel) == null ? void 0 : _e.filters) ?? []
4861
4861
  ]);
4862
4862
  }).sections((ctx) => {
4863
+ const dynamicSections = (ctx.uiState.dynamicSections ?? []).map((it2) => ({
4864
+ type: "link",
4865
+ href: `/section?id=${it2.id}`,
4866
+ label: it2.label
4867
+ }));
4863
4868
  return [
4864
4869
  { type: "link", href: "/loaders", label: "Loaders" },
4865
4870
  { type: "link", href: "/", label: "Icons/Masks" },
@@ -4877,10 +4882,21 @@
4877
4882
  { type: "link", href: "/errors", label: "Errors" },
4878
4883
  { type: "link", href: "/text-fields", label: "PlTextField" },
4879
4884
  { type: "link", href: "/tabs", label: "PlTabs" },
4880
- { type: "link", href: "/drafts", label: "Drafts" },
4881
4885
  { type: "link", href: "/stacked-bar", label: "PlChartStackedBar" },
4882
4886
  { type: "link", href: "/buttons", label: "ButtonsPage" },
4883
- { type: "link", href: "/notifications", label: "Notifications" }
4887
+ { type: "link", href: "/notifications", label: "Notifications" },
4888
+ { type: "link", href: "/drafts", label: "Drafts" },
4889
+ ...dynamicSections.length ? [
4890
+ { type: "delimiter" },
4891
+ ...dynamicSections,
4892
+ { type: "delimiter" }
4893
+ ] : [],
4894
+ {
4895
+ type: "link",
4896
+ href: "/add-section",
4897
+ appearance: "add-section",
4898
+ label: "New Dynamic section"
4899
+ }
4884
4900
  ];
4885
4901
  }).done();
4886
4902
  exports2.$BlockArgs = $BlockArgs;