@crystaldesign/diva-backoffice 24.13.0-beta.1 → 24.13.0-beta.10
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 +213 -134
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts +7 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/StringCell/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -121,7 +121,7 @@ import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructurin
|
|
|
121
121
|
import Descriptions$1 from 'antd/es/descriptions';
|
|
122
122
|
import { Spreadsheet as Spreadsheet$1 } from '@crystaldesign/spreadsheet';
|
|
123
123
|
import EditOutlined from '@ant-design/icons/lib/icons/EditOutlined';
|
|
124
|
-
import
|
|
124
|
+
import Checkbox$1 from 'antd/es/checkbox/Checkbox';
|
|
125
125
|
import Switch$1 from 'antd/es/switch';
|
|
126
126
|
import Layout$1 from 'antd/es/layout';
|
|
127
127
|
import Menu from 'antd/es/menu';
|
|
@@ -7809,6 +7809,25 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
7809
7809
|
hidden: function hidden(data) {
|
|
7810
7810
|
return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
|
|
7811
7811
|
}
|
|
7812
|
+
}, {
|
|
7813
|
+
name: ['settings', 'automaticVersioning'],
|
|
7814
|
+
label: t('backoffice.form.organizationdetails.items.automaticversioning'),
|
|
7815
|
+
permission: 'backoffice_admin_organizations',
|
|
7816
|
+
hidden: function hidden(data) {
|
|
7817
|
+
return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'ASSOCIATION';
|
|
7818
|
+
},
|
|
7819
|
+
type: 'radio',
|
|
7820
|
+
optionType: 'button',
|
|
7821
|
+
options: [{
|
|
7822
|
+
label: t('backoffice.form.organizationdetails.items.na'),
|
|
7823
|
+
value: undefined
|
|
7824
|
+
}, {
|
|
7825
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
7826
|
+
value: true
|
|
7827
|
+
}, {
|
|
7828
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
7829
|
+
value: false
|
|
7830
|
+
}]
|
|
7812
7831
|
}, {
|
|
7813
7832
|
name: ['api2Location', 'vk'],
|
|
7814
7833
|
label: t('backoffice.form.organizationdetails.items.api2Location.vk'),
|
|
@@ -23431,38 +23450,6 @@ function StringCell (_ref) {
|
|
|
23431
23450
|
var form = useContext(EditableContext);
|
|
23432
23451
|
var _useTranslation = useTranslation(),
|
|
23433
23452
|
t = _useTranslation.t;
|
|
23434
|
-
var _useState3 = useState(undefined),
|
|
23435
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
23436
|
-
color = _useState4[0],
|
|
23437
|
-
setColor = _useState4[1];
|
|
23438
|
-
useEffect(function () {
|
|
23439
|
-
if (column.color && record) {
|
|
23440
|
-
var returnValue = '';
|
|
23441
|
-
var _iterator = _createForOfIteratorHelper$7(column.color),
|
|
23442
|
-
_step;
|
|
23443
|
-
try {
|
|
23444
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23445
|
-
var col = _step.value;
|
|
23446
|
-
for (var idx = 0; idx < col.onValues.length; idx++) {
|
|
23447
|
-
var _col$fields, _col$operations, _col$onValues, _JSON$stringify;
|
|
23448
|
-
var field = (_col$fields = col.fields) === null || _col$fields === void 0 ? void 0 : _col$fields[idx];
|
|
23449
|
-
var operation = (_col$operations = col.operations) === null || _col$operations === void 0 ? void 0 : _col$operations[0];
|
|
23450
|
-
var onValue = (_col$onValues = col.onValues) === null || _col$onValues === void 0 ? void 0 : _col$onValues[idx];
|
|
23451
|
-
if (!field && operation === 'eq' && onValue === children[1]) {
|
|
23452
|
-
returnValue = col.color;
|
|
23453
|
-
} else if (field && operation === 'ct' && (_JSON$stringify = JSON.stringify(record[field])) !== null && _JSON$stringify !== void 0 && _JSON$stringify.includes(onValue)) {
|
|
23454
|
-
returnValue = col.color;
|
|
23455
|
-
}
|
|
23456
|
-
}
|
|
23457
|
-
}
|
|
23458
|
-
} catch (err) {
|
|
23459
|
-
_iterator.e(err);
|
|
23460
|
-
} finally {
|
|
23461
|
-
_iterator.f();
|
|
23462
|
-
}
|
|
23463
|
-
setColor(returnValue);
|
|
23464
|
-
}
|
|
23465
|
-
}, []);
|
|
23466
23453
|
useEffect(function () {
|
|
23467
23454
|
if (editing) {
|
|
23468
23455
|
inputRef.current.focus();
|
|
@@ -23542,7 +23529,7 @@ function StringCell (_ref) {
|
|
|
23542
23529
|
whiteSpace: 'nowrap',
|
|
23543
23530
|
overflow: 'hidden',
|
|
23544
23531
|
textOverflow: 'ellipsis',
|
|
23545
|
-
color:
|
|
23532
|
+
color: getColor(column, record, children[1]),
|
|
23546
23533
|
width: column.width,
|
|
23547
23534
|
paddingRight: 12
|
|
23548
23535
|
},
|
|
@@ -23551,6 +23538,33 @@ function StringCell (_ref) {
|
|
|
23551
23538
|
});
|
|
23552
23539
|
}
|
|
23553
23540
|
}
|
|
23541
|
+
function getColor(column, record, value) {
|
|
23542
|
+
if (column.color && record) {
|
|
23543
|
+
var _iterator = _createForOfIteratorHelper$7(column.color),
|
|
23544
|
+
_step;
|
|
23545
|
+
try {
|
|
23546
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23547
|
+
var col = _step.value;
|
|
23548
|
+
for (var idx = 0; idx < col.onValues.length; idx++) {
|
|
23549
|
+
var _col$fields, _col$operations, _col$onValues, _JSON$stringify;
|
|
23550
|
+
var field = (_col$fields = col.fields) === null || _col$fields === void 0 ? void 0 : _col$fields[idx];
|
|
23551
|
+
var operation = (_col$operations = col.operations) === null || _col$operations === void 0 ? void 0 : _col$operations[0];
|
|
23552
|
+
var onValue = (_col$onValues = col.onValues) === null || _col$onValues === void 0 ? void 0 : _col$onValues[idx];
|
|
23553
|
+
if (!field && operation === 'eq' && onValue === value) {
|
|
23554
|
+
return col.color;
|
|
23555
|
+
} else if (field && operation === 'ct' && (_JSON$stringify = JSON.stringify(record[field])) !== null && _JSON$stringify !== void 0 && _JSON$stringify.includes(onValue)) {
|
|
23556
|
+
return col.color;
|
|
23557
|
+
}
|
|
23558
|
+
}
|
|
23559
|
+
}
|
|
23560
|
+
} catch (err) {
|
|
23561
|
+
_iterator.e(err);
|
|
23562
|
+
} finally {
|
|
23563
|
+
_iterator.f();
|
|
23564
|
+
}
|
|
23565
|
+
}
|
|
23566
|
+
return undefined;
|
|
23567
|
+
}
|
|
23554
23568
|
|
|
23555
23569
|
function TextCell (_ref) {
|
|
23556
23570
|
var children = _ref.children,
|
|
@@ -29472,6 +29486,93 @@ function useNavigation () {
|
|
|
29472
29486
|
};
|
|
29473
29487
|
}
|
|
29474
29488
|
|
|
29489
|
+
function PublishCustomCell (_ref) {
|
|
29490
|
+
var data = _ref.data,
|
|
29491
|
+
apiConfig = _ref.apiConfig,
|
|
29492
|
+
context = _ref.context;
|
|
29493
|
+
var _useTranslation = useTranslation(),
|
|
29494
|
+
t = _useTranslation.t;
|
|
29495
|
+
var _React$useState = React.useState(false),
|
|
29496
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
29497
|
+
loading = _React$useState2[0],
|
|
29498
|
+
isLoading = _React$useState2[1];
|
|
29499
|
+
var unpublishedChanges = hasUnpublishedChanges(data.publishDate, data.lastUpdatedDate);
|
|
29500
|
+
var disabled = !data.basedCatalogId && !data.basedPackageId || !data.name;
|
|
29501
|
+
var _onChange = /*#__PURE__*/function () {
|
|
29502
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
|
|
29503
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
29504
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29505
|
+
case 0:
|
|
29506
|
+
isLoading(true);
|
|
29507
|
+
if (!publish) {
|
|
29508
|
+
_context.next = 6;
|
|
29509
|
+
break;
|
|
29510
|
+
}
|
|
29511
|
+
_context.next = 4;
|
|
29512
|
+
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
|
29513
|
+
update: apiConfig.enricherService + '/packages/${_id}/publish',
|
|
29514
|
+
usePut: true
|
|
29515
|
+
});
|
|
29516
|
+
case 4:
|
|
29517
|
+
_context.next = 8;
|
|
29518
|
+
break;
|
|
29519
|
+
case 6:
|
|
29520
|
+
_context.next = 8;
|
|
29521
|
+
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
|
29522
|
+
update: apiConfig.enricherService + '/packages/${_id}/unpublish',
|
|
29523
|
+
usePut: true
|
|
29524
|
+
});
|
|
29525
|
+
case 8:
|
|
29526
|
+
context === null || context === void 0 || context.reset();
|
|
29527
|
+
isLoading(false);
|
|
29528
|
+
case 10:
|
|
29529
|
+
case "end":
|
|
29530
|
+
return _context.stop();
|
|
29531
|
+
}
|
|
29532
|
+
}, _callee);
|
|
29533
|
+
}));
|
|
29534
|
+
return function onChange(_x) {
|
|
29535
|
+
return _ref2.apply(this, arguments);
|
|
29536
|
+
};
|
|
29537
|
+
}();
|
|
29538
|
+
return /*#__PURE__*/jsx(Spin, {
|
|
29539
|
+
spinning: loading,
|
|
29540
|
+
children: /*#__PURE__*/jsxs(Space$1, {
|
|
29541
|
+
size: "middle",
|
|
29542
|
+
children: [/*#__PURE__*/jsx(Tooltip, {
|
|
29543
|
+
title: !!data.isPublished ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
|
|
29544
|
+
children: /*#__PURE__*/jsx(Checkbox$1, {
|
|
29545
|
+
checked: !!data.isPublished,
|
|
29546
|
+
disabled: disabled,
|
|
29547
|
+
indeterminate: unpublishedChanges,
|
|
29548
|
+
onChange: function onChange(e) {
|
|
29549
|
+
return _onChange(e.target.checked);
|
|
29550
|
+
}
|
|
29551
|
+
})
|
|
29552
|
+
}), unpublishedChanges && /*#__PURE__*/jsx(Tooltip, {
|
|
29553
|
+
title: t('backoffice.idmEnricher.packages.label.unpublishedChanges'),
|
|
29554
|
+
children: /*#__PURE__*/jsx(Button$1, {
|
|
29555
|
+
shape: "circle",
|
|
29556
|
+
icon: /*#__PURE__*/jsx(ReloadOutlined, {}),
|
|
29557
|
+
onClick: function onClick() {
|
|
29558
|
+
return _onChange(true);
|
|
29559
|
+
}
|
|
29560
|
+
})
|
|
29561
|
+
})]
|
|
29562
|
+
})
|
|
29563
|
+
});
|
|
29564
|
+
}
|
|
29565
|
+
function hasUnpublishedChanges(publishDateString, lastUpdatedDateString) {
|
|
29566
|
+
var publishDate = publishDateString ? new Date(publishDateString) : undefined;
|
|
29567
|
+
var lastUpdatedDate = lastUpdatedDateString ? new Date(lastUpdatedDateString) : undefined;
|
|
29568
|
+
if (publishDate) {
|
|
29569
|
+
if (lastUpdatedDate && publishDate < lastUpdatedDate) {
|
|
29570
|
+
return true;
|
|
29571
|
+
}
|
|
29572
|
+
}
|
|
29573
|
+
return false;
|
|
29574
|
+
}
|
|
29575
|
+
|
|
29475
29576
|
function TablePackages () {
|
|
29476
29577
|
var root = useStore();
|
|
29477
29578
|
var _useTranslation = useTranslation(),
|
|
@@ -29503,39 +29604,7 @@ function TablePackages () {
|
|
|
29503
29604
|
},
|
|
29504
29605
|
disabled: function disabled(_ref2) {
|
|
29505
29606
|
var selectedNodes = _ref2.selectedNodes;
|
|
29506
|
-
return !selectedNodes[0].data.basedCatalogId && !selectedNodes[0].data.basedPackageId;
|
|
29507
|
-
}
|
|
29508
|
-
}, {
|
|
29509
|
-
icon: /*#__PURE__*/jsx(UploadOutlined$1, {}),
|
|
29510
|
-
name: t('backoffice.idmEnricher.packages.label.publish'),
|
|
29511
|
-
action: function () {
|
|
29512
|
-
var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref3) {
|
|
29513
|
-
var selectedNodes, context;
|
|
29514
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
29515
|
-
while (1) switch (_context.prev = _context.next) {
|
|
29516
|
-
case 0:
|
|
29517
|
-
selectedNodes = _ref3.selectedNodes, context = _ref3.context;
|
|
29518
|
-
_context.next = 3;
|
|
29519
|
-
return context === null || context === void 0 ? void 0 : context.updateServerData(selectedNodes[0].data, {
|
|
29520
|
-
update: apiConfig.enricherService + '/packages/${_id}/publish',
|
|
29521
|
-
usePut: true
|
|
29522
|
-
});
|
|
29523
|
-
case 3:
|
|
29524
|
-
context === null || context === void 0 || context.reset();
|
|
29525
|
-
case 4:
|
|
29526
|
-
case "end":
|
|
29527
|
-
return _context.stop();
|
|
29528
|
-
}
|
|
29529
|
-
}, _callee);
|
|
29530
|
-
}));
|
|
29531
|
-
function action(_x) {
|
|
29532
|
-
return _action.apply(this, arguments);
|
|
29533
|
-
}
|
|
29534
|
-
return action;
|
|
29535
|
-
}(),
|
|
29536
|
-
disabled: function disabled(_ref4) {
|
|
29537
|
-
var selectedNodes = _ref4.selectedNodes;
|
|
29538
|
-
return !selectedNodes[0].data.basedCatalogId && !selectedNodes[0].data.basedPackageId;
|
|
29607
|
+
return !selectedNodes[0].data.basedCatalogId && !selectedNodes[0].data.basedPackageId || !selectedNodes[0].data.name;
|
|
29539
29608
|
}
|
|
29540
29609
|
}],
|
|
29541
29610
|
configuration: {
|
|
@@ -29551,26 +29620,24 @@ function TablePackages () {
|
|
|
29551
29620
|
floatingFilter: true,
|
|
29552
29621
|
colDef: [{
|
|
29553
29622
|
field: 'isPublished',
|
|
29554
|
-
|
|
29555
|
-
valueGetter: function valueGetter(
|
|
29556
|
-
var
|
|
29557
|
-
|
|
29558
|
-
|
|
29559
|
-
|
|
29560
|
-
|
|
29561
|
-
|
|
29562
|
-
|
|
29623
|
+
//the cell should refresh on changes of this fields
|
|
29624
|
+
valueGetter: function valueGetter(_ref3) {
|
|
29625
|
+
var data = _ref3.data;
|
|
29626
|
+
return {
|
|
29627
|
+
isPublished: data === null || data === void 0 ? void 0 : data.isPublished,
|
|
29628
|
+
name: data === null || data === void 0 ? void 0 : data.name,
|
|
29629
|
+
basedCatalogId: data === null || data === void 0 ? void 0 : data.basedCatalogId,
|
|
29630
|
+
basedPackageId: data === null || data === void 0 ? void 0 : data.basedPackageId
|
|
29631
|
+
};
|
|
29563
29632
|
},
|
|
29564
|
-
|
|
29633
|
+
headerName: 'backoffice.idmEnricher.packages.label.published',
|
|
29634
|
+
cellRenderer: PublishCustomCell,
|
|
29565
29635
|
cellDataType: 'boolean',
|
|
29636
|
+
editable: false,
|
|
29566
29637
|
pinned: 'left',
|
|
29567
29638
|
lockPinned: true,
|
|
29568
|
-
|
|
29569
|
-
|
|
29570
|
-
disabled: true
|
|
29571
|
-
},
|
|
29572
|
-
tooltipValueGetter: function tooltipValueGetter(params) {
|
|
29573
|
-
return params.value == undefined ? t('backoffice.idmEnricher.packages.label.unpublishedChanges') : undefined;
|
|
29639
|
+
cellRendererParams: {
|
|
29640
|
+
apiConfig: apiConfig
|
|
29574
29641
|
}
|
|
29575
29642
|
}, {
|
|
29576
29643
|
headerName: 'backoffice.idmEnricher.packages.label.name',
|
|
@@ -29580,9 +29647,9 @@ function TablePackages () {
|
|
|
29580
29647
|
headerName: 'backoffice.idmEnricher.packages.label.catalogId',
|
|
29581
29648
|
field: 'basedCatalogId',
|
|
29582
29649
|
cellDataType: 'lookup',
|
|
29583
|
-
editable: function editable(
|
|
29584
|
-
var data =
|
|
29585
|
-
return !data.
|
|
29650
|
+
editable: function editable(_ref4) {
|
|
29651
|
+
var data = _ref4.data;
|
|
29652
|
+
return !data.basedCatalogId && !data.basedPackageId;
|
|
29586
29653
|
},
|
|
29587
29654
|
customParams: {
|
|
29588
29655
|
filterCellType: 'id',
|
|
@@ -29598,9 +29665,9 @@ function TablePackages () {
|
|
|
29598
29665
|
headerName: 'backoffice.idmEnricher.packages.label.packageId',
|
|
29599
29666
|
field: 'basedPackageId',
|
|
29600
29667
|
cellDataType: 'lookup',
|
|
29601
|
-
editable: function editable(
|
|
29602
|
-
var data =
|
|
29603
|
-
return !data.
|
|
29668
|
+
editable: function editable(_ref5) {
|
|
29669
|
+
var data = _ref5.data;
|
|
29670
|
+
return !data.basedCatalogId && !data.basedPackageId;
|
|
29604
29671
|
},
|
|
29605
29672
|
customParams: {
|
|
29606
29673
|
filterCellType: 'id',
|
|
@@ -29646,7 +29713,7 @@ function TablePackages () {
|
|
|
29646
29713
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
|
29647
29714
|
field: '_id',
|
|
29648
29715
|
editable: false,
|
|
29649
|
-
cellDataType: '
|
|
29716
|
+
cellDataType: 'objectId'
|
|
29650
29717
|
}, {
|
|
29651
29718
|
field: 'organizationId',
|
|
29652
29719
|
editable: false,
|
|
@@ -29933,7 +30000,7 @@ function TableProperties () {
|
|
|
29933
30000
|
})]
|
|
29934
30001
|
})
|
|
29935
30002
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
29936
|
-
gridId: 'crud-
|
|
30003
|
+
gridId: 'crud-grid_properties',
|
|
29937
30004
|
applicationData: applicationData,
|
|
29938
30005
|
configuration: {
|
|
29939
30006
|
type: 'dotnetSSM',
|
|
@@ -29948,14 +30015,61 @@ function TableProperties () {
|
|
|
29948
30015
|
floatingFilter: true,
|
|
29949
30016
|
colDef: [{
|
|
29950
30017
|
field: 'key',
|
|
29951
|
-
headerName: 'backoffice.idmEnricher.properties.label.key'
|
|
30018
|
+
headerName: 'backoffice.idmEnricher.properties.label.key',
|
|
30019
|
+
required: true,
|
|
30020
|
+
pinned: true
|
|
30021
|
+
}, {
|
|
30022
|
+
field: 'featureNos',
|
|
30023
|
+
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
|
30024
|
+
cellDataType: 'lookup',
|
|
30025
|
+
editable: true,
|
|
30026
|
+
customParams: {
|
|
30027
|
+
nameField: 'featureNosDisplayTexts',
|
|
30028
|
+
displayLabelTemplate: '${name} (${value})',
|
|
30029
|
+
apiInterface: {
|
|
30030
|
+
read: apiConfig.enricherService + '/packages/${packageId}/lookup/features'
|
|
30031
|
+
},
|
|
30032
|
+
lookupValue: 'featureText',
|
|
30033
|
+
lookupKey: 'featureNo',
|
|
30034
|
+
multiple: true,
|
|
30035
|
+
translated: true
|
|
30036
|
+
},
|
|
30037
|
+
additionalFields: ['featureNosDisplayTexts'],
|
|
30038
|
+
isDictionary: true,
|
|
30039
|
+
pinned: true
|
|
30040
|
+
}, {
|
|
30041
|
+
field: 'optionKeys',
|
|
30042
|
+
headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
|
|
30043
|
+
cellDataType: 'lookup',
|
|
30044
|
+
editable: true,
|
|
30045
|
+
customParams: {
|
|
30046
|
+
nameField: 'optionKeysDisplayTexts',
|
|
30047
|
+
displayLabelTemplate: '${name} (${value})',
|
|
30048
|
+
apiInterface: {
|
|
30049
|
+
read: apiConfig.enricherService + '/packages/${packageId}/lookup/options'
|
|
30050
|
+
},
|
|
30051
|
+
lookupValue: 'optionText',
|
|
30052
|
+
lookupKey: 'optionKey',
|
|
30053
|
+
multiple: true,
|
|
30054
|
+
translated: true,
|
|
30055
|
+
filter: {
|
|
30056
|
+
colId: 'featureNo',
|
|
30057
|
+
type: 'equals',
|
|
30058
|
+
filterType: 'text',
|
|
30059
|
+
filter: '${featureNos}'
|
|
30060
|
+
}
|
|
30061
|
+
},
|
|
30062
|
+
additionalFields: ['optionKeysDisplayTexts'],
|
|
30063
|
+
isDictionary: true,
|
|
30064
|
+
pinned: true
|
|
29952
30065
|
}, {
|
|
29953
30066
|
headerName: 'backoffice.idmEnricher.properties.label.name',
|
|
29954
30067
|
marryChildren: true,
|
|
29955
30068
|
children: [{
|
|
29956
30069
|
field: 'name.DE',
|
|
29957
30070
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
29958
|
-
isDictionary: true
|
|
30071
|
+
isDictionary: true,
|
|
30072
|
+
pinned: true
|
|
29959
30073
|
}, {
|
|
29960
30074
|
field: 'name.EN',
|
|
29961
30075
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -29975,7 +30089,8 @@ function TableProperties () {
|
|
|
29975
30089
|
children: [{
|
|
29976
30090
|
field: 'value.DE',
|
|
29977
30091
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
29978
|
-
isDictionary: true
|
|
30092
|
+
isDictionary: true,
|
|
30093
|
+
pinned: true
|
|
29979
30094
|
}, {
|
|
29980
30095
|
field: 'value.EN',
|
|
29981
30096
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -29989,42 +30104,6 @@ function TableProperties () {
|
|
|
29989
30104
|
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
29990
30105
|
isDictionary: true
|
|
29991
30106
|
}]
|
|
29992
|
-
}, {
|
|
29993
|
-
field: 'featureNos',
|
|
29994
|
-
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
|
29995
|
-
cellDataType: 'lookup',
|
|
29996
|
-
editable: true,
|
|
29997
|
-
customParams: {
|
|
29998
|
-
nameField: 'featureNosDisplayTexts',
|
|
29999
|
-
displayLabelTemplate: '${name} (${value})',
|
|
30000
|
-
apiInterface: {
|
|
30001
|
-
read: apiConfig.enricherService + '/packages/${packageId}/lookup/features'
|
|
30002
|
-
},
|
|
30003
|
-
lookupValue: 'featureText',
|
|
30004
|
-
lookupKey: 'featureNo',
|
|
30005
|
-
multiple: true,
|
|
30006
|
-
translated: true
|
|
30007
|
-
},
|
|
30008
|
-
additionalFields: ['featureNosDisplayTexts'],
|
|
30009
|
-
isDictionary: true
|
|
30010
|
-
}, {
|
|
30011
|
-
field: 'optionKeys',
|
|
30012
|
-
headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
|
|
30013
|
-
cellDataType: 'lookup',
|
|
30014
|
-
editable: true,
|
|
30015
|
-
customParams: {
|
|
30016
|
-
nameField: 'optionKeysDisplayTexts',
|
|
30017
|
-
displayLabelTemplate: '${name} (${value})',
|
|
30018
|
-
apiInterface: {
|
|
30019
|
-
read: apiConfig.enricherService + '/packages/${packageId}/lookup/options'
|
|
30020
|
-
},
|
|
30021
|
-
lookupValue: 'optionText',
|
|
30022
|
-
lookupKey: 'optionKey',
|
|
30023
|
-
multiple: true,
|
|
30024
|
-
translated: true
|
|
30025
|
-
},
|
|
30026
|
-
additionalFields: ['optionKeysDisplayTexts'],
|
|
30027
|
-
isDictionary: true
|
|
30028
30107
|
}, {
|
|
30029
30108
|
field: 'serieNos',
|
|
30030
30109
|
headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
|
|
@@ -30632,7 +30711,7 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
30632
30711
|
headerName: t('backoffice.idmEnricher.general.label._id'),
|
|
30633
30712
|
field: '_id',
|
|
30634
30713
|
editable: false,
|
|
30635
|
-
cellDataType: '
|
|
30714
|
+
cellDataType: 'objectId'
|
|
30636
30715
|
}])
|
|
30637
30716
|
}
|
|
30638
30717
|
})]
|
|
@@ -31103,8 +31182,8 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
31103
31182
|
}, {
|
|
31104
31183
|
headerName: t('backoffice.idmEnricher.general.label._id'),
|
|
31105
31184
|
field: '_id',
|
|
31106
|
-
editable:
|
|
31107
|
-
cellDataType: '
|
|
31185
|
+
editable: true,
|
|
31186
|
+
cellDataType: 'objectId'
|
|
31108
31187
|
}])
|
|
31109
31188
|
}
|
|
31110
31189
|
})]
|
|
@@ -31220,7 +31299,7 @@ function TableTabGroups () {
|
|
|
31220
31299
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
|
31221
31300
|
field: '_id',
|
|
31222
31301
|
editable: false,
|
|
31223
|
-
cellDataType: '
|
|
31302
|
+
cellDataType: 'objectId'
|
|
31224
31303
|
}]
|
|
31225
31304
|
}
|
|
31226
31305
|
})]
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DivaCustomCellRendererProps } from '@crystaldesign/spreadsheet';
|
|
3
|
+
import { ApiConfig } from '@crystaldesign/diva-core';
|
|
4
|
+
export default function ({ data, apiConfig, context }: DivaCustomCellRendererProps<any, any, {
|
|
5
|
+
apiConfig: ApiConfig;
|
|
6
|
+
}>): React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PublishCustomCell.d.ts.map
|
|
@@ -0,0 +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;AAErE,MAAM,CAAC,OAAO,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC,qBA2CrH"}
|
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,KAA6B,MAAM,OAAO,CAAC;AASlD,MAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,MAAM,CAAC,OAAO,gCA0Jb"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCAuOb"}
|
package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/StringCell/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/StringCell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAmB,MAAM,IAAI,CAAC;AAGzD,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/StringCell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAmB,MAAM,IAAI,CAAC;AAGzD,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,kBAAkB,qBAgGzF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.13.0-beta.
|
|
3
|
+
"version": "24.13.0-beta.10",
|
|
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": "24.13.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "24.13.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "24.13.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "24.13.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "24.13.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "24.13.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "24.13.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "24.13.0-beta.10",
|
|
19
|
+
"@crystaldesign/content-item": "24.13.0-beta.10",
|
|
20
|
+
"@crystaldesign/diva-core": "24.13.0-beta.10",
|
|
21
|
+
"@crystaldesign/diva-utils": "24.13.0-beta.10",
|
|
22
|
+
"@crystaldesign/media-upload": "24.13.0-beta.10",
|
|
23
|
+
"@crystaldesign/rtf-editor": "24.13.0-beta.10",
|
|
24
|
+
"@crystaldesign/spreadsheet": "24.13.0-beta.10",
|
|
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": "5992f2175bb3bc2279dee2c567ab2d80ebde7ae1"
|
|
55
55
|
}
|