@crystaldesign/diva-backoffice 25.2.0-beta.9 → 25.2.0-rc.10
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 +438 -393
- package/build/types/backoffice/src/Configuration.d.ts +1 -0
- package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/Forms/IDMImportForm.d.ts +6 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/Forms/IDMImportForm.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/OpenModalButton/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/SeriesSelector.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/SeriesSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts +5 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/SeriesSelector.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/SeriesSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/StandardTable/useTableData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/types.d.ts +2 -1
- package/build/types/backoffice/src/ui/Table/types.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/applyMapping.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -259,6 +259,8 @@ function applyMapping (_ref) {
|
|
|
259
259
|
} else if (fallBackToParams) {
|
|
260
260
|
_url.searchParams.append(m.targetField, encodeURI(d));
|
|
261
261
|
}
|
|
262
|
+
} else if (m.replaceIfUndefined) {
|
|
263
|
+
_url.href = _url.href.replace('&' + m.targetField + '=${' + m.targetField + '}', '');
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
var _iterator2 = _createForOfIteratorHelper$m(_url.searchParams.entries()),
|
|
@@ -1969,17 +1971,14 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
1969
1971
|
width: 160
|
|
1970
1972
|
}],
|
|
1971
1973
|
apiInterface: {
|
|
1972
|
-
read: {
|
|
1973
|
-
list: '${analyticsService}/businessevents?organizationId=${organizationId}',
|
|
1974
|
-
filterServerSide: true
|
|
1975
|
-
}
|
|
1974
|
+
read: '${analyticsService}/businessevents?organizationId=${organizationId}'
|
|
1976
1975
|
},
|
|
1977
1976
|
filter: {
|
|
1978
1977
|
period: {
|
|
1979
1978
|
title: t('backoffice.FilterBoxAnalytics.filter.zeitraum'),
|
|
1980
1979
|
fromField: 'fromTimeStamp',
|
|
1981
1980
|
toField: 'toTimeStamp',
|
|
1982
|
-
"default":
|
|
1981
|
+
"default": 30
|
|
1983
1982
|
},
|
|
1984
1983
|
select: {
|
|
1985
1984
|
filterField: 'status',
|
|
@@ -2025,138 +2024,43 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2025
2024
|
DetailApplicationState: {
|
|
2026
2025
|
type: 'JsonEditor'
|
|
2027
2026
|
},
|
|
2028
|
-
|
|
2027
|
+
TableClientOEOverview: {
|
|
2029
2028
|
type: 'Table',
|
|
2030
|
-
title: t('backoffice.table.
|
|
2031
|
-
canRefresh: true,
|
|
2029
|
+
title: t('backoffice.table.roe.title'),
|
|
2032
2030
|
columns: [{
|
|
2033
|
-
title: t('backoffice.table.
|
|
2034
|
-
field: '
|
|
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',
|
|
2031
|
+
title: t('backoffice.table.roe.name'),
|
|
2032
|
+
field: '_id',
|
|
2073
2033
|
filter: 'advanced',
|
|
2074
|
-
sorter: 2
|
|
2075
|
-
width: 120
|
|
2034
|
+
sorter: 2
|
|
2076
2035
|
}, {
|
|
2077
|
-
title: t('backoffice.table.
|
|
2078
|
-
field: '
|
|
2036
|
+
title: t('backoffice.table.roe.countHQ'),
|
|
2037
|
+
field: 'countHQ',
|
|
2079
2038
|
filter: 'advanced',
|
|
2080
2039
|
sorter: 2,
|
|
2081
|
-
width:
|
|
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
|
|
2040
|
+
width: 50
|
|
2094
2041
|
}, {
|
|
2095
|
-
title: t('backoffice.table.
|
|
2096
|
-
field: '
|
|
2097
|
-
sorter: 3,
|
|
2042
|
+
title: t('backoffice.table.roe.countAR'),
|
|
2043
|
+
field: 'countAR',
|
|
2098
2044
|
filter: 'advanced',
|
|
2099
|
-
|
|
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
|
|
2112
|
-
}, {
|
|
2113
|
-
title: t('backoffice.table.renderjobs.columns.renderScene'),
|
|
2114
|
-
field: 'renderScene_displayText',
|
|
2115
|
-
sorter: 4,
|
|
2116
|
-
filter: 'advanced',
|
|
2117
|
-
width: 200
|
|
2045
|
+
sorter: 2,
|
|
2046
|
+
width: 50
|
|
2118
2047
|
}, {
|
|
2119
|
-
title: t('backoffice.table.
|
|
2120
|
-
field: '
|
|
2121
|
-
sorter: 11,
|
|
2048
|
+
title: t('backoffice.table.roe.countAmbient'),
|
|
2049
|
+
field: 'countAmbient',
|
|
2122
2050
|
filter: 'advanced',
|
|
2123
|
-
|
|
2051
|
+
sorter: 2,
|
|
2052
|
+
width: 50
|
|
2124
2053
|
}, {
|
|
2125
|
-
title: t('backoffice.table.
|
|
2126
|
-
field: '
|
|
2127
|
-
sorter: 12,
|
|
2054
|
+
title: t('backoffice.table.roe.count3DExport'),
|
|
2055
|
+
field: 'count3DExport',
|
|
2128
2056
|
filter: 'advanced',
|
|
2129
|
-
|
|
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'
|
|
2057
|
+
sorter: 2,
|
|
2058
|
+
width: 50
|
|
2155
2059
|
}],
|
|
2156
2060
|
apiInterface: {
|
|
2157
2061
|
read: {
|
|
2158
|
-
list: '${mediaService}/renderjobs?organizationId=${organizationId}',
|
|
2159
|
-
filterServerSide:
|
|
2062
|
+
list: '${mediaService}/renderjobs/overview?from=${from}&to=${to}&organizationId=${organizationId}',
|
|
2063
|
+
filterServerSide: false
|
|
2160
2064
|
},
|
|
2161
2065
|
update: {
|
|
2162
2066
|
url: '${mediaService}/renderjobs/{_id}/state',
|
|
@@ -2166,83 +2070,36 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2166
2070
|
mapping: {
|
|
2167
2071
|
type: 'query',
|
|
2168
2072
|
map: [{
|
|
2169
|
-
sourceField: '
|
|
2170
|
-
targetField: '
|
|
2073
|
+
sourceField: 'from',
|
|
2074
|
+
targetField: 'from'
|
|
2171
2075
|
}, {
|
|
2172
|
-
|
|
2173
|
-
targetField: '
|
|
2076
|
+
sourceField: 'to',
|
|
2077
|
+
targetField: 'to'
|
|
2078
|
+
}, {
|
|
2079
|
+
sourceField: 'organizationId',
|
|
2080
|
+
targetField: 'organizationId',
|
|
2081
|
+
replaceIfUndefined: true
|
|
2174
2082
|
}]
|
|
2175
2083
|
},
|
|
2176
2084
|
filter: {
|
|
2177
2085
|
toggle: {
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
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
|
-
}
|
|
2086
|
+
globalValue: 'organizationId',
|
|
2087
|
+
fields: ['organizationId'],
|
|
2088
|
+
label: t('backoffice.table.clientrelations.filter.label.allorgs'),
|
|
2089
|
+
labelOff: t('backoffice.table.clientrelations.filter.label.allorgs'),
|
|
2090
|
+
inverted: true,
|
|
2091
|
+
inQuery: false,
|
|
2092
|
+
defaultChecked: true,
|
|
2093
|
+
permission: 'backoffice_taskstatus_allorgs'
|
|
2094
|
+
},
|
|
2095
|
+
period: {
|
|
2096
|
+
title: t('backoffice.FilterBoxAnalytics.filter.zeitraum'),
|
|
2097
|
+
fromField: 'from',
|
|
2098
|
+
toField: 'to',
|
|
2099
|
+
"default": 30,
|
|
2100
|
+
onlyAsMappingData: true
|
|
2244
2101
|
}
|
|
2245
|
-
}
|
|
2102
|
+
}
|
|
2246
2103
|
},
|
|
2247
2104
|
TableAllUsers: {
|
|
2248
2105
|
type: 'Table',
|
|
@@ -4899,8 +4756,8 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
4899
4756
|
sorter: 1,
|
|
4900
4757
|
width: 200,
|
|
4901
4758
|
hidden: function hidden(_, globalFilter) {
|
|
4902
|
-
var _globalFilter$
|
|
4903
|
-
return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$
|
|
4759
|
+
var _globalFilter$toggle;
|
|
4760
|
+
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
4761
|
}
|
|
4905
4762
|
}, {
|
|
4906
4763
|
title: t('backoffice.table.invitations.mailsend'),
|
|
@@ -5137,8 +4994,8 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5137
4994
|
field: 'organizationDisplayName',
|
|
5138
4995
|
width: 150,
|
|
5139
4996
|
hidden: function hidden(_, globalFilter) {
|
|
5140
|
-
var _globalFilter$
|
|
5141
|
-
return !(globalFilter !== null && globalFilter !== void 0 && (_globalFilter$
|
|
4997
|
+
var _globalFilter$toggle2;
|
|
4998
|
+
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
4999
|
}
|
|
5143
5000
|
}, {
|
|
5144
5001
|
title: t('backoffice.table.allorgusers.created'),
|
|
@@ -5319,6 +5176,13 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5319
5176
|
type: 'Table',
|
|
5320
5177
|
canRefresh: true,
|
|
5321
5178
|
columns: [{
|
|
5179
|
+
title: t('backoffice.table.rooms.columns.isExclusive'),
|
|
5180
|
+
type: 'boolean',
|
|
5181
|
+
field: 'isExclusive',
|
|
5182
|
+
sorter: 1,
|
|
5183
|
+
filter: 'advanced',
|
|
5184
|
+
width: 50
|
|
5185
|
+
}, {
|
|
5322
5186
|
title: 'ID',
|
|
5323
5187
|
field: '_id',
|
|
5324
5188
|
sorter: 1,
|
|
@@ -5363,7 +5227,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5363
5227
|
sorter: 8,
|
|
5364
5228
|
width: 150
|
|
5365
5229
|
}, {
|
|
5366
|
-
title: 'variants',
|
|
5230
|
+
title: t('backoffice.table.rooms.columns.variants'),
|
|
5367
5231
|
field: 'variants',
|
|
5368
5232
|
hidden: true
|
|
5369
5233
|
}],
|
|
@@ -7842,6 +7706,22 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
7842
7706
|
value: false
|
|
7843
7707
|
}],
|
|
7844
7708
|
permission: 'backoffice_sys_admin_organizations'
|
|
7709
|
+
}, {
|
|
7710
|
+
name: ['settings', 'renderjobSeparateMaterials'],
|
|
7711
|
+
label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
|
|
7712
|
+
permission: 'backoffice_admin_organizations',
|
|
7713
|
+
type: 'radio',
|
|
7714
|
+
optionType: 'button',
|
|
7715
|
+
options: [{
|
|
7716
|
+
label: t('backoffice.form.organizationdetails.items.vererbt'),
|
|
7717
|
+
value: undefined
|
|
7718
|
+
}, {
|
|
7719
|
+
label: t('backoffice.form.organizationdetails.items.ja'),
|
|
7720
|
+
value: true
|
|
7721
|
+
}, {
|
|
7722
|
+
label: t('backoffice.form.organizationdetails.items.nein'),
|
|
7723
|
+
value: false
|
|
7724
|
+
}]
|
|
7845
7725
|
}, {
|
|
7846
7726
|
name: ['settings', 'enableAR'],
|
|
7847
7727
|
label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
|
|
@@ -10970,56 +10850,67 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
10970
10850
|
}
|
|
10971
10851
|
},
|
|
10972
10852
|
items: [{
|
|
10973
|
-
name: '
|
|
10974
|
-
label: '
|
|
10853
|
+
name: 'isExclusive',
|
|
10854
|
+
label: t('backoffice.form.room.isExclusiv'),
|
|
10855
|
+
type: 'checkbox'
|
|
10856
|
+
}, {
|
|
10857
|
+
label: t('backoffice.form.room.id'),
|
|
10858
|
+
name: 'id',
|
|
10975
10859
|
type: 'input',
|
|
10976
10860
|
readonly: true
|
|
10977
10861
|
}, {
|
|
10862
|
+
label: t('backoffice.form.room.blenderVersion'),
|
|
10978
10863
|
name: 'blenderVersion',
|
|
10979
|
-
label: 'Blender Version',
|
|
10980
10864
|
type: 'input',
|
|
10981
10865
|
readonly: true
|
|
10982
10866
|
}, {
|
|
10867
|
+
label: t('backoffice.form.room.mainCategory'),
|
|
10983
10868
|
name: 'mainCategory',
|
|
10984
|
-
label: 'Haupt Kategorie',
|
|
10985
10869
|
type: 'input'
|
|
10986
10870
|
}, {
|
|
10871
|
+
label: t('bacoffice.form.room.name'),
|
|
10987
10872
|
name: 'name',
|
|
10988
|
-
label: 'Name',
|
|
10989
10873
|
type: 'input'
|
|
10990
10874
|
}, {
|
|
10875
|
+
label: t('backoffice.form.room.variants'),
|
|
10991
10876
|
name: 'variants',
|
|
10992
|
-
label: 'variants',
|
|
10993
10877
|
value: 'variants',
|
|
10994
10878
|
type: 'array',
|
|
10995
10879
|
disablePushOrPop: true,
|
|
10996
10880
|
items: [{
|
|
10997
10881
|
type: 'subTitle',
|
|
10998
|
-
name: 'Variante'
|
|
10882
|
+
name: 'Variante',
|
|
10883
|
+
label: t('backoffice.form.room.variante')
|
|
10999
10884
|
}, {
|
|
11000
10885
|
type: 'input',
|
|
11001
|
-
name: 'name'
|
|
10886
|
+
name: 'name',
|
|
10887
|
+
label: t('backoffice.form.room.variantName')
|
|
11002
10888
|
}, {
|
|
11003
10889
|
type: 'input',
|
|
11004
|
-
name: 'description'
|
|
10890
|
+
name: 'description',
|
|
10891
|
+
label: t('backoffice.form.room.variantDescription')
|
|
11005
10892
|
}, {
|
|
11006
10893
|
type: 'select',
|
|
11007
10894
|
name: 'compatibleColors',
|
|
10895
|
+
label: t('backoffice.form.room.variantCompatibleColors'),
|
|
11008
10896
|
mode: 'multiple',
|
|
11009
10897
|
allowClear: true,
|
|
11010
10898
|
values: ['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua']
|
|
11011
10899
|
}, {
|
|
11012
10900
|
type: 'checkbox',
|
|
11013
|
-
|
|
11014
|
-
readonly: true
|
|
10901
|
+
label: t('backoffice.form.room.default'),
|
|
10902
|
+
readonly: true,
|
|
10903
|
+
name: 'default'
|
|
11015
10904
|
}, {
|
|
11016
10905
|
type: 'input',
|
|
10906
|
+
label: t('backoffice.form.room.sceneName'),
|
|
11017
10907
|
name: 'sceneName'
|
|
11018
10908
|
}, {
|
|
11019
10909
|
type: 'select',
|
|
11020
|
-
|
|
10910
|
+
label: t('backoffice.form.room.style'),
|
|
11021
10911
|
mode: 'multiple',
|
|
11022
|
-
allowCreate: true
|
|
10912
|
+
allowCreate: true,
|
|
10913
|
+
name: 'style'
|
|
11023
10914
|
}]
|
|
11024
10915
|
}]
|
|
11025
10916
|
},
|
|
@@ -13525,10 +13416,11 @@ var menu = [{
|
|
|
13525
13416
|
permission: 'backoffice_current_organization',
|
|
13526
13417
|
icon: 'ApartmentOutlined'
|
|
13527
13418
|
}, {
|
|
13528
|
-
id: '
|
|
13529
|
-
path: '
|
|
13530
|
-
label: 'backoffice.menu.items.label.
|
|
13531
|
-
icon: 'FileImageOutlined'
|
|
13419
|
+
id: 'TableClientOEOverview',
|
|
13420
|
+
path: 'orderentry',
|
|
13421
|
+
label: 'backoffice.menu.items.label.oeoverview',
|
|
13422
|
+
icon: 'FileImageOutlined',
|
|
13423
|
+
permission: 'backoffice_renderjobs_overview'
|
|
13532
13424
|
}, {
|
|
13533
13425
|
id: 'catalogArea',
|
|
13534
13426
|
path: 'catalogs',
|
|
@@ -25367,7 +25259,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
25367
25259
|
state.onGlobalFilterPeriod(values[0].valueOf(), values[1].valueOf());
|
|
25368
25260
|
}
|
|
25369
25261
|
},
|
|
25370
|
-
|
|
25262
|
+
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)),
|
|
25371
25263
|
// Convert to Dayjs
|
|
25372
25264
|
(_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
|
|
25373
25265
|
]
|
|
@@ -27032,7 +26924,7 @@ function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
27032
26924
|
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; }
|
|
27033
26925
|
var LOG$2 = getLogger('Backoffice', 'TableData');
|
|
27034
26926
|
function useTableData (_ref) {
|
|
27035
|
-
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$bulkAc, _configuration$apiInt;
|
|
26927
|
+
var _configuration$filter, _configuration$filter2, _configuration$filter3, _configuration$filter4, _configuration$bulkAc, _configuration$apiInt;
|
|
27036
26928
|
var id = _ref.id,
|
|
27037
26929
|
i18n = _ref.i18n,
|
|
27038
26930
|
parentData = _ref.parentData,
|
|
@@ -27062,6 +26954,11 @@ function useTableData (_ref) {
|
|
|
27062
26954
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
27063
26955
|
catalogItem = _useState8[0],
|
|
27064
26956
|
onSelectedCatalog = _useState8[1];
|
|
26957
|
+
var filterHash = useRef();
|
|
26958
|
+
var _useState9 = useState(),
|
|
26959
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
26960
|
+
error = _useState10[0],
|
|
26961
|
+
setError = _useState10[1];
|
|
27065
26962
|
var toggleConfig = (_configuration$filter = configuration.filter) === null || _configuration$filter === void 0 ? void 0 : _configuration$filter.toggle;
|
|
27066
26963
|
var toggleFilter = {};
|
|
27067
26964
|
toggleConfig === null || toggleConfig === void 0 || toggleConfig.fields.forEach(function (f) {
|
|
@@ -27071,19 +26968,15 @@ function useTableData (_ref) {
|
|
|
27071
26968
|
(_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) {
|
|
27072
26969
|
return defaultFilter[f] = [configuration.filter["default"].globalValue ? root.getGlobalValue(configuration.filter["default"].globalValue) : true, 'eq'];
|
|
27073
26970
|
});
|
|
27074
|
-
var
|
|
26971
|
+
var _useState11 = useState({
|
|
27075
26972
|
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,
|
|
27076
26973
|
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,
|
|
27077
26974
|
"default": defaultFilter ? defaultFilter : undefined
|
|
27078
26975
|
}),
|
|
27079
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
27080
|
-
globalFilter = _useState10[0],
|
|
27081
|
-
setGlobaFilter = _useState10[1];
|
|
27082
|
-
var filterHash = useRef();
|
|
27083
|
-
var _useState11 = useState(),
|
|
27084
26976
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
27085
|
-
|
|
27086
|
-
|
|
26977
|
+
globalFilter = _useState12[0],
|
|
26978
|
+
setGlobaFilter = _useState12[1];
|
|
26979
|
+
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"];
|
|
27087
26980
|
var _useState13 = useState({
|
|
27088
26981
|
loading: true,
|
|
27089
26982
|
deleting: false,
|
|
@@ -27099,13 +26992,15 @@ function useTableData (_ref) {
|
|
|
27099
26992
|
mappingData: _objectSpread$o(_objectSpread$o({}, parentData), {}, {
|
|
27100
26993
|
prefilter: {
|
|
27101
26994
|
select: globalFilter.select
|
|
27102
|
-
}
|
|
26995
|
+
},
|
|
26996
|
+
from: periodDefaultValue ? Date.now() - periodDefaultValue * 86400000 : undefined,
|
|
26997
|
+
to: Date.now()
|
|
27103
26998
|
})
|
|
27104
26999
|
}),
|
|
27105
27000
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
27106
27001
|
state = _useState14[0],
|
|
27107
27002
|
setState = _useState14[1];
|
|
27108
|
-
var
|
|
27003
|
+
var mappingData = _objectSpread$o(_objectSpread$o(_objectSpread$o({}, parentData), state.data), {}, {
|
|
27109
27004
|
catalogCodex: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.codex,
|
|
27110
27005
|
sessionGuID: catalogItem === null || catalogItem === void 0 ? void 0 : catalogItem.sessionGuid
|
|
27111
27006
|
});
|
|
@@ -27118,8 +27013,8 @@ function useTableData (_ref) {
|
|
|
27118
27013
|
case 0:
|
|
27119
27014
|
fd = new FormData();
|
|
27120
27015
|
fd.append('value', JSON.stringify([newData]));
|
|
27121
|
-
fd.append('catalogCodex',
|
|
27122
|
-
fd.append('sessionGuid',
|
|
27016
|
+
fd.append('catalogCodex', mappingData.catalogCodex);
|
|
27017
|
+
fd.append('sessionGuid', mappingData.sessionGuID);
|
|
27123
27018
|
_context.next = 6;
|
|
27124
27019
|
return apiHandler.create(undefined, undefined, undefined, fd);
|
|
27125
27020
|
case 6:
|
|
@@ -27158,8 +27053,8 @@ function useTableData (_ref) {
|
|
|
27158
27053
|
for (var i = 0; i < dataArray.length; i++) {
|
|
27159
27054
|
var dataRow = dataArray[i];
|
|
27160
27055
|
if (filterServerSide) {
|
|
27161
|
-
var _configuration$
|
|
27162
|
-
if ((_configuration$
|
|
27056
|
+
var _configuration$filter5;
|
|
27057
|
+
if ((_configuration$filter5 = configuration.filter) !== null && _configuration$filter5 !== void 0 && (_configuration$filter5 = _configuration$filter5.select) !== null && _configuration$filter5 !== void 0 && _configuration$filter5.filterField) {
|
|
27163
27058
|
onGlobalFilterSelect(dataRow[configuration.filter.select.filterField]);
|
|
27164
27059
|
} else {
|
|
27165
27060
|
var _pagination;
|
|
@@ -27175,15 +27070,15 @@ function useTableData (_ref) {
|
|
|
27175
27070
|
});
|
|
27176
27071
|
}
|
|
27177
27072
|
} else {
|
|
27178
|
-
var _configuration$
|
|
27073
|
+
var _configuration$filter6, _configuration$filter7;
|
|
27179
27074
|
var _updateData2 = updateData({
|
|
27180
27075
|
data: newInitData,
|
|
27181
27076
|
dataRow: dataRow
|
|
27182
27077
|
}),
|
|
27183
27078
|
nextInitData = _updateData2.data;
|
|
27184
27079
|
var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData), {}, {
|
|
27185
|
-
filters: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$
|
|
27186
|
-
}, configuration !== null && configuration !== void 0 && (_configuration$
|
|
27080
|
+
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"])
|
|
27081
|
+
}, 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 ? {
|
|
27187
27082
|
genericProps: globalFilter.toggle
|
|
27188
27083
|
} : undefined), {}, {
|
|
27189
27084
|
data: nextInitData,
|
|
@@ -27214,14 +27109,14 @@ function useTableData (_ref) {
|
|
|
27214
27109
|
_useState16 = _slicedToArray(_useState15, 1),
|
|
27215
27110
|
columns = _useState16[0];
|
|
27216
27111
|
var triggerRefresh = function triggerRefresh() {
|
|
27217
|
-
var _configuration$
|
|
27112
|
+
var _configuration$filter8;
|
|
27218
27113
|
setError(undefined);
|
|
27219
27114
|
var newGlobalFilter = _objectSpread$o({}, globalFilter);
|
|
27220
27115
|
//on refresh update default filter, since global value can change
|
|
27221
|
-
if ((_configuration$
|
|
27222
|
-
var _configuration$
|
|
27116
|
+
if ((_configuration$filter8 = configuration.filter) !== null && _configuration$filter8 !== void 0 && _configuration$filter8["default"]) {
|
|
27117
|
+
var _configuration$filter9;
|
|
27223
27118
|
var _defaultFilter = {};
|
|
27224
|
-
(_configuration$
|
|
27119
|
+
(_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) {
|
|
27225
27120
|
return _defaultFilter[f] = [configuration.filter["default"].globalValue ? root.getGlobalValue(configuration.filter["default"].globalValue) : true, 'eq'];
|
|
27226
27121
|
});
|
|
27227
27122
|
newGlobalFilter["default"] = _defaultFilter;
|
|
@@ -27281,7 +27176,7 @@ function useTableData (_ref) {
|
|
|
27281
27176
|
}, [configuration.title, parentData]);
|
|
27282
27177
|
var getDataById = /*#__PURE__*/function () {
|
|
27283
27178
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id) {
|
|
27284
|
-
var _configuration$
|
|
27179
|
+
var _configuration$filter10;
|
|
27285
27180
|
var filters, ssf, data;
|
|
27286
27181
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
27287
27182
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -27295,11 +27190,11 @@ function useTableData (_ref) {
|
|
|
27295
27190
|
},
|
|
27296
27191
|
columns: configuration.columns,
|
|
27297
27192
|
filters: filters
|
|
27298
|
-
}, configuration !== null && configuration !== void 0 && (_configuration$
|
|
27193
|
+
}, 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 ? {
|
|
27299
27194
|
genericProps: globalFilter.toggle
|
|
27300
27195
|
} : undefined);
|
|
27301
27196
|
_context2.next = 5;
|
|
27302
|
-
return apiHandler.readList(parentMapping || configuration.mapping,
|
|
27197
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), ssf);
|
|
27303
27198
|
case 5:
|
|
27304
27199
|
data = _context2.sent;
|
|
27305
27200
|
return _context2.abrupt("return", data);
|
|
@@ -27315,17 +27210,18 @@ function useTableData (_ref) {
|
|
|
27315
27210
|
}();
|
|
27316
27211
|
var onChange = /*#__PURE__*/function () {
|
|
27317
27212
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(p) {
|
|
27318
|
-
var _configuration$
|
|
27213
|
+
var _configuration$filter11, _configuration$filter12, _prefilter$select, _configuration$filter13, _configuration$filter14;
|
|
27319
27214
|
var prefilter,
|
|
27320
27215
|
refresh,
|
|
27321
27216
|
clearSelection,
|
|
27217
|
+
overwriteMappingData,
|
|
27322
27218
|
currentData,
|
|
27323
27219
|
filterData,
|
|
27324
27220
|
currentFilterHash,
|
|
27325
27221
|
currentPagination,
|
|
27326
27222
|
currentUrl,
|
|
27327
|
-
_configuration$filter14,
|
|
27328
27223
|
_configuration$filter15,
|
|
27224
|
+
_configuration$filter16,
|
|
27329
27225
|
_prefilter$toggle,
|
|
27330
27226
|
_parseFilter,
|
|
27331
27227
|
ssf,
|
|
@@ -27341,11 +27237,13 @@ function useTableData (_ref) {
|
|
|
27341
27237
|
prefilter = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : globalFilter;
|
|
27342
27238
|
refresh = _args3.length > 2 ? _args3[2] : undefined;
|
|
27343
27239
|
clearSelection = _args3.length > 3 ? _args3[3] : undefined;
|
|
27240
|
+
overwriteMappingData = _args3.length > 4 ? _args3[4] : undefined;
|
|
27344
27241
|
setState(_objectSpread$o(_objectSpread$o({}, state), {}, {
|
|
27242
|
+
mappingData: overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData,
|
|
27345
27243
|
loading: true
|
|
27346
27244
|
}));
|
|
27347
27245
|
currentData = initData;
|
|
27348
|
-
filterData = _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, prefilter.search), ((_configuration$
|
|
27246
|
+
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
|
|
27349
27247
|
filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
|
|
27350
27248
|
var _ref7 = _slicedToArray(_ref6, 2);
|
|
27351
27249
|
_ref7[0];
|
|
@@ -27358,7 +27256,7 @@ function useTableData (_ref) {
|
|
|
27358
27256
|
});
|
|
27359
27257
|
filterHash.current = currentFilterHash;
|
|
27360
27258
|
if (!filterServerSide) {
|
|
27361
|
-
_context3.next =
|
|
27259
|
+
_context3.next = 21;
|
|
27362
27260
|
break;
|
|
27363
27261
|
}
|
|
27364
27262
|
ssf = _objectSpread$o({
|
|
@@ -27366,32 +27264,32 @@ function useTableData (_ref) {
|
|
|
27366
27264
|
columns: configuration.columns,
|
|
27367
27265
|
filters: filterData,
|
|
27368
27266
|
sorter: p.sorter
|
|
27369
|
-
}, configuration !== null && configuration !== void 0 && (_configuration$
|
|
27267
|
+
}, 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 ? {
|
|
27370
27268
|
genericProps: prefilter.toggle
|
|
27371
27269
|
} : undefined);
|
|
27372
|
-
_context3.next =
|
|
27373
|
-
return apiHandler.readList(parentMapping || configuration.mapping,
|
|
27374
|
-
case
|
|
27270
|
+
_context3.next = 15;
|
|
27271
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o({}, mappingData), overwriteMappingData), 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)));
|
|
27272
|
+
case 15:
|
|
27375
27273
|
data = _context3.sent;
|
|
27376
|
-
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping,
|
|
27274
|
+
currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), ssf);
|
|
27377
27275
|
currentData = data.data;
|
|
27378
27276
|
currentPagination = _objectSpread$o(_objectSpread$o({}, currentPagination), {}, {
|
|
27379
27277
|
total: data.total
|
|
27380
27278
|
});
|
|
27381
|
-
_context3.next =
|
|
27279
|
+
_context3.next = 30;
|
|
27382
27280
|
break;
|
|
27383
|
-
case
|
|
27281
|
+
case 21:
|
|
27384
27282
|
if (!(!currentData || currentData.length === 0 || refresh)) {
|
|
27385
|
-
_context3.next =
|
|
27283
|
+
_context3.next = 27;
|
|
27386
27284
|
break;
|
|
27387
27285
|
}
|
|
27388
|
-
_context3.next =
|
|
27389
|
-
return apiHandler.readList(parentMapping || configuration.mapping,
|
|
27390
|
-
case
|
|
27286
|
+
_context3.next = 24;
|
|
27287
|
+
return apiHandler.readList(parentMapping || configuration.mapping, overwriteMappingData !== null && overwriteMappingData !== void 0 ? overwriteMappingData : state.mappingData, undefined);
|
|
27288
|
+
case 24:
|
|
27391
27289
|
_data3 = _context3.sent;
|
|
27392
27290
|
currentData = _data3.data;
|
|
27393
27291
|
setInitData(currentData);
|
|
27394
|
-
case
|
|
27292
|
+
case 27:
|
|
27395
27293
|
_applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$o(_objectSpread$o({}, p), {}, {
|
|
27396
27294
|
pagination: currentPagination,
|
|
27397
27295
|
filters: filterData,
|
|
@@ -27400,12 +27298,12 @@ function useTableData (_ref) {
|
|
|
27400
27298
|
})), _data4 = _applyFilterAndSortat2.data, pagination = _applyFilterAndSortat2.pagination;
|
|
27401
27299
|
currentData = _data4;
|
|
27402
27300
|
currentPagination = pagination;
|
|
27403
|
-
case
|
|
27301
|
+
case 30:
|
|
27404
27302
|
setState(_objectSpread$o(_objectSpread$o({}, state), {}, {
|
|
27405
27303
|
loading: false,
|
|
27406
27304
|
data: currentData,
|
|
27407
27305
|
pagination: currentPagination,
|
|
27408
|
-
mappingData: _objectSpread$o(_objectSpread$o({}, parentData), {}, {
|
|
27306
|
+
mappingData: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, parentData), state.mappingData), overwriteMappingData), {}, {
|
|
27409
27307
|
prefilter: prefilter
|
|
27410
27308
|
}),
|
|
27411
27309
|
currentFetchUrl: currentUrl
|
|
@@ -27416,7 +27314,7 @@ function useTableData (_ref) {
|
|
|
27416
27314
|
filters: p.filters,
|
|
27417
27315
|
sorter: p.sorter
|
|
27418
27316
|
});
|
|
27419
|
-
case
|
|
27317
|
+
case 32:
|
|
27420
27318
|
case "end":
|
|
27421
27319
|
return _context3.stop();
|
|
27422
27320
|
}
|
|
@@ -27434,7 +27332,7 @@ function useTableData (_ref) {
|
|
|
27434
27332
|
var onDelete = /*#__PURE__*/function () {
|
|
27435
27333
|
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
27436
27334
|
var _configuration$apiInt2;
|
|
27437
|
-
var newData, newInitData, deleted, userPermissions, _loop, mappingData, deleteResult, _ret, index, total, pages, current, _configuration$
|
|
27335
|
+
var newData, newInitData, deleted, userPermissions, _loop, mappingData, deleteResult, _ret, index, total, pages, current, _configuration$filter17, _configuration$filter18, data;
|
|
27438
27336
|
return _regeneratorRuntime.wrap(function _callee4$(_context5) {
|
|
27439
27337
|
while (1) switch (_context5.prev = _context5.next) {
|
|
27440
27338
|
case 0:
|
|
@@ -27449,7 +27347,7 @@ function useTableData (_ref) {
|
|
|
27449
27347
|
case 6:
|
|
27450
27348
|
userPermissions = _context5.sent;
|
|
27451
27349
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop(index) {
|
|
27452
|
-
var _configuration$
|
|
27350
|
+
var _configuration$filter19, _configuration$filter20;
|
|
27453
27351
|
var id, _newData$filter, _newData$filter2, mapToggle, _iterator, _step, _globalFilter$toggle, field, _globalFilter$toggle2, _configuration$delete, _configuration$onErro, _configuration$onErro2, deletedIndex, initDeletedIndex;
|
|
27454
27352
|
return _regeneratorRuntime.wrap(function _loop$(_context4) {
|
|
27455
27353
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -27465,7 +27363,7 @@ function useTableData (_ref) {
|
|
|
27465
27363
|
})) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
|
|
27466
27364
|
}
|
|
27467
27365
|
mapToggle = {};
|
|
27468
|
-
_iterator = _createForOfIteratorHelper$3((_configuration$
|
|
27366
|
+
_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 : []);
|
|
27469
27367
|
try {
|
|
27470
27368
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
27471
27369
|
field = _step.value;
|
|
@@ -27568,14 +27466,14 @@ function useTableData (_ref) {
|
|
|
27568
27466
|
break;
|
|
27569
27467
|
}
|
|
27570
27468
|
_context5.next = 25;
|
|
27571
|
-
return apiHandler.readList(parentMapping || configuration.mapping,
|
|
27469
|
+
return apiHandler.readList(parentMapping || configuration.mapping, _objectSpread$o(_objectSpread$o({}, mappingData), state.mappingData), _objectSpread$o({
|
|
27572
27470
|
pagination: _objectSpread$o(_objectSpread$o({}, state.pagination), {}, {
|
|
27573
27471
|
current: current
|
|
27574
27472
|
}),
|
|
27575
27473
|
columns: configuration.columns,
|
|
27576
|
-
filters: _objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o(_objectSpread$o({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$
|
|
27474
|
+
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"]),
|
|
27577
27475
|
sorter: filterData.sorter
|
|
27578
|
-
}, configuration !== null && configuration !== void 0 && (_configuration$
|
|
27476
|
+
}, 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 ? {
|
|
27579
27477
|
genericProps: globalFilter.toggle
|
|
27580
27478
|
} : undefined));
|
|
27581
27479
|
case 25:
|
|
@@ -27604,8 +27502,8 @@ function useTableData (_ref) {
|
|
|
27604
27502
|
};
|
|
27605
27503
|
}();
|
|
27606
27504
|
var onGlobalFilterSelect = function onGlobalFilterSelect(value) {
|
|
27607
|
-
var _configuration$
|
|
27608
|
-
if (!((_configuration$
|
|
27505
|
+
var _configuration$filter21;
|
|
27506
|
+
if (!((_configuration$filter21 = configuration.filter) !== null && _configuration$filter21 !== void 0 && _configuration$filter21.select)) {
|
|
27609
27507
|
LOG$2.error(new DivaError('No global select filter defiend'));
|
|
27610
27508
|
return;
|
|
27611
27509
|
}
|
|
@@ -27621,14 +27519,16 @@ function useTableData (_ref) {
|
|
|
27621
27519
|
}, filterData), newGlobalFilter);
|
|
27622
27520
|
};
|
|
27623
27521
|
var onGlobalFilterToggle = function onGlobalFilterToggle() {
|
|
27624
|
-
var _configuration$
|
|
27625
|
-
if (!((_configuration$
|
|
27522
|
+
var _configuration$filter22;
|
|
27523
|
+
if (!((_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.toggle)) {
|
|
27626
27524
|
LOG$2.error(new DivaError('No global toggle filter defined'));
|
|
27627
27525
|
return;
|
|
27628
27526
|
}
|
|
27629
27527
|
var toggleFilter = {};
|
|
27528
|
+
var mappingData = _objectSpread$o({}, state.mappingData);
|
|
27630
27529
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
27631
|
-
|
|
27530
|
+
mappingData[f] = !globalFilter.toggle && configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : undefined;
|
|
27531
|
+
toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
27632
27532
|
});
|
|
27633
27533
|
var newGlobalFilter = _objectSpread$o(_objectSpread$o({}, globalFilter), {}, {
|
|
27634
27534
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
@@ -27636,14 +27536,14 @@ function useTableData (_ref) {
|
|
|
27636
27536
|
setGlobaFilter(newGlobalFilter);
|
|
27637
27537
|
onChange(_objectSpread$o({
|
|
27638
27538
|
pagination: state.pagination
|
|
27639
|
-
}, filterData), newGlobalFilter,
|
|
27539
|
+
}, filterData), newGlobalFilter, true, true, mappingData);
|
|
27640
27540
|
};
|
|
27641
27541
|
var resetToggle = function resetToggle() {
|
|
27642
27542
|
if (globalFilter !== null && globalFilter !== void 0 && globalFilter.toggle) onGlobalFilterToggle();
|
|
27643
27543
|
};
|
|
27644
27544
|
var onGlobalFilterSearch = function onGlobalFilterSearch(value) {
|
|
27645
|
-
var _configuration$
|
|
27646
|
-
if (!((_configuration$
|
|
27545
|
+
var _configuration$filter23;
|
|
27546
|
+
if (!((_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.search)) {
|
|
27647
27547
|
LOG$2.error(new DivaError('No global search filter defiend'));
|
|
27648
27548
|
return;
|
|
27649
27549
|
}
|
|
@@ -27651,8 +27551,8 @@ function useTableData (_ref) {
|
|
|
27651
27551
|
search: {}
|
|
27652
27552
|
});
|
|
27653
27553
|
if (value) {
|
|
27654
|
-
var _configuration$
|
|
27655
|
-
(_configuration$
|
|
27554
|
+
var _configuration$filter24;
|
|
27555
|
+
(_configuration$filter24 = configuration.filter) === null || _configuration$filter24 === void 0 || _configuration$filter24.search.fields.forEach(function (f) {
|
|
27656
27556
|
if (typeof f == 'string') {
|
|
27657
27557
|
newGlobalFilter.search[f] = [value, 'contains', 1]; //normally global search should be or, so 1
|
|
27658
27558
|
} else {
|
|
@@ -27666,8 +27566,8 @@ function useTableData (_ref) {
|
|
|
27666
27566
|
}, filterData), newGlobalFilter);
|
|
27667
27567
|
};
|
|
27668
27568
|
var onGlobalFilterPeriod = function onGlobalFilterPeriod(from, to) {
|
|
27669
|
-
var _configuration$
|
|
27670
|
-
if (!((_configuration$
|
|
27569
|
+
var _configuration$filter25;
|
|
27570
|
+
if (!((_configuration$filter25 = configuration.filter) !== null && _configuration$filter25 !== void 0 && _configuration$filter25.period)) {
|
|
27671
27571
|
LOG$2.error(new DivaError('No global period filter defiend'));
|
|
27672
27572
|
return;
|
|
27673
27573
|
}
|
|
@@ -27676,10 +27576,13 @@ function useTableData (_ref) {
|
|
|
27676
27576
|
fromTimeStamp: [from],
|
|
27677
27577
|
toTimeStamp: [to]
|
|
27678
27578
|
};
|
|
27679
|
-
setGlobaFilter(newGlobalFilter);
|
|
27579
|
+
if (!configuration.filter.period.onlyAsMappingData) setGlobaFilter(newGlobalFilter);
|
|
27680
27580
|
onChange(_objectSpread$o({
|
|
27681
27581
|
pagination: state.pagination
|
|
27682
|
-
}, filterData),
|
|
27582
|
+
}, filterData), undefined, true, undefined, _objectSpread$o(_objectSpread$o({}, state.mappingData), {}, {
|
|
27583
|
+
from: from,
|
|
27584
|
+
to: to
|
|
27585
|
+
}));
|
|
27683
27586
|
};
|
|
27684
27587
|
return _objectSpread$o(_objectSpread$o({}, state), {}, {
|
|
27685
27588
|
title: title,
|
|
@@ -30522,7 +30425,8 @@ function TableGroups () {
|
|
|
30522
30425
|
}, {
|
|
30523
30426
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
|
30524
30427
|
field: '_id',
|
|
30525
|
-
editable: false
|
|
30428
|
+
editable: false,
|
|
30429
|
+
cellDataType: 'objectId'
|
|
30526
30430
|
}]
|
|
30527
30431
|
};
|
|
30528
30432
|
}, [apiInterface, t]);
|
|
@@ -31135,7 +31039,8 @@ function TableProperties () {
|
|
|
31135
31039
|
}, {
|
|
31136
31040
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
|
31137
31041
|
field: '_id',
|
|
31138
|
-
editable: false
|
|
31042
|
+
editable: false,
|
|
31043
|
+
cellDataType: 'objectId'
|
|
31139
31044
|
}]
|
|
31140
31045
|
};
|
|
31141
31046
|
}, [apiInterface, t]);
|
|
@@ -31507,6 +31412,9 @@ function SeriesSelector$1(_ref) {
|
|
|
31507
31412
|
var _useTranslation = useTranslation(),
|
|
31508
31413
|
t = _useTranslation.t,
|
|
31509
31414
|
i18n = _useTranslation.i18n;
|
|
31415
|
+
useEffect(function () {
|
|
31416
|
+
setSelectedSerie(undefined);
|
|
31417
|
+
}, [packageId]);
|
|
31510
31418
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
31511
31419
|
apiInterface: {
|
|
31512
31420
|
read: enricherService + '/packages/' + packageId + '/' + dataSet + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo").concat(additionalFields ? ";".concat(additionalFields.join(';')) : '')
|
|
@@ -31525,7 +31433,7 @@ function SeriesSelector$1(_ref) {
|
|
|
31525
31433
|
style: {
|
|
31526
31434
|
width: 200
|
|
31527
31435
|
}
|
|
31528
|
-
});
|
|
31436
|
+
}, packageId);
|
|
31529
31437
|
}
|
|
31530
31438
|
|
|
31531
31439
|
function FeatureSelector$1(_ref) {
|
|
@@ -31537,6 +31445,9 @@ function FeatureSelector$1(_ref) {
|
|
|
31537
31445
|
var _useTranslation = useTranslation(),
|
|
31538
31446
|
t = _useTranslation.t,
|
|
31539
31447
|
i18n = _useTranslation.i18n;
|
|
31448
|
+
useEffect(function () {
|
|
31449
|
+
setSelectedFeature(undefined);
|
|
31450
|
+
}, [packageId]);
|
|
31540
31451
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
31541
31452
|
apiInterface: {
|
|
31542
31453
|
read: enricherService + '/packages/' + packageId + '/' + dataSet + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
|
|
@@ -31555,7 +31466,7 @@ function FeatureSelector$1(_ref) {
|
|
|
31555
31466
|
style: {
|
|
31556
31467
|
width: 200
|
|
31557
31468
|
}
|
|
31558
|
-
});
|
|
31469
|
+
}, packageId);
|
|
31559
31470
|
}
|
|
31560
31471
|
|
|
31561
31472
|
function useConfiguration (configuration) {
|
|
@@ -31885,7 +31796,8 @@ var config = {
|
|
|
31885
31796
|
}, {
|
|
31886
31797
|
field: 'purchaseRetailId',
|
|
31887
31798
|
headerName: 'backoffice.idmEnricher.exclusivity.label.purchaseRetailId',
|
|
31888
|
-
editable: false
|
|
31799
|
+
editable: false,
|
|
31800
|
+
cellDataType: 'number'
|
|
31889
31801
|
}, {
|
|
31890
31802
|
headerName: 'backoffice.idmEnricher.exclusivity.label.validFrom',
|
|
31891
31803
|
field: 'validFrom',
|
|
@@ -33371,7 +33283,8 @@ function Prices (_ref) {
|
|
|
33371
33283
|
}, {
|
|
33372
33284
|
headerName: 'backoffice.idmEnricher.general.label._id',
|
|
33373
33285
|
field: '_id',
|
|
33374
|
-
editable: false
|
|
33286
|
+
editable: false,
|
|
33287
|
+
cellDataType: 'objectId'
|
|
33375
33288
|
}])
|
|
33376
33289
|
};
|
|
33377
33290
|
}, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
|
|
@@ -33755,30 +33668,77 @@ function UploadButton (_ref) {
|
|
|
33755
33668
|
title = _ref.title,
|
|
33756
33669
|
disabled = _ref.disabled,
|
|
33757
33670
|
contentType = _ref.contentType,
|
|
33758
|
-
setProgress = _ref.setProgress
|
|
33671
|
+
setProgress = _ref.setProgress,
|
|
33672
|
+
setFileList = _ref.setFileList,
|
|
33673
|
+
fileList = _ref.fileList,
|
|
33674
|
+
progress = _ref.progress;
|
|
33759
33675
|
var _useTranslation = useTranslation(),
|
|
33760
33676
|
t = _useTranslation.t;
|
|
33761
33677
|
var root = useStore();
|
|
33762
|
-
var
|
|
33763
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33764
|
-
fileList = _useState2[0],
|
|
33765
|
-
setFileList = _useState2[1];
|
|
33678
|
+
var ref = useRef();
|
|
33766
33679
|
var handleUploadChange = function handleUploadChange(info) {
|
|
33767
33680
|
var status = info.file.status;
|
|
33768
33681
|
if (status === 'done') {
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33682
|
+
setFileList([]);
|
|
33683
|
+
setProgress('SUCCESS');
|
|
33684
|
+
if (ref.current) {
|
|
33685
|
+
clearInterval(ref.current.interval);
|
|
33686
|
+
ref.current = undefined;
|
|
33687
|
+
}
|
|
33688
|
+
if (info.fileList[0]) {
|
|
33689
|
+
info.fileList[0].percent = 100;
|
|
33690
|
+
}
|
|
33772
33691
|
} else if (status === 'error') {
|
|
33773
|
-
|
|
33774
|
-
|
|
33692
|
+
setProgress('ERROR');
|
|
33693
|
+
if (ref.current) {
|
|
33694
|
+
clearInterval(ref.current.interval);
|
|
33695
|
+
ref.current = undefined;
|
|
33696
|
+
}
|
|
33697
|
+
if (info.fileList[0]) {
|
|
33698
|
+
info.fileList[0].percent = 100;
|
|
33699
|
+
}
|
|
33775
33700
|
} else if (status === 'removed') {
|
|
33776
|
-
setFileList([]);
|
|
33777
|
-
setProgress(undefined);
|
|
33701
|
+
setFileList([]);
|
|
33702
|
+
setProgress(undefined);
|
|
33703
|
+
if (ref.current) {
|
|
33704
|
+
clearInterval(ref.current.interval);
|
|
33705
|
+
ref.current = undefined;
|
|
33706
|
+
}
|
|
33778
33707
|
} else {
|
|
33779
|
-
setProgress('INPROGRESS');
|
|
33780
|
-
|
|
33708
|
+
setProgress('INPROGRESS');
|
|
33709
|
+
if (info.fileList[0]) {
|
|
33710
|
+
var file = info.fileList[0];
|
|
33711
|
+
if (status === 'uploading') {
|
|
33712
|
+
// First 50%, the file is still uploading to browser
|
|
33713
|
+
file.percent = (file.percent || 0) / 2;
|
|
33714
|
+
if (file.percent === 50) {
|
|
33715
|
+
// Calculate size-based progress for the second 50%
|
|
33716
|
+
if (file.size) {
|
|
33717
|
+
var _ref$current$startTim, _ref$current, _ref$current$interval, _ref$current2;
|
|
33718
|
+
var fileSize = file.size;
|
|
33719
|
+
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();
|
|
33720
|
+
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 () {
|
|
33721
|
+
// Assume 1MB takes about 4 seconds to upload
|
|
33722
|
+
var estimatedTimeInSeconds = fileSize / (1024 * 1024) * 4;
|
|
33723
|
+
var elapsedTime = (Date.now() - startTime) / 1000;
|
|
33724
|
+
// Calculate progress for the second 50%
|
|
33725
|
+
var sizeBasedProgress = Math.min(50 * (elapsedTime / estimatedTimeInSeconds), 49);
|
|
33726
|
+
// Combine both progress values, ensuring we don't exceed 99
|
|
33727
|
+
file.percent = Math.min(50 + sizeBasedProgress, 99);
|
|
33728
|
+
setFileList(_toConsumableArray(info.fileList));
|
|
33729
|
+
}, 10);
|
|
33730
|
+
ref.current = {
|
|
33731
|
+
startTime: startTime,
|
|
33732
|
+
interval: interval
|
|
33733
|
+
};
|
|
33734
|
+
}
|
|
33735
|
+
}
|
|
33736
|
+
} else {
|
|
33737
|
+
file.percent = 100; // Set to 100 if not uploading
|
|
33738
|
+
}
|
|
33739
|
+
}
|
|
33781
33740
|
}
|
|
33741
|
+
setFileList(info.fileList);
|
|
33782
33742
|
};
|
|
33783
33743
|
var props = {
|
|
33784
33744
|
name: 'file',
|
|
@@ -33793,7 +33753,7 @@ function UploadButton (_ref) {
|
|
|
33793
33753
|
};
|
|
33794
33754
|
return /*#__PURE__*/jsx(Fragment, {
|
|
33795
33755
|
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$9(_objectSpread$9({}, props), {}, {
|
|
33796
|
-
children: /*#__PURE__*/jsx(Button$1, {
|
|
33756
|
+
children: progress !== 'SUCCESS' && /*#__PURE__*/jsx(Button$1, {
|
|
33797
33757
|
icon: /*#__PURE__*/jsx(UploadOutlined$1, {}),
|
|
33798
33758
|
disabled: disabled,
|
|
33799
33759
|
children: title !== null && title !== void 0 ? title : t('backoffice.idmEnricher.import.upload')
|
|
@@ -33806,19 +33766,18 @@ function IDMImportForm (_ref) {
|
|
|
33806
33766
|
var idmService = _ref.idmService,
|
|
33807
33767
|
organizationId = _ref.organizationId,
|
|
33808
33768
|
setProgress = _ref.setProgress,
|
|
33809
|
-
progress = _ref.progress
|
|
33769
|
+
progress = _ref.progress,
|
|
33770
|
+
name = _ref.name,
|
|
33771
|
+
setName = _ref.setName,
|
|
33772
|
+
setFileList = _ref.setFileList,
|
|
33773
|
+
fileList = _ref.fileList;
|
|
33810
33774
|
var _useTranslation = useTranslation(),
|
|
33811
33775
|
t = _useTranslation.t;
|
|
33812
|
-
var _useState = useState(''),
|
|
33813
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33814
|
-
name = _useState2[0],
|
|
33815
|
-
setName = _useState2[1];
|
|
33816
33776
|
var uploadAction = "".concat(idmService, "/v3.0/catalogs/upload?organizationId=").concat(organizationId, "&name=").concat(encodeURIComponent(name));
|
|
33817
33777
|
return /*#__PURE__*/jsxs(Form$1, {
|
|
33818
33778
|
name: "basic",
|
|
33819
33779
|
children: [/*#__PURE__*/jsx(Form$1.Item, {
|
|
33820
33780
|
label: "Name",
|
|
33821
|
-
name: "name",
|
|
33822
33781
|
rules: [{
|
|
33823
33782
|
required: true,
|
|
33824
33783
|
message: t('backoffice.idmEnricher.import.namerequired')
|
|
@@ -33827,14 +33786,18 @@ function IDMImportForm (_ref) {
|
|
|
33827
33786
|
onChange: function onChange(e) {
|
|
33828
33787
|
return setName(e.target.value);
|
|
33829
33788
|
},
|
|
33830
|
-
value: name
|
|
33789
|
+
value: name,
|
|
33790
|
+
disabled: progress === 'INPROGRESS' || progress === 'SUCCESS'
|
|
33831
33791
|
})
|
|
33832
33792
|
}), /*#__PURE__*/jsx(Form$1.Item, {
|
|
33833
33793
|
children: /*#__PURE__*/jsx(UploadButton, {
|
|
33834
33794
|
action: uploadAction,
|
|
33835
33795
|
contentType: "multipart/form-data",
|
|
33836
33796
|
setProgress: setProgress,
|
|
33837
|
-
|
|
33797
|
+
progress: progress,
|
|
33798
|
+
disabled: !name.trim() || progress === 'INPROGRESS',
|
|
33799
|
+
setFileList: setFileList,
|
|
33800
|
+
fileList: fileList
|
|
33838
33801
|
})
|
|
33839
33802
|
}), /*#__PURE__*/jsxs(Form$1.Item, {
|
|
33840
33803
|
style: {
|
|
@@ -33869,17 +33832,28 @@ function OpenModalButton (_ref) {
|
|
|
33869
33832
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
33870
33833
|
progress = _useState4[0],
|
|
33871
33834
|
setProgress = _useState4[1];
|
|
33835
|
+
var _useState5 = useState(''),
|
|
33836
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
33837
|
+
name = _useState6[0],
|
|
33838
|
+
setName = _useState6[1];
|
|
33839
|
+
var _useState7 = useState([]),
|
|
33840
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
33841
|
+
fileList = _useState8[0],
|
|
33842
|
+
setFileList = _useState8[1];
|
|
33872
33843
|
var showModal = function showModal() {
|
|
33873
33844
|
setIsModalOpen(true);
|
|
33874
33845
|
};
|
|
33875
|
-
var
|
|
33876
|
-
|
|
33877
|
-
|
|
33846
|
+
var resetProgress = function resetProgress() {
|
|
33847
|
+
setProgress(undefined);
|
|
33848
|
+
setName('');
|
|
33849
|
+
setFileList([]);
|
|
33878
33850
|
};
|
|
33879
|
-
var
|
|
33851
|
+
var handleOk = function handleOk() {
|
|
33880
33852
|
setIsModalOpen(false);
|
|
33853
|
+
resetProgress();
|
|
33881
33854
|
onClose();
|
|
33882
33855
|
};
|
|
33856
|
+
var buttonText = progress == undefined || progress == 'ERROR' ? t('backoffice.idmEnricher.import.cancel') : progress === 'INPROGRESS' ? t('backoffice.idmEnricher.import.inprogress') : t('backoffice.idmEnricher.import.finish');
|
|
33883
33857
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
33884
33858
|
children: [/*#__PURE__*/jsx(Button$1, {
|
|
33885
33859
|
type: "primary",
|
|
@@ -33889,15 +33863,30 @@ function OpenModalButton (_ref) {
|
|
|
33889
33863
|
title: title,
|
|
33890
33864
|
open: isModalOpen,
|
|
33891
33865
|
onOk: handleOk,
|
|
33892
|
-
onCancel:
|
|
33893
|
-
|
|
33866
|
+
onCancel: handleOk,
|
|
33867
|
+
cancelButtonProps: progress !== 'SUCCESS' ? {
|
|
33868
|
+
style: {
|
|
33869
|
+
display: 'none'
|
|
33870
|
+
}
|
|
33871
|
+
} : {
|
|
33872
|
+
onClick: resetProgress
|
|
33873
|
+
},
|
|
33874
|
+
closable: progress !== 'INPROGRESS',
|
|
33875
|
+
maskClosable: progress !== 'INPROGRESS',
|
|
33876
|
+
okText: buttonText,
|
|
33877
|
+
cancelText: progress === 'SUCCESS' ? t('backoffice.idmEnricher.import.new') : undefined,
|
|
33894
33878
|
okButtonProps: {
|
|
33895
33879
|
disabled: progress === 'INPROGRESS'
|
|
33896
33880
|
} // Disable the button if progress is 'INPROGRESS'
|
|
33897
33881
|
,
|
|
33882
|
+
destroyOnClose: true,
|
|
33898
33883
|
children: type === 'IDM_IMPORT' && /*#__PURE__*/jsx(IDMImportForm, {
|
|
33899
33884
|
setProgress: setProgress,
|
|
33900
33885
|
progress: progress,
|
|
33886
|
+
name: name,
|
|
33887
|
+
setName: setName,
|
|
33888
|
+
setFileList: setFileList,
|
|
33889
|
+
fileList: fileList,
|
|
33901
33890
|
idmService: idmService,
|
|
33902
33891
|
organizationId: organizationId
|
|
33903
33892
|
})
|
|
@@ -34063,13 +34052,13 @@ function TableCatalogs () {
|
|
|
34063
34052
|
value: 1000000000
|
|
34064
34053
|
}];
|
|
34065
34054
|
var roundingType = [{
|
|
34066
|
-
name: t('backoffice.idmCatalog.general.label.
|
|
34055
|
+
name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r1'),
|
|
34067
34056
|
value: 1
|
|
34068
34057
|
}, {
|
|
34069
|
-
name: t('backoffice.idmCatalog.general.label.
|
|
34058
|
+
name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r2'),
|
|
34070
34059
|
value: 2
|
|
34071
34060
|
}, {
|
|
34072
|
-
name: t('backoffice.idmCatalog.general.label.
|
|
34061
|
+
name: t('backoffice.idmCatalog.general.label.roundingTypeItem.r3'),
|
|
34073
34062
|
value: 3
|
|
34074
34063
|
}];
|
|
34075
34064
|
return {
|
|
@@ -34216,13 +34205,13 @@ function TableCatalogs () {
|
|
|
34216
34205
|
}]
|
|
34217
34206
|
}, {
|
|
34218
34207
|
headerName: 'backoffice.idmCatalog.general.label.fallbackLanguage',
|
|
34219
|
-
field: '
|
|
34208
|
+
field: 'fallBackLanguage',
|
|
34220
34209
|
cellDataType: 'enum',
|
|
34221
34210
|
editable: true,
|
|
34222
34211
|
required: true,
|
|
34223
34212
|
customParams: {
|
|
34224
34213
|
enumData: ['DE', 'EN', 'FR', 'IT'],
|
|
34225
|
-
multiple:
|
|
34214
|
+
multiple: false
|
|
34226
34215
|
},
|
|
34227
34216
|
defaultValue: 'DE'
|
|
34228
34217
|
}]
|
|
@@ -34299,11 +34288,11 @@ function TableCatalogs () {
|
|
|
34299
34288
|
regex: '[0-9a-zA-Z]{0,10}'
|
|
34300
34289
|
}, {
|
|
34301
34290
|
headerName: 'backoffice.idmCatalog.general.label.telephone',
|
|
34302
|
-
field: '
|
|
34291
|
+
field: 'telephoneSwitchboard',
|
|
34303
34292
|
required: true
|
|
34304
34293
|
}, {
|
|
34305
34294
|
headerName: 'backoffice.idmCatalog.general.label.faxSwitchBoard',
|
|
34306
|
-
field: '
|
|
34295
|
+
field: 'faxSwitchboard',
|
|
34307
34296
|
required: true
|
|
34308
34297
|
}]
|
|
34309
34298
|
}, {
|
|
@@ -34368,7 +34357,7 @@ function TableCatalogs () {
|
|
|
34368
34357
|
headerName: 'backoffice.idmCatalog.general.label.contact2',
|
|
34369
34358
|
children: [{
|
|
34370
34359
|
headerName: 'backoffice.idmCatalog.general.label.contactPersonNo',
|
|
34371
|
-
field: '
|
|
34360
|
+
field: 'contactPersonNo2'
|
|
34372
34361
|
}, {
|
|
34373
34362
|
headerName: 'backoffice.idmCatalog.general.label.contactName',
|
|
34374
34363
|
field: 'contactName2'
|
|
@@ -34538,6 +34527,13 @@ function TableCatalogs () {
|
|
|
34538
34527
|
headerName: 'backoffice.idmCatalog.general.label.hash',
|
|
34539
34528
|
field: 'hash',
|
|
34540
34529
|
editable: false
|
|
34530
|
+
}, {
|
|
34531
|
+
field: 'organizationId',
|
|
34532
|
+
editable: false,
|
|
34533
|
+
hide: true,
|
|
34534
|
+
lockVisible: true,
|
|
34535
|
+
suppressColumnsToolPanel: true,
|
|
34536
|
+
defaultValue: '${organizationId}'
|
|
34541
34537
|
}]
|
|
34542
34538
|
};
|
|
34543
34539
|
}, []);
|
|
@@ -34623,6 +34619,9 @@ function SeriesSelector(_ref) {
|
|
|
34623
34619
|
var _useTranslation = useTranslation(),
|
|
34624
34620
|
t = _useTranslation.t,
|
|
34625
34621
|
i18n = _useTranslation.i18n;
|
|
34622
|
+
useEffect(function () {
|
|
34623
|
+
setSelectedSerie(undefined);
|
|
34624
|
+
}, [catalogId]);
|
|
34626
34625
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
34627
34626
|
apiInterface: {
|
|
34628
34627
|
read: idmService + '/v3.0/catalogs/' + catalogId + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo").concat(additionalFields ? ";".concat(additionalFields.join(';')) : '')
|
|
@@ -34668,16 +34667,6 @@ function useModule (currentModules) {
|
|
|
34668
34667
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/series' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
34669
34668
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries')
|
|
34670
34669
|
})
|
|
34671
|
-
}, {
|
|
34672
|
-
key: 'items',
|
|
34673
|
-
style: {
|
|
34674
|
-
margin: 0
|
|
34675
|
-
},
|
|
34676
|
-
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
34677
|
-
label: /*#__PURE__*/jsx(Link, {
|
|
34678
|
-
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
34679
|
-
children: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
|
34680
|
-
})
|
|
34681
34670
|
}, {
|
|
34682
34671
|
key: 'features',
|
|
34683
34672
|
style: {
|
|
@@ -34709,24 +34698,24 @@ function useModule (currentModules) {
|
|
|
34709
34698
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
|
|
34710
34699
|
})
|
|
34711
34700
|
}, {
|
|
34712
|
-
key: '
|
|
34701
|
+
key: 'items',
|
|
34713
34702
|
style: {
|
|
34714
34703
|
margin: 0
|
|
34715
34704
|
},
|
|
34716
34705
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
34717
34706
|
label: /*#__PURE__*/jsx(Link, {
|
|
34718
|
-
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/
|
|
34719
|
-
children: t('backoffice.menu.items.label.
|
|
34707
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/items' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
34708
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
|
|
34720
34709
|
})
|
|
34721
34710
|
}, {
|
|
34722
|
-
key: '
|
|
34711
|
+
key: 'decisions',
|
|
34723
34712
|
style: {
|
|
34724
34713
|
margin: 0
|
|
34725
34714
|
},
|
|
34726
34715
|
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
34727
34716
|
label: /*#__PURE__*/jsx(Link, {
|
|
34728
|
-
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/
|
|
34729
|
-
children: t('backoffice.menu.items.label.
|
|
34717
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/decisions' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
34718
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDecisions')
|
|
34730
34719
|
})
|
|
34731
34720
|
}, {
|
|
34732
34721
|
key: 'partlists',
|
|
@@ -34738,6 +34727,16 @@ function useModule (currentModules) {
|
|
|
34738
34727
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/partlists' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
34739
34728
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTablePartlists')
|
|
34740
34729
|
})
|
|
34730
|
+
}, {
|
|
34731
|
+
key: 'detailinfos',
|
|
34732
|
+
style: {
|
|
34733
|
+
margin: 0
|
|
34734
|
+
},
|
|
34735
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
34736
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
34737
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/detailinfos' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
34738
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableDetailInfos')
|
|
34739
|
+
})
|
|
34741
34740
|
}, {
|
|
34742
34741
|
key: 'pricefeaturegroups',
|
|
34743
34742
|
style: {
|
|
@@ -34917,11 +34916,6 @@ function Items(_ref) {
|
|
|
34917
34916
|
field: 'typeNo',
|
|
34918
34917
|
required: true,
|
|
34919
34918
|
unique: true
|
|
34920
|
-
}, {
|
|
34921
|
-
headerName: 'backoffice.idmCatalogEditor.items.label.priceTypeRef',
|
|
34922
|
-
field: 'priceTypeRef',
|
|
34923
|
-
cellDataType: 'number',
|
|
34924
|
-
required: true
|
|
34925
34919
|
}, {
|
|
34926
34920
|
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
34927
34921
|
field: 'sequenceNo',
|
|
@@ -35005,7 +34999,24 @@ function Items(_ref) {
|
|
|
35005
34999
|
}, {
|
|
35006
35000
|
headerName: 'backoffice.idmCatalogEditor.items.label.featureClassRefNo',
|
|
35007
35001
|
field: 'featureClassRefNo',
|
|
35008
|
-
cellDataType: '
|
|
35002
|
+
cellDataType: 'lookup',
|
|
35003
|
+
customParams: {
|
|
35004
|
+
nameField: 'featureClassRefNoDisplayText',
|
|
35005
|
+
filterCellType: 'number',
|
|
35006
|
+
displayLabelTemplate: '${name} (${value})',
|
|
35007
|
+
apiInterface: {
|
|
35008
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses'
|
|
35009
|
+
},
|
|
35010
|
+
lookupKey: 'featureClassNo',
|
|
35011
|
+
lookupValue: 'featureClassName',
|
|
35012
|
+
lookupKeyFilterType: {
|
|
35013
|
+
type: 'equals',
|
|
35014
|
+
filterType: 'number'
|
|
35015
|
+
},
|
|
35016
|
+
multiple: false,
|
|
35017
|
+
translated: true
|
|
35018
|
+
},
|
|
35019
|
+
additionalFields: ['featureClassRefNoDisplayText'],
|
|
35009
35020
|
required: true
|
|
35010
35021
|
}, {
|
|
35011
35022
|
headerName: 'backoffice.idmCatalogEditor.items.label.eClassNo',
|
|
@@ -35030,11 +35041,9 @@ function Items(_ref) {
|
|
|
35030
35041
|
field: 'partListRef',
|
|
35031
35042
|
cellDataType: 'lookup',
|
|
35032
35043
|
customParams: {
|
|
35033
|
-
nameField: 'partListRef',
|
|
35034
35044
|
apiInterface: {
|
|
35035
35045
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/partlists'
|
|
35036
35046
|
},
|
|
35037
|
-
lookupValue: 'partlistKey',
|
|
35038
35047
|
lookupKey: 'partlistKey'
|
|
35039
35048
|
}
|
|
35040
35049
|
}, {
|
|
@@ -35153,6 +35162,13 @@ function Items(_ref) {
|
|
|
35153
35162
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
35154
35163
|
field: 'lastUpdatedByDisplayText',
|
|
35155
35164
|
editable: false
|
|
35165
|
+
}, {
|
|
35166
|
+
field: 'priceTypeRef',
|
|
35167
|
+
defaultValue: 1,
|
|
35168
|
+
editable: false,
|
|
35169
|
+
hide: true,
|
|
35170
|
+
lockVisible: true,
|
|
35171
|
+
suppressColumnsToolPanel: true
|
|
35156
35172
|
}]
|
|
35157
35173
|
};
|
|
35158
35174
|
}, []);
|
|
@@ -35398,6 +35414,7 @@ function TableSeries () {
|
|
|
35398
35414
|
}, {
|
|
35399
35415
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
35400
35416
|
field: '_id',
|
|
35417
|
+
cellDataType: 'objectId',
|
|
35401
35418
|
editable: false
|
|
35402
35419
|
}, {
|
|
35403
35420
|
field: 'organizationId',
|
|
@@ -35556,7 +35573,8 @@ function Options(_ref) {
|
|
|
35556
35573
|
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
|
35557
35574
|
children: [{
|
|
35558
35575
|
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
|
35559
|
-
field: 'measureNo'
|
|
35576
|
+
field: 'measureNo',
|
|
35577
|
+
cellDataType: 'number'
|
|
35560
35578
|
}, {
|
|
35561
35579
|
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
|
35562
35580
|
field: 'measureValue',
|
|
@@ -35748,7 +35766,8 @@ function Features(_ref) {
|
|
|
35748
35766
|
}, {
|
|
35749
35767
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
35750
35768
|
field: '_id',
|
|
35751
|
-
editable: false
|
|
35769
|
+
editable: false,
|
|
35770
|
+
cellDataType: 'objectId'
|
|
35752
35771
|
}, {
|
|
35753
35772
|
field: 'organizationId',
|
|
35754
35773
|
editable: false,
|
|
@@ -35858,6 +35877,9 @@ function FeatureSelector(_ref) {
|
|
|
35858
35877
|
var _useTranslation = useTranslation(),
|
|
35859
35878
|
t = _useTranslation.t,
|
|
35860
35879
|
i18n = _useTranslation.i18n;
|
|
35880
|
+
useEffect(function () {
|
|
35881
|
+
setSelectedFeature(undefined);
|
|
35882
|
+
}, [catalogId]);
|
|
35861
35883
|
return /*#__PURE__*/jsx(SimpleSelect, {
|
|
35862
35884
|
apiInterface: {
|
|
35863
35885
|
read: idmService + '/v3.0/catalogs/' + catalogId + "/features?fields=featureText[".concat(i18n.language.toLocaleUpperCase(), "];featureNo;_id")
|
|
@@ -35876,7 +35898,7 @@ function FeatureSelector(_ref) {
|
|
|
35876
35898
|
style: {
|
|
35877
35899
|
width: 200
|
|
35878
35900
|
}
|
|
35879
|
-
});
|
|
35901
|
+
}, catalogId);
|
|
35880
35902
|
}
|
|
35881
35903
|
|
|
35882
35904
|
function TableOptions () {
|
|
@@ -35992,7 +36014,8 @@ function TableFeatureClasses () {
|
|
|
35992
36014
|
colDef: [{
|
|
35993
36015
|
field: 'featureClassNo',
|
|
35994
36016
|
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
|
|
35995
|
-
required: true
|
|
36017
|
+
required: true,
|
|
36018
|
+
cellDataType: 'number'
|
|
35996
36019
|
}, {
|
|
35997
36020
|
headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
|
|
35998
36021
|
marryChildren: true,
|
|
@@ -36034,7 +36057,8 @@ function TableFeatureClasses () {
|
|
|
36034
36057
|
}, {
|
|
36035
36058
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
36036
36059
|
field: '_id',
|
|
36037
|
-
editable: false
|
|
36060
|
+
editable: false,
|
|
36061
|
+
cellDataType: 'objectId'
|
|
36038
36062
|
}, {
|
|
36039
36063
|
field: 'organizationId',
|
|
36040
36064
|
editable: false,
|
|
@@ -36050,7 +36074,12 @@ function TableFeatureClasses () {
|
|
|
36050
36074
|
suppressColumnsToolPanel: true,
|
|
36051
36075
|
defaultValue: '${catalogId}'
|
|
36052
36076
|
}, {
|
|
36053
|
-
field: 'featureRefs'
|
|
36077
|
+
field: 'featureRefs',
|
|
36078
|
+
editable: false,
|
|
36079
|
+
hide: true,
|
|
36080
|
+
lockVisible: true,
|
|
36081
|
+
suppressColumnsToolPanel: true,
|
|
36082
|
+
defaultValue: {}
|
|
36054
36083
|
}]
|
|
36055
36084
|
};
|
|
36056
36085
|
}, []);
|
|
@@ -36475,7 +36504,8 @@ function OptionCombinations(_ref8) {
|
|
|
36475
36504
|
}, {
|
|
36476
36505
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
36477
36506
|
field: '_id',
|
|
36478
|
-
editable: false
|
|
36507
|
+
editable: false,
|
|
36508
|
+
cellDataType: 'objectId'
|
|
36479
36509
|
}, {
|
|
36480
36510
|
field: 'organizationId',
|
|
36481
36511
|
editable: false,
|
|
@@ -36606,7 +36636,8 @@ function TableDecisions () {
|
|
|
36606
36636
|
colDef: [{
|
|
36607
36637
|
field: 'decisionNo',
|
|
36608
36638
|
headerName: 'backoffice.idmCatalog.decisions.label.decisionNo',
|
|
36609
|
-
required: true
|
|
36639
|
+
required: true,
|
|
36640
|
+
cellDataType: 'number'
|
|
36610
36641
|
}, {
|
|
36611
36642
|
headerName: 'backoffice.idmCatalog.decisions.label.decisionText',
|
|
36612
36643
|
marryChildren: true,
|
|
@@ -36658,10 +36689,6 @@ function TableDecisions () {
|
|
|
36658
36689
|
},
|
|
36659
36690
|
lookupValue: 'featureText',
|
|
36660
36691
|
lookupKey: 'featureNo',
|
|
36661
|
-
lookupKeyFilterType: {
|
|
36662
|
-
type: 'equals',
|
|
36663
|
-
filterType: 'number'
|
|
36664
|
-
},
|
|
36665
36692
|
multiple: true,
|
|
36666
36693
|
translated: true
|
|
36667
36694
|
},
|
|
@@ -36698,7 +36725,8 @@ function TableDecisions () {
|
|
|
36698
36725
|
}, {
|
|
36699
36726
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
36700
36727
|
field: '_id',
|
|
36701
|
-
editable: false
|
|
36728
|
+
editable: false,
|
|
36729
|
+
cellDataType: 'objectId'
|
|
36702
36730
|
}, {
|
|
36703
36731
|
field: 'organizationId',
|
|
36704
36732
|
editable: false,
|
|
@@ -36775,22 +36803,22 @@ function TableDetailInfos () {
|
|
|
36775
36803
|
}, []);
|
|
36776
36804
|
var configuration = useMemo(function () {
|
|
36777
36805
|
var layerId = [{
|
|
36778
|
-
name: t('backoffice.idmCatalog.detailinfos.label.
|
|
36806
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l10'),
|
|
36779
36807
|
value: 10
|
|
36780
36808
|
}, {
|
|
36781
|
-
name: t('backoffice.idmCatalog.detailinfos.label.
|
|
36809
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l20'),
|
|
36782
36810
|
value: 20
|
|
36783
36811
|
}, {
|
|
36784
|
-
name: t('backoffice.idmCatalog.detailinfos.label.
|
|
36812
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l30'),
|
|
36785
36813
|
value: 30
|
|
36786
36814
|
}, {
|
|
36787
|
-
name: t('backoffice.idmCatalog.detailinfos.label.
|
|
36815
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l40'),
|
|
36788
36816
|
value: 40
|
|
36789
36817
|
}, {
|
|
36790
|
-
name: t('backoffice.idmCatalog.detailinfos.label.
|
|
36818
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l50'),
|
|
36791
36819
|
value: 50
|
|
36792
36820
|
}, {
|
|
36793
|
-
name: t('backoffice.idmCatalog.detailinfos.label.
|
|
36821
|
+
name: t('backoffice.idmCatalog.detailinfos.label.layerkey.l60'),
|
|
36794
36822
|
value: 60
|
|
36795
36823
|
}];
|
|
36796
36824
|
var infoType = [{
|
|
@@ -36840,9 +36868,6 @@ function TableDetailInfos () {
|
|
|
36840
36868
|
type: 'dotnetSSM',
|
|
36841
36869
|
apiInterface: {
|
|
36842
36870
|
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos',
|
|
36843
|
-
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos',
|
|
36844
|
-
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}',
|
|
36845
|
-
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}',
|
|
36846
36871
|
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/detailinfos/${_id}'
|
|
36847
36872
|
},
|
|
36848
36873
|
dateFormat: 'LL',
|
|
@@ -36857,8 +36882,7 @@ function TableDetailInfos () {
|
|
|
36857
36882
|
children: [{
|
|
36858
36883
|
field: 'externalName.DE',
|
|
36859
36884
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36860
|
-
isDictionary: true
|
|
36861
|
-
required: true
|
|
36885
|
+
isDictionary: true
|
|
36862
36886
|
}, {
|
|
36863
36887
|
field: 'externalName.EN',
|
|
36864
36888
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -36878,8 +36902,7 @@ function TableDetailInfos () {
|
|
|
36878
36902
|
children: [{
|
|
36879
36903
|
field: 'internalName.DE',
|
|
36880
36904
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36881
|
-
isDictionary: true
|
|
36882
|
-
required: true
|
|
36905
|
+
isDictionary: true
|
|
36883
36906
|
}, {
|
|
36884
36907
|
field: 'internalName.EN',
|
|
36885
36908
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -36899,8 +36922,7 @@ function TableDetailInfos () {
|
|
|
36899
36922
|
children: [{
|
|
36900
36923
|
field: 'toolTip.DE',
|
|
36901
36924
|
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
36902
|
-
isDictionary: true
|
|
36903
|
-
required: true
|
|
36925
|
+
isDictionary: true
|
|
36904
36926
|
}, {
|
|
36905
36927
|
field: 'toolTip.EN',
|
|
36906
36928
|
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
@@ -36948,7 +36970,14 @@ function TableDetailInfos () {
|
|
|
36948
36970
|
}, {
|
|
36949
36971
|
field: 'isoLanguageId',
|
|
36950
36972
|
headerName: 'backoffice.idmCatalog.detailinfos.label.isoLanguageId',
|
|
36951
|
-
|
|
36973
|
+
cellDataType: 'enum',
|
|
36974
|
+
editable: true,
|
|
36975
|
+
required: true,
|
|
36976
|
+
customParams: {
|
|
36977
|
+
enumData: ['DE', 'EN', 'FR', 'IT'],
|
|
36978
|
+
multiple: false
|
|
36979
|
+
},
|
|
36980
|
+
defaultValue: 'DE'
|
|
36952
36981
|
}, {
|
|
36953
36982
|
field: 'hashValue',
|
|
36954
36983
|
headerName: 'backoffice.idmCatalog.detailinfos.label.hashValue',
|
|
@@ -36977,7 +37006,8 @@ function TableDetailInfos () {
|
|
|
36977
37006
|
}, {
|
|
36978
37007
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
36979
37008
|
field: '_id',
|
|
36980
|
-
editable: false
|
|
37009
|
+
editable: false,
|
|
37010
|
+
cellDataType: 'objectId'
|
|
36981
37011
|
}, {
|
|
36982
37012
|
headerName: 'backoffice.idmCatalog.detailinfos.label.mediaItemId',
|
|
36983
37013
|
field: 'mediaItemId'
|
|
@@ -37205,7 +37235,8 @@ function PartlistPos(_ref) {
|
|
|
37205
37235
|
}, {
|
|
37206
37236
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
37207
37237
|
field: '_id',
|
|
37208
|
-
editable: false
|
|
37238
|
+
editable: false,
|
|
37239
|
+
cellDataType: 'objectId'
|
|
37209
37240
|
}, {
|
|
37210
37241
|
field: 'organizationId',
|
|
37211
37242
|
editable: false,
|
|
@@ -37307,8 +37338,7 @@ function TablePartlists () {
|
|
|
37307
37338
|
required: true
|
|
37308
37339
|
}, {
|
|
37309
37340
|
field: 'comment',
|
|
37310
|
-
headerName: 'backoffice.idmCatalog.partlist.label.comment'
|
|
37311
|
-
required: true
|
|
37341
|
+
headerName: 'backoffice.idmCatalog.partlist.label.comment'
|
|
37312
37342
|
}, {
|
|
37313
37343
|
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
37314
37344
|
field: 'lastUpdatedDate',
|
|
@@ -37330,7 +37360,8 @@ function TablePartlists () {
|
|
|
37330
37360
|
}, {
|
|
37331
37361
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
37332
37362
|
field: '_id',
|
|
37333
|
-
editable: false
|
|
37363
|
+
editable: false,
|
|
37364
|
+
cellDataType: 'objectId'
|
|
37334
37365
|
}, {
|
|
37335
37366
|
field: 'organizationId',
|
|
37336
37367
|
editable: false,
|
|
@@ -37531,7 +37562,8 @@ function PriceFeatureGroupPercentageSurcharge(_ref) {
|
|
|
37531
37562
|
}, {
|
|
37532
37563
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
37533
37564
|
field: '_id',
|
|
37534
|
-
editable: false
|
|
37565
|
+
editable: false,
|
|
37566
|
+
cellDataType: 'objectId'
|
|
37535
37567
|
}, {
|
|
37536
37568
|
field: 'organizationId',
|
|
37537
37569
|
editable: false,
|
|
@@ -37711,7 +37743,8 @@ function PriceFeatureGroupFinishes(_ref) {
|
|
|
37711
37743
|
}, {
|
|
37712
37744
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
37713
37745
|
field: '_id',
|
|
37714
|
-
editable: false
|
|
37746
|
+
editable: false,
|
|
37747
|
+
cellDataType: 'objectId'
|
|
37715
37748
|
}, {
|
|
37716
37749
|
field: 'organizationId',
|
|
37717
37750
|
editable: false,
|
|
@@ -37857,7 +37890,8 @@ function TablePriceFeatureGroups () {
|
|
|
37857
37890
|
colDef: [{
|
|
37858
37891
|
field: 'priceFeatureGroupNo',
|
|
37859
37892
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupNo',
|
|
37860
|
-
required: true
|
|
37893
|
+
required: true,
|
|
37894
|
+
cellDataType: 'number'
|
|
37861
37895
|
}, {
|
|
37862
37896
|
headerName: 'backoffice.idmCatalog.pricefeaturegroups.label.priceFeatureGroupText',
|
|
37863
37897
|
marryChildren: true,
|
|
@@ -37909,7 +37943,8 @@ function TablePriceFeatureGroups () {
|
|
|
37909
37943
|
}, {
|
|
37910
37944
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
37911
37945
|
field: '_id',
|
|
37912
|
-
editable: false
|
|
37946
|
+
editable: false,
|
|
37947
|
+
cellDataType: 'objectId'
|
|
37913
37948
|
}, {
|
|
37914
37949
|
field: 'organizationId',
|
|
37915
37950
|
editable: false,
|
|
@@ -38172,23 +38207,23 @@ function CollectionMembers(_ref) {
|
|
|
38172
38207
|
apiInterface: apiInterface,
|
|
38173
38208
|
dateFormat: 'LL',
|
|
38174
38209
|
colDef: [{
|
|
38210
|
+
headerName: 'backoffice.idmEnricher.collections.label.active',
|
|
38211
|
+
field: 'active',
|
|
38212
|
+
cellDataType: 'boolean',
|
|
38213
|
+
editable: true,
|
|
38214
|
+
defaultValue: true
|
|
38215
|
+
}, {
|
|
38175
38216
|
field: 'enricherPackageId',
|
|
38176
38217
|
headerName: 'backoffice.idmCatalogEditor.collection.label.enricherPackage',
|
|
38177
38218
|
cellDataType: 'lookup',
|
|
38178
38219
|
editable: true,
|
|
38179
38220
|
customParams: {
|
|
38180
38221
|
nameField: 'enricherPackageName',
|
|
38181
|
-
filterCellType: 'string',
|
|
38182
|
-
displayLabelTemplate: '${name} (${value})',
|
|
38183
38222
|
apiInterface: {
|
|
38184
38223
|
read: apiConfig.enricherService + '/packages?organizationId=${organizationId}'
|
|
38185
38224
|
},
|
|
38186
38225
|
lookupValue: 'name',
|
|
38187
38226
|
lookupKey: '_id',
|
|
38188
|
-
lookupKeyFilterType: {
|
|
38189
|
-
type: 'equals',
|
|
38190
|
-
filterType: 'string'
|
|
38191
|
-
},
|
|
38192
38227
|
multiple: false,
|
|
38193
38228
|
translated: false
|
|
38194
38229
|
},
|
|
@@ -38198,7 +38233,10 @@ function CollectionMembers(_ref) {
|
|
|
38198
38233
|
field: 'serieNos',
|
|
38199
38234
|
headerName: 'backoffice.idmCatalogEditor.collectionmembers.label.serieNos',
|
|
38200
38235
|
cellDataType: 'lookup',
|
|
38201
|
-
editable:
|
|
38236
|
+
editable: function editable(_ref2) {
|
|
38237
|
+
var data = _ref2.data;
|
|
38238
|
+
return data.enricherPackageId;
|
|
38239
|
+
},
|
|
38202
38240
|
customParams: {
|
|
38203
38241
|
nameField: 'serieNosDisplayTexts',
|
|
38204
38242
|
filterCellType: 'number',
|
|
@@ -38220,7 +38258,8 @@ function CollectionMembers(_ref) {
|
|
|
38220
38258
|
}, {
|
|
38221
38259
|
headerName: 'backoffice.idmCatalog.general.label._id',
|
|
38222
38260
|
field: '_id',
|
|
38223
|
-
editable: false
|
|
38261
|
+
editable: false,
|
|
38262
|
+
cellDataType: 'objectId'
|
|
38224
38263
|
}]
|
|
38225
38264
|
};
|
|
38226
38265
|
}, [apiInterface]);
|
|
@@ -38321,6 +38360,12 @@ function TableCollections () {
|
|
|
38321
38360
|
dateFormat: 'DD.MM.YYYY, HH:mm:ss',
|
|
38322
38361
|
floatingFilter: true,
|
|
38323
38362
|
colDef: [{
|
|
38363
|
+
headerName: 'backoffice.idmEnricher.collections.label.active',
|
|
38364
|
+
field: 'active',
|
|
38365
|
+
cellDataType: 'boolean',
|
|
38366
|
+
editable: true,
|
|
38367
|
+
defaultValue: true
|
|
38368
|
+
}, {
|
|
38324
38369
|
headerName: 'backoffice.idmEnricher.collections.label.name',
|
|
38325
38370
|
marryChildren: true,
|
|
38326
38371
|
children: [{
|