@milaboratories/milaboratories.ui-examples.model 1.0.25 → 1.0.27

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.25 build /home/runner/work/platforma/platforma/etc/block-components/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.0.27 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
- ESM dist/index.js 1.07 KB
14
- ESM dist/index.js.map 2.48 KB
15
- ESM ⚡️ Build success in 71ms
16
- CJS dist/index.cjs 1.13 KB
17
- CJS dist/index.cjs.map 2.50 KB
18
- CJS ⚡️ Build success in 71ms
13
+ CJS dist/index.cjs 2.56 KB
14
+ CJS dist/index.cjs.map 6.52 KB
15
+ CJS ⚡️ Build success in 113ms
16
+ ESM dist/index.js 2.51 KB
17
+ ESM dist/index.js.map 6.46 KB
18
+ ESM ⚡️ Build success in 113ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 1011ms
21
- DTS dist/index.d.cts 881.00 B
22
- DTS dist/index.d.ts 881.00 B
20
+ DTS ⚡️ Build success in 1068ms
21
+ DTS dist/index.d.cts 1.64 KB
22
+ DTS dist/index.d.ts 1.64 KB
23
23
  vite v5.4.10 building for production...
24
24
  transforming...
25
25
  ✓ 4 modules transformed.
26
26
  rendering chunks...
27
27
  computing gzip size...
28
- dist/bundle.js 129.99 kB │ gzip: 22.55 kB │ map: 275.65 kB
29
- dist/bundle.js 139.31 kB │ gzip: 22.98 kB │ map: 276.70 kB
30
- ✓ built in 421ms
28
+ dist/bundle.js 131.65 kB │ gzip: 22.98 kB │ map: 279.09 kB
29
+ dist/bundle.js 141.03 kB │ gzip: 23.41 kB │ map: 280.14 kB
30
+ ✓ built in 438ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.0.27
4
+
5
+ ### Patch Changes
6
+
7
+ - c16492e: Update icon-set
8
+
9
+ ## 1.0.26
10
+
11
+ ### Patch Changes
12
+
13
+ - f341244: AgGrid: migrate to the Theming Api
14
+
3
15
  ## 1.0.25
4
16
 
5
17
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4421,9 +4421,41 @@
4421
4421
  var _a, _b;
4422
4422
  return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
4423
4423
  }
4424
- ).sections((ctx) => {
4424
+ ).output("pFrame", (ctx) => {
4425
+ const collection = ctx.resultPool.getData();
4426
+ if (collection === void 0 || !collection.isComplete) return void 0;
4427
+ const valueTypes = ["Int", "Long", "Float", "Double", "String", "Bytes"];
4428
+ const columns = collection.entries.map(({ obj }) => obj).filter(x$1).filter((column) => valueTypes.find((valueType) => valueType === column.spec.valueType));
4429
+ try {
4430
+ return ctx.createPFrame(columns);
4431
+ } catch (err) {
4432
+ return void 0;
4433
+ }
4434
+ }).output("pTable", (ctx) => {
4435
+ var _a, _b, _c, _d, _e, _f, _g;
4436
+ const join = (_c = (_b = (_a = ctx.uiState) == null ? void 0 : _a.dataTableState) == null ? void 0 : _b.tableState.pTableParams) == null ? void 0 : _c.join;
4437
+ if (!join) return void 0;
4438
+ const collection = ctx.resultPool.getData();
4439
+ if (!collection || !collection.isComplete) return void 0;
4440
+ const columns = collection.entries.map(({ obj }) => obj).filter(x$1);
4441
+ if (columns.length === 0) return void 0;
4442
+ try {
4443
+ return ctx.createPTable({
4444
+ src: i(join, (idAndSpec) => {
4445
+ const column = columns.find((it) => it.id === idAndSpec.columnId);
4446
+ if (!column) throw Error(`column '${column}' not ready`);
4447
+ return column;
4448
+ }),
4449
+ filters: ((_e = (_d = ctx.uiState.dataTableState) == null ? void 0 : _d.tableState.pTableParams) == null ? void 0 : _e.filters) ?? [],
4450
+ sorting: ((_g = (_f = ctx.uiState.dataTableState) == null ? void 0 : _f.tableState.pTableParams) == null ? void 0 : _g.sorting) ?? []
4451
+ });
4452
+ } catch (err) {
4453
+ return void 0;
4454
+ }
4455
+ }).sections((ctx) => {
4425
4456
  return [
4426
4457
  { type: "link", href: "/", label: "PlLogView" },
4458
+ { type: "link", href: "/icons", label: "Icons/Masks" },
4427
4459
  { type: "link", href: "/modals", label: "Modals" },
4428
4460
  { type: "link", href: "/select-files", label: "Select Files" },
4429
4461
  { type: "link", href: "/inject-env", label: "Inject env" },
@@ -4432,6 +4464,7 @@
4432
4464
  { type: "link", href: "/form-components", label: "Form Components" },
4433
4465
  { type: "link", href: "/typography", label: "Typography" },
4434
4466
  { type: "link", href: "/ag-grid-vue", label: "AgGridVue" },
4467
+ { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
4435
4468
  { type: "link", href: "/errors", label: "Errors" }
4436
4469
  ];
4437
4470
  }).done();