@m4l/components 5.0.0 → 5.0.2
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/@types/export.d.ts +260 -260
- package/@types/types.d.ts +132 -132
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DragResizeWindow/DragResizeWindow.styles.d.ts +2 -0
- package/components/DynamicFilter/DynamicFIlter.styles.d.ts +2 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicSort/DynamicSort.styles.d.ts +2 -0
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/Icon/Icon.styles.d.ts +2 -0
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/ToastContainer/ToastContainer.styles.d.ts +2 -0
- package/components/extended/react-resizable/ResizableBox/ResizeableBox.styles.d.ts +2 -0
- package/components/formatters/CourseFormatter/CourseFormatter.styles.d.ts +2 -0
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.styles.d.ts +2 -0
- package/components/gclick/MyDevice/MyDevice.styles.d.ts +2 -0
- package/components/gclick/MyDeviceStatus/MyDeviceStatus.styles.d.ts +2 -0
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +0 -2
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/types.d.ts +8 -0
- package/components/maps/components/Map/Map.styles.d.ts +2 -0
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.styles.d.ts +2 -0
- package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +2 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/Tooltip.styles.d.ts +2 -0
- package/components/popups/components/PopupsViewer/PopupsViewer.styles.d.ts +2 -0
- package/index.js +201 -383
- package/{react-json-view-bhqIAaNg.js → node_modules-Cn6brygc.js} +2174 -2
- package/package.json +1 -1
- package/utils/index.d.ts +1 -1
- package/vendor-FyizdpHB.js +25900 -0
- package/vite-env.d.ts +4 -4
- package/@types/export.d-l0sNRNKZ.js +0 -1
- package/@types/types.d-l0sNRNKZ.js +0 -1
- package/components/AccountPopover/AccountPopover-NVz2YbA6.js +0 -69
- package/components/AccountPopover/classes/constants-Bh4Ddb0Q.js +0 -4
- package/components/AccountPopover/classes/index-BPokei6j.js +0 -59
- package/components/AccountPopover/dictionary-BUSBiVvV.js +0 -6
- package/components/AccountPopover/index-l0sNRNKZ.js +0 -1
- package/components/AccountPopover/style-KJYhN6c4.js +0 -7
- package/components/AccountPopover/subcomponents/MyAvatar/index-B5TQqcPH.js +0 -21
- package/components/AccountPopover/subcomponents/PopOver/index-B3d9Xop9.js +0 -207
- package/components/AppBar/AppBar-rzLpA1iD.js +0 -57
- package/components/AppBar/classes/constants-BMVeFXZd.js +0 -4
- package/components/AppBar/classes/index-DrzQShzd.js +0 -33
- package/components/AppBar/dictionary-DxNEDzLB.js +0 -6
- package/components/AppBar/index-l0sNRNKZ.js +0 -1
- package/components/AppBar/styles-DEP7cqpd.js +0 -7
- package/components/AppBar/tests/constants-RDOlKZ0s.js +0 -4
- package/components/AppBar/tests/utils-B28LDbSp.js +0 -7
- package/components/BaseModule/BaseModule-1qgJozad.js +0 -30
- package/components/BaseModule/index-l0sNRNKZ.js +0 -1
- package/components/CommonActions/classes/constants-BrkHp2Ia.js +0 -4
- package/components/CommonActions/classes/index-BnG1pLyl.js +0 -33
- package/components/CommonActions/components/ActionCancel/index-CI0Yqh5P.js +0 -12
- package/components/CommonActions/components/ActionFormCancel/index-CCqrtkkw.js +0 -56
- package/components/CommonActions/components/ActionFormIntro/index-BZ-ICiJI.js +0 -33
- package/components/CommonActions/components/ActionIntro/index-CCc2O0ve.js +0 -25
- package/components/CommonActions/components/ActionIntro/test/contants-Dw8KcIHV.js +0 -4
- package/components/CommonActions/components/Actions/index-B4L6Y4pL.js +0 -24
- package/components/CommonActions/components/Actions/styles-BTRPY3jS.js +0 -14
- package/components/CommonActions/dictionary-YlCVMypc.js +0 -15
- package/components/CommonActions/index-l0sNRNKZ.js +0 -1
- package/components/CommonActions/tests/constants-CoE1Qxif.js +0 -4
- package/components/CommonActions/tests/utils-cD_DQm4p.js +0 -7
- package/components/DataGrid/classes/constants-Dgj06XTw.js +0 -4
- package/components/DataGrid/classes/index-ugl1vhoP.js +0 -71
- package/components/DataGrid/constants-BIS3UfHs.js +0 -8
- package/components/DataGrid/contexts/DataGridContext/index-7snUVrBX.js +0 -228
- package/components/DataGrid/contexts/FilterContext/index-DgNGxy-0.js +0 -47
- package/components/DataGrid/dictionary-AjA8KM_q.js +0 -14
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index-C63xq8v-.js +0 -26
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-Cj4z0rAl.js +0 -22
- package/components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js +0 -19
- package/components/DataGrid/formatters/ColumnIconFormatter/index-C0o3Obf3.js +0 -13
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-8LLfJGSu.js +0 -23
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js +0 -14
- package/components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js +0 -10
- package/components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js +0 -10
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index-FMaDuDoo.js +0 -36
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js +0 -10
- package/components/DataGrid/formatters/index-l0sNRNKZ.js +0 -1
- package/components/DataGrid/hooks/useDataGrid-BKzuMtRC.js +0 -10
- package/components/DataGrid/hooks/useFilters-C-5BfOb8.js +0 -6
- package/components/DataGrid/index-CXF-jGue.js +0 -87
- package/components/DataGrid/styles-rOw1DTul.js +0 -13
- package/components/DataGrid/subcomponents/Actions/index-Bdr1sZqJ.js +0 -48
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index-NkmFFbuS.js +0 -71
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index-DPcezSDa.js +0 -26
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index-BfkwdvLN.js +0 -59
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/index-CyeBbxLE.js +0 -19
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index-pS8ki8XZ.js +0 -23
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/index-BWSNaRm1.js +0 -260
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles-B6HR4Y1G.js +0 -50
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index-tWvbJZXe.js +0 -63
- package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer-ByAzKIlx.js +0 -11
- package/components/DataGrid/subcomponents/Table/hooks/useFocusRef-RLFiIJjj.js +0 -15
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows-DCXxeSKv.js +0 -187
- package/components/DataGrid/subcomponents/Table/index-CgLk2xwC.js +0 -77
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn-B3UXBUtV.js +0 -46
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter-tKqOCQR4.js +0 -27
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons-BhLC9sP9.js +0 -16
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer-DSxzHkVQ.js +0 -106
- package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn-XdTn-CNL.js +0 -77
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index-DcPsCY_n.js +0 -11
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles-C0ERM6Cs.js +0 -10
- package/components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js +0 -80
- package/components/DataGrid/types-12wiiAcO.js +0 -6
- package/components/DataGrid/utils/getDataGridRowsFromSet-DOYDyyxy.js +0 -20
- package/components/DragResizeWindow/DragResizeWindow-BWoDkdfF.js +0 -168
- package/components/DragResizeWindow/classes/index-JOh47hwH.js +0 -16
- package/components/DragResizeWindow/constants-jERlmN0S.js +0 -6
- package/components/DragResizeWindow/helpers/index-D2Cx3zja.js +0 -39
- package/components/DragResizeWindow/hooks/useDimensionEffects-bNfgX0tT.js +0 -209
- package/components/DragResizeWindow/hooks/useDragOptions-BufF3icS.js +0 -86
- package/components/DragResizeWindow/hooks/useResizeOptions-cqFzxUJV.js +0 -61
- package/components/DragResizeWindow/index-l0sNRNKZ.js +0 -1
- package/components/DragResizeWindow/slots/DragResizeWindowSlots-DnIRiKLy.js +0 -14
- package/components/DragResizeWindow/slots/slots-DMw2YjWj.js +0 -8
- package/components/DragResizeWindow/utils-DECvGPap.js +0 -17
- package/components/DynamicFilter/DynamicFilter-CvcLkbeM.js +0 -14
- package/components/DynamicFilter/constants-ByqmFATV.js +0 -31
- package/components/DynamicFilter/dictionary-CNZO5wD-.js +0 -51
- package/components/DynamicFilter/helpers/formatToInitialFilters-Bz6usYxf.js +0 -31
- package/components/DynamicFilter/helpers/formatToRowFilter-m6xHKcg4.js +0 -18
- package/components/DynamicFilter/helpers/getPurgedInitialFiltersApplied-CVyNGpdo.js +0 -59
- package/components/DynamicFilter/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/slots/SlotsEnum-cawFeNzx.js +0 -34
- package/components/DynamicFilter/slots/dynamicFilterSlots-CZy1gyQT.js +0 -151
- package/components/DynamicFilter/slots/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/store/DynamicFilterContext-ynO0d4LR.js +0 -84
- package/components/DynamicFilter/store/DynamicFilterStore-BLtpFLRr.js +0 -171
- package/components/DynamicFilter/store/useDynamicFilterStore-BZzyjtRB.js +0 -13
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip-C5XrN_j_.js +0 -28
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip-CZ_cJEU2.js +0 -36
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters-B_-BWr0E.js +0 -15
- package/components/DynamicFilter/subcomponents/AppliedFilters/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters-B-3y5nm9.js +0 -15
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase-Bltkd-fB.js +0 -35
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase-C_hAonOE.js +0 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers-BvtmDo0M.js +0 -77
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index-m4Wkv_3f.js +0 -58
- package/components/DynamicFilter/subcomponents/FieldTypes/DataTypeComponent--uqag8xj.js +0 -16
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers-7V3Um2bq.js +0 -123
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index-Dwgqt45S.js +0 -54
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers-DmKMx1zE.js +0 -103
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index-4itWtOGU.js +0 -56
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers--33GiR_E.js +0 -103
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index-Jssj9uVW.js +0 -49
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers-DKbxy2Pu.js +0 -79
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index-tzPmH4Mo.js +0 -41
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory-C5-dzeV0.js +0 -25
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions-HHdJ9mCo.js +0 -43
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton-rOMSu3VE.js +0 -12
- package/components/DynamicFilter/subcomponents/FilterActions/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions-BKyJx_bo.js +0 -43
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter-4DhLdUlH.js +0 -38
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton-BV7OwUgY.js +0 -19
- package/components/DynamicFilter/subcomponents/InputFilter/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter-Bg402IHm.js +0 -140
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter-pSAemlic.js +0 -64
- package/components/DynamicFilter/subcomponents/PopoverFilter/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter-CyrGFWx9.js +0 -99
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields-DLceiE6h.js +0 -38
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/index-l0sNRNKZ.js +0 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields-CTj-hB1s.js +0 -29
- package/components/GridLayout/GridLayout-BAkYBiCq.js +0 -534
- package/components/GridLayout/calculateUtils-wGPJ2spi.js +0 -71
- package/components/GridLayout/classes/index-qNqBA3Jg.js +0 -24
- package/components/GridLayout/constants-BOQgOrZA.js +0 -26
- package/components/GridLayout/index-l0sNRNKZ.js +0 -1
- package/components/GridLayout/styles-BqM7s5fd.js +0 -163
- package/components/GridLayout/subcomponents/GridItem/index-CN5cQOl7.js +0 -398
- package/components/GridLayout/subcomponents/Responsive/helper-6U-MAGmf.js +0 -62
- package/components/GridLayout/subcomponents/Responsive/index-Btb7L_Xa.js +0 -160
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils-Bn3nVJDm.js +0 -144
- package/components/GridLayout/subcomponents/withSizeProvider/index-DXbMA_Cf.js +0 -71
- package/components/GridLayout/utils-CF3BArf2.js +0 -408
- package/components/HelmetPage/index-CbpwSvMa.js +0 -21
- package/components/HelperError/HelperError-C5G4oOos.js +0 -18
- package/components/HelperError/HelperError.styles-CkPSXtTT.js +0 -10
- package/components/HelperError/constant-CBOYbXmD.js +0 -4
- package/components/HelperError/index-l0sNRNKZ.js +0 -1
- package/components/HelperError/slots/HelperErrorEnum-D15EhE_N.js +0 -7
- package/components/HelperError/slots/HelperErrorSlots-D8mjqRYs.js +0 -12
- package/components/HelperError/slots/index-l0sNRNKZ.js +0 -1
- package/components/Icon/Icon-1jxG9mYZ.js +0 -40
- package/components/Icon/constants-p-zWrteB.js +0 -4
- package/components/Icon/index-l0sNRNKZ.js +0 -1
- package/components/Icon/slots/IconEnum-DugVgD7D.js +0 -9
- package/components/Icon/slots/IconSlots-DOzsxvU0.js +0 -22
- package/components/Icon/slots/index-l0sNRNKZ.js +0 -1
- package/components/Icon/types-l0sNRNKZ.js +0 -1
- package/components/Image/Image-BjqOt3pz.js +0 -38
- package/components/Image/classes/constant-D4zChr5r.js +0 -4
- package/components/Image/classes/index-1OpZlCW5.js +0 -25
- package/components/Image/index-l0sNRNKZ.js +0 -1
- package/components/Image/styles-BicLK1dh.js +0 -7
- package/components/Image/tests/constants-DRfnGNKj.js +0 -4
- package/components/Image/tests/utils-BCQiWwtM.js +0 -7
- package/components/Image/types-DYvT-C_T.js +0 -49
- package/components/Image/utils/getRatioValues-Cyvn3Ee3.js +0 -19
- package/components/Label/Label-3ew9PS6u.js +0 -24
- package/components/Label/Label.styles-CKg2iF6E.js +0 -65
- package/components/Label/constants-4JI4LmRB.js +0 -4
- package/components/Label/index-l0sNRNKZ.js +0 -1
- package/components/Label/slots/LabelEnum--KtFPKmp.js +0 -11
- package/components/Label/slots/LabelSlots-BDkYIBDf.js +0 -34
- package/components/Label/slots/index-l0sNRNKZ.js +0 -1
- package/components/LanguagePopover/LanguagePopover-YmHJMFsY.js +0 -148
- package/components/LanguagePopover/classes/constants-Bfc3xGwi.js +0 -4
- package/components/LanguagePopover/classes/index-BK-vZgR3.js +0 -33
- package/components/LanguagePopover/index-l0sNRNKZ.js +0 -1
- package/components/LanguagePopover/styles-s7-3z7wM.js +0 -30
- package/components/LanguagePopover/tests/constants-C9mf14VM.js +0 -4
- package/components/LanguagePopover/tests/utils-Df2OFfOB.js +0 -7
- package/components/LanguagePopover/types-l0sNRNKZ.js +0 -1
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate--VicNz4N.js +0 -28
- package/components/LinearProgressIndeterminate/classes/constants-CecllKOT.js +0 -4
- package/components/LinearProgressIndeterminate/classes/index-BIhUKJSv.js +0 -28
- package/components/LinearProgressIndeterminate/index-l0sNRNKZ.js +0 -1
- package/components/LinearProgressIndeterminate/styles-mliQXZjI.js +0 -7
- package/components/LinearProgressIndeterminate/tests/constants-C9ZRibu9.js +0 -4
- package/components/LinearProgressIndeterminate/tests/utils-CEbG-cfY.js +0 -7
- package/components/Loadable/index-aNEylxCd.js +0 -9
- package/components/LoadingError/LoadingError-Ds10r50U.js +0 -50
- package/components/LoadingError/classes/constants-BuFMGaME.js +0 -4
- package/components/LoadingError/classes/index-C_bckEjI.js +0 -39
- package/components/LoadingError/dictionary-EvQUxYRt.js +0 -6
- package/components/LoadingError/index-l0sNRNKZ.js +0 -1
- package/components/LoadingError/styles-JDmaMF_4.js +0 -7
- package/components/MFIsolationApp/MFIsolationApp-C-h6xh80.js +0 -127
- package/components/MFIsolationApp/constants-pKuV2ytz.js +0 -4
- package/components/MFIsolationApp/index-l0sNRNKZ.js +0 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp-DgY0YGK1.js +0 -57
- package/components/MFIsolationApp/subcomponents/MFAuthApp/index-l0sNRNKZ.js +0 -1
- package/components/MFLoader/MFLoader-BDLuZB3d.js +0 -153
- package/components/MFLoader/classes/constants-CrKFBCVk.js +0 -4
- package/components/MFLoader/classes/index-C4jyh98a.js +0 -26
- package/components/MFLoader/dictionary-CXND9TXx.js +0 -6
- package/components/MFLoader/helper-DIBUdU2j.js +0 -115
- package/components/MFLoader/index-l0sNRNKZ.js +0 -1
- package/components/MFLoader/styles-CtS4rdXD.js +0 -7
- package/components/MFLoader/subcomponents/ProggessLoadingMF/index-B-TsTYTl.js +0 -16
- package/components/NavLink/NavLink-BLwomKX_.js +0 -33
- package/components/NavLink/classes/constant-C5HMQmiK.js +0 -4
- package/components/NavLink/classes/index-CGAMfugg.js +0 -23
- package/components/NavLink/index-l0sNRNKZ.js +0 -1
- package/components/NavLink/styles-DL9dFk6r.js +0 -7
- package/components/NavLink/tests/constants-9o3PPR1T.js +0 -4
- package/components/NavLink/tests/utils-CHu-fVih.js +0 -7
- package/components/NoItemSelected/classes/constants-NX4P7zJx.js +0 -4
- package/components/NoItemSelected/classes/index-CGh0_XXI.js +0 -26
- package/components/NoItemSelected/dictionary-DhPDgHyg.js +0 -12
- package/components/NoItemSelected/index-M2NHb7cH.js +0 -23
- package/components/NoItemSelected/styles-BSNyzRVO.js +0 -26
- package/components/ObjectLogs/components/DetailDialog/index-BSRfMj11.js +0 -42
- package/components/ObjectLogs/components/DetailFormatter/index-C_vFXYqZ.js +0 -32
- package/components/ObjectLogs/dictionary-DwDsJzPq.js +0 -20
- package/components/ObjectLogs/index-Df7DEuSf.js +0 -156
- package/components/ObjectLogs/styles-PxnVTC5y.js +0 -35
- package/components/PDFViewer/PDFViewer-qhATZVpK.js +0 -30
- package/components/PDFViewer/classes/constants-CLf5ENnM.js +0 -4
- package/components/PDFViewer/classes/index-CBAuCPeO.js +0 -25
- package/components/PDFViewer/index-l0sNRNKZ.js +0 -1
- package/components/PDFViewer/styles-DyV0Ma4x.js +0 -7
- package/components/PaperForm/PaperForm-kfrcMKND.js +0 -18
- package/components/PaperForm/classes/constants-BG56eJ8L.js +0 -4
- package/components/PaperForm/classes/index-C6y8jsT8.js +0 -33
- package/components/PaperForm/components/Header-KKfKg_Oh.js +0 -19
- package/components/PaperForm/styles-cMJgA-Av.js +0 -51
- package/components/Period/Period-CrQNpQjr.js +0 -167
- package/components/Period/classes/constants-CJmYGNwp.js +0 -4
- package/components/Period/classes/index-DkjGk_tK.js +0 -53
- package/components/Period/dictionary-C8KmrFfD.js +0 -13
- package/components/Period/index-l0sNRNKZ.js +0 -1
- package/components/Period/styles-DFD4XOFf.js +0 -45
- package/components/Period/subcomponents/SkeletonPeriod/index-CDuo-ffk.js +0 -12
- package/components/Period/tests/constants-QkzdD2rw.js +0 -4
- package/components/Period/tests/utils-Bxi-Tv3y.js +0 -7
- package/components/Period/types-Dwobeg_U.js +0 -9
- package/components/PrintingSystem/PrintingSystem-OExztirN.js +0 -59
- package/components/PrintingSystem/classes/constants-Br6vixRY.js +0 -4
- package/components/PrintingSystem/classes/index-B2TXqpjh.js +0 -76
- package/components/PrintingSystem/index-l0sNRNKZ.js +0 -1
- package/components/PrintingSystem/styles-C_CkDcO5.js +0 -7
- package/components/PrintingSystem/subcomponents/BodyNode/index-CBZB6ZED.js +0 -50
- package/components/PrintingSystem/subcomponents/ChartNode/index-BFM6Xg0V.js +0 -105
- package/components/PrintingSystem/subcomponents/DividerNode/index-B56zhHQh.js +0 -20
- package/components/PrintingSystem/subcomponents/FooterNode/index-Nu6qOa_q.js +0 -50
- package/components/PrintingSystem/subcomponents/GridNode/index-DHSxKLLX.js +0 -75
- package/components/PrintingSystem/subcomponents/HeaderNode/index-C6__LEhO.js +0 -50
- package/components/PrintingSystem/subcomponents/ImageNode/index-B0lG8wnZ.js +0 -29
- package/components/PrintingSystem/subcomponents/PageNode/index-CtF6V__x.js +0 -42
- package/components/PrintingSystem/subcomponents/Pager/index-BJTEG0zA.js +0 -22
- package/components/PrintingSystem/subcomponents/PaperNode/index-CQ0yGxm7.js +0 -30
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index-zwZA1a-x.js +0 -48
- package/components/PrintingSystem/subcomponents/QRImageNode/index-zUUTN4vG.js +0 -33
- package/components/PrintingSystem/subcomponents/SectionNode/index-dPkVEbsH.js +0 -50
- package/components/PrintingSystem/subcomponents/TextBoxNode/index-CcKnlIQM.js +0 -24
- package/components/PrintingSystem/utils/FactoryRender/index-D1eHDozv.js +0 -54
- package/components/PrintingSystem/utils/PageRender/index-CmeJqCuC.js +0 -50
- package/components/PrintingSystem/utils/getSize/index-Dxtlljfm.js +0 -10
- package/components/PropertyValue/PropertyValue-CnrYDKut.js +0 -201
- package/components/PropertyValue/classes/constants-s39PnPag.js +0 -4
- package/components/PropertyValue/classes/index-Dq0riJic.js +0 -40
- package/components/PropertyValue/constants-EBZEdYQ_.js +0 -6
- package/components/PropertyValue/styles-Bw7yBmcr.js +0 -7
- package/components/ScrollBar/classes/constants-COftye4M.js +0 -4
- package/components/ScrollBar/classes/index-vfd-Uri5.js +0 -23
- package/components/ScrollBar/index-1MJx3e_h.js +0 -17
- package/components/ScrollBar/styles-CVyFCZAK.js +0 -46
- package/components/ScrollToTop/index-TxORk5dB.js +0 -12
- package/components/SideBar/SideBar-BxgZL1ii.js +0 -78
- package/components/SideBar/classes/constants-CuvqF81L.js +0 -4
- package/components/SideBar/classes/index-DwK5vHib.js +0 -131
- package/components/SideBar/constants-BRWf1smn.js +0 -6
- package/components/SideBar/context/sideBarContext/index-MO7cOTFM.js +0 -75
- package/components/SideBar/hooks/useSideBar/index-CZiP3QRh.js +0 -6
- package/components/SideBar/index-l0sNRNKZ.js +0 -1
- package/components/SideBar/styles-DD87zVej.js +0 -21
- package/components/SideBar/subcomponents/ContentDesktop/index-CtyhUPg-.js +0 -12
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index-UhoigWQy.js +0 -29
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/styles-Da6-kSdo.js +0 -10
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index-0_Up_pTt.js +0 -74
- package/components/SideBar/subcomponents/ContentGroups/index-BjfcNKnC.js +0 -55
- package/components/SideBar/subcomponents/ContentGroups/styles-BejiSnJt.js +0 -29
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index-C9i57aW0.js +0 -95
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles-_I13xqtq.js +0 -9
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/index-ByA8pL7H.js +0 -29
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/ArrowIcon/styles-XF6qlczg.js +0 -9
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/index-GahIqhE_.js +0 -44
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/styles-B-bKLBgN.js +0 -29
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/subcomponents/NavItemRootContent/index-7xjbg02-.js +0 -44
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/index-BfWLLX_Y.js +0 -78
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/styles-DufcL0vH.js +0 -8
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/index-sDEeXfAT.js +0 -20
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/index-XvFWcRXh.js +0 -57
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles-BpxvDTCo.js +0 -39
- package/components/SideBar/subcomponents/ContentMobile/index-BAYa9UBX.js +0 -81
- package/components/SideBar/subcomponents/ContentMobile/styles-CRzFPD56.js +0 -18
- package/components/SideBar/subcomponents/ContentMobile/subcomponents/Drawer-C1SYx_3y.js +0 -9
- package/components/SideBar/tests/constants-DIIH2Sct.js +0 -4
- package/components/SideBar/tests/utils-tW-XG1xE.js +0 -7
- package/components/SplitLayout/SplitLayout-B8bP0kvQ.js +0 -57
- package/components/SplitLayout/classes/constants-C_O42A4G.js +0 -4
- package/components/SplitLayout/classes/index-Bi71dnD5.js +0 -33
- package/components/SplitLayout/styles-Cw_bnund.js +0 -29
- package/components/SplitLayout/tests/constants-w_t_rd0V.js +0 -4
- package/components/SplitLayout/tests/utils-Qs_xtytB.js +0 -7
- package/components/ToastContainer/ToastContainer-ByypN4tG.js +0 -36
- package/components/ToastContainer/constants-BrwLWG5c.js +0 -8
- package/components/ToastContainer/helpers/toaster-rSpMgeD4.js +0 -47
- package/components/ToastContainer/icons-CuE5RTrU.js +0 -12
- package/components/ToastContainer/index-l0sNRNKZ.js +0 -1
- package/components/ToastContainer/slots/ToastContainerEnum-mpJBAxqc.js +0 -17
- package/components/ToastContainer/slots/index-l0sNRNKZ.js +0 -1
- package/components/ToastContainer/slots/toastContainerSlots-Dt1rvYdg.js +0 -62
- package/components/ToastContainer/subcomponents/ToastMessage/ToastMessage-83ZZXUdn.js +0 -50
- package/components/ToastContainer/subcomponents/ToastMessage/index-l0sNRNKZ.js +0 -1
- package/components/ToastContainer/subcomponents/ToastMessage/useToastMessage-CnlGBnjj.js +0 -42
- package/components/WrapperComponent/index-BHV-CsDU.js +0 -14
- package/components/animate/AnimatedScroll/animatedScroll-B3q14b-A.js +0 -53
- package/components/animate/AnimatedScroll/index-l0sNRNKZ.js +0 -1
- package/components/animate/AnimatedScroll/styles-Ckh1Z4tM.js +0 -43
- package/components/animate/IconButtonAnimate/index-jaVqrJOf.js +0 -40
- package/components/animate/LoadingScreen/index-D_1KtCi0.js +0 -70
- package/components/animate/LoadingScreen/styles-Ca3896Rd.js +0 -22
- package/components/animate/MotionContainer/index-eartnWyO.js +0 -34
- package/components/animate/MotionLazyContainer/index-Be8osTiG.js +0 -9
- package/components/animate/PropagateLoader/index-Dmd61b9N.js +0 -11
- package/components/animate/PropagateLoader/syles-B-d-wxy-.js +0 -16
- package/components/animate/features-BbnE33u3.js +0 -5
- package/components/animate/index-l0sNRNKZ.js +0 -1
- package/components/animate/variants/bounce-DanQqHAX.js +0 -101
- package/components/animate/variants/container-Dmpr6tg5.js +0 -22
- package/components/animate/variants/fade-CAOJNn06.js +0 -65
- package/components/animate/variants/index-l0sNRNKZ.js +0 -1
- package/components/animate/variants/transition-B9W5SWTa.js +0 -20
- package/components/areas/components/AreasAdmin/classes/index-CryauVAw.js +0 -70
- package/components/areas/components/AreasAdmin/index-7BNkSfdp.js +0 -95
- package/components/areas/components/AreasAdmin/styles-BkiAuWPY.js +0 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index-CqdH0Lyb.js +0 -211
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles-CScNS_dH.js +0 -29
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index-0ggxJSjE.js +0 -47
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index-qhcmkcT6.js +0 -93
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile-_JAJPQiI.js +0 -211
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index-BwAcXTx5.js +0 -53
- package/components/areas/components/AreasViewer/classes/index-vzutNGDt.js +0 -91
- package/components/areas/components/AreasViewer/index-DIqlOZCm.js +0 -46
- package/components/areas/components/AreasViewer/styles-Cn-B0M9m.js +0 -124
- package/components/areas/components/AreasViewer/subcomponents/Area/index-DCmLjmse.js +0 -28
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index-DHGSYG73.js +0 -62
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/InnerForHooks/index-pDXMW9k1.js +0 -30
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/PanelWindows/index-Dj3ZP_HG.js +0 -99
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index-DQLweOBU.js +0 -140
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/styles-Chi8Bv_9.js +0 -69
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/index-BRw7ybtW.js +0 -13
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper-0Ko9QdxY.js +0 -66
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index-Dz0wM27Z.js +0 -150
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index-Bpw467Zk.js +0 -44
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowHeaderSkeleton/index-BgjfGL1Q.js +0 -57
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/index-C4qSzf32.js +0 -10
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/index-CI_NRrEx.js +0 -58
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/styles-CAgHbRyV.js +0 -26
- package/components/areas/components/index-l0sNRNKZ.js +0 -1
- package/components/areas/constants-rqODZNZe.js +0 -6
- package/components/areas/contexts/AreasContext/helper-Bj2Lz2mw.js +0 -220
- package/components/areas/contexts/AreasContext/index-B_WBK3u-.js +0 -84
- package/components/areas/contexts/AreasContext/store-C7uCuREP.js +0 -832
- package/components/areas/contexts/DynamicMFParmsContext/index-SHbC_49A.js +0 -13
- package/components/areas/contexts/DynamicMFParmsContext/store-8_SPgo06.js +0 -25
- package/components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js +0 -12
- package/components/areas/contexts/index-l0sNRNKZ.js +0 -1
- package/components/areas/dictionary-gOjRdYCc.js +0 -36
- package/components/areas/hooks/index-l0sNRNKZ.js +0 -1
- package/components/areas/hooks/useAreas/index-DosRWKI3.js +0 -11
- package/components/areas/hooks/useDynamicMFParameters/index-CyAquEeF.js +0 -12
- package/components/areas/hooks/useSetWindowsTitle/index-l0sNRNKZ.js +0 -1
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-C-wV4gzi.js +0 -31
- package/components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js +0 -10
- package/components/areas/icons-CwFr-alN.js +0 -24
- package/components/areas/index-l0sNRNKZ.js +0 -1
- package/components/areas/utils/useOnClickOutside/index-B_Odny9h.js +0 -22
- package/components/commercial/AppBarCommercial/classes/constants-a6toCdwm.js +0 -4
- package/components/commercial/AppBarCommercial/classes/index-3fKT0VDA.js +0 -21
- package/components/commercial/AppBarCommercial/index-BbLE2KQv.js +0 -11
- package/components/commercial/AppBarCommercial/styles-Na-n2IN5.js +0 -7
- package/components/commercial/HamburgerMenu/HamburgerMenu-B3zqxZ46.js +0 -62
- package/components/commercial/HamburgerMenu/classes/constants-CDvIZc4M.js +0 -4
- package/components/commercial/HamburgerMenu/classes/index-CHCHg7y_.js +0 -20
- package/components/commercial/HamburgerMenu/index-l0sNRNKZ.js +0 -1
- package/components/commercial/HamburgerMenu/styles-CZVKrFuY.js +0 -7
- package/components/commercial/HamburgerMenu/test/constants-RULsMuXW.js +0 -4
- package/components/commercial/HamburgerMenu/test/utils-CBm5WN6w.js +0 -7
- package/components/commercial/SectionCommercial/classes/constants-DygZ7A8l.js +0 -4
- package/components/commercial/SectionCommercial/classes/index-CiX147QD.js +0 -29
- package/components/commercial/SectionCommercial/index-A54Y957q.js +0 -31
- package/components/commercial/SectionCommercial/styles-CuINxIVl.js +0 -8
- package/components/commercial/TopBar/TopBar-CVWG41wc.js +0 -23
- package/components/commercial/TopBar/classes/constants-CyLEa28Q.js +0 -4
- package/components/commercial/TopBar/classes/index-DlgA6Hxv.js +0 -37
- package/components/commercial/TopBar/component/ConteinItem/index-pRy1XKXi.js +0 -21
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index-C_nVTPXr.js +0 -135
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/index-DHlgLuec.js +0 -19
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/styles-XF6qlczg.js +0 -9
- package/components/commercial/TopBar/context/index-C3gQXnyy.js +0 -24
- package/components/commercial/TopBar/hook/topBarContext/index-CPVriCPX.js +0 -6
- package/components/commercial/TopBar/index-l0sNRNKZ.js +0 -1
- package/components/commercial/TopBar/style-pAcnajRT.js +0 -7
- package/components/commercial/TopBar/utils/isActive/index-Dz_LJEy8.js +0 -13
- package/components/commercial/index-l0sNRNKZ.js +0 -1
- package/components/extended/react-resizable/Resizable/Resizable-Cr2LGm1L.js +0 -8
- package/components/extended/react-resizable/Resizable/constants-DVMFY6EM.js +0 -4
- package/components/extended/react-resizable/Resizable/index-l0sNRNKZ.js +0 -1
- package/components/extended/react-resizable/Resizable/slots/ResizableSlots-D8THo0hY.js +0 -11
- package/components/extended/react-resizable/Resizable/slots/slots-CjS9EQqE.js +0 -7
- package/components/extended/react-resizable/ResizableBox/ResizableBox-wUgQRWcc.js +0 -29
- package/components/extended/react-resizable/ResizableBox/constants-DtrVPYOm.js +0 -4
- package/components/extended/react-resizable/ResizableBox/index-l0sNRNKZ.js +0 -1
- package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots-SQM77Va4.js +0 -11
- package/components/extended/react-resizable/ResizableBox/slots/slots-BLBVieAn.js +0 -7
- package/components/extended/react-resizable/index-l0sNRNKZ.js +0 -1
- package/components/formatters/BooleanFormatter/dictionary-2kuXB56a.js +0 -12
- package/components/formatters/BooleanFormatter/index-a9Q_8L6L.js +0 -40
- package/components/formatters/ConcatenatedFormatter/index-CrK614TS.js +0 -33
- package/components/formatters/CourseFormatter/CourseFormatter-C72EFdlI.js +0 -34
- package/components/formatters/CourseFormatter/constants-BGsPt0UA.js +0 -4
- package/components/formatters/CourseFormatter/dictionary-lPKVjn-F.js +0 -18
- package/components/formatters/CourseFormatter/index-l0sNRNKZ.js +0 -1
- package/components/formatters/CourseFormatter/slots/CourseFormatterSlots-BtpPrUiQ.js +0 -11
- package/components/formatters/CourseFormatter/slots/slots-DNFpCsEX.js +0 -7
- package/components/formatters/DateFormatter/index-CGcRZ8BA.js +0 -43
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter-Cn7lTVkU.js +0 -43
- package/components/formatters/DistanceToNowFormatter/constants-BFXbvVBz.js +0 -4
- package/components/formatters/DistanceToNowFormatter/dictionary-BsdfX7sF.js +0 -28
- package/components/formatters/DistanceToNowFormatter/index-l0sNRNKZ.js +0 -1
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots-DMdMz6HD.js +0 -11
- package/components/formatters/DistanceToNowFormatter/slots/slots-bUoE5Fxj.js +0 -7
- package/components/formatters/FormatterRoot/index-CKgqNRGN.js +0 -10
- package/components/formatters/FormatterRoot/styles-BxglnnaF.js +0 -7
- package/components/formatters/PeriodFormatter/dictionary-BP3VKj5x.js +0 -13
- package/components/formatters/PeriodFormatter/index-D3I0SO_V.js +0 -50
- package/components/formatters/PointsFormatter/index-C7sR8iqk.js +0 -25
- package/components/formatters/PriceFormatter/index-CsvRawmc.js +0 -35
- package/components/formatters/UncertaintyFormatter/index-B9ESVEVp.js +0 -29
- package/components/formatters/classes/index-CMYKz7Wg.js +0 -13
- package/components/formatters/constants-BTQiqzvp.js +0 -4
- package/components/formatters/dictionary-Bnb5E97X.js +0 -8
- package/components/formatters/index-l0sNRNKZ.js +0 -1
- package/components/formatters/types-l0sNRNKZ.js +0 -1
- package/components/gclick/MyDevice/MyDevice-BoQAm0bh.js +0 -26
- package/components/gclick/MyDevice/constants-BZ1U9wMp.js +0 -4
- package/components/gclick/MyDevice/index-l0sNRNKZ.js +0 -1
- package/components/gclick/MyDevice/slots/MyDeviceSlots-DLMSrrQq.js +0 -22
- package/components/gclick/MyDevice/slots/slots-DlXOVVWT.js +0 -9
- package/components/gclick/MyDeviceStatus/MyDeviceStatus-6k94VZLI.js +0 -70
- package/components/gclick/MyDeviceStatus/constants-ByQA2QBf.js +0 -17
- package/components/gclick/MyDeviceStatus/dictionary-_RHL79pd.js +0 -19
- package/components/gclick/MyDeviceStatus/icons-C29IIx7h.js +0 -14
- package/components/gclick/MyDeviceStatus/index-l0sNRNKZ.js +0 -1
- package/components/gclick/MyDeviceStatus/slots/MyDeviceStatusSlots-BnKuK22-.js +0 -22
- package/components/gclick/MyDeviceStatus/slots/slots-n7uOukTO.js +0 -9
- package/components/gclick/constants-CoIqv4_c.js +0 -4
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete-CJnpp5nw.js +0 -9
- package/components/hook-form/RHFAutocomplete/classes/constant-CbsrkIJR.js +0 -4
- package/components/hook-form/RHFAutocomplete/classes/index-CyWmAbmI.js +0 -77
- package/components/hook-form/RHFAutocomplete/dictionary-C5ATeyRM.js +0 -6
- package/components/hook-form/RHFAutocomplete/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFAutocomplete/styles-DSo9SpWu.js +0 -7
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index-DxjKX2EY.js +0 -281
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index-D-QVfFbz.js +0 -265
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index-DOEqxjNF.js +0 -25
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles-DQUg_XpC.js +0 -9
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/index-CLFtsqKV.js +0 -28
- package/components/hook-form/RHFAutocomplete/test/constants-DCSmDx2a.js +0 -6
- package/components/hook-form/RHFAutocomplete/test/utils-BPSzDgdt.js +0 -7
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync-D0UPaq2Q.js +0 -9
- package/components/hook-form/RHFAutocompleteAsync/classes/constant-DBkc_HaL.js +0 -4
- package/components/hook-form/RHFAutocompleteAsync/classes/index-CaX9i9pu.js +0 -26
- package/components/hook-form/RHFAutocompleteAsync/dictionary-B25jINK8.js +0 -7
- package/components/hook-form/RHFAutocompleteAsync/styles-DYrJNdlP.js +0 -34
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index-Cwq3J-ce.js +0 -103
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index-CpTJkG4o.js +0 -103
- package/components/hook-form/RHFAutocompleteAsync/tests/constants-RQuYFbii.js +0 -4
- package/components/hook-form/RHFAutocompleteAsync/tests/utils-8Tj-i2Qq.js +0 -7
- package/components/hook-form/RHFCheckbox/RHFCheckbox-DBf1q8S7.js +0 -89
- package/components/hook-form/RHFCheckbox/classes/index-jiQEHNY0.js +0 -44
- package/components/hook-form/RHFCheckbox/styles-BjwlDvb3.js +0 -24
- package/components/hook-form/RHFCheckbox/test/constants-C1yRrJw-.js +0 -4
- package/components/hook-form/RHFCheckbox/test/utils-BVQ6B9tx.js +0 -7
- package/components/hook-form/RHFColorPicker/RFHColorPicker-7m6apals.js +0 -138
- package/components/hook-form/RHFColorPicker/classes/constants-CyffuaRF.js +0 -4
- package/components/hook-form/RHFColorPicker/classes/index-RGuHpPSk.js +0 -44
- package/components/hook-form/RHFColorPicker/dictionary-D6kRH-6k.js +0 -6
- package/components/hook-form/RHFColorPicker/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFColorPicker/styles-Drw8N4oO.js +0 -7
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext-BasQE4Nq.js +0 -21
- package/components/hook-form/RHFDateTime/RHFDateTime-cEfEwCpp.js +0 -137
- package/components/hook-form/RHFDateTime/classes/constants-B6JI2ChT.js +0 -4
- package/components/hook-form/RHFDateTime/classes/index-BFb3xSvy.js +0 -45
- package/components/hook-form/RHFDateTime/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFDateTime/styles-LccnWyQx.js +0 -7
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index-BvRhzX7g.js +0 -15
- package/components/hook-form/RHFDateTime/test/constants-BBsdSHVf.js +0 -4
- package/components/hook-form/RHFDateTime/test/utils-GZSfgD8t.js +0 -7
- package/components/hook-form/RHFHelperError/index-BAAR7SDD.js +0 -19
- package/components/hook-form/RHFMultiCheckbox/index-BARudV1A.js +0 -34
- package/components/hook-form/RHFPeriod/classes/constants-Bg-k42kR.js +0 -4
- package/components/hook-form/RHFPeriod/classes/index-BxD4YD0r.js +0 -25
- package/components/hook-form/RHFPeriod/index-QR8y7oqw.js +0 -77
- package/components/hook-form/RHFPeriod/styles-CG-W_sFO.js +0 -13
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup-Daao5G5-.js +0 -42
- package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index-Cx8Lxbs5.js +0 -16
- package/components/hook-form/RHFRadioGroup/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFSelect-LdwRuFz-.js +0 -29
- package/components/hook-form/RHFTextField/RHFTextField-1-r9fAR1.js +0 -168
- package/components/hook-form/RHFTextField/RHFTextField.styles-BWUyGRb3.js +0 -104
- package/components/hook-form/RHFTextField/constant-74c4jM8M.js +0 -4
- package/components/hook-form/RHFTextField/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldEnum-DpNZmb0n.js +0 -11
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots-TgfLO3SL.js +0 -33
- package/components/hook-form/RHFTextField/slots/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/index-CPhGdUR6.js +0 -29
- package/components/hook-form/RHFTextField/types-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword-D717FX14.js +0 -69
- package/components/hook-form/RHFTextFieldPassword/classes/index-ChETGcDs.js +0 -25
- package/components/hook-form/RHFTextFieldPassword/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFTextFieldPassword/styles-DzaQqbnr.js +0 -7
- package/components/hook-form/RHFTextFieldPassword/tests/constants-CR4_xi7F.js +0 -4
- package/components/hook-form/RHFTextFieldPassword/tests/utils-C_pwVXk0.js +0 -7
- package/components/hook-form/RHFTextFieldPassword/types-l0sNRNKZ.js +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage-NPU7iGHe.js +0 -40
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants-i7zaDQ2G.js +0 -4
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index-DkF66IeJ.js +0 -57
- package/components/hook-form/RHFUpload/RHFUploadImage/styles-CR3RCTAQ.js +0 -9
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index-nt7AoQuk.js +0 -148
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles-BsnWuH-r.js +0 -7
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index-BDvEWltE.js +0 -23
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants-F0myRw5Z.js +0 -4
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils-Y3oEheq4.js +0 -7
- package/components/hook-form/RHFUpload/index-l0sNRNKZ.js +0 -1
- package/components/hook-form/index-l0sNRNKZ.js +0 -1
- package/components/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/Map-Cl8w9mp_.js +0 -34
- package/components/maps/components/Map/classes/index-Di523KHt.js +0 -110
- package/components/maps/components/Map/constants--nCJwhxA.js +0 -49
- package/components/maps/components/Map/contexts/MapContext/MapContext-CRsX00bx.js +0 -58
- package/components/maps/components/Map/contexts/MapContext/helper-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/contexts/MapContext/store-Cx4hlley.js +0 -324
- package/components/maps/components/Map/dictionary-DMmTydS6.js +0 -38
- package/components/maps/components/Map/external/Control/index-B9L3AeDC.js +0 -42
- package/components/maps/components/Map/external/googleMutant/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/index-BV9mwS5T.js +0 -253
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/index-BW5DIpDy.js +0 -33
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/index-CBjERnvH.js +0 -79
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index-BQ3zE154.js +0 -79
- package/components/maps/components/Map/featureRenders/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/hooks/useAutoFocus/index-Cy987wfW.js +0 -78
- package/components/maps/components/Map/hooks/useDisableZoomEvents/index-BCJgjs0e.js +0 -19
- package/components/maps/components/Map/hooks/useMapStore/index-1eqb58ec.js +0 -11
- package/components/maps/components/Map/icons-CSYh7uR4.js +0 -60
- package/components/maps/components/Map/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index-Dm_IBUkq.js +0 -74
- package/components/maps/components/Map/pluginLayers/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps-BjE-6nRT.js +0 -97
- package/components/maps/components/Map/popups/MapPopupMyGps/constants-BjidJqUx.js +0 -6
- package/components/maps/components/Map/popups/MapPopupMyGps/dictionary-Cy4BOBXB.js +0 -21
- package/components/maps/components/Map/popups/MapPopupMyGps/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/ MapPopupMyGpsSlots-BAqZB0fE.js +0 -21
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/slots-CYF54j1s.js +0 -9
- package/components/maps/components/Map/popups/MapPopupMyGps/subcomponents/PropertyValue/index-TH-nMLVj.js +0 -12
- package/components/maps/components/Map/popups/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/Map/slots/MapSlots-jnUyQrKb.js +0 -24
- package/components/maps/components/Map/slots/slots-Bp5FCG8d.js +0 -10
- package/components/maps/components/Map/subcomponents/Controls/index-C8cMJg6N.js +0 -31
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/index-Bca70aeD.js +0 -13
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index-C-30caa4.js +0 -59
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers-DptH6VTE.js +0 -17
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns-DckOX5d9.js +0 -129
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster-BEX19caT.js +0 -52
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter-D1VdMjtz.js +0 -40
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index-DVrMg7fn.js +0 -30
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index-DdEjHqHE.js +0 -134
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing-BdKj-qkx.js +0 -36
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google-BjMxeL-e.js +0 -73
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm-D3O3Jqwf.js +0 -25
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils-_uVZP84b.js +0 -19
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/index-DSTzF-0V.js +0 -101
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants-DxjFRbA_.js +0 -34
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers-HRokWvWu.js +0 -45
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index-cRx_SaCh.js +0 -243
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation-DiK7VJqP.js +0 -17
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index-BaNWkjzY.js +0 -41
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index-BjX6ihfR.js +0 -33
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations-C99vbJmF.js +0 -6
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index-l5m4UYCk.js +0 -26
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index-B_0VtD_m.js +0 -52
- package/components/maps/components/Map/subcomponents/LayersContainer/index-tYTwy6xC.js +0 -33
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index-DCej7pE7.js +0 -132
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index-DbEbhjX5.js +0 -24
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index-aaBDZpLL.js +0 -13
- package/components/maps/components/Map/subcomponents/TileLayers/index-p7XmQ2he.js +0 -13
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index-U7WlXaRk.js +0 -100
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerOthers/index-Cf5Y2Nr4.js +0 -35
- package/components/maps/components/MapGpsTools/MapGpsTools-DZ6NyOF-.js +0 -10
- package/components/maps/components/MapGpsTools/classes/index-oE5Q9Oa0.js +0 -21
- package/components/maps/components/MapGpsTools/constants-BtQVGkL6.js +0 -71
- package/components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/index-DtJv8-7m.js +0 -48
- package/components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/store-CnVI1yPl.js +0 -116
- package/components/maps/components/MapGpsTools/dictionary-BOXSG1O8.js +0 -73
- package/components/maps/components/MapGpsTools/hooks/useLayers/index-BqucFfYk.js +0 -57
- package/components/maps/components/MapGpsTools/hooks/useMapGpsToolsStore/index-DCjjIsPI.js +0 -11
- package/components/maps/components/MapGpsTools/icons-BXKX8nl1.js +0 -26
- package/components/maps/components/MapGpsTools/index-l0sNRNKZ.js +0 -1
- package/components/maps/components/MapGpsTools/styles-Dcg_ULaS.js +0 -21
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index-3KryoAnj.js +0 -90
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants-D0Z5Tw8t.js +0 -40
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers-B76zvEoG.js +0 -77
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing-D24NTJfB.js +0 -214
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit-GzMyYTcw.js +0 -63
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus-CwqFUFOe.js +0 -36
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation-ETPU4sdj.js +0 -19
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index-AYB25Dyz.js +0 -73
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles-6aaokEs3.js +0 -8
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index-lKvzWafc.js +0 -52
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations-CGLLyfEn.js +0 -11
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index-C38qLzn5.js +0 -140
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations-cKrxUZju.js +0 -12
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index-BeE77sQQ.js +0 -61
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index-Bhu0-v_G.js +0 -82
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index-CgaJJ1U-.js +0 -12
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index-DR95nxK5.js +0 -49
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index-By6OkoSa.js +0 -89
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures-BftLgiVe.js +0 -86
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences-aqOGX--1.js +0 -85
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns-DnKMl-iz.js +0 -112
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster-BTzwHpFc.js +0 -162
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter-C5EIQzIJ.js +0 -109
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index-Di5lEK5p.js +0 -75
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles-x5ildRoz.js +0 -8
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index-D_6HLOs2.js +0 -49
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/constants-BruLA0T6.js +0 -13
- package/components/maps/index-l0sNRNKZ.js +0 -1
- package/components/maps/utils/courseToCartesianAngle-CdVv7Z_I.js +0 -8
- package/components/maps/utils/courseToCssAngle-BQWVBLrN.js +0 -13
- package/components/maps/utils/index-l0sNRNKZ.js +0 -1
- package/components/maps/utils/isFeature-DENoHJHj.js +0 -6
- package/components/maps/utils/isFeatureCollection-BRSkhg0R.js +0 -6
- package/components/maps/utils/isFeatureCollectionDraft-E5VSDHvV.js +0 -6
- package/components/maps/utils/isGeometry-DTmE_WXC.js +0 -6
- package/components/modal/ModalDialog/dictionary-78n49n4k.js +0 -11
- package/components/modal/ModalDialog/index-ssFDVmYv.js +0 -60
- package/components/modal/WindowBase/index-DzrmeP5F.js +0 -20
- package/components/modal/WindowBase/subcomponents/Header/index-D_R1T5L1.js +0 -29
- package/components/modal/WindowConfirm/dictionary-C3q_uVRu.js +0 -6
- package/components/modal/WindowConfirm/index-DVVS1d13.js +0 -43
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index-BC7_QiER.js +0 -35
- package/components/modal/classes/constants-ooYcOm9V.js +0 -4
- package/components/modal/classes/index-D0YtxRAA.js +0 -61
- package/components/modal/dictionary-BbB421K3.js +0 -6
- package/components/modal/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Accordion/Accordion-Cjzf7pl5.js +0 -98
- package/components/mui_extended/Accordion/classes/constants-BbNUZ90I.js +0 -4
- package/components/mui_extended/Accordion/classes/index-DHKU3hBj.js +0 -31
- package/components/mui_extended/Accordion/constants-B65mBw1m.js +0 -4
- package/components/mui_extended/Accordion/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Accordion/styles-DM7IoVDU.js +0 -25
- package/components/mui_extended/Avatar/Avatar-D1P1ad6r.js +0 -29
- package/components/mui_extended/Avatar/classes/constants-BpnJiik1.js +0 -4
- package/components/mui_extended/Avatar/classes/index-BrvGF8oc.js +0 -25
- package/components/mui_extended/Avatar/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Avatar/styles-KjEAAqUI.js +0 -7
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index-Ch4vNKXO.js +0 -20
- package/components/mui_extended/Avatar/tests/constants-CghCle17.js +0 -4
- package/components/mui_extended/Avatar/tests/utils-6-9wz0A4.js +0 -7
- package/components/mui_extended/Badge/Badge-Biq_OWgS.js +0 -20
- package/components/mui_extended/Badge/classes/constants-DlnqcKYD.js +0 -4
- package/components/mui_extended/Badge/classes/index-CuU9aS6l.js +0 -11
- package/components/mui_extended/Badge/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Badge/styles-DsJNuQOg.js +0 -8
- package/components/mui_extended/Badge/tests/constants-C3VjWMuz.js +0 -4
- package/components/mui_extended/Badge/tests/utils-DbLo5baT.js +0 -7
- package/components/mui_extended/BoxIcon/index-BUTJ2tKw.js +0 -22
- package/components/mui_extended/Breadcrumbs/components/LinkItem/index-DDA0Kdga.js +0 -31
- package/components/mui_extended/Breadcrumbs/index-DeOXctna.js +0 -62
- package/components/mui_extended/Button/Button-BdusSjEV.js +0 -52
- package/components/mui_extended/Button/classes/constants-CRpfsm9H.js +0 -4
- package/components/mui_extended/Button/classes/index-Cckcp1Au.js +0 -49
- package/components/mui_extended/Button/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Button/styles-ByKSzMzT.js +0 -12
- package/components/mui_extended/Button/types-l0sNRNKZ.js +0 -1
- package/components/mui_extended/CheckBox/CheckBox-CSqbunYW.js +0 -45
- package/components/mui_extended/CheckBox/classes/constants-Bi13LVtk.js +0 -4
- package/components/mui_extended/CheckBox/classes/index-DMl7iW7p.js +0 -33
- package/components/mui_extended/CheckBox/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/CheckBox/styles-DR7AesqE.js +0 -7
- package/components/mui_extended/CheckBox/subcomponents/Skeleton/index-BDQI6wc3.js +0 -9
- package/components/mui_extended/CircularProgress/index-Bnnti_G6.js +0 -8
- package/components/mui_extended/IconButton/IconButton-Bf75xsn0.js +0 -96
- package/components/mui_extended/IconButton/classes/constants-ChY2jKkp.js +0 -4
- package/components/mui_extended/IconButton/classes/index-BxjJGAqZ.js +0 -45
- package/components/mui_extended/IconButton/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/IconButton/styledIconButton-fAsbGoFS.js +0 -7
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index-DhZR7g_D.js +0 -16
- package/components/mui_extended/ImageButton/ImageButton-BhT8454W.js +0 -33
- package/components/mui_extended/ImageButton/styles-Cfy6gS1h.js +0 -7
- package/components/mui_extended/ImageButton/tests/constants-DuWNiVqE.js +0 -4
- package/components/mui_extended/ImageButton/tests/utils-qHKbsv7D.js +0 -7
- package/components/mui_extended/ImageButton/utils/Clases/constants-mNTU_W7V.js +0 -4
- package/components/mui_extended/ImageButton/utils/Clases/index-DyJX4pUM.js +0 -23
- package/components/mui_extended/LinearProgress/index-CGgW8jq2.js +0 -9
- package/components/mui_extended/LinkWithRoute/index-BC2miUjR.js +0 -15
- package/components/mui_extended/LoadingButton/classes/constants-DoqO1UIR.js +0 -4
- package/components/mui_extended/LoadingButton/classes/index-CSSvvOFZ.js +0 -42
- package/components/mui_extended/LoadingButton/index-DBliEGUb.js +0 -47
- package/components/mui_extended/LoadingButton/styles-CD49KkUX.js +0 -8
- package/components/mui_extended/LoadingButton/tests/constants-gEsUcotE.js +0 -4
- package/components/mui_extended/LoadingButton/tests/utils-Cjb5KZsM.js +0 -7
- package/components/mui_extended/MenuActions/MenuActions-BGQRB0go.js +0 -149
- package/components/mui_extended/MenuActions/constants-BwsU9chA.js +0 -10
- package/components/mui_extended/MenuActions/dictionary--o-AFRVy.js +0 -15
- package/components/mui_extended/MenuActions/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum-Bu-L6eWU.js +0 -13
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots-Bfp5olet.js +0 -46
- package/components/mui_extended/MenuActions/slots/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Pager/classes/constants-eX3Vlvw2.js +0 -4
- package/components/mui_extended/Pager/classes/index-mA6A7WH8.js +0 -55
- package/components/mui_extended/Pager/dicctionary-3aKDfjGi.js +0 -6
- package/components/mui_extended/Pager/index-uFAsf0va.js +0 -49
- package/components/mui_extended/Pager/styles-Biu_TsjO.js +0 -7
- package/components/mui_extended/Pager/subcomponents/CustomTablePagination/index-WL2e9lVO.js +0 -97
- package/components/mui_extended/Pager/subcomponents/PagerActions/index-bGCq3CMS.js +0 -68
- package/components/mui_extended/Popover/Popover-B9KxhzxZ.js +0 -49
- package/components/mui_extended/Popover/classes/index-tducv5Pv.js +0 -51
- package/components/mui_extended/Popover/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Popover/styles-C9Nthch6.js +0 -8
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index-ByQJACx6.js +0 -61
- package/components/mui_extended/Stack/Stack-C79qEBpg.js +0 -12
- package/components/mui_extended/Stack/classes/constants-B1W5MMsv.js +0 -4
- package/components/mui_extended/Stack/classes/index-QUxnFiFE.js +0 -23
- package/components/mui_extended/Stack/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Stack/styles-D2BmWohB.js +0 -7
- package/components/mui_extended/Tab/classes/constants-BpZsYFH1.js +0 -4
- package/components/mui_extended/Tab/classes/index-FZs3FfU3.js +0 -25
- package/components/mui_extended/Tab/constant-CNNQnnU7.js +0 -4
- package/components/mui_extended/Tab/index-BwGxBuKl.js +0 -40
- package/components/mui_extended/Tab/styles-Cdbd2r-5.js +0 -11
- package/components/mui_extended/TabContent/TabContent-C3MBMFLj.js +0 -12
- package/components/mui_extended/TabContent/classes/constants-Dqgn21fC.js +0 -4
- package/components/mui_extended/TabContent/classes/index-CSWrmuDb.js +0 -23
- package/components/mui_extended/TabContent/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/TabContent/styles-CC5P___c.js +0 -7
- package/components/mui_extended/TabContext/index-fsl0KiAB.js +0 -24
- package/components/mui_extended/Tabs/Tabs-D5gZ-JCI.js +0 -12
- package/components/mui_extended/Tabs/classes/constants-osELi6DL.js +0 -4
- package/components/mui_extended/Tabs/classes/index-DKw-pkgO.js +0 -23
- package/components/mui_extended/Tabs/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Tabs/styles-DcjVHXXO.js +0 -7
- package/components/mui_extended/ToggleButton/ToggleButton-Bcdm1gSN.js +0 -19
- package/components/mui_extended/ToggleButton/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/ToggleButton/types-l0sNRNKZ.js +0 -1
- package/components/mui_extended/ToggleIconButton/ToggleIconButton-CD79i-ks.js +0 -26
- package/components/mui_extended/ToggleIconButton/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/ToggleIconButton/types-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Tooltip/Tooltip-B8locLi_.js +0 -25
- package/components/mui_extended/Tooltip/constants-MN3rXibc.js +0 -4
- package/components/mui_extended/Tooltip/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Tooltip/slots/TooltipEnum-LgUF42Uy.js +0 -9
- package/components/mui_extended/Tooltip/slots/TooltipSlots-BuJ7dcsg.js +0 -22
- package/components/mui_extended/Tooltip/slots/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Typography/Typography-CiRwBv1u.js +0 -31
- package/components/mui_extended/Typography/index-l0sNRNKZ.js +0 -1
- package/components/mui_extended/Typography/styles-CJWtZKnm.js +0 -7
- package/components/mui_extended/Typography/subcomponents/index-DfI738vA.js +0 -9
- package/components/mui_extended/Typography/tests/constants-a-7au6t-.js +0 -4
- package/components/mui_extended/Typography/tests/utils-gCB7BF8a.js +0 -7
- package/components/mui_extended/Typography/utils/Clases/index-BCQz-htY.js +0 -22
- package/components/mui_extended/index-l0sNRNKZ.js +0 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext-CahdzSly.js +0 -38
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/index-l0sNRNKZ.js +0 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store-BZQUUcQl.js +0 -133
- package/components/popups/components/PopupsProvider/hooks/usePopupsStore/index-DBMhBXk-.js +0 -11
- package/components/popups/components/PopupsProvider/index-l0sNRNKZ.js +0 -1
- package/components/popups/components/PopupsViewer/PopupsViewer-ChNJ4euY.js +0 -53
- package/components/popups/components/PopupsViewer/constants-DuyD7aCn.js +0 -4
- package/components/popups/components/PopupsViewer/icons-BUujqqbu.js +0 -7
- package/components/popups/components/PopupsViewer/index-l0sNRNKZ.js +0 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots-BDDUOz1t.js +0 -46
- package/components/popups/components/PopupsViewer/slots/slots-B98CiRLa.js +0 -14
- package/components/popups/components/PopupsViewer/subcomponents/Popup/index-BhEEo19P.js +0 -68
- package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/EditionInfo/index-DTeOxMYe.js +0 -22
- package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/Header/index-BSmSdLcn.js +0 -53
- package/components/popups/index-l0sNRNKZ.js +0 -1
- package/contexts/AppearanceComponentContext/AppearanceComponentContext-Dh1xxcRq.js +0 -19
- package/contexts/AppearanceComponentContext/AppearanceComponentStore-sJMNJ0WN.js +0 -24
- package/contexts/AppearanceComponentContext/index-l0sNRNKZ.js +0 -1
- package/contexts/AppearanceComponentContext/useAppearanceComponentStore-Cn0YUt4u.js +0 -15
- package/contexts/ModalContext/index-BZQsMljQ.js +0 -39
- package/contexts/ModalContext/types-l0sNRNKZ.js +0 -1
- package/contexts/RHFormContext/classes/constants-Bg61Kz1S.js +0 -4
- package/contexts/RHFormContext/classes/index-CXQ6_8rw.js +0 -29
- package/contexts/RHFormContext/dictionary-Dsuwh7PB.js +0 -6
- package/contexts/RHFormContext/index-DJtfB7-U.js +0 -63
- package/contexts/RHFormContext/styles-DAsa8vSY.js +0 -7
- package/contexts/index-l0sNRNKZ.js +0 -1
- package/helpers/cookies/cookies-B61qmA_e.js +0 -45
- package/helpers/cookies/index-l0sNRNKZ.js +0 -1
- package/hocs/index-l0sNRNKZ.js +0 -1
- package/hocs/withToggle/index-C1_DMZD3.js +0 -14
- package/hooks/index-l0sNRNKZ.js +0 -1
- package/hooks/useComponentSize/index-l0sNRNKZ.js +0 -1
- package/hooks/useComponentSize/useComponentSize-IEs8SldY.js +0 -9
- package/hooks/useFormAddEdit/dictionary-DFRDT91K.js +0 -6
- package/hooks/useFormAddEdit/index-wFKCIvw-.js +0 -86
- package/hooks/useFormFocus/index-B1F2sySJ.js +0 -21
- package/hooks/useFormReadyForUpdate/index-B3HygFCM.js +0 -20
- package/hooks/useInterval/index-U86sMsvn.js +0 -22
- package/hooks/useModal/index-DkNYHw5Z.js +0 -10
- package/hooks/useSizeContainer/contants-Cuu-FBTT.js +0 -4
- package/hooks/useSizeContainer/index-BrtvS2vO.js +0 -37
- package/hooks/useStateRef/index-C3P6ZK3m.js +0 -15
- package/hooks/useSvgColor/constants-BNjJpkJu.js +0 -36
- package/hooks/useSvgColor/helpers-BiLdnJW7.js +0 -31
- package/hooks/useSvgColor/index-l0sNRNKZ.js +0 -1
- package/hooks/useSvgColor/types-l0sNRNKZ.js +0 -1
- package/hooks/useSvgColor/useSvgColor-fM-5zMjL.js +0 -60
- package/hooks/useTab/index-CRVh_6kE.js +0 -12
- package/react-draggable-lPKOvvDX.js +0 -1231
- package/react-resizable-Dpx4PV2R.js +0 -677
- package/react-spinners-TpKN9lZg.js +0 -123
- package/react-splitter-layout-C-JTsNGs.js +0 -158
- package/styles/DragResizeWindow.styles-DN3i-6id.js +0 -34
- package/styles/DragResizeWindow.styles.d.ts +0 -2
- package/styles/DynamicFilter.styles-D8LjTKKv.js +0 -319
- package/styles/DynamicFilter.styles.d.ts +0 -2
- package/styles/DynamicSort.styles.d.ts +0 -2
- package/styles/Icon.styles-45ANn544.js +0 -69
- package/styles/Icon.styles.d.ts +0 -2
- package/styles/MenuActions.styles-D_CcLWux.js +0 -41
- package/styles/MenuActions.styles.d.ts +0 -2
- package/styles/PopupViewer.styles-BO9qka2A.js +0 -101
- package/styles/PopupViewer.styles.d.ts +0 -2
- package/styles/ToastContainer.styles-DyoHGY_x.js +0 -194
- package/styles/ToastContainer.styles.d.ts +0 -2
- package/styles/Tooltip.styles-tydNwMWc.js +0 -62
- package/styles/Tooltip.styles.d.ts +0 -2
- package/styles/extended/react-resizable/ResizeableBox.styles-BT3I6DaX.js +0 -10
- package/styles/extended/react-resizable/ResizeableBox.styles.d.ts +0 -2
- package/styles/extended/react-resizable/helpers-D4JJ8PUs.js +0 -91
- package/styles/formatters/CourseFormatter.styles-D0ViC0ya.js +0 -6
- package/styles/formatters/CourseFormatter.styles.d.ts +0 -2
- package/styles/formatters/DistanceToNowFormatter.styles-B4Ehe97k.js +0 -6
- package/styles/formatters/DistanceToNowFormatter.styles.d.ts +0 -2
- package/styles/gclick/MyDevice.styles-COjAaE-s.js +0 -16
- package/styles/gclick/MyDevice.styles.d.ts +0 -2
- package/styles/gclick/MyDeviceStatus.styles-DQ3tYv6x.js +0 -16
- package/styles/gclick/MyDeviceStatus.styles.d.ts +0 -2
- package/styles/maps/Map.styles-BVUukvaK.js +0 -221
- package/styles/maps/Map.styles.d.ts +0 -2
- package/styles/maps/popups/MapPopupMyGps.styles-DQxkWE6h.js +0 -25
- package/styles/maps/popups/MapPopupMyGps.styles.d.ts +0 -2
- package/test/constants_no_mock-CF-669v-.js +0 -4
- package/test/getNameDataTestId-BaBTWhBr.js +0 -10
- package/utils/capitalizeFirstLetter-l0sNRNKZ.js +0 -1
- package/utils/containerQuery--I7HldoT.js +0 -6
- package/utils/formatDistanceToNow/formatDistanteToNow-DQkWpUUH.js +0 -82
- package/utils/formatDistanceToNow/index-l0sNRNKZ.js +0 -1
- package/utils/index-WXiWKKyo.js +0 -11
- /package/{styles → components}/extended/react-resizable/helpers.d.ts +0 -0
|
@@ -1,5 +1,2019 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React$3 from "react";
|
|
2
2
|
import React__default from "react";
|
|
3
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./commonjs-BfYxJMv3.js";
|
|
4
|
+
import require$$1 from "prop-types";
|
|
5
|
+
import require$$2 from "react-dom";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
var cssUnit = {
|
|
8
|
+
cm: true,
|
|
9
|
+
mm: true,
|
|
10
|
+
in: true,
|
|
11
|
+
px: true,
|
|
12
|
+
pt: true,
|
|
13
|
+
pc: true,
|
|
14
|
+
em: true,
|
|
15
|
+
ex: true,
|
|
16
|
+
ch: true,
|
|
17
|
+
rem: true,
|
|
18
|
+
vw: true,
|
|
19
|
+
vh: true,
|
|
20
|
+
vmin: true,
|
|
21
|
+
vmax: true,
|
|
22
|
+
"%": true
|
|
23
|
+
};
|
|
24
|
+
function parseLengthAndUnit(size) {
|
|
25
|
+
if (typeof size === "number") {
|
|
26
|
+
return {
|
|
27
|
+
value: size,
|
|
28
|
+
unit: "px"
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
var value;
|
|
32
|
+
var valueString = (size.match(/^[0-9.]*/) || "").toString();
|
|
33
|
+
if (valueString.includes(".")) {
|
|
34
|
+
value = parseFloat(valueString);
|
|
35
|
+
} else {
|
|
36
|
+
value = parseInt(valueString, 10);
|
|
37
|
+
}
|
|
38
|
+
var unit = (size.match(/[^0-9]*$/) || "").toString();
|
|
39
|
+
if (cssUnit[unit]) {
|
|
40
|
+
return {
|
|
41
|
+
value,
|
|
42
|
+
unit
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
console.warn("React Spinners: ".concat(size, " is not a valid css value. Defaulting to ").concat(value, "px."));
|
|
46
|
+
return {
|
|
47
|
+
value,
|
|
48
|
+
unit: "px"
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
var createAnimation = function(loaderName, frames, suffix) {
|
|
52
|
+
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
|
|
53
|
+
if (typeof window == "undefined" || !window.document) {
|
|
54
|
+
return animationName;
|
|
55
|
+
}
|
|
56
|
+
var styleEl = document.createElement("style");
|
|
57
|
+
document.head.appendChild(styleEl);
|
|
58
|
+
var styleSheet = styleEl.sheet;
|
|
59
|
+
var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");
|
|
60
|
+
if (styleSheet) {
|
|
61
|
+
styleSheet.insertRule(keyFrames, 0);
|
|
62
|
+
}
|
|
63
|
+
return animationName;
|
|
64
|
+
};
|
|
65
|
+
var __assign = function() {
|
|
66
|
+
__assign = Object.assign || function(t) {
|
|
67
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
68
|
+
s = arguments[i];
|
|
69
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
70
|
+
t[p] = s[p];
|
|
71
|
+
}
|
|
72
|
+
return t;
|
|
73
|
+
};
|
|
74
|
+
return __assign.apply(this, arguments);
|
|
75
|
+
};
|
|
76
|
+
var __rest = function(s, e) {
|
|
77
|
+
var t = {};
|
|
78
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
79
|
+
t[p] = s[p];
|
|
80
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
81
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
82
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
83
|
+
t[p[i]] = s[p[i]];
|
|
84
|
+
}
|
|
85
|
+
return t;
|
|
86
|
+
};
|
|
87
|
+
var distance = [1, 3, 5];
|
|
88
|
+
var propagate = [
|
|
89
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(-".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(-").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(-").concat(distance[2], "rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-0"),
|
|
90
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(-".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(-").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(-").concat(distance[1], "rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-1"),
|
|
91
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(-".concat(distance[0], "rem) scale(0.75)}\n 75% {transform: translateX(-").concat(distance[0], "rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-2"),
|
|
92
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 75% {transform: translateX(").concat(distance[0], "rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-3"),
|
|
93
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-4"),
|
|
94
|
+
createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(").concat(distance[2], "rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-5")
|
|
95
|
+
];
|
|
96
|
+
function PropagateLoader(_a) {
|
|
97
|
+
var _b = _a.loading, loading = _b === void 0 ? true : _b, _c = _a.color, color = _c === void 0 ? "#000000" : _c, _d = _a.speedMultiplier, speedMultiplier = _d === void 0 ? 1 : _d, _e = _a.cssOverride, cssOverride = _e === void 0 ? {} : _e, _f = _a.size, size = _f === void 0 ? 15 : _f, additionalprops = __rest(_a, ["loading", "color", "speedMultiplier", "cssOverride", "size"]);
|
|
98
|
+
var _g = parseLengthAndUnit(size), value = _g.value, unit = _g.unit;
|
|
99
|
+
var wrapper = __assign({ display: "inherit", position: "relative" }, cssOverride);
|
|
100
|
+
var style = function(i) {
|
|
101
|
+
return {
|
|
102
|
+
position: "absolute",
|
|
103
|
+
fontSize: "".concat(value / 3).concat(unit),
|
|
104
|
+
width: "".concat(value).concat(unit),
|
|
105
|
+
height: "".concat(value).concat(unit),
|
|
106
|
+
background: color,
|
|
107
|
+
borderRadius: "50%",
|
|
108
|
+
animation: "".concat(propagate[i], " ").concat(1.5 / speedMultiplier, "s infinite"),
|
|
109
|
+
animationFillMode: "forwards"
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
if (!loading) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
return React$3.createElement(
|
|
116
|
+
"span",
|
|
117
|
+
__assign({ style: wrapper }, additionalprops),
|
|
118
|
+
React$3.createElement("span", { style: style(0) }),
|
|
119
|
+
React$3.createElement("span", { style: style(1) }),
|
|
120
|
+
React$3.createElement("span", { style: style(2) }),
|
|
121
|
+
React$3.createElement("span", { style: style(3) }),
|
|
122
|
+
React$3.createElement("span", { style: style(4) }),
|
|
123
|
+
React$3.createElement("span", { style: style(5) })
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
var cjs = { exports: {} };
|
|
127
|
+
var Draggable$2 = {};
|
|
128
|
+
var domFns = {};
|
|
129
|
+
var shims = {};
|
|
130
|
+
Object.defineProperty(shims, "__esModule", {
|
|
131
|
+
value: true
|
|
132
|
+
});
|
|
133
|
+
shims.dontSetMe = dontSetMe;
|
|
134
|
+
shims.findInArray = findInArray;
|
|
135
|
+
shims.int = int;
|
|
136
|
+
shims.isFunction = isFunction;
|
|
137
|
+
shims.isNum = isNum;
|
|
138
|
+
function findInArray(array, callback) {
|
|
139
|
+
for (let i = 0, length = array.length; i < length; i++) {
|
|
140
|
+
if (callback.apply(callback, [array[i], i, array])) return array[i];
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function isFunction(func) {
|
|
144
|
+
return typeof func === "function" || Object.prototype.toString.call(func) === "[object Function]";
|
|
145
|
+
}
|
|
146
|
+
function isNum(num) {
|
|
147
|
+
return typeof num === "number" && !isNaN(num);
|
|
148
|
+
}
|
|
149
|
+
function int(a) {
|
|
150
|
+
return parseInt(a, 10);
|
|
151
|
+
}
|
|
152
|
+
function dontSetMe(props, propName, componentName) {
|
|
153
|
+
if (props[propName]) {
|
|
154
|
+
return new Error("Invalid prop ".concat(propName, " passed to ").concat(componentName, " - do not set this, set it on the child."));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
var getPrefix$1 = {};
|
|
158
|
+
Object.defineProperty(getPrefix$1, "__esModule", {
|
|
159
|
+
value: true
|
|
160
|
+
});
|
|
161
|
+
getPrefix$1.browserPrefixToKey = browserPrefixToKey;
|
|
162
|
+
getPrefix$1.browserPrefixToStyle = browserPrefixToStyle;
|
|
163
|
+
getPrefix$1.default = void 0;
|
|
164
|
+
getPrefix$1.getPrefix = getPrefix;
|
|
165
|
+
const prefixes = ["Moz", "Webkit", "O", "ms"];
|
|
166
|
+
function getPrefix() {
|
|
167
|
+
var _window$document;
|
|
168
|
+
let prop = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
169
|
+
if (typeof window === "undefined") return "";
|
|
170
|
+
const style = (_window$document = window.document) === null || _window$document === void 0 || (_window$document = _window$document.documentElement) === null || _window$document === void 0 ? void 0 : _window$document.style;
|
|
171
|
+
if (!style) return "";
|
|
172
|
+
if (prop in style) return "";
|
|
173
|
+
for (let i = 0; i < prefixes.length; i++) {
|
|
174
|
+
if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];
|
|
175
|
+
}
|
|
176
|
+
return "";
|
|
177
|
+
}
|
|
178
|
+
function browserPrefixToKey(prop, prefix) {
|
|
179
|
+
return prefix ? "".concat(prefix).concat(kebabToTitleCase(prop)) : prop;
|
|
180
|
+
}
|
|
181
|
+
function browserPrefixToStyle(prop, prefix) {
|
|
182
|
+
return prefix ? "-".concat(prefix.toLowerCase(), "-").concat(prop) : prop;
|
|
183
|
+
}
|
|
184
|
+
function kebabToTitleCase(str) {
|
|
185
|
+
let out = "";
|
|
186
|
+
let shouldCapitalize = true;
|
|
187
|
+
for (let i = 0; i < str.length; i++) {
|
|
188
|
+
if (shouldCapitalize) {
|
|
189
|
+
out += str[i].toUpperCase();
|
|
190
|
+
shouldCapitalize = false;
|
|
191
|
+
} else if (str[i] === "-") {
|
|
192
|
+
shouldCapitalize = true;
|
|
193
|
+
} else {
|
|
194
|
+
out += str[i];
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return out;
|
|
198
|
+
}
|
|
199
|
+
getPrefix$1.default = getPrefix();
|
|
200
|
+
Object.defineProperty(domFns, "__esModule", {
|
|
201
|
+
value: true
|
|
202
|
+
});
|
|
203
|
+
domFns.addClassName = addClassName;
|
|
204
|
+
domFns.addEvent = addEvent;
|
|
205
|
+
domFns.addUserSelectStyles = addUserSelectStyles;
|
|
206
|
+
domFns.createCSSTransform = createCSSTransform;
|
|
207
|
+
domFns.createSVGTransform = createSVGTransform;
|
|
208
|
+
domFns.getTouch = getTouch;
|
|
209
|
+
domFns.getTouchIdentifier = getTouchIdentifier;
|
|
210
|
+
domFns.getTranslation = getTranslation;
|
|
211
|
+
domFns.innerHeight = innerHeight;
|
|
212
|
+
domFns.innerWidth = innerWidth;
|
|
213
|
+
domFns.matchesSelector = matchesSelector;
|
|
214
|
+
domFns.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;
|
|
215
|
+
domFns.offsetXYFromParent = offsetXYFromParent;
|
|
216
|
+
domFns.outerHeight = outerHeight;
|
|
217
|
+
domFns.outerWidth = outerWidth;
|
|
218
|
+
domFns.removeClassName = removeClassName;
|
|
219
|
+
domFns.removeEvent = removeEvent;
|
|
220
|
+
domFns.removeUserSelectStyles = removeUserSelectStyles;
|
|
221
|
+
var _shims$2 = shims;
|
|
222
|
+
var _getPrefix = _interopRequireWildcard$3(getPrefix$1);
|
|
223
|
+
function _getRequireWildcardCache$3(nodeInterop) {
|
|
224
|
+
if (typeof WeakMap !== "function") return null;
|
|
225
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
226
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
227
|
+
return (_getRequireWildcardCache$3 = function(nodeInterop2) {
|
|
228
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
229
|
+
})(nodeInterop);
|
|
230
|
+
}
|
|
231
|
+
function _interopRequireWildcard$3(obj, nodeInterop) {
|
|
232
|
+
if (obj && obj.__esModule) {
|
|
233
|
+
return obj;
|
|
234
|
+
}
|
|
235
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
236
|
+
return { default: obj };
|
|
237
|
+
}
|
|
238
|
+
var cache = _getRequireWildcardCache$3(nodeInterop);
|
|
239
|
+
if (cache && cache.has(obj)) {
|
|
240
|
+
return cache.get(obj);
|
|
241
|
+
}
|
|
242
|
+
var newObj = {};
|
|
243
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
244
|
+
for (var key in obj) {
|
|
245
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
246
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
247
|
+
if (desc && (desc.get || desc.set)) {
|
|
248
|
+
Object.defineProperty(newObj, key, desc);
|
|
249
|
+
} else {
|
|
250
|
+
newObj[key] = obj[key];
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
newObj.default = obj;
|
|
255
|
+
if (cache) {
|
|
256
|
+
cache.set(obj, newObj);
|
|
257
|
+
}
|
|
258
|
+
return newObj;
|
|
259
|
+
}
|
|
260
|
+
let matchesSelectorFunc = "";
|
|
261
|
+
function matchesSelector(el, selector) {
|
|
262
|
+
if (!matchesSelectorFunc) {
|
|
263
|
+
matchesSelectorFunc = (0, _shims$2.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(method) {
|
|
264
|
+
return (0, _shims$2.isFunction)(el[method]);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
if (!(0, _shims$2.isFunction)(el[matchesSelectorFunc])) return false;
|
|
268
|
+
return el[matchesSelectorFunc](selector);
|
|
269
|
+
}
|
|
270
|
+
function matchesSelectorAndParentsTo(el, selector, baseNode) {
|
|
271
|
+
let node = el;
|
|
272
|
+
do {
|
|
273
|
+
if (matchesSelector(node, selector)) return true;
|
|
274
|
+
if (node === baseNode) return false;
|
|
275
|
+
node = node.parentNode;
|
|
276
|
+
} while (node);
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
function addEvent(el, event, handler, inputOptions) {
|
|
280
|
+
if (!el) return;
|
|
281
|
+
const options = {
|
|
282
|
+
capture: true,
|
|
283
|
+
...inputOptions
|
|
284
|
+
};
|
|
285
|
+
if (el.addEventListener) {
|
|
286
|
+
el.addEventListener(event, handler, options);
|
|
287
|
+
} else if (el.attachEvent) {
|
|
288
|
+
el.attachEvent("on" + event, handler);
|
|
289
|
+
} else {
|
|
290
|
+
el["on" + event] = handler;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
function removeEvent(el, event, handler, inputOptions) {
|
|
294
|
+
if (!el) return;
|
|
295
|
+
const options = {
|
|
296
|
+
capture: true,
|
|
297
|
+
...inputOptions
|
|
298
|
+
};
|
|
299
|
+
if (el.removeEventListener) {
|
|
300
|
+
el.removeEventListener(event, handler, options);
|
|
301
|
+
} else if (el.detachEvent) {
|
|
302
|
+
el.detachEvent("on" + event, handler);
|
|
303
|
+
} else {
|
|
304
|
+
el["on" + event] = null;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
function outerHeight(node) {
|
|
308
|
+
let height2 = node.clientHeight;
|
|
309
|
+
const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
310
|
+
height2 += (0, _shims$2.int)(computedStyle.borderTopWidth);
|
|
311
|
+
height2 += (0, _shims$2.int)(computedStyle.borderBottomWidth);
|
|
312
|
+
return height2;
|
|
313
|
+
}
|
|
314
|
+
function outerWidth(node) {
|
|
315
|
+
let width2 = node.clientWidth;
|
|
316
|
+
const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
317
|
+
width2 += (0, _shims$2.int)(computedStyle.borderLeftWidth);
|
|
318
|
+
width2 += (0, _shims$2.int)(computedStyle.borderRightWidth);
|
|
319
|
+
return width2;
|
|
320
|
+
}
|
|
321
|
+
function innerHeight(node) {
|
|
322
|
+
let height2 = node.clientHeight;
|
|
323
|
+
const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
324
|
+
height2 -= (0, _shims$2.int)(computedStyle.paddingTop);
|
|
325
|
+
height2 -= (0, _shims$2.int)(computedStyle.paddingBottom);
|
|
326
|
+
return height2;
|
|
327
|
+
}
|
|
328
|
+
function innerWidth(node) {
|
|
329
|
+
let width2 = node.clientWidth;
|
|
330
|
+
const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
|
|
331
|
+
width2 -= (0, _shims$2.int)(computedStyle.paddingLeft);
|
|
332
|
+
width2 -= (0, _shims$2.int)(computedStyle.paddingRight);
|
|
333
|
+
return width2;
|
|
334
|
+
}
|
|
335
|
+
function offsetXYFromParent(evt, offsetParent, scale) {
|
|
336
|
+
const isBody = offsetParent === offsetParent.ownerDocument.body;
|
|
337
|
+
const offsetParentRect = isBody ? {
|
|
338
|
+
left: 0,
|
|
339
|
+
top: 0
|
|
340
|
+
} : offsetParent.getBoundingClientRect();
|
|
341
|
+
const x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;
|
|
342
|
+
const y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;
|
|
343
|
+
return {
|
|
344
|
+
x,
|
|
345
|
+
y
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
function createCSSTransform(controlPos, positionOffset) {
|
|
349
|
+
const translation = getTranslation(controlPos, positionOffset, "px");
|
|
350
|
+
return {
|
|
351
|
+
[(0, _getPrefix.browserPrefixToKey)("transform", _getPrefix.default)]: translation
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function createSVGTransform(controlPos, positionOffset) {
|
|
355
|
+
const translation = getTranslation(controlPos, positionOffset, "");
|
|
356
|
+
return translation;
|
|
357
|
+
}
|
|
358
|
+
function getTranslation(_ref, positionOffset, unitSuffix) {
|
|
359
|
+
let {
|
|
360
|
+
x,
|
|
361
|
+
y
|
|
362
|
+
} = _ref;
|
|
363
|
+
let translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")");
|
|
364
|
+
if (positionOffset) {
|
|
365
|
+
const defaultX = "".concat(typeof positionOffset.x === "string" ? positionOffset.x : positionOffset.x + unitSuffix);
|
|
366
|
+
const defaultY = "".concat(typeof positionOffset.y === "string" ? positionOffset.y : positionOffset.y + unitSuffix);
|
|
367
|
+
translation = "translate(".concat(defaultX, ", ").concat(defaultY, ")") + translation;
|
|
368
|
+
}
|
|
369
|
+
return translation;
|
|
370
|
+
}
|
|
371
|
+
function getTouch(e, identifier) {
|
|
372
|
+
return e.targetTouches && (0, _shims$2.findInArray)(e.targetTouches, (t) => identifier === t.identifier) || e.changedTouches && (0, _shims$2.findInArray)(e.changedTouches, (t) => identifier === t.identifier);
|
|
373
|
+
}
|
|
374
|
+
function getTouchIdentifier(e) {
|
|
375
|
+
if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
|
|
376
|
+
if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
|
|
377
|
+
}
|
|
378
|
+
function addUserSelectStyles(doc) {
|
|
379
|
+
if (!doc) return;
|
|
380
|
+
let styleEl = doc.getElementById("react-draggable-style-el");
|
|
381
|
+
if (!styleEl) {
|
|
382
|
+
styleEl = doc.createElement("style");
|
|
383
|
+
styleEl.type = "text/css";
|
|
384
|
+
styleEl.id = "react-draggable-style-el";
|
|
385
|
+
styleEl.innerHTML = ".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n";
|
|
386
|
+
styleEl.innerHTML += ".react-draggable-transparent-selection *::selection {all: inherit;}\n";
|
|
387
|
+
doc.getElementsByTagName("head")[0].appendChild(styleEl);
|
|
388
|
+
}
|
|
389
|
+
if (doc.body) addClassName(doc.body, "react-draggable-transparent-selection");
|
|
390
|
+
}
|
|
391
|
+
function removeUserSelectStyles(doc) {
|
|
392
|
+
if (!doc) return;
|
|
393
|
+
try {
|
|
394
|
+
if (doc.body) removeClassName(doc.body, "react-draggable-transparent-selection");
|
|
395
|
+
if (doc.selection) {
|
|
396
|
+
doc.selection.empty();
|
|
397
|
+
} else {
|
|
398
|
+
const selection = (doc.defaultView || window).getSelection();
|
|
399
|
+
if (selection && selection.type !== "Caret") {
|
|
400
|
+
selection.removeAllRanges();
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
} catch (e) {
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function addClassName(el, className) {
|
|
407
|
+
if (el.classList) {
|
|
408
|
+
el.classList.add(className);
|
|
409
|
+
} else {
|
|
410
|
+
if (!el.className.match(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)")))) {
|
|
411
|
+
el.className += " ".concat(className);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
function removeClassName(el, className) {
|
|
416
|
+
if (el.classList) {
|
|
417
|
+
el.classList.remove(className);
|
|
418
|
+
} else {
|
|
419
|
+
el.className = el.className.replace(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)"), "g"), "");
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var positionFns = {};
|
|
423
|
+
Object.defineProperty(positionFns, "__esModule", {
|
|
424
|
+
value: true
|
|
425
|
+
});
|
|
426
|
+
positionFns.canDragX = canDragX;
|
|
427
|
+
positionFns.canDragY = canDragY;
|
|
428
|
+
positionFns.createCoreData = createCoreData;
|
|
429
|
+
positionFns.createDraggableData = createDraggableData;
|
|
430
|
+
positionFns.getBoundPosition = getBoundPosition;
|
|
431
|
+
positionFns.getControlPosition = getControlPosition;
|
|
432
|
+
positionFns.snapToGrid = snapToGrid;
|
|
433
|
+
var _shims$1 = shims;
|
|
434
|
+
var _domFns$1 = domFns;
|
|
435
|
+
function getBoundPosition(draggable, x, y) {
|
|
436
|
+
if (!draggable.props.bounds) return [x, y];
|
|
437
|
+
let {
|
|
438
|
+
bounds
|
|
439
|
+
} = draggable.props;
|
|
440
|
+
bounds = typeof bounds === "string" ? bounds : cloneBounds(bounds);
|
|
441
|
+
const node = findDOMNode(draggable);
|
|
442
|
+
if (typeof bounds === "string") {
|
|
443
|
+
const {
|
|
444
|
+
ownerDocument
|
|
445
|
+
} = node;
|
|
446
|
+
const ownerWindow = ownerDocument.defaultView;
|
|
447
|
+
let boundNode;
|
|
448
|
+
if (bounds === "parent") {
|
|
449
|
+
boundNode = node.parentNode;
|
|
450
|
+
} else {
|
|
451
|
+
boundNode = ownerDocument.querySelector(bounds);
|
|
452
|
+
}
|
|
453
|
+
if (!(boundNode instanceof ownerWindow.HTMLElement)) {
|
|
454
|
+
throw new Error('Bounds selector "' + bounds + '" could not find an element.');
|
|
455
|
+
}
|
|
456
|
+
const boundNodeEl = boundNode;
|
|
457
|
+
const nodeStyle = ownerWindow.getComputedStyle(node);
|
|
458
|
+
const boundNodeStyle = ownerWindow.getComputedStyle(boundNodeEl);
|
|
459
|
+
bounds = {
|
|
460
|
+
left: -node.offsetLeft + (0, _shims$1.int)(boundNodeStyle.paddingLeft) + (0, _shims$1.int)(nodeStyle.marginLeft),
|
|
461
|
+
top: -node.offsetTop + (0, _shims$1.int)(boundNodeStyle.paddingTop) + (0, _shims$1.int)(nodeStyle.marginTop),
|
|
462
|
+
right: (0, _domFns$1.innerWidth)(boundNodeEl) - (0, _domFns$1.outerWidth)(node) - node.offsetLeft + (0, _shims$1.int)(boundNodeStyle.paddingRight) - (0, _shims$1.int)(nodeStyle.marginRight),
|
|
463
|
+
bottom: (0, _domFns$1.innerHeight)(boundNodeEl) - (0, _domFns$1.outerHeight)(node) - node.offsetTop + (0, _shims$1.int)(boundNodeStyle.paddingBottom) - (0, _shims$1.int)(nodeStyle.marginBottom)
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
if ((0, _shims$1.isNum)(bounds.right)) x = Math.min(x, bounds.right);
|
|
467
|
+
if ((0, _shims$1.isNum)(bounds.bottom)) y = Math.min(y, bounds.bottom);
|
|
468
|
+
if ((0, _shims$1.isNum)(bounds.left)) x = Math.max(x, bounds.left);
|
|
469
|
+
if ((0, _shims$1.isNum)(bounds.top)) y = Math.max(y, bounds.top);
|
|
470
|
+
return [x, y];
|
|
471
|
+
}
|
|
472
|
+
function snapToGrid(grid, pendingX, pendingY) {
|
|
473
|
+
const x = Math.round(pendingX / grid[0]) * grid[0];
|
|
474
|
+
const y = Math.round(pendingY / grid[1]) * grid[1];
|
|
475
|
+
return [x, y];
|
|
476
|
+
}
|
|
477
|
+
function canDragX(draggable) {
|
|
478
|
+
return draggable.props.axis === "both" || draggable.props.axis === "x";
|
|
479
|
+
}
|
|
480
|
+
function canDragY(draggable) {
|
|
481
|
+
return draggable.props.axis === "both" || draggable.props.axis === "y";
|
|
482
|
+
}
|
|
483
|
+
function getControlPosition(e, touchIdentifier, draggableCore) {
|
|
484
|
+
const touchObj = typeof touchIdentifier === "number" ? (0, _domFns$1.getTouch)(e, touchIdentifier) : null;
|
|
485
|
+
if (typeof touchIdentifier === "number" && !touchObj) return null;
|
|
486
|
+
const node = findDOMNode(draggableCore);
|
|
487
|
+
const offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
|
|
488
|
+
return (0, _domFns$1.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);
|
|
489
|
+
}
|
|
490
|
+
function createCoreData(draggable, x, y) {
|
|
491
|
+
const isStart = !(0, _shims$1.isNum)(draggable.lastX);
|
|
492
|
+
const node = findDOMNode(draggable);
|
|
493
|
+
if (isStart) {
|
|
494
|
+
return {
|
|
495
|
+
node,
|
|
496
|
+
deltaX: 0,
|
|
497
|
+
deltaY: 0,
|
|
498
|
+
lastX: x,
|
|
499
|
+
lastY: y,
|
|
500
|
+
x,
|
|
501
|
+
y
|
|
502
|
+
};
|
|
503
|
+
} else {
|
|
504
|
+
return {
|
|
505
|
+
node,
|
|
506
|
+
deltaX: x - draggable.lastX,
|
|
507
|
+
deltaY: y - draggable.lastY,
|
|
508
|
+
lastX: draggable.lastX,
|
|
509
|
+
lastY: draggable.lastY,
|
|
510
|
+
x,
|
|
511
|
+
y
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function createDraggableData(draggable, coreData) {
|
|
516
|
+
const scale = draggable.props.scale;
|
|
517
|
+
return {
|
|
518
|
+
node: coreData.node,
|
|
519
|
+
x: draggable.state.x + coreData.deltaX / scale,
|
|
520
|
+
y: draggable.state.y + coreData.deltaY / scale,
|
|
521
|
+
deltaX: coreData.deltaX / scale,
|
|
522
|
+
deltaY: coreData.deltaY / scale,
|
|
523
|
+
lastX: draggable.state.x,
|
|
524
|
+
lastY: draggable.state.y
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
function cloneBounds(bounds) {
|
|
528
|
+
return {
|
|
529
|
+
left: bounds.left,
|
|
530
|
+
top: bounds.top,
|
|
531
|
+
right: bounds.right,
|
|
532
|
+
bottom: bounds.bottom
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
function findDOMNode(draggable) {
|
|
536
|
+
const node = draggable.findDOMNode();
|
|
537
|
+
if (!node) {
|
|
538
|
+
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
539
|
+
}
|
|
540
|
+
return node;
|
|
541
|
+
}
|
|
542
|
+
var DraggableCore$2 = {};
|
|
543
|
+
var log$1 = {};
|
|
544
|
+
Object.defineProperty(log$1, "__esModule", {
|
|
545
|
+
value: true
|
|
546
|
+
});
|
|
547
|
+
log$1.default = log;
|
|
548
|
+
function log() {
|
|
549
|
+
}
|
|
550
|
+
Object.defineProperty(DraggableCore$2, "__esModule", {
|
|
551
|
+
value: true
|
|
552
|
+
});
|
|
553
|
+
DraggableCore$2.default = void 0;
|
|
554
|
+
var React$2 = _interopRequireWildcard$2(React__default);
|
|
555
|
+
var _propTypes$3 = _interopRequireDefault$3(require$$1);
|
|
556
|
+
var _reactDom = _interopRequireDefault$3(require$$2);
|
|
557
|
+
var _domFns = domFns;
|
|
558
|
+
var _positionFns = positionFns;
|
|
559
|
+
var _shims = shims;
|
|
560
|
+
var _log = _interopRequireDefault$3(log$1);
|
|
561
|
+
function _interopRequireDefault$3(obj) {
|
|
562
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
563
|
+
}
|
|
564
|
+
function _getRequireWildcardCache$2(nodeInterop) {
|
|
565
|
+
if (typeof WeakMap !== "function") return null;
|
|
566
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
567
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
568
|
+
return (_getRequireWildcardCache$2 = function(nodeInterop2) {
|
|
569
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
570
|
+
})(nodeInterop);
|
|
571
|
+
}
|
|
572
|
+
function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
573
|
+
if (obj && obj.__esModule) {
|
|
574
|
+
return obj;
|
|
575
|
+
}
|
|
576
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
577
|
+
return { default: obj };
|
|
578
|
+
}
|
|
579
|
+
var cache = _getRequireWildcardCache$2(nodeInterop);
|
|
580
|
+
if (cache && cache.has(obj)) {
|
|
581
|
+
return cache.get(obj);
|
|
582
|
+
}
|
|
583
|
+
var newObj = {};
|
|
584
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
585
|
+
for (var key in obj) {
|
|
586
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
587
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
588
|
+
if (desc && (desc.get || desc.set)) {
|
|
589
|
+
Object.defineProperty(newObj, key, desc);
|
|
590
|
+
} else {
|
|
591
|
+
newObj[key] = obj[key];
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
newObj.default = obj;
|
|
596
|
+
if (cache) {
|
|
597
|
+
cache.set(obj, newObj);
|
|
598
|
+
}
|
|
599
|
+
return newObj;
|
|
600
|
+
}
|
|
601
|
+
function _defineProperty$3(obj, key, value) {
|
|
602
|
+
key = _toPropertyKey$3(key);
|
|
603
|
+
if (key in obj) {
|
|
604
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
605
|
+
} else {
|
|
606
|
+
obj[key] = value;
|
|
607
|
+
}
|
|
608
|
+
return obj;
|
|
609
|
+
}
|
|
610
|
+
function _toPropertyKey$3(arg) {
|
|
611
|
+
var key = _toPrimitive$3(arg, "string");
|
|
612
|
+
return typeof key === "symbol" ? key : String(key);
|
|
613
|
+
}
|
|
614
|
+
function _toPrimitive$3(input, hint) {
|
|
615
|
+
if (typeof input !== "object" || input === null) return input;
|
|
616
|
+
var prim = input[Symbol.toPrimitive];
|
|
617
|
+
if (prim !== void 0) {
|
|
618
|
+
var res = prim.call(input, hint || "default");
|
|
619
|
+
if (typeof res !== "object") return res;
|
|
620
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
621
|
+
}
|
|
622
|
+
return (hint === "string" ? String : Number)(input);
|
|
623
|
+
}
|
|
624
|
+
const eventsFor = {
|
|
625
|
+
touch: {
|
|
626
|
+
start: "touchstart",
|
|
627
|
+
move: "touchmove",
|
|
628
|
+
stop: "touchend"
|
|
629
|
+
},
|
|
630
|
+
mouse: {
|
|
631
|
+
start: "mousedown",
|
|
632
|
+
move: "mousemove",
|
|
633
|
+
stop: "mouseup"
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
let dragEventFor = eventsFor.mouse;
|
|
637
|
+
let DraggableCore$1 = class DraggableCore extends React$2.Component {
|
|
638
|
+
constructor() {
|
|
639
|
+
super(...arguments);
|
|
640
|
+
_defineProperty$3(this, "dragging", false);
|
|
641
|
+
_defineProperty$3(this, "lastX", NaN);
|
|
642
|
+
_defineProperty$3(this, "lastY", NaN);
|
|
643
|
+
_defineProperty$3(this, "touchIdentifier", null);
|
|
644
|
+
_defineProperty$3(this, "mounted", false);
|
|
645
|
+
_defineProperty$3(this, "handleDragStart", (e) => {
|
|
646
|
+
this.props.onMouseDown(e);
|
|
647
|
+
if (!this.props.allowAnyClick && typeof e.button === "number" && e.button !== 0) return false;
|
|
648
|
+
const thisNode = this.findDOMNode();
|
|
649
|
+
if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {
|
|
650
|
+
throw new Error("<DraggableCore> not mounted on DragStart!");
|
|
651
|
+
}
|
|
652
|
+
const {
|
|
653
|
+
ownerDocument
|
|
654
|
+
} = thisNode;
|
|
655
|
+
if (this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.handle, thisNode) || this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.cancel, thisNode)) {
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
if (e.type === "touchstart") e.preventDefault();
|
|
659
|
+
const touchIdentifier = (0, _domFns.getTouchIdentifier)(e);
|
|
660
|
+
this.touchIdentifier = touchIdentifier;
|
|
661
|
+
const position = (0, _positionFns.getControlPosition)(e, touchIdentifier, this);
|
|
662
|
+
if (position == null) return;
|
|
663
|
+
const {
|
|
664
|
+
x,
|
|
665
|
+
y
|
|
666
|
+
} = position;
|
|
667
|
+
const coreEvent = (0, _positionFns.createCoreData)(this, x, y);
|
|
668
|
+
(0, _log.default)("DraggableCore: handleDragStart: %j", coreEvent);
|
|
669
|
+
(0, _log.default)("calling", this.props.onStart);
|
|
670
|
+
const shouldUpdate = this.props.onStart(e, coreEvent);
|
|
671
|
+
if (shouldUpdate === false || this.mounted === false) return;
|
|
672
|
+
if (this.props.enableUserSelectHack) (0, _domFns.addUserSelectStyles)(ownerDocument);
|
|
673
|
+
this.dragging = true;
|
|
674
|
+
this.lastX = x;
|
|
675
|
+
this.lastY = y;
|
|
676
|
+
(0, _domFns.addEvent)(ownerDocument, dragEventFor.move, this.handleDrag);
|
|
677
|
+
(0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, this.handleDragStop);
|
|
678
|
+
});
|
|
679
|
+
_defineProperty$3(this, "handleDrag", (e) => {
|
|
680
|
+
const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);
|
|
681
|
+
if (position == null) return;
|
|
682
|
+
let {
|
|
683
|
+
x,
|
|
684
|
+
y
|
|
685
|
+
} = position;
|
|
686
|
+
if (Array.isArray(this.props.grid)) {
|
|
687
|
+
let deltaX = x - this.lastX, deltaY = y - this.lastY;
|
|
688
|
+
[deltaX, deltaY] = (0, _positionFns.snapToGrid)(this.props.grid, deltaX, deltaY);
|
|
689
|
+
if (!deltaX && !deltaY) return;
|
|
690
|
+
x = this.lastX + deltaX, y = this.lastY + deltaY;
|
|
691
|
+
}
|
|
692
|
+
const coreEvent = (0, _positionFns.createCoreData)(this, x, y);
|
|
693
|
+
(0, _log.default)("DraggableCore: handleDrag: %j", coreEvent);
|
|
694
|
+
const shouldUpdate = this.props.onDrag(e, coreEvent);
|
|
695
|
+
if (shouldUpdate === false || this.mounted === false) {
|
|
696
|
+
try {
|
|
697
|
+
this.handleDragStop(new MouseEvent("mouseup"));
|
|
698
|
+
} catch (err) {
|
|
699
|
+
const event = document.createEvent("MouseEvents");
|
|
700
|
+
event.initMouseEvent("mouseup", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
|
701
|
+
this.handleDragStop(event);
|
|
702
|
+
}
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
this.lastX = x;
|
|
706
|
+
this.lastY = y;
|
|
707
|
+
});
|
|
708
|
+
_defineProperty$3(this, "handleDragStop", (e) => {
|
|
709
|
+
if (!this.dragging) return;
|
|
710
|
+
const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);
|
|
711
|
+
if (position == null) return;
|
|
712
|
+
let {
|
|
713
|
+
x,
|
|
714
|
+
y
|
|
715
|
+
} = position;
|
|
716
|
+
if (Array.isArray(this.props.grid)) {
|
|
717
|
+
let deltaX = x - this.lastX || 0;
|
|
718
|
+
let deltaY = y - this.lastY || 0;
|
|
719
|
+
[deltaX, deltaY] = (0, _positionFns.snapToGrid)(this.props.grid, deltaX, deltaY);
|
|
720
|
+
x = this.lastX + deltaX, y = this.lastY + deltaY;
|
|
721
|
+
}
|
|
722
|
+
const coreEvent = (0, _positionFns.createCoreData)(this, x, y);
|
|
723
|
+
const shouldContinue = this.props.onStop(e, coreEvent);
|
|
724
|
+
if (shouldContinue === false || this.mounted === false) return false;
|
|
725
|
+
const thisNode = this.findDOMNode();
|
|
726
|
+
if (thisNode) {
|
|
727
|
+
if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);
|
|
728
|
+
}
|
|
729
|
+
(0, _log.default)("DraggableCore: handleDragStop: %j", coreEvent);
|
|
730
|
+
this.dragging = false;
|
|
731
|
+
this.lastX = NaN;
|
|
732
|
+
this.lastY = NaN;
|
|
733
|
+
if (thisNode) {
|
|
734
|
+
(0, _log.default)("DraggableCore: Removing handlers");
|
|
735
|
+
(0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, this.handleDrag);
|
|
736
|
+
(0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, this.handleDragStop);
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
_defineProperty$3(this, "onMouseDown", (e) => {
|
|
740
|
+
dragEventFor = eventsFor.mouse;
|
|
741
|
+
return this.handleDragStart(e);
|
|
742
|
+
});
|
|
743
|
+
_defineProperty$3(this, "onMouseUp", (e) => {
|
|
744
|
+
dragEventFor = eventsFor.mouse;
|
|
745
|
+
return this.handleDragStop(e);
|
|
746
|
+
});
|
|
747
|
+
_defineProperty$3(this, "onTouchStart", (e) => {
|
|
748
|
+
dragEventFor = eventsFor.touch;
|
|
749
|
+
return this.handleDragStart(e);
|
|
750
|
+
});
|
|
751
|
+
_defineProperty$3(this, "onTouchEnd", (e) => {
|
|
752
|
+
dragEventFor = eventsFor.touch;
|
|
753
|
+
return this.handleDragStop(e);
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
componentDidMount() {
|
|
757
|
+
this.mounted = true;
|
|
758
|
+
const thisNode = this.findDOMNode();
|
|
759
|
+
if (thisNode) {
|
|
760
|
+
(0, _domFns.addEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
|
|
761
|
+
passive: false
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
componentWillUnmount() {
|
|
766
|
+
this.mounted = false;
|
|
767
|
+
const thisNode = this.findDOMNode();
|
|
768
|
+
if (thisNode) {
|
|
769
|
+
const {
|
|
770
|
+
ownerDocument
|
|
771
|
+
} = thisNode;
|
|
772
|
+
(0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.move, this.handleDrag);
|
|
773
|
+
(0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.move, this.handleDrag);
|
|
774
|
+
(0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);
|
|
775
|
+
(0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.stop, this.handleDragStop);
|
|
776
|
+
(0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
|
|
777
|
+
passive: false
|
|
778
|
+
});
|
|
779
|
+
if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
783
|
+
// the underlying DOM node ourselves. See the README for more information.
|
|
784
|
+
findDOMNode() {
|
|
785
|
+
var _this$props, _this$props2;
|
|
786
|
+
return (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.nodeRef ? (_this$props2 = this.props) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.nodeRef) === null || _this$props2 === void 0 ? void 0 : _this$props2.current : _reactDom.default.findDOMNode(this);
|
|
787
|
+
}
|
|
788
|
+
render() {
|
|
789
|
+
return /* @__PURE__ */ React$2.cloneElement(React$2.Children.only(this.props.children), {
|
|
790
|
+
// Note: mouseMove handler is attached to document so it will still function
|
|
791
|
+
// when the user drags quickly and leaves the bounds of the element.
|
|
792
|
+
onMouseDown: this.onMouseDown,
|
|
793
|
+
onMouseUp: this.onMouseUp,
|
|
794
|
+
// onTouchStart is added on `componentDidMount` so they can be added with
|
|
795
|
+
// {passive: false}, which allows it to cancel. See
|
|
796
|
+
// https://developers.google.com/web/updates/2017/01/scrolling-intervention
|
|
797
|
+
onTouchEnd: this.onTouchEnd
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
DraggableCore$2.default = DraggableCore$1;
|
|
802
|
+
_defineProperty$3(DraggableCore$1, "displayName", "DraggableCore");
|
|
803
|
+
_defineProperty$3(DraggableCore$1, "propTypes", {
|
|
804
|
+
/**
|
|
805
|
+
* `allowAnyClick` allows dragging using any mouse button.
|
|
806
|
+
* By default, we only accept the left button.
|
|
807
|
+
*
|
|
808
|
+
* Defaults to `false`.
|
|
809
|
+
*/
|
|
810
|
+
allowAnyClick: _propTypes$3.default.bool,
|
|
811
|
+
children: _propTypes$3.default.node.isRequired,
|
|
812
|
+
/**
|
|
813
|
+
* `disabled`, if true, stops the <Draggable> from dragging. All handlers,
|
|
814
|
+
* with the exception of `onMouseDown`, will not fire.
|
|
815
|
+
*/
|
|
816
|
+
disabled: _propTypes$3.default.bool,
|
|
817
|
+
/**
|
|
818
|
+
* By default, we add 'user-select:none' attributes to the document body
|
|
819
|
+
* to prevent ugly text selection during drag. If this is causing problems
|
|
820
|
+
* for your app, set this to `false`.
|
|
821
|
+
*/
|
|
822
|
+
enableUserSelectHack: _propTypes$3.default.bool,
|
|
823
|
+
/**
|
|
824
|
+
* `offsetParent`, if set, uses the passed DOM node to compute drag offsets
|
|
825
|
+
* instead of using the parent node.
|
|
826
|
+
*/
|
|
827
|
+
offsetParent: function(props, propName) {
|
|
828
|
+
if (props[propName] && props[propName].nodeType !== 1) {
|
|
829
|
+
throw new Error("Draggable's offsetParent must be a DOM Node.");
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
/**
|
|
833
|
+
* `grid` specifies the x and y that dragging should snap to.
|
|
834
|
+
*/
|
|
835
|
+
grid: _propTypes$3.default.arrayOf(_propTypes$3.default.number),
|
|
836
|
+
/**
|
|
837
|
+
* `handle` specifies a selector to be used as the handle that initiates drag.
|
|
838
|
+
*
|
|
839
|
+
* Example:
|
|
840
|
+
*
|
|
841
|
+
* ```jsx
|
|
842
|
+
* let App = React.createClass({
|
|
843
|
+
* render: function () {
|
|
844
|
+
* return (
|
|
845
|
+
* <Draggable handle=".handle">
|
|
846
|
+
* <div>
|
|
847
|
+
* <div className="handle">Click me to drag</div>
|
|
848
|
+
* <div>This is some other content</div>
|
|
849
|
+
* </div>
|
|
850
|
+
* </Draggable>
|
|
851
|
+
* );
|
|
852
|
+
* }
|
|
853
|
+
* });
|
|
854
|
+
* ```
|
|
855
|
+
*/
|
|
856
|
+
handle: _propTypes$3.default.string,
|
|
857
|
+
/**
|
|
858
|
+
* `cancel` specifies a selector to be used to prevent drag initialization.
|
|
859
|
+
*
|
|
860
|
+
* Example:
|
|
861
|
+
*
|
|
862
|
+
* ```jsx
|
|
863
|
+
* let App = React.createClass({
|
|
864
|
+
* render: function () {
|
|
865
|
+
* return(
|
|
866
|
+
* <Draggable cancel=".cancel">
|
|
867
|
+
* <div>
|
|
868
|
+
* <div className="cancel">You can't drag from here</div>
|
|
869
|
+
* <div>Dragging here works fine</div>
|
|
870
|
+
* </div>
|
|
871
|
+
* </Draggable>
|
|
872
|
+
* );
|
|
873
|
+
* }
|
|
874
|
+
* });
|
|
875
|
+
* ```
|
|
876
|
+
*/
|
|
877
|
+
cancel: _propTypes$3.default.string,
|
|
878
|
+
/* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.
|
|
879
|
+
* Unfortunately, in order for <Draggable> to work properly, we need raw access
|
|
880
|
+
* to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`
|
|
881
|
+
* as in this example:
|
|
882
|
+
*
|
|
883
|
+
* function MyComponent() {
|
|
884
|
+
* const nodeRef = React.useRef(null);
|
|
885
|
+
* return (
|
|
886
|
+
* <Draggable nodeRef={nodeRef}>
|
|
887
|
+
* <div ref={nodeRef}>Example Target</div>
|
|
888
|
+
* </Draggable>
|
|
889
|
+
* );
|
|
890
|
+
* }
|
|
891
|
+
*
|
|
892
|
+
* This can be used for arbitrarily nested components, so long as the ref ends up
|
|
893
|
+
* pointing to the actual child DOM node and not a custom component.
|
|
894
|
+
*/
|
|
895
|
+
nodeRef: _propTypes$3.default.object,
|
|
896
|
+
/**
|
|
897
|
+
* Called when dragging starts.
|
|
898
|
+
* If this function returns the boolean false, dragging will be canceled.
|
|
899
|
+
*/
|
|
900
|
+
onStart: _propTypes$3.default.func,
|
|
901
|
+
/**
|
|
902
|
+
* Called while dragging.
|
|
903
|
+
* If this function returns the boolean false, dragging will be canceled.
|
|
904
|
+
*/
|
|
905
|
+
onDrag: _propTypes$3.default.func,
|
|
906
|
+
/**
|
|
907
|
+
* Called when dragging stops.
|
|
908
|
+
* If this function returns the boolean false, the drag will remain active.
|
|
909
|
+
*/
|
|
910
|
+
onStop: _propTypes$3.default.func,
|
|
911
|
+
/**
|
|
912
|
+
* A workaround option which can be passed if onMouseDown needs to be accessed,
|
|
913
|
+
* since it'll always be blocked (as there is internal use of onMouseDown)
|
|
914
|
+
*/
|
|
915
|
+
onMouseDown: _propTypes$3.default.func,
|
|
916
|
+
/**
|
|
917
|
+
* `scale`, if set, applies scaling while dragging an element
|
|
918
|
+
*/
|
|
919
|
+
scale: _propTypes$3.default.number,
|
|
920
|
+
/**
|
|
921
|
+
* These properties should be defined on the child, not here.
|
|
922
|
+
*/
|
|
923
|
+
className: _shims.dontSetMe,
|
|
924
|
+
style: _shims.dontSetMe,
|
|
925
|
+
transform: _shims.dontSetMe
|
|
926
|
+
});
|
|
927
|
+
_defineProperty$3(DraggableCore$1, "defaultProps", {
|
|
928
|
+
allowAnyClick: false,
|
|
929
|
+
// by default only accept left click
|
|
930
|
+
disabled: false,
|
|
931
|
+
enableUserSelectHack: true,
|
|
932
|
+
onStart: function() {
|
|
933
|
+
},
|
|
934
|
+
onDrag: function() {
|
|
935
|
+
},
|
|
936
|
+
onStop: function() {
|
|
937
|
+
},
|
|
938
|
+
onMouseDown: function() {
|
|
939
|
+
},
|
|
940
|
+
scale: 1
|
|
941
|
+
});
|
|
942
|
+
(function(exports) {
|
|
943
|
+
Object.defineProperty(exports, "__esModule", {
|
|
944
|
+
value: true
|
|
945
|
+
});
|
|
946
|
+
Object.defineProperty(exports, "DraggableCore", {
|
|
947
|
+
enumerable: true,
|
|
948
|
+
get: function() {
|
|
949
|
+
return _DraggableCore.default;
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
exports.default = void 0;
|
|
953
|
+
var React2 = _interopRequireWildcard2(React__default);
|
|
954
|
+
var _propTypes3 = _interopRequireDefault2(require$$1);
|
|
955
|
+
var _reactDom2 = _interopRequireDefault2(require$$2);
|
|
956
|
+
var _clsx = _interopRequireDefault2(clsx);
|
|
957
|
+
var _domFns2 = domFns;
|
|
958
|
+
var _positionFns2 = positionFns;
|
|
959
|
+
var _shims2 = shims;
|
|
960
|
+
var _DraggableCore = _interopRequireDefault2(DraggableCore$2);
|
|
961
|
+
var _log2 = _interopRequireDefault2(log$1);
|
|
962
|
+
function _interopRequireDefault2(obj) {
|
|
963
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
964
|
+
}
|
|
965
|
+
function _getRequireWildcardCache2(nodeInterop) {
|
|
966
|
+
if (typeof WeakMap !== "function") return null;
|
|
967
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
968
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
969
|
+
return (_getRequireWildcardCache2 = function(nodeInterop2) {
|
|
970
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
971
|
+
})(nodeInterop);
|
|
972
|
+
}
|
|
973
|
+
function _interopRequireWildcard2(obj, nodeInterop) {
|
|
974
|
+
if (obj && obj.__esModule) {
|
|
975
|
+
return obj;
|
|
976
|
+
}
|
|
977
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
978
|
+
return { default: obj };
|
|
979
|
+
}
|
|
980
|
+
var cache = _getRequireWildcardCache2(nodeInterop);
|
|
981
|
+
if (cache && cache.has(obj)) {
|
|
982
|
+
return cache.get(obj);
|
|
983
|
+
}
|
|
984
|
+
var newObj = {};
|
|
985
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
986
|
+
for (var key in obj) {
|
|
987
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
988
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
989
|
+
if (desc && (desc.get || desc.set)) {
|
|
990
|
+
Object.defineProperty(newObj, key, desc);
|
|
991
|
+
} else {
|
|
992
|
+
newObj[key] = obj[key];
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
newObj.default = obj;
|
|
997
|
+
if (cache) {
|
|
998
|
+
cache.set(obj, newObj);
|
|
999
|
+
}
|
|
1000
|
+
return newObj;
|
|
1001
|
+
}
|
|
1002
|
+
function _extends2() {
|
|
1003
|
+
_extends2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
1004
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1005
|
+
var source = arguments[i];
|
|
1006
|
+
for (var key in source) {
|
|
1007
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1008
|
+
target[key] = source[key];
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
return target;
|
|
1013
|
+
};
|
|
1014
|
+
return _extends2.apply(this, arguments);
|
|
1015
|
+
}
|
|
1016
|
+
function _defineProperty2(obj, key, value) {
|
|
1017
|
+
key = _toPropertyKey2(key);
|
|
1018
|
+
if (key in obj) {
|
|
1019
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1020
|
+
} else {
|
|
1021
|
+
obj[key] = value;
|
|
1022
|
+
}
|
|
1023
|
+
return obj;
|
|
1024
|
+
}
|
|
1025
|
+
function _toPropertyKey2(arg) {
|
|
1026
|
+
var key = _toPrimitive2(arg, "string");
|
|
1027
|
+
return typeof key === "symbol" ? key : String(key);
|
|
1028
|
+
}
|
|
1029
|
+
function _toPrimitive2(input, hint) {
|
|
1030
|
+
if (typeof input !== "object" || input === null) return input;
|
|
1031
|
+
var prim = input[Symbol.toPrimitive];
|
|
1032
|
+
if (prim !== void 0) {
|
|
1033
|
+
var res = prim.call(input, hint || "default");
|
|
1034
|
+
if (typeof res !== "object") return res;
|
|
1035
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1036
|
+
}
|
|
1037
|
+
return (hint === "string" ? String : Number)(input);
|
|
1038
|
+
}
|
|
1039
|
+
class Draggable2 extends React2.Component {
|
|
1040
|
+
// React 16.3+
|
|
1041
|
+
// Arity (props, state)
|
|
1042
|
+
static getDerivedStateFromProps(_ref, _ref2) {
|
|
1043
|
+
let {
|
|
1044
|
+
position
|
|
1045
|
+
} = _ref;
|
|
1046
|
+
let {
|
|
1047
|
+
prevPropsPosition
|
|
1048
|
+
} = _ref2;
|
|
1049
|
+
if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {
|
|
1050
|
+
(0, _log2.default)("Draggable: getDerivedStateFromProps %j", {
|
|
1051
|
+
position,
|
|
1052
|
+
prevPropsPosition
|
|
1053
|
+
});
|
|
1054
|
+
return {
|
|
1055
|
+
x: position.x,
|
|
1056
|
+
y: position.y,
|
|
1057
|
+
prevPropsPosition: {
|
|
1058
|
+
...position
|
|
1059
|
+
}
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
return null;
|
|
1063
|
+
}
|
|
1064
|
+
constructor(props) {
|
|
1065
|
+
super(props);
|
|
1066
|
+
_defineProperty2(this, "onDragStart", (e, coreData) => {
|
|
1067
|
+
(0, _log2.default)("Draggable: onDragStart: %j", coreData);
|
|
1068
|
+
const shouldStart = this.props.onStart(e, (0, _positionFns2.createDraggableData)(this, coreData));
|
|
1069
|
+
if (shouldStart === false) return false;
|
|
1070
|
+
this.setState({
|
|
1071
|
+
dragging: true,
|
|
1072
|
+
dragged: true
|
|
1073
|
+
});
|
|
1074
|
+
});
|
|
1075
|
+
_defineProperty2(this, "onDrag", (e, coreData) => {
|
|
1076
|
+
if (!this.state.dragging) return false;
|
|
1077
|
+
(0, _log2.default)("Draggable: onDrag: %j", coreData);
|
|
1078
|
+
const uiData = (0, _positionFns2.createDraggableData)(this, coreData);
|
|
1079
|
+
const newState = {
|
|
1080
|
+
x: uiData.x,
|
|
1081
|
+
y: uiData.y,
|
|
1082
|
+
slackX: 0,
|
|
1083
|
+
slackY: 0
|
|
1084
|
+
};
|
|
1085
|
+
if (this.props.bounds) {
|
|
1086
|
+
const {
|
|
1087
|
+
x,
|
|
1088
|
+
y
|
|
1089
|
+
} = newState;
|
|
1090
|
+
newState.x += this.state.slackX;
|
|
1091
|
+
newState.y += this.state.slackY;
|
|
1092
|
+
const [newStateX, newStateY] = (0, _positionFns2.getBoundPosition)(this, newState.x, newState.y);
|
|
1093
|
+
newState.x = newStateX;
|
|
1094
|
+
newState.y = newStateY;
|
|
1095
|
+
newState.slackX = this.state.slackX + (x - newState.x);
|
|
1096
|
+
newState.slackY = this.state.slackY + (y - newState.y);
|
|
1097
|
+
uiData.x = newState.x;
|
|
1098
|
+
uiData.y = newState.y;
|
|
1099
|
+
uiData.deltaX = newState.x - this.state.x;
|
|
1100
|
+
uiData.deltaY = newState.y - this.state.y;
|
|
1101
|
+
}
|
|
1102
|
+
const shouldUpdate = this.props.onDrag(e, uiData);
|
|
1103
|
+
if (shouldUpdate === false) return false;
|
|
1104
|
+
this.setState(newState);
|
|
1105
|
+
});
|
|
1106
|
+
_defineProperty2(this, "onDragStop", (e, coreData) => {
|
|
1107
|
+
if (!this.state.dragging) return false;
|
|
1108
|
+
const shouldContinue = this.props.onStop(e, (0, _positionFns2.createDraggableData)(this, coreData));
|
|
1109
|
+
if (shouldContinue === false) return false;
|
|
1110
|
+
(0, _log2.default)("Draggable: onDragStop: %j", coreData);
|
|
1111
|
+
const newState = {
|
|
1112
|
+
dragging: false,
|
|
1113
|
+
slackX: 0,
|
|
1114
|
+
slackY: 0
|
|
1115
|
+
};
|
|
1116
|
+
const controlled = Boolean(this.props.position);
|
|
1117
|
+
if (controlled) {
|
|
1118
|
+
const {
|
|
1119
|
+
x,
|
|
1120
|
+
y
|
|
1121
|
+
} = this.props.position;
|
|
1122
|
+
newState.x = x;
|
|
1123
|
+
newState.y = y;
|
|
1124
|
+
}
|
|
1125
|
+
this.setState(newState);
|
|
1126
|
+
});
|
|
1127
|
+
this.state = {
|
|
1128
|
+
// Whether or not we are currently dragging.
|
|
1129
|
+
dragging: false,
|
|
1130
|
+
// Whether or not we have been dragged before.
|
|
1131
|
+
dragged: false,
|
|
1132
|
+
// Current transform x and y.
|
|
1133
|
+
x: props.position ? props.position.x : props.defaultPosition.x,
|
|
1134
|
+
y: props.position ? props.position.y : props.defaultPosition.y,
|
|
1135
|
+
prevPropsPosition: {
|
|
1136
|
+
...props.position
|
|
1137
|
+
},
|
|
1138
|
+
// Used for compensating for out-of-bounds drags
|
|
1139
|
+
slackX: 0,
|
|
1140
|
+
slackY: 0,
|
|
1141
|
+
// Can only determine if SVG after mounting
|
|
1142
|
+
isElementSVG: false
|
|
1143
|
+
};
|
|
1144
|
+
if (props.position && !(props.onDrag || props.onStop)) {
|
|
1145
|
+
console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
componentDidMount() {
|
|
1149
|
+
if (typeof window.SVGElement !== "undefined" && this.findDOMNode() instanceof window.SVGElement) {
|
|
1150
|
+
this.setState({
|
|
1151
|
+
isElementSVG: true
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
componentWillUnmount() {
|
|
1156
|
+
this.setState({
|
|
1157
|
+
dragging: false
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
1161
|
+
// the underlying DOM node ourselves. See the README for more information.
|
|
1162
|
+
findDOMNode() {
|
|
1163
|
+
var _this$props$nodeRef$c, _this$props;
|
|
1164
|
+
return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 || (_this$props = _this$props.nodeRef) === null || _this$props === void 0 ? void 0 : _this$props.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom2.default.findDOMNode(this);
|
|
1165
|
+
}
|
|
1166
|
+
render() {
|
|
1167
|
+
const {
|
|
1168
|
+
axis,
|
|
1169
|
+
bounds,
|
|
1170
|
+
children,
|
|
1171
|
+
defaultPosition,
|
|
1172
|
+
defaultClassName,
|
|
1173
|
+
defaultClassNameDragging,
|
|
1174
|
+
defaultClassNameDragged,
|
|
1175
|
+
position,
|
|
1176
|
+
positionOffset,
|
|
1177
|
+
scale,
|
|
1178
|
+
...draggableCoreProps
|
|
1179
|
+
} = this.props;
|
|
1180
|
+
let style = {};
|
|
1181
|
+
let svgTransform = null;
|
|
1182
|
+
const controlled = Boolean(position);
|
|
1183
|
+
const draggable = !controlled || this.state.dragging;
|
|
1184
|
+
const validPosition = position || defaultPosition;
|
|
1185
|
+
const transformOpts = {
|
|
1186
|
+
// Set left if horizontal drag is enabled
|
|
1187
|
+
x: (0, _positionFns2.canDragX)(this) && draggable ? this.state.x : validPosition.x,
|
|
1188
|
+
// Set top if vertical drag is enabled
|
|
1189
|
+
y: (0, _positionFns2.canDragY)(this) && draggable ? this.state.y : validPosition.y
|
|
1190
|
+
};
|
|
1191
|
+
if (this.state.isElementSVG) {
|
|
1192
|
+
svgTransform = (0, _domFns2.createSVGTransform)(transformOpts, positionOffset);
|
|
1193
|
+
} else {
|
|
1194
|
+
style = (0, _domFns2.createCSSTransform)(transformOpts, positionOffset);
|
|
1195
|
+
}
|
|
1196
|
+
const className = (0, _clsx.default)(children.props.className || "", defaultClassName, {
|
|
1197
|
+
[defaultClassNameDragging]: this.state.dragging,
|
|
1198
|
+
[defaultClassNameDragged]: this.state.dragged
|
|
1199
|
+
});
|
|
1200
|
+
return /* @__PURE__ */ React2.createElement(_DraggableCore.default, _extends2({}, draggableCoreProps, {
|
|
1201
|
+
onStart: this.onDragStart,
|
|
1202
|
+
onDrag: this.onDrag,
|
|
1203
|
+
onStop: this.onDragStop
|
|
1204
|
+
}), /* @__PURE__ */ React2.cloneElement(React2.Children.only(children), {
|
|
1205
|
+
className,
|
|
1206
|
+
style: {
|
|
1207
|
+
...children.props.style,
|
|
1208
|
+
...style
|
|
1209
|
+
},
|
|
1210
|
+
transform: svgTransform
|
|
1211
|
+
}));
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
exports.default = Draggable2;
|
|
1215
|
+
_defineProperty2(Draggable2, "displayName", "Draggable");
|
|
1216
|
+
_defineProperty2(Draggable2, "propTypes", {
|
|
1217
|
+
// Accepts all props <DraggableCore> accepts.
|
|
1218
|
+
..._DraggableCore.default.propTypes,
|
|
1219
|
+
/**
|
|
1220
|
+
* `axis` determines which axis the draggable can move.
|
|
1221
|
+
*
|
|
1222
|
+
* Note that all callbacks will still return data as normal. This only
|
|
1223
|
+
* controls flushing to the DOM.
|
|
1224
|
+
*
|
|
1225
|
+
* 'both' allows movement horizontally and vertically.
|
|
1226
|
+
* 'x' limits movement to horizontal axis.
|
|
1227
|
+
* 'y' limits movement to vertical axis.
|
|
1228
|
+
* 'none' limits all movement.
|
|
1229
|
+
*
|
|
1230
|
+
* Defaults to 'both'.
|
|
1231
|
+
*/
|
|
1232
|
+
axis: _propTypes3.default.oneOf(["both", "x", "y", "none"]),
|
|
1233
|
+
/**
|
|
1234
|
+
* `bounds` determines the range of movement available to the element.
|
|
1235
|
+
* Available values are:
|
|
1236
|
+
*
|
|
1237
|
+
* 'parent' restricts movement within the Draggable's parent node.
|
|
1238
|
+
*
|
|
1239
|
+
* Alternatively, pass an object with the following properties, all of which are optional:
|
|
1240
|
+
*
|
|
1241
|
+
* {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}
|
|
1242
|
+
*
|
|
1243
|
+
* All values are in px.
|
|
1244
|
+
*
|
|
1245
|
+
* Example:
|
|
1246
|
+
*
|
|
1247
|
+
* ```jsx
|
|
1248
|
+
* let App = React.createClass({
|
|
1249
|
+
* render: function () {
|
|
1250
|
+
* return (
|
|
1251
|
+
* <Draggable bounds={{right: 300, bottom: 300}}>
|
|
1252
|
+
* <div>Content</div>
|
|
1253
|
+
* </Draggable>
|
|
1254
|
+
* );
|
|
1255
|
+
* }
|
|
1256
|
+
* });
|
|
1257
|
+
* ```
|
|
1258
|
+
*/
|
|
1259
|
+
bounds: _propTypes3.default.oneOfType([_propTypes3.default.shape({
|
|
1260
|
+
left: _propTypes3.default.number,
|
|
1261
|
+
right: _propTypes3.default.number,
|
|
1262
|
+
top: _propTypes3.default.number,
|
|
1263
|
+
bottom: _propTypes3.default.number
|
|
1264
|
+
}), _propTypes3.default.string, _propTypes3.default.oneOf([false])]),
|
|
1265
|
+
defaultClassName: _propTypes3.default.string,
|
|
1266
|
+
defaultClassNameDragging: _propTypes3.default.string,
|
|
1267
|
+
defaultClassNameDragged: _propTypes3.default.string,
|
|
1268
|
+
/**
|
|
1269
|
+
* `defaultPosition` specifies the x and y that the dragged item should start at
|
|
1270
|
+
*
|
|
1271
|
+
* Example:
|
|
1272
|
+
*
|
|
1273
|
+
* ```jsx
|
|
1274
|
+
* let App = React.createClass({
|
|
1275
|
+
* render: function () {
|
|
1276
|
+
* return (
|
|
1277
|
+
* <Draggable defaultPosition={{x: 25, y: 25}}>
|
|
1278
|
+
* <div>I start with transformX: 25px and transformY: 25px;</div>
|
|
1279
|
+
* </Draggable>
|
|
1280
|
+
* );
|
|
1281
|
+
* }
|
|
1282
|
+
* });
|
|
1283
|
+
* ```
|
|
1284
|
+
*/
|
|
1285
|
+
defaultPosition: _propTypes3.default.shape({
|
|
1286
|
+
x: _propTypes3.default.number,
|
|
1287
|
+
y: _propTypes3.default.number
|
|
1288
|
+
}),
|
|
1289
|
+
positionOffset: _propTypes3.default.shape({
|
|
1290
|
+
x: _propTypes3.default.oneOfType([_propTypes3.default.number, _propTypes3.default.string]),
|
|
1291
|
+
y: _propTypes3.default.oneOfType([_propTypes3.default.number, _propTypes3.default.string])
|
|
1292
|
+
}),
|
|
1293
|
+
/**
|
|
1294
|
+
* `position`, if present, defines the current position of the element.
|
|
1295
|
+
*
|
|
1296
|
+
* This is similar to how form elements in React work - if no `position` is supplied, the component
|
|
1297
|
+
* is uncontrolled.
|
|
1298
|
+
*
|
|
1299
|
+
* Example:
|
|
1300
|
+
*
|
|
1301
|
+
* ```jsx
|
|
1302
|
+
* let App = React.createClass({
|
|
1303
|
+
* render: function () {
|
|
1304
|
+
* return (
|
|
1305
|
+
* <Draggable position={{x: 25, y: 25}}>
|
|
1306
|
+
* <div>I start with transformX: 25px and transformY: 25px;</div>
|
|
1307
|
+
* </Draggable>
|
|
1308
|
+
* );
|
|
1309
|
+
* }
|
|
1310
|
+
* });
|
|
1311
|
+
* ```
|
|
1312
|
+
*/
|
|
1313
|
+
position: _propTypes3.default.shape({
|
|
1314
|
+
x: _propTypes3.default.number,
|
|
1315
|
+
y: _propTypes3.default.number
|
|
1316
|
+
}),
|
|
1317
|
+
/**
|
|
1318
|
+
* These properties should be defined on the child, not here.
|
|
1319
|
+
*/
|
|
1320
|
+
className: _shims2.dontSetMe,
|
|
1321
|
+
style: _shims2.dontSetMe,
|
|
1322
|
+
transform: _shims2.dontSetMe
|
|
1323
|
+
});
|
|
1324
|
+
_defineProperty2(Draggable2, "defaultProps", {
|
|
1325
|
+
..._DraggableCore.default.defaultProps,
|
|
1326
|
+
axis: "both",
|
|
1327
|
+
bounds: false,
|
|
1328
|
+
defaultClassName: "react-draggable",
|
|
1329
|
+
defaultClassNameDragging: "react-draggable-dragging",
|
|
1330
|
+
defaultClassNameDragged: "react-draggable-dragged",
|
|
1331
|
+
defaultPosition: {
|
|
1332
|
+
x: 0,
|
|
1333
|
+
y: 0
|
|
1334
|
+
},
|
|
1335
|
+
scale: 1
|
|
1336
|
+
});
|
|
1337
|
+
})(Draggable$2);
|
|
1338
|
+
const {
|
|
1339
|
+
default: Draggable,
|
|
1340
|
+
DraggableCore: DraggableCore2
|
|
1341
|
+
} = Draggable$2;
|
|
1342
|
+
cjs.exports = Draggable;
|
|
1343
|
+
cjs.exports.default = Draggable;
|
|
1344
|
+
var DraggableCore_1 = cjs.exports.DraggableCore = DraggableCore2;
|
|
1345
|
+
var cjsExports = cjs.exports;
|
|
1346
|
+
const Draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(cjsExports);
|
|
1347
|
+
var reactResizable = { exports: {} };
|
|
1348
|
+
var Resizable$2 = {};
|
|
1349
|
+
var utils = {};
|
|
1350
|
+
utils.__esModule = true;
|
|
1351
|
+
utils.cloneElement = cloneElement;
|
|
1352
|
+
var _react = _interopRequireDefault$2(React__default);
|
|
1353
|
+
function _interopRequireDefault$2(obj) {
|
|
1354
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
1355
|
+
}
|
|
1356
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
1357
|
+
var keys = Object.keys(object);
|
|
1358
|
+
if (Object.getOwnPropertySymbols) {
|
|
1359
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1360
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
1361
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1362
|
+
})), keys.push.apply(keys, symbols);
|
|
1363
|
+
}
|
|
1364
|
+
return keys;
|
|
1365
|
+
}
|
|
1366
|
+
function _objectSpread$2(target) {
|
|
1367
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1368
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
1369
|
+
i % 2 ? ownKeys$2(Object(source), true).forEach(function(key) {
|
|
1370
|
+
_defineProperty$2(target, key, source[key]);
|
|
1371
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function(key) {
|
|
1372
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
return target;
|
|
1376
|
+
}
|
|
1377
|
+
function _defineProperty$2(obj, key, value) {
|
|
1378
|
+
key = _toPropertyKey$2(key);
|
|
1379
|
+
if (key in obj) {
|
|
1380
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1381
|
+
} else {
|
|
1382
|
+
obj[key] = value;
|
|
1383
|
+
}
|
|
1384
|
+
return obj;
|
|
1385
|
+
}
|
|
1386
|
+
function _toPropertyKey$2(arg) {
|
|
1387
|
+
var key = _toPrimitive$2(arg, "string");
|
|
1388
|
+
return typeof key === "symbol" ? key : String(key);
|
|
1389
|
+
}
|
|
1390
|
+
function _toPrimitive$2(input, hint) {
|
|
1391
|
+
if (typeof input !== "object" || input === null) return input;
|
|
1392
|
+
var prim = input[Symbol.toPrimitive];
|
|
1393
|
+
if (prim !== void 0) {
|
|
1394
|
+
var res = prim.call(input, hint || "default");
|
|
1395
|
+
if (typeof res !== "object") return res;
|
|
1396
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1397
|
+
}
|
|
1398
|
+
return (hint === "string" ? String : Number)(input);
|
|
1399
|
+
}
|
|
1400
|
+
function cloneElement(element, props) {
|
|
1401
|
+
if (props.style && element.props.style) {
|
|
1402
|
+
props.style = _objectSpread$2(_objectSpread$2({}, element.props.style), props.style);
|
|
1403
|
+
}
|
|
1404
|
+
if (props.className && element.props.className) {
|
|
1405
|
+
props.className = element.props.className + " " + props.className;
|
|
1406
|
+
}
|
|
1407
|
+
return /* @__PURE__ */ _react.default.cloneElement(element, props);
|
|
1408
|
+
}
|
|
1409
|
+
var propTypes = {};
|
|
1410
|
+
propTypes.__esModule = true;
|
|
1411
|
+
propTypes.resizableProps = void 0;
|
|
1412
|
+
var _propTypes$2 = _interopRequireDefault$1(require$$1);
|
|
1413
|
+
function _interopRequireDefault$1(obj) {
|
|
1414
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
1415
|
+
}
|
|
1416
|
+
var resizableProps = {
|
|
1417
|
+
/*
|
|
1418
|
+
* Restricts resizing to a particular axis (default: 'both')
|
|
1419
|
+
* 'both' - allows resizing by width or height
|
|
1420
|
+
* 'x' - only allows the width to be changed
|
|
1421
|
+
* 'y' - only allows the height to be changed
|
|
1422
|
+
* 'none' - disables resizing altogether
|
|
1423
|
+
* */
|
|
1424
|
+
axis: _propTypes$2.default.oneOf(["both", "x", "y", "none"]),
|
|
1425
|
+
className: _propTypes$2.default.string,
|
|
1426
|
+
/*
|
|
1427
|
+
* Require that one and only one child be present.
|
|
1428
|
+
* */
|
|
1429
|
+
children: _propTypes$2.default.element.isRequired,
|
|
1430
|
+
/*
|
|
1431
|
+
* These will be passed wholesale to react-draggable's DraggableCore
|
|
1432
|
+
* */
|
|
1433
|
+
draggableOpts: _propTypes$2.default.shape({
|
|
1434
|
+
allowAnyClick: _propTypes$2.default.bool,
|
|
1435
|
+
cancel: _propTypes$2.default.string,
|
|
1436
|
+
children: _propTypes$2.default.node,
|
|
1437
|
+
disabled: _propTypes$2.default.bool,
|
|
1438
|
+
enableUserSelectHack: _propTypes$2.default.bool,
|
|
1439
|
+
offsetParent: _propTypes$2.default.node,
|
|
1440
|
+
grid: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
1441
|
+
handle: _propTypes$2.default.string,
|
|
1442
|
+
nodeRef: _propTypes$2.default.object,
|
|
1443
|
+
onStart: _propTypes$2.default.func,
|
|
1444
|
+
onDrag: _propTypes$2.default.func,
|
|
1445
|
+
onStop: _propTypes$2.default.func,
|
|
1446
|
+
onMouseDown: _propTypes$2.default.func,
|
|
1447
|
+
scale: _propTypes$2.default.number
|
|
1448
|
+
}),
|
|
1449
|
+
/*
|
|
1450
|
+
* Initial height
|
|
1451
|
+
* */
|
|
1452
|
+
height: function height() {
|
|
1453
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1454
|
+
args[_key] = arguments[_key];
|
|
1455
|
+
}
|
|
1456
|
+
var props = args[0];
|
|
1457
|
+
if (props.axis === "both" || props.axis === "y") {
|
|
1458
|
+
var _PropTypes$number;
|
|
1459
|
+
return (_PropTypes$number = _propTypes$2.default.number).isRequired.apply(_PropTypes$number, args);
|
|
1460
|
+
}
|
|
1461
|
+
return _propTypes$2.default.number.apply(_propTypes$2.default, args);
|
|
1462
|
+
},
|
|
1463
|
+
/*
|
|
1464
|
+
* Customize cursor resize handle
|
|
1465
|
+
* */
|
|
1466
|
+
handle: _propTypes$2.default.oneOfType([_propTypes$2.default.node, _propTypes$2.default.func]),
|
|
1467
|
+
/*
|
|
1468
|
+
* If you change this, be sure to update your css
|
|
1469
|
+
* */
|
|
1470
|
+
handleSize: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
1471
|
+
lockAspectRatio: _propTypes$2.default.bool,
|
|
1472
|
+
/*
|
|
1473
|
+
* Max X & Y measure
|
|
1474
|
+
* */
|
|
1475
|
+
maxConstraints: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
1476
|
+
/*
|
|
1477
|
+
* Min X & Y measure
|
|
1478
|
+
* */
|
|
1479
|
+
minConstraints: _propTypes$2.default.arrayOf(_propTypes$2.default.number),
|
|
1480
|
+
/*
|
|
1481
|
+
* Called on stop resize event
|
|
1482
|
+
* */
|
|
1483
|
+
onResizeStop: _propTypes$2.default.func,
|
|
1484
|
+
/*
|
|
1485
|
+
* Called on start resize event
|
|
1486
|
+
* */
|
|
1487
|
+
onResizeStart: _propTypes$2.default.func,
|
|
1488
|
+
/*
|
|
1489
|
+
* Called on resize event
|
|
1490
|
+
* */
|
|
1491
|
+
onResize: _propTypes$2.default.func,
|
|
1492
|
+
/*
|
|
1493
|
+
* Defines which resize handles should be rendered (default: 'se')
|
|
1494
|
+
* 's' - South handle (bottom-center)
|
|
1495
|
+
* 'w' - West handle (left-center)
|
|
1496
|
+
* 'e' - East handle (right-center)
|
|
1497
|
+
* 'n' - North handle (top-center)
|
|
1498
|
+
* 'sw' - Southwest handle (bottom-left)
|
|
1499
|
+
* 'nw' - Northwest handle (top-left)
|
|
1500
|
+
* 'se' - Southeast handle (bottom-right)
|
|
1501
|
+
* 'ne' - Northeast handle (top-center)
|
|
1502
|
+
* */
|
|
1503
|
+
resizeHandles: _propTypes$2.default.arrayOf(_propTypes$2.default.oneOf(["s", "w", "e", "n", "sw", "nw", "se", "ne"])),
|
|
1504
|
+
/*
|
|
1505
|
+
* If `transform: scale(n)` is set on the parent, this should be set to `n`.
|
|
1506
|
+
* */
|
|
1507
|
+
transformScale: _propTypes$2.default.number,
|
|
1508
|
+
/*
|
|
1509
|
+
* Initial width
|
|
1510
|
+
*/
|
|
1511
|
+
width: function width() {
|
|
1512
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1513
|
+
args[_key2] = arguments[_key2];
|
|
1514
|
+
}
|
|
1515
|
+
var props = args[0];
|
|
1516
|
+
if (props.axis === "both" || props.axis === "x") {
|
|
1517
|
+
var _PropTypes$number2;
|
|
1518
|
+
return (_PropTypes$number2 = _propTypes$2.default.number).isRequired.apply(_PropTypes$number2, args);
|
|
1519
|
+
}
|
|
1520
|
+
return _propTypes$2.default.number.apply(_propTypes$2.default, args);
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
propTypes.resizableProps = resizableProps;
|
|
1524
|
+
Resizable$2.__esModule = true;
|
|
1525
|
+
Resizable$2.default = void 0;
|
|
1526
|
+
var React$1 = _interopRequireWildcard$1(React__default);
|
|
1527
|
+
var _reactDraggable = cjsExports;
|
|
1528
|
+
var _utils = utils;
|
|
1529
|
+
var _propTypes$1 = propTypes;
|
|
1530
|
+
var _excluded$1 = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
1531
|
+
function _getRequireWildcardCache$1(nodeInterop) {
|
|
1532
|
+
if (typeof WeakMap !== "function") return null;
|
|
1533
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
1534
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
1535
|
+
return (_getRequireWildcardCache$1 = function _getRequireWildcardCache2(nodeInterop2) {
|
|
1536
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
1537
|
+
})(nodeInterop);
|
|
1538
|
+
}
|
|
1539
|
+
function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
1540
|
+
if (obj && obj.__esModule) {
|
|
1541
|
+
return obj;
|
|
1542
|
+
}
|
|
1543
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
1544
|
+
return { default: obj };
|
|
1545
|
+
}
|
|
1546
|
+
var cache = _getRequireWildcardCache$1(nodeInterop);
|
|
1547
|
+
if (cache && cache.has(obj)) {
|
|
1548
|
+
return cache.get(obj);
|
|
1549
|
+
}
|
|
1550
|
+
var newObj = {};
|
|
1551
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1552
|
+
for (var key in obj) {
|
|
1553
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
1554
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
1555
|
+
if (desc && (desc.get || desc.set)) {
|
|
1556
|
+
Object.defineProperty(newObj, key, desc);
|
|
1557
|
+
} else {
|
|
1558
|
+
newObj[key] = obj[key];
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
newObj.default = obj;
|
|
1563
|
+
if (cache) {
|
|
1564
|
+
cache.set(obj, newObj);
|
|
1565
|
+
}
|
|
1566
|
+
return newObj;
|
|
1567
|
+
}
|
|
1568
|
+
function _extends$1() {
|
|
1569
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
1570
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1571
|
+
var source = arguments[i];
|
|
1572
|
+
for (var key in source) {
|
|
1573
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1574
|
+
target[key] = source[key];
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
return target;
|
|
1579
|
+
};
|
|
1580
|
+
return _extends$1.apply(this, arguments);
|
|
1581
|
+
}
|
|
1582
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
1583
|
+
if (source == null) return {};
|
|
1584
|
+
var target = {};
|
|
1585
|
+
var sourceKeys = Object.keys(source);
|
|
1586
|
+
var key, i;
|
|
1587
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
1588
|
+
key = sourceKeys[i];
|
|
1589
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
1590
|
+
target[key] = source[key];
|
|
1591
|
+
}
|
|
1592
|
+
return target;
|
|
1593
|
+
}
|
|
1594
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
1595
|
+
var keys = Object.keys(object);
|
|
1596
|
+
if (Object.getOwnPropertySymbols) {
|
|
1597
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1598
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
1599
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1600
|
+
})), keys.push.apply(keys, symbols);
|
|
1601
|
+
}
|
|
1602
|
+
return keys;
|
|
1603
|
+
}
|
|
1604
|
+
function _objectSpread$1(target) {
|
|
1605
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1606
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
1607
|
+
i % 2 ? ownKeys$1(Object(source), true).forEach(function(key) {
|
|
1608
|
+
_defineProperty$1(target, key, source[key]);
|
|
1609
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function(key) {
|
|
1610
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
return target;
|
|
1614
|
+
}
|
|
1615
|
+
function _defineProperty$1(obj, key, value) {
|
|
1616
|
+
key = _toPropertyKey$1(key);
|
|
1617
|
+
if (key in obj) {
|
|
1618
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1619
|
+
} else {
|
|
1620
|
+
obj[key] = value;
|
|
1621
|
+
}
|
|
1622
|
+
return obj;
|
|
1623
|
+
}
|
|
1624
|
+
function _toPropertyKey$1(arg) {
|
|
1625
|
+
var key = _toPrimitive$1(arg, "string");
|
|
1626
|
+
return typeof key === "symbol" ? key : String(key);
|
|
1627
|
+
}
|
|
1628
|
+
function _toPrimitive$1(input, hint) {
|
|
1629
|
+
if (typeof input !== "object" || input === null) return input;
|
|
1630
|
+
var prim = input[Symbol.toPrimitive];
|
|
1631
|
+
if (prim !== void 0) {
|
|
1632
|
+
var res = prim.call(input, hint || "default");
|
|
1633
|
+
if (typeof res !== "object") return res;
|
|
1634
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1635
|
+
}
|
|
1636
|
+
return (hint === "string" ? String : Number)(input);
|
|
1637
|
+
}
|
|
1638
|
+
function _inheritsLoose$1(subClass, superClass) {
|
|
1639
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
1640
|
+
subClass.prototype.constructor = subClass;
|
|
1641
|
+
_setPrototypeOf$1(subClass, superClass);
|
|
1642
|
+
}
|
|
1643
|
+
function _setPrototypeOf$1(o, p) {
|
|
1644
|
+
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
1645
|
+
o2.__proto__ = p2;
|
|
1646
|
+
return o2;
|
|
1647
|
+
};
|
|
1648
|
+
return _setPrototypeOf$1(o, p);
|
|
1649
|
+
}
|
|
1650
|
+
var Resizable$1 = /* @__PURE__ */ function(_React$Component) {
|
|
1651
|
+
_inheritsLoose$1(Resizable2, _React$Component);
|
|
1652
|
+
function Resizable2() {
|
|
1653
|
+
var _this;
|
|
1654
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1655
|
+
args[_key] = arguments[_key];
|
|
1656
|
+
}
|
|
1657
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
1658
|
+
_this.handleRefs = {};
|
|
1659
|
+
_this.lastHandleRect = null;
|
|
1660
|
+
_this.slack = null;
|
|
1661
|
+
return _this;
|
|
1662
|
+
}
|
|
1663
|
+
var _proto = Resizable2.prototype;
|
|
1664
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
1665
|
+
this.resetData();
|
|
1666
|
+
};
|
|
1667
|
+
_proto.resetData = function resetData() {
|
|
1668
|
+
this.lastHandleRect = this.slack = null;
|
|
1669
|
+
};
|
|
1670
|
+
_proto.runConstraints = function runConstraints(width2, height2) {
|
|
1671
|
+
var _this$props = this.props, minConstraints = _this$props.minConstraints, maxConstraints = _this$props.maxConstraints, lockAspectRatio = _this$props.lockAspectRatio;
|
|
1672
|
+
if (!minConstraints && !maxConstraints && !lockAspectRatio) return [width2, height2];
|
|
1673
|
+
if (lockAspectRatio) {
|
|
1674
|
+
var ratio = this.props.width / this.props.height;
|
|
1675
|
+
var deltaW = width2 - this.props.width;
|
|
1676
|
+
var deltaH = height2 - this.props.height;
|
|
1677
|
+
if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {
|
|
1678
|
+
height2 = width2 / ratio;
|
|
1679
|
+
} else {
|
|
1680
|
+
width2 = height2 * ratio;
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
var oldW = width2, oldH = height2;
|
|
1684
|
+
var _ref = this.slack || [0, 0], slackW = _ref[0], slackH = _ref[1];
|
|
1685
|
+
width2 += slackW;
|
|
1686
|
+
height2 += slackH;
|
|
1687
|
+
if (minConstraints) {
|
|
1688
|
+
width2 = Math.max(minConstraints[0], width2);
|
|
1689
|
+
height2 = Math.max(minConstraints[1], height2);
|
|
1690
|
+
}
|
|
1691
|
+
if (maxConstraints) {
|
|
1692
|
+
width2 = Math.min(maxConstraints[0], width2);
|
|
1693
|
+
height2 = Math.min(maxConstraints[1], height2);
|
|
1694
|
+
}
|
|
1695
|
+
this.slack = [slackW + (oldW - width2), slackH + (oldH - height2)];
|
|
1696
|
+
return [width2, height2];
|
|
1697
|
+
};
|
|
1698
|
+
_proto.resizeHandler = function resizeHandler(handlerName, axis) {
|
|
1699
|
+
var _this2 = this;
|
|
1700
|
+
return function(e, _ref2) {
|
|
1701
|
+
var node = _ref2.node, deltaX = _ref2.deltaX, deltaY = _ref2.deltaY;
|
|
1702
|
+
if (handlerName === "onResizeStart") _this2.resetData();
|
|
1703
|
+
var canDragX2 = (_this2.props.axis === "both" || _this2.props.axis === "x") && axis !== "n" && axis !== "s";
|
|
1704
|
+
var canDragY2 = (_this2.props.axis === "both" || _this2.props.axis === "y") && axis !== "e" && axis !== "w";
|
|
1705
|
+
if (!canDragX2 && !canDragY2) return;
|
|
1706
|
+
var axisV = axis[0];
|
|
1707
|
+
var axisH = axis[axis.length - 1];
|
|
1708
|
+
var handleRect = node.getBoundingClientRect();
|
|
1709
|
+
if (_this2.lastHandleRect != null) {
|
|
1710
|
+
if (axisH === "w") {
|
|
1711
|
+
var deltaLeftSinceLast = handleRect.left - _this2.lastHandleRect.left;
|
|
1712
|
+
deltaX += deltaLeftSinceLast;
|
|
1713
|
+
}
|
|
1714
|
+
if (axisV === "n") {
|
|
1715
|
+
var deltaTopSinceLast = handleRect.top - _this2.lastHandleRect.top;
|
|
1716
|
+
deltaY += deltaTopSinceLast;
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
_this2.lastHandleRect = handleRect;
|
|
1720
|
+
if (axisH === "w") deltaX = -deltaX;
|
|
1721
|
+
if (axisV === "n") deltaY = -deltaY;
|
|
1722
|
+
var width2 = _this2.props.width + (canDragX2 ? deltaX / _this2.props.transformScale : 0);
|
|
1723
|
+
var height2 = _this2.props.height + (canDragY2 ? deltaY / _this2.props.transformScale : 0);
|
|
1724
|
+
var _this2$runConstraints = _this2.runConstraints(width2, height2);
|
|
1725
|
+
width2 = _this2$runConstraints[0];
|
|
1726
|
+
height2 = _this2$runConstraints[1];
|
|
1727
|
+
var dimensionsChanged = width2 !== _this2.props.width || height2 !== _this2.props.height;
|
|
1728
|
+
var cb = typeof _this2.props[handlerName] === "function" ? _this2.props[handlerName] : null;
|
|
1729
|
+
var shouldSkipCb = handlerName === "onResize" && !dimensionsChanged;
|
|
1730
|
+
if (cb && !shouldSkipCb) {
|
|
1731
|
+
e.persist == null ? void 0 : e.persist();
|
|
1732
|
+
cb(e, {
|
|
1733
|
+
node,
|
|
1734
|
+
size: {
|
|
1735
|
+
width: width2,
|
|
1736
|
+
height: height2
|
|
1737
|
+
},
|
|
1738
|
+
handle: axis
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
if (handlerName === "onResizeStop") _this2.resetData();
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
_proto.renderResizeHandle = function renderResizeHandle(handleAxis, ref) {
|
|
1745
|
+
var handle = this.props.handle;
|
|
1746
|
+
if (!handle) {
|
|
1747
|
+
return /* @__PURE__ */ React$1.createElement("span", {
|
|
1748
|
+
className: "react-resizable-handle react-resizable-handle-" + handleAxis,
|
|
1749
|
+
ref
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
if (typeof handle === "function") {
|
|
1753
|
+
return handle(handleAxis, ref);
|
|
1754
|
+
}
|
|
1755
|
+
var isDOMElement = typeof handle.type === "string";
|
|
1756
|
+
var props = _objectSpread$1({
|
|
1757
|
+
ref
|
|
1758
|
+
}, isDOMElement ? {} : {
|
|
1759
|
+
handleAxis
|
|
1760
|
+
});
|
|
1761
|
+
return /* @__PURE__ */ React$1.cloneElement(handle, props);
|
|
1762
|
+
};
|
|
1763
|
+
_proto.render = function render() {
|
|
1764
|
+
var _this3 = this;
|
|
1765
|
+
var _this$props2 = this.props, children = _this$props2.children, className = _this$props2.className, draggableOpts = _this$props2.draggableOpts;
|
|
1766
|
+
_this$props2.width;
|
|
1767
|
+
_this$props2.height;
|
|
1768
|
+
_this$props2.handle;
|
|
1769
|
+
_this$props2.handleSize;
|
|
1770
|
+
_this$props2.lockAspectRatio;
|
|
1771
|
+
_this$props2.axis;
|
|
1772
|
+
_this$props2.minConstraints;
|
|
1773
|
+
_this$props2.maxConstraints;
|
|
1774
|
+
_this$props2.onResize;
|
|
1775
|
+
_this$props2.onResizeStop;
|
|
1776
|
+
_this$props2.onResizeStart;
|
|
1777
|
+
var resizeHandles = _this$props2.resizeHandles;
|
|
1778
|
+
_this$props2.transformScale;
|
|
1779
|
+
var p = _objectWithoutPropertiesLoose$1(_this$props2, _excluded$1);
|
|
1780
|
+
return (0, _utils.cloneElement)(children, _objectSpread$1(_objectSpread$1({}, p), {}, {
|
|
1781
|
+
className: (className ? className + " " : "") + "react-resizable",
|
|
1782
|
+
children: [].concat(children.props.children, resizeHandles.map(function(handleAxis) {
|
|
1783
|
+
var _this3$handleRefs$han;
|
|
1784
|
+
var ref = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /* @__PURE__ */ React$1.createRef();
|
|
1785
|
+
return /* @__PURE__ */ React$1.createElement(_reactDraggable.DraggableCore, _extends$1({}, draggableOpts, {
|
|
1786
|
+
nodeRef: ref,
|
|
1787
|
+
key: "resizableHandle-" + handleAxis,
|
|
1788
|
+
onStop: _this3.resizeHandler("onResizeStop", handleAxis),
|
|
1789
|
+
onStart: _this3.resizeHandler("onResizeStart", handleAxis),
|
|
1790
|
+
onDrag: _this3.resizeHandler("onResize", handleAxis)
|
|
1791
|
+
}), _this3.renderResizeHandle(handleAxis, ref));
|
|
1792
|
+
}))
|
|
1793
|
+
}));
|
|
1794
|
+
};
|
|
1795
|
+
return Resizable2;
|
|
1796
|
+
}(React$1.Component);
|
|
1797
|
+
Resizable$2.default = Resizable$1;
|
|
1798
|
+
Resizable$1.propTypes = _propTypes$1.resizableProps;
|
|
1799
|
+
Resizable$1.defaultProps = {
|
|
1800
|
+
axis: "both",
|
|
1801
|
+
handleSize: [20, 20],
|
|
1802
|
+
lockAspectRatio: false,
|
|
1803
|
+
minConstraints: [20, 20],
|
|
1804
|
+
maxConstraints: [Infinity, Infinity],
|
|
1805
|
+
resizeHandles: ["se"],
|
|
1806
|
+
transformScale: 1
|
|
1807
|
+
};
|
|
1808
|
+
var ResizableBox$2 = {};
|
|
1809
|
+
ResizableBox$2.__esModule = true;
|
|
1810
|
+
ResizableBox$2.default = void 0;
|
|
1811
|
+
var React = _interopRequireWildcard(React__default);
|
|
1812
|
+
var _propTypes = _interopRequireDefault(require$$1);
|
|
1813
|
+
var _Resizable = _interopRequireDefault(Resizable$2);
|
|
1814
|
+
var _propTypes2 = propTypes;
|
|
1815
|
+
var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
1816
|
+
function _interopRequireDefault(obj) {
|
|
1817
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
1818
|
+
}
|
|
1819
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
1820
|
+
if (typeof WeakMap !== "function") return null;
|
|
1821
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
1822
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
1823
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
|
|
1824
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
1825
|
+
})(nodeInterop);
|
|
1826
|
+
}
|
|
1827
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
1828
|
+
if (obj && obj.__esModule) {
|
|
1829
|
+
return obj;
|
|
1830
|
+
}
|
|
1831
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
1832
|
+
return { default: obj };
|
|
1833
|
+
}
|
|
1834
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
1835
|
+
if (cache && cache.has(obj)) {
|
|
1836
|
+
return cache.get(obj);
|
|
1837
|
+
}
|
|
1838
|
+
var newObj = {};
|
|
1839
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1840
|
+
for (var key in obj) {
|
|
1841
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
1842
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
1843
|
+
if (desc && (desc.get || desc.set)) {
|
|
1844
|
+
Object.defineProperty(newObj, key, desc);
|
|
1845
|
+
} else {
|
|
1846
|
+
newObj[key] = obj[key];
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
newObj.default = obj;
|
|
1851
|
+
if (cache) {
|
|
1852
|
+
cache.set(obj, newObj);
|
|
1853
|
+
}
|
|
1854
|
+
return newObj;
|
|
1855
|
+
}
|
|
1856
|
+
function _extends() {
|
|
1857
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
1858
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1859
|
+
var source = arguments[i];
|
|
1860
|
+
for (var key in source) {
|
|
1861
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1862
|
+
target[key] = source[key];
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
return target;
|
|
1867
|
+
};
|
|
1868
|
+
return _extends.apply(this, arguments);
|
|
1869
|
+
}
|
|
1870
|
+
function ownKeys(object, enumerableOnly) {
|
|
1871
|
+
var keys = Object.keys(object);
|
|
1872
|
+
if (Object.getOwnPropertySymbols) {
|
|
1873
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1874
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
1875
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
1876
|
+
})), keys.push.apply(keys, symbols);
|
|
1877
|
+
}
|
|
1878
|
+
return keys;
|
|
1879
|
+
}
|
|
1880
|
+
function _objectSpread(target) {
|
|
1881
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1882
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
1883
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
1884
|
+
_defineProperty(target, key, source[key]);
|
|
1885
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
1886
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
return target;
|
|
1890
|
+
}
|
|
1891
|
+
function _defineProperty(obj, key, value) {
|
|
1892
|
+
key = _toPropertyKey(key);
|
|
1893
|
+
if (key in obj) {
|
|
1894
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1895
|
+
} else {
|
|
1896
|
+
obj[key] = value;
|
|
1897
|
+
}
|
|
1898
|
+
return obj;
|
|
1899
|
+
}
|
|
1900
|
+
function _toPropertyKey(arg) {
|
|
1901
|
+
var key = _toPrimitive(arg, "string");
|
|
1902
|
+
return typeof key === "symbol" ? key : String(key);
|
|
1903
|
+
}
|
|
1904
|
+
function _toPrimitive(input, hint) {
|
|
1905
|
+
if (typeof input !== "object" || input === null) return input;
|
|
1906
|
+
var prim = input[Symbol.toPrimitive];
|
|
1907
|
+
if (prim !== void 0) {
|
|
1908
|
+
var res = prim.call(input, hint || "default");
|
|
1909
|
+
if (typeof res !== "object") return res;
|
|
1910
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1911
|
+
}
|
|
1912
|
+
return (hint === "string" ? String : Number)(input);
|
|
1913
|
+
}
|
|
1914
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1915
|
+
if (source == null) return {};
|
|
1916
|
+
var target = {};
|
|
1917
|
+
var sourceKeys = Object.keys(source);
|
|
1918
|
+
var key, i;
|
|
1919
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
1920
|
+
key = sourceKeys[i];
|
|
1921
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
1922
|
+
target[key] = source[key];
|
|
1923
|
+
}
|
|
1924
|
+
return target;
|
|
1925
|
+
}
|
|
1926
|
+
function _inheritsLoose(subClass, superClass) {
|
|
1927
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
1928
|
+
subClass.prototype.constructor = subClass;
|
|
1929
|
+
_setPrototypeOf(subClass, superClass);
|
|
1930
|
+
}
|
|
1931
|
+
function _setPrototypeOf(o, p) {
|
|
1932
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
1933
|
+
o2.__proto__ = p2;
|
|
1934
|
+
return o2;
|
|
1935
|
+
};
|
|
1936
|
+
return _setPrototypeOf(o, p);
|
|
1937
|
+
}
|
|
1938
|
+
var ResizableBox$1 = /* @__PURE__ */ function(_React$Component) {
|
|
1939
|
+
_inheritsLoose(ResizableBox2, _React$Component);
|
|
1940
|
+
function ResizableBox2() {
|
|
1941
|
+
var _this;
|
|
1942
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1943
|
+
args[_key] = arguments[_key];
|
|
1944
|
+
}
|
|
1945
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
1946
|
+
_this.state = {
|
|
1947
|
+
width: _this.props.width,
|
|
1948
|
+
height: _this.props.height,
|
|
1949
|
+
propsWidth: _this.props.width,
|
|
1950
|
+
propsHeight: _this.props.height
|
|
1951
|
+
};
|
|
1952
|
+
_this.onResize = function(e, data) {
|
|
1953
|
+
var size = data.size;
|
|
1954
|
+
if (_this.props.onResize) {
|
|
1955
|
+
e.persist == null ? void 0 : e.persist();
|
|
1956
|
+
_this.setState(size, function() {
|
|
1957
|
+
return _this.props.onResize && _this.props.onResize(e, data);
|
|
1958
|
+
});
|
|
1959
|
+
} else {
|
|
1960
|
+
_this.setState(size);
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
return _this;
|
|
1964
|
+
}
|
|
1965
|
+
ResizableBox2.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
|
|
1966
|
+
if (state.propsWidth !== props.width || state.propsHeight !== props.height) {
|
|
1967
|
+
return {
|
|
1968
|
+
width: props.width,
|
|
1969
|
+
height: props.height,
|
|
1970
|
+
propsWidth: props.width,
|
|
1971
|
+
propsHeight: props.height
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
return null;
|
|
1975
|
+
};
|
|
1976
|
+
var _proto = ResizableBox2.prototype;
|
|
1977
|
+
_proto.render = function render() {
|
|
1978
|
+
var _this$props = this.props, handle = _this$props.handle, handleSize = _this$props.handleSize;
|
|
1979
|
+
_this$props.onResize;
|
|
1980
|
+
var onResizeStart = _this$props.onResizeStart, onResizeStop = _this$props.onResizeStop, draggableOpts = _this$props.draggableOpts, minConstraints = _this$props.minConstraints, maxConstraints = _this$props.maxConstraints, lockAspectRatio = _this$props.lockAspectRatio, axis = _this$props.axis;
|
|
1981
|
+
_this$props.width;
|
|
1982
|
+
_this$props.height;
|
|
1983
|
+
var resizeHandles = _this$props.resizeHandles, style = _this$props.style, transformScale = _this$props.transformScale, props = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
1984
|
+
return /* @__PURE__ */ React.createElement(_Resizable.default, {
|
|
1985
|
+
axis,
|
|
1986
|
+
draggableOpts,
|
|
1987
|
+
handle,
|
|
1988
|
+
handleSize,
|
|
1989
|
+
height: this.state.height,
|
|
1990
|
+
lockAspectRatio,
|
|
1991
|
+
maxConstraints,
|
|
1992
|
+
minConstraints,
|
|
1993
|
+
onResizeStart,
|
|
1994
|
+
onResize: this.onResize,
|
|
1995
|
+
onResizeStop,
|
|
1996
|
+
resizeHandles,
|
|
1997
|
+
transformScale,
|
|
1998
|
+
width: this.state.width
|
|
1999
|
+
}, /* @__PURE__ */ React.createElement("div", _extends({}, props, {
|
|
2000
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
2001
|
+
width: this.state.width + "px",
|
|
2002
|
+
height: this.state.height + "px"
|
|
2003
|
+
})
|
|
2004
|
+
})));
|
|
2005
|
+
};
|
|
2006
|
+
return ResizableBox2;
|
|
2007
|
+
}(React.Component);
|
|
2008
|
+
ResizableBox$2.default = ResizableBox$1;
|
|
2009
|
+
ResizableBox$1.propTypes = _objectSpread(_objectSpread({}, _propTypes2.resizableProps), {}, {
|
|
2010
|
+
children: _propTypes.default.element
|
|
2011
|
+
});
|
|
2012
|
+
reactResizable.exports = function() {
|
|
2013
|
+
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
2014
|
+
};
|
|
2015
|
+
var Resizable = reactResizable.exports.Resizable = Resizable$2.default;
|
|
2016
|
+
var ResizableBox = reactResizable.exports.ResizableBox = ResizableBox$2.default;
|
|
3
2017
|
var main = { exports: {} };
|
|
4
2018
|
(function(module, exports) {
|
|
5
2019
|
!function(e, t) {
|
|
@@ -2571,6 +4585,164 @@ var main = { exports: {} };
|
|
|
2571
4585
|
})(main);
|
|
2572
4586
|
var mainExports = main.exports;
|
|
2573
4587
|
const ReactJson = /* @__PURE__ */ getDefaultExportFromCjs(mainExports);
|
|
4588
|
+
var lib = { exports: {} };
|
|
4589
|
+
(function(module, exports) {
|
|
4590
|
+
!function(e, t) {
|
|
4591
|
+
module.exports = t(require$$1, React__default);
|
|
4592
|
+
}(window, function(e, t) {
|
|
4593
|
+
return function(e2) {
|
|
4594
|
+
var t2 = {};
|
|
4595
|
+
function n(o) {
|
|
4596
|
+
if (t2[o]) return t2[o].exports;
|
|
4597
|
+
var r = t2[o] = { i: o, l: false, exports: {} };
|
|
4598
|
+
return e2[o].call(r.exports, r, r.exports, n), r.l = true, r.exports;
|
|
4599
|
+
}
|
|
4600
|
+
return n.m = e2, n.c = t2, n.d = function(e3, t3, o) {
|
|
4601
|
+
n.o(e3, t3) || Object.defineProperty(e3, t3, { enumerable: true, get: o });
|
|
4602
|
+
}, n.r = function(e3) {
|
|
4603
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e3, "__esModule", { value: true });
|
|
4604
|
+
}, n.t = function(e3, t3) {
|
|
4605
|
+
if (1 & t3 && (e3 = n(e3)), 8 & t3) return e3;
|
|
4606
|
+
if (4 & t3 && "object" == typeof e3 && e3 && e3.__esModule) return e3;
|
|
4607
|
+
var o = /* @__PURE__ */ Object.create(null);
|
|
4608
|
+
if (n.r(o), Object.defineProperty(o, "default", { enumerable: true, value: e3 }), 2 & t3 && "string" != typeof e3) for (var r in e3) n.d(o, r, function(t4) {
|
|
4609
|
+
return e3[t4];
|
|
4610
|
+
}.bind(null, r));
|
|
4611
|
+
return o;
|
|
4612
|
+
}, n.n = function(e3) {
|
|
4613
|
+
var t3 = e3 && e3.__esModule ? function() {
|
|
4614
|
+
return e3.default;
|
|
4615
|
+
} : function() {
|
|
4616
|
+
return e3;
|
|
4617
|
+
};
|
|
4618
|
+
return n.d(t3, "a", t3), t3;
|
|
4619
|
+
}, n.o = function(e3, t3) {
|
|
4620
|
+
return Object.prototype.hasOwnProperty.call(e3, t3);
|
|
4621
|
+
}, n.p = "", n(n.s = 2);
|
|
4622
|
+
}([function(t2, n) {
|
|
4623
|
+
t2.exports = e;
|
|
4624
|
+
}, function(e2, n) {
|
|
4625
|
+
e2.exports = t;
|
|
4626
|
+
}, function(e2, t2, n) {
|
|
4627
|
+
e2.exports = n(3);
|
|
4628
|
+
}, function(e2, t2, n) {
|
|
4629
|
+
n.r(t2);
|
|
4630
|
+
var o = n(1), r = n.n(o), i = n(0), a = n.n(i);
|
|
4631
|
+
function s(e3) {
|
|
4632
|
+
var t3 = e3.size || 0, n2 = e3.percentage ? "%" : "px", o2 = "layout-pane", i2 = {};
|
|
4633
|
+
return e3.primary ? o2 += " layout-pane-primary" : e3.vertical ? i2.height = "".concat(t3).concat(n2) : i2.width = "".concat(t3).concat(n2), r.a.createElement("div", { className: o2, style: i2 }, e3.children);
|
|
4634
|
+
}
|
|
4635
|
+
s.propTypes = { vertical: a.a.bool, primary: a.a.bool, size: a.a.number, percentage: a.a.bool, children: a.a.oneOfType([a.a.arrayOf(a.a.node), a.a.node]) }, s.defaultProps = { vertical: false, primary: false, size: 0, percentage: false, children: [] };
|
|
4636
|
+
var c = s;
|
|
4637
|
+
function l(e3) {
|
|
4638
|
+
return (l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e4) {
|
|
4639
|
+
return typeof e4;
|
|
4640
|
+
} : function(e4) {
|
|
4641
|
+
return e4 && "function" == typeof Symbol && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
|
|
4642
|
+
})(e3);
|
|
4643
|
+
}
|
|
4644
|
+
function u(e3, t3) {
|
|
4645
|
+
for (var n2 = 0; n2 < t3.length; n2++) {
|
|
4646
|
+
var o2 = t3[n2];
|
|
4647
|
+
o2.enumerable = o2.enumerable || false, o2.configurable = true, "value" in o2 && (o2.writable = true), Object.defineProperty(e3, o2.key, o2);
|
|
4648
|
+
}
|
|
4649
|
+
}
|
|
4650
|
+
function p(e3) {
|
|
4651
|
+
return (p = Object.setPrototypeOf ? Object.getPrototypeOf : function(e4) {
|
|
4652
|
+
return e4.__proto__ || Object.getPrototypeOf(e4);
|
|
4653
|
+
})(e3);
|
|
4654
|
+
}
|
|
4655
|
+
function d(e3, t3) {
|
|
4656
|
+
return (d = Object.setPrototypeOf || function(e4, t4) {
|
|
4657
|
+
return e4.__proto__ = t4, e4;
|
|
4658
|
+
})(e3, t3);
|
|
4659
|
+
}
|
|
4660
|
+
function h(e3) {
|
|
4661
|
+
if (void 0 === e3) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4662
|
+
return e3;
|
|
4663
|
+
}
|
|
4664
|
+
function f() {
|
|
4665
|
+
if (document.body.createTextRange) {
|
|
4666
|
+
var e3 = document.body.createTextRange();
|
|
4667
|
+
e3.collapse(), e3.select();
|
|
4668
|
+
} else window.getSelection ? window.getSelection().empty ? window.getSelection().empty() : window.getSelection().removeAllRanges && window.getSelection().removeAllRanges() : document.selection && document.selection.empty();
|
|
4669
|
+
}
|
|
4670
|
+
var y = function(e3) {
|
|
4671
|
+
function t3(e4) {
|
|
4672
|
+
var n3, o3, r2;
|
|
4673
|
+
return function(e5, t4) {
|
|
4674
|
+
if (!(e5 instanceof t4)) throw new TypeError("Cannot call a class as a function");
|
|
4675
|
+
}(this, t3), o3 = this, (n3 = !(r2 = p(t3).call(this, e4)) || "object" !== l(r2) && "function" != typeof r2 ? h(o3) : r2).handleResize = n3.handleResize.bind(h(h(n3))), n3.handleMouseMove = n3.handleMouseMove.bind(h(h(n3))), n3.handleMouseUp = n3.handleMouseUp.bind(h(h(n3))), n3.handleTouchMove = n3.handleTouchMove.bind(h(h(n3))), n3.handleSplitterMouseDown = n3.handleSplitterMouseDown.bind(h(h(n3))), n3.state = { secondaryPaneSize: 0, resizing: false }, n3;
|
|
4676
|
+
}
|
|
4677
|
+
var n2, o2;
|
|
4678
|
+
return function(e4, t4) {
|
|
4679
|
+
if ("function" != typeof t4 && null !== t4) throw new TypeError("Super expression must either be null or a function");
|
|
4680
|
+
e4.prototype = Object.create(t4 && t4.prototype, { constructor: { value: e4, writable: true, configurable: true } }), t4 && d(e4, t4);
|
|
4681
|
+
}(t3, r.a.Component), n2 = t3, (o2 = [{ key: "componentDidMount", value: function() {
|
|
4682
|
+
var e4;
|
|
4683
|
+
if (window.addEventListener("resize", this.handleResize), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchend", this.handleMouseUp), document.addEventListener("touchmove", this.handleTouchMove), void 0 !== this.props.secondaryInitialSize) e4 = this.props.secondaryInitialSize;
|
|
4684
|
+
else {
|
|
4685
|
+
var t4, n3 = this.container.getBoundingClientRect();
|
|
4686
|
+
t4 = this.splitter ? this.splitter.getBoundingClientRect() : { width: 4, height: 4 }, e4 = this.getSecondaryPaneSize(n3, t4, { left: n3.left + (n3.width - t4.width) / 2, top: n3.top + (n3.height - t4.height) / 2 }, false);
|
|
4687
|
+
}
|
|
4688
|
+
this.setState({ secondaryPaneSize: e4 });
|
|
4689
|
+
} }, { key: "componentDidUpdate", value: function(e4, t4) {
|
|
4690
|
+
t4.secondaryPaneSize !== this.state.secondaryPaneSize && this.props.onSecondaryPaneSizeChange && this.props.onSecondaryPaneSizeChange(this.state.secondaryPaneSize), t4.resizing !== this.state.resizing && (this.state.resizing ? this.props.onDragStart && this.props.onDragStart() : this.props.onDragEnd && this.props.onDragEnd());
|
|
4691
|
+
} }, { key: "componentWillUnmount", value: function() {
|
|
4692
|
+
window.removeEventListener("resize", this.handleResize), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("mousemove", this.handleMouseMove), document.removeEventListener("touchend", this.handleMouseUp), document.removeEventListener("touchmove", this.handleTouchMove);
|
|
4693
|
+
} }, { key: "getSecondaryPaneSize", value: function(e4, t4, n3, o3) {
|
|
4694
|
+
var r2, i2, a2, s2;
|
|
4695
|
+
this.props.vertical ? (r2 = e4.height, i2 = t4.height, a2 = n3.top - e4.top) : (r2 = e4.width, i2 = t4.width, a2 = n3.left - e4.left), o3 && (a2 -= i2 / 2), a2 < 0 ? a2 = 0 : a2 > r2 - i2 && (a2 = r2 - i2);
|
|
4696
|
+
var c2 = r2 - i2 - (s2 = 1 === this.props.primaryIndex ? a2 : r2 - i2 - a2);
|
|
4697
|
+
return this.props.percentage && (s2 = 100 * s2 / r2, c2 = 100 * c2 / r2, i2 = 100 * i2 / r2, r2 = 100), c2 < this.props.primaryMinSize ? s2 = Math.max(s2 - (this.props.primaryMinSize - c2), 0) : s2 < this.props.secondaryMinSize && (s2 = Math.min(r2 - i2 - this.props.primaryMinSize, this.props.secondaryMinSize)), s2;
|
|
4698
|
+
} }, { key: "handleResize", value: function() {
|
|
4699
|
+
if (this.splitter && !this.props.percentage) {
|
|
4700
|
+
var e4 = this.container.getBoundingClientRect(), t4 = this.splitter.getBoundingClientRect(), n3 = this.getSecondaryPaneSize(e4, t4, { left: t4.left, top: t4.top }, false);
|
|
4701
|
+
this.setState({ secondaryPaneSize: n3 });
|
|
4702
|
+
}
|
|
4703
|
+
} }, { key: "handleMouseMove", value: function(e4) {
|
|
4704
|
+
if (this.state.resizing) {
|
|
4705
|
+
var t4 = this.container.getBoundingClientRect(), n3 = this.splitter.getBoundingClientRect(), o3 = this.getSecondaryPaneSize(t4, n3, { left: e4.clientX, top: e4.clientY }, true);
|
|
4706
|
+
f(), this.setState({ secondaryPaneSize: o3 });
|
|
4707
|
+
}
|
|
4708
|
+
} }, { key: "handleTouchMove", value: function(e4) {
|
|
4709
|
+
this.handleMouseMove(e4.changedTouches[0]);
|
|
4710
|
+
} }, { key: "handleSplitterMouseDown", value: function() {
|
|
4711
|
+
f(), this.setState({ resizing: true });
|
|
4712
|
+
} }, { key: "handleMouseUp", value: function() {
|
|
4713
|
+
this.setState(function(e4) {
|
|
4714
|
+
return e4.resizing ? { resizing: false } : null;
|
|
4715
|
+
});
|
|
4716
|
+
} }, { key: "render", value: function() {
|
|
4717
|
+
var e4 = this, t4 = "splitter-layout";
|
|
4718
|
+
this.props.customClassName && (t4 += " ".concat(this.props.customClassName)), this.props.vertical && (t4 += " splitter-layout-vertical"), this.state.resizing && (t4 += " layout-changing");
|
|
4719
|
+
var n3 = r.a.Children.toArray(this.props.children).slice(0, 2);
|
|
4720
|
+
0 === n3.length && n3.push(r.a.createElement("div", null));
|
|
4721
|
+
for (var o3 = [], i2 = 0 !== this.props.primaryIndex && 1 !== this.props.primaryIndex ? 0 : this.props.primaryIndex, a2 = 0; a2 < n3.length; ++a2) {
|
|
4722
|
+
var s2 = true, l2 = null;
|
|
4723
|
+
n3.length > 1 && a2 !== i2 && (s2 = false, l2 = this.state.secondaryPaneSize), o3.push(r.a.createElement(c, { vertical: this.props.vertical, percentage: this.props.percentage, primary: s2, size: l2 }, n3[a2]));
|
|
4724
|
+
}
|
|
4725
|
+
return r.a.createElement("div", { className: t4, ref: function(t5) {
|
|
4726
|
+
e4.container = t5;
|
|
4727
|
+
} }, o3[0], o3.length > 1 && r.a.createElement("div", { role: "separator", className: "layout-splitter", ref: function(t5) {
|
|
4728
|
+
e4.splitter = t5;
|
|
4729
|
+
}, onMouseDown: this.handleSplitterMouseDown, onTouchStart: this.handleSplitterMouseDown }), o3.length > 1 && o3[1]);
|
|
4730
|
+
} }]) && u(n2.prototype, o2), t3;
|
|
4731
|
+
}();
|
|
4732
|
+
y.propTypes = { customClassName: a.a.string, vertical: a.a.bool, percentage: a.a.bool, primaryIndex: a.a.number, primaryMinSize: a.a.number, secondaryInitialSize: a.a.number, secondaryMinSize: a.a.number, onDragStart: a.a.func, onDragEnd: a.a.func, onSecondaryPaneSizeChange: a.a.func, children: a.a.arrayOf(a.a.node) }, y.defaultProps = { customClassName: "", vertical: false, percentage: false, primaryIndex: 0, primaryMinSize: 0, secondaryInitialSize: void 0, secondaryMinSize: 0, onDragStart: null, onDragEnd: null, onSecondaryPaneSizeChange: null, children: [] };
|
|
4733
|
+
var m = y;
|
|
4734
|
+
t2.default = m;
|
|
4735
|
+
}]);
|
|
4736
|
+
});
|
|
4737
|
+
})(lib);
|
|
4738
|
+
var libExports = lib.exports;
|
|
4739
|
+
const SplitterLayout = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
2574
4740
|
export {
|
|
2575
|
-
|
|
4741
|
+
DraggableCore_1 as D,
|
|
4742
|
+
PropagateLoader as P,
|
|
4743
|
+
Resizable as R,
|
|
4744
|
+
SplitterLayout as S,
|
|
4745
|
+
ResizableBox as a,
|
|
4746
|
+
Draggable$1 as b,
|
|
4747
|
+
ReactJson as c
|
|
2576
4748
|
};
|