@milaboratories/milaboratories.ui-examples.model 1.2.6 → 1.2.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/milaboratories.ui-examples.model",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Block model",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -8,7 +8,7 @@
8
8
  "types": "dist/index.d.ts",
9
9
  "dependencies": {
10
10
  "zod": "~3.23.8",
11
- "@platforma-sdk/model": "1.40.0"
11
+ "@platforma-sdk/model": "1.40.1"
12
12
  },
13
13
  "devDependencies": {
14
14
  "typescript": "~5.6.3",
package/src/index.ts CHANGED
@@ -179,6 +179,33 @@ export const platforma = BlockModel.create('Heavy')
179
179
  };
180
180
  }),
181
181
  },
182
+ {
183
+ id: 'labelColumn' as PObjectId,
184
+ spec: {
185
+ kind: 'PColumn',
186
+ valueType: 'Int',
187
+ name: 'pl7.app/label',
188
+ annotations: {
189
+ 'pl7.app/label': 'Int axis labels',
190
+ },
191
+ axesSpec: [
192
+ {
193
+ type: 'Int',
194
+ name: 'index',
195
+ annotations: {
196
+ 'pl7.app/label': 'Int axis',
197
+ },
198
+ },
199
+ ],
200
+ },
201
+ data: times(rowCount, (i) => {
202
+ const v = i + 1;
203
+ return {
204
+ key: [v],
205
+ val: 100000 - v,
206
+ };
207
+ }),
208
+ },
182
209
  ];
183
210
  for (let j = 3; j < 10; ++j) {
184
211
  columns.push({