@steedos-widgets/amis-lib 6.3.12-beta.22 → 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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +18 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +18 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
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
|
-
|
|
11072
|
+
...contents,
|
|
11057
11073
|
],
|
|
11058
11074
|
"objectApiName": "${objectName}",
|
|
11059
11075
|
"recordId": "${recordId}",
|