@crystaldesign/diva-backoffice 25.2.0-beta.3 → 25.2.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.
Files changed (42) hide show
  1. package/build/esm/index.js +421 -358
  2. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  3. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
  4. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations.d.ts.map +1 -1
  5. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
  6. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
  7. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/Forms/IDMImportForm.d.ts +6 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/Forms/IDMImportForm.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.d.ts +1 -1
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/SeriesSelector.d.ts +1 -1
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/SeriesSelector.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts +5 -1
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  22. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
  24. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.d.ts +3 -1
  25. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.d.ts.map +1 -1
  26. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
  27. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.d.ts +1 -1
  28. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
  29. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/SeriesSelector.d.ts +1 -1
  30. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/SeriesSelector.d.ts.map +1 -1
  31. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
  33. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  34. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
  35. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts +1 -1
  36. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/Table/StandardTable/useTableData.d.ts.map +1 -1
  38. package/build/types/backoffice/src/ui/Table/types.d.ts +2 -1
  39. package/build/types/backoffice/src/ui/Table/types.d.ts.map +1 -1
  40. package/build/types/backoffice/src/ui/Table/utils/applyFilterAndSortation.d.ts +25 -24
  41. package/build/types/backoffice/src/ui/Table/utils/applyFilterAndSortation.d.ts.map +1 -1
  42. package/package.json +10 -10
@@ -1969,17 +1969,14 @@ function loadConfiguration(t, root, config, lang) {
1969
1969
  width: 160
1970
1970
  }],
1971
1971
  apiInterface: {
1972
- read: {
1973
- list: '${analyticsService}/businessevents?organizationId=${organizationId}',
1974
- filterServerSide: true
1975
- }
1972
+ read: '${analyticsService}/businessevents?organizationId=${organizationId}'
1976
1973
  },
1977
1974
  filter: {
1978
1975
  period: {
1979
1976
  title: t('backoffice.FilterBoxAnalytics.filter.zeitraum'),
1980
1977
  fromField: 'fromTimeStamp',
1981
1978
  toField: 'toTimeStamp',
1982
- "default": '30'
1979
+ "default": 30
1983
1980
  },
1984
1981
  select: {
1985
1982
  filterField: 'status',
@@ -2025,138 +2022,43 @@ function loadConfiguration(t, root, config, lang) {
2025
2022
  DetailApplicationState: {
2026
2023
  type: 'JsonEditor'
2027
2024
  },
2028
- TableClientRenderJobs: {
2025
+ TableClientOEOverview: {
2029
2026
  type: 'Table',
2030
- title: t('backoffice.table.renderjobs.title'),
2031
- canRefresh: true,
2027
+ title: t('backoffice.table.roe.title'),
2032
2028
  columns: [{
2033
- title: t('backoffice.table.renderjobs.columns.state'),
2034
- field: 'state',
2035
- sorter: 1,
2036
- filter: {
2037
- type: 'multiselect',
2038
- values: [{
2039
- value: 0,
2040
- label: 'renderjob.stateincart'
2041
- }, {
2042
- value: 1,
2043
- groupedValues: [1, 2, 3],
2044
- label: 'renderjob.state.1'
2045
- }, {
2046
- value: 2,
2047
- groupedValues: [4, 5, 6, 7, 8, 9, 11],
2048
- label: 'renderjob.stateinprogress'
2049
- }, {
2050
- value: 10,
2051
- label: 'renderjob.state.10'
2052
- }, {
2053
- value: 12,
2054
- label: 'renderjob.state.12'
2055
- }]
2056
- },
2057
- translationPrefix: 'renderjob.state',
2058
- type: 'string',
2059
- groupedValuesDisplayString: [{
2060
- values: [0],
2061
- text: t('renderjob.stateincart')
2062
- }, {
2063
- values: [1, 2, 3],
2064
- text: t('renderjob.state.1')
2065
- }, {
2066
- values: [4, 5, 6, 7, 9, 8, 11],
2067
- text: t('renderjob.stateinprogress')
2068
- }],
2069
- width: 130
2070
- }, {
2071
- title: t('backoffice.table.renderjobs.columns.divaNr'),
2072
- field: 'divaNr',
2029
+ title: t('backoffice.table.roe.name'),
2030
+ field: '_id',
2073
2031
  filter: 'advanced',
2074
- sorter: 2,
2075
- width: 120
2032
+ sorter: 2
2076
2033
  }, {
2077
- title: t('backoffice.table.renderjobs.columns.VariantId'),
2078
- field: 'divaNrVariantId',
2034
+ title: t('backoffice.table.roe.countHQ'),
2035
+ field: 'countHQ',
2079
2036
  filter: 'advanced',
2080
2037
  sorter: 2,
2081
- width: 120
2082
- }, {
2083
- title: t('backoffice.table.renderjobs.columns.fileUrl'),
2084
- field: 'fileUrl',
2085
- type: 'media',
2086
- align: 'center',
2087
- width: 100
2088
- }, {
2089
- title: t('backoffice.table.renderjobs.columns.realTimeRenderUrl'),
2090
- field: 'realTimeRenderUrl',
2091
- type: 'media',
2092
- align: 'center',
2093
- width: 100
2038
+ width: 50
2094
2039
  }, {
2095
- title: t('backoffice.table.renderjobs.columns.job'),
2096
- field: 'job',
2097
- sorter: 3,
2040
+ title: t('backoffice.table.roe.countAR'),
2041
+ field: 'countAR',
2098
2042
  filter: 'advanced',
2099
- width: 100
2100
- }, {
2101
- title: t('backoffice.table.renderjobs.columns.fileName'),
2102
- field: 'fileName',
2103
- sorter: 3,
2104
- filter: 'advanced',
2105
- width: 220
2106
- }, {
2107
- title: t('backoffice.table.renderjobs.columns.viewPoint'),
2108
- field: 'viewPoint',
2109
- sorter: 4,
2110
- filter: 'advanced',
2111
- width: 100
2043
+ sorter: 2,
2044
+ width: 50
2112
2045
  }, {
2113
- title: t('backoffice.table.renderjobs.columns.renderScene'),
2114
- field: 'renderScene_displayText',
2115
- sorter: 4,
2046
+ title: t('backoffice.table.roe.countAmbient'),
2047
+ field: 'countAmbient',
2116
2048
  filter: 'advanced',
2117
- width: 200
2118
- }, {
2119
- title: t('backoffice.table.renderjobs.columns.group'),
2120
- field: 'group',
2121
- sorter: 11,
2122
- filter: 'advanced',
2123
- width: 200
2049
+ sorter: 2,
2050
+ width: 50
2124
2051
  }, {
2125
- title: t('backoffice.table.renderjobs.columns.productName'),
2126
- field: 'productName',
2127
- sorter: 12,
2052
+ title: t('backoffice.table.roe.count3DExport'),
2053
+ field: 'count3DExport',
2128
2054
  filter: 'advanced',
2129
- width: 180
2130
- }, {
2131
- title: t('backoffice.table.invitations.organization'),
2132
- field: 'organizationName',
2133
- sorter: 1,
2134
- width: 200,
2135
- hidden: function hidden(_, globalFilter) {
2136
- var _globalFilter$toggle;
2137
- return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle = globalFilter.toggle) !== null && _globalFilter$toggle !== void 0 && (_globalFilter$toggle = _globalFilter$toggle['hierarchy']) !== null && _globalFilter$toggle !== void 0 && _globalFilter$toggle[0]);
2138
- }
2139
- }, {
2140
- title: t('backoffice.table.renderjobs.columns.created'),
2141
- field: 'created',
2142
- sorter: 15,
2143
- type: 'unixTimeStamp',
2144
- defaultSortOrder: 'descend',
2145
- width: 160,
2146
- filter: 'interval'
2147
- }, {
2148
- title: t('backoffice.table.renderjobs.columns.lastUpdated'),
2149
- field: 'lastUpdated',
2150
- sorter: 15,
2151
- type: 'unixTimeStamp',
2152
- defaultSortOrder: 'descend',
2153
- width: 160,
2154
- filter: 'interval'
2055
+ sorter: 2,
2056
+ width: 50
2155
2057
  }],
2156
2058
  apiInterface: {
2157
2059
  read: {
2158
- list: '${mediaService}/renderjobs?organizationId=${organizationId}',
2159
- filterServerSide: true
2060
+ list: '${mediaService}/renderjobs/overview?from=${from}&to=${to}',
2061
+ filterServerSide: false
2160
2062
  },
2161
2063
  update: {
2162
2064
  url: '${mediaService}/renderjobs/{_id}/state',
@@ -2166,83 +2068,32 @@ function loadConfiguration(t, root, config, lang) {
2166
2068
  mapping: {
2167
2069
  type: 'query',
2168
2070
  map: [{
2169
- sourceField: 'hierarchy',
2170
- targetField: 'hierarchy'
2071
+ sourceField: 'from',
2072
+ targetField: 'from'
2171
2073
  }, {
2172
- globalValue: 'selectedOrganizationId',
2173
- targetField: 'organizationId'
2074
+ sourceField: 'to',
2075
+ targetField: 'to'
2174
2076
  }]
2175
2077
  },
2176
2078
  filter: {
2177
2079
  toggle: {
2178
- fields: ['hierarchy'],
2179
- label: t('backoffice.table.allorgusers.filter.toggle.label'),
2180
- labelOff: t('backoffice.table.allorgusers.filter.toggle.labelOff'),
2181
- inQuery: true
2182
- }
2183
- },
2184
- rowAction: [{
2185
- actionType: 'SimpleChangeValueButton',
2186
- label: t('backoffice.renderjobs.order'),
2187
- id: 'OrderClientRenderJob',
2188
- rule: [
2189
- //only created renderjobs can be ordered
2190
- {
2191
- match: {
2192
- sourceField: 'state',
2193
- value: 0
2194
- }
2195
- }],
2196
- newValues: [{
2197
- field: 'state',
2198
- value: 1
2199
- }],
2200
- apiInterface: {
2201
- update: {
2202
- url: '${mediaService}/renderjobs/{_id}/state',
2203
- method: 'PATCH'
2204
- }
2205
- }
2206
- }, {
2207
- actionType: 'SimpleChangeValueButton',
2208
- label: t('backoffice.cancel'),
2209
- id: 'CancelClientRenderJob',
2210
- rule: [
2211
- //only ordered and created renderjobs can bbe canceled
2212
- {
2213
- or: [{
2214
- match: {
2215
- sourceField: 'state',
2216
- value: 0
2217
- }
2218
- }, {
2219
- match: {
2220
- sourceField: 'state',
2221
- value: 1
2222
- }
2223
- }, {
2224
- match: {
2225
- sourceField: 'state',
2226
- value: 2
2227
- }
2228
- }, {
2229
- match: {
2230
- sourceField: 'state',
2231
- value: 3
2232
- }
2233
- }]
2234
- }],
2235
- newValues: [{
2236
- field: 'state',
2237
- value: 10
2238
- }],
2239
- apiInterface: {
2240
- update: {
2241
- url: '${mediaService}/renderjobs/{_id}/state',
2242
- method: 'PATCH'
2243
- }
2080
+ globalValue: 'organizationId',
2081
+ fields: ['organizationId'],
2082
+ label: t('backoffice.table.clientrelations.filter.label.allorgs'),
2083
+ labelOff: t('backoffice.table.clientrelations.filter.label.allorgs'),
2084
+ inverted: true,
2085
+ inQuery: true,
2086
+ permission: 'backoffice_taskstatus_allorgs',
2087
+ isAnd: true
2088
+ },
2089
+ period: {
2090
+ title: t('backoffice.FilterBoxAnalytics.filter.zeitraum'),
2091
+ fromField: 'from',
2092
+ toField: 'to',
2093
+ "default": 30,
2094
+ onlyAsMappingData: true
2244
2095
  }
2245
- }]
2096
+ }
2246
2097
  },
2247
2098
  TableAllUsers: {
2248
2099
  type: 'Table',
@@ -4899,8 +4750,8 @@ function loadConfiguration(t, root, config, lang) {
4899
4750
  sorter: 1,
4900
4751
  width: 200,
4901
4752
  hidden: function hidden(_, globalFilter) {
4902
- var _globalFilter$toggle2;
4903
- return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle2 = globalFilter.toggle) !== null && _globalFilter$toggle2 !== void 0 && (_globalFilter$toggle2 = _globalFilter$toggle2['hierarchy']) !== null && _globalFilter$toggle2 !== void 0 && _globalFilter$toggle2[0]);
4753
+ var _globalFilter$toggle;
4754
+ return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle = globalFilter.toggle) !== null && _globalFilter$toggle !== void 0 && (_globalFilter$toggle = _globalFilter$toggle['hierarchy']) !== null && _globalFilter$toggle !== void 0 && _globalFilter$toggle[0]);
4904
4755
  }
4905
4756
  }, {
4906
4757
  title: t('backoffice.table.invitations.mailsend'),
@@ -5137,8 +4988,8 @@ function loadConfiguration(t, root, config, lang) {
5137
4988
  field: 'organizationDisplayName',
5138
4989
  width: 150,
5139
4990
  hidden: function hidden(_, globalFilter) {
5140
- var _globalFilter$toggle3;
5141
- return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle3 = globalFilter.toggle) !== null && _globalFilter$toggle3 !== void 0 && (_globalFilter$toggle3 = _globalFilter$toggle3['hierarchy']) !== null && _globalFilter$toggle3 !== void 0 && _globalFilter$toggle3[0]);
4991
+ var _globalFilter$toggle2;
4992
+ return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$toggle2 = globalFilter.toggle) !== null && _globalFilter$toggle2 !== void 0 && (_globalFilter$toggle2 = _globalFilter$toggle2['hierarchy']) !== null && _globalFilter$toggle2 !== void 0 && _globalFilter$toggle2[0]);
5142
4993
  }
