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

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;
@@ -221,12 +221,6 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
221
221
  closeOnOutside: boolean;
222
222
  size: string;
223
223
  title: string;
224
- /**
225
- * TODO 先将申请单上的字段转化为 steedos field 类型, 只读、编辑 使用 steedos field tpl
226
- * @param {*} field
227
- * @param {*} label
228
- * @returns
229
- */
230
224
  className: string;
231
225
  headerClassName: string;
232
226
  bodyClassName: string;
@@ -343,8 +337,22 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
343
337
  name: string;
344
338
  hiddenOn: string;
345
339
  required: boolean;
346
- id?: undefined;
347
340
  multiple?: undefined;
341
+ id?: undefined;
342
+ source?: undefined;
343
+ labelField?: undefined;
344
+ valueField?: undefined;
345
+ value?: undefined;
346
+ joinValues?: undefined;
347
+ extractValue?: undefined;
348
+ } | {
349
+ type: string;
350
+ label: string;
351
+ name: string;
352
+ hiddenOn: string;
353
+ required: boolean;
354
+ multiple: boolean;
355
+ id?: undefined;
348
356
  source?: undefined;
349
357
  labelField?: undefined;
350
358
  valueField?: undefined;
@@ -358,7 +366,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
358
366
  id: string;
359
367
  required: boolean;
360
368
  hiddenOn: string;
361
- multiple: string;
369
+ multiple: boolean;
362
370
  source: {
363
371
  url: string;
364
372
  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.59",
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": "9025026533c51592a0ad6df2cd80dff474f88eef"
65
65
  }