@steedos-widgets/amis-object 1.2.6-beta.17 → 1.2.6-beta.18

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.
@@ -50,7 +50,45 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
50
50
  objectName: any;
51
51
  visibleOn: any;
52
52
  className: string;
53
- }[];
53
+ }[] | {
54
+ type: string;
55
+ icon: string;
56
+ onEvent: {
57
+ click: {
58
+ actions: {
59
+ actionType: string;
60
+ drawer: {
61
+ type: string;
62
+ title: string;
63
+ body: {
64
+ type: string;
65
+ id: string;
66
+ vertical: boolean;
67
+ tiled: boolean;
68
+ buttons: {
69
+ type: string;
70
+ name: any;
71
+ objectName: any;
72
+ visibleOn: any;
73
+ }[];
74
+ btnLevel: string;
75
+ className: string;
76
+ btnClassName: string;
77
+ size: string;
78
+ }[];
79
+ id: string;
80
+ position: string;
81
+ closeOnOutside: boolean;
82
+ resizable: boolean;
83
+ className: string;
84
+ bodyClassName: string;
85
+ actions: any[];
86
+ };
87
+ }[];
88
+ };
89
+ };
90
+ id: string;
91
+ };
54
92
  };
55
93
  md: string;
56
94
  })[];
@@ -248,6 +248,10 @@ body {
248
248
  display: flex;
249
249
  align-items: center;
250
250
  }
251
+
252
+ .antd-ButtonGroup > .antd-Button {
253
+ max-width: none !important;
254
+ }
251
255
  /* @tailwind base; */
