@crystaldesign/diva-backoffice 24.13.0-beta.33 → 24.13.0-beta.34

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.
@@ -31493,40 +31493,26 @@ function TableCatalogs () {
31493
31493
  F: t('backoffice.idmCatalog.general.label.catalogMark.F')
31494
31494
  };
31495
31495
  var formOfAddressDic = {
31496
- 1: t('backoffice.idmCatalog.general.label.formOfAddress.1'),
31497
- 2: t('backoffice.idmCatalog.general.label.formOfAddress.2')
31496
+ 1: t('backoffice.idmCatalog.general.label.formOfAddress.f1'),
31497
+ 2: t('backoffice.idmCatalog.general.label.formOfAddress.f2')
31498
31498
  };
31499
31499
  var priceDependentDic = {
31500
- 0: t('backoffice.idmCatalog.general.label.priceDependent.0'),
31501
- 1: t('backoffice.idmCatalog.general.label.priceDependent.1')
31500
+ 0: t('backoffice.idmCatalog.general.label.priceDependent.p0'),
31501
+ 1: t('backoffice.idmCatalog.general.label.priceDependent.p1')
31502
31502
  };
31503
31503
  var unitDic = {
31504
- 0: t('backoffice.idmCatalog.general.label.unit.0'),
31505
- 1: t('backoffice.idmCatalog.general.label.unit.1'),
31506
- 10: t('backoffice.idmCatalog.general.label.unit.10'),
31507
- 100: t('backoffice.idmCatalog.general.label.unit.100'),
31508
- 1000: t('backoffice.idmCatalog.general.label.unit.1000'),
31509
- 1000000: t('backoffice.idmCatalog.general.label.unit.1000000'),
31510
- 1000000000: t('backoffice.idmCatalog.general.label.unit.1000000000')
31504
+ 0: t('backoffice.idmCatalog.general.label.unit.u0'),
31505
+ 1: t('backoffice.idmCatalog.general.label.unit.u1'),
31506
+ 10: t('backoffice.idmCatalog.general.label.unit.u10'),
31507
+ 100: t('backoffice.idmCatalog.general.label.unit.u100'),
31508
+ 1000: t('backoffice.idmCatalog.general.label.unit.u1000'),
31509
+ 1000000: t('backoffice.idmCatalog.general.label.unit.1u000000'),
31510
+ 1000000000: t('backoffice.idmCatalog.general.label.unit.u1000000000')
31511
31511
  };
31512
-
31513
- /*formatValue: (value: number) => {
31514
- const displayNames: { [key: number]: string } = {
31515
- 0: 'Stückpreis',
31516
- 1: 'mm',
31517
- 10: 'cm',
31518
- 100: 'cm²',
31519
- 1000: 'm oder cm³',
31520
- 1000000: 'm²',
31521
- 1000000000: 'm³',
31522
- };
31523
- return value + ' - ' + displayNames[value];
31524
- },*/
31525
-
31526
31512
  var roundingTypeDic = {
31527
- 1: t('backoffice.idmCatalog.general.label.roundingType.1'),
31528
- 2: t('backoffice.idmCatalog.general.label.roundingType.2'),
31529
- 3: t('backoffice.idmCatalog.general.label.roundingType.3')
31513
+ 1: t('backoffice.idmCatalog.general.label.roundingType.r1'),
31514
+ 2: t('backoffice.idmCatalog.general.label.roundingType.r2'),
31515
+ 3: t('backoffice.idmCatalog.general.label.roundingType.r3')
31530
31516
  };