5143
4994
  }, {
5144
4995
  title: t('backoffice.table.allorgusers.created'),
@@ -7817,10 +7668,7 @@ function loadConfiguration(t, root, config, lang) {
7817
7668
  style: {
7818
7669
  marginBottom: '20px'
7819
7670
  },
7820
- permission: 'backoffice_admin_organizations',
7821
- hidden: function hidden(data) {
7822
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7823
- }
7671
+ permission: 'backoffice_admin_organizations'
7824
7672
  }, {
7825
7673
  name: 'Info',
7826
7674
  type: 'text',
@@ -7828,10 +7676,7 @@ function loadConfiguration(t, root, config, lang) {
7828
7676
  marginBottom: '30px'
7829
7677
  },
7830
7678
  text: t('backoffice.form.organizationdetails.items.licensesdesc'),
7831
- permission: 'backoffice_admin_organizations',
7832
- hidden: function hidden(data) {
7833
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7834
- }
7679
+ permission: 'backoffice_admin_organizations'
7835
7680
  }, {
7836
7681
  name: ['settings', 'enable3DExport'],
7837
7682
  label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
@@ -7848,6 +7693,22 @@ function loadConfiguration(t, root, config, lang) {
7848
7693
  value: false
7849
7694
  }],
7850
7695
  permission: 'backoffice_sys_admin_organizations'
7696
+ }, {
7697
+ name: ['settings', 'renderjobSeparateMaterials'],
7698
+ label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
7699
+ permission: 'backoffice_admin_organizations',
7700
+ type: 'radio',
7701
+ optionType: 'button',
7702
+ options: [{
7703
+ label: t('backoffice.form.organizationdetails.items.vererbt'),
7704
+ value: undefined
7705
+ }, {
7706
+ label: t('backoffice.form.organizationdetails.items.ja'),
7707
+ value: true
7708
+ }, {
7709
+ label: t('backoffice.form.organizationdetails.items.nein'),
7710
+ value: false
7711
+ }]
7851
7712
  }, {
7852
7713
  name: ['settings', 'enableAR'],
7853
7714
  label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
@@ -7938,10 +7799,7 @@ function loadConfiguration(t, root, config, lang) {
7938
7799
  style: {
7939
7800
  marginBottom: '40px'
7940
7801
  },
7941
- permission: 'backoffice_admin_organizations',
7942
- hidden: function hidden(data) {
7943
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7944
- }
7802
+ permission: 'backoffice_admin_organizations'
7945
7803
  }, {
7946
7804
  name: 'iln',
7947
7805
  label: t('backoffice.form.organizationdetails.items.iln'),
@@ -13534,10 +13392,11 @@ var menu = [{
13534
13392
  permission: 'backoffice_current_organization',
13535
13393
  icon: 'ApartmentOutlined'
13536
13394
  }, {
13537
- id: 'TableClientRenderJobs',
13538
- path: 'renderjobs',
13539
- label: 'backoffice.menu.items.label.renderjobs',
13540
- icon: 'FileImageOutlined'
13395
+ id: 'TableClientOEOverview',
13396
+ path: 'orderentry',
13397
+ label: 'backoffice.menu.items.label.oeoverview',
13398
+ icon: 'FileImageOutlined',
13399
+ permission: 'backoffice_renderjobs_overview'
13541
13400
  }, {
13542
13401
  id: 'catalogArea',
13543
13402
  path: 'catalogs',
@@ -16759,6 +16618,7 @@ function parseDataEntry(item, selectMapping) {
16759
16618
  * Returns the data of the selected option(s) based on the selectMapping configuration
16760
16619
  */
16761
16620
  function parseReturnData(options, selectMapping) {
16621
+ if (!options) return undefined;
16762
16622
  if (Array.isArray(options)) return options.map(function (option) {
16763
16623
  return parseReturnData(option, selectMapping);
16764
16624
  });
@@ -25375,7 +25235,7 @@ var TableWrapper = function TableWrapper(_ref) {
25375
25235
  state.onGlobalFilterPeriod(values[0].valueOf(), values[1].valueOf());
25376
25236
  }
25377
25237
  },
25378
- value: [(_state$globalFilter2 = state.globalFilter) !== null && _state$globalFilter2 !== void 0 && (_state$globalFilter2 = _state$globalFilter2.timeStamp) !== null && _state$globalFilter2 !== void 0 && (_state$globalFilter2 = _state$globalFilter2['fromTimeStamp']) !== null && _state$globalFilter2 !== void 0 && _state$globalFilter2[0] ? dayjs((_state$globalFilter3 = state.globalFilter) === null || _state$globalFilter3 === void 0 || (_state$globalFilter3 = _state$globalFilter3.timeStamp) === null || _state$globalFilter3 === void 0 || (_state$globalFilter3 = _state$globalFilter3['fromTimeStamp']) === null || _state$globalFilter3 === void 0 ? void 0 : _state$globalFilter3[0]) : dayjs(new Date(Date.now() - 30 * 24 * 60 * 60 * 1000)),
25238
+ defaultValue: [(_state$globalFilter2 = state.globalFilter) !== null && _state$globalFilter2 !== void 0 && (_state$globalFilter2 = _state$globalFilter2.timeStamp) !== null && _state$globalFilter2 !== void 0 && (_state$globalFilter2 = _state$globalFilter2['fromTimeStamp']) !== null && _state$globalFilter2 !== void 0 && _state$globalFilter2[0] ? dayjs((_state$globalFilter3 = state.globalFilter) === null || _state$globalFilter3 === void 0 || (_state$globalFilter3 = _state$globalFilter3.timeStamp) === null || _state$globalFilter3 === void 0 || (_state$globalFilter3 = _state$globalFilter3['fromTimeStamp']) === null || _state$globalFilter3 === void 0 ? void 0 : _state$globalFilter3[0]) : dayjs(new Date(Date.now() - 30 * 24 * 60 * 60 * 1000)),
25379
25239
  // Convert to Dayjs
25380
25240
  (_state$globalFilter4 = state.globalFilter) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4.timeStamp) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4['toTimeStamp']) !== null && _state$globalFilter4 !== void 0 && _state$globalFilter4[0] ? dayjs((_state$globalFilter5 = state.globalFilter) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5.timeStamp) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5['toTimeStamp']) === null || _state$globalFilter5 === void 0 ? void 0 : _state$globalFilter5[0]) : dayjs(new Date()) // Convert to Dayjs
25381
25241
  ]
@@ -27040,7 +26900,7 @@ function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
27040
26900
  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; }
27041
26901
  var LOG$2 = getLogger('Backoffice', 'TableData');
27042
26902
  function useTableData (_ref) {
27043
- var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$bulkAc, _configuration$apiInt;
26903
+ var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
27044
26904
  var id = _ref.id,
27045
26905
  i18n = _ref.i18n,
27046
26906
  parentData = _ref.parentData,
@@ -27070,6 +26930,11 @@ function useTableData (_ref) {
27070
26930
  _useState8 = _slicedToArray(_useState7, 2),
27071
26931
  catalogItem = _useState8[0],
27072
26932
  onSelectedCatalog = _useState8[1];
26933
+ var filterHash = useRef();
26934
+ var _useState9 = useState(),
26935
+ _useState10 = _slicedToArray(_useState9, 2),
26936
+ error = _useState10[0],
26937
+ setError = _useState10[1];
27073
26938
  var toggleConfig = (_configuration$filter = configuration.filter) === null || _configuration$filter === void 0 ? void 0 : _configuration$filter.toggle;
27074
26939
  var toggleFilter = {};
27075
26940
  toggleConfig === null || toggleConfig === void 0 || toggleConfig.fields.forEach(function (f) {
@@ -27079,19 +26944,15 @@ function useTableData (_ref) {
27079
26944
  (_configuration$filter2 = configuration.filter) === null || _configuration$filter2 === void 0 || (_configuration$filter2 = _configuration$filter2["default"]) === null || _configuration$filter2 === void 0 || _configuration$filter2.fields.forEach(function (f) {
27080
26945
  return defaultFilter[f] = [configuration.filter["default"].globalValue ? root.getGlobalValue(configuration.filter["default"].globalValue) : true, 'eq'];
27081
26946
  });
27082
- var _useState9 = useState({
26947
+ var _useState11 = useState({
27083
26948
  select: (_configuration$filter3 = configuration.filter) !== null && _configuration$filter3 !== void 0 && (_configuration$filter3 = _configuration$filter3.select) !== null && _configuration$filter3 !== void 0 && _configuration$filter3.defaultValue ? _defineProperty({}, configuration.filter.select.filterField, [configuration.filter.select.defaultValue, 'eq']) : undefined,
27084
26949
  toggle: toggleConfig !== null && toggleConfig !== void 0 && toggleConfig.defaultChecked && !(toggleConfig !== null && toggleConfig !== void 0 && toggleConfig.inverted) || !(toggleConfig !== null && toggleConfig !== void 0 && toggleConfig.defaultChecked) && toggleConfig !== null && toggleConfig !== void 0 && toggleConfig.inverted ? toggleFilter : undefined,
27085
26950
  "default": defaultFilter ? defaultFilter : undefined
27086
26951
  }),
27087
- _useState10 = _slicedToArray(_useState9, 2),
27088
- globalFilter = _useState10[0],
27089
- setGlobaFilter = _useState10[1];
27090
- var filterHash = useRef();
27091
- var _useState11 = useState(),
27092
26952
  _useState12 = _slicedToArray(_useState11, 2),
27093
- error = _useState12[0],
27094
- setError = _useState12[1];
26953
+ globalFilter = _useState12[0],
26954
+ setGlobaFilter = _useState12[1];
26955
+ var periodDefaultValue = (_configuration$filter4 = configuration.filter) === null || _configuration$filter4 === void 0 || (_configuration$filter4 = _configuration$filter4.period) === null || _configuration$filter4 === void 0 ? void 0 : _configuration$filter4["default"];
27095
26956
  var _useState13 = useState({
27096
26957
  loading: true,
27097
26958
  deleting: false,
@@ -27107,13 +26968,15 @@ function useTableData (_ref) {
27107
26968
  mappingData: _objectSpread$o(_objectSpread$o({}, parentData), {}, {
27108
26969
  prefilter: {
27109
26970
  select: globalFilter.select
27110
- }
26971
+ },
26972
+ from: periodDefaultValue ? Date.now() - periodDefaultValue * 86400000 : undefined,
26973
+ to: Date.now()
27111
26974
  })
27112
26975
  }),
27113
26976
  _useState14 = _slicedToArray(_useState13, 2),
27114
26977
  state = _useState14[0],
27115
26978
  setState = _useState14[1];
27116
- var mapping = _objectSpread$o(_objectSpread$o({}, parentData), {}, {
26979
+ var mappingData = _objectSpread$o(_objectSpread$o(_objectSpread$o({}, parentData), state.data), {}, {
27117
26980
  catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
27118
26981
  sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
27119
26982
  });
@@ -27126,8 +26989,8 @@ function useTableData (_ref) {
27126
26989
  case 0:
27127
26990
  fd = new FormData();
27128
26991
  fd.append('value', JSON.stringify([newData]));
27129
- fd.append('catalogCodex', mapping.catalogCodex);
27130
- fd.append('sessionGuid', mapping.sessionGuID);
26992
+ fd.append('catalogCodex', mappingData.catalogCodex);
26993
+ fd.append('sessionGuid', mappingData.sessionGuID);
27131
26994
  _context.next = 6;
27132
26995
  return apiHandler.create(undefined, undefined, undefined, fd);
27133
26996
  case 6:
@@ -27166,8 +27029,8 @@ function useTableData (_ref) {
27166
27029
  for (var i = 0; i < dataArray.length; i++) {
27167
27030
  var dataRow = dataArray[i];
27168
27031
  if (filterServerSide) {
27169
- var _configuration$filter4;
27170
- if ((_configuration$filter4 = configuration.filter) !== null && _configuration$filter4 !== void 0 && (_configuration$filter4 = _configuration$filter4.select) !== null && _configuration$filter4 !== void 0 && _configuration$filter4.filterField) {
27032
+ var _configuration$filter5;
27033
+ if ((_configuration$filter5 = configuration.filter) !== null && _configuration$filter5 !== void 0 && (_configuration$filter5 = _configuration$filter5.select) !== null && _configuration$filter5 !== void 0 && _configuration$filter5.filterField) {
27171
27034
  onGlobalFilterSelect(dataRow[configuration.filter.select.filterField]);
27172
27035
  } else {
27173
27036
  var _pagination;
@@ -27183,15 +27046,15 @@ function useTableData (_ref) {
27183
27046
  });
27184
27047
  }
27185
27048
  } else {
27186
- var _configuration$filter5, _configuration$filter6;
27049
+ var _configuration$filter6, _configuration$filter7;
27187
27050
  var _updateData2 = updateData({
27188
27051
  data: newInitData,
27189
27052
  dataRow: dataRow
27190
27053
  }),
27191
27054
  nextInitData = _updateData2.data;
27192
27055
  var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData), {}, {
27193
- filters: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter5 = configuration.filter) !== null && _configuration$filter5 !== void 0 && (_configuration$filter5 = _configuration$filter5.toggle) !== null && _configuration$filter5 !== void 0 && _configuration$filter5.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
27194
- }, configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery ? {
27056
+ filters: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
27057
+ }, configuration !== null && configuration !== void 0 && (_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && (_configuration$filter7 = _configuration$filter7.toggle) !== null && _configuration$filter7 !== void 0 && _configuration$filter7.inQuery ? {
27195
27058
  genericProps: globalFilter.toggle
27196
27059
  } : undefined), {}, {
27197
27060
  data: nextInitData,
@@ -27222,14 +27085,14 @@ function useTableData (_ref) {
27222
27085
  _useState16 = _slicedToArray(_useState15, 1),
27223
27086
  columns = _useState16[0];
27224
27087
  var triggerRefresh = function triggerRefresh() {
27225
- var _configuration$filter7;
27088
+ var _configuration$filter8;
27226
27089
  setError(undefined);
27227
27090
  var newGlobalFilter = _objectSpread$o({}, globalFilter);
27228
27091
  //on refresh update default filter, since global value can change
27229
- if ((_configuration$filter7 = configuration.filter) !== null && _configuration$filter7 !== void 0 && _configuration$filter7["default"]) {
27230
- var _configuration$filter8;
27092
+ if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
27093
+ var _configuration$filter9;
27231
27094
  var _defaultFilter = {};
27232
- (_configuration$filter8 = configuration.filter) === null || _configuration$filter8 === void 0 || (_configuration$filter8 = _configuration$filter8["default"]) === null || _configuration$filter8 === void 0 || _configuration$filter8.fields.forEach(function (f) {
27095
+ (_configuration$filter9 = configuration.filter) === null || _configuration$filter9 === void 0 || (_configuration$filter9 = _configuration$filter9["default"]) === null || _configuration$filter9 === void 0 || _configuration$filter9.fields.forEach(function (f) {
27233
27096
  return _defaultFilter[f] = [configuration.filter["default"].globalValue ? root.getGlobalValue(configuration.filter["default"].globalValue) : true, 'eq'];
27234
27097
  });
27235
27098
  newGlobalFilter["default"] = _defaultFilter;
@@ -27289,7 +27152,7 @@ function useTableData (_ref) {
27289
27152
  }, [configuration.title, parentData]);
27290
27153
  var getDataById = /*#__PURE__*/function () {
27291
27154
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id) {
27292
- var _configuration$filter9;
27155
+ var _configuration$filter10;
27293
27156
  var filters, ssf, data;
27294
27157
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
27295
27158
  while (1) switch (_context2.prev = _context2.next) {
@@ -27303,11 +27166,11 @@ function useTableData (_ref) {
27303
27166
  },
27304
27167
  columns: configuration.columns,
27305
27168
  filters: filters
27306
- }, configuration !== null && configuration !== void 0 && (_configuration$filter9 = configuration.filter) !== null && _configuration$filter9 !== void 0 && (_configuration$filter9 = _configuration$filter9.toggle) !== null && _configuration$filter9 !== void 0 && _configuration$filter9.inQuery ? {
27169
+ }, configuration !== null && configuration !== void 0 && (_configuration$filter10 = configuration.filter) !== null && _configuration$filter10 !== void 0 && (_configuration$filter10 = _configuration$filter10.toggle) !== null && _configuration$filter10 !== void 0 && _configuration$filter10.inQuery ? {
27307
27170
  genericProps: globalFilter.toggle
27308
27171
  } : undefined);
27309
27172
  _context2.next = 5;
27310
- return apiHandler.readList(parentMapping || configuration.mapping, mapping, ssf);
27173
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), ssf);
27311
27174
  case 5:
27312
27175
  data = _context2.sent;
27313
27176
  return _context2.abrupt("return", data);
@@ -27323,17 +27186,18 @@ function useTableData (_ref) {
27323
27186
  }();
27324
27187
  var onChange = /*#__PURE__*/function () {
27325
27188
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(p) {
27326
- var _configuration$filter10, _configuration$filter11, _prefilter$select, _configuration$filter12, _configuration$filter13;
27189
+ var _configuration$filter11, _configuration$filter12, _prefilter$select, _configuration$filter13, _configuration$filter14;
27327
27190
  var prefilter,
27328
27191
  refresh,
27329
27192
  clearSelection,
27193
+ addMappingData,
27330
27194
  currentData,
27331
27195
  filterData,
27332
27196
  currentFilterHash,
27333
27197
  currentPagination,
27334
27198
  currentUrl,
27335
- _configuration$filter14,
27336
27199
  _configuration$filter15,
27200
+ _configuration$filter16,
27337
27201
  _prefilter$toggle,
27338
27202
  _parseFilter,
27339
27203
  ssf,
@@ -27349,11 +27213,13 @@ function useTableData (_ref) {
27349
27213
  prefilter = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : globalFilter;
27350
27214
  refresh = _args3.length > 2 ? _args3[2] : undefined;
27351
27215
  clearSelection = _args3.length > 3 ? _args3[3] : undefined;
27216
+ addMappingData = _args3.length > 4 ? _args3[4] : undefined;
27352
27217
  setState(_objectSpread$o(_objectSpread$o({}, state), {}, {
27218
+ mappingData: _objectSpread$o(_objectSpread$o({}, state.mappingData), addMappingData),
27353
27219
  loading: true
27354
27220
  }));
27355
27221
  currentData = initData;
27356
- filterData = _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, prefilter.search), ((_configuration$filter10 = configuration.filter) === null || _configuration$filter10 === void 0 || (_configuration$filter10 = _configuration$filter10.select) === null || _configuration$filter10 === void 0 ? void 0 : _configuration$filter10.applyDefaultValue) !== false || ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter12 = (_configuration$filter13 = configuration.filter) === null || _configuration$filter13 === void 0 || (_configuration$filter13 = _configuration$filter13.select) === null || _configuration$filter13 === void 0 ? void 0 : _configuration$filter13.filterField) !== null && _configuration$filter12 !== void 0 ? _configuration$filter12 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
27222
+ filterData = _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, prefilter.search), ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.applyDefaultValue) !== false || ((_configuration$filter12 = configuration.filter) === null || _configuration$filter12 === void 0 || (_configuration$filter12 = _configuration$filter12.select) === null || _configuration$filter12 === void 0 ? void 0 : _configuration$filter12.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter13 = (_configuration$filter14 = configuration.filter) === null || _configuration$filter14 === void 0 || (_configuration$filter14 = _configuration$filter14.select) === null || _configuration$filter14 === void 0 ? void 0 : _configuration$filter14.filterField) !== null && _configuration$filter13 !== void 0 ? _configuration$filter13 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
27357
27223
  filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
27358
27224
  var _ref7 = _slicedToArray(_ref6, 2);
27359
27225
  _ref7[0];
@@ -27366,7 +27232,7 @@ function useTableData (_ref) {
27366
27232
  });
27367
27233
  filterHash.current = currentFilterHash;
27368
27234
  if (!filterServerSide) {
27369
- _context3.next = 20;
27235
+ _context3.next = 21;
27370
27236
  break;
27371
27237
  }
27372
27238
  ssf = _objectSpread$o({
@@ -27374,32 +27240,32 @@ function useTableData (_ref) {
27374
27240
  columns: configuration.columns,
27375
27241
  filters: filterData,
27376
27242
  sorter: p.sorter
27377
- }, configuration !== null && configuration !== void 0 && (_configuration$filter14 = configuration.filter) !== null && _configuration$filter14 !== void 0 && (_configuration$filter14 = _configuration$filter14.toggle) !== null && _configuration$filter14 !== void 0 && _configuration$filter14.inQuery ? {
27243
+ }, configuration !== null && configuration !== void 0 && (_configuration$filter15 = configuration.filter) !== null && _configuration$filter15 !== void 0 && (_configuration$filter15 = _configuration$filter15.toggle) !== null && _configuration$filter15 !== void 0 && _configuration$filter15.inQuery ? {
27378
27244
  genericProps: prefilter.toggle
27379
27245
  } : undefined);
27380
- _context3.next = 14;
27381
- return apiHandler.readList(parentMapping || configuration.mapping, mapping, ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter15 = configuration.filter) !== null && _configuration$filter15 !== void 0 && (_configuration$filter15 = _configuration$filter15.toggle) !== null && _configuration$filter15 !== void 0 && _configuration$filter15.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
27382
- case 14:
27246
+ _context3.next = 15;
27247
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), addMappingData), ssf, catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
27248
+ case 15:
27383
27249
  data = _context3.sent;
27384
- currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, mapping, ssf);
27250
+ currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), ssf);
27385
27251
  currentData = data.data;
27386
27252
  currentPagination = _objectSpread$o(_objectSpread$o({}, currentPagination), {}, {
27387
27253
  total: data.total
27388
27254
  });
27389
- _context3.next = 29;
27255
+ _context3.next = 30;
27390
27256
  break;
27391
- case 20:
27257
+ case 21:
27392
27258
  if (!(!currentData || currentData.length === 0 || refresh)) {
27393
- _context3.next = 26;
27259
+ _context3.next = 27;
27394
27260
  break;
27395
27261
  }
27396
- _context3.next = 23;
27397
- return apiHandler.readList(parentMapping || configuration.mapping, mapping, undefined);
27398
- case 23:
27262
+ _context3.next = 24;
27263
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), addMappingData), undefined);
27264
+ case 24:
27399
27265
  _data3 = _context3.sent;
27400
27266
  currentData = _data3.data;
27401
27267
  setInitData(currentData);
27402
- case 26:
27268
+ case 27:
27403
27269
  _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$o(_objectSpread$o({}, p), {}, {
27404
27270
  pagination: currentPagination,
27405
27271
  filters: filterData,
@@ -27408,12 +27274,12 @@ function useTableData (_ref) {
27408
27274
  })), _data4 = _applyFilterAndSortat2.data, pagination = _applyFilterAndSortat2.pagination;
27409
27275
  currentData = _data4;
27410
27276
  currentPagination = pagination;
27411
- case 29:
27277
+ case 30:
27412
27278
  setState(_objectSpread$o(_objectSpread$o({}, state), {}, {
27413
27279
  loading: false,
27414
27280
  data: currentData,
27415
27281
  pagination: currentPagination,
27416
- mappingData: _objectSpread$o(_objectSpread$o({}, parentData), {}, {
27282
+ mappingData: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, parentData), state.mappingData), addMappingData), {}, {
27417
27283
  prefilter: prefilter
27418
27284
  }),
27419
27285
  currentFetchUrl: currentUrl
@@ -27424,7 +27290,7 @@ function useTableData (_ref) {
27424
27290
  filters: p.filters,
27425
27291
  sorter: p.sorter
27426
27292
  });
27427
- case 31:
27293
+ case 32:
27428
27294
  case "end":
27429
27295
  return _context3.stop();
27430
27296
  }
@@ -27442,7 +27308,7 @@ function useTableData (_ref) {
27442
27308
  var onDelete = /*#__PURE__*/function () {
27443
27309
  var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
27444
27310
  var _configuration$apiInt2;
27445
- var newData, newInitData, deleted, userPermissions, _loop, mappingData, deleteResult, _ret, index, total, pages, current, _configuration$filter16, _configuration$filter17, data;
27311
+ var newData, newInitData, deleted, userPermissions, _loop, mappingData, deleteResult, _ret, index, total, pages, current, _configuration$filter17, _configuration$filter18, data;
27446
27312
  return _regeneratorRuntime.wrap(function _callee4$(_context5) {
27447
27313
  while (1) switch (_context5.prev = _context5.next) {
27448
27314
  case 0:
@@ -27457,7 +27323,7 @@ function useTableData (_ref) {
27457
27323
  case 6:
27458
27324
  userPermissions = _context5.sent;
27459
27325
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop(index) {
27460
- var _configuration$filter18, _configuration$filter19;
27326
+ var _configuration$filter19, _configuration$filter20;
27461
27327
  var id, _newData$filter, _newData$filter2, mapToggle, _iterator, _step, _globalFilter$toggle, field, _globalFilter$toggle2, _configuration$delete, _configuration$onErro, _configuration$onErro2, deletedIndex, initDeletedIndex;
27462
27328
  return _regeneratorRuntime.wrap(function _loop$(_context4) {
27463
27329
  while (1) switch (_context4.prev = _context4.next) {
@@ -27473,7 +27339,7 @@ function useTableData (_ref) {
27473
27339
  })) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
27474
27340
  }
27475
27341
  mapToggle = {};
27476
- _iterator = _createForOfIteratorHelper$3((_configuration$filter18 = (_configuration$filter19 = configuration.filter) === null || _configuration$filter19 === void 0 || (_configuration$filter19 = _configuration$filter19.toggle) === null || _configuration$filter19 === void 0 ? void 0 : _configuration$filter19.fields) !== null && _configuration$filter18 !== void 0 ? _configuration$filter18 : []);
27342
+ _iterator = _createForOfIteratorHelper$3((_configuration$filter19 = (_configuration$filter20 = configuration.filter) === null || _configuration$filter20 === void 0 || (_configuration$filter20 = _configuration$filter20.toggle) === null || _configuration$filter20 === void 0 ? void 0 : _configuration$filter20.fields) !== null && _configuration$filter19 !== void 0 ? _configuration$filter19 : []);
27477
27343
  try {
27478
27344
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
27479
27345
  field = _step.value;
@@ -27576,14 +27442,14 @@ function useTableData (_ref) {
27576
27442
  break;
27577
27443
  }
27578
27444
  _context5.next = 25;
27579
- return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$o({
27445
+ return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), _objectSpread$o({
27580
27446
  pagination: _objectSpread$o(_objectSpread$o({}, state.pagination), {}, {
27581
27447
  current: current
27582
27448
  }),
27583
27449
  columns: configuration.columns,
27584
- filters: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
27450
+ filters: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
27585
27451
  sorter: filterData.sorter
27586
- }, configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery ? {
27452
+ }, configuration !== null && configuration !== void 0 && (_configuration$filter18 = configuration.filter) !== null && _configuration$filter18 !== void 0 && (_configuration$filter18 = _configuration$filter18.toggle) !== null && _configuration$filter18 !== void 0 && _configuration$filter18.inQuery ? {
27587
27453
  genericProps: globalFilter.toggle
27588
27454
  } : undefined));
27589
27455
  case 25:
@@ -27612,8 +27478,8 @@ function useTableData (_ref) {
27612
27478
  };
27613
27479
  }();
27614
27480
  var onGlobalFilterSelect = function onGlobalFilterSelect(value) {
27615
- var _configuration$filter20;
27616
- if (!((_configuration$filter20 = configuration.filter) !== null && _configuration$filter20 !== void 0 && _configuration$filter20.select)) {
27481
+ var _configuration$filter21;
27482
+ if (!((_configuration$filter21 = configuration.filter) !== null && _configuration$filter21 !== void 0 && _configuration$filter21.select)) {
27617
27483
  LOG$2.error(new DivaError('No global select filter defiend'));
27618
27484
  return;
27619
27485
  }
@@ -27629,8 +27495,8 @@ function useTableData (_ref) {
27629
27495
  }, filterData), newGlobalFilter);
27630
27496
  };
27631
27497
  var onGlobalFilterToggle = function onGlobalFilterToggle() {
27632
- var _configuration$filter21;
27633
- if (!((_configuration$filter21 = configuration.filter) !== null && _configuration$filter21 !== void 0 && _configuration$filter21.toggle)) {
27498
+ var _configuration$filter22;
27499
+ if (!((_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.toggle)) {
27634
27500
  LOG$2.error(new DivaError('No global toggle filter defined'));
27635
27501
  return;
27636
27502
  }
@@ -27650,8 +27516,8 @@ function useTableData (_ref) {
27650
27516
  if (globalFilter !== null && globalFilter !== void 0 && globalFilter.toggle) onGlobalFilterToggle();
27651
27517
  };
27652
27518
  var onGlobalFilterSearch = function onGlobalFilterSearch(value) {
27653
- var _configuration$filter22;
27654
- if (!((_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.search)) {
27519
+ var _configuration$filter23;
27520
+ if (!((_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.search)) {
27655
27521
  LOG$2.error(new DivaError('No global search filter defiend'));
27656
27522
  return;
27657
27523
  }
@@ -27659,8 +27525,8 @@ function useTableData (_ref) {
27659
27525
  search: {}
27660
27526
  });
27661
27527
  if (value) {
27662
- var _configuration$filter23;
27663
- (_configuration$filter23 = configuration.filter) === null || _configuration$filter23 === void 0 || _configuration$filter23.search.fields.forEach(function (f) {
27528
+ var _configuration$filter24;
27529
+ (_configuration$filter24 = configuration.filter) === null || _configuration$filter24 === void 0 || _configuration$filter24.search.fields.forEach(function (f) {
27664
27530
  if (typeof f == 'string') {
27665
27531
  newGlobalFilter.search[f] = [value, 'contains', 1]; //normally global search should be or, so 1
27666
27532
  } else {
@@ -27674,8 +27540,8 @@ function useTableData (_ref) {
27674
27540
  }, filterData), newGlobalFilter);
27675
27541
  };
27676
27542
  var onGlobalFilterPeriod = function onGlobalFilterPeriod(from, to) {
27677
- var _configuration$filter24;
27678
- if (!((_configuration$filter24 = configuration.filter) !== null && _configuration$filter24 !== void 0 && _configuration$filter24.period)) {
27543
+ var _configuration$filter25;
27544
+ if (!((_configuration$filter25 = configuration.filter) !== null && _configuration$filter25 !== void 0 && _configuration$filter25.period)) {
27679
27545
  LOG$2.error(new DivaError('No global period filter defiend'));
27680
27546
  return;
27681
27547
  }
@@ -27684,10 +27550,13 @@ function useTableData (_ref) {
27684
27550
  fromTimeStamp: [from],
27685
27551
  toTimeStamp: [to]
27686
27552
  };
27687
- setGlobaFilter(newGlobalFilter);
27553
+ if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
27688
27554
  onChange(_objectSpread$o({
27689
27555
  pagination: state.pagination
27690
- }, filterData), newGlobalFilter);
27556
+ }, filterData), undefined, undefined, undefined, {
27557
+ from: from,
27558
+ to: to
27559
+ });
27691
27560
  };
27692
27561
  return _objectSpread$o(_objectSpread$o({}, state), {}, {
27693
27562
  title: title,
@@ -30530,7 +30399,8 @@ function TableGroups () {
30530
30399
  }, {
30531
30400
  headerName: 'backoffice.idmEnricher.general.label._id',
30532
30401
  field: '_id',
30533
- editable: false
30402
+ editable: false,
30403
+ cellDataType: 'objectId'
30534
30404
  }]
30535
30405
  };
30536
30406
  }, [apiInterface, t]);
@@ -31143,7 +31013,8 @@ function TableProperties () {
31143
31013
  }, {
31144
31014
  headerName: 'backoffice.idmEnricher.general.label._id',
31145
31015
  field: '_id',
31146
- editable: false
31016
+ editable: false,
31017
+ cellDataType: 'objectId'
31147
31018
  }]
31148
31019
  };
31149
31020
  }, [apiInterface, t]);
@@ -31515,6 +31386,9 @@ function SeriesSelector$1(_ref) {
31515
31386
  var _useTranslation = useTranslation(),
31516
31387
  t = _useTranslation.t,
31517
31388
  i18n = _useTranslation.i18n;
31389
+ useEffect(function () {
31390
+ setSelectedSerie(undefined);
31391
+ }, [packageId]);
31518
31392
  return /*#__PURE__*/jsx(SimpleSelect, {
31519
31393
  apiInterface: {
31520
31394
  read: enricherService + '/packages/' + packageId + '/' + dataSet + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo").concat(additionalFields ? ";".concat(additionalFields.join(';')) : '')
@@ -31533,7 +31407,7 @@ function SeriesSelector$1(_ref) {
31533
31407
  style: {
31534
31408
  width: 200
31535
31409
  }
31536
- });
31410
+ }, packageId);
31537
31411
  }
31538
31412
 
31539
31413
  function FeatureSelector$1(_ref) {
@@ -31545,6 +31419,9 @@ function FeatureSelector$1(_ref) {
31545
31419
  var _useTranslation = useTranslation(),
31546
31420
  t = _useTranslation.t,
31547
31421
  i18n = _useTranslation.i18n;
31422
+ useEffect(function () {
31423
+ setSelectedFeature(undefined);
31424
+ }, [packageId]);
31548
31425
  return /*#__PURE__*/jsx(SimpleSelect, {
31549
31426
  apiInterface: {
31550
31427
  read: enricherService + '/packages/' + packageId + '/' + dataSet + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
@@ -31563,7 +31440,7 @@ function FeatureSelector$1(_ref) {
31563
31440
  style: {
31564
31441
  width: 200
31565
31442
  }
31566
- });
31443
+ }, packageId);
31567
31444
  }
31568
31445
 
31569
31446
  function useConfiguration (configuration) {
@@ -31893,7 +31770,8 @@ var config = {
31893
31770
  }, {
31894
31771
  field: 'purchaseRetailId',
31895
31772
  headerName: 'backoffice.idmEnricher.exclusivity.label.purchaseRetailId',
31896
- editable: false
31773
+ editable: false,
31774
+ cellDataType: 'number'
31897
31775
  }, {
31898
31776
  headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
31899
31777
  field: 'validFrom',
@@ -33032,7 +32910,8 @@ function PriceDisplayCellRenderer(props) {
33032
32910
  var _colDef$field, _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
33033
32911
  var value = props.value,
33034
32912
  colDef = props.colDef,
33035
- data = props.data;
32913
+ data = props.data,
32914
+ commas = props.commas;
33036
32915
  var priceGroup = colDef === null || colDef === void 0 || (_colDef$field = colDef.field) === null || _colDef$field === void 0 ? void 0 : _colDef$field.split('.')[1];
33037
32916
  var origPrice = priceGroup ? data === null || data === void 0 || (_data$origPrices = data.origPrices) === null || _data$origPrices === void 0 ? void 0 : _data$origPrices[priceGroup] : undefined;
33038
32917
  var currentPrice = value !== null && value !== void 0 ? value : undefined;
@@ -33042,10 +32921,10 @@ function PriceDisplayCellRenderer(props) {
33042
32921
  className: container$2,
33043
32922
  children: [/*#__PURE__*/jsxs("span", {
33044
32923
  className: classnames(price, _defineProperty({}, priceManual, isManualPrice)),
33045
- children: [(_currentPrice$toFixed = currentPrice === null || currentPrice === void 0 ? void 0 : currentPrice.toFixed(2)) !== null && _currentPrice$toFixed !== void 0 ? _currentPrice$toFixed : '-', isManualPrice && ' *']
32924
+ children: [(_currentPrice$toFixed = currentPrice === null || currentPrice === void 0 ? void 0 : currentPrice.toFixed(commas !== null && commas !== void 0 ? commas : 2)) !== null && _currentPrice$toFixed !== void 0 ? _currentPrice$toFixed : '-', isManualPrice && ' *']
33046
32925
  }), /*#__PURE__*/jsxs("span", {
33047
32926
  className: originalPrice,
33048
- children: ["(", (_origPrice$toFixed = origPrice === null || origPrice === void 0 ? void 0 : origPrice.toFixed(2)) !== null && _origPrice$toFixed !== void 0 ? _origPrice$toFixed : '-', ")"]
32927
+ children: ["(", (_origPrice$toFixed = origPrice === null || origPrice === void 0 ? void 0 : origPrice.toFixed(commas !== null && commas !== void 0 ? commas : 2)) !== null && _origPrice$toFixed !== void 0 ? _origPrice$toFixed : '-', ")"]
33049
32928
  }), /*#__PURE__*/jsx("span", {
33050
32929
  className: classnames(difference, _defineProperty(_defineProperty(_defineProperty({}, differencePositive, diffPercentage !== undefined && diffPercentage > 0), differenceNegative, diffPercentage !== undefined && diffPercentage < 0), differenceNeutral, diffPercentage === undefined || diffPercentage === 0)),
33051
32930
  children: diffPercentage !== undefined ? /*#__PURE__*/jsxs(Fragment, {
@@ -33136,27 +33015,95 @@ function Prices (_ref) {
33136
33015
  var _useTranslation = useTranslation(),
33137
33016
  t = _useTranslation.t;
33138
33017
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
33139
- var _pricelist$pgPricefac;
33140
33018
  if (!selectedSerie) return;
33141
- var newFactors = _objectSpread$a(_objectSpread$a({}, pricelist.pgPricefactors), {}, _defineProperty({}, selectedSerie.serieNo, _objectSpread$a(_objectSpread$a({}, (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[selectedSerie.serieNo]), {}, _defineProperty({}, priceFeatureGroupItem, value))));
33019
+
33020
+ // Create copies of the objects to modify
33021
+ var newFactors = _objectSpread$a({}, pricelist.pgPricefactors);
33022
+ var serieFactors = _objectSpread$a({}, newFactors[selectedSerie.serieNo]);
33023
+ if (value.length === 0) {
33024
+ // Remove the empty price feature group
33025
+ delete serieFactors[priceFeatureGroupItem];
33026
+
33027
+ // If serie factors is now empty, remove the entire serie entry
33028
+ if (Object.keys(serieFactors).length === 0) {
33029
+ delete newFactors[selectedSerie.serieNo];
33030
+ } else {
33031
+ newFactors[selectedSerie.serieNo] = serieFactors;
33032
+ }
33033
+
33034
+ // If no more series exist, set pgPricefactors to undefined
33035
+ if (Object.keys(newFactors).length === 0) {
33036
+ setNodeDataValue({
33037
+ pgPricefactors: undefined
33038
+ });
33039
+ return;
33040
+ }
33041
+ } else {
33042
+ // Add/update the value
33043
+ serieFactors[priceFeatureGroupItem] = value;
33044
+ newFactors[selectedSerie.serieNo] = serieFactors;
33045
+ }
33142
33046
  setNodeDataValue({
33143
33047
  pgPricefactors: newFactors
33144
33048
  });
33145
33049
  }, [pricelist, selectedSerie, setNodeDataValue]);
33146
33050
  var updateArticlePriceFactor = useCallback(function (typeNo, value) {
33147
- var _pricelist$articlePri;
33148
33051
  if (!selectedSerie) return;
33149
- var newFactors = _objectSpread$a(_objectSpread$a({}, pricelist.articlePricefactors), {}, _defineProperty({}, selectedSerie.serieNo, _objectSpread$a(_objectSpread$a({}, (_pricelist$articlePri = pricelist.articlePricefactors) === null || _pricelist$articlePri === void 0 ? void 0 : _pricelist$articlePri[selectedSerie.serieNo]), {}, _defineProperty({}, typeNo, value))));
33052
+
33053
+ // Create copies of the objects to modify
33054
+ var newFactors = _objectSpread$a({}, pricelist.articlePricefactors);
33055
+ var serieFactors = _objectSpread$a({}, newFactors[selectedSerie.serieNo]);
33056
+ if (value.length === 0) {
33057
+ // Remove the empty article price factor
33058
+ delete serieFactors[typeNo];
33059
+
33060
+ // If serie factors is now empty, remove the entire serie entry
33061
+ if (Object.keys(serieFactors).length === 0) {
33062
+ delete newFactors[selectedSerie.serieNo];
33063
+ } else {
33064
+ newFactors[selectedSerie.serieNo] = serieFactors;
33065
+ }
33066
+
33067
+ // If no more series exist, set articlePricefactors to undefined
33068
+ if (Object.keys(newFactors).length === 0) {
33069
+ setNodeDataValue({
33070
+ articlePricefactors: undefined
33071
+ });
33072
+ return;
33073
+ }
33074
+ } else {
33075
+ // Add/update the value
33076
+ serieFactors[typeNo] = value;
33077
+ newFactors[selectedSerie.serieNo] = serieFactors;
33078
+ }
33150
33079
  setNodeDataValue({
33151
33080
  articlePricefactors: newFactors
33152
33081
  });
33153
33082
  }, [pricelist, selectedSerie, setNodeDataValue]);
33154
33083
  var updateSeriePriceFactor = useCallback(function (value) {
33155
33084
  if (!selectedSerie) return;
33085
+
33086
+ // Create a copy of the object to modify
33087
+ var newFactors = _objectSpread$a({}, pricelist.seriePricefactors);
33088
+ if (value.length === 0) {
33089
+ // Remove the empty serie price factor
33090
+ delete newFactors[selectedSerie.serieNo];
33091
+
33092
+ // If no more series exist, set seriePricefactors to undefined
33093
+ if (Object.keys(newFactors).length === 0) {
33094
+ setNodeDataValue({
33095
+ seriePricefactors: undefined
33096
+ });
33097
+ return;
33098
+ }
33099
+ } else {
33100
+ // Add/update the value
33101
+ newFactors[selectedSerie.serieNo] = value;
33102
+ }
33156
33103
  setNodeDataValue({
33157
- seriePricefactors: _defineProperty({}, selectedSerie.serieNo, value)
33104
+ seriePricefactors: newFactors
33158
33105
  });
33159
- }, [selectedSerie, setNodeDataValue]);
33106
+ }, [pricelist, selectedSerie, setNodeDataValue]);
33160
33107
  var applicationData = useMemo(function () {
33161
33108
  return {
33162
33109
  organizationId: organizationId,
@@ -33164,7 +33111,7 @@ function Prices (_ref) {
33164
33111
  pricelistId: pricelist._id,
33165
33112
  serieNo: selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo
33166
33113
  };
33167
- }, [organizationId, packageId, selectedSerie]);
33114
+ }, [organizationId, packageId, selectedSerie, pricelist]);
33168
33115
  var apiInterface = useMemo(function () {
33169
33116
  return {
33170
33117
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
@@ -33198,10 +33145,10 @@ function Prices (_ref) {
33198
33145
  cellDataType: 'number',
33199
33146
  cellRenderer: PriceFactorCellRenderer,
33200
33147
  valueGetter: function valueGetter(_ref2) {
33201
- var _pricelist$articlePri2;
33148
+ var _pricelist$articlePri;
33202
33149
  var data = _ref2.data;
33203
33150
  if (!data) return;
33204
- return (_pricelist$articlePri2 = pricelist.articlePricefactors) === null || _pricelist$articlePri2 === void 0 || (_pricelist$articlePri2 = _pricelist$articlePri2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$articlePri2 === void 0 ? void 0 : _pricelist$articlePri2[data.typeNo];
33151
+ return (_pricelist$articlePri = pricelist.articlePricefactors) === null || _pricelist$articlePri === void 0 || (_pricelist$articlePri = _pricelist$articlePri[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$articlePri === void 0 ? void 0 : _pricelist$articlePri[data.typeNo];
33205
33152
  },
33206
33153
  cellRendererParams: {
33207
33154
  onSave: function () {
@@ -33229,7 +33176,7 @@ function Prices (_ref) {
33229
33176
  headerName: priceFeatureGroup.displayText,
33230
33177
  marryChildren: true,
33231
33178
  children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
33232
- var _priceFeatureGroup$ke3, _pricelist$pgPricefac2;
33179
+ var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
33233
33180
  return {
33234
33181
  headerName: priceFeatureGroupItem,
33235
33182
  field: "prices.".concat(priceFeatureGroupItem),
@@ -33238,6 +33185,9 @@ function Prices (_ref) {
33238
33185
  cellDataType: 'number',
33239
33186
  headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
33240
33187
  cellRenderer: PriceDisplayCellRenderer,
33188
+ cellRendererParams: {
33189
+ commas: pricelist.commas
33190
+ },
33241
33191
  additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
33242
33192
  headerClass: inputHeader,
33243
33193
  headerComponentParams: {
@@ -33258,7 +33208,7 @@ function Prices (_ref) {
33258
33208
  return _ref3.apply(this, arguments);
33259
33209
  };
33260
33210
  }()),
33261
- value: (_pricelist$pgPricefac2 = pricelist.pgPricefactors) === null || _pricelist$pgPricefac2 === void 0 || (_pricelist$pgPricefac2 = _pricelist$pgPricefac2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac2 === void 0 ? void 0 : _pricelist$pgPricefac2[priceFeatureGroupItem],
33211
+ value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceFeatureGroupItem],
33262
33212
  className: factorInput,
33263
33213
  tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
33264
33214
  })
@@ -33307,7 +33257,8 @@ function Prices (_ref) {
33307
33257
  }, {
33308
33258
  headerName: 'backoffice.idmEnricher.general.label._id',
33309
33259
  field: '_id',
33310
- editable: false
33260
+ editable: false,
33261
+ cellDataType: 'objectId'
33311
33262
  }])
33312
33263
  };
33313
33264
  }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
@@ -33439,6 +33390,18 @@ function TablePriceList () {
33439
33390
  }
33440
33391
  };
33441
33392
  }, [selectedNodeId]);
33393
+ var roundingOptions = useMemo(function () {
33394
+ return [{
33395
+ name: t('backoffice.idmEnricher.pricelists.rounding.r1'),
33396
+ value: 1
33397
+ }, {
33398
+ name: t('backoffice.idmEnricher.pricelists.rounding.r2'),
33399
+ value: 2
33400
+ }, {
33401
+ name: t('backoffice.idmEnricher.pricelists.rounding.r3'),
33402
+ value: 3
33403
+ }];
33404
+ }, []);
33442
33405
  var configuration = useMemo(function () {
33443
33406
  return {
33444
33407
  type: 'dotnetSSM',
@@ -33482,7 +33445,11 @@ function TablePriceList () {
33482
33445
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
33483
33446
  field: 'rounding',
33484
33447
  editable: true,
33485
- cellDataType: 'number'
33448
+ cellDataType: 'enum',
33449
+ customParams: {
33450
+ enumData: roundingOptions,
33451
+ displayLabelTemplate: '${name} (${value})'
33452
+ }
33486
33453
  }, {
33487
33454
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
33488
33455
  field: 'commas',
@@ -33675,30 +33642,77 @@ function UploadButton (_ref) {
33675
33642
  title = _ref.title,
33676
33643
  disabled = _ref.disabled,
33677
33644
  contentType = _ref.contentType,
33678
- setProgress = _ref.setProgress;
33645
+ setProgress = _ref.setProgress,
33646
+ setFileList = _ref.setFileList,
33647
+ fileList = _ref.fileList,
33648
+ progress = _ref.progress;
33679
33649
  var _useTranslation = useTranslation(),
33680
33650
  t = _useTranslation.t;
33681
33651
  var root = useStore();
33682
- var _useState = useState([]),
33683
- _useState2 = _slicedToArray(_useState, 2),
33684
- fileList = _useState2[0],
33685
- setFileList = _useState2[1];
33652
+ var ref = useRef();
33686
33653
  var handleUploadChange = function handleUploadChange(info) {
33687
33654
  var status = info.file.status;
33688
33655
  if (status === 'done') {
33689
- message.success("".concat(info.file.name, " file uploaded successfully."));
33690
- setFileList([]); // Clear the file list
33691
- setProgress('SUCCESS'); // Mark upload as successful
33656
+ setFileList([]);
33657
+ setProgress('SUCCESS');
33658
+ if (ref.current) {
33659
+ clearInterval(ref.current.interval);
33660
+ ref.current = undefined;
33661
+ }
33662
+ if (info.fileList[0]) {
33663
+ info.fileList[0].percent = 100;
33664
+ }
33692
33665
  } else if (status === 'error') {
33693
- message.error("".concat(info.file.name, " file upload failed."));
33694
- setProgress('ERROR'); // Mark upload as failed
33666
+ setProgress('ERROR');
33667
+ if (ref.current) {
33668
+ clearInterval(ref.current.interval);
33669
+ ref.current = undefined;
33670
+ }
33671
+ if (info.fileList[0]) {
33672
+ info.fileList[0].percent = 100;
33673
+ }
33695
33674
  } else if (status === 'removed') {
33696
- setFileList([]); // Clear the file list
33697
- setProgress(undefined); // Reset the progress state
33675
+ setFileList([]);
33676
+ setProgress(undefined);
33677
+ if (ref.current) {
33678
+ clearInterval(ref.current.interval);
33679
+ ref.current = undefined;
33680
+ }
33698
33681
  } else {
33699
- setProgress('INPROGRESS'); // Mark upload as in progress
33700
- setFileList(info.fileList); // Update the file list during the upload
33682
+ setProgress('INPROGRESS');
33683
+ if (info.fileList[0]) {
33684
+ var file = info.fileList[0];
33685
+ if (status === 'uploading') {
33686
+ // First 50%, the file is still uploading to browser
33687
+ file.percent = (file.percent || 0) / 2;
33688
+ if (file.percent === 50) {
33689
+ // Calculate size-based progress for the second 50%
33690
+ if (file.size) {
33691
+ var _ref$current$startTim, _ref$current, _ref$current$interval, _ref$current2;
33692
+ var fileSize = file.size;
33693
+ 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();
33694
+ 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 () {
33695
+ // Assume 1MB takes about 4 seconds to upload
33696
+ var estimatedTimeInSeconds = fileSize / (1024 * 1024) * 4;
33697
+ var elapsedTime = (Date.now() - startTime) / 1000;
33698
+ // Calculate progress for the second 50%
33699
+ var sizeBasedProgress = Math.min(50 * (elapsedTime / estimatedTimeInSeconds), 49);
33700
+ // Combine both progress values, ensuring we don't exceed 99
33701
+ file.percent = Math.min(50 + sizeBasedProgress, 99);
33702
+ setFileList(_toConsumableArray(info.fileList));
33703
+ }, 10);
33704
+ ref.current = {
33705
+ startTime: startTime,
33706
+ interval: interval
33707
+ };
33708
+ }
33709
+ }
33710
+ } else {
33711
+ file.percent = 100; // Set to 100 if not uploading
33712
+ }
33713
+ }
33701
33714
  }
33715
+ setFileList(info.fileList);
33702
33716
  };
33703
33717
  var props = {
33704
33718
  name: 'file',
@@ -33713,7 +33727,7 @@ function UploadButton (_ref) {
33713
33727
  };
33714
33728
  return /*#__PURE__*/jsx(Fragment, {
33715
33729
  children: /*#__PURE__*/jsx(Upload$2, _objectSpread$9(_objectSpread$9({}, props), {}, {
33716
- children: /*#__PURE__*/jsx(Button$1, {
33730
+ children: progress !== 'SUCCESS' && /*#__PURE__*/jsx(Button$1, {
33717
33731
  icon: /*#__PURE__*/jsx(UploadOutlined$1, {}),
33718
33732
  disabled: disabled,
33719
33733
  children: title !== null && title !== void 0 ? title : t('backoffice.idmEnricher.import.upload')
@@ -33726,19 +33740,18 @@ function IDMImportForm (_ref) {
33726
33740
  var idmService = _ref.idmService,
33727
33741
  organizationId = _ref.organizationId,
33728
33742
  setProgress = _ref.setProgress,
33729
- progress = _ref.progress;
33743
+ progress = _ref.progress,
33744
+ name = _ref.name,
33745
+ setName = _ref.setName,
33746
+ setFileList = _ref.setFileList,
33747
+ fileList = _ref.fileList;
33730
33748
  var _useTranslation = useTranslation(),
33731
33749
  t = _useTranslation.t;
33732
- var _useState = useState(''),
33733
- _useState2 = _slicedToArray(_useState, 2),
33734
- name = _useState2[0],
33735
- setName = _useState2[1];
33736
33750
  var uploadAction = "".concat(idmService, "/v3.0/catalogs/upload?organizationId=").concat(organizationId, "&name=").concat(encodeURIComponent(name));
33737
33751
  return /*#__PURE__*/jsxs(Form$1, {
33738
33752
  name: "basic",
33739
33753
  children: [/*#__PURE__*/jsx(Form$1.Item, {
33740
33754
  label: "Name",
33741
- name: "name",
33742
33755
  rules: [{
33743
33756
  required: true,
33744
33757
  message: t('backoffice.idmEnricher.import.namerequired')
@@ -33747,14 +33760,18 @@ function IDMImportForm (_ref) {
33747
33760
  onChange: function onChange(e) {
33748
33761
  return setName(e.target.value);
33749
33762
  },
33750
- value: name
33763
+ value: name,
33764
+ disabled: progress === 'INPROGRESS' || progress === 'SUCCESS'
33751
33765
  })
33752
33766
  }), /*#__PURE__*/jsx(Form$1.Item, {
33753
33767
  children: /*#__PURE__*/jsx(UploadButton, {
33754
33768
  action: uploadAction,
33755
33769
  contentType: "multipart/form-data",
33756
33770
  setProgress: setProgress,
33757
- disabled: !name.trim()
33771
+ progress: progress,
33772
+ disabled: !name.trim() || progress === 'INPROGRESS',
33773
+ setFileList: setFileList,
33774
+ fileList: fileList
33758
33775
  })
33759
33776
  }), /*#__PURE__*/jsxs(Form$1.Item, {
33760
33777
  style: {
@@ -33789,17 +33806,28 @@ function OpenModalButton (_ref) {
33789
33806
  _useState4 = _slicedToArray(_useState3, 2),
33790
33807
  progress = _useState4[0],
33791
33808
  setProgress = _useState4[1];
33809
+ var _useState5 = useState(''),
33810
+ _useState6 = _slicedToArray(_useState5, 2),
33811
+ name = _useState6[0],
33812
+ setName = _useState6[1];
33813
+ var _useState7 = useState([]),
33814
+ _useState8 = _slicedToArray(_useState7, 2),
33815
+ fileList = _useState8[0],
33816
+ setFileList = _useState8[1];
33792
33817
  var showModal = function showModal() {
33793
33818
  setIsModalOpen(true);
33794
33819
  };
33795
- var handleOk = function handleOk() {
33796
- setIsModalOpen(false);
33797
- onClose();
33820
+ var resetProgress = function resetProgress() {
33821
+ setProgress(undefined);
33822
+ setName('');
33823
+ setFileList([]);
33798
33824
  };
33799
- var handleCancel = function handleCancel() {
33825
+ var handleOk = function handleOk() {
33800
33826
  setIsModalOpen(false);
33827
+ resetProgress();
33801
33828
  onClose();
33802
33829
  };
33830
+ var buttonText = progress == undefined || progress == 'ERROR' ? t('backoffice.idmEnricher.import.cancel') : progress === 'INPROGRESS' ? t('backoffice.idmEnricher.import.inprogress') : t('backoffice.idmEnricher.import.finish');
33803
33831
  return /*#__PURE__*/jsxs(Fragment, {
33804
33832
  children: [/*#__PURE__*/jsx(Button$1, {
33805
33833
  type: "primary",
@@ -33809,15 +33837,30 @@ function OpenModalButton (_ref) {
33809
33837
  title: title,
33810
33838
  open: isModalOpen,
33811
33839
  onOk: handleOk,
33812
- onCancel: handleCancel,
33813
- okText: progress === 'INPROGRESS' ? t('backoffice.idmEnricher.import.inprogress') : 'OK',
33840
+ onCancel: handleOk,
33841
+ cancelButtonProps: progress !== 'SUCCESS' ? {
33842
+ style: {
33843
+ display: 'none'
33844
+ }
33845
+ } : {
33846
+ onClick: resetProgress
33847
+ },
33848
+ closable: progress !== 'INPROGRESS',
33849
+ maskClosable: progress !== 'INPROGRESS',
33850
+ okText: buttonText,
33851
+ cancelText: progress === 'SUCCESS' ? t('backoffice.idmEnricher.import.new') : undefined,
33814
33852
  okButtonProps: {
33815
33853
  disabled: progress === 'INPROGRESS'
33816
33854
  } // Disable the button if progress is 'INPROGRESS'
33817
33855
  ,
33856
+ destroyOnClose: true,
33818
33857
  children: type === 'IDM_IMPORT' && /*#__PURE__*/jsx(IDMImportForm, {
33819
33858
  setProgress: setProgress,
33820
33859
  progress: progress,
33860
+ name: name,
33861
+ setName: setName,
33862
+ setFileList: setFileList,
33863
+ fileList: fileList,
33821
33864
  idmService: idmService,
33822
33865
  organizationId: organizationId
33823
33866
  })
@@ -33983,13 +34026,13 @@ function TableCatalogs () {
33983
34026
  value: 1000000000
33984
34027
  }];
33985
34028
  var roundingType = [{
33986
- name: t('backoffice.idmCatalog.general.label.roundingType.r1'),
34029
+ name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r1'),
33987
34030
  value: 1
33988
34031
  }, {
33989
- name: t('backoffice.idmCatalog.general.label.roundingType.r2'),
34032
+ name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r2'),
33990
34033
  value: 2
33991
34034
  }, {
33992
- name: t('backoffice.idmCatalog.general.label.roundingType.r3'),
34035
+ name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r3'),
33993
34036
  value: 3
33994
34037
  }];
33995
34038
  return {
@@ -34219,11 +34262,11 @@ function TableCatalogs () {
34219
34262
  regex: '[0-9a-zA-Z]{0,10}'
34220
34263
  }, {
34221
34264
  headerName: 'backoffice.idmCatalog.general.label.telephone',
34222
- field: 'telephoneSwitchBoard',
34265
+ field: 'telephoneSwitchboard',
34223
34266
  required: true
34224
34267
  }, {
34225
34268
  headerName: 'backoffice.idmCatalog.general.label.faxSwitchBoard',
34226
- field: 'faxSwitchBoard',
34269
+ field: 'faxSwitchboard',
34227
34270
  required: true
34228
34271
  }]
34229
34272
  }, {
@@ -34288,7 +34331,7 @@ function TableCatalogs () {
34288
34331
  headerName: 'backoffice.idmCatalog.general.label.contact2',
34289
34332
  children: [{
34290
34333
  headerName: 'backoffice.idmCatalog.general.label.contactPersonNo',
34291
- field: 'contactPersonNo1'
34334
+ field: 'contactPersonNo2'
34292
34335
  }, {
34293
34336
  headerName: 'backoffice.idmCatalog.general.label.contactName',
34294
34337
  field: 'contactName2'
@@ -34543,6 +34586,9 @@ function SeriesSelector(_ref) {
34543
34586
  var _useTranslation = useTranslation(),
34544
34587
  t = _useTranslation.t,
34545
34588
  i18n = _useTranslation.i18n;
34589
+ useEffect(function () {
34590
+ setSelectedSerie(undefined);
34591
+ }, [catalogId]);
34546
34592
  return /*#__PURE__*/jsx(SimpleSelect, {
34547
34593
  apiInterface: {
34548
34594
  read: idmService + '/v3.0/catalogs/' + catalogId + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo").concat(additionalFields ? ";".concat(additionalFields.join(';')) : '')
@@ -34837,11 +34883,6 @@ function Items(_ref) {
34837
34883
  field: 'typeNo',
34838
34884
  required: true,
34839
34885
  unique: true
34840
- }, {
34841
- headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
34842
- field: 'priceTypeRef',
34843
- cellDataType: 'number',
34844
- required: true
34845
34886
  }, {
34846
34887
  headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
34847
34888
  field: 'sequenceNo',
@@ -34950,11 +34991,9 @@ function Items(_ref) {
34950
34991
  field: 'partListRef',
34951
34992
  cellDataType: 'lookup',
34952
34993
  customParams: {
34953
- nameField: 'partListRef',
34954
34994
  apiInterface: {
34955
34995
  read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists'
34956
34996
  },
34957
- lookupValue: 'partlistKey',
34958
34997
  lookupKey: 'partlistKey'
34959
34998
  }
34960
34999
  }, {
@@ -35073,6 +35112,13 @@ function Items(_ref) {
35073
35112
  headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
35074
35113
  field: 'lastUpdatedByDisplayText',
35075
35114
  editable: false
35115
+ }, {
35116
+ field: 'priceTypeRef',
35117
+ defaultValue: 1,
35118
+ editable: false,
35119
+ hide: true,
35120
+ lockVisible: true,
35121
+ suppressColumnsToolPanel: true
35076
35122
  }]
35077
35123
  };
35078
35124
  }, []);
@@ -35318,6 +35364,7 @@ function TableSeries () {
35318
35364
  }, {
35319
35365
  headerName: 'backoffice.idmCatalog.general.label._id',
35320
35366
  field: '_id',
35367
+ cellDataType: 'objectId',
35321
35368
  editable: false
35322
35369
  }, {
35323
35370
  field: 'organizationId',
@@ -35476,7 +35523,8 @@ function Options(_ref) {
35476
35523
  headerName: 'backoffice.idmCatalog.options.label.measurement',
35477
35524
  children: [{
35478
35525
  headerName: 'backoffice.idmCatalog.options.label.measureNo',
35479
- field: 'measureNo'
35526
+ field: 'measureNo',
35527
+ cellDataType: 'number'
35480
35528
  }, {
35481
35529
  headerName: 'backoffice.idmCatalog.options.label.measureValue',
35482
35530
  field: 'measureValue',
@@ -35668,7 +35716,8 @@ function Features(_ref) {
35668
35716
  }, {
35669
35717
  headerName: 'backoffice.idmCatalog.general.label._id',
35670
35718
  field: '_id',
35671
- editable: false
35719
+ editable: false,
35720
+ cellDataType: 'objectId'
35672
35721
  }, {
35673
35722
  field: 'organizationId',
35674
35723
  editable: false,
@@ -35778,6 +35827,9 @@ function FeatureSelector(_ref) {
35778
35827
  var _useTranslation = useTranslation(),
35779
35828
  t = _useTranslation.t,
35780
35829
  i18n = _useTranslation.i18n;
35830
+ useEffect(function () {
35831
+ setSelectedFeature(undefined);
35832
+ }, [catalogId]);
35781
35833
  return /*#__PURE__*/jsx(SimpleSelect, {
35782
35834
  apiInterface: {
35783
35835
  read: idmService + '/v3.0/catalogs/' + catalogId + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
@@ -35796,7 +35848,7 @@ function FeatureSelector(_ref) {
35796
35848
  style: {
35797
35849
  width: 200
35798
35850
  }
35799
- });
35851
+ }, catalogId);
35800
35852
  }
35801
35853
 
35802
35854
  function TableOptions () {
@@ -35912,7 +35964,8 @@ function TableFeatureClasses () {
35912
35964
  colDef: [{
35913
35965
  field: 'featureClassNo',
35914
35966
  headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
35915
- required: true
35967
+ required: true,
35968
+ cellDataType: 'number'
35916
35969
  }, {
35917
35970
  headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
35918
35971
  marryChildren: true,
@@ -35954,7 +36007,8 @@ function TableFeatureClasses () {
35954
36007
  }, {
35955
36008
  headerName: 'backoffice.idmCatalog.general.label._id',
35956
36009
  field: '_id',
35957
- editable: false
36010
+ editable: false,
36011
+ cellDataType: 'objectId'
35958
36012
  }, {
35959
36013
  field: 'organizationId',
35960
36014
  editable: false,
@@ -35970,7 +36024,11 @@ function TableFeatureClasses () {
35970
36024
  suppressColumnsToolPanel: true,
35971
36025
  defaultValue: '${catalogId}'
35972
36026
  }, {
35973
- field: 'featureRefs'
36027
+ field: 'featureRefs',
36028
+ editable: false,
36029
+ hide: true,
36030
+ lockVisible: true,
36031
+ suppressColumnsToolPanel: true
35974
36032
  }]
35975
36033
  };
35976
36034
  }, []);
@@ -36395,7 +36453,8 @@ function OptionCombinations(_ref8) {
36395
36453
  }, {
36396
36454
  headerName: 'backoffice.idmCatalog.general.label._id',
36397
36455
  field: '_id',
36398
- editable: false
36456
+ editable: false,
36457
+ cellDataType: 'objectId'
36399
36458
  }, {
36400
36459
  field: 'organizationId',
36401
36460
  editable: false,
@@ -36578,10 +36637,6 @@ function TableDecisions () {
36578
36637
  },
36579
36638
  lookupValue: 'featureText',
36580
36639
  lookupKey: 'featureNo',
36581
- lookupKeyFilterType: {
36582
- type: 'equals',
36583
- filterType: 'number'
36584
- },
36585
36640
  multiple: true,
36586
36641
  translated: true
36587
36642
  },
@@ -36618,7 +36673,8 @@ function TableDecisions () {
36618
36673
  }, {
36619
36674
  headerName: 'backoffice.idmCatalog.general.label._id',
36620
36675
  field: '_id',
36621
- editable: false
36676
+ editable: false,
36677
+ cellDataType: 'objectId'
36622
36678
  }, {
36623
36679
  field: 'organizationId',
36624
36680
  editable: false,
@@ -36897,7 +36953,8 @@ function TableDetailInfos () {
36897
36953
  }, {
36898
36954
  headerName: 'backoffice.idmCatalog.general.label._id',
36899
36955
  field: '_id',
36900
- editable: false
36956
+ editable: false,
36957
+ cellDataType: 'objectId'
36901
36958
  }, {
36902
36959
  headerName: 'backoffice.idmCatalog.detailinfos.label.mediaItemId',
36903
36960
  field: 'mediaItemId'
@@ -37125,7 +37182,8 @@ function PartlistPos(_ref) {
37125
37182
  }, {
37126
37183
  headerName: 'backoffice.idmCatalog.general.label._id',
37127
37184
  field: '_id',
37128
- editable: false
37185
+ editable: false,
37186
+ cellDataType: 'objectId'
37129
37187
  }, {
37130
37188
  field: 'organizationId',
37131
37189
  editable: false,
@@ -37250,7 +37308,8 @@ function TablePartlists () {
37250
37308
  }, {
37251
37309
  headerName: 'backoffice.idmCatalog.general.label._id',
37252
37310
  field: '_id',
37253
- editable: false
37311
+ editable: false,
37312
+ cellDataType: 'objectId'
37254
37313
  }, {
37255
37314
  field: 'organizationId',
37256
37315
  editable: false,
@@ -37451,7 +37510,8 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
37451
37510
  }, {
37452
37511
  headerName: 'backoffice.idmCatalog.general.label._id',
37453
37512
  field: '_id',
37454
- editable: false
37513
+ editable: false,
37514
+ cellDataType: 'objectId'
37455
37515
  }, {
37456
37516
  field: 'organizationId',
37457
37517
  editable: false,
@@ -37631,7 +37691,8 @@ function PriceFeatureGroupFinishes(_ref) {
37631
37691
  }, {
37632
37692
  headerName: 'backoffice.idmCatalog.general.label._id',
37633
37693
  field: '_id',
37634
- editable: false
37694
+ editable: false,
37695
+ cellDataType: 'objectId'
37635
37696
  }, {
37636
37697
  field: 'organizationId',
37637
37698
  editable: false,
@@ -37829,7 +37890,8 @@ function TablePriceFeatureGroups () {
37829
37890
  }, {
37830
37891
  headerName: 'backoffice.idmCatalog.general.label._id',
37831
37892
  field: '_id',
37832
- editable: false
37893
+ editable: false,
37894
+ cellDataType: 'objectId'
37833
37895
  }, {
37834
37896
  field: 'organizationId',
37835
37897
  editable: false,
@@ -38140,7 +38202,8 @@ function CollectionMembers(_ref) {
38140
38202
  }, {
38141
38203
  headerName: 'backoffice.idmCatalog.general.label._id',
38142
38204
  field: '_id',
38143
- editable: false
38205
+ editable: false,
38206
+ cellDataType: 'objectId'
38144
38207
  }]
38145
38208
  };
38146
38209
  }, [apiInterface]);