@crystaldesign/diva-backoffice 25.8.0-beta.20 → 25.8.0-beta.22
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 +606 -215
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts +8 -6
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts +37 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +2 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
@@ -123,6 +123,7 @@ import WarningOutlined from '@ant-design/icons/lib/icons/WarningOutlined';
|
|
123
123
|
import Modal$3 from 'antd/es/modal';
|
124
124
|
import Spin$1 from 'antd/es/spin';
|
125
125
|
import Flex from 'antd/es/flex';
|
126
|
+
import { useTranslation as useTranslation$1 } from 'react-i18next';
|
126
127
|
import JSZip from 'jszip';
|
127
128
|
import { DropzoneAreaBase } from 'react-mui-dropzone';
|
128
129
|
import Switch$1 from 'antd/es/switch';
|
@@ -13315,8 +13316,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
13315
13316
|
var navOverlay = "nav-overlay-rKJNC";
|
13316
13317
|
var navSettings = "nav-settings-82cjv";
|
13317
13318
|
var menuLabel = "menu-label-4dXQk";
|
13318
|
-
var css_248z$
|
13319
|
-
styleInject(css_248z$
|
13319
|
+
var css_248z$y = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
|
13320
|
+
styleInject(css_248z$y);
|
13320
13321
|
|
13321
13322
|
function MenuLabel (_ref) {
|
13322
13323
|
var disabled = _ref.disabled,
|
@@ -17039,7 +17040,7 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
17039
17040
|
});
|
17040
17041
|
};
|
17041
17042
|
|
17042
|
-
var _excluded$
|
17043
|
+
var _excluded$4 = ["key", "name"];
|
17043
17044
|
function ownKeys$U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
17044
17045
|
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
17045
17046
|
var FormList$2 = function FormList(_ref) {
|
@@ -17075,7 +17076,7 @@ var FormList$2 = function FormList(_ref) {
|
|
17075
17076
|
children: [fields.map(function (_ref3) {
|
17076
17077
|
var key = _ref3.key,
|
17077
17078
|
name = _ref3.name,
|
17078
|
-
restField = _objectWithoutProperties(_ref3, _excluded$
|
17079
|
+
restField = _objectWithoutProperties(_ref3, _excluded$4);
|
17079
17080
|
return /*#__PURE__*/jsxs("div", {
|
17080
17081
|
id: key.toString(),
|
17081
17082
|
style: {
|
@@ -17271,8 +17272,8 @@ var Result = function Result(_ref) {
|
|
17271
17272
|
|
17272
17273
|
var success = "success-tRJ7j";
|
17273
17274
|
var error = "error-MtAFB";
|
17274
|
-
var css_248z$
|
17275
|
-
styleInject(css_248z$
|
17275
|
+
var css_248z$x = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
|
17276
|
+
styleInject(css_248z$x);
|
17276
17277
|
|
17277
17278
|
var azureIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6a%22%20x1%3D%22-1254.397%22%20x2%3D%22-1261.911%22%20y1%3D%22877.268%22%20y2%3D%22899.466%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23114a8b%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230669bc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6a%29%22%20d%3D%22M17.634%2C6h11.305L17.203%2C40.773c-0.247%2C0.733-0.934%2C1.226-1.708%2C1.226H6.697%20c-0.994%2C0-1.8-0.806-1.8-1.8c0-0.196%2C0.032-0.39%2C0.094-0.576L15.926%2C7.227C16.173%2C6.494%2C16.86%2C6%2C17.634%2C6L17.634%2C6z%22%2F%3E%20%3Cpath%20fill%3D%22%230078d4%22%20d%3D%22M34.062%2C29.324H16.135c-0.458-0.001-0.83%2C0.371-0.831%2C0.829c0%2C0.231%2C0.095%2C0.451%2C0.264%2C0.608%20l11.52%2C10.752C27.423%2C41.826%2C27.865%2C42%2C28.324%2C42h10.151L34.062%2C29.324z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6b%22%20x1%3D%22-1252.05%22%20x2%3D%22-1253.788%22%20y1%3D%22887.612%22%20y2%3D%22888.2%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-opacity%3D%22.3%22%2F%3E%20%20%3Cstop%20offset%3D%22.071%22%20stop-opacity%3D%22.2%22%2F%3E%20%20%3Cstop%20offset%3D%22.321%22%20stop-opacity%3D%22.1%22%2F%3E%20%20%3Cstop%20offset%3D%22.623%22%20stop-opacity%3D%22.05%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6b%29%22%20d%3D%22M17.634%2C6c-0.783-0.003-1.476%2C0.504-1.712%2C1.25L5.005%2C39.595%20c-0.335%2C0.934%2C0.151%2C1.964%2C1.085%2C2.299C6.286%2C41.964%2C6.493%2C42%2C6.702%2C42h9.026c0.684-0.122%2C1.25-0.603%2C1.481-1.259l2.177-6.416%20l7.776%2C7.253c0.326%2C0.27%2C0.735%2C0.419%2C1.158%2C0.422h10.114l-4.436-12.676l-12.931%2C0.003L28.98%2C6H17.634z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6c%22%20x1%3D%22-1252.952%22%20x2%3D%22-1244.704%22%20y1%3D%22876.6%22%20y2%3D%22898.575%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ccbf4%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232892df%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6c%29%22%20d%3D%22M32.074%2C7.225C31.827%2C6.493%2C31.141%2C6%2C30.368%2C6h-12.6c0.772%2C0%2C1.459%2C0.493%2C1.705%2C1.224%20l10.935%2C32.399c0.318%2C0.942-0.188%2C1.963-1.13%2C2.281C29.093%2C41.968%2C28.899%2C42%2C28.703%2C42h12.6c0.994%2C0%2C1.8-0.806%2C1.8-1.801%20c0-0.196-0.032-0.39-0.095-0.575L32.074%2C7.225z%22%2F%3E%3C%2Fsvg%3E";
|
17278
17279
|
|
@@ -17334,10 +17335,10 @@ var CustomButton = function CustomButton(_ref) {
|
|
17334
17335
|
};
|
17335
17336
|
var CustomButton$1 = observer(CustomButton);
|
17336
17337
|
|
17337
|
-
var wrapper$
|
17338
|
+
var wrapper$6 = "wrapper-GVe2h";
|
17338
17339
|
var buttonGroup = "button-group-GYt-T";
|
17339
|
-
var css_248z$
|
17340
|
-
styleInject(css_248z$
|
17340
|
+
var css_248z$w = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
|
17341
|
+
styleInject(css_248z$w);
|
17341
17342
|
|
17342
17343
|
function ownKeys$T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
17343
17344
|
function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -17351,7 +17352,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
17351
17352
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
17352
17353
|
style: _objectSpread$T({}, item.style),
|
17353
17354
|
children: /*#__PURE__*/jsxs("div", {
|
17354
|
-
className: wrapper$
|
17355
|
+
className: wrapper$6,
|
17355
17356
|
children: [Array.isArray(item.name) ? t(item.name[0].toString()) : t(item.name), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
|
17356
17357
|
return /*#__PURE__*/jsx("div", {
|
17357
17358
|
className: buttonGroup,
|
@@ -17613,11 +17614,11 @@ function parseReturnData(options, selectMapping) {
|
|
17613
17614
|
return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
|
17614
17615
|
}
|
17615
17616
|
|
17616
|
-
var wrapper$
|
17617
|
-
var css_248z$
|
17618
|
-
styleInject(css_248z$
|
17617
|
+
var wrapper$5 = "wrapper-4xyke";
|
17618
|
+
var css_248z$v = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
17619
|
+
styleInject(css_248z$v);
|
17619
17620
|
|
17620
|
-
var _excluded$
|
17621
|
+
var _excluded$3 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
17621
17622
|
function ownKeys$S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
17622
17623
|
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
17623
17624
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
@@ -17631,7 +17632,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17631
17632
|
autoSelectFirst = _ref.autoSelectFirst,
|
17632
17633
|
title = _ref.title,
|
17633
17634
|
sharedState = _ref.sharedState,
|
17634
|
-
selectProps = _objectWithoutProperties(_ref, _excluded$
|
17635
|
+
selectProps = _objectWithoutProperties(_ref, _excluded$3);
|
17635
17636
|
var state = useSelectSimpleData({
|
17636
17637
|
apiInterface: apiInterface,
|
17637
17638
|
selectMapping: selectMapping,
|
@@ -17645,7 +17646,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17645
17646
|
});
|
17646
17647
|
return /*#__PURE__*/jsxs("div", {
|
17647
17648
|
ref: ref,
|
17648
|
-
className: classnames(title ? wrapper$
|
17649
|
+
className: classnames(title ? wrapper$5 : undefined),
|
17649
17650
|
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
|
17650
17651
|
showSearch: search,
|
17651
17652
|
loading: state.loading,
|
@@ -18499,8 +18500,8 @@ var customSelect = "custom-select-ESUJX";
|
|
18499
18500
|
var customSelectOption = "custom-select-option-dUA7N";
|
18500
18501
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
18501
18502
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
18502
|
-
var css_248z$
|
18503
|
-
styleInject(css_248z$
|
18503
|
+
var css_248z$u = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
|
18504
|
+
styleInject(css_248z$u);
|
18504
18505
|
|
18505
18506
|
var Selector = function Selector(_ref) {
|
18506
18507
|
var items = _ref.items,
|
@@ -19044,8 +19045,8 @@ function useSelectData (_ref) {
|
|
19044
19045
|
};
|
19045
19046
|
}
|
19046
19047
|
|
19047
|
-
var css_248z$
|
19048
|
-
styleInject(css_248z$
|
19048
|
+
var css_248z$t = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
19049
|
+
styleInject(css_248z$t);
|
19049
19050
|
|
19050
19051
|
var SelectWrapper = function SelectWrapper(_ref) {
|
19051
19052
|
var onChange = _ref.onChange,
|
@@ -19124,11 +19125,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
|
|
19124
19125
|
};
|
19125
19126
|
var Select = observer(SelectWrapper);
|
19126
19127
|
|
19127
|
-
var wrapper$
|
19128
|
+
var wrapper$4 = "wrapper-WStAk";
|
19128
19129
|
var headerWrapper = "header-wrapper-gWQuH";
|
19129
19130
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
19130
|
-
var css_248z$
|
19131
|
-
styleInject(css_248z$
|
19131
|
+
var css_248z$s = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
|
19132
|
+
styleInject(css_248z$s);
|
19132
19133
|
|
19133
19134
|
function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
19134
19135
|
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -19332,7 +19333,7 @@ var Translation = function Translation(_ref) {
|
|
19332
19333
|
_onChange = _useTranslationHook.onChange,
|
19333
19334
|
autoTranslate = _useTranslationHook.autoTranslate;
|
19334
19335
|
return /*#__PURE__*/jsxs("div", {
|
19335
|
-
className: wrapper$
|
19336
|
+
className: wrapper$4,
|
19336
19337
|
children: [/*#__PURE__*/jsxs("div", {
|
19337
19338
|
className: headerWrapper,
|
19338
19339
|
children: [/*#__PURE__*/jsx("div", {
|
@@ -21174,8 +21175,8 @@ var skeleton = "skeleton--xCI0";
|
|
21174
21175
|
var filterField = "filterField-1kU1O";
|
21175
21176
|
var parentScroll = "parent-scroll-GmaL9";
|
21176
21177
|
var parent = "parent-NZJ3S";
|
21177
|
-
var css_248z$
|
21178
|
-
styleInject(css_248z$
|
21178
|
+
var css_248z$r = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: auto;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
|
21179
|
+
styleInject(css_248z$r);
|
21179
21180
|
|
21180
21181
|
function ownKeys$K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
21181
21182
|
function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -22420,8 +22421,8 @@ var newscroller = "newscroller-INKeD";
|
|
22420
22421
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
22421
22422
|
var itemTitle = "item-title--BTvC";
|
22422
22423
|
var itemDesc = "item-desc-DBiiF";
|
22423
|
-
var css_248z$
|
22424
|
-
styleInject(css_248z$
|
22424
|
+
var css_248z$q = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
|
22425
|
+
styleInject(css_248z$q);
|
22425
22426
|
|
22426
22427
|
function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
22427
22428
|
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -23833,8 +23834,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23833
23834
|
var preview = "preview-9wK81";
|
23834
23835
|
var previewButton = "preview-button-vupuG";
|
23835
23836
|
var editButton = "edit-button-m6r3M";
|
23836
|
-
var css_248z$
|
23837
|
-
styleInject(css_248z$
|
23837
|
+
var css_248z$p = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
|
23838
|
+
styleInject(css_248z$p);
|
23838
23839
|
|
23839
23840
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23840
23841
|
var id = _ref.id,
|
@@ -24613,19 +24614,19 @@ function reducer(state, action) {
|
|
24613
24614
|
|
24614
24615
|
var grid = "grid-sGemi";
|
24615
24616
|
var textWrapper = "text-wrapper-xsPXE";
|
24616
|
-
var css_248z$
|
24617
|
-
styleInject(css_248z$
|
24617
|
+
var css_248z$o = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
|
24618
|
+
styleInject(css_248z$o);
|
24618
24619
|
|
24619
|
-
var wrapper$
|
24620
|
+
var wrapper$3 = "wrapper-p-gR3";
|
24620
24621
|
var container$6 = "container-DoZqe";
|
24621
|
-
var css_248z$
|
24622
|
-
styleInject(css_248z$
|
24622
|
+
var css_248z$n = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
24623
|
+
styleInject(css_248z$n);
|
24623
24624
|
|
24624
24625
|
var ToolTipInfo = function ToolTipInfo(props) {
|
24625
24626
|
var _useTranslation = useTranslation(),
|
24626
24627
|
t = _useTranslation.t;
|
24627
24628
|
return /*#__PURE__*/jsx("div", {
|
24628
|
-
className: wrapper$
|
24629
|
+
className: wrapper$3,
|
24629
24630
|
children: /*#__PURE__*/jsx(Card, {
|
24630
24631
|
title: t('backoffice.tooltipinfo.useroverview'),
|
24631
24632
|
styles: {
|
@@ -24822,8 +24823,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24822
24823
|
var small = "small-NY1-k";
|
24823
24824
|
var medium = "medium---QcO";
|
24824
24825
|
var big = "big--E39S";
|
24825
|
-
var css_248z$
|
24826
|
-
styleInject(css_248z$
|
24826
|
+
var css_248z$m = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
|
24827
|
+
styleInject(css_248z$m);
|
24827
24828
|
|
24828
24829
|
var MediaUpload = observer(function (_ref) {
|
24829
24830
|
var id = _ref.id;
|
@@ -24949,8 +24950,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24949
24950
|
var checkbox = "checkbox-H7R-w";
|
24950
24951
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24951
24952
|
var contentWidth = "content-width-hGyVI";
|
24952
|
-
var css_248z$
|
24953
|
-
styleInject(css_248z$
|
24953
|
+
var css_248z$l = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
|
24954
|
+
styleInject(css_248z$l);
|
24954
24955
|
|
24955
24956
|
function BooleanCell (_ref) {
|
24956
24957
|
var children = _ref.children,
|
@@ -25631,7 +25632,7 @@ function LinkCell (_ref) {
|
|
25631
25632
|
}
|
25632
25633
|
}
|
25633
25634
|
|
25634
|
-
var _excluded$
|
25635
|
+
var _excluded$2 = ["index"],
|
25635
25636
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
25636
25637
|
function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
25637
25638
|
function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -25639,7 +25640,7 @@ var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
|
25639
25640
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
25640
25641
|
var CustomRow = function CustomRow(_ref) {
|
25641
25642
|
_ref.index;
|
25642
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
25643
|
+
var props = _objectWithoutProperties(_ref, _excluded$2);
|
25643
25644
|
var _Form$useForm = Form$1.useForm(),
|
25644
25645
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
25645
25646
|
form = _Form$useForm2[0];
|
@@ -25939,8 +25940,8 @@ function useAGHistogram (_ref) {
|
|
25939
25940
|
var container$5 = "container-2r-OJ";
|
25940
25941
|
var column1 = "column1-9viTK";
|
25941
25942
|
var spinner = "spinner-00VcK";
|
25942
|
-
var css_248z$
|
25943
|
-
styleInject(css_248z$
|
25943
|
+
var css_248z$k = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
|
25944
|
+
styleInject(css_248z$k);
|
25944
25945
|
|
25945
25946
|
var Panel = Collapse.Panel;
|
25946
25947
|
function AGHistogram (_ref) {
|
@@ -27528,7 +27529,7 @@ function filter(f, data) {
|
|
27528
27529
|
}) : result;
|
27529
27530
|
}
|
27530
27531
|
|
27531
|
-
var _excluded = ["_id"];
|
27532
|
+
var _excluded$1 = ["_id"];
|
27532
27533
|
function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
27533
27534
|
function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
27534
27535
|
function useTableData$1 (_ref) {
|
@@ -27612,7 +27613,7 @@ function useTableData$1 (_ref) {
|
|
27612
27613
|
setState(newState);
|
27613
27614
|
var formData = new FormData();
|
27614
27615
|
processedDataRow._id;
|
27615
|
-
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
27616
|
+
var value = _objectWithoutProperties(processedDataRow, _excluded$1);
|
27616
27617
|
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27617
27618
|
filterContex: filterContex,
|
27618
27619
|
value: JSON.stringify([value])
|
@@ -28918,8 +28919,8 @@ var loader = "loader-LaXZy";
|
|
28918
28919
|
var flex = "flex-yQdda";
|
28919
28920
|
var bar = "bar-Y663f";
|
28920
28921
|
var value = "value-FCA-6";
|
28921
|
-
var css_248z$
|
28922
|
-
styleInject(css_248z$
|
28922
|
+
var css_248z$j = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
|
28923
|
+
styleInject(css_248z$j);
|
28923
28924
|
|
28924
28925
|
function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
28925
28926
|
function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -29864,8 +29865,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29864
29865
|
var supplier = "supplier-8sm0I";
|
29865
29866
|
var dealer = "dealer-xgnku";
|
29866
29867
|
var association = "association-b8uVW";
|
29867
|
-
var css_248z$
|
29868
|
-
styleInject(css_248z$
|
29868
|
+
var css_248z$i = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
|
29869
|
+
styleInject(css_248z$i);
|
29869
29870
|
|
29870
29871
|
function getColorClass(data) {
|
29871
29872
|
switch (data.type) {
|
@@ -30098,8 +30099,8 @@ var openClass = "open-class--gGXs";
|
|
30098
30099
|
var breadcrumb = "breadcrumb-Z0VvH";
|
30099
30100
|
var selected = "selected-w-sfW";
|
30100
30101
|
var disabled$2 = "disabled-0nado";
|
30101
|
-
var css_248z$
|
30102
|
-
styleInject(css_248z$
|
30102
|
+
var css_248z$h = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
|
30103
|
+
styleInject(css_248z$h);
|
30103
30104
|
|
30104
30105
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
30105
30106
|
var open = _ref.open,
|
@@ -30132,8 +30133,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
30132
30133
|
|
30133
30134
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
30134
30135
|
var toolbarLeft = "toolbar-left-X9WRo";
|
30135
|
-
var css_248z$
|
30136
|
-
styleInject(css_248z$
|
30136
|
+
var css_248z$g = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
|
30137
|
+
styleInject(css_248z$g);
|
30137
30138
|
|
30138
30139
|
var Legend = function Legend(props) {
|
30139
30140
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -30187,8 +30188,8 @@ var Legend = function Legend(props) {
|
|
30187
30188
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
30188
30189
|
var mask = "mask-ssagp";
|
30189
30190
|
var transformWrapper = "transform-wrapper--8t0v";
|
30190
|
-
var css_248z$
|
30191
|
-
styleInject(css_248z$
|
30191
|
+
var css_248z$f = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
|
30192
|
+
styleInject(css_248z$f);
|
30192
30193
|
|
30193
30194
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
30194
30195
|
var _children = _ref.children,
|
@@ -31094,6 +31095,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
31094
31095
|
exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
|
31095
31096
|
exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
|
31096
31097
|
selectedSerie: undefined,
|
31098
|
+
selectedItem: undefined,
|
31097
31099
|
selectedFeature: undefined
|
31098
31100
|
};
|
31099
31101
|
return root.contextStore.getContext('enricher', initialState);
|
@@ -31105,6 +31107,11 @@ var useEnricherContext = function useEnricherContext() {
|
|
31105
31107
|
selectedSerie: serie
|
31106
31108
|
});
|
31107
31109
|
}, [root.contextStore]);
|
31110
|
+
var setSelectedItem = useCallback(function (item) {
|
31111
|
+
root.contextStore.updateContext('enricher', {
|
31112
|
+
selectedItem: item
|
31113
|
+
});
|
31114
|
+
}, [root.contextStore]);
|
31108
31115
|
var setSelectedFeature = useCallback(function (feature) {
|
31109
31116
|
root.contextStore.updateContext('enricher', {
|
31110
31117
|
selectedFeature: feature
|
@@ -31143,6 +31150,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
31143
31150
|
viewOnly: newPackage.organizationId !== root.dataStore.organizationId,
|
31144
31151
|
//if the package is not created in the current organization, it can only be viewed
|
31145
31152
|
selectedSerie: undefined,
|
31153
|
+
selectedItem: undefined,
|
31146
31154
|
selectedFeature: undefined,
|
31147
31155
|
lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
|
31148
31156
|
lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
|
@@ -31170,6 +31178,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
31170
31178
|
// Return context + handlers
|
31171
31179
|
return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
|
31172
31180
|
setSelectedSerie: setSelectedSerie,
|
31181
|
+
setSelectedItem: setSelectedItem,
|
31173
31182
|
setSelectedFeature: setSelectedFeature,
|
31174
31183
|
setSelectedPackage: setSelectedPackage
|
31175
31184
|
});
|
@@ -31219,6 +31228,9 @@ function useModule$1 (currentModules) {
|
|
31219
31228
|
organizationId = _useEnricherContext.organizationId,
|
31220
31229
|
selectedSerie = _useEnricherContext.selectedSerie,
|
31221
31230
|
selectedFeature = _useEnricherContext.selectedFeature,
|
31231
|
+
selectedItem = _useEnricherContext.selectedItem,
|
31232
|
+
setSelectedSerie = _useEnricherContext.setSelectedSerie,
|
31233
|
+
setSelectedItem = _useEnricherContext.setSelectedItem,
|
31222
31234
|
viewOnly = _useEnricherContext.viewOnly;
|
31223
31235
|
var location = useLocation();
|
31224
31236
|
var _useSearchParams = useSearchParams(),
|
@@ -31429,8 +31441,11 @@ function useModule$1 (currentModules) {
|
|
31429
31441
|
organizationId: organizationId,
|
31430
31442
|
apiConfig: root.configurationStore.apiConfig,
|
31431
31443
|
setSelectedPackage: setSelectedPackage,
|
31444
|
+
setSelectedSerie: setSelectedSerie,
|
31445
|
+
setSelectedItem: setSelectedItem,
|
31432
31446
|
selectedSerie: selectedSerie,
|
31433
31447
|
selectedFeature: selectedFeature,
|
31448
|
+
selectedItem: selectedItem,
|
31434
31449
|
viewOnly: viewOnly
|
31435
31450
|
};
|
31436
31451
|
}
|
@@ -31559,14 +31574,12 @@ var useTools = function useTools(_ref) {
|
|
31559
31574
|
initItem: item === null || item === void 0 ? void 0 : item.typeNo,
|
31560
31575
|
setSerie: setSerie,
|
31561
31576
|
setArticle: setArticle
|
31562
|
-
},
|
31563
|
-
initSerie:
|
31564
|
-
serieNo: serie.serieNo,
|
31565
|
-
serieId: serie._id
|
31566
|
-
}
|
31577
|
+
}, initSerie ? {
|
31578
|
+
initSerie: initSerie
|
31567
31579
|
} : {}) : isApi2 ? {
|
31568
31580
|
// open configurator for api2 package (configurator light)
|
31569
|
-
loadMask: true
|
31581
|
+
loadMask: true,
|
31582
|
+
initItem: item === null || item === void 0 ? void 0 : item.typeNo
|
31570
31583
|
} : _objectSpread$f({
|
31571
31584
|
// open configurator for idm package
|
31572
31585
|
useEnricherService: true,
|
@@ -31576,14 +31589,20 @@ var useTools = function useTools(_ref) {
|
|
31576
31589
|
initItem: item === null || item === void 0 ? void 0 : item.typeNo,
|
31577
31590
|
setSerie: setSerie,
|
31578
31591
|
setArticle: setArticle
|
31579
|
-
},
|
31580
|
-
initSerie:
|
31581
|
-
serieNo: serie.serieNo,
|
31582
|
-
serieId: serie._id
|
31583
|
-
}
|
31592
|
+
}, initSerie ? {
|
31593
|
+
initSerie: initSerie
|
31584
31594
|
} : {})
|
31585
31595
|
});
|
31586
31596
|
}, [catalogId, packageId, isApi2, serie, item, setSerie, setArticle]);
|
31597
|
+
var initSerie = useMemo(function () {
|
31598
|
+
if (serie) {
|
31599
|
+
return {
|
31600
|
+
serieNo: serie.serieNo,
|
31601
|
+
serieId: serie._id
|
31602
|
+
};
|
31603
|
+
}
|
31604
|
+
return undefined;
|
31605
|
+
}, [serie]);
|
31587
31606
|
useEffect(function () {
|
31588
31607
|
var _root$contentStore$ri;
|
31589
31608
|
var tools = [];
|
@@ -33369,20 +33388,53 @@ var RenamingTable = observer(function (_ref) {
|
|
33369
33388
|
packageId = _useModule.packageId,
|
33370
33389
|
apiConfig = _useModule.apiConfig,
|
33371
33390
|
selectedPackage = _useModule.selectedPackage,
|
33391
|
+
selectedItem = _useModule.selectedItem,
|
33392
|
+
setSelectedItem = _useModule.setSelectedItem,
|
33372
33393
|
selectedSerie = _useModule.selectedSerie,
|
33394
|
+
setSelectedSerie = _useModule.setSelectedSerie,
|
33373
33395
|
viewOnly = _useModule.viewOnly;
|
33374
33396
|
var baseConfiguration = useMemo(function () {
|
33375
33397
|
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t, viewOnly);
|
33376
33398
|
}, [selectedPackage, i18n.language]);
|
33377
|
-
useTools({
|
33378
|
-
|
33379
|
-
|
33380
|
-
|
33399
|
+
var _useTools = useTools({
|
33400
|
+
packageId: packageId,
|
33401
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
|
33402
|
+
setArticle: setSelectedItem,
|
33403
|
+
setSerie: setSelectedSerie,
|
33404
|
+
serie: selectedSerie,
|
33405
|
+
item: selectedItem
|
33406
|
+
}),
|
33407
|
+
updateConfigurator = _useTools.updateConfigurator;
|
33381
33408
|
var applicationData = useMemo(function () {
|
33382
33409
|
return {
|
33383
33410
|
packageId: packageId
|
33384
33411
|
};
|
33385
33412
|
}, [packageId]);
|
33413
|
+
var hooks = useMemo(function () {
|
33414
|
+
return {
|
33415
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
33416
|
+
var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
|
33417
|
+
switch (type) {
|
33418
|
+
case 'features':
|
33419
|
+
updateConfigurator({
|
33420
|
+
opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
|
33421
|
+
});
|
33422
|
+
break;
|
33423
|
+
case 'options':
|
33424
|
+
updateConfigurator({
|
33425
|
+
opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
|
33426
|
+
});
|
33427
|
+
break;
|
33428
|
+
case 'items':
|
33429
|
+
setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
|
33430
|
+
break;
|
33431
|
+
case 'series':
|
33432
|
+
setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
|
33433
|
+
break;
|
33434
|
+
}
|
33435
|
+
}
|
33436
|
+
};
|
33437
|
+
}, [updateConfigurator, type]);
|
33386
33438
|
var prevPreFilter = useRef();
|
33387
33439
|
var preFilter = useMemo(function () {
|
33388
33440
|
if (type === 'items' && selectedSerie) {
|
@@ -33452,7 +33504,8 @@ var RenamingTable = observer(function (_ref) {
|
|
33452
33504
|
gridId: 'renaming-grid_' + type,
|
33453
33505
|
applicationData: applicationData,
|
33454
33506
|
preFilter: preFilter,
|
33455
|
-
configuration: configuration
|
33507
|
+
configuration: configuration,
|
33508
|
+
hooks: hooks
|
33456
33509
|
})]
|
33457
33510
|
});
|
33458
33511
|
});
|
@@ -33935,11 +33988,44 @@ var ExclusivityTable = observer(function (_ref) {
|
|
33935
33988
|
organizationId = _useModule.organizationId,
|
33936
33989
|
selectedPackage = _useModule.selectedPackage,
|
33937
33990
|
selectedSerie = _useModule.selectedSerie,
|
33991
|
+
setSelectedSerie = _useModule.setSelectedSerie,
|
33992
|
+
setSelectedItem = _useModule.setSelectedItem,
|
33993
|
+
selectedItem = _useModule.selectedItem,
|
33938
33994
|
viewOnly = _useModule.viewOnly;
|
33939
|
-
useTools({
|
33940
|
-
|
33941
|
-
|
33942
|
-
|
33995
|
+
var _useTools = useTools({
|
33996
|
+
packageId: packageId,
|
33997
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
|
33998
|
+
setArticle: setSelectedItem,
|
33999
|
+
setSerie: setSelectedSerie,
|
34000
|
+
serie: selectedSerie,
|
34001
|
+
item: selectedItem
|
34002
|
+
}),
|
34003
|
+
updateConfigurator = _useTools.updateConfigurator;
|
34004
|
+
var hooks = useMemo(function () {
|
34005
|
+
return {
|
34006
|
+
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
34007
|
+
var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
|
34008
|
+
switch (type) {
|
34009
|
+
case 'efeatures':
|
34010
|
+
updateConfigurator({
|
34011
|
+
opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
|
34012
|
+
});
|
34013
|
+
break;
|
34014
|
+
case 'eoptions':
|
34015
|
+
updateConfigurator({
|
34016
|
+
opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
|
34017
|
+
});
|
34018
|
+
break;
|
34019
|
+
case 'eitems':
|
34020
|
+
setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
|
34021
|
+
break;
|
34022
|
+
case 'eseries':
|
34023
|
+
setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
|
34024
|
+
break;
|
34025
|
+
}
|
34026
|
+
}
|
34027
|
+
};
|
34028
|
+
}, [updateConfigurator, type]);
|
33943
34029
|
var apiInterface = useMemo(function () {
|
33944
34030
|
var patchId = '${_id}';
|
33945
34031
|
if (type === 'eitems') patchId = '${typeNo}';
|
@@ -34021,7 +34107,8 @@ var ExclusivityTable = observer(function (_ref) {
|
|
34021
34107
|
}), showTable && /*#__PURE__*/jsx(Spreadsheet, {
|
34022
34108
|
gridId: 'crud-grid_exclusivity_' + type,
|
34023
34109
|
applicationData: applicationData,
|
34024
|
-
configuration: configuration
|
34110
|
+
configuration: configuration,
|
34111
|
+
hooks: hooks
|
34025
34112
|
})]
|
34026
34113
|
});
|
34027
34114
|
});
|
@@ -34589,8 +34676,8 @@ var space = "space-T5Mkd";
|
|
34589
34676
|
var input$1 = "input-SK-Fo";
|
34590
34677
|
var addButton$1 = "addButton-AVN8Y";
|
34591
34678
|
var helpText = "helpText-QYQQF";
|
34592
|
-
var css_248z$
|
34593
|
-
styleInject(css_248z$
|
34679
|
+
var css_248z$e = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
|
34680
|
+
styleInject(css_248z$e);
|
34594
34681
|
|
34595
34682
|
function PriceFactorCellRenderer(props) {
|
34596
34683
|
var data = props.data,
|
@@ -34806,8 +34893,8 @@ var difference = "difference-xT9ZP";
|
|
34806
34893
|
var differencePositive = "differencePositive-hGhZO";
|
34807
34894
|
var differenceNegative = "differenceNegative-3CEZA";
|
34808
34895
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
34809
|
-
var css_248z$
|
34810
|
-
styleInject(css_248z$
|
34896
|
+
var css_248z$d = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
|
34897
|
+
styleInject(css_248z$d);
|
34811
34898
|
|
34812
34899
|
function PriceDisplayCellRenderer(props) {
|
34813
34900
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -34873,59 +34960,129 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
34873
34960
|
if (!(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie.pricefeaturegroups)) {
|
34874
34961
|
return [];
|
34875
34962
|
}
|
34876
|
-
var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (
|
34963
|
+
var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroupKey, i) {
|
34877
34964
|
var _selectedSerie$pricef2, _selectedSerie$pricef3;
|
34878
34965
|
return {
|
34879
|
-
id:
|
34880
|
-
displayText: (_selectedSerie$pricef2 = (_selectedSerie$pricef3 = selectedSerie.pricefeaturegroupsDisplayTexts) === null || _selectedSerie$pricef3 === void 0 || (_selectedSerie$pricef3 = _selectedSerie$pricef3[i]) === null || _selectedSerie$pricef3 === void 0 ? void 0 : _selectedSerie$pricef3[language.toUpperCase()]) !== null && _selectedSerie$pricef2 !== void 0 ? _selectedSerie$pricef2 :
|
34966
|
+
id: 'PRFG' + priceFeatureGroupKey,
|
34967
|
+
displayText: (_selectedSerie$pricef2 = (_selectedSerie$pricef3 = selectedSerie.pricefeaturegroupsDisplayTexts) === null || _selectedSerie$pricef3 === void 0 || (_selectedSerie$pricef3 = _selectedSerie$pricef3[i]) === null || _selectedSerie$pricef3 === void 0 ? void 0 : _selectedSerie$pricef3[language.toUpperCase()]) !== null && _selectedSerie$pricef2 !== void 0 ? _selectedSerie$pricef2 : priceFeatureGroupKey,
|
34881
34968
|
keys: [],
|
34882
34969
|
keysDisplayTexts: []
|
34883
34970
|
};
|
34884
34971
|
});
|
34885
|
-
(_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (
|
34886
|
-
var pfgSplit =
|
34887
|
-
var pfgId = pfgSplit[0]
|
34972
|
+
(_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceGroupKey, i) {
|
34973
|
+
var pfgSplit = priceGroupKey.split('_');
|
34974
|
+
var pfgId = pfgSplit[0];
|
34888
34975
|
var pfg = priceFeatureGroups.find(function (pfg) {
|
34889
34976
|
return pfg.id == pfgId;
|
34890
34977
|
});
|
34891
34978
|
if (pfg) {
|
34892
34979
|
var _selectedSerie$pricef5;
|
34893
|
-
pfg.keys.push(
|
34980
|
+
pfg.keys.push(priceGroupKey);
|
34894
34981
|
pfg.keysDisplayTexts.push((_selectedSerie$pricef5 = selectedSerie.pricefeaturegroupsKeysDisplayTexts) === null || _selectedSerie$pricef5 === void 0 || (_selectedSerie$pricef5 = _selectedSerie$pricef5[i]) === null || _selectedSerie$pricef5 === void 0 ? void 0 : _selectedSerie$pricef5[language.toUpperCase()]);
|
34895
34982
|
}
|
34896
34983
|
});
|
34897
34984
|
return priceFeatureGroups;
|
34898
34985
|
}
|
34899
34986
|
|
34900
|
-
var wrapper$3 = "wrapper-5t6RT";
|
34901
34987
|
var input = "input-leHam";
|
34902
34988
|
var disabled$1 = "disabled-Llkqu";
|
34903
|
-
var css_248z$
|
34904
|
-
styleInject(css_248z$
|
34989
|
+
var css_248z$c = ".input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
|
34990
|
+
styleInject(css_248z$c);
|
34905
34991
|
|
34992
|
+
var _excluded = ["onSave", "value"];
|
34906
34993
|
function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
34907
34994
|
function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
34908
|
-
function PriceFactorInput(
|
34909
|
-
|
34910
|
-
|
34911
|
-
|
34912
|
-
|
34913
|
-
|
34914
|
-
|
34915
|
-
|
34916
|
-
|
34917
|
-
|
34918
|
-
|
34919
|
-
|
34920
|
-
|
34995
|
+
function PriceFactorInput(_ref) {
|
34996
|
+
var _onSave = _ref.onSave,
|
34997
|
+
value = _ref.value,
|
34998
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
34999
|
+
var _useState = useState(value),
|
35000
|
+
_useState2 = _slicedToArray(_useState, 2),
|
35001
|
+
innerValue = _useState2[0],
|
35002
|
+
setInnerValue = _useState2[1];
|
35003
|
+
useEffect(function () {
|
35004
|
+
setInnerValue(value);
|
35005
|
+
}, [value]);
|
35006
|
+
return /*#__PURE__*/jsx(Tooltip$1, {
|
35007
|
+
title: props.tooltip,
|
35008
|
+
children: /*#__PURE__*/jsx("div", {
|
35009
|
+
className: classnames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
|
35010
|
+
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
|
35011
|
+
isNotInAGGrid: true,
|
35012
|
+
value: innerValue,
|
35013
|
+
onSave: function onSave(data, value) {
|
35014
|
+
setInnerValue(value);
|
35015
|
+
return _onSave(data, value);
|
35016
|
+
}
|
35017
|
+
}))
|
35018
|
+
})
|
34921
35019
|
});
|
34922
35020
|
}
|
34923
35021
|
|
34924
35022
|
var inputHeader = "input-header--4KDP";
|
34925
35023
|
var factorInput = "factor-input-MX85Z";
|
34926
|
-
var css_248z$
|
35024
|
+
var css_248z$b = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.input-header--4KDP .ag-header-group-cell-label {\n width: 100%;\n max-width: 250px;\n}\n\n.input-header--4KDP .ag-header-group-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z .price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z .price-factor-input:hover {\n border-color: #4096ff;\n}\n";
|
35025
|
+
styleInject(css_248z$b);
|
35026
|
+
|
35027
|
+
function PriceFactorHeaderComponent(_ref) {
|
35028
|
+
var onSave = _ref.onSave,
|
35029
|
+
onPriorityChange = _ref.onPriorityChange,
|
35030
|
+
priority = _ref.priority,
|
35031
|
+
priorityForced = _ref.priorityForced,
|
35032
|
+
value = _ref.value,
|
35033
|
+
inputTooltip = _ref.inputTooltip,
|
35034
|
+
checkboxTooltip = _ref.checkboxTooltip;
|
35035
|
+
var _useTranslation = useTranslation$1(),
|
35036
|
+
t = _useTranslation.t;
|
35037
|
+
var _useState = useState(priority || priorityForced),
|
35038
|
+
_useState2 = _slicedToArray(_useState, 2),
|
35039
|
+
innerChecked = _useState2[0],
|
35040
|
+
setInnerChecked = _useState2[1];
|
35041
|
+
useEffect(function () {
|
35042
|
+
setInnerChecked(priority || priorityForced);
|
35043
|
+
}, [priority, priorityForced]);
|
35044
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
35045
|
+
children: [/*#__PURE__*/jsx(PriceFactorInput, {
|
35046
|
+
onSave: onSave,
|
35047
|
+
value: value,
|
35048
|
+
className: factorInput,
|
35049
|
+
tooltip: t(inputTooltip)
|
35050
|
+
}), /*#__PURE__*/jsx(Tooltip$1, {
|
35051
|
+
title: t("".concat(checkboxTooltip, ".").concat(priorityForced ? 'forced' : priority ? 'true' : 'false')),
|
35052
|
+
children: /*#__PURE__*/jsx(Checkbox, {
|
35053
|
+
checked: innerChecked,
|
35054
|
+
disabled: priorityForced,
|
35055
|
+
onChange: function onChange(e) {
|
35056
|
+
setInnerChecked(e.target.checked);
|
35057
|
+
onPriorityChange(e.target.checked);
|
35058
|
+
}
|
35059
|
+
})
|
35060
|
+
})]
|
35061
|
+
});
|
35062
|
+
}
|
35063
|
+
|
35064
|
+
var root = "root-WJLKp";
|
35065
|
+
var contentWrapper$1 = "content-wrapper-Ki4Pt";
|
35066
|
+
var css_248z$a = ".root-WJLKp {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-Ki4Pt {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
|
34927
35067
|
styleInject(css_248z$a);
|
34928
35068
|
|
35069
|
+
function Setting(_ref) {
|
35070
|
+
var title = _ref.title,
|
35071
|
+
tooltip = _ref.tooltip,
|
35072
|
+
className = _ref.className,
|
35073
|
+
children = _ref.children;
|
35074
|
+
return /*#__PURE__*/jsxs("div", {
|
35075
|
+
className: classnames(root, className),
|
35076
|
+
children: [title, /*#__PURE__*/jsx(Tooltip$1, {
|
35077
|
+
title: tooltip,
|
35078
|
+
children: /*#__PURE__*/jsx("div", {
|
35079
|
+
className: contentWrapper$1,
|
35080
|
+
children: children
|
35081
|
+
})
|
35082
|
+
})]
|
35083
|
+
});
|
35084
|
+
}
|
35085
|
+
|
34929
35086
|
function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
34930
35087
|
function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
34931
35088
|
var Prices = observer(function (_ref) {
|
@@ -34938,8 +35095,85 @@ var Prices = observer(function (_ref) {
|
|
34938
35095
|
viewOnly = _ref.viewOnly;
|
34939
35096
|
var _useTranslation = useTranslation(),
|
34940
35097
|
t = _useTranslation.t;
|
35098
|
+
var root = useStore();
|
35099
|
+
var spreadsheetRef = useRef(null);
|
34941
35100
|
var _useEnricherContext = useEnricherContext(['pricelists']),
|
34942
35101
|
selectedSerie = _useEnricherContext.selectedSerie;
|
35102
|
+
var _useState = useState(false),
|
35103
|
+
_useState2 = _slicedToArray(_useState, 2),
|
35104
|
+
onlyManual = _useState2[0],
|
35105
|
+
setOnlyManual = _useState2[1];
|
35106
|
+
var updatePfgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
|
35107
|
+
if (!selectedSerie) return;
|
35108
|
+
|
35109
|
+
// Create copies of the objects to modify
|
35110
|
+
var newFactors = _objectSpread$c({}, pricelist.pfgPricefactors);
|
35111
|
+
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
35112
|
+
if (value.length === 0) {
|
35113
|
+
// Remove the empty price feature group
|
35114
|
+
delete serieFactors[priceFeatureGroupItem];
|
35115
|
+
|
35116
|
+
// If serie factors is now empty, remove the entire serie entry
|
35117
|
+
if (Object.keys(serieFactors).length === 0) {
|
35118
|
+
delete newFactors[selectedSerie.serieNo];
|
35119
|
+
} else {
|
35120
|
+
newFactors[selectedSerie.serieNo] = serieFactors;
|
35121
|
+
}
|
35122
|
+
|
35123
|
+
// If no more series exist, set pfgPricefactors to undefined
|
35124
|
+
if (Object.keys(newFactors).length === 0) {
|
35125
|
+
setNodeDataValue({
|
35126
|
+
pfgPricefactors: undefined
|
35127
|
+
});
|
35128
|
+
return;
|
35129
|
+
}
|
35130
|
+
} else {
|
35131
|
+
// Add/update the value
|
35132
|
+
serieFactors[priceFeatureGroupItem] = value;
|
35133
|
+
newFactors[selectedSerie.serieNo] = serieFactors;
|
35134
|
+
}
|
35135
|
+
setNodeDataValue({
|
35136
|
+
pfgPricefactors: newFactors
|
35137
|
+
});
|
35138
|
+
}, [selectedSerie]);
|
35139
|
+
var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
35140
|
+
var _newPriority$selected;
|
35141
|
+
if (!selectedSerie) return;
|
35142
|
+
var newPriority = _objectSpread$c({}, pricelist.pfgPricefactorsPriority);
|
35143
|
+
var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
|
35144
|
+
if (value === true) {
|
35145
|
+
seriesPriority.add(priceFeatureGroupItem);
|
35146
|
+
} else {
|
35147
|
+
seriesPriority["delete"](priceFeatureGroupItem);
|
35148
|
+
}
|
35149
|
+
if (seriesPriority.size === 0) {
|
35150
|
+
delete newPriority[selectedSerie.serieNo];
|
35151
|
+
} else {
|
35152
|
+
newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
|
35153
|
+
}
|
35154
|
+
setNodeDataValue({
|
35155
|
+
pfgPricefactorsPriority: newPriority
|
35156
|
+
});
|
35157
|
+
}, [selectedSerie]);
|
35158
|
+
var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
35159
|
+
var _newPriority$selected2;
|
35160
|
+
if (!selectedSerie) return;
|
35161
|
+
var newPriority = _objectSpread$c({}, pricelist.pgPricefactorsPriority);
|
35162
|
+
var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
|
35163
|
+
if (value === true) {
|
35164
|
+
seriesPriority.add(priceFeatureGroupItem);
|
35165
|
+
} else {
|
35166
|
+
seriesPriority["delete"](priceFeatureGroupItem);
|
35167
|
+
}
|
35168
|
+
if (seriesPriority.size === 0) {
|
35169
|
+
delete newPriority[selectedSerie.serieNo];
|
35170
|
+
} else {
|
35171
|
+
newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
|
35172
|
+
}
|
35173
|
+
setNodeDataValue({
|
35174
|
+
pgPricefactorsPriority: newPriority
|
35175
|
+
});
|
35176
|
+
}, [selectedSerie]);
|
34943
35177
|
var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
|
34944
35178
|
if (!selectedSerie) return;
|
34945
35179
|
|
@@ -35063,6 +35297,34 @@ var Prices = observer(function (_ref) {
|
|
35063
35297
|
seriePricefactors: newFactors
|
35064
35298
|
});
|
35065
35299
|
}, [pricelist, selectedSerie, setNodeDataValue]);
|
35300
|
+
function deleteManualPrices() {
|
35301
|
+
return _deleteManualPrices.apply(this, arguments);
|
35302
|
+
}
|
35303
|
+
function _deleteManualPrices() {
|
35304
|
+
_deleteManualPrices = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
35305
|
+
var _spreadsheetRef$curre;
|
35306
|
+
var api;
|
35307
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
35308
|
+
while (1) switch (_context8.prev = _context8.next) {
|
35309
|
+
case 0:
|
35310
|
+
api = new _default$d({
|
35311
|
+
type: 'AGGrid',
|
35312
|
+
apiInterface: {
|
35313
|
+
"delete": apiConfig.enricherService + "/packages/".concat(packageId, "/pricelists/").concat(pricelist._id, "/serie/").concat(selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo, "/prices/manual")
|
35314
|
+
}
|
35315
|
+
}, root);
|
35316
|
+
_context8.next = 3;
|
35317
|
+
return api["delete"]();
|
35318
|
+
case 3:
|
35319
|
+
(_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh();
|
35320
|
+
case 4:
|
35321
|
+
case "end":
|
35322
|
+
return _context8.stop();
|
35323
|
+
}
|
35324
|
+
}, _callee8);
|
35325
|
+
}));
|
35326
|
+
return _deleteManualPrices.apply(this, arguments);
|
35327
|
+
}
|
35066
35328
|
var applicationData = useMemo(function () {
|
35067
35329
|
return {
|
35068
35330
|
organizationId: organizationId,
|
@@ -35073,10 +35335,10 @@ var Prices = observer(function (_ref) {
|
|
35073
35335
|
}, [organizationId, packageId, selectedSerie, pricelist]);
|
35074
35336
|
var apiInterface = useMemo(function () {
|
35075
35337
|
return {
|
35076
|
-
read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
|
35338
|
+
read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices' + (onlyManual ? '?onlyManual=true' : ''),
|
35077
35339
|
update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
|
35078
35340
|
};
|
35079
|
-
}, []);
|
35341
|
+
}, [onlyManual]);
|
35080
35342
|
var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
|
35081
35343
|
var configuration = useMemo(function () {
|
35082
35344
|
var _priceFeatureGroups$m;
|
@@ -35174,15 +35436,56 @@ var Prices = observer(function (_ref) {
|
|
35174
35436
|
sortable: false,
|
35175
35437
|
editable: false
|
35176
35438
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
|
35177
|
-
var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
|
35439
|
+
var _pricelist$pfgPricefa, _pricelist$pfgPricefa2, _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
|
35178
35440
|
return {
|
35179
35441
|
headerName: priceFeatureGroup.displayText,
|
35442
|
+
headerClass: inputHeader,
|
35443
|
+
headerGroupComponentParams: {
|
35444
|
+
additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
|
35445
|
+
onSave: (/*#__PURE__*/function () {
|
35446
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
|
35447
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
35448
|
+
while (1) switch (_context3.prev = _context3.next) {
|
35449
|
+
case 0:
|
35450
|
+
updatePfgPriceFactor(priceFeatureGroup.id, value);
|
35451
|
+
case 1:
|
35452
|
+
case "end":
|
35453
|
+
return _context3.stop();
|
35454
|
+
}
|
35455
|
+
}, _callee3);
|
35456
|
+
}));
|
35457
|
+
return function (_x5, _x6) {
|
35458
|
+
return _ref4.apply(this, arguments);
|
35459
|
+
};
|
35460
|
+
}()),
|
35461
|
+
value: (_pricelist$pfgPricefa = pricelist.pfgPricefactors) === null || _pricelist$pfgPricefa === void 0 || (_pricelist$pfgPricefa = _pricelist$pfgPricefa[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pfgPricefa === void 0 ? void 0 : _pricelist$pfgPricefa[priceFeatureGroup.id],
|
35462
|
+
onPriorityChange: (/*#__PURE__*/function () {
|
35463
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(value) {
|
35464
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
35465
|
+
while (1) switch (_context4.prev = _context4.next) {
|
35466
|
+
case 0:
|
35467
|
+
updatePfgPriority(priceFeatureGroup.id, value);
|
35468
|
+
case 1:
|
35469
|
+
case "end":
|
35470
|
+
return _context4.stop();
|
35471
|
+
}
|
35472
|
+
}, _callee4);
|
35473
|
+
}));
|
35474
|
+
return function (_x7) {
|
35475
|
+
return _ref5.apply(this, arguments);
|
35476
|
+
};
|
35477
|
+
}()),
|
35478
|
+
priority: !!((_pricelist$pfgPricefa2 = pricelist.pfgPricefactorsPriority) !== null && _pricelist$pfgPricefa2 !== void 0 && (_pricelist$pfgPricefa2 = _pricelist$pfgPricefa2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pfgPricefa2 !== void 0 && _pricelist$pfgPricefa2.includes(priceFeatureGroup.id)),
|
35479
|
+
inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfg',
|
35480
|
+
checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfgPriority'
|
35481
|
+
})
|
35482
|
+
},
|
35180
35483
|
marryChildren: true,
|
35181
|
-
children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (
|
35182
|
-
var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
|
35484
|
+
children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceGroup, j) {
|
35485
|
+
var _priceFeatureGroup$ke3, _pricelist$pgPricefac, _pricelist$pgPricefac2, _pricelist$pfgPricefa3;
|
35183
35486
|
return {
|
35184
|
-
headerName:
|
35185
|
-
field: "prices.".concat(
|
35487
|
+
headerName: priceGroup,
|
35488
|
+
field: "prices.".concat(priceGroup),
|
35186
35489
|
editable: !viewOnly,
|
35187
35490
|
filter: false,
|
35188
35491
|
sortable: false,
|
@@ -35192,31 +35495,49 @@ var Prices = observer(function (_ref) {
|
|
35192
35495
|
cellRenderer: PriceDisplayCellRenderer,
|
35193
35496
|
cellRendererParams: {
|
35194
35497
|
commas: pricelist.commas,
|
35195
|
-
item:
|
35498
|
+
item: priceGroup
|
35196
35499
|
},
|
35197
|
-
additionalFields: ["origPrices.".concat(
|
35500
|
+
additionalFields: ["origPrices.".concat(priceGroup)],
|
35198
35501
|
headerClass: inputHeader,
|
35199
35502
|
headerComponentParams: {
|
35200
|
-
additionalElement: /*#__PURE__*/jsx(
|
35503
|
+
additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
|
35201
35504
|
onSave: (/*#__PURE__*/function () {
|
35202
|
-
var
|
35203
|
-
return _regeneratorRuntime.wrap(function
|
35204
|
-
while (1) switch (
|
35505
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(data, value) {
|
35506
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
35507
|
+
while (1) switch (_context5.prev = _context5.next) {
|
35205
35508
|
case 0:
|
35206
|
-
updatePgPriceFactor(
|
35509
|
+
updatePgPriceFactor(priceGroup, value);
|
35207
35510
|
case 1:
|
35208
35511
|
case "end":
|
35209
|
-
return
|
35512
|
+
return _context5.stop();
|
35210
35513
|
}
|
35211
|
-
},
|
35514
|
+
}, _callee5);
|
35212
35515
|
}));
|
35213
|
-
return function (
|
35214
|
-
return
|
35516
|
+
return function (_x8, _x9) {
|
35517
|
+
return _ref6.apply(this, arguments);
|
35215
35518
|
};
|
35216
35519
|
}()),
|
35217
|
-
value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[
|
35218
|
-
|
35219
|
-
|
35520
|
+
value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceGroup],
|
35521
|
+
onPriorityChange: (/*#__PURE__*/function () {
|
35522
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(value) {
|
35523
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
35524
|
+
while (1) switch (_context6.prev = _context6.next) {
|
35525
|
+
case 0:
|
35526
|
+
updatePgPriority(priceGroup, value);
|
35527
|
+
case 1:
|
35528
|
+
case "end":
|
35529
|
+
return _context6.stop();
|
35530
|
+
}
|
35531
|
+
}, _callee6);
|
35532
|
+
}));
|
35533
|
+
return function (_x10) {
|
35534
|
+
return _ref7.apply(this, arguments);
|
35535
|
+
};
|
35536
|
+
}()),
|
35537
|
+
priority: !!((_pricelist$pgPricefac2 = pricelist.pgPricefactorsPriority) !== null && _pricelist$pgPricefac2 !== void 0 && (_pricelist$pgPricefac2 = _pricelist$pgPricefac2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pgPricefac2 !== void 0 && _pricelist$pgPricefac2.includes(priceGroup)),
|
35538
|
+
priorityForced: !!((_pricelist$pfgPricefa3 = pricelist.pfgPricefactorsPriority) !== null && _pricelist$pfgPricefa3 !== void 0 && (_pricelist$pfgPricefa3 = _pricelist$pfgPricefa3[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pfgPricefa3 !== void 0 && _pricelist$pfgPricefa3.includes(priceFeatureGroup.id)),
|
35539
|
+
inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pg',
|
35540
|
+
checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pgPriority'
|
35220
35541
|
})
|
35221
35542
|
}
|
35222
35543
|
};
|
@@ -35275,26 +35596,55 @@ var Prices = observer(function (_ref) {
|
|
35275
35596
|
style: {
|
35276
35597
|
"float": 'right'
|
35277
35598
|
},
|
35278
|
-
children: [/*#__PURE__*/jsx(
|
35279
|
-
|
35599
|
+
children: [/*#__PURE__*/jsx(Setting, {
|
35600
|
+
title: t('backoffice.idmCatalog.prices.manual.title'),
|
35601
|
+
tooltip: t('backoffice.idmCatalog.prices.manual.tooltip'),
|
35602
|
+
children: /*#__PURE__*/jsx(Switch, {
|
35603
|
+
checked: onlyManual,
|
35604
|
+
onChange: function onChange(e) {
|
35605
|
+
return setOnlyManual(e);
|
35606
|
+
},
|
35607
|
+
disabled: !selectedSerie,
|
35608
|
+
checkedChildren: 'Manuelle',
|
35609
|
+
unCheckedChildren: 'Alle'
|
35610
|
+
})
|
35611
|
+
}), /*#__PURE__*/jsx(Setting, {
|
35612
|
+
tooltip: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
|
35613
|
+
children: /*#__PURE__*/jsx(Popconfirm, {
|
35614
|
+
rootClassName: "ag-custom-component-popup",
|
35615
|
+
title: t('backoffice.idmCatalog.prices.manual.delete.title'),
|
35616
|
+
description: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
|
35617
|
+
onConfirm: deleteManualPrices,
|
35618
|
+
okText: t('action.delete'),
|
35619
|
+
cancelText: t('backoffice.cancel'),
|
35620
|
+
children: /*#__PURE__*/jsx(Button, {
|
35621
|
+
danger: true,
|
35622
|
+
children: t('backoffice.idmCatalog.prices.manual.delete.title')
|
35623
|
+
})
|
35624
|
+
})
|
35625
|
+
}), /*#__PURE__*/jsx(Setting, {
|
35280
35626
|
title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
|
35281
|
-
|
35282
|
-
|
35283
|
-
|
35284
|
-
|
35285
|
-
|
35286
|
-
|
35287
|
-
|
35288
|
-
|
35289
|
-
|
35290
|
-
|
35291
|
-
|
35292
|
-
|
35293
|
-
|
35294
|
-
|
35295
|
-
|
35296
|
-
|
35297
|
-
|
35627
|
+
tooltip: t('backoffice.idmCatalog.prices.priceFactor.tooltip.series'),
|
35628
|
+
children: /*#__PURE__*/jsx(PriceFactorInput, {
|
35629
|
+
value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
|
35630
|
+
onSave: (/*#__PURE__*/function () {
|
35631
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_, value) {
|
35632
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
35633
|
+
while (1) switch (_context7.prev = _context7.next) {
|
35634
|
+
case 0:
|
35635
|
+
updateSeriePriceFactor(value);
|
35636
|
+
case 1:
|
35637
|
+
case "end":
|
35638
|
+
return _context7.stop();
|
35639
|
+
}
|
35640
|
+
}, _callee7);
|
35641
|
+
}));
|
35642
|
+
return function (_x11, _x12) {
|
35643
|
+
return _ref8.apply(this, arguments);
|
35644
|
+
};
|
35645
|
+
}()),
|
35646
|
+
disabled: !selectedSerie
|
35647
|
+
})
|
35298
35648
|
}), /*#__PURE__*/jsx(SeriesSelector$3, {
|
35299
35649
|
modules: ['pricelists'],
|
35300
35650
|
dataSet: "lookup"
|
@@ -35302,6 +35652,7 @@ var Prices = observer(function (_ref) {
|
|
35302
35652
|
})
|
35303
35653
|
})
|
35304
35654
|
}), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
|
35655
|
+
ref: spreadsheetRef,
|
35305
35656
|
gridId: 'crud-grid_enricherprices',
|
35306
35657
|
applicationData: applicationData,
|
35307
35658
|
configuration: configuration
|
@@ -35548,6 +35899,21 @@ var TablePriceList = observer(function () {
|
|
35548
35899
|
cellDataType: 'object',
|
35549
35900
|
editable: false,
|
35550
35901
|
hide: true
|
35902
|
+
}, {
|
35903
|
+
field: 'pfgPricefactors',
|
35904
|
+
cellDataType: 'object',
|
35905
|
+
editable: false,
|
35906
|
+
hide: true
|
35907
|
+
}, {
|
35908
|
+
field: 'pgPricefactorsPriority',
|
35909
|
+
cellDataType: 'object',
|
35910
|
+
editable: false,
|
35911
|
+
hide: true
|
35912
|
+
}, {
|
35913
|
+
field: 'pfgPricefactorsPriority',
|
35914
|
+
cellDataType: 'object',
|
35915
|
+
editable: false,
|
35916
|
+
hide: true
|
35551
35917
|
}]
|
35552
35918
|
};
|
35553
35919
|
}, [apiInterface, i18n.language, viewOnly]);
|
@@ -37457,18 +37823,19 @@ var TableItems = observer(function () {
|
|
37457
37823
|
apiConfig = _useModule.apiConfig,
|
37458
37824
|
organizationId = _useModule.organizationId;
|
37459
37825
|
useTools({
|
37460
|
-
|
37461
|
-
|
37462
|
-
|
37463
|
-
|
37464
|
-
|
37465
|
-
|
37826
|
+
catalogId: catalogId,
|
37827
|
+
serie: selectedSerie,
|
37828
|
+
setSerie: setSelectedSerie,
|
37829
|
+
setArticle: setSelectedItem,
|
37830
|
+
item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
|
37831
|
+
});
|
37466
37832
|
var hooks = useMemo(function () {
|
37467
37833
|
return {
|
37468
37834
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
37469
37835
|
// Check if all selections are from the same node
|
37470
37836
|
if (event.selection.length == 1) {
|
37471
|
-
|
37837
|
+
var _event$selection$;
|
37838
|
+
setSelectedItem((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
|
37472
37839
|
}
|
37473
37840
|
}
|
37474
37841
|
};
|
@@ -37501,9 +37868,9 @@ var TableSeries = observer(function () {
|
|
37501
37868
|
var _useTranslation = useTranslation(),
|
37502
37869
|
t = _useTranslation.t;
|
37503
37870
|
var _useModule = useModule(['series']),
|
37504
|
-
setGlobalSelectedSerie = _useModule.setSelectedSerie,
|
37505
37871
|
selectedCatalog = _useModule.selectedCatalog,
|
37506
37872
|
selectedGlobalSerie = _useModule.selectedSerie,
|
37873
|
+
setGlobalSelectedSerie = _useModule.setSelectedSerie,
|
37507
37874
|
catalogId = _useModule.catalogId,
|
37508
37875
|
organizationId = _useModule.organizationId,
|
37509
37876
|
apiConfig = _useModule.apiConfig;
|
@@ -37547,8 +37914,9 @@ var TableSeries = observer(function () {
|
|
37547
37914
|
return {
|
37548
37915
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
37549
37916
|
if (event.selection.length == 1) {
|
37550
|
-
|
37551
|
-
|
37917
|
+
var _event$selection$, _event$selection$2;
|
37918
|
+
setGlobalSelectedSerie((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
|
37919
|
+
setSelectedSerie((_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.data);
|
37552
37920
|
} else {
|
37553
37921
|
setSelectedSerie(null);
|
37554
37922
|
}
|
@@ -37884,8 +38252,9 @@ var TableFeatures = observer(function () {
|
|
37884
38252
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
37885
38253
|
// Check if all selections are from the same node
|
37886
38254
|
if (event.selection.length == 1) {
|
38255
|
+
var _event$selection$;
|
37887
38256
|
updateConfigurator({
|
37888
|
-
opt: event.selection[0]
|
38257
|
+
opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
|
37889
38258
|
});
|
37890
38259
|
}
|
37891
38260
|
}
|
@@ -38092,8 +38461,9 @@ var TableOptions = observer(function () {
|
|
38092
38461
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
38093
38462
|
// Check if all selections are from the same node
|
38094
38463
|
if (event.selection.length == 1) {
|
38464
|
+
var _event$selection$;
|
38095
38465
|
updateConfigurator({
|
38096
|
-
opv: event.selection[0]
|
38466
|
+
opv: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.optionKey
|
38097
38467
|
});
|
38098
38468
|
}
|
38099
38469
|
}
|
@@ -41725,7 +42095,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
41725
42095
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
41726
42096
|
var ArticleSelection = function ArticleSelection(_ref) {
|
41727
42097
|
var _ref$state = _ref.state,
|
41728
|
-
|
42098
|
+
itemList = _ref$state.itemList,
|
41729
42099
|
articleCodex = _ref$state.articleCodex,
|
41730
42100
|
setArticleCodex = _ref$state.setArticleCodex,
|
41731
42101
|
setDoReset = _ref$state.setDoReset,
|
@@ -41737,7 +42107,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
41737
42107
|
var groups = [];
|
41738
42108
|
var _loop = function _loop() {
|
41739
42109
|
var _mask$articles;
|
41740
|
-
var article =
|
42110
|
+
var article = itemList[i];
|
41741
42111
|
if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
|
41742
42112
|
if (!article.groupName) article.groupName = 'NONE';
|
41743
42113
|
var group = groups.find(function (g) {
|
@@ -41753,7 +42123,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
41753
42123
|
});
|
41754
42124
|
}
|
41755
42125
|
};
|
41756
|
-
for (var i = 0; i <
|
42126
|
+
for (var i = 0; i < itemList.length; i++) {
|
41757
42127
|
if (_loop()) continue;
|
41758
42128
|
}
|
41759
42129
|
return groups.map(function (g) {
|
@@ -41761,7 +42131,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
41761
42131
|
label: t('configuration.group.' + g.label, g.label)
|
41762
42132
|
});
|
41763
42133
|
});
|
41764
|
-
}, [
|
42134
|
+
}, [itemList]);
|
41765
42135
|
return /*#__PURE__*/jsxs("div", {
|
41766
42136
|
className: wrapper$1,
|
41767
42137
|
children: [/*#__PURE__*/jsx(Select$1, {
|
@@ -41808,26 +42178,30 @@ function useWysiwyg$1(_ref) {
|
|
41808
42178
|
setArticleCodex = _useState6[1];
|
41809
42179
|
var _useState7 = useState([]),
|
41810
42180
|
_useState8 = _slicedToArray(_useState7, 2),
|
41811
|
-
|
41812
|
-
|
42181
|
+
itemList = _useState8[0],
|
42182
|
+
setItemList = _useState8[1];
|
41813
42183
|
var _useState9 = useState({
|
41814
42184
|
catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
|
41815
42185
|
}),
|
41816
42186
|
_useState10 = _slicedToArray(_useState9, 2),
|
41817
|
-
|
41818
|
-
|
42187
|
+
serie = _useState10[0],
|
42188
|
+
setSerie = _useState10[1];
|
41819
42189
|
var _useState11 = useState([]),
|
41820
42190
|
_useState12 = _slicedToArray(_useState11, 2),
|
41821
|
-
|
41822
|
-
|
41823
|
-
var _useState13 = useState(),
|
42191
|
+
serieList = _useState12[0],
|
42192
|
+
setSerieList = _useState12[1];
|
42193
|
+
var _useState13 = useState(tool.parameters.catalogId),
|
41824
42194
|
_useState14 = _slicedToArray(_useState13, 2),
|
41825
|
-
|
41826
|
-
|
42195
|
+
catalogId = _useState14[0],
|
42196
|
+
setCatalogId = _useState14[1];
|
41827
42197
|
var _useState15 = useState(),
|
41828
42198
|
_useState16 = _slicedToArray(_useState15, 2),
|
41829
|
-
|
41830
|
-
|
42199
|
+
currentNav = _useState16[0],
|
42200
|
+
setCurrentNav = _useState16[1];
|
42201
|
+
var _useState17 = useState(),
|
42202
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
42203
|
+
doNavigate = _useState18[0],
|
42204
|
+
setDoNavigate = _useState18[1];
|
41831
42205
|
useEffect(function () {
|
41832
42206
|
if (!toolbar.hidden) setDoReset(true);
|
41833
42207
|
}, [toolbar.hidden]);
|
@@ -41890,7 +42264,8 @@ function useWysiwyg$1(_ref) {
|
|
41890
42264
|
});
|
41891
42265
|
case 3:
|
41892
42266
|
d = _context2.sent;
|
41893
|
-
|
42267
|
+
setCatalogId(d._id);
|
42268
|
+
_context2.next = 7;
|
41894
42269
|
return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
|
41895
42270
|
method: 'GET',
|
41896
42271
|
headers: _objectSpread$4({}, jwt ? {
|
@@ -41905,10 +42280,10 @@ function useWysiwyg$1(_ref) {
|
|
41905
42280
|
return undefined;
|
41906
42281
|
}
|
41907
42282
|
});
|
41908
|
-
case
|
42283
|
+
case 7:
|
41909
42284
|
s = _context2.sent;
|
41910
|
-
|
41911
|
-
case
|
42285
|
+
setSerieList(s.data);
|
42286
|
+
case 9:
|
41912
42287
|
case "end":
|
41913
42288
|
return _context2.stop();
|
41914
42289
|
}
|
@@ -41942,7 +42317,7 @@ function useWysiwyg$1(_ref) {
|
|
41942
42317
|
});
|
41943
42318
|
case 3:
|
41944
42319
|
l = _context3.sent;
|
41945
|
-
|
42320
|
+
setSerieList(l.data);
|
41946
42321
|
case 5:
|
41947
42322
|
case "end":
|
41948
42323
|
return _context3.stop();
|
@@ -41957,7 +42332,7 @@ function useWysiwyg$1(_ref) {
|
|
41957
42332
|
if (doReset) {
|
41958
42333
|
var _tool$elementProps, _tool$elementProps3;
|
41959
42334
|
if (currentNav) setDoNavigate(currentNav);
|
41960
|
-
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !
|
42335
|
+
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !serieList.length) {
|
41961
42336
|
var _tool$elementProps2;
|
41962
42337
|
if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
|
41963
42338
|
loadPackage(tool.parameters.packageId);
|
@@ -41976,20 +42351,20 @@ function useWysiwyg$1(_ref) {
|
|
41976
42351
|
}, [doReset]);
|
41977
42352
|
useEffect(function () {
|
41978
42353
|
setArticleCodex(undefined);
|
41979
|
-
if (
|
42354
|
+
if (serie !== null && serie !== void 0 && serie.catalogCodex) {
|
41980
42355
|
var _tool$parameters$pack;
|
41981
42356
|
setMask({
|
41982
|
-
catalogCodex:
|
42357
|
+
catalogCodex: serie.catalogCodex,
|
41983
42358
|
accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
|
41984
42359
|
});
|
41985
42360
|
}
|
41986
|
-
}, [
|
42361
|
+
}, [serie]);
|
41987
42362
|
useEffect(function () {
|
41988
42363
|
setDoReset(true);
|
41989
42364
|
setArticleCodex(undefined);
|
41990
|
-
|
41991
|
-
|
41992
|
-
|
42365
|
+
setSerie(undefined);
|
42366
|
+
setItemList([]);
|
42367
|
+
setSerieList([]);
|
41993
42368
|
}, [tool.parameters.catalogId, tool.parameters.packageId]);
|
41994
42369
|
var onEventCalled = /*#__PURE__*/function () {
|
41995
42370
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
|
@@ -42008,7 +42383,7 @@ function useWysiwyg$1(_ref) {
|
|
42008
42383
|
groupName: article.groupName
|
42009
42384
|
});
|
42010
42385
|
}
|
42011
|
-
|
42386
|
+
setItemList(articles);
|
42012
42387
|
if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
|
42013
42388
|
}
|
42014
42389
|
if (e.type === 'navigatedToOption') {
|
@@ -42115,20 +42490,21 @@ function useWysiwyg$1(_ref) {
|
|
42115
42490
|
};
|
42116
42491
|
}, []);
|
42117
42492
|
return {
|
42118
|
-
|
42119
|
-
|
42493
|
+
itemList: itemList,
|
42494
|
+
setItemList: setItemList,
|
42120
42495
|
articleCodex: articleCodex,
|
42121
42496
|
setArticleCodex: setArticleCodex,
|
42122
|
-
|
42123
|
-
|
42124
|
-
|
42125
|
-
|
42497
|
+
serieList: serieList,
|
42498
|
+
setSerieList: setSerieList,
|
42499
|
+
serie: serie,
|
42500
|
+
setSerie: setSerie,
|
42126
42501
|
settings: settings,
|
42127
42502
|
mask: mask,
|
42128
42503
|
doReset: doReset,
|
42129
42504
|
setDoReset: setDoReset,
|
42130
42505
|
doNavigate: doNavigate,
|
42131
|
-
setDoNavigate: setDoNavigate
|
42506
|
+
setDoNavigate: setDoNavigate,
|
42507
|
+
catalogId: catalogId
|
42132
42508
|
};
|
42133
42509
|
}
|
42134
42510
|
|
@@ -42180,27 +42556,27 @@ styleInject(css_248z$2);
|
|
42180
42556
|
|
42181
42557
|
var CatalogSelection = function CatalogSelection(_ref) {
|
42182
42558
|
var _ref$state = _ref.state,
|
42183
|
-
|
42184
|
-
|
42185
|
-
|
42559
|
+
serieList = _ref$state.serieList,
|
42560
|
+
serie = _ref$state.serie,
|
42561
|
+
setSerie = _ref$state.setSerie,
|
42186
42562
|
setArticleCodex = _ref$state.setArticleCodex,
|
42187
|
-
|
42563
|
+
setSerieProp = _ref.setSerie;
|
42188
42564
|
var _useTranslation = useTranslation(),
|
42189
42565
|
t = _useTranslation.t,
|
42190
42566
|
language = _useTranslation.i18n.language;
|
42191
42567
|
var options = useMemo(function () {
|
42192
42568
|
var groups = [];
|
42193
|
-
for (var i = 0; i <
|
42194
|
-
var c =
|
42569
|
+
for (var i = 0; i < serieList.length; i++) {
|
42570
|
+
var c = serieList[i];
|
42195
42571
|
groups.push({
|
42196
42572
|
value: c.serieNo.toString(),
|
42197
42573
|
label: c.seriesName[language.toUpperCase()]
|
42198
42574
|
});
|
42199
42575
|
}
|
42200
42576
|
return groups;
|
42201
|
-
}, [
|
42577
|
+
}, [serieList]);
|
42202
42578
|
var onChange = function onChange(val) {
|
42203
|
-
var cat =
|
42579
|
+
var cat = serieList.find(function (c) {
|
42204
42580
|
return c.serieNo.toString() == val;
|
42205
42581
|
});
|
42206
42582
|
var catalog = cat ? {
|
@@ -42208,15 +42584,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
|
|
42208
42584
|
serieId: cat._id,
|
42209
42585
|
accountId: cat.catalogId
|
42210
42586
|
} : undefined;
|
42211
|
-
|
42587
|
+
setSerie(catalog);
|
42212
42588
|
setArticleCodex(undefined);
|
42213
|
-
|
42589
|
+
setSerieProp === null || setSerieProp === void 0 || setSerieProp(cat);
|
42214
42590
|
};
|
42215
42591
|
return /*#__PURE__*/jsx("div", {
|
42216
42592
|
className: wrapper,
|
42217
42593
|
children: /*#__PURE__*/jsx(Select$1, {
|
42218
42594
|
placeholder: t('backoffice.configurator.serie.placeholder'),
|
42219
|
-
value:
|
42595
|
+
value: serie === null || serie === void 0 ? void 0 : serie.catalogCodex,
|
42220
42596
|
options: options,
|
42221
42597
|
onChange: onChange,
|
42222
42598
|
className: select
|
@@ -42228,7 +42604,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
|
|
42228
42604
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
42229
42605
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
42230
42606
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
42231
|
-
var _state$
|
42607
|
+
var _state$serie, _tool$parameters, _state$articleCodex, _state$serie$catalogC, _state$serie2, _state$mask2, _state$serie3, _state$serie$accountI, _state$serie4, _state$mask3;
|
42232
42608
|
var tool = _ref.tool,
|
42233
42609
|
toolbar = _ref.toolbar;
|
42234
42610
|
var _useDivaCore = useDivaCore(),
|
@@ -42247,17 +42623,32 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
42247
42623
|
}, [tool.parameters]);
|
42248
42624
|
useEffect(function () {
|
42249
42625
|
if (tool.elementProps.initSerie) {
|
42250
|
-
|
42251
|
-
|
42252
|
-
|
42253
|
-
|
42254
|
-
|
42626
|
+
if (tool.elementProps.useEnricherService) {
|
42627
|
+
var _state$serieList$find;
|
42628
|
+
var serie = {
|
42629
|
+
serieId: (_state$serieList$find = state.serieList.find(function (s) {
|
42630
|
+
return s.serieNo == tool.elementProps.initSerie.serieNo;
|
42631
|
+
})) === null || _state$serieList$find === void 0 ? void 0 : _state$serieList$find._id,
|
42632
|
+
catalogCodex: tool.elementProps.initSerie.serieNo.toString(),
|
42633
|
+
accountId: state.catalogId
|
42634
|
+
};
|
42635
|
+
if (JSON.stringify(state.serie) !== JSON.stringify(serie)) {
|
42636
|
+
state.setSerie(serie);
|
42637
|
+
state.setArticleCodex(undefined);
|
42638
|
+
}
|
42639
|
+
} else {
|
42640
|
+
state.setSerie({
|
42641
|
+
serieId: tool.elementProps.initSerie.serieId,
|
42642
|
+
catalogCodex: tool.elementProps.initSerie.serieNo.toString()
|
42643
|
+
});
|
42644
|
+
state.setArticleCodex(undefined);
|
42645
|
+
}
|
42255
42646
|
}
|
42256
42647
|
if (tool.elementProps.initItem) {
|
42257
42648
|
state.setArticleCodex(tool.elementProps.initItem);
|
42258
42649
|
}
|
42259
|
-
}, [tool.elementProps.initItem, tool.elementProps.initSerie]);
|
42260
|
-
if (!((_state$
|
42650
|
+
}, [tool.elementProps.initItem, tool.elementProps.initSerie, state.serieList]);
|
42651
|
+
if (!((_state$serie = state.serie) !== null && _state$serie !== void 0 && _state$serie.catalogCodex)) {
|
42261
42652
|
if (tool.elementProps.showCatalogSelection) {
|
42262
42653
|
return /*#__PURE__*/jsx(CatalogSelection$1, {
|
42263
42654
|
state: state,
|
@@ -42295,11 +42686,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
42295
42686
|
resetArticle: '',
|
42296
42687
|
disableToggle: '1',
|
42297
42688
|
startDivaNr: 'DIVA-000000',
|
42298
|
-
catalogCodex: (_state$
|
42299
|
-
}, (_state$
|
42300
|
-
serieId: state.
|
42689
|
+
catalogCodex: (_state$serie$catalogC = (_state$serie2 = state.serie) === null || _state$serie2 === void 0 ? void 0 : _state$serie2.catalogCodex) !== null && _state$serie$catalogC !== void 0 ? _state$serie$catalogC : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
|
42690
|
+
}, (_state$serie3 = state.serie) !== null && _state$serie3 !== void 0 && _state$serie3.serieId ? {
|
42691
|
+
serieId: state.serie.serieId
|
42301
42692
|
} : {}), {}, {
|
42302
|
-
accountGuid: (_state$
|
42693
|
+
accountGuid: (_state$serie$accountI = (_state$serie4 = state.serie) === null || _state$serie4 === void 0 ? void 0 : _state$serie4.accountId) !== null && _state$serie$accountI !== void 0 ? _state$serie$accountI : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
|
42303
42694
|
returnTo: 'DONT_SAVE_BASKET',
|
42304
42695
|
organizationId: organizationId,
|
42305
42696
|
no3DConnection: 'true'
|