@oliasoft-open-source/react-ui-library 4.8.0-beta-4 → 4.8.0-beta-6
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/assets/{index-Oe0PlEED.css → index-BpSdrNXy.css} +316 -316
- package/dist/assets/{index-GTFdS-JF.js → index-CnfDrmnZ.js} +236 -195
- package/dist/global.css +576 -576
- package/dist/index.d.ts +39 -39
- package/dist/index.html +1 -1
- package/dist/index.js +546 -510
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-BGErnsA6.js → Color-KGDBMAHA-7n9iRx7S.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-D7WH90Ux.js → DocsRenderer-PKQXORMH-C57lSAQP.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-YV-J9E1H.js → accordion.stories-DxcPNOgs.js} +2 -2
- package/dist/storybook/assets/actions-D-uVCDzk.js +39 -0
- package/dist/storybook/assets/{actions.stories-CCDxFKFk.js → actions.stories-gKfuiKQy.js} +1 -1
- package/dist/storybook/assets/{afe.stories-BnD7J0sn.js → afe.stories-Be4Zi8Qk.js} +2 -2
- package/dist/storybook/assets/{badge.stories-D5DA-vxC.js → badge.stories-Dkq_XgEW.js} +1 -1
- package/dist/storybook/assets/{blowout.stories-BlyKeeED.js → blowout.stories-DHdofVc-.js} +1 -1
- package/dist/storybook/assets/button-DHevvVBE.js +1 -0
- package/dist/storybook/assets/button-fAxt_G4d.css +1 -0
- package/dist/storybook/assets/{button-group-CwJdFo2z.js → button-group-1DEZPmxq.js} +1 -1
- package/dist/storybook/assets/{button-group.stories-DU5k5qCY.js → button-group.stories-C4V1k0z_.js} +1 -1
- package/dist/storybook/assets/{button.stories-DVtec2Eo.js → button.stories-DA9DGYD2.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-BCjRj0sv.js → buttons-and-links-CAoQC4F0.js} +2 -2
- package/dist/storybook/assets/{casing-loads.stories-CEKi9p48.js → casing-loads.stories-C4UBI5Xe.js} +2 -2
- package/dist/storybook/assets/{cell.stories-B0IK4EXk.js → cell.stories-BSxt9Uy7.js} +2 -2
- package/dist/storybook/assets/check-box-DPLaOkRR.js +13 -0
- package/dist/storybook/assets/{check-box.stories-C_7Z7Ss6.js → check-box.stories-DfbWw6mD.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-D7npaoui.js → chunk-HLWAVYOI-DrFFqdeg.js} +1 -1
- package/dist/storybook/assets/{color-DCR_IQPE.js → color-Cj3Jrfqu.js} +2 -2
- package/dist/storybook/assets/{dialog-Di8hNunM.js → dialog-BelCA1mt.js} +1 -1
- package/dist/storybook/assets/drawer-DOWJp9T4.js +3 -0
- package/dist/storybook/assets/drawer-DhrjYsQu.css +1 -0
- package/dist/storybook/assets/{drawer.stories-B-PsNJJ6.js → drawer.stories-DcjyDHEs.js} +1 -1
- package/dist/storybook/assets/{empty.stories-BVYXwvpa.js → empty.stories-DcwF0pkK.js} +1 -1
- package/dist/storybook/assets/{field.stories-B9p9nBgY.js → field.stories-DUGMwi1O.js} +1 -1
- package/dist/storybook/assets/file-button.stories-CU2pZcEO.js +22 -0
- package/dist/storybook/assets/file-input-X3BnZaHk.js +13 -0
- package/dist/storybook/assets/{file-input.stories-Jrdw5k-s.js → file-input.stories-CWD5XYE9.js} +1 -1
- package/dist/storybook/assets/{flex.stories-BEXf0VqI.js → flex.stories-BhvJpHpN.js} +1 -1
- package/dist/storybook/assets/footer.stories-CMQkKB8p.js +3 -0
- package/dist/storybook/assets/form.stories-CX1WxUVL.js +49 -0
- package/dist/storybook/assets/formation.stories-DdQ8gl9A.js +74 -0
- package/dist/storybook/assets/helpers-JJxzGegQ.js +1 -0
- package/dist/storybook/assets/iframe-BGmrP0sW.js +2 -0
- package/dist/storybook/assets/index-C2sXcduN.js +1 -0
- package/dist/storybook/assets/{index-CEjEvyl9.js → index-DugqEjCI.js} +47 -47
- package/dist/storybook/assets/input-DD7t4kHm.css +1 -0
- package/dist/storybook/assets/input-DTXbDJaL.js +1 -0
- package/dist/storybook/assets/{input-group.stories-D7nvlp0S.js → input-group.stories-Bqx8op1f.js} +2 -2
- package/dist/storybook/assets/{input-validation-Cpjs6Oco.js → input-validation-f5uEIzl2.js} +2 -2
- package/dist/storybook/assets/{input.stories-BruLeJ44.js → input.stories-FKl0qVhm.js} +1 -1
- package/dist/storybook/assets/{inputs-B0fHrXlB.js → inputs-CeRKE4Lz.js} +2 -2
- package/dist/storybook/assets/{layout-forms-Ck78vgFh.js → layout-forms-BxYHgSuN.js} +4 -4
- package/dist/storybook/assets/{layout-general-BV8ErZlY.js → layout-general-GRQFrkfR.js} +1 -1
- package/dist/storybook/assets/{list-yVTOdmpX.js → list-bKpz6I9Q.js} +1 -1
- package/dist/storybook/assets/{list.stories-ChqQXY5M.js → list.stories-Cgmt29Wv.js} +1 -1
- package/dist/storybook/assets/{list.stories-data-Iq66w9oH.js → list.stories-data-D_Aj3AN4.js} +1 -1
- package/dist/storybook/assets/{loader.stories-DM7ZJBgz.js → loader.stories-pS8zRM4u.js} +1 -1
- package/dist/storybook/assets/{lodash-BHd_uQHh.js → lodash-c4VUpsOs.js} +2 -2
- package/dist/storybook/assets/menu.stories-data-CQ59XhzU.js +1 -0
- package/dist/storybook/assets/{menu.stories-mt3LwVCk.js → menu.stories-xWX80Eh2.js} +1 -1
- package/dist/storybook/assets/message-Cl3kn7ZD.css +1 -0
- package/dist/storybook/assets/message-Y48EomV-.js +1 -0
- package/dist/storybook/assets/{message.stories-DEMcK-wa.js → message.stories-r_UlbshI.js} +1 -1
- package/dist/storybook/assets/meta-content-DWZbURV2.js +9 -0
- package/dist/storybook/assets/meta-content-DnZPPeTF.css +1 -0
- package/dist/storybook/assets/{modal.stories-Benu2pYo.js → modal.stories-BcqAhYEy.js} +2 -2
- package/dist/storybook/assets/number-input-CEoWDcRg.js +16 -0
- package/dist/storybook/assets/number-input.stories-UJVpFqsh.js +110 -0
- package/dist/storybook/assets/option-dropdown.stories-CIvqMhQ3.js +52 -0
- package/dist/storybook/assets/{padding-and-spacing-Tv64UDVi.js → padding-and-spacing-D6XbiS3K.js} +1 -1
- package/dist/storybook/assets/{page.stories-Cse3cMsO.js → page.stories-DnCh8h8y.js} +1 -1
- package/dist/storybook/assets/{pagination-DXnrsBZs.js → pagination-D6pYWeQM.js} +1 -1
- package/dist/storybook/assets/{pagination.stories-DKSBeVH-.js → pagination.stories-ItfGvzb-.js} +2 -2
- package/dist/storybook/assets/{pop-confirm.stories-Dhid1FK8.js → pop-confirm.stories-DCpooB2O.js} +1 -1
- package/dist/storybook/assets/{popover-CzZdWNnB.js → popover-rq33c1W2.js} +1 -1
- package/dist/storybook/assets/popover.stories-B4sQDryP.js +10 -0
- package/dist/storybook/assets/{preview-DV63XeY-.js → preview-C0zm9b3L.js} +2 -2
- package/dist/storybook/assets/{preview-C4UROPMn.js → preview-DGngQ_J0.js} +2 -2
- package/dist/storybook/assets/projects.stories-Co_WnKSx.js +47 -0
- package/dist/storybook/assets/radio-button-C4ljBRED.js +13 -0
- package/dist/storybook/assets/{radio-button.stories-CGJnfCk-.js → radio-button.stories-BzyW2CtK.js} +2 -2
- package/dist/storybook/assets/{reservoirs.stories-CZme5ZCc.js → reservoirs.stories-FQuUA3DK.js} +2 -2
- package/dist/storybook/assets/{rich-text-input-DPMWElGY.css → rich-text-input-dDjxXFl-.css} +1 -1
- package/dist/storybook/assets/{rich-text-input.stories-a2GSF6vM.js → rich-text-input.stories-B5srzxDu.js} +44 -44
- package/dist/storybook/assets/{row.stories-UAENUT5Q.js → row.stories-C1XgB_82.js} +2 -2
- package/dist/storybook/assets/select-H-9tdhwc.css +1 -0
- package/dist/storybook/assets/select-V2ZNp3Pv.js +61 -0
- package/dist/storybook/assets/select.input-CJed_LLR.js +1 -0
- package/dist/storybook/assets/{select.stories-Bj6BwvfZ.js → select.stories-CV9h5z0E.js} +2 -2
- package/dist/storybook/assets/{side-bar-CKbHPgIV.js → side-bar-CSx5wI-k.js} +4 -4
- package/dist/storybook/assets/side-bar-auov230-.css +1 -0
- package/dist/storybook/assets/{side-bar.stories-MUj_dj1F.js → side-bar.stories-M6FsuCrQ.js} +1 -1
- package/dist/storybook/assets/{site.stories-CRc-gQlK.js → site.stories-ZGohyW6Z.js} +2 -2
- package/dist/storybook/assets/slider-C7vnj_3M.js +27 -0
- package/dist/storybook/assets/{slider.stories-Cd0rLfHP.js → slider.stories-BzBb3PkP.js} +1 -1
- package/dist/storybook/assets/{smart-upload-modal.stories-BStZdEeo.js → smart-upload-modal.stories-Dn7dIsu1.js} +1 -1
- package/dist/storybook/assets/{spacer.stories-CHEZdgDM.js → spacer.stories-BBTt2LdE.js} +1 -1
- package/dist/storybook/assets/table-C9uAiJu6.css +1 -0
- package/dist/storybook/assets/table-iMn5OU9-.js +86 -0
- package/dist/storybook/assets/{table.stories-CvFBGBd6.js → table.stories-CIsR2u2M.js} +2 -2
- package/dist/storybook/assets/table.stories-data-D52aKMY1.js +1 -0
- package/dist/storybook/assets/tabs-BoToLVEP.js +13 -0
- package/dist/storybook/assets/tabs.stories-B52iEaHf.js +30 -0
- package/dist/storybook/assets/textarea-D6ltcKhz.js +13 -0
- package/dist/storybook/assets/textarea-H-YTEwr8.css +1 -0
- package/dist/storybook/assets/{textarea.stories-aRLEoDHg.js → textarea.stories-CJ-Oqytp.js} +1 -1
- package/dist/storybook/assets/{title.stories-DvTVQphz.js → title.stories-BhbnN3vD.js} +2 -2
- package/dist/storybook/assets/{toaster-BNO0suPv.js → toaster-BoBcvmf9.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-Dxg5K32_.js → toaster.stories-HO4VBTy-.js} +1 -1
- package/dist/storybook/assets/toggle-BbFVf61v.js +13 -0
- package/dist/storybook/assets/{toggle.stories-mjk0JIle.js → toggle.stories-qTHFTXxI.js} +1 -1
- package/dist/storybook/assets/{tooltip.test-case.stories-i9YQqba1.js → tooltip.test-case.stories-CHibN8rC.js} +1 -1
- package/dist/storybook/assets/{top-bar-C_tn2Pc5.js → top-bar-DkXSzzqt.js} +1 -1
- package/dist/storybook/assets/{top-bar.stories-B2a-RgK-.js → top-bar.stories-HDmWT243.js} +1 -1
- package/dist/storybook/assets/{top-bar.testcase.stories-DoPEAMYc.js → top-bar.testcase.stories-DfmrkEpT.js} +1 -1
- package/dist/storybook/assets/{tree.stories-6UHASEZu.js → tree.stories-feLUcTtm.js} +1 -1
- package/dist/storybook/assets/{types-UmZ4Y_CR.js → types-Dx2TtIG9.js} +1 -1
- package/dist/storybook/assets/unit-input.stories-DCAfSaYS.js +316 -0
- package/dist/storybook/assets/unit-table.stories-M7pzrM4S.js +152 -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/sb-addons/interactions-2/manager-bundle.js +52 -52
- package/dist/storybook/sb-manager/globals-runtime.js +7164 -7166
- package/dist/storybook/sb-manager/runtime.js +1110 -1111
- package/dist/storybook/sb-preview/runtime.js +1485 -1483
- package/package.json +3 -3
- package/dist/storybook/assets/actions-CHgr8eL8.js +0 -27
- package/dist/storybook/assets/button-BpFIj2Vw.css +0 -1
- package/dist/storybook/assets/button-VxhoNhrV.js +0 -1
- package/dist/storybook/assets/check-box-BtCGePRy.js +0 -1
- package/dist/storybook/assets/drawer-BhuWxI7V.js +0 -3
- package/dist/storybook/assets/drawer-v-B4gIC0.css +0 -1
- package/dist/storybook/assets/file-button.stories-FOaiNPt-.js +0 -10
- package/dist/storybook/assets/file-input-BpMtsZ2S.js +0 -1
- package/dist/storybook/assets/footer.stories-Bl3gEVhY.js +0 -3
- package/dist/storybook/assets/form.stories-JRw9Y_sV.js +0 -49
- package/dist/storybook/assets/formation.stories-DNNvbCAo.js +0 -74
- package/dist/storybook/assets/iframe-DNtoVJNq.js +0 -2
- package/dist/storybook/assets/index-C_B8BHJN.js +0 -1
- package/dist/storybook/assets/input-BW9trNAW.js +0 -1
- package/dist/storybook/assets/input-WN7SK0fa.css +0 -1
- package/dist/storybook/assets/menu.stories-data-DeDnsKpk.js +0 -1
- package/dist/storybook/assets/message-BYzRg8Ae.js +0 -1
- package/dist/storybook/assets/message-nw5WQq6S.css +0 -1
- package/dist/storybook/assets/meta-content-B1HsACrT.css +0 -1
- package/dist/storybook/assets/meta-content-cbHGvPJ7.js +0 -9
- package/dist/storybook/assets/number-input-FjN2w5Zq.js +0 -4
- package/dist/storybook/assets/number-input.stories-CjeUb5EQ.js +0 -166
- package/dist/storybook/assets/option-dropdown.stories-CoLsSS95.js +0 -34
- package/dist/storybook/assets/popover.stories-BKImRt9k.js +0 -10
- package/dist/storybook/assets/projects.stories-BfMSNrkX.js +0 -47
- package/dist/storybook/assets/radio-button-YBwYcMaM.js +0 -1
- package/dist/storybook/assets/select-Br1k0mOD.js +0 -40
- package/dist/storybook/assets/select-Byh1FIvP.css +0 -1
- package/dist/storybook/assets/select.input-DIKP56UZ.js +0 -1
- package/dist/storybook/assets/side-bar-DvwMCSK0.css +0 -1
- package/dist/storybook/assets/slider-DAramr8j.js +0 -31
- package/dist/storybook/assets/table-CyYpP6Fs.css +0 -1
- package/dist/storybook/assets/table-DMsE4ks-.js +0 -86
- package/dist/storybook/assets/table.stories-data-CR9VpXHs.js +0 -1
- package/dist/storybook/assets/tabs-CAZ_dHGK.js +0 -1
- package/dist/storybook/assets/tabs.stories-DXcDAqB2.js +0 -30
- package/dist/storybook/assets/textarea-BV7xWEdt.js +0 -1
- package/dist/storybook/assets/textarea-DapBtyYV.css +0 -1
- package/dist/storybook/assets/toggle-CBpNgTrm.js +0 -1
- package/dist/storybook/assets/unit-input.stories-s45csxB3.js +0 -353
- package/dist/storybook/assets/unit-table.stories-DtWOiSyD.js +0 -152
package/dist/index.js
CHANGED
|
@@ -15,8 +15,8 @@ import React__default, { useContext, isValidElement, useState, useRef, useEffect
|
|
|
15
15
|
import * as PropTypes from "prop-types";
|
|
16
16
|
import PropTypes__default from "prop-types";
|
|
17
17
|
import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
18
|
+
import { noop as noop$3, set, get as get$2, isString as isString$3, isNumber as isNumber$1, isBoolean as isBoolean$2, isFunction as isFunction$3, isEmpty, isArray as isArray$1, toNumber, debounce as debounce$2, isObject as isObject$5, isEqual as isEqual$4 } from "lodash";
|
|
19
|
+
import { roundToFixed, validateNumber, cleanNumStr, unitFromQuantity, isValueWithUnit, withUnit, convertSamePrecision, getValue as getValue$1, getUnit, KNOWN_UNITS, split as split$1, label as label$b, altUnitsList, getUnitsForQuantity, convertAndGetValue, isScientificStringNum, roundToPrecision, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
|
|
20
20
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
21
21
|
function getDefaultExportFromCjs(x2) {
|
|
22
22
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
@@ -2207,7 +2207,7 @@ var index = function() {
|
|
|
2207
2207
|
return ResizeObserver$2;
|
|
2208
2208
|
}();
|
|
2209
2209
|
var isProduction$3 = process.env.NODE_ENV === "production";
|
|
2210
|
-
function warning$
|
|
2210
|
+
function warning$i(condition, message2) {
|
|
2211
2211
|
if (!isProduction$3) {
|
|
2212
2212
|
if (condition) {
|
|
2213
2213
|
return;
|
|
@@ -2465,7 +2465,7 @@ function useTrackElements(_ref) {
|
|
|
2465
2465
|
var enabled = _ref.enabled, onChange = _ref.onChange, environment2 = _ref.environment, ResizeObserverPolyfill = _ref.ResizeObserverPolyfill, overflowContainer = _ref.overflowContainer, triggerOption = _ref.triggerOption;
|
|
2466
2466
|
var ResizeObserver2 = getResizeObserver(environment2, ResizeObserverPolyfill);
|
|
2467
2467
|
useEffect(function() {
|
|
2468
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
2468
|
+
process.env.NODE_ENV !== "production" ? warning$i(ResizeObserver2, "This browser does not support ResizeObserver out of the box. We recommend to add a polyfill in order to utilize the full capabilities of react-laag. See: https://github.com/everweij/react-laag#resize-observer") : void 0;
|
|
2469
2469
|
}, [ResizeObserver2]);
|
|
2470
2470
|
var arrowRef = useRef(null);
|
|
2471
2471
|
var hasTriggerOption = Boolean(triggerOption);
|
|
@@ -2586,7 +2586,7 @@ function useTrackElements(_ref) {
|
|
|
2586
2586
|
if (!closestScrollContainerHasCorrectStyling) {
|
|
2587
2587
|
closestScrollContainer.style.position = "relative";
|
|
2588
2588
|
}
|
|
2589
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
2589
|
+
process.env.NODE_ENV !== "production" ? warning$i(closestScrollContainerHasCorrectStyling, `react-laag: Set the 'position' style of the nearest scroll-container to 'relative', 'absolute' or 'fixed', or set the 'overflowContainer' prop to true. This is needed in order to position the layer properly. Currently the scroll-container is positioned: "` + position3 + '". For now, "position: relative;" is added for you, but this behavior might be removed in the future. Visit https://react-laag.com/docs/#position-relative for more info.') : void 0;
|
|
2590
2590
|
}
|
|
2591
2591
|
return scrollContainers;
|
|
2592
2592
|
}, [environment2, overflowContainer]);
|
|
@@ -2684,7 +2684,7 @@ function useGroup(_ref2) {
|
|
|
2684
2684
|
return possibleRegisterFn({
|
|
2685
2685
|
shouldCloseWhenClickedOutside,
|
|
2686
2686
|
closeChild: function closeChild() {
|
|
2687
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
2687
|
+
process.env.NODE_ENV !== "production" ? warning$i(onParentClose, "react-laag: You are using useLayer() in a nested setting but forgot to set the 'onParentClose()' callback in the options. This could lead to unexpected behavior.") : void 0;
|
|
2688
2688
|
if (onParentClose) {
|
|
2689
2689
|
onParentClose();
|
|
2690
2690
|
}
|
|
@@ -3709,12 +3709,12 @@ function useHover(_temp) {
|
|
|
3709
3709
|
}];
|
|
3710
3710
|
}
|
|
3711
3711
|
const tooltip = "_tooltip_wli9z_1";
|
|
3712
|
-
const error$
|
|
3713
|
-
const warning$
|
|
3712
|
+
const error$e = "_error_wli9z_15";
|
|
3713
|
+
const warning$h = "_warning_wli9z_19";
|
|
3714
3714
|
const styles$Q = {
|
|
3715
3715
|
tooltip,
|
|
3716
|
-
error: error$
|
|
3717
|
-
warning: warning$
|
|
3716
|
+
error: error$e,
|
|
3717
|
+
warning: warning$h
|
|
3718
3718
|
};
|
|
3719
3719
|
const TooltipLayer = ({
|
|
3720
3720
|
text: text2 = "",
|
|
@@ -3989,34 +3989,36 @@ const AccordionWithDefaultToggle = ({
|
|
|
3989
3989
|
/* @__PURE__ */ jsx("div", { className: cx$2(styles$O.bordered, padding2 ? styles$O.padding : ""), children: content2 })
|
|
3990
3990
|
] });
|
|
3991
3991
|
};
|
|
3992
|
-
const inputInTable$b = "
|
|
3993
|
-
const
|
|
3994
|
-
const
|
|
3995
|
-
const
|
|
3996
|
-
const
|
|
3997
|
-
const
|
|
3998
|
-
const
|
|
3999
|
-
const
|
|
4000
|
-
const
|
|
4001
|
-
const
|
|
4002
|
-
const
|
|
4003
|
-
const
|
|
4004
|
-
const
|
|
4005
|
-
const
|
|
4006
|
-
const
|
|
4007
|
-
const
|
|
4008
|
-
const
|
|
4009
|
-
const
|
|
4010
|
-
const
|
|
4011
|
-
const
|
|
4012
|
-
const
|
|
4013
|
-
const
|
|
4014
|
-
const inverted$1 = "
|
|
4015
|
-
const groupOrderFirst$4 = "
|
|
4016
|
-
const groupOrderMiddle$4 = "
|
|
4017
|
-
const groupOrderLast$4 = "
|
|
3992
|
+
const inputInTable$b = "_inputInTable_1k3a0_1";
|
|
3993
|
+
const error$d = "_error_1k3a0_7";
|
|
3994
|
+
const warning$g = "_warning_1k3a0_7";
|
|
3995
|
+
const inputHover$b = "_inputHover_1k3a0_13";
|
|
3996
|
+
const inputFocus$b = "_inputFocus_1k3a0_18";
|
|
3997
|
+
const inputError$b = "_inputError_1k3a0_25";
|
|
3998
|
+
const inputWarning$b = "_inputWarning_1k3a0_26";
|
|
3999
|
+
const inputDisabled$b = "_inputDisabled_1k3a0_61";
|
|
4000
|
+
const hideScrollbars$b = "_hideScrollbars_1k3a0_67";
|
|
4001
|
+
const button$3 = "_button_1k3a0_100";
|
|
4002
|
+
const active$8 = "_active_1k3a0_135";
|
|
4003
|
+
const green$1 = "_green_1k3a0_135";
|
|
4004
|
+
const red$1 = "_red_1k3a0_135";
|
|
4005
|
+
const orange$1 = "_orange_1k3a0_135";
|
|
4006
|
+
const icon$5 = "_icon_1k3a0_147";
|
|
4007
|
+
const iconOnly = "_iconOnly_1k3a0_153";
|
|
4008
|
+
const basic = "_basic_1k3a0_163";
|
|
4009
|
+
const muted$2 = "_muted_1k3a0_169";
|
|
4010
|
+
const disabled$9 = "_disabled_1k3a0_188";
|
|
4011
|
+
const small$c = "_small_1k3a0_198";
|
|
4012
|
+
const pill = "_pill_1k3a0_203";
|
|
4013
|
+
const round = "_round_1k3a0_204";
|
|
4014
|
+
const inverted$1 = "_inverted_1k3a0_310";
|
|
4015
|
+
const groupOrderFirst$4 = "_groupOrderFirst_1k3a0_340";
|
|
4016
|
+
const groupOrderMiddle$4 = "_groupOrderMiddle_1k3a0_341";
|
|
4017
|
+
const groupOrderLast$4 = "_groupOrderLast_1k3a0_342";
|
|
4018
4018
|
const buttonStyles = {
|
|
4019
4019
|
inputInTable: inputInTable$b,
|
|
4020
|
+
error: error$d,
|
|
4021
|
+
warning: warning$g,
|
|
4020
4022
|
inputHover: inputHover$b,
|
|
4021
4023
|
inputFocus: inputFocus$b,
|
|
4022
4024
|
inputError: inputError$b,
|
|
@@ -4036,8 +4038,6 @@ const buttonStyles = {
|
|
|
4036
4038
|
small: small$c,
|
|
4037
4039
|
pill,
|
|
4038
4040
|
round,
|
|
4039
|
-
error: error$8,
|
|
4040
|
-
warning: warning$b,
|
|
4041
4041
|
inverted: inverted$1,
|
|
4042
4042
|
groupOrderFirst: groupOrderFirst$4,
|
|
4043
4043
|
groupOrderMiddle: groupOrderMiddle$4,
|
|
@@ -4269,7 +4269,7 @@ const Option$2 = ({
|
|
|
4269
4269
|
inline: inline2,
|
|
4270
4270
|
title: title2,
|
|
4271
4271
|
upload,
|
|
4272
|
-
onChange,
|
|
4272
|
+
onChange = noop$3,
|
|
4273
4273
|
testId,
|
|
4274
4274
|
component: Component2 = "a"
|
|
4275
4275
|
}) => {
|
|
@@ -4285,6 +4285,22 @@ const Option$2 = ({
|
|
|
4285
4285
|
}
|
|
4286
4286
|
onClick == null ? void 0 : onClick(evt);
|
|
4287
4287
|
};
|
|
4288
|
+
const handleFileChange = (evt) => {
|
|
4289
|
+
const { files } = (evt == null ? void 0 : evt.target) ?? {};
|
|
4290
|
+
if (files) {
|
|
4291
|
+
const customEvent = {
|
|
4292
|
+
...evt,
|
|
4293
|
+
target: {
|
|
4294
|
+
...evt.target,
|
|
4295
|
+
value: files,
|
|
4296
|
+
name: evt.target.name,
|
|
4297
|
+
files
|
|
4298
|
+
}
|
|
4299
|
+
};
|
|
4300
|
+
onChange == null ? void 0 : onChange(customEvent);
|
|
4301
|
+
close2 == null ? void 0 : close2();
|
|
4302
|
+
}
|
|
4303
|
+
};
|
|
4288
4304
|
return /* @__PURE__ */ jsxs(
|
|
4289
4305
|
Component2,
|
|
4290
4306
|
{
|
|
@@ -4306,10 +4322,7 @@ const Option$2 = ({
|
|
|
4306
4322
|
{
|
|
4307
4323
|
type: "file",
|
|
4308
4324
|
className: styles$L.fileInput,
|
|
4309
|
-
onChange:
|
|
4310
|
-
onChange == null ? void 0 : onChange(evt.target.files);
|
|
4311
|
-
close2 == null ? void 0 : close2();
|
|
4312
|
-
}
|
|
4325
|
+
onChange: handleFileChange
|
|
4313
4326
|
}
|
|
4314
4327
|
),
|
|
4315
4328
|
/* @__PURE__ */ jsx("span", { className: styles$L.label, title: `${title2 || label2}`, children: label2 }),
|
|
@@ -6478,8 +6491,8 @@ const center = "_center_11ofj_4";
|
|
|
6478
6491
|
const muted$1 = "_muted_11ofj_7";
|
|
6479
6492
|
const faint = "_faint_11ofj_10";
|
|
6480
6493
|
const success$1 = "_success_11ofj_13";
|
|
6481
|
-
const warning$
|
|
6482
|
-
const error$
|
|
6494
|
+
const warning$f = "_warning_11ofj_16";
|
|
6495
|
+
const error$c = "_error_11ofj_19";
|
|
6483
6496
|
const small$9 = "_small_11ofj_22";
|
|
6484
6497
|
const link$1 = "_link_11ofj_25";
|
|
6485
6498
|
const styles$F = {
|
|
@@ -6488,8 +6501,8 @@ const styles$F = {
|
|
|
6488
6501
|
muted: muted$1,
|
|
6489
6502
|
faint,
|
|
6490
6503
|
success: success$1,
|
|
6491
|
-
warning: warning$
|
|
6492
|
-
error: error$
|
|
6504
|
+
warning: warning$f,
|
|
6505
|
+
error: error$c,
|
|
6493
6506
|
small: small$9,
|
|
6494
6507
|
link: link$1
|
|
6495
6508
|
};
|
|
@@ -6684,33 +6697,37 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6684
6697
|
}
|
|
6685
6698
|
);
|
|
6686
6699
|
};
|
|
6687
|
-
const inputInTable$a = "
|
|
6688
|
-
const
|
|
6689
|
-
const
|
|
6690
|
-
const
|
|
6691
|
-
const
|
|
6692
|
-
const
|
|
6693
|
-
const
|
|
6694
|
-
const
|
|
6695
|
-
const
|
|
6696
|
-
const
|
|
6697
|
-
const
|
|
6698
|
-
const
|
|
6699
|
-
const
|
|
6700
|
-
const
|
|
6701
|
-
const
|
|
6702
|
-
const
|
|
6703
|
-
const
|
|
6704
|
-
const
|
|
6705
|
-
const
|
|
6706
|
-
const
|
|
6707
|
-
const
|
|
6708
|
-
const
|
|
6709
|
-
const
|
|
6710
|
-
const
|
|
6711
|
-
const
|
|
6700
|
+
const inputInTable$a = "_inputInTable_13n8n_1";
|
|
6701
|
+
const error$b = "_error_13n8n_7";
|
|
6702
|
+
const warning$e = "_warning_13n8n_7";
|
|
6703
|
+
const inputHover$a = "_inputHover_13n8n_13";
|
|
6704
|
+
const inputFocus$a = "_inputFocus_13n8n_18";
|
|
6705
|
+
const inputError$a = "_inputError_13n8n_25";
|
|
6706
|
+
const inputWarning$a = "_inputWarning_13n8n_26";
|
|
6707
|
+
const inputDisabled$a = "_inputDisabled_13n8n_61";
|
|
6708
|
+
const hideScrollbars$a = "_hideScrollbars_13n8n_67";
|
|
6709
|
+
const inline$2 = "_inline_13n8n_90";
|
|
6710
|
+
const left$2 = "_left_13n8n_93";
|
|
6711
|
+
const right$6 = "_right_13n8n_96";
|
|
6712
|
+
const fixed$1 = "_fixed_13n8n_99";
|
|
6713
|
+
const border$1 = "_border_13n8n_111";
|
|
6714
|
+
const shadow = "_shadow_13n8n_117";
|
|
6715
|
+
const drawerContent = "_drawerContent_13n8n_120";
|
|
6716
|
+
const isResizing = "_isResizing_13n8n_132";
|
|
6717
|
+
const toggleButton = "_toggleButton_13n8n_143";
|
|
6718
|
+
const top = "_top_13n8n_156";
|
|
6719
|
+
const bottom = "_bottom_13n8n_159";
|
|
6720
|
+
const toggleButtonOpen = "_toggleButtonOpen_13n8n_162";
|
|
6721
|
+
const tabs$1 = "_tabs_13n8n_165";
|
|
6722
|
+
const tab$1 = "_tab_13n8n_165";
|
|
6723
|
+
const active$4 = "_active_13n8n_197";
|
|
6724
|
+
const disabled$6 = "_disabled_13n8n_222";
|
|
6725
|
+
const tabsContent = "_tabsContent_13n8n_229";
|
|
6726
|
+
const resizeHandle = "_resizeHandle_13n8n_235";
|
|
6712
6727
|
const styles$C = {
|
|
6713
6728
|
inputInTable: inputInTable$a,
|
|
6729
|
+
error: error$b,
|
|
6730
|
+
warning: warning$e,
|
|
6714
6731
|
inputHover: inputHover$a,
|
|
6715
6732
|
inputFocus: inputFocus$a,
|
|
6716
6733
|
inputError: inputError$a,
|
|
@@ -8932,8 +8949,7 @@ const FileButton = ({
|
|
|
8932
8949
|
multi,
|
|
8933
8950
|
name: name2,
|
|
8934
8951
|
disabled: disabled2,
|
|
8935
|
-
onChange =
|
|
8936
|
-
},
|
|
8952
|
+
onChange = noop$3,
|
|
8937
8953
|
...buttonProps
|
|
8938
8954
|
}) => {
|
|
8939
8955
|
const disabledContext = useContext(DisabledContext);
|
|
@@ -8945,7 +8961,15 @@ const FileButton = ({
|
|
|
8945
8961
|
const handleChange = (evt) => {
|
|
8946
8962
|
var _a2;
|
|
8947
8963
|
const files = multi ? evt.target.files : (_a2 = evt.target.files) == null ? void 0 : _a2[0];
|
|
8948
|
-
|
|
8964
|
+
const customEvent = {
|
|
8965
|
+
...evt,
|
|
8966
|
+
target: {
|
|
8967
|
+
...evt.target,
|
|
8968
|
+
value: files,
|
|
8969
|
+
name: evt.target.name
|
|
8970
|
+
}
|
|
8971
|
+
};
|
|
8972
|
+
onChange(customEvent);
|
|
8949
8973
|
if (inputRef.current) {
|
|
8950
8974
|
inputRef.current.value = "";
|
|
8951
8975
|
}
|
|
@@ -8998,24 +9022,26 @@ const InputGroup = ({
|
|
|
8998
9022
|
}
|
|
8999
9023
|
);
|
|
9000
9024
|
};
|
|
9001
|
-
const inputInTable$9 = "
|
|
9002
|
-
const
|
|
9003
|
-
const
|
|
9004
|
-
const
|
|
9005
|
-
const
|
|
9006
|
-
const
|
|
9007
|
-
const
|
|
9008
|
-
const
|
|
9009
|
-
const
|
|
9010
|
-
const
|
|
9011
|
-
const
|
|
9012
|
-
const
|
|
9013
|
-
const right$5 = "
|
|
9014
|
-
const groupOrderFirst$3 = "
|
|
9015
|
-
const groupOrderMiddle$3 = "
|
|
9016
|
-
const groupOrderLast$3 = "
|
|
9025
|
+
const inputInTable$9 = "_inputInTable_rhzw6_1";
|
|
9026
|
+
const error$a = "_error_rhzw6_7";
|
|
9027
|
+
const warning$d = "_warning_rhzw6_7";
|
|
9028
|
+
const inputHover$9 = "_inputHover_rhzw6_13";
|
|
9029
|
+
const inputFocus$9 = "_inputFocus_rhzw6_18";
|
|
9030
|
+
const inputError$9 = "_inputError_rhzw6_25";
|
|
9031
|
+
const inputWarning$9 = "_inputWarning_rhzw6_26";
|
|
9032
|
+
const inputDisabled$9 = "_inputDisabled_rhzw6_61";
|
|
9033
|
+
const hideScrollbars$9 = "_hideScrollbars_rhzw6_67";
|
|
9034
|
+
const input$1 = "_input_rhzw6_1";
|
|
9035
|
+
const isInTable$3 = "_isInTable_rhzw6_100";
|
|
9036
|
+
const small$8 = "_small_rhzw6_124";
|
|
9037
|
+
const right$5 = "_right_rhzw6_170";
|
|
9038
|
+
const groupOrderFirst$3 = "_groupOrderFirst_rhzw6_173";
|
|
9039
|
+
const groupOrderMiddle$3 = "_groupOrderMiddle_rhzw6_174";
|
|
9040
|
+
const groupOrderLast$3 = "_groupOrderLast_rhzw6_175";
|
|
9017
9041
|
const styles$z = {
|
|
9018
9042
|
inputInTable: inputInTable$9,
|
|
9043
|
+
error: error$a,
|
|
9044
|
+
warning: warning$d,
|
|
9019
9045
|
inputHover: inputHover$9,
|
|
9020
9046
|
inputFocus: inputFocus$9,
|
|
9021
9047
|
inputError: inputError$9,
|
|
@@ -9025,8 +9051,6 @@ const styles$z = {
|
|
|
9025
9051
|
input: input$1,
|
|
9026
9052
|
isInTable: isInTable$3,
|
|
9027
9053
|
small: small$8,
|
|
9028
|
-
error: error$6,
|
|
9029
|
-
warning: warning$9,
|
|
9030
9054
|
right: right$5,
|
|
9031
9055
|
groupOrderFirst: groupOrderFirst$3,
|
|
9032
9056
|
groupOrderMiddle: groupOrderMiddle$3,
|
|
@@ -9039,8 +9063,7 @@ const Input$1 = forwardRef(
|
|
|
9039
9063
|
isInTable: isInTable2,
|
|
9040
9064
|
width: propWidth = void 0,
|
|
9041
9065
|
small: small2 = false,
|
|
9042
|
-
onChange =
|
|
9043
|
-
},
|
|
9066
|
+
onChange = noop$3,
|
|
9044
9067
|
placeholder: placeholder3 = "",
|
|
9045
9068
|
value = "",
|
|
9046
9069
|
onKeyPress = () => {
|
|
@@ -9172,8 +9195,7 @@ const FileInput = ({
|
|
|
9172
9195
|
multi,
|
|
9173
9196
|
name: name2,
|
|
9174
9197
|
width: width2,
|
|
9175
|
-
onChange =
|
|
9176
|
-
},
|
|
9198
|
+
onChange = noop$3,
|
|
9177
9199
|
testId
|
|
9178
9200
|
}) => {
|
|
9179
9201
|
const disabledContext = useContext(DisabledContext);
|
|
@@ -9186,7 +9208,15 @@ const FileInput = ({
|
|
|
9186
9208
|
const handleChange = (evt) => {
|
|
9187
9209
|
var _a2, _b, _c;
|
|
9188
9210
|
const files = multi ? (_a2 = evt == null ? void 0 : evt.target) == null ? void 0 : _a2.files : (_c = (_b = evt == null ? void 0 : evt.target) == null ? void 0 : _b.files) == null ? void 0 : _c[0];
|
|
9189
|
-
|
|
9211
|
+
const customEvent = {
|
|
9212
|
+
...evt,
|
|
9213
|
+
target: {
|
|
9214
|
+
...evt.target,
|
|
9215
|
+
value: files,
|
|
9216
|
+
name: evt.target.name
|
|
9217
|
+
}
|
|
9218
|
+
};
|
|
9219
|
+
onChange(customEvent);
|
|
9190
9220
|
if (inputRef.current) {
|
|
9191
9221
|
inputRef.current.value = "";
|
|
9192
9222
|
}
|
|
@@ -10856,7 +10886,7 @@ function isPlainObject$3(obj) {
|
|
|
10856
10886
|
}
|
|
10857
10887
|
return proto === baseProto;
|
|
10858
10888
|
}
|
|
10859
|
-
function warning$
|
|
10889
|
+
function warning$c(message2) {
|
|
10860
10890
|
if (typeof console !== "undefined" && typeof console.error === "function") {
|
|
10861
10891
|
console.error(message2);
|
|
10862
10892
|
}
|
|
@@ -10867,7 +10897,7 @@ function warning$8(message2) {
|
|
|
10867
10897
|
}
|
|
10868
10898
|
function verifyPlainObject(value, displayName, methodName) {
|
|
10869
10899
|
if (!isPlainObject$3(value)) {
|
|
10870
|
-
warning$
|
|
10900
|
+
warning$c(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
|
|
10871
10901
|
}
|
|
10872
10902
|
}
|
|
10873
10903
|
function wrapMapToPropsConstant(getConstant) {
|
|
@@ -10965,7 +10995,7 @@ function verify(selector, methodName, displayName) {
|
|
|
10965
10995
|
throw new Error("Unexpected value for " + methodName + " in " + displayName + ".");
|
|
10966
10996
|
} else if (methodName === "mapStateToProps" || methodName === "mapDispatchToProps") {
|
|
10967
10997
|
if (!Object.prototype.hasOwnProperty.call(selector, "dependsOnOwnProps")) {
|
|
10968
|
-
warning$
|
|
10998
|
+
warning$c("The selector for " + methodName + " of " + displayName + " did not specify a value for dependsOnOwnProps.");
|
|
10969
10999
|
}
|
|
10970
11000
|
}
|
|
10971
11001
|
}
|
|
@@ -11358,8 +11388,8 @@ function log(type, message2) {
|
|
|
11358
11388
|
}
|
|
11359
11389
|
(_console = console)[type].apply(_console, getFormattedMessage(message2));
|
|
11360
11390
|
}
|
|
11361
|
-
var warning$
|
|
11362
|
-
var error$
|
|
11391
|
+
var warning$b = log.bind(null, "warn");
|
|
11392
|
+
var error$9 = log.bind(null, "error");
|
|
11363
11393
|
function noop$1() {
|
|
11364
11394
|
}
|
|
11365
11395
|
function getOptions(shared2, fromBinding) {
|
|
@@ -11408,13 +11438,13 @@ var ErrorBoundary = function(_React$Component) {
|
|
|
11408
11438
|
var callbacks2 = _this.getCallbacks();
|
|
11409
11439
|
if (callbacks2.isDragging()) {
|
|
11410
11440
|
callbacks2.tryAbort();
|
|
11411
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
11441
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n An error was caught by our window 'error' event listener while a drag was occurring.\n The active drag has been aborted.\n ") : void 0;
|
|
11412
11442
|
}
|
|
11413
11443
|
var err = event.error;
|
|
11414
11444
|
if (err instanceof RbdInvariant) {
|
|
11415
11445
|
event.preventDefault();
|
|
11416
11446
|
if (process.env.NODE_ENV !== "production") {
|
|
11417
|
-
error$
|
|
11447
|
+
error$9(err.message);
|
|
11418
11448
|
}
|
|
11419
11449
|
}
|
|
11420
11450
|
};
|
|
@@ -11439,7 +11469,7 @@ var ErrorBoundary = function(_React$Component) {
|
|
|
11439
11469
|
_proto.componentDidCatch = function componentDidCatch(err) {
|
|
11440
11470
|
if (err instanceof RbdInvariant) {
|
|
11441
11471
|
if (process.env.NODE_ENV !== "production") {
|
|
11442
|
-
error$
|
|
11472
|
+
error$9(err.message);
|
|
11443
11473
|
}
|
|
11444
11474
|
this.setState({});
|
|
11445
11475
|
return;
|
|
@@ -13718,7 +13748,7 @@ function checkIndexes(insideDestination) {
|
|
|
13718
13748
|
var hasError = Boolean(errors2[index2]);
|
|
13719
13749
|
return hasError ? "[🔥" + index2 + "]" : "" + index2;
|
|
13720
13750
|
}).join(", ");
|
|
13721
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
13751
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Detected non-consecutive <Draggable /> indexes.\n\n (This can cause unexpected bugs)\n\n " + formatted + "\n ") : void 0;
|
|
13722
13752
|
}
|
|
13723
13753
|
function validateDimensions(critical, dimensions) {
|
|
13724
13754
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -14057,11 +14087,11 @@ var getExpiringAnnounce = function(announce) {
|
|
|
14057
14087
|
});
|
|
14058
14088
|
var result = function result2(message2) {
|
|
14059
14089
|
if (wasCalled) {
|
|
14060
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
14090
|
+
process.env.NODE_ENV !== "production" ? warning$b("Announcement already made. Not making a second announcement") : void 0;
|
|
14061
14091
|
return;
|
|
14062
14092
|
}
|
|
14063
14093
|
if (isExpired) {
|
|
14064
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
14094
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Announcements cannot be made asynchronously.\n Default message has already been announced.\n ") : void 0;
|
|
14065
14095
|
return;
|
|
14066
14096
|
}
|
|
14067
14097
|
wasCalled = true;
|
|
@@ -14625,7 +14655,7 @@ function shouldPublishUpdate(registry, dragging, entry) {
|
|
|
14625
14655
|
}
|
|
14626
14656
|
var home2 = registry.droppable.getById(entry.descriptor.droppableId);
|
|
14627
14657
|
if (home2.descriptor.mode !== "virtual") {
|
|
14628
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
14658
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n You are attempting to add or remove a Draggable [id: " + entry.descriptor.id + "]\n while a drag is occurring. This is only supported for virtual lists.\n\n See https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/patterns/virtual-lists.md\n ") : void 0;
|
|
14629
14659
|
return false;
|
|
14630
14660
|
}
|
|
14631
14661
|
return true;
|
|
@@ -14800,7 +14830,7 @@ var getPercentage = function(_ref) {
|
|
|
14800
14830
|
var startOfRange = _ref.startOfRange, endOfRange = _ref.endOfRange, current = _ref.current;
|
|
14801
14831
|
var range2 = endOfRange - startOfRange;
|
|
14802
14832
|
if (range2 === 0) {
|
|
14803
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
14833
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Detected distance range of 0 in the fluid auto scroller\n This is unexpected and would cause a divide by 0 issue.\n Not allowing an auto scroll\n ") : void 0;
|
|
14804
14834
|
return 0;
|
|
14805
14835
|
}
|
|
14806
14836
|
var currentInRange = current - startOfRange;
|
|
@@ -15416,18 +15446,18 @@ function findDragHandle(contextId, draggableId) {
|
|
|
15416
15446
|
var selector = "[" + dragHandle.contextId + '="' + contextId + '"]';
|
|
15417
15447
|
var possible = toArray(document.querySelectorAll(selector));
|
|
15418
15448
|
if (!possible.length) {
|
|
15419
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15449
|
+
process.env.NODE_ENV !== "production" ? warning$b('Unable to find any drag handles in the context "' + contextId + '"') : void 0;
|
|
15420
15450
|
return null;
|
|
15421
15451
|
}
|
|
15422
15452
|
var handle = find(possible, function(el2) {
|
|
15423
15453
|
return el2.getAttribute(dragHandle.draggableId) === draggableId;
|
|
15424
15454
|
});
|
|
15425
15455
|
if (!handle) {
|
|
15426
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15456
|
+
process.env.NODE_ENV !== "production" ? warning$b('Unable to find drag handle with id "' + draggableId + '" as no handle with a matching id was found') : void 0;
|
|
15427
15457
|
return null;
|
|
15428
15458
|
}
|
|
15429
15459
|
if (!isHtmlElement(handle)) {
|
|
15430
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15460
|
+
process.env.NODE_ENV !== "production" ? warning$b("drag handle needs to be a HTMLElement") : void 0;
|
|
15431
15461
|
return null;
|
|
15432
15462
|
}
|
|
15433
15463
|
return handle;
|
|
@@ -15689,7 +15719,7 @@ function useAnnouncer(contextId) {
|
|
|
15689
15719
|
el2.textContent = message2;
|
|
15690
15720
|
return;
|
|
15691
15721
|
}
|
|
15692
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15722
|
+
process.env.NODE_ENV !== "production" ? warning$b('\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n "' + message2 + '"\n ') : void 0;
|
|
15693
15723
|
}, []);
|
|
15694
15724
|
return announce;
|
|
15695
15725
|
}
|
|
@@ -15775,20 +15805,20 @@ var checkReactVersion = function(peerDepValue, actualValue) {
|
|
|
15775
15805
|
if (isSatisfied(peerDep, actual)) {
|
|
15776
15806
|
return;
|
|
15777
15807
|
}
|
|
15778
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15808
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n React version: [" + actual.raw + "]\n does not satisfy expected peer dependency version: [" + peerDep.raw + "]\n\n This can result in run time bugs, and even fatal crashes\n ") : void 0;
|
|
15779
15809
|
};
|
|
15780
15810
|
var suffix = "\n We expect a html5 doctype: <!doctype html>\n This is to ensure consistent browser layout and measurement\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md\n";
|
|
15781
15811
|
var checkDoctype = function(doc2) {
|
|
15782
15812
|
var doctype = doc2.doctype;
|
|
15783
15813
|
if (!doctype) {
|
|
15784
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15814
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n No <!doctype html> found.\n\n " + suffix + "\n ") : void 0;
|
|
15785
15815
|
return;
|
|
15786
15816
|
}
|
|
15787
15817
|
if (doctype.name.toLowerCase() !== "html") {
|
|
15788
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15818
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Unexpected <!doctype> found: (" + doctype.name + ")\n\n " + suffix + "\n ") : void 0;
|
|
15789
15819
|
}
|
|
15790
15820
|
if (doctype.publicId !== "") {
|
|
15791
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
15821
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Unexpected <!doctype> publicId found: (" + doctype.publicId + ")\n A html5 doctype does not have a publicId\n\n " + suffix + "\n ") : void 0;
|
|
15792
15822
|
}
|
|
15793
15823
|
};
|
|
15794
15824
|
function useDev(useHook) {
|
|
@@ -15802,7 +15832,7 @@ function useDevSetupWarning(fn, inputs) {
|
|
|
15802
15832
|
try {
|
|
15803
15833
|
fn();
|
|
15804
15834
|
} catch (e2) {
|
|
15805
|
-
error$
|
|
15835
|
+
error$9("\n A setup problem was encountered.\n\n > " + e2.message + "\n ");
|
|
15806
15836
|
}
|
|
15807
15837
|
}, inputs);
|
|
15808
15838
|
});
|
|
@@ -16569,7 +16599,7 @@ function getSelector(contextId) {
|
|
|
16569
16599
|
function findClosestDragHandleFromEvent(contextId, event) {
|
|
16570
16600
|
var target = event.target;
|
|
16571
16601
|
if (!isElement$1(target)) {
|
|
16572
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16602
|
+
process.env.NODE_ENV !== "production" ? warning$b("event.target must be a Element") : void 0;
|
|
16573
16603
|
return null;
|
|
16574
16604
|
}
|
|
16575
16605
|
var selector = getSelector(contextId);
|
|
@@ -16578,7 +16608,7 @@ function findClosestDragHandleFromEvent(contextId, event) {
|
|
|
16578
16608
|
return null;
|
|
16579
16609
|
}
|
|
16580
16610
|
if (!isHtmlElement(handle)) {
|
|
16581
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16611
|
+
process.env.NODE_ENV !== "production" ? warning$b("drag handle must be a HTMLElement") : void 0;
|
|
16582
16612
|
return null;
|
|
16583
16613
|
}
|
|
16584
16614
|
return handle;
|
|
@@ -16600,7 +16630,7 @@ function findDraggable(contextId, draggableId) {
|
|
|
16600
16630
|
return null;
|
|
16601
16631
|
}
|
|
16602
16632
|
if (!isHtmlElement(draggable$1)) {
|
|
16603
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16633
|
+
process.env.NODE_ENV !== "production" ? warning$b("Draggable element is not a HTMLElement") : void 0;
|
|
16604
16634
|
return null;
|
|
16605
16635
|
}
|
|
16606
16636
|
return draggable$1;
|
|
@@ -16612,13 +16642,13 @@ function _isActive(_ref) {
|
|
|
16612
16642
|
var expected = _ref.expected, phase = _ref.phase, isLockActive = _ref.isLockActive, shouldWarn = _ref.shouldWarn;
|
|
16613
16643
|
if (!isLockActive()) {
|
|
16614
16644
|
if (shouldWarn) {
|
|
16615
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16645
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Cannot perform action.\n The sensor no longer has an action lock.\n\n Tips:\n\n - Throw away your action handlers when forceStop() is called\n - Check actions.isActive() if you really need to\n ") : void 0;
|
|
16616
16646
|
}
|
|
16617
16647
|
return false;
|
|
16618
16648
|
}
|
|
16619
16649
|
if (expected !== phase) {
|
|
16620
16650
|
if (shouldWarn) {
|
|
16621
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16651
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Cannot perform action.\n The actions you used belong to an outdated phase\n\n Current phase: " + expected + "\n You called an action from outdated phase: " + phase + "\n\n Tips:\n\n - Do not use preDragActions actions after calling preDragActions.lift()\n ") : void 0;
|
|
16622
16652
|
}
|
|
16623
16653
|
return false;
|
|
16624
16654
|
}
|
|
@@ -16631,7 +16661,7 @@ function canStart(_ref2) {
|
|
|
16631
16661
|
}
|
|
16632
16662
|
var entry = registry.draggable.findById(draggableId);
|
|
16633
16663
|
if (!entry) {
|
|
16634
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16664
|
+
process.env.NODE_ENV !== "production" ? warning$b("Unable to find draggable with id: " + draggableId) : void 0;
|
|
16635
16665
|
return false;
|
|
16636
16666
|
}
|
|
16637
16667
|
if (!entry.options.isEnabled) {
|
|
@@ -16656,7 +16686,7 @@ function tryStart(_ref3) {
|
|
|
16656
16686
|
var entry = registry.draggable.getById(draggableId);
|
|
16657
16687
|
var el2 = findDraggable(contextId, entry.descriptor.id);
|
|
16658
16688
|
if (!el2) {
|
|
16659
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16689
|
+
process.env.NODE_ENV !== "production" ? warning$b("Unable to find draggable element with id: " + draggableId) : void 0;
|
|
16660
16690
|
return null;
|
|
16661
16691
|
}
|
|
16662
16692
|
if (sourceEvent && !entry.options.canDragInteractiveElements && isEventInInteractiveElement(el2, sourceEvent)) {
|
|
@@ -16950,7 +16980,7 @@ function App(props) {
|
|
|
16950
16980
|
}, [announce, autoScroller, dimensionMarshal, focusMarshal, getResponders, styleMarshal]);
|
|
16951
16981
|
if (process.env.NODE_ENV !== "production") {
|
|
16952
16982
|
if (lazyStoreRef.current && lazyStoreRef.current !== store) {
|
|
16953
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
16983
|
+
process.env.NODE_ENV !== "production" ? warning$b("unexpected store change") : void 0;
|
|
16954
16984
|
}
|
|
16955
16985
|
}
|
|
16956
16986
|
lazyStoreRef.current = store;
|
|
@@ -17071,7 +17101,7 @@ var isBodyScrollable = function isBodyScrollable2() {
|
|
|
17071
17101
|
if (isBoth(htmlOverflow, isVisible$1)) {
|
|
17072
17102
|
return false;
|
|
17073
17103
|
}
|
|
17074
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
17104
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n We have detected that your <body> element might be a scroll container.\n We have found no reliable way of detecting whether the <body> element is a scroll container.\n Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)\n\n Because we cannot determine if the <body> is a scroll container, and generally it is not one,\n we will be treating the <body> as *not* a scroll container\n\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/how-we-detect-scroll-containers.md\n ") : void 0;
|
|
17075
17105
|
return false;
|
|
17076
17106
|
};
|
|
17077
17107
|
var getClosestScrollable = function getClosestScrollable2(el2) {
|
|
@@ -17097,7 +17127,7 @@ var checkForNestedScrollContainers = function(scrollable) {
|
|
|
17097
17127
|
if (!anotherScrollParent) {
|
|
17098
17128
|
return;
|
|
17099
17129
|
}
|
|
17100
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
17130
|
+
process.env.NODE_ENV !== "production" ? warning$b("\n Droppable: unsupported nested scroll container detected.\n A Droppable can only have one scroll parent (which can be itself)\n Nested scroll containers are currently not supported.\n\n We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131\n ") : void 0;
|
|
17101
17131
|
};
|
|
17102
17132
|
var getScroll$1 = function(el2) {
|
|
17103
17133
|
return {
|
|
@@ -17378,7 +17408,7 @@ function useDroppablePublisher(args) {
|
|
|
17378
17408
|
registry.droppable.register(entry);
|
|
17379
17409
|
return function() {
|
|
17380
17410
|
if (whileDraggingRef.current) {
|
|
17381
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
17411
|
+
process.env.NODE_ENV !== "production" ? warning$b("Unsupported: changing the droppableId or type of a Droppable during a drag") : void 0;
|
|
17382
17412
|
dragStopped();
|
|
17383
17413
|
}
|
|
17384
17414
|
registry.droppable.unregister(entry);
|
|
@@ -17525,7 +17555,7 @@ var standard = [function placeholder(_ref4) {
|
|
|
17525
17555
|
if (ref2) {
|
|
17526
17556
|
return;
|
|
17527
17557
|
}
|
|
17528
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
17558
|
+
process.env.NODE_ENV !== "production" ? warning$b('\n Droppable setup issue [droppableId: "' + props.droppableId + '"]:\n DroppableProvided > placeholder could not be found.\n\n Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.\n More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md\n ') : void 0;
|
|
17529
17559
|
}];
|
|
17530
17560
|
var virtual = [function hasClone(_ref5) {
|
|
17531
17561
|
var props = _ref5.props;
|
|
@@ -18638,47 +18668,51 @@ var InfiniteScroll = (
|
|
|
18638
18668
|
return InfiniteScroll2;
|
|
18639
18669
|
}(Component$1)
|
|
18640
18670
|
);
|
|
18641
|
-
const inputInTable$8 = "
|
|
18642
|
-
const
|
|
18643
|
-
const
|
|
18644
|
-
const
|
|
18645
|
-
const
|
|
18646
|
-
const
|
|
18647
|
-
const
|
|
18648
|
-
const
|
|
18649
|
-
const
|
|
18650
|
-
const
|
|
18651
|
-
const
|
|
18652
|
-
const
|
|
18653
|
-
const
|
|
18654
|
-
const
|
|
18655
|
-
const
|
|
18656
|
-
const
|
|
18657
|
-
const
|
|
18658
|
-
const
|
|
18659
|
-
const
|
|
18660
|
-
const
|
|
18661
|
-
const
|
|
18662
|
-
const
|
|
18663
|
-
const
|
|
18664
|
-
const
|
|
18665
|
-
const
|
|
18666
|
-
const
|
|
18667
|
-
const
|
|
18668
|
-
const
|
|
18669
|
-
const
|
|
18670
|
-
const
|
|
18671
|
-
const
|
|
18672
|
-
const
|
|
18673
|
-
const
|
|
18674
|
-
const
|
|
18675
|
-
const
|
|
18676
|
-
const
|
|
18677
|
-
const
|
|
18678
|
-
const
|
|
18679
|
-
const
|
|
18671
|
+
const inputInTable$8 = "_inputInTable_dlqxe_1";
|
|
18672
|
+
const error$8 = "_error_dlqxe_7";
|
|
18673
|
+
const warning$a = "_warning_dlqxe_7";
|
|
18674
|
+
const inputHover$8 = "_inputHover_dlqxe_13";
|
|
18675
|
+
const inputFocus$8 = "_inputFocus_dlqxe_18";
|
|
18676
|
+
const inputError$8 = "_inputError_dlqxe_25";
|
|
18677
|
+
const inputWarning$8 = "_inputWarning_dlqxe_26";
|
|
18678
|
+
const inputDisabled$8 = "_inputDisabled_dlqxe_61";
|
|
18679
|
+
const hideScrollbars$8 = "_hideScrollbars_dlqxe_67";
|
|
18680
|
+
const header$1 = "_header_dlqxe_77";
|
|
18681
|
+
const headerTitle = "_headerTitle_dlqxe_77";
|
|
18682
|
+
const heading$3 = "_heading_dlqxe_78";
|
|
18683
|
+
const itemHeader = "_itemHeader_dlqxe_78";
|
|
18684
|
+
const narrow = "_narrow_dlqxe_81";
|
|
18685
|
+
const stickyHeader = "_stickyHeader_dlqxe_85";
|
|
18686
|
+
const title$3 = "_title_dlqxe_96";
|
|
18687
|
+
const name = "_name_dlqxe_102";
|
|
18688
|
+
const iconTooltipMargin = "_iconTooltipMargin_dlqxe_105";
|
|
18689
|
+
const bold = "_bold_dlqxe_108";
|
|
18690
|
+
const toggleNarrow = "_toggleNarrow_dlqxe_117";
|
|
18691
|
+
const drag$1 = "_drag_dlqxe_135";
|
|
18692
|
+
const list$1 = "_list_dlqxe_155";
|
|
18693
|
+
const bordered$1 = "_bordered_dlqxe_159";
|
|
18694
|
+
const item$4 = "_item_dlqxe_78";
|
|
18695
|
+
const action = "_action_dlqxe_192";
|
|
18696
|
+
const active$3 = "_active_dlqxe_195";
|
|
18697
|
+
const indented = "_indented_dlqxe_202";
|
|
18698
|
+
const disabled$5 = "_disabled_dlqxe_215";
|
|
18699
|
+
const label$6 = "_label_dlqxe_226";
|
|
18700
|
+
const details$2 = "_details_dlqxe_237";
|
|
18701
|
+
const metadata = "_metadata_dlqxe_238";
|
|
18702
|
+
const itemContent = "_itemContent_dlqxe_246";
|
|
18703
|
+
const indentIcon = "_indentIcon_dlqxe_253";
|
|
18704
|
+
const expandIcon = "_expandIcon_dlqxe_258";
|
|
18705
|
+
const expanded = "_expanded_dlqxe_265";
|
|
18706
|
+
const right$4 = "_right_dlqxe_268";
|
|
18707
|
+
const actions = "_actions_dlqxe_276";
|
|
18708
|
+
const scrollableList = "_scrollableList_dlqxe_281";
|
|
18709
|
+
const infiniteScrollContainer = "_infiniteScrollContainer_dlqxe_286";
|
|
18710
|
+
const hideScrollbar = "_hideScrollbar_dlqxe_67";
|
|
18711
|
+
const noPointerEvents = "_noPointerEvents_dlqxe_303";
|
|
18680
18712
|
const listStyles = {
|
|
18681
18713
|
inputInTable: inputInTable$8,
|
|
18714
|
+
error: error$8,
|
|
18715
|
+
warning: warning$a,
|
|
18682
18716
|
inputHover: inputHover$8,
|
|
18683
18717
|
inputFocus: inputFocus$8,
|
|
18684
18718
|
inputError: inputError$8,
|
|
@@ -19169,29 +19203,31 @@ const List = ({
|
|
|
19169
19203
|
}
|
|
19170
19204
|
);
|
|
19171
19205
|
};
|
|
19172
|
-
const inputInTable$7 = "
|
|
19173
|
-
const
|
|
19174
|
-
const
|
|
19175
|
-
const
|
|
19176
|
-
const
|
|
19177
|
-
const
|
|
19178
|
-
const
|
|
19179
|
-
const
|
|
19180
|
-
const
|
|
19181
|
-
const
|
|
19182
|
-
const
|
|
19183
|
-
const
|
|
19184
|
-
const
|
|
19185
|
-
const content$1 = "
|
|
19186
|
-
const heading$2 = "
|
|
19187
|
-
const icon$3 = "
|
|
19188
|
-
const dismiss$1 = "
|
|
19189
|
-
const absolute = "
|
|
19190
|
-
const legendToggle = "
|
|
19191
|
-
const detailsText = "
|
|
19192
|
-
const footer$1 = "
|
|
19206
|
+
const inputInTable$7 = "_inputInTable_1q2d1_1";
|
|
19207
|
+
const error$7 = "_error_1q2d1_7";
|
|
19208
|
+
const warning$9 = "_warning_1q2d1_7";
|
|
19209
|
+
const inputHover$7 = "_inputHover_1q2d1_13";
|
|
19210
|
+
const inputFocus$7 = "_inputFocus_1q2d1_18";
|
|
19211
|
+
const inputError$7 = "_inputError_1q2d1_25";
|
|
19212
|
+
const inputWarning$7 = "_inputWarning_1q2d1_26";
|
|
19213
|
+
const inputDisabled$7 = "_inputDisabled_1q2d1_61";
|
|
19214
|
+
const hideScrollbars$7 = "_hideScrollbars_1q2d1_67";
|
|
19215
|
+
const container$1 = "_container_1q2d1_83";
|
|
19216
|
+
const block$1 = "_block_1q2d1_101";
|
|
19217
|
+
const info = "_info_1q2d1_104";
|
|
19218
|
+
const success = "_success_1q2d1_108";
|
|
19219
|
+
const content$1 = "_content_1q2d1_120";
|
|
19220
|
+
const heading$2 = "_heading_1q2d1_124";
|
|
19221
|
+
const icon$3 = "_icon_1q2d1_131";
|
|
19222
|
+
const dismiss$1 = "_dismiss_1q2d1_139";
|
|
19223
|
+
const absolute = "_absolute_1q2d1_143";
|
|
19224
|
+
const legendToggle = "_legendToggle_1q2d1_155";
|
|
19225
|
+
const detailsText = "_detailsText_1q2d1_165";
|
|
19226
|
+
const footer$1 = "_footer_1q2d1_169";
|
|
19193
19227
|
const styles$s = {
|
|
19194
19228
|
inputInTable: inputInTable$7,
|
|
19229
|
+
error: error$7,
|
|
19230
|
+
warning: warning$9,
|
|
19195
19231
|
inputHover: inputHover$7,
|
|
19196
19232
|
inputFocus: inputFocus$7,
|
|
19197
19233
|
inputError: inputError$7,
|
|
@@ -19202,8 +19238,6 @@ const styles$s = {
|
|
|
19202
19238
|
block: block$1,
|
|
19203
19239
|
info,
|
|
19204
19240
|
success,
|
|
19205
|
-
warning: warning$6,
|
|
19206
|
-
error: error$4,
|
|
19207
19241
|
content: content$1,
|
|
19208
19242
|
heading: heading$2,
|
|
19209
19243
|
icon: icon$3,
|
|
@@ -19571,25 +19605,27 @@ const Page = ({
|
|
|
19571
19605
|
}
|
|
19572
19606
|
);
|
|
19573
19607
|
};
|
|
19574
|
-
const inputInTable$6 = "
|
|
19575
|
-
const
|
|
19576
|
-
const
|
|
19577
|
-
const
|
|
19578
|
-
const
|
|
19579
|
-
const
|
|
19580
|
-
const
|
|
19581
|
-
const
|
|
19582
|
-
const
|
|
19583
|
-
const
|
|
19584
|
-
const
|
|
19585
|
-
const
|
|
19586
|
-
const small$6 = "
|
|
19587
|
-
const right$3 = "
|
|
19588
|
-
const groupOrderFirst$1 = "
|
|
19589
|
-
const groupOrderMiddle$1 = "
|
|
19590
|
-
const groupOrderLast$1 = "
|
|
19608
|
+
const inputInTable$6 = "_inputInTable_1nzfr_1";
|
|
19609
|
+
const error$6 = "_error_1nzfr_7";
|
|
19610
|
+
const warning$8 = "_warning_1nzfr_7";
|
|
19611
|
+
const inputHover$6 = "_inputHover_1nzfr_13";
|
|
19612
|
+
const inputFocus$6 = "_inputFocus_1nzfr_18";
|
|
19613
|
+
const inputError$6 = "_inputError_1nzfr_25";
|
|
19614
|
+
const inputWarning$6 = "_inputWarning_1nzfr_26";
|
|
19615
|
+
const inputDisabled$6 = "_inputDisabled_1nzfr_61";
|
|
19616
|
+
const hideScrollbars$6 = "_hideScrollbars_1nzfr_67";
|
|
19617
|
+
const select = "_select_1nzfr_77";
|
|
19618
|
+
const isInTable$2 = "_isInTable_1nzfr_121";
|
|
19619
|
+
const unSelected = "_unSelected_1nzfr_133";
|
|
19620
|
+
const small$6 = "_small_1nzfr_174";
|
|
19621
|
+
const right$3 = "_right_1nzfr_182";
|
|
19622
|
+
const groupOrderFirst$1 = "_groupOrderFirst_1nzfr_193";
|
|
19623
|
+
const groupOrderMiddle$1 = "_groupOrderMiddle_1nzfr_194";
|
|
19624
|
+
const groupOrderLast$1 = "_groupOrderLast_1nzfr_198";
|
|
19591
19625
|
const styles$o = {
|
|
19592
19626
|
inputInTable: inputInTable$6,
|
|
19627
|
+
error: error$6,
|
|
19628
|
+
warning: warning$8,
|
|
19593
19629
|
inputHover: inputHover$6,
|
|
19594
19630
|
inputFocus: inputFocus$6,
|
|
19595
19631
|
inputError: inputError$6,
|
|
@@ -19599,8 +19635,6 @@ const styles$o = {
|
|
|
19599
19635
|
select,
|
|
19600
19636
|
isInTable: isInTable$2,
|
|
19601
19637
|
unSelected,
|
|
19602
|
-
error: error$3,
|
|
19603
|
-
warning: warning$5,
|
|
19604
19638
|
small: small$6,
|
|
19605
19639
|
right: right$3,
|
|
19606
19640
|
groupOrderFirst: groupOrderFirst$1,
|
|
@@ -19613,12 +19647,9 @@ const NativeSelect = ({
|
|
|
19613
19647
|
warning: warning2 = null,
|
|
19614
19648
|
tooltip: tooltip2 = null,
|
|
19615
19649
|
options,
|
|
19616
|
-
onChange =
|
|
19617
|
-
|
|
19618
|
-
|
|
19619
|
-
},
|
|
19620
|
-
onBlur = () => {
|
|
19621
|
-
},
|
|
19650
|
+
onChange = noop$3,
|
|
19651
|
+
onFocus = noop$3,
|
|
19652
|
+
onBlur = noop$3,
|
|
19622
19653
|
right: right2 = false,
|
|
19623
19654
|
small: small2 = false,
|
|
19624
19655
|
tabIndex = 0,
|
|
@@ -20658,39 +20689,41 @@ const Layer = ({
|
|
|
20658
20689
|
}
|
|
20659
20690
|
);
|
|
20660
20691
|
};
|
|
20661
|
-
const inputInTable$5 = "
|
|
20662
|
-
const
|
|
20663
|
-
const
|
|
20664
|
-
const
|
|
20665
|
-
const
|
|
20666
|
-
const
|
|
20667
|
-
const
|
|
20668
|
-
const
|
|
20669
|
-
const
|
|
20670
|
-
const
|
|
20671
|
-
const
|
|
20672
|
-
const
|
|
20673
|
-
const
|
|
20674
|
-
const disabled$3 = "
|
|
20675
|
-
const icons = "
|
|
20676
|
-
const clearAll = "
|
|
20677
|
-
const iconOpen = "
|
|
20678
|
-
const small$4 = "
|
|
20679
|
-
const triggerInputContainer = "
|
|
20680
|
-
const right$2 = "
|
|
20681
|
-
const multiOptions = "
|
|
20682
|
-
const multiOption = "
|
|
20683
|
-
const label$4 = "
|
|
20684
|
-
const closeMultiOption = "
|
|
20685
|
-
const focus = "
|
|
20686
|
-
const selectedSingleValue = "
|
|
20687
|
-
const placeHolder = "
|
|
20688
|
-
const groupOrderFirst = "
|
|
20689
|
-
const groupOrderMiddle = "
|
|
20690
|
-
const groupOrderLast = "
|
|
20691
|
-
const detailedLabel = "
|
|
20692
|
+
const inputInTable$5 = "_inputInTable_nec64_1";
|
|
20693
|
+
const error$5 = "_error_nec64_7";
|
|
20694
|
+
const warning$7 = "_warning_nec64_7";
|
|
20695
|
+
const inputHover$5 = "_inputHover_nec64_13";
|
|
20696
|
+
const inputFocus$5 = "_inputFocus_nec64_18";
|
|
20697
|
+
const inputError$5 = "_inputError_nec64_25";
|
|
20698
|
+
const inputWarning$5 = "_inputWarning_nec64_26";
|
|
20699
|
+
const inputDisabled$5 = "_inputDisabled_nec64_61";
|
|
20700
|
+
const hideScrollbars$5 = "_hideScrollbars_nec64_67";
|
|
20701
|
+
const trigger$1 = "_trigger_nec64_77";
|
|
20702
|
+
const isInTable$1 = "_isInTable_nec64_93";
|
|
20703
|
+
const input = "_input_nec64_1";
|
|
20704
|
+
const isOpen = "_isOpen_nec64_114";
|
|
20705
|
+
const disabled$3 = "_disabled_nec64_156";
|
|
20706
|
+
const icons = "_icons_nec64_162";
|
|
20707
|
+
const clearAll = "_clearAll_nec64_169";
|
|
20708
|
+
const iconOpen = "_iconOpen_nec64_170";
|
|
20709
|
+
const small$4 = "_small_nec64_181";
|
|
20710
|
+
const triggerInputContainer = "_triggerInputContainer_nec64_189";
|
|
20711
|
+
const right$2 = "_right_nec64_198";
|
|
20712
|
+
const multiOptions = "_multiOptions_nec64_211";
|
|
20713
|
+
const multiOption = "_multiOption_nec64_211";
|
|
20714
|
+
const label$4 = "_label_nec64_239";
|
|
20715
|
+
const closeMultiOption = "_closeMultiOption_nec64_242";
|
|
20716
|
+
const focus = "_focus_nec64_253";
|
|
20717
|
+
const selectedSingleValue = "_selectedSingleValue_nec64_257";
|
|
20718
|
+
const placeHolder = "_placeHolder_nec64_258";
|
|
20719
|
+
const groupOrderFirst = "_groupOrderFirst_nec64_297";
|
|
20720
|
+
const groupOrderMiddle = "_groupOrderMiddle_nec64_298";
|
|
20721
|
+
const groupOrderLast = "_groupOrderLast_nec64_302";
|
|
20722
|
+
const detailedLabel = "_detailedLabel_nec64_307";
|
|
20692
20723
|
const styles$m = {
|
|
20693
20724
|
inputInTable: inputInTable$5,
|
|
20725
|
+
error: error$5,
|
|
20726
|
+
warning: warning$7,
|
|
20694
20727
|
inputHover: inputHover$5,
|
|
20695
20728
|
inputFocus: inputFocus$5,
|
|
20696
20729
|
inputError: inputError$5,
|
|
@@ -20701,8 +20734,6 @@ const styles$m = {
|
|
|
20701
20734
|
isInTable: isInTable$1,
|
|
20702
20735
|
input,
|
|
20703
20736
|
isOpen,
|
|
20704
|
-
error: error$2,
|
|
20705
|
-
warning: warning$4,
|
|
20706
20737
|
disabled: disabled$3,
|
|
20707
20738
|
icons,
|
|
20708
20739
|
clearAll,
|
|
@@ -20781,8 +20812,7 @@ const Input = ({
|
|
|
20781
20812
|
selectedOptions,
|
|
20782
20813
|
searchable = false,
|
|
20783
20814
|
searchValue,
|
|
20784
|
-
onChange =
|
|
20785
|
-
},
|
|
20815
|
+
onChange = noop$3,
|
|
20786
20816
|
inputRef,
|
|
20787
20817
|
error: error2,
|
|
20788
20818
|
placeholder: placeholder3 = "Select...",
|
|
@@ -21507,8 +21537,8 @@ const CustomSelect = (props) => {
|
|
|
21507
21537
|
}
|
|
21508
21538
|
) });
|
|
21509
21539
|
};
|
|
21510
|
-
const isMulti = (selectedOptions) => selectedOptions instanceof Array;
|
|
21511
21540
|
const isEmptyNullOrUndefined = (value) => value === null || value === void 0 || value === "";
|
|
21541
|
+
const isMulti = (selectedOptions) => selectedOptions instanceof Array;
|
|
21512
21542
|
const standardizeOptions = (options, simple) => {
|
|
21513
21543
|
return simple && Array.isArray(options) ? options.map(
|
|
21514
21544
|
(o) => typeof o === "string" || typeof o === "number" ? { label: o, value: o } : o
|
|
@@ -21596,8 +21626,7 @@ const Select = (props) => {
|
|
|
21596
21626
|
options: rawOptions = [],
|
|
21597
21627
|
value: rawSelectedOptions,
|
|
21598
21628
|
native = false,
|
|
21599
|
-
onChange =
|
|
21600
|
-
},
|
|
21629
|
+
onChange = noop$3,
|
|
21601
21630
|
deprecatedEventHandler = false,
|
|
21602
21631
|
autoScroll: autoScroll2 = true,
|
|
21603
21632
|
warning: warning2,
|
|
@@ -21640,7 +21669,9 @@ const Select = (props) => {
|
|
|
21640
21669
|
const newSelectedOptions = multi ? selectedOptions2.map(
|
|
21641
21670
|
(o) => simpleInputs ? o.value : o
|
|
21642
21671
|
) : simpleInputs ? selectedOptions2.value : selectedOptions2;
|
|
21643
|
-
|
|
21672
|
+
if (newSelectedOptions) {
|
|
21673
|
+
onChange(newSelectedOptions);
|
|
21674
|
+
}
|
|
21644
21675
|
} else {
|
|
21645
21676
|
const isSyntheticEvent = !(evt instanceof Event);
|
|
21646
21677
|
const value = multi ? selectedOptions2 : selectedOptions2.value;
|
|
@@ -21652,17 +21683,16 @@ const Select = (props) => {
|
|
|
21652
21683
|
}
|
|
21653
21684
|
onChange(evt);
|
|
21654
21685
|
} else {
|
|
21655
|
-
|
|
21686
|
+
const customEvent = {
|
|
21656
21687
|
...evt,
|
|
21657
21688
|
target: {
|
|
21658
21689
|
...evt.target,
|
|
21659
21690
|
name: name2,
|
|
21660
21691
|
value,
|
|
21661
|
-
|
|
21662
|
-
label: selectedOptions2.label
|
|
21663
|
-
}
|
|
21692
|
+
label: !multi ? selectedOptions2.label : void 0
|
|
21664
21693
|
}
|
|
21665
|
-
}
|
|
21694
|
+
};
|
|
21695
|
+
onChange(customEvent);
|
|
21666
21696
|
}
|
|
21667
21697
|
}
|
|
21668
21698
|
};
|
|
@@ -37504,7 +37534,7 @@ let createNanoEvents = () => ({
|
|
|
37504
37534
|
return () => this.events[event] = (this.events[event] || []).filter((i) => i !== cb2);
|
|
37505
37535
|
}
|
|
37506
37536
|
});
|
|
37507
|
-
var __defProp$
|
|
37537
|
+
var __defProp$i = Object.defineProperty;
|
|
37508
37538
|
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
37509
37539
|
var __decorateClass$f = (decorators, target, key2, kind) => {
|
|
37510
37540
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key2) : target;
|
|
@@ -37512,7 +37542,7 @@ var __decorateClass$f = (decorators, target, key2, kind) => {
|
|
|
37512
37542
|
if (decorator = decorators[i])
|
|
37513
37543
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
37514
37544
|
if (kind && result)
|
|
37515
|
-
__defProp$
|
|
37545
|
+
__defProp$i(target, key2, result);
|
|
37516
37546
|
return result;
|
|
37517
37547
|
};
|
|
37518
37548
|
var __accessCheck$3 = (obj, member, msg2) => {
|
|
@@ -41483,7 +41513,7 @@ function gatherRawExtensions(config2, props) {
|
|
|
41483
41513
|
return;
|
|
41484
41514
|
}
|
|
41485
41515
|
if (names2.includes(extension2.name)) {
|
|
41486
|
-
warning$
|
|
41516
|
+
warning$i(
|
|
41487
41517
|
false,
|
|
41488
41518
|
`Circular dependency encountered when loading extensions: ${names2.join(" > ")} > ${extension2.name}`
|
|
41489
41519
|
);
|
|
@@ -42530,7 +42560,7 @@ const hoverColorTheme = {
|
|
|
42530
42560
|
3: `0 1px 1px ${shadow3}`
|
|
42531
42561
|
}
|
|
42532
42562
|
});
|
|
42533
|
-
var __defProp$
|
|
42563
|
+
var __defProp$h = Object.defineProperty;
|
|
42534
42564
|
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
42535
42565
|
var __decorateClass$e = (decorators, target, key2, kind) => {
|
|
42536
42566
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key2) : target;
|
|
@@ -42538,7 +42568,7 @@ var __decorateClass$e = (decorators, target, key2, kind) => {
|
|
|
42538
42568
|
if (decorator = decorators[i])
|
|
42539
42569
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
42540
42570
|
if (kind && result)
|
|
42541
|
-
__defProp$
|
|
42571
|
+
__defProp$h(target, key2, result);
|
|
42542
42572
|
return result;
|
|
42543
42573
|
};
|
|
42544
42574
|
var __accessCheck$2 = (obj, member, msg2) => {
|
|
@@ -42997,7 +43027,7 @@ PositionerExtension = __decorateClass$e([
|
|
|
42997
43027
|
staticKeys: ["scrollDebounce"]
|
|
42998
43028
|
})
|
|
42999
43029
|
], PositionerExtension);
|
|
43000
|
-
var __defProp$
|
|
43030
|
+
var __defProp$g = Object.defineProperty;
|
|
43001
43031
|
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
43002
43032
|
var __decorateClass$d = (decorators, target, key2, kind) => {
|
|
43003
43033
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key2) : target;
|
|
@@ -43005,7 +43035,7 @@ var __decorateClass$d = (decorators, target, key2, kind) => {
|
|
|
43005
43035
|
if (decorator = decorators[i])
|
|
43006
43036
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
43007
43037
|
if (kind && result)
|
|
43008
|
-
__defProp$
|
|
43038
|
+
__defProp$g(target, key2, result);
|
|
43009
43039
|
return result;
|
|
43010
43040
|
};
|
|
43011
43041
|
var toggleBoldOptions = {
|
|
@@ -43102,7 +43132,7 @@ BoldExtension = __decorateClass$d([
|
|
|
43102
43132
|
staticKeys: ["weight"]
|
|
43103
43133
|
})
|
|
43104
43134
|
], BoldExtension);
|
|
43105
|
-
var __defProp$
|
|
43135
|
+
var __defProp$f = Object.defineProperty;
|
|
43106
43136
|
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
43107
43137
|
var __decorateClass$c = (decorators, target, key2, kind) => {
|
|
43108
43138
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key2) : target;
|
|
@@ -43110,7 +43140,7 @@ var __decorateClass$c = (decorators, target, key2, kind) => {
|
|
|
43110
43140
|
if (decorator = decorators[i])
|
|
43111
43141
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
43112
43142
|
if (kind && result)
|
|
43113
|
-
__defProp$
|
|
43143
|
+
__defProp$f(target, key2, result);
|
|
43114
43144
|
return result;
|
|
43115
43145
|
};
|
|
43116
43146
|
var { DESCRIPTION, LABEL } = extensionCodeMessages;
|
|
@@ -43704,7 +43734,7 @@ function redoDepth(state) {
|
|
|
43704
43734
|
let hist = historyKey.getState(state);
|
|
43705
43735
|
return hist ? hist.undone.eventCount : 0;
|
|
43706
43736
|
}
|
|
43707
|
-
var __defProp$
|
|
43737
|
+
var __defProp$e = Object.defineProperty;
|
|
43708
43738
|
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
43709
43739
|
var __decorateClass$b = (decorators, target, key2, kind) => {
|
|
43710
43740
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key2) : target;
|
|
@@ -43712,7 +43742,7 @@ var __decorateClass$b = (decorators, target, key2, kind) => {
|
|
|
43712
43742
|
if (decorator = decorators[i])
|
|
43713
43743
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
43714
43744
|
if (kind && result)
|
|
43715
|
-
__defProp$
|
|
43745
|
+
__defProp$e(target, key2, result);
|
|
43716
43746
|
return result;
|
|
43717
43747
|
};
|
|
43718
43748
|
var DocExtension = class extends NodeExtension {
|
|
@@ -43978,7 +44008,7 @@ function requireObjectWithoutProperties() {
|
|
|
43978
44008
|
})(objectWithoutProperties);
|
|
43979
44009
|
return objectWithoutProperties.exports;
|
|
43980
44010
|
}
|
|
43981
|
-
var __defProp$
|
|
44011
|
+
var __defProp$d = Object.defineProperty;
|
|
43982
44012
|
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
43983
44013
|
var __decorateClass$a = (decorators, target, key2, kind) => {
|
|
43984
44014
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key2) : target;
|
|
@@ -43986,7 +44016,7 @@ var __decorateClass$a = (decorators, target, key2, kind) => {
|
|
|
43986
44016
|
if (decorator = decorators[i])
|
|
43987
44017
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
43988
44018
|
if (kind && result)
|
|
43989
|
-
__defProp$
|
|
44019
|
+
__defProp$d(target, key2, result);
|
|
43990
44020
|
return result;
|
|
43991
44021
|
};
|
|
43992
44022
|
function posAtDOM(view, node2, offset3, bias) {
|
|
@@ -44522,7 +44552,7 @@ function drawGapCursor(state) {
|
|
|
44522
44552
|
node2.className = "ProseMirror-gapcursor";
|
|
44523
44553
|
return DecorationSet.create(state.doc, [Decoration.widget(state.selection.head, node2, { key: "gapcursor" })]);
|
|
44524
44554
|
}
|
|
44525
|
-
var __defProp$
|
|
44555
|
+
var __defProp$c = Object.defineProperty;
|
|
44526
44556
|
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
44527
44557
|
var __decorateClass$9 = (decorators, target, key2, kind) => {
|
|
44528
44558
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key2) : target;
|
|
@@ -44530,7 +44560,7 @@ var __decorateClass$9 = (decorators, target, key2, kind) => {
|
|
|
44530
44560
|
if (decorator = decorators[i])
|
|
44531
44561
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
44532
44562
|
if (kind && result)
|
|
44533
|
-
__defProp$
|
|
44563
|
+
__defProp$c(target, key2, result);
|
|
44534
44564
|
return result;
|
|
44535
44565
|
};
|
|
44536
44566
|
var GapCursorExtension = class extends PlainExtension {
|
|
@@ -44544,7 +44574,7 @@ var GapCursorExtension = class extends PlainExtension {
|
|
|
44544
44574
|
GapCursorExtension = __decorateClass$9([
|
|
44545
44575
|
extension({})
|
|
44546
44576
|
], GapCursorExtension);
|
|
44547
|
-
var __defProp$
|
|
44577
|
+
var __defProp$b = Object.defineProperty;
|
|
44548
44578
|
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
44549
44579
|
var __decorateClass$8 = (decorators, target, key2, kind) => {
|
|
44550
44580
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key2) : target;
|
|
@@ -44552,7 +44582,7 @@ var __decorateClass$8 = (decorators, target, key2, kind) => {
|
|
|
44552
44582
|
if (decorator = decorators[i])
|
|
44553
44583
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
44554
44584
|
if (kind && result)
|
|
44555
|
-
__defProp$
|
|
44585
|
+
__defProp$b(target, key2, result);
|
|
44556
44586
|
return result;
|
|
44557
44587
|
};
|
|
44558
44588
|
var HistoryExtension = class extends PlainExtension {
|
|
@@ -44648,7 +44678,7 @@ HistoryExtension = __decorateClass$8([
|
|
|
44648
44678
|
handlerKeys: ["onUndo", "onRedo"]
|
|
44649
44679
|
})
|
|
44650
44680
|
], HistoryExtension);
|
|
44651
|
-
var __defProp$
|
|
44681
|
+
var __defProp$a = Object.defineProperty;
|
|
44652
44682
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
44653
44683
|
var __decorateClass$7 = (decorators, target, key2, kind) => {
|
|
44654
44684
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key2) : target;
|
|
@@ -44656,7 +44686,7 @@ var __decorateClass$7 = (decorators, target, key2, kind) => {
|
|
|
44656
44686
|
if (decorator = decorators[i])
|
|
44657
44687
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
44658
44688
|
if (kind && result)
|
|
44659
|
-
__defProp$
|
|
44689
|
+
__defProp$a(target, key2, result);
|
|
44660
44690
|
return result;
|
|
44661
44691
|
};
|
|
44662
44692
|
var toggleItalicOptions = {
|
|
@@ -44820,7 +44850,7 @@ function liftOutOfList$1(state, dispatch, range2) {
|
|
|
44820
44850
|
dispatch(tr2.scrollIntoView());
|
|
44821
44851
|
return true;
|
|
44822
44852
|
}
|
|
44823
|
-
var __defProp$
|
|
44853
|
+
var __defProp$9 = Object.defineProperty;
|
|
44824
44854
|
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
44825
44855
|
var __decorateClass$6 = (decorators, target, key2, kind) => {
|
|
44826
44856
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key2) : target;
|
|
@@ -44828,7 +44858,7 @@ var __decorateClass$6 = (decorators, target, key2, kind) => {
|
|
|
44828
44858
|
if (decorator = decorators[i])
|
|
44829
44859
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
44830
44860
|
if (kind && result)
|
|
44831
|
-
__defProp$
|
|
44861
|
+
__defProp$9(target, key2, result);
|
|
44832
44862
|
return result;
|
|
44833
44863
|
};
|
|
44834
44864
|
function isList(type) {
|
|
@@ -48838,7 +48868,7 @@ marked.walkTokens;
|
|
|
48838
48868
|
marked.parseInline;
|
|
48839
48869
|
Parser$1.parse;
|
|
48840
48870
|
Lexer.lex;
|
|
48841
|
-
var __defProp$
|
|
48871
|
+
var __defProp$8 = Object.defineProperty;
|
|
48842
48872
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
48843
48873
|
var __decorateClass$5 = (decorators, target, key2, kind) => {
|
|
48844
48874
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key2) : target;
|
|
@@ -48846,7 +48876,7 @@ var __decorateClass$5 = (decorators, target, key2, kind) => {
|
|
|
48846
48876
|
if (decorator = decorators[i])
|
|
48847
48877
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
48848
48878
|
if (kind && result)
|
|
48849
|
-
__defProp$
|
|
48879
|
+
__defProp$8(target, key2, result);
|
|
48850
48880
|
return result;
|
|
48851
48881
|
};
|
|
48852
48882
|
var TurndownService = defaultImport(TurndownService$1);
|
|
@@ -49115,7 +49145,7 @@ MarkdownExtension = __decorateClass$5([
|
|
|
49115
49145
|
staticKeys: ["htmlToMarkdown", "markdownToHtml", "htmlSanitizer"]
|
|
49116
49146
|
})
|
|
49117
49147
|
], MarkdownExtension);
|
|
49118
|
-
var __defProp$
|
|
49148
|
+
var __defProp$7 = Object.defineProperty;
|
|
49119
49149
|
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
49120
49150
|
var __decorateClass$4 = (decorators, target, key2, kind) => {
|
|
49121
49151
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key2) : target;
|
|
@@ -49123,7 +49153,7 @@ var __decorateClass$4 = (decorators, target, key2, kind) => {
|
|
|
49123
49153
|
if (decorator = decorators[i])
|
|
49124
49154
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
49125
49155
|
if (kind && result)
|
|
49126
|
-
__defProp$
|
|
49156
|
+
__defProp$7(target, key2, result);
|
|
49127
49157
|
return result;
|
|
49128
49158
|
};
|
|
49129
49159
|
var insertParagraphOptions = {
|
|
@@ -49201,7 +49231,7 @@ ParagraphExtension = __decorateClass$4([
|
|
|
49201
49231
|
defaultPriority: ExtensionPriority.Medium
|
|
49202
49232
|
})
|
|
49203
49233
|
], ParagraphExtension);
|
|
49204
|
-
var __defProp$
|
|
49234
|
+
var __defProp$6 = Object.defineProperty;
|
|
49205
49235
|
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
49206
49236
|
var __decorateClass$3 = (decorators, target, key2, kind) => {
|
|
49207
49237
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key2) : target;
|
|
@@ -49209,7 +49239,7 @@ var __decorateClass$3 = (decorators, target, key2, kind) => {
|
|
|
49209
49239
|
if (decorator = decorators[i])
|
|
49210
49240
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
49211
49241
|
if (kind && result)
|
|
49212
|
-
__defProp$
|
|
49242
|
+
__defProp$6(target, key2, result);
|
|
49213
49243
|
return result;
|
|
49214
49244
|
};
|
|
49215
49245
|
var PlaceholderExtension = class extends PlainExtension {
|
|
@@ -49276,7 +49306,7 @@ function createDecorationSet(props) {
|
|
|
49276
49306
|
});
|
|
49277
49307
|
return DecorationSet.create(state.doc, decorations);
|
|
49278
49308
|
}
|
|
49279
|
-
var __defProp$
|
|
49309
|
+
var __defProp$5 = Object.defineProperty;
|
|
49280
49310
|
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
49281
49311
|
var __decorateClass$2 = (decorators, target, key2, kind) => {
|
|
49282
49312
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key2) : target;
|
|
@@ -49284,7 +49314,7 @@ var __decorateClass$2 = (decorators, target, key2, kind) => {
|
|
|
49284
49314
|
if (decorator = decorators[i])
|
|
49285
49315
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
49286
49316
|
if (kind && result)
|
|
49287
|
-
__defProp$
|
|
49317
|
+
__defProp$5(target, key2, result);
|
|
49288
49318
|
return result;
|
|
49289
49319
|
};
|
|
49290
49320
|
var TextExtension = class extends NodeExtension {
|
|
@@ -49342,7 +49372,7 @@ function corePreset(options = {}) {
|
|
|
49342
49372
|
}
|
|
49343
49373
|
return coreExtensions;
|
|
49344
49374
|
}
|
|
49345
|
-
var __defProp$
|
|
49375
|
+
var __defProp$4 = Object.defineProperty;
|
|
49346
49376
|
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
49347
49377
|
var __decorateClass$1 = (decorators, target, key2, kind) => {
|
|
49348
49378
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key2) : target;
|
|
@@ -49350,7 +49380,7 @@ var __decorateClass$1 = (decorators, target, key2, kind) => {
|
|
|
49350
49380
|
if (decorator = decorators[i])
|
|
49351
49381
|
result = (kind ? decorator(target, key2, result) : decorator(result)) || result;
|
|
49352
49382
|
if (kind && result)
|
|
49353
|
-
__defProp$
|
|
49383
|
+
__defProp$4(target, key2, result);
|
|
49354
49384
|
return result;
|
|
49355
49385
|
};
|
|
49356
49386
|
var __accessCheck$1 = (obj, member, msg2) => {
|
|
@@ -49789,6 +49819,22 @@ ReactComponentExtension = __decorateClass$1([
|
|
|
49789
49819
|
staticKeys: ["defaultBlockNode", "defaultInlineNode", "defaultContentNode", "defaultEnvironment"]
|
|
49790
49820
|
})
|
|
49791
49821
|
], ReactComponentExtension);
|
|
49822
|
+
var __defProp$3 = Object.defineProperty;
|
|
49823
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
49824
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
49825
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
49826
|
+
var __defNormalProp$2 = (obj, key2, value) => key2 in obj ? __defProp$3(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
49827
|
+
var __spreadValues = (a2, b2) => {
|
|
49828
|
+
for (var prop in b2 || (b2 = {}))
|
|
49829
|
+
if (__hasOwnProp$1.call(b2, prop))
|
|
49830
|
+
__defNormalProp$2(a2, prop, b2[prop]);
|
|
49831
|
+
if (__getOwnPropSymbols)
|
|
49832
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
|
49833
|
+
if (__propIsEnum.call(b2, prop))
|
|
49834
|
+
__defNormalProp$2(a2, prop, b2[prop]);
|
|
49835
|
+
}
|
|
49836
|
+
return a2;
|
|
49837
|
+
};
|
|
49792
49838
|
function createContextHook(useHook) {
|
|
49793
49839
|
const DefaultContext2 = createContext(null);
|
|
49794
49840
|
const useHookContext = contextHookFactory(DefaultContext2);
|
|
@@ -49836,29 +49882,29 @@ function createContextState(creator, hook) {
|
|
|
49836
49882
|
const contextRef = useRef(null);
|
|
49837
49883
|
const setContextRef = useRef();
|
|
49838
49884
|
const state = void 0;
|
|
49839
|
-
const [context2, setContext] = useState(
|
|
49840
|
-
|
|
49885
|
+
const [context2, setContext] = useState(
|
|
49886
|
+
() => creator({
|
|
49841
49887
|
get: createGet(contextRef),
|
|
49842
49888
|
set: createSet(setContextRef),
|
|
49843
49889
|
previousContext: void 0,
|
|
49844
49890
|
props,
|
|
49845
49891
|
state
|
|
49846
|
-
})
|
|
49847
|
-
|
|
49892
|
+
})
|
|
49893
|
+
);
|
|
49848
49894
|
const dependencies = [...Object.values(props), state];
|
|
49849
49895
|
useEffect(() => {
|
|
49850
49896
|
if (dependencies.length === 0) {
|
|
49851
49897
|
return;
|
|
49852
49898
|
}
|
|
49853
|
-
setContext(
|
|
49854
|
-
|
|
49899
|
+
setContext(
|
|
49900
|
+
(previousContext) => creator({
|
|
49855
49901
|
get: createGet(contextRef),
|
|
49856
49902
|
set: createSet(setContextRef),
|
|
49857
49903
|
previousContext,
|
|
49858
49904
|
props,
|
|
49859
49905
|
state
|
|
49860
|
-
})
|
|
49861
|
-
|
|
49906
|
+
})
|
|
49907
|
+
);
|
|
49862
49908
|
}, dependencies);
|
|
49863
49909
|
contextRef.current = context2;
|
|
49864
49910
|
setContextRef.current = setContext;
|
|
@@ -49890,10 +49936,7 @@ function createSet(ref2) {
|
|
|
49890
49936
|
"`set` called outside of function scope. `set` can only be called within a function."
|
|
49891
49937
|
);
|
|
49892
49938
|
}
|
|
49893
|
-
ref2.current((context2) => ({
|
|
49894
|
-
...context2,
|
|
49895
|
-
...typeof partial === "function" ? partial(context2) : partial
|
|
49896
|
-
}));
|
|
49939
|
+
ref2.current((context2) => __spreadValues(__spreadValues({}, context2), typeof partial === "function" ? partial(context2) : partial));
|
|
49897
49940
|
};
|
|
49898
49941
|
}
|
|
49899
49942
|
var dist = {};
|
|
@@ -52454,16 +52497,20 @@ const RichTextToolbar = ({
|
|
|
52454
52497
|
toolbarComponent
|
|
52455
52498
|
] });
|
|
52456
52499
|
};
|
|
52457
|
-
const inputInTable$4 = "
|
|
52458
|
-
const
|
|
52459
|
-
const
|
|
52460
|
-
const
|
|
52461
|
-
const
|
|
52462
|
-
const
|
|
52463
|
-
const
|
|
52464
|
-
const
|
|
52500
|
+
const inputInTable$4 = "_inputInTable_19adc_1";
|
|
52501
|
+
const error$4 = "_error_19adc_7";
|
|
52502
|
+
const warning$6 = "_warning_19adc_7";
|
|
52503
|
+
const inputHover$4 = "_inputHover_19adc_13";
|
|
52504
|
+
const inputFocus$4 = "_inputFocus_19adc_18";
|
|
52505
|
+
const inputError$4 = "_inputError_19adc_25";
|
|
52506
|
+
const inputWarning$4 = "_inputWarning_19adc_26";
|
|
52507
|
+
const inputDisabled$4 = "_inputDisabled_19adc_61";
|
|
52508
|
+
const hideScrollbars$4 = "_hideScrollbars_19adc_67";
|
|
52509
|
+
const richTextInput = "_richTextInput_19adc_77";
|
|
52465
52510
|
const styles$f = {
|
|
52466
52511
|
inputInTable: inputInTable$4,
|
|
52512
|
+
error: error$4,
|
|
52513
|
+
warning: warning$6,
|
|
52467
52514
|
inputHover: inputHover$4,
|
|
52468
52515
|
inputFocus: inputFocus$4,
|
|
52469
52516
|
inputError: inputError$4,
|
|
@@ -52632,26 +52679,30 @@ var reactFastCompare = function isEqual3(a2, b2) {
|
|
|
52632
52679
|
}
|
|
52633
52680
|
};
|
|
52634
52681
|
const isEqual$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactFastCompare);
|
|
52635
|
-
const inputInTable$3 = "
|
|
52636
|
-
const
|
|
52637
|
-
const
|
|
52638
|
-
const
|
|
52639
|
-
const
|
|
52640
|
-
const
|
|
52641
|
-
const
|
|
52642
|
-
const
|
|
52643
|
-
const
|
|
52644
|
-
const
|
|
52645
|
-
const
|
|
52646
|
-
const
|
|
52647
|
-
const
|
|
52648
|
-
const
|
|
52649
|
-
const
|
|
52650
|
-
const
|
|
52651
|
-
const
|
|
52652
|
-
const
|
|
52682
|
+
const inputInTable$3 = "_inputInTable_16jgo_1";
|
|
52683
|
+
const error$3 = "_error_16jgo_7";
|
|
52684
|
+
const warning$5 = "_warning_16jgo_7";
|
|
52685
|
+
const inputHover$3 = "_inputHover_16jgo_13";
|
|
52686
|
+
const inputFocus$3 = "_inputFocus_16jgo_18";
|
|
52687
|
+
const inputError$3 = "_inputError_16jgo_25";
|
|
52688
|
+
const inputWarning$3 = "_inputWarning_16jgo_26";
|
|
52689
|
+
const inputDisabled$3 = "_inputDisabled_16jgo_61";
|
|
52690
|
+
const hideScrollbars$3 = "_hideScrollbars_16jgo_67";
|
|
52691
|
+
const sidebar = "_sidebar_16jgo_82";
|
|
52692
|
+
const inner = "_inner_16jgo_93";
|
|
52693
|
+
const title$2 = "_title_16jgo_103";
|
|
52694
|
+
const subtitle = "_subtitle_16jgo_104";
|
|
52695
|
+
const label$2 = "_label_16jgo_105";
|
|
52696
|
+
const collapsed = "_collapsed_16jgo_109";
|
|
52697
|
+
const list = "_list_16jgo_134";
|
|
52698
|
+
const item$2 = "_item_16jgo_140";
|
|
52699
|
+
const experimental = "_experimental_16jgo_155";
|
|
52700
|
+
const active$2 = "_active_16jgo_159";
|
|
52701
|
+
const icon$1 = "_icon_16jgo_163";
|
|
52653
52702
|
const styles$d = {
|
|
52654
52703
|
inputInTable: inputInTable$3,
|
|
52704
|
+
error: error$3,
|
|
52705
|
+
warning: warning$5,
|
|
52655
52706
|
inputHover: inputHover$3,
|
|
52656
52707
|
inputFocus: inputFocus$3,
|
|
52657
52708
|
inputError: inputError$3,
|
|
@@ -52863,7 +52914,7 @@ var preWarningFns = [];
|
|
|
52863
52914
|
var preMessage = function preMessage2(fn) {
|
|
52864
52915
|
preWarningFns.push(fn);
|
|
52865
52916
|
};
|
|
52866
|
-
function warning$
|
|
52917
|
+
function warning$4(valid, message2) {
|
|
52867
52918
|
if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
|
|
52868
52919
|
var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
|
|
52869
52920
|
return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "warning");
|
|
@@ -52893,7 +52944,7 @@ function call(method, valid, message2) {
|
|
|
52893
52944
|
}
|
|
52894
52945
|
}
|
|
52895
52946
|
function warningOnce(valid, message2) {
|
|
52896
|
-
call(warning$
|
|
52947
|
+
call(warning$4, valid, message2);
|
|
52897
52948
|
}
|
|
52898
52949
|
function noteOnce(valid, message2) {
|
|
52899
52950
|
call(note, valid, message2);
|
|
@@ -55236,16 +55287,18 @@ const Slider = ({
|
|
|
55236
55287
|
width: "100px",
|
|
55237
55288
|
height: "400px"
|
|
55238
55289
|
},
|
|
55239
|
-
onChange
|
|
55290
|
+
onChange = noop$3
|
|
55240
55291
|
}) => {
|
|
55241
55292
|
const disabledContext = useContext(DisabledContext);
|
|
55242
55293
|
const formattedMarks = memoizedFormatMarkers(marks);
|
|
55243
55294
|
const onChangeValue = (value2) => {
|
|
55295
|
+
const eventLabel = typeof label2 === "string" ? label2 : String(label2);
|
|
55296
|
+
const eventName = name2 ?? "";
|
|
55244
55297
|
onChange({
|
|
55245
55298
|
target: {
|
|
55246
|
-
name:
|
|
55299
|
+
name: eventName,
|
|
55247
55300
|
value: value2,
|
|
55248
|
-
label:
|
|
55301
|
+
label: eventLabel
|
|
55249
55302
|
}
|
|
55250
55303
|
});
|
|
55251
55304
|
};
|
|
@@ -55286,7 +55339,7 @@ const Slider = ({
|
|
|
55286
55339
|
styles$c.container,
|
|
55287
55340
|
small2 ? styles$c.small : "",
|
|
55288
55341
|
vertical2.enabled ? styles$c.vertical : "",
|
|
55289
|
-
!
|
|
55342
|
+
!isEmpty(marks) ? styles$c.hasMarks : ""
|
|
55290
55343
|
),
|
|
55291
55344
|
style: vertical2.enabled ? { width: vertical2.width, height: vertical2.height } : { width: width2 },
|
|
55292
55345
|
children: [
|
|
@@ -55333,20 +55386,24 @@ const Spacer = ({
|
|
|
55333
55386
|
}
|
|
55334
55387
|
}
|
|
55335
55388
|
);
|
|
55336
|
-
const inputInTable$2 = "
|
|
55337
|
-
const
|
|
55338
|
-
const
|
|
55339
|
-
const
|
|
55340
|
-
const
|
|
55341
|
-
const
|
|
55342
|
-
const
|
|
55343
|
-
const
|
|
55344
|
-
const
|
|
55345
|
-
const
|
|
55346
|
-
const
|
|
55347
|
-
const
|
|
55389
|
+
const inputInTable$2 = "_inputInTable_k0mvt_1";
|
|
55390
|
+
const error$2 = "_error_k0mvt_7";
|
|
55391
|
+
const warning$3 = "_warning_k0mvt_7";
|
|
55392
|
+
const inputHover$2 = "_inputHover_k0mvt_13";
|
|
55393
|
+
const inputFocus$2 = "_inputFocus_k0mvt_18";
|
|
55394
|
+
const inputError$2 = "_inputError_k0mvt_25";
|
|
55395
|
+
const inputWarning$2 = "_inputWarning_k0mvt_26";
|
|
55396
|
+
const inputDisabled$2 = "_inputDisabled_k0mvt_61";
|
|
55397
|
+
const hideScrollbars$2 = "_hideScrollbars_k0mvt_67";
|
|
55398
|
+
const wrapper = "_wrapper_k0mvt_85";
|
|
55399
|
+
const bordered = "_bordered_k0mvt_93";
|
|
55400
|
+
const scroll2 = "_scroll_k0mvt_98";
|
|
55401
|
+
const table = "_table_k0mvt_108";
|
|
55402
|
+
const striped = "_striped_k0mvt_188";
|
|
55348
55403
|
const styles$b = {
|
|
55349
55404
|
inputInTable: inputInTable$2,
|
|
55405
|
+
error: error$2,
|
|
55406
|
+
warning: warning$3,
|
|
55350
55407
|
inputHover: inputHover$2,
|
|
55351
55408
|
inputFocus: inputFocus$2,
|
|
55352
55409
|
inputError: inputError$2,
|
|
@@ -55544,37 +55601,39 @@ const getHeaderAlignment = (alignments, isHeader = false, rowIndex = 0) => {
|
|
|
55544
55601
|
return [];
|
|
55545
55602
|
}
|
|
55546
55603
|
};
|
|
55547
|
-
const inputInTable$1 = "
|
|
55548
|
-
const
|
|
55549
|
-
const
|
|
55550
|
-
const
|
|
55551
|
-
const
|
|
55552
|
-
const
|
|
55553
|
-
const
|
|
55554
|
-
const
|
|
55555
|
-
const
|
|
55556
|
-
const
|
|
55557
|
-
const
|
|
55558
|
-
const
|
|
55559
|
-
const
|
|
55560
|
-
const
|
|
55561
|
-
const
|
|
55562
|
-
const
|
|
55563
|
-
const
|
|
55564
|
-
const unit = "
|
|
55565
|
-
const sortingCell = "
|
|
55566
|
-
const sortingCellIcon = "
|
|
55567
|
-
const icon = "
|
|
55568
|
-
const checkBoxCell = "
|
|
55569
|
-
const iconCellWrapper = "
|
|
55570
|
-
const actionsCell = "
|
|
55571
|
-
const rightAligned = "
|
|
55572
|
-
const centerAligned = "
|
|
55573
|
-
const leftAligned = "
|
|
55574
|
-
const popover = "
|
|
55575
|
-
const disabledPointerEvents = "
|
|
55604
|
+
const inputInTable$1 = "_inputInTable_1rtjr_1";
|
|
55605
|
+
const error$1 = "_error_1rtjr_7";
|
|
55606
|
+
const warning$2 = "_warning_1rtjr_7";
|
|
55607
|
+
const inputHover$1 = "_inputHover_1rtjr_13";
|
|
55608
|
+
const inputFocus$1 = "_inputFocus_1rtjr_18";
|
|
55609
|
+
const inputError$1 = "_inputError_1rtjr_25";
|
|
55610
|
+
const inputWarning$1 = "_inputWarning_1rtjr_26";
|
|
55611
|
+
const inputDisabled$1 = "_inputDisabled_1rtjr_61";
|
|
55612
|
+
const hideScrollbars$1 = "_hideScrollbars_1rtjr_67";
|
|
55613
|
+
const cell = "_cell_1rtjr_77";
|
|
55614
|
+
const disabledLink = "_disabledLink_1rtjr_87";
|
|
55615
|
+
const inputWrapper$1 = "_inputWrapper_1rtjr_91";
|
|
55616
|
+
const breakWord = "_breakWord_1rtjr_106";
|
|
55617
|
+
const inputCell = "_inputCell_1rtjr_109";
|
|
55618
|
+
const sliderCell = "_sliderCell_1rtjr_112";
|
|
55619
|
+
const staticCell = "_staticCell_1rtjr_116";
|
|
55620
|
+
const staticCellContent = "_staticCellContent_1rtjr_119";
|
|
55621
|
+
const unit = "_unit_1rtjr_141";
|
|
55622
|
+
const sortingCell = "_sortingCell_1rtjr_144";
|
|
55623
|
+
const sortingCellIcon = "_sortingCellIcon_1rtjr_155";
|
|
55624
|
+
const icon = "_icon_1rtjr_166";
|
|
55625
|
+
const checkBoxCell = "_checkBoxCell_1rtjr_170";
|
|
55626
|
+
const iconCellWrapper = "_iconCellWrapper_1rtjr_174";
|
|
55627
|
+
const actionsCell = "_actionsCell_1rtjr_178";
|
|
55628
|
+
const rightAligned = "_rightAligned_1rtjr_186";
|
|
55629
|
+
const centerAligned = "_centerAligned_1rtjr_192";
|
|
55630
|
+
const leftAligned = "_leftAligned_1rtjr_198";
|
|
55631
|
+
const popover = "_popover_1rtjr_201";
|
|
55632
|
+
const disabledPointerEvents = "_disabledPointerEvents_1rtjr_204";
|
|
55576
55633
|
const styles$7 = {
|
|
55577
55634
|
inputInTable: inputInTable$1,
|
|
55635
|
+
error: error$1,
|
|
55636
|
+
warning: warning$2,
|
|
55578
55637
|
inputHover: inputHover$1,
|
|
55579
55638
|
inputFocus: inputFocus$1,
|
|
55580
55639
|
inputError: inputError$1,
|
|
@@ -55589,8 +55648,6 @@ const styles$7 = {
|
|
|
55589
55648
|
sliderCell,
|
|
55590
55649
|
staticCell,
|
|
55591
55650
|
staticCellContent,
|
|
55592
|
-
error: error$1,
|
|
55593
|
-
warning: warning$2,
|
|
55594
55651
|
unit,
|
|
55595
55652
|
sortingCell,
|
|
55596
55653
|
sortingCellIcon,
|
|
@@ -55639,12 +55696,6 @@ const InputCell = ({
|
|
|
55639
55696
|
}
|
|
55640
55697
|
);
|
|
55641
55698
|
};
|
|
55642
|
-
const COSMETIC_ROUNDING_DEFAULT_PRECISION = 14;
|
|
55643
|
-
const roundNumberCosmetic = (value) => {
|
|
55644
|
-
const isScientific = isScientificStringNum(value);
|
|
55645
|
-
return !isScientific ? roundToPrecision(value, COSMETIC_ROUNDING_DEFAULT_PRECISION) : value;
|
|
55646
|
-
};
|
|
55647
|
-
const safeToString = (value) => String(toString$1(value));
|
|
55648
55699
|
const getStringName$1 = (name2) => {
|
|
55649
55700
|
if (!name2) return "";
|
|
55650
55701
|
if (typeof name2 === "string") {
|
|
@@ -55678,65 +55729,68 @@ const NumberInput = ({
|
|
|
55678
55729
|
allowEmpty = false,
|
|
55679
55730
|
isInTable: isInTable2,
|
|
55680
55731
|
groupOrder,
|
|
55681
|
-
enableCosmeticRounding = true,
|
|
55682
55732
|
enableDisplayRounding = false,
|
|
55683
55733
|
roundDisplayValue,
|
|
55684
55734
|
disableInternalErrorValidationMessages = false
|
|
55685
55735
|
}) => {
|
|
55686
55736
|
const inputRef = useRef(null);
|
|
55687
|
-
const [displayValue, setDisplayValue] = useState(
|
|
55737
|
+
const [displayValue, setDisplayValue] = useState(value);
|
|
55738
|
+
const [validationError, setValidationError] = useState(null);
|
|
55688
55739
|
const [focus2, setFocus] = useState(false);
|
|
55689
|
-
const [pristine, setPristine] = useState(true);
|
|
55690
55740
|
const stringName = getStringName$1(name2);
|
|
55691
55741
|
const validateInputValue = (value2) => {
|
|
55692
|
-
|
|
55742
|
+
let validation = validateNumber(value2);
|
|
55693
55743
|
if (allowEmpty && value2 === "" || validation.valid) {
|
|
55694
55744
|
return { ...validation, valid: true, errors: void 0 };
|
|
55695
55745
|
} else {
|
|
55696
55746
|
return validation;
|
|
55697
55747
|
}
|
|
55698
55748
|
};
|
|
55699
|
-
const { valid, errors: errors2 } = validateInputValue(displayValue);
|
|
55700
|
-
const firstError = errors2 && errors2.length && !disableInternalErrorValidationMessages ? errors2[0] : null;
|
|
55701
|
-
useEffect(() => {
|
|
55702
|
-
setDisplayValue(safeToString(value));
|
|
55703
|
-
setPristine(true);
|
|
55704
|
-
}, [value, enableCosmeticRounding, enableDisplayRounding]);
|
|
55705
55749
|
useEffect(() => {
|
|
55706
|
-
|
|
55707
|
-
|
|
55708
|
-
|
|
55750
|
+
const { valid, errors: errors2 } = validateInputValue(value);
|
|
55751
|
+
setDisplayValue(value);
|
|
55752
|
+
if (valid) {
|
|
55753
|
+
setValidationError(null);
|
|
55709
55754
|
validationCallback(stringName, null);
|
|
55755
|
+
} else {
|
|
55756
|
+
const firstError = errors2 && errors2.length ? errors2[0] : null;
|
|
55757
|
+
setValidationError(firstError);
|
|
55758
|
+
validationCallback(stringName, firstError);
|
|
55710
55759
|
}
|
|
55711
|
-
}, [
|
|
55712
|
-
const
|
|
55713
|
-
|
|
55714
|
-
|
|
55760
|
+
}, [value, error2]);
|
|
55761
|
+
const onSetValue = (evt) => {
|
|
55762
|
+
const input2 = evt.target;
|
|
55763
|
+
const { value: value2 } = input2;
|
|
55764
|
+
const inputValue = cleanNumStr(
|
|
55765
|
+
value2.replaceAll(" ", "").replaceAll("|", "")
|
|
55766
|
+
);
|
|
55767
|
+
const { valid, errors: errors2 } = validateInputValue(inputValue);
|
|
55768
|
+
if (valid) {
|
|
55769
|
+
const newEvent = {
|
|
55715
55770
|
...evt,
|
|
55716
55771
|
target: {
|
|
55717
55772
|
...evt.target,
|
|
55718
|
-
value:
|
|
55773
|
+
value: inputValue,
|
|
55719
55774
|
name: stringName
|
|
55720
55775
|
}
|
|
55721
55776
|
};
|
|
55722
|
-
onChange(
|
|
55777
|
+
onChange(newEvent);
|
|
55778
|
+
setDisplayValue(inputValue);
|
|
55779
|
+
setValidationError(null);
|
|
55780
|
+
validationCallback(stringName, null);
|
|
55781
|
+
} else {
|
|
55782
|
+
setDisplayValue(inputValue);
|
|
55783
|
+
const firstError = errors2 && errors2.length ? errors2[0] : null;
|
|
55784
|
+
setValidationError(firstError);
|
|
55785
|
+
validationCallback(stringName, firstError);
|
|
55723
55786
|
}
|
|
55724
55787
|
};
|
|
55725
|
-
const onSetValue = (evt) => {
|
|
55726
|
-
const input2 = evt.target;
|
|
55727
|
-
const { value: value2 } = input2;
|
|
55728
|
-
const inputValue = cleanNumStr(
|
|
55729
|
-
value2.replaceAll(" ", "").replaceAll("|", "")
|
|
55730
|
-
);
|
|
55731
|
-
setDisplayValue(inputValue);
|
|
55732
|
-
setPristine(false);
|
|
55733
|
-
};
|
|
55734
55788
|
useEffect(() => {
|
|
55735
55789
|
if (inputRef && (inputRef == null ? void 0 : inputRef.current) && enableDisplayRounding && focus2) {
|
|
55736
55790
|
const textInput = inputRef.current;
|
|
55737
55791
|
if (textInput) {
|
|
55738
55792
|
setTimeout(() => {
|
|
55739
|
-
const { length: length2 } =
|
|
55793
|
+
const { length: length2 } = String(displayValue);
|
|
55740
55794
|
textInput.setSelectionRange(length2, length2);
|
|
55741
55795
|
}, 0);
|
|
55742
55796
|
}
|
|
@@ -55748,48 +55802,33 @@ const NumberInput = ({
|
|
|
55748
55802
|
};
|
|
55749
55803
|
const onInputBlur = (evt) => {
|
|
55750
55804
|
setFocus(false);
|
|
55751
|
-
onChangeValue(evt);
|
|
55752
55805
|
onBlur(evt);
|
|
55753
55806
|
};
|
|
55754
|
-
const
|
|
55755
|
-
const valueWithDisplayRounding = shouldDisplayRound ? roundDisplayValue ? safeToString(roundDisplayValue(displayValue)) : roundToFixed(displayValue, 2) : displayValue;
|
|
55756
|
-
const displayValueEndsWithZero = !!(valueWithDisplayRounding == null ? void 0 : valueWithDisplayRounding.endsWith("0"));
|
|
55757
|
-
const shouldCosmeticallyRound = enableCosmeticRounding && // only when prop is enabled
|
|
55758
|
-
valueWithDisplayRounding && // not when empty typed value
|
|
55759
|
-
!displayValueEndsWithZero && // not when intentionally trying to type trailing zeros as interim values (OW-17109)
|
|
55760
|
-
valid;
|
|
55761
|
-
const valueWithCosmeticRounding = shouldCosmeticallyRound ? roundNumberCosmetic(valueWithDisplayRounding) : valueWithDisplayRounding;
|
|
55807
|
+
const roundedDisplayValue = !focus2 && enableDisplayRounding ? roundDisplayValue ? roundDisplayValue(displayValue) : roundToFixed(displayValue, 2) : displayValue;
|
|
55762
55808
|
return /* @__PURE__ */ jsx(
|
|
55763
|
-
|
|
55809
|
+
Input$1,
|
|
55764
55810
|
{
|
|
55765
|
-
|
|
55766
|
-
|
|
55767
|
-
|
|
55768
|
-
|
|
55769
|
-
|
|
55770
|
-
|
|
55771
|
-
|
|
55772
|
-
|
|
55773
|
-
|
|
55774
|
-
|
|
55775
|
-
|
|
55776
|
-
|
|
55777
|
-
|
|
55778
|
-
|
|
55779
|
-
|
|
55780
|
-
|
|
55781
|
-
|
|
55782
|
-
|
|
55783
|
-
|
|
55784
|
-
|
|
55785
|
-
|
|
55786
|
-
tabIndex,
|
|
55787
|
-
tooltip: tooltip2,
|
|
55788
|
-
ref: inputRef
|
|
55789
|
-
},
|
|
55790
|
-
stringName
|
|
55791
|
-
)
|
|
55792
|
-
}
|
|
55811
|
+
type: "text",
|
|
55812
|
+
name: stringName,
|
|
55813
|
+
testId,
|
|
55814
|
+
disabled: disabled2,
|
|
55815
|
+
placeholder: placeholder3,
|
|
55816
|
+
value: roundedDisplayValue,
|
|
55817
|
+
onChange: onSetValue,
|
|
55818
|
+
onFocus: onInputFocus,
|
|
55819
|
+
onBlur: onInputBlur,
|
|
55820
|
+
error: error2 || validationError,
|
|
55821
|
+
warning: warning2,
|
|
55822
|
+
right: !left2,
|
|
55823
|
+
small: small2,
|
|
55824
|
+
width: width2,
|
|
55825
|
+
isInTable: isInTable2,
|
|
55826
|
+
groupOrder,
|
|
55827
|
+
tabIndex,
|
|
55828
|
+
tooltip: tooltip2,
|
|
55829
|
+
ref: inputRef
|
|
55830
|
+
},
|
|
55831
|
+
stringName
|
|
55793
55832
|
);
|
|
55794
55833
|
};
|
|
55795
55834
|
const NumberInputCell = ({ cell: cell2, testId }) => {
|
|
@@ -55815,7 +55854,6 @@ const NumberInputCell = ({ cell: cell2, testId }) => {
|
|
|
55815
55854
|
tooltip: cell2.tooltip,
|
|
55816
55855
|
validationCallback: cell2.validationCallback,
|
|
55817
55856
|
allowEmpty: cell2.allowEmpty,
|
|
55818
|
-
enableCosmeticRounding: cell2.enableCosmeticRounding,
|
|
55819
55857
|
enableDisplayRounding: cell2.enableDisplayRounding,
|
|
55820
55858
|
roundDisplayValue: cell2.roundDisplayValue
|
|
55821
55859
|
}
|
|
@@ -56584,8 +56622,7 @@ const Tabs = ({
|
|
|
56584
56622
|
options: rawOptions = null,
|
|
56585
56623
|
children = null,
|
|
56586
56624
|
value: rawValue = void 0,
|
|
56587
|
-
onChange =
|
|
56588
|
-
},
|
|
56625
|
+
onChange = noop$3,
|
|
56589
56626
|
padding: padding2 = false,
|
|
56590
56627
|
margin: margin2 = true,
|
|
56591
56628
|
contentPadding: contentPadding2 = true,
|
|
@@ -56621,6 +56658,18 @@ const Tabs = ({
|
|
|
56621
56658
|
const selectedValue = isDeprecated || value === void 0 || value === null ? void 0 : simpleInputs ? value : value.value;
|
|
56622
56659
|
const activeTabIndexBase = rawActiveTabIndex !== void 0 ? rawActiveTabIndex : tabs2 == null ? void 0 : tabs2.findIndex((t) => t.value === selectedValue);
|
|
56623
56660
|
const activeTabIndex = activeTabIndexBase === -1 ? 0 : activeTabIndexBase;
|
|
56661
|
+
const handleTabClick = (index2, tab2, event) => {
|
|
56662
|
+
if (isDeprecated) {
|
|
56663
|
+
const value2 = tab2.key || tab2.label || null;
|
|
56664
|
+
onChangeTab(index2, value2);
|
|
56665
|
+
} else {
|
|
56666
|
+
const target = event.target;
|
|
56667
|
+
target.name = name2;
|
|
56668
|
+
target.value = tab2.value;
|
|
56669
|
+
target.label = tab2.label;
|
|
56670
|
+
onChange(event);
|
|
56671
|
+
}
|
|
56672
|
+
};
|
|
56624
56673
|
const renderTab = (tab2, index2) => {
|
|
56625
56674
|
const {
|
|
56626
56675
|
label: label2,
|
|
@@ -56644,16 +56693,7 @@ const Tabs = ({
|
|
|
56644
56693
|
badge: badge2,
|
|
56645
56694
|
right: right2,
|
|
56646
56695
|
active: isDeprecated ? index2 === activeTabIndex : value2 === selectedValue,
|
|
56647
|
-
onClick:
|
|
56648
|
-
const value3 = tab2.key || label2 || null;
|
|
56649
|
-
onChangeTab(index2, value3);
|
|
56650
|
-
} : (evt) => {
|
|
56651
|
-
const target = evt.target;
|
|
56652
|
-
target.name = name2;
|
|
56653
|
-
target.value = tab2.value;
|
|
56654
|
-
target.label = label2;
|
|
56655
|
-
onChange(evt);
|
|
56656
|
-
},
|
|
56696
|
+
onClick: (event) => handleTabClick(index2, tab2, event),
|
|
56657
56697
|
testId: testId2
|
|
56658
56698
|
},
|
|
56659
56699
|
index2
|
|
@@ -56705,20 +56745,22 @@ const TextLink = ({
|
|
|
56705
56745
|
}
|
|
56706
56746
|
);
|
|
56707
56747
|
};
|
|
56708
|
-
const inputInTable = "
|
|
56709
|
-
const
|
|
56710
|
-
const
|
|
56711
|
-
const
|
|
56712
|
-
const
|
|
56713
|
-
const
|
|
56714
|
-
const
|
|
56715
|
-
const
|
|
56716
|
-
const
|
|
56717
|
-
const
|
|
56718
|
-
const
|
|
56719
|
-
const monospace = "
|
|
56748
|
+
const inputInTable = "_inputInTable_9svgh_1";
|
|
56749
|
+
const error = "_error_9svgh_7";
|
|
56750
|
+
const warning$1 = "_warning_9svgh_7";
|
|
56751
|
+
const inputHover = "_inputHover_9svgh_13";
|
|
56752
|
+
const inputFocus = "_inputFocus_9svgh_18";
|
|
56753
|
+
const inputError = "_inputError_9svgh_25";
|
|
56754
|
+
const inputWarning = "_inputWarning_9svgh_26";
|
|
56755
|
+
const inputDisabled = "_inputDisabled_9svgh_61";
|
|
56756
|
+
const hideScrollbars = "_hideScrollbars_9svgh_67";
|
|
56757
|
+
const textarea = "_textarea_9svgh_77";
|
|
56758
|
+
const small$1 = "_small_9svgh_116";
|
|
56759
|
+
const monospace = "_monospace_9svgh_155";
|
|
56720
56760
|
const styles$5 = {
|
|
56721
56761
|
inputInTable,
|
|
56762
|
+
error,
|
|
56763
|
+
warning: warning$1,
|
|
56722
56764
|
inputHover,
|
|
56723
56765
|
inputFocus,
|
|
56724
56766
|
inputError,
|
|
@@ -56727,8 +56769,6 @@ const styles$5 = {
|
|
|
56727
56769
|
hideScrollbars,
|
|
56728
56770
|
textarea,
|
|
56729
56771
|
small: small$1,
|
|
56730
|
-
error,
|
|
56731
|
-
warning: warning$1,
|
|
56732
56772
|
monospace
|
|
56733
56773
|
};
|
|
56734
56774
|
const TextArea = ({
|
|
@@ -56738,14 +56778,10 @@ const TextArea = ({
|
|
|
56738
56778
|
cols,
|
|
56739
56779
|
rows,
|
|
56740
56780
|
disabled: disabled2 = false,
|
|
56741
|
-
onChange =
|
|
56742
|
-
|
|
56743
|
-
|
|
56744
|
-
|
|
56745
|
-
onFocus = () => {
|
|
56746
|
-
},
|
|
56747
|
-
onBlur = () => {
|
|
56748
|
-
},
|
|
56781
|
+
onChange = noop$3,
|
|
56782
|
+
onKeyPress = noop$3,
|
|
56783
|
+
onFocus = noop$3,
|
|
56784
|
+
onBlur = noop$3,
|
|
56749
56785
|
tabIndex = 0,
|
|
56750
56786
|
error: error2 = null,
|
|
56751
56787
|
warning: warning2 = null,
|
|
@@ -70232,14 +70268,10 @@ const UnitInput = ({
|
|
|
70232
70268
|
unitkey = "",
|
|
70233
70269
|
initUnit,
|
|
70234
70270
|
noConversion = false,
|
|
70235
|
-
onChange =
|
|
70236
|
-
|
|
70237
|
-
|
|
70238
|
-
|
|
70239
|
-
onFocus = () => {
|
|
70240
|
-
},
|
|
70241
|
-
onSwitchUnit = () => {
|
|
70242
|
-
},
|
|
70271
|
+
onChange = noop$3,
|
|
70272
|
+
onClick = noop$3,
|
|
70273
|
+
onFocus = noop$3,
|
|
70274
|
+
onSwitchUnit = noop$3,
|
|
70243
70275
|
unitTemplate,
|
|
70244
70276
|
doNotConvertValue = false,
|
|
70245
70277
|
testId,
|
|
@@ -70251,10 +70283,7 @@ const UnitInput = ({
|
|
|
70251
70283
|
validationCallback = () => ({ name: "", error: null }),
|
|
70252
70284
|
disabledValidation = false,
|
|
70253
70285
|
allowEmpty = false,
|
|
70254
|
-
autoValue
|
|
70255
|
-
convertBackToStorageUnit = false,
|
|
70256
|
-
enableCosmeticRounding = true,
|
|
70257
|
-
enableDisplayRounding = false
|
|
70286
|
+
autoValue
|
|
70258
70287
|
}) => {
|
|
70259
70288
|
const context2 = useUnitContext();
|
|
70260
70289
|
const runAfterUpdate = useRunAfterUpdate();
|
|
@@ -70288,7 +70317,7 @@ const UnitInput = ({
|
|
|
70288
70317
|
initialPredefinedOption ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM
|
|
70289
70318
|
);
|
|
70290
70319
|
const isAutoValue = propValue === "" && autoValue;
|
|
70291
|
-
const disableInternalErrorValidationMessages = !!(disabledValidation || autoValue || placeholder3);
|
|
70320
|
+
const disableInternalErrorValidationMessages = !!(disabledValidation || autoValue || placeholder3 && isEmptyNullOrUndefined(value));
|
|
70292
70321
|
const foundPredefinedMenuOption = predefinedOptions && predefinedOptions.find((el2) => {
|
|
70293
70322
|
if (!(el2 == null ? void 0 : el2.value)) return;
|
|
70294
70323
|
if (selectedPredefinedOptionKey) {
|
|
@@ -70319,10 +70348,9 @@ const UnitInput = ({
|
|
|
70319
70348
|
const input2 = evt.target;
|
|
70320
70349
|
const { value: inputValue, selectionStart: currentCursorPosition } = input2;
|
|
70321
70350
|
const newValue = withUnit(inputValue, (displayLayer == null ? void 0 : displayLayer.unit) || "");
|
|
70322
|
-
const returnValue = convertBackToStorageUnit ? withUnit(convertAndGetValue(newValue, propUnit), propUnit) : newValue;
|
|
70323
70351
|
onChange({
|
|
70324
70352
|
target: {
|
|
70325
|
-
value:
|
|
70353
|
+
value: newValue,
|
|
70326
70354
|
name: stringName2
|
|
70327
70355
|
}
|
|
70328
70356
|
});
|
|
@@ -70483,8 +70511,6 @@ const UnitInput = ({
|
|
|
70483
70511
|
left: left2,
|
|
70484
70512
|
allowEmpty,
|
|
70485
70513
|
validationCallback: (_name, error22) => validationCallback(stringName, error22),
|
|
70486
|
-
enableCosmeticRounding,
|
|
70487
|
-
enableDisplayRounding,
|
|
70488
70514
|
groupOrder: predefinedOptions ? "middle" : "first",
|
|
70489
70515
|
disableInternalErrorValidationMessages
|
|
70490
70516
|
},
|
|
@@ -70504,7 +70530,7 @@ const UnitInput = ({
|
|
|
70504
70530
|
sections: alternativeUnits.map(([value2, altUnit, label2]) => {
|
|
70505
70531
|
const displayUnit = label2 || altUnit || "";
|
|
70506
70532
|
const safeValue = !isNaN(Number(value2)) ? value2 : "";
|
|
70507
|
-
const displayValue =
|
|
70533
|
+
const displayValue = safeValue;
|
|
70508
70534
|
return {
|
|
70509
70535
|
type: "Option",
|
|
70510
70536
|
label: displayValue,
|
|
@@ -70575,12 +70601,22 @@ const convertVisibleRows = ({
|
|
|
70575
70601
|
const storageUnit = storageUnits[unitKey];
|
|
70576
70602
|
const unitChanged = selectedUnit !== storageUnit;
|
|
70577
70603
|
const convertedValue = unitChanged ? convertAndGetValue(value, selectedUnit, storageUnit) : cell2.value;
|
|
70578
|
-
const
|
|
70604
|
+
const isScientific = isScientificStringNum(value);
|
|
70605
|
+
const displayValue = enableCosmeticRounding && (unitChanged || !isScientific) ? (
|
|
70606
|
+
/*
|
|
70607
|
+
Optionally do Excel-style "cosmetic rounding" of display values (only if enableCosmeticRounding prop on)
|
|
70608
|
+
This means rounding to slightly less precision than the underlying floating-point number type, to
|
|
70609
|
+
resolve floating-point "rounding noise" associated with storing values in one unit but converting
|
|
70610
|
+
and displaying them in another unit. This solution was evaluated by Tools Team in relation to
|
|
70611
|
+
tickets OW-10614 and OW-15745.
|
|
70612
|
+
*/
|
|
70613
|
+
roundToPrecision(convertedValue, 14)
|
|
70614
|
+
) : convertedValue;
|
|
70615
|
+
const formattedDisplayValue = formatDisplayValue ? formatDisplayValue(displayValue) : displayValue;
|
|
70579
70616
|
return {
|
|
70580
70617
|
...cell2,
|
|
70581
70618
|
value: formattedDisplayValue,
|
|
70582
|
-
enableCosmeticRounding
|
|
70583
|
-
//todo: why did we need to check unitChanged here? (original rationale)
|
|
70619
|
+
enableCosmeticRounding,
|
|
70584
70620
|
enableDisplayRounding,
|
|
70585
70621
|
roundDisplayValue,
|
|
70586
70622
|
onChange: (evt) => {
|