@crystaldesign/diva-backoffice 25.5.0-beta.2 → 25.5.0-beta.21
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 +260 -332
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CatalogEditor/DragDropUpload/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +1 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/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/TableOptions/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 +30 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/JsonEditor/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/JsonEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogOptions.d.ts +0 -9
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogOptions.d.ts.map +0 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogOptions/index.d.ts +0 -5
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogOptions/index.d.ts.map +0 -1
package/build/esm/index.js
CHANGED
@@ -1790,7 +1790,7 @@ var _default$7 = /*#__PURE__*/function () {
|
|
1790
1790
|
key: "setConfiguration",
|
1791
1791
|
value: function setConfiguration(config, apiConfig, t, lang) {
|
1792
1792
|
this._apiConfig = apiConfig;
|
1793
|
-
var configuration = loadConfiguration(t, this.root, config, lang);
|
1793
|
+
var configuration = loadConfiguration(t, this.root, config, lang, apiConfig);
|
1794
1794
|
|
1795
1795
|
//merge with configuration so everything can changed by config
|
1796
1796
|
if (config.configuration) {
|
@@ -1836,7 +1836,7 @@ function runThroughObjectReqursive(obj, apiConfig) {
|
|
1836
1836
|
}
|
1837
1837
|
}
|
1838
1838
|
}
|
1839
|
-
function loadConfiguration(t, root, config, lang) {
|
1839
|
+
function loadConfiguration(t, root, config, lang, apiConfig) {
|
1840
1840
|
var _organization$setting, _organization$setting2, _organization$setting3, _organization$setting4, _parentOrganizations, _parentOrganizations2, _parentOrganizations3, _parentOrganizations4, _parentOrganizations5, _parentOrganizations6, _parentOrganizations7, _parentOrganizations8, _parentOrganizations9, _parentOrganizations10, _parentOrganizations11, _parentOrganizations12, _parentOrganizations13;
|
1841
1841
|
var organization = toJS(root.dataStore.currentOrganization);
|
1842
1842
|
return {
|
@@ -2566,6 +2566,169 @@ function loadConfiguration(t, root, config, lang) {
|
|
2566
2566
|
}
|
2567
2567
|
}]
|
2568
2568
|
},
|
2569
|
+
TableTaskStatusIdm: {
|
2570
|
+
type: 'Table',
|
2571
|
+
canRefresh: true,
|
2572
|
+
autoRefresh: 60000,
|
2573
|
+
title: t('backoffice.table.taskstatusversioning.title.taskstatusidm'),
|
2574
|
+
columns: [{
|
2575
|
+
title: 'ID',
|
2576
|
+
field: '_id',
|
2577
|
+
sorter: 2,
|
2578
|
+
filter: 'advanced',
|
2579
|
+
width: 200,
|
2580
|
+
hidden: true
|
2581
|
+
}, {
|
2582
|
+
title: t('backoffice.table.taskstatusversioning.columns.model'),
|
2583
|
+
field: 'warning',
|
2584
|
+
hidden: true
|
2585
|
+
}, {
|
2586
|
+
title: t('backoffice.table.taskstatusversioning.columns.model'),
|
2587
|
+
field: 'error',
|
2588
|
+
hidden: true
|
2589
|
+
}, {
|
2590
|
+
title: t('backoffice.table.taskstatusversioning.columns.taskname'),
|
2591
|
+
field: 'taskName',
|
2592
|
+
sorter: 2,
|
2593
|
+
filter: 'advanced',
|
2594
|
+
width: 400
|
2595
|
+
}, {
|
2596
|
+
title: t('backoffice.table.taskstatusversioning.columns.fileName'),
|
2597
|
+
field: 'fileName',
|
2598
|
+
sorter: 2,
|
2599
|
+
filter: 'advanced',
|
2600
|
+
width: 400
|
2601
|
+
}, {
|
2602
|
+
title: t('backoffice.table.taskstatusversioning.columns.organisationid'),
|
2603
|
+
field: 'organizationId',
|
2604
|
+
hidden: true
|
2605
|
+
}, {
|
2606
|
+
title: t('backoffice.table.taskstatusversioning.columns.organisation'),
|
2607
|
+
field: 'organizationDisplayName',
|
2608
|
+
field2: 'organizationId',
|
2609
|
+
type: 'link',
|
2610
|
+
link: '/backoffice?lang=de&organizationId={field2}&module=Collections',
|
2611
|
+
sorter: 200,
|
2612
|
+
filter: 'advanced',
|
2613
|
+
width: 200
|
2614
|
+
}, {
|
2615
|
+
title: t('backoffice.table.taskstatusversioning.columns.user'),
|
2616
|
+
field: 'user.fullName',
|
2617
|
+
sorter: 3,
|
2618
|
+
filter: 'advanced',
|
2619
|
+
width: 200
|
2620
|
+
}, {
|
2621
|
+
title: t('backoffice.table.taskstatusversioning.columns.user'),
|
2622
|
+
field: 'cancelledByUser.fullName',
|
2623
|
+
sorter: 3,
|
2624
|
+
filter: 'advanced',
|
2625
|
+
width: 200,
|
2626
|
+
hidden: true
|
2627
|
+
}, {
|
2628
|
+
title: t('backoffice.table.taskstatusversioning.columns.status'),
|
2629
|
+
field: 'progress.status',
|
2630
|
+
color: [{
|
2631
|
+
color: 'blue',
|
2632
|
+
onValues: ['InProgress', 'Waiting', 'Created', 'Started'],
|
2633
|
+
operations: ['eq']
|
2634
|
+
}, {
|
2635
|
+
color: 'green',
|
2636
|
+
onValues: ['Done'],
|
2637
|
+
operations: ['eq']
|
2638
|
+
}, {
|
2639
|
+
color: 'orange',
|
2640
|
+
onValues: ['DoneWithWarning', 'Cancel', 'Cancelled'],
|
2641
|
+
operations: ['eq']
|
2642
|
+
}, {
|
2643
|
+
color: 'red',
|
2644
|
+
onValues: ['Error'],
|
2645
|
+
operations: ['eq']
|
2646
|
+
}],
|
2647
|
+
filter: 'advanced',
|
2648
|
+
width: 200
|
2649
|
+
}, {
|
2650
|
+
title: t('backoffice.table.taskstatusversioning.columns.status'),
|
2651
|
+
field: 'progress.step',
|
2652
|
+
filter: 'advanced',
|
2653
|
+
width: 200,
|
2654
|
+
hidden: true
|
2655
|
+
}, {
|
2656
|
+
title: t('backoffice.table.taskstatusversioning.columns.status'),
|
2657
|
+
field: 'progress.percentage',
|
2658
|
+
field2: 'progress.step',
|
2659
|
+
width: 400,
|
2660
|
+
type: 'progress'
|
2661
|
+
}, {
|
2662
|
+
title: t('backoffice.table.taskstatusversioning.columns.created'),
|
2663
|
+
field: 'created',
|
2664
|
+
sorter: 1,
|
2665
|
+
defaultSortOrder: 'descend',
|
2666
|
+
type: 'unixTimeStamp',
|
2667
|
+
width: 200
|
2668
|
+
}, {
|
2669
|
+
title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
|
2670
|
+
field: 'lastUpdated',
|
2671
|
+
type: 'unixTimeStamp',
|
2672
|
+
width: 200
|
2673
|
+
}, {
|
2674
|
+
title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
|
2675
|
+
field: 'startTime',
|
2676
|
+
type: 'unixTimeStamp',
|
2677
|
+
width: 200,
|
2678
|
+
hidden: true
|
2679
|
+
}, {
|
2680
|
+
title: t('backoffice.table.taskstatusversioning.columns.finished'),
|
2681
|
+
field: 'endTime',
|
2682
|
+
type: 'unixTimeStamp',
|
2683
|
+
width: 200
|
2684
|
+
}, {
|
2685
|
+
title: t('backoffice.table.taskstatusversioning.columns.server'),
|
2686
|
+
field: 'serverName',
|
2687
|
+
filter: 'advanced',
|
2688
|
+
width: 200
|
2689
|
+
}, {
|
2690
|
+
title: t('backoffice.table.taskstatusversioning.columns.type'),
|
2691
|
+
field: 'taskType',
|
2692
|
+
filter: 'advanced',
|
2693
|
+
width: 200
|
2694
|
+
}],
|
2695
|
+
filter: {
|
2696
|
+
toggle: {
|
2697
|
+
globalValue: 'organizationId',
|
2698
|
+
fields: ['organizationId'],
|
2699
|
+
label: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
|
2700
|
+
labelOff: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
|
2701
|
+
inverted: true,
|
2702
|
+
permission: 'backoffice_taskstatus_allorgs',
|
2703
|
+
isAnd: true
|
2704
|
+
},
|
2705
|
+
search: {
|
2706
|
+
fields: ['_id', 'progress.dataItems', 'taskName', 'organizationId', 'user.fullName', 'status', 'serverName', 'taskType']
|
2707
|
+
}
|
2708
|
+
},
|
2709
|
+
apiInterface: {
|
2710
|
+
read: {
|
2711
|
+
list: '${adminService}/taskStatus?filter=%5B%2B%5B%7BtaskType%2Ceq%2CIDM_IMPORT%7D%2C%7BtaskType%2Ceq%2CIDM_EXPORT%7D%5D%5D',
|
2712
|
+
fields: true,
|
2713
|
+
filterServerSide: true
|
2714
|
+
}
|
2715
|
+
},
|
2716
|
+
mapping: {
|
2717
|
+
type: 'query',
|
2718
|
+
map: [{
|
2719
|
+
globalValue: 'selectedOrganizationId',
|
2720
|
+
targetField: 'organizationId'
|
2721
|
+
}]
|
2722
|
+
},
|
2723
|
+
rowAction: [{
|
2724
|
+
actionType: 'Detail',
|
2725
|
+
type: 'Form',
|
2726
|
+
id: 'FormTaskStatusDetails',
|
2727
|
+
title: function title(data) {
|
2728
|
+
return t('backoffice.table.taskstatusversioning.rowAction.title') + ': ' + data.taskName;
|
2729
|
+
}
|
2730
|
+
}]
|
2731
|
+
},
|
2569
2732
|
TableTaskStatusCustom: {
|
2570
2733
|
type: 'Table',
|
2571
2734
|
canRefresh: true,
|
@@ -3501,7 +3664,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
3501
3664
|
url: 'https://gwc-app-p-app-api3.azurewebsites.net/odataretail'
|
3502
3665
|
}, {
|
3503
3666
|
type: 'url',
|
3504
|
-
url: '
|
3667
|
+
url: apiConfig.baseCdnUrl + '/static/xlsx/RETAIL-p.xlsx'
|
3505
3668
|
}]
|
3506
3669
|
},
|
3507
3670
|
apiInterface: {
|
@@ -3766,7 +3929,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
3766
3929
|
url: 'https://gwc-app-p-app-api3.azurewebsites.net/odataretail'
|
3767
3930
|
}, {
|
3768
3931
|
type: 'url',
|
3769
|
-
url: '
|
3932
|
+
url: apiConfig.baseCdnUrl + '/static/xlsx/RETAIL-p.xlsx'
|
3770
3933
|
}]
|
3771
3934
|
}
|
3772
3935
|
},
|
@@ -7846,7 +8009,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
7846
8009
|
}, {
|
7847
8010
|
name: ['settings', 'versioningToIDMService'],
|
7848
8011
|
label: t('backoffice.form.organizationdetails.items.versioningToIDMService'),
|
7849
|
-
permission: '
|
8012
|
+
permission: 'backoffice_admin_organizations',
|
7850
8013
|
hidden: function hidden(data) {
|
7851
8014
|
return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'ASSOCIATION';
|
7852
8015
|
},
|
@@ -12677,7 +12840,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
12677
12840
|
label: t('backoffice.iframece.download'),
|
12678
12841
|
download: [{
|
12679
12842
|
type: 'url',
|
12680
|
-
url: '
|
12843
|
+
url: apiConfig.baseCdnUrl + '/static/xlsx/CE-p.xlsx'
|
12681
12844
|
}, {
|
12682
12845
|
type: 'prefab',
|
12683
12846
|
prefab: 'connectionFileCE',
|
@@ -12734,7 +12897,7 @@ var navMinified = "nav-minified-tSt-a";
|
|
12734
12897
|
var navOverlay = "nav-overlay-rKJNC";
|
12735
12898
|
var navSettings = "nav-settings-82cjv";
|
12736
12899
|
var menuLabel = "menu-label-4dXQk";
|
12737
|
-
var css_248z$v = ".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";
|
12900
|
+
var css_248z$v = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
|
12738
12901
|
styleInject(css_248z$v);
|
12739
12902
|
|
12740
12903
|
function MenuLabel (_ref) {
|
@@ -13773,6 +13936,12 @@ var menu = [{
|
|
13773
13936
|
label: 'backoffice.menu.items.label.taskStatusAdminVersioning',
|
13774
13937
|
icon: 'FileZipOutlined',
|
13775
13938
|
permission: 'backoffice_admin_taskstatus_versioning'
|
13939
|
+
}, {
|
13940
|
+
id: 'TableTaskStatusIdm',
|
13941
|
+
path: 'taskstatusidm',
|
13942
|
+
label: 'backoffice.table.taskstatusversioning.title.taskstatusidm',
|
13943
|
+
icon: 'SwapOutlined',
|
13944
|
+
permission: 'backoffice_admin_taskstatus_idm'
|
13776
13945
|
}, {
|
13777
13946
|
id: 'TableTaskStatusCustom',
|
13778
13947
|
path: 'taskstatuscustom',
|
@@ -25419,7 +25588,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
25419
25588
|
style: {
|
25420
25589
|
"float": 'right'
|
25421
25590
|
},
|
25422
|
-
children: [state.configuration.histogram && state.configuration.histogram.type == 'default' && /*#__PURE__*/jsx(Button, {
|
25591
|
+
children: [state.configuration.histogram && state.configuration.histogram.type == 'default' && root.actions.userHasPermission(state.configuration.histogram.permission) && /*#__PURE__*/jsx(Button, {
|
25423
25592
|
type: "default",
|
25424
25593
|
size: 'middle',
|
25425
25594
|
onClick: function onClick() {
|
@@ -29916,7 +30085,10 @@ function DragDropUpload(_ref) {
|
|
29916
30085
|
var props = {
|
29917
30086
|
name: 'file',
|
29918
30087
|
multiple: false,
|
29919
|
-
action: api2Params.api2BaseUrl + '?function=upload&
|
30088
|
+
action: api2Params.api2BaseUrl + '?function=upload&filename=' + fileName,
|
30089
|
+
headers: {
|
30090
|
+
sessionguid: api2Params.api2SessionGuid
|
30091
|
+
},
|
29920
30092
|
accept: '.xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
29921
30093
|
onChange: function onChange(info) {
|
29922
30094
|
var status = info.file.status;
|
@@ -32159,7 +32331,28 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
|
|
32159
32331
|
}, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
|
32160
32332
|
placeHolderField: 'origOptionCommentText',
|
32161
32333
|
combinedField: 'optionCommentText'
|
32162
|
-
}, ['origOptionCommentText', 'optionCommentText'])
|
32334
|
+
}, ['origOptionCommentText', 'optionCommentText']), {
|
32335
|
+
field: 'featureNos',
|
32336
|
+
headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
|
32337
|
+
cellDataType: 'lookup',
|
32338
|
+
editable: false,
|
32339
|
+
required: false,
|
32340
|
+
customParams: {
|
32341
|
+
nameField: 'featureNosDisplayTexts',
|
32342
|
+
filterCellType: 'objectId',
|
32343
|
+
displayLabelTemplate: '${name} (${value})',
|
32344
|
+
lookupValue: 'featureText',
|
32345
|
+
lookupKey: 'featureNo',
|
32346
|
+
lookupKeyFilterType: {
|
32347
|
+
type: 'equals',
|
32348
|
+
filterType: 'text'
|
32349
|
+
},
|
32350
|
+
multiple: true,
|
32351
|
+
translated: true
|
32352
|
+
},
|
32353
|
+
additionalFields: ['featureNosDisplayTexts'],
|
32354
|
+
isDictionary: true
|
32355
|
+
}]
|
32163
32356
|
};
|
32164
32357
|
};
|
32165
32358
|
|
@@ -32219,44 +32412,6 @@ var SeriesSelector$2 = function SeriesSelector(_ref) {
|
|
32219
32412
|
};
|
32220
32413
|
var SeriesSelector$3 = observer(SeriesSelector$2);
|
32221
32414
|
|
32222
|
-
var FeatureSelector$2 = function FeatureSelector(_ref) {
|
32223
|
-
var modules = _ref.modules,
|
32224
|
-
dataSet = _ref.dataSet;
|
32225
|
-
var _useTranslation = useTranslation(),
|
32226
|
-
t = _useTranslation.t,
|
32227
|
-
i18n = _useTranslation.i18n;
|
32228
|
-
var _useEnricherContext = useEnricherContext(modules),
|
32229
|
-
packageId = _useEnricherContext.packageId,
|
32230
|
-
enricherService = _useEnricherContext.enricherService,
|
32231
|
-
setSelectedFeature = _useEnricherContext.setSelectedFeature,
|
32232
|
-
lookupFeatureSelectorState = _useEnricherContext.lookupFeatureSelectorState,
|
32233
|
-
exclusivitiesFeatureSelectorState = _useEnricherContext.exclusivitiesFeatureSelectorState,
|
32234
|
-
selectedFeature = _useEnricherContext.selectedFeature;
|
32235
|
-
var state = dataSet === 'lookup' ? lookupFeatureSelectorState : exclusivitiesFeatureSelectorState;
|
32236
|
-
return /*#__PURE__*/jsx(SimpleSelect, {
|
32237
|
-
sharedState: state,
|
32238
|
-
apiInterface: {
|
32239
|
-
read: enricherService + '/packages/' + packageId + '/' + dataSet + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
|
32240
|
-
},
|
32241
|
-
selectMapping: {
|
32242
|
-
label: "${featureText.".concat(i18n.language.toLocaleUpperCase(), "} (${featureNo})"),
|
32243
|
-
value: '${featureNo}'
|
32244
|
-
},
|
32245
|
-
autoSelectFirst: true,
|
32246
|
-
title: t('backoffice.menu.items.label.IDMEnricherEditorTableRenamingFeature'),
|
32247
|
-
value: selectedFeature,
|
32248
|
-
onChange: function onChange(value) {
|
32249
|
-
return setSelectedFeature(value);
|
32250
|
-
},
|
32251
|
-
search: true,
|
32252
|
-
style: {
|
32253
|
-
width: 200
|
32254
|
-
},
|
32255
|
-
popupClassName: 'ag-custom-component-popup'
|
32256
|
-
}, packageId);
|
32257
|
-
};
|
32258
|
-
var FeatureSelector$3 = observer(FeatureSelector$2);
|
32259
|
-
|
32260
32415
|
var RenamingCatalog = function RenamingCatalog() {
|
32261
32416
|
return /*#__PURE__*/jsx(RenamingTable, {
|
32262
32417
|
type: "catalogs",
|
@@ -32303,8 +32458,7 @@ var RenamingTable = observer(function (_ref) {
|
|
32303
32458
|
packageId = _useModule.packageId,
|
32304
32459
|
apiConfig = _useModule.apiConfig,
|
32305
32460
|
selectedPackage = _useModule.selectedPackage,
|
32306
|
-
selectedSerie = _useModule.selectedSerie
|
32307
|
-
selectedFeature = _useModule.selectedFeature;
|
32461
|
+
selectedSerie = _useModule.selectedSerie;
|
32308
32462
|
var baseConfiguration = useMemo(function () {
|
32309
32463
|
return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
|
32310
32464
|
}, [selectedPackage, i18n.language]);
|
@@ -32315,32 +32469,21 @@ var RenamingTable = observer(function (_ref) {
|
|
32315
32469
|
}, [packageId]);
|
32316
32470
|
var prevPreFilter = useRef();
|
32317
32471
|
var preFilter = useMemo(function () {
|
32318
|
-
if (type === '
|
32319
|
-
return prevPreFilter.current;
|
32320
|
-
} else if (type === 'items' && selectedSerie) {
|
32472
|
+
if (type === 'items' && selectedSerie) {
|
32321
32473
|
var newFilter = {
|
32322
32474
|
filterType: 'text',
|
32323
32475
|
type: 'equals',
|
32324
|
-
colId: '
|
32325
|
-
filter:
|
32476
|
+
colId: 'serieNo',
|
32477
|
+
filter: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
|
32326
32478
|
};
|
32327
32479
|
prevPreFilter.current = newFilter;
|
32328
32480
|
return newFilter;
|
32329
32481
|
}
|
32330
32482
|
if (type === 'items' && !selectedSerie) {
|
32331
32483
|
return prevPreFilter.current;
|
32332
|
-
} else if (type === 'options' && selectedFeature) {
|
32333
|
-
var _newFilter = {
|
32334
|
-
filterType: 'text',
|
32335
|
-
type: 'equals',
|
32336
|
-
colId: 'featureNo',
|
32337
|
-
filter: selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature.featureNo
|
32338
|
-
};
|
32339
|
-
prevPreFilter.current = _newFilter;
|
32340
|
-
return _newFilter;
|
32341
32484
|
}
|
32342
32485
|
return undefined;
|
32343
|
-
}, [type, selectedSerie
|
32486
|
+
}, [type, selectedSerie]);
|
32344
32487
|
var apiInterface = useMemo(function () {
|
32345
32488
|
return {
|
32346
32489
|
read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
|
@@ -32371,7 +32514,7 @@ var RenamingTable = observer(function (_ref) {
|
|
32371
32514
|
};
|
32372
32515
|
}, [apiInterface, baseConfiguration.colDef]);
|
32373
32516
|
var showTable = useMemo(function () {
|
32374
|
-
return selectedPackage && (!['items'
|
32517
|
+
return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
|
32375
32518
|
}, [type, preFilter, selectedPackage]);
|
32376
32519
|
return /*#__PURE__*/jsxs(Fragment, {
|
32377
32520
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
@@ -32385,9 +32528,6 @@ var RenamingTable = observer(function (_ref) {
|
|
32385
32528
|
}), type === 'items' && /*#__PURE__*/jsx(SeriesSelector$3, {
|
32386
32529
|
modules: ['renaming', type],
|
32387
32530
|
dataSet: 'lookup'
|
32388
|
-
}), type === 'options' && /*#__PURE__*/jsx(FeatureSelector$3, {
|
32389
|
-
modules: ['renaming', type],
|
32390
|
-
dataSet: 'lookup'
|
32391
32531
|
})]
|
32392
32532
|
})]
|
32393
32533
|
})
|
@@ -32687,6 +32827,27 @@ function getConfig(t) {
|
|
32687
32827
|
},
|
32688
32828
|
option: {
|
32689
32829
|
colDef: [{
|
32830
|
+
field: 'featureNos',
|
32831
|
+
headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
|
32832
|
+
cellDataType: 'lookup',
|
32833
|
+
editable: false,
|
32834
|
+
required: false,
|
32835
|
+
customParams: {
|
32836
|
+
nameField: 'featureIdsDisplayTexts',
|
32837
|
+
filterCellType: 'objectId',
|
32838
|
+
displayLabelTemplate: '${name} (${value})',
|
32839
|
+
lookupValue: 'featureText',
|
32840
|
+
lookupKey: 'featureNo',
|
32841
|
+
lookupKeyFilterType: {
|
32842
|
+
type: 'equals',
|
32843
|
+
filterType: 'text'
|
32844
|
+
},
|
32845
|
+
multiple: true,
|
32846
|
+
translated: true
|
32847
|
+
},
|
32848
|
+
additionalFields: ['featureIdsDisplayTexts'],
|
32849
|
+
isDictionary: true
|
32850
|
+
}, {
|
32690
32851
|
field: 'optionKey',
|
32691
32852
|
headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
|
32692
32853
|
editable: false
|
@@ -32838,19 +32999,21 @@ var ExclusivityTable = observer(function (_ref) {
|
|
32838
32999
|
apiConfig = _useModule.apiConfig,
|
32839
33000
|
organizationId = _useModule.organizationId,
|
32840
33001
|
selectedPackage = _useModule.selectedPackage,
|
32841
|
-
selectedSerie = _useModule.selectedSerie
|
32842
|
-
selectedFeature = _useModule.selectedFeature;
|
33002
|
+
selectedSerie = _useModule.selectedSerie;
|
32843
33003
|
var apiInterface = useMemo(function () {
|
32844
33004
|
var patchId = '${_id}';
|
32845
33005
|
if (type === 'eitem') patchId = '${typeNo}';
|
32846
33006
|
if (type === 'eoption') patchId = '${optionKey}';
|
33007
|
+
var patchId2 = '${_id}';
|
33008
|
+
if (type === 'eoption') patchId2 = '${featureNos}';
|
32847
33009
|
var subType = 'features';
|
32848
33010
|
if (type === 'eserie' || type === 'eitem') subType = 'series';
|
32849
33011
|
if (type === 'edetailInfo') subType = 'detailInfos';
|
33012
|
+
if (type === 'eoption') subType = 'options';
|
32850
33013
|
var listType = type === 'eitem' ? 'items' : 'options';
|
32851
33014
|
return {
|
32852
|
-
read: !['eitem'
|
32853
|
-
update: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
|
33015
|
+
read: !['eitem'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
|
33016
|
+
update: !['eitem', 'eoption'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoption' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
|
32854
33017
|
};
|
32855
33018
|
}, [type]);
|
32856
33019
|
var oldDataRef = useRef();
|
@@ -32858,26 +33021,23 @@ var ExclusivityTable = observer(function (_ref) {
|
|
32858
33021
|
if (type === 'eitem' && !selectedSerie) {
|
32859
33022
|
return oldDataRef.current;
|
32860
33023
|
}
|
32861
|
-
if (type === 'eoption' && !selectedFeature) {
|
32862
|
-
return oldDataRef.current;
|
32863
|
-
}
|
32864
33024
|
var newData = {
|
32865
33025
|
type: type,
|
32866
33026
|
packageId: packageId,
|
32867
33027
|
organizationId: organizationId,
|
32868
|
-
subTypeId:
|
33028
|
+
subTypeId: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie._id
|
32869
33029
|
};
|
32870
33030
|
oldDataRef.current = newData;
|
32871
33031
|
return newData;
|
32872
|
-
}, [type, packageId, organizationId, selectedSerie
|
33032
|
+
}, [type, packageId, organizationId, selectedSerie]);
|
32873
33033
|
var showTable = useMemo(function () {
|
32874
|
-
return selectedPackage && (!['eitem'
|
33034
|
+
return selectedPackage && (!['eitem'].includes(type) || type === 'eitem' && applicationData);
|
32875
33035
|
}, [type, applicationData, selectedPackage]);
|
32876
33036
|
var configuration = useMemo(function () {
|
32877
33037
|
return {
|
32878
33038
|
type: 'dotnetSSM',
|
32879
33039
|
apiInterface: apiInterface,
|
32880
|
-
idCol: type === 'eitem' ? 'typeNo' : type === 'eoption' ? '
|
33040
|
+
idCol: type === 'eitem' ? 'typeNo' : type === 'eoption' ? '_id' : undefined,
|
32881
33041
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
32882
33042
|
floatingFilter: true,
|
32883
33043
|
colDef: [{
|
@@ -32902,7 +33062,7 @@ var ExclusivityTable = observer(function (_ref) {
|
|
32902
33062
|
cellDataType: 'objectId'
|
32903
33063
|
}])
|
32904
33064
|
};
|
32905
|
-
}, [apiInterface, selectedSerie,
|
33065
|
+
}, [apiInterface, selectedSerie, config.colDef]);
|
32906
33066
|
return /*#__PURE__*/jsxs(Fragment, {
|
32907
33067
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
32908
33068
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -32915,9 +33075,6 @@ var ExclusivityTable = observer(function (_ref) {
|
|
32915
33075
|
}), type === 'eitem' && /*#__PURE__*/jsx(SeriesSelector$3, {
|
32916
33076
|
modules: ['exclusivity', type],
|
32917
33077
|
dataSet: 'exclusivities'
|
32918
|
-
}), type === 'eoption' && /*#__PURE__*/jsx(FeatureSelector$3, {
|
32919
|
-
modules: ['exclusivity', type],
|
32920
|
-
dataSet: 'exclusivities'
|
32921
33078
|
})]
|
32922
33079
|
})]
|
32923
33080
|
})
|
@@ -35737,16 +35894,6 @@ function useModule (currentModules) {
|
|
35737
35894
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
35738
35895
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
35739
35896
|
})
|
35740
|
-
}, {
|
35741
|
-
key: 'catalogoptions',
|
35742
|
-
style: {
|
35743
|
-
margin: 0
|
35744
|
-
},
|
35745
|
-
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
35746
|
-
label: /*#__PURE__*/jsx(Link, {
|
35747
|
-
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/catalogoptions' + (searchParams ? '?' + searchParams.toString() : ''),
|
35748
|
-
children: t('backoffice.menu.items.label.IDMCatalogEditorTableCatalogOptions')
|
35749
|
-
})
|
35750
35897
|
}, {
|
35751
35898
|
key: 'optiongroups',
|
35752
35899
|
style: {
|
@@ -35755,7 +35902,7 @@ function useModule (currentModules) {
|
|
35755
35902
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
35756
35903
|
label: /*#__PURE__*/jsx(Link, {
|
35757
35904
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/optiongroups' + (searchParams ? '?' + searchParams.toString() : ''),
|
35758
|
-
children: t('backoffice.menu.items.label.
|
35905
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptionGroups')
|
35759
35906
|
})
|
35760
35907
|
}, {
|
35761
35908
|
key: 'featureclasses',
|
@@ -36353,114 +36500,6 @@ var TableSeries = observer(function () {
|
|
36353
36500
|
});
|
36354
36501
|
});
|
36355
36502
|
|
36356
|
-
function Options(_ref) {
|
36357
|
-
var organizationId = _ref.organizationId,
|
36358
|
-
selectedCatalog = _ref.selectedCatalog,
|
36359
|
-
selectedFeature = _ref.selectedFeature,
|
36360
|
-
apiConfig = _ref.apiConfig;
|
36361
|
-
var applicationData = useMemo(function () {
|
36362
|
-
return {
|
36363
|
-
organizationId: organizationId,
|
36364
|
-
catalogId: selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id,
|
36365
|
-
selectedFeature: selectedFeature
|
36366
|
-
};
|
36367
|
-
}, [organizationId, selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog._id, selectedFeature]);
|
36368
|
-
var configuration = useMemo(function () {
|
36369
|
-
return {
|
36370
|
-
type: 'dotnetSSM',
|
36371
|
-
idCol: 'optionKey',
|
36372
|
-
apiInterface: {
|
36373
|
-
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
36374
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options',
|
36375
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
36376
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}',
|
36377
|
-
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${selectedFeature}/options/${optionKey}'
|
36378
|
-
},
|
36379
|
-
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
36380
|
-
floatingFilter: true,
|
36381
|
-
colDef: [{
|
36382
|
-
field: 'optionKey',
|
36383
|
-
required: true,
|
36384
|
-
unique: true
|
36385
|
-
}, {
|
36386
|
-
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
36387
|
-
field: 'sequenceNo',
|
36388
|
-
cellDataType: 'number'
|
36389
|
-
}, createTranslatedColumnConfig('optionText', 'backoffice.idmCatalog.options.label.optionText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds, true), createTranslatedColumnConfig('optionCommentText', 'backoffice.idmCatalog.options.label.optionCommentText', selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds), {
|
36390
|
-
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
36391
|
-
field: 'optionFreeText',
|
36392
|
-
cellDataType: 'boolean'
|
36393
|
-
}, {
|
36394
|
-
headerName: 'backoffice.idmCatalog.items.label.validation',
|
36395
|
-
children: [{
|
36396
|
-
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
36397
|
-
field: 'validFromDate',
|
36398
|
-
cellDataType: 'dateString'
|
36399
|
-
}, {
|
36400
|
-
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
36401
|
-
field: 'validUntilDate',
|
36402
|
-
cellDataType: 'dateString'
|
36403
|
-
}]
|
36404
|
-
}, {
|
36405
|
-
headerName: 'backoffice.idmCatalog.options.label.material',
|
36406
|
-
children: [{
|
36407
|
-
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
36408
|
-
field: 'materialNo'
|
36409
|
-
}, {
|
36410
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
36411
|
-
field: 'materialColorR',
|
36412
|
-
cellDataType: 'number'
|
36413
|
-
}, {
|
36414
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorG',
|
36415
|
-
field: 'materialColorG',
|
36416
|
-
cellDataType: 'number'
|
36417
|
-
}, {
|
36418
|
-
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
36419
|
-
field: 'materialColorR',
|
36420
|
-
cellDataType: 'number'
|
36421
|
-
}]
|
36422
|
-
}, {
|
36423
|
-
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
36424
|
-
children: [{
|
36425
|
-
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
36426
|
-
field: 'measureNo',
|
36427
|
-
cellDataType: 'number'
|
36428
|
-
}, {
|
36429
|
-
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
36430
|
-
field: 'measureValue',
|
36431
|
-
cellDataType: 'number'
|
36432
|
-
}, {
|
36433
|
-
headerName: 'backoffice.idmCatalog.options.label.measureUnit',
|
36434
|
-
field: 'measureUnit'
|
36435
|
-
}]
|
36436
|
-
}, {
|
36437
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
36438
|
-
field: 'lastUpdatedDate',
|
36439
|
-
cellDataType: 'dateString',
|
36440
|
-
editable: false
|
36441
|
-
}, {
|
36442
|
-
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
36443
|
-
field: 'lastUpdatedByDisplayText',
|
36444
|
-
editable: false
|
36445
|
-
}, {
|
36446
|
-
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
36447
|
-
field: 'createdDate',
|
36448
|
-
cellDataType: 'dateString',
|
36449
|
-
editable: false
|
36450
|
-
}, {
|
36451
|
-
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
36452
|
-
field: 'createdByDisplayText',
|
36453
|
-
editable: false
|
36454
|
-
}]
|
36455
|
-
};
|
36456
|
-
}, [selectedCatalog === null || selectedCatalog === void 0 ? void 0 : selectedCatalog.isoLanguageIds]);
|
36457
|
-
return /*#__PURE__*/jsx(Spreadsheet, {
|
36458
|
-
gridId: 'crud-grid_options',
|
36459
|
-
applicationData: applicationData,
|
36460
|
-
configuration: configuration
|
36461
|
-
}, selectedFeature);
|
36462
|
-
}
|
36463
|
-
|
36464
36503
|
function Features(_ref) {
|
36465
36504
|
var organizationId = _ref.organizationId,
|
36466
36505
|
selectedCatalog = _ref.selectedCatalog,
|
@@ -36625,52 +36664,10 @@ function Features(_ref) {
|
|
36625
36664
|
var TableFeatures = observer(function () {
|
36626
36665
|
var _useTranslation = useTranslation(),
|
36627
36666
|
t = _useTranslation.t;
|
36628
|
-
var root = useStore();
|
36629
36667
|
var _useModule = useModule(['features']),
|
36630
36668
|
selectedCatalog = _useModule.selectedCatalog,
|
36631
36669
|
organizationId = _useModule.organizationId,
|
36632
36670
|
apiConfig = _useModule.apiConfig;
|
36633
|
-
var _React$useState = React.useState(),
|
36634
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
36635
|
-
selectedFeature = _React$useState2[0],
|
36636
|
-
setSelectedFeature = _React$useState2[1];
|
36637
|
-
useEffect(function () {
|
36638
|
-
if (selectedFeature !== null && selectedFeature !== void 0 && selectedFeature._id) {
|
36639
|
-
root.contentStore.bottomToolBar.tools = [{
|
36640
|
-
id: 'options',
|
36641
|
-
name: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'),
|
36642
|
-
elementComponent: Options,
|
36643
|
-
elementProps: {
|
36644
|
-
organizationId: organizationId,
|
36645
|
-
selectedCatalog: selectedCatalog,
|
36646
|
-
selectedFeature: selectedFeature._id,
|
36647
|
-
apiConfig: apiConfig
|
36648
|
-
},
|
36649
|
-
startWidth: 300,
|
36650
|
-
defaultPinned: false,
|
36651
|
-
defaultOpen: false
|
36652
|
-
}];
|
36653
|
-
} else {
|
36654
|
-
root.contentStore.bottomToolBar.tools = [];
|
36655
|
-
}
|
36656
|
-
}, [selectedFeature]);
|
36657
|
-
useEffect(function () {
|
36658
|
-
//remove options table, when features are unmounted
|
36659
|
-
return function () {
|
36660
|
-
root.contentStore.bottomToolBar.tools = [];
|
36661
|
-
};
|
36662
|
-
}, []);
|
36663
|
-
var hooks = useMemo(function () {
|
36664
|
-
return {
|
36665
|
-
onCellSelectionChanged: function onCellSelectionChanged(event) {
|
36666
|
-
if (event.selection.length == 1) {
|
36667
|
-
setSelectedFeature(event.selection[0].node.data);
|
36668
|
-
} else {
|
36669
|
-
setSelectedFeature(null);
|
36670
|
-
}
|
36671
|
-
}
|
36672
|
-
};
|
36673
|
-
}, []);
|
36674
36671
|
return /*#__PURE__*/jsxs(Fragment, {
|
36675
36672
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36676
36673
|
title: /*#__PURE__*/jsxs("div", {
|
@@ -36686,77 +36683,12 @@ var TableFeatures = observer(function () {
|
|
36686
36683
|
}), selectedCatalog && /*#__PURE__*/jsx(Features, {
|
36687
36684
|
organizationId: organizationId,
|
36688
36685
|
selectedCatalog: selectedCatalog,
|
36689
|
-
apiConfig: apiConfig,
|
36690
|
-
hooks: hooks
|
36691
|
-
})]
|
36692
|
-
});
|
36693
|
-
});
|
36694
|
-
|
36695
|
-
var FeatureSelector = function FeatureSelector(_ref) {
|
36696
|
-
var modules = _ref.modules;
|
36697
|
-
var _useTranslation = useTranslation(),
|
36698
|
-
t = _useTranslation.t,
|
36699
|
-
i18n = _useTranslation.i18n;
|
36700
|
-
var _useCatalogContext = useCatalogContext(modules),
|
36701
|
-
catalogId = _useCatalogContext.catalogId,
|
36702
|
-
idmService = _useCatalogContext.idmService,
|
36703
|
-
selectedFeature = _useCatalogContext.selectedFeature,
|
36704
|
-
setSelectedFeature = _useCatalogContext.setSelectedFeature,
|
36705
|
-
featureSelectorState = _useCatalogContext.featureSelectorState;
|
36706
|
-
return /*#__PURE__*/jsx(SimpleSelect, {
|
36707
|
-
sharedState: featureSelectorState,
|
36708
|
-
apiInterface: {
|
36709
|
-
read: idmService + '/v3.0/catalogs/' + catalogId + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
|
36710
|
-
},
|
36711
|
-
selectMapping: {
|
36712
|
-
label: "${featureText.".concat(i18n.language.toLocaleUpperCase(), "} (${featureNo})"),
|
36713
|
-
value: '${_id}'
|
36714
|
-
},
|
36715
|
-
autoSelectFirst: true,
|
36716
|
-
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
36717
|
-
value: selectedFeature,
|
36718
|
-
onChange: setSelectedFeature,
|
36719
|
-
search: true,
|
36720
|
-
style: {
|
36721
|
-
width: 200
|
36722
|
-
},
|
36723
|
-
popupClassName: 'ag-custom-component-popup'
|
36724
|
-
}, catalogId);
|
36725
|
-
};
|
36726
|
-
var FeatureSelector$1 = observer(FeatureSelector);
|
36727
|
-
|
36728
|
-
var TableOptions = observer(function () {
|
36729
|
-
var _useTranslation = useTranslation(),
|
36730
|
-
t = _useTranslation.t;
|
36731
|
-
var _useModule = useModule(['options']),
|
36732
|
-
selectedCatalog = _useModule.selectedCatalog,
|
36733
|
-
selectedFeature = _useModule.selectedFeature,
|
36734
|
-
apiConfig = _useModule.apiConfig,
|
36735
|
-
organizationId = _useModule.organizationId;
|
36736
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
36737
|
-
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36738
|
-
title: /*#__PURE__*/jsxs("div", {
|
36739
|
-
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
|
36740
|
-
style: {
|
36741
|
-
"float": 'right'
|
36742
|
-
},
|
36743
|
-
children: [/*#__PURE__*/jsx(CatalogSelector$1, {
|
36744
|
-
modules: ['options']
|
36745
|
-
}), /*#__PURE__*/jsx(FeatureSelector$1, {
|
36746
|
-
modules: ['options']
|
36747
|
-
})]
|
36748
|
-
})]
|
36749
|
-
})
|
36750
|
-
}), selectedFeature && selectedCatalog && /*#__PURE__*/jsx(Options, {
|
36751
|
-
organizationId: organizationId,
|
36752
|
-
selectedCatalog: selectedCatalog,
|
36753
|
-
selectedFeature: selectedFeature._id,
|
36754
36686
|
apiConfig: apiConfig
|
36755
36687
|
})]
|
36756
36688
|
});
|
36757
36689
|
});
|
36758
36690
|
|
36759
|
-
function
|
36691
|
+
function Options(_ref) {
|
36760
36692
|
var organizationId = _ref.organizationId,
|
36761
36693
|
selectedCatalog = _ref.selectedCatalog,
|
36762
36694
|
apiConfig = _ref.apiConfig;
|
@@ -36781,8 +36713,7 @@ function CatalogOptions(_ref) {
|
|
36781
36713
|
floatingFilter: true,
|
36782
36714
|
colDef: [{
|
36783
36715
|
field: 'optionKey',
|
36784
|
-
required: true
|
36785
|
-
unique: true
|
36716
|
+
required: true
|
36786
36717
|
}, {
|
36787
36718
|
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
36788
36719
|
field: 'sequenceNo',
|
@@ -36796,9 +36727,9 @@ function CatalogOptions(_ref) {
|
|
36796
36727
|
headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
|
36797
36728
|
cellDataType: 'lookup',
|
36798
36729
|
editable: true,
|
36799
|
-
required:
|
36730
|
+
required: false,
|
36800
36731
|
customParams: {
|
36801
|
-
nameField: '
|
36732
|
+
nameField: 'featureIdsDisplayTexts',
|
36802
36733
|
filterCellType: 'objectId',
|
36803
36734
|
displayLabelTemplate: '${name} (${value})',
|
36804
36735
|
apiInterface: {
|
@@ -36813,7 +36744,7 @@ function CatalogOptions(_ref) {
|
|
36813
36744
|
multiple: true,
|
36814
36745
|
translated: true
|
36815
36746
|
},
|
36816
|
-
additionalFields: ['
|
36747
|
+
additionalFields: ['featureIdsDisplayTexts'],
|
36817
36748
|
isDictionary: true
|
36818
36749
|
}, {
|
36819
36750
|
headerName: 'backoffice.idmCatalog.items.label.validation',
|
@@ -36830,7 +36761,8 @@ function CatalogOptions(_ref) {
|
|
36830
36761
|
headerName: 'backoffice.idmCatalog.options.label.material',
|
36831
36762
|
children: [{
|
36832
36763
|
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
36833
|
-
field: 'materialNo'
|
36764
|
+
field: 'materialNo',
|
36765
|
+
editable: false
|
36834
36766
|
}, {
|
36835
36767
|
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
36836
36768
|
field: 'materialColorR',
|
@@ -36841,7 +36773,7 @@ function CatalogOptions(_ref) {
|
|
36841
36773
|
cellDataType: 'number'
|
36842
36774
|
}, {
|
36843
36775
|
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
36844
|
-
field: '
|
36776
|
+
field: 'materialColorB',
|
36845
36777
|
cellDataType: 'number'
|
36846
36778
|
}]
|
36847
36779
|
}, {
|
@@ -36849,7 +36781,8 @@ function CatalogOptions(_ref) {
|
|
36849
36781
|
children: [{
|
36850
36782
|
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
36851
36783
|
field: 'measureNo',
|
36852
|
-
cellDataType: 'number'
|
36784
|
+
cellDataType: 'number',
|
36785
|
+
editable: false
|
36853
36786
|
}, {
|
36854
36787
|
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
36855
36788
|
field: 'measureValue',
|
@@ -36905,28 +36838,26 @@ function CatalogOptions(_ref) {
|
|
36905
36838
|
});
|
36906
36839
|
}
|
36907
36840
|
|
36908
|
-
var
|
36841
|
+
var TableOptions = observer(function () {
|
36909
36842
|
var _useTranslation = useTranslation(),
|
36910
36843
|
t = _useTranslation.t;
|
36911
|
-
var _useModule = useModule(['
|
36844
|
+
var _useModule = useModule(['options']),
|
36912
36845
|
selectedCatalog = _useModule.selectedCatalog,
|
36913
36846
|
apiConfig = _useModule.apiConfig,
|
36914
36847
|
organizationId = _useModule.organizationId;
|
36915
36848
|
return /*#__PURE__*/jsxs(Fragment, {
|
36916
36849
|
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
36917
36850
|
title: /*#__PURE__*/jsxs("div", {
|
36918
|
-
children: [t('backoffice.menu.items.label.
|
36851
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsx(Space$1, {
|
36919
36852
|
style: {
|
36920
36853
|
"float": 'right'
|
36921
36854
|
},
|
36922
|
-
children:
|
36923
|
-
modules: ['options']
|
36924
|
-
}), /*#__PURE__*/jsx(FeatureSelector$1, {
|
36855
|
+
children: /*#__PURE__*/jsx(CatalogSelector$1, {
|
36925
36856
|
modules: ['options']
|
36926
|
-
})
|
36857
|
+
})
|
36927
36858
|
})]
|
36928
36859
|
})
|
36929
|
-
}), selectedCatalog && /*#__PURE__*/jsx(
|
36860
|
+
}), selectedCatalog && /*#__PURE__*/jsx(Options, {
|
36930
36861
|
organizationId: organizationId,
|
36931
36862
|
selectedCatalog: selectedCatalog,
|
36932
36863
|
apiConfig: apiConfig
|
@@ -39329,9 +39260,6 @@ function Content$2() {
|
|
39329
39260
|
}), /*#__PURE__*/jsx(Route, {
|
39330
39261
|
path: ":catalogId/options",
|
39331
39262
|
element: /*#__PURE__*/jsx(TableOptions, {})
|
39332
|
-
}), /*#__PURE__*/jsx(Route, {
|
39333
|
-
path: ":catalogId/catalogoptions",
|
39334
|
-
element: /*#__PURE__*/jsx(TableCatalogOptions, {})
|
39335
39263
|
}), /*#__PURE__*/jsx(Route, {
|
39336
39264
|
path: ":catalogId/optiongroups",
|
39337
39265
|
element: /*#__PURE__*/jsx(TableOptionGroups, {})
|
@@ -39459,7 +39387,7 @@ function TableCollections () {
|
|
39459
39387
|
var organizationId = root.dataStore.organizationId;
|
39460
39388
|
var apiConfig = root.configurationStore.apiConfig;
|
39461
39389
|
useEffect(function () {
|
39462
|
-
if (selectedCollection) {
|
39390
|
+
if (selectedCollection !== null && selectedCollection !== void 0 && selectedCollection._id) {
|
39463
39391
|
root.contentStore.bottomToolBar.tools = [{
|
39464
39392
|
id: 'collectionMembers',
|
39465
39393
|
name: t('backoffice.menu.items.label.IDMCatalogEditorTableCollectionmembers'),
|
@@ -40192,7 +40120,7 @@ function Detail(_ref) {
|
|
40192
40120
|
setCanSave: setCanSave,
|
40193
40121
|
onChange: onChange,
|
40194
40122
|
onError: onError,
|
40195
|
-
height:
|
40123
|
+
height: '100%'
|
40196
40124
|
}), info.type == 'ImageCropper' && /*#__PURE__*/jsx(ImageCropper$1, {
|
40197
40125
|
ref: ref,
|
40198
40126
|
id: info.configurationId,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ContentStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContentStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,wBAAwB,CAAC;AAI7E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO;IAWA,OAAO,CAAC,IAAI;IAVxB,OAAO,CAAC,MAAM,CAC8F;IAC5G,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,uBAAuB,CAA+C;IAC9E,SAAgB,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAgB,aAAa,EAAE,YAAY,CAAC;gBAExB,IAAI,EAAE,SAAS;IAcnC,QAAQ;IAmCR,IAAI,KAAK,6BAER;IAED,IAAI,YAAY,4BAEf;IAED,IAAI,YAAY,4BAEf;IAED,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;IAc1E,uBAAuB,CAAC,GAAG,EAAE,MAAM;IAInC,IAAI,sBAAsB,IAAI;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAEpE;IAED,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW;IAKxC,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE;QAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,CAAC,EAAE,IAAI;IA+BjG,uBAAuB,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM;IAWjD;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;IAmBjC,OAAO,CAAC,OAAO;IAiCf;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgBxB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IA2BnB;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAa/B;AAED,eAAO,MAAM,IAAI,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"ContentStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContentStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,wBAAwB,CAAC;AAI7E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAG1C,MAAM,CAAC,OAAO;IAWA,OAAO,CAAC,IAAI;IAVxB,OAAO,CAAC,MAAM,CAC8F;IAC5G,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,uBAAuB,CAA+C;IAC9E,SAAgB,YAAY,EAAE,YAAY,CAAC;IAC3C,SAAgB,aAAa,EAAE,YAAY,CAAC;gBAExB,IAAI,EAAE,SAAS;IAcnC,QAAQ;IAmCR,IAAI,KAAK,6BAER;IAED,IAAI,YAAY,4BAEf;IAED,IAAI,YAAY,4BAEf;IAED,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;IAc1E,uBAAuB,CAAC,GAAG,EAAE,MAAM;IAInC,IAAI,sBAAsB,IAAI;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAEpE;IAED,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW;IAKxC,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE;QAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,CAAC,EAAE,IAAI;IA+BjG,uBAAuB,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM;IAWjD;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;IAmBjC,OAAO,CAAC,OAAO;IAiCf;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgBxB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IA2BnB;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAa/B;AAED,eAAO,MAAM,IAAI,EAAE,QAAQ,EA8hB1B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CatalogEditor/DragDropUpload/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE;IAAE,UAAU,EAAE,GAAG,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CatalogEditor/DragDropUpload/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE;IAAE,UAAU,EAAE,GAAG,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAE,qBAmFxI"}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ApiConfig } from '@crystaldesign/diva-core';
|
3
3
|
import { CatalogData } from '../types';
|
4
|
-
export default function Options({ organizationId, selectedCatalog,
|
4
|
+
export default function Options({ organizationId, selectedCatalog, apiConfig, }: {
|
5
5
|
organizationId: string;
|
6
6
|
selectedCatalog: CatalogData;
|
7
|
-
selectedFeature: string;
|
8
7
|
apiConfig: ApiConfig;
|
9
8
|
}): React.JSX.Element;
|
10
9
|
//# sourceMappingURL=Options.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,cAAc,EACd,eAAe,EACf,
|
1
|
+
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,cAAc,EACd,eAAe,EACf,SAAS,GACV,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;CACtB,qBA2KA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useModule.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;;;;;;;
|
1
|
+
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useModule.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;;;;;;;EA4JhD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAcxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,aAAa;;CAmBxB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,YAAY;;CAmBvB,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableExclusivity/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableExclusivity/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAc/C,QAAA,MAAM,gBAAgB,yBAKrB,CAAC;AACF,QAAA,MAAM,kBAAkB,yBAKvB,CAAC;AAEF,QAAA,MAAM,gCAAgC,yBAKrC,CAAC;AAEF,QAAA,MAAM,qBAAqB,yBAK1B,CAAC;AAEF,QAAA,MAAM,wBAAwB,yBAK7B,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAC"}
|
@@ -150,10 +150,34 @@ export default function getConfig(t: TFunction): {
|
|
150
150
|
};
|
151
151
|
option: {
|
152
152
|
colDef: ({
|
153
|
+
field: string;
|
154
|
+
headerName: string;
|
155
|
+
cellDataType: string;
|
156
|
+
editable: boolean;
|
157
|
+
required: boolean;
|
158
|
+
customParams: {
|
159
|
+
nameField: string;
|
160
|
+
filterCellType: string;
|
161
|
+
displayLabelTemplate: string;
|
162
|
+
lookupValue: string;
|
163
|
+
lookupKey: string;
|
164
|
+
lookupKeyFilterType: {
|
165
|
+
type: string;
|
166
|
+
filterType: string;
|
167
|
+
};
|
168
|
+
multiple: boolean;
|
169
|
+
translated: boolean;
|
170
|
+
};
|
171
|
+
additionalFields: string[];
|
172
|
+
isDictionary: boolean;
|
173
|
+
} | {
|
153
174
|
field: string;
|
154
175
|
headerName: string;
|
155
176
|
editable: boolean;
|
156
177
|
cellDataType?: undefined;
|
178
|
+
required?: undefined;
|
179
|
+
customParams?: undefined;
|
180
|
+
additionalFields?: undefined;
|
157
181
|
isDictionary?: undefined;
|
158
182
|
} | {
|
159
183
|
headerName: string;
|
@@ -161,11 +185,17 @@ export default function getConfig(t: TFunction): {
|
|
161
185
|
editable: boolean;
|
162
186
|
cellDataType: string;
|
163
187
|
isDictionary: boolean;
|
188
|
+
required?: undefined;
|
189
|
+
customParams?: undefined;
|
190
|
+
additionalFields?: undefined;
|
164
191
|
} | {
|
165
192
|
field: string;
|
166
193
|
headerName: string;
|
167
194
|
editable: boolean;
|
168
195
|
cellDataType: string;
|
196
|
+
required?: undefined;
|
197
|
+
customParams?: undefined;
|
198
|
+
additionalFields?: undefined;
|
169
199
|
isDictionary?: undefined;
|
170
200
|
})[];
|
171
201
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tableConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,SAAS
|
1
|
+
{"version":3,"file":"tableConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6b7C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"optionsConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGlF,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAG;IAAE,MAAM,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;
|
1
|
+
{"version":3,"file":"optionsConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGlF,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAG;IAAE,MAAM,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;CAuDpI,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
@@ -13,7 +13,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
13
13
|
onError?: (error: string) => void;
|
14
14
|
setCanSave?: (canSave: boolean) => void;
|
15
15
|
data?: any;
|
16
|
-
height?: number;
|
16
|
+
height?: number | string;
|
17
17
|
} & React.RefAttributes<{
|
18
18
|
submit: () => void;
|
19
19
|
}>, "ref"> & React.RefAttributes<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;;QAYO,MAAM;YACF,GAAG;cACD,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI;cACpB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;iBACpB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;WAChC,GAAG;aACD,MAAM;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;;QAYO,MAAM;YACF,GAAG;cACD,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI;cACpB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;iBACpB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;WAChC,GAAG;aACD,MAAM,GAAG,MAAM;;YAED,MAAM,IAAI;;YAAV,MAAM,IAAI;;AAgErC,wBAAsD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAE,KAAK,EAAgB,MAAM,UAAU,CAAC;AA8B/C,eAAO,MAAM,UAAU,yCAAoB,CAAC;AAG5C,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;0BAEqB,CAAC,SAAS,MAAM,aAAa,KAAK,CAAC,CAAC,CAAC;;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAE,KAAK,EAAgB,MAAM,UAAU,CAAC;AA8B/C,eAAO,MAAM,UAAU,yCAAoB,CAAC;AAG5C,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;0BAEqB,CAAC,SAAS,MAAM,aAAa,KAAK,CAAC,CAAC,CAAC;;;AA0T3D,wBAAsC;AACtC,cAAc,UAAU,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
3
|
-
"version": "25.5.0-beta.
|
3
|
+
"version": "25.5.0-beta.21",
|
4
4
|
"license": "COMMERCIAL",
|
5
5
|
"devDependencies": {
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
@@ -15,17 +15,17 @@
|
|
15
15
|
"dependencies": {
|
16
16
|
"@ant-design/icons": "5.4.0",
|
17
17
|
"@babel/runtime": "7.24.7",
|
18
|
-
"@crystaldesign/content-box": "25.5.0-beta.
|
19
|
-
"@crystaldesign/content-item": "25.5.0-beta.
|
20
|
-
"@crystaldesign/diva-core": "25.5.0-beta.
|
21
|
-
"@crystaldesign/diva-utils": "25.5.0-beta.
|
22
|
-
"@crystaldesign/media-upload": "25.5.0-beta.
|
23
|
-
"@crystaldesign/rtf-editor": "25.5.0-beta.
|
24
|
-
"@crystaldesign/spreadsheet": "25.5.0-beta.
|
18
|
+
"@crystaldesign/content-box": "25.5.0-beta.21",
|
19
|
+
"@crystaldesign/content-item": "25.5.0-beta.21",
|
20
|
+
"@crystaldesign/diva-core": "25.5.0-beta.21",
|
21
|
+
"@crystaldesign/diva-utils": "25.5.0-beta.21",
|
22
|
+
"@crystaldesign/media-upload": "25.5.0-beta.21",
|
23
|
+
"@crystaldesign/rtf-editor": "25.5.0-beta.21",
|
24
|
+
"@crystaldesign/spreadsheet": "25.5.0-beta.21",
|
25
25
|
"@google/model-viewer": "3.5.0",
|
26
26
|
"ag-charts-community": "^10.1.0",
|
27
27
|
"ag-charts-react": "^10.1.0",
|
28
|
-
"antd": "5.
|
28
|
+
"antd": "5.24.6",
|
29
29
|
"csv": "6.3.6",
|
30
30
|
"fast-json-patch": "^3.1.0",
|
31
31
|
"fast-sort": "^3.4.1",
|
@@ -51,5 +51,5 @@
|
|
51
51
|
},
|
52
52
|
"module": "build/esm/index.js",
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "c3902f86973020505dd852a92100aabe1af52e47"
|
55
55
|
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { ApiConfig } from '@crystaldesign/diva-core';
|
3
|
-
import { CatalogData } from '../types';
|
4
|
-
export default function CatalogOptions({ organizationId, selectedCatalog, apiConfig, }: {
|
5
|
-
organizationId: string;
|
6
|
-
selectedCatalog: CatalogData;
|
7
|
-
apiConfig: ApiConfig;
|
8
|
-
}): React.JSX.Element;
|
9
|
-
//# sourceMappingURL=CatalogOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CatalogOptions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,cAAc,EACd,eAAe,EACf,SAAS,GACV,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;CACtB,qBA0KA"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogOptions/index.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,mBAAmB;;CAoB9B,CAAC"}
|