@steedos-widgets/amis-lib 1.2.1 → 1.2.3-beta.1

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.
@@ -309,7 +309,7 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
309
309
  * @param {*} objectSchema 对象UISchema
310
310
  * @returns amisSchema
311
311
  */
312
- export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: any): Promise<{
312
+ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: any): {
313
313
  type: string;
314
314
  body: {
315
315
  type: string;
@@ -378,7 +378,7 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
378
378
  className: string;
379
379
  }[];
380
380
  className: string;
381
- }[]>;
381
+ }[];
382
382
  /**
383
383
  * 记录详细界面顶部头amisSchema,也是标题面板组件的amisSchema
384
384
  * @param {*} objectSchema 对象UISchema
@@ -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
  } | {
@@ -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
  } | {
@@ -287,6 +288,19 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
287
288
  onEvent: any;
288
289
  };
289
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
+ }>;
290
304
  export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
291
305
  appName: any;
292
306
  masterObjectName: any;
@@ -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;
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.1",
4
+ "version": "1.2.3-beta.1",
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": "d8e60ef2a76a1e83b11ba2d0d0788098f90576f7"
62
+ "gitHead": "d66884f92cfe285ecfcedd71e1103945945de0d7"
63
63
  }