@crystaldesign/diva-backoffice 25.16.0-beta.24 → 25.16.0-beta.26
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/build/esm/index.js +519 -140
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts +0 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts +13 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -8701,6 +8701,25 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
8701
8701
|
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
8702
8702
|
value: false
|
|
8703
8703
|
}]
|
|
8704
|
+
}, {
|
|
8705
|
+
name: ['settings', 'automaticPublishing'],
|
|
8706
|
+
label: t('backoffice.form.organizationdetails.items.automaticpublishing'),
|
|
8707
|
+
permission: 'backoffice_admin_organizations',
|
|
8708
|
+
hidden: function hidden(data) {
|
|
8709
|
+
return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'ASSOCIATION';
|
|
8710
|
+
},
|
|
8711
|
+
type: 'radio',
|
|
8712
|
+
optionType: 'button',
|
|
8713
|
+
options: [{
|
|
8714
|
+
label: t('backoffice.form.organizationdetails.items.na'),
|
|
8715
|
+
value: undefined
|
|
8716
|
+
}, {
|
|
8717
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
8718
|
+
value: true
|
|
8719
|
+
}, {
|
|
8720
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
8721
|
+
value: false
|
|
8722
|
+
}]
|
|
8704
8723
|
}, {
|
|
8705
8724
|
name: ['settings', 'versioningToIDMService'],
|
|
8706
8725
|
label: t('backoffice.form.organizationdetails.items.versioningToIDMService'),
|
|
@@ -33145,10 +33164,27 @@ function PublishCustomCell (_ref) {
|
|
|
33145
33164
|
organizationId = _ref.organizationId;
|
|
33146
33165
|
var _useTranslation = useTranslation(),
|
|
33147
33166
|
t = _useTranslation.t;
|
|
33167
|
+
var root = useStore();
|
|
33148
33168
|
var _React$useState = React.useState(false),
|
|
33149
33169
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33150
33170
|
loading = _React$useState2[0],
|
|
33151
33171
|
isLoading = _React$useState2[1];
|
|
33172
|
+
var _React$useState3 = React.useState(false),
|
|
33173
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
33174
|
+
organizationModalVisible = _React$useState4[0],
|
|
33175
|
+
setOrganizationModalVisible = _React$useState4[1];
|
|
33176
|
+
var _React$useState5 = React.useState([]),
|
|
33177
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
33178
|
+
availableOrganizations = _React$useState6[0],
|
|
33179
|
+
setAvailableOrganizations = _React$useState6[1];
|
|
33180
|
+
var _React$useState7 = React.useState([]),
|
|
33181
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
33182
|
+
selectedOrganizationIds = _React$useState8[0],
|
|
33183
|
+
setSelectedOrganizationIds = _React$useState8[1];
|
|
33184
|
+
var _React$useState9 = React.useState(false),
|
|
33185
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
33186
|
+
loadingOrganizations = _React$useState10[0],
|
|
33187
|
+
setLoadingOrganizations = _React$useState10[1];
|
|
33152
33188
|
var publishedData = (_data$published = data.published) === null || _data$published === void 0 ? void 0 : _data$published[organizationId];
|
|
33153
33189
|
var isPublishing = (publishedData === null || publishedData === void 0 ? void 0 : publishedData.publishing) || loading;
|
|
33154
33190
|
var isPublished = publishedData && !isPublishing;
|
|
@@ -33157,130 +33193,347 @@ function PublishCustomCell (_ref) {
|
|
|
33157
33193
|
}));
|
|
33158
33194
|
var unpublishedChanges = hasUnpublishedChanges(publishedData === null || publishedData === void 0 ? void 0 : publishedData.publishDate, data === null || data === void 0 ? void 0 : data.lastUpdatedDate);
|
|
33159
33195
|
var disabled = isPublishing || !(data !== null && data !== void 0 && data.basedCatalogId) && !(data !== null && data !== void 0 && data.basedPackageId) || !(data !== null && data !== void 0 && data.name);
|
|
33160
|
-
var
|
|
33161
|
-
var
|
|
33162
|
-
|
|
33163
|
-
|
|
33164
|
-
|
|
33196
|
+
var fetchOrganizationsWithAutomaticPublishing = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
33197
|
+
var fields, url, response, result, allowedOrgIds, filtered, allOrgIds;
|
|
33198
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
33199
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33200
|
+
case 0:
|
|
33201
|
+
setLoadingOrganizations(true);
|
|
33202
|
+
_context.prev = 1;
|
|
33203
|
+
// Request organizations with automaticPublishing field from their settings
|
|
33204
|
+
fields = encodeURIComponent('{_id,displayName,automaticPublishing}');
|
|
33205
|
+
url = apiConfig.authService + "/organizations/".concat(organizationId, "/related?fields=").concat(fields);
|
|
33206
|
+
_context.next = 6;
|
|
33207
|
+
return fetch(url, {
|
|
33208
|
+
headers: {
|
|
33209
|
+
Authorization: "Bearer ".concat(root.dataStore.jwt),
|
|
33210
|
+
'Content-Type': 'application/json'
|
|
33211
|
+
}
|
|
33212
|
+
});
|
|
33213
|
+
case 6:
|
|
33214
|
+
response = _context.sent;
|
|
33215
|
+
if (response.ok) {
|
|
33216
|
+
_context.next = 9;
|
|
33217
|
+
break;
|
|
33218
|
+
}
|
|
33219
|
+
throw new Error("Failed to fetch organizations: ".concat(response.status));
|
|
33220
|
+
case 9:
|
|
33221
|
+
_context.next = 11;
|
|
33222
|
+
return response.json();
|
|
33223
|
+
case 11:
|
|
33224
|
+
result = _context.sent;
|
|
33225
|
+
// Get allowed organization IDs from the package
|
|
33226
|
+
allowedOrgIds = data.allowedOrganizationIds || []; // Show organizations that are:
|
|
33227
|
+
// 1. In package settings with AutomaticPublishing === true, OR
|
|
33228
|
+
// 2. In allowedOrganizationIds AND have automaticPublishing === true in their own organization settings
|
|
33229
|
+
filtered = (result.data || []).filter(function (org) {
|
|
33230
|
+
var _data$settings;
|
|
33231
|
+
// Check if organization is in package settings with AutomaticPublishing === true
|
|
33232
|
+
var isInPackageSettingsWithAutomaticPublishing = ((_data$settings = data.settings) === null || _data$settings === void 0 || (_data$settings = _data$settings[org._id]) === null || _data$settings === void 0 ? void 0 : _data$settings.automaticPublishing) === true;
|
|
33233
|
+
|
|
33234
|
+
// Check if organization is in allowedOrganizationIds AND has automaticPublishing === true in their own settings
|
|
33235
|
+
var isInAllowedAndHasAutomaticPublishing = allowedOrgIds.includes(org._id) && org.automaticPublishing === true;
|
|
33236
|
+
return isInPackageSettingsWithAutomaticPublishing || isInAllowedAndHasAutomaticPublishing;
|
|
33237
|
+
});
|
|
33238
|
+
setAvailableOrganizations(filtered);
|
|
33239
|
+
// Set all organizations as selected by default
|
|
33240
|
+
allOrgIds = filtered.map(function (org) {
|
|
33241
|
+
return org._id;
|
|
33242
|
+
});
|
|
33243
|
+
setSelectedOrganizationIds(allOrgIds);
|
|
33244
|
+
_context.next = 23;
|
|
33245
|
+
break;
|
|
33246
|
+
case 19:
|
|
33247
|
+
_context.prev = 19;
|
|
33248
|
+
_context.t0 = _context["catch"](1);
|
|
33249
|
+
modalState.showErrorModal("Error fetching organizations: ".concat(_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
|
|
33250
|
+
setAvailableOrganizations([]);
|
|
33251
|
+
case 23:
|
|
33252
|
+
_context.prev = 23;
|
|
33253
|
+
setLoadingOrganizations(false);
|
|
33254
|
+
return _context.finish(23);
|
|
33255
|
+
case 26:
|
|
33256
|
+
case "end":
|
|
33257
|
+
return _context.stop();
|
|
33258
|
+
}
|
|
33259
|
+
}, _callee, null, [[1, 19, 23, 26]]);
|
|
33260
|
+
})), [apiConfig.authService, organizationId, root.dataStore.jwt, modalState]);
|
|
33261
|
+
var performPublish = React.useCallback(/*#__PURE__*/function () {
|
|
33262
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(publish) {
|
|
33263
|
+
var automaticPublishingOrgIds,
|
|
33264
|
+
response,
|
|
33265
|
+
url,
|
|
33266
|
+
_errorText,
|
|
33267
|
+
errorText,
|
|
33268
|
+
_json$error,
|
|
33269
|
+
json,
|
|
33270
|
+
_args2 = arguments;
|
|
33271
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
33272
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
33165
33273
|
case 0:
|
|
33274
|
+
automaticPublishingOrgIds = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : [];
|
|
33166
33275
|
isLoading(true);
|
|
33167
|
-
|
|
33276
|
+
_context2.prev = 2;
|
|
33168
33277
|
if (!publish) {
|
|
33169
|
-
|
|
33278
|
+
_context2.next = 11;
|
|
33170
33279
|
break;
|
|
33171
33280
|
}
|
|
33172
|
-
|
|
33281
|
+
url = apiConfig.enricherService + '/packages/${_id}/publish?organizationId=' + organizationId;
|
|
33282
|
+
if (automaticPublishingOrgIds.length > 0) {
|
|
33283
|
+
url += '&automaticPublishingOrganizationIds=' + automaticPublishingOrgIds.join(',');
|
|
33284
|
+
}
|
|
33285
|
+
_context2.next = 8;
|
|
33173
33286
|
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
|
33174
|
-
update:
|
|
33287
|
+
update: url,
|
|
33175
33288
|
usePut: true
|
|
33176
33289
|
}, undefined, true);
|
|
33177
|
-
case 5:
|
|
33178
|
-
response = _context.sent;
|
|
33179
|
-
_context.next = 11;
|
|
33180
|
-
break;
|
|
33181
33290
|
case 8:
|
|
33182
|
-
|
|
33291
|
+
response = _context2.sent;
|
|
33292
|
+
_context2.next = 14;
|
|
33293
|
+
break;
|
|
33294
|
+
case 11:
|
|
33295
|
+
_context2.next = 13;
|
|
33183
33296
|
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
|
33184
33297
|
update: apiConfig.enricherService + '/packages/${_id}/unpublish?organizationId=' + organizationId,
|
|
33185
33298
|
usePut: true
|
|
33186
33299
|
}, undefined, true);
|
|
33187
|
-
case
|
|
33188
|
-
response =
|
|
33189
|
-
case
|
|
33300
|
+
case 13:
|
|
33301
|
+
response = _context2.sent;
|
|
33302
|
+
case 14:
|
|
33190
33303
|
if (!(response.status == 202)) {
|
|
33191
|
-
|
|
33304
|
+
_context2.next = 18;
|
|
33192
33305
|
break;
|
|
33193
33306
|
}
|
|
33194
33307
|
modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
|
|
33195
|
-
|
|
33308
|
+
_context2.next = 35;
|
|
33196
33309
|
break;
|
|
33197
|
-
case
|
|
33310
|
+
case 18:
|
|
33198
33311
|
if (!(response.status == 200)) {
|
|
33199
|
-
|
|
33312
|
+
_context2.next = 22;
|
|
33200
33313
|
break;
|
|
33201
33314
|
}
|
|
33202
33315
|
modalState.closeModal();
|
|
33203
|
-
|
|
33316
|
+
_context2.next = 35;
|
|
33204
33317
|
break;
|
|
33205
|
-
case 19:
|
|
33206
|
-
_context.prev = 19;
|
|
33207
|
-
_context.next = 22;
|
|
33208
|
-
return response.json();
|
|
33209
33318
|
case 22:
|
|
33210
|
-
|
|
33319
|
+
_context2.prev = 22;
|
|
33320
|
+
_context2.next = 25;
|
|
33321
|
+
return response.json();
|
|
33322
|
+
case 25:
|
|
33323
|
+
json = _context2.sent;
|
|
33211
33324
|
errorText = (_json$error = json.error) !== null && _json$error !== void 0 ? _json$error : json.Error;
|
|
33212
|
-
|
|
33325
|
+
_context2.next = 34;
|
|
33213
33326
|
break;
|
|
33214
|
-
case
|
|
33215
|
-
|
|
33216
|
-
|
|
33217
|
-
|
|
33327
|
+
case 29:
|
|
33328
|
+
_context2.prev = 29;
|
|
33329
|
+
_context2.t0 = _context2["catch"](22);
|
|
33330
|
+
_context2.next = 33;
|
|
33218
33331
|
return response.text();
|
|
33219
|
-
case
|
|
33220
|
-
errorText =
|
|
33221
|
-
case
|
|
33332
|
+
case 33:
|
|
33333
|
+
errorText = _context2.sent;
|
|
33334
|
+
case 34:
|
|
33222
33335
|
throw new Error((_errorText = errorText) !== null && _errorText !== void 0 ? _errorText : "Server error (".concat(response.status, ")"));
|
|
33223
|
-
case
|
|
33336
|
+
case 35:
|
|
33224
33337
|
context === null || context === void 0 || context.reset({
|
|
33225
33338
|
context: context,
|
|
33226
33339
|
api: api
|
|
33227
33340
|
});
|
|
33228
|
-
|
|
33341
|
+
_context2.next = 41;
|
|
33229
33342
|
break;
|
|
33230
|
-
case 35:
|
|
33231
|
-
_context.prev = 35;
|
|
33232
|
-
_context.t1 = _context["catch"](1);
|
|
33233
|
-
modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t1 instanceof Error ? _context.t1.message : String(_context.t1)));
|
|
33234
33343
|
case 38:
|
|
33235
|
-
|
|
33236
|
-
|
|
33237
|
-
|
|
33344
|
+
_context2.prev = 38;
|
|
33345
|
+
_context2.t1 = _context2["catch"](2);
|
|
33346
|
+
modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context2.t1 instanceof Error ? _context2.t1.message : String(_context2.t1)));
|
|
33238
33347
|
case 41:
|
|
33348
|
+
_context2.prev = 41;
|
|
33349
|
+
isLoading(false);
|
|
33350
|
+
return _context2.finish(41);
|
|
33351
|
+
case 44:
|
|
33239
33352
|
case "end":
|
|
33240
|
-
return
|
|
33353
|
+
return _context2.stop();
|
|
33241
33354
|
}
|
|
33242
|
-
},
|
|
33355
|
+
}, _callee2, null, [[2, 38, 41, 44], [22, 29]]);
|
|
33243
33356
|
}));
|
|
33244
|
-
return function
|
|
33245
|
-
return
|
|
33357
|
+
return function (_x) {
|
|
33358
|
+
return _ref3.apply(this, arguments);
|
|
33359
|
+
};
|
|
33360
|
+
}(), [data, context, api, apiConfig.enricherService, organizationId, modalState, t]);
|
|
33361
|
+
var handlePublishClick = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
33362
|
+
var hasOrganizationsInSettings, automaticPublishingOrgIdsFromSettings;
|
|
33363
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
33364
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
33365
|
+
case 0:
|
|
33366
|
+
// Check if package has any organizations in settings
|
|
33367
|
+
hasOrganizationsInSettings = data.settings && Object.keys(data.settings).length > 0;
|
|
33368
|
+
if (hasOrganizationsInSettings) {
|
|
33369
|
+
_context3.next = 5;
|
|
33370
|
+
break;
|
|
33371
|
+
}
|
|
33372
|
+
_context3.next = 4;
|
|
33373
|
+
return performPublish(true, []);
|
|
33374
|
+
case 4:
|
|
33375
|
+
return _context3.abrupt("return");
|
|
33376
|
+
case 5:
|
|
33377
|
+
// Reset selected organizations before fetching
|
|
33378
|
+
setSelectedOrganizationIds([]);
|
|
33379
|
+
// Fetch organizations with automaticPublishing enabled
|
|
33380
|
+
_context3.next = 8;
|
|
33381
|
+
return fetchOrganizationsWithAutomaticPublishing();
|
|
33382
|
+
case 8:
|
|
33383
|
+
// After fetching, check if any organizations actually have automatic publishing enabled.
|
|
33384
|
+
// If none are found, avoid showing an empty modal and publish directly instead.
|
|
33385
|
+
automaticPublishingOrgIdsFromSettings = Object.keys(data.settings).filter(function (orgId) {
|
|
33386
|
+
var orgSettings = data.settings[orgId];
|
|
33387
|
+
return orgSettings && orgSettings.automaticPublishing === true;
|
|
33388
|
+
});
|
|
33389
|
+
if (!(automaticPublishingOrgIdsFromSettings.length === 0)) {
|
|
33390
|
+
_context3.next = 13;
|
|
33391
|
+
break;
|
|
33392
|
+
}
|
|
33393
|
+
_context3.next = 12;
|
|
33394
|
+
return performPublish(true, []);
|
|
33395
|
+
case 12:
|
|
33396
|
+
return _context3.abrupt("return");
|
|
33397
|
+
case 13:
|
|
33398
|
+
setOrganizationModalVisible(true);
|
|
33399
|
+
case 14:
|
|
33400
|
+
case "end":
|
|
33401
|
+
return _context3.stop();
|
|
33402
|
+
}
|
|
33403
|
+
}, _callee3);
|
|
33404
|
+
})), [fetchOrganizationsWithAutomaticPublishing, data.settings, performPublish]);
|
|
33405
|
+
var handleConfirmPublish = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
33406
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
33407
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
33408
|
+
case 0:
|
|
33409
|
+
setOrganizationModalVisible(false);
|
|
33410
|
+
_context4.next = 3;
|
|
33411
|
+
return performPublish(true, selectedOrganizationIds);
|
|
33412
|
+
case 3:
|
|
33413
|
+
case "end":
|
|
33414
|
+
return _context4.stop();
|
|
33415
|
+
}
|
|
33416
|
+
}, _callee4);
|
|
33417
|
+
})), [selectedOrganizationIds, performPublish]);
|
|
33418
|
+
var _onChange = /*#__PURE__*/function () {
|
|
33419
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(publish) {
|
|
33420
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
33421
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
33422
|
+
case 0:
|
|
33423
|
+
if (!publish) {
|
|
33424
|
+
_context5.next = 5;
|
|
33425
|
+
break;
|
|
33426
|
+
}
|
|
33427
|
+
_context5.next = 3;
|
|
33428
|
+
return handlePublishClick();
|
|
33429
|
+
case 3:
|
|
33430
|
+
_context5.next = 7;
|
|
33431
|
+
break;
|
|
33432
|
+
case 5:
|
|
33433
|
+
_context5.next = 7;
|
|
33434
|
+
return performPublish(false);
|
|
33435
|
+
case 7:
|
|
33436
|
+
case "end":
|
|
33437
|
+
return _context5.stop();
|
|
33438
|
+
}
|
|
33439
|
+
}, _callee5);
|
|
33440
|
+
}));
|
|
33441
|
+
return function onChange(_x2) {
|
|
33442
|
+
return _ref6.apply(this, arguments);
|
|
33246
33443
|
};
|
|
33247
33444
|
}();
|
|
33248
33445
|
if (data.__isEmpty) return '';
|
|
33249
|
-
return /*#__PURE__*/jsxs(
|
|
33250
|
-
|
|
33251
|
-
|
|
33252
|
-
|
|
33253
|
-
|
|
33254
|
-
|
|
33255
|
-
|
|
33256
|
-
|
|
33257
|
-
|
|
33258
|
-
|
|
33259
|
-
|
|
33260
|
-
|
|
33261
|
-
}), isPublishing && /*#__PURE__*/jsx(Tooltip, {
|
|
33262
|
-
title: t('backoffice.idmEnricher.packages.label.currentlyPublishing'),
|
|
33263
|
-
children: /*#__PURE__*/jsx(Button$1, {
|
|
33264
|
-
shape: "circle",
|
|
33265
|
-
icon: /*#__PURE__*/jsx(SyncOutlined, {
|
|
33266
|
-
spin: true
|
|
33446
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33447
|
+
children: [/*#__PURE__*/jsxs(Space$1, {
|
|
33448
|
+
size: "middle",
|
|
33449
|
+
children: [/*#__PURE__*/jsx(Tooltip, {
|
|
33450
|
+
title: disabled ? '' : !!isPublished ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
|
|
33451
|
+
children: /*#__PURE__*/jsx(Checkbox$2, {
|
|
33452
|
+
checked: !!isPublished,
|
|
33453
|
+
disabled: disabled,
|
|
33454
|
+
indeterminate: unpublishedChanges,
|
|
33455
|
+
onChange: function onChange(e) {
|
|
33456
|
+
return _onChange(e.target.checked);
|
|
33457
|
+
}
|
|
33267
33458
|
})
|
|
33268
|
-
})
|
|
33269
|
-
|
|
33270
|
-
|
|
33271
|
-
|
|
33272
|
-
|
|
33273
|
-
|
|
33274
|
-
|
|
33275
|
-
|
|
33276
|
-
|
|
33277
|
-
|
|
33278
|
-
|
|
33279
|
-
|
|
33280
|
-
|
|
33281
|
-
|
|
33282
|
-
|
|
33283
|
-
|
|
33459
|
+
}), isPublishing && /*#__PURE__*/jsx(Tooltip, {
|
|
33460
|
+
title: t('backoffice.idmEnricher.packages.label.currentlyPublishing'),
|
|
33461
|
+
children: /*#__PURE__*/jsx(Button$1, {
|
|
33462
|
+
shape: "circle",
|
|
33463
|
+
icon: /*#__PURE__*/jsx(SyncOutlined, {
|
|
33464
|
+
spin: true
|
|
33465
|
+
})
|
|
33466
|
+
})
|
|
33467
|
+
}), unpublishedChanges && !isPublishing && /*#__PURE__*/jsx(Tooltip, {
|
|
33468
|
+
title: t('backoffice.idmEnricher.packages.label.unpublishedChanges'),
|
|
33469
|
+
children: /*#__PURE__*/jsx(Button$1, {
|
|
33470
|
+
shape: "circle",
|
|
33471
|
+
icon: /*#__PURE__*/jsx(ReloadOutlined, {}),
|
|
33472
|
+
onClick: function onClick() {
|
|
33473
|
+
return _onChange(true);
|
|
33474
|
+
}
|
|
33475
|
+
})
|
|
33476
|
+
}), isReleaseWithdrawn && !isPublishing && /*#__PURE__*/jsx(Tooltip, {
|
|
33477
|
+
title: t('backoffice.idmEnricher.packages.label.releaseWithdrawn'),
|
|
33478
|
+
children: /*#__PURE__*/jsx(Button$1, {
|
|
33479
|
+
shape: "circle",
|
|
33480
|
+
icon: /*#__PURE__*/jsx(WarningOutlined, {})
|
|
33481
|
+
})
|
|
33482
|
+
})]
|
|
33483
|
+
}), /*#__PURE__*/jsxs(Modal$3, {
|
|
33484
|
+
title: t('backoffice.idmEnricher.packages.label.selectAutomaticPublishingOrganizations'),
|
|
33485
|
+
open: organizationModalVisible,
|
|
33486
|
+
onOk: handleConfirmPublish,
|
|
33487
|
+
onCancel: function onCancel() {
|
|
33488
|
+
return setOrganizationModalVisible(false);
|
|
33489
|
+
},
|
|
33490
|
+
okText: t('backoffice.idmEnricher.packages.label.publish'),
|
|
33491
|
+
cancelText: t('backoffice.idmEnricher.packages.label.cancel'),
|
|
33492
|
+
confirmLoading: loading,
|
|
33493
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
33494
|
+
style: {
|
|
33495
|
+
marginBottom: 16
|
|
33496
|
+
},
|
|
33497
|
+
children: t('backoffice.idmEnricher.packages.label.selectAutomaticPublishingOrganizationsDescription')
|
|
33498
|
+
}), loadingOrganizations ? /*#__PURE__*/jsx("div", {
|
|
33499
|
+
style: {
|
|
33500
|
+
textAlign: 'center',
|
|
33501
|
+
padding: '20px'
|
|
33502
|
+
},
|
|
33503
|
+
children: t('backoffice.idmEnricher.packages.label.loading')
|
|
33504
|
+
}) : availableOrganizations.length === 0 ? /*#__PURE__*/jsx("div", {
|
|
33505
|
+
style: {
|
|
33506
|
+
textAlign: 'center',
|
|
33507
|
+
padding: '20px'
|
|
33508
|
+
},
|
|
33509
|
+
children: t('backoffice.idmEnricher.packages.label.noOrganizationsFound')
|
|
33510
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
33511
|
+
style: {
|
|
33512
|
+
maxHeight: '400px',
|
|
33513
|
+
overflowY: 'auto'
|
|
33514
|
+
},
|
|
33515
|
+
children: /*#__PURE__*/jsx(Space$1, {
|
|
33516
|
+
direction: "vertical",
|
|
33517
|
+
style: {
|
|
33518
|
+
width: '100%'
|
|
33519
|
+
},
|
|
33520
|
+
children: availableOrganizations.map(function (org) {
|
|
33521
|
+
return /*#__PURE__*/jsx(Checkbox$2, {
|
|
33522
|
+
checked: selectedOrganizationIds.includes(org._id),
|
|
33523
|
+
onChange: function onChange(e) {
|
|
33524
|
+
if (e.target.checked) {
|
|
33525
|
+
setSelectedOrganizationIds([].concat(_toConsumableArray(selectedOrganizationIds), [org._id]));
|
|
33526
|
+
} else {
|
|
33527
|
+
setSelectedOrganizationIds(selectedOrganizationIds.filter(function (id) {
|
|
33528
|
+
return id !== org._id;
|
|
33529
|
+
}));
|
|
33530
|
+
}
|
|
33531
|
+
},
|
|
33532
|
+
children: org.displayName
|
|
33533
|
+
}, org._id);
|
|
33534
|
+
})
|
|
33535
|
+
})
|
|
33536
|
+
})]
|
|
33284
33537
|
})]
|
|
33285
33538
|
});
|
|
33286
33539
|
}
|
|
@@ -33935,6 +34188,12 @@ var TablePackages = observer(function () {
|
|
|
33935
34188
|
multiple: true
|
|
33936
34189
|
},
|
|
33937
34190
|
additionalFields: ['allowedOrganizationsDisplayTexts']
|
|
34191
|
+
}, {
|
|
34192
|
+
headerName: 'backoffice.idmEnricher.packages.label.automaticPublishing',
|
|
34193
|
+
field: "settings.".concat(organizationId, ".automaticPublishing"),
|
|
34194
|
+
cellDataType: 'boolean',
|
|
34195
|
+
editable: true,
|
|
34196
|
+
isDictionary: true
|
|
33938
34197
|
}, {
|
|
33939
34198
|
headerName: 'backoffice.idmEnricher.packages.label.isApi2',
|
|
33940
34199
|
field: 'isApi',
|
|
@@ -40568,7 +40827,6 @@ var TableSeries = observer(function () {
|
|
|
40568
40827
|
var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
40569
40828
|
var organizationId = _ref.organizationId,
|
|
40570
40829
|
selectedCatalog = _ref.selectedCatalog,
|
|
40571
|
-
featureClassId = _ref.featureClassId,
|
|
40572
40830
|
apiConfig = _ref.apiConfig,
|
|
40573
40831
|
hooks = _ref.hooks;
|
|
40574
40832
|
var _useTranslation = useTranslation(),
|
|
@@ -40576,18 +40834,11 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
|
40576
40834
|
var applicationData = useMemo(function () {
|
|
40577
40835
|
return {
|
|
40578
40836
|
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
40579
|
-
organizationId: organizationId
|
|
40580
|
-
featureClassId: featureClassId
|
|
40837
|
+
organizationId: organizationId
|
|
40581
40838
|
};
|
|
40582
|
-
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
40839
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, organizationId]);
|
|
40583
40840
|
var apiInterface = useMemo(function () {
|
|
40584
|
-
return
|
|
40585
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
40586
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
40587
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
40588
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features/${_id}',
|
|
40589
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features/${_id}'
|
|
40590
|
-
} : {
|
|
40841
|
+
return {
|
|
40591
40842
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
40592
40843
|
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
|
|
40593
40844
|
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
@@ -40595,7 +40846,7 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
|
40595
40846
|
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
|
|
40596
40847
|
bulk: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/bulk'
|
|
40597
40848
|
};
|
|
40598
|
-
}, [
|
|
40849
|
+
}, [apiConfig.idmService]);
|
|
40599
40850
|
var configuration = useMemo(function () {
|
|
40600
40851
|
var headerPosVariationType = [{
|
|
40601
40852
|
name: t('backoffice.idmCatalog.features.label.vt.I'),
|
|
@@ -40621,41 +40872,7 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
|
40621
40872
|
type: 'dotnetSSM',
|
|
40622
40873
|
apiInterface: apiInterface,
|
|
40623
40874
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
40624
|
-
colDef: [
|
|
40625
|
-
field: 'invisible',
|
|
40626
|
-
headerName: 'backoffice.idmCatalog.features.label.invisible',
|
|
40627
|
-
cellDataType: 'boolean',
|
|
40628
|
-
required: true,
|
|
40629
|
-
pinned: true,
|
|
40630
|
-
lockPinned: true,
|
|
40631
|
-
defaultValue: false
|
|
40632
|
-
}, {
|
|
40633
|
-
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
40634
|
-
field: 'featureNo',
|
|
40635
|
-
cellDataType: 'lookup',
|
|
40636
|
-
customParams: {
|
|
40637
|
-
nameField: 'featureText',
|
|
40638
|
-
filterCellType: 'number',
|
|
40639
|
-
displayLabelTemplate: '${value}',
|
|
40640
|
-
lookupLabelTemplate: '${name} (${value})',
|
|
40641
|
-
apiInterface: {
|
|
40642
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/allfeatures'
|
|
40643
|
-
},
|
|
40644
|
-
lookupKey: 'featureNo',
|
|
40645
|
-
lookupValue: 'featureText',
|
|
40646
|
-
lookupKeyFilterType: {
|
|
40647
|
-
type: 'equals',
|
|
40648
|
-
filterType: 'number'
|
|
40649
|
-
},
|
|
40650
|
-
multiple: false,
|
|
40651
|
-
translated: true,
|
|
40652
|
-
allowToAdd: true,
|
|
40653
|
-
insertLookup: true
|
|
40654
|
-
},
|
|
40655
|
-
additionalFields: ['featureText'],
|
|
40656
|
-
required: true,
|
|
40657
|
-
unique: true
|
|
40658
|
-
}] : [{
|
|
40875
|
+
colDef: [{
|
|
40659
40876
|
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
40660
40877
|
field: 'featureNo',
|
|
40661
40878
|
cellDataType: 'lookup',
|
|
@@ -40680,11 +40897,12 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
|
40680
40897
|
additionalFields: ['featureText'],
|
|
40681
40898
|
required: true,
|
|
40682
40899
|
unique: true
|
|
40683
|
-
}
|
|
40900
|
+
}, createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true, undefined, undefined, undefined, true), {
|
|
40684
40901
|
field: 'sequenceNo',
|
|
40685
40902
|
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
40686
40903
|
required: true,
|
|
40687
|
-
cellDataType: 'number'
|
|
40904
|
+
cellDataType: 'number',
|
|
40905
|
+
editable: true
|
|
40688
40906
|
}, {
|
|
40689
40907
|
field: 'headerPosVariationType',
|
|
40690
40908
|
headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
|
|
@@ -40693,7 +40911,8 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
|
40693
40911
|
customParams: {
|
|
40694
40912
|
enumData: headerPosVariationType,
|
|
40695
40913
|
displayLabelTemplate: '${name} (${value})'
|
|
40696
|
-
}
|
|
40914
|
+
},
|
|
40915
|
+
editable: true
|
|
40697
40916
|
}, {
|
|
40698
40917
|
field: 'featureT',
|
|
40699
40918
|
headerName: 'backoffice.idmCatalog.features.label.featureT',
|
|
@@ -40701,13 +40920,16 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
|
40701
40920
|
customParams: {
|
|
40702
40921
|
enumData: featureT,
|
|
40703
40922
|
displayLabelTemplate: '${name} (${value})'
|
|
40704
|
-
}
|
|
40923
|
+
},
|
|
40924
|
+
editable: true
|
|
40705
40925
|
}, {
|
|
40706
40926
|
field: 'measureUnit',
|
|
40707
|
-
headerName: 'backoffice.idmCatalog.features.label.measureUnit'
|
|
40927
|
+
headerName: 'backoffice.idmCatalog.features.label.measureUnit',
|
|
40928
|
+
editable: true
|
|
40708
40929
|
}, {
|
|
40709
40930
|
field: 'measureParameter',
|
|
40710
|
-
headerName: 'backoffice.idmCatalog.features.label.measureParameter'
|
|
40931
|
+
headerName: 'backoffice.idmCatalog.features.label.measureParameter',
|
|
40932
|
+
editable: true
|
|
40711
40933
|
}, {
|
|
40712
40934
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
40713
40935
|
field: 'lastUpdatedDate',
|
|
@@ -40745,16 +40967,16 @@ var Features$2 = /*#__PURE__*/forwardRef(function Features(_ref, ref) {
|
|
|
40745
40967
|
lockVisible: true,
|
|
40746
40968
|
suppressColumnsToolPanel: true,
|
|
40747
40969
|
defaultValue: '${catalogId}'
|
|
40748
|
-
}]
|
|
40970
|
+
}]
|
|
40749
40971
|
};
|
|
40750
|
-
}, [
|
|
40972
|
+
}, [apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, apiConfig.idmService, t]);
|
|
40751
40973
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
40752
40974
|
ref: ref,
|
|
40753
|
-
gridId: 'crud-grid_features'
|
|
40975
|
+
gridId: 'crud-grid_features',
|
|
40754
40976
|
applicationData: applicationData,
|
|
40755
40977
|
hooks: hooks,
|
|
40756
40978
|
configuration: configuration
|
|
40757
|
-
},
|
|
40979
|
+
}, "features");
|
|
40758
40980
|
});
|
|
40759
40981
|
|
|
40760
40982
|
function Features$1(_ref) {
|
|
@@ -41154,6 +41376,163 @@ var TableOptions$1 = observer(function () {
|
|
|
41154
41376
|
});
|
|
41155
41377
|
});
|
|
41156
41378
|
|
|
41379
|
+
var FeaturesWithFeatureClass = /*#__PURE__*/forwardRef(function FeaturesWithFeatureClass(_ref, ref) {
|
|
41380
|
+
var organizationId = _ref.organizationId,
|
|
41381
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
41382
|
+
featureClassId = _ref.featureClassId,
|
|
41383
|
+
apiConfig = _ref.apiConfig,
|
|
41384
|
+
hooks = _ref.hooks;
|
|
41385
|
+
var _useTranslation = useTranslation(),
|
|
41386
|
+
t = _useTranslation.t;
|
|
41387
|
+
var applicationData = useMemo(function () {
|
|
41388
|
+
return {
|
|
41389
|
+
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
41390
|
+
organizationId: organizationId,
|
|
41391
|
+
featureClassId: featureClassId
|
|
41392
|
+
};
|
|
41393
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId]);
|
|
41394
|
+
var apiInterface = useMemo(function () {
|
|
41395
|
+
return {
|
|
41396
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
41397
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
41398
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
41399
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features/${_id}',
|
|
41400
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features/${_id}'
|
|
41401
|
+
};
|
|
41402
|
+
}, [apiConfig.idmService, featureClassId]);
|
|
41403
|
+
var configuration = useMemo(function () {
|
|
41404
|
+
var headerPosVariationType = [{
|
|
41405
|
+
name: t('backoffice.idmCatalog.features.label.vt.I'),
|
|
41406
|
+
value: 'I'
|
|
41407
|
+
}, {
|
|
41408
|
+
name: t('backoffice.idmCatalog.features.label.vt.K'),
|
|
41409
|
+
value: 'K'
|
|
41410
|
+
}, {
|
|
41411
|
+
name: t('backoffice.idmCatalog.features.label.vt.P'),
|
|
41412
|
+
value: 'P'
|
|
41413
|
+
}];
|
|
41414
|
+
var featureT = [{
|
|
41415
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.M'),
|
|
41416
|
+
value: 'M'
|
|
41417
|
+
}, {
|
|
41418
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.C'),
|
|
41419
|
+
value: 'C'
|
|
41420
|
+
}, {
|
|
41421
|
+
name: t('backoffice.idmCatalog.features.label.featureTDic.O'),
|
|
41422
|
+
value: 'O'
|
|
41423
|
+
}];
|
|
41424
|
+
return {
|
|
41425
|
+
type: 'dotnetSSM',
|
|
41426
|
+
apiInterface: apiInterface,
|
|
41427
|
+
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
41428
|
+
colDef: [{
|
|
41429
|
+
field: 'invisible',
|
|
41430
|
+
headerName: 'backoffice.idmCatalog.features.label.invisible',
|
|
41431
|
+
cellDataType: 'boolean',
|
|
41432
|
+
required: true,
|
|
41433
|
+
pinned: true,
|
|
41434
|
+
lockPinned: true,
|
|
41435
|
+
defaultValue: false
|
|
41436
|
+
}, {
|
|
41437
|
+
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
41438
|
+
field: 'featureNo',
|
|
41439
|
+
cellDataType: 'lookup',
|
|
41440
|
+
customParams: {
|
|
41441
|
+
nameField: 'featureText',
|
|
41442
|
+
filterCellType: 'number',
|
|
41443
|
+
displayLabelTemplate: '${value}',
|
|
41444
|
+
lookupLabelTemplate: '${name} (${value})',
|
|
41445
|
+
apiInterface: {
|
|
41446
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/allfeatures'
|
|
41447
|
+
},
|
|
41448
|
+
lookupKey: 'featureNo',
|
|
41449
|
+
lookupValue: 'featureText',
|
|
41450
|
+
lookupKeyFilterType: {
|
|
41451
|
+
type: 'equals',
|
|
41452
|
+
filterType: 'number'
|
|
41453
|
+
},
|
|
41454
|
+
multiple: false,
|
|
41455
|
+
translated: true,
|
|
41456
|
+
additionalMappings: [{
|
|
41457
|
+
lookupField: 'featureText',
|
|
41458
|
+
targetField: 'featureText'
|
|
41459
|
+
}, {
|
|
41460
|
+
lookupField: 'sequenceNo',
|
|
41461
|
+
targetField: 'sequenceNo'
|
|
41462
|
+
}, {
|
|
41463
|
+
lookupField: 'headerPosVariationType',
|
|
41464
|
+
targetField: 'headerPosVariationType'
|
|
41465
|
+
}, {
|
|
41466
|
+
lookupField: 'featureT',
|
|
41467
|
+
targetField: 'featureT'
|
|
41468
|
+
}, {
|
|
41469
|
+
lookupField: '_id',
|
|
41470
|
+
targetField: '_id'
|
|
41471
|
+
}]
|
|
41472
|
+
},
|
|
41473
|
+
additionalFields: ['featureText', 'sequenceNo', 'headerPosVariationType', 'featureT', '_id'],
|
|
41474
|
+
required: true,
|
|
41475
|
+
unique: true
|
|
41476
|
+
}, createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false, undefined, undefined, undefined, false), {
|
|
41477
|
+
field: 'sequenceNo',
|
|
41478
|
+
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
41479
|
+
required: false,
|
|
41480
|
+
cellDataType: 'number',
|
|
41481
|
+
editable: false,
|
|
41482
|
+
hide: true
|
|
41483
|
+
}, {
|
|
41484
|
+
field: 'headerPosVariationType',
|
|
41485
|
+
headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
|
|
41486
|
+
required: false,
|
|
41487
|
+
cellDataType: 'enum',
|
|
41488
|
+
customParams: {
|
|
41489
|
+
enumData: headerPosVariationType,
|
|
41490
|
+
displayLabelTemplate: '${name} (${value})'
|
|
41491
|
+
},
|
|
41492
|
+
editable: false,
|
|
41493
|
+
hide: true
|
|
41494
|
+
}, {
|
|
41495
|
+
field: 'featureT',
|
|
41496
|
+
headerName: 'backoffice.idmCatalog.features.label.featureT',
|
|
41497
|
+
cellDataType: 'enum',
|
|
41498
|
+
customParams: {
|
|
41499
|
+
enumData: featureT,
|
|
41500
|
+
displayLabelTemplate: '${name} (${value})'
|
|
41501
|
+
},
|
|
41502
|
+
editable: false,
|
|
41503
|
+
hide: true
|
|
41504
|
+
}, {
|
|
41505
|
+
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
41506
|
+
field: '_id',
|
|
41507
|
+
editable: false,
|
|
41508
|
+
cellDataType: 'objectId',
|
|
41509
|
+
hide: true
|
|
41510
|
+
}, {
|
|
41511
|
+
field: 'organizationId',
|
|
41512
|
+
editable: false,
|
|
41513
|
+
hide: true,
|
|
41514
|
+
lockVisible: true,
|
|
41515
|
+
suppressColumnsToolPanel: true,
|
|
41516
|
+
defaultValue: '${organizationId}'
|
|
41517
|
+
}, {
|
|
41518
|
+
field: 'catalogId',
|
|
41519
|
+
editable: false,
|
|
41520
|
+
hide: true,
|
|
41521
|
+
lockVisible: true,
|
|
41522
|
+
suppressColumnsToolPanel: true,
|
|
41523
|
+
defaultValue: '${catalogId}'
|
|
41524
|
+
}]
|
|
41525
|
+
};
|
|
41526
|
+
}, [featureClassId, apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, apiConfig.idmService, t]);
|
|
41527
|
+
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
41528
|
+
ref: ref,
|
|
41529
|
+
gridId: 'crud-grid_features_featureClass',
|
|
41530
|
+
applicationData: applicationData,
|
|
41531
|
+
hooks: hooks,
|
|
41532
|
+
configuration: configuration
|
|
41533
|
+
}, featureClassId);
|
|
41534
|
+
});
|
|
41535
|
+
|
|
41157
41536
|
var TableFeatureClasses = observer(function () {
|
|
41158
41537
|
var _useTranslation = useTranslation(),
|
|
41159
41538
|
t = _useTranslation.t;
|
|
@@ -41179,7 +41558,7 @@ var TableFeatureClasses = observer(function () {
|
|
|
41179
41558
|
conditionalTools: [{
|
|
41180
41559
|
id: 'features',
|
|
41181
41560
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
|
41182
|
-
elementComponent:
|
|
41561
|
+
elementComponent: FeaturesWithFeatureClass,
|
|
41183
41562
|
elementProps: {
|
|
41184
41563
|
organizationId: organizationId,
|
|
41185
41564
|
selectedCatalog: selectedCatalog,
|
|
@@ -5,7 +5,6 @@ import { CatalogData } from '../types';
|
|
|
5
5
|
declare const Features: React.ForwardRefExoticComponent<{
|
|
6
6
|
organizationId: string;
|
|
7
7
|
selectedCatalog: CatalogData;
|
|
8
|
-
featureClassId?: string;
|
|
9
8
|
apiConfig: ApiConfig;
|
|
10
9
|
hooks?: DivaSpreadsheetHooks<any>;
|
|
11
10
|
} & React.RefAttributes<SpreadsheetRefProps>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;
|
|
1
|
+
{"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA4KnC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ApiConfig } from '@crystaldesign/diva-core';
|
|
3
|
+
import { DivaSpreadsheetHooks, SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
|
|
4
|
+
import { CatalogData } from '../types';
|
|
5
|
+
declare const FeaturesWithFeatureClass: React.ForwardRefExoticComponent<{
|
|
6
|
+
organizationId: string;
|
|
7
|
+
selectedCatalog: CatalogData;
|
|
8
|
+
featureClassId: string;
|
|
9
|
+
apiConfig: ApiConfig;
|
|
10
|
+
hooks?: DivaSpreadsheetHooks<any>;
|
|
11
|
+
} & React.RefAttributes<SpreadsheetRefProps>>;
|
|
12
|
+
export default FeaturesWithFeatureClass;
|
|
13
|
+
//# sourceMappingURL=FeaturesWithFeatureClass.d.ts.map
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeaturesWithFeatureClass.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA+JnC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAOzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAOzE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAK9E,MAAM,CAAC,OAAO,WAAW,EACvB,IAAI,EACJ,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,EACV,cAAc,GACf,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,0BAkOxH"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA4BpD,eAAO,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA4BpD,eAAO,MAAM,aAAa;;CA0WxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "25.16.0-beta.
|
|
3
|
+
"version": "25.16.0-beta.26",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "5.4.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "25.16.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "25.16.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "25.16.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "25.16.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "25.16.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.16.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.16.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "25.16.0-beta.26",
|
|
19
|
+
"@crystaldesign/content-item": "25.16.0-beta.26",
|
|
20
|
+
"@crystaldesign/diva-core": "25.16.0-beta.26",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.16.0-beta.26",
|
|
22
|
+
"@crystaldesign/media-upload": "25.16.0-beta.26",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.16.0-beta.26",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.16.0-beta.26",
|
|
25
25
|
"@google/model-viewer": "3.5.0",
|
|
26
26
|
"ag-charts-community": "^10.1.0",
|
|
27
27
|
"ag-charts-react": "^10.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
},
|
|
52
52
|
"module": "build/esm/index.js",
|
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "28165efd12a3403709935937d21b70e75ae243f7"
|
|
55
55
|
}
|