@milaboratories/milaboratories.ui-examples.model 1.2.9 → 1.2.11
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 +13 -13
- package/CHANGELOG.md +15 -0
- package/dist/bundle.js +327 -263
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +51 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +51 -10
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
- package/src/index.ts +51 -6
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.11",
|
|
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.
|
|
11
|
+
"@platforma-sdk/model": "1.41.0"
|
|
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.71"
|
|
18
18
|
},
|
|
19
19
|
"tsup": {
|
|
20
20
|
"entry": [
|
package/src/index.ts
CHANGED
|
@@ -58,6 +58,10 @@ export type UiState = {
|
|
|
58
58
|
id: string;
|
|
59
59
|
label: string;
|
|
60
60
|
}[];
|
|
61
|
+
datasets: {
|
|
62
|
+
id: string;
|
|
63
|
+
label: string;
|
|
64
|
+
}[];
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
export const platforma = BlockModel.create('Heavy')
|
|
@@ -70,6 +74,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
70
74
|
state: createPlDataTableStateV2(),
|
|
71
75
|
},
|
|
72
76
|
dynamicSections: [],
|
|
77
|
+
datasets: [],
|
|
73
78
|
})
|
|
74
79
|
|
|
75
80
|
.argsValid((ctx) => {
|
|
@@ -122,6 +127,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
122
127
|
annotations: {
|
|
123
128
|
'pl7.app/label': 'String column',
|
|
124
129
|
'pl7.app/discreteValues': '["up","down"]',
|
|
130
|
+
'pl7.app/table/orderPriority': '101',
|
|
125
131
|
},
|
|
126
132
|
axesSpec: [
|
|
127
133
|
{
|
|
@@ -158,6 +164,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
158
164
|
annotations: {
|
|
159
165
|
'pl7.app/label': 'Float column',
|
|
160
166
|
'pl7.app/table/visibility': 'optional',
|
|
167
|
+
'pl7.app/table/orderPriority': '100',
|
|
161
168
|
},
|
|
162
169
|
axesSpec: [
|
|
163
170
|
{
|
|
@@ -212,24 +219,61 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
212
219
|
};
|
|
213
220
|
}),
|
|
214
221
|
},
|
|
222
|
+
{
|
|
223
|
+
id: 'linkerColumn' as PObjectId,
|
|
224
|
+
spec: {
|
|
225
|
+
kind: 'PColumn',
|
|
226
|
+
valueType: 'Int',
|
|
227
|
+
name: 'linker',
|
|
228
|
+
annotations: {
|
|
229
|
+
'pl7.app/label': 'Index axis linker',
|
|
230
|
+
'pl7.app/isLinkerColumn': 'true',
|
|
231
|
+
'pl7.app/table/visibility': 'hidden',
|
|
232
|
+
},
|
|
233
|
+
axesSpec: [
|
|
234
|
+
{
|
|
235
|
+
type: 'Int',
|
|
236
|
+
name: 'index',
|
|
237
|
+
annotations: {
|
|
238
|
+
'pl7.app/label': 'Int axis',
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
type: 'Int',
|
|
243
|
+
name: 'linkedIndex',
|
|
244
|
+
annotations: {
|
|
245
|
+
'pl7.app/label': 'Linked int axis',
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
data: times(rowCount, (i) => {
|
|
251
|
+
const v = i + 1;
|
|
252
|
+
return {
|
|
253
|
+
key: [v, v],
|
|
254
|
+
val: 1,
|
|
255
|
+
};
|
|
256
|
+
}),
|
|
257
|
+
},
|
|
215
258
|
];
|
|
216
|
-
for (let j =
|
|
259
|
+
for (let j = 1; j < 10; ++j) {
|
|
217
260
|
columns.push({
|
|
218
|
-
id: `
|
|
261
|
+
id: `alphabeticalColumn${j}` as PObjectId,
|
|
219
262
|
spec: {
|
|
220
263
|
kind: 'PColumn',
|
|
221
264
|
valueType: 'String',
|
|
222
265
|
name: 'value',
|
|
223
266
|
annotations: {
|
|
224
|
-
'pl7.app/label': `Alphabetical column ${j
|
|
267
|
+
'pl7.app/label': `Alphabetical column ${j}`,
|
|
225
268
|
'pl7.app/table/visibility': 'optional',
|
|
269
|
+
'pl7.app/table/orderPriority': (10 - j).toString(),
|
|
226
270
|
},
|
|
227
271
|
axesSpec: [
|
|
228
272
|
{
|
|
229
273
|
type: 'Int',
|
|
230
|
-
name: '
|
|
274
|
+
name: 'linkedIndex',
|
|
231
275
|
annotations: {
|
|
232
|
-
'pl7.app/label': '
|
|
276
|
+
'pl7.app/label': 'Linked int axis',
|
|
233
277
|
},
|
|
234
278
|
},
|
|
235
279
|
],
|
|
@@ -272,6 +316,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
272
316
|
return [
|
|
273
317
|
{ type: 'link', href: '/loaders', label: 'Loaders' },
|
|
274
318
|
{ type: 'link', href: '/', label: 'Icons/Masks' },
|
|
319
|
+
{ type: 'link', href: '/state', label: 'State' },
|
|
275
320
|
{ type: 'link', href: '/layout', label: 'Layout' },
|
|
276
321
|
{ type: 'link', href: '/form-components', label: 'Form Components' },
|
|
277
322
|
{ type: 'link', href: '/log-view', label: 'PlLogView' },
|
|
@@ -312,7 +357,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
312
357
|
];
|
|
313
358
|
})
|
|
314
359
|
|
|
315
|
-
.done();
|
|
360
|
+
.done(2); // api version 2
|
|
316
361
|
|
|
317
362
|
export type BlockOutputs = InferOutputsType<typeof platforma>;
|
|
318
363
|
export type Href = InferHrefType<typeof platforma>;
|