@milaboratories/milaboratories.ui-examples.model 1.2.24 → 1.2.26
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 +17 -28
- package/.turbo/turbo-type-check.log +6 -0
- package/CHANGELOG.md +15 -0
- package/dist/bundle.js +7557 -6513
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +292 -281
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -23
- package/dist/index.js +292 -281
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +8 -22
- package/src/index.ts +7 -3
- package/tsconfig.json +11 -16
- package/dist/index.d.cts +0 -68
- package/vite.config.mts +0 -20
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.26",
|
|
4
4
|
"description": "Block model",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -8,31 +8,17 @@
|
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"zod": "~3.23.8",
|
|
11
|
-
"@platforma-sdk/model": "1.42.
|
|
11
|
+
"@platforma-sdk/model": "1.42.20"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"typescript": "~5.6.3",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"@
|
|
18
|
-
|
|
19
|
-
"tsup": {
|
|
20
|
-
"entry": [
|
|
21
|
-
"src/index.ts"
|
|
22
|
-
],
|
|
23
|
-
"splitting": false,
|
|
24
|
-
"treeshake": true,
|
|
25
|
-
"clean": true,
|
|
26
|
-
"format": [
|
|
27
|
-
"cjs",
|
|
28
|
-
"esm"
|
|
29
|
-
],
|
|
30
|
-
"dts": true,
|
|
31
|
-
"minify": false,
|
|
32
|
-
"sourcemap": true
|
|
15
|
+
"@platforma-sdk/block-tools": "2.5.83",
|
|
16
|
+
"@milaboratories/build-configs": "1.0.6",
|
|
17
|
+
"@milaboratories/ts-builder": "1.0.1",
|
|
18
|
+
"@milaboratories/ts-configs": "1.0.6"
|
|
33
19
|
},
|
|
34
20
|
"scripts": {
|
|
35
|
-
"build": "
|
|
36
|
-
"
|
|
21
|
+
"build": "ts-builder build --target block-model && block-tools build-model",
|
|
22
|
+
"type-check": "ts-builder types --target block-model"
|
|
37
23
|
}
|
|
38
24
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type {
|
|
|
5
5
|
PColumn,
|
|
6
6
|
PColumnValues,
|
|
7
7
|
PObjectId,
|
|
8
|
-
PlDataTableStateV2,
|
|
9
8
|
PlDataTableSheet,
|
|
9
|
+
PlDataTableStateV2,
|
|
10
10
|
} from '@platforma-sdk/model';
|
|
11
11
|
import {
|
|
12
12
|
Annotation,
|
|
@@ -338,15 +338,19 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
338
338
|
{ type: 'link', href: '/pl-number-field-page', label: 'PlNumberFieldPage' },
|
|
339
339
|
{ type: 'link', href: '/pl-error-boundary-page', label: 'PlErrorBoundaryPage' },
|
|
340
340
|
{ type: 'link', href: '/pl-element-list-page', label: 'PlElementList' },
|
|
341
|
-
{ type: 'link', href: '/errors', label: 'Errors' },
|
|
342
341
|
{ type: 'link', href: '/text-fields', label: 'PlTextField' },
|
|
343
342
|
{ type: 'link', href: '/tabs', label: 'PlTabs' },
|
|
343
|
+
{ type: 'link', href: '/pl-autocomplete', label: 'PlAutocomplete' },
|
|
344
|
+
{ type: 'link', href: '/radio', label: 'PlRadio' },
|
|
344
345
|
{ type: 'link', href: '/stacked-bar', label: 'PlChartStackedBar' },
|
|
345
346
|
{ type: 'link', href: '/histogram', label: 'PlChartHistogram' },
|
|
346
347
|
{ type: 'link', href: '/buttons', label: 'ButtonsPage' },
|
|
348
|
+
{ type: 'link', href: '/errors', label: 'Errors' },
|
|
349
|
+
{ type: 'link', href: '/downloads', label: 'Downloads' },
|
|
347
350
|
{ type: 'link', href: '/notifications', label: 'Notifications' },
|
|
348
351
|
{ type: 'link', href: '/drafts', label: 'Drafts' },
|
|
349
352
|
{ type: 'link', href: '/pl-autocomplete', label: 'PlAutocomplete' },
|
|
353
|
+
{ type: 'link', href: '/pl-autocomplete-multi', label: 'PlAutocompleteMulti' },
|
|
350
354
|
{ type: 'link', href: '/radio', label: 'PlRadio' },
|
|
351
355
|
...(dynamicSections.length
|
|
352
356
|
? [
|
|
@@ -363,7 +367,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
363
367
|
];
|
|
364
368
|
})
|
|
365
369
|
|
|
366
|
-
.done(
|
|
370
|
+
.done(); // api version 2
|
|
367
371
|
|
|
368
372
|
export type BlockOutputs = InferOutputsType<typeof platforma>;
|
|
369
373
|
export type Href = InferHrefType<typeof platforma>;
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"types": [],
|
|
15
|
-
"include": ["src/**/*"],
|
|
16
|
-
"exclude": ["node_modules", "dist"]
|
|
17
|
-
}
|
|
2
|
+
"extends": "@milaboratories/ts-configs/tsconfig.node.json",
|
|
3
|
+
"include": [
|
|
4
|
+
"src/**/*"
|
|
5
|
+
],
|
|
6
|
+
"exclude": [
|
|
7
|
+
"node_modules",
|
|
8
|
+
"dist",
|
|
9
|
+
"**/*.test.ts",
|
|
10
|
+
"**/*.spec.ts"
|
|
11
|
+
]
|
|
12
|
+
}
|
package/dist/index.d.cts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as _platforma_sdk_model from '@platforma-sdk/model';
|
|
2
|
-
import { ImportFileHandle, PlDataTableStateV2, InferOutputsType, InferHrefType } from '@platforma-sdk/model';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
declare const ImportFileHandleSchema: z.ZodEffects<z.ZodOptional<z.ZodString>, ImportFileHandle | undefined, string | undefined>;
|
|
6
|
-
declare function range(from: number, to: number, step?: number): Generator<number, void, unknown>;
|
|
7
|
-
declare function toList<T>(iterable: Iterable<T>): T[];
|
|
8
|
-
declare function times<R>(n: number, cb: (i: number) => R): R[];
|
|
9
|
-
declare const $BlockArgs: z.ZodObject<{
|
|
10
|
-
numbers: z.ZodArray<z.ZodNumber, "many">;
|
|
11
|
-
handles: z.ZodArray<z.ZodEffects<z.ZodOptional<z.ZodString>, ImportFileHandle | undefined, string | undefined>, "many">;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
numbers: number[];
|
|
14
|
-
handles: (ImportFileHandle | undefined)[];
|
|
15
|
-
}, {
|
|
16
|
-
numbers: number[];
|
|
17
|
-
handles: (string | undefined)[];
|
|
18
|
-
}>;
|
|
19
|
-
type BlockArgs = z.infer<typeof $BlockArgs>;
|
|
20
|
-
type UiState = {
|
|
21
|
-
dataTableV2: {
|
|
22
|
-
sourceId?: string;
|
|
23
|
-
numRows: number;
|
|
24
|
-
state: PlDataTableStateV2;
|
|
25
|
-
};
|
|
26
|
-
dynamicSections: {
|
|
27
|
-
id: string;
|
|
28
|
-
label: string;
|
|
29
|
-
}[];
|
|
30
|
-
datasets: {
|
|
31
|
-
id: string;
|
|
32
|
-
label: string;
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
35
|
-
declare const platforma: _platforma_sdk_model.PlatformaV2<{
|
|
36
|
-
numbers: number[];
|
|
37
|
-
handles: (ImportFileHandle | undefined)[];
|
|
38
|
-
}, {
|
|
39
|
-
numbers: _platforma_sdk_model.ValueOrErrors<number[] | undefined>;
|
|
40
|
-
progresses: _platforma_sdk_model.ValueOrErrors<{
|
|
41
|
-
[x: string]: _platforma_sdk_model.ImportProgress | undefined;
|
|
42
|
-
}>;
|
|
43
|
-
ptV2Sheets: _platforma_sdk_model.ValueOrErrors<{
|
|
44
|
-
axis: {
|
|
45
|
-
type: "Int";
|
|
46
|
-
name: string;
|
|
47
|
-
annotations: {
|
|
48
|
-
"pl7.app/label": string;
|
|
49
|
-
"pl7.app/discreteValues": string & {
|
|
50
|
-
__json_stringified: number[];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
options: {
|
|
55
|
-
value: number;
|
|
56
|
-
label: string;
|
|
57
|
-
}[];
|
|
58
|
-
}[]>;
|
|
59
|
-
ptV2: _platforma_sdk_model.ValueOrErrors<{
|
|
60
|
-
sourceId: string | null;
|
|
61
|
-
fullTableHandle: _platforma_sdk_model.PTableHandle;
|
|
62
|
-
visibleTableHandle: _platforma_sdk_model.PTableHandle;
|
|
63
|
-
} | undefined>;
|
|
64
|
-
}, UiState, "/" | "/loaders" | "/state" | "/layout" | "/form-components" | "/log-view" | "/modals" | "/select-files" | "/inject-env" | "/use-watch-fetch" | "/typography" | "/ag-grid-vue" | "/ag-grid-vue-with-builder" | "/pl-ag-data-table-v2" | "/pl-splash-page" | "/pl-file-input-page" | "/pl-number-field-page" | "/pl-error-boundary-page" | "/pl-element-list-page" | "/errors" | "/text-fields" | "/tabs" | "/stacked-bar" | "/histogram" | "/buttons" | "/notifications" | "/drafts" | "/pl-autocomplete" | "/radio" | `/section?id=${string}` | "/add-section">;
|
|
65
|
-
type BlockOutputs = InferOutputsType<typeof platforma>;
|
|
66
|
-
type Href = InferHrefType<typeof platforma>;
|
|
67
|
-
|
|
68
|
-
export { $BlockArgs, type BlockArgs, type BlockOutputs, type Href, ImportFileHandleSchema, type UiState, platforma, range, times, toList };
|
package/vite.config.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
build: {
|
|
5
|
-
emptyOutDir: false,
|
|
6
|
-
lib: {
|
|
7
|
-
entry: 'src/index.ts',
|
|
8
|
-
name: 'model',
|
|
9
|
-
fileName: (format) => `my-lib.${format}.js`
|
|
10
|
-
},
|
|
11
|
-
minify: false,
|
|
12
|
-
sourcemap: true,
|
|
13
|
-
rollupOptions: {
|
|
14
|
-
output: {
|
|
15
|
-
format: 'iife',
|
|
16
|
-
entryFileNames: 'bundle.js'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|