@sisense/sdk-shared-ui 2.1.1 → 2.3.0
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/Breadcrumbs-B-OHBus7.cjs +3 -0
- package/dist/{Breadcrumbs-qJmt9n6B.js → Breadcrumbs-DrCp8avo.js} +12 -13
- package/dist/Button-CvkAcTyS.cjs +1 -0
- package/dist/{Button-Y7DwfxdO.js → Button-cvim-8Bz.js} +345 -165
- package/dist/{ButtonBase-UWHDpyst.js → ButtonBase-4TqAVSBf.js} +166 -164
- package/dist/ButtonBase-hZEG-21k.cjs +74 -0
- package/dist/Checkbox-BbF4jutm.cjs +1 -0
- package/dist/{Checkbox-BNkk6YDz.js → Checkbox-aMi60WQj.js} +249 -171
- package/dist/CircularProgress-B3FkrcM6.js +249 -0
- package/dist/CircularProgress-BWqRJiR-.cjs +28 -0
- package/dist/DEPRECATED_Tooltip-C3s_235Q.js +1961 -0
- package/dist/DEPRECATED_Tooltip-DL3MmzWZ.cjs +25 -0
- package/dist/{Dropdown-D8rLKKcl.cjs → Dropdown-B6uSaA3z.cjs} +1 -1
- package/dist/{Dropdown-DtWYpFk8.js → Dropdown-BzcjbX6k.js} +2 -2
- package/dist/{Icon-KwS2TWVq.cjs → Icon-DFhY5sRf.cjs} +1 -1
- package/dist/{Icon-JQpFT2bY.js → Icon-DVO7Byvy.js} +2 -2
- package/dist/{Menu-DkPO8bCf.cjs → Menu-CgLII61r.cjs} +1 -1
- package/dist/{Menu-EXiwd8T_.js → Menu-DqvdoiKn.js} +2 -2
- package/dist/{Popover-BjgDIgO7.cjs → Popover-DHy8NRMc.cjs} +1 -1
- package/dist/{Popover-CiYeL2VE.js → Popover-KR_Rc69g.js} +1 -1
- package/dist/Portal-B6TDsfBi.cjs +1 -0
- package/dist/{Portal-DUw3q8Mq.js → Portal-C6RJkJ6n.js} +253 -318
- package/dist/{SvgIcon-DXzFs5aw.cjs → SvgIcon-CjUZ_jwt.cjs} +1 -1
- package/dist/{SvgIcon-5KhsYNcu.js → SvgIcon-a_07YA77.js} +7 -7
- package/dist/TablePagination-CNwjJIdB.cjs +15 -0
- package/dist/{TablePagination-CgaKWA2r.js → TablePagination-D4-bcrO_.js} +2003 -1784
- package/dist/Tooltip-BjyR1mIC.cjs +7 -0
- package/dist/{Tooltip-BpA4opI3.js → Tooltip-CWF5y-3F.js} +20 -19
- package/dist/TransitionGroupContext-BNiEy2cD.js +119 -0
- package/dist/TransitionGroupContext-CJJeIdck.cjs +2 -0
- package/dist/{Typography-BDMqUlbg.cjs → Typography-Pieq_mxw.cjs} +1 -1
- package/dist/{Typography-pY0gGUzu.js → Typography-ReSKaH87.js} +6 -6
- package/dist/__test-helpers__/test-setup.d.ts +2 -0
- package/dist/__test-helpers__/test-setup.d.ts.map +1 -0
- package/dist/{createSvgIcon-B28x3Jky.js → createSvgIcon-CiRZfwSO.js} +1 -1
- package/dist/{createSvgIcon-KaV60kcg.cjs → createSvgIcon-DgE0zN0k.cjs} +1 -1
- package/dist/{emotion-cache-provider-CsTOkc-k.js → emotion-cache-provider-B6yKtm_a.js} +1980 -2095
- package/dist/emotion-cache-provider-XZE1SDsY.cjs +122 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +11 -11
- package/dist/index.umd.js +188 -0
- package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/lib/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/lib/Button/Button.cjs +1 -1
- package/dist/lib/Button/Button.js +2 -2
- package/dist/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +1 -1
- package/dist/lib/Dropdown/Dropdown.cjs +1 -1
- package/dist/lib/Dropdown/Dropdown.js +1 -1
- package/dist/lib/Icon/Icon.cjs +1 -1
- package/dist/lib/Icon/Icon.js +1 -1
- package/dist/lib/Menu/Menu.cjs +1 -1
- package/dist/lib/Menu/Menu.js +2 -2
- package/dist/lib/Popover/Popover.cjs +1 -1
- package/dist/lib/Popover/Popover.d.ts +1 -1
- package/dist/lib/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Popover/Popover.js +1 -1
- package/dist/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lib/Typography/Typography.cjs +1 -1
- package/dist/lib/Typography/Typography.js +2 -2
- package/dist/lightweight/Breadcrumbs-BMR7xumU.js +37 -0
- package/dist/lightweight/Breadcrumbs-BgNa_noo.cjs +1 -0
- package/dist/lightweight/Button-C0bT7IWv.js +96 -0
- package/dist/lightweight/Button-O3zEYLfM.cjs +1 -0
- package/dist/lightweight/CheckableList-1Jq4spYu.cjs +1 -0
- package/dist/lightweight/CheckableList-DTTE9oEw.js +21 -0
- package/dist/lightweight/Checkbox-DqAy-3w-.js +34 -0
- package/dist/lightweight/Checkbox-hyvVpMGp.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Button-CKGdJitl.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Button-Dhs0ieAl.js +87 -0
- package/dist/lightweight/DEPRECATED_Checkbox-Be1l_Vce.js +63 -0
- package/dist/lightweight/DEPRECATED_Checkbox-BggU0HO5.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Icon-Bgufd-9Q.js +56 -0
- package/dist/lightweight/DEPRECATED_Icon-DC1Hc9iB.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Toggle-DMnlQO3F.js +30 -0
- package/dist/lightweight/DEPRECATED_Toggle-Dp0ZZ_6E.cjs +1 -0
- package/dist/lightweight/DEPRECATED_Tooltip-C3s_235Q.js +1961 -0
- package/dist/lightweight/DEPRECATED_Tooltip-DL3MmzWZ.cjs +25 -0
- package/dist/lightweight/Dropdown-B6uSaA3z.cjs +1 -0
- package/dist/lightweight/Dropdown-C5DcG6WG.js +231 -0
- package/dist/lightweight/Icon-4kNYAFUz.cjs +1 -0
- package/dist/lightweight/Icon-DQNqONXU.js +133 -0
- package/dist/lightweight/Input-CNvYE0Er.js +119 -0
- package/dist/lightweight/Input-_wNCDCdI.cjs +1 -0
- package/dist/lightweight/LazyLoader-DB86QSSx.js +18 -0
- package/dist/lightweight/LazyLoader-gOLNhxc-.cjs +1 -0
- package/dist/lightweight/Menu-CgLII61r.cjs +1 -0
- package/dist/lightweight/Menu-DeHgR0JO.js +1211 -0
- package/dist/lightweight/Popover-BAehEo3a.js +49 -0
- package/dist/lightweight/Popover-DHy8NRMc.cjs +1 -0
- package/dist/lightweight/RadioButton-BpAksn2s.js +70 -0
- package/dist/lightweight/RadioButton-Ds-0wj0r.cjs +1 -0
- package/dist/lightweight/TablePagination-Czpnhvp6.cjs +1 -0
- package/dist/lightweight/TablePagination-D1tyNTa7.js +338 -0
- package/dist/lightweight/Tooltip-BcjJxRj4.cjs +1 -0
- package/dist/lightweight/Tooltip-DUpknkQW.js +59 -0
- package/dist/lightweight/Typography-BT1q5az1.cjs +1 -0
- package/dist/lightweight/Typography-CvzdielF.js +153 -0
- package/dist/lightweight/__test-helpers__/test-setup.d.ts +2 -0
- package/dist/lightweight/__test-helpers__/test-setup.d.ts.map +1 -0
- package/dist/lightweight/align.interface-B17uA473.cjs +1 -0
- package/dist/lightweight/align.interface-DdWsijrT.js +4 -0
- package/dist/lightweight/emotion-cache-provider-BsnmG_09.cjs +1 -0
- package/dist/lightweight/emotion-cache-provider-CE1QZs6M.js +18 -0
- package/dist/lightweight/index-B-zZeebW.cjs +20 -0
- package/dist/lightweight/index-D0lMis-I.js +667 -0
- package/dist/lightweight/index.cjs +1 -0
- package/dist/lightweight/index.d.ts +2 -0
- package/dist/lightweight/index.d.ts.map +1 -0
- package/dist/lightweight/index.js +48 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts +16 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.js +7 -0
- package/dist/lightweight/lib/Breadcrumbs/index.d.ts +5 -0
- package/dist/lightweight/lib/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts +4 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/breadcrumbsTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Breadcrumbs/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/Button.cjs +1 -0
- package/dist/lightweight/lib/Button/Button.d.ts +10 -0
- package/dist/lightweight/lib/Button/Button.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/Button.js +7 -0
- package/dist/lightweight/lib/Button/index.d.ts +5 -0
- package/dist/lightweight/lib/Button/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/themes/buttonsTheme.d.ts +11 -0
- package/dist/lightweight/lib/Button/themes/buttonsTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Button/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Button/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.cjs +1 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.d.ts +16 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.d.ts.map +1 -0
- package/dist/lightweight/lib/CheckableList/CheckableList.js +5 -0
- package/dist/lightweight/lib/CheckableList/index.d.ts +4 -0
- package/dist/lightweight/lib/CheckableList/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.cjs +1 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.d.ts +20 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/Checkbox.js +5 -0
- package/dist/lightweight/lib/Checkbox/index.d.ts +4 -0
- package/dist/lightweight/lib/Checkbox/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/themes/checkboxTheme.d.ts +12 -0
- package/dist/lightweight/lib/Checkbox/themes/checkboxTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Checkbox/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Checkbox/themes/uiCustomization.d.ts +12 -0
- package/dist/lightweight/lib/Checkbox/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +43 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Button/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Button/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts +20 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Checkbox/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts +17 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Icon/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts +13 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Toggle/index.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +15 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +5 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/index.d.ts +4 -0
- package/dist/lightweight/lib/DEPRECATED_Tooltip/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.cjs +1 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.d.ts +32 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/Dropdown.js +5 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButton.d.ts +18 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts +12 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts +3 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonBody/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts +10 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts +3 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/index.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +15 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/index.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/DropdownButton/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/hooks/index.d.ts +2 -0
- package/dist/lightweight/lib/Dropdown/hooks/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/hooks/useDropdown.d.ts +9 -0
- package/dist/lightweight/lib/Dropdown/hooks/useDropdown.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/index.d.ts +5 -0
- package/dist/lightweight/lib/Dropdown/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Dropdown/types.d.ts +12 -0
- package/dist/lightweight/lib/Dropdown/types.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/Icon.cjs +1 -0
- package/dist/lightweight/lib/Icon/Icon.d.ts +13 -0
- package/dist/lightweight/lib/Icon/Icon.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/Icon.js +5 -0
- package/dist/lightweight/lib/Icon/index.d.ts +4 -0
- package/dist/lightweight/lib/Icon/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/themes/iconTheme.d.ts +8 -0
- package/dist/lightweight/lib/Icon/themes/iconTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Icon/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Icon/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/Icon/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/Input/Input.cjs +1 -0
- package/dist/lightweight/lib/Input/Input.d.ts +28 -0
- package/dist/lightweight/lib/Input/Input.d.ts.map +1 -0
- package/dist/lightweight/lib/Input/Input.js +5 -0
- package/dist/lightweight/lib/Input/index.d.ts +4 -0
- package/dist/lightweight/lib/Input/index.d.ts.map +1 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.cjs +1 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts +9 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts.map +1 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.js +5 -0
- package/dist/lightweight/lib/LazyLoader/index.d.ts +4 -0
- package/dist/lightweight/lib/LazyLoader/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Confirmation/Confirmation.d.ts +8 -0
- package/dist/lightweight/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Confirmation/index.d.ts +2 -0
- package/dist/lightweight/lib/Menu/Confirmation/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Confirmation/translation.d.ts +2 -0
- package/dist/lightweight/lib/Menu/Confirmation/translation.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Menu.cjs +1 -0
- package/dist/lightweight/lib/Menu/Menu.d.ts +80 -0
- package/dist/lightweight/lib/Menu/Menu.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/Menu.js +8 -0
- package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts +36 -0
- package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/MenuItem/index.d.ts +3 -0
- package/dist/lightweight/lib/Menu/MenuItem/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/index.d.ts +6 -0
- package/dist/lightweight/lib/Menu/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Menu/utils.d.ts +6 -0
- package/dist/lightweight/lib/Menu/utils.d.ts.map +1 -0
- package/dist/lightweight/lib/Popover/Popover.cjs +1 -0
- package/dist/lightweight/lib/Popover/Popover.d.ts +16 -0
- package/dist/lightweight/lib/Popover/Popover.d.ts.map +1 -0
- package/dist/lightweight/lib/Popover/Popover.js +7 -0
- package/dist/lightweight/lib/Popover/align.interface.d.ts +23 -0
- package/dist/lightweight/lib/Popover/align.interface.d.ts.map +1 -0
- package/dist/lightweight/lib/Popover/index.d.ts +6 -0
- package/dist/lightweight/lib/Popover/index.d.ts.map +1 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.cjs +1 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.d.ts +20 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.d.ts.map +1 -0
- package/dist/lightweight/lib/RadioButton/RadioButton.js +5 -0
- package/dist/lightweight/lib/RadioButton/index.d.ts +4 -0
- package/dist/lightweight/lib/RadioButton/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +9 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/index.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts +3 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.cjs +1 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.d.ts +19 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/TablePagination.js +5 -0
- package/dist/lightweight/lib/TablePagination/TablePaginationContext.d.ts +3 -0
- package/dist/lightweight/lib/TablePagination/TablePaginationContext.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/index.d.ts +4 -0
- package/dist/lightweight/lib/TablePagination/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts +10 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationResponsiveDesign.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationTheme.d.ts +3 -0
- package/dist/lightweight/lib/TablePagination/themes/tablePaginationTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/TablePagination/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/TablePagination/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.cjs +1 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.d.ts +10 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/Tooltip.js +7 -0
- package/dist/lightweight/lib/Tooltip/index.d.ts +5 -0
- package/dist/lightweight/lib/Tooltip/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Tooltip/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Tooltip/themes/tooltipTheme.d.ts +3 -0
- package/dist/lightweight/lib/Tooltip/themes/tooltipTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/Typography.cjs +1 -0
- package/dist/lightweight/lib/Typography/Typography.d.ts +11 -0
- package/dist/lightweight/lib/Typography/Typography.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/Typography.js +7 -0
- package/dist/lightweight/lib/Typography/index.d.ts +5 -0
- package/dist/lightweight/lib/Typography/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/themes/index.d.ts +2 -0
- package/dist/lightweight/lib/Typography/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/themes/typographyTheme.d.ts +21 -0
- package/dist/lightweight/lib/Typography/themes/typographyTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/Typography/themes/uiCustomization.d.ts +2 -0
- package/dist/lightweight/lib/Typography/themes/uiCustomization.d.ts.map +1 -0
- package/dist/lightweight/lib/common/emotion-cache-provider.d.ts +11 -0
- package/dist/lightweight/lib/common/emotion-cache-provider.d.ts.map +1 -0
- package/dist/lightweight/lib/constants/styleguideConstants.d.ts +9 -0
- package/dist/lightweight/lib/constants/styleguideConstants.d.ts.map +1 -0
- package/dist/lightweight/lib/index.d.ts +20 -0
- package/dist/lightweight/lib/index.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/colors/index.d.ts +2 -0
- package/dist/lightweight/lib/themes/colors/index.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/colors/siColors.d.ts +140 -0
- package/dist/lightweight/lib/themes/colors/siColors.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/index.d.ts +3 -0
- package/dist/lightweight/lib/themes/index.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/themes.cjs +2 -0
- package/dist/lightweight/lib/themes/themes.js +142 -0
- package/dist/lightweight/lib/themes/types/SisenseTheme.d.ts +12 -0
- package/dist/lightweight/lib/themes/types/SisenseTheme.d.ts.map +1 -0
- package/dist/lightweight/lib/themes/types/index.d.ts +2 -0
- package/dist/lightweight/lib/themes/types/index.d.ts.map +1 -0
- package/dist/lightweight/package.json +248 -0
- package/dist/lightweight/styleguideConstants-CtXkvIZK.cjs +1 -0
- package/dist/lightweight/styleguideConstants-D4Yls16w.js +11 -0
- package/dist/package.json +34 -14
- package/dist/resolveComponentProps-BjHOskdg.cjs +1 -0
- package/dist/resolveComponentProps-L5VTqIs8.js +80 -0
- package/dist/useFormControl-DNim9J_T.cjs +1 -0
- package/dist/useFormControl-lYrMmqEx.js +56 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useId-DNXtOFeX.cjs +1 -0
- package/dist/useSlot-BHK4fbKV.cjs +3 -0
- package/dist/useSlot-DUGuD2Ya.js +77 -0
- package/dist/useSlotProps-9rt1So3E.js +25 -0
- package/dist/useSlotProps-ChaoOi-_.cjs +1 -0
- package/dist/{useTheme-CzEManLl.js → useTheme-DPwUUXTG.js} +1 -1
- package/dist/{useTheme-DmoPdQRb.cjs → useTheme-Dn8Us9iT.cjs} +1 -1
- package/package.json +34 -14
- package/dist/Breadcrumbs-Da5cnPID.cjs +0 -3
- package/dist/Button-RoXZvXZf.cjs +0 -1
- package/dist/ButtonBase-CISYuRKV.cjs +0 -74
- package/dist/Checkbox-DpGUO-Li.cjs +0 -1
- package/dist/DEPRECATED_Tooltip-C2bU8ipb.js +0 -2316
- package/dist/DEPRECATED_Tooltip-D3ReAkFF.cjs +0 -27
- package/dist/Portal-CtJkkaJ7.cjs +0 -1
- package/dist/TablePagination-baLnBUNn.cjs +0 -15
- package/dist/Tooltip-Dcsip2Zy.cjs +0 -7
- package/dist/assertThisInitialized-BSnhOY1M.cjs +0 -1
- package/dist/assertThisInitialized-lz6cHcRv.js +0 -8
- package/dist/deepmerge-BuAjuQR6.cjs +0 -17
- package/dist/deepmerge-DNqbOtFI.js +0 -177
- package/dist/emotion-cache-provider-C66nBUtN.cjs +0 -114
- package/dist/extends-DX42hfxm.js +0 -13
- package/dist/extends-q0Hkx4pQ.cjs +0 -1
- package/dist/setPrototypeOf-BmHXYjK5.cjs +0 -1
- package/dist/setPrototypeOf-CEtRTXk2.js +0 -19
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useFormControl-haP0iPhl.cjs +0 -1
- package/dist/useSlotProps-BxlgPyQJ.js +0 -102
- package/dist/useSlotProps-DS82uuM_.cjs +0 -1
- package/dist/useTimeout-DwkOFF8P.cjs +0 -2
- package/dist/useTimeout-Oe_jK-ia.js +0 -92
|
@@ -0,0 +1,1211 @@
|
|
|
1
|
+
import { jsxs as $, jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import D from "classnames";
|
|
3
|
+
import Le, { Component as ze } from "react";
|
|
4
|
+
import { c as Ve, p as Ze } from "./index-D0lMis-I.js";
|
|
5
|
+
import { L as Qe } from "./LazyLoader-DB86QSSx.js";
|
|
6
|
+
import { P as _e } from "./Popover-BAehEo3a.js";
|
|
7
|
+
import { s as K } from "./styleguideConstants-D4Yls16w.js";
|
|
8
|
+
import { D as Je } from "./DEPRECATED_Checkbox-Be1l_Vce.js";
|
|
9
|
+
import { D as oe } from "./DEPRECATED_Icon-Bgufd-9Q.js";
|
|
10
|
+
import { D as Ke } from "./DEPRECATED_Toggle-DMnlQO3F.js";
|
|
11
|
+
import { D as et } from "./DEPRECATED_Tooltip-C3s_235Q.js";
|
|
12
|
+
import { R as tt } from "./RadioButton-BpAksn2s.js";
|
|
13
|
+
var Ie = {}, Oe = {}, ce = { exports: {} }, ee = { exports: {} };
|
|
14
|
+
(function() {
|
|
15
|
+
var n, o, e, i, u, c;
|
|
16
|
+
typeof performance < "u" && performance !== null && performance.now ? ee.exports = function() {
|
|
17
|
+
return performance.now();
|
|
18
|
+
} : typeof process < "u" && process !== null && process.hrtime ? (ee.exports = function() {
|
|
19
|
+
return (n() - u) / 1e6;
|
|
20
|
+
}, o = process.hrtime, n = function() {
|
|
21
|
+
var d;
|
|
22
|
+
return d = o(), d[0] * 1e9 + d[1];
|
|
23
|
+
}, i = n(), c = process.uptime() * 1e9, u = i - c) : Date.now ? (ee.exports = function() {
|
|
24
|
+
return Date.now() - e;
|
|
25
|
+
}, e = Date.now()) : (ee.exports = function() {
|
|
26
|
+
return (/* @__PURE__ */ new Date()).getTime() - e;
|
|
27
|
+
}, e = (/* @__PURE__ */ new Date()).getTime());
|
|
28
|
+
}).call(Ve);
|
|
29
|
+
var rt = ee.exports, nt = rt, O = typeof window > "u" ? Ve : window, ie = ["moz", "webkit"], q = "AnimationFrame", j = O["request" + q], te = O["cancel" + q] || O["cancelRequest" + q];
|
|
30
|
+
for (var J = 0; !j && J < ie.length; J++)
|
|
31
|
+
j = O[ie[J] + "Request" + q], te = O[ie[J] + "Cancel" + q] || O[ie[J] + "CancelRequest" + q];
|
|
32
|
+
if (!j || !te) {
|
|
33
|
+
var Se = 0, Me = 0, X = [], ot = 1e3 / 60;
|
|
34
|
+
j = function(n) {
|
|
35
|
+
if (X.length === 0) {
|
|
36
|
+
var o = nt(), e = Math.max(0, ot - (o - Se));
|
|
37
|
+
Se = e + o, setTimeout(function() {
|
|
38
|
+
var i = X.slice(0);
|
|
39
|
+
X.length = 0;
|
|
40
|
+
for (var u = 0; u < i.length; u++)
|
|
41
|
+
if (!i[u].cancelled)
|
|
42
|
+
try {
|
|
43
|
+
i[u].callback(Se);
|
|
44
|
+
} catch (c) {
|
|
45
|
+
setTimeout(function() {
|
|
46
|
+
throw c;
|
|
47
|
+
}, 0);
|
|
48
|
+
}
|
|
49
|
+
}, Math.round(e));
|
|
50
|
+
}
|
|
51
|
+
return X.push({
|
|
52
|
+
handle: ++Me,
|
|
53
|
+
callback: n,
|
|
54
|
+
cancelled: !1
|
|
55
|
+
}), Me;
|
|
56
|
+
}, te = function(n) {
|
|
57
|
+
for (var o = 0; o < X.length; o++)
|
|
58
|
+
X[o].handle === n && (X[o].cancelled = !0);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
ce.exports = function(n) {
|
|
62
|
+
return j.call(O, n);
|
|
63
|
+
};
|
|
64
|
+
ce.exports.cancel = function() {
|
|
65
|
+
te.apply(O, arguments);
|
|
66
|
+
};
|
|
67
|
+
ce.exports.polyfill = function(n) {
|
|
68
|
+
n || (n = O), n.requestAnimationFrame = j, n.cancelAnimationFrame = te;
|
|
69
|
+
};
|
|
70
|
+
var it = ce.exports, de = { exports: {} }, ye = null, Ce = ["Webkit", "Moz", "O", "ms"], at = function(o) {
|
|
71
|
+
ye || (ye = document.createElement("div"));
|
|
72
|
+
var e = ye.style;
|
|
73
|
+
if (o in e)
|
|
74
|
+
return o;
|
|
75
|
+
for (var i = o.charAt(0).toUpperCase() + o.slice(1), u = Ce.length; u >= 0; u--) {
|
|
76
|
+
var c = Ce[u] + i;
|
|
77
|
+
if (c in e)
|
|
78
|
+
return c;
|
|
79
|
+
}
|
|
80
|
+
return !1;
|
|
81
|
+
}, lt = dt, st = /\s/, ut = /(_|-|\.|:)/, ct = /([a-z][A-Z]|[A-Z][a-z])/;
|
|
82
|
+
function dt(n) {
|
|
83
|
+
return st.test(n) ? n.toLowerCase() : ut.test(n) ? (ft(n) || n).toLowerCase() : ct.test(n) ? vt(n).toLowerCase() : n.toLowerCase();
|
|
84
|
+
}
|
|
85
|
+
var ht = /[\W_]+(.|$)/g;
|
|
86
|
+
function ft(n) {
|
|
87
|
+
return n.replace(ht, function(o, e) {
|
|
88
|
+
return e ? " " + e : "";
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
var mt = /(.)([A-Z]+)/g;
|
|
92
|
+
function vt(n) {
|
|
93
|
+
return n.replace(mt, function(o, e, i) {
|
|
94
|
+
return e + " " + i.toLowerCase().split("").join(" ");
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
var pt = lt, gt = bt;
|
|
98
|
+
function bt(n) {
|
|
99
|
+
return pt(n).replace(/[\W_]+(.|$)/g, function(o, e) {
|
|
100
|
+
return e ? " " + e : "";
|
|
101
|
+
}).trim();
|
|
102
|
+
}
|
|
103
|
+
var Tt = gt, _t = St;
|
|
104
|
+
function St(n) {
|
|
105
|
+
return Tt(n).replace(/\s(\w)/g, function(o, e) {
|
|
106
|
+
return e.toUpperCase();
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
var yt = {
|
|
110
|
+
animationIterationCount: !0,
|
|
111
|
+
boxFlex: !0,
|
|
112
|
+
boxFlexGroup: !0,
|
|
113
|
+
boxOrdinalGroup: !0,
|
|
114
|
+
columnCount: !0,
|
|
115
|
+
flex: !0,
|
|
116
|
+
flexGrow: !0,
|
|
117
|
+
flexPositive: !0,
|
|
118
|
+
flexShrink: !0,
|
|
119
|
+
flexNegative: !0,
|
|
120
|
+
flexOrder: !0,
|
|
121
|
+
gridRow: !0,
|
|
122
|
+
gridColumn: !0,
|
|
123
|
+
fontWeight: !0,
|
|
124
|
+
lineClamp: !0,
|
|
125
|
+
lineHeight: !0,
|
|
126
|
+
opacity: !0,
|
|
127
|
+
order: !0,
|
|
128
|
+
orphans: !0,
|
|
129
|
+
tabSize: !0,
|
|
130
|
+
widows: !0,
|
|
131
|
+
zIndex: !0,
|
|
132
|
+
zoom: !0,
|
|
133
|
+
// SVG-related properties
|
|
134
|
+
fillOpacity: !0,
|
|
135
|
+
stopOpacity: !0,
|
|
136
|
+
strokeDashoffset: !0,
|
|
137
|
+
strokeOpacity: !0,
|
|
138
|
+
strokeWidth: !0
|
|
139
|
+
}, kt = function(n, o) {
|
|
140
|
+
return typeof o == "number" && !yt[n] ? o + "px" : o;
|
|
141
|
+
}, Ht = at, wt = _t, le = { float: "cssFloat" }, Mt = kt;
|
|
142
|
+
function se(n, o, e) {
|
|
143
|
+
var i = le[o];
|
|
144
|
+
if (typeof i > "u" && (i = Dt(o)), i) {
|
|
145
|
+
if (e === void 0)
|
|
146
|
+
return n.style[i];
|
|
147
|
+
n.style[i] = Mt(i, e);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function Ct(n, o) {
|
|
151
|
+
for (var e in o)
|
|
152
|
+
o.hasOwnProperty(e) && se(n, e, o[e]);
|
|
153
|
+
}
|
|
154
|
+
function Dt(n) {
|
|
155
|
+
var o = wt(n), e = Ht(o);
|
|
156
|
+
return le[o] = le[n] = le[e] = e, e;
|
|
157
|
+
}
|
|
158
|
+
function We() {
|
|
159
|
+
arguments.length === 2 ? typeof arguments[1] == "string" ? arguments[0].style.cssText = arguments[1] : Ct(arguments[0], arguments[1]) : se(arguments[0], arguments[1], arguments[2]);
|
|
160
|
+
}
|
|
161
|
+
de.exports = We;
|
|
162
|
+
de.exports.set = We;
|
|
163
|
+
de.exports.get = function(n, o) {
|
|
164
|
+
return Array.isArray(o) ? o.reduce(function(e, i) {
|
|
165
|
+
return e[i] = se(n, i || ""), e;
|
|
166
|
+
}, {}) : se(n, o || "");
|
|
167
|
+
};
|
|
168
|
+
var xe = de.exports, Ne = {};
|
|
169
|
+
(function(n) {
|
|
170
|
+
Object.defineProperty(n, "__esModule", {
|
|
171
|
+
value: !0
|
|
172
|
+
}), n.default = o;
|
|
173
|
+
function o(e) {
|
|
174
|
+
return typeof e == "string";
|
|
175
|
+
}
|
|
176
|
+
})(Ne);
|
|
177
|
+
var Re = {};
|
|
178
|
+
(function(n) {
|
|
179
|
+
Object.defineProperty(n, "__esModule", {
|
|
180
|
+
value: !0
|
|
181
|
+
}), n.default = c;
|
|
182
|
+
var o = xe, e = i(o);
|
|
183
|
+
function i(d) {
|
|
184
|
+
return d && d.__esModule ? d : { default: d };
|
|
185
|
+
}
|
|
186
|
+
var u = !1;
|
|
187
|
+
function c() {
|
|
188
|
+
if (u !== !1) return u;
|
|
189
|
+
if (typeof document < "u") {
|
|
190
|
+
var d = document.createElement("div");
|
|
191
|
+
(0, e.default)(d, {
|
|
192
|
+
width: 100,
|
|
193
|
+
height: 100,
|
|
194
|
+
position: "absolute",
|
|
195
|
+
top: -9999,
|
|
196
|
+
overflow: "scroll",
|
|
197
|
+
MsOverflowStyle: "scrollbar"
|
|
198
|
+
}), document.body.appendChild(d), u = d.offsetWidth - d.clientWidth, document.body.removeChild(d);
|
|
199
|
+
} else
|
|
200
|
+
u = 0;
|
|
201
|
+
return u || 0;
|
|
202
|
+
}
|
|
203
|
+
})(Re);
|
|
204
|
+
var Pe = {};
|
|
205
|
+
(function(n) {
|
|
206
|
+
Object.defineProperty(n, "__esModule", {
|
|
207
|
+
value: !0
|
|
208
|
+
}), n.default = o;
|
|
209
|
+
function o() {
|
|
210
|
+
return !1;
|
|
211
|
+
}
|
|
212
|
+
})(Pe);
|
|
213
|
+
var Ae = {};
|
|
214
|
+
(function(n) {
|
|
215
|
+
Object.defineProperty(n, "__esModule", {
|
|
216
|
+
value: !0
|
|
217
|
+
}), n.default = o;
|
|
218
|
+
function o(e) {
|
|
219
|
+
var i = e.clientWidth, u = getComputedStyle(e), c = u.paddingLeft, d = u.paddingRight;
|
|
220
|
+
return i - parseFloat(c) - parseFloat(d);
|
|
221
|
+
}
|
|
222
|
+
})(Ae);
|
|
223
|
+
var Be = {};
|
|
224
|
+
(function(n) {
|
|
225
|
+
Object.defineProperty(n, "__esModule", {
|
|
226
|
+
value: !0
|
|
227
|
+
}), n.default = o;
|
|
228
|
+
function o(e) {
|
|
229
|
+
var i = e.clientHeight, u = getComputedStyle(e), c = u.paddingTop, d = u.paddingBottom;
|
|
230
|
+
return i - parseFloat(c) - parseFloat(d);
|
|
231
|
+
}
|
|
232
|
+
})(Be);
|
|
233
|
+
var H = {};
|
|
234
|
+
Object.defineProperty(H, "__esModule", {
|
|
235
|
+
value: !0
|
|
236
|
+
});
|
|
237
|
+
H.containerStyleDefault = {
|
|
238
|
+
position: "relative",
|
|
239
|
+
overflow: "hidden",
|
|
240
|
+
width: "100%",
|
|
241
|
+
height: "100%"
|
|
242
|
+
};
|
|
243
|
+
H.containerStyleAutoHeight = {
|
|
244
|
+
height: "auto"
|
|
245
|
+
};
|
|
246
|
+
H.viewStyleDefault = {
|
|
247
|
+
position: "absolute",
|
|
248
|
+
top: 0,
|
|
249
|
+
left: 0,
|
|
250
|
+
right: 0,
|
|
251
|
+
bottom: 0,
|
|
252
|
+
overflow: "scroll",
|
|
253
|
+
WebkitOverflowScrolling: "touch"
|
|
254
|
+
};
|
|
255
|
+
H.viewStyleAutoHeight = {
|
|
256
|
+
position: "relative",
|
|
257
|
+
top: void 0,
|
|
258
|
+
left: void 0,
|
|
259
|
+
right: void 0,
|
|
260
|
+
bottom: void 0
|
|
261
|
+
};
|
|
262
|
+
H.viewStyleUniversalInitial = {
|
|
263
|
+
overflow: "hidden",
|
|
264
|
+
marginRight: 0,
|
|
265
|
+
marginBottom: 0
|
|
266
|
+
};
|
|
267
|
+
H.trackHorizontalStyleDefault = {
|
|
268
|
+
position: "absolute",
|
|
269
|
+
height: 6
|
|
270
|
+
};
|
|
271
|
+
H.trackVerticalStyleDefault = {
|
|
272
|
+
position: "absolute",
|
|
273
|
+
width: 6
|
|
274
|
+
};
|
|
275
|
+
H.thumbHorizontalStyleDefault = {
|
|
276
|
+
position: "relative",
|
|
277
|
+
display: "block",
|
|
278
|
+
height: "100%"
|
|
279
|
+
};
|
|
280
|
+
H.thumbVerticalStyleDefault = {
|
|
281
|
+
position: "relative",
|
|
282
|
+
display: "block",
|
|
283
|
+
width: "100%"
|
|
284
|
+
};
|
|
285
|
+
H.disableSelectStyle = {
|
|
286
|
+
userSelect: "none"
|
|
287
|
+
};
|
|
288
|
+
H.disableSelectStyleReset = {
|
|
289
|
+
userSelect: ""
|
|
290
|
+
};
|
|
291
|
+
var Y = {};
|
|
292
|
+
Object.defineProperty(Y, "__esModule", {
|
|
293
|
+
value: !0
|
|
294
|
+
});
|
|
295
|
+
var F = Object.assign || function(n) {
|
|
296
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
297
|
+
var e = arguments[o];
|
|
298
|
+
for (var i in e)
|
|
299
|
+
Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
|
|
300
|
+
}
|
|
301
|
+
return n;
|
|
302
|
+
};
|
|
303
|
+
Y.renderViewDefault = zt;
|
|
304
|
+
Y.renderTrackHorizontalDefault = Vt;
|
|
305
|
+
Y.renderTrackVerticalDefault = It;
|
|
306
|
+
Y.renderThumbHorizontalDefault = Ot;
|
|
307
|
+
Y.renderThumbVerticalDefault = Wt;
|
|
308
|
+
var Et = Le, re = Lt(Et);
|
|
309
|
+
function Lt(n) {
|
|
310
|
+
return n && n.__esModule ? n : { default: n };
|
|
311
|
+
}
|
|
312
|
+
function he(n, o) {
|
|
313
|
+
var e = {};
|
|
314
|
+
for (var i in n)
|
|
315
|
+
o.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
316
|
+
return e;
|
|
317
|
+
}
|
|
318
|
+
function zt(n) {
|
|
319
|
+
return re.default.createElement("div", n);
|
|
320
|
+
}
|
|
321
|
+
function Vt(n) {
|
|
322
|
+
var o = n.style, e = he(n, ["style"]), i = F({}, o, {
|
|
323
|
+
right: 2,
|
|
324
|
+
bottom: 2,
|
|
325
|
+
left: 2,
|
|
326
|
+
borderRadius: 3
|
|
327
|
+
});
|
|
328
|
+
return re.default.createElement("div", F({ style: i }, e));
|
|
329
|
+
}
|
|
330
|
+
function It(n) {
|
|
331
|
+
var o = n.style, e = he(n, ["style"]), i = F({}, o, {
|
|
332
|
+
right: 2,
|
|
333
|
+
bottom: 2,
|
|
334
|
+
top: 2,
|
|
335
|
+
borderRadius: 3
|
|
336
|
+
});
|
|
337
|
+
return re.default.createElement("div", F({ style: i }, e));
|
|
338
|
+
}
|
|
339
|
+
function Ot(n) {
|
|
340
|
+
var o = n.style, e = he(n, ["style"]), i = F({}, o, {
|
|
341
|
+
cursor: "pointer",
|
|
342
|
+
borderRadius: "inherit",
|
|
343
|
+
backgroundColor: "rgba(0,0,0,.2)"
|
|
344
|
+
});
|
|
345
|
+
return re.default.createElement("div", F({ style: i }, e));
|
|
346
|
+
}
|
|
347
|
+
function Wt(n) {
|
|
348
|
+
var o = n.style, e = he(n, ["style"]), i = F({}, o, {
|
|
349
|
+
cursor: "pointer",
|
|
350
|
+
borderRadius: "inherit",
|
|
351
|
+
backgroundColor: "rgba(0,0,0,.2)"
|
|
352
|
+
});
|
|
353
|
+
return re.default.createElement("div", F({ style: i }, e));
|
|
354
|
+
}
|
|
355
|
+
(function(n) {
|
|
356
|
+
Object.defineProperty(n, "__esModule", {
|
|
357
|
+
value: !0
|
|
358
|
+
});
|
|
359
|
+
var o = Object.assign || function(g) {
|
|
360
|
+
for (var m = 1; m < arguments.length; m++) {
|
|
361
|
+
var l = arguments[m];
|
|
362
|
+
for (var r in l)
|
|
363
|
+
Object.prototype.hasOwnProperty.call(l, r) && (g[r] = l[r]);
|
|
364
|
+
}
|
|
365
|
+
return g;
|
|
366
|
+
}, e = /* @__PURE__ */ function() {
|
|
367
|
+
function g(m, l) {
|
|
368
|
+
for (var r = 0; r < l.length; r++) {
|
|
369
|
+
var a = l[r];
|
|
370
|
+
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(m, a.key, a);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return function(m, l, r) {
|
|
374
|
+
return l && g(m.prototype, l), r && g(m, r), m;
|
|
375
|
+
};
|
|
376
|
+
}(), i = it, u = x(i), c = xe, d = x(c), y = Le, E = Ze, f = x(E), W = Ne, V = x(W), k = Re, b = x(k), I = Pe, U = x(I), Fe = Ae, fe = x(Fe), Ue = Be, me = x(Ue), w = H, Z = Y;
|
|
377
|
+
function x(g) {
|
|
378
|
+
return g && g.__esModule ? g : { default: g };
|
|
379
|
+
}
|
|
380
|
+
function Xe(g, m) {
|
|
381
|
+
var l = {};
|
|
382
|
+
for (var r in g)
|
|
383
|
+
m.indexOf(r) >= 0 || Object.prototype.hasOwnProperty.call(g, r) && (l[r] = g[r]);
|
|
384
|
+
return l;
|
|
385
|
+
}
|
|
386
|
+
function $e(g, m) {
|
|
387
|
+
if (!(g instanceof m))
|
|
388
|
+
throw new TypeError("Cannot call a class as a function");
|
|
389
|
+
}
|
|
390
|
+
function Ye(g, m) {
|
|
391
|
+
if (!g)
|
|
392
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
393
|
+
return m && (typeof m == "object" || typeof m == "function") ? m : g;
|
|
394
|
+
}
|
|
395
|
+
function Ge(g, m) {
|
|
396
|
+
if (typeof m != "function" && m !== null)
|
|
397
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof m);
|
|
398
|
+
g.prototype = Object.create(m && m.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(g, m) : g.__proto__ = m);
|
|
399
|
+
}
|
|
400
|
+
var ve = function(g) {
|
|
401
|
+
Ge(m, g);
|
|
402
|
+
function m(l) {
|
|
403
|
+
var r;
|
|
404
|
+
$e(this, m);
|
|
405
|
+
for (var a = arguments.length, s = Array(a > 1 ? a - 1 : 0), h = 1; h < a; h++)
|
|
406
|
+
s[h - 1] = arguments[h];
|
|
407
|
+
var t = Ye(this, (r = m.__proto__ || Object.getPrototypeOf(m)).call.apply(r, [this, l].concat(s)));
|
|
408
|
+
return t.getScrollLeft = t.getScrollLeft.bind(t), t.getScrollTop = t.getScrollTop.bind(t), t.getScrollWidth = t.getScrollWidth.bind(t), t.getScrollHeight = t.getScrollHeight.bind(t), t.getClientWidth = t.getClientWidth.bind(t), t.getClientHeight = t.getClientHeight.bind(t), t.getValues = t.getValues.bind(t), t.getThumbHorizontalWidth = t.getThumbHorizontalWidth.bind(t), t.getThumbVerticalHeight = t.getThumbVerticalHeight.bind(t), t.getScrollLeftForOffset = t.getScrollLeftForOffset.bind(t), t.getScrollTopForOffset = t.getScrollTopForOffset.bind(t), t.scrollLeft = t.scrollLeft.bind(t), t.scrollTop = t.scrollTop.bind(t), t.scrollToLeft = t.scrollToLeft.bind(t), t.scrollToTop = t.scrollToTop.bind(t), t.scrollToRight = t.scrollToRight.bind(t), t.scrollToBottom = t.scrollToBottom.bind(t), t.handleTrackMouseEnter = t.handleTrackMouseEnter.bind(t), t.handleTrackMouseLeave = t.handleTrackMouseLeave.bind(t), t.handleHorizontalTrackMouseDown = t.handleHorizontalTrackMouseDown.bind(t), t.handleVerticalTrackMouseDown = t.handleVerticalTrackMouseDown.bind(t), t.handleHorizontalThumbMouseDown = t.handleHorizontalThumbMouseDown.bind(t), t.handleVerticalThumbMouseDown = t.handleVerticalThumbMouseDown.bind(t), t.handleWindowResize = t.handleWindowResize.bind(t), t.handleScroll = t.handleScroll.bind(t), t.handleDrag = t.handleDrag.bind(t), t.handleDragEnd = t.handleDragEnd.bind(t), t.state = {
|
|
409
|
+
didMountUniversal: !1
|
|
410
|
+
}, t;
|
|
411
|
+
}
|
|
412
|
+
return e(m, [{
|
|
413
|
+
key: "componentDidMount",
|
|
414
|
+
value: function() {
|
|
415
|
+
this.addListeners(), this.update(), this.componentDidMountUniversal();
|
|
416
|
+
}
|
|
417
|
+
}, {
|
|
418
|
+
key: "componentDidMountUniversal",
|
|
419
|
+
value: function() {
|
|
420
|
+
var r = this.props.universal;
|
|
421
|
+
r && this.setState({ didMountUniversal: !0 });
|
|
422
|
+
}
|
|
423
|
+
}, {
|
|
424
|
+
key: "componentDidUpdate",
|
|
425
|
+
value: function() {
|
|
426
|
+
this.update();
|
|
427
|
+
}
|
|
428
|
+
}, {
|
|
429
|
+
key: "componentWillUnmount",
|
|
430
|
+
value: function() {
|
|
431
|
+
this.removeListeners(), (0, i.cancel)(this.requestFrame), clearTimeout(this.hideTracksTimeout), clearInterval(this.detectScrollingInterval);
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
key: "getScrollLeft",
|
|
435
|
+
value: function() {
|
|
436
|
+
return this.view ? this.view.scrollLeft : 0;
|
|
437
|
+
}
|
|
438
|
+
}, {
|
|
439
|
+
key: "getScrollTop",
|
|
440
|
+
value: function() {
|
|
441
|
+
return this.view ? this.view.scrollTop : 0;
|
|
442
|
+
}
|
|
443
|
+
}, {
|
|
444
|
+
key: "getScrollWidth",
|
|
445
|
+
value: function() {
|
|
446
|
+
return this.view ? this.view.scrollWidth : 0;
|
|
447
|
+
}
|
|
448
|
+
}, {
|
|
449
|
+
key: "getScrollHeight",
|
|
450
|
+
value: function() {
|
|
451
|
+
return this.view ? this.view.scrollHeight : 0;
|
|
452
|
+
}
|
|
453
|
+
}, {
|
|
454
|
+
key: "getClientWidth",
|
|
455
|
+
value: function() {
|
|
456
|
+
return this.view ? this.view.clientWidth : 0;
|
|
457
|
+
}
|
|
458
|
+
}, {
|
|
459
|
+
key: "getClientHeight",
|
|
460
|
+
value: function() {
|
|
461
|
+
return this.view ? this.view.clientHeight : 0;
|
|
462
|
+
}
|
|
463
|
+
}, {
|
|
464
|
+
key: "getValues",
|
|
465
|
+
value: function() {
|
|
466
|
+
var r = this.view || {}, a = r.scrollLeft, s = a === void 0 ? 0 : a, h = r.scrollTop, t = h === void 0 ? 0 : h, p = r.scrollWidth, T = p === void 0 ? 0 : p, S = r.scrollHeight, N = S === void 0 ? 0 : S, L = r.clientWidth, R = L === void 0 ? 0 : L, M = r.clientHeight, z = M === void 0 ? 0 : M;
|
|
467
|
+
return {
|
|
468
|
+
left: s / (T - R) || 0,
|
|
469
|
+
top: t / (N - z) || 0,
|
|
470
|
+
scrollLeft: s,
|
|
471
|
+
scrollTop: t,
|
|
472
|
+
scrollWidth: T,
|
|
473
|
+
scrollHeight: N,
|
|
474
|
+
clientWidth: R,
|
|
475
|
+
clientHeight: z
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
}, {
|
|
479
|
+
key: "getThumbHorizontalWidth",
|
|
480
|
+
value: function() {
|
|
481
|
+
var r = this.props, a = r.thumbSize, s = r.thumbMinSize, h = this.view, t = h.scrollWidth, p = h.clientWidth, T = (0, fe.default)(this.trackHorizontal), S = Math.ceil(p / t * T);
|
|
482
|
+
return T === S ? 0 : a || Math.max(S, s);
|
|
483
|
+
}
|
|
484
|
+
}, {
|
|
485
|
+
key: "getThumbVerticalHeight",
|
|
486
|
+
value: function() {
|
|
487
|
+
var r = this.props, a = r.thumbSize, s = r.thumbMinSize, h = this.view, t = h.scrollHeight, p = h.clientHeight, T = (0, me.default)(this.trackVertical), S = Math.ceil(p / t * T);
|
|
488
|
+
return T === S ? 0 : a || Math.max(S, s);
|
|
489
|
+
}
|
|
490
|
+
}, {
|
|
491
|
+
key: "getScrollLeftForOffset",
|
|
492
|
+
value: function(r) {
|
|
493
|
+
var a = this.view, s = a.scrollWidth, h = a.clientWidth, t = (0, fe.default)(this.trackHorizontal), p = this.getThumbHorizontalWidth();
|
|
494
|
+
return r / (t - p) * (s - h);
|
|
495
|
+
}
|
|
496
|
+
}, {
|
|
497
|
+
key: "getScrollTopForOffset",
|
|
498
|
+
value: function(r) {
|
|
499
|
+
var a = this.view, s = a.scrollHeight, h = a.clientHeight, t = (0, me.default)(this.trackVertical), p = this.getThumbVerticalHeight();
|
|
500
|
+
return r / (t - p) * (s - h);
|
|
501
|
+
}
|
|
502
|
+
}, {
|
|
503
|
+
key: "scrollLeft",
|
|
504
|
+
value: function() {
|
|
505
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
506
|
+
this.view && (this.view.scrollLeft = r);
|
|
507
|
+
}
|
|
508
|
+
}, {
|
|
509
|
+
key: "scrollTop",
|
|
510
|
+
value: function() {
|
|
511
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
512
|
+
this.view && (this.view.scrollTop = r);
|
|
513
|
+
}
|
|
514
|
+
}, {
|
|
515
|
+
key: "scrollToLeft",
|
|
516
|
+
value: function() {
|
|
517
|
+
this.view && (this.view.scrollLeft = 0);
|
|
518
|
+
}
|
|
519
|
+
}, {
|
|
520
|
+
key: "scrollToTop",
|
|
521
|
+
value: function() {
|
|
522
|
+
this.view && (this.view.scrollTop = 0);
|
|
523
|
+
}
|
|
524
|
+
}, {
|
|
525
|
+
key: "scrollToRight",
|
|
526
|
+
value: function() {
|
|
527
|
+
this.view && (this.view.scrollLeft = this.view.scrollWidth);
|
|
528
|
+
}
|
|
529
|
+
}, {
|
|
530
|
+
key: "scrollToBottom",
|
|
531
|
+
value: function() {
|
|
532
|
+
this.view && (this.view.scrollTop = this.view.scrollHeight);
|
|
533
|
+
}
|
|
534
|
+
}, {
|
|
535
|
+
key: "addListeners",
|
|
536
|
+
value: function() {
|
|
537
|
+
if (!(typeof document > "u" || !this.view)) {
|
|
538
|
+
var r = this.view, a = this.trackHorizontal, s = this.trackVertical, h = this.thumbHorizontal, t = this.thumbVertical;
|
|
539
|
+
r.addEventListener("scroll", this.handleScroll), (0, b.default)() && (a.addEventListener("mouseenter", this.handleTrackMouseEnter), a.addEventListener("mouseleave", this.handleTrackMouseLeave), a.addEventListener("mousedown", this.handleHorizontalTrackMouseDown), s.addEventListener("mouseenter", this.handleTrackMouseEnter), s.addEventListener("mouseleave", this.handleTrackMouseLeave), s.addEventListener("mousedown", this.handleVerticalTrackMouseDown), h.addEventListener("mousedown", this.handleHorizontalThumbMouseDown), t.addEventListener("mousedown", this.handleVerticalThumbMouseDown), window.addEventListener("resize", this.handleWindowResize));
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
key: "removeListeners",
|
|
544
|
+
value: function() {
|
|
545
|
+
if (!(typeof document > "u" || !this.view)) {
|
|
546
|
+
var r = this.view, a = this.trackHorizontal, s = this.trackVertical, h = this.thumbHorizontal, t = this.thumbVertical;
|
|
547
|
+
r.removeEventListener("scroll", this.handleScroll), (0, b.default)() && (a.removeEventListener("mouseenter", this.handleTrackMouseEnter), a.removeEventListener("mouseleave", this.handleTrackMouseLeave), a.removeEventListener("mousedown", this.handleHorizontalTrackMouseDown), s.removeEventListener("mouseenter", this.handleTrackMouseEnter), s.removeEventListener("mouseleave", this.handleTrackMouseLeave), s.removeEventListener("mousedown", this.handleVerticalTrackMouseDown), h.removeEventListener("mousedown", this.handleHorizontalThumbMouseDown), t.removeEventListener("mousedown", this.handleVerticalThumbMouseDown), window.removeEventListener("resize", this.handleWindowResize), this.teardownDragging());
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}, {
|
|
551
|
+
key: "handleScroll",
|
|
552
|
+
value: function(r) {
|
|
553
|
+
var a = this, s = this.props, h = s.onScroll, t = s.onScrollFrame;
|
|
554
|
+
h && h(r), this.update(function(p) {
|
|
555
|
+
var T = p.scrollLeft, S = p.scrollTop;
|
|
556
|
+
a.viewScrollLeft = T, a.viewScrollTop = S, t && t(p);
|
|
557
|
+
}), this.detectScrolling();
|
|
558
|
+
}
|
|
559
|
+
}, {
|
|
560
|
+
key: "handleScrollStart",
|
|
561
|
+
value: function() {
|
|
562
|
+
var r = this.props.onScrollStart;
|
|
563
|
+
r && r(), this.handleScrollStartAutoHide();
|
|
564
|
+
}
|
|
565
|
+
}, {
|
|
566
|
+
key: "handleScrollStartAutoHide",
|
|
567
|
+
value: function() {
|
|
568
|
+
var r = this.props.autoHide;
|
|
569
|
+
r && this.showTracks();
|
|
570
|
+
}
|
|
571
|
+
}, {
|
|
572
|
+
key: "handleScrollStop",
|
|
573
|
+
value: function() {
|
|
574
|
+
var r = this.props.onScrollStop;
|
|
575
|
+
r && r(), this.handleScrollStopAutoHide();
|
|
576
|
+
}
|
|
577
|
+
}, {
|
|
578
|
+
key: "handleScrollStopAutoHide",
|
|
579
|
+
value: function() {
|
|
580
|
+
var r = this.props.autoHide;
|
|
581
|
+
r && this.hideTracks();
|
|
582
|
+
}
|
|
583
|
+
}, {
|
|
584
|
+
key: "handleWindowResize",
|
|
585
|
+
value: function() {
|
|
586
|
+
this.update();
|
|
587
|
+
}
|
|
588
|
+
}, {
|
|
589
|
+
key: "handleHorizontalTrackMouseDown",
|
|
590
|
+
value: function(r) {
|
|
591
|
+
r.preventDefault();
|
|
592
|
+
var a = r.target, s = r.clientX, h = a.getBoundingClientRect(), t = h.left, p = this.getThumbHorizontalWidth(), T = Math.abs(t - s) - p / 2;
|
|
593
|
+
this.view.scrollLeft = this.getScrollLeftForOffset(T);
|
|
594
|
+
}
|
|
595
|
+
}, {
|
|
596
|
+
key: "handleVerticalTrackMouseDown",
|
|
597
|
+
value: function(r) {
|
|
598
|
+
r.preventDefault();
|
|
599
|
+
var a = r.target, s = r.clientY, h = a.getBoundingClientRect(), t = h.top, p = this.getThumbVerticalHeight(), T = Math.abs(t - s) - p / 2;
|
|
600
|
+
this.view.scrollTop = this.getScrollTopForOffset(T);
|
|
601
|
+
}
|
|
602
|
+
}, {
|
|
603
|
+
key: "handleHorizontalThumbMouseDown",
|
|
604
|
+
value: function(r) {
|
|
605
|
+
r.preventDefault(), this.handleDragStart(r);
|
|
606
|
+
var a = r.target, s = r.clientX, h = a.offsetWidth, t = a.getBoundingClientRect(), p = t.left;
|
|
607
|
+
this.prevPageX = h - (s - p);
|
|
608
|
+
}
|
|
609
|
+
}, {
|
|
610
|
+
key: "handleVerticalThumbMouseDown",
|
|
611
|
+
value: function(r) {
|
|
612
|
+
r.preventDefault(), this.handleDragStart(r);
|
|
613
|
+
var a = r.target, s = r.clientY, h = a.offsetHeight, t = a.getBoundingClientRect(), p = t.top;
|
|
614
|
+
this.prevPageY = h - (s - p);
|
|
615
|
+
}
|
|
616
|
+
}, {
|
|
617
|
+
key: "setupDragging",
|
|
618
|
+
value: function() {
|
|
619
|
+
(0, d.default)(document.body, w.disableSelectStyle), document.addEventListener("mousemove", this.handleDrag), document.addEventListener("mouseup", this.handleDragEnd), document.onselectstart = U.default;
|
|
620
|
+
}
|
|
621
|
+
}, {
|
|
622
|
+
key: "teardownDragging",
|
|
623
|
+
value: function() {
|
|
624
|
+
(0, d.default)(document.body, w.disableSelectStyleReset), document.removeEventListener("mousemove", this.handleDrag), document.removeEventListener("mouseup", this.handleDragEnd), document.onselectstart = void 0;
|
|
625
|
+
}
|
|
626
|
+
}, {
|
|
627
|
+
key: "handleDragStart",
|
|
628
|
+
value: function(r) {
|
|
629
|
+
this.dragging = !0, r.stopImmediatePropagation(), this.setupDragging();
|
|
630
|
+
}
|
|
631
|
+
}, {
|
|
632
|
+
key: "handleDrag",
|
|
633
|
+
value: function(r) {
|
|
634
|
+
if (this.prevPageX) {
|
|
635
|
+
var a = r.clientX, s = this.trackHorizontal.getBoundingClientRect(), h = s.left, t = this.getThumbHorizontalWidth(), p = t - this.prevPageX, T = -h + a - p;
|
|
636
|
+
this.view.scrollLeft = this.getScrollLeftForOffset(T);
|
|
637
|
+
}
|
|
638
|
+
if (this.prevPageY) {
|
|
639
|
+
var S = r.clientY, N = this.trackVertical.getBoundingClientRect(), L = N.top, R = this.getThumbVerticalHeight(), M = R - this.prevPageY, z = -L + S - M;
|
|
640
|
+
this.view.scrollTop = this.getScrollTopForOffset(z);
|
|
641
|
+
}
|
|
642
|
+
return !1;
|
|
643
|
+
}
|
|
644
|
+
}, {
|
|
645
|
+
key: "handleDragEnd",
|
|
646
|
+
value: function() {
|
|
647
|
+
this.dragging = !1, this.prevPageX = this.prevPageY = 0, this.teardownDragging(), this.handleDragEndAutoHide();
|
|
648
|
+
}
|
|
649
|
+
}, {
|
|
650
|
+
key: "handleDragEndAutoHide",
|
|
651
|
+
value: function() {
|
|
652
|
+
var r = this.props.autoHide;
|
|
653
|
+
r && this.hideTracks();
|
|
654
|
+
}
|
|
655
|
+
}, {
|
|
656
|
+
key: "handleTrackMouseEnter",
|
|
657
|
+
value: function() {
|
|
658
|
+
this.trackMouseOver = !0, this.handleTrackMouseEnterAutoHide();
|
|
659
|
+
}
|
|
660
|
+
}, {
|
|
661
|
+
key: "handleTrackMouseEnterAutoHide",
|
|
662
|
+
value: function() {
|
|
663
|
+
var r = this.props.autoHide;
|
|
664
|
+
r && this.showTracks();
|
|
665
|
+
}
|
|
666
|
+
}, {
|
|
667
|
+
key: "handleTrackMouseLeave",
|
|
668
|
+
value: function() {
|
|
669
|
+
this.trackMouseOver = !1, this.handleTrackMouseLeaveAutoHide();
|
|
670
|
+
}
|
|
671
|
+
}, {
|
|
672
|
+
key: "handleTrackMouseLeaveAutoHide",
|
|
673
|
+
value: function() {
|
|
674
|
+
var r = this.props.autoHide;
|
|
675
|
+
r && this.hideTracks();
|
|
676
|
+
}
|
|
677
|
+
}, {
|
|
678
|
+
key: "showTracks",
|
|
679
|
+
value: function() {
|
|
680
|
+
clearTimeout(this.hideTracksTimeout), (0, d.default)(this.trackHorizontal, { opacity: 1 }), (0, d.default)(this.trackVertical, { opacity: 1 });
|
|
681
|
+
}
|
|
682
|
+
}, {
|
|
683
|
+
key: "hideTracks",
|
|
684
|
+
value: function() {
|
|
685
|
+
var r = this;
|
|
686
|
+
if (!this.dragging && !this.scrolling && !this.trackMouseOver) {
|
|
687
|
+
var a = this.props.autoHideTimeout;
|
|
688
|
+
clearTimeout(this.hideTracksTimeout), this.hideTracksTimeout = setTimeout(function() {
|
|
689
|
+
(0, d.default)(r.trackHorizontal, { opacity: 0 }), (0, d.default)(r.trackVertical, { opacity: 0 });
|
|
690
|
+
}, a);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}, {
|
|
694
|
+
key: "detectScrolling",
|
|
695
|
+
value: function() {
|
|
696
|
+
var r = this;
|
|
697
|
+
this.scrolling || (this.scrolling = !0, this.handleScrollStart(), this.detectScrollingInterval = setInterval(function() {
|
|
698
|
+
r.lastViewScrollLeft === r.viewScrollLeft && r.lastViewScrollTop === r.viewScrollTop && (clearInterval(r.detectScrollingInterval), r.scrolling = !1, r.handleScrollStop()), r.lastViewScrollLeft = r.viewScrollLeft, r.lastViewScrollTop = r.viewScrollTop;
|
|
699
|
+
}, 100));
|
|
700
|
+
}
|
|
701
|
+
}, {
|
|
702
|
+
key: "raf",
|
|
703
|
+
value: function(r) {
|
|
704
|
+
var a = this;
|
|
705
|
+
this.requestFrame && u.default.cancel(this.requestFrame), this.requestFrame = (0, u.default)(function() {
|
|
706
|
+
a.requestFrame = void 0, r();
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
}, {
|
|
710
|
+
key: "update",
|
|
711
|
+
value: function(r) {
|
|
712
|
+
var a = this;
|
|
713
|
+
this.raf(function() {
|
|
714
|
+
return a._update(r);
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
}, {
|
|
718
|
+
key: "_update",
|
|
719
|
+
value: function(r) {
|
|
720
|
+
var a = this.props, s = a.onUpdate, h = a.hideTracksWhenNotNeeded, t = this.getValues();
|
|
721
|
+
if ((0, b.default)()) {
|
|
722
|
+
var p = t.scrollLeft, T = t.clientWidth, S = t.scrollWidth, N = (0, fe.default)(this.trackHorizontal), L = this.getThumbHorizontalWidth(), R = p / (S - T) * (N - L), M = {
|
|
723
|
+
width: L,
|
|
724
|
+
transform: "translateX(" + R + "px)"
|
|
725
|
+
}, z = t.scrollTop, P = t.clientHeight, A = t.scrollHeight, pe = (0, me.default)(this.trackVertical), ne = this.getThumbVerticalHeight(), ge = z / (A - P) * (pe - ne), G = {
|
|
726
|
+
height: ne,
|
|
727
|
+
transform: "translateY(" + ge + "px)"
|
|
728
|
+
};
|
|
729
|
+
if (h) {
|
|
730
|
+
var be = {
|
|
731
|
+
visibility: S > T ? "visible" : "hidden"
|
|
732
|
+
}, Te = {
|
|
733
|
+
visibility: A > P ? "visible" : "hidden"
|
|
734
|
+
};
|
|
735
|
+
(0, d.default)(this.trackHorizontal, be), (0, d.default)(this.trackVertical, Te);
|
|
736
|
+
}
|
|
737
|
+
(0, d.default)(this.thumbHorizontal, M), (0, d.default)(this.thumbVertical, G);
|
|
738
|
+
}
|
|
739
|
+
s && s(t), typeof r == "function" && r(t);
|
|
740
|
+
}
|
|
741
|
+
}, {
|
|
742
|
+
key: "render",
|
|
743
|
+
value: function() {
|
|
744
|
+
var r = this, a = (0, b.default)(), s = this.props;
|
|
745
|
+
s.onScroll, s.onScrollFrame, s.onScrollStart, s.onScrollStop, s.onUpdate;
|
|
746
|
+
var h = s.renderView, t = s.renderTrackHorizontal, p = s.renderTrackVertical, T = s.renderThumbHorizontal, S = s.renderThumbVertical, N = s.tagName;
|
|
747
|
+
s.hideTracksWhenNotNeeded;
|
|
748
|
+
var L = s.autoHide;
|
|
749
|
+
s.autoHideTimeout;
|
|
750
|
+
var R = s.autoHideDuration;
|
|
751
|
+
s.thumbSize, s.thumbMinSize;
|
|
752
|
+
var M = s.universal, z = s.autoHeight, P = s.autoHeightMin, A = s.autoHeightMax, pe = s.style, ne = s.children, ge = Xe(s, ["onScroll", "onScrollFrame", "onScrollStart", "onScrollStop", "onUpdate", "renderView", "renderTrackHorizontal", "renderTrackVertical", "renderThumbHorizontal", "renderThumbVertical", "tagName", "hideTracksWhenNotNeeded", "autoHide", "autoHideTimeout", "autoHideDuration", "thumbSize", "thumbMinSize", "universal", "autoHeight", "autoHeightMin", "autoHeightMax", "style", "children"]), G = this.state.didMountUniversal, be = o({}, w.containerStyleDefault, z && o({}, w.containerStyleAutoHeight, {
|
|
753
|
+
minHeight: P,
|
|
754
|
+
maxHeight: A
|
|
755
|
+
}), pe), Te = o({}, w.viewStyleDefault, {
|
|
756
|
+
// Hide scrollbars by setting a negative margin
|
|
757
|
+
marginRight: a ? -a : 0,
|
|
758
|
+
marginBottom: a ? -a : 0
|
|
759
|
+
}, z && o({}, w.viewStyleAutoHeight, {
|
|
760
|
+
// Add scrollbarWidth to autoHeight in order to compensate negative margins
|
|
761
|
+
minHeight: (0, V.default)(P) ? "calc(" + P + " + " + a + "px)" : P + a,
|
|
762
|
+
maxHeight: (0, V.default)(A) ? "calc(" + A + " + " + a + "px)" : A + a
|
|
763
|
+
}), z && M && !G && {
|
|
764
|
+
minHeight: P,
|
|
765
|
+
maxHeight: A
|
|
766
|
+
}, M && !G && w.viewStyleUniversalInitial), we = {
|
|
767
|
+
transition: "opacity " + R + "ms",
|
|
768
|
+
opacity: 0
|
|
769
|
+
}, qe = o({}, w.trackHorizontalStyleDefault, L && we, (!a || M && !G) && {
|
|
770
|
+
display: "none"
|
|
771
|
+
}), je = o({}, w.trackVerticalStyleDefault, L && we, (!a || M && !G) && {
|
|
772
|
+
display: "none"
|
|
773
|
+
});
|
|
774
|
+
return (0, y.createElement)(N, o({}, ge, { style: be, ref: function(C) {
|
|
775
|
+
r.container = C;
|
|
776
|
+
} }), [(0, y.cloneElement)(h({ style: Te }), { key: "view", ref: function(C) {
|
|
777
|
+
r.view = C;
|
|
778
|
+
} }, ne), (0, y.cloneElement)(t({ style: qe }), { key: "trackHorizontal", ref: function(C) {
|
|
779
|
+
r.trackHorizontal = C;
|
|
780
|
+
} }, (0, y.cloneElement)(T({ style: w.thumbHorizontalStyleDefault }), { ref: function(C) {
|
|
781
|
+
r.thumbHorizontal = C;
|
|
782
|
+
} })), (0, y.cloneElement)(p({ style: je }), { key: "trackVertical", ref: function(C) {
|
|
783
|
+
r.trackVertical = C;
|
|
784
|
+
} }, (0, y.cloneElement)(S({ style: w.thumbVerticalStyleDefault }), { ref: function(C) {
|
|
785
|
+
r.thumbVertical = C;
|
|
786
|
+
} }))]);
|
|
787
|
+
}
|
|
788
|
+
}]), m;
|
|
789
|
+
}(y.Component);
|
|
790
|
+
n.default = ve, ve.propTypes = {
|
|
791
|
+
onScroll: f.default.func,
|
|
792
|
+
onScrollFrame: f.default.func,
|
|
793
|
+
onScrollStart: f.default.func,
|
|
794
|
+
onScrollStop: f.default.func,
|
|
795
|
+
onUpdate: f.default.func,
|
|
796
|
+
renderView: f.default.func,
|
|
797
|
+
renderTrackHorizontal: f.default.func,
|
|
798
|
+
renderTrackVertical: f.default.func,
|
|
799
|
+
renderThumbHorizontal: f.default.func,
|
|
800
|
+
renderThumbVertical: f.default.func,
|
|
801
|
+
tagName: f.default.string,
|
|
802
|
+
thumbSize: f.default.number,
|
|
803
|
+
thumbMinSize: f.default.number,
|
|
804
|
+
hideTracksWhenNotNeeded: f.default.bool,
|
|
805
|
+
autoHide: f.default.bool,
|
|
806
|
+
autoHideTimeout: f.default.number,
|
|
807
|
+
autoHideDuration: f.default.number,
|
|
808
|
+
autoHeight: f.default.bool,
|
|
809
|
+
autoHeightMin: f.default.oneOfType([f.default.number, f.default.string]),
|
|
810
|
+
autoHeightMax: f.default.oneOfType([f.default.number, f.default.string]),
|
|
811
|
+
universal: f.default.bool,
|
|
812
|
+
style: f.default.object,
|
|
813
|
+
children: f.default.node
|
|
814
|
+
}, ve.defaultProps = {
|
|
815
|
+
renderView: Z.renderViewDefault,
|
|
816
|
+
renderTrackHorizontal: Z.renderTrackHorizontalDefault,
|
|
817
|
+
renderTrackVertical: Z.renderTrackVerticalDefault,
|
|
818
|
+
renderThumbHorizontal: Z.renderThumbHorizontalDefault,
|
|
819
|
+
renderThumbVertical: Z.renderThumbVerticalDefault,
|
|
820
|
+
tagName: "div",
|
|
821
|
+
thumbMinSize: 30,
|
|
822
|
+
hideTracksWhenNotNeeded: !1,
|
|
823
|
+
autoHide: !1,
|
|
824
|
+
autoHideTimeout: 1e3,
|
|
825
|
+
autoHideDuration: 200,
|
|
826
|
+
autoHeight: !1,
|
|
827
|
+
autoHeightMin: 0,
|
|
828
|
+
autoHeightMax: 200,
|
|
829
|
+
universal: !1
|
|
830
|
+
};
|
|
831
|
+
})(Oe);
|
|
832
|
+
(function(n) {
|
|
833
|
+
Object.defineProperty(n, "__esModule", {
|
|
834
|
+
value: !0
|
|
835
|
+
}), n.Scrollbars = void 0;
|
|
836
|
+
var o = Oe, e = i(o);
|
|
837
|
+
function i(u) {
|
|
838
|
+
return u && u.__esModule ? u : { default: u };
|
|
839
|
+
}
|
|
840
|
+
n.default = e.default, n.Scrollbars = e.default;
|
|
841
|
+
})(Ie);
|
|
842
|
+
const xt = "Confirmation-module__container___45eSd", Nt = "Confirmation-module__message___4r1SC", Rt = "Confirmation-module__buttons___QYVqm", Pt = "Confirmation-module__button___gJmIL", At = "Confirmation-module__confirm___DqtMv", Bt = "Confirmation-module__cancel___3CIW9", B = {
|
|
843
|
+
container: xt,
|
|
844
|
+
message: Nt,
|
|
845
|
+
buttons: Rt,
|
|
846
|
+
button: Pt,
|
|
847
|
+
confirm: At,
|
|
848
|
+
cancel: Bt
|
|
849
|
+
}, Ft = ({
|
|
850
|
+
message: n,
|
|
851
|
+
title: o,
|
|
852
|
+
onCancel: e,
|
|
853
|
+
onConfirm: i
|
|
854
|
+
}) => {
|
|
855
|
+
const u = D(B.button, B.confirm), c = D(B.button, B.cancel);
|
|
856
|
+
return /* @__PURE__ */ $("div", { className: B.container, children: [
|
|
857
|
+
/* @__PURE__ */ v("div", { className: B.title, children: o }),
|
|
858
|
+
/* @__PURE__ */ v("div", { className: D(B.message, K.TEXT_SECONDARY), children: n }),
|
|
859
|
+
/* @__PURE__ */ $("div", { className: B.buttons, children: [
|
|
860
|
+
/* @__PURE__ */ v("button", { className: u, onClick: i, children: "Yes" }),
|
|
861
|
+
/* @__PURE__ */ v("button", { className: c, onClick: e, children: "No" })
|
|
862
|
+
] })
|
|
863
|
+
] });
|
|
864
|
+
}, Ut = "Menu-module__container___KGp0N", Xt = "Menu-module__disabled___xdT-F", $t = "Menu-module__groupHeader___-d7MT", Yt = "Menu-module__isDrill___6OfQP", Gt = "Menu-module__separator___OQ--M", qt = "Menu-module__noIcon___MYkPf", jt = "Menu-module__item___nmDUr", Zt = "Menu-module__checked___6OJEB", Qt = "Menu-module__radio___OlxcQ", Jt = "Menu-module__checkbox___HocC7", Kt = "Menu-module__icon___ZxKUL", er = "Menu-module__itemType___VLiEZ", tr = "Menu-module__nestedType___gayzp", rr = "Menu-module__nestedIcon___VyPyZ", nr = "Menu-module__menuItemText___agoSf", or = "Menu-module__separateGroup___0J5WE", ir = "Menu-module__itemCheckBox___2DHy4", ar = "Menu-module__itemRadioButton___h2ifs", lr = "Menu-module__scrollbar___li1b-", sr = "Menu-module__itemContainer___m0XPy", ur = "Menu-module__inlineConfirmation___0JCIX", cr = "Menu-module__menuItemTooltip___5jA0S", dr = "Menu-module__toggleButtonMenu___qwLCQ", hr = "Menu-module__loader___pzNnL", _ = {
|
|
865
|
+
container: Ut,
|
|
866
|
+
disabled: Xt,
|
|
867
|
+
groupHeader: $t,
|
|
868
|
+
isDrill: Yt,
|
|
869
|
+
separator: Gt,
|
|
870
|
+
noIcon: qt,
|
|
871
|
+
item: jt,
|
|
872
|
+
checked: Zt,
|
|
873
|
+
radio: Qt,
|
|
874
|
+
checkbox: Jt,
|
|
875
|
+
icon: Kt,
|
|
876
|
+
itemType: er,
|
|
877
|
+
nestedType: tr,
|
|
878
|
+
nestedIcon: rr,
|
|
879
|
+
menuItemText: nr,
|
|
880
|
+
separateGroup: or,
|
|
881
|
+
itemCheckBox: ir,
|
|
882
|
+
itemRadioButton: ar,
|
|
883
|
+
scrollbar: lr,
|
|
884
|
+
itemContainer: sr,
|
|
885
|
+
inlineConfirmation: ur,
|
|
886
|
+
menuItemTooltip: cr,
|
|
887
|
+
toggleButtonMenu: dr,
|
|
888
|
+
loader: hr
|
|
889
|
+
}, ae = Object.freeze({
|
|
890
|
+
ITEM: "item",
|
|
891
|
+
RADIO: "radio",
|
|
892
|
+
CHECKBOX: "checkbox",
|
|
893
|
+
TOGGLE: "toggle",
|
|
894
|
+
NESTED: "nested"
|
|
895
|
+
}), He = class He extends ze {
|
|
896
|
+
constructor(o) {
|
|
897
|
+
super(o), this.renderRegularMenuItem = () => {
|
|
898
|
+
const { dataTestId: e, iconName: i, iconClass: u, isDrill: c } = this.props;
|
|
899
|
+
return /* @__PURE__ */ $("span", { className: _.itemContainer, children: [
|
|
900
|
+
i && /* @__PURE__ */ v(oe, { name: i, className: u }),
|
|
901
|
+
/* @__PURE__ */ v(
|
|
902
|
+
"span",
|
|
903
|
+
{
|
|
904
|
+
"data-testid": e,
|
|
905
|
+
className: D(_.menuItemText, K.TEXT_PRIMARY),
|
|
906
|
+
children: this.getContent()
|
|
907
|
+
}
|
|
908
|
+
),
|
|
909
|
+
c && /* @__PURE__ */ v(oe, { name: "general-arrow-right" })
|
|
910
|
+
] });
|
|
911
|
+
}, this.renderMenuItem = () => {
|
|
912
|
+
const { tooltip: e, classNameTooltip: i, level: u } = this.props, c = this.renderRegularMenuItem();
|
|
913
|
+
return e ? /* @__PURE__ */ v(
|
|
914
|
+
et,
|
|
915
|
+
{
|
|
916
|
+
overlay: /* @__PURE__ */ v("div", { children: e }),
|
|
917
|
+
placement: "right",
|
|
918
|
+
overlayClassName: D(i, _.menuItemTooltip),
|
|
919
|
+
mouseLeaveDelay: 0,
|
|
920
|
+
align: { offset: [u ? 5 : 10, 0] },
|
|
921
|
+
children: c
|
|
922
|
+
}
|
|
923
|
+
) : c;
|
|
924
|
+
}, this.state = { inInlineConfirmation: !1 };
|
|
925
|
+
}
|
|
926
|
+
getContent() {
|
|
927
|
+
const { type: o, caption: e, subCaption: i, checked: u, selected: c } = this.props;
|
|
928
|
+
switch (o) {
|
|
929
|
+
case ae.RADIO:
|
|
930
|
+
return /* @__PURE__ */ v(
|
|
931
|
+
tt,
|
|
932
|
+
{
|
|
933
|
+
text: e,
|
|
934
|
+
name: e,
|
|
935
|
+
onChange: () => null,
|
|
936
|
+
value: e,
|
|
937
|
+
checked: !!u,
|
|
938
|
+
preventClick: !0
|
|
939
|
+
}
|
|
940
|
+
);
|
|
941
|
+
case ae.CHECKBOX:
|
|
942
|
+
return /* @__PURE__ */ v(
|
|
943
|
+
Je,
|
|
944
|
+
{
|
|
945
|
+
title: e,
|
|
946
|
+
text: e,
|
|
947
|
+
onChange: () => null,
|
|
948
|
+
checked: !!u,
|
|
949
|
+
className: _.itemCheckBox
|
|
950
|
+
}
|
|
951
|
+
);
|
|
952
|
+
case ae.TOGGLE:
|
|
953
|
+
return /* @__PURE__ */ $("div", { children: [
|
|
954
|
+
/* @__PURE__ */ v("span", { children: e }),
|
|
955
|
+
/* @__PURE__ */ v(
|
|
956
|
+
Ke,
|
|
957
|
+
{
|
|
958
|
+
onChange: () => null,
|
|
959
|
+
className: _.toggleButtonMenu,
|
|
960
|
+
checked: !!u
|
|
961
|
+
}
|
|
962
|
+
)
|
|
963
|
+
] });
|
|
964
|
+
case ae.NESTED:
|
|
965
|
+
return /* @__PURE__ */ $("div", { className: _.nestedType, children: [
|
|
966
|
+
/* @__PURE__ */ v("div", { children: e }),
|
|
967
|
+
/* @__PURE__ */ v(oe, { className: _.nestedIcon, name: "general-double-arrow-front" }),
|
|
968
|
+
/* @__PURE__ */ v("div", { children: i })
|
|
969
|
+
] });
|
|
970
|
+
default:
|
|
971
|
+
return /* @__PURE__ */ $("div", { className: _.itemType, children: [
|
|
972
|
+
e,
|
|
973
|
+
c && /* @__PURE__ */ v(oe, { name: "general-vi-small-white" })
|
|
974
|
+
] });
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
handleClick(o) {
|
|
978
|
+
o.stopPropagation();
|
|
979
|
+
const { handleClick: e, disabled: i } = this.props;
|
|
980
|
+
i || e();
|
|
981
|
+
}
|
|
982
|
+
render() {
|
|
983
|
+
const { checked: o, className: e, iconName: i, handleOver: u, handleOut: c, disabled: d } = this.props, y = !1, E = D(e, {
|
|
984
|
+
[_.checked]: o,
|
|
985
|
+
[_.noIcon]: !i || y,
|
|
986
|
+
[_.disabled]: d,
|
|
987
|
+
[K.TEXT_PRIMARY]: o,
|
|
988
|
+
[K.TEXT_SECONDARY_HOVER]: !o && !d,
|
|
989
|
+
[K.TEXT_SECONDARY]: d
|
|
990
|
+
});
|
|
991
|
+
return /* @__PURE__ */ v(
|
|
992
|
+
"li",
|
|
993
|
+
{
|
|
994
|
+
"data-menu-item": !0,
|
|
995
|
+
className: E,
|
|
996
|
+
onClick: this.handleClick.bind(this),
|
|
997
|
+
onMouseOver: u,
|
|
998
|
+
onMouseOut: c,
|
|
999
|
+
children: this.renderMenuItem()
|
|
1000
|
+
}
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
He.defaultProps = {
|
|
1005
|
+
className: ""
|
|
1006
|
+
};
|
|
1007
|
+
let ke = He;
|
|
1008
|
+
function fr(n, o) {
|
|
1009
|
+
const e = {};
|
|
1010
|
+
return n.reduce(function(i, u) {
|
|
1011
|
+
const c = o(u);
|
|
1012
|
+
return i[c] || (i[c] = []), i[c].push(u), i;
|
|
1013
|
+
}, e);
|
|
1014
|
+
}
|
|
1015
|
+
const De = () => {
|
|
1016
|
+
}, ue = class ue extends ze {
|
|
1017
|
+
constructor(o) {
|
|
1018
|
+
super(o), this.handleClick = (e) => {
|
|
1019
|
+
if (e.subItems || e.actionableComponent) {
|
|
1020
|
+
this.clearTimeout(), this.state.activeSubMenu === e.id ? this.closeSubMenu() : this.setState({ activeSubMenu: e.id });
|
|
1021
|
+
return;
|
|
1022
|
+
} else if (e.confirmation && !e.confirmation.inline) {
|
|
1023
|
+
this.clearTimeout(), this.setState({ activeSubMenu: e.id });
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
const { onItemSelected: i } = this.props;
|
|
1027
|
+
i(e, e.value);
|
|
1028
|
+
}, this.handleOver = (e) => {
|
|
1029
|
+
this.clearTimeout(), this.setState({ isHoverSubMenu: !1 });
|
|
1030
|
+
const i = e.subItems || e.actionableComponent ? e.id : null;
|
|
1031
|
+
this.timeoutIn = window.setTimeout(() => {
|
|
1032
|
+
this.setState({
|
|
1033
|
+
activeSubMenu: i
|
|
1034
|
+
});
|
|
1035
|
+
}, 900);
|
|
1036
|
+
}, this.handleOut = (e) => {
|
|
1037
|
+
(e.subItems || e.actionableComponent) && this.state.activeSubMenu && this.clearTimeout();
|
|
1038
|
+
}, this.onSubMenuMouseEnter = () => {
|
|
1039
|
+
this.clearTimeout(), this.setState({ isHoverSubMenu: !0 });
|
|
1040
|
+
}, this.onSubMenuMouseLeave = () => {
|
|
1041
|
+
this.setState({ isHoverSubMenu: !1 });
|
|
1042
|
+
}, this.closeSubMenu = () => {
|
|
1043
|
+
this.setState({ activeSubMenu: null });
|
|
1044
|
+
}, this.onConfirm = (e) => {
|
|
1045
|
+
const { onItemSelected: i } = this.props;
|
|
1046
|
+
this.closeSubMenu(), i(e);
|
|
1047
|
+
}, this.renderMenuItem = (e) => {
|
|
1048
|
+
const { onItemSelected: i, onRequestClose: u, level: c, classNameTooltip: d, zIndex: y, className: E } = this.props;
|
|
1049
|
+
let f = D(_[e.type], {
|
|
1050
|
+
[_.isDrill]: e.subItems,
|
|
1051
|
+
[_.separator]: e.separator,
|
|
1052
|
+
fakeHover: e.checked,
|
|
1053
|
+
[_.groupHeader]: e.groupTitle
|
|
1054
|
+
});
|
|
1055
|
+
const W = (k) => {
|
|
1056
|
+
const b = D(e.iconClass, _.icon);
|
|
1057
|
+
return /* @__PURE__ */ v(
|
|
1058
|
+
ke,
|
|
1059
|
+
{
|
|
1060
|
+
className: k,
|
|
1061
|
+
checked: e.checked,
|
|
1062
|
+
dataTestId: e.dataTestId,
|
|
1063
|
+
disabled: e.disabled,
|
|
1064
|
+
type: e.type,
|
|
1065
|
+
caption: e.caption,
|
|
1066
|
+
subCaption: e.subCaption,
|
|
1067
|
+
tooltip: e.tooltip,
|
|
1068
|
+
classNameTooltip: d,
|
|
1069
|
+
iconName: e.iconName,
|
|
1070
|
+
iconClass: b,
|
|
1071
|
+
isDrill: !!e.subItems || !!e.actionableComponent,
|
|
1072
|
+
level: c,
|
|
1073
|
+
selected: e.selected,
|
|
1074
|
+
handleClick: () => this.handleClick(e),
|
|
1075
|
+
handleOver: () => this.handleOver(e),
|
|
1076
|
+
handleOut: () => this.handleOut(e)
|
|
1077
|
+
},
|
|
1078
|
+
e.id
|
|
1079
|
+
);
|
|
1080
|
+
};
|
|
1081
|
+
let V = e.subItems;
|
|
1082
|
+
if (V) {
|
|
1083
|
+
const k = this.state.activeSubMenu === e.id;
|
|
1084
|
+
let b = this.handleClick;
|
|
1085
|
+
return f = D(f, {
|
|
1086
|
+
fakeHover: k && this.state.isHoverSubMenu
|
|
1087
|
+
}), e.value !== void 0 && (V = V.map(function(U) {
|
|
1088
|
+
return {
|
|
1089
|
+
...U,
|
|
1090
|
+
checked: U.value === e.value
|
|
1091
|
+
};
|
|
1092
|
+
}), b = (U) => i(e, U.value)), /* @__PURE__ */ v(
|
|
1093
|
+
_e,
|
|
1094
|
+
{
|
|
1095
|
+
visible: k,
|
|
1096
|
+
level: 1,
|
|
1097
|
+
mask: !1,
|
|
1098
|
+
trigger: [],
|
|
1099
|
+
placement: "rightTop",
|
|
1100
|
+
align: { offset: [0, 0] },
|
|
1101
|
+
overlay: () => /* @__PURE__ */ v(
|
|
1102
|
+
ue,
|
|
1103
|
+
{
|
|
1104
|
+
items: V || [],
|
|
1105
|
+
className: E,
|
|
1106
|
+
onItemSelected: b,
|
|
1107
|
+
onMouseEnter: this.onSubMenuMouseEnter,
|
|
1108
|
+
scrollbarProps: {
|
|
1109
|
+
className: e.subItemScrollbarClassName
|
|
1110
|
+
},
|
|
1111
|
+
level: (c || 0) + 1,
|
|
1112
|
+
zIndex: (y || 1) + 1
|
|
1113
|
+
}
|
|
1114
|
+
),
|
|
1115
|
+
onRequestClose: u,
|
|
1116
|
+
zIndex: (y || 1) + 1,
|
|
1117
|
+
children: W(f)
|
|
1118
|
+
},
|
|
1119
|
+
e.id
|
|
1120
|
+
);
|
|
1121
|
+
} else if (e.actionableComponent) {
|
|
1122
|
+
const { componentProps: k } = e.actionableComponent, b = e.actionableComponent.component, I = this.state.activeSubMenu === e.id;
|
|
1123
|
+
return /* @__PURE__ */ v(
|
|
1124
|
+
_e,
|
|
1125
|
+
{
|
|
1126
|
+
visible: I,
|
|
1127
|
+
level: 1,
|
|
1128
|
+
mask: !1,
|
|
1129
|
+
trigger: [],
|
|
1130
|
+
placement: "rightTop",
|
|
1131
|
+
align: { offset: [10, 0] },
|
|
1132
|
+
overlay: () => /* @__PURE__ */ v(b, { ...k, onRequestClose: u }),
|
|
1133
|
+
onRequestClose: u,
|
|
1134
|
+
children: W(f)
|
|
1135
|
+
},
|
|
1136
|
+
e.id
|
|
1137
|
+
);
|
|
1138
|
+
} else if (e.confirmation && !e.confirmation.inline) {
|
|
1139
|
+
const k = e.confirmation, b = this.state.activeSubMenu === e.id;
|
|
1140
|
+
return /* @__PURE__ */ v(
|
|
1141
|
+
_e,
|
|
1142
|
+
{
|
|
1143
|
+
visible: b,
|
|
1144
|
+
level: 1,
|
|
1145
|
+
mask: !0,
|
|
1146
|
+
trigger: [],
|
|
1147
|
+
placement: "rightBottom",
|
|
1148
|
+
align: { offset: [10, 0] },
|
|
1149
|
+
overlay: () => /* @__PURE__ */ v(
|
|
1150
|
+
Ft,
|
|
1151
|
+
{
|
|
1152
|
+
title: k.title,
|
|
1153
|
+
message: k.message,
|
|
1154
|
+
onCancel: this.closeSubMenu,
|
|
1155
|
+
onConfirm: () => this.onConfirm(e)
|
|
1156
|
+
}
|
|
1157
|
+
),
|
|
1158
|
+
onRequestClose: this.closeSubMenu,
|
|
1159
|
+
children: W(f)
|
|
1160
|
+
},
|
|
1161
|
+
e.id
|
|
1162
|
+
);
|
|
1163
|
+
}
|
|
1164
|
+
return W(f);
|
|
1165
|
+
}, this.state = {
|
|
1166
|
+
activeSubMenu: null,
|
|
1167
|
+
isHoverSubMenu: !1
|
|
1168
|
+
}, this.timeoutIn = null;
|
|
1169
|
+
}
|
|
1170
|
+
componentWillUnmount() {
|
|
1171
|
+
this.clearTimeout();
|
|
1172
|
+
}
|
|
1173
|
+
clearTimeout() {
|
|
1174
|
+
this.timeoutIn && (clearTimeout(this.timeoutIn), this.timeoutIn = null);
|
|
1175
|
+
}
|
|
1176
|
+
getSeparateGroups(o) {
|
|
1177
|
+
const e = fr(o, (c) => c.groupId || ""), i = Object.values(e);
|
|
1178
|
+
return i.slice(1).forEach((c) => c[0].separator = !0), i;
|
|
1179
|
+
}
|
|
1180
|
+
render() {
|
|
1181
|
+
const {
|
|
1182
|
+
items: o,
|
|
1183
|
+
className: e,
|
|
1184
|
+
onMouseEnter: i,
|
|
1185
|
+
scrollbarProps: { className: u, ...c },
|
|
1186
|
+
width: d,
|
|
1187
|
+
isLoading: y
|
|
1188
|
+
} = this.props;
|
|
1189
|
+
let E = o.filter((b) => !b.hidden);
|
|
1190
|
+
E = E.map((b, I) => (b.separator && !E[I - 1] && (b.separator = !1), b));
|
|
1191
|
+
const f = D(_.container, e), W = D(_.scrollbar, u), V = d ? { width: `${d}px`, minWidth: "inherit" } : {}, k = y ? _.loader : "";
|
|
1192
|
+
return /* @__PURE__ */ v("div", { className: f, onMouseEnter: i, style: V, children: /* @__PURE__ */ $(Ie.Scrollbars, { className: W, ...c, hideTracksWhenNotNeeded: !0, children: [
|
|
1193
|
+
this.getSeparateGroups(E).map((b, I) => /* @__PURE__ */ v("div", { className: _.separateGroup, children: b.map(this.renderMenuItem) }, I)),
|
|
1194
|
+
/* @__PURE__ */ v("div", { className: k, children: /* @__PURE__ */ v(Qe, { isLoading: y }) })
|
|
1195
|
+
] }) });
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
ue.defaultProps = {
|
|
1199
|
+
onMouseEnter: De,
|
|
1200
|
+
onRequestClose: De,
|
|
1201
|
+
scrollbarProps: {},
|
|
1202
|
+
level: 0,
|
|
1203
|
+
isLoading: !1,
|
|
1204
|
+
zIndex: 1
|
|
1205
|
+
};
|
|
1206
|
+
let Ee = ue;
|
|
1207
|
+
export {
|
|
1208
|
+
ke as M,
|
|
1209
|
+
Ee as a,
|
|
1210
|
+
ae as i
|
|
1211
|
+
};
|