@crystaldesign/diva-backoffice 25.3.0-beta.11 → 25.3.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.
- package/build/esm/index.js +27 -12
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.d.ts +5 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -33257,16 +33257,13 @@ var css_248z$8 = ".container-T4Tzz {\n display: flex;\n align-items: center;\n
|
|
|
33257
33257
|
styleInject(css_248z$8);
|
|
33258
33258
|
|
|
33259
33259
|
function PriceDisplayCellRenderer(props) {
|
|
33260
|
-
var
|
|
33260
|
+
var _value$isManualPrice, _currentPrice$toFixed, _origPrice$toFixed;
|
|
33261
33261
|
var value = props.value,
|
|
33262
|
-
colDef = props.colDef,
|
|
33263
|
-
data = props.data,
|
|
33264
33262
|
commas = props.commas;
|
|
33265
|
-
var
|
|
33266
|
-
var
|
|
33267
|
-
var currentPrice = value !== null && value !== void 0 ? value : undefined;
|
|
33263
|
+
var origPrice = value === null || value === void 0 ? void 0 : value.origPrice;
|
|
33264
|
+
var currentPrice = value === null || value === void 0 ? void 0 : value.price;
|
|
33268
33265
|
var diffPercentage = origPrice && currentPrice ? (currentPrice - origPrice) / origPrice * 100 : undefined;
|
|
33269
|
-
var isManualPrice =
|
|
33266
|
+
var isManualPrice = (_value$isManualPrice = value === null || value === void 0 ? void 0 : value.isManualPrice) !== null && _value$isManualPrice !== void 0 ? _value$isManualPrice : false;
|
|
33270
33267
|
return /*#__PURE__*/jsxs("div", {
|
|
33271
33268
|
className: container$2,
|
|
33272
33269
|
children: [/*#__PURE__*/jsxs("span", {
|
|
@@ -33539,6 +33536,19 @@ function Prices (_ref) {
|
|
|
33539
33536
|
cellDataType: 'number',
|
|
33540
33537
|
headerTooltip: (_priceFeatureGroup$ke3 = priceFeatureGroup.keysDisplayTexts) === null || _priceFeatureGroup$ke3 === void 0 ? void 0 : _priceFeatureGroup$ke3[j],
|
|
33541
33538
|
cellRenderer: PriceDisplayCellRenderer,
|
|
33539
|
+
valueGetter: function valueGetter(_ref3) {
|
|
33540
|
+
var _data$prices, _data$origPrices, _data$manualPrices;
|
|
33541
|
+
var data = _ref3.data;
|
|
33542
|
+
if (!data) return;
|
|
33543
|
+
return {
|
|
33544
|
+
price: (_data$prices = data.prices) === null || _data$prices === void 0 ? void 0 : _data$prices[priceFeatureGroupItem],
|
|
33545
|
+
origPrice: (_data$origPrices = data.origPrices) === null || _data$origPrices === void 0 ? void 0 : _data$origPrices[priceFeatureGroupItem],
|
|
33546
|
+
isManualPrice: (_data$manualPrices = data.manualPrices) === null || _data$manualPrices === void 0 ? void 0 : _data$manualPrices.includes(priceFeatureGroupItem)
|
|
33547
|
+
};
|
|
33548
|
+
},
|
|
33549
|
+
equals: function equals(a, b) {
|
|
33550
|
+
return (a === null || a === void 0 ? void 0 : a.price) === (b === null || b === void 0 ? void 0 : b.price) && (a === null || a === void 0 ? void 0 : a.origPrice) === (b === null || b === void 0 ? void 0 : b.origPrice) && (a === null || a === void 0 ? void 0 : a.isManualPrice) === (b === null || b === void 0 ? void 0 : b.isManualPrice);
|
|
33551
|
+
},
|
|
33542
33552
|
cellRendererParams: {
|
|
33543
33553
|
commas: pricelist.commas
|
|
33544
33554
|
},
|
|
@@ -33547,7 +33557,7 @@ function Prices (_ref) {
|
|
|
33547
33557
|
headerComponentParams: {
|
|
33548
33558
|
additionalElement: /*#__PURE__*/jsx(PriceFactorInput, {
|
|
33549
33559
|
onSave: (/*#__PURE__*/function () {
|
|
33550
|
-
var
|
|
33560
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data, value) {
|
|
33551
33561
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
33552
33562
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33553
33563
|
case 0:
|
|
@@ -33559,7 +33569,7 @@ function Prices (_ref) {
|
|
|
33559
33569
|
}, _callee2);
|
|
33560
33570
|
}));
|
|
33561
33571
|
return function (_x3, _x4) {
|
|
33562
|
-
return
|
|
33572
|
+
return _ref4.apply(this, arguments);
|
|
33563
33573
|
};
|
|
33564
33574
|
}()),
|
|
33565
33575
|
value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceFeatureGroupItem],
|
|
@@ -33627,7 +33637,7 @@ function Prices (_ref) {
|
|
|
33627
33637
|
value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
|
|
33628
33638
|
title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
|
|
33629
33639
|
onSave: (/*#__PURE__*/function () {
|
|
33630
|
-
var
|
|
33640
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_, value) {
|
|
33631
33641
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
33632
33642
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33633
33643
|
case 0:
|
|
@@ -33639,7 +33649,7 @@ function Prices (_ref) {
|
|
|
33639
33649
|
}, _callee3);
|
|
33640
33650
|
}));
|
|
33641
33651
|
return function (_x5, _x6) {
|
|
33642
|
-
return
|
|
33652
|
+
return _ref5.apply(this, arguments);
|
|
33643
33653
|
};
|
|
33644
33654
|
}()),
|
|
33645
33655
|
disabled: !selectedSerie
|
|
@@ -34097,7 +34107,12 @@ function UploadButton (_ref) {
|
|
|
34097
34107
|
},
|
|
34098
34108
|
multiple: false,
|
|
34099
34109
|
onChange: handleUploadChange,
|
|
34100
|
-
fileList: fileList
|
|
34110
|
+
fileList: fileList,
|
|
34111
|
+
showUploadList: {
|
|
34112
|
+
showPreviewIcon: false,
|
|
34113
|
+
showRemoveIcon: false,
|
|
34114
|
+
showDownloadIcon: false
|
|
34115
|
+
}
|
|
34101
34116
|
};
|
|
34102
34117
|
return /*#__PURE__*/jsx(Fragment, {
|
|
34103
34118
|
children: /*#__PURE__*/jsx(Upload$2, _objectSpread$9(_objectSpread$9({}, props), {}, {
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadButton/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/components/UploadButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,MAAM,CAAC;AAGpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGlD,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,qBAAqB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;IACnD,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/components/UploadButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAItC,OAAO,KAAK,EAAE,UAAU,EAAe,MAAM,MAAM,CAAC;AAGpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGlD,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,qBAAqB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC;IACnD,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,qBAoGrH"}
|
|
@@ -9,7 +9,11 @@ export default function PriceDisplayCellRenderer(props: CustomCellRendererProps<
|
|
|
9
9
|
[key: string]: number;
|
|
10
10
|
};
|
|
11
11
|
manualPrices: string[];
|
|
12
|
-
},
|
|
12
|
+
}, {
|
|
13
|
+
price: number;
|
|
14
|
+
origPrice: number;
|
|
15
|
+
isManualPrice: boolean;
|
|
16
|
+
}, DivaContext> & {
|
|
13
17
|
commas?: number;
|
|
14
18
|
}): React.JSX.Element;
|
|
15
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAazD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,KAAK,EAAE,uBAAuB,CAC5B;IACE,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,EACD,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceDisplayCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAazD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,KAAK,EAAE,uBAAuB,CAC5B;IACE,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,EACD;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,OAAO,CAAA;CAAE,EAC5D,WAAW,CACZ,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,qBAiCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAYrE,MAAM,CAAC,OAAO,WAAW,EACvB,cAAc,EACd,SAAS,EACT,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBAoSA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "25.3.0-beta.
|
|
3
|
+
"version": "25.3.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": "25.3.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "25.3.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "25.3.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "25.3.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "25.3.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.3.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.3.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "25.3.0-beta.12",
|
|
19
|
+
"@crystaldesign/content-item": "25.3.0-beta.12",
|
|
20
|
+
"@crystaldesign/diva-core": "25.3.0-beta.12",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.3.0-beta.12",
|
|
22
|
+
"@crystaldesign/media-upload": "25.3.0-beta.12",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.3.0-beta.12",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.3.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": "
|
|
54
|
+
"gitHead": "d0fbb1af5447120bcbbba23b8cbd4474bf5b5b4e"
|
|
55
55
|
}
|