@milaboratories/milaboratories.ui-examples.model 1.0.24 → 1.0.26

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,6 +1,5 @@
1
-  WARN  Issue while reading "/home/runner/work/platforma/platforma/.npmrc". Failed to replace env in config: ${milaboratory}
2
1
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.0.24 build /home/runner/work/platforma/platforma/etc/block-components/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.0.26 build /home/runner/work/platforma/platforma/etc/block-components/ui-examples/model
4
3
  > tsup && vite build && block-tools build-model
5
4
 
6
5
  CLI Building entry: src/index.ts
@@ -11,21 +10,21 @@
11
10
  CLI Cleaning output folder
12
11
  CJS Build start
13
12
  ESM Build start
14
- CJS dist/index.cjs 1.11 KB
15
- CJS dist/index.cjs.map 2.46 KB
16
- CJS ⚡️ Build success in 67ms
17
- ESM dist/index.js 1.05 KB
18
- ESM dist/index.js.map 2.43 KB
19
- ESM ⚡️ Build success in 68ms
13
+ CJS dist/index.cjs 2.50 KB
14
+ CJS dist/index.cjs.map 6.39 KB
15
+ CJS ⚡️ Build success in 99ms
16
+ ESM dist/index.js 2.45 KB
17
+ ESM dist/index.js.map 6.33 KB
18
+ ESM ⚡️ Build success in 99ms
20
19
  DTS Build start
21
- DTS ⚡️ Build success in 986ms
22
- DTS dist/index.d.cts 869.00 B
23
- DTS dist/index.d.ts 869.00 B
20
+ DTS ⚡️ Build success in 1090ms
21
+ DTS dist/index.d.cts 1.63 KB
22
+ DTS dist/index.d.ts 1.63 KB
24
23
  vite v5.4.10 building for production...
25
24
  transforming...
26
25
  ✓ 4 modules transformed.
27
26
  rendering chunks...
28
27
  computing gzip size...
29
- dist/bundle.js 129.97 kB │ gzip: 22.56 kB │ map: 275.61 kB
30
- dist/bundle.js 139.29 kB │ gzip: 22.99 kB │ map: 276.66 kB
31
- ✓ built in 422ms
28
+ dist/bundle.js 131.59 kB │ gzip: 22.96 kB │ map: 278.98 kB
29
+ dist/bundle.js 140.97 kB │ gzip: 23.39 kB │ map: 280.03 kB
30
+ ✓ built in 449ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - f341244: AgGrid: migrate to the Theming Api
8
+
9
+ ## 1.0.25
10
+
11
+ ### Patch Changes
12
+
13
+ - eddcfed: Add Errors page to ui-examples
14
+
3
15
  ## 1.0.24
4
16
 
5
17
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4419,9 +4419,40 @@
4419
4419
  "numbers",
4420
4420
  (ctx) => {
4421
4421
  var _a, _b;
4422
- return (_b = (_a = ctx.prerun) == null ? void 0 : _a.resolve({ field: "numbers", assertFieldType: "Input" })) == null ? void 0 : _b.getDataAsJson();
4422
+ return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
4423
+ }
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;
4423
4454
  }
4424
- ).sections((ctx) => {
4455
+ }).sections((ctx) => {
4425
4456
  return [
4426
4457
  { type: "link", href: "/", label: "PlLogView" },
4427
4458
  { type: "link", href: "/modals", label: "Modals" },
@@ -4431,7 +4462,9 @@
4431
4462
  { type: "link", href: "/use-watch-fetch", label: "useWatchFetch" },
4432
4463
  { type: "link", href: "/form-components", label: "Form Components" },
4433
4464
  { type: "link", href: "/typography", label: "Typography" },
4434
- { type: "link", href: "/ag-grid-vue", label: "AgGridVue" }
4465
+ { type: "link", href: "/ag-grid-vue", label: "AgGridVue" },
4466
+ { type: "link", href: "/pl-ag-data-table", label: "PlAgDataTable" },
4467
+ { type: "link", href: "/errors", label: "Errors" }
4435
4468
  ];
4436
4469
  }).done();
4437
4470
  exports2.$BlockArgs = $BlockArgs;