@crystaldesign/diva-backoffice 24.14.0-beta.12 → 24.14.0-beta.13
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 +188 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/useModule.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -32223,7 +32223,7 @@ function PrefilterSelector (_ref) {
|
|
|
32223
32223
|
value: '${_id}'
|
|
32224
32224
|
},
|
|
32225
32225
|
autoSelectFirst: true,
|
|
32226
|
-
title: t('backoffice.menu.items.label.
|
|
32226
|
+
title: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'),
|
|
32227
32227
|
value: selectedFeature,
|
|
32228
32228
|
onChange: function onChange(value) {
|
|
32229
32229
|
return setSelectedFeature ? setSelectedFeature(value) : null;
|
|
@@ -32280,6 +32280,16 @@ function useModule (currentModules) {
|
|
|
32280
32280
|
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/features' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32281
32281
|
children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
|
|
32282
32282
|
})
|
|
32283
|
+
}, {
|
|
32284
|
+
key: 'options',
|
|
32285
|
+
style: {
|
|
32286
|
+
margin: 0
|
|
32287
|
+
},
|
|
32288
|
+
icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
|
|
32289
|
+
label: /*#__PURE__*/jsx(Link, {
|
|
32290
|
+
to: 'catalogs/idmeditor/catalogs/' + catalogId + '/options' + (searchParams ? '?' + searchParams.toString() : ''),
|
|
32291
|
+
children: t('backoffice.menu.items.label.IDMCatalogEditorTableOptions')
|
|
32292
|
+
})
|
|
32283
32293
|
}];
|
|
32284
32294
|
}, [catalogId]);
|
|
32285
32295
|
if (!catalogId) throw new Error('catalogId is required');
|
|
@@ -32983,6 +32993,180 @@ function TableFeatures () {
|
|
|
32983
32993
|
});
|
|
32984
32994
|
}
|
|
32985
32995
|
|
|
32996
|
+
function TableOptions () {
|
|
32997
|
+
var _useTranslation = useTranslation(),
|
|
32998
|
+
t = _useTranslation.t;
|
|
32999
|
+
var _useModule = useModule(['options']),
|
|
33000
|
+
catalogId = _useModule.catalogId,
|
|
33001
|
+
updateNavigation = _useModule.updateNavigation,
|
|
33002
|
+
apiConfig = _useModule.apiConfig,
|
|
33003
|
+
organizationId = _useModule.organizationId;
|
|
33004
|
+
var _React$useState = React.useState(),
|
|
33005
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33006
|
+
selectedFeature = _React$useState2[0],
|
|
33007
|
+
setSelectedFeature = _React$useState2[1];
|
|
33008
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
33009
|
+
children: [/*#__PURE__*/jsx(Descriptions$1, {
|
|
33010
|
+
title: /*#__PURE__*/jsxs("div", {
|
|
33011
|
+
children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
|
|
33012
|
+
style: {
|
|
33013
|
+
"float": 'right'
|
|
33014
|
+
},
|
|
33015
|
+
children: [/*#__PURE__*/jsx(CatalogSelector, {
|
|
33016
|
+
selectedCatalog: catalogId,
|
|
33017
|
+
setSelectedCatalog: function setSelectedCatalog(id) {
|
|
33018
|
+
return updateNavigation(id);
|
|
33019
|
+
},
|
|
33020
|
+
idmService: apiConfig.idmService
|
|
33021
|
+
}), /*#__PURE__*/jsx(PrefilterSelector, {
|
|
33022
|
+
type: 'option',
|
|
33023
|
+
catalogId: catalogId,
|
|
33024
|
+
selectedFeature: selectedFeature,
|
|
33025
|
+
setSelectedFeature: setSelectedFeature,
|
|
33026
|
+
idmService: apiConfig.idmService
|
|
33027
|
+
})]
|
|
33028
|
+
})]
|
|
33029
|
+
})
|
|
33030
|
+
}), selectedFeature && /*#__PURE__*/jsx(Spreadsheet, {
|
|
33031
|
+
gridId: 'crud-grid_options',
|
|
33032
|
+
applicationData: {
|
|
33033
|
+
organizationId: organizationId,
|
|
33034
|
+
catalogId: catalogId
|
|
33035
|
+
},
|
|
33036
|
+
configuration: {
|
|
33037
|
+
type: 'dotnetSSM',
|
|
33038
|
+
idCol: 'optionKey',
|
|
33039
|
+
apiInterface: {
|
|
33040
|
+
read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33041
|
+
create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
|
|
33042
|
+
restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33043
|
+
"delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
|
|
33044
|
+
update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}'
|
|
33045
|
+
},
|
|
33046
|
+
dateFormat: 'LL',
|
|
33047
|
+
floatingFilter: true,
|
|
33048
|
+
colDef: [{
|
|
33049
|
+
field: 'optionKey',
|
|
33050
|
+
required: true,
|
|
33051
|
+
unique: true
|
|
33052
|
+
}, {
|
|
33053
|
+
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
33054
|
+
field: 'sequenceNo',
|
|
33055
|
+
cellDataType: 'number'
|
|
33056
|
+
}, {
|
|
33057
|
+
headerName: 'backoffice.idmCatalog.common.label.texts',
|
|
33058
|
+
children: [{
|
|
33059
|
+
headerName: 'backoffice.idmCatalog.options.label.optionText',
|
|
33060
|
+
marryChildren: true,
|
|
33061
|
+
children: [{
|
|
33062
|
+
field: 'optionText.DE',
|
|
33063
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33064
|
+
isDictionary: true,
|
|
33065
|
+
required: true
|
|
33066
|
+
}, {
|
|
33067
|
+
field: 'optionText.EN',
|
|
33068
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33069
|
+
isDictionary: true
|
|
33070
|
+
}, {
|
|
33071
|
+
field: 'optionText.FR',
|
|
33072
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33073
|
+
isDictionary: true
|
|
33074
|
+
}, {
|
|
33075
|
+
field: 'optionText.IT',
|
|
33076
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33077
|
+
isDictionary: true
|
|
33078
|
+
}]
|
|
33079
|
+
}, {
|
|
33080
|
+
headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
|
|
33081
|
+
marryChildren: true,
|
|
33082
|
+
children: [{
|
|
33083
|
+
field: 'optionCommentText.DE',
|
|
33084
|
+
headerName: 'backoffice.idmEnricher.general.label.DE',
|
|
33085
|
+
isDictionary: true
|
|
33086
|
+
}, {
|
|
33087
|
+
field: 'optionCommentText.EN',
|
|
33088
|
+
headerName: 'backoffice.idmEnricher.general.label.EN',
|
|
33089
|
+
isDictionary: true
|
|
33090
|
+
}, {
|
|
33091
|
+
field: 'optionCommentText.FR',
|
|
33092
|
+
headerName: 'backoffice.idmEnricher.general.label.FR',
|
|
33093
|
+
isDictionary: true
|
|
33094
|
+
}, {
|
|
33095
|
+
field: 'optionCommentText.IT',
|
|
33096
|
+
headerName: 'backoffice.idmEnricher.general.label.IT',
|
|
33097
|
+
isDictionary: true
|
|
33098
|
+
}]
|
|
33099
|
+
}, {
|
|
33100
|
+
headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
|
|
33101
|
+
field: 'optionFreeText',
|
|
33102
|
+
cellDataType: 'boolean'
|
|
33103
|
+
}]
|
|
33104
|
+
}, {
|
|
33105
|
+
headerName: 'backoffice.idmCatalog.items.label.validation',
|
|
33106
|
+
children: [{
|
|
33107
|
+
headerName: 'backoffice.idmCatalog.general.label.validFromDate',
|
|
33108
|
+
field: 'validFromDate',
|
|
33109
|
+
cellDataType: 'dateString'
|
|
33110
|
+
}, {
|
|
33111
|
+
headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
|
|
33112
|
+
field: 'validUntilDate',
|
|
33113
|
+
cellDataType: 'dateString'
|
|
33114
|
+
}]
|
|
33115
|
+
}, {
|
|
33116
|
+
headerName: 'backoffice.idmCatalog.options.label.material',
|
|
33117
|
+
children: [{
|
|
33118
|
+
headerName: 'backoffice.idmCatalog.options.label.materialNo',
|
|
33119
|
+
field: 'materialNo'
|
|
33120
|
+
}, {
|
|
33121
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorR',
|
|
33122
|
+
field: 'materialColorR',
|
|
33123
|
+
cellDataType: 'number'
|
|
33124
|
+
}, {
|
|
33125
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorG',
|
|
33126
|
+
field: 'materialColorG',
|
|
33127
|
+
cellDataType: 'number'
|
|
33128
|
+
}, {
|
|
33129
|
+
headerName: 'backoffice.idmCatalog.options.label.materialColorB',
|
|
33130
|
+
field: 'materialColorR',
|
|
33131
|
+
cellDataType: 'number'
|
|
33132
|
+
}]
|
|
33133
|
+
}, {
|
|
33134
|
+
headerName: 'backoffice.idmCatalog.options.label.measurement',
|
|
33135
|
+
children: [{
|
|
33136
|
+
headerName: 'backoffice.idmCatalog.options.label.measureNo',
|
|
33137
|
+
field: 'measureNo'
|
|
33138
|
+
}, {
|
|
33139
|
+
headerName: 'backoffice.idmCatalog.options.label.measureValue',
|
|
33140
|
+
field: 'measureValue',
|
|
33141
|
+
cellDataType: 'number'
|
|
33142
|
+
}, {
|
|
33143
|
+
headerName: 'backoffice.idmCatalog.options.label.measureUnit',
|
|
33144
|
+
field: 'measureUnit'
|
|
33145
|
+
}]
|
|
33146
|
+
}, {
|
|
33147
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
|
|
33148
|
+
field: 'lastUpdatedDate',
|
|
33149
|
+
cellDataType: 'dateString',
|
|
33150
|
+
editable: false
|
|
33151
|
+
}, {
|
|
33152
|
+
headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
|
|
33153
|
+
field: 'lastUpdatedByDisplayText',
|
|
33154
|
+
editable: false
|
|
33155
|
+
}, {
|
|
33156
|
+
headerName: 'backoffice.idmCatalog.general.label.createdDate',
|
|
33157
|
+
field: 'createdDate',
|
|
33158
|
+
cellDataType: 'dateString',
|
|
33159
|
+
editable: false
|
|
33160
|
+
}, {
|
|
33161
|
+
headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
|
|
33162
|
+
field: 'createdByDisplayText',
|
|
33163
|
+
editable: false
|
|
33164
|
+
}]
|
|
33165
|
+
}
|
|
33166
|
+
})]
|
|
33167
|
+
});
|
|
33168
|
+
}
|
|
33169
|
+
|
|
32986
33170
|
function IDMCatalogEditor (_ref) {
|
|
32987
33171
|
_objectDestructuringEmpty(_ref);
|
|
32988
33172
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -33009,6 +33193,9 @@ function Content$1() {
|
|
|
33009
33193
|
}), /*#__PURE__*/jsx(Route, {
|
|
33010
33194
|
path: ":catalogId/features",
|
|
33011
33195
|
element: /*#__PURE__*/jsx(TableFeatures, {})
|
|
33196
|
+
}), /*#__PURE__*/jsx(Route, {
|
|
33197
|
+
path: ":catalogId/options",
|
|
33198
|
+
element: /*#__PURE__*/jsx(TableOptions, {})
|
|
33012
33199
|
})]
|
|
33013
33200
|
});
|
|
33014
33201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAMxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,CAAC,OAAO,gCA0Mb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/useModule.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/useModule.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;uCAuD5B,MAAM,YAAW,MAAM,EAAE;;;;EAmC7C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.14.0-beta.
|
|
3
|
+
"version": "24.14.0-beta.13",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "5.4.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "24.14.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "24.14.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "24.14.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "24.14.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "24.14.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "24.14.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "24.14.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "24.14.0-beta.13",
|
|
19
|
+
"@crystaldesign/content-item": "24.14.0-beta.13",
|
|
20
|
+
"@crystaldesign/diva-core": "24.14.0-beta.13",
|
|
21
|
+
"@crystaldesign/diva-utils": "24.14.0-beta.13",
|
|
22
|
+
"@crystaldesign/media-upload": "24.14.0-beta.13",
|
|
23
|
+
"@crystaldesign/rtf-editor": "24.14.0-beta.13",
|
|
24
|
+
"@crystaldesign/spreadsheet": "24.14.0-beta.13",
|
|
25
25
|
"@google/model-viewer": "3.5.0",
|
|
26
26
|
"ag-charts-community": "^10.1.0",
|
|
27
27
|
"ag-charts-react": "^10.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
},
|
|
52
52
|
"module": "build/esm/index.js",
|
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "a640f548dbcf0d4cf3283ac2734eb46c5cc0da54"
|
|
55
55
|
}
|