@milaboratories/milaboratories.ui-examples.model 1.2.25 → 1.2.27
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 +16 -0
- package/dist/bundle.js +7546 -6514
- package/dist/bundle.js.map +1 -1
- package/dist/index.cjs +292 -282
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -23
- package/dist/index.js +292 -282
- package/dist/index.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +8 -22
- package/src/index.ts +5 -2
- 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.27",
|
|
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.22"
|
|
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
|
+
"@milaboratories/build-configs": "1.0.7",
|
|
16
|
+
"@milaboratories/ts-configs": "1.0.6",
|
|
17
|
+
"@milaboratories/ts-builder": "1.0.3",
|
|
18
|
+
"@platforma-sdk/block-tools": "2.5.83"
|
|
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,
|
|
@@ -349,6 +349,9 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
349
349
|
{ type: 'link', href: '/downloads', label: 'Downloads' },
|
|
350
350
|
{ type: 'link', href: '/notifications', label: 'Notifications' },
|
|
351
351
|
{ type: 'link', href: '/drafts', label: 'Drafts' },
|
|
352
|
+
{ type: 'link', href: '/pl-autocomplete', label: 'PlAutocomplete' },
|
|
353
|
+
{ type: 'link', href: '/pl-autocomplete-multi', label: 'PlAutocompleteMulti' },
|
|
354
|
+
{ type: 'link', href: '/radio', label: 'PlRadio' },
|
|
352
355
|
...(dynamicSections.length
|
|
353
356
|
? [
|
|
354
357
|
{ type: 'delimiter' },
|
|
@@ -364,7 +367,7 @@ export const platforma = BlockModel.create('Heavy')
|
|
|
364
367
|
];
|
|
365
368
|
})
|
|
366
369
|
|
|
367
|
-
.done(
|
|
370
|
+
.done(); // api version 2
|
|
368
371
|
|
|
369
372
|
export type BlockOutputs = InferOutputsType<typeof platforma>;
|
|
370
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" | "/text-fields" | "/tabs" | "/pl-autocomplete" | "/radio" | "/stacked-bar" | "/histogram" | "/buttons" | "/errors" | "/downloads" | "/notifications" | "/drafts" | `/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
|
-
});
|