@crystaldesign/diva-backoffice 25.3.0-beta.3 → 25.3.0-beta.30
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 +1364 -1202
- package/build/types/backoffice/src/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +3 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/Forms/IDMImportForm.d.ts +3 -3
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/Forms/IDMImportForm.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/CatalogSelector.d.ts +4 -3
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/CatalogSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts +2 -3
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts +5 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts +3 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts +26 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +31 -0
- package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.d.ts +5 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.d.ts.map +1 -1
- 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 +4 -3
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts +31 -23
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.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/TablePartlistPos/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/TableProperties/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts +3 -2
- 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 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/IDMEnricherEditor/types.d.ts +6 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts +3 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.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/esm/index.js
CHANGED
|
@@ -126,6 +126,7 @@ import Modal$3 from 'antd/es/modal';
|
|
|
126
126
|
import Spin$1 from 'antd/es/spin';
|
|
127
127
|
import Flex from 'antd/es/flex';
|
|
128
128
|
import Alert$1 from 'antd/es/alert/Alert';
|
|
129
|
+
import JSZip from 'jszip';
|
|
129
130
|
import Switch$1 from 'antd/es/switch';
|
|
130
131
|
import Layout$1 from 'antd/es/layout';
|
|
131
132
|
import Menu from 'antd/es/menu';
|
|
@@ -5219,15 +5220,18 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5219
5220
|
title: t('backoffice.table.rooms.columns.lastUpdated'),
|
|
5220
5221
|
field: 'lastUpdated',
|
|
5221
5222
|
type: 'unixTimeStamp',
|
|
5223
|
+
sorter: 8,
|
|
5224
|
+
filter: 'interval',
|
|
5222
5225
|
width: 150
|
|
5223
5226
|
}, {
|
|
5224
5227
|
title: t('backoffice.table.rooms.columns.created'),
|
|
5225
5228
|
field: 'created',
|
|
5226
5229
|
type: 'unixTimeStamp',
|
|
5227
|
-
|
|
5230
|
+
filter: 'interval',
|
|
5231
|
+
sorter: 9,
|
|
5228
5232
|
width: 150
|
|
5229
5233
|
}, {
|
|
5230
|
-
title: 'variants',
|
|
5234
|
+
title: t('backoffice.table.rooms.columns.variants'),
|
|
5231
5235
|
field: 'variants',
|
|
5232
5236
|
hidden: true
|
|
5233
5237
|
}],
|
|
@@ -5395,12 +5399,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5395
5399
|
sorter: 3,
|
|
5396
5400
|
filter: 'advanced',
|
|
5397
5401
|
width: 200
|
|
5398
|
-
}, {
|
|
5399
|
-
title: t('backoffice.table.renderjobs.columns.viewPoint'),
|
|
5400
|
-
field: 'viewPoint',
|
|
5401
|
-
sorter: 4,
|
|
5402
|
-
filter: 'advanced',
|
|
5403
|
-
width: 300
|
|
5404
5402
|
}, {
|
|
5405
5403
|
title: t('backoffice.table.renderjobs.columns.group'),
|
|
5406
5404
|
field: 'group',
|
|
@@ -5408,27 +5406,9 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5408
5406
|
filter: 'advanced',
|
|
5409
5407
|
width: 300
|
|
5410
5408
|
}, {
|
|
5411
|
-
title: t('backoffice.table.renderjobs.columns.
|
|
5412
|
-
field: '
|
|
5413
|
-
sorter:
|
|
5414
|
-
filter: 'advanced',
|
|
5415
|
-
width: 300
|
|
5416
|
-
}, {
|
|
5417
|
-
title: t('backoffice.table.renderjobs.columns.renderResolution'),
|
|
5418
|
-
field: 'renderResolution',
|
|
5419
|
-
sorter: 6,
|
|
5420
|
-
filter: 'advanced',
|
|
5421
|
-
width: 300
|
|
5422
|
-
}, {
|
|
5423
|
-
title: t('backoffice.table.renderjobs.columns.dpi'),
|
|
5424
|
-
field: 'dpi',
|
|
5425
|
-
sorter: 7,
|
|
5426
|
-
filter: 'advanced',
|
|
5427
|
-
width: 300
|
|
5428
|
-
}, {
|
|
5429
|
-
title: t('backoffice.table.renderjobs.columns.arBakedMapsResolution'),
|
|
5430
|
-
field: 'arBakedMapsResolution',
|
|
5431
|
-
sorter: 8,
|
|
5409
|
+
title: t('backoffice.table.renderjobs.columns.viewPoint'),
|
|
5410
|
+
field: 'viewPoint',
|
|
5411
|
+
sorter: 4,
|
|
5432
5412
|
filter: 'advanced',
|
|
5433
5413
|
width: 300
|
|
5434
5414
|
}, {
|
|
@@ -5444,9 +5424,9 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5444
5424
|
sorter: 11,
|
|
5445
5425
|
filter: 'advanced'
|
|
5446
5426
|
}, {
|
|
5447
|
-
title: t('backoffice.table.renderjobs.columns.
|
|
5448
|
-
field: '
|
|
5449
|
-
sorter:
|
|
5427
|
+
title: t('backoffice.table.renderjobs.columns.catalogName'),
|
|
5428
|
+
field: 'catalogName',
|
|
5429
|
+
sorter: 14,
|
|
5450
5430
|
filter: 'advanced',
|
|
5451
5431
|
width: 300
|
|
5452
5432
|
}, {
|
|
@@ -5467,11 +5447,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5467
5447
|
sorter: 15,
|
|
5468
5448
|
type: 'unixTimeStamp',
|
|
5469
5449
|
defaultSortOrder: 'descend',
|
|
5470
|
-
|
|
5471
|
-
}, {
|
|
5472
|
-
title: t('backoffice.table.renderjobs.columns.urlVariants'),
|
|
5473
|
-
field: 'urlVariants',
|
|
5474
|
-
sorter: 1,
|
|
5450
|
+
filter: 'interval',
|
|
5475
5451
|
width: 200
|
|
5476
5452
|
}, {
|
|
5477
5453
|
title: t('backoffice.table.renderjobs.columns.dracoCompression'),
|
|
@@ -7840,6 +7816,25 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
7840
7816
|
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
7841
7817
|
value: false
|
|
7842
7818
|
}]
|
|
7819
|
+
}, {
|
|
7820
|
+
name: ['settings', 'versioningToIDMService'],
|
|
7821
|
+
label: t('backoffice.form.organizationdetails.items.versioningToIDMService'),
|
|
7822
|
+
permission: 'backoffice_sys_admin_organizations',
|
|
7823
|
+
hidden: function hidden(data) {
|
|
7824
|
+
return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'ASSOCIATION';
|
|
7825
|
+
},
|
|
7826
|
+
type: 'radio',
|
|
7827
|
+
optionType: 'button',
|
|
7828
|
+
options: [{
|
|
7829
|
+
label: t('backoffice.form.organizationdetails.items.na'),
|
|
7830
|
+
value: undefined
|
|
7831
|
+
}, {
|
|
7832
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
7833
|
+
value: true
|
|
7834
|
+
}, {
|
|
7835
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
7836
|
+
value: false
|
|
7837
|
+
}]
|
|
7843
7838
|
}, {
|
|
7844
7839
|
name: ['api2Location', 'vk'],
|
|
7845
7840
|
label: t('backoffice.form.organizationdetails.items.api2Location.vk'),
|
|
@@ -8384,6 +8379,11 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8384
8379
|
hidden: true
|
|
8385
8380
|
}]
|
|
8386
8381
|
});
|
|
8382
|
+
translationItems.push({
|
|
8383
|
+
name: [].concat(_toConsumableArray(p), ['disableFullscreen']),
|
|
8384
|
+
type: 'checkbox',
|
|
8385
|
+
label: t('backoffice.form.contentItem.disableFullscreen')
|
|
8386
|
+
});
|
|
8387
8387
|
break;
|
|
8388
8388
|
case 'Image':
|
|
8389
8389
|
translationItems.push({
|
|
@@ -8414,6 +8414,11 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8414
8414
|
label: t('backoffice.table.views.rowAction.label'),
|
|
8415
8415
|
doTranslate: true
|
|
8416
8416
|
});
|
|
8417
|
+
translationItems.push({
|
|
8418
|
+
name: [].concat(_toConsumableArray(p), ['disableFullscreen']),
|
|
8419
|
+
type: 'checkbox',
|
|
8420
|
+
label: t('backoffice.form.contentItem.disableFullscreen')
|
|
8421
|
+
});
|
|
8417
8422
|
break;
|
|
8418
8423
|
case 'Video':
|
|
8419
8424
|
translationItems.push({
|
|
@@ -8561,6 +8566,11 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8561
8566
|
name: [].concat(_toConsumableArray(p), ['Gallery']),
|
|
8562
8567
|
type: 'subTitle'
|
|
8563
8568
|
});
|
|
8569
|
+
translationItems.push({
|
|
8570
|
+
name: [].concat(_toConsumableArray(p), ['disableFullscreen']),
|
|
8571
|
+
type: 'checkbox',
|
|
8572
|
+
label: t('backoffice.form.contentItem.disableFullscreen')
|
|
8573
|
+
});
|
|
8564
8574
|
translationItems.push({
|
|
8565
8575
|
name: [].concat(_toConsumableArray(p), ['type']),
|
|
8566
8576
|
hidden: true
|
|
@@ -8635,6 +8645,11 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
8635
8645
|
label: t('backoffice.table.views.rowAction.label'),
|
|
8636
8646
|
doTranslate: true
|
|
8637
8647
|
});
|
|
8648
|
+
translationItems.push({
|
|
8649
|
+
name: [].concat(_toConsumableArray(p), ['disableFullscreen']),
|
|
8650
|
+
type: 'checkbox',
|
|
8651
|
+
label: t('backoffice.form.contentItem.disableFullscreen')
|
|
8652
|
+
});
|
|
8638
8653
|
break;
|
|
8639
8654
|
case 'Video':
|
|
8640
8655
|
translationItems.push({
|
|
@@ -10851,66 +10866,66 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
10851
10866
|
},
|
|
10852
10867
|
items: [{
|
|
10853
10868
|
name: 'isExclusive',
|
|
10854
|
-
label: '
|
|
10869
|
+
label: t('backoffice.form.room.isExclusiv'),
|
|
10855
10870
|
type: 'checkbox'
|
|
10856
10871
|
}, {
|
|
10857
|
-
|
|
10858
|
-
|
|
10872
|
+
label: t('backoffice.form.room.id'),
|
|
10873
|
+
name: 'id',
|
|
10859
10874
|
type: 'input',
|
|
10860
10875
|
readonly: true
|
|
10861
10876
|
}, {
|
|
10877
|
+
label: t('backoffice.form.room.blenderVersion'),
|
|
10862
10878
|
name: 'blenderVersion',
|
|
10863
|
-
label: 'Blender Version',
|
|
10864
10879
|
type: 'input',
|
|
10865
10880
|
readonly: true
|
|
10866
10881
|
}, {
|
|
10882
|
+
label: t('backoffice.form.room.mainCategory'),
|
|
10867
10883
|
name: 'mainCategory',
|
|
10868
|
-
label: 'Haupt Kategorie',
|
|
10869
10884
|
type: 'input'
|
|
10870
10885
|
}, {
|
|
10886
|
+
label: t('bacoffice.form.room.name'),
|
|
10871
10887
|
name: 'name',
|
|
10872
|
-
label: 'Name',
|
|
10873
10888
|
type: 'input'
|
|
10874
10889
|
}, {
|
|
10890
|
+
label: t('backoffice.form.room.variants'),
|
|
10875
10891
|
name: 'variants',
|
|
10876
|
-
label: 'variants',
|
|
10877
10892
|
value: 'variants',
|
|
10878
10893
|
type: 'array',
|
|
10879
10894
|
disablePushOrPop: true,
|
|
10880
10895
|
items: [{
|
|
10881
10896
|
type: 'subTitle',
|
|
10882
10897
|
name: 'Variante',
|
|
10883
|
-
label: '
|
|
10898
|
+
label: t('backoffice.form.room.variante')
|
|
10884
10899
|
}, {
|
|
10885
10900
|
type: 'input',
|
|
10886
10901
|
name: 'name',
|
|
10887
|
-
label: '
|
|
10902
|
+
label: t('backoffice.form.room.variantName')
|
|
10888
10903
|
}, {
|
|
10889
10904
|
type: 'input',
|
|
10890
10905
|
name: 'description',
|
|
10891
|
-
label: '
|
|
10906
|
+
label: t('backoffice.form.room.variantDescription')
|
|
10892
10907
|
}, {
|
|
10893
10908
|
type: 'select',
|
|
10894
10909
|
name: 'compatibleColors',
|
|
10895
|
-
label: '
|
|
10910
|
+
label: t('backoffice.form.room.variantCompatibleColors'),
|
|
10896
10911
|
mode: 'multiple',
|
|
10897
10912
|
allowClear: true,
|
|
10898
10913
|
values: ['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua']
|
|
10899
10914
|
}, {
|
|
10900
10915
|
type: 'checkbox',
|
|
10901
|
-
|
|
10916
|
+
label: t('backoffice.form.room.default'),
|
|
10902
10917
|
readonly: true,
|
|
10903
|
-
|
|
10918
|
+
name: 'default'
|
|
10904
10919
|
}, {
|
|
10905
10920
|
type: 'input',
|
|
10906
|
-
|
|
10907
|
-
|
|
10921
|
+
label: t('backoffice.form.room.sceneName'),
|
|
10922
|
+
name: 'sceneName'
|
|
10908
10923
|
}, {
|
|
10909
10924
|
type: 'select',
|
|
10910
|
-
|
|
10925
|
+
label: t('backoffice.form.room.style'),
|
|
10911
10926
|
mode: 'multiple',
|
|
10912
10927
|
allowCreate: true,
|
|
10913
|
-
|
|
10928
|
+
name: 'style'
|
|
10914
10929
|
}]
|
|
10915
10930
|
}]
|
|
10916
10931
|
},
|
|
@@ -12562,7 +12577,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
12562
12577
|
},
|
|
12563
12578
|
IFrameIMDExport: {
|
|
12564
12579
|
type: 'IFrame',
|
|
12565
|
-
apiInterface: '/api2/IDMExport.aspx?mainAuthToken=${nToken}&
|
|
12580
|
+
apiInterface: '/api2/IDMExport.aspx?mainAuthToken=${nToken}&organizationId=${organizationId}'
|
|
12566
12581
|
},
|
|
12567
12582
|
IFrameIDMImport: {
|
|
12568
12583
|
type: 'IFrame',
|
|
@@ -12646,8 +12661,8 @@ var navMinified = "nav-minified-tSt-a";
|
|
|
12646
12661
|
var navOverlay = "nav-overlay-rKJNC";
|
|
12647
12662
|
var navSettings = "nav-settings-82cjv";
|
|
12648
12663
|
var menuLabel = "menu-label-4dXQk";
|
|
12649
|
-
var css_248z$
|
|
12650
|
-
styleInject(css_248z$
|
|
12664
|
+
var css_248z$u = ".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;\n display: initial;\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";
|
|
12665
|
+
styleInject(css_248z$u);
|
|
12651
12666
|
|
|
12652
12667
|
function MenuLabel (_ref) {
|
|
12653
12668
|
var disabled = _ref.disabled,
|
|
@@ -16325,8 +16340,8 @@ var Result = function Result(_ref) {
|
|
|
16325
16340
|
|
|
16326
16341
|
var success = "success-tRJ7j";
|
|
16327
16342
|
var error = "error-MtAFB";
|
|
16328
|
-
var css_248z$
|
|
16329
|
-
styleInject(css_248z$
|
|
16343
|
+
var css_248z$t = ".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";
|
|
16344
|
+
styleInject(css_248z$t);
|
|
16330
16345
|
|
|
16331
16346
|
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";
|
|
16332
16347
|
|
|
@@ -16390,8 +16405,8 @@ var CustomButton$1 = observer(CustomButton);
|
|
|
16390
16405
|
|
|
16391
16406
|
var wrapper$6 = "wrapper-GVe2h";
|
|
16392
16407
|
var buttonGroup = "button-group-GYt-T";
|
|
16393
|
-
var css_248z$
|
|
16394
|
-
styleInject(css_248z$
|
|
16408
|
+
var css_248z$s = ".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";
|
|
16409
|
+
styleInject(css_248z$s);
|
|
16395
16410
|
|
|
16396
16411
|
function ownKeys$O(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; }
|
|
16397
16412
|
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16580,7 +16595,11 @@ function useSelectSimpleData (_ref) {
|
|
|
16580
16595
|
// set the selected option only after the options are loaded
|
|
16581
16596
|
if (value && options) {
|
|
16582
16597
|
LOG$a.debug('value changed', value);
|
|
16583
|
-
|
|
16598
|
+
var _selected = findByValue(value, options, selectMapping);
|
|
16599
|
+
var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
|
|
16600
|
+
return item.value;
|
|
16601
|
+
}) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
|
|
16602
|
+
onSelectionChanged(selectedValues, _selected);
|
|
16584
16603
|
} else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
|
|
16585
16604
|
onSelectionChanged(options[0].value, options[0]);
|
|
16586
16605
|
}
|
|
@@ -16650,8 +16669,8 @@ function parseReturnData(options, selectMapping) {
|
|
|
16650
16669
|
}
|
|
16651
16670
|
|
|
16652
16671
|
var wrapper$5 = "wrapper-4xyke";
|
|
16653
|
-
var css_248z$
|
|
16654
|
-
styleInject(css_248z$
|
|
16672
|
+
var css_248z$r = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
|
|
16673
|
+
styleInject(css_248z$r);
|
|
16655
16674
|
|
|
16656
16675
|
var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title"];
|
|
16657
16676
|
function ownKeys$N(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; }
|
|
@@ -17533,8 +17552,8 @@ var customSelect = "custom-select-ESUJX";
|
|
|
17533
17552
|
var customSelectOption = "custom-select-option-dUA7N";
|
|
17534
17553
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
|
17535
17554
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
|
17536
|
-
var css_248z$
|
|
17537
|
-
styleInject(css_248z$
|
|
17555
|
+
var css_248z$q = ".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";
|
|
17556
|
+
styleInject(css_248z$q);
|
|
17538
17557
|
|
|
17539
17558
|
var Selector = function Selector(_ref) {
|
|
17540
17559
|
var items = _ref.items,
|
|
@@ -18078,8 +18097,8 @@ function useSelectData (_ref) {
|
|
|
18078
18097
|
};
|
|
18079
18098
|
}
|
|
18080
18099
|
|
|
18081
|
-
var css_248z$
|
|
18082
|
-
styleInject(css_248z$
|
|
18100
|
+
var css_248z$p = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
|
|
18101
|
+
styleInject(css_248z$p);
|
|
18083
18102
|
|
|
18084
18103
|
var SelectWrapper = function SelectWrapper(_ref) {
|
|
18085
18104
|
var onChange = _ref.onChange,
|
|
@@ -18161,8 +18180,8 @@ var Select = observer(SelectWrapper);
|
|
|
18161
18180
|
var wrapper$4 = "wrapper-WStAk";
|
|
18162
18181
|
var headerWrapper = "header-wrapper-gWQuH";
|
|
18163
18182
|
var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
|
|
18164
|
-
var css_248z$
|
|
18165
|
-
styleInject(css_248z$
|
|
18183
|
+
var css_248z$o = ".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";
|
|
18184
|
+
styleInject(css_248z$o);
|
|
18166
18185
|
|
|
18167
18186
|
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; }
|
|
18168
18187
|
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; }
|
|
@@ -20208,8 +20227,8 @@ var skeleton = "skeleton--xCI0";
|
|
|
20208
20227
|
var filterField = "filterField-1kU1O";
|
|
20209
20228
|
var parentScroll = "parent-scroll-GmaL9";
|
|
20210
20229
|
var parent = "parent-NZJ3S";
|
|
20211
|
-
var css_248z$
|
|
20212
|
-
styleInject(css_248z$
|
|
20230
|
+
var css_248z$n = ".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";
|
|
20231
|
+
styleInject(css_248z$n);
|
|
20213
20232
|
|
|
20214
20233
|
function ownKeys$F(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; }
|
|
20215
20234
|
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -21454,8 +21473,8 @@ var newscroller = "newscroller-INKeD";
|
|
|
21454
21473
|
var antCollapseHeader = "ant-collapse-header--6FgU";
|
|
21455
21474
|
var itemTitle = "item-title--BTvC";
|
|
21456
21475
|
var itemDesc = "item-desc-DBiiF";
|
|
21457
|
-
var css_248z$
|
|
21458
|
-
styleInject(css_248z$
|
|
21476
|
+
var css_248z$m = ".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";
|
|
21477
|
+
styleInject(css_248z$m);
|
|
21459
21478
|
|
|
21460
21479
|
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; }
|
|
21461
21480
|
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; }
|
|
@@ -22867,8 +22886,8 @@ var jsoneditor = "jsoneditor-WMs15";
|
|
|
22867
22886
|
var preview = "preview-9wK81";
|
|
22868
22887
|
var previewButton = "preview-button-vupuG";
|
|
22869
22888
|
var editButton = "edit-button-m6r3M";
|
|
22870
|
-
var css_248z$
|
|
22871
|
-
styleInject(css_248z$
|
|
22889
|
+
var css_248z$l = ".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";
|
|
22890
|
+
styleInject(css_248z$l);
|
|
22872
22891
|
|
|
22873
22892
|
var JsonEditor = function JsonEditor(_ref, ref) {
|
|
22874
22893
|
var id = _ref.id,
|
|
@@ -23647,13 +23666,13 @@ function reducer(state, action) {
|
|
|
23647
23666
|
|
|
23648
23667
|
var grid = "grid-sGemi";
|
|
23649
23668
|
var textWrapper = "text-wrapper-xsPXE";
|
|
23650
|
-
var css_248z$
|
|
23651
|
-
styleInject(css_248z$
|
|
23669
|
+
var css_248z$k = ".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";
|
|
23670
|
+
styleInject(css_248z$k);
|
|
23652
23671
|
|
|
23653
23672
|
var wrapper$3 = "wrapper-p-gR3";
|
|
23654
23673
|
var container$4 = "container-DoZqe";
|
|
23655
|
-
var css_248z$
|
|
23656
|
-
styleInject(css_248z$
|
|
23674
|
+
var css_248z$j = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
|
|
23675
|
+
styleInject(css_248z$j);
|
|
23657
23676
|
|
|
23658
23677
|
var ToolTipInfo = function ToolTipInfo(props) {
|
|
23659
23678
|
var _useTranslation = useTranslation(),
|
|
@@ -23856,8 +23875,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
|
|
|
23856
23875
|
var small = "small-NY1-k";
|
|
23857
23876
|
var medium = "medium---QcO";
|
|
23858
23877
|
var big = "big--E39S";
|
|
23859
|
-
var css_248z$
|
|
23860
|
-
styleInject(css_248z$
|
|
23878
|
+
var css_248z$i = ".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";
|
|
23879
|
+
styleInject(css_248z$i);
|
|
23861
23880
|
|
|
23862
23881
|
var MediaUpload = observer(function (_ref) {
|
|
23863
23882
|
var id = _ref.id;
|
|
@@ -23917,8 +23936,8 @@ var editableRow = "editable-row-9BEHi";
|
|
|
23917
23936
|
var checkbox = "checkbox-H7R-w";
|
|
23918
23937
|
var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
|
|
23919
23938
|
var contentWidth = "content-width-hGyVI";
|
|
23920
|
-
var css_248z$
|
|
23921
|
-
styleInject(css_248z$
|
|
23939
|
+
var css_248z$h = ".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";
|
|
23940
|
+
styleInject(css_248z$h);
|
|
23922
23941
|
|
|
23923
23942
|
function BooleanCell (_ref) {
|
|
23924
23943
|
var children = _ref.children,
|
|
@@ -24907,8 +24926,8 @@ function useAGHistogram (_ref) {
|
|
|
24907
24926
|
var container$3 = "container-2r-OJ";
|
|
24908
24927
|
var column1 = "column1-9viTK";
|
|
24909
24928
|
var spinner = "spinner-00VcK";
|
|
24910
|
-
var css_248z$
|
|
24911
|
-
styleInject(css_248z$
|
|
24929
|
+
var css_248z$g = ".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";
|
|
24930
|
+
styleInject(css_248z$g);
|
|
24912
24931
|
|
|
24913
24932
|
var Panel = Collapse.Panel;
|
|
24914
24933
|
function AGHistogram (_ref) {
|
|
@@ -27877,8 +27896,8 @@ var loader = "loader-LaXZy";
|
|
|
27877
27896
|
var flex = "flex-yQdda";
|
|
27878
27897
|
var bar = "bar-Y663f";
|
|
27879
27898
|
var value = "value-FCA-6";
|
|
27880
|
-
var css_248z$
|
|
27881
|
-
styleInject(css_248z$
|
|
27899
|
+
var css_248z$f = ".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";
|
|
27900
|
+
styleInject(css_248z$f);
|
|
27882
27901
|
|
|
27883
27902
|
function ownKeys$l(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; }
|
|
27884
27903
|
function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -28823,8 +28842,8 @@ var retailerChild = "retailer-child-5ll0K";
|
|
|
28823
28842
|
var supplier = "supplier-8sm0I";
|
|
28824
28843
|
var dealer = "dealer-xgnku";
|
|
28825
28844
|
var association = "association-b8uVW";
|
|
28826
|
-
var css_248z$
|
|
28827
|
-
styleInject(css_248z$
|
|
28845
|
+
var css_248z$e = ".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";
|
|
28846
|
+
styleInject(css_248z$e);
|
|
28828
28847
|
|
|
28829
28848
|
function getColorClass(data) {
|
|
28830
28849
|
switch (data.type) {
|
|
@@ -29057,8 +29076,8 @@ var openClass = "open-class--gGXs";
|
|
|
29057
29076
|
var breadcrumb = "breadcrumb-Z0VvH";
|
|
29058
29077
|
var selected = "selected-w-sfW";
|
|
29059
29078
|
var disabled$2 = "disabled-0nado";
|
|
29060
|
-
var css_248z$
|
|
29061
|
-
styleInject(css_248z$
|
|
29079
|
+
var css_248z$d = ".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";
|
|
29080
|
+
styleInject(css_248z$d);
|
|
29062
29081
|
|
|
29063
29082
|
var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
29064
29083
|
var open = _ref.open,
|
|
@@ -29091,8 +29110,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
|
|
|
29091
29110
|
|
|
29092
29111
|
var collapsibleInner = "collapsible-inner-rI8kI";
|
|
29093
29112
|
var toolbarLeft = "toolbar-left-X9WRo";
|
|
29094
|
-
var css_248z$
|
|
29095
|
-
styleInject(css_248z$
|
|
29113
|
+
var css_248z$c = ".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";
|
|
29114
|
+
styleInject(css_248z$c);
|
|
29096
29115
|
|
|
29097
29116
|
var Legend = function Legend(props) {
|
|
29098
29117
|
return /*#__PURE__*/jsx(List$1, {
|
|
@@ -29146,8 +29165,8 @@ var Legend = function Legend(props) {
|
|
|
29146
29165
|
var buttonsWrapper = "buttons-wrapper-Bubkr";
|
|
29147
29166
|
var mask = "mask-ssagp";
|
|
29148
29167
|
var transformWrapper = "transform-wrapper--8t0v";
|
|
29149
|
-
var css_248z$
|
|
29150
|
-
styleInject(css_248z$
|
|
29168
|
+
var css_248z$b = ".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";
|
|
29169
|
+
styleInject(css_248z$b);
|
|
29151
29170
|
|
|
29152
29171
|
var ZoomWrapper = function ZoomWrapper(_ref) {
|
|
29153
29172
|
var _children = _ref.children,
|
|
@@ -29998,14 +30017,19 @@ var Spreadsheet = observer(SpreadsheetWrapper);
|
|
|
29998
30017
|
|
|
29999
30018
|
function PackageSelector(_ref) {
|
|
30000
30019
|
var organizationId = _ref.organizationId,
|
|
30001
|
-
|
|
30020
|
+
packageId = _ref.packageId,
|
|
30002
30021
|
setSelectedPackage = _ref.setSelectedPackage,
|
|
30003
30022
|
enricherService = _ref.enricherService;
|
|
30004
30023
|
var _useTranslation = useTranslation(),
|
|
30005
30024
|
t = _useTranslation.t;
|
|
30025
|
+
var value = useMemo(function () {
|
|
30026
|
+
return {
|
|
30027
|
+
_id: packageId
|
|
30028
|
+
};
|
|
30029
|
+
}, [packageId]);
|
|
30006
30030
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
30007
30031
|
apiInterface: {
|
|
30008
|
-
read: enricherService + "/packages?fields=name;_id&filter=organizationId==\"".concat(organizationId, "\"")
|
|
30032
|
+
read: enricherService + "/packages?fields=name;_id;isoLanguageIds;isApi&filter=organizationId==\"".concat(organizationId, "\"")
|
|
30009
30033
|
},
|
|
30010
30034
|
apiMapping: {
|
|
30011
30035
|
type: 'query',
|
|
@@ -30019,11 +30043,9 @@ function PackageSelector(_ref) {
|
|
|
30019
30043
|
value: '${_id}'
|
|
30020
30044
|
},
|
|
30021
30045
|
title: t('backoffice.menu.items.label.IDMEnricherEditorTablePackages'),
|
|
30022
|
-
value:
|
|
30023
|
-
_id: selectedPackage
|
|
30024
|
-
},
|
|
30046
|
+
value: value,
|
|
30025
30047
|
onChange: function onChange(value) {
|
|
30026
|
-
return setSelectedPackage(value
|
|
30048
|
+
return setSelectedPackage(value);
|
|
30027
30049
|
},
|
|
30028
30050
|
search: true,
|
|
30029
30051
|
style: {
|
|
@@ -30072,6 +30094,10 @@ function useModule$1 (currentModules) {
|
|
|
30072
30094
|
var _useSearchParams = useSearchParams(),
|
|
30073
30095
|
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
|
30074
30096
|
searchParams = _useSearchParams2[0];
|
|
30097
|
+
var _useState = useState(),
|
|
30098
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
30099
|
+
selectedPackage = _useState2[0],
|
|
30100
|
+
setSelectedPackage = _useState2[1];
|
|
30075
30101
|
var menuItems = useMemo(function () {
|
|
30076
30102
|
return [{
|
|
30077
30103
|
key: 'renaming',
|
|
@@ -30080,29 +30106,27 @@ function useModule$1 (currentModules) {
|
|
|
30080
30106
|
},
|
|
30081
30107
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30082
30108
|
label: t('backoffice.menu.items.label.IDMEnricherEditorTableRenaming'),
|
|
30083
|
-
children: [
|
|
30084
|
-
|
|
30085
|
-
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30101
|
-
|
|
30102
|
-
|
|
30103
|
-
|
|
30104
|
-
// },
|
|
30105
|
-
{
|
|
30109
|
+
children: [].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30110
|
+
key: 'catalogs',
|
|
30111
|
+
style: {
|
|
30112
|
+
margin: 0
|
|
30113
|
+
},
|
|
30114
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30115
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30116
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/catalogs' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30117
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingCatalog')
|
|
30118
|
+
})
|
|
30119
|
+
}, {
|
|
30120
|
+
key: 'series',
|
|
30121
|
+
style: {
|
|
30122
|
+
margin: 0
|
|
30123
|
+
},
|
|
30124
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30125
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30126
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/series' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30127
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')
|
|
30128
|
+
})
|
|
30129
|
+
}]), [{
|
|
30106
30130
|
key: 'features',
|
|
30107
30131
|
style: {
|
|
30108
30132
|
margin: 0
|
|
@@ -30113,7 +30137,7 @@ function useModule$1 (currentModules) {
|
|
|
30113
30137
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature')
|
|
30114
30138
|
})
|
|
30115
30139
|
}, {
|
|
30116
|
-
key: '
|
|
30140
|
+
key: 'options',
|
|
30117
30141
|
style: {
|
|
30118
30142
|
margin: 0
|
|
30119
30143
|
},
|
|
@@ -30132,18 +30156,17 @@ function useModule$1 (currentModules) {
|
|
|
30132
30156
|
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30133
30157
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
30134
30158
|
})
|
|
30135
|
-
}
|
|
30136
|
-
|
|
30137
|
-
|
|
30138
|
-
|
|
30139
|
-
|
|
30140
|
-
|
|
30141
|
-
|
|
30142
|
-
|
|
30143
|
-
|
|
30144
|
-
|
|
30145
|
-
|
|
30146
|
-
]
|
|
30159
|
+
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30160
|
+
key: 'detailInfos',
|
|
30161
|
+
style: {
|
|
30162
|
+
margin: 0
|
|
30163
|
+
},
|
|
30164
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30165
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30166
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/renaming/detailInfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30167
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')
|
|
30168
|
+
})
|
|
30169
|
+
}]))
|
|
30147
30170
|
}, {
|
|
30148
30171
|
key: 'tabgroups',
|
|
30149
30172
|
style: {
|
|
@@ -30161,20 +30184,17 @@ function useModule$1 (currentModules) {
|
|
|
30161
30184
|
},
|
|
30162
30185
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30163
30186
|
label: t('backoffice.menu.items.label.IDMEnricherEditorTableExclusivity'),
|
|
30164
|
-
children: [
|
|
30165
|
-
|
|
30166
|
-
|
|
30167
|
-
|
|
30168
|
-
|
|
30169
|
-
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30174
|
-
|
|
30175
|
-
// ),
|
|
30176
|
-
// },
|
|
30177
|
-
{
|
|
30187
|
+
children: [].concat(_toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30188
|
+
key: 'eserie',
|
|
30189
|
+
style: {
|
|
30190
|
+
margin: 0
|
|
30191
|
+
},
|
|
30192
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30193
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30194
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eserie' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30195
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingSerie')
|
|
30196
|
+
})
|
|
30197
|
+
}]), [{
|
|
30178
30198
|
key: 'efeature',
|
|
30179
30199
|
style: {
|
|
30180
30200
|
margin: 0
|
|
@@ -30204,18 +30224,17 @@ function useModule$1 (currentModules) {
|
|
|
30204
30224
|
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/eitem' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30205
30225
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingItem')
|
|
30206
30226
|
})
|
|
30207
|
-
}
|
|
30208
|
-
|
|
30209
|
-
|
|
30210
|
-
|
|
30211
|
-
|
|
30212
|
-
|
|
30213
|
-
|
|
30214
|
-
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
|
|
30218
|
-
]
|
|
30227
|
+
}], _toConsumableArray(selectedPackage !== null && selectedPackage !== void 0 && selectedPackage.isApi ? [] : [{
|
|
30228
|
+
key: 'edetailInfo',
|
|
30229
|
+
style: {
|
|
30230
|
+
margin: 0
|
|
30231
|
+
},
|
|
30232
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
30233
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
30234
|
+
to: 'catalogs/idmeditor/packages/' + packageId + '/exclusivity/edetailInfo' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
30235
|
+
children: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingDetailInfo')
|
|
30236
|
+
})
|
|
30237
|
+
}]))
|
|
30219
30238
|
}, {
|
|
30220
30239
|
key: 'properties',
|
|
30221
30240
|
style: {
|
|
@@ -30261,7 +30280,8 @@ function useModule$1 (currentModules) {
|
|
|
30261
30280
|
if (!packageId) throw new Error('packageId is required');
|
|
30262
30281
|
var updateNavigationModule = useCallback(function (currentPackage) {
|
|
30263
30282
|
var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
|
|
30264
|
-
updateNavigation(currentPackage, modules, '../');
|
|
30283
|
+
updateNavigation(currentPackage._id, modules, '../');
|
|
30284
|
+
setSelectedPackage(currentPackage);
|
|
30265
30285
|
}, [updateNavigation]);
|
|
30266
30286
|
useEffect(function () {
|
|
30267
30287
|
//update the navigation supmenu for the packages module to include the current package id
|
|
@@ -30292,7 +30312,51 @@ function useModule$1 (currentModules) {
|
|
|
30292
30312
|
updateNavigation: updateNavigationModule,
|
|
30293
30313
|
organizationId: organizationId,
|
|
30294
30314
|
apiConfig: apiConfig,
|
|
30295
|
-
packageId: packageId
|
|
30315
|
+
packageId: packageId,
|
|
30316
|
+
selectedPackage: selectedPackage
|
|
30317
|
+
};
|
|
30318
|
+
}
|
|
30319
|
+
|
|
30320
|
+
function createTranslatedColumnConfig(field, headerName, languages) {
|
|
30321
|
+
var required = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
30322
|
+
var cellDataType = arguments.length > 4 ? arguments[4] : undefined;
|
|
30323
|
+
var customParams = arguments.length > 5 ? arguments[5] : undefined;
|
|
30324
|
+
var additionalFields = arguments.length > 6 ? arguments[6] : undefined;
|
|
30325
|
+
if (languages.length == 1) {
|
|
30326
|
+
return {
|
|
30327
|
+
headerName: headerName,
|
|
30328
|
+
field: "".concat(field, ".").concat(languages[0]),
|
|
30329
|
+
required: required,
|
|
30330
|
+
isDictionary: true,
|
|
30331
|
+
cellDataType: cellDataType,
|
|
30332
|
+
customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
|
|
30333
|
+
acc[key] = "".concat(customParams[key], ".").concat(languages[0]);
|
|
30334
|
+
return acc;
|
|
30335
|
+
}, {}) : undefined,
|
|
30336
|
+
additionalFields: additionalFields ? additionalFields.map(function (field) {
|
|
30337
|
+
return "".concat(field, ".").concat(languages[0]);
|
|
30338
|
+
}) : undefined
|
|
30339
|
+
};
|
|
30340
|
+
}
|
|
30341
|
+
return {
|
|
30342
|
+
headerName: headerName,
|
|
30343
|
+
marryChildren: true,
|
|
30344
|
+
children: languages.map(function (language) {
|
|
30345
|
+
return {
|
|
30346
|
+
field: "".concat(field, ".").concat(language),
|
|
30347
|
+
headerName: 'backoffice.idmEnricher.general.label.' + language,
|
|
30348
|
+
required: required,
|
|
30349
|
+
isDictionary: true,
|
|
30350
|
+
cellDataType: cellDataType,
|
|
30351
|
+
customParams: customParams ? Object.keys(customParams).reduce(function (acc, key) {
|
|
30352
|
+
acc[key] = "".concat(customParams[key], ".").concat(language);
|
|
30353
|
+
return acc;
|
|
30354
|
+
}, {}) : undefined,
|
|
30355
|
+
additionalFields: additionalFields ? additionalFields.map(function (field) {
|
|
30356
|
+
return "".concat(field, ".").concat(language);
|
|
30357
|
+
}) : undefined
|
|
30358
|
+
};
|
|
30359
|
+
})
|
|
30296
30360
|
};
|
|
30297
30361
|
}
|
|
30298
30362
|
|
|
@@ -30303,7 +30367,8 @@ function TableGroups () {
|
|
|
30303
30367
|
packageId = _useModule.packageId,
|
|
30304
30368
|
organizationId = _useModule.organizationId,
|
|
30305
30369
|
updateNavigation = _useModule.updateNavigation,
|
|
30306
|
-
apiConfig = _useModule.apiConfig
|
|
30370
|
+
apiConfig = _useModule.apiConfig,
|
|
30371
|
+
selectedPackage = _useModule.selectedPackage;
|
|
30307
30372
|
var applicationData = useMemo(function () {
|
|
30308
30373
|
return {
|
|
30309
30374
|
packageId: packageId,
|
|
@@ -30325,29 +30390,7 @@ function TableGroups () {
|
|
|
30325
30390
|
apiInterface: apiInterface,
|
|
30326
30391
|
dateFormat: 'LL',
|
|
30327
30392
|
floatingFilter: true,
|
|
30328
|
-
colDef: [{
|
|
30329
|
-
headerName: 'backoffice.idmEnricher.groups.label.name',
|
|
30330
|
-
marryChildren: true,
|
|
30331
|
-
children: [{
|
|
30332
|
-
field: 'name.DE',
|
|
30333
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30334
|
-
isDictionary: true,
|
|
30335
|
-
pinned: true,
|
|
30336
|
-
required: true
|
|
30337
|
-
}, {
|
|
30338
|
-
field: 'name.EN',
|
|
30339
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
30340
|
-
isDictionary: true
|
|
30341
|
-
}, {
|
|
30342
|
-
field: 'name.FR',
|
|
30343
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
30344
|
-
isDictionary: true
|
|
30345
|
-
}, {
|
|
30346
|
-
field: 'name.IT',
|
|
30347
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
30348
|
-
isDictionary: true
|
|
30349
|
-
}]
|
|
30350
|
-
}, {
|
|
30393
|
+
colDef: [createTranslatedColumnConfig('name', 'backoffice.idmEnricher.groups.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
|
|
30351
30394
|
field: 'serieNos',
|
|
30352
30395
|
headerName: 'backoffice.idmEnricher.groups.label.serieNos',
|
|
30353
30396
|
cellDataType: 'lookup',
|
|
@@ -30429,7 +30472,7 @@ function TableGroups () {
|
|
|
30429
30472
|
cellDataType: 'objectId'
|
|
30430
30473
|
}]
|
|
30431
30474
|
};
|
|
30432
|
-
}, [apiInterface, t]);
|
|
30475
|
+
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
|
30433
30476
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
30434
30477
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
30435
30478
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -30439,15 +30482,15 @@ function TableGroups () {
|
|
|
30439
30482
|
},
|
|
30440
30483
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
30441
30484
|
organizationId: organizationId,
|
|
30442
|
-
|
|
30443
|
-
setSelectedPackage: function setSelectedPackage(
|
|
30444
|
-
return updateNavigation(
|
|
30485
|
+
packageId: packageId,
|
|
30486
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
30487
|
+
return updateNavigation(packageId);
|
|
30445
30488
|
},
|
|
30446
30489
|
enricherService: apiConfig.enricherService
|
|
30447
30490
|
})
|
|
30448
30491
|
})]
|
|
30449
30492
|
})
|
|
30450
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
30493
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
30451
30494
|
gridId: 'crud-grid_groups',
|
|
30452
30495
|
applicationData: applicationData,
|
|
30453
30496
|
configuration: configuration
|
|
@@ -30612,10 +30655,141 @@ function LoadingModal (_ref) {
|
|
|
30612
30655
|
});
|
|
30613
30656
|
}
|
|
30614
30657
|
|
|
30658
|
+
var getCurrencyKey = function getCurrencyKey(t) {
|
|
30659
|
+
return [{
|
|
30660
|
+
name: t('backoffice.idmCatalog.general.label.currencies.EUR'),
|
|
30661
|
+
value: 'EUR'
|
|
30662
|
+
}, {
|
|
30663
|
+
name: t('backoffice.idmCatalog.general.label.currencies.USD'),
|
|
30664
|
+
value: 'USD'
|
|
30665
|
+
}, {
|
|
30666
|
+
name: t('backoffice.idmCatalog.general.label.currencies.GBP'),
|
|
30667
|
+
value: 'GBP'
|
|
30668
|
+
}, {
|
|
30669
|
+
name: t('backoffice.idmCatalog.general.label.currencies.CHF'),
|
|
30670
|
+
value: 'CHF'
|
|
30671
|
+
}];
|
|
30672
|
+
};
|
|
30673
|
+
var getLanguageKey = function getLanguageKey(t) {
|
|
30674
|
+
return [{
|
|
30675
|
+
name: t('backoffice.idmCatalog.general.label.languages.DE'),
|
|
30676
|
+
value: 'DE'
|
|
30677
|
+
}, {
|
|
30678
|
+
name: t('backoffice.idmCatalog.general.label.languages.EN'),
|
|
30679
|
+
value: 'EN'
|
|
30680
|
+
}, {
|
|
30681
|
+
name: t('backoffice.idmCatalog.general.label.languages.FR'),
|
|
30682
|
+
value: 'FR'
|
|
30683
|
+
}, {
|
|
30684
|
+
name: t('backoffice.idmCatalog.general.label.languages.IT'),
|
|
30685
|
+
value: 'IT'
|
|
30686
|
+
}];
|
|
30687
|
+
};
|
|
30688
|
+
var getCountryKey = function getCountryKey(t) {
|
|
30689
|
+
return [{
|
|
30690
|
+
name: t('backoffice.idmCatalog.general.label.countries.DE'),
|
|
30691
|
+
value: 'DE'
|
|
30692
|
+
}, {
|
|
30693
|
+
name: t('backoffice.idmCatalog.general.label.countries.US'),
|
|
30694
|
+
value: 'US'
|
|
30695
|
+
}, {
|
|
30696
|
+
name: t('backoffice.idmCatalog.general.label.countries.FR'),
|
|
30697
|
+
value: 'FR'
|
|
30698
|
+
}, {
|
|
30699
|
+
name: t('backoffice.idmCatalog.general.label.countries.IT'),
|
|
30700
|
+
value: 'IT'
|
|
30701
|
+
}, {
|
|
30702
|
+
name: t('backoffice.idmCatalog.general.label.countries.GB'),
|
|
30703
|
+
value: 'GB'
|
|
30704
|
+
}, {
|
|
30705
|
+
name: t('backoffice.idmCatalog.general.label.countries.CH'),
|
|
30706
|
+
value: 'CH'
|
|
30707
|
+
}, {
|
|
30708
|
+
name: t('backoffice.idmCatalog.general.label.countries.AT'),
|
|
30709
|
+
value: 'AT'
|
|
30710
|
+
}];
|
|
30711
|
+
};
|
|
30712
|
+
var getFormOfAddressKey = function getFormOfAddressKey(t) {
|
|
30713
|
+
return [{
|
|
30714
|
+
name: t('backoffice.idmCatalog.general.label.foa.f1'),
|
|
30715
|
+
value: 1
|
|
30716
|
+
}, {
|
|
30717
|
+
name: t('backoffice.idmCatalog.general.label.foa.f2'),
|
|
30718
|
+
value: 2
|
|
30719
|
+
}];
|
|
30720
|
+
};
|
|
30721
|
+
var getLayerIdKey = function getLayerIdKey(t) {
|
|
30722
|
+
return [{
|
|
30723
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l10'),
|
|
30724
|
+
value: 10
|
|
30725
|
+
}, {
|
|
30726
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l20'),
|
|
30727
|
+
value: 20
|
|
30728
|
+
}, {
|
|
30729
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l30'),
|
|
30730
|
+
value: 30
|
|
30731
|
+
}, {
|
|
30732
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l40'),
|
|
30733
|
+
value: 40
|
|
30734
|
+
}, {
|
|
30735
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l50'),
|
|
30736
|
+
value: 50
|
|
30737
|
+
}, {
|
|
30738
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l60'),
|
|
30739
|
+
value: 60
|
|
30740
|
+
}];
|
|
30741
|
+
};
|
|
30742
|
+
var getInfoTypeKey = function getInfoTypeKey(t) {
|
|
30743
|
+
return [{
|
|
30744
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i1'),
|
|
30745
|
+
value: 1
|
|
30746
|
+
}, {
|
|
30747
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i2'),
|
|
30748
|
+
value: 2
|
|
30749
|
+
}, {
|
|
30750
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i3'),
|
|
30751
|
+
value: 3
|
|
30752
|
+
}, {
|
|
30753
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i4'),
|
|
30754
|
+
value: 4
|
|
30755
|
+
}, {
|
|
30756
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i5'),
|
|
30757
|
+
value: 5
|
|
30758
|
+
}, {
|
|
30759
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i6'),
|
|
30760
|
+
value: 6
|
|
30761
|
+
}, {
|
|
30762
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i7'),
|
|
30763
|
+
value: 7
|
|
30764
|
+
}, {
|
|
30765
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i8'),
|
|
30766
|
+
value: 8
|
|
30767
|
+
}, {
|
|
30768
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i9'),
|
|
30769
|
+
value: 9
|
|
30770
|
+
}, {
|
|
30771
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i10'),
|
|
30772
|
+
value: 10
|
|
30773
|
+
}, {
|
|
30774
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i11'),
|
|
30775
|
+
value: 11
|
|
30776
|
+
}, {
|
|
30777
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
|
|
30778
|
+
value: 12
|
|
30779
|
+
}, {
|
|
30780
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i13'),
|
|
30781
|
+
value: 13
|
|
30782
|
+
}, {
|
|
30783
|
+
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i14'),
|
|
30784
|
+
value: 14
|
|
30785
|
+
}];
|
|
30786
|
+
};
|
|
30787
|
+
|
|
30615
30788
|
function TablePackages () {
|
|
30616
30789
|
var root = useStore();
|
|
30617
30790
|
var _useTranslation = useTranslation(),
|
|
30618
|
-
t = _useTranslation.t
|
|
30791
|
+
t = _useTranslation.t,
|
|
30792
|
+
i18n = _useTranslation.i18n;
|
|
30619
30793
|
var _useNavigation = useNavigation$1(),
|
|
30620
30794
|
organizationId = _useNavigation.organizationId,
|
|
30621
30795
|
apiConfig = _useNavigation.apiConfig,
|
|
@@ -30756,7 +30930,17 @@ function TablePackages () {
|
|
|
30756
30930
|
read: apiConfig.idmService + '/v3.0/catalogs?organizationId=${organizationId}'
|
|
30757
30931
|
},
|
|
30758
30932
|
lookupValue: 'name',
|
|
30759
|
-
lookupKey: '_id'
|
|
30933
|
+
lookupKey: '_id',
|
|
30934
|
+
lookupLabelTemplate: function lookupLabelTemplate(data) {
|
|
30935
|
+
return data.name + (data.isApi ? ' (CE)' : '');
|
|
30936
|
+
},
|
|
30937
|
+
additionalMappings: [{
|
|
30938
|
+
lookupField: 'isoLanguageIds',
|
|
30939
|
+
targetField: 'isoLanguageIds'
|
|
30940
|
+
}, {
|
|
30941
|
+
lookupField: 'isApi',
|
|
30942
|
+
targetField: 'isApi'
|
|
30943
|
+
}]
|
|
30760
30944
|
},
|
|
30761
30945
|
additionalFields: ['basedCatalogName']
|
|
30762
30946
|
}, {
|
|
@@ -30775,11 +30959,37 @@ function TablePackages () {
|
|
|
30775
30959
|
},
|
|
30776
30960
|
lookupValue: 'name',
|
|
30777
30961
|
lookupKey: '_id',
|
|
30962
|
+
lookupLabelTemplate: function lookupLabelTemplate(data) {
|
|
30963
|
+
return data.name + (data.isApi ? ' (CE)' : '');
|
|
30964
|
+
},
|
|
30778
30965
|
filter: function filter(rowData, lookupData) {
|
|
30779
30966
|
return rowData._id !== lookupData._id;
|
|
30780
|
-
}
|
|
30967
|
+
},
|
|
30968
|
+
additionalMappings: [{
|
|
30969
|
+
lookupField: 'isoLanguageIds',
|
|
30970
|
+
targetField: 'isoLanguageIds'
|
|
30971
|
+
}, {
|
|
30972
|
+
lookupField: 'isApi',
|
|
30973
|
+
targetField: 'isApi'
|
|
30974
|
+
}]
|
|
30781
30975
|
},
|
|
30782
30976
|
additionalFields: ['basedPackageName']
|
|
30977
|
+
}, {
|
|
30978
|
+
field: 'isoLanguageIds',
|
|
30979
|
+
headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
|
|
30980
|
+
cellDataType: 'enum',
|
|
30981
|
+
editable: true,
|
|
30982
|
+
required: true,
|
|
30983
|
+
customParams: {
|
|
30984
|
+
enumData: getLanguageKey(t),
|
|
30985
|
+
multiple: true
|
|
30986
|
+
},
|
|
30987
|
+
defaultValue: ['DE']
|
|
30988
|
+
}, {
|
|
30989
|
+
headerName: 'backoffice.idmEnricher.packages.label.isApi2',
|
|
30990
|
+
field: 'isApi',
|
|
30991
|
+
cellDataType: 'boolean',
|
|
30992
|
+
editable: false
|
|
30783
30993
|
}, {
|
|
30784
30994
|
headerName: 'backoffice.idmEnricher.general.label.lastUpdatedDate',
|
|
30785
30995
|
field: 'lastUpdatedDate',
|
|
@@ -30821,7 +31031,7 @@ function TablePackages () {
|
|
|
30821
31031
|
defaultValue: '${organizationId}'
|
|
30822
31032
|
}]
|
|
30823
31033
|
};
|
|
30824
|
-
}, [apiInterface, apiConfig]);
|
|
31034
|
+
}, [apiInterface, apiConfig, i18n.language]);
|
|
30825
31035
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
30826
31036
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
30827
31037
|
title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
|
|
@@ -30846,7 +31056,8 @@ function TableProperties () {
|
|
|
30846
31056
|
packageId = _useModule.packageId,
|
|
30847
31057
|
organizationId = _useModule.organizationId,
|
|
30848
31058
|
updateNavigation = _useModule.updateNavigation,
|
|
30849
|
-
apiConfig = _useModule.apiConfig
|
|
31059
|
+
apiConfig = _useModule.apiConfig,
|
|
31060
|
+
selectedPackage = _useModule.selectedPackage;
|
|
30850
31061
|
var applicationData = useMemo(function () {
|
|
30851
31062
|
return {
|
|
30852
31063
|
packageId: packageId,
|
|
@@ -30871,8 +31082,7 @@ function TableProperties () {
|
|
|
30871
31082
|
colDef: [{
|
|
30872
31083
|
field: 'key',
|
|
30873
31084
|
headerName: 'backoffice.idmEnricher.properties.label.key',
|
|
30874
|
-
required: true
|
|
30875
|
-
pinned: true
|
|
31085
|
+
required: true
|
|
30876
31086
|
}, {
|
|
30877
31087
|
field: 'featureNos',
|
|
30878
31088
|
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
|
@@ -30890,8 +31100,7 @@ function TableProperties () {
|
|
|
30890
31100
|
translated: true
|
|
30891
31101
|
},
|
|
30892
31102
|
additionalFields: ['featureNosDisplayTexts'],
|
|
30893
|
-
isDictionary: true
|
|
30894
|
-
pinned: true
|
|
31103
|
+
isDictionary: true
|
|
30895
31104
|
}, {
|
|
30896
31105
|
field: 'optionKeys',
|
|
30897
31106
|
headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
|
|
@@ -30915,53 +31124,8 @@ function TableProperties () {
|
|
|
30915
31124
|
}
|
|
30916
31125
|
},
|
|
30917
31126
|
additionalFields: ['optionKeysDisplayTexts'],
|
|
30918
|
-
isDictionary: true
|
|
30919
|
-
|
|
30920
|
-
}, {
|
|
30921
|
-
headerName: 'backoffice.idmEnricher.properties.label.name',
|
|
30922
|
-
marryChildren: true,
|
|
30923
|
-
children: [{
|
|
30924
|
-
field: 'name.DE',
|
|
30925
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30926
|
-
isDictionary: true,
|
|
30927
|
-
pinned: true,
|
|
30928
|
-
required: true
|
|
30929
|
-
}, {
|
|
30930
|
-
field: 'name.EN',
|
|
30931
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
30932
|
-
isDictionary: true
|
|
30933
|
-
}, {
|
|
30934
|
-
field: 'name.FR',
|
|
30935
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
30936
|
-
isDictionary: true
|
|
30937
|
-
}, {
|
|
30938
|
-
field: 'name.IT',
|
|
30939
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
30940
|
-
isDictionary: true
|
|
30941
|
-
}]
|
|
30942
|
-
}, {
|
|
30943
|
-
headerName: 'backoffice.idmEnricher.properties.label.value',
|
|
30944
|
-
marryChildren: true,
|
|
30945
|
-
children: [{
|
|
30946
|
-
field: 'value.DE',
|
|
30947
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
30948
|
-
isDictionary: true,
|
|
30949
|
-
pinned: true,
|
|
30950
|
-
required: true
|
|
30951
|
-
}, {
|
|
30952
|
-
field: 'value.EN',
|
|
30953
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
30954
|
-
isDictionary: true
|
|
30955
|
-
}, {
|
|
30956
|
-
field: 'value.FR',
|
|
30957
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
30958
|
-
isDictionary: true
|
|
30959
|
-
}, {
|
|
30960
|
-
field: 'value.IT',
|
|
30961
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
30962
|
-
isDictionary: true
|
|
30963
|
-
}]
|
|
30964
|
-
}, {
|
|
31127
|
+
isDictionary: true
|
|
31128
|
+
}, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.properties.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), createTranslatedColumnConfig('value', 'backoffice.idmEnricher.properties.label.value', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
|
|
30965
31129
|
field: 'serieNos',
|
|
30966
31130
|
headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
|
|
30967
31131
|
cellDataType: 'lookup',
|
|
@@ -31043,7 +31207,7 @@ function TableProperties () {
|
|
|
31043
31207
|
cellDataType: 'objectId'
|
|
31044
31208
|
}]
|
|
31045
31209
|
};
|
|
31046
|
-
}, [apiInterface, t]);
|
|
31210
|
+
}, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
|
31047
31211
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
31048
31212
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
31049
31213
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -31053,15 +31217,15 @@ function TableProperties () {
|
|
|
31053
31217
|
},
|
|
31054
31218
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
31055
31219
|
organizationId: organizationId,
|
|
31056
|
-
|
|
31057
|
-
setSelectedPackage: function setSelectedPackage(
|
|
31058
|
-
return updateNavigation(
|
|
31220
|
+
packageId: packageId,
|
|
31221
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
31222
|
+
return updateNavigation(packageId);
|
|
31059
31223
|
},
|
|
31060
31224
|
enricherService: apiConfig.enricherService
|
|
31061
31225
|
})
|
|
31062
31226
|
})]
|
|
31063
31227
|
})
|
|
31064
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
31228
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
31065
31229
|
gridId: 'crud-grid_properties',
|
|
31066
31230
|
applicationData: applicationData,
|
|
31067
31231
|
configuration: configuration
|
|
@@ -31069,337 +31233,513 @@ function TableProperties () {
|
|
|
31069
31233
|
});
|
|
31070
31234
|
}
|
|
31071
31235
|
|
|
31072
|
-
var
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
editable: false,
|
|
31078
|
-
pinned: 'left'
|
|
31079
|
-
}, {
|
|
31080
|
-
headerName: 'backoffice.idmEnricher.renaming.label.featuretext',
|
|
31081
|
-
marryChildren: true,
|
|
31082
|
-
children: [{
|
|
31083
|
-
field: 'translatedFeatureText.DE',
|
|
31084
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31085
|
-
isDictionary: true,
|
|
31236
|
+
var getConfig$6 = function getConfig(isoLanguageIds, t) {
|
|
31237
|
+
return {
|
|
31238
|
+
colDef: [{
|
|
31239
|
+
field: 'translatedName',
|
|
31240
|
+
headerName: 'backoffice.idmEnricher.renaming.label.catalogName',
|
|
31086
31241
|
cellDataType: 'withPlaceholder',
|
|
31087
31242
|
customParams: {
|
|
31088
|
-
placeHolderField: '
|
|
31089
|
-
combinedField: '
|
|
31243
|
+
placeHolderField: 'origName',
|
|
31244
|
+
combinedField: 'name'
|
|
31090
31245
|
},
|
|
31091
|
-
additionalFields: ['
|
|
31092
|
-
pinned: 'left'
|
|
31246
|
+
additionalFields: ['origName', 'name']
|
|
31093
31247
|
}, {
|
|
31094
|
-
field: '
|
|
31095
|
-
|
|
31096
|
-
|
|
31248
|
+
field: 'translatedComment',
|
|
31249
|
+
cellDataType: 'withPlaceholder',
|
|
31250
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translatedComment',
|
|
31251
|
+
customParams: {
|
|
31252
|
+
placeHolderField: 'origComment',
|
|
31253
|
+
combinedField: 'comment'
|
|
31254
|
+
},
|
|
31255
|
+
additionalFields: ['origComment', 'comment']
|
|
31256
|
+
}, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31257
|
+
placeHolderField: 'origCatalogName',
|
|
31258
|
+
combinedField: 'catalogName'
|
|
31259
|
+
}, ['origCatalogName', 'catalogName']), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
|
|
31260
|
+
placeHolderField: 'origCatalogInfo',
|
|
31261
|
+
combinedField: 'catalogInfo'
|
|
31262
|
+
}, ['origCatalogInfo', 'catalogInfo']), {
|
|
31263
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
|
|
31264
|
+
field: 'translatedContactPersonNo1',
|
|
31097
31265
|
cellDataType: 'withPlaceholder',
|
|
31098
31266
|
customParams: {
|
|
31099
|
-
placeHolderField: '
|
|
31100
|
-
combinedField: '
|
|
31267
|
+
placeHolderField: 'origContactPersonNo1',
|
|
31268
|
+
combinedField: 'contactPersonNo1'
|
|
31101
31269
|
},
|
|
31102
|
-
additionalFields: ['
|
|
31270
|
+
additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
|
|
31103
31271
|
}, {
|
|
31104
|
-
|
|
31105
|
-
|
|
31106
|
-
isDictionary: true,
|
|
31272
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
|
|
31273
|
+
field: 'translatedContactRole1',
|
|
31107
31274
|
cellDataType: 'withPlaceholder',
|
|
31108
31275
|
customParams: {
|
|
31109
|
-
placeHolderField: '
|
|
31110
|
-
combinedField: '
|
|
31276
|
+
placeHolderField: 'origContactRole1',
|
|
31277
|
+
combinedField: 'contactRole1'
|
|
31111
31278
|
},
|
|
31112
|
-
additionalFields: ['
|
|
31279
|
+
additionalFields: ['origContactRole1', 'contactRole1']
|
|
31113
31280
|
}, {
|
|
31114
|
-
|
|
31115
|
-
|
|
31116
|
-
isDictionary: true,
|
|
31281
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
|
|
31282
|
+
field: 'translatedContactName1',
|
|
31117
31283
|
cellDataType: 'withPlaceholder',
|
|
31118
31284
|
customParams: {
|
|
31119
|
-
placeHolderField: '
|
|
31120
|
-
combinedField: '
|
|
31285
|
+
placeHolderField: 'origContactName1',
|
|
31286
|
+
combinedField: 'contactName1'
|
|
31121
31287
|
},
|
|
31122
|
-
additionalFields: ['
|
|
31123
|
-
}
|
|
31124
|
-
|
|
31125
|
-
|
|
31126
|
-
|
|
31127
|
-
var config$1 = {
|
|
31128
|
-
colDef: [{
|
|
31129
|
-
headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
|
|
31130
|
-
field: 'typeNo',
|
|
31131
|
-
required: true,
|
|
31132
|
-
editable: false,
|
|
31133
|
-
pinned: 'left'
|
|
31134
|
-
}, {
|
|
31135
|
-
headerName: 'backoffice.idmEnricher.renaming.label.shortText',
|
|
31136
|
-
marryChildren: true,
|
|
31137
|
-
children: [{
|
|
31138
|
-
field: 'translatedShortText.DE',
|
|
31139
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31140
|
-
isDictionary: true,
|
|
31288
|
+
additionalFields: ['origContactName1', 'contactName1']
|
|
31289
|
+
}, {
|
|
31290
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
|
|
31291
|
+
field: 'translatedFirstName1',
|
|
31141
31292
|
cellDataType: 'withPlaceholder',
|
|
31142
31293
|
customParams: {
|
|
31143
|
-
placeHolderField: '
|
|
31144
|
-
combinedField: '
|
|
31294
|
+
placeHolderField: 'origFirstName1',
|
|
31295
|
+
combinedField: 'firstName1'
|
|
31145
31296
|
},
|
|
31146
|
-
additionalFields: ['
|
|
31147
|
-
pinned: 'left'
|
|
31297
|
+
additionalFields: ['origFirstName1', 'firstName1']
|
|
31148
31298
|
}, {
|
|
31149
|
-
|
|
31150
|
-
|
|
31151
|
-
isDictionary: true,
|
|
31299
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
|
|
31300
|
+
field: 'translatedFormOfAddress1',
|
|
31152
31301
|
cellDataType: 'withPlaceholder',
|
|
31302
|
+
type: ['withPlaceholderEnum'],
|
|
31153
31303
|
customParams: {
|
|
31154
|
-
placeHolderField: '
|
|
31155
|
-
combinedField: '
|
|
31304
|
+
placeHolderField: 'origFormOfAddress1',
|
|
31305
|
+
combinedField: 'formOfAddress1',
|
|
31306
|
+
enumData: getFormOfAddressKey(t),
|
|
31307
|
+
displayLabelTemplate: '${name} (${value})'
|
|
31156
31308
|
},
|
|
31157
|
-
additionalFields: ['
|
|
31309
|
+
additionalFields: ['origFormOfAddress1', 'formOfAddress1']
|
|
31158
31310
|
}, {
|
|
31159
|
-
|
|
31160
|
-
|
|
31161
|
-
isDictionary: true,
|
|
31311
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
|
|
31312
|
+
field: 'translatedDepartment1',
|
|
31162
31313
|
cellDataType: 'withPlaceholder',
|
|
31163
31314
|
customParams: {
|
|
31164
|
-
placeHolderField: '
|
|
31165
|
-
combinedField: '
|
|
31315
|
+
placeHolderField: 'origDepartment1',
|
|
31316
|
+
combinedField: 'department1'
|
|
31166
31317
|
},
|
|
31167
|
-
additionalFields: ['
|
|
31318
|
+
additionalFields: ['origDepartment1', 'department1']
|
|
31168
31319
|
}, {
|
|
31169
|
-
|
|
31170
|
-
|
|
31171
|
-
isDictionary: true,
|
|
31320
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
|
|
31321
|
+
field: 'translatedTelephone1',
|
|
31172
31322
|
cellDataType: 'withPlaceholder',
|
|
31173
31323
|
customParams: {
|
|
31174
|
-
placeHolderField: '
|
|
31175
|
-
combinedField: '
|
|
31324
|
+
placeHolderField: 'origTelephone1',
|
|
31325
|
+
combinedField: 'telephone1'
|
|
31176
31326
|
},
|
|
31177
|
-
additionalFields: ['
|
|
31178
|
-
}
|
|
31179
|
-
|
|
31180
|
-
|
|
31181
|
-
marryChildren: true,
|
|
31182
|
-
children: [{
|
|
31183
|
-
field: 'translatedFullText.DE',
|
|
31184
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31185
|
-
isDictionary: true,
|
|
31327
|
+
additionalFields: ['origTelephone1', 'telephone1']
|
|
31328
|
+
}, {
|
|
31329
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
|
|
31330
|
+
field: 'translatedFax1',
|
|
31186
31331
|
cellDataType: 'withPlaceholder',
|
|
31187
31332
|
customParams: {
|
|
31188
|
-
placeHolderField: '
|
|
31189
|
-
combinedField: '
|
|
31333
|
+
placeHolderField: 'origFax1',
|
|
31334
|
+
combinedField: 'fax1'
|
|
31190
31335
|
},
|
|
31191
|
-
additionalFields: ['
|
|
31336
|
+
additionalFields: ['origFax1', 'fax1']
|
|
31192
31337
|
}, {
|
|
31193
|
-
field: '
|
|
31194
|
-
headerName: 'backoffice.idmEnricher.
|
|
31195
|
-
isDictionary: true,
|
|
31338
|
+
field: 'translatedEmail1',
|
|
31339
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
|
|
31196
31340
|
cellDataType: 'withPlaceholder',
|
|
31197
31341
|
customParams: {
|
|
31198
|
-
placeHolderField: '
|
|
31199
|
-
combinedField: '
|
|
31342
|
+
placeHolderField: 'origEmail1',
|
|
31343
|
+
combinedField: 'email1'
|
|
31200
31344
|
},
|
|
31201
|
-
additionalFields: ['
|
|
31345
|
+
additionalFields: ['origEmail1', 'email1']
|
|
31202
31346
|
}, {
|
|
31203
|
-
|
|
31204
|
-
|
|
31205
|
-
isDictionary: true,
|
|
31347
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
|
|
31348
|
+
field: 'translatedStreet1',
|
|
31206
31349
|
cellDataType: 'withPlaceholder',
|
|
31207
31350
|
customParams: {
|
|
31208
|
-
placeHolderField: '
|
|
31209
|
-
combinedField: '
|
|
31351
|
+
placeHolderField: 'origStreet1',
|
|
31352
|
+
combinedField: 'street1'
|
|
31210
31353
|
},
|
|
31211
|
-
additionalFields: ['
|
|
31354
|
+
additionalFields: ['origStreet1', 'street1']
|
|
31212
31355
|
}, {
|
|
31213
|
-
|
|
31214
|
-
|
|
31215
|
-
isDictionary: true,
|
|
31356
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
|
|
31357
|
+
field: 'translatedZipCodeStreet1',
|
|
31216
31358
|
cellDataType: 'withPlaceholder',
|
|
31217
31359
|
customParams: {
|
|
31218
|
-
placeHolderField: '
|
|
31219
|
-
combinedField: '
|
|
31360
|
+
placeHolderField: 'origZipCodeStreet1',
|
|
31361
|
+
combinedField: 'zipCodeStreet1'
|
|
31220
31362
|
},
|
|
31221
|
-
additionalFields: ['
|
|
31222
|
-
}
|
|
31223
|
-
|
|
31224
|
-
|
|
31225
|
-
marryChildren: true,
|
|
31226
|
-
children: [{
|
|
31227
|
-
field: 'translatedPlanningAdvice.DE',
|
|
31228
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31229
|
-
isDictionary: true,
|
|
31363
|
+
additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
|
|
31364
|
+
}, {
|
|
31365
|
+
field: 'translatedCity1',
|
|
31366
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
|
|
31230
31367
|
cellDataType: 'withPlaceholder',
|
|
31231
31368
|
customParams: {
|
|
31232
|
-
placeHolderField: '
|
|
31233
|
-
combinedField: '
|
|
31369
|
+
placeHolderField: 'origCity1',
|
|
31370
|
+
combinedField: 'city1'
|
|
31234
31371
|
},
|
|
31235
|
-
additionalFields: ['
|
|
31372
|
+
additionalFields: ['origCity1', 'city1']
|
|
31236
31373
|
}, {
|
|
31237
|
-
field: '
|
|
31238
|
-
headerName: 'backoffice.idmEnricher.
|
|
31239
|
-
isDictionary: true,
|
|
31374
|
+
field: 'translatedIsoCountryId1',
|
|
31375
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
|
|
31240
31376
|
cellDataType: 'withPlaceholder',
|
|
31377
|
+
type: ['withPlaceholderEnum'],
|
|
31241
31378
|
customParams: {
|
|
31242
|
-
placeHolderField: '
|
|
31243
|
-
combinedField: '
|
|
31379
|
+
placeHolderField: 'origIsoCountryId1',
|
|
31380
|
+
combinedField: 'isoCountryId1',
|
|
31381
|
+
enumData: getCountryKey(t)
|
|
31244
31382
|
},
|
|
31245
|
-
additionalFields: ['
|
|
31383
|
+
additionalFields: ['origIsoCountryId1', 'isoCountryId1']
|
|
31246
31384
|
}, {
|
|
31247
|
-
field: '
|
|
31248
|
-
headerName: 'backoffice.idmEnricher.
|
|
31249
|
-
isDictionary: true,
|
|
31385
|
+
field: 'translatedContactPersonNo2',
|
|
31386
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
|
|
31250
31387
|
cellDataType: 'withPlaceholder',
|
|
31251
31388
|
customParams: {
|
|
31252
|
-
placeHolderField: '
|
|
31253
|
-
combinedField: '
|
|
31389
|
+
placeHolderField: 'origContactPersonNo2',
|
|
31390
|
+
combinedField: 'contactPersonNo2'
|
|
31254
31391
|
},
|
|
31255
|
-
additionalFields: ['
|
|
31392
|
+
additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
|
|
31256
31393
|
}, {
|
|
31257
|
-
|
|
31258
|
-
|
|
31259
|
-
isDictionary: true,
|
|
31394
|
+
headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
|
|
31395
|
+
field: 'translatedContactRole2',
|
|
31260
31396
|
cellDataType: 'withPlaceholder',
|
|
31261
31397
|
customParams: {
|
|
31262
|
-
placeHolderField: '
|
|
31263
|
-
combinedField: '
|
|
31398
|
+
placeHolderField: 'origContactRole2',
|
|
31399
|
+
combinedField: 'contactRole2'
|
|
31264
31400
|
},
|
|
31265
|
-
additionalFields: ['
|
|
31266
|
-
}
|
|
31267
|
-
|
|
31268
|
-
|
|
31269
|
-
field: 'translatedSalesNumber',
|
|
31270
|
-
cellDataType: 'withPlaceholder',
|
|
31271
|
-
customParams: {
|
|
31272
|
-
placeHolderField: 'origSalesNumber',
|
|
31273
|
-
combinedField: 'salesNumber'
|
|
31274
|
-
},
|
|
31275
|
-
additionalFields: ['origSalesNumber', 'salesNumber']
|
|
31276
|
-
}, {
|
|
31277
|
-
field: 'sequenceNo',
|
|
31278
|
-
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
31279
|
-
editable: false,
|
|
31280
|
-
cellDataType: 'number'
|
|
31281
|
-
}, {
|
|
31282
|
-
headerName: 'backoffice.idmEnricher.renaming.label.edpnummer',
|
|
31283
|
-
field: 'translatedEdpNumber',
|
|
31284
|
-
cellDataType: 'withPlaceholder',
|
|
31285
|
-
customParams: {
|
|
31286
|
-
placeHolderField: 'origEdpNumber',
|
|
31287
|
-
combinedField: 'edpNumber'
|
|
31288
|
-
},
|
|
31289
|
-
additionalFields: ['origEdpNumber', 'edpNumber']
|
|
31290
|
-
}, {
|
|
31291
|
-
headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
|
|
31292
|
-
field: 'translatedEanNumber',
|
|
31293
|
-
cellDataType: 'withPlaceholder',
|
|
31294
|
-
customParams: {
|
|
31295
|
-
placeHolderField: 'origEanNumber',
|
|
31296
|
-
combinedField: 'eanNumber'
|
|
31297
|
-
},
|
|
31298
|
-
additionalFields: ['origEanNumber', 'eanNumber']
|
|
31299
|
-
}]
|
|
31300
|
-
};
|
|
31301
|
-
|
|
31302
|
-
var config = {
|
|
31303
|
-
colDef: [{
|
|
31304
|
-
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
|
31305
|
-
field: 'optionKey',
|
|
31306
|
-
required: true,
|
|
31307
|
-
editable: false,
|
|
31308
|
-
pinned: 'left'
|
|
31309
|
-
}, {
|
|
31310
|
-
headerName: 'backoffice.idmEnricher.renaming.label.optionText',
|
|
31311
|
-
marryChildren: true,
|
|
31312
|
-
children: [{
|
|
31313
|
-
field: 'translatedOptionText.DE',
|
|
31314
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31315
|
-
isDictionary: true,
|
|
31401
|
+
additionalFields: ['origContactRole2', 'contactRole2']
|
|
31402
|
+
}, {
|
|
31403
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
|
|
31404
|
+
field: 'translatedContactName2',
|
|
31316
31405
|
cellDataType: 'withPlaceholder',
|
|
31317
31406
|
customParams: {
|
|
31318
|
-
placeHolderField: '
|
|
31319
|
-
combinedField: '
|
|
31320
|
-
maxLength: 60
|
|
31407
|
+
placeHolderField: 'origContactName2',
|
|
31408
|
+
combinedField: 'contactName2'
|
|
31321
31409
|
},
|
|
31322
|
-
additionalFields: ['
|
|
31323
|
-
pinned: 'left'
|
|
31410
|
+
additionalFields: ['origContactName2', 'contactName2']
|
|
31324
31411
|
}, {
|
|
31325
|
-
|
|
31326
|
-
|
|
31327
|
-
isDictionary: true,
|
|
31412
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
|
|
31413
|
+
field: 'translatedFirstName2',
|
|
31328
31414
|
cellDataType: 'withPlaceholder',
|
|
31329
31415
|
customParams: {
|
|
31330
|
-
placeHolderField: '
|
|
31331
|
-
combinedField: '
|
|
31332
|
-
maxLength: 60
|
|
31416
|
+
placeHolderField: 'origFirstName2',
|
|
31417
|
+
combinedField: 'firstName2'
|
|
31333
31418
|
},
|
|
31334
|
-
additionalFields: ['
|
|
31419
|
+
additionalFields: ['origFirstName2', 'firstName2']
|
|
31335
31420
|
}, {
|
|
31336
|
-
|
|
31337
|
-
|
|
31338
|
-
isDictionary: true,
|
|
31421
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
|
|
31422
|
+
field: 'translatedFormOfAddress2',
|
|
31339
31423
|
cellDataType: 'withPlaceholder',
|
|
31424
|
+
type: ['withPlaceholderEnum'],
|
|
31340
31425
|
customParams: {
|
|
31341
|
-
placeHolderField: '
|
|
31342
|
-
combinedField: '
|
|
31343
|
-
|
|
31426
|
+
placeHolderField: 'origFormOfAddress2',
|
|
31427
|
+
combinedField: 'formOfAddress2',
|
|
31428
|
+
enumData: getFormOfAddressKey(t),
|
|
31429
|
+
displayLabelTemplate: '${name} (${value})'
|
|
31344
31430
|
},
|
|
31345
|
-
additionalFields: ['
|
|
31431
|
+
additionalFields: ['origFormOfAddress2', 'formOfAddress2']
|
|
31346
31432
|
}, {
|
|
31347
|
-
|
|
31348
|
-
|
|
31349
|
-
isDictionary: true,
|
|
31433
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
|
|
31434
|
+
field: 'translatedDepartment2',
|
|
31350
31435
|
cellDataType: 'withPlaceholder',
|
|
31351
31436
|
customParams: {
|
|
31352
|
-
placeHolderField: '
|
|
31353
|
-
combinedField: '
|
|
31354
|
-
maxLength: 60
|
|
31437
|
+
placeHolderField: 'origDepartment2',
|
|
31438
|
+
combinedField: 'department2'
|
|
31355
31439
|
},
|
|
31356
|
-
additionalFields: ['
|
|
31357
|
-
}
|
|
31358
|
-
|
|
31359
|
-
|
|
31360
|
-
marryChildren: true,
|
|
31361
|
-
children: [{
|
|
31362
|
-
field: 'translatedOptionCommentText.DE',
|
|
31363
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
31364
|
-
isDictionary: true,
|
|
31440
|
+
additionalFields: ['origDepartment2', 'department2']
|
|
31441
|
+
}, {
|
|
31442
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
|
|
31443
|
+
field: 'translatedTelephone2',
|
|
31365
31444
|
cellDataType: 'withPlaceholder',
|
|
31366
31445
|
customParams: {
|
|
31367
|
-
placeHolderField: '
|
|
31368
|
-
combinedField: '
|
|
31446
|
+
placeHolderField: 'origTelephone2',
|
|
31447
|
+
combinedField: 'telephone2'
|
|
31369
31448
|
},
|
|
31370
|
-
additionalFields: ['
|
|
31449
|
+
additionalFields: ['origTelephone2', 'telephone2']
|
|
31371
31450
|
}, {
|
|
31372
|
-
|
|
31373
|
-
|
|
31374
|
-
isDictionary: true,
|
|
31451
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
|
|
31452
|
+
field: 'translatedFax2',
|
|
31375
31453
|
cellDataType: 'withPlaceholder',
|
|
31376
31454
|
customParams: {
|
|
31377
|
-
placeHolderField: '
|
|
31378
|
-
combinedField: '
|
|
31455
|
+
placeHolderField: 'origFax2',
|
|
31456
|
+
combinedField: 'fax2'
|
|
31379
31457
|
},
|
|
31380
|
-
additionalFields: ['
|
|
31458
|
+
additionalFields: ['origFax2', 'fax2']
|
|
31381
31459
|
}, {
|
|
31382
|
-
|
|
31383
|
-
|
|
31384
|
-
isDictionary: true,
|
|
31460
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
|
|
31461
|
+
field: 'translatedEmail2',
|
|
31385
31462
|
cellDataType: 'withPlaceholder',
|
|
31386
31463
|
customParams: {
|
|
31387
|
-
placeHolderField: '
|
|
31388
|
-
combinedField: '
|
|
31464
|
+
placeHolderField: 'origEmail2',
|
|
31465
|
+
combinedField: 'email2'
|
|
31389
31466
|
},
|
|
31390
|
-
additionalFields: ['
|
|
31467
|
+
additionalFields: ['origEmail2', 'email2']
|
|
31391
31468
|
}, {
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31469
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
|
|
31470
|
+
field: 'translatedStreet2',
|
|
31471
|
+
cellDataType: 'withPlaceholder',
|
|
31472
|
+
customParams: {
|
|
31473
|
+
placeHolderField: 'origStreet2',
|
|
31474
|
+
combinedField: 'street2'
|
|
31475
|
+
},
|
|
31476
|
+
additionalFields: ['origStreet2', 'street2']
|
|
31477
|
+
}, {
|
|
31478
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
|
|
31479
|
+
field: 'translatedZipCodeStreet2',
|
|
31480
|
+
cellDataType: 'withPlaceholder',
|
|
31481
|
+
customParams: {
|
|
31482
|
+
placeHolderField: 'origZipCodeStreet2',
|
|
31483
|
+
combinedField: 'zipCodeStreet2'
|
|
31484
|
+
},
|
|
31485
|
+
additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
|
|
31486
|
+
}, {
|
|
31487
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
|
|
31488
|
+
field: 'translatedCity2',
|
|
31489
|
+
cellDataType: 'withPlaceholder',
|
|
31490
|
+
customParams: {
|
|
31491
|
+
placeHolderField: 'origCity2',
|
|
31492
|
+
combinedField: 'city2'
|
|
31493
|
+
},
|
|
31494
|
+
additionalFields: ['origCity2', 'city2']
|
|
31495
|
+
}, {
|
|
31496
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
|
|
31497
|
+
field: 'translatedIsoCountryId2',
|
|
31498
|
+
editable: true,
|
|
31499
|
+
cellDataType: 'withPlaceholder',
|
|
31500
|
+
type: ['withPlaceholderEnum'],
|
|
31501
|
+
customParams: {
|
|
31502
|
+
placeHolderField: 'origIsoCountryId2',
|
|
31503
|
+
combinedField: 'isoCountryId2',
|
|
31504
|
+
enumData: getCountryKey(t)
|
|
31505
|
+
},
|
|
31506
|
+
additionalFields: ['origIsoCountryId2', 'isoCountryId2']
|
|
31507
|
+
}, {
|
|
31508
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
|
|
31509
|
+
field: 'translatedManufactureName1',
|
|
31510
|
+
cellDataType: 'withPlaceholder',
|
|
31511
|
+
customParams: {
|
|
31512
|
+
placeHolderField: 'origManufactureName1',
|
|
31513
|
+
combinedField: 'manufactureName1'
|
|
31514
|
+
},
|
|
31515
|
+
additionalFields: ['origManufactureName1', 'manufactureName1']
|
|
31516
|
+
}, {
|
|
31517
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
|
|
31518
|
+
field: 'translatedManufactureName2',
|
|
31519
|
+
cellDataType: 'withPlaceholder',
|
|
31520
|
+
customParams: {
|
|
31521
|
+
placeHolderField: 'origManufactureName2',
|
|
31522
|
+
combinedField: 'manufactureName2'
|
|
31523
|
+
},
|
|
31524
|
+
additionalFields: ['origManufactureName2', 'manufactureName2']
|
|
31525
|
+
}, {
|
|
31526
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
|
|
31527
|
+
field: 'translatedEmail',
|
|
31528
|
+
cellDataType: 'withPlaceholder',
|
|
31529
|
+
customParams: {
|
|
31530
|
+
placeHolderField: 'origEmail',
|
|
31531
|
+
combinedField: 'email'
|
|
31532
|
+
},
|
|
31533
|
+
additionalFields: ['origEmail', 'email']
|
|
31534
|
+
}, {
|
|
31535
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
|
|
31536
|
+
field: 'translatedInternetAddress',
|
|
31537
|
+
cellDataType: 'withPlaceholder',
|
|
31538
|
+
customParams: {
|
|
31539
|
+
placeHolderField: 'origInternetAddress',
|
|
31540
|
+
combinedField: 'internetAddress'
|
|
31541
|
+
},
|
|
31542
|
+
additionalFields: ['origInternetAddress', 'internetAddress']
|
|
31543
|
+
}, {
|
|
31544
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
|
|
31545
|
+
field: 'translatedStreet',
|
|
31546
|
+
cellDataType: 'withPlaceholder',
|
|
31547
|
+
customParams: {
|
|
31548
|
+
placeHolderField: 'origStreet',
|
|
31549
|
+
combinedField: 'street'
|
|
31550
|
+
},
|
|
31551
|
+
additionalFields: ['origStreet', 'street']
|
|
31552
|
+
}, {
|
|
31553
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
|
|
31554
|
+
field: 'translatedZipCodeStreet',
|
|
31555
|
+
cellDataType: 'withPlaceholder',
|
|
31556
|
+
customParams: {
|
|
31557
|
+
placeHolderField: 'origZipCodeStreet',
|
|
31558
|
+
combinedField: 'zipCodeStreet'
|
|
31559
|
+
},
|
|
31560
|
+
additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
|
|
31561
|
+
}, {
|
|
31562
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
|
|
31563
|
+
field: 'translatedCity',
|
|
31564
|
+
cellDataType: 'withPlaceholder',
|
|
31565
|
+
customParams: {
|
|
31566
|
+
placeHolderField: 'origCity',
|
|
31567
|
+
combinedField: 'city'
|
|
31568
|
+
},
|
|
31569
|
+
additionalFields: ['origCity', 'city']
|
|
31570
|
+
}, {
|
|
31571
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
|
|
31572
|
+
field: 'translatedContactSupplierIsoCountryId',
|
|
31573
|
+
editable: true,
|
|
31574
|
+
cellDataType: 'withPlaceholder',
|
|
31575
|
+
type: ['withPlaceholderEnum'],
|
|
31576
|
+
customParams: {
|
|
31577
|
+
placeHolderField: 'origContactSupplierIsoCountryId',
|
|
31578
|
+
combinedField: 'contactSupplierIsoCountryId',
|
|
31579
|
+
enumData: getCountryKey(t)
|
|
31580
|
+
},
|
|
31581
|
+
additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
|
|
31582
|
+
}, {
|
|
31583
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
|
|
31584
|
+
field: 'translatedZipCodePostBox',
|
|
31585
|
+
cellDataType: 'withPlaceholder',
|
|
31586
|
+
customParams: {
|
|
31587
|
+
placeHolderField: 'origZipCodePostBox',
|
|
31588
|
+
combinedField: 'zipCodePostBox'
|
|
31589
|
+
},
|
|
31590
|
+
additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
|
|
31591
|
+
}, {
|
|
31592
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
|
|
31593
|
+
field: 'translatedPostBox',
|
|
31395
31594
|
cellDataType: 'withPlaceholder',
|
|
31396
31595
|
customParams: {
|
|
31397
|
-
placeHolderField: '
|
|
31398
|
-
combinedField: '
|
|
31596
|
+
placeHolderField: 'origPostBox',
|
|
31597
|
+
combinedField: 'postBox'
|
|
31399
31598
|
},
|
|
31400
|
-
additionalFields: ['
|
|
31599
|
+
additionalFields: ['origPostBox', 'postBox']
|
|
31600
|
+
}, {
|
|
31601
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
|
|
31602
|
+
field: 'translatedTelephoneSwitchboard',
|
|
31603
|
+
cellDataType: 'withPlaceholder',
|
|
31604
|
+
customParams: {
|
|
31605
|
+
placeHolderField: 'origTelephoneSwitchboard',
|
|
31606
|
+
combinedField: 'telephoneSwitchboard'
|
|
31607
|
+
},
|
|
31608
|
+
additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
|
|
31609
|
+
}, {
|
|
31610
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
|
|
31611
|
+
field: 'translatedFaxSwitchboard',
|
|
31612
|
+
cellDataType: 'withPlaceholder',
|
|
31613
|
+
customParams: {
|
|
31614
|
+
placeHolderField: 'origFaxSwitchboard',
|
|
31615
|
+
combinedField: 'faxSwitchboard'
|
|
31616
|
+
},
|
|
31617
|
+
additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
|
|
31401
31618
|
}]
|
|
31402
|
-
}
|
|
31619
|
+
};
|
|
31620
|
+
};
|
|
31621
|
+
|
|
31622
|
+
var getConfig$5 = function getConfig(isoLanguageIds) {
|
|
31623
|
+
return {
|
|
31624
|
+
colDef: [{
|
|
31625
|
+
headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
|
|
31626
|
+
field: 'detailInfoNo',
|
|
31627
|
+
editable: false
|
|
31628
|
+
}, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31629
|
+
placeHolderField: 'origExternalName',
|
|
31630
|
+
combinedField: 'externalName'
|
|
31631
|
+
}, ['origExternalName', 'externalName']), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31632
|
+
placeHolderField: 'origInternalName',
|
|
31633
|
+
combinedField: 'internalName'
|
|
31634
|
+
}, ['origInternalName', 'internalName']), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
|
|
31635
|
+
placeHolderField: 'origToolTip',
|
|
31636
|
+
combinedField: 'toolTip'
|
|
31637
|
+
}, ['origToolTip', 'toolTip'])]
|
|
31638
|
+
};
|
|
31639
|
+
};
|
|
31640
|
+
|
|
31641
|
+
var getConfig$4 = function getConfig(isoLanguageIds) {
|
|
31642
|
+
return {
|
|
31643
|
+
colDef: [{
|
|
31644
|
+
headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
|
|
31645
|
+
field: 'featureNo',
|
|
31646
|
+
required: true,
|
|
31647
|
+
editable: false,
|
|
31648
|
+
pinned: 'left'
|
|
31649
|
+
}, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, true, 'withPlaceholder', {
|
|
31650
|
+
placeHolderField: 'origFeatureText',
|
|
31651
|
+
combinedField: 'featureText'
|
|
31652
|
+
}, ['origFeatureText', 'featureText'])]
|
|
31653
|
+
};
|
|
31654
|
+
};
|
|
31655
|
+
|
|
31656
|
+
var getConfig$3 = function getConfig(isoLanguageIds) {
|
|
31657
|
+
return {
|
|
31658
|
+
colDef: [{
|
|
31659
|
+
headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
|
|
31660
|
+
field: 'typeNo',
|
|
31661
|
+
required: true,
|
|
31662
|
+
editable: false,
|
|
31663
|
+
pinned: 'left'
|
|
31664
|
+
}, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31665
|
+
placeHolderField: 'origShortText',
|
|
31666
|
+
combinedField: 'shortText'
|
|
31667
|
+
}, ['origShortText', 'shortText']), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31668
|
+
placeHolderField: 'origFullText',
|
|
31669
|
+
combinedField: 'fullText'
|
|
31670
|
+
}, ['origFullText', 'fullText']), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, true, 'withPlaceholder', {
|
|
31671
|
+
placeHolderField: 'origPlanningAdvice',
|
|
31672
|
+
combinedField: 'planningAdvice'
|
|
31673
|
+
}, ['origPlanningAdvice', 'planningAdvice']), {
|
|
31674
|
+
headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
|
|
31675
|
+
field: 'translatedSalesNumber',
|
|
31676
|
+
cellDataType: 'withPlaceholder',
|
|
31677
|
+
customParams: {
|
|
31678
|
+
placeHolderField: 'origSalesNumber',
|
|
31679
|
+
combinedField: 'salesNumber'
|
|
31680
|
+
},
|
|
31681
|
+
additionalFields: ['origSalesNumber', 'salesNumber']
|
|
31682
|
+
}, {
|
|
31683
|
+
field: 'sequenceNo',
|
|
31684
|
+
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
31685
|
+
editable: false,
|
|
31686
|
+
cellDataType: 'number'
|
|
31687
|
+
}, {
|
|
31688
|
+
headerName: 'backoffice.idmEnricher.renaming.label.edpnummer',
|
|
31689
|
+
field: 'translatedEdpNumber',
|
|
31690
|
+
cellDataType: 'withPlaceholder',
|
|
31691
|
+
customParams: {
|
|
31692
|
+
placeHolderField: 'origEdpNumber',
|
|
31693
|
+
combinedField: 'edpNumber'
|
|
31694
|
+
},
|
|
31695
|
+
additionalFields: ['origEdpNumber', 'edpNumber']
|
|
31696
|
+
}, {
|
|
31697
|
+
headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
|
|
31698
|
+
field: 'translatedEanNumber',
|
|
31699
|
+
cellDataType: 'withPlaceholder',
|
|
31700
|
+
customParams: {
|
|
31701
|
+
placeHolderField: 'origEanNumber',
|
|
31702
|
+
combinedField: 'eanNumber'
|
|
31703
|
+
},
|
|
31704
|
+
additionalFields: ['origEanNumber', 'eanNumber']
|
|
31705
|
+
}]
|
|
31706
|
+
};
|
|
31707
|
+
};
|
|
31708
|
+
|
|
31709
|
+
var getConfig$2 = function getConfig(isoLanguageIds) {
|
|
31710
|
+
return {
|
|
31711
|
+
colDef: [{
|
|
31712
|
+
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
|
31713
|
+
field: 'optionKey',
|
|
31714
|
+
required: true,
|
|
31715
|
+
editable: false,
|
|
31716
|
+
pinned: 'left'
|
|
31717
|
+
}, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31718
|
+
placeHolderField: 'origOptionText',
|
|
31719
|
+
combinedField: 'optionText'
|
|
31720
|
+
}, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, true, 'withPlaceholder', {
|
|
31721
|
+
placeHolderField: 'origOptionCommentText',
|
|
31722
|
+
combinedField: 'optionCommentText'
|
|
31723
|
+
}, ['origOptionCommentText', 'optionCommentText'])]
|
|
31724
|
+
};
|
|
31725
|
+
};
|
|
31726
|
+
|
|
31727
|
+
var getConfig$1 = function getConfig(isoLanguageIds) {
|
|
31728
|
+
return {
|
|
31729
|
+
colDef: [{
|
|
31730
|
+
headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
|
|
31731
|
+
field: 'serieNo',
|
|
31732
|
+
cellDataType: 'number',
|
|
31733
|
+
required: true,
|
|
31734
|
+
editable: false
|
|
31735
|
+
}, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
|
|
31736
|
+
placeHolderField: 'origSeriesName',
|
|
31737
|
+
combinedField: 'seriesName'
|
|
31738
|
+
}, ['origSeriesName', 'seriesName']), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
|
|
31739
|
+
placeHolderField: 'origSeriesFullText',
|
|
31740
|
+
combinedField: 'seriesFullText'
|
|
31741
|
+
}, ['origSeriesFullText', 'seriesFullText'])]
|
|
31742
|
+
};
|
|
31403
31743
|
};
|
|
31404
31744
|
|
|
31405
31745
|
function SeriesSelector$1(_ref) {
|
|
@@ -31469,76 +31809,57 @@ function FeatureSelector$1(_ref) {
|
|
|
31469
31809
|
}, packageId);
|
|
31470
31810
|
}
|
|
31471
31811
|
|
|
31472
|
-
function
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
// data.map((country: any) => {
|
|
31485
|
-
// const { code, ...translations } = country;
|
|
31486
|
-
// return { value: code, label: translations };
|
|
31487
|
-
// }),
|
|
31488
|
-
// );
|
|
31489
|
-
// })();
|
|
31490
|
-
// }, []);
|
|
31491
|
-
|
|
31492
|
-
var config = useMemo(function () {
|
|
31493
|
-
var config = configuration;
|
|
31494
|
-
|
|
31495
|
-
//TODO: only needed for catalog table, witch is currently not in use, not relevant for CL-Editor
|
|
31496
|
-
// config.colDef = config.colDef.map((col: any) => {
|
|
31497
|
-
// if (col.headerName) col.headerName = t(col.headerName);
|
|
31498
|
-
|
|
31499
|
-
// if ('field' in col && ['isoCountryId2', 'isoCountryId1', 'contactSupplierIsoCountryId'].includes(col.field ?? '')) {
|
|
31500
|
-
// col.customParams.options = countryCodes;
|
|
31501
|
-
// }
|
|
31502
|
-
// return col;
|
|
31503
|
-
// });
|
|
31504
|
-
return config;
|
|
31505
|
-
}, [countryCodes]);
|
|
31506
|
-
return {
|
|
31507
|
-
configuration: config,
|
|
31508
|
-
countryCodesLoaded: countryCodes.length > 0
|
|
31509
|
-
};
|
|
31510
|
-
}
|
|
31511
|
-
|
|
31812
|
+
var RenamingCatalog = function RenamingCatalog() {
|
|
31813
|
+
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31814
|
+
type: "catalogs",
|
|
31815
|
+
getConfig: getConfig$6
|
|
31816
|
+
});
|
|
31817
|
+
};
|
|
31818
|
+
var RenamingDetailInfo = function RenamingDetailInfo() {
|
|
31819
|
+
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31820
|
+
type: "detailInfos",
|
|
31821
|
+
getConfig: getConfig$5
|
|
31822
|
+
});
|
|
31823
|
+
};
|
|
31512
31824
|
var RenamingFeature = function RenamingFeature() {
|
|
31513
31825
|
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31514
31826
|
type: "features",
|
|
31515
|
-
|
|
31827
|
+
getConfig: getConfig$4
|
|
31516
31828
|
});
|
|
31517
31829
|
};
|
|
31518
31830
|
var RenamingItem = function RenamingItem() {
|
|
31519
31831
|
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31520
31832
|
type: "items",
|
|
31521
|
-
|
|
31833
|
+
getConfig: getConfig$3
|
|
31522
31834
|
});
|
|
31523
31835
|
};
|
|
31524
31836
|
var RenamingOption = function RenamingOption() {
|
|
31525
31837
|
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31526
31838
|
type: "options",
|
|
31527
|
-
|
|
31839
|
+
getConfig: getConfig$2
|
|
31840
|
+
});
|
|
31841
|
+
};
|
|
31842
|
+
var RenamingSerie = function RenamingSerie() {
|
|
31843
|
+
return /*#__PURE__*/jsx(RenamingTable, {
|
|
31844
|
+
type: "series",
|
|
31845
|
+
getConfig: getConfig$1
|
|
31528
31846
|
});
|
|
31529
31847
|
};
|
|
31530
31848
|
var RenamingTable = function RenamingTable(_ref) {
|
|
31531
31849
|
var type = _ref.type,
|
|
31532
|
-
|
|
31850
|
+
getConfig = _ref.getConfig;
|
|
31533
31851
|
var _useTranslation = useTranslation(),
|
|
31534
|
-
t = _useTranslation.t
|
|
31852
|
+
t = _useTranslation.t,
|
|
31853
|
+
i18n = _useTranslation.i18n;
|
|
31535
31854
|
var _useModule = useModule$1(['renaming', type]),
|
|
31536
31855
|
packageId = _useModule.packageId,
|
|
31537
31856
|
organizationId = _useModule.organizationId,
|
|
31538
31857
|
updateNavigation = _useModule.updateNavigation,
|
|
31539
|
-
apiConfig = _useModule.apiConfig
|
|
31540
|
-
|
|
31541
|
-
|
|
31858
|
+
apiConfig = _useModule.apiConfig,
|
|
31859
|
+
selectedPackage = _useModule.selectedPackage;
|
|
31860
|
+
var baseConfiguration = useMemo(function () {
|
|
31861
|
+
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
|
31862
|
+
}, [selectedPackage, i18n.language]);
|
|
31542
31863
|
var _React$useState = React.useState(),
|
|
31543
31864
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
31544
31865
|
selectedSerie = _React$useState2[0],
|
|
@@ -31552,18 +31873,33 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31552
31873
|
packageId: packageId
|
|
31553
31874
|
};
|
|
31554
31875
|
}, [packageId]);
|
|
31876
|
+
var prevPreFilter = useRef();
|
|
31555
31877
|
var preFilter = useMemo(function () {
|
|
31556
|
-
|
|
31557
|
-
|
|
31558
|
-
|
|
31559
|
-
|
|
31560
|
-
|
|
31561
|
-
|
|
31562
|
-
|
|
31563
|
-
|
|
31564
|
-
|
|
31565
|
-
|
|
31566
|
-
|
|
31878
|
+
if (type === 'options' && !selectedFeature) {
|
|
31879
|
+
return prevPreFilter.current;
|
|
31880
|
+
} else if (type === 'items' && selectedSerie) {
|
|
31881
|
+
var newFilter = {
|
|
31882
|
+
filterType: 'text',
|
|
31883
|
+
type: 'equals',
|
|
31884
|
+
colId: 'featureNo',
|
|
31885
|
+
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
|
31886
|
+
};
|
|
31887
|
+
prevPreFilter.current = newFilter;
|
|
31888
|
+
return newFilter;
|
|
31889
|
+
}
|
|
31890
|
+
if (type === 'items' && !selectedSerie) {
|
|
31891
|
+
return prevPreFilter.current;
|
|
31892
|
+
} else if (type === 'options' && selectedFeature) {
|
|
31893
|
+
var _newFilter = {
|
|
31894
|
+
filterType: 'text',
|
|
31895
|
+
type: 'equals',
|
|
31896
|
+
colId: 'featureNo',
|
|
31897
|
+
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
|
31898
|
+
};
|
|
31899
|
+
prevPreFilter.current = _newFilter;
|
|
31900
|
+
return _newFilter;
|
|
31901
|
+
}
|
|
31902
|
+
return undefined;
|
|
31567
31903
|
}, [type, selectedSerie, selectedFeature]);
|
|
31568
31904
|
var apiInterface = useMemo(function () {
|
|
31569
31905
|
return {
|
|
@@ -31595,8 +31931,8 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31595
31931
|
};
|
|
31596
31932
|
}, [apiInterface, baseConfiguration.colDef]);
|
|
31597
31933
|
var showTable = useMemo(function () {
|
|
31598
|
-
return !['items', 'options'].includes(type) || type === 'items' &&
|
|
31599
|
-
}, [type,
|
|
31934
|
+
return selectedPackage && (!['items', 'options'].includes(type) || type === 'items' && preFilter || type === 'options' && preFilter);
|
|
31935
|
+
}, [type, preFilter, selectedPackage]);
|
|
31600
31936
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
31601
31937
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
31602
31938
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -31606,9 +31942,9 @@ var RenamingTable = function RenamingTable(_ref) {
|
|
|
31606
31942
|
},
|
|
31607
31943
|
children: [/*#__PURE__*/jsx(PackageSelector, {
|
|
31608
31944
|
organizationId: organizationId,
|
|
31609
|
-
|
|
31610
|
-
setSelectedPackage: function setSelectedPackage(
|
|
31611
|
-
return updateNavigation(
|
|
31945
|
+
packageId: packageId,
|
|
31946
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
31947
|
+
return updateNavigation(packageId);
|
|
31612
31948
|
},
|
|
31613
31949
|
enricherService: apiConfig.enricherService
|
|
31614
31950
|
}), type === 'items' && /*#__PURE__*/jsx(SeriesSelector$1, {
|
|
@@ -31641,7 +31977,8 @@ function getConfig(t) {
|
|
|
31641
31977
|
colDef: [{
|
|
31642
31978
|
field: 'detailInfoNo',
|
|
31643
31979
|
headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
|
|
31644
|
-
editable: false
|
|
31980
|
+
editable: false,
|
|
31981
|
+
cellDataType: 'number'
|
|
31645
31982
|
}, {
|
|
31646
31983
|
headerName: 'backoffice.idmEnricher.exclusivity.label.classification',
|
|
31647
31984
|
field: 'classification',
|
|
@@ -31649,11 +31986,19 @@ function getConfig(t) {
|
|
|
31649
31986
|
}, {
|
|
31650
31987
|
headerName: 'backoffice.idmEnricher.exclusivity.label.infoType',
|
|
31651
31988
|
field: 'infoType',
|
|
31652
|
-
editable: false
|
|
31989
|
+
editable: false,
|
|
31990
|
+
cellDataType: 'enum',
|
|
31991
|
+
customParams: {
|
|
31992
|
+
enumData: getInfoTypeKey(t)
|
|
31993
|
+
}
|
|
31653
31994
|
}, {
|
|
31654
31995
|
headerName: 'backoffice.idmEnricher.exclusivity.label.layer',
|
|
31655
31996
|
field: 'layer',
|
|
31656
|
-
editable: false
|
|
31997
|
+
editable: false,
|
|
31998
|
+
cellDataType: 'enum',
|
|
31999
|
+
customParams: {
|
|
32000
|
+
enumData: getLayerIdKey(t)
|
|
32001
|
+
}
|
|
31657
32002
|
}, {
|
|
31658
32003
|
field: 'url',
|
|
31659
32004
|
headerName: 'backoffice.idmEnricher.exclusivity.label.url',
|
|
@@ -31665,7 +32010,11 @@ function getConfig(t) {
|
|
|
31665
32010
|
}, {
|
|
31666
32011
|
field: 'isoLanguageId',
|
|
31667
32012
|
headerName: 'backoffice.idmEnricher.exclusivity.label.isoLanguage',
|
|
31668
|
-
editable: false
|
|
32013
|
+
editable: false,
|
|
32014
|
+
cellDataType: 'enum',
|
|
32015
|
+
customParams: {
|
|
32016
|
+
enumData: getLanguageKey(t)
|
|
32017
|
+
}
|
|
31669
32018
|
}, {
|
|
31670
32019
|
field: 'mediaType',
|
|
31671
32020
|
headerName: 'backoffice.idmEnricher.exclusivity.label.mediaType',
|
|
@@ -31674,18 +32023,6 @@ function getConfig(t) {
|
|
|
31674
32023
|
field: 'functionType',
|
|
31675
32024
|
headerName: 'backoffice.idmEnricher.exclusivity.label.functionType',
|
|
31676
32025
|
editable: false
|
|
31677
|
-
}, {
|
|
31678
|
-
field: 'mediaItemId',
|
|
31679
|
-
headerName: 'backoffice.idmEnricher.exclusivity.label.mediaItemId',
|
|
31680
|
-
editable: false
|
|
31681
|
-
}, {
|
|
31682
|
-
field: 'mediaItemRefId',
|
|
31683
|
-
headerName: 'backoffice.idmEnricher.exclusivity.label.mediaItemRefId',
|
|
31684
|
-
editable: false
|
|
31685
|
-
}, {
|
|
31686
|
-
headerName: 'backoffice.idmEnricher.exclusivity.label.error',
|
|
31687
|
-
field: 'error',
|
|
31688
|
-
editable: false
|
|
31689
32026
|
}, {
|
|
31690
32027
|
field: 'externalName',
|
|
31691
32028
|
headerName: 'backoffice.idmEnricher.renaming.label.externalName',
|
|
@@ -31704,15 +32041,6 @@ function getConfig(t) {
|
|
|
31704
32041
|
editable: false,
|
|
31705
32042
|
cellDataType: 'translated',
|
|
31706
32043
|
isDictionary: true
|
|
31707
|
-
}, {
|
|
31708
|
-
field: 'catalogId',
|
|
31709
|
-
headerName: 'backoffice.idmEnricher.packages.label.catalogId',
|
|
31710
|
-
editable: false
|
|
31711
|
-
}, {
|
|
31712
|
-
field: 'organizationId',
|
|
31713
|
-
headerName: 'backoffice.idmEnricher.packages.label.organizationId',
|
|
31714
|
-
editable: false,
|
|
31715
|
-
defaultValue: '${organizationId}'
|
|
31716
32044
|
}]
|
|
31717
32045
|
},
|
|
31718
32046
|
feature: {
|
|
@@ -31792,7 +32120,8 @@ function getConfig(t) {
|
|
|
31792
32120
|
colDef: [{
|
|
31793
32121
|
field: 'serieNo',
|
|
31794
32122
|
headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
|
|
31795
|
-
editable: false
|
|
32123
|
+
editable: false,
|
|
32124
|
+
cellDataType: 'number'
|
|
31796
32125
|
}, {
|
|
31797
32126
|
field: 'seriesName',
|
|
31798
32127
|
headerName: 'backoffice.idmEnricher.renaming.label.serieName',
|
|
@@ -31805,15 +32134,6 @@ function getConfig(t) {
|
|
|
31805
32134
|
editable: false,
|
|
31806
32135
|
cellDataType: 'translated',
|
|
31807
32136
|
isDictionary: true
|
|
31808
|
-
}, {
|
|
31809
|
-
field: 'catalogId',
|
|
31810
|
-
headerName: 'backoffice.idmEnricher.packages.label.catalogId',
|
|
31811
|
-
editable: false
|
|
31812
|
-
}, {
|
|
31813
|
-
field: 'organizationId',
|
|
31814
|
-
headerName: 'backoffice.idmEnricher.packages.label.organizationId',
|
|
31815
|
-
editable: false,
|
|
31816
|
-
defaultValue: '${organizationId}'
|
|
31817
32137
|
}, {
|
|
31818
32138
|
field: 'sequenceNo',
|
|
31819
32139
|
headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
|
|
@@ -31826,11 +32146,11 @@ function getConfig(t) {
|
|
|
31826
32146
|
cellDataType: 'number'
|
|
31827
32147
|
}, {
|
|
31828
32148
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
|
31829
|
-
field: '
|
|
32149
|
+
field: 'validFromDate',
|
|
31830
32150
|
cellDataType: 'dateString',
|
|
31831
32151
|
editable: false
|
|
31832
32152
|
}, {
|
|
31833
|
-
field: '
|
|
32153
|
+
field: 'validUntilDate',
|
|
31834
32154
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validUntil',
|
|
31835
32155
|
cellDataType: 'dateString',
|
|
31836
32156
|
editable: false
|
|
@@ -32019,6 +32339,18 @@ function getConfig(t) {
|
|
|
32019
32339
|
};
|
|
32020
32340
|
}
|
|
32021
32341
|
|
|
32342
|
+
var ExclusivitySerie = function ExclusivitySerie() {
|
|
32343
|
+
var _useTranslation = useTranslation(),
|
|
32344
|
+
t = _useTranslation.t,
|
|
32345
|
+
i18n = _useTranslation.i18n;
|
|
32346
|
+
var config = useMemo(function () {
|
|
32347
|
+
return getConfig(t);
|
|
32348
|
+
}, [i18n.language]);
|
|
32349
|
+
return /*#__PURE__*/jsx(ExclusivityTable, {
|
|
32350
|
+
type: "eserie",
|
|
32351
|
+
config: config['serie']
|
|
32352
|
+
});
|
|
32353
|
+
};
|
|
32022
32354
|
var ExclusivityFeature = function ExclusivityFeature() {
|
|
32023
32355
|
var _useTranslation2 = useTranslation(),
|
|
32024
32356
|
t = _useTranslation2.t,
|
|
@@ -32031,6 +32363,18 @@ var ExclusivityFeature = function ExclusivityFeature() {
|
|
|
32031
32363
|
config: config['feature']
|
|
32032
32364
|
});
|
|
32033
32365
|
};
|
|
32366
|
+
var ExclusivityExclusivityDetailInfo = function ExclusivityExclusivityDetailInfo() {
|
|
32367
|
+
var _useTranslation3 = useTranslation(),
|
|
32368
|
+
t = _useTranslation3.t,
|
|
32369
|
+
i18n = _useTranslation3.i18n;
|
|
32370
|
+
var config = useMemo(function () {
|
|
32371
|
+
return getConfig(t);
|
|
32372
|
+
}, [i18n.language]);
|
|
32373
|
+
return /*#__PURE__*/jsx(ExclusivityTable, {
|
|
32374
|
+
type: "edetailInfo",
|
|
32375
|
+
config: config['detailInfo']
|
|
32376
|
+
});
|
|
32377
|
+
};
|
|
32034
32378
|
var ExclusivitySerieItems = function ExclusivitySerieItems() {
|
|
32035
32379
|
var _useTranslation4 = useTranslation(),
|
|
32036
32380
|
t = _useTranslation4.t,
|
|
@@ -32056,7 +32400,6 @@ var ExclusivityFeatureOption = function ExclusivityFeatureOption() {
|
|
|
32056
32400
|
});
|
|
32057
32401
|
};
|
|
32058
32402
|
var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
32059
|
-
var _selectedSerie$series;
|
|
32060
32403
|
var type = _ref.type,
|
|
32061
32404
|
config = _ref.config;
|
|
32062
32405
|
var _useTranslation6 = useTranslation(),
|
|
@@ -32073,37 +32416,41 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
32073
32416
|
packageId = _useModule.packageId,
|
|
32074
32417
|
updateNavigation = _useModule.updateNavigation,
|
|
32075
32418
|
apiConfig = _useModule.apiConfig,
|
|
32076
|
-
organizationId = _useModule.organizationId
|
|
32077
|
-
|
|
32419
|
+
organizationId = _useModule.organizationId,
|
|
32420
|
+
selectedPackage = _useModule.selectedPackage;
|
|
32421
|
+
var apiInterface = useMemo(function () {
|
|
32422
|
+
var patchId = '${_id}';
|
|
32423
|
+
if (type === 'eitem') patchId = '${typeNo}';
|
|
32424
|
+
if (type === 'eoption') patchId = '${optionKey}';
|
|
32425
|
+
var subType = 'features';
|
|
32426
|
+
if (type === 'eserie' || type === 'eitem') subType = 'series';
|
|
32427
|
+
if (type === 'edetailInfo') subType = 'detailInfos';
|
|
32428
|
+
var listType = type === 'eitem' ? 'items' : 'options';
|
|
32078
32429
|
return {
|
|
32430
|
+
read: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
|
|
32431
|
+
update: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
|
|
32432
|
+
};
|
|
32433
|
+
}, [type]);
|
|
32434
|
+
var oldDataRef = useRef();
|
|
32435
|
+
var applicationData = useMemo(function () {
|
|
32436
|
+
if (type === 'eitem' && !selectedSerie) {
|
|
32437
|
+
return oldDataRef.current;
|
|
32438
|
+
}
|
|
32439
|
+
if (type === 'eoption' && !selectedFeature) {
|
|
32440
|
+
return oldDataRef.current;
|
|
32441
|
+
}
|
|
32442
|
+
var newData = {
|
|
32079
32443
|
type: type,
|
|
32080
32444
|
packageId: packageId,
|
|
32081
|
-
organizationId: organizationId
|
|
32445
|
+
organizationId: organizationId,
|
|
32446
|
+
subTypeId: type === 'eitem' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id
|
|
32082
32447
|
};
|
|
32083
|
-
|
|
32448
|
+
oldDataRef.current = newData;
|
|
32449
|
+
return newData;
|
|
32450
|
+
}, [type, packageId, organizationId, selectedSerie, selectedFeature]);
|
|
32084
32451
|
var showTable = useMemo(function () {
|
|
32085
|
-
return
|
|
32086
|
-
}, [type,
|
|
32087
|
-
var patchId = useMemo(function () {
|
|
32088
|
-
if (type === 'eitem' && selectedSerie) return '${typeNo}';
|
|
32089
|
-
if (type === 'eoption' && selectedFeature) return '${optionKey}';
|
|
32090
|
-
return '${_id}';
|
|
32091
|
-
}, [type, selectedSerie, selectedFeature]);
|
|
32092
|
-
var subType = useMemo(function () {
|
|
32093
|
-
return type === 'eitem' ? 'series' : 'features';
|
|
32094
|
-
}, [type]);
|
|
32095
|
-
var listType = useMemo(function () {
|
|
32096
|
-
return type === 'eitem' ? 'items' : 'options';
|
|
32097
|
-
}, [type]);
|
|
32098
|
-
var subTypeId = useMemo(function () {
|
|
32099
|
-
return type === 'eitem' ? selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id : selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id;
|
|
32100
|
-
}, [type, selectedSerie, selectedFeature]);
|
|
32101
|
-
var apiInterface = useMemo(function () {
|
|
32102
|
-
return {
|
|
32103
|
-
read: !selectedSerie && !selectedFeature ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + subTypeId + '/' + listType,
|
|
32104
|
-
update: !selectedSerie && !selectedFeature ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + subTypeId + '/' + listType + '/' + patchId
|
|
32105
|
-
};
|
|
32106
|
-
}, [selectedSerie, selectedFeature, subType, subTypeId, listType, patchId]);
|
|
32452
|
+
return selectedPackage && (!['eitem', 'eoption'].includes(type) || type === 'eitem' && applicationData || type === 'eoption' && applicationData);
|
|
32453
|
+
}, [type, applicationData, selectedPackage]);
|
|
32107
32454
|
var configuration = useMemo(function () {
|
|
32108
32455
|
return {
|
|
32109
32456
|
type: 'dotnetSSM',
|
|
@@ -32143,9 +32490,9 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
32143
32490
|
},
|
|
32144
32491
|
children: [/*#__PURE__*/jsx(PackageSelector, {
|
|
32145
32492
|
organizationId: organizationId,
|
|
32146
|
-
|
|
32147
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32148
|
-
return updateNavigation(
|
|
32493
|
+
packageId: packageId,
|
|
32494
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32495
|
+
return updateNavigation(packageId);
|
|
32149
32496
|
},
|
|
32150
32497
|
enricherService: apiConfig.enricherService
|
|
32151
32498
|
}), type === 'eitem' && /*#__PURE__*/jsx(SeriesSelector$1, {
|
|
@@ -32164,7 +32511,7 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
|
|
|
32164
32511
|
})]
|
|
32165
32512
|
})
|
|
32166
32513
|
}), showTable && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32167
|
-
gridId: 'crud-grid_exclusivity_' + type
|
|
32514
|
+
gridId: 'crud-grid_exclusivity_' + type,
|
|
32168
32515
|
applicationData: applicationData,
|
|
32169
32516
|
configuration: configuration
|
|
32170
32517
|
})]
|
|
@@ -32178,7 +32525,8 @@ function TableTabGroups () {
|
|
|
32178
32525
|
packageId = _useModule.packageId,
|
|
32179
32526
|
organizationId = _useModule.organizationId,
|
|
32180
32527
|
updateNavigation = _useModule.updateNavigation,
|
|
32181
|
-
apiConfig = _useModule.apiConfig
|
|
32528
|
+
apiConfig = _useModule.apiConfig,
|
|
32529
|
+
selectedPackage = _useModule.selectedPackage;
|
|
32182
32530
|
var applicationData = useMemo(function () {
|
|
32183
32531
|
return {
|
|
32184
32532
|
packageId: packageId,
|
|
@@ -32219,30 +32567,8 @@ function TableTabGroups () {
|
|
|
32219
32567
|
},
|
|
32220
32568
|
additionalFields: ['featureNosDisplayTexts'],
|
|
32221
32569
|
isDictionary: true
|
|
32222
|
-
}, {
|
|
32223
|
-
headerName: 'Name',
|
|
32224
|
-
marryChildren: true,
|
|
32225
|
-
required: true,
|
|
32226
|
-
children: [{
|
|
32227
|
-
field: 'name.DE',
|
|
32228
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
32229
|
-
isDictionary: true
|
|
32230
|
-
}, {
|
|
32231
|
-
field: 'name.EN',
|
|
32232
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
32233
|
-
isDictionary: true
|
|
32234
|
-
}, {
|
|
32235
|
-
field: 'name.FR',
|
|
32236
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
32237
|
-
isDictionary: true
|
|
32238
|
-
}, {
|
|
32239
|
-
field: 'name.IT',
|
|
32240
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
32241
|
-
isDictionary: true
|
|
32242
|
-
}]
|
|
32243
|
-
}, {
|
|
32570
|
+
}, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', (selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], true), {
|
|
32244
32571
|
field: 'organizationId',
|
|
32245
|
-
cellDataType: 'string',
|
|
32246
32572
|
editable: false,
|
|
32247
32573
|
hide: true,
|
|
32248
32574
|
defaultValue: '${organizationId}'
|
|
@@ -32271,7 +32597,7 @@ function TableTabGroups () {
|
|
|
32271
32597
|
cellDataType: 'objectId'
|
|
32272
32598
|
}]
|
|
32273
32599
|
};
|
|
32274
|
-
}, [apiInterface]);
|
|
32600
|
+
}, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
|
|
32275
32601
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
32276
32602
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
32277
32603
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -32281,15 +32607,15 @@ function TableTabGroups () {
|
|
|
32281
32607
|
},
|
|
32282
32608
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
32283
32609
|
organizationId: organizationId,
|
|
32284
|
-
|
|
32285
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32286
|
-
return updateNavigation(
|
|
32610
|
+
packageId: packageId,
|
|
32611
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32612
|
+
return updateNavigation(packageId);
|
|
32287
32613
|
},
|
|
32288
32614
|
enricherService: apiConfig.enricherService
|
|
32289
32615
|
})
|
|
32290
32616
|
})]
|
|
32291
32617
|
})
|
|
32292
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
32618
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32293
32619
|
gridId: 'crud-grid_tabgroups',
|
|
32294
32620
|
applicationData: applicationData,
|
|
32295
32621
|
configuration: configuration
|
|
@@ -32304,7 +32630,8 @@ function TablePartlistPos () {
|
|
|
32304
32630
|
packageId = _useModule.packageId,
|
|
32305
32631
|
organizationId = _useModule.organizationId,
|
|
32306
32632
|
updateNavigation = _useModule.updateNavigation,
|
|
32307
|
-
apiConfig = _useModule.apiConfig
|
|
32633
|
+
apiConfig = _useModule.apiConfig,
|
|
32634
|
+
selectedPackage = _useModule.selectedPackage;
|
|
32308
32635
|
var posInvisibility = useMemo(function () {
|
|
32309
32636
|
return [{
|
|
32310
32637
|
name: t('backoffice.idmCatalogEditor.partlistpos.label.pi0'),
|
|
@@ -32339,6 +32666,16 @@ function TablePartlistPos () {
|
|
|
32339
32666
|
dateFormat: 'LL',
|
|
32340
32667
|
floatingFilter: true,
|
|
32341
32668
|
colDef: [{
|
|
32669
|
+
headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
|
|
32670
|
+
field: 'retailPrefix',
|
|
32671
|
+
editable: true,
|
|
32672
|
+
pinned: 'left'
|
|
32673
|
+
}, {
|
|
32674
|
+
headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
|
|
32675
|
+
field: 'retailArtilceNumber',
|
|
32676
|
+
editable: true,
|
|
32677
|
+
pinned: 'left'
|
|
32678
|
+
}, {
|
|
32342
32679
|
headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
|
|
32343
32680
|
field: 'partlistKey',
|
|
32344
32681
|
editable: false
|
|
@@ -32384,7 +32721,7 @@ function TablePartlistPos () {
|
|
|
32384
32721
|
field: 'decisions',
|
|
32385
32722
|
headerName: 'backoffice.idmEnricher.partlistpos.label.decisions',
|
|
32386
32723
|
cellDataType: 'lookup',
|
|
32387
|
-
editable:
|
|
32724
|
+
editable: false,
|
|
32388
32725
|
customParams: {
|
|
32389
32726
|
nameField: 'decisionRefsDisplayTexts',
|
|
32390
32727
|
filterCellType: 'number',
|
|
@@ -32394,14 +32731,6 @@ function TablePartlistPos () {
|
|
|
32394
32731
|
},
|
|
32395
32732
|
additionalFields: ['decisionRefsDisplayTexts'],
|
|
32396
32733
|
isDictionary: true
|
|
32397
|
-
}, {
|
|
32398
|
-
headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
|
|
32399
|
-
field: 'retailPrefix',
|
|
32400
|
-
editable: true
|
|
32401
|
-
}, {
|
|
32402
|
-
headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
|
|
32403
|
-
field: 'retailArtilceNumber',
|
|
32404
|
-
editable: true
|
|
32405
32734
|
}, {
|
|
32406
32735
|
headerName: 'backoffice.idmEnricher.partlistpos.label.posCountValue',
|
|
32407
32736
|
field: 'posCountValue',
|
|
@@ -32418,7 +32747,6 @@ function TablePartlistPos () {
|
|
|
32418
32747
|
editable: false
|
|
32419
32748
|
}, {
|
|
32420
32749
|
field: 'organizationId',
|
|
32421
|
-
cellDataType: 'string',
|
|
32422
32750
|
editable: false,
|
|
32423
32751
|
hide: true,
|
|
32424
32752
|
defaultValue: '${organizationId}'
|
|
@@ -32457,15 +32785,15 @@ function TablePartlistPos () {
|
|
|
32457
32785
|
},
|
|
32458
32786
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
32459
32787
|
organizationId: organizationId,
|
|
32460
|
-
|
|
32461
|
-
setSelectedPackage: function setSelectedPackage(
|
|
32462
|
-
return updateNavigation(
|
|
32788
|
+
packageId: packageId,
|
|
32789
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
32790
|
+
return updateNavigation(packageId);
|
|
32463
32791
|
},
|
|
32464
32792
|
enricherService: apiConfig.enricherService
|
|
32465
32793
|
})
|
|
32466
32794
|
})]
|
|
32467
32795
|
})
|
|
32468
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
32796
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
32469
32797
|
gridId: 'crud-grid_epartlistpos',
|
|
32470
32798
|
applicationData: applicationData,
|
|
32471
32799
|
configuration: configuration
|
|
@@ -32753,8 +33081,8 @@ var space = "space-T5Mkd";
|
|
|
32753
33081
|
var input$1 = "input-SK-Fo";
|
|
32754
33082
|
var addButton = "addButton-AVN8Y";
|
|
32755
33083
|
var helpText = "helpText-QYQQF";
|
|
32756
|
-
var css_248z$
|
|
32757
|
-
styleInject(css_248z$
|
|
33084
|
+
var css_248z$a = ".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";
|
|
33085
|
+
styleInject(css_248z$a);
|
|
32758
33086
|
|
|
32759
33087
|
function PriceFactorCellRenderer(props) {
|
|
32760
33088
|
var data = props.data,
|
|
@@ -32922,20 +33250,44 @@ var difference = "difference-xT9ZP";
|
|
|
32922
33250
|
var differencePositive = "differencePositive-hGhZO";
|
|
32923
33251
|
var differenceNegative = "differenceNegative-3CEZA";
|
|
32924
33252
|
var differenceNeutral = "differenceNeutral-wx8oE";
|
|
32925
|
-
var css_248z$
|
|
32926
|
-
styleInject(css_248z$
|
|
33253
|
+
var css_248z$9 = ".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";
|
|
33254
|
+
styleInject(css_248z$9);
|
|
32927
33255
|
|
|
32928
33256
|
function PriceDisplayCellRenderer(props) {
|
|
32929
|
-
var
|
|
33257
|
+
var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
|
|
32930
33258
|
var value = props.value,
|
|
32931
|
-
|
|
33259
|
+
commas = props.commas,
|
|
33260
|
+
item = props.item,
|
|
32932
33261
|
data = props.data,
|
|
32933
|
-
|
|
32934
|
-
|
|
32935
|
-
|
|
32936
|
-
var
|
|
33262
|
+
node = props.node,
|
|
33263
|
+
column = props.column,
|
|
33264
|
+
api = props.api;
|
|
33265
|
+
var origPrice = data === null || data === void 0 || (_data$origPrices = data.origPrices) === null || _data$origPrices === void 0 ? void 0 : _data$origPrices[item !== null && item !== void 0 ? item : ''];
|
|
33266
|
+
var currentPrice = value;
|
|
32937
33267
|
var diffPercentage = origPrice && currentPrice ? (currentPrice - origPrice) / origPrice * 100 : undefined;
|
|
32938
|
-
var isManualPrice =
|
|
33268
|
+
var isManualPrice = data === null || data === void 0 || (_data$manualPrices = data.manualPrices) === null || _data$manualPrices === void 0 ? void 0 : _data$manualPrices.includes(item !== null && item !== void 0 ? item : '');
|
|
33269
|
+
useEffect(function () {
|
|
33270
|
+
//The cellrenderer is only rerendered when the value (currentPrice) changes.
|
|
33271
|
+
//So we need to listen for changes in the other properties and refresh the cell manually if necessary
|
|
33272
|
+
var listener = function listener(_ref) {
|
|
33273
|
+
var _newData$manualPrices, _newData$origPrices;
|
|
33274
|
+
var newData = _ref.newData;
|
|
33275
|
+
var newIsManualPrice = newData === null || newData === void 0 || (_newData$manualPrices = newData.manualPrices) === null || _newData$manualPrices === void 0 ? void 0 : _newData$manualPrices.includes(item !== null && item !== void 0 ? item : '');
|
|
33276
|
+
var newOrigPrice = newData === null || newData === void 0 || (_newData$origPrices = newData.origPrices) === null || _newData$origPrices === void 0 ? void 0 : _newData$origPrices[item !== null && item !== void 0 ? item : ''];
|
|
33277
|
+
if (newIsManualPrice !== isManualPrice || newOrigPrice !== origPrice) {
|
|
33278
|
+
api.refreshCells({
|
|
33279
|
+
force: true,
|
|
33280
|
+
suppressFlash: true,
|
|
33281
|
+
rowNodes: [node],
|
|
33282
|
+
columns: [column !== null && column !== void 0 ? column : '']
|
|
33283
|
+
});
|
|
33284
|
+
}
|
|
33285
|
+
};
|
|
33286
|
+
node.addEventListener('dataChanged', listener);
|
|
33287
|
+
return function () {
|
|
33288
|
+
node.removeEventListener('dataChanged', listener);
|
|
33289
|
+
};
|
|
33290
|
+
}, []);
|
|
32939
33291
|
return /*#__PURE__*/jsxs("div", {
|
|
32940
33292
|
className: container$2,
|
|
32941
33293
|
children: [/*#__PURE__*/jsxs("span", {
|
|
@@ -32992,8 +33344,8 @@ function getPriceFeatureGroups(selectedSerie, language) {
|
|
|
32992
33344
|
var wrapper$2 = "wrapper-5t6RT";
|
|
32993
33345
|
var input = "input-leHam";
|
|
32994
33346
|
var disabled$1 = "disabled-Llkqu";
|
|
32995
|
-
var css_248z$
|
|
32996
|
-
styleInject(css_248z$
|
|
33347
|
+
var css_248z$8 = ".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";
|
|
33348
|
+
styleInject(css_248z$8);
|
|
32997
33349
|
|
|
32998
33350
|
function ownKeys$b(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; }
|
|
32999
33351
|
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -33015,8 +33367,8 @@ function PriceFactorInput(props) {
|
|
|
33015
33367
|
|
|
33016
33368
|
var inputHeader = "input-header--4KDP";
|
|
33017
33369
|
var factorInput = "factor-input-MX85Z";
|
|
33018
|
-
var css_248z$
|
|
33019
|
-
styleInject(css_248z$
|
|
33370
|
+
var css_248z$7 = ".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";
|
|
33371
|
+
styleInject(css_248z$7);
|
|
33020
33372
|
|
|
33021
33373
|
function ownKeys$a(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; }
|
|
33022
33374
|
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -33189,6 +33541,7 @@ function Prices (_ref) {
|
|
|
33189
33541
|
}()
|
|
33190
33542
|
},
|
|
33191
33543
|
filter: false,
|
|
33544
|
+
sortable: false,
|
|
33192
33545
|
editable: false
|
|
33193
33546
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
|
|
33194
33547
|
var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
|
|
@@ -33201,12 +33554,15 @@ function Prices (_ref) {
|
|
|
33201
33554
|
headerName: priceFeatureGroupItem,
|
|
33202
33555
|
field: "prices.".concat(priceFeatureGroupItem),
|
|
33203
33556
|
editable: true,
|
|
33557
|
+
filter: false,
|
|
33558
|
+
sortable: false,
|
|
33204
33559
|
isDictionary: true,
|
|
33205
33560
|
cellDataType: 'number',
|
|
33206
33561
|
headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
|
|
33207
33562
|
cellRenderer: PriceDisplayCellRenderer,
|
|
33208
33563
|
cellRendererParams: {
|
|
33209
|
-
commas: pricelist.commas
|
|
33564
|
+
commas: pricelist.commas,
|
|
33565
|
+
item: priceFeatureGroupItem
|
|
33210
33566
|
},
|
|
33211
33567
|
additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
|
|
33212
33568
|
headerClass: inputHeader,
|
|
@@ -33329,14 +33685,16 @@ function Prices (_ref) {
|
|
|
33329
33685
|
|
|
33330
33686
|
function TablePriceList () {
|
|
33331
33687
|
var _useTranslation = useTranslation(),
|
|
33332
|
-
t = _useTranslation.t
|
|
33688
|
+
t = _useTranslation.t,
|
|
33689
|
+
i18n = _useTranslation.i18n;
|
|
33333
33690
|
var root = useStore();
|
|
33334
33691
|
var spreadsheetRef = useRef(null);
|
|
33335
33692
|
var _useModule = useModule$1(['pricelists']),
|
|
33336
33693
|
packageId = _useModule.packageId,
|
|
33337
33694
|
organizationId = _useModule.organizationId,
|
|
33338
33695
|
updateNavigation = _useModule.updateNavigation,
|
|
33339
|
-
apiConfig = _useModule.apiConfig
|
|
33696
|
+
apiConfig = _useModule.apiConfig,
|
|
33697
|
+
selectedPackage = _useModule.selectedPackage;
|
|
33340
33698
|
var _React$useState = React.useState(),
|
|
33341
33699
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33342
33700
|
selectedPriceList = _React$useState2[0],
|
|
@@ -33479,7 +33837,11 @@ function TablePriceList () {
|
|
|
33479
33837
|
}, {
|
|
33480
33838
|
headerName: 'backoffice.idmEnricher.pricelists.label.currency',
|
|
33481
33839
|
field: 'currency',
|
|
33482
|
-
|
|
33840
|
+
cellDataType: 'enum',
|
|
33841
|
+
editable: true,
|
|
33842
|
+
customParams: {
|
|
33843
|
+
enumData: getCurrencyKey(t)
|
|
33844
|
+
}
|
|
33483
33845
|
}, {
|
|
33484
33846
|
headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
|
|
33485
33847
|
field: 'forPublishing',
|
|
@@ -33497,13 +33859,11 @@ function TablePriceList () {
|
|
|
33497
33859
|
cellDataType: 'dateString'
|
|
33498
33860
|
}, {
|
|
33499
33861
|
field: 'packageId',
|
|
33500
|
-
cellDataType: 'string',
|
|
33501
33862
|
editable: false,
|
|
33502
33863
|
hide: true,
|
|
33503
33864
|
defaultValue: '${packageId}'
|
|
33504
33865
|
}, {
|
|
33505
33866
|
field: 'organizationId',
|
|
33506
|
-
cellDataType: 'string',
|
|
33507
33867
|
editable: false,
|
|
33508
33868
|
hide: true,
|
|
33509
33869
|
defaultValue: '${organizationId}'
|
|
@@ -33547,7 +33907,7 @@ function TablePriceList () {
|
|
|
33547
33907
|
hide: true
|
|
33548
33908
|
}]
|
|
33549
33909
|
};
|
|
33550
|
-
}, [apiInterface]);
|
|
33910
|
+
}, [apiInterface, i18n.language]);
|
|
33551
33911
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
33552
33912
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33553
33913
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -33557,17 +33917,17 @@ function TablePriceList () {
|
|
|
33557
33917
|
},
|
|
33558
33918
|
children: /*#__PURE__*/jsx(PackageSelector, {
|
|
33559
33919
|
organizationId: organizationId,
|
|
33560
|
-
|
|
33561
|
-
setSelectedPackage: function setSelectedPackage(
|
|
33562
|
-
return updateNavigation(
|
|
33920
|
+
packageId: packageId,
|
|
33921
|
+
setSelectedPackage: function setSelectedPackage(packageId) {
|
|
33922
|
+
return updateNavigation(packageId);
|
|
33563
33923
|
},
|
|
33564
33924
|
enricherService: apiConfig.enricherService
|
|
33565
33925
|
})
|
|
33566
33926
|
})]
|
|
33567
33927
|
})
|
|
33568
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
33928
|
+
}), selectedPackage && /*#__PURE__*/jsx(Spreadsheet, {
|
|
33569
33929
|
ref: spreadsheetRef,
|
|
33570
|
-
gridId: 'crud-
|
|
33930
|
+
gridId: 'crud-grid_epricelists',
|
|
33571
33931
|
applicationData: applicationData,
|
|
33572
33932
|
configuration: configuration,
|
|
33573
33933
|
hooks: hooks
|
|
@@ -33592,6 +33952,12 @@ function Content$3() {
|
|
|
33592
33952
|
index: true,
|
|
33593
33953
|
path: "",
|
|
33594
33954
|
element: /*#__PURE__*/jsx(TablePackages, {})
|
|
33955
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33956
|
+
path: ":packageId/renaming/catalogs",
|
|
33957
|
+
element: /*#__PURE__*/jsx(RenamingCatalog, {})
|
|
33958
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33959
|
+
path: ":packageId/renaming/detailInfos",
|
|
33960
|
+
element: /*#__PURE__*/jsx(RenamingDetailInfo, {})
|
|
33595
33961
|
}), /*#__PURE__*/jsx(Route, {
|
|
33596
33962
|
path: ":packageId/renaming/features",
|
|
33597
33963
|
element: /*#__PURE__*/jsx(RenamingFeature, {})
|
|
@@ -33601,12 +33967,21 @@ function Content$3() {
|
|
|
33601
33967
|
}), /*#__PURE__*/jsx(Route, {
|
|
33602
33968
|
path: ":packageId/renaming/options",
|
|
33603
33969
|
element: /*#__PURE__*/jsx(RenamingOption, {})
|
|
33970
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33971
|
+
path: ":packageId/renaming/series",
|
|
33972
|
+
element: /*#__PURE__*/jsx(RenamingSerie, {})
|
|
33604
33973
|
}), /*#__PURE__*/jsx(Route, {
|
|
33605
33974
|
path: ":packageId/tabgroups",
|
|
33606
33975
|
element: /*#__PURE__*/jsx(TableTabGroups, {})
|
|
33976
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33977
|
+
path: ":packageId/exclusivity/eserie",
|
|
33978
|
+
element: /*#__PURE__*/jsx(ExclusivitySerie, {})
|
|
33607
33979
|
}), /*#__PURE__*/jsx(Route, {
|
|
33608
33980
|
path: ":packageId/exclusivity/eitem",
|
|
33609
33981
|
element: /*#__PURE__*/jsx(ExclusivitySerieItems, {})
|
|
33982
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33983
|
+
path: ":packageId/exclusivity/edetailInfo",
|
|
33984
|
+
element: /*#__PURE__*/jsx(ExclusivityExclusivityDetailInfo, {})
|
|
33610
33985
|
}), /*#__PURE__*/jsx(Route, {
|
|
33611
33986
|
path: ":packageId/exclusivity/efeature",
|
|
33612
33987
|
element: /*#__PURE__*/jsx(ExclusivityFeature, {})
|
|
@@ -33663,8 +34038,7 @@ function UploadButton (_ref) {
|
|
|
33663
34038
|
title = _ref.title,
|
|
33664
34039
|
disabled = _ref.disabled,
|
|
33665
34040
|
contentType = _ref.contentType,
|
|
33666
|
-
|
|
33667
|
-
setFileList = _ref.setFileList,
|
|
34041
|
+
updateProgress = _ref.updateProgress,
|
|
33668
34042
|
fileList = _ref.fileList,
|
|
33669
34043
|
progress = _ref.progress;
|
|
33670
34044
|
var _useTranslation = useTranslation(),
|
|
@@ -33672,37 +34046,40 @@ function UploadButton (_ref) {
|
|
|
33672
34046
|
var root = useStore();
|
|
33673
34047
|
var ref = useRef();
|
|
33674
34048
|
var handleUploadChange = function handleUploadChange(info) {
|
|
34049
|
+
var _info$fileList;
|
|
33675
34050
|
var status = info.file.status;
|
|
34051
|
+
var progress = 'INPROGRESS';
|
|
34052
|
+
var fileList = info.fileList;
|
|
34053
|
+
var error = undefined;
|
|
34054
|
+
var file = (_info$fileList = info.fileList) === null || _info$fileList === void 0 ? void 0 : _info$fileList[0];
|
|
34055
|
+
if (file) {
|
|
34056
|
+
var nameWithoutExt = file.name.substring(0, file.name.lastIndexOf('.')) || file.name;
|
|
34057
|
+
file.name = nameWithoutExt + '.xml';
|
|
34058
|
+
}
|
|
33676
34059
|
if (status === 'done') {
|
|
33677
|
-
|
|
33678
|
-
|
|
34060
|
+
progress = 'SUCCESS';
|
|
34061
|
+
fileList = [];
|
|
33679
34062
|
if (ref.current) {
|
|
33680
34063
|
clearInterval(ref.current.interval);
|
|
33681
34064
|
ref.current = undefined;
|
|
33682
34065
|
}
|
|
33683
|
-
if (info.fileList[0]) {
|
|
33684
|
-
info.fileList[0].percent = 100;
|
|
33685
|
-
}
|
|
33686
34066
|
} else if (status === 'error') {
|
|
33687
|
-
|
|
34067
|
+
progress = 'ERROR';
|
|
34068
|
+
fileList = [];
|
|
34069
|
+
error = file.response;
|
|
33688
34070
|
if (ref.current) {
|
|
33689
34071
|
clearInterval(ref.current.interval);
|
|
33690
34072
|
ref.current = undefined;
|
|
33691
34073
|
}
|
|
33692
|
-
if (info.fileList[0]) {
|
|
33693
|
-
info.fileList[0].percent = 100;
|
|
33694
|
-
}
|
|
33695
34074
|
} else if (status === 'removed') {
|
|
33696
|
-
|
|
33697
|
-
|
|
34075
|
+
progress = undefined;
|
|
34076
|
+
fileList = [];
|
|
33698
34077
|
if (ref.current) {
|
|
33699
34078
|
clearInterval(ref.current.interval);
|
|
33700
34079
|
ref.current = undefined;
|
|
33701
34080
|
}
|
|
33702
34081
|
} else {
|
|
33703
|
-
|
|
33704
|
-
if (info.fileList[0]) {
|
|
33705
|
-
var file = info.fileList[0];
|
|
34082
|
+
if (file) {
|
|
33706
34083
|
if (status === 'uploading') {
|
|
33707
34084
|
// First 50%, the file is still uploading to browser
|
|
33708
34085
|
file.percent = (file.percent || 0) / 2;
|
|
@@ -33713,14 +34090,14 @@ function UploadButton (_ref) {
|
|
|
33713
34090
|
var fileSize = file.size;
|
|
33714
34091
|
var startTime = (_ref$current$startTim = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.startTime) !== null && _ref$current$startTim !== void 0 ? _ref$current$startTim : Date.now();
|
|
33715
34092
|
var interval = (_ref$current$interval = (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.interval) !== null && _ref$current$interval !== void 0 ? _ref$current$interval : setInterval(function () {
|
|
33716
|
-
// Assume 1MB takes about
|
|
33717
|
-
var estimatedTimeInSeconds = fileSize / (1024 * 1024)
|
|
34093
|
+
// Assume 1MB takes about 1 seconds to upload
|
|
34094
|
+
var estimatedTimeInSeconds = fileSize / (1024 * 1024);
|
|
33718
34095
|
var elapsedTime = (Date.now() - startTime) / 1000;
|
|
33719
34096
|
// Calculate progress for the second 50%
|
|
33720
34097
|
var sizeBasedProgress = Math.min(50 * (elapsedTime / estimatedTimeInSeconds), 49);
|
|
33721
34098
|
// Combine both progress values, ensuring we don't exceed 99
|
|
33722
34099
|
file.percent = Math.min(50 + sizeBasedProgress, 99);
|
|
33723
|
-
|
|
34100
|
+
updateProgress(progress, [file]);
|
|
33724
34101
|
}, 10);
|
|
33725
34102
|
ref.current = {
|
|
33726
34103
|
startTime: startTime,
|
|
@@ -33733,8 +34110,45 @@ function UploadButton (_ref) {
|
|
|
33733
34110
|
}
|
|
33734
34111
|
}
|
|
33735
34112
|
}
|
|
33736
|
-
|
|
34113
|
+
updateProgress(progress, fileList, error);
|
|
33737
34114
|
};
|
|
34115
|
+
var onBeforeUpload = /*#__PURE__*/function () {
|
|
34116
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(file) {
|
|
34117
|
+
var nameWithoutExt, zip, zipBlob, zipFile;
|
|
34118
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
34119
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34120
|
+
case 0:
|
|
34121
|
+
if (!(file.type !== 'application/xml' && file.type !== 'text/xml' && !file.name.endsWith('.xml'))) {
|
|
34122
|
+
_context.next = 3;
|
|
34123
|
+
break;
|
|
34124
|
+
}
|
|
34125
|
+
updateProgress('ERROR', fileList, t('backoffice.idmEnricher.import.uploadinvalid'));
|
|
34126
|
+
return _context.abrupt("return", Upload$2.LIST_IGNORE);
|
|
34127
|
+
case 3:
|
|
34128
|
+
// Remove file extension from name before zipping to avoid double extensions
|
|
34129
|
+
nameWithoutExt = file.name.substring(0, file.name.lastIndexOf('.')) || file.name;
|
|
34130
|
+
zip = new JSZip();
|
|
34131
|
+
zip.file(file.name, file);
|
|
34132
|
+
_context.next = 8;
|
|
34133
|
+
return zip.generateAsync({
|
|
34134
|
+
type: 'blob'
|
|
34135
|
+
});
|
|
34136
|
+
case 8:
|
|
34137
|
+
zipBlob = _context.sent;
|
|
34138
|
+
zipFile = new File([zipBlob], nameWithoutExt + '.zip', {
|
|
34139
|
+
type: 'application/zip'
|
|
34140
|
+
});
|
|
34141
|
+
return _context.abrupt("return", zipFile);
|
|
34142
|
+
case 11:
|
|
34143
|
+
case "end":
|
|
34144
|
+
return _context.stop();
|
|
34145
|
+
}
|
|
34146
|
+
}, _callee);
|
|
34147
|
+
}));
|
|
34148
|
+
return function onBeforeUpload(_x) {
|
|
34149
|
+
return _ref2.apply(this, arguments);
|
|
34150
|
+
};
|
|
34151
|
+
}();
|
|
33738
34152
|
var props = {
|
|
33739
34153
|
name: 'file',
|
|
33740
34154
|
action: action,
|
|
@@ -33743,8 +34157,15 @@ function UploadButton (_ref) {
|
|
|
33743
34157
|
Authorization: "Bearer ".concat(root.dataStore.jwt)
|
|
33744
34158
|
},
|
|
33745
34159
|
multiple: false,
|
|
34160
|
+
accept: 'application/xml,text/xml,.xml',
|
|
33746
34161
|
onChange: handleUploadChange,
|
|
33747
|
-
|
|
34162
|
+
beforeUpload: onBeforeUpload,
|
|
34163
|
+
fileList: fileList,
|
|
34164
|
+
showUploadList: {
|
|
34165
|
+
showPreviewIcon: false,
|
|
34166
|
+
showRemoveIcon: false,
|
|
34167
|
+
showDownloadIcon: false
|
|
34168
|
+
}
|
|
33748
34169
|
};
|
|
33749
34170
|
return /*#__PURE__*/jsx(Fragment, {
|
|
33750
34171
|
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$9(_objectSpread$9({}, props), {}, {
|
|
@@ -33757,14 +34178,18 @@ function UploadButton (_ref) {
|
|
|
33757
34178
|
});
|
|
33758
34179
|
}
|
|
33759
34180
|
|
|
34181
|
+
var errorDescription = "error-description-VE3n0";
|
|
34182
|
+
var css_248z$6 = ".error-description-VE3n0 {\n max-height: 100px;\n overflow: auto;\n scrollbar-width: thin;\n}\n";
|
|
34183
|
+
styleInject(css_248z$6);
|
|
34184
|
+
|
|
33760
34185
|
function IDMImportForm (_ref) {
|
|
33761
34186
|
var idmService = _ref.idmService,
|
|
33762
34187
|
organizationId = _ref.organizationId,
|
|
33763
|
-
|
|
34188
|
+
updateProgress = _ref.updateProgress,
|
|
33764
34189
|
progress = _ref.progress,
|
|
33765
34190
|
name = _ref.name,
|
|
34191
|
+
error = _ref.error,
|
|
33766
34192
|
setName = _ref.setName,
|
|
33767
|
-
setFileList = _ref.setFileList,
|
|
33768
34193
|
fileList = _ref.fileList;
|
|
33769
34194
|
var _useTranslation = useTranslation(),
|
|
33770
34195
|
t = _useTranslation.t;
|
|
@@ -33788,10 +34213,9 @@ function IDMImportForm (_ref) {
|
|
|
33788
34213
|
children: /*#__PURE__*/jsx(UploadButton, {
|
|
33789
34214
|
action: uploadAction,
|
|
33790
34215
|
contentType: "multipart/form-data",
|
|
33791
|
-
|
|
34216
|
+
updateProgress: updateProgress,
|
|
33792
34217
|
progress: progress,
|
|
33793
34218
|
disabled: !name.trim() || progress === 'INPROGRESS',
|
|
33794
|
-
setFileList: setFileList,
|
|
33795
34219
|
fileList: fileList
|
|
33796
34220
|
})
|
|
33797
34221
|
}), /*#__PURE__*/jsxs(Form$1.Item, {
|
|
@@ -33804,6 +34228,10 @@ function IDMImportForm (_ref) {
|
|
|
33804
34228
|
showIcon: true
|
|
33805
34229
|
}), progress === 'ERROR' && /*#__PURE__*/jsx(Alert, {
|
|
33806
34230
|
message: t('backoffice.idmEnricher.import.uploaderror'),
|
|
34231
|
+
description: /*#__PURE__*/jsx("div", {
|
|
34232
|
+
className: errorDescription,
|
|
34233
|
+
children: error
|
|
34234
|
+
}),
|
|
33807
34235
|
type: "error",
|
|
33808
34236
|
showIcon: true
|
|
33809
34237
|
})]
|
|
@@ -33831,10 +34259,14 @@ function OpenModalButton (_ref) {
|
|
|
33831
34259
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
33832
34260
|
name = _useState6[0],
|
|
33833
34261
|
setName = _useState6[1];
|
|
33834
|
-
var _useState7 = useState(
|
|
34262
|
+
var _useState7 = useState(undefined),
|
|
33835
34263
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
33836
|
-
|
|
33837
|
-
|
|
34264
|
+
error = _useState8[0],
|
|
34265
|
+
setError = _useState8[1];
|
|
34266
|
+
var _useState9 = useState([]),
|
|
34267
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
34268
|
+
fileList = _useState10[0],
|
|
34269
|
+
setFileList = _useState10[1];
|
|
33838
34270
|
var showModal = function showModal() {
|
|
33839
34271
|
setIsModalOpen(true);
|
|
33840
34272
|
};
|
|
@@ -33842,12 +34274,18 @@ function OpenModalButton (_ref) {
|
|
|
33842
34274
|
setProgress(undefined);
|
|
33843
34275
|
setName('');
|
|
33844
34276
|
setFileList([]);
|
|
34277
|
+
setError(undefined);
|
|
33845
34278
|
};
|
|
33846
34279
|
var handleOk = function handleOk() {
|
|
33847
34280
|
setIsModalOpen(false);
|
|
33848
34281
|
resetProgress();
|
|
33849
34282
|
onClose();
|
|
33850
34283
|
};
|
|
34284
|
+
var updateProgress = function updateProgress(progress, fileList, error) {
|
|
34285
|
+
setProgress(progress);
|
|
34286
|
+
setFileList(fileList);
|
|
34287
|
+
setError(error);
|
|
34288
|
+
};
|
|
33851
34289
|
var buttonText = progress == undefined || progress == 'ERROR' ? t('backoffice.idmEnricher.import.cancel') : progress === 'INPROGRESS' ? t('backoffice.idmEnricher.import.inprogress') : t('backoffice.idmEnricher.import.finish');
|
|
33852
34290
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
33853
34291
|
children: [/*#__PURE__*/jsx(Button$1, {
|
|
@@ -33876,14 +34314,14 @@ function OpenModalButton (_ref) {
|
|
|
33876
34314
|
,
|
|
33877
34315
|
destroyOnClose: true,
|
|
33878
34316
|
children: type === 'IDM_IMPORT' && /*#__PURE__*/jsx(IDMImportForm, {
|
|
33879
|
-
|
|
34317
|
+
updateProgress: updateProgress,
|
|
33880
34318
|
progress: progress,
|
|
33881
34319
|
name: name,
|
|
33882
34320
|
setName: setName,
|
|
33883
|
-
setFileList: setFileList,
|
|
33884
34321
|
fileList: fileList,
|
|
33885
34322
|
idmService: idmService,
|
|
33886
|
-
organizationId: organizationId
|
|
34323
|
+
organizationId: organizationId,
|
|
34324
|
+
error: error
|
|
33887
34325
|
})
|
|
33888
34326
|
})]
|
|
33889
34327
|
});
|
|
@@ -33892,7 +34330,10 @@ function OpenModalButton (_ref) {
|
|
|
33892
34330
|
function TableCatalogs () {
|
|
33893
34331
|
var root = useStore();
|
|
33894
34332
|
var _useTranslation = useTranslation(),
|
|
33895
|
-
t = _useTranslation.t
|
|
34333
|
+
t = _useTranslation.t,
|
|
34334
|
+
i18n = _useTranslation.i18n;
|
|
34335
|
+
var _useDivaCore = useDivaCore(),
|
|
34336
|
+
userHasPermission = _useDivaCore.actions.userHasPermission;
|
|
33896
34337
|
var _useNavigation = useNavigation(),
|
|
33897
34338
|
organizationId = _useNavigation.organizationId,
|
|
33898
34339
|
apiConfig = _useNavigation.apiConfig,
|
|
@@ -33906,19 +34347,35 @@ function TableCatalogs () {
|
|
|
33906
34347
|
fileDownloadError = _React$useState4[0],
|
|
33907
34348
|
setFileDownloadError = _React$useState4[1];
|
|
33908
34349
|
var spreadsheetRef = useRef(null);
|
|
34350
|
+
var _React$useState5 = React.useState(false),
|
|
34351
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
34352
|
+
showApi2 = _React$useState6[0],
|
|
34353
|
+
setShowApi2 = _React$useState6[1];
|
|
33909
34354
|
var applicationData = useMemo(function () {
|
|
33910
34355
|
return {
|
|
33911
34356
|
organizationId: organizationId
|
|
33912
34357
|
};
|
|
33913
34358
|
}, [organizationId]);
|
|
33914
34359
|
var preFilter = useMemo(function () {
|
|
33915
|
-
|
|
34360
|
+
var orgPreFilter = {
|
|
33916
34361
|
colId: 'organizationId',
|
|
33917
34362
|
filterType: 'text',
|
|
33918
34363
|
type: 'equals',
|
|
33919
34364
|
filter: organizationId
|
|
33920
34365
|
};
|
|
33921
|
-
|
|
34366
|
+
if (!showApi2) {
|
|
34367
|
+
return {
|
|
34368
|
+
filterType: 'join',
|
|
34369
|
+
type: 'AND',
|
|
34370
|
+
conditions: [orgPreFilter, {
|
|
34371
|
+
colId: 'isApi',
|
|
34372
|
+
filterType: 'set',
|
|
34373
|
+
values: ['false']
|
|
34374
|
+
}]
|
|
34375
|
+
};
|
|
34376
|
+
}
|
|
34377
|
+
return orgPreFilter;
|
|
34378
|
+
}, [organizationId, showApi2]);
|
|
33922
34379
|
var rowActions = useMemo(function () {
|
|
33923
34380
|
return [{
|
|
33924
34381
|
icon: /*#__PURE__*/jsx(EditOutlined, {}),
|
|
@@ -34010,13 +34467,6 @@ function TableCatalogs () {
|
|
|
34010
34467
|
name: t('backoffice.idmCatalog.general.label.cm.F'),
|
|
34011
34468
|
value: 'F'
|
|
34012
34469
|
}];
|
|
34013
|
-
var formOfAddress = [{
|
|
34014
|
-
name: t('backoffice.idmCatalog.general.label.foa.f1'),
|
|
34015
|
-
value: 1
|
|
34016
|
-
}, {
|
|
34017
|
-
name: t('backoffice.idmCatalog.general.label.foa.f2'),
|
|
34018
|
-
value: 2
|
|
34019
|
-
}];
|
|
34020
34470
|
var priceDependent = [{
|
|
34021
34471
|
name: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
|
|
34022
34472
|
value: false
|
|
@@ -34067,7 +34517,12 @@ function TableCatalogs () {
|
|
|
34067
34517
|
},
|
|
34068
34518
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
34069
34519
|
floatingFilter: true,
|
|
34070
|
-
colDef: [{
|
|
34520
|
+
colDef: [].concat(_toConsumableArray(showApi2 ? [{
|
|
34521
|
+
headerName: 'backoffice.idmCatalog.catalogs.label.isApi',
|
|
34522
|
+
field: 'isApi',
|
|
34523
|
+
cellDataType: 'boolean',
|
|
34524
|
+
editable: false
|
|
34525
|
+
}] : []), [{
|
|
34071
34526
|
headerName: 'backoffice.idmCatalog.packages.label.name',
|
|
34072
34527
|
field: 'name',
|
|
34073
34528
|
required: true
|
|
@@ -34145,14 +34600,19 @@ function TableCatalogs () {
|
|
|
34145
34600
|
editable: true,
|
|
34146
34601
|
required: true,
|
|
34147
34602
|
customParams: {
|
|
34148
|
-
enumData:
|
|
34603
|
+
enumData: getLanguageKey(t),
|
|
34149
34604
|
multiple: true
|
|
34150
34605
|
},
|
|
34151
34606
|
defaultValue: ['DE']
|
|
34152
34607
|
}, {
|
|
34153
34608
|
headerName: 'backoffice.idmCatalog.general.label.currencyKey',
|
|
34154
34609
|
field: 'currencyKey',
|
|
34610
|
+
cellDataType: 'enum',
|
|
34611
|
+
editable: true,
|
|
34155
34612
|
required: true,
|
|
34613
|
+
customParams: {
|
|
34614
|
+
enumData: getCurrencyKey(t)
|
|
34615
|
+
},
|
|
34156
34616
|
defaultValue: 'EUR'
|
|
34157
34617
|
}, {
|
|
34158
34618
|
headerName: 'backoffice.idmCatalog.general.label.fileId',
|
|
@@ -34205,7 +34665,7 @@ function TableCatalogs () {
|
|
|
34205
34665
|
editable: true,
|
|
34206
34666
|
required: true,
|
|
34207
34667
|
customParams: {
|
|
34208
|
-
enumData:
|
|
34668
|
+
enumData: getLanguageKey(t),
|
|
34209
34669
|
multiple: false
|
|
34210
34670
|
},
|
|
34211
34671
|
defaultValue: 'DE'
|
|
@@ -34234,8 +34694,13 @@ function TableCatalogs () {
|
|
|
34234
34694
|
children: [{
|
|
34235
34695
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34236
34696
|
field: 'isoCountryId',
|
|
34697
|
+
cellDataType: 'enum',
|
|
34698
|
+
editable: true,
|
|
34237
34699
|
required: true,
|
|
34238
|
-
defaultValue: 'DE'
|
|
34700
|
+
defaultValue: 'DE',
|
|
34701
|
+
customParams: {
|
|
34702
|
+
enumData: getCountryKey(t)
|
|
34703
|
+
}
|
|
34239
34704
|
}, {
|
|
34240
34705
|
field: 'glnNo',
|
|
34241
34706
|
headerName: 'backoffice.idmCatalog.general.label.glnNo',
|
|
@@ -34315,7 +34780,7 @@ function TableCatalogs () {
|
|
|
34315
34780
|
field: 'formOfAddress1',
|
|
34316
34781
|
cellDataType: 'enum',
|
|
34317
34782
|
customParams: {
|
|
34318
|
-
enumData:
|
|
34783
|
+
enumData: getFormOfAddressKey(t),
|
|
34319
34784
|
displayLabelTemplate: '${name} (${value})'
|
|
34320
34785
|
},
|
|
34321
34786
|
required: true
|
|
@@ -34346,7 +34811,12 @@ function TableCatalogs () {
|
|
|
34346
34811
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34347
34812
|
field: 'isoCountryId1',
|
|
34348
34813
|
required: true,
|
|
34349
|
-
defaultValue: 'DE'
|
|
34814
|
+
defaultValue: 'DE',
|
|
34815
|
+
cellDataType: 'enum',
|
|
34816
|
+
editable: true,
|
|
34817
|
+
customParams: {
|
|
34818
|
+
enumData: getCountryKey(t)
|
|
34819
|
+
}
|
|
34350
34820
|
}]
|
|
34351
34821
|
}, {
|
|
34352
34822
|
headerName: 'backoffice.idmCatalog.general.label.contact2',
|
|
@@ -34364,7 +34834,7 @@ function TableCatalogs () {
|
|
|
34364
34834
|
field: 'formOfAddress2',
|
|
34365
34835
|
cellDataType: 'enum',
|
|
34366
34836
|
customParams: {
|
|
34367
|
-
enumData:
|
|
34837
|
+
enumData: getFormOfAddressKey(t),
|
|
34368
34838
|
displayLabelTemplate: '${name} (${value})'
|
|
34369
34839
|
}
|
|
34370
34840
|
}, {
|
|
@@ -34391,7 +34861,12 @@ function TableCatalogs () {
|
|
|
34391
34861
|
field: 'city2'
|
|
34392
34862
|
}, {
|
|
34393
34863
|
headerName: 'backoffice.idmCatalog.general.label.isoCountryId',
|
|
34394
|
-
field: 'isoCountryId2'
|
|
34864
|
+
field: 'isoCountryId2',
|
|
34865
|
+
cellDataType: 'enum',
|
|
34866
|
+
editable: true,
|
|
34867
|
+
customParams: {
|
|
34868
|
+
enumData: getCountryKey(t)
|
|
34869
|
+
}
|
|
34395
34870
|
}]
|
|
34396
34871
|
}, {
|
|
34397
34872
|
headerName: 'backoffice.idmCatalog.general.label.priceSettings',
|
|
@@ -34529,20 +35004,32 @@ function TableCatalogs () {
|
|
|
34529
35004
|
lockVisible: true,
|
|
34530
35005
|
suppressColumnsToolPanel: true,
|
|
34531
35006
|
defaultValue: '${organizationId}'
|
|
34532
|
-
}]
|
|
35007
|
+
}])
|
|
34533
35008
|
};
|
|
34534
|
-
}, []);
|
|
35009
|
+
}, [i18n.language, showApi2]);
|
|
34535
35010
|
var handleLoadingModalOk = useCallback(function () {
|
|
34536
35011
|
setFileIsLoading(false);
|
|
34537
35012
|
}, []);
|
|
34538
35013
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
34539
35014
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
34540
35015
|
title: /*#__PURE__*/jsxs("div", {
|
|
34541
|
-
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/
|
|
35016
|
+
children: [t('backoffice.menu.items.label.IDMEditorTableCatalogs'), /*#__PURE__*/jsxs(Space$1, {
|
|
34542
35017
|
style: {
|
|
34543
35018
|
"float": 'right'
|
|
34544
35019
|
},
|
|
34545
|
-
children: /*#__PURE__*/jsx(
|
|
35020
|
+
children: [userHasPermission('idmeditor_api2') && /*#__PURE__*/jsx(Form$1.Item, {
|
|
35021
|
+
label: t('backoffice.idmCatalog.general.label.showApi2'),
|
|
35022
|
+
style: {
|
|
35023
|
+
marginRight: 10,
|
|
35024
|
+
marginBottom: 0
|
|
35025
|
+
},
|
|
35026
|
+
children: /*#__PURE__*/jsx(Switch, {
|
|
35027
|
+
checked: showApi2,
|
|
35028
|
+
onChange: function onChange(checked) {
|
|
35029
|
+
return setShowApi2(checked);
|
|
35030
|
+
}
|
|
35031
|
+
})
|
|
35032
|
+
}), /*#__PURE__*/jsx(OpenModalButton, {
|
|
34546
35033
|
title: "IDM Import",
|
|
34547
35034
|
type: "IDM_IMPORT",
|
|
34548
35035
|
idmService: apiConfig.idmService,
|
|
@@ -34551,7 +35038,7 @@ function TableCatalogs () {
|
|
|
34551
35038
|
var _spreadsheetRef$curre;
|
|
34552
35039
|
return spreadsheetRef === null || spreadsheetRef === void 0 || (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 ? void 0 : _spreadsheetRef$curre.refresh();
|
|
34553
35040
|
}
|
|
34554
|
-
})
|
|
35041
|
+
})]
|
|
34555
35042
|
})]
|
|
34556
35043
|
})
|
|
34557
35044
|
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
@@ -34570,15 +35057,20 @@ function TableCatalogs () {
|
|
|
34570
35057
|
}
|
|
34571
35058
|
|
|
34572
35059
|
function CatalogSelector(_ref) {
|
|
34573
|
-
var
|
|
35060
|
+
var catalogId = _ref.catalogId,
|
|
34574
35061
|
setSelectedCatalog = _ref.setSelectedCatalog,
|
|
34575
35062
|
idmService = _ref.idmService,
|
|
34576
35063
|
organizationId = _ref.organizationId;
|
|
34577
35064
|
var _useTranslation = useTranslation(),
|
|
34578
35065
|
t = _useTranslation.t;
|
|
35066
|
+
var value = useMemo(function () {
|
|
35067
|
+
return {
|
|
35068
|
+
_id: catalogId
|
|
35069
|
+
};
|
|
35070
|
+
}, [catalogId]);
|
|
34579
35071
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
34580
35072
|
apiInterface: {
|
|
34581
|
-
read: idmService + "/v3.0/catalogs?fields=name;_id&filter=organizationId==\"".concat(organizationId)
|
|
35073
|
+
read: idmService + "/v3.0/catalogs?fields=name;_id;isoLanguageIds&filter=organizationId==\"".concat(organizationId)
|
|
34582
35074
|
},
|
|
34583
35075
|
apiMapping: {
|
|
34584
35076
|
type: 'query',
|
|
@@ -34592,11 +35084,9 @@ function CatalogSelector(_ref) {
|
|
|
34592
35084
|
value: '${_id}'
|
|
34593
35085
|
},
|
|
34594
35086
|
title: t('backoffice.menu.items.label.IDMEditorTableCatalogs'),
|
|
34595
|
-
value:
|
|
34596
|
-
_id: selectedCatalog
|
|
34597
|
-
},
|
|
35087
|
+
value: value,
|
|
34598
35088
|
onChange: function onChange(value) {
|
|
34599
|
-
return setSelectedCatalog(value
|
|
35089
|
+
return setSelectedCatalog(value);
|
|
34600
35090
|
},
|
|
34601
35091
|
search: true,
|
|
34602
35092
|
style: {
|
|
@@ -34651,6 +35141,10 @@ function useModule (currentModules) {
|
|
|
34651
35141
|
var _useSearchParams = useSearchParams(),
|
|
34652
35142
|
_useSearchParams2 = _slicedToArray(_useSearchParams, 1),
|
|
34653
35143
|
searchParams = _useSearchParams2[0];
|
|
35144
|
+
var _useState = useState(),
|
|
35145
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
35146
|
+
selectedCatalog = _useState2[0],
|
|
35147
|
+
setSelectedCatalog = _useState2[1];
|
|
34654
35148
|
var menuItems = useMemo(function () {
|
|
34655
35149
|
return [{
|
|
34656
35150
|
key: 'series',
|
|
@@ -34757,7 +35251,8 @@ function useModule (currentModules) {
|
|
|
34757
35251
|
if (!catalogId) throw new Error('catalogId is required');
|
|
34758
35252
|
var updateNavigationModule = useCallback(function (currentCatalog) {
|
|
34759
35253
|
var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
|
|
34760
|
-
|
|
35254
|
+
setSelectedCatalog(currentCatalog);
|
|
35255
|
+
updateNavigation(currentCatalog._id, modules, '../');
|
|
34761
35256
|
}, [updateNavigation]);
|
|
34762
35257
|
useEffect(function () {
|
|
34763
35258
|
root.contentStore.updateAdditionalElement('catalogs', menuItems, currentModules);
|
|
@@ -34786,25 +35281,25 @@ function useModule (currentModules) {
|
|
|
34786
35281
|
updateNavigation: updateNavigationModule,
|
|
34787
35282
|
organizationId: organizationId,
|
|
34788
35283
|
apiConfig: apiConfig,
|
|
35284
|
+
selectedCatalog: selectedCatalog,
|
|
34789
35285
|
catalogId: catalogId
|
|
34790
35286
|
};
|
|
34791
35287
|
}
|
|
34792
35288
|
|
|
34793
35289
|
function Items(_ref) {
|
|
34794
35290
|
var organizationId = _ref.organizationId,
|
|
34795
|
-
|
|
35291
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
34796
35292
|
apiConfig = _ref.apiConfig,
|
|
34797
35293
|
selectedSerie = _ref.selectedSerie;
|
|
34798
|
-
useStore();
|
|
34799
35294
|
var _useTranslation = useTranslation(),
|
|
34800
35295
|
t = _useTranslation.t;
|
|
34801
35296
|
var applicationData = useMemo(function () {
|
|
34802
35297
|
return {
|
|
34803
35298
|
organizationId: organizationId,
|
|
34804
|
-
catalogId:
|
|
35299
|
+
catalogId: selectedCatalog._id,
|
|
34805
35300
|
selectedSerie: selectedSerie
|
|
34806
35301
|
};
|
|
34807
|
-
}, [organizationId,
|
|
35302
|
+
}, [organizationId, selectedCatalog, selectedSerie]);
|
|
34808
35303
|
var configuration = useMemo(function () {
|
|
34809
35304
|
var itemIdentification = [{
|
|
34810
35305
|
name: t('backoffice.idmCatalogEditor.items.label.catalogArticle'),
|
|
@@ -34917,48 +35412,7 @@ function Items(_ref) {
|
|
|
34917
35412
|
cellDataType: 'number'
|
|
34918
35413
|
}, {
|
|
34919
35414
|
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
34920
|
-
children: [
|
|
34921
|
-
headerName: 'backoffice.idmCatalog.general.label.shortText',
|
|
34922
|
-
marryChildren: true,
|
|
34923
|
-
children: [{
|
|
34924
|
-
field: 'shortText.DE',
|
|
34925
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
34926
|
-
isDictionary: true,
|
|
34927
|
-
required: true
|
|
34928
|
-
}, {
|
|
34929
|
-
field: 'shortText.EN',
|
|
34930
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
34931
|
-
isDictionary: true
|
|
34932
|
-
}, {
|
|
34933
|
-
field: 'shortText.FR',
|
|
34934
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
34935
|
-
isDictionary: true
|
|
34936
|
-
}, {
|
|
34937
|
-
field: 'shortText.IT',
|
|
34938
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
34939
|
-
isDictionary: true
|
|
34940
|
-
}]
|
|
34941
|
-
}, {
|
|
34942
|
-
headerName: 'backoffice.idmCatalog.general.label.planningAdvice',
|
|
34943
|
-
marryChildren: true,
|
|
34944
|
-
children: [{
|
|
34945
|
-
field: 'planningAdvice.DE',
|
|
34946
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
34947
|
-
isDictionary: true
|
|
34948
|
-
}, {
|
|
34949
|
-
field: 'planningAdvice.EN',
|
|
34950
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
34951
|
-
isDictionary: true
|
|
34952
|
-
}, {
|
|
34953
|
-
field: 'planningAdvice.FR',
|
|
34954
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
34955
|
-
isDictionary: true
|
|
34956
|
-
}, {
|
|
34957
|
-
field: 'planningAdvice.IT',
|
|
34958
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
34959
|
-
isDictionary: true
|
|
34960
|
-
}]
|
|
34961
|
-
}]
|
|
35415
|
+
children: [createTranslatedColumnConfig('shortText', 'backoffice.idmCatalog.general.label.shortText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), createTranslatedColumnConfig('planningAdvice', 'backoffice.idmCatalog.general.label.planningAdvice', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'])]
|
|
34962
35416
|
}, {
|
|
34963
35417
|
headerName: 'backoffice.idmCatalog.items.label.articleNumbers',
|
|
34964
35418
|
children: [{
|
|
@@ -35166,7 +35620,7 @@ function Items(_ref) {
|
|
|
35166
35620
|
suppressColumnsToolPanel: true
|
|
35167
35621
|
}]
|
|
35168
35622
|
};
|
|
35169
|
-
}, []);
|
|
35623
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35170
35624
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35171
35625
|
gridId: 'crud-grid_items',
|
|
35172
35626
|
applicationData: applicationData,
|
|
@@ -35178,6 +35632,7 @@ function TableItems () {
|
|
|
35178
35632
|
var _useTranslation = useTranslation(),
|
|
35179
35633
|
t = _useTranslation.t;
|
|
35180
35634
|
var _useModule = useModule(['items']),
|
|
35635
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35181
35636
|
catalogId = _useModule.catalogId,
|
|
35182
35637
|
updateNavigation = _useModule.updateNavigation,
|
|
35183
35638
|
apiConfig = _useModule.apiConfig,
|
|
@@ -35195,9 +35650,9 @@ function TableItems () {
|
|
|
35195
35650
|
},
|
|
35196
35651
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
35197
35652
|
organizationId: organizationId,
|
|
35198
|
-
|
|
35199
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35200
|
-
return updateNavigation(
|
|
35653
|
+
catalogId: catalogId,
|
|
35654
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
35655
|
+
return updateNavigation(catalog);
|
|
35201
35656
|
},
|
|
35202
35657
|
idmService: apiConfig.idmService
|
|
35203
35658
|
}), /*#__PURE__*/jsx(SeriesSelector, {
|
|
@@ -35208,9 +35663,9 @@ function TableItems () {
|
|
|
35208
35663
|
})]
|
|
35209
35664
|
})]
|
|
35210
35665
|
})
|
|
35211
|
-
}), selectedSerie && /*#__PURE__*/jsx(Items, {
|
|
35666
|
+
}), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Items, {
|
|
35212
35667
|
organizationId: organizationId,
|
|
35213
|
-
|
|
35668
|
+
selectedCatalog: selectedCatalog,
|
|
35214
35669
|
selectedSerie: selectedSerie._id,
|
|
35215
35670
|
apiConfig: apiConfig
|
|
35216
35671
|
})]
|
|
@@ -35222,6 +35677,7 @@ function TableSeries () {
|
|
|
35222
35677
|
t = _useTranslation.t;
|
|
35223
35678
|
var root = useStore();
|
|
35224
35679
|
var _useModule = useModule(['series']),
|
|
35680
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35225
35681
|
catalogId = _useModule.catalogId,
|
|
35226
35682
|
organizationId = _useModule.organizationId,
|
|
35227
35683
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35238,7 +35694,7 @@ function TableSeries () {
|
|
|
35238
35694
|
elementComponent: Items,
|
|
35239
35695
|
elementProps: {
|
|
35240
35696
|
organizationId: organizationId,
|
|
35241
|
-
|
|
35697
|
+
selectedCatalog: selectedCatalog,
|
|
35242
35698
|
selectedSerie: selectedSerie._id,
|
|
35243
35699
|
apiConfig: apiConfig
|
|
35244
35700
|
},
|
|
@@ -35302,28 +35758,7 @@ function TableSeries () {
|
|
|
35302
35758
|
headerName: 'backoffice.idmCatalog.series.label.serieNo',
|
|
35303
35759
|
required: true,
|
|
35304
35760
|
cellDataType: 'number'
|
|
35305
|
-
}, {
|
|
35306
|
-
headerName: 'backoffice.idmCatalog.series.label.seriesName',
|
|
35307
|
-
marryChildren: true,
|
|
35308
|
-
children: [{
|
|
35309
|
-
field: 'seriesName.DE',
|
|
35310
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35311
|
-
isDictionary: true,
|
|
35312
|
-
required: true
|
|
35313
|
-
}, {
|
|
35314
|
-
field: 'seriesName.EN',
|
|
35315
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35316
|
-
isDictionary: true
|
|
35317
|
-
}, {
|
|
35318
|
-
field: 'seriesName.FR',
|
|
35319
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35320
|
-
isDictionary: true
|
|
35321
|
-
}, {
|
|
35322
|
-
field: 'seriesName.IT',
|
|
35323
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35324
|
-
isDictionary: true
|
|
35325
|
-
}]
|
|
35326
|
-
}, {
|
|
35761
|
+
}, createTranslatedColumnConfig('seriesName', 'backoffice.idmCatalog.series.label.seriesName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
35327
35762
|
field: 'sequenceNo',
|
|
35328
35763
|
headerName: 'backoffice.idmCatalog.series.label.sequenceNo',
|
|
35329
35764
|
required: true,
|
|
@@ -35337,27 +35772,7 @@ function TableSeries () {
|
|
|
35337
35772
|
enumData: purchaseRetailId,
|
|
35338
35773
|
displayLabelTemplate: '${name} (${value})'
|
|
35339
35774
|
}
|
|
35340
|
-
}, {
|
|
35341
|
-
headerName: 'backoffice.idmCatalog.series.label.seriesFullText',
|
|
35342
|
-
marryChildren: true,
|
|
35343
|
-
children: [{
|
|
35344
|
-
field: 'seriesFullText.DE',
|
|
35345
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35346
|
-
isDictionary: true
|
|
35347
|
-
}, {
|
|
35348
|
-
field: 'seriesFullText.EN',
|
|
35349
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35350
|
-
isDictionary: true
|
|
35351
|
-
}, {
|
|
35352
|
-
field: 'seriesFullText.FR',
|
|
35353
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35354
|
-
isDictionary: true
|
|
35355
|
-
}, {
|
|
35356
|
-
field: 'seriesFullText.IT',
|
|
35357
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35358
|
-
isDictionary: true
|
|
35359
|
-
}]
|
|
35360
|
-
}, {
|
|
35775
|
+
}, createTranslatedColumnConfig('seriesFullText', 'backoffice.idmCatalog.series.label.seriesFullText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE']), {
|
|
35361
35776
|
field: 'decisionRefs',
|
|
35362
35777
|
headerName: 'backoffice.idmCatalog.series.label.decisionRefs',
|
|
35363
35778
|
cellDataType: 'lookup',
|
|
@@ -35427,7 +35842,7 @@ function TableSeries () {
|
|
|
35427
35842
|
defaultValue: '${catalogId}'
|
|
35428
35843
|
}]
|
|
35429
35844
|
};
|
|
35430
|
-
}, []);
|
|
35845
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35431
35846
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
35432
35847
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
35433
35848
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -35437,7 +35852,7 @@ function TableSeries () {
|
|
|
35437
35852
|
},
|
|
35438
35853
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
35439
35854
|
organizationId: organizationId,
|
|
35440
|
-
|
|
35855
|
+
catalogId: catalogId,
|
|
35441
35856
|
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
35442
35857
|
return updateNavigation(id);
|
|
35443
35858
|
},
|
|
@@ -35445,7 +35860,7 @@ function TableSeries () {
|
|
|
35445
35860
|
})
|
|
35446
35861
|
})]
|
|
35447
35862
|
})
|
|
35448
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
35863
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
35449
35864
|
gridId: 'crud-grid_series',
|
|
35450
35865
|
applicationData: applicationData,
|
|
35451
35866
|
hooks: hooks,
|
|
@@ -35456,16 +35871,16 @@ function TableSeries () {
|
|
|
35456
35871
|
|
|
35457
35872
|
function Options(_ref) {
|
|
35458
35873
|
var organizationId = _ref.organizationId,
|
|
35459
|
-
|
|
35874
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
35460
35875
|
selectedFeature = _ref.selectedFeature,
|
|
35461
35876
|
apiConfig = _ref.apiConfig;
|
|
35462
35877
|
var applicationData = useMemo(function () {
|
|
35463
35878
|
return {
|
|
35464
35879
|
organizationId: organizationId,
|
|
35465
|
-
catalogId:
|
|
35880
|
+
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
35466
35881
|
selectedFeature: selectedFeature
|
|
35467
35882
|
};
|
|
35468
|
-
}, [organizationId,
|
|
35883
|
+
}, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedFeature]);
|
|
35469
35884
|
var configuration = useMemo(function () {
|
|
35470
35885
|
return {
|
|
35471
35886
|
type: 'dotnetSSM',
|
|
@@ -35487,54 +35902,10 @@ function Options(_ref) {
|
|
|
35487
35902
|
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
35488
35903
|
field: 'sequenceNo',
|
|
35489
35904
|
cellDataType: 'number'
|
|
35490
|
-
}, {
|
|
35491
|
-
headerName: 'backoffice.idmCatalog.
|
|
35492
|
-
|
|
35493
|
-
|
|
35494
|
-
marryChildren: true,
|
|
35495
|
-
children: [{
|
|
35496
|
-
field: 'optionText.DE',
|
|
35497
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35498
|
-
isDictionary: true,
|
|
35499
|
-
required: true
|
|
35500
|
-
}, {
|
|
35501
|
-
field: 'optionText.EN',
|
|
35502
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35503
|
-
isDictionary: true
|
|
35504
|
-
}, {
|
|
35505
|
-
field: 'optionText.FR',
|
|
35506
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35507
|
-
isDictionary: true
|
|
35508
|
-
}, {
|
|
35509
|
-
field: 'optionText.IT',
|
|
35510
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35511
|
-
isDictionary: true
|
|
35512
|
-
}]
|
|
35513
|
-
}, {
|
|
35514
|
-
headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
|
|
35515
|
-
marryChildren: true,
|
|
35516
|
-
children: [{
|
|
35517
|
-
field: 'optionCommentText.DE',
|
|
35518
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35519
|
-
isDictionary: true
|
|
35520
|
-
}, {
|
|
35521
|
-
field: 'optionCommentText.EN',
|
|
35522
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35523
|
-
isDictionary: true
|
|
35524
|
-
}, {
|
|
35525
|
-
field: 'optionCommentText.FR',
|
|
35526
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35527
|
-
isDictionary: true
|
|
35528
|
-
}, {
|
|
35529
|
-
field: 'optionCommentText.IT',
|
|
35530
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35531
|
-
isDictionary: true
|
|
35532
|
-
}]
|
|
35533
|
-
}, {
|
|
35534
|
-
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
35535
|
-
field: 'optionFreeText',
|
|
35536
|
-
cellDataType: 'boolean'
|
|
35537
|
-
}]
|
|
35905
|
+
}, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE']), {
|
|
35906
|
+
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
35907
|
+
field: 'optionFreeText',
|
|
35908
|
+
cellDataType: 'boolean'
|
|
35538
35909
|
}, {
|
|
35539
35910
|
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
35540
35911
|
children: [{
|
|
@@ -35598,7 +35969,7 @@ function Options(_ref) {
|
|
|
35598
35969
|
editable: false
|
|
35599
35970
|
}]
|
|
35600
35971
|
};
|
|
35601
|
-
}, []);
|
|
35972
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35602
35973
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35603
35974
|
gridId: 'crud-grid_options',
|
|
35604
35975
|
applicationData: applicationData,
|
|
@@ -35608,7 +35979,7 @@ function Options(_ref) {
|
|
|
35608
35979
|
|
|
35609
35980
|
function Features(_ref) {
|
|
35610
35981
|
var organizationId = _ref.organizationId,
|
|
35611
|
-
|
|
35982
|
+
selectedCatalog = _ref.selectedCatalog,
|
|
35612
35983
|
featureClassId = _ref.featureClassId,
|
|
35613
35984
|
apiConfig = _ref.apiConfig,
|
|
35614
35985
|
hooks = _ref.hooks;
|
|
@@ -35616,11 +35987,11 @@ function Features(_ref) {
|
|
|
35616
35987
|
t = _useTranslation.t;
|
|
35617
35988
|
var applicationData = useMemo(function () {
|
|
35618
35989
|
return {
|
|
35619
|
-
catalogId:
|
|
35990
|
+
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
|
35620
35991
|
organizationId: organizationId,
|
|
35621
35992
|
featureClassId: featureClassId
|
|
35622
35993
|
};
|
|
35623
|
-
}, [
|
|
35994
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, featureClassId, organizationId]);
|
|
35624
35995
|
var apiInterface = useMemo(function () {
|
|
35625
35996
|
return featureClassId ? {
|
|
35626
35997
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${featureClassId}/features',
|
|
@@ -35691,28 +36062,7 @@ function Features(_ref) {
|
|
|
35691
36062
|
headerName: 'backoffice.idmCatalog.features.label.featureNo',
|
|
35692
36063
|
required: true,
|
|
35693
36064
|
unique: true
|
|
35694
|
-
}]), [{
|
|
35695
|
-
headerName: 'backoffice.idmCatalog.features.label.featureText',
|
|
35696
|
-
marryChildren: true,
|
|
35697
|
-
children: [{
|
|
35698
|
-
field: 'featureText.DE',
|
|
35699
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
35700
|
-
isDictionary: true,
|
|
35701
|
-
required: true
|
|
35702
|
-
}, {
|
|
35703
|
-
field: 'featureText.EN',
|
|
35704
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
35705
|
-
isDictionary: true
|
|
35706
|
-
}, {
|
|
35707
|
-
field: 'featureText.FR',
|
|
35708
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
35709
|
-
isDictionary: true
|
|
35710
|
-
}, {
|
|
35711
|
-
field: 'featureText.IT',
|
|
35712
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
35713
|
-
isDictionary: true
|
|
35714
|
-
}]
|
|
35715
|
-
}, {
|
|
36065
|
+
}]), [createTranslatedColumnConfig('featureText', 'backoffice.idmCatalog.features.label.featureText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
35716
36066
|
field: 'sequenceNo',
|
|
35717
36067
|
headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
|
|
35718
36068
|
required: true,
|
|
@@ -35779,7 +36129,7 @@ function Features(_ref) {
|
|
|
35779
36129
|
defaultValue: '${catalogId}'
|
|
35780
36130
|
}])
|
|
35781
36131
|
};
|
|
35782
|
-
}, [featureClassId, apiInterface]);
|
|
36132
|
+
}, [featureClassId, apiInterface, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
35783
36133
|
return /*#__PURE__*/jsx(Spreadsheet, {
|
|
35784
36134
|
gridId: 'crud-grid_features' + (featureClassId ? '_featureClass' : ''),
|
|
35785
36135
|
applicationData: applicationData,
|
|
@@ -35793,6 +36143,7 @@ function TableFeatures () {
|
|
|
35793
36143
|
t = _useTranslation.t;
|
|
35794
36144
|
var root = useStore();
|
|
35795
36145
|
var _useModule = useModule(['features']),
|
|
36146
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35796
36147
|
catalogId = _useModule.catalogId,
|
|
35797
36148
|
organizationId = _useModule.organizationId,
|
|
35798
36149
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35809,7 +36160,7 @@ function TableFeatures () {
|
|
|
35809
36160
|
elementComponent: Options,
|
|
35810
36161
|
elementProps: {
|
|
35811
36162
|
organizationId: organizationId,
|
|
35812
|
-
|
|
36163
|
+
selectedCatalog: selectedCatalog,
|
|
35813
36164
|
selectedFeature: selectedFeature._id,
|
|
35814
36165
|
apiConfig: apiConfig
|
|
35815
36166
|
},
|
|
@@ -35847,17 +36198,17 @@ function TableFeatures () {
|
|
|
35847
36198
|
},
|
|
35848
36199
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
35849
36200
|
organizationId: organizationId,
|
|
35850
|
-
|
|
35851
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35852
|
-
return updateNavigation(
|
|
36201
|
+
catalogId: catalogId,
|
|
36202
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36203
|
+
return updateNavigation(catalog);
|
|
35853
36204
|
},
|
|
35854
36205
|
idmService: apiConfig.idmService
|
|
35855
36206
|
})
|
|
35856
36207
|
})]
|
|
35857
36208
|
})
|
|
35858
|
-
}), /*#__PURE__*/jsx(Features, {
|
|
36209
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Features, {
|
|
35859
36210
|
organizationId: organizationId,
|
|
35860
|
-
|
|
36211
|
+
selectedCatalog: selectedCatalog,
|
|
35861
36212
|
apiConfig: apiConfig,
|
|
35862
36213
|
hooks: hooks
|
|
35863
36214
|
})]
|
|
@@ -35900,6 +36251,7 @@ function TableOptions () {
|
|
|
35900
36251
|
var _useTranslation = useTranslation(),
|
|
35901
36252
|
t = _useTranslation.t;
|
|
35902
36253
|
var _useModule = useModule(['options']),
|
|
36254
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35903
36255
|
catalogId = _useModule.catalogId,
|
|
35904
36256
|
updateNavigation = _useModule.updateNavigation,
|
|
35905
36257
|
apiConfig = _useModule.apiConfig,
|
|
@@ -35917,9 +36269,9 @@ function TableOptions () {
|
|
|
35917
36269
|
},
|
|
35918
36270
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
35919
36271
|
organizationId: organizationId,
|
|
35920
|
-
|
|
35921
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
35922
|
-
return updateNavigation(
|
|
36272
|
+
catalogId: catalogId,
|
|
36273
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36274
|
+
return updateNavigation(catalog);
|
|
35923
36275
|
},
|
|
35924
36276
|
idmService: apiConfig.idmService
|
|
35925
36277
|
}), /*#__PURE__*/jsx(FeatureSelector, {
|
|
@@ -35930,9 +36282,9 @@ function TableOptions () {
|
|
|
35930
36282
|
})]
|
|
35931
36283
|
})]
|
|
35932
36284
|
})
|
|
35933
|
-
}), selectedFeature && /*#__PURE__*/jsx(Options, {
|
|
36285
|
+
}), selectedFeature && selectedCatalog && /*#__PURE__*/jsx(Options, {
|
|
35934
36286
|
organizationId: organizationId,
|
|
35935
|
-
|
|
36287
|
+
selectedCatalog: selectedCatalog,
|
|
35936
36288
|
selectedFeature: selectedFeature._id,
|
|
35937
36289
|
apiConfig: apiConfig
|
|
35938
36290
|
})]
|
|
@@ -35944,6 +36296,7 @@ function TableFeatureClasses () {
|
|
|
35944
36296
|
t = _useTranslation.t;
|
|
35945
36297
|
var root = useStore();
|
|
35946
36298
|
var _useModule = useModule(['featureclasses']),
|
|
36299
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
35947
36300
|
catalogId = _useModule.catalogId,
|
|
35948
36301
|
organizationId = _useModule.organizationId,
|
|
35949
36302
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -35960,7 +36313,7 @@ function TableFeatureClasses () {
|
|
|
35960
36313
|
elementComponent: Features,
|
|
35961
36314
|
elementProps: {
|
|
35962
36315
|
organizationId: organizationId,
|
|
35963
|
-
|
|
36316
|
+
selectedCatalog: selectedCatalog,
|
|
35964
36317
|
apiConfig: apiConfig,
|
|
35965
36318
|
featureClassId: selectedFeatureClass._id
|
|
35966
36319
|
},
|
|
@@ -35971,7 +36324,7 @@ function TableFeatureClasses () {
|
|
|
35971
36324
|
} else {
|
|
35972
36325
|
root.contentStore.bottomToolBar.tools = [];
|
|
35973
36326
|
}
|
|
35974
|
-
}, [selectedFeatureClass]);
|
|
36327
|
+
}, [selectedFeatureClass, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id]);
|
|
35975
36328
|
useEffect(function () {
|
|
35976
36329
|
//remove features table, when featureclasses are unmounted
|
|
35977
36330
|
return function () {
|
|
@@ -35983,7 +36336,7 @@ function TableFeatureClasses () {
|
|
|
35983
36336
|
catalogId: catalogId,
|
|
35984
36337
|
organizationId: organizationId
|
|
35985
36338
|
};
|
|
35986
|
-
}, [catalogId]);
|
|
36339
|
+
}, [catalogId, organizationId]);
|
|
35987
36340
|
var hooks = useMemo(function () {
|
|
35988
36341
|
return {
|
|
35989
36342
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -36011,27 +36364,7 @@ function TableFeatureClasses () {
|
|
|
36011
36364
|
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
|
|
36012
36365
|
required: true,
|
|
36013
36366
|
cellDataType: 'number'
|
|
36014
|
-
}, {
|
|
36015
|
-
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
|
|
36016
|
-
marryChildren: true,
|
|
36017
|
-
children: [{
|
|
36018
|
-
field: 'featureClassName.DE',
|
|
36019
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36020
|
-
isDictionary: true
|
|
36021
|
-
}, {
|
|
36022
|
-
field: 'featureClassName.EN',
|
|
36023
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36024
|
-
isDictionary: true
|
|
36025
|
-
}, {
|
|
36026
|
-
field: 'featureClassName.FR',
|
|
36027
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36028
|
-
isDictionary: true
|
|
36029
|
-
}, {
|
|
36030
|
-
field: 'featureClassName.IT',
|
|
36031
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36032
|
-
isDictionary: true
|
|
36033
|
-
}]
|
|
36034
|
-
}, {
|
|
36367
|
+
}, createTranslatedColumnConfig('featureClassName', 'backoffice.idmCatalog.featureclasses.label.featureClassName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), {
|
|
36035
36368
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
36036
36369
|
field: 'lastUpdatedDate',
|
|
36037
36370
|
cellDataType: 'dateString',
|
|
@@ -36077,7 +36410,7 @@ function TableFeatureClasses () {
|
|
|
36077
36410
|
defaultValue: {}
|
|
36078
36411
|
}]
|
|
36079
36412
|
};
|
|
36080
|
-
}, []);
|
|
36413
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
36081
36414
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
36082
36415
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
36083
36416
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -36086,16 +36419,16 @@ function TableFeatureClasses () {
|
|
|
36086
36419
|
"float": 'right'
|
|
36087
36420
|
},
|
|
36088
36421
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
36089
|
-
|
|
36090
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
36091
|
-
return updateNavigation(
|
|
36422
|
+
catalogId: catalogId,
|
|
36423
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
36424
|
+
return updateNavigation(catalog);
|
|
36092
36425
|
},
|
|
36093
36426
|
idmService: apiConfig.idmService,
|
|
36094
36427
|
organizationId: organizationId
|
|
36095
36428
|
})
|
|
36096
36429
|
})]
|
|
36097
36430
|
})
|
|
36098
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
36431
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
36099
36432
|
gridId: 'crud-grid_featureclasses',
|
|
36100
36433
|
applicationData: applicationData,
|
|
36101
36434
|
hooks: hooks,
|
|
@@ -36439,7 +36772,6 @@ function OptionCombinations(_ref8) {
|
|
|
36439
36772
|
field: 'featureRefs',
|
|
36440
36773
|
editable: false,
|
|
36441
36774
|
filter: false,
|
|
36442
|
-
lockPosition: 'left',
|
|
36443
36775
|
headerComponent: 'editColumnHeader',
|
|
36444
36776
|
headerComponentParams: {
|
|
36445
36777
|
onChange: addFeature,
|
|
@@ -36536,6 +36868,7 @@ function TableDecisions () {
|
|
|
36536
36868
|
var root = useStore();
|
|
36537
36869
|
var spreadsheetRef = useRef(null);
|
|
36538
36870
|
var _useModule = useModule(['decisions']),
|
|
36871
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
36539
36872
|
catalogId = _useModule.catalogId,
|
|
36540
36873
|
organizationId = _useModule.organizationId,
|
|
36541
36874
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -36582,7 +36915,7 @@ function TableDecisions () {
|
|
|
36582
36915
|
catalogId: catalogId,
|
|
36583
36916
|
organizationId: organizationId
|
|
36584
36917
|
};
|
|
36585
|
-
}, [catalogId]);
|
|
36918
|
+
}, [catalogId, organizationId]);
|
|
36586
36919
|
var hooks = useMemo(function () {
|
|
36587
36920
|
return {
|
|
36588
36921
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -36633,28 +36966,7 @@ function TableDecisions () {
|
|
|
36633
36966
|
headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
|
|
36634
36967
|
required: true,
|
|
36635
36968
|
cellDataType: 'number'
|
|
36636
|
-
}, {
|
|
36637
|
-
headerName: 'backoffice.idmCatalog.decisions.label.decisionText',
|
|
36638
|
-
marryChildren: true,
|
|
36639
|
-
children: [{
|
|
36640
|
-
field: 'decisionText.DE',
|
|
36641
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36642
|
-
isDictionary: true,
|
|
36643
|
-
required: true
|
|
36644
|
-
}, {
|
|
36645
|
-
field: 'decisionText.EN',
|
|
36646
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36647
|
-
isDictionary: true
|
|
36648
|
-
}, {
|
|
36649
|
-
field: 'decisionText.FR',
|
|
36650
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36651
|
-
isDictionary: true
|
|
36652
|
-
}, {
|
|
36653
|
-
field: 'decisionText.IT',
|
|
36654
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36655
|
-
isDictionary: true
|
|
36656
|
-
}]
|
|
36657
|
-
}, {
|
|
36969
|
+
}, createTranslatedColumnConfig('decisionText', 'backoffice.idmCatalog.decisions.label.decisionText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
36658
36970
|
field: 'comment',
|
|
36659
36971
|
headerName: 'backoffice.idmCatalog.decisions.label.comment'
|
|
36660
36972
|
}, {
|
|
@@ -36738,7 +37050,7 @@ function TableDecisions () {
|
|
|
36738
37050
|
defaultValue: '${catalogId}'
|
|
36739
37051
|
}]
|
|
36740
37052
|
};
|
|
36741
|
-
}, []);
|
|
37053
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
36742
37054
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
36743
37055
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
36744
37056
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -36747,16 +37059,16 @@ function TableDecisions () {
|
|
|
36747
37059
|
"float": 'right'
|
|
36748
37060
|
},
|
|
36749
37061
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
36750
|
-
|
|
36751
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
36752
|
-
return updateNavigation(
|
|
37062
|
+
catalogId: catalogId,
|
|
37063
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
37064
|
+
return updateNavigation(catalog);
|
|
36753
37065
|
},
|
|
36754
37066
|
idmService: apiConfig.idmService,
|
|
36755
37067
|
organizationId: organizationId
|
|
36756
37068
|
})
|
|
36757
37069
|
})]
|
|
36758
37070
|
})
|
|
36759
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
37071
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
36760
37072
|
gridId: 'crud-grid_decisions',
|
|
36761
37073
|
ref: spreadsheetRef,
|
|
36762
37074
|
applicationData: applicationData,
|
|
@@ -36768,97 +37080,21 @@ function TableDecisions () {
|
|
|
36768
37080
|
|
|
36769
37081
|
function TableDetailInfos () {
|
|
36770
37082
|
var _useTranslation = useTranslation(),
|
|
36771
|
-
t = _useTranslation.t
|
|
36772
|
-
|
|
37083
|
+
t = _useTranslation.t,
|
|
37084
|
+
i18n = _useTranslation.i18n;
|
|
36773
37085
|
var _useModule = useModule(['detailinfos']),
|
|
37086
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
36774
37087
|
catalogId = _useModule.catalogId,
|
|
36775
37088
|
organizationId = _useModule.organizationId,
|
|
36776
37089
|
updateNavigation = _useModule.updateNavigation,
|
|
36777
37090
|
apiConfig = _useModule.apiConfig;
|
|
36778
|
-
var _React$useState = React.useState(),
|
|
36779
|
-
_React$useState2 = _slicedToArray(_React$useState, 2);
|
|
36780
|
-
_React$useState2[0];
|
|
36781
|
-
var setSelectedDetailInfo = _React$useState2[1];
|
|
36782
37091
|
var applicationData = useMemo(function () {
|
|
36783
37092
|
return {
|
|
36784
37093
|
catalogId: catalogId,
|
|
36785
37094
|
organizationId: organizationId
|
|
36786
37095
|
};
|
|
36787
|
-
}, [catalogId]);
|
|
36788
|
-
var hooks = useMemo(function () {
|
|
36789
|
-
return {
|
|
36790
|
-
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
36791
|
-
if (event.selection.length == 1) {
|
|
36792
|
-
setSelectedDetailInfo(event.selection[0].node.data);
|
|
36793
|
-
} else {
|
|
36794
|
-
setSelectedDetailInfo(null);
|
|
36795
|
-
}
|
|
36796
|
-
}
|
|
36797
|
-
};
|
|
36798
|
-
}, []);
|
|
37096
|
+
}, [catalogId, organizationId]);
|
|
36799
37097
|
var configuration = useMemo(function () {
|
|
36800
|
-
var layerId = [{
|
|
36801
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l10'),
|
|
36802
|
-
value: 10
|
|
36803
|
-
}, {
|
|
36804
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l20'),
|
|
36805
|
-
value: 20
|
|
36806
|
-
}, {
|
|
36807
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l30'),
|
|
36808
|
-
value: 30
|
|
36809
|
-
}, {
|
|
36810
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l40'),
|
|
36811
|
-
value: 40
|
|
36812
|
-
}, {
|
|
36813
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l50'),
|
|
36814
|
-
value: 50
|
|
36815
|
-
}, {
|
|
36816
|
-
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l60'),
|
|
36817
|
-
value: 60
|
|
36818
|
-
}];
|
|
36819
|
-
var infoType = [{
|
|
36820
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i1'),
|
|
36821
|
-
value: 1
|
|
36822
|
-
}, {
|
|
36823
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i2'),
|
|
36824
|
-
value: 2
|
|
36825
|
-
}, {
|
|
36826
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i3'),
|
|
36827
|
-
value: 3
|
|
36828
|
-
}, {
|
|
36829
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i4'),
|
|
36830
|
-
value: 4
|
|
36831
|
-
}, {
|
|
36832
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i5'),
|
|
36833
|
-
value: 5
|
|
36834
|
-
}, {
|
|
36835
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i6'),
|
|
36836
|
-
value: 6
|
|
36837
|
-
}, {
|
|
36838
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i7'),
|
|
36839
|
-
value: 7
|
|
36840
|
-
}, {
|
|
36841
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i8'),
|
|
36842
|
-
value: 8
|
|
36843
|
-
}, {
|
|
36844
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i9'),
|
|
36845
|
-
value: 9
|
|
36846
|
-
}, {
|
|
36847
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i10'),
|
|
36848
|
-
value: 10
|
|
36849
|
-
}, {
|
|
36850
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i11'),
|
|
36851
|
-
value: 11
|
|
36852
|
-
}, {
|
|
36853
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i12'),
|
|
36854
|
-
value: 12
|
|
36855
|
-
}, {
|
|
36856
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i13'),
|
|
36857
|
-
value: 13
|
|
36858
|
-
}, {
|
|
36859
|
-
name: t('backoffice.idmCatalog.detailinfos.label.infotype.i14'),
|
|
36860
|
-
value: 14
|
|
36861
|
-
}];
|
|
36862
37098
|
return {
|
|
36863
37099
|
type: 'dotnetSSM',
|
|
36864
37100
|
apiInterface: {
|
|
@@ -36871,67 +37107,7 @@ function TableDetailInfos () {
|
|
|
36871
37107
|
headerName: 'backoffice.idmCatalog.detailinfos.label.detailInfoNo',
|
|
36872
37108
|
required: true,
|
|
36873
37109
|
cellDataType: 'number'
|
|
36874
|
-
}, {
|
|
36875
|
-
headerName: 'backoffice.idmCatalog.detailinfos.label.externalName',
|
|
36876
|
-
marryChildren: true,
|
|
36877
|
-
children: [{
|
|
36878
|
-
field: 'externalName.DE',
|
|
36879
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36880
|
-
isDictionary: true
|
|
36881
|
-
}, {
|
|
36882
|
-
field: 'externalName.EN',
|
|
36883
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36884
|
-
isDictionary: true
|
|
36885
|
-
}, {
|
|
36886
|
-
field: 'externalName.FR',
|
|
36887
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36888
|
-
isDictionary: true
|
|
36889
|
-
}, {
|
|
36890
|
-
field: 'externalName.IT',
|
|
36891
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36892
|
-
isDictionary: true
|
|
36893
|
-
}]
|
|
36894
|
-
}, {
|
|
36895
|
-
headerName: 'backoffice.idmCatalog.detailinfos.label.internalName',
|
|
36896
|
-
marryChildren: true,
|
|
36897
|
-
children: [{
|
|
36898
|
-
field: 'internalName.DE',
|
|
36899
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36900
|
-
isDictionary: true
|
|
36901
|
-
}, {
|
|
36902
|
-
field: 'internalName.EN',
|
|
36903
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36904
|
-
isDictionary: true
|
|
36905
|
-
}, {
|
|
36906
|
-
field: 'internalName.FR',
|
|
36907
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36908
|
-
isDictionary: true
|
|
36909
|
-
}, {
|
|
36910
|
-
field: 'internalName.IT',
|
|
36911
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36912
|
-
isDictionary: true
|
|
36913
|
-
}]
|
|
36914
|
-
}, {
|
|
36915
|
-
headerName: 'backoffice.idmCatalog.detailinfos.label.toolTip',
|
|
36916
|
-
marryChildren: true,
|
|
36917
|
-
children: [{
|
|
36918
|
-
field: 'toolTip.DE',
|
|
36919
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36920
|
-
isDictionary: true
|
|
36921
|
-
}, {
|
|
36922
|
-
field: 'toolTip.EN',
|
|
36923
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
36924
|
-
isDictionary: true
|
|
36925
|
-
}, {
|
|
36926
|
-
field: 'toolTip.FR',
|
|
36927
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
36928
|
-
isDictionary: true
|
|
36929
|
-
}, {
|
|
36930
|
-
field: 'toolTip.IT',
|
|
36931
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
36932
|
-
isDictionary: true
|
|
36933
|
-
}]
|
|
36934
|
-
}, {
|
|
37110
|
+
}, createTranslatedColumnConfig('externalName', 'backoffice.idmCatalog.detailinfos.label.externalName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), createTranslatedColumnConfig('internalName', 'backoffice.idmCatalog.detailinfos.label.internalName', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), createTranslatedColumnConfig('toolTip', 'backoffice.idmCatalog.detailinfos.label.toolTip', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], false), {
|
|
36935
37111
|
field: 'url',
|
|
36936
37112
|
headerName: 'backoffice.idmCatalog.detailinfos.label.url',
|
|
36937
37113
|
required: true
|
|
@@ -36951,7 +37127,7 @@ function TableDetailInfos () {
|
|
|
36951
37127
|
required: true,
|
|
36952
37128
|
cellDataType: 'enum',
|
|
36953
37129
|
customParams: {
|
|
36954
|
-
enumData:
|
|
37130
|
+
enumData: getInfoTypeKey(t),
|
|
36955
37131
|
displayLabelTemplate: '${name} (${value})'
|
|
36956
37132
|
}
|
|
36957
37133
|
}, {
|
|
@@ -36959,7 +37135,7 @@ function TableDetailInfos () {
|
|
|
36959
37135
|
headerName: 'backoffice.idmCatalog.detailinfos.label.layer',
|
|
36960
37136
|
cellDataType: 'enum',
|
|
36961
37137
|
customParams: {
|
|
36962
|
-
enumData:
|
|
37138
|
+
enumData: getLayerIdKey(t),
|
|
36963
37139
|
displayLabelTemplate: '${name} (${value})'
|
|
36964
37140
|
}
|
|
36965
37141
|
}, {
|
|
@@ -36969,7 +37145,7 @@ function TableDetailInfos () {
|
|
|
36969
37145
|
editable: true,
|
|
36970
37146
|
required: true,
|
|
36971
37147
|
customParams: {
|
|
36972
|
-
enumData:
|
|
37148
|
+
enumData: getLanguageKey(t),
|
|
36973
37149
|
multiple: false
|
|
36974
37150
|
},
|
|
36975
37151
|
defaultValue: 'DE'
|
|
@@ -37025,7 +37201,7 @@ function TableDetailInfos () {
|
|
|
37025
37201
|
defaultValue: '${catalogId}'
|
|
37026
37202
|
}]
|
|
37027
37203
|
};
|
|
37028
|
-
}, []);
|
|
37204
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, i18n.language]);
|
|
37029
37205
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
37030
37206
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
37031
37207
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -37035,18 +37211,17 @@ function TableDetailInfos () {
|
|
|
37035
37211
|
},
|
|
37036
37212
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37037
37213
|
organizationId: organizationId,
|
|
37038
|
-
|
|
37039
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37040
|
-
return updateNavigation(
|
|
37214
|
+
catalogId: catalogId,
|
|
37215
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
37216
|
+
return updateNavigation(catalog);
|
|
37041
37217
|
},
|
|
37042
37218
|
idmService: apiConfig.idmService
|
|
37043
37219
|
})
|
|
37044
37220
|
})]
|
|
37045
37221
|
})
|
|
37046
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
37047
|
-
gridId: 'crud-
|
|
37222
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37223
|
+
gridId: 'crud-grid_detailinfos',
|
|
37048
37224
|
applicationData: applicationData,
|
|
37049
|
-
hooks: hooks,
|
|
37050
37225
|
configuration: configuration
|
|
37051
37226
|
})]
|
|
37052
37227
|
});
|
|
@@ -37262,10 +37437,11 @@ function TablePartlists () {
|
|
|
37262
37437
|
t = _useTranslation.t;
|
|
37263
37438
|
var root = useStore();
|
|
37264
37439
|
var _useModule = useModule(['partlists']),
|
|
37440
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
37265
37441
|
catalogId = _useModule.catalogId,
|
|
37266
|
-
organizationId = _useModule.organizationId,
|
|
37267
37442
|
updateNavigation = _useModule.updateNavigation,
|
|
37268
|
-
apiConfig = _useModule.apiConfig
|
|
37443
|
+
apiConfig = _useModule.apiConfig,
|
|
37444
|
+
organizationId = _useModule.organizationId;
|
|
37269
37445
|
var _React$useState = React.useState(),
|
|
37270
37446
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37271
37447
|
selectedPartlist = _React$useState2[0],
|
|
@@ -37298,10 +37474,10 @@ function TablePartlists () {
|
|
|
37298
37474
|
}, []);
|
|
37299
37475
|
var applicationData = useMemo(function () {
|
|
37300
37476
|
return {
|
|
37301
|
-
|
|
37302
|
-
|
|
37477
|
+
organizationId: organizationId,
|
|
37478
|
+
catalogId: catalogId
|
|
37303
37479
|
};
|
|
37304
|
-
}, [
|
|
37480
|
+
}, [organizationId, catalogId]);
|
|
37305
37481
|
var hooks = useMemo(function () {
|
|
37306
37482
|
return {
|
|
37307
37483
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -37382,16 +37558,16 @@ function TablePartlists () {
|
|
|
37382
37558
|
"float": 'right'
|
|
37383
37559
|
},
|
|
37384
37560
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37385
|
-
|
|
37386
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37387
|
-
return updateNavigation(
|
|
37561
|
+
catalogId: catalogId,
|
|
37562
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
37563
|
+
return updateNavigation(catalog);
|
|
37388
37564
|
},
|
|
37389
37565
|
idmService: apiConfig.idmService,
|
|
37390
37566
|
organizationId: organizationId
|
|
37391
37567
|
})
|
|
37392
37568
|
})]
|
|
37393
37569
|
})
|
|
37394
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
37570
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37395
37571
|
gridId: 'crud-grid_partlists',
|
|
37396
37572
|
applicationData: applicationData,
|
|
37397
37573
|
hooks: hooks,
|
|
@@ -37497,7 +37673,6 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
|
37497
37673
|
field: 'featureNos',
|
|
37498
37674
|
editable: false,
|
|
37499
37675
|
filter: false,
|
|
37500
|
-
lockPosition: 'left',
|
|
37501
37676
|
headerComponent: 'editColumnHeader',
|
|
37502
37677
|
headerComponentParams: {
|
|
37503
37678
|
onChange: addFeature,
|
|
@@ -37678,7 +37853,6 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
|
37678
37853
|
field: 'featureNos',
|
|
37679
37854
|
editable: false,
|
|
37680
37855
|
filter: false,
|
|
37681
|
-
lockPosition: 'left',
|
|
37682
37856
|
headerComponent: 'editColumnHeader',
|
|
37683
37857
|
headerComponentParams: {
|
|
37684
37858
|
onChange: addFeature,
|
|
@@ -37778,6 +37952,7 @@ function TablePriceFeatureGroups () {
|
|
|
37778
37952
|
var root = useStore();
|
|
37779
37953
|
var spreadsheetRef = useRef(null);
|
|
37780
37954
|
var _useModule = useModule(['pricefeaturegroups']),
|
|
37955
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
37781
37956
|
catalogId = _useModule.catalogId,
|
|
37782
37957
|
organizationId = _useModule.organizationId,
|
|
37783
37958
|
updateNavigation = _useModule.updateNavigation,
|
|
@@ -37846,7 +38021,7 @@ function TablePriceFeatureGroups () {
|
|
|
37846
38021
|
catalogId: catalogId,
|
|
37847
38022
|
organizationId: organizationId
|
|
37848
38023
|
};
|
|
37849
|
-
}, [catalogId]);
|
|
38024
|
+
}, [catalogId, organizationId]);
|
|
37850
38025
|
var hooks = useMemo(function () {
|
|
37851
38026
|
return {
|
|
37852
38027
|
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
|
@@ -37887,28 +38062,7 @@ function TablePriceFeatureGroups () {
|
|
|
37887
38062
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupNo',
|
|
37888
38063
|
required: true,
|
|
37889
38064
|
cellDataType: 'number'
|
|
37890
|
-
}, {
|
|
37891
|
-
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText',
|
|
37892
|
-
marryChildren: true,
|
|
37893
|
-
children: [{
|
|
37894
|
-
field: 'priceFeatureGroupText.DE',
|
|
37895
|
-
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
37896
|
-
isDictionary: true,
|
|
37897
|
-
required: true
|
|
37898
|
-
}, {
|
|
37899
|
-
field: 'priceFeatureGroupText.EN',
|
|
37900
|
-
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
37901
|
-
isDictionary: true
|
|
37902
|
-
}, {
|
|
37903
|
-
field: 'priceFeatureGroupText.FR',
|
|
37904
|
-
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
37905
|
-
isDictionary: true
|
|
37906
|
-
}, {
|
|
37907
|
-
field: 'priceFeatureGroupText.IT',
|
|
37908
|
-
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
37909
|
-
isDictionary: true
|
|
37910
|
-
}]
|
|
37911
|
-
}, {
|
|
38065
|
+
}, createTranslatedColumnConfig('priceFeatureGroupText', 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText', (selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds) || ['DE'], true), {
|
|
37912
38066
|
field: 'comment',
|
|
37913
38067
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.comment'
|
|
37914
38068
|
}, {
|
|
@@ -37970,7 +38124,7 @@ function TablePriceFeatureGroups () {
|
|
|
37970
38124
|
additionalFields: ['featureNosDisplayTexts']
|
|
37971
38125
|
}]
|
|
37972
38126
|
};
|
|
37973
|
-
}, []);
|
|
38127
|
+
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
|
37974
38128
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
37975
38129
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
37976
38130
|
title: /*#__PURE__*/jsxs("div", {
|
|
@@ -37979,16 +38133,16 @@ function TablePriceFeatureGroups () {
|
|
|
37979
38133
|
"float": 'right'
|
|
37980
38134
|
},
|
|
37981
38135
|
children: /*#__PURE__*/jsx(CatalogSelector, {
|
|
37982
|
-
|
|
37983
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
37984
|
-
return updateNavigation(
|
|
38136
|
+
catalogId: catalogId,
|
|
38137
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
38138
|
+
return updateNavigation(catalog);
|
|
37985
38139
|
},
|
|
37986
38140
|
idmService: apiConfig.idmService,
|
|
37987
38141
|
organizationId: organizationId
|
|
37988
38142
|
})
|
|
37989
38143
|
})]
|
|
37990
38144
|
})
|
|
37991
|
-
}), /*#__PURE__*/jsx(Spreadsheet, {
|
|
38145
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
37992
38146
|
gridId: 'crud-grid_pricefeaturegroups',
|
|
37993
38147
|
ref: spreadsheetRef,
|
|
37994
38148
|
applicationData: applicationData,
|
|
@@ -38002,6 +38156,7 @@ function TablePrices () {
|
|
|
38002
38156
|
var _useTranslation = useTranslation(),
|
|
38003
38157
|
t = _useTranslation.t;
|
|
38004
38158
|
var _useModule = useModule(['prices']),
|
|
38159
|
+
selectedCatalog = _useModule.selectedCatalog,
|
|
38005
38160
|
catalogId = _useModule.catalogId,
|
|
38006
38161
|
updateNavigation = _useModule.updateNavigation,
|
|
38007
38162
|
apiConfig = _useModule.apiConfig,
|
|
@@ -38051,6 +38206,11 @@ function TablePrices () {
|
|
|
38051
38206
|
additionalFields: ['typeNoDisplayText'],
|
|
38052
38207
|
isDictionary: true,
|
|
38053
38208
|
editable: false
|
|
38209
|
+
}, {
|
|
38210
|
+
field: 'partListExclusive',
|
|
38211
|
+
headerName: 'backoffice.idmCatalog.prices.label.partListExclusive',
|
|
38212
|
+
editable: false,
|
|
38213
|
+
cellDataType: 'boolean'
|
|
38054
38214
|
}].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups.map(function (priceFeatureGroup) {
|
|
38055
38215
|
var _priceFeatureGroup$ke;
|
|
38056
38216
|
return {
|
|
@@ -38104,9 +38264,9 @@ function TablePrices () {
|
|
|
38104
38264
|
},
|
|
38105
38265
|
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
38106
38266
|
organizationId: organizationId,
|
|
38107
|
-
|
|
38108
|
-
setSelectedCatalog: function setSelectedCatalog(
|
|
38109
|
-
updateNavigation(
|
|
38267
|
+
catalogId: catalogId,
|
|
38268
|
+
setSelectedCatalog: function setSelectedCatalog(catalog) {
|
|
38269
|
+
updateNavigation(catalog);
|
|
38110
38270
|
setSelectedSerie(undefined);
|
|
38111
38271
|
},
|
|
38112
38272
|
idmService: apiConfig.idmService
|
|
@@ -38119,7 +38279,7 @@ function TablePrices () {
|
|
|
38119
38279
|
})]
|
|
38120
38280
|
})]
|
|
38121
38281
|
})
|
|
38122
|
-
}), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
|
|
38282
|
+
}), selectedSerie && selectedCatalog && /*#__PURE__*/jsx(Spreadsheet, {
|
|
38123
38283
|
gridId: 'crud-grid_prices',
|
|
38124
38284
|
applicationData: applicationData,
|
|
38125
38285
|
configuration: configuration
|
|
@@ -39528,7 +39688,7 @@ var getTranslation = function getTranslation(text, lang) {
|
|
|
39528
39688
|
};
|
|
39529
39689
|
|
|
39530
39690
|
var container = "container-Xbv0B";
|
|
39531
|
-
var css_248z = ".container-Xbv0B {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.darkmode .container-Xbv0B {\n border-color: #424242;\n}\n";
|
|
39691
|
+
var css_248z = ".container-Xbv0B {\n background: white;\n color: black;\n border-radius: 5px;\n border: 1px solid #d9d9d9;\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: auto;\n}\n\n.darkmode .container-Xbv0B {\n border-color: #424242;\n}\n";
|
|
39532
39692
|
styleInject(css_248z);
|
|
39533
39693
|
|
|
39534
39694
|
var WsyiwygContentItem = function WsyiwygContentItem(_ref) {
|
|
@@ -39779,6 +39939,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
39779
39939
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
39780
39940
|
var LOG = getLogger('Backoffice', 'Index');
|
|
39781
39941
|
var Main = function Main(props) {
|
|
39942
|
+
var _useDivaCore = useDivaCore(),
|
|
39943
|
+
organization = _useDivaCore.state.organization;
|
|
39782
39944
|
useEffect(function () {
|
|
39783
39945
|
LOG.debug('Initial render of backoffice');
|
|
39784
39946
|
}, []);
|
|
@@ -39790,7 +39952,7 @@ var Main = function Main(props) {
|
|
|
39790
39952
|
children: /*#__PURE__*/jsx(MainLayout$1, {})
|
|
39791
39953
|
}))
|
|
39792
39954
|
})
|
|
39793
|
-
});
|
|
39955
|
+
}, organization === null || organization === void 0 ? void 0 : organization._id);
|
|
39794
39956
|
};
|
|
39795
39957
|
var DivaBackoffice = {
|
|
39796
39958
|
name: 'DIVA_BACKOFFICE_NEW',
|