@platforma-sdk/model 1.41.2 → 1.41.4
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/dist/components/PlSelectionModel.d.ts +1 -0
- package/dist/components/PlSelectionModel.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +173 -166
- package/dist/index.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/components/PlSelectionModel.ts +7 -0
- package/src/version.ts +2 -0
- package/src/.gitignore +0 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PlatformaSDKVersion
|
|
1
|
+
export declare const PlatformaSDKVersion: string;
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,QAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/model",
|
|
3
|
-
"version": "1.41.
|
|
3
|
+
"version": "1.41.4",
|
|
4
4
|
"description": "Platforma.bio SDK / Block Model",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"@jest/globals": "^29.7.0",
|
|
34
34
|
"ts-jest": "^29.2.6",
|
|
35
35
|
"fast-json-patch": "^3.1.1",
|
|
36
|
-
"@milaboratories/build-configs": "1.0.4",
|
|
37
36
|
"@platforma-sdk/eslint-config": "1.0.3",
|
|
38
|
-
"@milaboratories/helpers": "^1.6.18"
|
|
37
|
+
"@milaboratories/helpers": "^1.6.18",
|
|
38
|
+
"@milaboratories/build-configs": "1.0.4"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"type-check": "
|
|
42
|
-
"build": "
|
|
41
|
+
"type-check": "tsc --noEmit --composite false",
|
|
42
|
+
"build": "vite build",
|
|
43
43
|
"watch": "vite build --watch",
|
|
44
44
|
"lint": "eslint .",
|
|
45
|
-
"test": "
|
|
45
|
+
"test": "jest",
|
|
46
46
|
"do-pack": "rm -f *.tgz && pnpm pack && mv *.tgz package.tgz"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -19,6 +19,13 @@ export type PlSelectionModel = {
|
|
|
19
19
|
selectedKeys: PTableKey[];
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
export function createPlSelectionModel(): PlSelectionModel {
|
|
23
|
+
return {
|
|
24
|
+
axesSpec: [],
|
|
25
|
+
selectedKeys: [],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
export function mapPTableValueToAxisKey(value: PTableValue): AxisValue {
|
|
23
30
|
if (value === PTableNA) {
|
|
24
31
|
console.error('Axis value can never be N/A');
|
package/src/version.ts
ADDED
package/src/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version.ts
|