252
256
  .container {
253
257
  width: 100%
@@ -467,6 +471,9 @@ body {
467
471
  .\!max-h-\[80vh\] {
468
472
  max-height: 80vh !important
469
473
  }
474
+ .w-full {
475
+ width: 100%
476
+ }
470
477
  .w-14 {
471
478
  width: 3.5rem
472
479
  }
@@ -485,9 +492,6 @@ body {
485
492
  .w-1\/3 {
486
493
  width: 33.333333%
487
494
  }
488
- .w-full {
489
- width: 100%
490
- }
491
495
  .w-10 {
492
496
  width: 2.5rem
493
497
  }
@@ -1111,6 +1115,43 @@ body {
1111
1115
  #steedosPageRoot{
1112
1116
  overflow: auto;
1113
1117
  }
1118
+
1119
+ .buttons-drawer .antd-Drawer-content{
1120
+ height: auto !important;
1121
+ max-height: 70% !important;
1122
+ }
1123
+
1124
+ .buttons-drawer .antd-Drawer-body{
1125
+ overflow: inherit !important;
1126
+ }
1127
+
1128
+ .buttons-drawer .antd-Drawer-body button{
1129
+ border-color: #c9c9c9;
1130
+ border-right: none !important;
1131
+ border-left: none !important;
1132
+ border-bottom: none !important;
1133
+ border-radius: 0px !important;;
1134
+ }
1135
+
1136
+ @media screen and (max-width: 767px) {
1137
+ /* 手机版Modal全屏 */
1138
+ .antd-Modal-content{
1139
+ max-height: 100% !important;
1140
+ margin: 0px !important;
1141
+ border-radius: 0px !important;
1142
+ height: 100% !important;
1143
+ }
1144
+
1145
+ /* 修正手机版TreeSelect样式异常 */
1146
+ .antd-TreeSelect-popup .antd-Tree{
1147
+ width: 100% !important;
1148
+ }
1149
+
1150
+ /* 修正手机版 body上的sidebar导致y滚动条异常 */
1151
+ .sidebar{
1152
+ padding-bottom: 0px !important;
1153
+ }
1154
+ }
1114
1155
  .steedos-listview .is-loading .antd-Table-contentWrap {
1115
1156
  height: 50px;
1116
1157
  }
@@ -1737,21 +1737,6 @@ const parseSingleExpression$1 = function (func, formData, dataPath, global, user
1737
1737
  }
1738
1738
  };
1739
1739
 
1740
- /*
1741
- * @Author: baozhoutao@steedos.com
1742
- * @Date: 2022-08-04 10:42:49
1743
- * @LastEditors: baozhoutao@steedos.com
1744
- * @LastEditTime: 2022-08-25 10:28:47
1745
- * @Description:
1746
- */
1747
- var config = {
1748
- listView: {
1749
- newRecordMode: 'modal',
1750
- editRecordMode: 'modal',
1751
- perPage: 20
1752
- }
1753
- };
1754
-
1755
1740
  /*
1756
1741
  * @Author: baozhoutao@steedos.com
1757
1742
  * @Date: 2022-11-01 15:51:00
@@ -2767,6 +2752,166 @@ const execute = (button, props) => {
2767
2752
 
2768
2753
  const executeButton = execute;
2769
2754
 
2755
+
2756
+ const getObjectDetailHeaderButtons = (objectSchema, recordId)=>{
2757
+ const { name } = objectSchema;
2758
+ const buttons = getObjectDetailButtons(objectSchema, {});
2759
+ const moreButtons = getObjectDetailMoreButtons(objectSchema, {
2760
+ recordId: recordId,
2761
+ objectName: name
2762
+ });
2763
+ let amisButtonsSchema = ___default__default["default"].map(buttons, (button) => {
2764
+ return {
2765
+ type: 'steedos-object-button',
2766
+ name: button.name,
2767
+ objectName: button.objectName,
2768
+ visibleOn: getButtonVisibleOn$1(button),
2769
+ className: `button_${button.name}`
2770
+ }
2771
+ });
2772
+ let dropdownButtons = ___default__default["default"].map(moreButtons, (button) => {
2773
+ return {
2774
+ type: 'steedos-object-button',
2775
+ name: button.name,
2776
+ objectName: button.objectName,
2777
+ visibleOn: getButtonVisibleOn$1(button),
2778
+ }
2779
+ });
2780
+ return {
2781
+ buttons: amisButtonsSchema,
2782
+ moreButtons: dropdownButtons
2783
+ };
2784
+ };
2785
+
2786
+ const getObjectDetailButtonsSchemas = (objectSchema, recordId, ctx)=>{
2787
+ const { buttons, moreButtons } = getObjectDetailHeaderButtons(objectSchema, recordId);
2788
+ if(ctx.formFactor === 'SMALL'){
2789
+ return {
2790
+ "type": "button",
2791
+ "icon": "fa fa-angle-down",
2792
+ "onEvent": {
2793
+ "click": {
2794
+ "actions": [
2795
+ {
2796
+ "actionType": "drawer",
2797
+ "drawer": {
2798
+ "type": "drawer",
2799
+ "title": "操作",
2800
+ "body": [
2801
+ {
2802
+ "type": "button-group",
2803
+ "id": "u:fd837823be5b",
2804
+ "vertical": true,
2805
+ "tiled": true,
2806
+ "buttons": [
2807
+ ...___default__default["default"].map(buttons, (button)=>{
2808
+ button.className += ' w-full';
2809
+ return button;
2810
+ }),
2811
+ ...___default__default["default"].map(moreButtons, (button)=>{
2812
+ button.className += ' w-full';
2813
+ return button;
2814
+ })
2815
+ ],
2816
+ "btnLevel": "enhance",
2817
+ "className": "w-full",
2818
+ "btnClassName": "w-full",
2819
+ "size": "lg"
2820
+ }
2821
+ ],
2822
+ "id": "u:9815f7366b9f",
2823
+ "position": "bottom",
2824
+ "closeOnOutside": true,
2825
+ "resizable": false,
2826
+ "className": "buttons-drawer",
2827
+ "bodyClassName": "m-none p-none",
2828
+ "actions": []
2829
+ }
2830
+ }
2831
+ ]
2832
+ }
2833
+ },
2834
+ "id": "u:ee7c7929e6ae"
2835
+ }
2836
+ }else {
2837
+ if(moreButtons.length > 0){
2838
+ const dropdownButtonsSchema = {
2839
+ type: "steedos-dropdown-button",
2840
+ label: "",
2841
+ buttons: moreButtons,
2842
+ className: 'slds-icon'
2843
+ };
2844
+ buttons.push(dropdownButtonsSchema);
2845
+ }
2846
+ return buttons;
2847
+ }
2848
+ };
2849
+
2850
+
2851
+ const getObjectListViewButtonsSchemas = (objectSchema, ctx)=>{
2852
+ const buttons = getListViewButtons(objectSchema, ctx);
2853
+ if(ctx.formFactor === 'SMALL'){
2854
+ return {
2855
+ "type": "button",
2856
+ "icon": "fa fa-angle-down",
2857
+ "onEvent": {
2858
+ "click": {
2859
+ "actions": [
2860
+ {
2861
+ "actionType": "drawer",
2862
+ "drawer": {
2863
+ "type": "drawer",
2864
+ "title": "操作",
2865
+ "body": [
2866
+ {
2867
+ "type": "button-group",
2868
+ "id": "u:fd837823be5b",
2869
+ "vertical": true,
2870
+ "tiled": true,
2871
+ "buttons": [
2872
+ ...___default__default["default"].map(buttons, (button)=>{
2873
+ return {
2874
+ type: 'steedos-object-button',
2875
+ name: button.name,
2876
+ objectName: button.objectName,
2877
+ visibleOn: getButtonVisibleOn$1(button),
2878
+ className: `button_${button.name} w-full`
2879
+ }
2880
+ })
2881
+ ],
2882
+ "btnLevel": "enhance",
2883
+ "className": "w-full",
2884
+ "btnClassName": "w-full",
2885
+ "size": "lg"
2886
+ }
2887
+ ],
2888
+ "id": "u:9815f7366b9f",
2889
+ "position": "bottom",
2890
+ "closeOnOutside": true,
2891
+ "resizable": false,
2892
+ "className": "buttons-drawer",
2893
+ "bodyClassName": "m-none p-none",
2894
+ "actions": []
2895
+ }
2896
+ }
2897
+ ]
2898
+ }
2899
+ },
2900
+ "id": "u:ee7c7929e6ae"
2901
+ }
2902
+ }else {
2903
+ return ___default__default["default"].map(buttons, (button) => {
2904
+ return {
2905
+ type: 'steedos-object-button',
2906
+ name: button.name,
2907
+ objectName: button.objectName,
2908
+ visibleOn: getButtonVisibleOn$1(button),
2909
+ className: `button_${button.name}`
2910
+ }
2911
+ });
2912
+ }
2913
+ };
2914
+
2770
2915
  async function getObjectFieldsFilterButtonSchema(objectSchema) {
2771
2916
  // const amisListViewId = `listview_${objectSchema.name}`;
2772
2917
  return {
@@ -3249,17 +3394,7 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
3249
3394
  }
3250
3395
  );
3251
3396
 
3252
- const buttons = getListViewButtons(objectSchema, {});
3253
- let amisButtonsSchema = ___default.map(buttons, (button) => {
3254
- return {
3255
- type: 'steedos-object-button',
3256
- name: button.name,
3257
- objectName: button.objectName,
3258
- visibleOn: getButtonVisibleOn$1(button),
3259
- className: `button_${button.name}`
3260
- }
3261
- });
3262
-
3397
+ let amisButtonsSchema = getObjectListViewButtonsSchemas(objectSchema, {formFactor: ctx.formFactor});
3263
3398
  const reg = new RegExp('_', 'g');
3264
3399
  const standardIcon = icon && icon.replace(reg, '-');
3265
3400
  return {
@@ -3441,7 +3576,10 @@ async function getObjectListHeaderFieldsFilterBar(objectSchema, listViewName, ct
3441
3576
  * @returns amisSchema
3442
3577
  */
3443
3578
  function getObjectListHeader$1(objectSchema, listViewName, ctx) {
3444
- let firstLineSchema = getObjectListHeaderFirstLine(objectSchema);
3579
+ if (!ctx) {
3580
+ ctx = {};
3581
+ }
3582
+ let firstLineSchema = getObjectListHeaderFirstLine(objectSchema, listViewName, ctx);
3445
3583
  let body = [firstLineSchema];
3446
3584
  let headerSchema = [{
3447
3585
  "type": "wrapper",
@@ -3462,35 +3600,11 @@ async function getObjectRecordDetailHeader(objectSchema, recordId, options) {
3462
3600
  const { showRecordTitle = true } = options || {};
3463
3601
  // console.log('getObjectRecordDetailHeader==>', objectSchema, recordId)
3464
3602
  const { name, label, icon, NAME_FIELD_KEY } = objectSchema;
3465
- const buttons = getObjectDetailButtons(objectSchema, {});
3466
- const moreButtons = getObjectDetailMoreButtons(objectSchema, {
3467
- recordId: recordId,
3468
- objectName: name
3469
- });
3470
- let amisButtonsSchema = ___default.map(buttons, (button) => {
3471
- return {
3472
- type: 'steedos-object-button',
3473
- name: button.name,
3474
- objectName: button.objectName,
3475
- visibleOn: getButtonVisibleOn$1(button),
3476
- className: `button_${button.name}`
3477
- }
3478
- });
3479
- let dropdownButtons = ___default.map(moreButtons, (button) => {
3480
- return {
3481
- type: 'steedos-object-button',
3482
- name: button.name,
3483
- objectName: button.objectName,
3484
- visibleOn: getButtonVisibleOn$1(button),
3485
- }
3486
- });
3487
- const dropdownButtonsSchema = {
3488
- type: "steedos-dropdown-button",
3489
- label: "",
3490
- buttons: dropdownButtons,
3491
- className: 'slds-icon'
3492
- };
3493
- amisButtonsSchema.push(dropdownButtonsSchema);
3603
+
3604
+ let amisButtonsSchema = getObjectDetailButtonsSchemas(objectSchema, recordId, options);
3605
+
3606
+ // console.log(`getObjectRecordDetailHeader==>`, amisButtonsSchema)
3607
+
3494
3608
  const reg = new RegExp('_', 'g');
3495
3609
  const standardIcon = icon && icon.replace(reg, '-');
3496
3610
 
@@ -6735,7 +6849,7 @@ async function getObjectCRUD(objectSchema, fields, options){
6735
6849
  }),
6736
6850
  filter: options.filterVisible !== false && await getObjectFilter(objectSchema, fields, options),
6737
6851
  };
6738
- if(options.formFactor !== 'SMALL'){
6852
+ if(options.formFactor !== 'SMALL' || ["split"].indexOf(options.displayAs) == -1){
6739
6853
  Object.assign(bodyProps, {
6740
6854
  bulkActions: options.bulkActions != false ? bulkActions : false
6741
6855
  });
@@ -7068,6 +7182,21 @@ async function getObjectDetail(objectSchema, recordId, ctx){
7068
7182
  }
7069
7183
  }
7070
7184
 
7185
+ /*
7186
+ * @Author: baozhoutao@steedos.com
7187
+ * @Date: 2022-08-04 10:42:49
7188
+ * @LastEditors: baozhoutao@steedos.com
7189
+ * @LastEditTime: 2022-08-25 10:28:47
7190
+ * @Description:
7191
+ */
7192
+ var config = {
7193
+ listView: {
7194
+ newRecordMode: 'modal',
7195
+ editRecordMode: 'modal',
7196
+ perPage: 20
7197
+ }
7198
+ };
7199
+
7071
7200
  async function getTableColumns$1(fields, options){
7072
7201
  const columns = [{name: '_index',type: 'text', width: 32, placeholder: ""}];
7073
7202
  for (const field of fields) {
@@ -7418,7 +7547,7 @@ async function getTableSchema$1(fields, options){
7418
7547
  options = {};
7419
7548
  }
7420
7549
  let columns = [];
7421
- if(options.formFactor === 'SMALL'){
7550
+ if(options.formFactor === 'SMALL' || ["split"].indexOf(options.displayAs) > -1){
7422
7551
  columns = await getMobileTableColumns(fields, options);
7423
7552
  }
7424
7553
  else {
@@ -9487,7 +9616,10 @@ async function getListviewInitSchema(objectApiName, listViewName, ctx) {
9487
9616
  const defaults = ctx.defaults || {};
9488
9617
  if(!defaults.headerSchema){
9489
9618
  //传入isListviewInit是区别于对象列表类型的微页面,即getListPageInitSchema函数中该属性为false
9490
- const headerSchema = await getObjectListHeader$1(uiSchema);
9619
+ const headerSchema = await getObjectListHeader$1(uiSchema, listViewName, {
9620
+ onlySecordLine: true,
9621
+ isListviewInit: true
9622
+ });
9491
9623
  defaults.headerSchema = headerSchema;
9492
9624
  }
9493
9625
  ctx.defaults = defaults;
@@ -12165,6 +12297,7 @@ var index_esm$1 = /*#__PURE__*/Object.freeze({
12165
12297
  getLookupSapceUserTreeSchema: getLookupSapceUserTreeSchema,
12166
12298
  getNotifications: getNotifications,
12167
12299
  getObjectDetailButtons: getObjectDetailButtons,
12300
+ getObjectDetailButtonsSchemas: getObjectDetailButtonsSchemas,
12168
12301
  getObjectDetailMoreButtons: getObjectDetailMoreButtons,
12169
12302
  getObjectFieldsFilterBarSchema: getObjectFieldsFilterBarSchema,
12170
12303
  getObjectFieldsFilterButtonSchema: getObjectFieldsFilterButtonSchema,
@@ -12173,6 +12306,7 @@ var index_esm$1 = /*#__PURE__*/Object.freeze({
12173
12306
  getObjectListHeaderFieldsFilterBar: getObjectListHeaderFieldsFilterBar,
12174
12307
  getObjectListHeaderFirstLine: getObjectListHeaderFirstLine,
12175
12308
  getObjectListHeaderSecordLine: getObjectListHeaderSecordLine,
12309
+ getObjectListViewButtonsSchemas: getObjectListViewButtonsSchemas,
12176
12310
  getObjectRecordDetailHeader: getObjectRecordDetailHeader,
12177
12311
  getObjectRecordDetailRelatedListHeader: getObjectRecordDetailRelatedListHeader,
12178
12312
  getObjectRelated: getObjectRelated,
@@ -12420,15 +12554,16 @@ var AmisObjectButton = function (props) {
12420
12554
  React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", className: "animate-spin w-4 h-4" },
12421
12555
  React__default["default"].createElement("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99" }))));
12422
12556
  }
12557
+ // console.log('AmisObjectButton===>', button, className);
12423
12558
  if (button.type === "amis_button") {
12424
12559
  var amisSchema = button.amis_schema;
12425
12560
  var schema = ___default.isString(amisSchema) ? JSON.parse(amisSchema) : amisSchema;
12426
12561
  if (schema && schema.body.length > 0) {
12427
12562
  delete schema.body[0]['visibleOn'];
12428
12563
  }
12429
- // if(className){
12430
- // schema.className = schema.className + ' ' + className;
12431
- // }
12564
+ if (className) {
12565
+ schema.className = schema.className + ' ' + className;
12566
+ }
12432
12567
  var renderData = Object.assign(data, { objectName: objectName, app_id: appId, className: className });
12433
12568
  if (data._id) {
12434
12569
  renderData.recordId = data._id;
@@ -12454,7 +12589,10 @@ var AmisObjectButton = function (props) {
12454
12589
 
12455
12590
  var getMenu = function (render, buttons, btnClassName, props) {
12456
12591
  return ___default.map(buttons, function (button) {
12457
- button.className = "".concat(button.className, " ").concat(btnClassName);
12592
+ if (btnClassName) {
12593
+ button.className = "".concat(button.className, " ").concat(btnClassName);
12594
+ }
12595
+ delete button.className;
12458
12596
  return {
12459
12597
  key: button.name,
12460
12598
  label: (React__default["default"].createElement(React__default["default"].Fragment, null, render('body', button, props)))
@@ -12726,9 +12864,10 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
12726
12864
  formFactor = 'LARGE';
12727
12865
  }
12728
12866
  }
12729
- if (["split"].indexOf(displayAs) > -1) {
12730
- formFactor = 'SMALL';
12731
- }
12867
+ // 分栏模式不应该改变尺寸变量值
12868
+ // if(["split"].indexOf(displayAs) > -1){
12869
+ // formFactor = 'SMALL';
12870
+ // }
12732
12871
  if (!ctx.formFactor) {
12733
12872
  ctx.formFactor = formFactor;
12734
12873
  }
@@ -12786,7 +12925,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
12786
12925
  listViewId = (ctx === null || ctx === void 0 ? void 0 : ctx.listViewId) || amisSchemaData.listViewId;
12787
12926
  listViewSchemaProps = __assign$2(__assign$2({ top: top, perPage: perPage, showHeader: showHeader, defaults: defaults }, ctx), { listViewId: listViewId, setDataToComponentId: setDataToComponentId, filterVisible: filterVisible, showDisplayAs: showDisplayAs, displayAs: displayAs, headerToolbarItems: headerToolbarItems });
12788
12927
  if (!headerSchema) {
12789
- headerSchema = getObjectListHeader$1(uiSchema);
12928
+ headerSchema = getObjectListHeader$1(uiSchema, listName, ctx);
12790
12929
  }
12791
12930
  serviceData = Object.assign({}, { showDisplayAs: showDisplayAs, displayAs: displayAs, recordPermissions: uiSchema.permissions, _id: null, $listviewId: listName });
12792
12931
  if (___default.has(props, 'objectApiName')) {
@@ -12835,7 +12974,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
12835
12974
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
12836
12975
  },
12837
12976
  "requestAdaptor": "console.log('service listview schemaApi requestAdaptor======>');api.data={query: '{spaces__findOne(id: \"none\"){_id,name}}'};return api;",
12838
- "adaptor": "\n console.log('service listview schemaApi adaptor....', api.body); \n const { appId, objectName, defaultListName: listName, display, formFactor: defaultFormFactor} = api.body;\n return new Promise((resolve)=>{\n const listViewSchemaProps = ".concat(JSON.stringify(listViewSchemaProps), ";\n const formFactor = ([\"split\"].indexOf(display) > -1) ? 'SMALL': defaultFormFactor;\n listViewSchemaProps.formFactor = formFactor;\n // console.log(\"====listViewSchemaProps===>\", listViewSchemaProps)\n window.getListSchema(appId, objectName, listName, listViewSchemaProps).then((schema)=>{\n payload.data = schema.amisSchema;\n // console.log(\"payload================>\", payload)\n resolve(payload)\n });\n });\n ")
12977
+ "adaptor": "\n // console.log('service listview schemaApi adaptor....', api.body); \n let { appId, objectName, defaultListName: listName, display, formFactor: defaultFormFactor} = api.body;\n if(api.body.listName){\n listName = api.body.listName;\n }\n return new Promise((resolve)=>{\n const listViewSchemaProps = ".concat(JSON.stringify(listViewSchemaProps), ";\n const formFactor = ([\"split\"].indexOf(display) > -1) ? 'SMALL': defaultFormFactor;\n listViewSchemaProps.formFactor = formFactor;\n // console.log(\"====listViewSchemaProps===>\", listName, listViewSchemaProps)\n window.getListSchema(appId, objectName, listName, listViewSchemaProps).then((schema)=>{\n payload.data = schema.amisSchema;\n // console.log(\"payload================>\", payload)\n resolve(payload)\n });\n });\n ")
12839
12978
  },
12840
12979
  // "body": body,
12841
12980
  // "data": serviceData
@@ -12990,7 +13129,7 @@ var AmisRecordDetailHeader = function (props) { return __awaiter(void 0, void 0,
12990
13129
  };
12991
13130
  props.$schema, recordId = props.recordId, _b = props.onEvent, onEvent = _b === void 0 ? defaultOnEvent : _b, _c = props.showRecordTitle, showRecordTitle = _c === void 0 ? true : _c;
12992
13131
  objectApiName = props.objectApiName || "space_users";
12993
- return [4 /*yield*/, getRecordDetailHeaderSchema(objectApiName, recordId, { showRecordTitle: showRecordTitle })];
13132
+ return [4 /*yield*/, getRecordDetailHeaderSchema(objectApiName, recordId, { showRecordTitle: showRecordTitle, formFactor: props.data.formFactor })];
12994
13133
  case 2:
12995
13134
  schema = (_d.sent()).amisSchema;
12996
13135
  schema.className = className;