@milaboratories/milaboratories.ui-examples.model 1.1.26 → 1.1.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,30 +1,30 @@
1
1
 
2
- > @milaboratories/milaboratories.ui-examples.model@1.1.26 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.1.27 build /opt/actions-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
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.5
8
- CLI Using tsup config: /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model/package.json
8
+ CLI Using tsup config: /opt/actions-runner/_work/platforma/platforma/etc/blocks/ui-examples/model/package.json
9
9
  CLI Target: es2022
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- ESM dist/index.js 3.82 KB
14
- ESM dist/index.js.map 8.89 KB
15
- ESM ⚡️ Build success in 84ms
16
- CJS dist/index.cjs 3.87 KB
17
- CJS dist/index.cjs.map 8.93 KB
18
- CJS ⚡️ Build success in 84ms
13
+ ESM dist/index.js 4.29 KB
14
+ ESM dist/index.js.map 10.11 KB
15
+ ESM ⚡️ Build success in 67ms
16
+ CJS dist/index.cjs 4.39 KB
17
+ CJS dist/index.cjs.map 10.15 KB
18
+ CJS ⚡️ Build success in 67ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 872ms
21
- DTS dist/index.d.cts 1.45 KB
22
- DTS dist/index.d.ts 1.45 KB
20
+ DTS ⚡️ Build success in 643ms
21
+ DTS dist/index.d.cts 1.82 KB
22
+ DTS dist/index.d.ts 1.82 KB
23
23
  vite v5.4.11 building for production...
24
24
  transforming...
25
25
  ✓ 6 modules transformed.
26
26
  rendering chunks...
27
27
  computing gzip size...
28
- dist/bundle.js 154.81 kB │ gzip: 29.07 kB │ map: 337.92 kB
29
- dist/bundle.js 165.64 kB │ gzip: 29.60 kB │ map: 339.16 kB
30
- ✓ built in 486ms
28
+ dist/bundle.js 155.30 kB │ gzip: 29.26 kB │ map: 338.93 kB
29
+ dist/bundle.js 166.23 kB │ gzip: 29.80 kB │ map: 340.19 kB
30
+ ✓ built in 360ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.27
4
+
5
+ ### Patch Changes
6
+
7
+ - 5f0fb1d: [sdk/ui-vue] PlAgDataTable hidden columns are shown as visible after selecting empty dataset
8
+ - Updated dependencies [5f0fb1d]
9
+ - @platforma-sdk/model@1.24.9
10
+
3
11
  ## 1.1.26
4
12
 
5
13
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4847,7 +4847,7 @@
4847
4847
  return this.ctx.getCurrentUnstableMarker();
4848
4848
  }
4849
4849
  }
4850
- const L = "1.24.5";
4850
+ const L = "1.24.9";
4851
4851
  function Je(t) {
4852
4852
  return t.__renderLambda === true;
4853
4853
  }
@@ -5084,10 +5084,26 @@
5084
5084
  sorting: ((g2 = n == null ? void 0 : n.pTableParams) == null ? void 0 : g2.sorting) ?? []
5085
5085
  });
5086
5086
  }
5087
+ function* range(from, to, step = 1) {
5088
+ for (let i = from; i < to; i += step) {
5089
+ yield i;
5090
+ }
5091
+ }
5092
+ function toList(iterable) {
5093
+ const lst = [];
5094
+ for (const it of iterable) {
5095
+ lst.push(it);
5096
+ }
5097
+ return lst;
5098
+ }
5099
+ function times(n, cb) {
5100
+ return toList(range(0, n)).map(cb);
5101
+ }
5087
5102
  const $BlockArgs = z$2.object({
5103
+ tableNumRows: z$2.number().default(100),
5088
5104
  numbers: z$2.array(z$2.coerce.number())
5089
5105
  });
5090
- const platforma = w.create("Heavy").withArgs({ numbers: [1, 2, 3, 4] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
5106
+ const platforma = w.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100 }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
5091
5107
  if (ctx.args.numbers.length === 5) {
5092
5108
  throw new Error("argsValid: test error");
5093
5109
  }
@@ -5098,6 +5114,13 @@
5098
5114
  }).output("pt", (ctx) => {
5099
5115
  var _a, _b, _c, _d, _e2;
5100
5116
  if (!((_c = (_b = (_a = ctx.uiState) == null ? void 0 : _a.dataTableState) == null ? void 0 : _b.tableState.pTableParams) == null ? void 0 : _c.filters)) return void 0;
5117
+ const data = times(ctx.args.tableNumRows ?? 0, (i) => {
5118
+ const v = i + 1;
5119
+ return {
5120
+ key: [v, v + 0.1],
5121
+ val: v.toString()
5122
+ };
5123
+ });
5101
5124
  return Dt(
5102
5125
  ctx,
5103
5126
  [
@@ -5124,15 +5147,13 @@
5124
5147
  type: "Float",
5125
5148
  name: "value",
5126
5149
  annotations: {
5127
- "pl7.app/label": "Float axis"
5150
+ "pl7.app/label": "Float axis",
5151
+ "pl7.app/table/visibility": "optional"
5128
5152
  }
5129
5153
  }
5130
5154
  ]
5131
5155
  },
5132
- data: [
5133
- { key: [1, 1.1], val: "1" },
5134
- { key: [2, 2.2], val: "2" }
5135
- ]
5156
+ data
5136
5157
  }
5137
5158
  ],
5138
5159
  ctx.uiState.dataTableState.tableState,
@@ -5194,6 +5215,9 @@
5194
5215
  }).done();
5195
5216
  exports2.$BlockArgs = $BlockArgs;
5196
5217
  exports2.platforma = platforma;
5218
+ exports2.range = range;
5219
+ exports2.times = times;
5220
+ exports2.toList = toList;
5197
5221
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
5198
5222
  });
5199
5223
  //# sourceMappingURL=bundle.js.map