@steedos-widgets/amis-lib 1.3.4-beta.9 → 1.3.5

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.
@@ -21,6 +21,7 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
21
21
  }[] | {
22
22
  type: string;
23
23
  icon: string;
24
+ visibleOn: string;
24
25
  onEvent: {
25
26
  click: {
26
27
  actions: {
@@ -2,6 +2,7 @@ export function getReadonlyFormInitApi(object: any, recordId: any, fields: any,
2
2
  method: string;
3
3
  url: string;
4
4
  cache: number;
5
+ requestAdaptor: string;
5
6
  adaptor: string;
6
7
  data: {
7
8
  query: string;
@@ -16,11 +16,9 @@ export function getAmisFileEditSchema(steedosField: any): {
16
16
  useChunk: boolean;
17
17
  receiver: {
18
18
  method: string;
19
+ dataType: string;
19
20
  url: string;
20
- data: {
21
- $: string;
22
- context: string;
23
- };
21
+ requestAdaptor: string;
24
22
  adaptor: string;
25
23
  headers: {
26
24
  Authorization: string;
@@ -44,11 +42,9 @@ export function getAmisFileSchema(steedosField: any, readonly: any): {
44
42
  useChunk: boolean;
45
43
  receiver: {
46
44
  method: string;
45
+ dataType: string;
47
46
  url: string;
48
- data: {
49
- $: string;
50
- context: string;
51
- };
47
+ requestAdaptor: string;
52
48
  adaptor: string;
53
49
  headers: {
54
50
  Authorization: string;
@@ -161,30 +161,6 @@ export function lookupToAmisSelect(field: any, readonly: any, ctx: any): Promise
161
161
  extractValue: boolean;
162
162
  clearable: boolean;
163
163
  disabledOn: string;
164
- source: {
165
- method: string;
166
- url: string;
167
- data: {
168
- orderBy: string;
169
- orderDir: string;
170
- pageNo: string;
171
- pageSize: string;
172
- query: string;
173
- };
174
- headers: {
175
- Authorization: string;
176
- };
177
- } | {
178
- method: string;
179
- url: string;
180
- data: {
181
- query: string;
182
- $: string;
183
- };
184
- headers: {
185
- Authorization: string;
186
- };
187
- };
188
164
  autoComplete: {
189
165
  method: string;
190
166
  url: string;
@@ -266,6 +242,25 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
266
242
  };
267
243
  } | {
268
244
  mode: string;
245
+ perPageAvailable: number[];
246
+ name: string;
247
+ headerToolbarClassName: string;
248
+ className: string;
249
+ draggable: boolean;
250
+ defaultParams: {
251
+ perPage: any;
252
+ };
253
+ card: any;
254
+ syncLocation: boolean;
255
+ keepItemSelectionOnPageChange: boolean;
256
+ checkOnItemClick: boolean;
257
+ labelTpl: string;
258
+ autoFillHeight: boolean;
259
+ columnsTogglable: boolean;
260
+ columns?: undefined;
261
+ } | {
262
+ mode: string;
263
+ perPageAvailable: number[];
269
264
  name: string;
270
265
  headerToolbarClassName: string;
271
266
  className: string;
@@ -280,6 +275,7 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
280
275
  labelTpl: string;
281
276
  autoFillHeight: boolean;
282
277
  columnsTogglable: boolean;
278
+ card?: undefined;
283
279
  };
284
280
  joinValues: boolean;
285
281
  extractValue: boolean;
@@ -337,6 +333,25 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
337
333
  };
338
334
  } | {
339
335
  mode: string;
336
+ perPageAvailable: number[];
337
+ name: string;
338
+ headerToolbarClassName: string;
339
+ className: string;
340
+ draggable: boolean;
341
+ defaultParams: {
342
+ perPage: any;
343
+ };
344
+ card: any;
345
+ syncLocation: boolean;
346
+ keepItemSelectionOnPageChange: boolean;
347
+ checkOnItemClick: boolean;
348
+ labelTpl: string;
349
+ autoFillHeight: boolean;
350
+ columnsTogglable: boolean;
351
+ columns?: undefined;
352
+ } | {
353
+ mode: string;
354
+ perPageAvailable: number[];
340
355
  name: string;
341
356
  headerToolbarClassName: string;
342
357
  className: string;
@@ -351,6 +366,7 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
351
366
  labelTpl: string;
352
367
  autoFillHeight: boolean;
353
368
  columnsTogglable: boolean;
369
+ card?: undefined;
354
370
  };
355
371
  joinValues: boolean;
356
372
  extractValue: boolean;
@@ -1,5 +1,24 @@
1
1
  export function getTableSchema(fields: any, options: any): Promise<{
2
2
  mode: string;
3
+ perPageAvailable: number[];
4
+ name: string;
5
+ headerToolbarClassName: string;
6
+ className: string;
7
+ draggable: boolean;
8
+ defaultParams: {
9
+ perPage: any;
10
+ };
11
+ card: any;
12
+ syncLocation: boolean;
13
+ keepItemSelectionOnPageChange: boolean;
14
+ checkOnItemClick: boolean;
15
+ labelTpl: string;
16
+ autoFillHeight: boolean;
17
+ columnsTogglable: boolean;
18
+ columns?: undefined;
19
+ } | {
20
+ mode: string;
21
+ perPageAvailable: number[];
3
22
  name: string;
4
23
  headerToolbarClassName: string;
5
24
  className: string;
@@ -14,6 +33,7 @@ export function getTableSchema(fields: any, options: any): Promise<{
14
33
  labelTpl: string;
15
34
  autoFillHeight: boolean;
16
35
  columnsTogglable: boolean;
36
+ card?: undefined;
17
37
  }>;
18
38
  /**
19
39
  *
@@ -582,6 +582,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
582
582
  }[] | {
583
583
  type: string;
584
584
  icon: string;
585
+ visibleOn: string;
585
586
  onEvent: {
586
587
  click: {
587
588
  actions: {
@@ -28,9 +28,7 @@ export function getObjectForm(objectSchema: any, ctx: any): Promise<{
28
28
  Authorization: string;
29
29
  };
30
30
  };
31
- data: {
32
- editFormInited: boolean;
33
- };
31
+ data: any;
34
32
  initApi: any;
35
33
  initFetch: any;
36
34
  body: {}[];
@@ -56,6 +54,7 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
56
54
  method: string;
57
55
  url: string;
58
56
  cache: number;
57
+ requestAdaptor: string;
59
58
  adaptor: string;
60
59
  data: {
61
60
  query: string;
@@ -9,6 +9,7 @@ export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor:
9
9
  export function getObjectFooterToolbar(mainObject: any, formFactor: any, options: any): (string | {
10
10
  type: string;
11
11
  maxButtons: number;
12
+ showPageInput: boolean;
12
13
  })[];
13
14
  export function getObjectFilter(objectSchema: any, fields: any, options: any): Promise<{
14
15
  title: string;
@@ -27,6 +27,7 @@ export function getCopyListviewButtonSchema(): {
27
27
  name: string;
28
28
  label: string;
29
29
  shared: boolean;
30
+ object_name: string;
30
31
  };
31
32
  fieldsExtend: {
32
33
  label: {
@@ -172,6 +172,7 @@ export function getSettingListviewToolbarButtonSchema(): {
172
172
  name: string;
173
173
  label: string;
174
174
  shared: boolean;
175
+ object_name: string;
175
176
  };
176
177
  fieldsExtend: {
177
178
  label: {
@@ -1,2 +1,7 @@
1
1
  export function isExpression(func: any): boolean;
2
+ export function getGlobalNowData(): {
3
+ now: Date;
4
+ today: any;
5
+ timeNow: any;
6
+ };
2
7
  export function parseSingleExpression(func: any, formData: any, dataPath: any, global: any, userSession?: {}): any;
@@ -28,9 +28,7 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
28
28
  Authorization: string;
29
29
  };
30
30
  };
31
- data: {
32
- editFormInited: boolean;
33
- };
31
+ data: any;
34
32
  initApi: any;
35
33
  initFetch: any;
36
34
  body: {}[];
@@ -59,6 +57,7 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
59
57
  method: string;
60
58
  url: string;
61
59
  cache: number;
60
+ requestAdaptor: string;
62
61
  adaptor: string;
63
62
  data: {
64
63
  query: string;
@@ -297,6 +296,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
297
296
  }[] | {
298
297
  type: string;
299
298
  icon: string;
299
+ visibleOn: string;
300
300
  onEvent: {
301
301
  click: {
302
302
  actions: {
@@ -70,6 +70,9 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
70
70
  };
71
71
  }>;
72
72
  export function getRelatedListSchema(objectName: any, listViewName: any, ctx: any): Promise<{
73
+ uiSchema?: undefined;
74
+ amisSchema?: undefined;
75
+ } | {
73
76
  uiSchema: any;
74
77
  amisSchema: {
75
78
  type: string;
@@ -25,9 +25,7 @@ export function getFormPageInitSchema(objectApiName: any): Promise<{
25
25
  Authorization: string;
26
26
  };
27
27
  };
28
- data: {
29
- editFormInited: boolean;
30
- };
28
+ data: any;
31
29
  initApi: any;
32
30
  initFetch: any;
33
31
  body: {}[];
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-beta.9",
4
+ "version": "1.3.5",
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": "7f21b4e774b7bdf6b5e95c6aab9be772b37ef558"
64
+ "gitHead": "696396061c57decfde1f9d8f14c36fff7f4316b9"
65
65
  }