@milaboratories/milaboratories.ui-examples.model 1.1.18 → 1.1.19

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.18 build /home/runner/work/platforma/platforma/etc/blocks/ui-examples/model
2
+ > @milaboratories/milaboratories.ui-examples.model@1.1.19 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,14 +10,14 @@
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- CJS dist/index.cjs 3.09 KB
14
- CJS dist/index.cjs.map 7.30 KB
15
- CJS ⚡️ Build success in 73ms
16
- ESM dist/index.js 3.05 KB
17
- ESM dist/index.js.map 7.26 KB
18
- ESM ⚡️ Build success in 73ms
13
+ ESM dist/index.js 3.44 KB
14
+ ESM dist/index.js.map 7.93 KB
15
+ ESM ⚡️ Build success in 78ms
16
+ CJS dist/index.cjs 3.48 KB
17
+ CJS dist/index.cjs.map 7.97 KB
18
+ CJS ⚡️ Build success in 78ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 924ms
20
+ DTS ⚡️ Build success in 840ms
21
21
  DTS dist/index.d.cts 1.45 KB
22
22
  DTS dist/index.d.ts 1.45 KB
23
23
  vite v5.4.11 building for production...
@@ -25,6 +25,6 @@ transforming...
25
25
  ✓ 4 modules transformed.
26
26
  rendering chunks...
27
27
  computing gzip size...
28
- dist/bundle.js 145.38 kB │ gzip: 26.65 kB │ map: 317.91 kB
29
- dist/bundle.js 155.62 kB │ gzip: 27.15 kB │ map: 319.04 kB
30
- ✓ built in 430ms
28
+ dist/bundle.js 145.78 kB │ gzip: 26.73 kB │ map: 318.56 kB
29
+ dist/bundle.js 156.05 kB │ gzip: 27.24 kB │ map: 319.69 kB
30
+ ✓ built in 418ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - 7ac5190: PlTableFilter support 'pl7.app/discreteValues' annotation
8
+
3
9
  ## 1.1.18
4
10
 
5
11
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -4829,35 +4829,51 @@
4829
4829
  }).output("pt", (ctx) => {
4830
4830
  var _a, _b, _c, _d, _e;
4831
4831
  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;
4832
- return wt(ctx, [
4833
- {
4834
- id: "example",
4835
- spec: {
4836
- kind: "PColumn",
4837
- valueType: "String",
4838
- name: "example",
4839
- annotations: {
4840
- "pl7.app/label": "String column"
4841
- },
4842
- axesSpec: [
4843
- {
4844
- type: "Int",
4845
- name: "index",
4846
- annotations: {
4847
- "pl7.app/label": "Int axis"
4832
+ return wt(
4833
+ ctx,
4834
+ [
4835
+ {
4836
+ id: "example",
4837
+ spec: {
4838
+ kind: "PColumn",
4839
+ valueType: "String",
4840
+ name: "example",
4841
+ annotations: {
4842
+ "pl7.app/label": "String column",
4843
+ "pl7.app/discreteValues": '["up","down"]'
4844
+ },
4845
+ axesSpec: [
4846
+ {
4847
+ type: "Int",
4848
+ name: "index",
4849
+ annotations: {
4850
+ "pl7.app/label": "Int axis",
4851
+ "pl7.app/discreteValues": "[1,2]"
4852
+ }
4853
+ },
4854
+ {
4855
+ type: "Float",
4856
+ name: "value",
4857
+ annotations: {
4858
+ "pl7.app/label": "Float axis"
4859
+ }
4848
4860
  }
4849
- }
4861
+ ]
4862
+ },
4863
+ data: [
4864
+ { key: [1, 1.1], val: "1" },
4865
+ { key: [2, 2.2], val: "2" }
4850
4866
  ]
4851
- },
4852
- data: [
4853
- { key: [1], val: "1" },
4854
- { key: [2], val: "2" }
4867
+ }
4868
+ ],
4869
+ ctx.uiState.dataTableState.tableState,
4870
+ {
4871
+ filters: [
4872
+ ...((_d = ctx.uiState.dataTableState.tableState.pTableParams) == null ? void 0 : _d.filters) ?? [],
4873
+ ...((_e = ctx.uiState.dataTableState.filterModel) == null ? void 0 : _e.filters) ?? []
4855
4874
  ]
4856
4875
  }
4857
- ], ctx.uiState.dataTableState.tableState, [
4858
- ...((_d = ctx.uiState.dataTableState.tableState.pTableParams) == null ? void 0 : _d.filters) ?? [],
4859
- ...((_e = ctx.uiState.dataTableState.filterModel) == null ? void 0 : _e.filters) ?? []
4860
- ]);
4876
+ );
4861
4877
  }).sections((ctx) => {
4862
4878
  const dynamicSections = (ctx.uiState.dynamicSections ?? []).map((it2) => ({
4863
4879
  type: "link",