@steedos-widgets/amis-lib 1.0.23 → 1.0.24

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.
@@ -19,7 +19,6 @@ export function getSelectFieldOptions(field: any): any[];
19
19
  export function convertSFieldToAmisField(field: any, readonly: any, ctx: any): Promise<{
20
20
  type: any;
21
21
  tpl: string;
22
- value: string | number | boolean;
23
22
  multiple: boolean;
24
23
  extractValue: boolean;
25
24
  className: any;
@@ -29,7 +28,6 @@ export function convertSFieldToAmisField(field: any, readonly: any, ctx: any): P
29
28
  export function getFieldSearchable(perField: any, permissionFields: any, ctx: any): Promise<{
30
29
  type: any;
31
30
  tpl: string;
32
- value: string | number | boolean;
33
31
  multiple: boolean;
34
32
  extractValue: boolean;
35
33
  className: any;
@@ -5,7 +5,6 @@ export function getSections(permissionFields: any, mergedSchema: any, ctx: any):
5
5
  body: {
6
6
  type: any;
7
7
  tpl: string;
8
- value: string | number | boolean;
9
8
  multiple: boolean;
10
9
  extractValue: boolean;
11
10
  className: any;
@@ -0,0 +1 @@
1
+ export function lookupToAmisTreeSelect(field: any, readonly: any, ctx: any): Promise<{}>;
@@ -17,7 +17,6 @@ export function getObjectFieldsFilterButtonSchema(objectSchema: any): Promise<{
17
17
  export function getObjectFieldsFilterFormSchema(objectSchema: any, fields: any, ctx: any): Promise<{
18
18
  type: any;
19
19
  tpl: string;
20
- value: string | number | boolean;
21
20
  multiple: boolean;
22
21
  extractValue: boolean;
23
22
  className: any;
@@ -51,7 +50,6 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, fields: any, c
51
50
  body: ({
52
51
  type: any;
53
52
  tpl: string;
54
- value: string | number | boolean;
55
53
  multiple: boolean;
56
54
  extractValue: boolean;
57
55
  className: any;
@@ -5,7 +5,6 @@ export function getFormBody(permissionFields: any, objectConfig: any, ctx: any):
5
5
  body: {
6
6
  type: any;
7
7
  tpl: string;
8
- value: string | number | boolean;
9
8
  multiple: boolean;
10
9
  extractValue: boolean;
11
10
  className: any;
@@ -148,7 +148,6 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
148
148
  body: ({
149
149
  type: any;
150
150
  tpl: string;
151
- value: string | number | boolean;
152
151
  multiple: boolean;
153
152
  extractValue: boolean;
154
153
  className: any;
@@ -30,6 +30,9 @@ export function getObjectForm(objectSchema: any, ctx: any): Promise<{
30
30
  Authorization: string;
31
31
  };
32
32
  };
33
+ data: {
34
+ editFormInited: boolean;
35
+ };
33
36
  initApi: any;
34
37
  initFetch: any;
35
38
  body: {}[];
@@ -83,7 +86,6 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
83
86
  body: {
84
87
  type: any;
85
88
  tpl: string;
86
- value: string | number | boolean;
87
89
  multiple: boolean;
88
90
  extractValue: boolean;
89
91
  className: any;
@@ -85,7 +85,6 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
85
85
  body: ({
86
86
  type: any;
87
87
  tpl: string;
88
- value: string | number | boolean;
89
88
  multiple: boolean;
90
89
  extractValue: boolean;
91
90
  className: any;
@@ -22,6 +22,9 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
22
22
  Authorization: string;
23
23
  };
24
24
  };
25
+ data: {
26
+ editFormInited: boolean;
27
+ };
25
28
  initApi: any;
26
29
  initFetch: any;
27
30
  body: {}[];
@@ -78,7 +81,6 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
78
81
  body: {
79
82
  type: any;
80
83
  tpl: string;
81
- value: string | number | boolean;
82
84
  multiple: boolean;
83
85
  extractValue: boolean;
84
86
  className: any;
@@ -464,7 +466,6 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
464
466
  export function getSearchableFieldsFilterSchema(objectSchema: any, fields: any, ctx: any): Promise<{
465
467
  type: any;
466
468
  tpl: string;
467
- value: string | number | boolean;
468
469
  multiple: boolean;
469
470
  extractValue: boolean;
470
471
  className: any;
@@ -20,6 +20,9 @@ export function getFormPageInitSchema(objectApiName: any): Promise<{
20
20
  Authorization: string;
21
21
  };
22
22
  };
23
+ data: {
24
+ editFormInited: boolean;
25
+ };
23
26
  initApi: any;
24
27
  initFetch: any;
25
28
  body: {}[];
@@ -19,6 +19,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
19
19
  context: string;
20
20
  global: string;
21
21
  listViewId: string;
22
+ uiSchema: string;
22
23
  };
23
24
  title: string;
24
25
  bodyClassName: string;
@@ -22,6 +22,7 @@ export namespace StandardButtons {
22
22
  context: string;
23
23
  global: string;
24
24
  listViewId: string;
25
+ uiSchema: string;
25
26
  };
26
27
  title: string;
27
28
  bodyClassName: string;
@@ -2,6 +2,8 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
2
2
  type: string;
3
3
  overlay: boolean;
4
4
  resizable: boolean;
5
+ closeOnEsc: boolean;
6
+ closeOnOutside: boolean;
5
7
  size: string;
6
8
  title: string;
7
9
  className: string;
@@ -9,6 +11,7 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
9
11
  type: string;
10
12
  debug: boolean;
11
13
  id: string;
14
+ resetAfterSubmit: boolean;
12
15
  body: ({
13
16
  type: string;
14
17
  label: boolean;
@@ -198,6 +198,8 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
198
198
  type: string;
199
199
  overlay: boolean;
200
200
  resizable: boolean;
201
+ closeOnEsc: boolean;
202
+ closeOnOutside: boolean;
201
203
  size: string;
202
204
  title: string;
203
205
  className: string;
@@ -205,6 +207,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
205
207
  type: string;
206
208
  debug: boolean;
207
209
  id: string;
210
+ resetAfterSubmit: boolean;
208
211
  body: ({
209
212
  type: string;
210
213
  label: boolean;
@@ -470,6 +473,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
470
473
  type: string;
471
474
  debug: boolean;
472
475
  wrapWithPanel: boolean;
476
+ resetAfterSubmit: boolean;
473
477
  body: ({
474
478
  type: string;
475
479
  className: string;
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.23",
4
+ "version": "1.0.24",
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": "7e677e42f62ee3e69343c7738110117897f50a54"
61
+ "gitHead": "549a7ea0148ec62bab775536c638fa1cb9d984e4"
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;