@steedos-widgets/amis-lib 1.3.14 → 1.3.16
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +272 -107
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +270 -107
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +73 -57
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/index.d.ts +2 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +12 -0
- package/dist/types/lib/converter/amis/toolbar.d.ts +8 -1
- package/dist/types/lib/input_table.d.ts +1 -1
- package/package.json +2 -2
|
@@ -6,9 +6,10 @@ export function getBaseFields(readonly: any): {
|
|
|
6
6
|
className: string;
|
|
7
7
|
tpl: string;
|
|
8
8
|
}[];
|
|
9
|
-
export function getAmisFieldType(sField: any): "url" | "date" | "datetime" | "number" | "select" | "image" | "text" | "picker" | "table" | "html" | "markdown" | "password" | "email" | "textarea" | "checkbox";
|
|
9
|
+
export function getAmisFieldType(sField: any): "url" | "date" | "datetime" | "number" | "select" | "image" | "text" | "picker" | "table" | "html" | "markdown" | "password" | "email" | "textarea" | "checkbox" | "steedos-input-table";
|
|
10
10
|
export function getObjectFieldSubFields(mainField: any, fields: any): any;
|
|
11
11
|
export function getGridFieldSubFields(mainField: any, fields: any): any;
|
|
12
|
+
export function getTabledFieldSubFields(mainField: any, fields: any): any;
|
|
12
13
|
/**
|
|
13
14
|
* TODO 处理权限
|
|
14
15
|
* @param {*} object steedos object
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export function getReferenceToSync(field: any): {
|
|
2
|
+
objectName: any;
|
|
3
|
+
valueField: any;
|
|
4
|
+
labelField: any;
|
|
5
|
+
NAME_FIELD_KEY: any;
|
|
6
|
+
};
|
|
1
7
|
export function getLookupSapceUserTreeSchema(isMobile: any): ({
|
|
2
8
|
type: string;
|
|
3
9
|
className: string;
|
|
@@ -371,6 +377,12 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
371
377
|
joinValues: boolean;
|
|
372
378
|
extractValue: boolean;
|
|
373
379
|
}>;
|
|
380
|
+
export function getReferenceToFieldSchema(field: any, refObjectConfig: any): {
|
|
381
|
+
objectName: any;
|
|
382
|
+
valueField: any;
|
|
383
|
+
labelField: any;
|
|
384
|
+
NAME_FIELD_KEY: any;
|
|
385
|
+
};
|
|
374
386
|
export function getReferenceTo(field: any): Promise<{
|
|
375
387
|
objectName: any;
|
|
376
388
|
valueField: any;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, filterVisible, isLookup, keywordsSearchBoxName }?: {
|
|
1
|
+
export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, crudId, filterVisible, isLookup, keywordsSearchBoxName }?: {
|
|
2
2
|
showDisplayAs?: boolean;
|
|
3
3
|
hiddenCount?: boolean;
|
|
4
4
|
headerToolbarItems: any;
|
|
5
|
+
crudId: any;
|
|
5
6
|
filterVisible?: boolean;
|
|
6
7
|
isLookup?: boolean;
|
|
7
8
|
keywordsSearchBoxName: any;
|
|
@@ -226,5 +227,11 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
|
|
|
226
227
|
script: string;
|
|
227
228
|
}[];
|
|
228
229
|
};
|
|
230
|
+
change: {
|
|
231
|
+
actions: {
|
|
232
|
+
actionType: string;
|
|
233
|
+
script: string;
|
|
234
|
+
}[];
|
|
235
|
+
};
|
|
229
236
|
};
|
|
230
237
|
}>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.16",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"react-i18next": "12.3.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "9dcffb0762807385032d09f79c0cf2bb45e21edf"
|
|
65
65
|
}
|