@steedos-widgets/amis-lib 6.3.12-beta.21 → 6.3.12-beta.23

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.
package/dist/index.esm.js CHANGED
@@ -10999,7 +10999,8 @@ async function getRecordDetailHeaderSchema(objectName,recordId, options){
10999
10999
  }
11000
11000
 
11001
11001
  async function getRecordDetailSchema(objectName, appId, props = {}){
11002
- const uiSchema = await getUISchema(objectName);
11002
+ const uiSchema = await getUISchema(objectName);
11003
+
11003
11004
  const relatedLists = await getObjectRelatedList(objectName);
11004
11005
  const detailed = {
11005
11006
  "title": i18next.t('frontend_record_detail_tab_detailed'),
@@ -11038,6 +11039,21 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
11038
11039
  if(relatedLists.length){
11039
11040
  content.tabs.push(related);
11040
11041
  }
11042
+ const contents = [content];
11043
+ if (uiSchema.enable_chatter) {
11044
+ const chatter = {
11045
+ "type": "rooms-provider",
11046
+ "baseUrl": "${context.rootUrl}",
11047
+ "body": [
11048
+ {
11049
+ "type": "rooms-comments",
11050
+ "className": "flex flex-col gap-3 m-4",
11051
+ "roomId": "objects:${objectName}:{recordId}",
11052
+ }
11053
+ ]
11054
+ };
11055
+ contents.push(chatter);
11056
+ }
11041
11057
  // content.tabs = reverse(content.tabs)
11042
11058
  return {
11043
11059
  uiSchema,
@@ -11053,7 +11069,7 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
11053
11069
  "showButtons": props.showButtons,
11054
11070
  "showBackButton": props.showBackButton,
11055
11071
  },
11056
- content
11072
+ ...contents,
11057
11073
  ],
11058
11074
  "objectApiName": "${objectName}",
11059
11075
  "recordId": "${recordId}",
@@ -12112,7 +12128,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
12112
12128
  }
12113
12129
  const selfData = JSON.parse(JSON.stringify(api.data.$self));
12114
12130
  ${listviewFilter && !ctx.inFilterForm ? `var filters = ${JSON.stringify(listviewFilter)};` : 'var filters = [];'}
12115
- var pageSize = 500;//api.data.pageSize || 10;
12131
+ var pageSize = api.data.pageSize || 10;
12116
12132
  var pageNo = api.data.pageNo || 1;
12117
12133
  var skip = (pageNo - 1) * pageSize;
12118
12134
  var orderBy = api.data.orderBy || '';
@@ -12336,7 +12352,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
12336
12352
  return payload;
12337
12353
  `;
12338
12354
  }
12339
- let top = 20;
12355
+ let top = 500;
12340
12356
 
12341
12357
  if(refObjectConfig.paging && refObjectConfig.paging.enabled === false){
12342
12358
  top = 1000;