@crystaldesign/diva-backoffice 25.8.0-beta.28 → 25.8.0-beta.3
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 +464 -1151
- 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 +6 -8
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/elements.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/types.d.ts +1 -4
- package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/SeriesSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts +4 -4
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts +2 -2
- package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.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/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/index.d.ts +1 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +0 -6
- 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 +0 -4
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts +1 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/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/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +3 -3
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +3 -4
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts +3 -4
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +3 -4
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +3 -4
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +3 -4
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
- package/package.json +9 -9
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts +0 -37
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +0 -8
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +0 -1
package/build/esm/index.js
CHANGED
@@ -119,11 +119,9 @@ import Descriptions$1 from 'antd/es/descriptions';
|
|
119
119
|
import { Spreadsheet as Spreadsheet$1 } from '@crystaldesign/spreadsheet';
|
120
120
|
import EditOutlined from '@ant-design/icons/lib/icons/EditOutlined';
|
121
121
|
import Checkbox$1 from 'antd/es/checkbox/Checkbox';
|
122
|
-
import WarningOutlined from '@ant-design/icons/lib/icons/WarningOutlined';
|
123
122
|
import Modal$3 from 'antd/es/modal';
|
124
123
|
import Spin$1 from 'antd/es/spin';
|
125
124
|
import Flex from 'antd/es/flex';
|
126
|
-
import { useTranslation as useTranslation$1 } from 'react-i18next';
|
127
125
|
import JSZip from 'jszip';
|
128
126
|
import { DropzoneAreaBase } from 'react-mui-dropzone';
|
129
127
|
import Switch$1 from 'antd/es/switch';
|
@@ -5484,11 +5482,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
5484
5482
|
field: 'pos',
|
5485
5483
|
sorter: 3,
|
5486
5484
|
filter: 'advanced'
|
5487
|
-
}, {
|
5488
|
-
title: t('backoffice.form.renderjob.items.functionType'),
|
5489
|
-
field: 'functionType',
|
5490
|
-
sorter: 3,
|
5491
|
-
filter: 'advanced'
|
5492
5485
|
}, {
|
5493
5486
|
title: t('backoffice.table.viewpoints.columns.title.rot'),
|
5494
5487
|
field: 'rot',
|
@@ -8170,31 +8163,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8170
8163
|
label: t('backoffice.form.organizationdetails.items.fromCurrentPriceHideCurrent'),
|
8171
8164
|
value: 'fromCurrentPriceHideCurrent'
|
8172
8165
|
}]
|
8173
|
-
}, {
|
8174
|
-
name: t('backoffice.subtitle.configurator'),
|
8175
|
-
type: 'subTitle',
|
8176
|
-
orientation: 'left',
|
8177
|
-
style: {
|
8178
|
-
marginBottom: '40px'
|
8179
|
-
},
|
8180
|
-
permission: 'backoffice_admin_organizations',
|
8181
|
-
hidden: function hidden(data) {
|
8182
|
-
return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
|
8183
|
-
}
|
8184
|
-
}, {
|
8185
|
-
name: 'privacyPolicyUrl',
|
8186
|
-
label: t('backoffice.form.organizationdetails.items.privacyPolicyUrl'),
|
8187
|
-
type: 'input',
|
8188
|
-
hidden: function hidden(data) {
|
8189
|
-
return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
|
8190
|
-
}
|
8191
|
-
}, {
|
8192
|
-
name: 'termsAndConditionsUrl',
|
8193
|
-
label: t('backoffice.form.organizationdetails.items.termsAndConditionsUrl'),
|
8194
|
-
type: 'input',
|
8195
|
-
hidden: function hidden(data) {
|
8196
|
-
return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
|
8197
|
-
}
|
8198
8166
|
}, {
|
8199
8167
|
name: t('backoffice.subtitle.advanced'),
|
8200
8168
|
type: 'subTitle',
|
@@ -8841,14 +8809,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8841
8809
|
}, {
|
8842
8810
|
name: 'mediaItemRefVideo',
|
8843
8811
|
hidden: true
|
8844
|
-
}, {
|
8845
|
-
name: 'loop',
|
8846
|
-
type: 'checkbox',
|
8847
|
-
label: t('backoffice.form.contentItem.loop'),
|
8848
|
-
doTranslate: false,
|
8849
|
-
hidden: function hidden(d) {
|
8850
|
-
return (d === null || d === void 0 ? void 0 : d.type) !== 'Video';
|
8851
|
-
}
|
8852
8812
|
}]
|
8853
8813
|
});
|
8854
8814
|
translationItems.push({
|
@@ -8907,12 +8867,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
8907
8867
|
label: t('backoffice.form.api2servers.items.url'),
|
8908
8868
|
doTranslate: true
|
8909
8869
|
});
|
8910
|
-
translationItems.push({
|
8911
|
-
name: [].concat(_toConsumableArray(p), ['loop']),
|
8912
|
-
type: 'checkbox',
|
8913
|
-
label: t('backoffice.form.contentItem.loop'),
|
8914
|
-
doTranslate: false
|
8915
|
-
});
|
8916
8870
|
break;
|
8917
8871
|
case 'Wrapper':
|
8918
8872
|
translationItems.push({
|
@@ -9148,12 +9102,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
9148
9102
|
label: t('backoffice.form.api2servers.items.url'),
|
9149
9103
|
doTranslate: true
|
9150
9104
|
});
|
9151
|
-
translationItems.push({
|
9152
|
-
name: [].concat(_toConsumableArray(p), ['loop']),
|
9153
|
-
type: 'checkbox',
|
9154
|
-
label: t('backoffice.form.contentItem.loop'),
|
9155
|
-
doTranslate: false
|
9156
|
-
});
|
9157
9105
|
break;
|
9158
9106
|
case 'Wrapper':
|
9159
9107
|
translationItems.push({
|
@@ -9354,13 +9302,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
9354
9302
|
name: 'divaNr',
|
9355
9303
|
label: t('backoffice.form.createorupdateviewpoints.items.divaNr'),
|
9356
9304
|
type: 'input'
|
9357
|
-
}, {
|
9358
|
-
name: 'functionType',
|
9359
|
-
label: t('backoffice.form.createorupdateviewpoints.items.functionType'),
|
9360
|
-
type: 'select',
|
9361
|
-
required: true,
|
9362
|
-
values: functionTypeValues,
|
9363
|
-
mode: 'single'
|
9364
9305
|
}]
|
9365
9306
|
},
|
9366
9307
|
FormCreateOrUpdateRenderPackages: {
|
@@ -9449,9 +9390,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
9449
9390
|
label: t('Presets'),
|
9450
9391
|
type: 'array',
|
9451
9392
|
items: [{
|
9452
|
-
type: 'divider',
|
9453
|
-
name: ''
|
9454
|
-
}, {
|
9455
9393
|
type: 'radio',
|
9456
9394
|
name: 'job',
|
9457
9395
|
label: t('Job'),
|
@@ -9502,13 +9440,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
9502
9440
|
}
|
9503
9441
|
return hidden;
|
9504
9442
|
}
|
9505
|
-
}, {
|
9506
|
-
name: 'functionType',
|
9507
|
-
label: 'FunctionType',
|
9508
|
-
type: 'select',
|
9509
|
-
required: true,
|
9510
|
-
values: functionTypeValues,
|
9511
|
-
mode: 'single'
|
9512
9443
|
}, {
|
9513
9444
|
name: 'preset',
|
9514
9445
|
label: t('Preset'),
|
@@ -9716,7 +9647,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
9716
9647
|
op: 'gt',
|
9717
9648
|
value: 3
|
9718
9649
|
},
|
9719
|
-
values:
|
9650
|
+
values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
|
9720
9651
|
}, {
|
9721
9652
|
name: 'priority',
|
9722
9653
|
label: t('backoffice.form.renderjob.items.priority'),
|
@@ -9976,7 +9907,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
9976
9907
|
value: 3
|
9977
9908
|
},
|
9978
9909
|
allowClear: true,
|
9979
|
-
values:
|
9910
|
+
values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
|
9980
9911
|
}, {
|
9981
9912
|
name: 'priority',
|
9982
9913
|
label: t('backoffice.form.renderjob.items.priority'),
|
@@ -10151,7 +10082,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
10151
10082
|
value: 3
|
10152
10083
|
},
|
10153
10084
|
allowClear: true,
|
10154
|
-
values:
|
10085
|
+
values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
|
10155
10086
|
}, {
|
10156
10087
|
name: 'priority',
|
10157
10088
|
label: t('backoffice.form.renderjob.items.priority'),
|
@@ -10293,7 +10224,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
10293
10224
|
value: 3
|
10294
10225
|
},
|
10295
10226
|
allowClear: true,
|
10296
|
-
values:
|
10227
|
+
values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
|
10297
10228
|
}, {
|
10298
10229
|
name: 'priority',
|
10299
10230
|
label: t('backoffice.form.renderjob.items.priority'),
|
@@ -10452,7 +10383,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
10452
10383
|
type: 'select',
|
10453
10384
|
mode: 'single',
|
10454
10385
|
allowClear: true,
|
10455
|
-
values:
|
10386
|
+
values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
|
10456
10387
|
}, {
|
10457
10388
|
name: 'priority',
|
10458
10389
|
label: t('backoffice.form.renderjob.items.priority'),
|
@@ -13315,7 +13246,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
13315
13246
|
}
|
13316
13247
|
};
|
13317
13248
|
}
|
13318
|
-
var functionTypeValues = ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV'];
|
13319
13249
|
|
13320
13250
|
function styleInject(css, ref) {
|
13321
13251
|
if ( ref === void 0 ) ref = {};
|
@@ -13350,8 +13280,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
13350
13280
|
var navOverlay = "nav-overlay-rKJNC";
|
13351
13281
|
var navSettings = "nav-settings-82cjv";
|
13352
13282
|
var menuLabel = "menu-label-4dXQk";
|
13353
|
-
var css_248z$
|
13354
|
-
styleInject(css_248z$
|
13283
|
+
var css_248z$x = ".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";
|
13284
|
+
styleInject(css_248z$x);
|
13355
13285
|
|
13356
13286
|
function MenuLabel (_ref) {
|
13357
13287
|
var disabled = _ref.disabled,
|
@@ -17074,7 +17004,7 @@ var JsonEditor$2 = function JsonEditor(_ref) {
|
|
17074
17004
|
});
|
17075
17005
|
};
|
17076
17006
|
|
17077
|
-
var _excluded$
|
17007
|
+
var _excluded$3 = ["key", "name"];
|
17078
17008
|
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; }
|
17079
17009
|
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; }
|
17080
17010
|
var FormList$2 = function FormList(_ref) {
|
@@ -17110,7 +17040,7 @@ var FormList$2 = function FormList(_ref) {
|
|
17110
17040
|
children: [fields.map(function (_ref3) {
|
17111
17041
|
var key = _ref3.key,
|
17112
17042
|
name = _ref3.name,
|
17113
|
-
restField = _objectWithoutProperties(_ref3, _excluded$
|
17043
|
+
restField = _objectWithoutProperties(_ref3, _excluded$3);
|
17114
17044
|
return /*#__PURE__*/jsxs("div", {
|
17115
17045
|
id: key.toString(),
|
17116
17046
|
style: {
|
@@ -17306,8 +17236,8 @@ var Result = function Result(_ref) {
|
|
17306
17236
|
|
17307
17237
|
var success = "success-tRJ7j";
|
17308
17238
|
var error = "error-MtAFB";
|
17309
|
-
var css_248z$
|
17310
|
-
styleInject(css_248z$
|
17239
|
+
var css_248z$w = ".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";
|
17240
|
+
styleInject(css_248z$w);
|
17311
17241
|
|
17312
17242
|
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";
|
17313
17243
|
|
@@ -17369,10 +17299,10 @@ var CustomButton = function CustomButton(_ref) {
|
|
17369
17299
|
};
|
17370
17300
|
var CustomButton$1 = observer(CustomButton);
|
17371
17301
|
|
17372
|
-
var wrapper$
|
17302
|
+
var wrapper$7 = "wrapper-GVe2h";
|
17373
17303
|
var buttonGroup = "button-group-GYt-T";
|
17374
|
-
var css_248z$
|
17375
|
-
styleInject(css_248z$
|
17304
|
+
var css_248z$v = ".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";
|
17305
|
+
styleInject(css_248z$v);
|
17376
17306
|
|
17377
17307
|
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; }
|
17378
17308
|
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; }
|
@@ -17386,7 +17316,7 @@ var SubTitle = function SubTitle(_ref) {
|
|
17386
17316
|
orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
|
17387
17317
|
style: _objectSpread$T({}, item.style),
|
17388
17318
|
children: /*#__PURE__*/jsxs("div", {
|
17389
|
-
className: wrapper$
|
17319
|
+
className: wrapper$7,
|
17390
17320
|
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) {
|
17391
17321
|
return /*#__PURE__*/jsx("div", {
|
17392
17322
|
className: buttonGroup,
|
@@ -17545,29 +17475,14 @@ function useSelectSimpleData (_ref) {
|
|
17545
17475
|
});
|
17546
17476
|
return selected.value;
|
17547
17477
|
}, [selected]);
|
17548
|
-
var setLoadedOptions = function setLoadedOptions(options) {
|
17549
|
-
var _options$;
|
17550
|
-
setOptions(options);
|
17551
|
-
if (value && options) {
|
17552
|
-
LOG$a.debug('value changed', toJS(value), toJS(options));
|
17553
|
-
var _selected = findByValue(value, options, selectMapping);
|
17554
|
-
var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
|
17555
|
-
return item.value;
|
17556
|
-
}) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
|
17557
|
-
onSelectionChanged(selectedValues, _selected);
|
17558
|
-
} else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
|
17559
|
-
onSelectionChanged(options[0].value, options[0]);
|
17560
|
-
}
|
17561
|
-
};
|
17562
17478
|
useEffect(function () {
|
17563
17479
|
if (configuredOptions) {
|
17564
17480
|
if (apiHandler.canReadList) LOG$a.warn('If options are provided, apiInterface will not be used');
|
17565
|
-
|
17481
|
+
setOptions(configuredOptions);
|
17566
17482
|
setLoading(false);
|
17567
17483
|
return;
|
17568
17484
|
}
|
17569
|
-
if (
|
17570
|
-
setLoadedOptions(sharedState.options);
|
17485
|
+
if (options) {
|
17571
17486
|
setLoading(false);
|
17572
17487
|
return;
|
17573
17488
|
}
|
@@ -17579,11 +17494,25 @@ function useSelectSimpleData (_ref) {
|
|
17579
17494
|
var options = data.data.map(function (item) {
|
17580
17495
|
return parseDataEntry(item, selectMapping);
|
17581
17496
|
});
|
17582
|
-
|
17497
|
+
setOptions(options);
|
17583
17498
|
})["finally"](function () {
|
17584
17499
|
setLoading(false);
|
17585
17500
|
});
|
17586
17501
|
}, []);
|
17502
|
+
useEffect(function () {
|
17503
|
+
var _options$;
|
17504
|
+
// set the selected option only after the options are loaded
|
17505
|
+
if (value && options) {
|
17506
|
+
LOG$a.debug('value changed', value);
|
17507
|
+
var _selected = findByValue(value, options, selectMapping);
|
17508
|
+
var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
|
17509
|
+
return item.value;
|
17510
|
+
}) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
|
17511
|
+
onSelectionChanged(selectedValues, _selected);
|
17512
|
+
} else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
|
17513
|
+
onSelectionChanged(options[0].value, options[0]);
|
17514
|
+
}
|
17515
|
+
}, [value, options]);
|
17587
17516
|
var onSelectionChanged = function onSelectionChanged(value, option) {
|
17588
17517
|
setSelected(option);
|
17589
17518
|
onChange === null || onChange === void 0 || onChange(parseReturnData(option, selectMapping));
|
@@ -17648,11 +17577,11 @@ function parseReturnData(options, selectMapping) {
|
|
17648
17577
|
return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
|
17649
17578
|
}
|
17650
17579
|
|
17651
|
-
var wrapper$
|
17652
|
-
var css_248z$
|
17653
|
-
styleInject(css_248z$
|
17580
|
+
var wrapper$6 = "wrapper-4xyke";
|
17581
|
+
var css_248z$u = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
17582
|
+
styleInject(css_248z$u);
|
17654
17583
|
|
17655
|
-
var _excluded$
|
17584
|
+
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
|
17656
17585
|
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; }
|
17657
17586
|
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; }
|
17658
17587
|
var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
@@ -17666,7 +17595,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17666
17595
|
autoSelectFirst = _ref.autoSelectFirst,
|
17667
17596
|
title = _ref.title,
|
17668
17597
|
sharedState = _ref.sharedState,
|
17669
|
-
selectProps = _objectWithoutProperties(_ref, _excluded$
|
17598
|
+
selectProps = _objectWithoutProperties(_ref, _excluded$2);
|
17670
17599
|
var state = useSelectSimpleData({
|
17671
17600
|
apiInterface: apiInterface,
|
17672
17601
|
selectMapping: selectMapping,
|
@@ -17680,7 +17609,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
|
|
17680
17609
|
});
|
17681
17610
|
return /*#__PURE__*/jsxs("div", {
|
17682
17611
|
ref: ref,
|
17683
|
-
className: classnames(title ? wrapper$
|
17612
|
+
className: classnames(title ? wrapper$6 : undefined),
|
17684
17613
|
children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
|
17685
17614
|
showSearch: search,
|
17686
17615
|
loading: state.loading,
|
@@ -18534,8 +18463,8 @@ var customSelect = "custom-select-ESUJX";
|
|
18534
18463
|
var customSelectOption = "custom-select-option-dUA7N";
|
18535
18464
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
18536
18465
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
18537
|
-
var css_248z$
|
18538
|
-
styleInject(css_248z$
|
18466
|
+
var css_248z$t = ".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";
|
18467
|
+
styleInject(css_248z$t);
|
18539
18468
|
|
18540
18469
|
var Selector = function Selector(_ref) {
|
18541
18470
|
var items = _ref.items,
|
@@ -19079,8 +19008,8 @@ function useSelectData (_ref) {
|
|
19079
19008
|
};
|
19080
19009
|
}
|
19081
19010
|
|
19082
|
-
var css_248z$
|
19083
|
-
styleInject(css_248z$
|
19011
|
+
var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
19012
|
+
styleInject(css_248z$s);
|
19084
19013
|
|
19085
19014
|
var SelectWrapper = function SelectWrapper(_ref) {
|
19086
19015
|
var onChange = _ref.onChange,
|
@@ -19159,11 +19088,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
|
|
19159
19088
|
};
|
19160
19089
|
var Select = observer(SelectWrapper);
|
19161
19090
|
|
19162
|
-
var wrapper$
|
19091
|
+
var wrapper$5 = "wrapper-WStAk";
|
19163
19092
|
var headerWrapper = "header-wrapper-gWQuH";
|
19164
19093
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
19165
|
-
var css_248z$
|
19166
|
-
styleInject(css_248z$
|
19094
|
+
var css_248z$r = ".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";
|
19095
|
+
styleInject(css_248z$r);
|
19167
19096
|
|
19168
19097
|
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; }
|
19169
19098
|
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; }
|
@@ -19367,7 +19296,7 @@ var Translation = function Translation(_ref) {
|
|
19367
19296
|
_onChange = _useTranslationHook.onChange,
|
19368
19297
|
autoTranslate = _useTranslationHook.autoTranslate;
|
19369
19298
|
return /*#__PURE__*/jsxs("div", {
|
19370
|
-
className: wrapper$
|
19299
|
+
className: wrapper$5,
|
19371
19300
|
children: [/*#__PURE__*/jsxs("div", {
|
19372
19301
|
className: headerWrapper,
|
19373
19302
|
children: [/*#__PURE__*/jsx("div", {
|
@@ -19946,8 +19875,6 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
19946
19875
|
item: item,
|
19947
19876
|
data: state.data
|
19948
19877
|
});
|
19949
|
-
case 'divider':
|
19950
|
-
return /*#__PURE__*/jsx(Divider, {});
|
19951
19878
|
case 'apiKey':
|
19952
19879
|
return /*#__PURE__*/jsx(ApiKey, {
|
19953
19880
|
value: item.value,
|
@@ -21211,8 +21138,8 @@ var skeleton = "skeleton--xCI0";
|
|
21211
21138
|
var filterField = "filterField-1kU1O";
|
21212
21139
|
var parentScroll = "parent-scroll-GmaL9";
|
21213
21140
|
var parent = "parent-NZJ3S";
|
21214
|
-
var css_248z$
|
21215
|
-
styleInject(css_248z$
|
21141
|
+
var css_248z$q = ".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";
|
21142
|
+
styleInject(css_248z$q);
|
21216
21143
|
|
21217
21144
|
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; }
|
21218
21145
|
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; }
|
@@ -22457,8 +22384,8 @@ var newscroller = "newscroller-INKeD";
|
|
22457
22384
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
22458
22385
|
var itemTitle = "item-title--BTvC";
|
22459
22386
|
var itemDesc = "item-desc-DBiiF";
|
22460
|
-
var css_248z$
|
22461
|
-
styleInject(css_248z$
|
22387
|
+
var css_248z$p = ".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";
|
22388
|
+
styleInject(css_248z$p);
|
22462
22389
|
|
22463
22390
|
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; }
|
22464
22391
|
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; }
|
@@ -23870,8 +23797,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
23870
23797
|
var preview = "preview-9wK81";
|
23871
23798
|
var previewButton = "preview-button-vupuG";
|
23872
23799
|
var editButton = "edit-button-m6r3M";
|
23873
|
-
var css_248z$
|
23874
|
-
styleInject(css_248z$
|
23800
|
+
var css_248z$o = ".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";
|
23801
|
+
styleInject(css_248z$o);
|
23875
23802
|
|
23876
23803
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
23877
23804
|
var id = _ref.id,
|
@@ -24650,19 +24577,19 @@ function reducer(state, action) {
|
|
24650
24577
|
|
24651
24578
|
var grid = "grid-sGemi";
|
24652
24579
|
var textWrapper = "text-wrapper-xsPXE";
|
24653
|
-
var css_248z$
|
24654
|
-
styleInject(css_248z$
|
24580
|
+
var css_248z$n = ".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";
|
24581
|
+
styleInject(css_248z$n);
|
24655
24582
|
|
24656
|
-
var wrapper$
|
24583
|
+
var wrapper$4 = "wrapper-p-gR3";
|
24657
24584
|
var container$6 = "container-DoZqe";
|
24658
|
-
var css_248z$
|
24659
|
-
styleInject(css_248z$
|
24585
|
+
var css_248z$m = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
24586
|
+
styleInject(css_248z$m);
|
24660
24587
|
|
24661
24588
|
var ToolTipInfo = function ToolTipInfo(props) {
|
24662
24589
|
var _useTranslation = useTranslation(),
|
24663
24590
|
t = _useTranslation.t;
|
24664
24591
|
return /*#__PURE__*/jsx("div", {
|
24665
|
-
className: wrapper$
|
24592
|
+
className: wrapper$4,
|
24666
24593
|
children: /*#__PURE__*/jsx(Card, {
|
24667
24594
|
title: t('backoffice.tooltipinfo.useroverview'),
|
24668
24595
|
styles: {
|
@@ -24859,8 +24786,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
24859
24786
|
var small = "small-NY1-k";
|
24860
24787
|
var medium = "medium---QcO";
|
24861
24788
|
var big = "big--E39S";
|
24862
|
-
var css_248z$
|
24863
|
-
styleInject(css_248z$
|
24789
|
+
var css_248z$l = ".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";
|
24790
|
+
styleInject(css_248z$l);
|
24864
24791
|
|
24865
24792
|
var MediaUpload = observer(function (_ref) {
|
24866
24793
|
var id = _ref.id;
|
@@ -24986,8 +24913,8 @@ var editableRow = "editable-row-9BEHi";
|
|
24986
24913
|
var checkbox = "checkbox-H7R-w";
|
24987
24914
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
24988
24915
|
var contentWidth = "content-width-hGyVI";
|
24989
|
-
var css_248z$
|
24990
|
-
styleInject(css_248z$
|
24916
|
+
var css_248z$k = ".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";
|
24917
|
+
styleInject(css_248z$k);
|
24991
24918
|
|
24992
24919
|
function BooleanCell (_ref) {
|
24993
24920
|
var children = _ref.children,
|
@@ -25668,7 +25595,7 @@ function LinkCell (_ref) {
|
|
25668
25595
|
}
|
25669
25596
|
}
|
25670
25597
|
|
25671
|
-
var _excluded$
|
25598
|
+
var _excluded$1 = ["index"],
|
25672
25599
|
_excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
|
25673
25600
|
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; }
|
25674
25601
|
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; }
|
@@ -25676,7 +25603,7 @@ var LOG$4 = getLogger('Backoffice', 'CellRenderer');
|
|
25676
25603
|
var EditableContext = /*#__PURE__*/React.createContext(null);
|
25677
25604
|
var CustomRow = function CustomRow(_ref) {
|
25678
25605
|
_ref.index;
|
25679
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
25606
|
+
var props = _objectWithoutProperties(_ref, _excluded$1);
|
25680
25607
|
var _Form$useForm = Form$1.useForm(),
|
25681
25608
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
25682
25609
|
form = _Form$useForm2[0];
|
@@ -25976,8 +25903,8 @@ function useAGHistogram (_ref) {
|
|
25976
25903
|
var container$5 = "container-2r-OJ";
|
25977
25904
|
var column1 = "column1-9viTK";
|
25978
25905
|
var spinner = "spinner-00VcK";
|
25979
|
-
var css_248z$
|
25980
|
-
styleInject(css_248z$
|
25906
|
+
var css_248z$j = ".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";
|
25907
|
+
styleInject(css_248z$j);
|
25981
25908
|
|
25982
25909
|
var Panel = Collapse.Panel;
|
25983
25910
|
function AGHistogram (_ref) {
|
@@ -27565,7 +27492,7 @@ function filter(f, data) {
|
|
27565
27492
|
}) : result;
|
27566
27493
|
}
|
27567
27494
|
|
27568
|
-
var _excluded
|
27495
|
+
var _excluded = ["_id"];
|
27569
27496
|
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; }
|
27570
27497
|
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; }
|
27571
27498
|
function useTableData$1 (_ref) {
|
@@ -27649,7 +27576,7 @@ function useTableData$1 (_ref) {
|
|
27649
27576
|
setState(newState);
|
27650
27577
|
var formData = new FormData();
|
27651
27578
|
processedDataRow._id;
|
27652
|
-
var value = _objectWithoutProperties(processedDataRow, _excluded
|
27579
|
+
var value = _objectWithoutProperties(processedDataRow, _excluded);
|
27653
27580
|
apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
|
27654
27581
|
filterContex: filterContex,
|
27655
27582
|
value: JSON.stringify([value])
|
@@ -28955,8 +28882,8 @@ var loader = "loader-LaXZy";
|
|
28955
28882
|
var flex = "flex-yQdda";
|
28956
28883
|
var bar = "bar-Y663f";
|
28957
28884
|
var value = "value-FCA-6";
|
28958
|
-
var css_248z$
|
28959
|
-
styleInject(css_248z$
|
28885
|
+
var css_248z$i = ".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";
|
28886
|
+
styleInject(css_248z$i);
|
28960
28887
|
|
28961
28888
|
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; }
|
28962
28889
|
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; }
|
@@ -29901,8 +29828,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
29901
29828
|
var supplier = "supplier-8sm0I";
|
29902
29829
|
var dealer = "dealer-xgnku";
|
29903
29830
|
var association = "association-b8uVW";
|
29904
|
-
var css_248z$
|
29905
|
-
styleInject(css_248z$
|
29831
|
+
var css_248z$h = ".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";
|
29832
|
+
styleInject(css_248z$h);
|
29906
29833
|
|
29907
29834
|
function getColorClass(data) {
|
29908
29835
|
switch (data.type) {
|
@@ -30135,8 +30062,8 @@ var openClass = "open-class--gGXs";
|
|
30135
30062
|
var breadcrumb = "breadcrumb-Z0VvH";
|
30136
30063
|
var selected = "selected-w-sfW";
|
30137
30064
|
var disabled$2 = "disabled-0nado";
|
30138
|
-
var css_248z$
|
30139
|
-
styleInject(css_248z$
|
30065
|
+
var css_248z$g = ".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";
|
30066
|
+
styleInject(css_248z$g);
|
30140
30067
|
|
30141
30068
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
30142
30069
|
var open = _ref.open,
|
@@ -30169,8 +30096,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
30169
30096
|
|
30170
30097
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
30171
30098
|
var toolbarLeft = "toolbar-left-X9WRo";
|
30172
|
-
var css_248z$
|
30173
|
-
styleInject(css_248z$
|
30099
|
+
var css_248z$f = ".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";
|
30100
|
+
styleInject(css_248z$f);
|
30174
30101
|
|
30175
30102
|
var Legend = function Legend(props) {
|
30176
30103
|
return /*#__PURE__*/jsx(List$1, {
|
@@ -30224,8 +30151,8 @@ var Legend = function Legend(props) {
|
|
30224
30151
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
30225
30152
|
var mask = "mask-ssagp";
|
30226
30153
|
var transformWrapper = "transform-wrapper--8t0v";
|
30227
|
-
var css_248z$
|
30228
|
-
styleInject(css_248z$
|
30154
|
+
var css_248z$e = ".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";
|
30155
|
+
styleInject(css_248z$e);
|
30229
30156
|
|
30230
30157
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
30231
30158
|
var _children = _ref.children,
|
@@ -31131,7 +31058,6 @@ var useEnricherContext = function useEnricherContext() {
|
|
31131
31058
|
exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
|
31132
31059
|
exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
|
31133
31060
|
selectedSerie: undefined,
|
31134
|
-
selectedItem: undefined,
|
31135
31061
|
selectedFeature: undefined
|
31136
31062
|
};
|
31137
31063
|
return root.contextStore.getContext('enricher', initialState);
|
@@ -31143,11 +31069,6 @@ var useEnricherContext = function useEnricherContext() {
|
|
31143
31069
|
selectedSerie: serie
|
31144
31070
|
});
|
31145
31071
|
}, [root.contextStore]);
|
31146
|
-
var setSelectedItem = useCallback(function (item) {
|
31147
|
-
root.contextStore.updateContext('enricher', {
|
31148
|
-
selectedItem: item
|
31149
|
-
});
|
31150
|
-
}, [root.contextStore]);
|
31151
31072
|
var setSelectedFeature = useCallback(function (feature) {
|
31152
31073
|
root.contextStore.updateContext('enricher', {
|
31153
31074
|
selectedFeature: feature
|
@@ -31183,10 +31104,7 @@ var useEnricherContext = function useEnricherContext() {
|
|
31183
31104
|
root.contextStore.updateContext('enricher', {
|
31184
31105
|
selectedPackage: newPackage,
|
31185
31106
|
packageId: newPackage._id,
|
31186
|
-
viewOnly: newPackage.organizationId !== root.dataStore.organizationId,
|
31187
|
-
//if the package is not created in the current organization, it can only be viewed
|
31188
31107
|
selectedSerie: undefined,
|
31189
|
-
selectedItem: undefined,
|
31190
31108
|
selectedFeature: undefined,
|
31191
31109
|
lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
|
31192
31110
|
lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
|
@@ -31214,7 +31132,6 @@ var useEnricherContext = function useEnricherContext() {
|
|
31214
31132
|
// Return context + handlers
|
31215
31133
|
return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
|
31216
31134
|
setSelectedSerie: setSelectedSerie,
|
31217
|
-
setSelectedItem: setSelectedItem,
|
31218
31135
|
setSelectedFeature: setSelectedFeature,
|
31219
31136
|
setSelectedPackage: setSelectedPackage
|
31220
31137
|
});
|
@@ -31233,7 +31150,14 @@ var PackageSelector = function PackageSelector(_ref) {
|
|
31233
31150
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
31234
31151
|
sharedState: packageSelectorState,
|
31235
31152
|
apiInterface: {
|
31236
|
-
read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi
|
31153
|
+
read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi&filter=organizationId==\"").concat(organizationId, "\"")
|
31154
|
+
},
|
31155
|
+
apiMapping: {
|
31156
|
+
type: 'query',
|
31157
|
+
map: [{
|
31158
|
+
globalValue: 'organizationId',
|
31159
|
+
targetField: 'organizationId'
|
31160
|
+
}]
|
31237
31161
|
},
|
31238
31162
|
selectMapping: {
|
31239
31163
|
label: '${name}',
|
@@ -31263,11 +31187,7 @@ function useModule$1 (currentModules) {
|
|
31263
31187
|
setSelectedPackage = _useEnricherContext.setSelectedPackage,
|
31264
31188
|
organizationId = _useEnricherContext.organizationId,
|
31265
31189
|
selectedSerie = _useEnricherContext.selectedSerie,
|
31266
|
-
selectedFeature = _useEnricherContext.selectedFeature
|
31267
|
-
selectedItem = _useEnricherContext.selectedItem,
|
31268
|
-
setSelectedSerie = _useEnricherContext.setSelectedSerie,
|
31269
|
-
setSelectedItem = _useEnricherContext.setSelectedItem,
|
31270
|
-
viewOnly = _useEnricherContext.viewOnly;
|
31190
|
+
selectedFeature = _useEnricherContext.selectedFeature;
|
31271
31191
|
var location = useLocation();
|
31272
31192
|
var _useSearchParams = useSearchParams(),
|
31273
31193
|
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
@@ -31477,12 +31397,8 @@ function useModule$1 (currentModules) {
|
|
31477
31397
|
organizationId: organizationId,
|
31478
31398
|
apiConfig: root.configurationStore.apiConfig,
|
31479
31399
|
setSelectedPackage: setSelectedPackage,
|
31480
|
-
setSelectedSerie: setSelectedSerie,
|
31481
|
-
setSelectedItem: setSelectedItem,
|
31482
31400
|
selectedSerie: selectedSerie,
|
31483
|
-
selectedFeature: selectedFeature
|
31484
|
-
selectedItem: selectedItem,
|
31485
|
-
viewOnly: viewOnly
|
31401
|
+
selectedFeature: selectedFeature
|
31486
31402
|
};
|
31487
31403
|
}
|
31488
31404
|
|
@@ -31610,12 +31526,14 @@ var useTools = function useTools(_ref) {
|
|
31610
31526
|
initItem: item === null || item === void 0 ? void 0 : item.typeNo,
|
31611
31527
|
setSerie: setSerie,
|
31612
31528
|
setArticle: setArticle
|
31613
|
-
},
|
31614
|
-
initSerie:
|
31529
|
+
}, serie ? {
|
31530
|
+
initSerie: {
|
31531
|
+
serieNo: serie.serieNo,
|
31532
|
+
serieId: serie._id
|
31533
|
+
}
|
31615
31534
|
} : {}) : isApi2 ? {
|
31616
31535
|
// open configurator for api2 package (configurator light)
|
31617
|
-
loadMask: true
|
31618
|
-
initItem: item === null || item === void 0 ? void 0 : item.typeNo
|
31536
|
+
loadMask: true
|
31619
31537
|
} : _objectSpread$f({
|
31620
31538
|
// open configurator for idm package
|
31621
31539
|
useEnricherService: true,
|
@@ -31625,20 +31543,14 @@ var useTools = function useTools(_ref) {
|
|
31625
31543
|
initItem: item === null || item === void 0 ? void 0 : item.typeNo,
|
31626
31544
|
setSerie: setSerie,
|
31627
31545
|
setArticle: setArticle
|
31628
|
-
},
|
31629
|
-
initSerie:
|
31546
|
+
}, serie ? {
|
31547
|
+
initSerie: {
|
31548
|
+
serieNo: serie.serieNo,
|
31549
|
+
serieId: serie._id
|
31550
|
+
}
|
31630
31551
|
} : {})
|
31631
31552
|
});
|
31632
31553
|
}, [catalogId, packageId, isApi2, serie, item, setSerie, setArticle]);
|
31633
|
-
var initSerie = useMemo(function () {
|
31634
|
-
if (serie) {
|
31635
|
-
return {
|
31636
|
-
serieNo: serie.serieNo,
|
31637
|
-
serieId: serie._id
|
31638
|
-
};
|
31639
|
-
}
|
31640
|
-
return undefined;
|
31641
|
-
}, [serie]);
|
31642
31554
|
useEffect(function () {
|
31643
31555
|
var _root$contentStore$ri;
|
31644
31556
|
var tools = [];
|
@@ -31680,11 +31592,10 @@ var TableGroups = observer(function () {
|
|
31680
31592
|
packageId = _useModule.packageId,
|
31681
31593
|
organizationId = _useModule.organizationId,
|
31682
31594
|
apiConfig = _useModule.apiConfig,
|
31683
|
-
selectedPackage = _useModule.selectedPackage
|
31684
|
-
viewOnly = _useModule.viewOnly;
|
31595
|
+
selectedPackage = _useModule.selectedPackage;
|
31685
31596
|
useTools({
|
31686
31597
|
packageId: packageId,
|
31687
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.
|
31598
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
31688
31599
|
});
|
31689
31600
|
var applicationData = useMemo(function () {
|
31690
31601
|
return {
|
@@ -31695,10 +31606,10 @@ var TableGroups = observer(function () {
|
|
31695
31606
|
var apiInterface = useMemo(function () {
|
31696
31607
|
return {
|
31697
31608
|
read: apiConfig.enricherService + '/packages/${packageId}/groups',
|
31698
|
-
create:
|
31699
|
-
restore:
|
31700
|
-
"delete":
|
31701
|
-
update:
|
31609
|
+
create: apiConfig.enricherService + '/packages/${packageId}/groups',
|
31610
|
+
restore: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
|
31611
|
+
"delete": apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
|
31612
|
+
update: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
|
31702
31613
|
bulk: apiConfig.enricherService + '/packages/${packageId}/groups/bulk'
|
31703
31614
|
};
|
31704
31615
|
}, []);
|
@@ -31712,7 +31623,7 @@ var TableGroups = observer(function () {
|
|
31712
31623
|
field: 'serieNos',
|
31713
31624
|
headerName: 'backoffice.idmEnricher.groups.label.serieNos',
|
31714
31625
|
cellDataType: 'lookup',
|
31715
|
-
editable:
|
31626
|
+
editable: true,
|
31716
31627
|
customParams: {
|
31717
31628
|
filterCellType: 'number',
|
31718
31629
|
nameField: 'serieNosDisplayTexts',
|
@@ -31735,7 +31646,7 @@ var TableGroups = observer(function () {
|
|
31735
31646
|
field: 'typeNos',
|
31736
31647
|
headerName: 'backoffice.idmEnricher.groups.label.typeNos',
|
31737
31648
|
cellDataType: 'lookup',
|
31738
|
-
editable:
|
31649
|
+
editable: true,
|
31739
31650
|
customParams: {
|
31740
31651
|
nameField: 'typeNosDisplayTexts',
|
31741
31652
|
displayLabelTemplate: '${name} (${value})',
|
@@ -31790,7 +31701,7 @@ var TableGroups = observer(function () {
|
|
31790
31701
|
cellDataType: 'objectId'
|
31791
31702
|
}]
|
31792
31703
|
};
|
31793
|
-
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds
|
31704
|
+
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
31794
31705
|
return /*#__PURE__*/jsxs(Fragment, {
|
31795
31706
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
31796
31707
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -31812,28 +31723,22 @@ var TableGroups = observer(function () {
|
|
31812
31723
|
});
|
31813
31724
|
|
31814
31725
|
function PublishCustomCell (_ref) {
|
31815
|
-
var _data$published, _data$removedOrganiza;
|
31816
31726
|
var data = _ref.data,
|
31817
31727
|
apiConfig = _ref.apiConfig,
|
31818
31728
|
context = _ref.context,
|
31819
31729
|
api = _ref.api,
|
31820
|
-
modalState = _ref.modalState
|
31821
|
-
organizationId = _ref.organizationId;
|
31730
|
+
modalState = _ref.modalState;
|
31822
31731
|
var _useTranslation = useTranslation(),
|
31823
31732
|
t = _useTranslation.t;
|
31824
31733
|
var _React$useState = React.useState(false),
|
31825
31734
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
31826
31735
|
loading = _React$useState2[0],
|
31827
31736
|
isLoading = _React$useState2[1];
|
31828
|
-
var
|
31829
|
-
var
|
31830
|
-
return id === organizationId;
|
31831
|
-
}));
|
31832
|
-
var unpublishedChanges = hasUnpublishedChanges(publishedData === null || publishedData === void 0 ? void 0 : publishedData.publishDate, publishedData === null || publishedData === void 0 ? void 0 : publishedData.lastUpdatedDate);
|
31833
|
-
var disabled = !(data !== null && data !== void 0 && data.basedCatalogId) && !(data !== null && data !== void 0 && data.basedPackageId) || !(data !== null && data !== void 0 && data.name);
|
31737
|
+
var unpublishedChanges = hasUnpublishedChanges(data.publishDate, data.lastUpdatedDate);
|
31738
|
+
var disabled = !data.basedCatalogId && !data.basedPackageId || !data.name;
|
31834
31739
|
var _onChange = /*#__PURE__*/function () {
|
31835
31740
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
|
31836
|
-
var loadingTimeout, response
|
31741
|
+
var loadingTimeout, response;
|
31837
31742
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
31838
31743
|
while (1) switch (_context.prev = _context.next) {
|
31839
31744
|
case 0:
|
@@ -31848,7 +31753,7 @@ function PublishCustomCell (_ref) {
|
|
31848
31753
|
}
|
31849
31754
|
_context.next = 6;
|
31850
31755
|
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
31851
|
-
update: apiConfig.enricherService + '/packages/${_id}/publish
|
31756
|
+
update: apiConfig.enricherService + '/packages/${_id}/publish',
|
31852
31757
|
usePut: true
|
31853
31758
|
}, undefined, true);
|
31854
31759
|
case 6:
|
@@ -31858,7 +31763,7 @@ function PublishCustomCell (_ref) {
|
|
31858
31763
|
case 9:
|
31859
31764
|
_context.next = 11;
|
31860
31765
|
return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
|
31861
|
-
update: apiConfig.enricherService + '/packages/${_id}/unpublish
|
31766
|
+
update: apiConfig.enricherService + '/packages/${_id}/unpublish',
|
31862
31767
|
usePut: true
|
31863
31768
|
}, undefined, true);
|
31864
31769
|
case 11:
|
@@ -31870,7 +31775,7 @@ function PublishCustomCell (_ref) {
|
|
31870
31775
|
break;
|
31871
31776
|
}
|
31872
31777
|
modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
|
31873
|
-
_context.next =
|
31778
|
+
_context.next = 22;
|
31874
31779
|
break;
|
31875
31780
|
case 17:
|
31876
31781
|
if (!(response.status == 200)) {
|
@@ -31878,46 +31783,30 @@ function PublishCustomCell (_ref) {
|
|
31878
31783
|
break;
|
31879
31784
|
}
|
31880
31785
|
modalState.closeModal();
|
31881
|
-
_context.next =
|
31786
|
+
_context.next = 22;
|
31882
31787
|
break;
|
31883
31788
|
case 21:
|
31884
|
-
|
31885
|
-
|
31886
|
-
return response.json();
|
31887
|
-
case 24:
|
31888
|
-
json = _context.sent;
|
31889
|
-
errorText = json.error;
|
31890
|
-
_context.next = 33;
|
31891
|
-
break;
|
31892
|
-
case 28:
|
31893
|
-
_context.prev = 28;
|
31894
|
-
_context.t0 = _context["catch"](21);
|
31895
|
-
_context.next = 32;
|
31896
|
-
return response.text();
|
31897
|
-
case 32:
|
31898
|
-
errorText = _context.sent;
|
31899
|
-
case 33:
|
31900
|
-
throw new Error((_errorText = errorText) !== null && _errorText !== void 0 ? _errorText : "Server error (".concat(response.status, ")"));
|
31901
|
-
case 34:
|
31789
|
+
throw new Error("Server errror: ".concat(response.statusText, " (").concat(response.status, ")"));
|
31790
|
+
case 22:
|
31902
31791
|
context === null || context === void 0 || context.reset({
|
31903
31792
|
context: context,
|
31904
31793
|
api: api
|
31905
31794
|
});
|
31906
|
-
_context.next =
|
31795
|
+
_context.next = 28;
|
31907
31796
|
break;
|
31908
|
-
case
|
31909
|
-
_context.prev =
|
31910
|
-
_context.
|
31911
|
-
modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.
|
31912
|
-
case
|
31913
|
-
_context.prev =
|
31797
|
+
case 25:
|
31798
|
+
_context.prev = 25;
|
31799
|
+
_context.t0 = _context["catch"](2);
|
31800
|
+
modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
|
31801
|
+
case 28:
|
31802
|
+
_context.prev = 28;
|
31914
31803
|
isLoading(false);
|
31915
|
-
return _context.finish(
|
31916
|
-
case
|
31804
|
+
return _context.finish(28);
|
31805
|
+
case 31:
|
31917
31806
|
case "end":
|
31918
31807
|
return _context.stop();
|
31919
31808
|
}
|
31920
|
-
}, _callee, null, [[2,
|
31809
|
+
}, _callee, null, [[2, 25, 28, 31]]);
|
31921
31810
|
}));
|
31922
31811
|
return function onChange(_x) {
|
31923
31812
|
return _ref2.apply(this, arguments);
|
@@ -31929,9 +31818,9 @@ function PublishCustomCell (_ref) {
|
|
31929
31818
|
children: /*#__PURE__*/jsxs(Space$1, {
|
31930
31819
|
size: "middle",
|
31931
31820
|
children: [/*#__PURE__*/jsx(Tooltip, {
|
31932
|
-
title: !!
|
31821
|
+
title: !!data.isPublished ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
|
31933
31822
|
children: /*#__PURE__*/jsx(Checkbox$1, {
|
31934
|
-
checked: !!
|
31823
|
+
checked: !!data.isPublished,
|
31935
31824
|
disabled: disabled,
|
31936
31825
|
indeterminate: unpublishedChanges,
|
31937
31826
|
onChange: function onChange(e) {
|
@@ -31947,12 +31836,6 @@ function PublishCustomCell (_ref) {
|
|
31947
31836
|
return _onChange(true);
|
31948
31837
|
}
|
31949
31838
|
})
|
31950
|
-
}), isReleaseWithdrawn && /*#__PURE__*/jsx(Tooltip, {
|
31951
|
-
title: t('backoffice.idmEnricher.packages.label.releaseWithdrawn'),
|
31952
|
-
children: /*#__PURE__*/jsx(Button$1, {
|
31953
|
-
shape: "circle",
|
31954
|
-
icon: /*#__PURE__*/jsx(WarningOutlined, {})
|
31955
|
-
})
|
31956
31839
|
})]
|
31957
31840
|
})
|
31958
31841
|
});
|
@@ -32274,7 +32157,6 @@ var useLoadingModal = function useLoadingModal() {
|
|
32274
32157
|
};
|
32275
32158
|
|
32276
32159
|
var TablePackages = observer(function () {
|
32277
|
-
var _root$dataStore$curre;
|
32278
32160
|
var root = useStore();
|
32279
32161
|
var _useTranslation = useTranslation(),
|
32280
32162
|
t = _useTranslation.t,
|
@@ -32285,20 +32167,23 @@ var TablePackages = observer(function () {
|
|
32285
32167
|
closeModal = modalState.closeModal,
|
32286
32168
|
contextHolder = modalState.contextHolder;
|
32287
32169
|
var _useEnricherContext = useEnricherContext([]),
|
32288
|
-
setSelectedPackage = _useEnricherContext.setSelectedPackage
|
32289
|
-
|
32290
|
-
useTools({
|
32291
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
|
32292
|
-
});
|
32170
|
+
setSelectedPackage = _useEnricherContext.setSelectedPackage;
|
32171
|
+
useTools({});
|
32293
32172
|
var organizationId = root.dataStore.organizationId;
|
32294
|
-
var organizationDisplayText = (_root$dataStore$curre = root.dataStore.currentOrganization) === null || _root$dataStore$curre === void 0 ? void 0 : _root$dataStore$curre.displayName;
|
32295
32173
|
var apiConfig = root.configurationStore.apiConfig;
|
32296
32174
|
var applicationData = useMemo(function () {
|
32297
32175
|
return {
|
32298
|
-
organizationId: organizationId
|
32299
|
-
|
32176
|
+
organizationId: organizationId
|
32177
|
+
};
|
32178
|
+
}, [organizationId]);
|
32179
|
+
var preFilter = useMemo(function () {
|
32180
|
+
return {
|
32181
|
+
colId: 'organizationId',
|
32182
|
+
filterType: 'text',
|
32183
|
+
type: 'equals',
|
32184
|
+
filter: organizationId
|
32300
32185
|
};
|
32301
|
-
}, [organizationId
|
32186
|
+
}, [organizationId]);
|
32302
32187
|
var rowActions = useMemo(function () {
|
32303
32188
|
return [{
|
32304
32189
|
icon: /*#__PURE__*/jsx(EditOutlined, {}),
|
@@ -32313,9 +32198,8 @@ var TablePackages = observer(function () {
|
|
32313
32198
|
}, {
|
32314
32199
|
icon: /*#__PURE__*/jsx(DownloadOutlined, {}),
|
32315
32200
|
disabled: function disabled(_ref3) {
|
32316
|
-
var _selectedNodes$0$data;
|
32317
32201
|
var selectedNodes = _ref3.selectedNodes;
|
32318
|
-
return !
|
32202
|
+
return !selectedNodes[0].data.isPublished;
|
32319
32203
|
},
|
32320
32204
|
action: function () {
|
32321
32205
|
var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
|
@@ -32359,18 +32243,14 @@ var TablePackages = observer(function () {
|
|
32359
32243
|
}, [apiConfig.enricherService, root.dataStore.jwt]);
|
32360
32244
|
var apiInterface = useMemo(function () {
|
32361
32245
|
return {
|
32362
|
-
read: apiConfig.enricherService + '/packages?organizationId
|
32246
|
+
read: apiConfig.enricherService + '/packages?organizationId=${organizationId}',
|
32363
32247
|
create: apiConfig.enricherService + '/packages',
|
32364
32248
|
restore: apiConfig.enricherService + '/packages/${_id}',
|
32365
32249
|
"delete": apiConfig.enricherService + '/packages/${_id}',
|
32366
32250
|
update: apiConfig.enricherService + '/packages/${_id}',
|
32367
|
-
bulk: apiConfig.enricherService + '/packages/bulk?organizationId
|
32251
|
+
bulk: apiConfig.enricherService + '/packages/bulk?organizationId=${organizationId}'
|
32368
32252
|
};
|
32369
|
-
}, [apiConfig.enricherService
|
32370
|
-
var isEditable = useCallback(function (params) {
|
32371
|
-
var _params$data, _params$data2;
|
32372
|
-
return ((_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.organizationId) === organizationId || !((_params$data2 = params.data) !== null && _params$data2 !== void 0 && _params$data2._id);
|
32373
|
-
}, [organizationId]);
|
32253
|
+
}, [apiConfig.enricherService]);
|
32374
32254
|
var configuration = useMemo(function () {
|
32375
32255
|
return {
|
32376
32256
|
type: 'dotnetSSM',
|
@@ -32378,15 +32258,15 @@ var TablePackages = observer(function () {
|
|
32378
32258
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
32379
32259
|
floatingFilter: true,
|
32380
32260
|
colDef: [{
|
32381
|
-
field:
|
32261
|
+
field: 'isPublished',
|
32382
32262
|
//the cell should refresh on changes of this fields
|
32383
32263
|
valueGetter: function valueGetter(_ref5) {
|
32384
|
-
var _data$published, _data$published2;
|
32385
32264
|
var data = _ref5.data;
|
32386
32265
|
return {
|
32266
|
+
isPublished: data === null || data === void 0 ? void 0 : data.isPublished,
|
32387
32267
|
name: data === null || data === void 0 ? void 0 : data.name,
|
32388
|
-
basedCatalogId: data === null || data === void 0
|
32389
|
-
basedPackageId: data === null || data === void 0
|
32268
|
+
basedCatalogId: data === null || data === void 0 ? void 0 : data.basedCatalogId,
|
32269
|
+
basedPackageId: data === null || data === void 0 ? void 0 : data.basedPackageId
|
32390
32270
|
};
|
32391
32271
|
},
|
32392
32272
|
headerName: 'backoffice.idmEnricher.packages.label.published',
|
@@ -32397,22 +32277,19 @@ var TablePackages = observer(function () {
|
|
32397
32277
|
lockPinned: true,
|
32398
32278
|
cellRendererParams: {
|
32399
32279
|
apiConfig: apiConfig,
|
32400
|
-
modalState: modalState
|
32401
|
-
|
32402
|
-
},
|
32403
|
-
isDictionary: true
|
32280
|
+
modalState: modalState
|
32281
|
+
}
|
32404
32282
|
}, {
|
32405
32283
|
headerName: 'backoffice.idmEnricher.packages.label.name',
|
32406
32284
|
field: 'name',
|
32407
|
-
required: true
|
32408
|
-
editable: isEditable
|
32285
|
+
required: true
|
32409
32286
|
}, {
|
32410
32287
|
headerName: 'backoffice.idmEnricher.packages.label.catalogId',
|
32411
32288
|
field: 'basedCatalogId',
|
32412
32289
|
cellDataType: 'lookup',
|
32413
32290
|
editable: function editable(_ref6) {
|
32414
32291
|
var data = _ref6.data;
|
32415
|
-
return
|
32292
|
+
return !data.basedCatalogId && !data.basedPackageId;
|
32416
32293
|
},
|
32417
32294
|
customParams: {
|
32418
32295
|
filterCellType: 'objectId',
|
@@ -32440,7 +32317,7 @@ var TablePackages = observer(function () {
|
|
32440
32317
|
cellDataType: 'lookup',
|
32441
32318
|
editable: function editable(_ref7) {
|
32442
32319
|
var data = _ref7.data;
|
32443
|
-
return
|
32320
|
+
return !data.basedCatalogId && !data.basedPackageId;
|
32444
32321
|
},
|
32445
32322
|
customParams: {
|
32446
32323
|
filterCellType: 'objectId',
|
@@ -32469,43 +32346,13 @@ var TablePackages = observer(function () {
|
|
32469
32346
|
field: 'isoLanguageIds',
|
32470
32347
|
headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
|
32471
32348
|
cellDataType: 'enum',
|
32472
|
-
editable:
|
32349
|
+
editable: true,
|
32473
32350
|
required: true,
|
32474
32351
|
customParams: {
|
32475
32352
|
enumData: getLanguageKey(t),
|
32476
32353
|
multiple: true
|
32477
32354
|
},
|
32478
32355
|
defaultValue: ['DE']
|
32479
|
-
}, {
|
32480
|
-
field: 'allowedOrganizationIds',
|
32481
|
-
headerName: 'backoffice.idmEnricher.packages.label.allowedOrganizationIds',
|
32482
|
-
cellDataType: 'lookup',
|
32483
|
-
editable: isEditable,
|
32484
|
-
cellRendererSelector: function cellRendererSelector(params) {
|
32485
|
-
var _params$data3, _params$data4;
|
32486
|
-
if (((_params$data3 = params.data) === null || _params$data3 === void 0 ? void 0 : _params$data3.organizationId) === organizationId || !((_params$data4 = params.data) !== null && _params$data4 !== void 0 && _params$data4._id)) {
|
32487
|
-
return undefined;
|
32488
|
-
}
|
32489
|
-
return {
|
32490
|
-
component: function component() {
|
32491
|
-
var _params$data$organiza, _params$data5, _params$data6;
|
32492
|
-
return /*#__PURE__*/jsxs("p", {
|
32493
|
-
children: ["Freigegeben durch ", (_params$data$organiza = (_params$data5 = params.data) === null || _params$data5 === void 0 ? void 0 : _params$data5.organizationDisplayText) !== null && _params$data$organiza !== void 0 ? _params$data$organiza : (_params$data6 = params.data) === null || _params$data6 === void 0 ? void 0 : _params$data6.organizationId]
|
32494
|
-
});
|
32495
|
-
}
|
32496
|
-
};
|
32497
|
-
},
|
32498
|
-
customParams: {
|
32499
|
-
nameField: 'allowedOrganizationsDisplayTexts',
|
32500
|
-
apiInterface: {
|
32501
|
-
read: apiConfig.authService + "/clientrelationtargets/organization/".concat(organizationId, "/organizations")
|
32502
|
-
},
|
32503
|
-
lookupValue: 'displayName',
|
32504
|
-
lookupKey: '_id',
|
32505
|
-
serverType: 'nodejs',
|
32506
|
-
multiple: true
|
32507
|
-
},
|
32508
|
-
additionalFields: ['allowedOrganizationsDisplayTexts']
|
32509
32356
|
}, {
|
32510
32357
|
headerName: 'backoffice.idmEnricher.packages.label.isApi2',
|
32511
32358
|
field: 'isApi',
|
@@ -32523,10 +32370,9 @@ var TablePackages = observer(function () {
|
|
32523
32370
|
editable: false
|
32524
32371
|
}, {
|
32525
32372
|
headerName: 'backoffice.idmEnricher.packages.label.publishDate',
|
32526
|
-
field:
|
32373
|
+
field: 'publishDate',
|
32527
32374
|
cellDataType: 'dateString',
|
32528
|
-
editable: false
|
32529
|
-
isDictionary: true
|
32375
|
+
editable: false
|
32530
32376
|
}, {
|
32531
32377
|
headerName: 'backoffice.idmEnricher.general.label.createdBy',
|
32532
32378
|
field: 'createdByDisplayText',
|
@@ -32537,9 +32383,8 @@ var TablePackages = observer(function () {
|
|
32537
32383
|
editable: false
|
32538
32384
|
}, {
|
32539
32385
|
headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
|
32540
|
-
field:
|
32541
|
-
editable: false
|
32542
|
-
isDictionary: true
|
32386
|
+
field: 'publishedByDisplayText',
|
32387
|
+
editable: false
|
32543
32388
|
}, {
|
32544
32389
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
32545
32390
|
field: '_id',
|
@@ -32552,26 +32397,9 @@ var TablePackages = observer(function () {
|
|
32552
32397
|
lockVisible: true,
|
32553
32398
|
suppressColumnsToolPanel: true,
|
32554
32399
|
defaultValue: '${organizationId}'
|
32555
|
-
}, {
|
32556
|
-
field: 'organizationDisplayText',
|
32557
|
-
editable: false,
|
32558
|
-
hide: true,
|
32559
|
-
lockVisible: true,
|
32560
|
-
suppressColumnsToolPanel: true,
|
32561
|
-
defaultValue: '${organizationDisplayText}'
|
32562
|
-
}, {
|
32563
|
-
field: 'removedOrganizationIds',
|
32564
|
-
editable: false,
|
32565
|
-
hide: true,
|
32566
|
-
lockVisible: true,
|
32567
|
-
suppressColumnsToolPanel: true
|
32568
32400
|
}]
|
32569
32401
|
};
|
32570
|
-
}, [apiInterface, apiConfig, i18n.language
|
32571
|
-
var isRowEditable = useCallback(function (node) {
|
32572
|
-
var _node$data, _node$data2;
|
32573
|
-
return ((_node$data = node.data) === null || _node$data === void 0 ? void 0 : _node$data.organizationId) === organizationId || !((_node$data2 = node.data) !== null && _node$data2 !== void 0 && _node$data2._id);
|
32574
|
-
}, [organizationId]);
|
32402
|
+
}, [apiInterface, apiConfig, i18n.language]);
|
32575
32403
|
return /*#__PURE__*/jsxs(Fragment, {
|
32576
32404
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
32577
32405
|
title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
|
@@ -32579,8 +32407,8 @@ var TablePackages = observer(function () {
|
|
32579
32407
|
gridId: 'packages-grid',
|
32580
32408
|
applicationData: applicationData,
|
32581
32409
|
rowActions: rowActions,
|
32582
|
-
|
32583
|
-
|
32410
|
+
preFilter: preFilter,
|
32411
|
+
configuration: configuration
|
32584
32412
|
}), contextHolder]
|
32585
32413
|
});
|
32586
32414
|
});
|
@@ -32592,11 +32420,10 @@ var TableProperties = observer(function () {
|
|
32592
32420
|
packageId = _useModule.packageId,
|
32593
32421
|
organizationId = _useModule.organizationId,
|
32594
32422
|
apiConfig = _useModule.apiConfig,
|
32595
|
-
selectedPackage = _useModule.selectedPackage
|
32596
|
-
viewOnly = _useModule.viewOnly;
|
32423
|
+
selectedPackage = _useModule.selectedPackage;
|
32597
32424
|
useTools({
|
32598
32425
|
packageId: packageId,
|
32599
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.
|
32426
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
32600
32427
|
});
|
32601
32428
|
var applicationData = useMemo(function () {
|
32602
32429
|
return {
|
@@ -32607,10 +32434,10 @@ var TableProperties = observer(function () {
|
|
32607
32434
|
var apiInterface = useMemo(function () {
|
32608
32435
|
return {
|
32609
32436
|
read: apiConfig.enricherService + '/packages/${packageId}/properties',
|
32610
|
-
create:
|
32611
|
-
restore:
|
32612
|
-
"delete":
|
32613
|
-
update:
|
32437
|
+
create: apiConfig.enricherService + '/packages/${packageId}/properties',
|
32438
|
+
restore: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
|
32439
|
+
"delete": apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
|
32440
|
+
update: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
|
32614
32441
|
bulk: apiConfig.enricherService + '/packages/${packageId}/properties/bulk'
|
32615
32442
|
};
|
32616
32443
|
}, []);
|
@@ -32628,7 +32455,7 @@ var TableProperties = observer(function () {
|
|
32628
32455
|
field: 'featureNos',
|
32629
32456
|
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
32630
32457
|
cellDataType: 'lookup',
|
32631
|
-
editable:
|
32458
|
+
editable: true,
|
32632
32459
|
customParams: {
|
32633
32460
|
nameField: 'featureNosDisplayTexts',
|
32634
32461
|
displayLabelTemplate: '${name} (${value})',
|
@@ -32646,7 +32473,7 @@ var TableProperties = observer(function () {
|
|
32646
32473
|
field: 'optionKeys',
|
32647
32474
|
headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
|
32648
32475
|
cellDataType: 'lookup',
|
32649
|
-
editable:
|
32476
|
+
editable: true,
|
32650
32477
|
customParams: {
|
32651
32478
|
nameField: 'optionKeysDisplayTexts',
|
32652
32479
|
displayLabelTemplate: '${name} (${value})',
|
@@ -32670,7 +32497,7 @@ var TableProperties = observer(function () {
|
|
32670
32497
|
field: 'serieNos',
|
32671
32498
|
headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
|
32672
32499
|
cellDataType: 'lookup',
|
32673
|
-
editable:
|
32500
|
+
editable: true,
|
32674
32501
|
customParams: {
|
32675
32502
|
filterCellType: 'number',
|
32676
32503
|
nameField: 'serieNosDisplayTexts',
|
@@ -32693,7 +32520,7 @@ var TableProperties = observer(function () {
|
|
32693
32520
|
field: 'typeNos',
|
32694
32521
|
headerName: 'backoffice.idmEnricher.properties.label.typeNos',
|
32695
32522
|
cellDataType: 'lookup',
|
32696
|
-
editable:
|
32523
|
+
editable: true,
|
32697
32524
|
customParams: {
|
32698
32525
|
nameField: 'typeNosDisplayTexts',
|
32699
32526
|
displayLabelTemplate: '${name} (${value})',
|
@@ -32748,7 +32575,7 @@ var TableProperties = observer(function () {
|
|
32748
32575
|
cellDataType: 'objectId'
|
32749
32576
|
}]
|
32750
32577
|
};
|
32751
|
-
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds
|
32578
|
+
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
32752
32579
|
return /*#__PURE__*/jsxs(Fragment, {
|
32753
32580
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
32754
32581
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -32769,7 +32596,7 @@ var TableProperties = observer(function () {
|
|
32769
32596
|
});
|
32770
32597
|
});
|
32771
32598
|
|
32772
|
-
var getConfig$6 = function getConfig(isoLanguageIds, t
|
32599
|
+
var getConfig$6 = function getConfig(isoLanguageIds, t) {
|
32773
32600
|
return {
|
32774
32601
|
colDef: [{
|
32775
32602
|
field: 'translatedName',
|
@@ -32779,8 +32606,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32779
32606
|
placeHolderField: 'origName',
|
32780
32607
|
combinedField: 'name'
|
32781
32608
|
},
|
32782
|
-
additionalFields: ['origName', 'name']
|
32783
|
-
editable: !viewOnly
|
32609
|
+
additionalFields: ['origName', 'name']
|
32784
32610
|
}, {
|
32785
32611
|
field: 'translatedComment',
|
32786
32612
|
cellDataType: 'withPlaceholder',
|
@@ -32789,15 +32615,14 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32789
32615
|
placeHolderField: 'origComment',
|
32790
32616
|
combinedField: 'comment'
|
32791
32617
|
},
|
32792
|
-
additionalFields: ['origComment', 'comment']
|
32793
|
-
editable: !viewOnly
|
32618
|
+
additionalFields: ['origComment', 'comment']
|
32794
32619
|
}, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
|
32795
32620
|
placeHolderField: 'origCatalogName',
|
32796
32621
|
combinedField: 'catalogName'
|
32797
|
-
}, ['origCatalogName', 'catalogName']
|
32622
|
+
}, ['origCatalogName', 'catalogName']), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
|
32798
32623
|
placeHolderField: 'origCatalogInfo',
|
32799
32624
|
combinedField: 'catalogInfo'
|
32800
|
-
}, ['origCatalogInfo', 'catalogInfo']
|
32625
|
+
}, ['origCatalogInfo', 'catalogInfo']), {
|
32801
32626
|
headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
|
32802
32627
|
field: 'translatedContactPersonNo1',
|
32803
32628
|
cellDataType: 'withPlaceholder',
|
@@ -32805,8 +32630,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32805
32630
|
placeHolderField: 'origContactPersonNo1',
|
32806
32631
|
combinedField: 'contactPersonNo1'
|
32807
32632
|
},
|
32808
|
-
additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
|
32809
|
-
editable: !viewOnly
|
32633
|
+
additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
|
32810
32634
|
}, {
|
32811
32635
|
headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
|
32812
32636
|
field: 'translatedContactRole1',
|
@@ -32815,8 +32639,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32815
32639
|
placeHolderField: 'origContactRole1',
|
32816
32640
|
combinedField: 'contactRole1'
|
32817
32641
|
},
|
32818
|
-
additionalFields: ['origContactRole1', 'contactRole1']
|
32819
|
-
editable: !viewOnly
|
32642
|
+
additionalFields: ['origContactRole1', 'contactRole1']
|
32820
32643
|
}, {
|
32821
32644
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
|
32822
32645
|
field: 'translatedContactName1',
|
@@ -32825,8 +32648,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32825
32648
|
placeHolderField: 'origContactName1',
|
32826
32649
|
combinedField: 'contactName1'
|
32827
32650
|
},
|
32828
|
-
additionalFields: ['origContactName1', 'contactName1']
|
32829
|
-
editable: !viewOnly
|
32651
|
+
additionalFields: ['origContactName1', 'contactName1']
|
32830
32652
|
}, {
|
32831
32653
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
|
32832
32654
|
field: 'translatedFirstName1',
|
@@ -32835,8 +32657,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32835
32657
|
placeHolderField: 'origFirstName1',
|
32836
32658
|
combinedField: 'firstName1'
|
32837
32659
|
},
|
32838
|
-
additionalFields: ['origFirstName1', 'firstName1']
|
32839
|
-
editable: !viewOnly
|
32660
|
+
additionalFields: ['origFirstName1', 'firstName1']
|
32840
32661
|
}, {
|
32841
32662
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
|
32842
32663
|
field: 'translatedFormOfAddress1',
|
@@ -32848,8 +32669,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32848
32669
|
enumData: getFormOfAddressKey(t),
|
32849
32670
|
displayLabelTemplate: '${name} (${value})'
|
32850
32671
|
},
|
32851
|
-
additionalFields: ['origFormOfAddress1', 'formOfAddress1']
|
32852
|
-
editable: !viewOnly
|
32672
|
+
additionalFields: ['origFormOfAddress1', 'formOfAddress1']
|
32853
32673
|
}, {
|
32854
32674
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
|
32855
32675
|
field: 'translatedDepartment1',
|
@@ -32858,8 +32678,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32858
32678
|
placeHolderField: 'origDepartment1',
|
32859
32679
|
combinedField: 'department1'
|
32860
32680
|
},
|
32861
|
-
additionalFields: ['origDepartment1', 'department1']
|
32862
|
-
editable: !viewOnly
|
32681
|
+
additionalFields: ['origDepartment1', 'department1']
|
32863
32682
|
}, {
|
32864
32683
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
|
32865
32684
|
field: 'translatedTelephone1',
|
@@ -32868,8 +32687,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32868
32687
|
placeHolderField: 'origTelephone1',
|
32869
32688
|
combinedField: 'telephone1'
|
32870
32689
|
},
|
32871
|
-
additionalFields: ['origTelephone1', 'telephone1']
|
32872
|
-
editable: !viewOnly
|
32690
|
+
additionalFields: ['origTelephone1', 'telephone1']
|
32873
32691
|
}, {
|
32874
32692
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
|
32875
32693
|
field: 'translatedFax1',
|
@@ -32878,8 +32696,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32878
32696
|
placeHolderField: 'origFax1',
|
32879
32697
|
combinedField: 'fax1'
|
32880
32698
|
},
|
32881
|
-
additionalFields: ['origFax1', 'fax1']
|
32882
|
-
editable: !viewOnly
|
32699
|
+
additionalFields: ['origFax1', 'fax1']
|
32883
32700
|
}, {
|
32884
32701
|
field: 'translatedEmail1',
|
32885
32702
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
|
@@ -32888,8 +32705,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32888
32705
|
placeHolderField: 'origEmail1',
|
32889
32706
|
combinedField: 'email1'
|
32890
32707
|
},
|
32891
|
-
additionalFields: ['origEmail1', 'email1']
|
32892
|
-
editable: !viewOnly
|
32708
|
+
additionalFields: ['origEmail1', 'email1']
|
32893
32709
|
}, {
|
32894
32710
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
|
32895
32711
|
field: 'translatedStreet1',
|
@@ -32898,8 +32714,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32898
32714
|
placeHolderField: 'origStreet1',
|
32899
32715
|
combinedField: 'street1'
|
32900
32716
|
},
|
32901
|
-
additionalFields: ['origStreet1', 'street1']
|
32902
|
-
editable: !viewOnly
|
32717
|
+
additionalFields: ['origStreet1', 'street1']
|
32903
32718
|
}, {
|
32904
32719
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
|
32905
32720
|
field: 'translatedZipCodeStreet1',
|
@@ -32908,8 +32723,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32908
32723
|
placeHolderField: 'origZipCodeStreet1',
|
32909
32724
|
combinedField: 'zipCodeStreet1'
|
32910
32725
|
},
|
32911
|
-
additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
|
32912
|
-
editable: !viewOnly
|
32726
|
+
additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
|
32913
32727
|
}, {
|
32914
32728
|
field: 'translatedCity1',
|
32915
32729
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
|
@@ -32918,8 +32732,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32918
32732
|
placeHolderField: 'origCity1',
|
32919
32733
|
combinedField: 'city1'
|
32920
32734
|
},
|
32921
|
-
additionalFields: ['origCity1', 'city1']
|
32922
|
-
editable: !viewOnly
|
32735
|
+
additionalFields: ['origCity1', 'city1']
|
32923
32736
|
}, {
|
32924
32737
|
field: 'translatedIsoCountryId1',
|
32925
32738
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
|
@@ -32930,8 +32743,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32930
32743
|
combinedField: 'isoCountryId1',
|
32931
32744
|
enumData: getCountryKey(t)
|
32932
32745
|
},
|
32933
|
-
additionalFields: ['origIsoCountryId1', 'isoCountryId1']
|
32934
|
-
editable: !viewOnly
|
32746
|
+
additionalFields: ['origIsoCountryId1', 'isoCountryId1']
|
32935
32747
|
}, {
|
32936
32748
|
field: 'translatedContactPersonNo2',
|
32937
32749
|
headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
|
@@ -32940,8 +32752,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32940
32752
|
placeHolderField: 'origContactPersonNo2',
|
32941
32753
|
combinedField: 'contactPersonNo2'
|
32942
32754
|
},
|
32943
|
-
additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
|
32944
|
-
editable: !viewOnly
|
32755
|
+
additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
|
32945
32756
|
}, {
|
32946
32757
|
headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
|
32947
32758
|
field: 'translatedContactRole2',
|
@@ -32950,8 +32761,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32950
32761
|
placeHolderField: 'origContactRole2',
|
32951
32762
|
combinedField: 'contactRole2'
|
32952
32763
|
},
|
32953
|
-
additionalFields: ['origContactRole2', 'contactRole2']
|
32954
|
-
editable: !viewOnly
|
32764
|
+
additionalFields: ['origContactRole2', 'contactRole2']
|
32955
32765
|
}, {
|
32956
32766
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
|
32957
32767
|
field: 'translatedContactName2',
|
@@ -32960,8 +32770,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32960
32770
|
placeHolderField: 'origContactName2',
|
32961
32771
|
combinedField: 'contactName2'
|
32962
32772
|
},
|
32963
|
-
additionalFields: ['origContactName2', 'contactName2']
|
32964
|
-
editable: !viewOnly
|
32773
|
+
additionalFields: ['origContactName2', 'contactName2']
|
32965
32774
|
}, {
|
32966
32775
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
|
32967
32776
|
field: 'translatedFirstName2',
|
@@ -32970,8 +32779,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32970
32779
|
placeHolderField: 'origFirstName2',
|
32971
32780
|
combinedField: 'firstName2'
|
32972
32781
|
},
|
32973
|
-
additionalFields: ['origFirstName2', 'firstName2']
|
32974
|
-
editable: !viewOnly
|
32782
|
+
additionalFields: ['origFirstName2', 'firstName2']
|
32975
32783
|
}, {
|
32976
32784
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
|
32977
32785
|
field: 'translatedFormOfAddress2',
|
@@ -32983,8 +32791,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32983
32791
|
enumData: getFormOfAddressKey(t),
|
32984
32792
|
displayLabelTemplate: '${name} (${value})'
|
32985
32793
|
},
|
32986
|
-
additionalFields: ['origFormOfAddress2', 'formOfAddress2']
|
32987
|
-
editable: !viewOnly
|
32794
|
+
additionalFields: ['origFormOfAddress2', 'formOfAddress2']
|
32988
32795
|
}, {
|
32989
32796
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
|
32990
32797
|
field: 'translatedDepartment2',
|
@@ -32993,8 +32800,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
32993
32800
|
placeHolderField: 'origDepartment2',
|
32994
32801
|
combinedField: 'department2'
|
32995
32802
|
},
|
32996
|
-
additionalFields: ['origDepartment2', 'department2']
|
32997
|
-
editable: !viewOnly
|
32803
|
+
additionalFields: ['origDepartment2', 'department2']
|
32998
32804
|
}, {
|
32999
32805
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
|
33000
32806
|
field: 'translatedTelephone2',
|
@@ -33003,8 +32809,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33003
32809
|
placeHolderField: 'origTelephone2',
|
33004
32810
|
combinedField: 'telephone2'
|
33005
32811
|
},
|
33006
|
-
additionalFields: ['origTelephone2', 'telephone2']
|
33007
|
-
editable: !viewOnly
|
32812
|
+
additionalFields: ['origTelephone2', 'telephone2']
|
33008
32813
|
}, {
|
33009
32814
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
|
33010
32815
|
field: 'translatedFax2',
|
@@ -33013,8 +32818,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33013
32818
|
placeHolderField: 'origFax2',
|
33014
32819
|
combinedField: 'fax2'
|
33015
32820
|
},
|
33016
|
-
additionalFields: ['origFax2', 'fax2']
|
33017
|
-
editable: !viewOnly
|
32821
|
+
additionalFields: ['origFax2', 'fax2']
|
33018
32822
|
}, {
|
33019
32823
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
|
33020
32824
|
field: 'translatedEmail2',
|
@@ -33023,8 +32827,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33023
32827
|
placeHolderField: 'origEmail2',
|
33024
32828
|
combinedField: 'email2'
|
33025
32829
|
},
|
33026
|
-
additionalFields: ['origEmail2', 'email2']
|
33027
|
-
editable: !viewOnly
|
32830
|
+
additionalFields: ['origEmail2', 'email2']
|
33028
32831
|
}, {
|
33029
32832
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
|
33030
32833
|
field: 'translatedStreet2',
|
@@ -33033,8 +32836,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33033
32836
|
placeHolderField: 'origStreet2',
|
33034
32837
|
combinedField: 'street2'
|
33035
32838
|
},
|
33036
|
-
additionalFields: ['origStreet2', 'street2']
|
33037
|
-
editable: !viewOnly
|
32839
|
+
additionalFields: ['origStreet2', 'street2']
|
33038
32840
|
}, {
|
33039
32841
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
|
33040
32842
|
field: 'translatedZipCodeStreet2',
|
@@ -33043,8 +32845,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33043
32845
|
placeHolderField: 'origZipCodeStreet2',
|
33044
32846
|
combinedField: 'zipCodeStreet2'
|
33045
32847
|
},
|
33046
|
-
additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
|
33047
|
-
editable: !viewOnly
|
32848
|
+
additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
|
33048
32849
|
}, {
|
33049
32850
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
|
33050
32851
|
field: 'translatedCity2',
|
@@ -33053,11 +32854,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33053
32854
|
placeHolderField: 'origCity2',
|
33054
32855
|
combinedField: 'city2'
|
33055
32856
|
},
|
33056
|
-
additionalFields: ['origCity2', 'city2']
|
33057
|
-
editable: !viewOnly
|
32857
|
+
additionalFields: ['origCity2', 'city2']
|
33058
32858
|
}, {
|
33059
32859
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
|
33060
32860
|
field: 'translatedIsoCountryId2',
|
32861
|
+
editable: true,
|
33061
32862
|
cellDataType: 'withPlaceholder',
|
33062
32863
|
type: ['withPlaceholderEnum'],
|
33063
32864
|
customParams: {
|
@@ -33065,8 +32866,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33065
32866
|
combinedField: 'isoCountryId2',
|
33066
32867
|
enumData: getCountryKey(t)
|
33067
32868
|
},
|
33068
|
-
additionalFields: ['origIsoCountryId2', 'isoCountryId2']
|
33069
|
-
editable: !viewOnly
|
32869
|
+
additionalFields: ['origIsoCountryId2', 'isoCountryId2']
|
33070
32870
|
}, {
|
33071
32871
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
|
33072
32872
|
field: 'translatedManufactureName1',
|
@@ -33075,8 +32875,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33075
32875
|
placeHolderField: 'origManufactureName1',
|
33076
32876
|
combinedField: 'manufactureName1'
|
33077
32877
|
},
|
33078
|
-
additionalFields: ['origManufactureName1', 'manufactureName1']
|
33079
|
-
editable: !viewOnly
|
32878
|
+
additionalFields: ['origManufactureName1', 'manufactureName1']
|
33080
32879
|
}, {
|
33081
32880
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
|
33082
32881
|
field: 'translatedManufactureName2',
|
@@ -33085,8 +32884,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33085
32884
|
placeHolderField: 'origManufactureName2',
|
33086
32885
|
combinedField: 'manufactureName2'
|
33087
32886
|
},
|
33088
|
-
additionalFields: ['origManufactureName2', 'manufactureName2']
|
33089
|
-
editable: !viewOnly
|
32887
|
+
additionalFields: ['origManufactureName2', 'manufactureName2']
|
33090
32888
|
}, {
|
33091
32889
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
|
33092
32890
|
field: 'translatedEmail',
|
@@ -33095,8 +32893,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33095
32893
|
placeHolderField: 'origEmail',
|
33096
32894
|
combinedField: 'email'
|
33097
32895
|
},
|
33098
|
-
additionalFields: ['origEmail', 'email']
|
33099
|
-
editable: !viewOnly
|
32896
|
+
additionalFields: ['origEmail', 'email']
|
33100
32897
|
}, {
|
33101
32898
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
|
33102
32899
|
field: 'translatedInternetAddress',
|
@@ -33105,8 +32902,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33105
32902
|
placeHolderField: 'origInternetAddress',
|
33106
32903
|
combinedField: 'internetAddress'
|
33107
32904
|
},
|
33108
|
-
additionalFields: ['origInternetAddress', 'internetAddress']
|
33109
|
-
editable: !viewOnly
|
32905
|
+
additionalFields: ['origInternetAddress', 'internetAddress']
|
33110
32906
|
}, {
|
33111
32907
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
|
33112
32908
|
field: 'translatedStreet',
|
@@ -33115,8 +32911,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33115
32911
|
placeHolderField: 'origStreet',
|
33116
32912
|
combinedField: 'street'
|
33117
32913
|
},
|
33118
|
-
additionalFields: ['origStreet', 'street']
|
33119
|
-
editable: !viewOnly
|
32914
|
+
additionalFields: ['origStreet', 'street']
|
33120
32915
|
}, {
|
33121
32916
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
|
33122
32917
|
field: 'translatedZipCodeStreet',
|
@@ -33125,8 +32920,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33125
32920
|
placeHolderField: 'origZipCodeStreet',
|
33126
32921
|
combinedField: 'zipCodeStreet'
|
33127
32922
|
},
|
33128
|
-
additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
|
33129
|
-
editable: !viewOnly
|
32923
|
+
additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
|
33130
32924
|
}, {
|
33131
32925
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
|
33132
32926
|
field: 'translatedCity',
|
@@ -33135,11 +32929,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33135
32929
|
placeHolderField: 'origCity',
|
33136
32930
|
combinedField: 'city'
|
33137
32931
|
},
|
33138
|
-
additionalFields: ['origCity', 'city']
|
33139
|
-
editable: !viewOnly
|
32932
|
+
additionalFields: ['origCity', 'city']
|
33140
32933
|
}, {
|
33141
32934
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
|
33142
32935
|
field: 'translatedContactSupplierIsoCountryId',
|
32936
|
+
editable: true,
|
33143
32937
|
cellDataType: 'withPlaceholder',
|
33144
32938
|
type: ['withPlaceholderEnum'],
|
33145
32939
|
customParams: {
|
@@ -33147,8 +32941,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33147
32941
|
combinedField: 'contactSupplierIsoCountryId',
|
33148
32942
|
enumData: getCountryKey(t)
|
33149
32943
|
},
|
33150
|
-
additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
|
33151
|
-
editable: !viewOnly
|
32944
|
+
additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
|
33152
32945
|
}, {
|
33153
32946
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
|
33154
32947
|
field: 'translatedZipCodePostBox',
|
@@ -33157,8 +32950,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33157
32950
|
placeHolderField: 'origZipCodePostBox',
|
33158
32951
|
combinedField: 'zipCodePostBox'
|
33159
32952
|
},
|
33160
|
-
additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
|
33161
|
-
editable: !viewOnly
|
32953
|
+
additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
|
33162
32954
|
}, {
|
33163
32955
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
|
33164
32956
|
field: 'translatedPostBox',
|
@@ -33167,8 +32959,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33167
32959
|
placeHolderField: 'origPostBox',
|
33168
32960
|
combinedField: 'postBox'
|
33169
32961
|
},
|
33170
|
-
additionalFields: ['origPostBox', 'postBox']
|
33171
|
-
editable: !viewOnly
|
32962
|
+
additionalFields: ['origPostBox', 'postBox']
|
33172
32963
|
}, {
|
33173
32964
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
|
33174
32965
|
field: 'translatedTelephoneSwitchboard',
|
@@ -33177,8 +32968,7 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33177
32968
|
placeHolderField: 'origTelephoneSwitchboard',
|
33178
32969
|
combinedField: 'telephoneSwitchboard'
|
33179
32970
|
},
|
33180
|
-
additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
|
33181
|
-
editable: !viewOnly
|
32971
|
+
additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
|
33182
32972
|
}, {
|
33183
32973
|
headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
|
33184
32974
|
field: 'translatedFaxSwitchboard',
|
@@ -33187,13 +32977,12 @@ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33187
32977
|
placeHolderField: 'origFaxSwitchboard',
|
33188
32978
|
combinedField: 'faxSwitchboard'
|
33189
32979
|
},
|
33190
|
-
additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
|
33191
|
-
editable: !viewOnly
|
32980
|
+
additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
|
33192
32981
|
}]
|
33193
32982
|
};
|
33194
32983
|
};
|
33195
32984
|
|
33196
|
-
var getConfig$5 = function getConfig(isoLanguageIds
|
32985
|
+
var getConfig$5 = function getConfig(isoLanguageIds) {
|
33197
32986
|
return {
|
33198
32987
|
colDef: [{
|
33199
32988
|
headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
|
@@ -33202,17 +32991,17 @@ var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33202
32991
|
}, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
|
33203
32992
|
placeHolderField: 'origExternalName',
|
33204
32993
|
combinedField: 'externalName'
|
33205
|
-
}, ['origExternalName', 'externalName']
|
32994
|
+
}, ['origExternalName', 'externalName']), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
|
33206
32995
|
placeHolderField: 'origInternalName',
|
33207
32996
|
combinedField: 'internalName'
|
33208
|
-
}, ['origInternalName', 'internalName']
|
32997
|
+
}, ['origInternalName', 'internalName']), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
|
33209
32998
|
placeHolderField: 'origToolTip',
|
33210
32999
|
combinedField: 'toolTip'
|
33211
|
-
}, ['origToolTip', 'toolTip']
|
33000
|
+
}, ['origToolTip', 'toolTip'])]
|
33212
33001
|
};
|
33213
33002
|
};
|
33214
33003
|
|
33215
|
-
var getConfig$4 = function getConfig(isoLanguageIds
|
33004
|
+
var getConfig$4 = function getConfig(isoLanguageIds) {
|
33216
33005
|
return {
|
33217
33006
|
colDef: [{
|
33218
33007
|
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
@@ -33223,11 +33012,11 @@ var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33223
33012
|
}, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, false, 'withPlaceholder', {
|
33224
33013
|
placeHolderField: 'origFeatureText',
|
33225
33014
|
combinedField: 'featureText'
|
33226
|
-
}, ['origFeatureText', 'featureText']
|
33015
|
+
}, ['origFeatureText', 'featureText'])]
|
33227
33016
|
};
|
33228
33017
|
};
|
33229
33018
|
|
33230
|
-
var getConfig$3 = function getConfig(isoLanguageIds
|
33019
|
+
var getConfig$3 = function getConfig(isoLanguageIds) {
|
33231
33020
|
return {
|
33232
33021
|
colDef: [{
|
33233
33022
|
headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
|
@@ -33238,13 +33027,13 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33238
33027
|
}, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, false, 'withPlaceholder', {
|
33239
33028
|
placeHolderField: 'origShortText',
|
33240
33029
|
combinedField: 'shortText'
|
33241
|
-
}, ['origShortText', 'shortText']
|
33030
|
+
}, ['origShortText', 'shortText']), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, false, 'withPlaceholder', {
|
33242
33031
|
placeHolderField: 'origFullText',
|
33243
33032
|
combinedField: 'fullText'
|
33244
|
-
}, ['origFullText', 'fullText']
|
33033
|
+
}, ['origFullText', 'fullText']), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, false, 'withPlaceholder', {
|
33245
33034
|
placeHolderField: 'origPlanningAdvice',
|
33246
33035
|
combinedField: 'planningAdvice'
|
33247
|
-
}, ['origPlanningAdvice', 'planningAdvice']
|
33036
|
+
}, ['origPlanningAdvice', 'planningAdvice']), {
|
33248
33037
|
headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
|
33249
33038
|
field: 'translatedSalesNumber',
|
33250
33039
|
cellDataType: 'withPlaceholder',
|
@@ -33252,8 +33041,7 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33252
33041
|
placeHolderField: 'origSalesNumber',
|
33253
33042
|
combinedField: 'salesNumber'
|
33254
33043
|
},
|
33255
|
-
additionalFields: ['origSalesNumber', 'salesNumber']
|
33256
|
-
editable: !viewOnly
|
33044
|
+
additionalFields: ['origSalesNumber', 'salesNumber']
|
33257
33045
|
}, {
|
33258
33046
|
field: 'sequenceNo',
|
33259
33047
|
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
@@ -33267,8 +33055,7 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33267
33055
|
placeHolderField: 'origEdpNumber',
|
33268
33056
|
combinedField: 'edpNumber'
|
33269
33057
|
},
|
33270
|
-
additionalFields: ['origEdpNumber', 'edpNumber']
|
33271
|
-
editable: !viewOnly
|
33058
|
+
additionalFields: ['origEdpNumber', 'edpNumber']
|
33272
33059
|
}, {
|
33273
33060
|
headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
|
33274
33061
|
field: 'translatedEanNumber',
|
@@ -33277,13 +33064,12 @@ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33277
33064
|
placeHolderField: 'origEanNumber',
|
33278
33065
|
combinedField: 'eanNumber'
|
33279
33066
|
},
|
33280
|
-
additionalFields: ['origEanNumber', 'eanNumber']
|
33281
|
-
editable: !viewOnly
|
33067
|
+
additionalFields: ['origEanNumber', 'eanNumber']
|
33282
33068
|
}]
|
33283
33069
|
};
|
33284
33070
|
};
|
33285
33071
|
|
33286
|
-
var getConfig$2 = function getConfig(isoLanguageIds
|
33072
|
+
var getConfig$2 = function getConfig(isoLanguageIds) {
|
33287
33073
|
return {
|
33288
33074
|
colDef: [{
|
33289
33075
|
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
@@ -33294,10 +33080,10 @@ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33294
33080
|
}, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, false, 'withPlaceholder', {
|
33295
33081
|
placeHolderField: 'origOptionText',
|
33296
33082
|
combinedField: 'optionText'
|
33297
|
-
}, ['origOptionText', 'optionText']
|
33083
|
+
}, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
|
33298
33084
|
placeHolderField: 'origOptionCommentText',
|
33299
33085
|
combinedField: 'optionCommentText'
|
33300
|
-
}, ['origOptionCommentText', 'optionCommentText']
|
33086
|
+
}, ['origOptionCommentText', 'optionCommentText']), {
|
33301
33087
|
field: 'featureNos',
|
33302
33088
|
headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
|
33303
33089
|
cellDataType: 'lookup',
|
@@ -33322,7 +33108,7 @@ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33322
33108
|
};
|
33323
33109
|
};
|
33324
33110
|
|
33325
|
-
var getConfig$1 = function getConfig(isoLanguageIds
|
33111
|
+
var getConfig$1 = function getConfig(isoLanguageIds) {
|
33326
33112
|
return {
|
33327
33113
|
colDef: [{
|
33328
33114
|
headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
|
@@ -33333,10 +33119,10 @@ var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
|
|
33333
33119
|
}, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
|
33334
33120
|
placeHolderField: 'origSeriesName',
|
33335
33121
|
combinedField: 'seriesName'
|
33336
|
-
}, ['origSeriesName', 'seriesName']
|
33122
|
+
}, ['origSeriesName', 'seriesName']), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
|
33337
33123
|
placeHolderField: 'origSeriesFullText',
|
33338
33124
|
combinedField: 'seriesFullText'
|
33339
|
-
}, ['origSeriesFullText', 'seriesFullText']
|
33125
|
+
}, ['origSeriesFullText', 'seriesFullText'])]
|
33340
33126
|
};
|
33341
33127
|
};
|
33342
33128
|
|
@@ -33424,53 +33210,19 @@ var RenamingTable = observer(function (_ref) {
|
|
33424
33210
|
packageId = _useModule.packageId,
|
33425
33211
|
apiConfig = _useModule.apiConfig,
|
33426
33212
|
selectedPackage = _useModule.selectedPackage,
|
33427
|
-
|
33428
|
-
|
33429
|
-
|
33430
|
-
|
33431
|
-
|
33213
|
+
selectedSerie = _useModule.selectedSerie;
|
33214
|
+
useTools({
|
33215
|
+
packageId: packageId,
|
33216
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33217
|
+
});
|
33432
33218
|
var baseConfiguration = useMemo(function () {
|
33433
|
-
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t
|
33219
|
+
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
33434
33220
|
}, [selectedPackage, i18n.language]);
|
33435
|
-
var _useTools = useTools({
|
33436
|
-
packageId: packageId,
|
33437
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
|
33438
|
-
setArticle: setSelectedItem,
|
33439
|
-
setSerie: setSelectedSerie,
|
33440
|
-
serie: selectedSerie,
|
33441
|
-
item: selectedItem
|
33442
|
-
}),
|
33443
|
-
updateConfigurator = _useTools.updateConfigurator;
|
33444
33221
|
var applicationData = useMemo(function () {
|
33445
33222
|
return {
|
33446
33223
|
packageId: packageId
|
33447
33224
|
};
|
33448
33225
|
}, [packageId]);
|
33449
|
-
var hooks = useMemo(function () {
|
33450
|
-
return {
|
33451
|
-
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
33452
|
-
var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
|
33453
|
-
switch (type) {
|
33454
|
-
case 'features':
|
33455
|
-
updateConfigurator({
|
33456
|
-
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
|
33457
|
-
});
|
33458
|
-
break;
|
33459
|
-
case 'options':
|
33460
|
-
updateConfigurator({
|
33461
|
-
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
|
33462
|
-
});
|
33463
|
-
break;
|
33464
|
-
case 'items':
|
33465
|
-
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);
|
33466
|
-
break;
|
33467
|
-
case 'series':
|
33468
|
-
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);
|
33469
|
-
break;
|
33470
|
-
}
|
33471
|
-
}
|
33472
|
-
};
|
33473
|
-
}, [updateConfigurator, type]);
|
33474
33226
|
var prevPreFilter = useRef();
|
33475
33227
|
var preFilter = useMemo(function () {
|
33476
33228
|
if (type === 'items' && selectedSerie) {
|
@@ -33491,7 +33243,7 @@ var RenamingTable = observer(function (_ref) {
|
|
33491
33243
|
var apiInterface = useMemo(function () {
|
33492
33244
|
return {
|
33493
33245
|
read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
|
33494
|
-
update:
|
33246
|
+
update: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
|
33495
33247
|
bulk: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/bulk'
|
33496
33248
|
};
|
33497
33249
|
}, [type]);
|
@@ -33517,7 +33269,7 @@ var RenamingTable = observer(function (_ref) {
|
|
33517
33269
|
cellDataType: 'objectId'
|
33518
33270
|
}])
|
33519
33271
|
};
|
33520
|
-
}, [apiInterface, baseConfiguration.colDef
|
33272
|
+
}, [apiInterface, baseConfiguration.colDef]);
|
33521
33273
|
var showTable = useMemo(function () {
|
33522
33274
|
return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
|
33523
33275
|
}, [type, preFilter, selectedPackage]);
|
@@ -33540,8 +33292,7 @@ var RenamingTable = observer(function (_ref) {
|
|
33540
33292
|
gridId: 'renaming-grid_' + type,
|
33541
33293
|
applicationData: applicationData,
|
33542
33294
|
preFilter: preFilter,
|
33543
|
-
configuration: configuration
|
33544
|
-
hooks: hooks
|
33295
|
+
configuration: configuration
|
33545
33296
|
})]
|
33546
33297
|
});
|
33547
33298
|
});
|
@@ -34023,45 +33774,11 @@ var ExclusivityTable = observer(function (_ref) {
|
|
34023
33774
|
apiConfig = _useModule.apiConfig,
|
34024
33775
|
organizationId = _useModule.organizationId,
|
34025
33776
|
selectedPackage = _useModule.selectedPackage,
|
34026
|
-
selectedSerie = _useModule.selectedSerie
|
34027
|
-
|
34028
|
-
|
34029
|
-
|
34030
|
-
|
34031
|
-
var _useTools = useTools({
|
34032
|
-
packageId: packageId,
|
34033
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
|
34034
|
-
setArticle: setSelectedItem,
|
34035
|
-
setSerie: setSelectedSerie,
|
34036
|
-
serie: selectedSerie,
|
34037
|
-
item: selectedItem
|
34038
|
-
}),
|
34039
|
-
updateConfigurator = _useTools.updateConfigurator;
|
34040
|
-
var hooks = useMemo(function () {
|
34041
|
-
return {
|
34042
|
-
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
34043
|
-
var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
|
34044
|
-
switch (type) {
|
34045
|
-
case 'efeatures':
|
34046
|
-
updateConfigurator({
|
34047
|
-
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
|
34048
|
-
});
|
34049
|
-
break;
|
34050
|
-
case 'eoptions':
|
34051
|
-
updateConfigurator({
|
34052
|
-
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
|
34053
|
-
});
|
34054
|
-
break;
|
34055
|
-
case 'eitems':
|
34056
|
-
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);
|
34057
|
-
break;
|
34058
|
-
case 'eseries':
|
34059
|
-
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);
|
34060
|
-
break;
|
34061
|
-
}
|
34062
|
-
}
|
34063
|
-
};
|
34064
|
-
}, [updateConfigurator, type]);
|
33777
|
+
selectedSerie = _useModule.selectedSerie;
|
33778
|
+
useTools({
|
33779
|
+
packageId: packageId,
|
33780
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
33781
|
+
});
|
34065
33782
|
var apiInterface = useMemo(function () {
|
34066
33783
|
var patchId = '${_id}';
|
34067
33784
|
if (type === 'eitems') patchId = '${typeNo}';
|
@@ -34075,7 +33792,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
34075
33792
|
var listType = type === 'eitems' ? 'items' : 'options';
|
34076
33793
|
return {
|
34077
33794
|
read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
|
34078
|
-
update:
|
33795
|
+
update: !['eitems', 'eoptions'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoptions' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
|
34079
33796
|
};
|
34080
33797
|
}, [type]);
|
34081
33798
|
var oldDataRef = useRef();
|
@@ -34104,7 +33821,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
34104
33821
|
floatingFilter: true,
|
34105
33822
|
colDef: [{
|
34106
33823
|
field: 'active',
|
34107
|
-
editable:
|
33824
|
+
editable: true,
|
34108
33825
|
cellDataType: 'boolean',
|
34109
33826
|
pinned: 'left',
|
34110
33827
|
lockPinned: true
|
@@ -34120,11 +33837,11 @@ var ExclusivityTable = observer(function (_ref) {
|
|
34120
33837
|
}, {
|
34121
33838
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
34122
33839
|
field: '_id',
|
34123
|
-
editable:
|
33840
|
+
editable: true,
|
34124
33841
|
cellDataType: 'objectId'
|
34125
33842
|
}])
|
34126
33843
|
};
|
34127
|
-
}, [apiInterface, selectedSerie, config.colDef
|
33844
|
+
}, [apiInterface, selectedSerie, config.colDef]);
|
34128
33845
|
return /*#__PURE__*/jsxs(Fragment, {
|
34129
33846
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
34130
33847
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -34143,8 +33860,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
34143
33860
|
}), showTable && /*#__PURE__*/jsx(Spreadsheet, {
|
34144
33861
|
gridId: 'crud-grid_exclusivity_' + type,
|
34145
33862
|
applicationData: applicationData,
|
34146
|
-
configuration: configuration
|
34147
|
-
hooks: hooks
|
33863
|
+
configuration: configuration
|
34148
33864
|
})]
|
34149
33865
|
});
|
34150
33866
|
});
|
@@ -34156,11 +33872,10 @@ var TableTabGroups = observer(function () {
|
|
34156
33872
|
packageId = _useModule.packageId,
|
34157
33873
|
organizationId = _useModule.organizationId,
|
34158
33874
|
apiConfig = _useModule.apiConfig,
|
34159
|
-
selectedPackage = _useModule.selectedPackage
|
34160
|
-
viewOnly = _useModule.viewOnly;
|
33875
|
+
selectedPackage = _useModule.selectedPackage;
|
34161
33876
|
useTools({
|
34162
33877
|
packageId: packageId,
|
34163
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.
|
33878
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
34164
33879
|
});
|
34165
33880
|
var applicationData = useMemo(function () {
|
34166
33881
|
return {
|
@@ -34172,10 +33887,10 @@ var TableTabGroups = observer(function () {
|
|
34172
33887
|
return {
|
34173
33888
|
//TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
|
34174
33889
|
read: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
|
34175
|
-
create:
|
34176
|
-
restore:
|
34177
|
-
"delete":
|
34178
|
-
update:
|
33890
|
+
create: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
|
33891
|
+
restore: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
|
33892
|
+
"delete": apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
|
33893
|
+
update: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
|
34179
33894
|
bulk: apiConfig.enricherService + '/packages/${packageId}/tabgroups/bulk'
|
34180
33895
|
};
|
34181
33896
|
}, []);
|
@@ -34189,7 +33904,7 @@ var TableTabGroups = observer(function () {
|
|
34189
33904
|
field: 'featureNos',
|
34190
33905
|
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
34191
33906
|
cellDataType: 'lookup',
|
34192
|
-
editable:
|
33907
|
+
editable: true,
|
34193
33908
|
customParams: {
|
34194
33909
|
nameField: 'featureNosDisplayTexts',
|
34195
33910
|
displayLabelTemplate: '${name} (${value})',
|
@@ -34203,7 +33918,7 @@ var TableTabGroups = observer(function () {
|
|
34203
33918
|
},
|
34204
33919
|
additionalFields: ['featureNosDisplayTexts'],
|
34205
33920
|
isDictionary: true
|
34206
|
-
}, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds,
|
33921
|
+
}, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), {
|
34207
33922
|
field: 'organizationId',
|
34208
33923
|
editable: false,
|
34209
33924
|
hide: true,
|
@@ -34233,7 +33948,7 @@ var TableTabGroups = observer(function () {
|
|
34233
33948
|
cellDataType: 'objectId'
|
34234
33949
|
}]
|
34235
33950
|
};
|
34236
|
-
}, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds
|
33951
|
+
}, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
34237
33952
|
return /*#__PURE__*/jsxs(Fragment, {
|
34238
33953
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
34239
33954
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -34261,11 +33976,10 @@ var TablePartlistPos = observer(function () {
|
|
34261
33976
|
packageId = _useModule.packageId,
|
34262
33977
|
organizationId = _useModule.organizationId,
|
34263
33978
|
apiConfig = _useModule.apiConfig,
|
34264
|
-
selectedPackage = _useModule.selectedPackage
|
34265
|
-
viewOnly = _useModule.viewOnly;
|
33979
|
+
selectedPackage = _useModule.selectedPackage;
|
34266
33980
|
useTools({
|
34267
33981
|
packageId: packageId,
|
34268
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.
|
33982
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
34269
33983
|
});
|
34270
33984
|
var posInvisibility = useMemo(function () {
|
34271
33985
|
return [{
|
@@ -34288,10 +34002,10 @@ var TablePartlistPos = observer(function () {
|
|
34288
34002
|
var apiInterface = useMemo(function () {
|
34289
34003
|
return {
|
34290
34004
|
read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
|
34291
|
-
create:
|
34292
|
-
restore:
|
34293
|
-
"delete":
|
34294
|
-
update:
|
34005
|
+
create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
|
34006
|
+
restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
|
34007
|
+
"delete": apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
|
34008
|
+
update: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
|
34295
34009
|
bulk: apiConfig.enricherService + '/packages/${packageId}/partlistpos/bulk'
|
34296
34010
|
};
|
34297
34011
|
}, []);
|
@@ -34304,12 +34018,12 @@ var TablePartlistPos = observer(function () {
|
|
34304
34018
|
colDef: [{
|
34305
34019
|
headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
|
34306
34020
|
field: 'retailPrefix',
|
34307
|
-
editable:
|
34021
|
+
editable: true,
|
34308
34022
|
pinned: 'left'
|
34309
34023
|
}, {
|
34310
34024
|
headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
|
34311
34025
|
field: 'retailArtilceNumber',
|
34312
|
-
editable:
|
34026
|
+
editable: true,
|
34313
34027
|
pinned: 'left'
|
34314
34028
|
}, {
|
34315
34029
|
headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
|
@@ -34411,7 +34125,7 @@ var TablePartlistPos = observer(function () {
|
|
34411
34125
|
cellDataType: 'objectId'
|
34412
34126
|
}]
|
34413
34127
|
};
|
34414
|
-
}, [apiInterface, posInvisibility
|
34128
|
+
}, [apiInterface, posInvisibility]);
|
34415
34129
|
return /*#__PURE__*/jsxs(Fragment, {
|
34416
34130
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
34417
34131
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -34712,8 +34426,8 @@ var space = "space-T5Mkd";
|
|
34712
34426
|
var input$1 = "input-SK-Fo";
|
34713
34427
|
var addButton$1 = "addButton-AVN8Y";
|
34714
34428
|
var helpText = "helpText-QYQQF";
|
34715
|
-
var css_248z$
|
34716
|
-
styleInject(css_248z$
|
34429
|
+
var css_248z$d = ".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";
|
34430
|
+
styleInject(css_248z$d);
|
34717
34431
|
|
34718
34432
|
function PriceFactorCellRenderer(props) {
|
34719
34433
|
var data = props.data,
|
@@ -34929,8 +34643,8 @@ var difference = "difference-xT9ZP";
|
|
34929
34643
|
var differencePositive = "differencePositive-hGhZO";
|
34930
34644
|
var differenceNegative = "differenceNegative-3CEZA";
|
34931
34645
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
34932
|
-
var css_248z$
|
34933
|
-
styleInject(css_248z$
|
34646
|
+
var css_248z$c = ".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";
|
34647
|
+
styleInject(css_248z$c);
|
34934
34648
|
|
34935
34649
|
function PriceDisplayCellRenderer(props) {
|
34936
34650
|
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
@@ -34996,129 +34710,59 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
34996
34710
|
if (!(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie.pricefeaturegroups)) {
|
34997
34711
|
return [];
|
34998
34712
|
}
|
34999
|
-
var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (
|
34713
|
+
var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroups, i) {
|
35000
34714
|
var _selectedSerie$pricef2, _selectedSerie$pricef3;
|
35001
34715
|
return {
|
35002
|
-
id:
|
35003
|
-
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 :
|
34716
|
+
id: priceFeatureGroups,
|
34717
|
+
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 : priceFeatureGroups,
|
35004
34718
|
keys: [],
|
35005
34719
|
keysDisplayTexts: []
|
35006
34720
|
};
|
35007
34721
|
});
|
35008
|
-
(_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (
|
35009
|
-
var pfgSplit =
|
35010
|
-
var pfgId = pfgSplit[0];
|
34722
|
+
(_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceFeatureGroupKey, i) {
|
34723
|
+
var pfgSplit = priceFeatureGroupKey.split('_');
|
34724
|
+
var pfgId = pfgSplit[0].replace('PRFG', '');
|
35011
34725
|
var pfg = priceFeatureGroups.find(function (pfg) {
|
35012
34726
|
return pfg.id == pfgId;
|
35013
34727
|
});
|
35014
34728
|
if (pfg) {
|
35015
34729
|
var _selectedSerie$pricef5;
|
35016
|
-
pfg.keys.push(
|
34730
|
+
pfg.keys.push(priceFeatureGroupKey);
|
35017
34731
|
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()]);
|
35018
34732
|
}
|
35019
34733
|
});
|
35020
34734
|
return priceFeatureGroups;
|
35021
34735
|
}
|
35022
34736
|
|
34737
|
+
var wrapper$3 = "wrapper-5t6RT";
|
35023
34738
|
var input = "input-leHam";
|
35024
34739
|
var disabled$1 = "disabled-Llkqu";
|
35025
|
-
var css_248z$
|
35026
|
-
styleInject(css_248z$
|
34740
|
+
var css_248z$b = ".wrapper-5t6RT {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.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";
|
34741
|
+
styleInject(css_248z$b);
|
35027
34742
|
|
35028
|
-
var _excluded = ["onSave", "value"];
|
35029
34743
|
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; }
|
35030
34744
|
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; }
|
35031
|
-
function PriceFactorInput(
|
35032
|
-
var _onSave = _ref.onSave,
|
35033
|
-
value = _ref.value,
|
35034
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
35035
|
-
var _useState = useState(value),
|
35036
|
-
_useState2 = _slicedToArray(_useState, 2),
|
35037
|
-
innerValue = _useState2[0],
|
35038
|
-
setInnerValue = _useState2[1];
|
35039
|
-
useEffect(function () {
|
35040
|
-
setInnerValue(value);
|
35041
|
-
}, [value]);
|
35042
|
-
return /*#__PURE__*/jsx(Tooltip$1, {
|
35043
|
-
title: props.tooltip,
|
35044
|
-
children: /*#__PURE__*/jsx("div", {
|
35045
|
-
className: classnames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
|
35046
|
-
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
|
35047
|
-
isNotInAGGrid: true,
|
35048
|
-
value: innerValue,
|
35049
|
-
onSave: function onSave(data, value) {
|
35050
|
-
setInnerValue(value);
|
35051
|
-
return _onSave(data, value);
|
35052
|
-
}
|
35053
|
-
}))
|
35054
|
-
})
|
35055
|
-
});
|
35056
|
-
}
|
35057
|
-
|
35058
|
-
var inputHeader = "input-header--4KDP";
|
35059
|
-
var factorInput = "factor-input-MX85Z";
|
35060
|
-
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";
|
35061
|
-
styleInject(css_248z$b);
|
35062
|
-
|
35063
|
-
function PriceFactorHeaderComponent(_ref) {
|
35064
|
-
var onSave = _ref.onSave,
|
35065
|
-
onPriorityChange = _ref.onPriorityChange,
|
35066
|
-
priority = _ref.priority,
|
35067
|
-
priorityForced = _ref.priorityForced,
|
35068
|
-
value = _ref.value,
|
35069
|
-
inputTooltip = _ref.inputTooltip,
|
35070
|
-
checkboxTooltip = _ref.checkboxTooltip;
|
35071
|
-
var _useTranslation = useTranslation$1(),
|
35072
|
-
t = _useTranslation.t;
|
35073
|
-
var _useState = useState(priority || priorityForced),
|
35074
|
-
_useState2 = _slicedToArray(_useState, 2),
|
35075
|
-
innerChecked = _useState2[0],
|
35076
|
-
setInnerChecked = _useState2[1];
|
35077
|
-
useEffect(function () {
|
35078
|
-
setInnerChecked(priority || priorityForced);
|
35079
|
-
}, [priority, priorityForced]);
|
35080
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
35081
|
-
children: [/*#__PURE__*/jsx(PriceFactorInput, {
|
35082
|
-
onSave: onSave,
|
35083
|
-
value: value,
|
35084
|
-
className: factorInput,
|
35085
|
-
tooltip: t(inputTooltip)
|
35086
|
-
}), /*#__PURE__*/jsx(Tooltip$1, {
|
35087
|
-
title: t("".concat(checkboxTooltip, ".").concat(priorityForced ? 'forced' : priority ? 'true' : 'false')),
|
35088
|
-
children: /*#__PURE__*/jsx(Checkbox, {
|
35089
|
-
checked: innerChecked,
|
35090
|
-
disabled: priorityForced,
|
35091
|
-
onChange: function onChange(e) {
|
35092
|
-
setInnerChecked(e.target.checked);
|
35093
|
-
onPriorityChange(e.target.checked);
|
35094
|
-
}
|
35095
|
-
})
|
35096
|
-
})]
|
35097
|
-
});
|
35098
|
-
}
|
35099
|
-
|
35100
|
-
var root = "root-WJLKp";
|
35101
|
-
var contentWrapper$1 = "content-wrapper-Ki4Pt";
|
35102
|
-
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";
|
35103
|
-
styleInject(css_248z$a);
|
35104
|
-
|
35105
|
-
function Setting(_ref) {
|
35106
|
-
var title = _ref.title,
|
35107
|
-
tooltip = _ref.tooltip,
|
35108
|
-
className = _ref.className,
|
35109
|
-
children = _ref.children;
|
34745
|
+
function PriceFactorInput(props) {
|
35110
34746
|
return /*#__PURE__*/jsxs("div", {
|
35111
|
-
className: classnames(
|
35112
|
-
children: [title, /*#__PURE__*/jsx(Tooltip$1, {
|
35113
|
-
title: tooltip,
|
34747
|
+
className: classnames(wrapper$3, props.className),
|
34748
|
+
children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
|
34749
|
+
title: props.tooltip,
|
35114
34750
|
children: /*#__PURE__*/jsx("div", {
|
35115
|
-
|
35116
|
-
|
34751
|
+
id: "price-factor-input",
|
34752
|
+
className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
|
34753
|
+
children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
|
34754
|
+
isNotInAGGrid: true
|
34755
|
+
}))
|
35117
34756
|
})
|
35118
34757
|
})]
|
35119
34758
|
});
|
35120
34759
|
}
|
35121
34760
|
|
34761
|
+
var inputHeader = "input-header--4KDP";
|
34762
|
+
var factorInput = "factor-input-MX85Z";
|
34763
|
+
var css_248z$a = ".input-header--4KDP .ag-header-cell-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";
|
34764
|
+
styleInject(css_248z$a);
|
34765
|
+
|
35122
34766
|
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; }
|
35123
34767
|
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; }
|
35124
34768
|
var Prices = observer(function (_ref) {
|
@@ -35127,89 +34771,11 @@ var Prices = observer(function (_ref) {
|
|
35127
34771
|
packageId = _ref.packageId,
|
35128
34772
|
apiConfig = _ref.apiConfig,
|
35129
34773
|
pricelist = _ref.pricelist,
|
35130
|
-
setNodeDataValue = _ref.setNodeDataValue
|
35131
|
-
viewOnly = _ref.viewOnly;
|
34774
|
+
setNodeDataValue = _ref.setNodeDataValue;
|
35132
34775
|
var _useTranslation = useTranslation(),
|
35133
34776
|
t = _useTranslation.t;
|
35134
|
-
var root = useStore();
|
35135
|
-
var spreadsheetRef = useRef(null);
|
35136
34777
|
var _useEnricherContext = useEnricherContext(['pricelists']),
|
35137
34778
|
selectedSerie = _useEnricherContext.selectedSerie;
|
35138
|
-
var _useState = useState(false),
|
35139
|
-
_useState2 = _slicedToArray(_useState, 2),
|
35140
|
-
onlyManual = _useState2[0],
|
35141
|
-
setOnlyManual = _useState2[1];
|
35142
|
-
var updatePfgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
|
35143
|
-
if (!selectedSerie) return;
|
35144
|
-
|
35145
|
-
// Create copies of the objects to modify
|
35146
|
-
var newFactors = _objectSpread$c({}, pricelist.pfgPricefactors);
|
35147
|
-
var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
|
35148
|
-
if (value.length === 0) {
|
35149
|
-
// Remove the empty price feature group
|
35150
|
-
delete serieFactors[priceFeatureGroupItem];
|
35151
|
-
|
35152
|
-
// If serie factors is now empty, remove the entire serie entry
|
35153
|
-
if (Object.keys(serieFactors).length === 0) {
|
35154
|
-
delete newFactors[selectedSerie.serieNo];
|
35155
|
-
} else {
|
35156
|
-
newFactors[selectedSerie.serieNo] = serieFactors;
|
35157
|
-
}
|
35158
|
-
|
35159
|
-
// If no more series exist, set pfgPricefactors to undefined
|
35160
|
-
if (Object.keys(newFactors).length === 0) {
|
35161
|
-
setNodeDataValue({
|
35162
|
-
pfgPricefactors: undefined
|
35163
|
-
});
|
35164
|
-
return;
|
35165
|
-
}
|
35166
|
-
} else {
|
35167
|
-
// Add/update the value
|
35168
|
-
serieFactors[priceFeatureGroupItem] = value;
|
35169
|
-
newFactors[selectedSerie.serieNo] = serieFactors;
|
35170
|
-
}
|
35171
|
-
setNodeDataValue({
|
35172
|
-
pfgPricefactors: newFactors
|
35173
|
-
});
|
35174
|
-
}, [selectedSerie]);
|
35175
|
-
var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
35176
|
-
var _newPriority$selected;
|
35177
|
-
if (!selectedSerie) return;
|
35178
|
-
var newPriority = _objectSpread$c({}, pricelist.pfgPricefactorsPriority);
|
35179
|
-
var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
|
35180
|
-
if (value === true) {
|
35181
|
-
seriesPriority.add(priceFeatureGroupItem);
|
35182
|
-
} else {
|
35183
|
-
seriesPriority["delete"](priceFeatureGroupItem);
|
35184
|
-
}
|
35185
|
-
if (seriesPriority.size === 0) {
|
35186
|
-
delete newPriority[selectedSerie.serieNo];
|
35187
|
-
} else {
|
35188
|
-
newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
|
35189
|
-
}
|
35190
|
-
setNodeDataValue({
|
35191
|
-
pfgPricefactorsPriority: newPriority
|
35192
|
-
});
|
35193
|
-
}, [selectedSerie]);
|
35194
|
-
var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
|
35195
|
-
var _newPriority$selected2;
|
35196
|
-
if (!selectedSerie) return;
|
35197
|
-
var newPriority = _objectSpread$c({}, pricelist.pgPricefactorsPriority);
|
35198
|
-
var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
|
35199
|
-
if (value === true) {
|
35200
|
-
seriesPriority.add(priceFeatureGroupItem);
|
35201
|
-
} else {
|
35202
|
-
seriesPriority["delete"](priceFeatureGroupItem);
|
35203
|
-
}
|
35204
|
-
if (seriesPriority.size === 0) {
|
35205
|
-
delete newPriority[selectedSerie.serieNo];
|
35206
|
-
} else {
|
35207
|
-
newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
|
35208
|
-
}
|
35209
|
-
setNodeDataValue({
|
35210
|
-
pgPricefactorsPriority: newPriority
|
35211
|
-
});
|
35212
|
-
}, [selectedSerie]);
|
35213
34779
|
var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
|
35214
34780
|
if (!selectedSerie) return;
|
35215
34781
|
|
@@ -35333,34 +34899,6 @@ var Prices = observer(function (_ref) {
|
|
35333
34899
|
seriePricefactors: newFactors
|
35334
34900
|
});
|
35335
34901
|
}, [pricelist, selectedSerie, setNodeDataValue]);
|
35336
|
-
function deleteManualPrices() {
|
35337
|
-
return _deleteManualPrices.apply(this, arguments);
|
35338
|
-
}
|
35339
|
-
function _deleteManualPrices() {
|
35340
|
-
_deleteManualPrices = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
35341
|
-
var _spreadsheetRef$curre;
|
35342
|
-
var api;
|
35343
|
-
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
35344
|
-
while (1) switch (_context8.prev = _context8.next) {
|
35345
|
-
case 0:
|
35346
|
-
api = new _default$d({
|
35347
|
-
type: 'AGGrid',
|
35348
|
-
apiInterface: {
|
35349
|
-
"delete": apiConfig.enricherService + "/packages/".concat(packageId, "/pricelists/").concat(pricelist._id, "/serie/").concat(selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo, "/prices/manual")
|
35350
|
-
}
|
35351
|
-
}, root);
|
35352
|
-
_context8.next = 3;
|
35353
|
-
return api["delete"]();
|
35354
|
-
case 3:
|
35355
|
-
(_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh();
|
35356
|
-
case 4:
|
35357
|
-
case "end":
|
35358
|
-
return _context8.stop();
|
35359
|
-
}
|
35360
|
-
}, _callee8);
|
35361
|
-
}));
|
35362
|
-
return _deleteManualPrices.apply(this, arguments);
|
35363
|
-
}
|
35364
34902
|
var applicationData = useMemo(function () {
|
35365
34903
|
return {
|
35366
34904
|
organizationId: organizationId,
|
@@ -35371,10 +34909,10 @@ var Prices = observer(function (_ref) {
|
|
35371
34909
|
}, [organizationId, packageId, selectedSerie, pricelist]);
|
35372
34910
|
var apiInterface = useMemo(function () {
|
35373
34911
|
return {
|
35374
|
-
read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices'
|
35375
|
-
update:
|
34912
|
+
read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
|
34913
|
+
update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
|
35376
34914
|
};
|
35377
|
-
}, [
|
34915
|
+
}, []);
|
35378
34916
|
var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
|
35379
34917
|
var configuration = useMemo(function () {
|
35380
34918
|
var _priceFeatureGroups$m;
|
@@ -35472,57 +35010,16 @@ var Prices = observer(function (_ref) {
|
|
35472
35010
|
sortable: false,
|
35473
35011
|
editable: false
|
35474
35012
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
|
35475
|
-
var
|
35013
|
+
var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
|
35476
35014
|
return {
|
35477
35015
|
headerName: priceFeatureGroup.displayText,
|
35478
|
-
headerClass: inputHeader,
|
35479
|
-
headerGroupComponentParams: {
|
35480
|
-
additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
|
35481
|
-
onSave: (/*#__PURE__*/function () {
|
35482
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
|
35483
|
-
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
35484
|
-
while (1) switch (_context3.prev = _context3.next) {
|
35485
|
-
case 0:
|
35486
|
-
updatePfgPriceFactor(priceFeatureGroup.id, value);
|
35487
|
-
case 1:
|
35488
|
-
case "end":
|
35489
|
-
return _context3.stop();
|
35490
|
-
}
|
35491
|
-
}, _callee3);
|
35492
|
-
}));
|
35493
|
-
return function (_x5, _x6) {
|
35494
|
-
return _ref4.apply(this, arguments);
|
35495
|
-
};
|
35496
|
-
}()),
|
35497
|
-
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],
|
35498
|
-
onPriorityChange: (/*#__PURE__*/function () {
|
35499
|
-
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(value) {
|
35500
|
-
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
35501
|
-
while (1) switch (_context4.prev = _context4.next) {
|
35502
|
-
case 0:
|
35503
|
-
updatePfgPriority(priceFeatureGroup.id, value);
|
35504
|
-
case 1:
|
35505
|
-
case "end":
|
35506
|
-
return _context4.stop();
|
35507
|
-
}
|
35508
|
-
}, _callee4);
|
35509
|
-
}));
|
35510
|
-
return function (_x7) {
|
35511
|
-
return _ref5.apply(this, arguments);
|
35512
|
-
};
|
35513
|
-
}()),
|
35514
|
-
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)),
|
35515
|
-
inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfg',
|
35516
|
-
checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfgPriority'
|
35517
|
-
})
|
35518
|
-
},
|
35519
35016
|
marryChildren: true,
|
35520
|
-
children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (
|
35521
|
-
var _priceFeatureGroup$ke3, _pricelist$pgPricefac
|
35017
|
+
children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
|
35018
|
+
var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
|
35522
35019
|
return {
|
35523
|
-
headerName:
|
35524
|
-
field: "prices.".concat(
|
35525
|
-
editable:
|
35020
|
+
headerName: priceFeatureGroupItem,
|
35021
|
+
field: "prices.".concat(priceFeatureGroupItem),
|
35022
|
+
editable: true,
|
35526
35023
|
filter: false,
|
35527
35024
|
sortable: false,
|
35528
35025
|
isDictionary: true,
|
@@ -35531,49 +35028,31 @@ var Prices = observer(function (_ref) {
|
|
35531
35028
|
cellRenderer: PriceDisplayCellRenderer,
|
35532
35029
|
cellRendererParams: {
|
35533
35030
|
commas: pricelist.commas,
|
35534
|
-
item:
|
35031
|
+
item: priceFeatureGroupItem
|
35535
35032
|
},
|
35536
|
-
additionalFields: ["origPrices.".concat(
|
35033
|
+
additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
|
35537
35034
|
headerClass: inputHeader,
|
35538
35035
|
headerComponentParams: {
|
35539
|
-
additionalElement: /*#__PURE__*/jsx(
|
35036
|
+
additionalElement: /*#__PURE__*/jsx(PriceFactorInput, {
|
35540
35037
|
onSave: (/*#__PURE__*/function () {
|
35541
|
-
var
|
35542
|
-
return _regeneratorRuntime.wrap(function
|
35543
|
-
while (1) switch (
|
35038
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
|
35039
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
35040
|
+
while (1) switch (_context3.prev = _context3.next) {
|
35544
35041
|
case 0:
|
35545
|
-
updatePgPriceFactor(
|
35042
|
+
updatePgPriceFactor(priceFeatureGroupItem, value);
|
35546
35043
|
case 1:
|
35547
35044
|
case "end":
|
35548
|
-
return
|
35045
|
+
return _context3.stop();
|
35549
35046
|
}
|
35550
|
-
},
|
35047
|
+
}, _callee3);
|
35551
35048
|
}));
|
35552
|
-
return function (
|
35553
|
-
return
|
35049
|
+
return function (_x5, _x6) {
|
35050
|
+
return _ref4.apply(this, arguments);
|
35554
35051
|
};
|
35555
35052
|
}()),
|
35556
|
-
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[
|
35557
|
-
|
35558
|
-
|
35559
|
-
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
35560
|
-
while (1) switch (_context6.prev = _context6.next) {
|
35561
|
-
case 0:
|
35562
|
-
updatePgPriority(priceGroup, value);
|
35563
|
-
case 1:
|
35564
|
-
case "end":
|
35565
|
-
return _context6.stop();
|
35566
|
-
}
|
35567
|
-
}, _callee6);
|
35568
|
-
}));
|
35569
|
-
return function (_x10) {
|
35570
|
-
return _ref7.apply(this, arguments);
|
35571
|
-
};
|
35572
|
-
}()),
|
35573
|
-
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)),
|
35574
|
-
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)),
|
35575
|
-
inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pg',
|
35576
|
-
checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pgPriority'
|
35053
|
+
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[priceFeatureGroupItem],
|
35054
|
+
className: factorInput,
|
35055
|
+
tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
|
35577
35056
|
})
|
35578
35057
|
}
|
35579
35058
|
};
|
@@ -35624,7 +35103,7 @@ var Prices = observer(function (_ref) {
|
|
35624
35103
|
cellDataType: 'objectId'
|
35625
35104
|
}])
|
35626
35105
|
};
|
35627
|
-
}, [apiInterface, selectedSerie, pricelist, priceFeatureGroups
|
35106
|
+
}, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
|
35628
35107
|
return /*#__PURE__*/jsxs(Fragment, {
|
35629
35108
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
35630
35109
|
title: /*#__PURE__*/jsx("div", {
|
@@ -35632,55 +35111,26 @@ var Prices = observer(function (_ref) {
|
|
35632
35111
|
style: {
|
35633
35112
|
"float": 'right'
|
35634
35113
|
},
|
35635
|
-
children: [/*#__PURE__*/jsx(
|
35636
|
-
|
35637
|
-
tooltip: t('backoffice.idmCatalog.prices.manual.tooltip'),
|
35638
|
-
children: /*#__PURE__*/jsx(Switch, {
|
35639
|
-
checked: onlyManual,
|
35640
|
-
onChange: function onChange(e) {
|
35641
|
-
return setOnlyManual(e);
|
35642
|
-
},
|
35643
|
-
disabled: !selectedSerie,
|
35644
|
-
checkedChildren: 'Manuelle',
|
35645
|
-
unCheckedChildren: 'Alle'
|
35646
|
-
})
|
35647
|
-
}), /*#__PURE__*/jsx(Setting, {
|
35648
|
-
tooltip: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
|
35649
|
-
children: /*#__PURE__*/jsx(Popconfirm, {
|
35650
|
-
rootClassName: "ag-custom-component-popup",
|
35651
|
-
title: t('backoffice.idmCatalog.prices.manual.delete.title'),
|
35652
|
-
description: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
|
35653
|
-
onConfirm: deleteManualPrices,
|
35654
|
-
okText: t('action.delete'),
|
35655
|
-
cancelText: t('backoffice.cancel'),
|
35656
|
-
children: /*#__PURE__*/jsx(Button, {
|
35657
|
-
danger: true,
|
35658
|
-
children: t('backoffice.idmCatalog.prices.manual.delete.title')
|
35659
|
-
})
|
35660
|
-
})
|
35661
|
-
}), /*#__PURE__*/jsx(Setting, {
|
35114
|
+
children: [/*#__PURE__*/jsx(PriceFactorInput, {
|
35115
|
+
value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
|
35662
35116
|
title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
|
35663
|
-
|
35664
|
-
|
35665
|
-
|
35666
|
-
|
35667
|
-
|
35668
|
-
|
35669
|
-
|
35670
|
-
|
35671
|
-
|
35672
|
-
|
35673
|
-
|
35674
|
-
|
35675
|
-
|
35676
|
-
|
35677
|
-
|
35678
|
-
|
35679
|
-
|
35680
|
-
};
|
35681
|
-
}()),
|
35682
|
-
disabled: !selectedSerie
|
35683
|
-
})
|
35117
|
+
onSave: (/*#__PURE__*/function () {
|
35118
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_, value) {
|
35119
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
35120
|
+
while (1) switch (_context4.prev = _context4.next) {
|
35121
|
+
case 0:
|
35122
|
+
updateSeriePriceFactor(value);
|
35123
|
+
case 1:
|
35124
|
+
case "end":
|
35125
|
+
return _context4.stop();
|
35126
|
+
}
|
35127
|
+
}, _callee4);
|
35128
|
+
}));
|
35129
|
+
return function (_x7, _x8) {
|
35130
|
+
return _ref5.apply(this, arguments);
|
35131
|
+
};
|
35132
|
+
}()),
|
35133
|
+
disabled: !selectedSerie
|
35684
35134
|
}), /*#__PURE__*/jsx(SeriesSelector$3, {
|
35685
35135
|
modules: ['pricelists'],
|
35686
35136
|
dataSet: "lookup"
|
@@ -35688,7 +35138,6 @@ var Prices = observer(function (_ref) {
|
|
35688
35138
|
})
|
35689
35139
|
})
|
35690
35140
|
}), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
|
35691
|
-
ref: spreadsheetRef,
|
35692
35141
|
gridId: 'crud-grid_enricherprices',
|
35693
35142
|
applicationData: applicationData,
|
35694
35143
|
configuration: configuration
|
@@ -35706,8 +35155,7 @@ var TablePriceList = observer(function () {
|
|
35706
35155
|
packageId = _useModule.packageId,
|
35707
35156
|
organizationId = _useModule.organizationId,
|
35708
35157
|
apiConfig = _useModule.apiConfig,
|
35709
|
-
selectedPackage = _useModule.selectedPackage
|
35710
|
-
viewOnly = _useModule.viewOnly;
|
35158
|
+
selectedPackage = _useModule.selectedPackage;
|
35711
35159
|
var _React$useState = React.useState(),
|
35712
35160
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
35713
35161
|
selectedPriceList = _React$useState2[0],
|
@@ -35718,7 +35166,7 @@ var TablePriceList = observer(function () {
|
|
35718
35166
|
setSelectedNodeId = _React$useState4[1];
|
35719
35167
|
useTools({
|
35720
35168
|
packageId: packageId,
|
35721
|
-
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.
|
35169
|
+
isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi2
|
35722
35170
|
});
|
35723
35171
|
var setNodeDataValue = useCallback(function (data) {
|
35724
35172
|
spreadsheetRef.current.setNodeDataValue(selectedNodeId, data);
|
@@ -35735,8 +35183,7 @@ var TablePriceList = observer(function () {
|
|
35735
35183
|
packageId: packageId,
|
35736
35184
|
apiConfig: apiConfig,
|
35737
35185
|
pricelist: selectedPriceList,
|
35738
|
-
setNodeDataValue: setNodeDataValue
|
35739
|
-
viewOnly: viewOnly
|
35186
|
+
setNodeDataValue: setNodeDataValue
|
35740
35187
|
},
|
35741
35188
|
startWidth: 300,
|
35742
35189
|
defaultPinned: false,
|
@@ -35760,10 +35207,10 @@ var TablePriceList = observer(function () {
|
|
35760
35207
|
var apiInterface = useMemo(function () {
|
35761
35208
|
return {
|
35762
35209
|
read: apiConfig.enricherService + '/packages/${packageId}/pricelists',
|
35763
|
-
create:
|
35764
|
-
restore:
|
35765
|
-
"delete":
|
35766
|
-
update:
|
35210
|
+
create: apiConfig.enricherService + '/packages/${packageId}/pricelists',
|
35211
|
+
restore: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
|
35212
|
+
"delete": apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
|
35213
|
+
update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}'
|
35767
35214
|
};
|
35768
35215
|
}, []);
|
35769
35216
|
var hooks = useMemo(function () {
|
@@ -35808,11 +35255,11 @@ var TablePriceList = observer(function () {
|
|
35808
35255
|
colDef: [{
|
35809
35256
|
headerName: 'backoffice.idmEnricher.pricelists.label.name',
|
35810
35257
|
field: 'name',
|
35811
|
-
editable:
|
35258
|
+
editable: true
|
35812
35259
|
}, {
|
35813
35260
|
headerName: 'backoffice.idmEnricher.pricelists.label.basedPricelistId',
|
35814
35261
|
field: 'basedPricelistId',
|
35815
|
-
editable:
|
35262
|
+
editable: true,
|
35816
35263
|
cellDataType: 'lookup',
|
35817
35264
|
customParams: {
|
35818
35265
|
filterCellType: 'id',
|
@@ -35842,7 +35289,7 @@ var TablePriceList = observer(function () {
|
|
35842
35289
|
}, {
|
35843
35290
|
headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
|
35844
35291
|
field: 'rounding',
|
35845
|
-
editable:
|
35292
|
+
editable: true,
|
35846
35293
|
cellDataType: 'enum',
|
35847
35294
|
customParams: {
|
35848
35295
|
enumData: roundingOptions,
|
@@ -35851,25 +35298,25 @@ var TablePriceList = observer(function () {
|
|
35851
35298
|
}, {
|
35852
35299
|
headerName: 'backoffice.idmEnricher.pricelists.label.commas',
|
35853
35300
|
field: 'commas',
|
35854
|
-
editable:
|
35301
|
+
editable: true,
|
35855
35302
|
cellDataType: 'number'
|
35856
35303
|
}, {
|
35857
35304
|
headerName: 'backoffice.idmEnricher.pricelists.label.currency',
|
35858
35305
|
field: 'currency',
|
35859
35306
|
cellDataType: 'enum',
|
35860
|
-
editable:
|
35307
|
+
editable: true,
|
35861
35308
|
customParams: {
|
35862
35309
|
enumData: getCurrencyKey(t)
|
35863
35310
|
}
|
35864
35311
|
}, {
|
35865
35312
|
headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
|
35866
35313
|
field: 'forPublishing',
|
35867
|
-
editable:
|
35314
|
+
editable: true,
|
35868
35315
|
cellDataType: 'boolean'
|
35869
35316
|
}, {
|
35870
35317
|
headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
|
35871
35318
|
field: 'validFrom',
|
35872
|
-
editable:
|
35319
|
+
editable: true,
|
35873
35320
|
cellDataType: 'dateString',
|
35874
35321
|
customParams: {
|
35875
35322
|
dateFormat: 'DD.MM.YYYY'
|
@@ -35877,7 +35324,7 @@ var TablePriceList = observer(function () {
|
|
35877
35324
|
}, {
|
35878
35325
|
headerName: 'backoffice.idmEnricher.pricelists.label.validTo',
|
35879
35326
|
field: 'validTo',
|
35880
|
-
editable:
|
35327
|
+
editable: true,
|
35881
35328
|
cellDataType: 'dateString',
|
35882
35329
|
customParams: {
|
35883
35330
|
dateFormat: 'DD.MM.YYYY'
|
@@ -35935,24 +35382,9 @@ var TablePriceList = observer(function () {
|
|
35935
35382
|
cellDataType: 'object',
|
35936
35383
|
editable: false,
|
35937
35384
|
hide: true
|
35938
|
-
}, {
|
35939
|
-
field: 'pfgPricefactors',
|
35940
|
-
cellDataType: 'object',
|
35941
|
-
editable: false,
|
35942
|
-
hide: true
|
35943
|
-
}, {
|
35944
|
-
field: 'pgPricefactorsPriority',
|
35945
|
-
cellDataType: 'object',
|
35946
|
-
editable: false,
|
35947
|
-
hide: true
|
35948
|
-
}, {
|
35949
|
-
field: 'pfgPricefactorsPriority',
|
35950
|
-
cellDataType: 'object',
|
35951
|
-
editable: false,
|
35952
|
-
hide: true
|
35953
35385
|
}]
|
35954
35386
|
};
|
35955
|
-
}, [apiInterface, i18n.language
|
35387
|
+
}, [apiInterface, i18n.language]);
|
35956
35388
|
return /*#__PURE__*/jsxs(Fragment, {
|
35957
35389
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
35958
35390
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -36441,34 +35873,24 @@ var useCatalogContext = function useCatalogContext() {
|
|
36441
35873
|
root.contextStore.clearContext('catalog');
|
36442
35874
|
}
|
36443
35875
|
|
36444
|
-
//
|
35876
|
+
// Only update if catalog changed
|
35877
|
+
// initally ony the id is set so we need to update it again if we get the full catalog form the selector, so only checking for id is not enough
|
36445
35878
|
var currentCatalog = getContext().selectedCatalog;
|
36446
|
-
|
36447
|
-
|
36448
|
-
if (!catalogChanged && !catalogDataOnlyChanged) {
|
36449
|
-
// No changes detected
|
36450
|
-
return;
|
36451
|
-
}
|
36452
|
-
if (!catalogChanged && catalogDataOnlyChanged) {
|
36453
|
-
// Only the data changed, so we only need to update the context of the catalog
|
36454
|
-
root.contextStore.updateContext('catalog', {
|
36455
|
-
selectedCatalog: newCatalog,
|
36456
|
-
catalogId: newCatalog._id
|
36457
|
-
});
|
36458
|
-
return;
|
35879
|
+
if (currentCatalog._id === newCatalog._id && currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds)) {
|
35880
|
+
return; // No changes detected
|
36459
35881
|
}
|
36460
|
-
if (catalogChanged) {
|
36461
|
-
// The catalog changed, so we need to rest the full context
|
36462
|
-
root.contextStore.updateContext('catalog', {
|
36463
|
-
selectedCatalog: newCatalog,
|
36464
|
-
catalogId: newCatalog._id,
|
36465
|
-
selectedSerie: undefined,
|
36466
|
-
selectedItem: undefined,
|
36467
|
-
selectedFeature: undefined,
|
36468
|
-
seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
|
36469
|
-
featureSelectorState: createDefaultSelectState('featureSelectorState')
|
36470
|
-
});
|
36471
35882
|
|
35883
|
+
// Update any field catalog changed
|
35884
|
+
root.contextStore.updateContext('catalog', {
|
35885
|
+
selectedCatalog: newCatalog,
|
35886
|
+
catalogId: newCatalog._id,
|
35887
|
+
selectedSerie: undefined,
|
35888
|
+
selectedItem: undefined,
|
35889
|
+
selectedFeature: undefined,
|
35890
|
+
seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
|
35891
|
+
featureSelectorState: createDefaultSelectState('featureSelectorState')
|
35892
|
+
});
|
35893
|
+
if (currentCatalog._id !== newCatalog._id) {
|
36472
35894
|
// Update URL only if the id changed
|
36473
35895
|
navigate(path + newCatalog._id + (modules.length ? '/' + modules.join('/') : '') + (searchParams ? '?' + searchParams.toString() : ''));
|
36474
35896
|
}
|
@@ -37297,22 +36719,27 @@ var CatalogSelector$1 = observer(CatalogSelector);
|
|
37297
36719
|
var SeriesSelector = function SeriesSelector(_ref) {
|
37298
36720
|
var modules = _ref.modules;
|
37299
36721
|
var _useTranslation = useTranslation(),
|
37300
|
-
t = _useTranslation.t
|
37301
|
-
|
37302
|
-
|
37303
|
-
|
37304
|
-
|
37305
|
-
selectedSerie =
|
37306
|
-
|
37307
|
-
|
36722
|
+
t = _useTranslation.t,
|
36723
|
+
i18n = _useTranslation.i18n;
|
36724
|
+
var _useCatalogContext = useCatalogContext(modules),
|
36725
|
+
catalogId = _useCatalogContext.catalogId,
|
36726
|
+
idmService = _useCatalogContext.idmService,
|
36727
|
+
selectedSerie = _useCatalogContext.selectedSerie,
|
36728
|
+
setSelectedSerie = _useCatalogContext.setSelectedSerie,
|
36729
|
+
seriesSelectorState = _useCatalogContext.seriesSelectorState;
|
37308
36730
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
37309
36731
|
sharedState: seriesSelectorState,
|
37310
|
-
apiInterface:
|
37311
|
-
|
36732
|
+
apiInterface: {
|
36733
|
+
read: idmService + '/v3.0/catalogs/' + catalogId + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
|
36734
|
+
},
|
36735
|
+
selectMapping: {
|
36736
|
+
label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
|
36737
|
+
value: '${_id}'
|
36738
|
+
},
|
37312
36739
|
autoSelectFirst: true,
|
37313
36740
|
title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'),
|
37314
36741
|
value: selectedSerie,
|
37315
|
-
onChange:
|
36742
|
+
onChange: setSelectedSerie,
|
37316
36743
|
search: true,
|
37317
36744
|
style: {
|
37318
36745
|
width: 200
|
@@ -37321,95 +36748,6 @@ var SeriesSelector = function SeriesSelector(_ref) {
|
|
37321
36748
|
}, catalogId);
|
37322
36749
|
};
|
37323
36750
|
var SeriesSelector$1 = observer(SeriesSelector);
|
37324
|
-
var useSeriesSelector = function useSeriesSelector(modules) {
|
37325
|
-
var _useTranslation2 = useTranslation(),
|
37326
|
-
i18n = _useTranslation2.i18n;
|
37327
|
-
var root = useStore();
|
37328
|
-
var _useCatalogContext = useCatalogContext(modules),
|
37329
|
-
catalogId = _useCatalogContext.catalogId,
|
37330
|
-
idmService = _useCatalogContext.idmService,
|
37331
|
-
selectedSerie = _useCatalogContext.selectedSerie,
|
37332
|
-
setSelectedSerie = _useCatalogContext.setSelectedSerie,
|
37333
|
-
seriesSelectorState = _useCatalogContext.seriesSelectorState;
|
37334
|
-
var _useState = useState(selectedSerie),
|
37335
|
-
_useState2 = _slicedToArray(_useState, 2),
|
37336
|
-
selected = _useState2[0],
|
37337
|
-
setSelected = _useState2[1];
|
37338
|
-
var apiInterface = {
|
37339
|
-
read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id")
|
37340
|
-
};
|
37341
|
-
var selectMapping = {
|
37342
|
-
label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
|
37343
|
-
value: '${_id}'
|
37344
|
-
};
|
37345
|
-
var fetchSerie = /*#__PURE__*/function () {
|
37346
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSerie) {
|
37347
|
-
var _seriesSelectorState$, _seriesSelectorState$2;
|
37348
|
-
var isLoaded, api, serie, option;
|
37349
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
37350
|
-
while (1) switch (_context.prev = _context.next) {
|
37351
|
-
case 0:
|
37352
|
-
if (newSerie) {
|
37353
|
-
_context.next = 2;
|
37354
|
-
break;
|
37355
|
-
}
|
37356
|
-
return _context.abrupt("return");
|
37357
|
-
case 2:
|
37358
|
-
// if the extend series data is already loaded, use it
|
37359
|
-
isLoaded = !!((_seriesSelectorState$ = seriesSelectorState.options) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.find(function (option) {
|
37360
|
-
return option.value === (newSerie === null || newSerie === void 0 ? void 0 : newSerie._id);
|
37361
|
-
})) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.data) !== null && _seriesSelectorState$ !== void 0 && _seriesSelectorState$.serieNo);
|
37362
|
-
if (!isLoaded) {
|
37363
|
-
_context.next = 6;
|
37364
|
-
break;
|
37365
|
-
}
|
37366
|
-
setSelectedSerie(newSerie);
|
37367
|
-
return _context.abrupt("return");
|
37368
|
-
case 6:
|
37369
|
-
//fetching of pricefeatruegroups is slow, so we can't fetch it in the list, but only for the selected serie
|
37370
|
-
seriesSelectorState.setLoading(true);
|
37371
|
-
api = new _default$d({
|
37372
|
-
type: 'SelectSimple',
|
37373
|
-
apiInterface: {
|
37374
|
-
read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
|
37375
|
-
}
|
37376
|
-
}, root);
|
37377
|
-
_context.next = 10;
|
37378
|
-
return api.read();
|
37379
|
-
case 10:
|
37380
|
-
serie = _context.sent;
|
37381
|
-
//save the extended series data in the options, without triggering state change
|
37382
|
-
option = (_seriesSelectorState$2 = seriesSelectorState.options) === null || _seriesSelectorState$2 === void 0 ? void 0 : _seriesSelectorState$2.find(function (option) {
|
37383
|
-
return option.value === newSerie._id;
|
37384
|
-
});
|
37385
|
-
if (option) {
|
37386
|
-
option.data = serie;
|
37387
|
-
}
|
37388
|
-
setSelectedSerie(serie);
|
37389
|
-
seriesSelectorState.setLoading(false);
|
37390
|
-
case 15:
|
37391
|
-
case "end":
|
37392
|
-
return _context.stop();
|
37393
|
-
}
|
37394
|
-
}, _callee);
|
37395
|
-
}));
|
37396
|
-
return function fetchSerie(_x) {
|
37397
|
-
return _ref2.apply(this, arguments);
|
37398
|
-
};
|
37399
|
-
}();
|
37400
|
-
var onChange = function onChange(value) {
|
37401
|
-
setSelected(value);
|
37402
|
-
fetchSerie(value);
|
37403
|
-
};
|
37404
|
-
return {
|
37405
|
-
catalogId: catalogId,
|
37406
|
-
seriesSelectorState: seriesSelectorState,
|
37407
|
-
apiInterface: apiInterface,
|
37408
|
-
selectMapping: selectMapping,
|
37409
|
-
selectedSerie: selected,
|
37410
|
-
onChange: onChange
|
37411
|
-
};
|
37412
|
-
};
|
37413
36751
|
|
37414
36752
|
function useModule (currentModules) {
|
37415
36753
|
var root = useStore();
|
@@ -37859,19 +37197,18 @@ var TableItems = observer(function () {
|
|
37859
37197
|
apiConfig = _useModule.apiConfig,
|
37860
37198
|
organizationId = _useModule.organizationId;
|
37861
37199
|
useTools({
|
37862
|
-
|
37863
|
-
|
37864
|
-
|
37865
|
-
|
37866
|
-
|
37867
|
-
|
37200
|
+
catalogId: catalogId,
|
37201
|
+
serie: selectedSerie,
|
37202
|
+
setSerie: setSelectedSerie,
|
37203
|
+
setArticle: setSelectedItem,
|
37204
|
+
item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
|
37205
|
+
});
|
37868
37206
|
var hooks = useMemo(function () {
|
37869
37207
|
return {
|
37870
37208
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
37871
37209
|
// Check if all selections are from the same node
|
37872
37210
|
if (event.selection.length == 1) {
|
37873
|
-
|
37874
|
-
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);
|
37211
|
+
setSelectedItem(event.selection[0].node.data);
|
37875
37212
|
}
|
37876
37213
|
}
|
37877
37214
|
};
|
@@ -37904,9 +37241,9 @@ var TableSeries = observer(function () {
|
|
37904
37241
|
var _useTranslation = useTranslation(),
|
37905
37242
|
t = _useTranslation.t;
|
37906
37243
|
var _useModule = useModule(['series']),
|
37244
|
+
setGlobalSelectedSerie = _useModule.setSelectedSerie,
|
37907
37245
|
selectedCatalog = _useModule.selectedCatalog,
|
37908
37246
|
selectedGlobalSerie = _useModule.selectedSerie,
|
37909
|
-
setGlobalSelectedSerie = _useModule.setSelectedSerie,
|
37910
37247
|
catalogId = _useModule.catalogId,
|
37911
37248
|
organizationId = _useModule.organizationId,
|
37912
37249
|
apiConfig = _useModule.apiConfig;
|
@@ -37950,9 +37287,8 @@ var TableSeries = observer(function () {
|
|
37950
37287
|
return {
|
37951
37288
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
37952
37289
|
if (event.selection.length == 1) {
|
37953
|
-
|
37954
|
-
|
37955
|
-
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);
|
37290
|
+
setGlobalSelectedSerie(event.selection[0].node.data);
|
37291
|
+
setSelectedSerie(event.selection[0].node.data);
|
37956
37292
|
} else {
|
37957
37293
|
setSelectedSerie(null);
|
37958
37294
|
}
|
@@ -38288,9 +37624,8 @@ var TableFeatures = observer(function () {
|
|
38288
37624
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
38289
37625
|
// Check if all selections are from the same node
|
38290
37626
|
if (event.selection.length == 1) {
|
38291
|
-
var _event$selection$;
|
38292
37627
|
updateConfigurator({
|
38293
|
-
opt:
|
37628
|
+
opt: event.selection[0].node.data.featureNo
|
38294
37629
|
});
|
38295
37630
|
}
|
38296
37631
|
}
|
@@ -38497,9 +37832,8 @@ var TableOptions = observer(function () {
|
|
38497
37832
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
38498
37833
|
// Check if all selections are from the same node
|
38499
37834
|
if (event.selection.length == 1) {
|
38500
|
-
var _event$selection$;
|
38501
37835
|
updateConfigurator({
|
38502
|
-
opv:
|
37836
|
+
opv: event.selection[0].node.data.optionKey
|
38503
37837
|
});
|
38504
37838
|
}
|
38505
37839
|
}
|
@@ -42131,7 +41465,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
42131
41465
|
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; }
|
42132
41466
|
var ArticleSelection = function ArticleSelection(_ref) {
|
42133
41467
|
var _ref$state = _ref.state,
|
42134
|
-
|
41468
|
+
articleList = _ref$state.articleList,
|
42135
41469
|
articleCodex = _ref$state.articleCodex,
|
42136
41470
|
setArticleCodex = _ref$state.setArticleCodex,
|
42137
41471
|
setDoReset = _ref$state.setDoReset,
|
@@ -42143,7 +41477,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
42143
41477
|
var groups = [];
|
42144
41478
|
var _loop = function _loop() {
|
42145
41479
|
var _mask$articles;
|
42146
|
-
var article =
|
41480
|
+
var article = articleList[i];
|
42147
41481
|
if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
|
42148
41482
|
if (!article.groupName) article.groupName = 'NONE';
|
42149
41483
|
var group = groups.find(function (g) {
|
@@ -42159,7 +41493,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
42159
41493
|
});
|
42160
41494
|
}
|
42161
41495
|
};
|
42162
|
-
for (var i = 0; i <
|
41496
|
+
for (var i = 0; i < articleList.length; i++) {
|
42163
41497
|
if (_loop()) continue;
|
42164
41498
|
}
|
42165
41499
|
return groups.map(function (g) {
|
@@ -42167,7 +41501,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
|
|
42167
41501
|
label: t('configuration.group.' + g.label, g.label)
|
42168
41502
|
});
|
42169
41503
|
});
|
42170
|
-
}, [
|
41504
|
+
}, [articleList]);
|
42171
41505
|
return /*#__PURE__*/jsxs("div", {
|
42172
41506
|
className: wrapper$1,
|
42173
41507
|
children: [/*#__PURE__*/jsx(Select$1, {
|
@@ -42214,30 +41548,26 @@ function useWysiwyg$1(_ref) {
|
|
42214
41548
|
setArticleCodex = _useState6[1];
|
42215
41549
|
var _useState7 = useState([]),
|
42216
41550
|
_useState8 = _slicedToArray(_useState7, 2),
|
42217
|
-
|
42218
|
-
|
41551
|
+
articleList = _useState8[0],
|
41552
|
+
setArticleList = _useState8[1];
|
42219
41553
|
var _useState9 = useState({
|
42220
41554
|
catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
|
42221
41555
|
}),
|
42222
41556
|
_useState10 = _slicedToArray(_useState9, 2),
|
42223
|
-
|
42224
|
-
|
41557
|
+
catalog = _useState10[0],
|
41558
|
+
setCatalog = _useState10[1];
|
42225
41559
|
var _useState11 = useState([]),
|
42226
41560
|
_useState12 = _slicedToArray(_useState11, 2),
|
42227
|
-
|
42228
|
-
|
42229
|
-
var _useState13 = useState(
|
41561
|
+
catalogList = _useState12[0],
|
41562
|
+
setCatalogList = _useState12[1];
|
41563
|
+
var _useState13 = useState(),
|
42230
41564
|
_useState14 = _slicedToArray(_useState13, 2),
|
42231
|
-
|
42232
|
-
|
41565
|
+
currentNav = _useState14[0],
|
41566
|
+
setCurrentNav = _useState14[1];
|
42233
41567
|
var _useState15 = useState(),
|
42234
41568
|
_useState16 = _slicedToArray(_useState15, 2),
|
42235
|
-
|
42236
|
-
|
42237
|
-
var _useState17 = useState(),
|
42238
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
42239
|
-
doNavigate = _useState18[0],
|
42240
|
-
setDoNavigate = _useState18[1];
|
41569
|
+
doNavigate = _useState16[0],
|
41570
|
+
setDoNavigate = _useState16[1];
|
42241
41571
|
useEffect(function () {
|
42242
41572
|
if (!toolbar.hidden) setDoReset(true);
|
42243
41573
|
}, [toolbar.hidden]);
|
@@ -42300,8 +41630,7 @@ function useWysiwyg$1(_ref) {
|
|
42300
41630
|
});
|
42301
41631
|
case 3:
|
42302
41632
|
d = _context2.sent;
|
42303
|
-
|
42304
|
-
_context2.next = 7;
|
41633
|
+
_context2.next = 6;
|
42305
41634
|
return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
|
42306
41635
|
method: 'GET',
|
42307
41636
|
headers: _objectSpread$4({}, jwt ? {
|
@@ -42316,10 +41645,10 @@ function useWysiwyg$1(_ref) {
|
|
42316
41645
|
return undefined;
|
42317
41646
|
}
|
42318
41647
|
});
|
42319
|
-
case
|
41648
|
+
case 6:
|
42320
41649
|
s = _context2.sent;
|
42321
|
-
|
42322
|
-
case
|
41650
|
+
setCatalogList(s.data);
|
41651
|
+
case 8:
|
42323
41652
|
case "end":
|
42324
41653
|
return _context2.stop();
|
42325
41654
|
}
|
@@ -42353,7 +41682,7 @@ function useWysiwyg$1(_ref) {
|
|
42353
41682
|
});
|
42354
41683
|
case 3:
|
42355
41684
|
l = _context3.sent;
|
42356
|
-
|
41685
|
+
setCatalogList(l.data);
|
42357
41686
|
case 5:
|
42358
41687
|
case "end":
|
42359
41688
|
return _context3.stop();
|
@@ -42368,7 +41697,7 @@ function useWysiwyg$1(_ref) {
|
|
42368
41697
|
if (doReset) {
|
42369
41698
|
var _tool$elementProps, _tool$elementProps3;
|
42370
41699
|
if (currentNav) setDoNavigate(currentNav);
|
42371
|
-
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !
|
41700
|
+
if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !catalogList.length) {
|
42372
41701
|
var _tool$elementProps2;
|
42373
41702
|
if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
|
42374
41703
|
loadPackage(tool.parameters.packageId);
|
@@ -42387,20 +41716,20 @@ function useWysiwyg$1(_ref) {
|
|
42387
41716
|
}, [doReset]);
|
42388
41717
|
useEffect(function () {
|
42389
41718
|
setArticleCodex(undefined);
|
42390
|
-
if (
|
41719
|
+
if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
|
42391
41720
|
var _tool$parameters$pack;
|
42392
41721
|
setMask({
|
42393
|
-
catalogCodex:
|
41722
|
+
catalogCodex: catalog.catalogCodex,
|
42394
41723
|
accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
|
42395
41724
|
});
|
42396
41725
|
}
|
42397
|
-
}, [
|
41726
|
+
}, [catalog]);
|
42398
41727
|
useEffect(function () {
|
42399
41728
|
setDoReset(true);
|
42400
41729
|
setArticleCodex(undefined);
|
42401
|
-
|
42402
|
-
|
42403
|
-
|
41730
|
+
setCatalog(undefined);
|
41731
|
+
setArticleList([]);
|
41732
|
+
setCatalogList([]);
|
42404
41733
|
}, [tool.parameters.catalogId, tool.parameters.packageId]);
|
42405
41734
|
var onEventCalled = /*#__PURE__*/function () {
|
42406
41735
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
|
@@ -42419,7 +41748,7 @@ function useWysiwyg$1(_ref) {
|
|
42419
41748
|
groupName: article.groupName
|
42420
41749
|
});
|
42421
41750
|
}
|
42422
|
-
|
41751
|
+
setArticleList(articles);
|
42423
41752
|
if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
|
42424
41753
|
}
|
42425
41754
|
if (e.type === 'navigatedToOption') {
|
@@ -42526,21 +41855,20 @@ function useWysiwyg$1(_ref) {
|
|
42526
41855
|
};
|
42527
41856
|
}, []);
|
42528
41857
|
return {
|
42529
|
-
|
42530
|
-
|
41858
|
+
articleList: articleList,
|
41859
|
+
setArticleList: setArticleList,
|
42531
41860
|
articleCodex: articleCodex,
|
42532
41861
|
setArticleCodex: setArticleCodex,
|
42533
|
-
|
42534
|
-
|
42535
|
-
|
42536
|
-
|
41862
|
+
catalogList: catalogList,
|
41863
|
+
setCatalogList: setCatalogList,
|
41864
|
+
catalog: catalog,
|
41865
|
+
setCatalog: setCatalog,
|
42537
41866
|
settings: settings,
|
42538
41867
|
mask: mask,
|
42539
41868
|
doReset: doReset,
|
42540
41869
|
setDoReset: setDoReset,
|
42541
41870
|
doNavigate: doNavigate,
|
42542
|
-
setDoNavigate: setDoNavigate
|
42543
|
-
catalogId: catalogId
|
41871
|
+
setDoNavigate: setDoNavigate
|
42544
41872
|
};
|
42545
41873
|
}
|
42546
41874
|
|
@@ -42592,27 +41920,27 @@ styleInject(css_248z$2);
|
|
42592
41920
|
|
42593
41921
|
var CatalogSelection = function CatalogSelection(_ref) {
|
42594
41922
|
var _ref$state = _ref.state,
|
42595
|
-
|
42596
|
-
|
42597
|
-
|
41923
|
+
catalogList = _ref$state.catalogList,
|
41924
|
+
catalog = _ref$state.catalog,
|
41925
|
+
setCatalog = _ref$state.setCatalog,
|
42598
41926
|
setArticleCodex = _ref$state.setArticleCodex,
|
42599
|
-
|
41927
|
+
setSerie = _ref.setSerie;
|
42600
41928
|
var _useTranslation = useTranslation(),
|
42601
41929
|
t = _useTranslation.t,
|
42602
41930
|
language = _useTranslation.i18n.language;
|
42603
41931
|
var options = useMemo(function () {
|
42604
41932
|
var groups = [];
|
42605
|
-
for (var i = 0; i <
|
42606
|
-
var c =
|
41933
|
+
for (var i = 0; i < catalogList.length; i++) {
|
41934
|
+
var c = catalogList[i];
|
42607
41935
|
groups.push({
|
42608
41936
|
value: c.serieNo.toString(),
|
42609
41937
|
label: c.seriesName[language.toUpperCase()]
|
42610
41938
|
});
|
42611
41939
|
}
|
42612
41940
|
return groups;
|
42613
|
-
}, [
|
41941
|
+
}, [catalogList]);
|
42614
41942
|
var onChange = function onChange(val) {
|
42615
|
-
var cat =
|
41943
|
+
var cat = catalogList.find(function (c) {
|
42616
41944
|
return c.serieNo.toString() == val;
|
42617
41945
|
});
|
42618
41946
|
var catalog = cat ? {
|
@@ -42620,15 +41948,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
|
|
42620
41948
|
serieId: cat._id,
|
42621
41949
|
accountId: cat.catalogId
|
42622
41950
|
} : undefined;
|
42623
|
-
|
41951
|
+
setCatalog(catalog);
|
42624
41952
|
setArticleCodex(undefined);
|
42625
|
-
|
41953
|
+
setSerie === null || setSerie === void 0 || setSerie(cat);
|
42626
41954
|
};
|
42627
41955
|
return /*#__PURE__*/jsx("div", {
|
42628
41956
|
className: wrapper,
|
42629
41957
|
children: /*#__PURE__*/jsx(Select$1, {
|
42630
41958
|
placeholder: t('backoffice.configurator.serie.placeholder'),
|
42631
|
-
value:
|
41959
|
+
value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
|
42632
41960
|
options: options,
|
42633
41961
|
onChange: onChange,
|
42634
41962
|
className: select
|
@@ -42640,7 +41968,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
|
|
42640
41968
|
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; }
|
42641
41969
|
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; }
|
42642
41970
|
var Wsyiwyg = function Wsyiwyg(_ref) {
|
42643
|
-
var _state$
|
41971
|
+
var _state$catalog, _tool$parameters, _state$articleCodex, _state$catalog$catalo, _state$catalog2, _state$mask2, _state$catalog3, _state$catalog$accoun, _state$catalog4, _state$mask3;
|
42644
41972
|
var tool = _ref.tool,
|
42645
41973
|
toolbar = _ref.toolbar;
|
42646
41974
|
var _useDivaCore = useDivaCore(),
|
@@ -42659,32 +41987,17 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
42659
41987
|
}, [tool.parameters]);
|
42660
41988
|
useEffect(function () {
|
42661
41989
|
if (tool.elementProps.initSerie) {
|
42662
|
-
|
42663
|
-
|
42664
|
-
|
42665
|
-
|
42666
|
-
|
42667
|
-
})) === null || _state$serieList$find === void 0 ? void 0 : _state$serieList$find._id,
|
42668
|
-
catalogCodex: tool.elementProps.initSerie.serieNo.toString(),
|
42669
|
-
accountId: state.catalogId
|
42670
|
-
};
|
42671
|
-
if (JSON.stringify(state.serie) !== JSON.stringify(serie)) {
|
42672
|
-
state.setSerie(serie);
|
42673
|
-
state.setArticleCodex(undefined);
|
42674
|
-
}
|
42675
|
-
} else {
|
42676
|
-
state.setSerie({
|
42677
|
-
serieId: tool.elementProps.initSerie.serieId,
|
42678
|
-
catalogCodex: tool.elementProps.initSerie.serieNo.toString()
|
42679
|
-
});
|
42680
|
-
state.setArticleCodex(undefined);
|
42681
|
-
}
|
41990
|
+
state.setCatalog({
|
41991
|
+
serieId: tool.elementProps.initSerie.serieId,
|
41992
|
+
catalogCodex: tool.elementProps.initSerie.serieNo.toString()
|
41993
|
+
});
|
41994
|
+
state.setArticleCodex(undefined);
|
42682
41995
|
}
|
42683
41996
|
if (tool.elementProps.initItem) {
|
42684
41997
|
state.setArticleCodex(tool.elementProps.initItem);
|
42685
41998
|
}
|
42686
|
-
}, [tool.elementProps.initItem, tool.elementProps.initSerie
|
42687
|
-
if (!((_state$
|
41999
|
+
}, [tool.elementProps.initItem, tool.elementProps.initSerie]);
|
42000
|
+
if (!((_state$catalog = state.catalog) !== null && _state$catalog !== void 0 && _state$catalog.catalogCodex)) {
|
42688
42001
|
if (tool.elementProps.showCatalogSelection) {
|
42689
42002
|
return /*#__PURE__*/jsx(CatalogSelection$1, {
|
42690
42003
|
state: state,
|
@@ -42722,11 +42035,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
|
|
42722
42035
|
resetArticle: '',
|
42723
42036
|
disableToggle: '1',
|
42724
42037
|
startDivaNr: 'DIVA-000000',
|
42725
|
-
catalogCodex: (_state$
|
42726
|
-
}, (_state$
|
42727
|
-
serieId: state.
|
42038
|
+
catalogCodex: (_state$catalog$catalo = (_state$catalog2 = state.catalog) === null || _state$catalog2 === void 0 ? void 0 : _state$catalog2.catalogCodex) !== null && _state$catalog$catalo !== void 0 ? _state$catalog$catalo : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
|
42039
|
+
}, (_state$catalog3 = state.catalog) !== null && _state$catalog3 !== void 0 && _state$catalog3.serieId ? {
|
42040
|
+
serieId: state.catalog.serieId
|
42728
42041
|
} : {}), {}, {
|
42729
|
-
accountGuid: (_state$
|
42042
|
+
accountGuid: (_state$catalog$accoun = (_state$catalog4 = state.catalog) === null || _state$catalog4 === void 0 ? void 0 : _state$catalog4.accountId) !== null && _state$catalog$accoun !== void 0 ? _state$catalog$accoun : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
|
42730
42043
|
returnTo: 'DONT_SAVE_BASKET',
|
42731
42044
|
organizationId: organizationId,
|
42732
42045
|
no3DConnection: 'true'
|