31531
31517
  var applicationData = useMemo(function () {
31532
31518
  return {
@@ -32079,6 +32065,16 @@ function useModule (currentModules) {
32079
32065
  searchParams = _useSearchParams2[0];
32080
32066
  var menuItems = useMemo(function () {
32081
32067
  return [{
32068
+ key: 'series',
32069
+ style: {
32070
+ margin: 0
32071
+ },
32072
+ icon: /*#__PURE__*/jsx(ApartmentOutlined, {}),
32073
+ label: /*#__PURE__*/jsx(Link, {
32074
+ to: 'catalogs/idm/catalogs/' + catalogId + '/series' + (searchParams ? '?' + searchParams.toString() : ''),
32075
+ children: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries')
32076
+ })
32077
+ }, {
32082
32078
  key: 'items',
32083
32079
  style: {
32084
32080
  margin: 0
@@ -32448,6 +32444,176 @@ function TableItems () {
32448
32444
  });
32449
32445
  }
32450
32446
 
32447
+ function TableSeries () {
32448
+ var _useTranslation = useTranslation(),
32449
+ t = _useTranslation.t;
32450
+ var _useModule = useModule(['properties']),
32451
+ catalogId = _useModule.catalogId,
32452
+ organizationId = _useModule.organizationId,
32453
+ updateNavigation = _useModule.updateNavigation,
32454
+ apiConfig = _useModule.apiConfig;
32455
+ var applicationData = useMemo(function () {
32456
+ return {
32457
+ catalogId: catalogId,
32458
+ organizationId: organizationId
32459
+ };
32460
+ }, [catalogId]);
32461
+ return /*#__PURE__*/jsxs(Fragment, {
32462
+ children: [/*#__PURE__*/jsx(Descriptions$1, {
32463
+ title: /*#__PURE__*/jsxs("div", {
32464
+ children: [t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'), /*#__PURE__*/jsx(Space$1, {
32465
+ style: {
32466
+ "float": 'right'
32467
+ },
32468
+ children: /*#__PURE__*/jsx(CatalogSelector, {
32469
+ selectedCatalog: catalogId,
32470
+ setSelectedCatalog: function setSelectedCatalog(id) {
32471
+ return updateNavigation(id);
32472
+ },
32473
+ idmService: apiConfig.idmService
32474
+ })
32475
+ })]
32476
+ })
32477
+ }), /*#__PURE__*/jsx(Spreadsheet, {
32478
+ gridId: 'crud-grid_series',
32479
+ applicationData: applicationData,
32480
+ configuration: {
32481
+ type: 'dotnetSSM',
32482
+ apiInterface: {
32483
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series',
32484
+ create: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series',
32485
+ restore: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${_id}',
32486
+ "delete": apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${_id}',
32487
+ update: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/series/${_id}'
32488
+ },
32489
+ dateFormat: 'LL',
32490
+ colDef: [{
32491
+ field: 'serieNo',
32492
+ headerName: 'backoffice.idmCatalog.series.label.serieNo',
32493
+ required: true
32494
+ }, {
32495
+ headerName: 'backoffice.idmCatalog.series.label.seriesName',
32496
+ marryChildren: true,
32497
+ children: [{
32498
+ field: 'seriesName.DE',
32499
+ headerName: 'backoffice.general.label.DE',
32500
+ isDictionary: true
32501
+ }, {
32502
+ field: 'seriesName.EN',
32503
+ headerName: 'backoffice.general.label.EN',
32504
+ isDictionary: true
32505
+ }, {
32506
+ field: 'seriesName.FR',
32507
+ headerName: 'backoffice.general.label.FR',
32508
+ isDictionary: true
32509
+ }, {
32510
+ field: 'seriesName.IT',
32511
+ headerName: 'backoffice.general.label.IT',
32512
+ isDictionary: true
32513
+ }]
32514
+ }, {
32515
+ field: 'sequenceNo',
32516
+ headerName: 'backoffice.idmCatalog.series.label.sequenceNo',
32517
+ required: true,
32518
+ cellDataType: 'number'
32519
+ }, {
32520
+ field: 'purchaseRetailId',
32521
+ headerName: 'backoffice.idmCatalog.series.label.purchaseRetailId',
32522
+ required: true,
32523
+ cellDataType: 'number'
32524
+ }, {
32525
+ headerName: 'backoffice.idmCatalog.series.label.seriesFullText',
32526
+ marryChildren: true,
32527
+ children: [{
32528
+ field: 'seriesFullText.DE',
32529
+ headerName: 'backoffice.general.label.DE',
32530
+ isDictionary: true
32531
+ }, {
32532
+ field: 'seriesFullText.EN',
32533
+ headerName: 'backoffice.general.label.EN',
32534
+ isDictionary: true
32535
+ }, {
32536
+ field: 'seriesFullText.FR',
32537
+ headerName: 'backoffice.general.label.FR',
32538
+ isDictionary: true
32539
+ }, {
32540
+ field: 'seriesFullText.IT',
32541
+ headerName: 'backoffice.general.label.IT',
32542
+ isDictionary: true
32543
+ }]
32544
+ }, {
32545
+ field: 'decisionRefs',
32546
+ headerName: 'backoffice.idmCatalogEditor.items.label.decisionRefs',
32547
+ cellDataType: 'lookup',
32548
+ editable: true,
32549
+ customParams: {
32550
+ nameField: 'decisionRefsDisplayTexts',
32551
+ filterCellType: 'number',
32552
+ displayLabelTemplate: '${name} (${value})',
32553
+ apiInterface: {
32554
+ read: apiConfig.idmService + '/v3.0/catalogs/${catalogId}/decisions'
32555
+ },
32556
+ lookupValue: 'decisionText',
32557
+ lookupKey: 'decisionNo',
32558
+ lookupKeyFilterType: {
32559
+ type: 'equals',
32560
+ filterType: 'number'
32561
+ },
32562
+ multiple: true,
32563
+ translated: true
32564
+ },
32565
+ additionalFields: ['decisionRefsDisplayTexts'],
32566
+ isDictionary: true
32567
+ }, {
32568
+ headerName: 'backoffice.idmCatalog.general.label.validFromDate',
32569
+ field: 'validFromDate',
32570
+ cellDataType: 'dateString'
32571
+ }, {
32572
+ headerName: 'backoffice.idmCatalog.general.label.validUntilDate',
32573
+ field: 'validUntilDate',
32574
+ cellDataType: 'dateString'
32575
+ }, {
32576
+ headerName: 'backoffice.general.label.lastUpdatedDate',
32577
+ field: 'lastUpdatedDate',
32578
+ cellDataType: 'dateString',
32579
+ editable: false
32580
+ }, {
32581
+ headerName: 'backoffice.general.label.createdDate',
32582
+ field: 'createdDate',
32583
+ cellDataType: 'dateString',
32584
+ editable: false
32585
+ }, {
32586
+ headerName: 'backoffice.general.label.createdBy',
32587
+ field: 'createdByDisplayText',
32588
+ editable: false
32589
+ }, {
32590
+ headerName: 'backoffice.general.label.lastUpdatedBy',
32591
+ field: 'lastUpdatedByDisplayText',
32592
+ editable: false
32593
+ }, {
32594
+ headerName: 'backoffice.general.label._id',
32595
+ field: '_id',
32596
+ editable: false
32597
+ }, {
32598
+ field: 'organizationId',
32599
+ editable: false,
32600
+ hide: true,
32601
+ lockVisible: true,
32602
+ suppressColumnsToolPanel: true,
32603
+ defaultValue: '${organizationId}'
32604
+ }, {
32605
+ field: 'catalogId',
32606
+ editable: false,
32607
+ hide: true,
32608
+ lockVisible: true,
32609
+ suppressColumnsToolPanel: true,
32610
+ defaultValue: '${catalogId}'
32611
+ }]
32612
+ }
32613
+ })]
32614
+ });
32615
+ }
32616
+
32451
32617
  function IDMCatalogEditor (_ref) {
32452
32618
  _objectDestructuringEmpty(_ref);
32453
32619
  return /*#__PURE__*/jsx("div", {
@@ -32465,11 +32631,14 @@ function Content$1() {
32465
32631
  index: true,
32466
32632
  path: "",
32467
32633
  element: /*#__PURE__*/jsx(TableCatalogs, {})
32634
+ }), /*#__PURE__*/jsx(Route, {
32635
+ path: ":catalogId/series",
32636
+ element: /*#__PURE__*/jsx(TableSeries, {})
32468
32637
  }), /*#__PURE__*/jsx(Route, {
32469
32638
  path: ":catalogId/items",
32470
32639
  element: /*#__PURE__*/jsx(TableItems, {})
32471
32640
  })]
32472
- }) /*at the moment nothing else*/;
32641
+ });
32473
32642
  }
32474
32643
 
32475
32644
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -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;AAGxD,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;AAIxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAQlD,MAAM,CAAC,OAAO,gCAgnBb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAQlD,MAAM,CAAC,OAAO,gCAmmBb"}
@@ -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/TableSeries/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,gCA4Lb"}
@@ -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;uCAyB5B,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;uCAmC5B,MAAM,YAAW,MAAM,EAAE;;;;EAmC7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "24.13.0-beta.33",
3
+ "version": "24.13.0-beta.34",
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.13.0-beta.33",
19
- "@crystaldesign/content-item": "24.13.0-beta.33",
20
- "@crystaldesign/diva-core": "24.13.0-beta.33",
21
- "@crystaldesign/diva-utils": "24.13.0-beta.33",
22
- "@crystaldesign/media-upload": "24.13.0-beta.33",
23
- "@crystaldesign/rtf-editor": "24.13.0-beta.33",
24
- "@crystaldesign/spreadsheet": "24.13.0-beta.33",
18
+ "@crystaldesign/content-box": "24.13.0-beta.34",
19
+ "@crystaldesign/content-item": "24.13.0-beta.34",
20
+ "@crystaldesign/diva-core": "24.13.0-beta.34",
21
+ "@crystaldesign/diva-utils": "24.13.0-beta.34",
22
+ "@crystaldesign/media-upload": "24.13.0-beta.34",
23
+ "@crystaldesign/rtf-editor": "24.13.0-beta.34",
24
+ "@crystaldesign/spreadsheet": "24.13.0-beta.34",
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": "d2be1acc499200bfabc0fb2175eebe34833654aa"
54
+ "gitHead": "e5b1d100cfebc6ac5517dbf4e4b4b4d5782b4e4b"
55
55
  }