@crystaldesign/diva-backoffice 24.14.0-beta.12 → 24.14.0-beta.14

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.
@@ -32223,7 +32223,7 @@ function PrefilterSelector (_ref) {
32223
32223
  value: '${_id}'
32224
32224
  },
32225
32225
  autoSelectFirst: true,
32226
- title: t('backoffice.menu.items.label.IDMCatalogEditorTable.serie'),
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,26 @@ 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
+ })
32293
+ }, {
32294
+ key: 'featureclasses',
32295
+ style: {
32296
+ margin: 0
32297
+ },
32298
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
32299
+ label: /*#__PURE__*/jsx(Link, {
32300
+ to: 'catalogs/idmeditor/catalogs/' + catalogId + '/featureclasses' + (searchParams ? '?' + searchParams.toString() : ''),
32301
+ children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses')
32302
+ })
32283
32303
  }];
32284
32304
  }, [catalogId]);
32285
32305
  if (!catalogId) throw new Error('catalogId is required');
@@ -32983,6 +33003,289 @@ function TableFeatures () {
32983
33003
  });
32984
33004
  }
32985
33005
 
33006
+ function TableOptions () {
33007
+ var _useTranslation = useTranslation(),
33008
+ t = _useTranslation.t;
33009
+ var _useModule = useModule(['options']),
33010
+ catalogId = _useModule.catalogId,
33011
+ updateNavigation = _useModule.updateNavigation,
33012
+ apiConfig = _useModule.apiConfig,
33013
+ organizationId = _useModule.organizationId;
33014
+ var _React$useState = React.useState(),
33015
+ _React$useState2 = _slicedToArray(_React$useState, 2),
33016
+ selectedFeature = _React$useState2[0],
33017
+ setSelectedFeature = _React$useState2[1];
33018
+ return /*#__PURE__*/jsxs(Fragment, {
33019
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
33020
+ title: /*#__PURE__*/jsxs("div", {
33021
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableOptions'), /*#__PURE__*/jsxs(Space$1, {
33022
+ style: {
33023
+ "float": 'right'
33024
+ },
33025
+ children: [/*#__PURE__*/jsx(CatalogSelector, {
33026
+ selectedCatalog: catalogId,
33027
+ setSelectedCatalog: function setSelectedCatalog(id) {
33028
+ return updateNavigation(id);
33029
+ },
33030
+ idmService: apiConfig.idmService
33031
+ }), /*#__PURE__*/jsx(PrefilterSelector, {
33032
+ type: 'option',
33033
+ catalogId: catalogId,
33034
+ selectedFeature: selectedFeature,
33035
+ setSelectedFeature: setSelectedFeature,
33036
+ idmService: apiConfig.idmService
33037
+ })]
33038
+ })]
33039
+ })
33040
+ }), selectedFeature && /*#__PURE__*/jsx(Spreadsheet, {
33041
+ gridId: 'crud-grid_options',
33042
+ applicationData: {
33043
+ organizationId: organizationId,
33044
+ catalogId: catalogId
33045
+ },
33046
+ configuration: {
33047
+ type: 'dotnetSSM',
33048
+ idCol: 'optionKey',
33049
+ apiInterface: {
33050
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
33051
+ create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options',
33052
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
33053
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}',
33054
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/' + (selectedFeature === null || selectedFeature === void 0 ? void 0 : selectedFeature._id) + '/options/${optionKey}'
33055
+ },
33056
+ dateFormat: 'LL',
33057
+ floatingFilter: true,
33058
+ colDef: [{
33059
+ field: 'optionKey',
33060
+ required: true,
33061
+ unique: true
33062
+ }, {
33063
+ headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
33064
+ field: 'sequenceNo',
33065
+ cellDataType: 'number'
33066
+ }, {
33067
+ headerName: 'backoffice.idmCatalog.common.label.texts',
33068
+ children: [{
33069
+ headerName: 'backoffice.idmCatalog.options.label.optionText',
33070
+ marryChildren: true,
33071
+ children: [{
33072
+ field: 'optionText.DE',
33073
+ headerName: 'backoffice.idmEnricher.general.label.DE',
33074
+ isDictionary: true,
33075
+ required: true
33076
+ }, {
33077
+ field: 'optionText.EN',
33078
+ headerName: 'backoffice.idmEnricher.general.label.EN',
33079
+ isDictionary: true
33080
+ }, {
33081
+ field: 'optionText.FR',
33082
+ headerName: 'backoffice.idmEnricher.general.label.FR',
33083
+ isDictionary: true
33084
+ }, {
33085
+ field: 'optionText.IT',
33086
+ headerName: 'backoffice.idmEnricher.general.label.IT',
33087
+ isDictionary: true
33088
+ }]
33089
+ }, {
33090
+ headerName: 'backoffice.idmCatalog.options.label.optionCommentText',
33091
+ marryChildren: true,
33092
+ children: [{
33093
+ field: 'optionCommentText.DE',
33094
+ headerName: 'backoffice.idmEnricher.general.label.DE',
33095
+ isDictionary: true
33096
+ }, {
33097
+ field: 'optionCommentText.EN',
33098
+ headerName: 'backoffice.idmEnricher.general.label.EN',
33099
+ isDictionary: true
33100
+ }, {
33101
+ field: 'optionCommentText.FR',
33102
+ headerName: 'backoffice.idmEnricher.general.label.FR',
33103
+ isDictionary: true
33104
+ }, {
33105
+ field: 'optionCommentText.IT',
33106
+ headerName: 'backoffice.idmEnricher.general.label.IT',
33107
+ isDictionary: true
33108
+ }]
33109
+ }, {
33110
+ headerName: 'backoffice.idmCatalog.options.label.optionFreeText',
33111
+ field: 'optionFreeText',
33112
+ cellDataType: 'boolean'
33113
+ }]
33114
+ }, {
33115
+ headerName: 'backoffice.idmCatalog.items.label.validation',
33116
+ children: [{
33117
+ headerName: 'backoffice.idmCatalog.general.label.validFromDate',
33118
+ field: 'validFromDate',
33119
+ cellDataType: 'dateString'
33120
+ }, {
33121
+ headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
33122
+ field: 'validUntilDate',
33123
+ cellDataType: 'dateString'
33124
+ }]
33125
+ }, {
33126
+ headerName: 'backoffice.idmCatalog.options.label.material',
33127
+ children: [{
33128
+ headerName: 'backoffice.idmCatalog.options.label.materialNo',
33129
+ field: 'materialNo'
33130
+ }, {
33131
+ headerName: 'backoffice.idmCatalog.options.label.materialColorR',
33132
+ field: 'materialColorR',
33133
+ cellDataType: 'number'
33134
+ }, {
33135
+ headerName: 'backoffice.idmCatalog.options.label.materialColorG',
33136
+ field: 'materialColorG',
33137
+ cellDataType: 'number'
33138
+ }, {
33139
+ headerName: 'backoffice.idmCatalog.options.label.materialColorB',
33140
+ field: 'materialColorR',
33141
+ cellDataType: 'number'
33142
+ }]
33143
+ }, {
33144
+ headerName: 'backoffice.idmCatalog.options.label.measurement',
33145
+ children: [{
33146
+ headerName: 'backoffice.idmCatalog.options.label.measureNo',
33147
+ field: 'measureNo'
33148
+ }, {
33149
+ headerName: 'backoffice.idmCatalog.options.label.measureValue',
33150
+ field: 'measureValue',
33151
+ cellDataType: 'number'
33152
+ }, {
33153
+ headerName: 'backoffice.idmCatalog.options.label.measureUnit',
33154
+ field: 'measureUnit'
33155
+ }]
33156
+ }, {
33157
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
33158
+ field: 'lastUpdatedDate',
33159
+ cellDataType: 'dateString',
33160
+ editable: false
33161
+ }, {
33162
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
33163
+ field: 'lastUpdatedByDisplayText',
33164
+ editable: false
33165
+ }, {
33166
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
33167
+ field: 'createdDate',
33168
+ cellDataType: 'dateString',
33169
+ editable: false
33170
+ }, {
33171
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
33172
+ field: 'createdByDisplayText',
33173
+ editable: false
33174
+ }]
33175
+ }
33176
+ })]
33177
+ });
33178
+ }
33179
+
33180
+ function TableFeatureClasses () {
33181
+ var _useTranslation = useTranslation(),
33182
+ t = _useTranslation.t;
33183
+ var _useModule = useModule(['featureclasses']),
33184
+ catalogId = _useModule.catalogId,
33185
+ organizationId = _useModule.organizationId,
33186
+ updateNavigation = _useModule.updateNavigation,
33187
+ apiConfig = _useModule.apiConfig;
33188
+ var applicationData = useMemo(function () {
33189
+ return {
33190
+ catalogId: catalogId,
33191
+ organizationId: organizationId
33192
+ };
33193
+ }, [catalogId]);
33194
+ return /*#__PURE__*/jsxs(Fragment, {
33195
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
33196
+ title: /*#__PURE__*/jsxs("div", {
33197
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatureClasses'), /*#__PURE__*/jsx(Space$1, {
33198
+ style: {
33199
+ "float": 'right'
33200
+ },
33201
+ children: /*#__PURE__*/jsx(CatalogSelector, {
33202
+ selectedCatalog: catalogId,
33203
+ setSelectedCatalog: function setSelectedCatalog(id) {
33204
+ return updateNavigation(id);
33205
+ },
33206
+ idmService: apiConfig.idmService
33207
+ })
33208
+ })]
33209
+ })
33210
+ }), /*#__PURE__*/jsx(Spreadsheet, {
33211
+ gridId: 'crud-grid_featureclasses',
33212
+ applicationData: applicationData,
33213
+ configuration: {
33214
+ type: 'dotnetSSM',
33215
+ apiInterface: {
33216
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses',
33217
+ create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses',
33218
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}',
33219
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}',
33220
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/featureclasses/${_id}'
33221
+ },
33222
+ dateFormat: 'LL',
33223
+ colDef: [{
33224
+ field: 'featureClassNo',
33225
+ headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassNo',
33226
+ required: true
33227
+ }, {
33228
+ headerName: 'backoffice.idmCatalog.featureclasses.label.featureClassName',
33229
+ marryChildren: true,
33230
+ children: [{
33231
+ field: 'featureClassName.DE',
33232
+ headerName: 'backoffice.idmEnricher.general.label.DE',
33233
+ isDictionary: true
33234
+ }, {
33235
+ field: 'featureClassName.EN',
33236
+ headerName: 'backoffice.idmEnricher.general.label.EN',
33237
+ isDictionary: true
33238
+ }, {
33239
+ field: 'featureClassName.FR',
33240
+ headerName: 'backoffice.idmEnricher.general.label.FR',
33241
+ isDictionary: true
33242
+ }, {
33243
+ field: 'featureClassName.IT',
33244
+ headerName: 'backoffice.idmEnricher.general.label.IT',
33245
+ isDictionary: true
33246
+ }]
33247
+ }, {
33248
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
33249
+ field: 'lastUpdatedDate',
33250
+ cellDataType: 'dateString',
33251
+ editable: false
33252
+ }, {
33253
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
33254
+ field: 'createdDate',
33255
+ cellDataType: 'dateString',
33256
+ editable: false
33257
+ }, {
33258
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
33259
+ field: 'createdByDisplayText',
33260
+ editable: false
33261
+ }, {
33262
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
33263
+ field: 'lastUpdatedByDisplayText',
33264
+ editable: false
33265
+ }, {
33266
+ headerName: 'backoffice.idmCatalog.general.label._id',
33267
+ field: '_id',
33268
+ editable: false
33269
+ }, {
33270
+ field: 'organizationId',
33271
+ editable: false,
33272
+ hide: true,
33273
+ lockVisible: true,
33274
+ suppressColumnsToolPanel: true,
33275
+ defaultValue: '${organizationId}'
33276
+ }, {
33277
+ field: 'catalogId',
33278
+ editable: false,
33279
+ hide: true,
33280
+ lockVisible: true,
33281
+ suppressColumnsToolPanel: true,
33282
+ defaultValue: '${catalogId}'
33283
+ }]
33284
+ }
33285
+ })]
33286
+ });
33287
+ }
33288
+
32986
33289
  function IDMCatalogEditor (_ref) {
32987
33290
  _objectDestructuringEmpty(_ref);
32988
33291
  return /*#__PURE__*/jsx("div", {
@@ -33009,6 +33312,12 @@ function Content$1() {
33009
33312
  }), /*#__PURE__*/jsx(Route, {
33010
33313
  path: ":catalogId/features",
33011
33314
  element: /*#__PURE__*/jsx(TableFeatures, {})
33315
+ }), /*#__PURE__*/jsx(Route, {
33316
+ path: ":catalogId/options",
33317
+ element: /*#__PURE__*/jsx(TableOptions, {})
33318
+ }), /*#__PURE__*/jsx(Route, {
33319
+ path: ":catalogId/featureclasses",
33320
+ element: /*#__PURE__*/jsx(TableFeatureClasses, {})
33012
33321
  })]
33013
33322
  });
