jamespot-front-business 1.1.91 → 1.1.92
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.js +9 -4
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +9 -4
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/package.json +2 -2
package/dist/esm.js
CHANGED
|
@@ -4418,7 +4418,9 @@ function renderWidget(fieldType, fieldProperties) {
|
|
|
4418
4418
|
</options>
|
|
4419
4419
|
${hasDefaultValue || userCanModifyByComment
|
|
4420
4420
|
? `<params>
|
|
4421
|
-
${hasDefaultValue
|
|
4421
|
+
${hasDefaultValue
|
|
4422
|
+
? `<param key="defaultValue" value="${optionEditor.value.defaultSelectOptionValue.value}"/>`
|
|
4423
|
+
: ''}
|
|
4422
4424
|
${userCanModifyByComment ? `<param key="explain" value="1"/>` : ''}
|
|
4423
4425
|
</params>`
|
|
4424
4426
|
: ''}
|
|
@@ -4509,7 +4511,7 @@ function renderWidget(fieldType, fieldProperties) {
|
|
|
4509
4511
|
function renderProperty(properties, propertyToFind) {
|
|
4510
4512
|
const labelProperty = properties === null || properties === void 0 ? void 0 : properties.find((property) => property.propertyType === propertyToFind);
|
|
4511
4513
|
if (labelProperty) {
|
|
4512
|
-
const value = labelProperty.value.replaceAll("
|
|
4514
|
+
const value = labelProperty.value.replaceAll('"', '"');
|
|
4513
4515
|
return `${propertyToFind.toLowerCase()}="${value}"`;
|
|
4514
4516
|
}
|
|
4515
4517
|
return '';
|
|
@@ -4615,7 +4617,7 @@ function renderDisplays(studioApp) {
|
|
|
4615
4617
|
const viewField = Object.entries(viewContent)
|
|
4616
4618
|
.filter((a) => a[1].isUsed)
|
|
4617
4619
|
.sort((a, b) => a[1].pos - b[1].pos);
|
|
4618
|
-
toRet += `<display view="${internal2XmlView[viewName]}" mode="${viewName === 'view' ? 'view' : 'form'}">
|
|
4620
|
+
toRet += `<display view="${internal2XmlView[viewName]}${viewName === 'view' && studioApp.manifest.displayContentLegacyTable ? 'Disabled' : ''}" mode="${viewName === 'view' ? 'view' : 'form'}">
|
|
4619
4621
|
${viewField.map(([fieldId, view]) => renderDisplayAttr(fieldId, view)).join('')}
|
|
4620
4622
|
</display>`;
|
|
4621
4623
|
}
|
|
@@ -4757,6 +4759,7 @@ const installedToV2ViewNames = {
|
|
|
4757
4759
|
create: 'create',
|
|
4758
4760
|
edit: 'edit',
|
|
4759
4761
|
display: 'view',
|
|
4762
|
+
displayDisabled: 'view',
|
|
4760
4763
|
};
|
|
4761
4764
|
const specialAttrName = ['title', 'alertAuthor', 'sendAlert'];
|
|
4762
4765
|
const ignoredFields = ['edito'];
|
|
@@ -5298,12 +5301,13 @@ function getDateCreationToView(isUsed = true) {
|
|
|
5298
5301
|
}
|
|
5299
5302
|
|
|
5300
5303
|
function InstalledAppStudioAdapter(serverApp, serverApps, state) {
|
|
5301
|
-
var _a, _b, _c, _d;
|
|
5304
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5302
5305
|
const { version, dateCreation } = serverApp.manifest;
|
|
5303
5306
|
const appTypeServer = serverApp.typeModel;
|
|
5304
5307
|
const views = Object.assign({}, ...viewsList.map((view) => ({
|
|
5305
5308
|
[view]: {},
|
|
5306
5309
|
})));
|
|
5310
|
+
const typedApp = serverApp;
|
|
5307
5311
|
const studioApp = {
|
|
5308
5312
|
idApp: serverApp.idApp,
|
|
5309
5313
|
status: _formatStatus(serverApp),
|
|
@@ -5323,6 +5327,7 @@ function InstalledAppStudioAdapter(serverApp, serverApps, state) {
|
|
|
5323
5327
|
viewSolr: serverApp.view ? STUDIO_VIEW.SOLR : STUDIO_VIEW.NOT_SOLR,
|
|
5324
5328
|
typeLabel: appTypeServer.typeLabel,
|
|
5325
5329
|
articlesCount: (_d = serverApp.articlesCount) !== null && _d !== void 0 ? _d : 0,
|
|
5330
|
+
displayContentLegacyTable: !!((_f = (_e = typedApp === null || typedApp === void 0 ? void 0 : typedApp.typeModel) === null || _e === void 0 ? void 0 : _e.displays) === null || _f === void 0 ? void 0 : _f['displayDisabled']),
|
|
5326
5331
|
},
|
|
5327
5332
|
fields: [],
|
|
5328
5333
|
views,
|