@crystaldesign/diva-backoffice 26.14.0-beta.15 → 26.14.0-beta.17
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 +168 -67
- package/build/types/backoffice/src/tests/unit/ui/Form/formErrorText.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/Form/formErrorText.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/Form/formErrorText.d.ts +12 -0
- package/build/types/backoffice/src/ui/Form/formErrorText.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/actionsRequired.d.ts +6 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/actionsRequired.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishSwitch.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PackagePublishControls.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.d.ts +2 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts.map +1 -1
- package/package.json +13 -13
package/build/esm/index.js
CHANGED
|
@@ -24991,6 +24991,18 @@ function ItemSelector(_ref) {
|
|
|
24991
24991
|
});
|
|
24992
24992
|
}
|
|
24993
24993
|
|
|
24994
|
+
/**
|
|
24995
|
+
* The text a form configuration names for an error it expects (`onError`, keyed by the error code), or undefined for
|
|
24996
|
+
* any other error.
|
|
24997
|
+
*
|
|
24998
|
+
* @param error - What the save threw
|
|
24999
|
+
* @param onError - The form's texts by error code
|
|
25000
|
+
* @returns The text for the error, if the form names one
|
|
25001
|
+
*/
|
|
25002
|
+
function formErrorText(error, onError) {
|
|
25003
|
+
return error instanceof DivaError ? onError === null || onError === void 0 ? void 0 : onError[error.name] : undefined;
|
|
25004
|
+
}
|
|
25005
|
+
|
|
24994
25006
|
var LOG$o = getLogger('Backoffice', 'Form');
|
|
24995
25007
|
function toNamePath$1(name) {
|
|
24996
25008
|
if (name === undefined || name === '') return [];
|
|
@@ -25117,9 +25129,8 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
|
|
|
25117
25129
|
}();
|
|
25118
25130
|
var onErrorInternal = function onErrorInternal(err, errorText) {
|
|
25119
25131
|
if (err instanceof DivaError && err.name) {
|
|
25120
|
-
var _state$configuration$;
|
|
25121
25132
|
LOG$o.error(err);
|
|
25122
|
-
var errorTranslation = (
|
|
25133
|
+
var errorTranslation = formErrorText(err, state.configuration.onError);
|
|
25123
25134
|
onError === null || onError === void 0 || onError(errorTranslation ? t(errorTranslation, {
|
|
25124
25135
|
defaultValue: errorText
|
|
25125
25136
|
}) : err.message, false);
|
|
@@ -32292,6 +32303,10 @@ function BulkAction(_ref8) {
|
|
|
32292
32303
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
32293
32304
|
showPopover = _useState12[0],
|
|
32294
32305
|
setShowPopover = _useState12[1];
|
|
32306
|
+
var _useState13 = useState(),
|
|
32307
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
32308
|
+
failedEntryId = _useState14[0],
|
|
32309
|
+
setFailedEntryId = _useState14[1];
|
|
32295
32310
|
var allowed = useMemo(function () {
|
|
32296
32311
|
// if isValue is not set check if all fields have the same value, otherwise check if all fields have the given isValue
|
|
32297
32312
|
if (!action.rule) return true;
|
|
@@ -32356,6 +32371,7 @@ function BulkAction(_ref8) {
|
|
|
32356
32371
|
}, [selectedData, action]);
|
|
32357
32372
|
var onClickError = function onClickError() {
|
|
32358
32373
|
if (hasSelected && !allowed) {
|
|
32374
|
+
setFailedEntryId(undefined);
|
|
32359
32375
|
setShowPopover(resolveText(action.errorText));
|
|
32360
32376
|
return false;
|
|
32361
32377
|
}
|
|
@@ -32367,27 +32383,28 @@ function BulkAction(_ref8) {
|
|
|
32367
32383
|
var callback = /*#__PURE__*/function () {
|
|
32368
32384
|
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(updatedData) {
|
|
32369
32385
|
var _action$callback2;
|
|
32370
|
-
var _action$callback, apiInterface, data, i, dataEntry;
|
|
32386
|
+
var _action$callback, apiInterface, data, requestId, i, dataEntry, _resolveText, form;
|
|
32371
32387
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
32372
32388
|
while (1) switch (_context5.prev = _context5.next) {
|
|
32373
32389
|
case 0:
|
|
32390
|
+
setFailedEntryId(undefined);
|
|
32374
32391
|
if (!(action.actionType === 'Callback')) {
|
|
32375
|
-
_context5.next =
|
|
32392
|
+
_context5.next = 4;
|
|
32376
32393
|
break;
|
|
32377
32394
|
}
|
|
32378
32395
|
(_action$callback = action.callback) === null || _action$callback === void 0 || _action$callback.call(action, selectedData);
|
|
32379
32396
|
return _context5.abrupt("return");
|
|
32380
|
-
case
|
|
32397
|
+
case 4:
|
|
32381
32398
|
apiInterface = new _default$c({
|
|
32382
32399
|
apiInterface: action.apiInterface,
|
|
32383
32400
|
type: 'Form'
|
|
32384
32401
|
}, root);
|
|
32385
32402
|
data = [];
|
|
32386
|
-
_context5.prev =
|
|
32403
|
+
_context5.prev = 6;
|
|
32387
32404
|
i = 0;
|
|
32388
|
-
case
|
|
32405
|
+
case 8:
|
|
32389
32406
|
if (!(i < selectedData.length)) {
|
|
32390
|
-
_context5.next =
|
|
32407
|
+
_context5.next = 40;
|
|
32391
32408
|
break;
|
|
32392
32409
|
}
|
|
32393
32410
|
if (progressBar) {
|
|
@@ -32395,59 +32412,65 @@ function BulkAction(_ref8) {
|
|
|
32395
32412
|
}
|
|
32396
32413
|
dataEntry = selectedData[i];
|
|
32397
32414
|
if (!apiInterface.canUpdate) {
|
|
32398
|
-
_context5.next =
|
|
32415
|
+
_context5.next = 20;
|
|
32399
32416
|
break;
|
|
32400
32417
|
}
|
|
32418
|
+
requestId = dataEntry._id;
|
|
32419
|
+
// if form/updatedData only contianed certain fields
|
|
32401
32420
|
_context5.t0 = data;
|
|
32402
|
-
_context5.next =
|
|
32421
|
+
_context5.next = 16;
|
|
32403
32422
|
return apiInterface.update(_objectSpread$26(_objectSpread$26({}, dataEntry), updatedData), dataEntry, action.apiCallbackMapping);
|
|
32404
|
-
case
|
|
32423
|
+
case 16:
|
|
32405
32424
|
_context5.t1 = _context5.sent;
|
|
32406
32425
|
_context5.t0.push.call(_context5.t0, _context5.t1);
|
|
32407
|
-
_context5.next =
|
|
32426
|
+
_context5.next = 36;
|
|
32408
32427
|
break;
|
|
32409
|
-
case
|
|
32428
|
+
case 20:
|
|
32410
32429
|
if (!apiInterface.canCreate) {
|
|
32411
|
-
_context5.next =
|
|
32430
|
+
_context5.next = 29;
|
|
32412
32431
|
break;
|
|
32413
32432
|
}
|
|
32433
|
+
requestId = dataEntry._id;
|
|
32414
32434
|
_context5.t2 = data;
|
|
32415
|
-
_context5.next =
|
|
32435
|
+
_context5.next = 25;
|
|
32416
32436
|
return apiInterface.create(dataEntry, updatedData);
|
|
32417
|
-
case
|
|
32437
|
+
case 25:
|
|
32418
32438
|
_context5.t3 = _context5.sent;
|
|
32419
32439
|
_context5.t2.push.call(_context5.t2, _context5.t3);
|
|
32420
|
-
_context5.next =
|
|
32440
|
+
_context5.next = 36;
|
|
32421
32441
|
break;
|
|
32422
|
-
case
|
|
32442
|
+
case 29:
|
|
32423
32443
|
if (!apiInterface.canDelete) {
|
|
32424
|
-
_context5.next =
|
|
32444
|
+
_context5.next = 36;
|
|
32425
32445
|
break;
|
|
32426
32446
|
}
|
|
32447
|
+
requestId = state.selected[i];
|
|
32427
32448
|
_context5.t4 = data;
|
|
32428
|
-
_context5.next =
|
|
32449
|
+
_context5.next = 34;
|
|
32429
32450
|
return apiInterface["delete"](state.selected[i], updatedData);
|
|
32430
|
-
case
|
|
32451
|
+
case 34:
|
|
32431
32452
|
_context5.t5 = _context5.sent;
|
|
32432
32453
|
_context5.t4.push.call(_context5.t4, _context5.t5);
|
|
32433
|
-
case
|
|
32454
|
+
case 36:
|
|
32434
32455
|
if (progressBar) progressBar.setProgressBarPercentage(Math.floor(i / selectedData.length * 100));
|
|
32435
|
-
case
|
|
32456
|
+
case 37:
|
|
32436
32457
|
i++;
|
|
32437
|
-
_context5.next =
|
|
32458
|
+
_context5.next = 8;
|
|
32438
32459
|
break;
|
|
32439
|
-
case
|
|
32460
|
+
case 40:
|
|
32440
32461
|
state.onUpdate(data);
|
|
32441
32462
|
if (progressBar) {
|
|
32442
32463
|
progressBar.setProgressBarPercentage(100);
|
|
32443
32464
|
progressBar.setProgressBarOpen(false);
|
|
32444
32465
|
progressBar.setProgressBarPercentage(0);
|
|
32445
32466
|
}
|
|
32446
|
-
_context5.next =
|
|
32467
|
+
_context5.next = 52;
|
|
32447
32468
|
break;
|
|
32448
|
-
case
|
|
32449
|
-
_context5.prev =
|
|
32450
|
-
_context5.t6 = _context5["catch"](
|
|
32469
|
+
case 44:
|
|
32470
|
+
_context5.prev = 44;
|
|
32471
|
+
_context5.t6 = _context5["catch"](6);
|
|
32472
|
+
setFailedEntryId(requestId);
|
|
32473
|
+
if (data.length) state.onUpdate(data);
|
|
32451
32474
|
if (progressBar) {
|
|
32452
32475
|
progressBar.setProgressBarOpen(false);
|
|
32453
32476
|
progressBar.setProgressBarPercentage(0);
|
|
@@ -32456,14 +32479,17 @@ function BulkAction(_ref8) {
|
|
|
32456
32479
|
cause: _context5.t6,
|
|
32457
32480
|
code: 'BACKO_0002'
|
|
32458
32481
|
}));
|
|
32459
|
-
|
|
32460
|
-
|
|
32482
|
+
// A form can name the text for an error it expects, e.g. a taken product slot (MEDIA_0011) when render jobs are
|
|
32483
|
+
// finished; any other error is a generic failure.
|
|
32484
|
+
form = action.actionType === 'Modal' && action.type === 'Form' && action.id ? root.configurationStore.getConfiguration(action.id, 'Form') : undefined;
|
|
32485
|
+
setShowPopover((_resolveText = resolveText(formErrorText(_context5.t6, form === null || form === void 0 ? void 0 : form.onError))) !== null && _resolveText !== void 0 ? _resolveText : t('errorcodes._source.labels.error.BACKO_0002'));
|
|
32486
|
+
case 52:
|
|
32461
32487
|
(_action$callback2 = action.callback) === null || _action$callback2 === void 0 || _action$callback2.call(action, updatedData);
|
|
32462
|
-
case
|
|
32488
|
+
case 53:
|
|
32463
32489
|
case "end":
|
|
32464
32490
|
return _context5.stop();
|
|
32465
32491
|
}
|
|
32466
|
-
}, _callee5, null, [[
|
|
32492
|
+
}, _callee5, null, [[6, 44]]);
|
|
32467
32493
|
}));
|
|
32468
32494
|
return function callback(_x2) {
|
|
32469
32495
|
return _ref9.apply(this, arguments);
|
|
@@ -32479,6 +32505,8 @@ function BulkAction(_ref8) {
|
|
|
32479
32505
|
style: {
|
|
32480
32506
|
marginRight: 5
|
|
32481
32507
|
}
|
|
32508
|
+
}), failedEntryId && /*#__PURE__*/jsx("div", {
|
|
32509
|
+
children: failedEntryId
|
|
32482
32510
|
}), showPopover]
|
|
32483
32511
|
}),
|
|
32484
32512
|
open: !!showPopover,
|
|
@@ -69724,6 +69752,17 @@ function ActionsExpandedEditor(_ref) {
|
|
|
69724
69752
|
});
|
|
69725
69753
|
}
|
|
69726
69754
|
|
|
69755
|
+
/** An array cell defaults to [], which the grid's scalar required check treats as filled. */
|
|
69756
|
+
function validateRuleActions(value, t) {
|
|
69757
|
+
if (Array.isArray(value) && value.some(function (action) {
|
|
69758
|
+
return typeof action === 'string' && action.trim().length > 0;
|
|
69759
|
+
})) return undefined;
|
|
69760
|
+
return t('aggrid.validation.required', {
|
|
69761
|
+
defaultValue: 'The {{field}} field is required.',
|
|
69762
|
+
field: t('backoffice.idmCatalog.optionCombinations.label.actions')
|
|
69763
|
+
});
|
|
69764
|
+
}
|
|
69765
|
+
|
|
69727
69766
|
/**
|
|
69728
69767
|
* Shared column bookkeeping for the IDM catalog tables that render one column per referenced
|
|
69729
69768
|
* feature (`OptionCombinations`, `PartlistPos`, `PriceFeatureGroupFinishes`,
|
|
@@ -71004,6 +71043,11 @@ function OptionCombinations(_ref) {
|
|
|
71004
71043
|
headerName: 'backoffice.idmCatalog.optionCombinations.label.actions',
|
|
71005
71044
|
field: 'actions',
|
|
71006
71045
|
cellDataType: 'array',
|
|
71046
|
+
required: true,
|
|
71047
|
+
cellValueValidator: function cellValueValidator(_ref4) {
|
|
71048
|
+
var value = _ref4.value;
|
|
71049
|
+
return validateRuleActions(value, t);
|
|
71050
|
+
},
|
|
71007
71051
|
customParams: {
|
|
71008
71052
|
expandedEditor: ActionsExpandedEditor,
|
|
71009
71053
|
expandedEditorProps: {
|
|
@@ -71021,8 +71065,8 @@ function OptionCombinations(_ref) {
|
|
|
71021
71065
|
useParser: true,
|
|
71022
71066
|
useFormatter: true
|
|
71023
71067
|
},
|
|
71024
|
-
valueFormatter: function valueFormatter(
|
|
71025
|
-
var value =
|
|
71068
|
+
valueFormatter: function valueFormatter(_ref5) {
|
|
71069
|
+
var value = _ref5.value;
|
|
71026
71070
|
if (Array.isArray(value)) {
|
|
71027
71071
|
var _action$split$;
|
|
71028
71072
|
var action = value.find(function (action) {
|
|
@@ -71032,8 +71076,8 @@ function OptionCombinations(_ref) {
|
|
|
71032
71076
|
}
|
|
71033
71077
|
return '';
|
|
71034
71078
|
},
|
|
71035
|
-
valueParser: function valueParser(
|
|
71036
|
-
var newValue =
|
|
71079
|
+
valueParser: function valueParser(_ref6) {
|
|
71080
|
+
var newValue = _ref6.newValue;
|
|
71037
71081
|
if (newValue == '') return undefined;
|
|
71038
71082
|
return ["SET_POS_COUNT_VALUE:".concat(newValue)];
|
|
71039
71083
|
},
|
|
@@ -73975,8 +74019,10 @@ function actionsColumn(ctx, decisions) {
|
|
|
73975
74019
|
// A count is a whole number, as the agent's cell check and the planner demand; 'abc' behind the action would load
|
|
73976
74020
|
// as no count at all.
|
|
73977
74021
|
cellValueValidator: function cellValueValidator(_ref11) {
|
|
74022
|
+
var _decisionOf2;
|
|
73978
74023
|
var value = _ref11.value,
|
|
73979
74024
|
data = _ref11.data;
|
|
74025
|
+
if (((_decisionOf2 = decisionOf(data)) === null || _decisionOf2 === void 0 ? void 0 : _decisionOf2.decisionType) === 2) return validateRuleActions(value, ctx.t);
|
|
73980
74026
|
if (!isCount(data)) return undefined;
|
|
73981
74027
|
var count = posCountOf$1(value);
|
|
73982
74028
|
if (!count) {
|
|
@@ -77587,7 +77633,7 @@ function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t
|
|
|
77587
77633
|
* standalone publish button next to the package selector.
|
|
77588
77634
|
*/
|
|
77589
77635
|
function usePackagePublishing(_ref) {
|
|
77590
|
-
var _data$published, _root$dataStore$curre, _root$dataStore$curre2, _ref2, _inheritedPublishOrga, _basePublishState$org;
|
|
77636
|
+
var _data$published, _publishedData$failed, _root$dataStore$curre, _root$dataStore$curre2, _ref2, _inheritedPublishOrga, _basePublishState$org;
|
|
77591
77637
|
var packageId = _ref.packageId,
|
|
77592
77638
|
data = _ref.data,
|
|
77593
77639
|
organizationId = _ref.organizationId,
|
|
@@ -77629,6 +77675,8 @@ function usePackagePublishing(_ref) {
|
|
|
77629
77675
|
// the shared check, so the publish column also sees a release withdrawn from a parent organization
|
|
77630
77676
|
var releaseWithdrawn = isReleaseWithdrawn(data, organizationId);
|
|
77631
77677
|
var unpublishedChanges = hasUnpublishedChanges(publishedData === null || publishedData === void 0 ? void 0 : publishedData.publishDate, data === null || data === void 0 ? void 0 : data.lastUpdatedDate);
|
|
77678
|
+
//the live catalog could not import some media; publishing again imports them, even without a change of the package
|
|
77679
|
+
var failedMediaCount = !unpublishedChanges ? (_publishedData$failed = publishedData === null || publishedData === void 0 ? void 0 : publishedData.failedMediaCount) !== null && _publishedData$failed !== void 0 ? _publishedData$failed : 0 : 0;
|
|
77632
77680
|
//a parent organization's publication is inherited automatically, so an inherited package must not be published separately
|
|
77633
77681
|
var inheritedPublishOrganization = getInheritedPublishOrganization(data, organizationId, (_root$dataStore$curre = (_root$dataStore$curre2 = root.dataStore.currentOrganization) === null || _root$dataStore$curre2 === void 0 ? void 0 : _root$dataStore$curre2.parentOrganizations) !== null && _root$dataStore$curre !== void 0 ? _root$dataStore$curre : []);
|
|
77634
77682
|
var isInherited = !!inheritedPublishOrganization;
|
|
@@ -77720,6 +77768,9 @@ function usePackagePublishing(_ref) {
|
|
|
77720
77768
|
}
|
|
77721
77769
|
}, _callee, null, [[1, 24, 29, 32], [3, 13]]);
|
|
77722
77770
|
})), [apiConfig.authService, apiConfig.enricherService, packageId, organizationId, root.dataStore.jwt, modalState, data]);
|
|
77771
|
+
|
|
77772
|
+
//loading is set only once the organizations are fetched, so a second click before that would send a second request
|
|
77773
|
+
var publishInFlight = React.useRef(false);
|
|
77723
77774
|
var performPublish = React.useCallback(/*#__PURE__*/function () {
|
|
77724
77775
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(publish) {
|
|
77725
77776
|
var automaticPublishingOrgIds,
|
|
@@ -77734,76 +77785,84 @@ function usePackagePublishing(_ref) {
|
|
|
77734
77785
|
while (1) switch (_context2.prev = _context2.next) {
|
|
77735
77786
|
case 0:
|
|
77736
77787
|
automaticPublishingOrgIds = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : [];
|
|
77788
|
+
if (!publishInFlight.current) {
|
|
77789
|
+
_context2.next = 3;
|
|
77790
|
+
break;
|
|
77791
|
+
}
|
|
77792
|
+
return _context2.abrupt("return");
|
|
77793
|
+
case 3:
|
|
77794
|
+
publishInFlight.current = true;
|
|
77737
77795
|
setLoading(true);
|
|
77738
77796
|
setPendingAction(publish ? 'publish' : 'unpublish');
|
|
77739
77797
|
if (blockUiWhilePublishing) {
|
|
77740
77798
|
modalState.showLoadingModal(t("backoffice.idmEnricher.packages.label.".concat(publish ? 'publishing' : 'unpublishing')));
|
|
77741
77799
|
}
|
|
77742
|
-
_context2.prev =
|
|
77800
|
+
_context2.prev = 7;
|
|
77743
77801
|
url = "".concat(apiConfig.enricherService, "/packages/").concat(packageId, "/").concat(publish ? 'publish' : 'unpublish', "?organizationId=").concat(organizationId);
|
|
77744
77802
|
if (publish && automaticPublishingOrgIds.length > 0) {
|
|
77745
77803
|
url += '&automaticPublishingOrganizationIds=' + automaticPublishingOrgIds.join(',');
|
|
77746
77804
|
}
|
|
77747
|
-
_context2.next =
|
|
77805
|
+
_context2.next = 12;
|
|
77748
77806
|
return fetch(url, {
|
|
77749
77807
|
method: 'PUT',
|
|
77750
77808
|
headers: {
|
|
77751
77809
|
Authorization: "Bearer ".concat(root.dataStore.jwt)
|
|
77752
77810
|
}
|
|
77753
77811
|
});
|
|
77754
|
-
case
|
|
77812
|
+
case 12:
|
|
77755
77813
|
response = _context2.sent;
|
|
77756
77814
|
if (!(response.status == 202)) {
|
|
77757
|
-
_context2.next =
|
|
77815
|
+
_context2.next = 17;
|
|
77758
77816
|
break;
|
|
77759
77817
|
}
|
|
77760
77818
|
modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
|
|
77761
|
-
_context2.next =
|
|
77819
|
+
_context2.next = 34;
|
|
77762
77820
|
break;
|
|
77763
|
-
case
|
|
77821
|
+
case 17:
|
|
77764
77822
|
if (!(response.status == 200)) {
|
|
77765
|
-
_context2.next =
|
|
77823
|
+
_context2.next = 21;
|
|
77766
77824
|
break;
|
|
77767
77825
|
}
|
|
77768
77826
|
modalState.closeModal();
|
|
77769
|
-
_context2.next =
|
|
77827
|
+
_context2.next = 34;
|
|
77770
77828
|
break;
|
|
77771
|
-
case 18:
|
|
77772
|
-
_context2.prev = 18;
|
|
77773
|
-
_context2.next = 21;
|
|
77774
|
-
return response.json();
|
|
77775
77829
|
case 21:
|
|
77830
|
+
_context2.prev = 21;
|
|
77831
|
+
_context2.next = 24;
|
|
77832
|
+
return response.json();
|
|
77833
|
+
case 24:
|
|
77776
77834
|
json = _context2.sent;
|
|
77777
77835
|
errorText = (_json$error = json.error) !== null && _json$error !== void 0 ? _json$error : json.Error;
|
|
77778
|
-
_context2.next =
|
|
77836
|
+
_context2.next = 33;
|
|
77779
77837
|
break;
|
|
77780
|
-
case
|
|
77781
|
-
_context2.prev =
|
|
77782
|
-
_context2.t0 = _context2["catch"](
|
|
77783
|
-
_context2.next =
|
|
77838
|
+
case 28:
|
|
77839
|
+
_context2.prev = 28;
|
|
77840
|
+
_context2.t0 = _context2["catch"](21);
|
|
77841
|
+
_context2.next = 32;
|
|
77784
77842
|
return response.text();
|
|
77785
|
-
case
|
|
77843
|
+
case 32:
|
|
77786
77844
|
errorText = _context2.sent;
|
|
77787
|
-
case
|
|
77845
|
+
case 33:
|
|
77788
77846
|
throw new Error((_errorText = errorText) !== null && _errorText !== void 0 ? _errorText : "Server error (".concat(response.status, ")"));
|
|
77789
|
-
case
|
|
77847
|
+
case 34:
|
|
77790
77848
|
onPublished();
|
|
77791
|
-
_context2.next =
|
|
77849
|
+
_context2.next = 40;
|
|
77792
77850
|
break;
|
|
77793
|
-
case 34:
|
|
77794
|
-
_context2.prev = 34;
|
|
77795
|
-
_context2.t1 = _context2["catch"](4);
|
|
77796
|
-
modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context2.t1 instanceof Error ? _context2.t1.message : String(_context2.t1)));
|
|
77797
77851
|
case 37:
|
|
77798
77852
|
_context2.prev = 37;
|
|
77853
|
+
_context2.t1 = _context2["catch"](7);
|
|
77854
|
+
modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context2.t1 instanceof Error ? _context2.t1.message : String(_context2.t1)));
|
|
77855
|
+
case 40:
|
|
77856
|
+
_context2.prev = 40;
|
|
77857
|
+
publishInFlight.current = false;
|
|
77799
77858
|
setLoading(false);
|
|
77800
77859
|
setPendingAction(null);
|
|
77801
|
-
return _context2.finish(
|
|
77802
|
-
case
|
|
77860
|
+
return _context2.finish(40);
|
|
77861
|
+
case 45:
|
|
77803
77862
|
case "end":
|
|
77804
77863
|
return _context2.stop();
|
|
77805
77864
|
}
|
|
77806
|
-
}, _callee2, null, [[
|
|
77865
|
+
}, _callee2, null, [[7, 37, 40, 45], [21, 28]]);
|
|
77807
77866
|
}));
|
|
77808
77867
|
return function (_x) {
|
|
77809
77868
|
return _ref4.apply(this, arguments);
|
|
@@ -77882,6 +77941,7 @@ function usePackagePublishing(_ref) {
|
|
|
77882
77941
|
isPublished: isPublished,
|
|
77883
77942
|
isReleaseWithdrawn: releaseWithdrawn,
|
|
77884
77943
|
unpublishedChanges: unpublishedChanges,
|
|
77944
|
+
failedMediaCount: failedMediaCount,
|
|
77885
77945
|
isInherited: isInherited,
|
|
77886
77946
|
inheritedTooltip: inheritedTooltip,
|
|
77887
77947
|
servedByBase: servedByBase,
|
|
@@ -77988,6 +78048,7 @@ function PackagePublishSwitch(_ref) {
|
|
|
77988
78048
|
isPublished = publishing.isPublished,
|
|
77989
78049
|
isReleaseWithdrawn = publishing.isReleaseWithdrawn,
|
|
77990
78050
|
unpublishedChanges = publishing.unpublishedChanges,
|
|
78051
|
+
failedMediaCount = publishing.failedMediaCount,
|
|
77991
78052
|
publishDisabled = publishing.disabled,
|
|
77992
78053
|
isInherited = publishing.isInherited,
|
|
77993
78054
|
inheritedTooltip = publishing.inheritedTooltip,
|
|
@@ -78082,11 +78143,33 @@ function PackagePublishSwitch(_ref) {
|
|
|
78082
78143
|
defaultValue: 'Erneut publizieren'
|
|
78083
78144
|
})
|
|
78084
78145
|
})]
|
|
78146
|
+
}), failedMediaCount > 0 && isPublished && /*#__PURE__*/jsxs(Fragment, {
|
|
78147
|
+
children: [/*#__PURE__*/jsx(Tag$1, {
|
|
78148
|
+
icon: /*#__PURE__*/jsx(WarningOutlined, {}),
|
|
78149
|
+
color: "warning",
|
|
78150
|
+
children: t('backoffice.idmEnricher.packages.label.failedMedia', {
|
|
78151
|
+
defaultValue: '{{count}} Medien fehlen',
|
|
78152
|
+
count: failedMediaCount
|
|
78153
|
+
})
|
|
78154
|
+
}), /*#__PURE__*/jsx(Button$1, {
|
|
78155
|
+
size: "small",
|
|
78156
|
+
style: {
|
|
78157
|
+
fontSize: token.fontSizeSM
|
|
78158
|
+
},
|
|
78159
|
+
icon: /*#__PURE__*/jsx(ReloadOutlined, {}),
|
|
78160
|
+
disabled: disabled,
|
|
78161
|
+
onClick: function onClick() {
|
|
78162
|
+
return _onChange(true);
|
|
78163
|
+
},
|
|
78164
|
+
children: t('backoffice.idmEnricher.packages.label.republish', {
|
|
78165
|
+
defaultValue: 'Erneut publizieren'
|
|
78166
|
+
})
|
|
78167
|
+
})]
|
|
78085
78168
|
}), !unpublishedChanges && isReleaseWithdrawn && /*#__PURE__*/jsx(Tag$1, {
|
|
78086
78169
|
icon: /*#__PURE__*/jsx(WarningOutlined, {}),
|
|
78087
78170
|
color: "error",
|
|
78088
78171
|
children: t('backoffice.idmEnricher.packages.label.releaseWithdrawn')
|
|
78089
|
-
}), !unpublishedChanges && !isReleaseWithdrawn && isPublished && /*#__PURE__*/jsx(Tag$1, {
|
|
78172
|
+
}), !unpublishedChanges && !failedMediaCount && !isReleaseWithdrawn && isPublished && /*#__PURE__*/jsx(Tag$1, {
|
|
78090
78173
|
icon: /*#__PURE__*/jsx(CheckCircleOutlined$1, {}),
|
|
78091
78174
|
color: "success",
|
|
78092
78175
|
children: t('backoffice.idmEnricher.packages.label.current', {
|
|
@@ -95195,6 +95278,7 @@ function PackagePublishControls(_ref) {
|
|
|
95195
95278
|
isPublished = publishing.isPublished,
|
|
95196
95279
|
isReleaseWithdrawn = publishing.isReleaseWithdrawn,
|
|
95197
95280
|
unpublishedChanges = publishing.unpublishedChanges,
|
|
95281
|
+
failedMediaCount = publishing.failedMediaCount,
|
|
95198
95282
|
disabled = publishing.disabled,
|
|
95199
95283
|
isInherited = publishing.isInherited,
|
|
95200
95284
|
inheritedTooltip = publishing.inheritedTooltip,
|
|
@@ -95247,6 +95331,23 @@ function PackagePublishControls(_ref) {
|
|
|
95247
95331
|
return _onChange(true);
|
|
95248
95332
|
}
|
|
95249
95333
|
})
|
|
95334
|
+
}), failedMediaCount > 0 && isPublished && /*#__PURE__*/jsx(Tooltip, {
|
|
95335
|
+
title: t('backoffice.idmEnricher.packages.label.failedMedia', {
|
|
95336
|
+
defaultValue: '{{count}} Medien fehlen',
|
|
95337
|
+
count: failedMediaCount
|
|
95338
|
+
}),
|
|
95339
|
+
trigger: ['hover', 'focus'],
|
|
95340
|
+
children: /*#__PURE__*/jsx(Button$1, {
|
|
95341
|
+
size: buttonSize,
|
|
95342
|
+
shape: "circle",
|
|
95343
|
+
icon: /*#__PURE__*/jsx(ReloadOutlined, {}),
|
|
95344
|
+
"aria-label": t('backoffice.idmEnricher.packages.label.republish', {
|
|
95345
|
+
defaultValue: 'Erneut publizieren'
|
|
95346
|
+
}),
|
|
95347
|
+
onClick: function onClick() {
|
|
95348
|
+
return _onChange(true);
|
|
95349
|
+
}
|
|
95350
|
+
})
|
|
95250
95351
|
}), isReleaseWithdrawn && !isPublishing && /*#__PURE__*/jsx(Tooltip, {
|
|
95251
95352
|
title: t('backoffice.idmEnricher.packages.label.releaseWithdrawn'),
|
|
95252
95353
|
children: /*#__PURE__*/jsx(Button$1, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formErrorText.test.d.ts","sourceRoot":"","sources":["../../../../../../../../src/tests/unit/ui/Form/formErrorText.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The text a form configuration names for an error it expects (`onError`, keyed by the error code), or undefined for
|
|
3
|
+
* any other error.
|
|
4
|
+
*
|
|
5
|
+
* @param error - What the save threw
|
|
6
|
+
* @param onError - The form's texts by error code
|
|
7
|
+
* @returns The text for the error, if the form names one
|
|
8
|
+
*/
|
|
9
|
+
export declare function formErrorText(error: unknown, onError?: {
|
|
10
|
+
[code: string]: string;
|
|
11
|
+
}): string | undefined;
|
|
12
|
+
//# sourceMappingURL=formErrorText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formErrorText.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/formErrorText.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,MAAM,GAAG,SAAS,CAEtG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAiB,YAAY,EAAgC,MAAM,MAAM,CAAC;AAGjF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAiB,YAAY,EAAgC,MAAM,MAAM,CAAC;AAGjF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAgB5C,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,qIAAqI;IACrI,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,IAAI,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiWD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,OAG1C;;YAjV0B,MAAM,IAAI;cAAY,MAAM,GAAG;;YAA/B,MAAM,IAAI;cAAY,MAAM,GAAG;;AAmV1D,wBAAuD;AAEvD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** An array cell defaults to [], which the grid's scalar required check treats as filled. */
|
|
2
|
+
export declare function validateRuleActions(value: unknown, t: (key: string, options?: {
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
field?: string;
|
|
5
|
+
}) => string): string | undefined;
|
|
6
|
+
//# sourceMappingURL=actionsRequired.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionsRequired.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/actionsRequired.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,OAAO,EACd,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,GAC9E,MAAM,GAAG,SAAS,CAMpB"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAQrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGvE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAiOA"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionCombinationColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"optionCombinationColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAA6B,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE7E,qFAAqF;AACrF,MAAM,WAAW,8BAA8B;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACzB,qFAAqF;IACrF,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CACjE;AAED,uGAAuG;AACvG,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CACpD;AAQD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,CAM7H;AAED,sHAAsH;AACtH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtH;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,mBAAmB,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAAE,CASzI;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,8BAA8B,EAAE,SAAS,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CA4CxH;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAM/H;AAUD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,8BAA8B,EAAE,SAAS,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CA6DpH;AAED,qHAAqH;AACrH,wBAAgB,wBAAwB,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAsD5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackagePublishSwitch.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAGxF,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACpD,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"PackagePublishSwitch.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAGxF,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACpD,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,KAAK,qBAkI1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackagePublishControls.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PackagePublishControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAK/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACpD,2FAA2F;IAC3F,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"PackagePublishControls.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PackagePublishControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAK/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACpD,2FAA2F;IAC3F,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,KAAK,qBA+E/E"}
|
|
@@ -21,6 +21,7 @@ export interface PackagePublishData {
|
|
|
21
21
|
[organizationId: string]: {
|
|
22
22
|
publishing?: boolean;
|
|
23
23
|
publishDate?: string;
|
|
24
|
+
failedMediaCount?: number;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
dependingPackages?: {
|
|
@@ -51,6 +52,7 @@ export declare function usePackagePublishing({ packageId, data, organizationId,
|
|
|
51
52
|
isPublished: boolean | undefined;
|
|
52
53
|
isReleaseWithdrawn: boolean;
|
|
53
54
|
unpublishedChanges: boolean;
|
|
55
|
+
failedMediaCount: number;
|
|
54
56
|
isInherited: boolean;
|
|
55
57
|
inheritedTooltip: string;
|
|
56
58
|
servedByBase: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePackagePublishing.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAA0D,MAAM,mBAAmB,CAAC;AAEjH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG;YAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;IAC3E,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG;YAAE,UAAU,CAAC,EAAE,OAAO,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"usePackagePublishing.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,oBAAoB,EAA0D,MAAM,mBAAmB,CAAC;AAEjH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG;YAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;IAC3E,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG;YAAE,UAAU,CAAC,EAAE,OAAO,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAC;YAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IACpH,iBAAiB,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxE,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;CAC3C;AAED,UAAU,0BAA0B;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,+GAA+G;IAC/G,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,wHAAwH;IACxH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,IAAI,EACJ,cAAc,EACd,SAAS,EACT,UAAU,EACV,WAAW,EACX,sBAAsB,GACvB,EAAE,0BAA0B;;;;;;;;;;;;;;;;;aAO6D,MAAM;qBAAe,MAAM;;;;;wBAuJjG,OAAO;;EAiC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAE,KAAK,EAAwB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAE,KAAK,EAAwB,MAAM,UAAU,CAAC;AAkCvD,eAAO,MAAM,UAAU,mDAAoB,CAAC;AAwB5C,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;0BAEqB,CAAC,SAAS,MAAM,aAAa,KAAK,CAAC,CAAC,CAAC;;;AAqY3D,wBAAsC;AACtC,cAAc,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.14.0-beta.
|
|
3
|
+
"version": "26.14.0-beta.17",
|
|
4
4
|
"description": "Ant Design backoffice shell (configuration modules), the Diva Data Engine component hosting the IDM and enricher editors, and the Produkt Onboarding component hosting the Assortment Manager.",
|
|
5
5
|
"license": "COMMERCIAL",
|
|
6
6
|
"devDependencies": {
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ant-design/icons": "6.3.4",
|
|
18
18
|
"@babel/runtime": "7.24.7",
|
|
19
|
-
"@crystaldesign/classification": "26.14.0-beta.
|
|
20
|
-
"@crystaldesign/content-box": "26.14.0-beta.
|
|
21
|
-
"@crystaldesign/content-item": "26.14.0-beta.
|
|
22
|
-
"@crystaldesign/diva-agent": "26.14.0-beta.
|
|
23
|
-
"@crystaldesign/diva-core": "26.14.0-beta.
|
|
24
|
-
"@crystaldesign/diva-utils": "26.14.0-beta.
|
|
25
|
-
"@crystaldesign/mass-configurator": "26.14.0-beta.
|
|
26
|
-
"@crystaldesign/media-upload": "26.14.0-beta.
|
|
27
|
-
"@crystaldesign/rtf-editor": "26.14.0-beta.
|
|
28
|
-
"@crystaldesign/spreadsheet": "26.14.0-beta.
|
|
19
|
+
"@crystaldesign/classification": "26.14.0-beta.17",
|
|
20
|
+
"@crystaldesign/content-box": "26.14.0-beta.17",
|
|
21
|
+
"@crystaldesign/content-item": "26.14.0-beta.17",
|
|
22
|
+
"@crystaldesign/diva-agent": "26.14.0-beta.17",
|
|
23
|
+
"@crystaldesign/diva-core": "26.14.0-beta.17",
|
|
24
|
+
"@crystaldesign/diva-utils": "26.14.0-beta.17",
|
|
25
|
+
"@crystaldesign/mass-configurator": "26.14.0-beta.17",
|
|
26
|
+
"@crystaldesign/media-upload": "26.14.0-beta.17",
|
|
27
|
+
"@crystaldesign/rtf-editor": "26.14.0-beta.17",
|
|
28
|
+
"@crystaldesign/spreadsheet": "26.14.0-beta.17",
|
|
29
29
|
"@dnd-kit/core": "^6.1.0",
|
|
30
30
|
"@dnd-kit/sortable": "^8.0.0",
|
|
31
31
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"lodash": "^4.17.21",
|
|
42
42
|
"object-hash": "^3.0.0",
|
|
43
43
|
"react-collapsible": "^2.10.0",
|
|
44
|
-
"react-error-boundary": "^
|
|
44
|
+
"react-error-boundary": "^6.1.6",
|
|
45
45
|
"react-image-crop": "^11.0.7",
|
|
46
46
|
"react-infinite-scroll-component": "^6.1.0",
|
|
47
47
|
"react-org-tree": "^1.0.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"suiteName": "diva-backoffice",
|
|
63
63
|
"outputDirectory": "./test-reports"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "0f159d4c57d3266e0e8e328c9706930df0d44ad3"
|
|
66
66
|
}
|