@steedos-widgets/amis-lib 6.10.1-beta.58 → 6.10.1-beta.60

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.
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
2
  namespace listView {
3
- const newRecordMode: string;
4
- const editRecordMode: string;
5
- const perPage: number;
3
+ let newRecordMode: string;
4
+ let editRecordMode: string;
5
+ let perPage: number;
6
6
  }
7
7
  }
8
8
  export default _default;
@@ -44,8 +44,8 @@ export function getCalendarRecordSaveApi(object: any, calendarOptions: any): {
44
44
  */
45
45
  export function getObjectCalendar(objectSchema: any, calendarOptions: any, options: any): Promise<any>;
46
46
  export namespace DEFAULT_CALENDAR_OPTIONS {
47
- const startDateExpr: string;
48
- const endDateExpr: string;
49
- const allDayExpr: string;
50
- const textExpr: string;
47
+ let startDateExpr: string;
48
+ let endDateExpr: string;
49
+ let allDayExpr: string;
50
+ let textExpr: string;
51
51
  }
@@ -1,10 +1,8 @@
1
1
  export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, filterVisible, isLookup, keywordsSearchBoxName }?: {
2
2
  showDisplayAs?: boolean;
3
3
  hiddenCount?: boolean;
4
- headerToolbarItems: any;
5
4
  filterVisible?: boolean;
6
5
  isLookup?: boolean;
7
- keywordsSearchBoxName: any;
8
6
  }): any[];
