@steedos-widgets/amis-lib 1.0.30 → 1.0.32

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.
@@ -6,7 +6,7 @@ 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" | "password" | "text" | "picker" | "table" | "email" | "html" | "markdown" | "textarea" | "checkbox";
9
+ export function getAmisFieldType(sField: any): "url" | "password" | "select" | "date" | "datetime" | "number" | "image" | "text" | "picker" | "table" | "markdown" | "html" | "email" | "textarea" | "checkbox";
10
10
  export function getObjectFieldSubFields(mainField: any, fields: any): any;
11
11
  export function getGridFieldSubFields(mainField: any, fields: any): any;
12
12
  /**
@@ -39,7 +39,7 @@ export function getTableSchema(fields: any, options: any): Promise<{
39
39
  *
40
40
  * @param {*} mainObject
41
41
  * @param {*} fields
42
- * @param {*} options = {globalFilter: 相关字表过滤条件, filter: listview 过滤条件, ...}
42
+ * @param {*} options = {filter: listview 过滤条件, ...}
43
43
  * @returns
44
44
  */
45
45
  export function getTableApi(mainObject: any, fields: any, options: any): Promise<{
@@ -203,6 +203,11 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
203
203
  id: string;
204
204
  source: {
205
205
  method: string;
206
+ /**
207
+ * 记录详细界面中相关表顶部头amisSchema
208
+ * @param {*} relatedObjectSchema 相关对象UISchema
209
+ * @returns amisSchema
210
+ */
206
211
  url: string;
207
212
  dataType: string;
208
213
  headers: {
@@ -19,65 +19,75 @@ export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showD
19
19
  className: string;
20
20
  tpl?: undefined;
21
21
  align?: undefined;
22
- label?: undefined;
23
22
  tooltipPlacement?: undefined;
23
+ label?: undefined;
24
+ icon?: undefined;
25
+ visibleOn?: undefined;
24
26
  tooltip?: undefined;
25
27
  onEvent?: undefined;
26
- icon?: undefined;
27
28
  } | {
28
29
  type?: undefined;
29
30
  className?: undefined;
30
31
  tpl?: undefined;
31
32
  align?: undefined;
32
- label?: undefined;
33
33
  tooltipPlacement?: undefined;
34
+ label?: undefined;
35
+ icon?: undefined;
36
+ visibleOn?: undefined;
34
37
  tooltip?: undefined;
35
38
  onEvent?: undefined;
36
- icon?: undefined;
37
39
  } | {
38
40
  type: string;
39
41
  tpl: string;
40
42
  className?: undefined;
41
43
  align?: undefined;
42
- label?: undefined;
43
44
  tooltipPlacement?: undefined;
45
+ label?: undefined;
46
+ icon?: undefined;
47
+ visibleOn?: undefined;
44
48
  tooltip?: undefined;
45
49
  onEvent?: undefined;
46
- icon?: undefined;
47
50
  } | {
48
51
  type: string;
49
52
  align: string;
53
+ tooltipPlacement: string;
50
54
  className: string;
51
55
  tpl?: undefined;
52
56
  label?: undefined;
53
- tooltipPlacement?: undefined;
57
+ icon?: undefined;
58
+ visibleOn?: undefined;
54
59
  tooltip?: undefined;
55
60
  onEvent?: undefined;
56
- icon?: undefined;
57
61
  } | {
58
62
  type: string;
59
63
  label: string;
64
+ icon: string;
60
65
  align: string;
61
66
  className: string;
62
67
  tooltipPlacement: string;
68
+ visibleOn: string;
63
69
  tooltip: string;
64
70
  onEvent: {
65
71
  click: {
72
+ weight: number;
66
73
  actions: {
67
74
  args: {
68
75
  api: {
69
76
  url: string;
70
77
  method: string;
71
- responseType: string;
78
+ messages: {};
72
79
  requestAdaptor: string;
80
+ data: {
81
+ uiSchema: string;
82
+ listName: string;
83
+ };
73
84
  };
74
85
  };
75
86
  actionType: string;
76
- };
87
+ }[];
77
88
  };
78
89
  };
79
90
  tpl?: undefined;
80
- icon?: undefined;
81
91
  } | {
82
92
  label: string;
83
93
  icon: string;
@@ -90,10 +100,12 @@ export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showD
90
100
  actionType: string;
91
101
  script: string;
92
102
  }[];
103
+ weight?: undefined;
93
104
  };
