@steedos-widgets/amis-lib 1.2.0 → 1.2.2

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,6 +1,7 @@
1
1
  export function getLookupSapceUserTreeSchema(): {
2
2
  type: string;
3
3
  className: string;
4
+ inputClassName: string;
4
5
  id: string;
5
6
  source: {
6
7
  method: string;
@@ -118,6 +118,7 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
118
118
  value?: undefined;
119
119
  };
120
120
  data: {
121
+ objectName: string;
121
122
  record: string;
122
123
  };
123
124
  } | {
@@ -1,7 +1,8 @@
1
- export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems }?: {
1
+ export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, filterVisible }?: {
2
2
  showDisplayAs?: boolean;
3
3
  hiddenCount?: boolean;
4
4
  headerToolbarItems: any;
5
+ filterVisible?: boolean;
5
6
  }): any[];
6
7
  export function getObjectFooterToolbar(mainObject: any, formFactor: any): string[];
7
8
  export function getObjectFilter(objectSchema: any, fields: any, options: any): Promise<{
@@ -118,6 +118,7 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
118
118
  value?: undefined;
119
119
  };
120
120
  data: {
121
+ objectName: string;
121
122
  record: string;
122
123
  };
123
124
  } | {
@@ -164,6 +165,7 @@ export function getListSchema(appName: any, objectName: any, listViewName: any,
164
165
  requestAdaptor: any;
165
166
  adaptor: any;
166
167
  headerToolbarItems: any;
168
+ filterVisible: any;
167
169
  };
168
170
  isCustomAmisSchema?: undefined;
169
171
  isCalendar?: undefined;
@@ -286,6 +288,19 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
286
288
  onEvent: any;
287
289
  };
288
290
  }>;
291
+ export function getRecordServiceSchema(objectName: any, appId: any, props?: {}): Promise<{
292
+ uiSchema: any;
293
+ amisSchema: {
294
+ type: string;
295
+ body: any[];
296
+ data: {
297
+ "_master.objectName": string;
298
+ "_master.recordId": string;
299
+ };
300
+ style: any;
301
+ onEvent: any;
302
+ };
303
+ }>;
289
304
  export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
290
305
  appName: any;
291
306
  masterObjectName: any;
@@ -326,6 +341,7 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
326
341
  requestAdaptor: any;
327
342
  adaptor: any;
328
343
  headerToolbarItems: any;
344
+ filterVisible: any;
329
345
  };
330
346
  isCustomAmisSchema?: undefined;
331
347
  isCalendar?: undefined;
@@ -37,6 +37,7 @@ export function getSchema(uiSchema: any): {
37
37
  data: {
38
38
  objectName: string;
39
39
  __deletedRecord: boolean;
40
+ _isRelated?: undefined;
40
41
  };
41
42
  expression?: undefined;
42
43
  } | {
@@ -47,6 +48,7 @@ export function getSchema(uiSchema: any): {
47
48
  };
48
49
  data: {
49
50
  objectName: string;
51
+ _isRelated: string;
50
52
  __deletedRecord?: undefined;
51
53
  };
52
54
  expression: string;
@@ -22,6 +22,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
22
22
  context: string;
23
23
  global: string;
24
24
  listViewId: string;
25
+ displayAs: string;
25
26
  uiSchema: string;
26
27
  isLookup: string;
27
28
  listName: string;
@@ -25,6 +25,7 @@ export namespace StandardButtons {
25
25
  context: string;
26
26
  global: string;
27
27
  listViewId: string;
28
+ displayAs: string;
28
29
  uiSchema: string;
29
30
  isLookup: string;
30
31
  listName: string;
@@ -145,6 +146,7 @@ export namespace StandardButtons {
145
146
  data: {
146
147
  objectName: string;
147
148
  __deletedRecord: boolean;
149
+ _isRelated?: undefined;
148
150
  };
149
151
  expression?: undefined;
150
152
  } | {
@@ -155,6 +157,7 @@ export namespace StandardButtons {
155
157
  };
156
158
  data: {
157
159
  objectName: string;
160
+ _isRelated: string;
158
161
  __deletedRecord?: undefined;
159
162
  };
160
163
  expression: 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.2.0",
4
+ "version": "1.2.2",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -59,5 +59,5 @@
59
59
  "dependencies": {
60
60
  "lodash": "^4.17.21"
61
61
  },
62
- "gitHead": "9c43b41751811516223293627e6a407388a0323f"
62
+ "gitHead": "f4b1da936f66360718b4b05de60e6076cd357f7e"
63
63
  }