@oliasoft-open-source/react-ui-library 4.6.17 → 4.6.19
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/404.html +1 -1
- package/dist/assets/{index-noRhVNRn.js → index-3CeHq3uM.js} +14 -4
- package/dist/assets/{index-UHom3TOS.css → index-DdTheZoQ.css} +11 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.html +1 -1
- package/dist/index.js +26 -25
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-EH5Xrbg-.js +1 -0
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-w3YEbTBQ.js +1 -0
- package/dist/storybook/assets/WithTooltip-V3YHNWJZ-WCnfALaj.js +1 -0
- package/dist/storybook/assets/{accordion-M-sY23Hd.js → accordion-MRdNs3mQ.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-lXs4IRds.js → accordion.stories-488HeY9k.js} +2 -2
- package/dist/storybook/assets/actions-Z1pyUd57.js +1 -0
- package/dist/storybook/assets/actions-_FIB7bOt.css +1 -0
- package/dist/storybook/assets/{actions.stories-sQK7SAX5.js → actions.stories-JWaU0QAA.js} +1 -1
- package/dist/storybook/assets/{afe.stories-ODEPBi0c.js → afe.stories-Rsl77dCu.js} +2 -2
- package/dist/storybook/assets/{badge.stories-fpUlm73g.js → badge.stories-2BykvoFl.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-4nLIosc7.js → blowout.stories--vPM-KpE.js} +1 -1
- package/dist/storybook/assets/{button-BiJw0fB3.js → button-UQO14biP.js} +1 -1
- package/dist/storybook/assets/{button-group-uKCjEKYR.js → button-group-g7HxxHTn.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-mynaBhDz.js → button-group.stories-hJ9V_va5.js} +1 -1
- package/dist/storybook/assets/{button.stories-7N3AZjiw.js → button.stories-ihIU7iUf.js} +6 -6
- package/dist/storybook/assets/{buttons-and-links-kkzfA_fv.js → buttons-and-links-jk0YaWjE.js} +2 -2
- package/dist/storybook/assets/{card.stories-N8mLrD63.js → card.stories-5YbTAbLy.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-g4yBGv5b.js → casing-loads.stories-LogF6TT6.js} +2 -2
- package/dist/storybook/assets/{cell.stories-sVyam_bx.js → cell.stories-BF9fKK_5.js} +2 -2
- package/dist/storybook/assets/{check-box-KynSyTaY.js → check-box-Q2GsbR79.js} +1 -1
- package/dist/storybook/assets/{check-box.stories-yE82OQod.js → check-box.stories-iQby_Dan.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-7EffY2hk.js → chunk-HLWAVYOI-GWlvwLVD.js} +1 -1
- package/dist/storybook/assets/color-ROlDYjjo.js +25 -0
- package/dist/storybook/assets/{column.stories-cX-u-DHI.js → column.stories-NnQNzY18.js} +1 -1
- package/dist/storybook/assets/{dialog-Au78k7wS.js → dialog-hHTtMGls.js} +1 -1
- package/dist/storybook/assets/{drawer-Vhj7CUNA.js → drawer-ChY55ghN.js} +1 -1
- package/dist/storybook/assets/{drawer.stories-gbeto4wq.js → drawer.stories-xv50_UKt.js} +2 -2
- package/dist/storybook/assets/{empty.stories-oRmjEU7P.js → empty.stories-dFjUCZln.js} +1 -1
- package/dist/storybook/assets/extends-dGVwEr9R.js +1 -0
- package/dist/storybook/assets/{field-m7XXDdEG.js → field-jD6TclDQ.js} +1 -1
- package/dist/storybook/assets/{field.stories-6xmZA-uD.js → field.stories-CeHr9rXs.js} +1 -1
- package/dist/storybook/assets/file-button.stories-XxMjOBfe.js +10 -0
- package/dist/storybook/assets/file-input-A0eGNEgX.js +1 -0
- package/dist/storybook/assets/{file-input.stories-QbTMh_80.js → file-input.stories-dM7UFPVo.js} +1 -1
- package/dist/storybook/assets/{flex.stories-xAOrglx5.js → flex.stories-6qFQFEL7.js} +1 -1
- package/dist/storybook/assets/footer.stories-nvn3DsNw.js +3 -0
- package/dist/storybook/assets/form.stories-TIQoYJwC.js +49 -0
- package/dist/storybook/assets/formation.stories-m_rHJhHE.js +74 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-rnZWn7Un.js → formatter-SWP5E3XI-eHGgpqqT.js} +2 -2
- package/dist/storybook/assets/{heading-4tVgoT7O.js → heading-FcNTpGhR.js} +1 -1
- package/dist/storybook/assets/{heading.stories-7Bqlw14c.js → heading.stories-0MJHBHcQ.js} +1 -1
- package/dist/storybook/assets/{help-icon-eelulTML.js → help-icon-D6ZGAbgL.js} +1 -1
- package/dist/storybook/assets/{help-icon.stories-CptgOV2E.js → help-icon.stories-YZw5pFQt.js} +1 -1
- package/dist/storybook/assets/icon-_m67DAr0.js +8 -0
- package/dist/storybook/assets/{icon.stories-j-b_Exev.js → icon.stories-2aZia1VV.js} +1 -1
- package/dist/storybook/assets/iframe-tZj2-qfe.js +7 -0
- package/dist/storybook/assets/{index-L7u6rs_t.js → index-M219kuX1.js} +5 -5
- package/dist/storybook/assets/{index.es-VXFRDikp.js → index.es-HG2GUH9i.js} +4 -4
- package/dist/storybook/assets/inheritsLoose-Y9jOMJLd.js +1 -0
- package/dist/storybook/assets/{input-group.stories-BJcLpgsm.js → input-group.stories-yF-PiFm1.js} +2 -2
- package/dist/storybook/assets/{input-validation-SIWPb72t.js → input-validation-bs_xBFDH.js} +2 -2
- package/dist/storybook/assets/{inputs-ii5Lb3ZE.js → inputs-cROoah8Z.js} +2 -2
- package/dist/storybook/assets/{label-bLcoUwtK.js → label-dla_bzHj.js} +1 -1
- package/dist/storybook/assets/{label.stories-KbJuUVw3.js → label.stories-t-e2pWHW.js} +1 -1
- package/dist/storybook/assets/layout-forms-m9t0SIeq.js +16 -0
- package/dist/storybook/assets/{layout-general-6yMuf8qw.js → layout-general-uBhsJ21C.js} +2 -2
- package/dist/storybook/assets/{list-F9uDwsrH.js → list-Nr0UfaUw.js} +1 -1
- package/dist/storybook/assets/{list.stories-GyWvG8gC.js → list.stories-K1nFEsjX.js} +2 -2
- package/dist/storybook/assets/{list.stories-data-Ijj3YnfK.js → list.stories-data-WlepbhE1.js} +1 -1
- package/dist/storybook/assets/{loader.stories-B5lK8-XB.js → loader.stories-eEBGjVSN.js} +1 -1
- package/dist/storybook/assets/{menu.stories-YY0ZhdqW.js → menu.stories-nx6w59Nv.js} +6 -6
- package/dist/storybook/assets/{message-CRKuTfOl.js → message-bbAE2zjv.js} +1 -1
- package/dist/storybook/assets/{message.stories-aLAQs_iU.js → message.stories-RJI8haIH.js} +1 -1
- package/dist/storybook/assets/{meta-content-h1NJ9ypR.js → meta-content-073TGkSN.js} +1 -1
- package/dist/storybook/assets/{modal.stories-aZGhb1Cl.js → modal.stories-HOB4HNE4.js} +2 -2
- package/dist/storybook/assets/{number-input.stories-QU9Llt5Z.js → number-input.stories-0-jDCroI.js} +5 -5
- package/dist/storybook/assets/{option-dropdown.stories-f_5X-NT4.js → option-dropdown.stories-M9-IYc-K.js} +1 -1
- package/dist/storybook/assets/{padding-and-spacing-Beocy83w.js → padding-and-spacing-HlurZNUe.js} +2 -2
- package/dist/storybook/assets/{page.stories-_evmOXW2.js → page.stories-x7QRBnZm.js} +1 -1
- package/dist/storybook/assets/{pagination-DtJdggbI.js → pagination-lFdPlLPJ.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-M2RqRdRc.js → pagination.stories-etfovhze.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-6V_XrhKa.js → pop-confirm.stories-QyBm5ZAb.js} +1 -1
- package/dist/storybook/assets/{popover-N9B8JT3G.js → popover-rJn7kxkX.js} +1 -1
- package/dist/storybook/assets/popover.stories-eItcO8iz.js +10 -0
- package/dist/storybook/assets/{preview-4yh7mm39.js → preview-8SjWr4K7.js} +3 -3
- package/dist/storybook/assets/preview-xM6F3nZH.js +7 -0
- package/dist/storybook/assets/projects.stories-wnXCxuJE.js +47 -0
- package/dist/storybook/assets/{radio-button-HPU-KHv4.js → radio-button-7TJh5k-h.js} +1 -1
- package/dist/storybook/assets/{radio-button.stories-ZyjCpReq.js → radio-button.stories-9mvBu2BH.js} +1 -1
- package/dist/storybook/assets/react-router-dom-4Z66xYqZ.js +8 -0
- package/dist/storybook/assets/{reservoirs.stories-dvGcJAh0.js → reservoirs.stories-6dilTPJE.js} +2 -2
- package/dist/storybook/assets/{rich-text-input.stories-BroJS4L0.js → rich-text-input.stories-Vu2wd1uh.js} +3 -3
- package/dist/storybook/assets/{row.stories-ZibxnXR9.js → row.stories-6wXvgyio.js} +2 -2
- package/dist/storybook/assets/select-IxUsW-Xm.js +1 -0
- package/dist/storybook/assets/{select.stories-pZ8RM3fJ.js → select.stories-Kbzpw3od.js} +2 -2
- package/dist/storybook/assets/{side-bar-evBxuVzm.js → side-bar-kr46QLwI.js} +1 -1
- package/dist/storybook/assets/{side-bar.stories-mtQSbRi1.js → side-bar.stories-bJoVvzG5.js} +1 -1
- package/dist/storybook/assets/{site.stories--LjoKnDF.js → site.stories-VpsCjYty.js} +2 -2
- package/dist/storybook/assets/slider-jx0z5OyT.js +7 -0
- package/dist/storybook/assets/{slider.stories-ZZQVWjaY.js → slider.stories-CpY4L01U.js} +2 -2
- package/dist/storybook/assets/{smart-upload-modal.stories-RRF2yq4B.js → smart-upload-modal.stories-B_UctN3V.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-oFV2pFb8.js → spacer.stories-FpDFoVWE.js} +1 -1
- package/dist/storybook/assets/syntaxhighlighter-B5GMVT5T-AOc_mapr.js +1 -0
- package/dist/storybook/assets/{table-kSTipYE0.js → table-fdcNapB-.js} +1 -1
- package/dist/storybook/assets/{table.stories-zdRM5AV8.js → table.stories-a5LZLQDT.js} +2 -2
- package/dist/storybook/assets/{table.stories-data-tjY9V0bM.js → table.stories-data-UqqhbXjA.js} +1 -1
- package/dist/storybook/assets/text-link.stories-Plmiu8NV.js +14 -0
- package/dist/storybook/assets/{textarea-RrPYPGCC.js → textarea-JE26Eekm.js} +1 -1
- package/dist/storybook/assets/{textarea.stories-rqdJWVro.js → textarea.stories-c1mkQU4s.js} +1 -1
- package/dist/storybook/assets/{title.stories-tcfNoA6z.js → title.stories-zxDbEh-U.js} +3 -3
- package/dist/storybook/assets/{toaster-yPcd4ELJ.js → toaster-IL_npIpU.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-Cu8HbPc6.js → toaster.stories-QL3_PKZL.js} +1 -1
- package/dist/storybook/assets/{toggle-R__kwKym.js → toggle-vKuY4G3w.js} +1 -1
- package/dist/storybook/assets/{toggle.stories-ViKd2aK_.js → toggle.stories-fJ5QYzcQ.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-_THFk3Hb.js → tooltip.test-case.stories-0HiezXaS.js} +1 -1
- package/dist/storybook/assets/{top-bar-0Ownj3Bx.js → top-bar-pptAo2LU.js} +1 -1
- package/dist/storybook/assets/top-bar.stories-H1OeyQS_.js +21 -0
- package/dist/storybook/assets/{top-bar.testcase.stories-3XlaHVAQ.js → top-bar.testcase.stories-uJCoeG_m.js} +1 -1
- package/dist/storybook/assets/{tree.stories-Uh4XKQdz.js → tree.stories-a-UG4OFf.js} +1 -1
- package/dist/storybook/assets/unit-input.stories-vyth5NA2.js +284 -0
- package/dist/storybook/assets/unit-table.stories-rHU8wR7Z.js +150 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/stories.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/Color-6VNJS4EI-l_tkm4Ol.js +0 -1
- package/dist/storybook/assets/DocsRenderer-NNNQARDV-pZpQmDez.js +0 -1
- package/dist/storybook/assets/WithTooltip-V3YHNWJZ-iEhMvku5.js +0 -1
- package/dist/storybook/assets/actions-7PO9r8zE.js +0 -1
- package/dist/storybook/assets/actions-ZOs51LZe.css +0 -1
- package/dist/storybook/assets/color-0XY3ZHi2.js +0 -25
- package/dist/storybook/assets/file-input-AwnqYeJy.js +0 -1
- package/dist/storybook/assets/footer.stories-ZEZ_We0f.js +0 -3
- package/dist/storybook/assets/form.stories-BaGSZHT3.js +0 -49
- package/dist/storybook/assets/formation.stories-062BdtdZ.js +0 -74
- package/dist/storybook/assets/icon-8EQazuuW.js +0 -8
- package/dist/storybook/assets/iframe-fk3bQNFP.js +0 -7
- package/dist/storybook/assets/inheritsLoose-8sb_A2v4.js +0 -1
- package/dist/storybook/assets/layout-forms-lx7_nlWB.js +0 -16
- package/dist/storybook/assets/popover.stories-goIrT_jy.js +0 -10
- package/dist/storybook/assets/preview-1W-XaElU.js +0 -7
- package/dist/storybook/assets/projects.stories-H8sLyz8n.js +0 -47
- package/dist/storybook/assets/react-router-dom-EZH1n7K1.js +0 -8
- package/dist/storybook/assets/select-AcJYUY86.js +0 -1
- package/dist/storybook/assets/slider-n3IxC2iq.js +0 -7
- package/dist/storybook/assets/syntaxhighlighter-B5GMVT5T-l5kiIEjw.js +0 -1
- package/dist/storybook/assets/text-link.stories-Mx9ojcOC.js +0 -14
- package/dist/storybook/assets/top-bar.stories-Z8pUGVuU.js +0 -21
- package/dist/storybook/assets/unit-input.stories-R93nVPV4.js +0 -273
- package/dist/storybook/assets/unit-table.stories-Nry33G5L.js +0 -150
package/dist/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-
|
|
1
|
+
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-3CeHq3uM.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-DdTheZoQ.css"></head><body><div id="content"></div></body>
|
|
@@ -18396,11 +18396,13 @@ const Button$1 = ({
|
|
|
18396
18396
|
}
|
|
18397
18397
|
) });
|
|
18398
18398
|
};
|
|
18399
|
-
const actions$2 = "
|
|
18400
|
-
const
|
|
18401
|
-
const
|
|
18399
|
+
const actions$2 = "_actions_1t7vd_1";
|
|
18400
|
+
const childComponent = "_childComponent_1t7vd_11";
|
|
18401
|
+
const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
|
|
18402
|
+
const active$7 = "_active_1t7vd_36";
|
|
18402
18403
|
const styles$O = {
|
|
18403
18404
|
actions: actions$2,
|
|
18405
|
+
childComponent,
|
|
18404
18406
|
actionComponentContainer,
|
|
18405
18407
|
active: active$7
|
|
18406
18408
|
};
|
|
@@ -19211,7 +19213,15 @@ const Actions = (props) => {
|
|
|
19211
19213
|
const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
19212
19214
|
if (!hidden2) {
|
|
19213
19215
|
if (action2.childComponent && React$4.isValidElement(action2.childComponent)) {
|
|
19214
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19216
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19217
|
+
"div",
|
|
19218
|
+
{
|
|
19219
|
+
"data-testid": action2.testId,
|
|
19220
|
+
className: styles$O.childComponent,
|
|
19221
|
+
children: action2.childComponent
|
|
19222
|
+
},
|
|
19223
|
+
index2
|
|
19224
|
+
);
|
|
19215
19225
|
} else if (action2.subActions) {
|
|
19216
19226
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19217
19227
|
SubmenuActions,
|
|
@@ -1685,17 +1685,20 @@ html[data-theme='dark'] {
|
|
|
1685
1685
|
transform: rotate(360deg);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
.
|
|
1688
|
+
._actions_1t7vd_1 {
|
|
1689
1689
|
margin-left: auto;
|
|
1690
1690
|
display: flex;
|
|
1691
1691
|
flex-wrap: nowrap;
|
|
1692
1692
|
justify-content: flex-end;
|
|
1693
1693
|
align-items: center;
|
|
1694
1694
|
}
|
|
1695
|
-
.
|
|
1695
|
+
._actions_1t7vd_1 > *:not(:last-child) {
|
|
1696
1696
|
margin-right: var(--padding-xxs);
|
|
1697
1697
|
}
|
|
1698
|
-
.
|
|
1698
|
+
._childComponent_1t7vd_11 {
|
|
1699
|
+
display: inline-flex;
|
|
1700
|
+
}
|
|
1701
|
+
._actionComponentContainer_1t7vd_14 {
|
|
1699
1702
|
width: 24px;
|
|
1700
1703
|
height: 24px;
|
|
1701
1704
|
display: inline-flex;
|
|
@@ -1708,16 +1711,16 @@ html[data-theme='dark'] {
|
|
|
1708
1711
|
transition: color 0.2s;
|
|
1709
1712
|
line-height: 0;
|
|
1710
1713
|
}
|
|
1711
|
-
.
|
|
1714
|
+
._actionComponentContainer_1t7vd_14 i {
|
|
1712
1715
|
margin: 0;
|
|
1713
1716
|
line-height: 1 !important;
|
|
1714
1717
|
}
|
|
1715
|
-
.
|
|
1716
|
-
.
|
|
1718
|
+
._actionComponentContainer_1t7vd_14:hover,
|
|
1719
|
+
._actionComponentContainer_1t7vd_14:focus {
|
|
1717
1720
|
color: var(--color-text-primary-hover);
|
|
1718
1721
|
}
|
|
1719
|
-
.
|
|
1720
|
-
.
|
|
1722
|
+
._actionComponentContainer_1t7vd_14:active,
|
|
1723
|
+
._actionComponentContainer_1t7vd_14._active_1t7vd_36 {
|
|
1721
1724
|
color: var(--color-text-primary-active);
|
|
1722
1725
|
}
|
|
1723
1726
|
._wrapper_1iw97_1 {
|
package/dist/index.d.ts
CHANGED
|
@@ -313,7 +313,7 @@ export declare enum IconType {
|
|
|
313
313
|
|
|
314
314
|
declare interface ICustomChangeEvent {
|
|
315
315
|
target: {
|
|
316
|
-
value
|
|
316
|
+
value?: string;
|
|
317
317
|
name: string;
|
|
318
318
|
predefinedSelected?: boolean;
|
|
319
319
|
predefinedOption?: IPredefinedOption;
|
|
@@ -1043,7 +1043,7 @@ export declare interface IPortalProps {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
|
|
1045
1045
|
declare interface IPredefinedOption {
|
|
1046
|
-
value
|
|
1046
|
+
value?: string;
|
|
1047
1047
|
label: string;
|
|
1048
1048
|
valueKey?: string;
|
|
1049
1049
|
}
|
|
@@ -1574,7 +1574,7 @@ export declare interface IUnitInputProps {
|
|
|
1574
1574
|
doNotConvertValue?: boolean;
|
|
1575
1575
|
testId?: string;
|
|
1576
1576
|
warning?: string | null;
|
|
1577
|
-
predefinedOptions?: IPredefinedOption[];
|
|
1577
|
+
predefinedOptions?: IPredefinedOption[] | null;
|
|
1578
1578
|
initialPredefinedOption?: boolean;
|
|
1579
1579
|
shouldLinkAutomaticly?: boolean;
|
|
1580
1580
|
selectedPredefinedOptionKey?: string;
|
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-
|
|
1
|
+
<!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-3CeHq3uM.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-DdTheZoQ.css"></head><body><div id="content"></div></body>
|
package/dist/index.js
CHANGED
|
@@ -9095,6 +9095,14 @@ const FileButton = ({
|
|
|
9095
9095
|
if (!(disabled2 || disabledContext))
|
|
9096
9096
|
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
9097
9097
|
};
|
|
9098
|
+
const handleChange = (evt) => {
|
|
9099
|
+
var _a;
|
|
9100
|
+
const files = multi ? evt.target.files : (_a = evt.target.files) == null ? void 0 : _a[0];
|
|
9101
|
+
onChange({ ...evt, target: { ...evt.target, value: files } });
|
|
9102
|
+
if (inputRef.current) {
|
|
9103
|
+
inputRef.current.value = "";
|
|
9104
|
+
}
|
|
9105
|
+
};
|
|
9098
9106
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
9099
9107
|
/* @__PURE__ */ jsx(Button$1, { ...buttonProps, onClick: handleClick2 }),
|
|
9100
9108
|
/* @__PURE__ */ jsx(
|
|
@@ -9106,16 +9114,7 @@ const FileButton = ({
|
|
|
9106
9114
|
type: "file",
|
|
9107
9115
|
accept,
|
|
9108
9116
|
multiple: multi,
|
|
9109
|
-
onChange:
|
|
9110
|
-
var _a, _b, _c;
|
|
9111
|
-
onChange({
|
|
9112
|
-
...evt,
|
|
9113
|
-
target: {
|
|
9114
|
-
...evt.target,
|
|
9115
|
-
value: multi ? (_a = evt == null ? void 0 : evt.target) == null ? void 0 : _a.files : (_c = (_b = evt == null ? void 0 : evt.target) == null ? void 0 : _b.files) == null ? void 0 : _c[0]
|
|
9116
|
-
}
|
|
9117
|
-
});
|
|
9118
|
-
}
|
|
9117
|
+
onChange: handleChange
|
|
9119
9118
|
}
|
|
9120
9119
|
)
|
|
9121
9120
|
] });
|
|
@@ -9339,6 +9338,14 @@ const FileInput = ({
|
|
|
9339
9338
|
if (!(disabled2 || disabledContext))
|
|
9340
9339
|
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
9341
9340
|
};
|
|
9341
|
+
const handleChange = (evt) => {
|
|
9342
|
+
var _a, _b, _c;
|
|
9343
|
+
const files = multi ? (_a = evt == null ? void 0 : evt.target) == null ? void 0 : _a.files : (_c = (_b = evt == null ? void 0 : evt.target) == null ? void 0 : _b.files) == null ? void 0 : _c[0];
|
|
9344
|
+
onChange({ ...evt, target: { ...evt.target, value: files } });
|
|
9345
|
+
if (inputRef.current) {
|
|
9346
|
+
inputRef.current.value = "";
|
|
9347
|
+
}
|
|
9348
|
+
};
|
|
9342
9349
|
return /* @__PURE__ */ jsxs("div", { onClick: handleClick2, style: { width: width2 }, children: [
|
|
9343
9350
|
/* @__PURE__ */ jsxs(InputGroup, { children: [
|
|
9344
9351
|
/* @__PURE__ */ jsx(Input$1, { value: fileName || "", placeholder: placeholder3, disabled: true }),
|
|
@@ -9361,16 +9368,7 @@ const FileInput = ({
|
|
|
9361
9368
|
type: "file",
|
|
9362
9369
|
accept,
|
|
9363
9370
|
multiple: multi,
|
|
9364
|
-
onChange:
|
|
9365
|
-
var _a, _b, _c;
|
|
9366
|
-
onChange({
|
|
9367
|
-
...evt,
|
|
9368
|
-
target: {
|
|
9369
|
-
...evt.target,
|
|
9370
|
-
value: multi ? (_a = evt == null ? void 0 : evt.target) == null ? void 0 : _a.files : (_c = (_b = evt == null ? void 0 : evt.target) == null ? void 0 : _b.files) == null ? void 0 : _c[0]
|
|
9371
|
-
}
|
|
9372
|
-
});
|
|
9373
|
-
},
|
|
9371
|
+
onChange: handleChange,
|
|
9374
9372
|
"data-testid": testId
|
|
9375
9373
|
}
|
|
9376
9374
|
)
|
|
@@ -70502,14 +70500,16 @@ const UnitInput = ({
|
|
|
70502
70500
|
);
|
|
70503
70501
|
const isAutoValue = propValue === "" && autoValue;
|
|
70504
70502
|
const foundPredefinedMenuOption = predefinedOptions && predefinedOptions.find((el2) => {
|
|
70503
|
+
if (!(el2 == null ? void 0 : el2.value))
|
|
70504
|
+
return;
|
|
70505
70505
|
if (selectedPredefinedOptionKey) {
|
|
70506
70506
|
return selectedPredefinedOptionKey === el2.valueKey;
|
|
70507
70507
|
}
|
|
70508
|
-
const predefinedMenuItemUnit = isValueWithUnit(el2.value) ? getUnit(el2.value) : "";
|
|
70508
|
+
const predefinedMenuItemUnit = isValueWithUnit(el2 == null ? void 0 : el2.value) ? getUnit(el2 == null ? void 0 : el2.value) : "";
|
|
70509
70509
|
return withUnit(
|
|
70510
70510
|
convertUnit(value, predefinedMenuItemUnit),
|
|
70511
70511
|
predefinedMenuItemUnit
|
|
70512
|
-
) === el2.value;
|
|
70512
|
+
) === (el2 == null ? void 0 : el2.value);
|
|
70513
70513
|
});
|
|
70514
70514
|
const getAlternativeUnits = () => {
|
|
70515
70515
|
if (unitkey) {
|
|
@@ -70616,7 +70616,8 @@ const UnitInput = ({
|
|
|
70616
70616
|
const stringName = getStringName(name2);
|
|
70617
70617
|
let sectionsPredefinedMenu;
|
|
70618
70618
|
const createPredefinedOption = (el2) => {
|
|
70619
|
-
const
|
|
70619
|
+
const elementValue = (el2 == null ? void 0 : el2.value) ? el2.value : "";
|
|
70620
|
+
const [value2 = "", unit2 = ""] = isValueWithUnit(elementValue) ? split$1(elementValue) : [elementValue];
|
|
70620
70621
|
return {
|
|
70621
70622
|
type: MenuType.OPTION,
|
|
70622
70623
|
inline: true,
|
|
@@ -70626,7 +70627,7 @@ const UnitInput = ({
|
|
|
70626
70627
|
setPredefinedOptionsMenuState(PredefinedOptionsMenuState.PREDEFINED);
|
|
70627
70628
|
onChange({
|
|
70628
70629
|
target: {
|
|
70629
|
-
value:
|
|
70630
|
+
value: elementValue,
|
|
70630
70631
|
name: typeof name2 === "string" ? name2 : (name2 == null ? void 0 : name2.fieldName) || "",
|
|
70631
70632
|
predefinedSelected: true,
|
|
70632
70633
|
predefinedOption: el2
|
|
@@ -70638,7 +70639,7 @@ const UnitInput = ({
|
|
|
70638
70639
|
/* @__PURE__ */ jsx(Text, { children: el2.label }),
|
|
70639
70640
|
/* @__PURE__ */ jsx(Spacer, { width: "20px", height: "0" })
|
|
70640
70641
|
] }),
|
|
70641
|
-
description: isValueWithUnit(
|
|
70642
|
+
description: isValueWithUnit(elementValue) ? `${value2} ${unit2}` : elementValue,
|
|
70642
70643
|
selected: foundPredefinedMenuOption === el2 && predefinedOptionsMenuState === PredefinedOptionsMenuState.PREDEFINED
|
|
70643
70644
|
};
|
|
70644
70645
|
};
|