33014
33323
  }
@@ -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;AAKxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
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;AAOxD,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,3 @@
1
+ import React from 'react';
2
+ export default function (): React.JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCAuHb"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export default function (): React.JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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;uCA6C5B,MAAM,YAAW,MAAM,EAAE;;;;EAmC7C"}
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;uCAiE5B,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.12",
3
+ "version": "24.14.0-beta.14",
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.12",
19
- "@crystaldesign/content-item": "24.14.0-beta.12",
20
- "@crystaldesign/diva-core": "24.14.0-beta.12",
21
- "@crystaldesign/diva-utils": "24.14.0-beta.12",
22
- "@crystaldesign/media-upload": "24.14.0-beta.12",
23
- "@crystaldesign/rtf-editor": "24.14.0-beta.12",
24
- "@crystaldesign/spreadsheet": "24.14.0-beta.12",
18
+ "@crystaldesign/content-box": "24.14.0-beta.14",
19
+ "@crystaldesign/content-item": "24.14.0-beta.14",
20
+ "@crystaldesign/diva-core": "24.14.0-beta.14",
21
+ "@crystaldesign/diva-utils": "24.14.0-beta.14",
22
+ "@crystaldesign/media-upload": "24.14.0-beta.14",
23
+ "@crystaldesign/rtf-editor": "24.14.0-beta.14",
24
+ "@crystaldesign/spreadsheet": "24.14.0-beta.14",
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": "906d32d2f3bec659ab6b42a2491d81e047ddc3ba"
54
+ "gitHead": "fa262d4761941d5f51a2bcb78022842553d31142"
55
55
  }