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/cjs.js
CHANGED
|
@@ -4426,7 +4426,9 @@ function renderWidget(fieldType, fieldProperties) {
|
|
|
4426
4426
|
</options>
|
|
4427
4427
|
${hasDefaultValue || userCanModifyByComment
|
|
4428
4428
|
? `<params>
|
|
4429
|
-
${hasDefaultValue
|
|
4429
|
+
${hasDefaultValue
|
|
4430
|
+
? `<param key="defaultValue" value="${optionEditor.value.defaultSelectOptionValue.value}"/>`
|
|
4431
|
+
: ''}
|
|
4430
4432
|
${userCanModifyByComment ? `<param key="explain" value="1"/>` : ''}
|
|
4431
4433
|
</params>`
|
|
4432
4434
|
: ''}
|
|
@@ -4517,7 +4519,7 @@ function renderWidget(fieldType, fieldProperties) {
|
|
|
4517
4519
|
function renderProperty(properties, propertyToFind) {
|
|
4518
4520
|
const labelProperty = properties === null || properties === void 0 ? void 0 : properties.find((property) => property.propertyType === propertyToFind);
|
|
4519
4521
|
if (labelProperty) {
|
|
4520
|
-
const value = labelProperty.value.replaceAll("
|
|
4522
|
+
const value = labelProperty.value.replaceAll('"', '"');
|
|
4521
4523
|
return `${propertyToFind.toLowerCase()}="${value}"`;
|
|
4522
4524
|
}
|
|
4523
4525
|
return '';
|
|
@@ -4623,7 +4625,7 @@ function renderDisplays(studioApp) {
|
|
|
4623
4625
|
const viewField = Object.entries(viewContent)
|
|
4624
4626
|
.filter((a) => a[1].isUsed)
|
|
4625
4627
|
.sort((a, b) => a[1].pos - b[1].pos);
|
|
4626
|
-
toRet += `<display view="${internal2XmlView[viewName]}" mode="${viewName === 'view' ? 'view' : 'form'}">
|
|
4628
|
+
toRet += `<display view="${internal2XmlView[viewName]}${viewName === 'view' && studioApp.manifest.displayContentLegacyTable ? 'Disabled' : ''}" mode="${viewName === 'view' ? 'view' : 'form'}">
|
|
4627
4629
|
${viewField.map(([fieldId, view]) => renderDisplayAttr(fieldId, view)).join('')}
|
|
4628
4630
|
</display>`;
|
|
4629
4631
|
}
|
|
@@ -4765,6 +4767,7 @@ const installedToV2ViewNames = {
|
|
|
4765
4767
|
create: 'create',
|
|
4766
4768
|
edit: 'edit',
|
|
4767
4769
|
display: 'view',
|
|
4770
|
+
displayDisabled: 'view',
|
|
4768
4771
|
};
|
|
4769
4772
|
const specialAttrName = ['title', 'alertAuthor', 'sendAlert'];
|
|
4770
4773
|
const ignoredFields = ['edito'];
|
|
@@ -5306,12 +5309,13 @@ function getDateCreationToView(isUsed = true) {
|
|
|
5306
5309
|
}
|
|
5307
5310
|
|
|
5308
5311
|
function InstalledAppStudioAdapter(serverApp, serverApps, state) {
|
|
5309
|
-
var _a, _b, _c, _d;
|
|
5312
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5310
5313
|
const { version, dateCreation } = serverApp.manifest;
|
|
5311
5314
|
const appTypeServer = serverApp.typeModel;
|
|
5312
5315
|
const views = Object.assign({}, ...viewsList.map((view) => ({
|
|
5313
5316
|
[view]: {},
|
|
5314
5317
|
})));
|
|
5318
|
+
const typedApp = serverApp;
|
|
5315
5319
|
const studioApp = {
|
|
5316
5320
|
idApp: serverApp.idApp,
|
|
5317
5321
|
status: _formatStatus(serverApp),
|
|
@@ -5331,6 +5335,7 @@ function InstalledAppStudioAdapter(serverApp, serverApps, state) {
|
|
|
5331
5335
|
viewSolr: serverApp.view ? STUDIO_VIEW.SOLR : STUDIO_VIEW.NOT_SOLR,
|
|
5332
5336
|
typeLabel: appTypeServer.typeLabel,
|
|
5333
5337
|
articlesCount: (_d = serverApp.articlesCount) !== null && _d !== void 0 ? _d : 0,
|
|
5338
|
+
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']),
|
|
5334
5339
|
},
|
|
5335
5340
|
fields: [],
|
|
5336
5341
|
views,
|