@oliasoft-open-source/react-ui-library 4.6.4-beta-5 → 4.6.5-beta-1
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/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-HO1Asy5-.js → Color-6VNJS4EI-WW2herEi.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-vRAi_FKc.js → DocsRenderer-NNNQARDV-FcfSpCot.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-V3YHNWJZ-mPffEZCE.js → WithTooltip-V3YHNWJZ-EEbSOUew.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-DO2-co7o.js → buttons-and-links-eS6KJMQD.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-YeFXPQnD.js → chunk-HLWAVYOI-bKrG6XLw.js} +1 -1
- package/dist/storybook/assets/{color-B2uvL4Ic.js → color-gmbiMjYb.js} +1 -1
- package/dist/storybook/assets/{formatter-SWP5E3XI-SR8hv_3z.js → formatter-SWP5E3XI-5xYwTIeY.js} +1 -1
- package/dist/storybook/assets/{iframe-_wKvslme.js → iframe-8dEzWFIV.js} +2 -2
- package/dist/storybook/assets/{index-WC-d15Tp.js → index-bxrL9wg9.js} +5 -5
- package/dist/storybook/assets/{input-validation-qULDcPd2.js → input-validation-yjvmshIC.js} +1 -1
- package/dist/storybook/assets/{inputs-1jcj95Nt.js → inputs-EiP-DEbF.js} +1 -1
- package/dist/storybook/assets/{layout-forms-1Qs33sNe.js → layout-forms-zVOha2dj.js} +1 -1
- package/dist/storybook/assets/{layout-general-NX25o6Iu.js → layout-general-0c6GXODb.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-2soccpsa.js → padding-and-spacing-TWThxvCO.js} +1 -1
- package/dist/storybook/assets/{preview-WU__fZ5Y.js → preview-mcfPKqmy.js} +2 -2
- package/dist/storybook/assets/{preview--Oj7lXeP.js → preview-oqVgO-k1.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-B5GMVT5T-FkUWpfWd.js → syntaxhighlighter-B5GMVT5T-05hmRaYt.js} +1 -1
- package/dist/storybook/assets/unit-table.stories-ZHWCQMuq.js +142 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/unit-table.stories-lZ4MjpDy.js +0 -108
package/dist/index.js
CHANGED
|
@@ -70729,13 +70729,17 @@ const convertVisibleRows = ({
|
|
|
70729
70729
|
const convertedHeaders = headers ? headers.map((headerRow) => ({
|
|
70730
70730
|
...headerRow,
|
|
70731
70731
|
cells: headerRow.cells.map((headerCell) => {
|
|
70732
|
+
var _a;
|
|
70732
70733
|
if (headerCell.type === CellType.AUTO_UNIT) {
|
|
70733
70734
|
const { testId, unitKey } = headerCell;
|
|
70734
70735
|
return {
|
|
70735
70736
|
value: selectedUnits[unitKey],
|
|
70736
70737
|
type: CellType.SELECT,
|
|
70737
|
-
options: getUnitsForQuantity(unitKey)
|
|
70738
|
-
|
|
70738
|
+
options: (_a = getUnitsForQuantity(unitKey)) == null ? void 0 : _a.map((unit2) => ({
|
|
70739
|
+
label: label$b(unit2),
|
|
70740
|
+
value: unit2
|
|
70741
|
+
})),
|
|
70742
|
+
native: headerCell.native,
|
|
70739
70743
|
onChange: (evt) => onChangeUnit({ unitKey, value: evt.target.value }),
|
|
70740
70744
|
testId
|
|
70741
70745
|
};
|
|
@@ -70776,8 +70780,8 @@ const convertVisibleRows = ({
|
|
|
70776
70780
|
const storageUnit2 = storageUnits[unitKey];
|
|
70777
70781
|
const selectedUnit2 = selectedUnits[unitKey];
|
|
70778
70782
|
const unitChanged2 = selectedUnit2 !== storageUnit2;
|
|
70779
|
-
const nextValueConverted = unitChanged2 ? convertAndGetValue(value2, storageUnit2, selectedUnit2) : value2;
|
|
70780
70783
|
const nextUnit = convertBackToStorageUnit ? storageUnit2 : selectedUnit2;
|
|
70784
|
+
const nextValueConverted = unitChanged2 ? convertAndGetValue(value2, nextUnit, selectedUnit2) : value2;
|
|
70781
70785
|
if ("onChange" in cell2) {
|
|
70782
70786
|
const { onChange } = cell2;
|
|
70783
70787
|
const event = {
|