@steedos-widgets/amis-lib 0.0.1
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/README.md +23 -0
- package/dist/amis-lib.umd.js +314 -0
- package/dist/amis-lib.umd.min.js +314 -0
- package/dist/cjs/tsconfig.tsbuildinfo +1 -0
- package/dist/index.cjs.js +315 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.esm.js +315 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/types/config/index.d.ts +8 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/lib/amis.d.ts +9 -0
- package/dist/types/lib/apps.d.ts +2 -0
- package/dist/types/lib/buttons.d.ts +11 -0
- package/dist/types/lib/converter/amis/api.d.ts +54 -0
- package/dist/types/lib/converter/amis/fields/index.d.ts +54 -0
- package/dist/types/lib/converter/amis/fields/list.d.ts +43 -0
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +185 -0
- package/dist/types/lib/converter/amis/fields/sections.d.ts +22 -0
- package/dist/types/lib/converter/amis/fields/table.d.ts +34 -0
- package/dist/types/lib/converter/amis/form.d.ts +22 -0
- package/dist/types/lib/converter/amis/graphql.d.ts +22 -0
- package/dist/types/lib/converter/amis/index.d.ts +320 -0
- package/dist/types/lib/converter/amis/tpl.d.ts +11 -0
- package/dist/types/lib/converter/amis/util.d.ts +1 -0
- package/dist/types/lib/expression.d.ts +2 -0
- package/dist/types/lib/notification.d.ts +2 -0
- package/dist/types/lib/objects.d.ts +709 -0
- package/dist/types/lib/page.d.ts +1 -0
- package/dist/types/lib/public.env.d.ts +4 -0
- package/dist/types/lib/record.d.ts +3 -0
- package/dist/types/lib/router.d.ts +52 -0
- package/dist/types/lib/steedos.client.d.ts +13 -0
- package/package.json +62 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export namespace Router {
|
|
2
|
+
function getAppPath({ formFactor, appId }: {
|
|
3
|
+
formFactor: any;
|
|
4
|
+
appId: any;
|
|
5
|
+
}): string;
|
|
6
|
+
function getAppPath({ formFactor, appId }: {
|
|
7
|
+
formFactor: any;
|
|
8
|
+
appId: any;
|
|
9
|
+
}): string;
|
|
10
|
+
function getPagePath(): void;
|
|
11
|
+
function getPagePath(): void;
|
|
12
|
+
function getObjectListViewPath({ formFactor, appId, objectName, listViewName }: {
|
|
13
|
+
formFactor: any;
|
|
14
|
+
appId: any;
|
|
15
|
+
objectName: any;
|
|
16
|
+
listViewName: any;
|
|
17
|
+
}): string;
|
|
18
|
+
function getObjectListViewPath({ formFactor, appId, objectName, listViewName }: {
|
|
19
|
+
formFactor: any;
|
|
20
|
+
appId: any;
|
|
21
|
+
objectName: any;
|
|
22
|
+
listViewName: any;
|
|
23
|
+
}): string;
|
|
24
|
+
function getObjectDetailPath({ formFactor, appId, objectName, recordId }: {
|
|
25
|
+
formFactor: any;
|
|
26
|
+
appId: any;
|
|
27
|
+
objectName: any;
|
|
28
|
+
recordId: any;
|
|
29
|
+
}): string;
|
|
30
|
+
function getObjectDetailPath({ formFactor, appId, objectName, recordId }: {
|
|
31
|
+
formFactor: any;
|
|
32
|
+
appId: any;
|
|
33
|
+
objectName: any;
|
|
34
|
+
recordId: any;
|
|
35
|
+
}): string;
|
|
36
|
+
function getObjectRelatedViewPath({ formFactor, appId, masterObjectName, masterRecordId, objectName, foreignKey }: {
|
|
37
|
+
formFactor: any;
|
|
38
|
+
appId: any;
|
|
39
|
+
masterObjectName: any;
|
|
40
|
+
masterRecordId: any;
|
|
41
|
+
objectName: any;
|
|
42
|
+
foreignKey: any;
|
|
43
|
+
}): string;
|
|
44
|
+
function getObjectRelatedViewPath({ formFactor, appId, masterObjectName, masterRecordId, objectName, foreignKey }: {
|
|
45
|
+
formFactor: any;
|
|
46
|
+
appId: any;
|
|
47
|
+
masterObjectName: any;
|
|
48
|
+
masterRecordId: any;
|
|
49
|
+
objectName: any;
|
|
50
|
+
foreignKey: any;
|
|
51
|
+
}): string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function fetchAPI(api: any, options?: {
|
|
2
|
+
credentials: string;
|
|
3
|
+
}): Promise<any>;
|
|
4
|
+
export function getFileSrc(fileId: any): string;
|
|
5
|
+
export function getImageSrc(fileId: any): string;
|
|
6
|
+
export function getTenantId(): any;
|
|
7
|
+
export function getAuthToken(): any;
|
|
8
|
+
export function getAuthorization(): string;
|
|
9
|
+
export function absoluteUrl(url: any): string;
|
|
10
|
+
export function getRootUrl(defaultRootUrl: any): any;
|
|
11
|
+
export function setRootUrl(rootUrl: any): void;
|
|
12
|
+
export function setSteedosAuth(steedosSession: any): void;
|
|
13
|
+
export function getSteedosAuth(): {};
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@steedos-widgets/amis-lib",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"unpkg": "./dist/index.umd.js",
|
|
6
|
+
"main": "./dist/index.cjs.js",
|
|
7
|
+
"module": "./dist/index.esm.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"prebuild": "rimraf dist",
|
|
14
|
+
"http": "npx http-server ../ --port 8080 --cors -c -1",
|
|
15
|
+
"build": "yarn build-types && yarn build-rollup",
|
|
16
|
+
"build-types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
|
17
|
+
"build-rollup": "rollup -c rollup.config.ts && yarn build-uglifyjs",
|
|
18
|
+
"build-uglifyjs": "yarn uglifyjs dist/amis-lib.umd.js -o dist/amis-lib.umd.min.js"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"uglify-js": "^3.17.0",
|
|
26
|
+
"@babel/core": "^7.18.13",
|
|
27
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
28
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
30
|
+
"amis": "^2.1.1-beta.2",
|
|
31
|
+
"rimraf": "3.0.2",
|
|
32
|
+
"rollup": "^2.70.1",
|
|
33
|
+
"rollup-plugin-alias": "^2.2.0",
|
|
34
|
+
"rollup-plugin-external-globals": "^0.6.1",
|
|
35
|
+
"rollup-plugin-json": "^4.0.0",
|
|
36
|
+
"rollup-plugin-node-builtins": "^2.1.2",
|
|
37
|
+
"rollup-plugin-node-globals": "^1.4.0",
|
|
38
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
39
|
+
"rollup-plugin-polyfill-node": "^0.8.0",
|
|
40
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
41
|
+
"rollup-plugin-postcss-webpack-alias-less-loader": "^1.0.0",
|
|
42
|
+
"rollup-plugin-re": "^1.0.7",
|
|
43
|
+
"rollup-plugin-replace": "^2.0.0",
|
|
44
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
45
|
+
"rollup-plugin-svg": "^2.0.0",
|
|
46
|
+
"rollup-plugin-tslib-resolve-id": "^0.0.0",
|
|
47
|
+
"@rollup/plugin-typescript": "^8.4.0",
|
|
48
|
+
"rollup-plugin-visualizer": "^5.8.0",
|
|
49
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
50
|
+
"rollup-plugin-uglify": "^6.0.4",
|
|
51
|
+
"ts-jest": "26.4.4",
|
|
52
|
+
"ts-node": "^9.1.1",
|
|
53
|
+
"tslint": "^5.8.0",
|
|
54
|
+
"tslint-config-prettier": "^1.1.0",
|
|
55
|
+
"tslint-config-standard": "^7.0.0",
|
|
56
|
+
"typescript": "^4.6.2",
|
|
57
|
+
"@types/lodash": "^4.14.184"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"lodash": "^4.17.21"
|
|
61
|
+
}
|
|
62
|
+
}
|