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

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.
@@ -32270,6 +32270,16 @@ function useModule (currentModules) {
32270
32270
  to: 'catalogs/idmeditor/catalogs/' + catalogId + '/items' + (searchParams ? '?' + searchParams.toString() : ''),
32271
32271
  children: t('backoffice.menu.items.label.IDMCatalogEditorTableItems')
32272
32272
  })
32273
+ }, {
32274
+ key: 'features',
32275
+ style: {
32276
+ margin: 0
32277
+ },
32278
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
32279
+ label: /*#__PURE__*/jsx(Link, {
32280
+ to: 'catalogs/idmeditor/catalogs/' + catalogId + '/features' + (searchParams ? '?' + searchParams.toString() : ''),
32281
+ children: t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures')
32282
+ })
32273
32283
  }];
32274
32284
  }, [catalogId]);
32275
32285
  if (!catalogId) throw new Error('catalogId is required');
@@ -32823,6 +32833,156 @@ function TableSeries () {
32823
32833
  });
32824
32834
  }
32825
32835
 
32836
+ function TableFeatures () {
32837
+ var _useTranslation = useTranslation(),
32838
+ t = _useTranslation.t;
32839
+ var _useModule = useModule(['features']),
32840
+ catalogId = _useModule.catalogId,
32841
+ organizationId = _useModule.organizationId,
32842
+ updateNavigation = _useModule.updateNavigation,
32843
+ apiConfig = _useModule.apiConfig;
32844
+ var headerPosVariationTypeDic = {
32845
+ I: t('backoffice.idmCatalog.features.label.vt.I'),
32846
+ K: t('backoffice.idmCatalog.features.label.vt.K'),
32847
+ P: t('backoffice.idmCatalog.features.label.vt.P')
32848
+ };
32849
+ var featureTDic = {
32850
+ M: t('backoffice.idmCatalog.features.label.featureTDic.M'),
32851
+ C: t('backoffice.idmCatalog.features.label.featureTDic.C'),
32852
+ O: t('backoffice.idmCatalog.features.label.featureTDic.O')
32853
+ };
32854
+ var applicationData = useMemo(function () {
32855
+ return {
32856
+ catalogId: catalogId,
32857
+ organizationId: organizationId
32858
+ };
32859
+ }, [catalogId]);
32860
+ return /*#__PURE__*/jsxs(Fragment, {
32861
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
32862
+ title: /*#__PURE__*/jsxs("div", {
32863
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableFeatures'), /*#__PURE__*/jsx(Space$1, {
32864
+ style: {
32865
+ "float": 'right'
32866
+ },
32867
+ children: /*#__PURE__*/jsx(CatalogSelector, {
32868
+ selectedCatalog: catalogId,
32869
+ setSelectedCatalog: function setSelectedCatalog(id) {
32870
+ return updateNavigation(id);
32871
+ },
32872
+ idmService: apiConfig.idmService
32873
+ })
32874
+ })]
32875
+ })
32876
+ }), /*#__PURE__*/jsx(Spreadsheet, {
32877
+ gridId: 'crud-grid_features',
32878
+ applicationData: applicationData,
32879
+ configuration: {
32880
+ type: 'dotnetSSM',
32881
+ apiInterface: {
32882
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
32883
+ create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features',
32884
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
32885
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}',
32886
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/features/${_id}'
32887
+ },
32888
+ dateFormat: 'LL',
32889
+ colDef: [{
32890
+ field: 'featureNo',
32891
+ headerName: 'backoffice.idmCatalog.features.label.featureNo',
32892
+ required: true
32893
+ }, {
32894
+ headerName: 'backoffice.idmCatalog.features.label.featureText',
32895
+ marryChildren: true,
32896
+ children: [{
32897
+ field: 'featureText.DE',
32898
+ headerName: 'backoffice.idmEnricher.general.label.DE',
32899
+ isDictionary: true,
32900
+ required: true
32901
+ }, {
32902
+ field: 'featureText.EN',
32903
+ headerName: 'backoffice.idmEnricher.general.label.EN',
32904
+ isDictionary: true
32905
+ }, {
32906
+ field: 'featureText.FR',
32907
+ headerName: 'backoffice.idmEnricher.general.label.FR',
32908
+ isDictionary: true
32909
+ }, {
32910
+ field: 'featureText.IT',
32911
+ headerName: 'backoffice.idmEnricher.general.label.IT',
32912
+ isDictionary: true
32913
+ }]
32914
+ }, {
32915
+ field: 'sequenceNo',
32916
+ headerName: 'backoffice.idmCatalog.features.label.sequenceNo',
32917
+ required: true,
32918
+ cellDataType: 'number'
32919
+ }, {
32920
+ field: 'headerPosVariationType',
32921
+ headerName: 'backoffice.idmCatalog.features.label.headerPosVariationType',
32922
+ required: true,
32923
+ cellDataType: 'enum',
32924
+ customParams: {
32925
+ displayTexts: headerPosVariationTypeDic,
32926
+ values: Object.keys(headerPosVariationTypeDic),
32927
+ displayLabelTemplate: '${name} (${value})'
32928
+ }
32929
+ }, {
32930
+ field: 'featureT',
32931
+ headerName: 'backoffice.idmCatalog.features.label.featureT',
32932
+ cellDataType: 'enum',
32933
+ customParams: {
32934
+ displayTexts: featureTDic,
32935
+ values: Object.keys(featureTDic),
32936
+ displayLabelTemplate: '${name} (${value})'
32937
+ }
32938
+ }, {
32939
+ field: 'measureUnit',
32940
+ headerName: 'backoffice.idmCatalog.features.label.measureUnit'
32941
+ }, {
32942
+ field: 'measureParameter',
32943
+ headerName: 'backoffice.idmCatalog.features.label.measureParameter'
32944
+ }, {
32945
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedDate',
32946
+ field: 'lastUpdatedDate',
32947
+ cellDataType: 'dateString',
32948
+ editable: false
32949
+ }, {
32950
+ headerName: 'backoffice.idmCatalog.general.label.createdDate',
32951
+ field: 'createdDate',
32952
+ cellDataType: 'dateString',
32953
+ editable: false
32954
+ }, {
32955
+ headerName: 'backoffice.idmCatalog.general.label.createdByDisplayText',
32956
+ field: 'createdByDisplayText',
32957
+ editable: false
32958
+ }, {
32959
+ headerName: 'backoffice.idmCatalog.general.label.lastUpdatedByDisplayText',
32960
+ field: 'lastUpdatedByDisplayText',
32961
+ editable: false
32962
+ }, {
32963
+ headerName: 'backoffice.idmCatalog.general.label._id',
32964
+ field: '_id',
32965
+ editable: false
32966
+ }, {
32967
+ field: 'organizationId',
32968
+ editable: false,
32969
+ hide: true,
32970
+ lockVisible: true,
32971
+ suppressColumnsToolPanel: true,
32972
+ defaultValue: '${organizationId}'
32973
+ }, {
32974
+ field: 'catalogId',
32975
+ editable: false,
32976
+ hide: true,
32977
+ lockVisible: true,
32978
+ suppressColumnsToolPanel: true,
32979
+ defaultValue: '${catalogId}'
32980
+ }]
32981
+ }
32982
+ })]
32983
+ });
32984
+ }
32985
+
32826
32986
  function IDMCatalogEditor (_ref) {
32827
32987
  _objectDestructuringEmpty(_ref);
32828
32988
  return /*#__PURE__*/jsx("div", {
@@ -32846,6 +33006,9 @@ function Content$1() {
32846
33006
  }), /*#__PURE__*/jsx(Route, {
32847
33007
  path: ":catalogId/items",
32848
33008
  element: /*#__PURE__*/jsx(TableItems, {})
33009
+ }), /*#__PURE__*/jsx(Route, {
33010
+ path: ":catalogId/features",
33011
+ element: /*#__PURE__*/jsx(TableFeatures, {})
32849
33012
  })]
32850
33013
  });
32851
33014
  }
@@ -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;AAIxD,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;AAKxD,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/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCAsKb"}
@@ -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;uCAmC5B,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;uCA6C5B,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.11",
3
+ "version": "24.14.0-beta.12",
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.11",
19
- "@crystaldesign/content-item": "24.14.0-beta.11",
20
- "@crystaldesign/diva-core": "24.14.0-beta.11",
21
- "@crystaldesign/diva-utils": "24.14.0-beta.11",
22
- "@crystaldesign/media-upload": "24.14.0-beta.11",
23
- "@crystaldesign/rtf-editor": "24.14.0-beta.11",
24
- "@crystaldesign/spreadsheet": "24.14.0-beta.11",
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",
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": "aca40fa747af32f5361ff3e4a80b38a8dcc45e92"
54
+ "gitHead": "906d32d2f3bec659ab6b42a2491d81e047ddc3ba"
55
55
  }