94
105
  };
95
106
  tpl?: undefined;
96
107
  tooltipPlacement?: undefined;
108
+ visibleOn?: undefined;
97
109
  tooltip?: undefined;
98
110
  })[];
99
111
  export function getObjectFooterToolbar(mainObject: any, formFactor: any): string[];
@@ -492,15 +492,4 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
492
492
  record: any;
493
493
  masterObjectUISchema: any;
494
494
  }>;
495
- export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<any[] | {
496
- title: string;
497
- type: string;
498
- name: string;
499
- id: string;
500
- mode: string;
501
- wrapWithPanel: boolean;
502
- className: string;
503
- data: any;
504
- body: any[];
505
- }>;
506
495
  export function setUISchemaFunction(fun: any): void;
@@ -36,6 +36,9 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
36
36
  url: string;
37
37
  method: string;
38
38
  messages: {};
39
+ headers: {
40
+ Authorization: string;
41
+ };
39
42
  requestAdaptor: string;
40
43
  adaptor: string;
41
44
  };
@@ -39,6 +39,9 @@ export namespace StandardButtons {
39
39
  url: string;
40
40
  method: string;
41
41
  messages: {};
42
+ headers: {
43
+ Authorization: string;
44
+ };
42
45
  requestAdaptor: string;
43
46
  adaptor: string;
44
47
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.0.30",
4
+ "version": "1.0.32",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -58,5 +58,5 @@
58
58
  "dependencies": {
59
59
  "lodash": "^4.17.21"
60
60
  },
61
- "gitHead": "a518ccb1e24bc980663bb9971861d383046097aa"
61
+ "gitHead": "d921dd757818d8b4e8871a7f748ed0d471d001a3"
62
62
  }
package/dist/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- export * from './lib/amis';
2
- export * from './lib/objects';
3
- export * from './lib/objectsRelated';
4
- export * from './lib/page_init';
5
- export * from './lib/apps';
6
- export * from './lib/buttons';
7
- export * from './lib/defaultsDeep';
8
- export * from './lib/expression';
9
- export * from './lib/notification';
10
- export * from './lib/page';
11
- export * from './lib/public.env';
12
- export * from './lib/record';
13
- export * from './lib/space_users';
14
- export * from './lib/steedos.client.js';
15
- export * as Field from './lib/converter/amis/fields/index';
16
- export * from './lib/converter/amis/fields/lookup';
17
- export * from './lib/converter/amis/fields/user';
18
- export * from './lib/converter/amis/filters';
19
- export * from './lib/converter/amis/header';
20
- export * from './lib/converter/amis/fields_filter';
21
- export * from './lib/workflow/flow';
22
- export * from './lib/assets';
23
- export * from './utils/object';
24
- export * from './render';
package/dist/render.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export declare const getDefaultRenderData: () => {
2
- context: {
3
- rootUrl: any;
4
- userId: any;
5
- tenantId: any;
6
- authToken: any;
7
- user: {};
8
- };
9
- global: {
10
- userId: any;
11
- spaceId: any;
12
- user: {};
13
- now: Date;
14
- };
15
- };
@@ -1,14 +0,0 @@
1
- export declare function createObject(superProps?: {
2
- [propName: string]: any;
3
- }, props?: {
4
- [propName: string]: any;
5
- }, properties?: any): object;
6
- export declare function cloneObject(target: any, persistOwnProps?: boolean): any;
7
- export declare function extendObject(target: any, src?: any, persistOwnProps?: boolean): any;
8
- export declare function isObject(obj: any): boolean;
9
- export declare function setVariable(data: {
10
- [propName: string]: any;
11
- }, key: string, value: any, convertKeyToPath?: boolean): void;
12
- export declare function deleteVariable(data: {
13
- [propName: string]: any;
14
- }, key: string): void;