9
7
  export function getObjectFooterToolbar(mainObject: any, formFactor: any, options: any): ({
10
8
  type: string;
@@ -1,7 +1,7 @@
1
1
  export function getListViewColumns(listView: any, formFactor: any): any;
2
2
  export function getListViewSort(listView: any): string;
3
3
  export function getListViewFilter(listView: any): any;
4
- export function getUISchema(objectName: any, force: any, retry?: boolean): any;
4
+ export function getUISchema(objectName: any, force: any, retry?: boolean): Promise<any>;
5
5
  export function getUISchemaSync(objectName: any, force: any, retry?: boolean): any;
6
6
  export function getField(objectName: any, fieldName: any): Promise<any>;
7
7
  export function getFormSchema(objectName: any, ctx: any): Promise<{
@@ -1,24 +1,11 @@
1
1
  export namespace Router {
2
2
  function getTabDisplayAs(tab_id: any, defaultEnableSplit: any): string;
3
- function getTabDisplayAs(tab_id: any, defaultEnableSplit: any): string;
4
- function setTabDisplayAs(tab_id: any, displayAs: any): void;
5
3
  function setTabDisplayAs(tab_id: any, displayAs: any): void;
6
4
  function getAppPath({ formFactor, appId }: {
7
5
  formFactor: any;
8
6
  appId: any;
9
7
  }): string;
10
- function getAppPath({ formFactor, appId }: {
11
- formFactor: any;
12
- appId: any;
13
- }): string;
14
8
  function getPagePath(): void;
15
- function getPagePath(): void;
16
- function getObjectListViewPath({ formFactor, appId, objectName, listViewName }: {
17
- formFactor: any;
18
- appId: any;
19
- objectName: any;
20
- listViewName: any;
21
- }): string;
22
9
  function getObjectListViewPath({ formFactor, appId, objectName, listViewName }: {
23
10
  formFactor: any;
24
11
  appId: any;
@@ -26,15 +13,6 @@ export namespace Router {
26
13
  listViewName: any;
27
14
  }): string;
28
15
  function getObjectDetailPath(props: any): string;
29
- function getObjectDetailPath(props: any): string;
30
- function getObjectRelatedViewPath({ formFactor, appId, masterObjectName, masterRecordId, objectName, foreignKey }: {
31
- formFactor: any;
32
- appId: any;
33
- masterObjectName: any;
34
- masterRecordId: any;
35
- objectName: any;
36
- foreignKey: any;
37
- }): string;
38
16
  function getObjectRelatedViewPath({ formFactor, appId, masterObjectName, masterRecordId, objectName, foreignKey }: {
39
17
  formFactor: any;
40
18
  appId: any;
@@ -122,8 +122,22 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
122
122
  name: string;
123
123
  hiddenOn: string;
124
124
  required: boolean;
125
- id?: undefined;
126
125
  multiple?: undefined;
126
+ id?: undefined;
127
+ source?: undefined;
128
+ labelField?: undefined;
129
+ valueField?: undefined;
130
+ value?: undefined;
131
+ joinValues?: undefined;
132
+ extractValue?: undefined;
133
+ } | {
134
+ type: string;
135
+ label: string;
136
+ name: string;
137
+ hiddenOn: string;
138
+ required: boolean;
139
+ multiple: boolean;
140
+ id?: undefined;
127
141
  source?: undefined;
128
142
  labelField?: undefined;
129
143
  valueField?: undefined;
@@ -137,7 +151,7 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
137
151
  id: string;
138
152
  required: boolean;
139
153
  hiddenOn: string;
140
- multiple: string;
154
+ multiple: boolean;
141
155
  source: {
142
156
  url: string;
143
157
  method: string;
@@ -32,9 +32,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
32
32
  ".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
33
33
  padding: string;
34
34
  };
35
- ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body": {
36
- width: string;
37
- };
38
35
  ".antd-List-placeholder": {
39
36
  display: string;
40
37
  };
@@ -221,12 +218,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
221
218
  closeOnOutside: boolean;
222
219
  size: string;
223
220
  title: string;
224
- /**
225
- * TODO 先将申请单上的字段转化为 steedos field 类型, 只读、编辑 使用 steedos field tpl
226
- * @param {*} field
227
- * @param {*} label
228
- * @returns
229
- */
230
221
  className: string;
231
222
  headerClassName: string;
232
223
  bodyClassName: string;
@@ -343,8 +334,22 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
343
334
  name: string;
344
335
  hiddenOn: string;
345
336
  required: boolean;
346
- id?: undefined;
347
337
  multiple?: undefined;
338
+ id?: undefined;
339
+ source?: undefined;
340
+ labelField?: undefined;
341
+ valueField?: undefined;
342
+ value?: undefined;
343
+ joinValues?: undefined;
344
+ extractValue?: undefined;
345
+ } | {
346
+ type: string;
347
+ label: string;
348
+ name: string;
349
+ hiddenOn: string;
350
+ required: boolean;
351
+ multiple: boolean;
352
+ id?: undefined;
348
353
  source?: undefined;
349
354
  labelField?: undefined;
350
355
  valueField?: undefined;
@@ -358,7 +363,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
358
363
  id: string;
359
364
  required: boolean;
360
365
  hiddenOn: string;
361
- multiple: string;
366
+ multiple: boolean;
362
367
  source: {
363
368
  url: string;
364
369
  method: string;
@@ -26,16 +26,5 @@ export function getInstanceInfo(props: any): Promise<{
26
26
  forward_from_instance: any;
27
27
  cc_users: any;
28
28
  traces: any;
29
- historyApproves: ({
30
- children: {
31
- name: string;
32
- user_name: any;
33
- finish_date: any;
34
- judge: any;
35
- opinion: any;
36
- }[];
37
- } & {
38
- name: any;
39
- judge: string;
40
- })[];
29
+ historyApproves: any;
41
30
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "6.10.1-beta.58",
4
+ "version": "6.10.1-beta.60",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -53,7 +53,7 @@
53
53
  "tslint": "^5.8.0",
54
54
  "tslint-config-prettier": "^1.1.0",
55
55
  "tslint-config-standard": "^7.0.0",
56
- "typescript": "^4.6.2",
56
+ "typescript": "^5.6.2",
57
57
  "uglify-js": "^3.17.0"
58
58
  },
59
59
  "dependencies": {
@@ -61,5 +61,5 @@
61
61
  "lodash": "^4.17.21",
62
62
  "react-i18next": "12.3.1"
63
63
  },
64
- "gitHead": "a451b4dd4517a7318b195861ddaa6d0de4a60d1b"
64
+ "gitHead": "0fa7a825586325227e2e7d8d6c88b1eaf07147eb"
65
65
  }