@milaboratories/milaboratories.ui-examples.model 1.2.9 → 1.2.10
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/.turbo/turbo-build.log +11 -11
- package/CHANGELOG.md +8 -0
- package/dist/bundle.js +221 -180
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +47 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +47 -8
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +44 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/milaboratories.ui-examples.model",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "Block model",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"zod": "~3.23.8",
|
|
11
|
-
"@platforma-sdk/model": "1.40.
|
|
11
|
+
"@platforma-sdk/model": "1.40.6"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"typescript": "~5.6.3",
|
|
15
15
|
"vite": "^6.3.5",
|
|
16
16
|
"tsup": "~8.3.5",
|
|
17
|
-
"@platforma-sdk/block-tools": "2.5.
|
|
17
|
+
"@platforma-sdk/block-tools": "2.5.70"
|
|
18
18
|
},
|
|
19
19
|
"tsup": {
|
|
20
20
|
"entry": [
|
package/src/index.ts
CHANGED
|
@@ -122,6 +122,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
122
122
|
annotations: {
|
|
123
123
|
'pl7.app/label': 'String column',
|
|
124
124
|
'pl7.app/discreteValues': '["up","down"]',
|
|
125
|
+
'pl7.app/table/orderPriority': '101',
|
|
125
126
|
},
|
|
126
127
|
axesSpec: [
|
|
127
128
|
{
|
|
@@ -158,6 +159,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
158
159
|
annotations: {
|
|
159
160
|
'pl7.app/label': 'Float column',
|
|
160
161
|
'pl7.app/table/visibility': 'optional',
|
|
162
|
+
'pl7.app/table/orderPriority': '100',
|
|
161
163
|
},
|
|
162
164
|
axesSpec: [
|
|
163
165
|
{
|
|
@@ -212,24 +214,61 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
212
214
|
};
|
|
213
215
|
}),
|
|
214
216
|
},
|
|
217
|
+
{
|
|
218
|
+
id: 'linkerColumn' as PObjectId,
|
|
219
|
+
spec: {
|
|
220
|
+
kind: 'PColumn',
|
|
221
|
+
valueType: 'Int',
|
|
222
|
+
name: 'linker',
|
|
223
|
+
annotations: {
|
|
224
|
+
'pl7.app/label': 'Index axis linker',
|
|
225
|
+
'pl7.app/isLinkerColumn': 'true',
|
|
226
|
+
'pl7.app/table/visibility': 'hidden',
|
|
227
|
+
},
|
|
228
|
+
axesSpec: [
|
|
229
|
+
{
|
|
230
|
+
type: 'Int',
|
|
231
|
+
name: 'index',
|
|
232
|
+
annotations: {
|
|
233
|
+
'pl7.app/label': 'Int axis',
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type: 'Int',
|
|
238
|
+
name: 'linkedIndex',
|
|
239
|
+
annotations: {
|
|
240
|
+
'pl7.app/label': 'Linked int axis',
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
data: times(rowCount, (i) => {
|
|
246
|
+
const v = i + 1;
|
|
247
|
+
return {
|
|
248
|
+
key: [v, v],
|
|
249
|
+
val: 1,
|
|
250
|
+
};
|
|
251
|
+
}),
|
|
252
|
+
},
|
|
215
253
|
];
|
|
216
|
-
for (let j =
|
|
254
|
+
for (let j = 1; j < 10; ++j) {
|
|
217
255
|
columns.push({
|
|
218
|
-
id: `
|
|
256
|
+
id: `alphabeticalColumn${j}` as PObjectId,
|
|
219
257
|
spec: {
|
|
220
258
|
kind: 'PColumn',
|
|
221
259
|
valueType: 'String',
|
|
222
260
|
name: 'value',
|
|
223
261
|
annotations: {
|
|
224
|
-
'pl7.app/label': `Alphabetical column ${j
|
|
262
|
+
'pl7.app/label': `Alphabetical column ${j}`,
|
|
225
263
|
'pl7.app/table/visibility': 'optional',
|
|
264
|
+
'pl7.app/table/orderPriority': (10 - j).toString(),
|
|
226
265
|
},
|
|
227
266
|
axesSpec: [
|
|
228
267
|
{
|
|
229
268
|
type: 'Int',
|
|
230
|
-
name: '
|
|
269
|
+
name: 'linkedIndex',
|
|
231
270
|
annotations: {
|
|
232
|
-
'pl7.app/label': '
|
|
271
|
+
'pl7.app/label': 'Linked int axis',
|
|
233
272
|
},
|
|
234
273
|
},
|
|
235
274
|
],
|