@steedos-widgets/amis-lib 6.3.10 → 6.3.11-beta.11

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.
@@ -11,7 +11,7 @@ export function getReadonlyFormInitApi(object: any, recordId: any, fields: any,
11
11
  Authorization: string;
12
12
  };
13
13
  }>;
14
- export function getScriptForAddUrlPrefixForImgFields(fields: any): string;
14
+ export function getScriptForAddUrlPrefixForImgFields(fields: any, readonly: any): string;
15
15
  export function getEditFormInitApi(object: any, recordId: any, fields: any, options: any): Promise<{
16
16
  method: string;
17
17
  url: string;
@@ -26,8 +26,27 @@ export function getAmisFileReadonlySchema(steedosField: any, ctx?: {}): Promise<
26
26
  labelClassName?: undefined;
27
27
  label?: undefined;
28
28
  };
29
- placeholder?: undefined;
29
+ tpl?: undefined;
30
30
  className?: undefined;
31
+ onEvent?: undefined;
32
+ placeholder?: undefined;
33
+ source?: undefined;
34
+ } | {
35
+ type: string;
36
+ tpl: string;
37
+ className: string;
38
+ onEvent: {
39
+ click: {
40
+ actions: {
41
+ script: string;
42
+ actionType: string;
43
+ }[];
44
+ weight: number;
45
+ };
46
+ };
47
+ name?: undefined;
48
+ items?: undefined;
49
+ placeholder?: undefined;
31
50
  source?: undefined;
32
51
  };
33
52
  defaultImage?: undefined;
@@ -57,6 +76,7 @@ export function getAmisFileReadonlySchema(steedosField: any, ctx?: {}): Promise<
57
76
  title: string;
58
77
  headerClassName: string;
59
78
  size: string;
79
+ width: string;
60
80
  bodyClassName: string;
61
81
  closeOnEsc: boolean;
62
82
  closeOnOutside: boolean;
@@ -71,6 +91,8 @@ export function getAmisFileReadonlySchema(steedosField: any, ctx?: {}): Promise<
71
91
  };
72
92
  };
73
93
  name?: undefined;
94
+ tpl?: undefined;
95
+ onEvent?: undefined;
74
96
  };
75
97
  defaultImage?: undefined;
76
98
  enlargeAble?: undefined;
@@ -118,8 +140,27 @@ export function getAmisFileSchema(steedosField: any, readonly: any, ctx: any): P
118
140
  labelClassName?: undefined;
119
141
  label?: undefined;
120
142
  };
121
- placeholder?: undefined;
143
+ tpl?: undefined;
122
144
  className?: undefined;
145
+ onEvent?: undefined;
146
+ placeholder?: undefined;
147
+ source?: undefined;
148
+ } | {
149
+ type: string;
150
+ tpl: string;
151
+ className: string;
152
+ onEvent: {
153
+ click: {
154
+ actions: {
155
+ script: string;
156
+ actionType: string;
157
+ }[];
158
+ weight: number;
159
+ };
160
+ };
161
+ name?: undefined;
162
+ items?: undefined;
163
+ placeholder?: undefined;
123
164
  source?: undefined;
124
165
  };
125
166
  defaultImage?: undefined;
@@ -149,6 +190,7 @@ export function getAmisFileSchema(steedosField: any, readonly: any, ctx: any): P
149
190
  title: string;
150
191
  headerClassName: string;
151
192
  size: string;
193
+ width: string;
152
194
  bodyClassName: string;
153
195
  closeOnEsc: boolean;
154
196
  closeOnOutside: boolean;
@@ -163,6 +205,8 @@ export function getAmisFileSchema(steedosField: any, readonly: any, ctx: any): P
163
205
  };
164
206
  };
165
207
  name?: undefined;
208
+ tpl?: undefined;
209
+ onEvent?: undefined;
166
210
  };
167
211
  defaultImage?: undefined;
168
212
  enlargeAble?: undefined;
@@ -1,6 +1,6 @@
1
1
  export function getSvgUrl(source: any, name: any): string;
2
- export function getImageFieldUrl(url: any): any;
3
- export function getContrastColor(bgColor: any): "#ffffff" | "#000000";
2
+ export function getImageFieldUrl(url: any, readonly: any): any;
3
+ export function getContrastColor(bgColor: any): "#000000" | "#ffffff";
4
4
  export function getLookupListView(refObjectConfig: any): null;
5
5
  /**
6
6
  * 获取可比较的amis版本号
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "6.3.10",
4
+ "version": "6.3.11-beta.11",
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": "96594583a24bfe3051611eb3573e05dd135287aa"
64
+ "gitHead": "f0f24add9a8427e1715a5a6f9a765a1725ed0581"
65
65
  }