@apipass/design-system 8.3.0 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/embedded-styles.js +2 -2
- package/dist/lib/lib.index.cjs +1 -1
- package/dist/lib/lib.index.js +798 -796
- package/dist/lib/lib.index.js.map +1 -1
- package/dist/lib/style.css +1 -1
- package/dist/lib/ui/components/ConfirmDialog/ConfirmDialog.cjs +1 -1
- package/dist/lib/ui/components/DataTable/DataTable.cjs +1 -1
- package/dist/lib/ui/components/Widget/Widget.cjs +1 -1
- package/dist/lib/ui/components/WidgetGrid/WidgetGrid.cjs +1 -1
- package/dist/lib/ui/components/charts/BarChart/BarChart.cjs +1 -1
- package/dist/lib/ui/components/charts/ChartColorPicker/ChartColorPicker.cjs +1 -1
- package/dist/lib/ui/components/charts/ChartLegend/use-chart-legend.cjs +1 -1
- package/dist/lib/ui/components/charts/PieChart/PieChart.cjs +1 -1
- package/dist/lib/ui/components/charts/TimeSeriesChart/TimeSeriesChart.cjs +1 -1
- package/dist/lib/ui/components/charts/TopList/TopList.cjs +1 -1
- package/dist/lib/ui/primitives/Avatar/Avatar.js +6 -6
- package/dist/lib/ui/primitives/BrandLoader/BrandLoader.cjs +1 -1
- package/dist/lib/ui/primitives/Button/Button.cjs.map +1 -1
- package/dist/lib/ui/primitives/Button/Button.js +6 -6
- package/dist/lib/ui/primitives/Button/Button.js.map +1 -1
- package/dist/lib/ui/primitives/CodeBlock/CodeBlock.cjs +1 -1
- package/dist/lib/ui/primitives/CodeEditor/CodeEditor.cjs +1 -1
- package/dist/lib/ui/primitives/ComboBox/ComboBox.cjs +1 -1
- package/dist/lib/ui/primitives/ComboBox/ComboBox.cjs.map +1 -1
- package/dist/lib/ui/primitives/ComboBox/ComboBox.js +40 -56
- package/dist/lib/ui/primitives/ComboBox/ComboBox.js.map +1 -1
- package/dist/lib/ui/primitives/ComboBox/MultiComboBox.cjs +2 -0
- package/dist/lib/ui/primitives/ComboBox/MultiComboBox.cjs.map +1 -0
- package/dist/lib/ui/primitives/ComboBox/MultiComboBox.js +179 -0
- package/dist/lib/ui/primitives/ComboBox/MultiComboBox.js.map +1 -0
- package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.cjs +2 -0
- package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.cjs.map +1 -0
- package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.js +30 -0
- package/dist/lib/ui/primitives/ComboBox/comboBoxFocus.js.map +1 -0
- package/dist/lib/ui/primitives/DateRangePicker/DateRangePicker.cjs +1 -1
- package/dist/lib/ui/primitives/FileUpload/FileUpload.cjs +1 -1
- package/dist/lib/ui/primitives/FileUpload/FileUpload.js +24 -24
- package/dist/lib/ui/primitives/Image/Image.cjs +1 -1
- package/dist/lib/ui/primitives/Input/Input.cjs +1 -1
- package/dist/lib/ui/primitives/Input/Input.js +2 -2
- package/dist/lib/ui/primitives/JsonViewer/JsonEditor.cjs +1 -1
- package/dist/lib/ui/primitives/Link/Link.cjs +1 -1
- package/dist/lib/ui/primitives/Link/Link.js +3 -3
- package/dist/lib/ui/primitives/Menu/Menu.cjs +1 -1
- package/dist/lib/ui/primitives/Menu/Menu.js +28 -28
- package/dist/lib/ui/primitives/Search/Search.js +8 -8
- package/dist/lib/ui/primitives/Select/MultiSelect.cjs +1 -1
- package/dist/lib/ui/primitives/Select/MultiSelect.js +17 -17
- package/dist/lib/ui/primitives/Select/MultiSelect.js.map +1 -1
- package/dist/lib/ui/primitives/Tag/Tag.cjs +1 -1
- package/dist/lib/ui/primitives/Tag/Tag.cjs.map +1 -1
- package/dist/lib/ui/primitives/Tag/Tag.js +47 -38
- package/dist/lib/ui/primitives/Tag/Tag.js.map +1 -1
- package/dist/lib/ui/primitives/Textarea/Textarea.cjs +1 -1
- package/dist/lib/ui/primitives/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/ui/primitives/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/lib/ui/primitives/Tooltip/Tooltip.js +29 -29
- package/dist/lib/ui/primitives/Tooltip/Tooltip.js.map +1 -1
- package/dist/lib/ui/utils/AnchorOrButton.cjs +1 -1
- package/dist/lib/ui/utils/AnchorOrButton.cjs.map +1 -1
- package/dist/lib/ui/utils/AnchorOrButton.js +10 -12
- package/dist/lib/ui/utils/AnchorOrButton.js.map +1 -1
- package/dist/lib/vendor/@monaco-editor/react/dist/index.cjs +1 -1
- package/dist/lib/vendor/@monaco-editor/react/dist/index.cjs.map +1 -1
- package/dist/lib/vendor/@monaco-editor/react/dist/index.js +41 -41
- package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.js +28 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/createEventHandler.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.js +93 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/createKeyboardShortcutHandler.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.js +20 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/focusSafely.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.js +32 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocus.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.js +94 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusVisible.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusable.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusable.cjs.map +1 -0
- package/dist/lib/vendor/{@react-aria/interactions/dist → react-aria/dist/private/interactions}/useFocusable.js +10 -10
- package/dist/lib/vendor/react-aria/dist/private/interactions/useFocusable.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.js +82 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useHover.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.js +44 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/useKeyboard.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/utils.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/utils.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/utils.js +59 -0
- package/dist/lib/vendor/react-aria/dist/private/interactions/utils.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.js +52 -0
- package/dist/lib/vendor/react-aria/dist/private/ssr/SSRProvider.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.js +62 -0
- package/dist/lib/vendor/react-aria/dist/private/tooltip/useTooltipTrigger.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/chain.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/chain.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/chain.js +9 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/chain.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.js +36 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/domHelpers.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.js +9 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/focusWithoutScrolling.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/isVirtualEvent.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/isVirtualEvent.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.js +24 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeProps.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.js +22 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/mergeRefs.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/openLink.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/openLink.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/openLink.js +26 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/openLink.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/platform.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/platform.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/platform.js +40 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/platform.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.js +43 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/runAfterTransition.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.js +33 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/shadowdom/DOMFunctions.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.js +35 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useGlobalListeners.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useId.cjs +2 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useId.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useId.js +44 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useId.js.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useLayoutEffect.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useLayoutEffect.js.map +1 -0
- package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/useSyncRef.cjs +1 -1
- package/dist/lib/vendor/react-aria/dist/private/utils/useSyncRef.cjs.map +1 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useSyncRef.js +13 -0
- package/dist/lib/vendor/react-aria/dist/private/utils/useSyncRef.js.map +1 -0
- package/dist/lib/vendor/react-draggable/build/cjs/Draggable.cjs +1 -1
- package/dist/lib/vendor/react-draggable/build/cjs/Draggable.js +8 -8
- package/dist/lib/vendor/react-grid-layout/build/GridItem.cjs +1 -1
- package/dist/lib/vendor/react-grid-layout/build/GridItem.js +7 -7
- package/dist/lib/vendor/react-grid-layout/build/ReactGridLayout.cjs +1 -1
- package/dist/lib/vendor/react-grid-layout/build/ReactGridLayout.js +7 -7
- package/dist/lib/vendor/react-grid-layout/build/ReactGridLayout.js.map +1 -1
- package/dist/lib/vendor/react-grid-layout/build/ResponsiveReactGridLayout.cjs +1 -1
- package/dist/lib/vendor/react-grid-layout/build/ResponsiveReactGridLayout.js +10 -10
- package/dist/lib/vendor/react-grid-layout/build/ResponsiveReactGridLayout.js.map +1 -1
- package/dist/lib/vendor/react-grid-layout/build/components/WidthProvider.cjs +1 -1
- package/dist/lib/vendor/react-grid-layout/build/components/WidthProvider.js +8 -8
- package/dist/lib/vendor/react-grid-layout/build/components/WidthProvider.js.map +1 -1
- package/dist/lib/vendor/react-grid-layout/build/utils.cjs +1 -1
- package/dist/lib/vendor/react-grid-layout/build/utils.js +18 -18
- package/dist/lib/vendor/react-resizable/build/Resizable.cjs +1 -1
- package/dist/lib/vendor/react-resizable/build/Resizable.js +61 -61
- package/dist/lib/vendor/react-resizable/build/Resizable.js.map +1 -1
- package/dist/lib/vendor/react-resizable/build/ResizableBox.cjs +1 -1
- package/dist/lib/vendor/react-resizable/build/ResizableBox.js +7 -7
- package/dist/lib/vendor/react-resizable/build/ResizableBox.js.map +1 -1
- package/dist/lib/vendor/react-resizable/build/utils.cjs +1 -1
- package/dist/lib/vendor/react-resizable/build/utils.cjs.map +1 -1
- package/dist/lib/vendor/react-stately/dist/private/flags/flags.cjs +2 -0
- package/dist/lib/vendor/react-stately/dist/private/flags/flags.cjs.map +1 -0
- package/dist/lib/vendor/react-stately/dist/private/flags/flags.js +8 -0
- package/dist/lib/vendor/react-stately/dist/private/flags/flags.js.map +1 -0
- package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.cjs +2 -0
- package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.cjs.map +1 -0
- package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.js +32 -0
- package/dist/lib/vendor/react-stately/dist/private/overlays/useOverlayTriggerState.js.map +1 -0
- package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.cjs +2 -0
- package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.cjs.map +1 -0
- package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.js +43 -0
- package/dist/lib/vendor/react-stately/dist/private/tooltip/useTooltipTriggerState.js.map +1 -0
- package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.cjs +2 -0
- package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.cjs.map +1 -0
- package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.js +29 -0
- package/dist/lib/vendor/react-stately/dist/private/utils/useControlledState.js.map +1 -0
- package/dist/lib/vendor/react-toastify/dist/index.cjs +1 -1
- package/dist/lib/vendor/react-toastify/dist/index.js +10 -10
- package/dist/types/ui/primitives/ComboBox/MultiComboBox.d.ts +28 -0
- package/dist/types/ui/primitives/ComboBox/comboBoxFocus.d.ts +3 -0
- package/dist/types/ui/primitives/Tag/Tag.d.ts +2 -1
- package/dist/types/ui/primitives/index.d.ts +1 -0
- package/dist/types/ui/utils/AnchorOrButton.d.ts +3 -1
- package/package.json +3 -3
- package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.js +0 -29
- package/dist/lib/vendor/@react-aria/interactions/dist/createEventHandler.js.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.js +0 -18
- package/dist/lib/vendor/@react-aria/interactions/dist/focusSafely.js.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.js +0 -31
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocus.js.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.js +0 -66
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocusVisible.js.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocusable.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocusable.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useFocusable.js.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useHover.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/useHover.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useHover.js +0 -81
- package/dist/lib/vendor/@react-aria/interactions/dist/useHover.js.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.js +0 -13
- package/dist/lib/vendor/@react-aria/interactions/dist/useKeyboard.js.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/utils.cjs +0 -2
- package/dist/lib/vendor/@react-aria/interactions/dist/utils.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/interactions/dist/utils.js +0 -64
- package/dist/lib/vendor/@react-aria/interactions/dist/utils.js.map +0 -1
- package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.cjs +0 -2
- package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.js +0 -49
- package/dist/lib/vendor/@react-aria/ssr/dist/SSRProvider.js.map +0 -1
- package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.cjs +0 -2
- package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.js +0 -61
- package/dist/lib/vendor/@react-aria/tooltip/dist/useTooltipTrigger.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.js +0 -28
- package/dist/lib/vendor/@react-aria/utils/dist/DOMFunctions.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/chain.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/chain.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/chain.js +0 -9
- package/dist/lib/vendor/@react-aria/utils/dist/chain.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.js +0 -16
- package/dist/lib/vendor/@react-aria/utils/dist/domHelpers.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.js +0 -46
- package/dist/lib/vendor/@react-aria/utils/dist/focusWithoutScrolling.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/isVirtualEvent.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/isVirtualEvent.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.js +0 -23
- package/dist/lib/vendor/@react-aria/utils/dist/mergeProps.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/platform.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/platform.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/platform.js +0 -24
- package/dist/lib/vendor/@react-aria/utils/dist/platform.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.js +0 -36
- package/dist/lib/vendor/@react-aria/utils/dist/runAfterTransition.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.js +0 -19
- package/dist/lib/vendor/@react-aria/utils/dist/useEffectEvent.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.js +0 -35
- package/dist/lib/vendor/@react-aria/utils/dist/useGlobalListeners.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useId.cjs +0 -2
- package/dist/lib/vendor/@react-aria/utils/dist/useId.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useId.js +0 -43
- package/dist/lib/vendor/@react-aria/utils/dist/useId.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useLayoutEffect.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useLayoutEffect.js.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useSyncRef.cjs.map +0 -1
- package/dist/lib/vendor/@react-aria/utils/dist/useSyncRef.js +0 -13
- package/dist/lib/vendor/@react-aria/utils/dist/useSyncRef.js.map +0 -1
- package/dist/lib/vendor/@react-stately/flags/dist/import.cjs +0 -2
- package/dist/lib/vendor/@react-stately/flags/dist/import.cjs.map +0 -1
- package/dist/lib/vendor/@react-stately/flags/dist/import.js +0 -8
- package/dist/lib/vendor/@react-stately/flags/dist/import.js.map +0 -1
- package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.cjs +0 -2
- package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.cjs.map +0 -1
- package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.js +0 -30
- package/dist/lib/vendor/@react-stately/overlays/dist/useOverlayTriggerState.js.map +0 -1
- package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.cjs +0 -2
- package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.cjs.map +0 -1
- package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.js +0 -42
- package/dist/lib/vendor/@react-stately/tooltip/dist/useTooltipTriggerState.js.map +0 -1
- package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.cjs +0 -2
- package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.cjs.map +0 -1
- package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.js +0 -30
- package/dist/lib/vendor/@react-stately/utils/dist/useControlledState.js.map +0 -1
- /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/isVirtualEvent.cjs +0 -0
- /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/isVirtualEvent.js +0 -0
- /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/useLayoutEffect.cjs +0 -0
- /package/dist/lib/vendor/{@react-aria/utils/dist → react-aria/dist/private/utils}/useLayoutEffect.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../_virtual/utils.cjs"),pt=require("../../fast-equals/dist/fast-equals.cjs"),dt=require("react"),gt=require("./fastRGLPropsEqual.cjs");var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../_virtual/utils.cjs"),pt=require("../../fast-equals/dist/fast-equals.cjs"),dt=require("react"),gt=require("./fastRGLPropsEqual.cjs");var J;function xt(){if(J)return c.__exports;J=1,Object.defineProperty(c.__exports,"__esModule",{value:!0}),c.__exports.bottom=v,c.__exports.childrenEqual=tt,c.__exports.cloneLayout=S,c.__exports.cloneLayoutItem=p,c.__exports.collides=b,c.__exports.compact=I,c.__exports.compactItem=G,c.__exports.compactType=at,c.__exports.correctBounds=F,c.__exports.fastPositionEqual=et,c.__exports.fastRGLPropsEqual=void 0,c.__exports.getAllCollisions=A,c.__exports.getFirstCollision=d,c.__exports.getLayoutItem=C,c.__exports.getStatics=O,c.__exports.modifyLayout=W,c.__exports.moveElement=w,c.__exports.moveElementAwayFromCollision=P,c.__exports.noop=void 0,c.__exports.perc=rt,c.__exports.resizeItemInDirection=it,c.__exports.setTopLeft=ct,c.__exports.setTransform=st,c.__exports.sortLayoutItems=D,c.__exports.sortLayoutItemsByColRow=$,c.__exports.sortLayoutItemsByRowCol=X,c.__exports.synchronizeLayoutWithChildren=ft,c.__exports.validateLayout=ut,c.__exports.withLayoutItem=T;var N=pt.__require(),m=Q(dt);function Q(t){return t&&t.__esModule?t:{default:t}}function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B(Object(n),!0).forEach(function(r){Z(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Z(t,e,n){return(e=U(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(t){var e=M(t,"string");return typeof e=="symbol"?e:e+""}function M(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function v(t){let e=0,n;for(let r=0,i=t.length;r<i;r++)n=t[r].y+t[r].h,n>e&&(e=n);return e}function S(t){const e=Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=p(t[n]);return e}function W(t,e){const n=Array(t.length);for(let r=0,i=t.length;r<i;r++)e.i===t[r].i?n[r]=e:n[r]=t[r];return n}function T(t,e,n){let r=C(t,e);return r?(r=n(p(r)),t=W(t,r),[t,r]):[t,null]}function p(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:!!t.moved,static:!!t.static,isDraggable:t.isDraggable,isResizable:t.isResizable,resizeHandles:t.resizeHandles,isBounded:t.isBounded}}function tt(t,e){return(0,N.deepEqual)(m.default.Children.map(t,n=>n==null?void 0:n.key),m.default.Children.map(e,n=>n==null?void 0:n.key))&&(0,N.deepEqual)(m.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]),m.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]))}c.__exports.fastRGLPropsEqual=gt.__require();function et(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height}function b(t,e){return!(t.i===e.i||t.x+t.w<=e.x||t.x>=e.x+e.w||t.y+t.h<=e.y||t.y>=e.y+e.h)}function I(t,e,n,r){const i=O(t);let o=v(i);const s=D(t,e),f=Array(t.length);for(let u=0,a=s.length;u<a;u++){let l=p(s[u]);l.static||(l=G(i,l,e,n,s,r,o),o=Math.max(o,l.y+l.h),i.push(l)),f[t.indexOf(s[u])]=l,l.moved=!1}return f}const nt={x:"w",y:"h"};function E(t,e,n,r){const i=nt[r];e[r]+=1;const o=t.map(s=>s.i).indexOf(e.i);for(let s=o+1;s<t.length;s++){const f=t[s];if(!f.static){if(f.y>e.y+e.h)break;b(e,f)&&E(t,f,n+e[i],r)}}e[r]=n}function G(t,e,n,r,i,o,s){const f=n==="vertical",u=n==="horizontal";if(f)for(typeof s=="number"?e.y=Math.min(s,e.y):e.y=Math.min(v(t),e.y);e.y>0&&!d(t,e);)e.y--;else if(u)for(;e.x>0&&!d(t,e);)e.x--;let a;for(;(a=d(t,e))&&!(n===null&&o);)if(u?E(i,e,a.x+a.w,"x"):E(i,e,a.y+a.h,"y"),u&&e.x+e.w>r)for(e.x=r-e.w,e.y++;e.x>0&&!d(t,e);)e.x--;return e.y=Math.max(e.y,0),e.x=Math.max(e.x,0),e}function F(t,e){const n=O(t);for(let r=0,i=t.length;r<i;r++){const o=t[r];if(o.x+o.w>e.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),!o.static)n.push(o);else for(;d(n,o);)o.y++}return t}function C(t,e){for(let n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function d(t,e){for(let n=0,r=t.length;n<r;n++)if(b(t[n],e))return t[n]}function A(t,e){return t.filter(n=>b(n,e))}function O(t){return t.filter(e=>e.static)}function w(t,e,n,r,i,o,s,f,u){if(e.static&&e.isDraggable!==!0||e.y===r&&e.x===n)return t;"Moving element ".concat(e.i," to [").concat(String(n),",").concat(String(r),"] from [").concat(e.x,",").concat(e.y,"]");const a=e.x,l=e.y;typeof n=="number"&&(e.x=n),typeof r=="number"&&(e.y=r),e.moved=!0;let h=D(t,s);(s==="vertical"&&typeof r=="number"?l>=r:s==="horizontal"&&typeof n=="number"?a>=n:!1)&&(h=h.reverse());const _=A(h,e),L=_.length>0;if(L&&u)return S(t);if(L&&o)return"Collision prevented on ".concat(e.i,", reverting."),e.x=a,e.y=l,e.moved=!1,t;for(let H=0,ht=_.length;H<ht;H++){const x=_[H];"Resolving collision between ".concat(e.i," at [").concat(e.x,",").concat(e.y,"] and ").concat(x.i," at [").concat(x.x,",").concat(x.y,"]"),!x.moved&&(x.static?t=P(t,x,e,i,s):t=P(t,e,x,i,s))}return t}function P(t,e,n,r,i,o){const s=i==="horizontal",f=i==="vertical",u=e.static;if(r){r=!1;const h={x:s?Math.max(e.x-n.w,0):n.x,y:f?Math.max(e.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},g=d(t,h),_=g&&g.y+g.h>e.y,L=g&&e.x+e.w>g.x;if(g){if(_&&f)return w(t,n,void 0,n.y+1,r,u,i);if(_&&i==null)return e.y=n.y,n.y=n.y+n.h,t;if(L&&s)return w(t,e,n.x,void 0,r,u,i)}else return"Doing reverse collision on ".concat(n.i," up to [").concat(h.x,",").concat(h.y,"]."),w(t,n,s?h.x:void 0,f?h.y:void 0,r,u,i)}const a=s?n.x+1:void 0,l=f?n.y+1:void 0;return a==null&&l==null?t:w(t,n,s?n.x+1:void 0,f?n.y+1:void 0,r,u,i)}function rt(t){return t*100+"%"}const Y=(t,e,n,r)=>t+n>r?e:n,K=(t,e,n)=>t<0?e:n,V=t=>Math.max(0,t),q=t=>Math.max(0,t),j=(t,e,n)=>{let{left:r,height:i,width:o}=e;const s=t.top-(i-t.height);return{left:r,width:o,height:K(s,t.height,i),top:q(s)}},z=(t,e,n)=>{let{top:r,left:i,height:o,width:s}=e;return{top:r,height:o,width:Y(t.left,t.width,s,n),left:V(i)}},R=(t,e,n)=>{let{top:r,height:i,width:o}=e;const s=t.left-(o-t.width);return{height:i,width:s<0?t.width:Y(t.left,t.width,o,n),top:q(r),left:V(s)}},k=(t,e,n)=>{let{top:r,left:i,height:o,width:s}=e;return{width:s,left:i,height:K(r,t.height,o),top:q(r)}},ot={n:j,ne:function(){return j(arguments.length<=0?void 0:arguments[0],z(...arguments))},e:z,se:function(){return k(arguments.length<=0?void 0:arguments[0],z(...arguments))},s:k,sw:function(){return k(arguments.length<=0?void 0:arguments[0],R(...arguments))},w:R,nw:function(){return j(arguments.length<=0?void 0:arguments[0],R(...arguments))}};function it(t,e,n,r){const i=ot[t];return i?i(e,y(y({},e),n),r):n}function st(t){let{top:e,left:n,width:r,height:i}=t;const o="translate(".concat(n,"px,").concat(e,"px)");return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:"".concat(r,"px"),height:"".concat(i,"px"),position:"absolute"}}function ct(t){let{top:e,left:n,width:r,height:i}=t;return{top:"".concat(e,"px"),left:"".concat(n,"px"),width:"".concat(r,"px"),height:"".concat(i,"px"),position:"absolute"}}function D(t,e){return e==="horizontal"?$(t):e==="vertical"?X(t):t}function X(t){return t.slice(0).sort(function(e,n){return e.y>n.y||e.y===n.y&&e.x>n.x?1:e.y===n.y&&e.x===n.x?0:-1})}function $(t){return t.slice(0).sort(function(e,n){return e.x>n.x||e.x===n.x&&e.y>n.y?1:-1})}function ft(t,e,n,r,i){t=t||[];const o=[];m.default.Children.forEach(e,f=>{if((f==null?void 0:f.key)==null)return;const u=C(t,String(f.key)),a=f.props["data-grid"];u&&a==null?o.push(p(u)):a?o.push(p(y(y({},a),{},{i:f.key}))):o.push(p({w:1,h:1,x:0,y:v(o),i:String(f.key)}))});const s=F(o,{cols:n});return i?s:I(s,r,n)}function ut(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(let r=0,i=t.length;r<i;r++){const o=t[r];for(let s=0;s<n.length;s++){const f=n[s],u=o[f];if(typeof u!="number"||Number.isNaN(u))throw new Error("ReactGridLayout: ".concat(e,"[").concat(r,"].").concat(f," must be a number! Received: ").concat(u," (").concat(typeof u,")"))}if(typeof o.i<"u"&&typeof o.i!="string")throw new Error("ReactGridLayout: ".concat(e,"[").concat(r,"].i must be a string! Received: ").concat(o.i," (").concat(typeof o.i,")"))}}function at(t){const{verticalCompact:e,compactType:n}=t||{};return e===!1?null:n}function vt(){}const lt=()=>{};return c.__exports.noop=lt,c.__exports}exports.__require=xt;
|
|
2
2
|
//# sourceMappingURL=utils.cjs.map
|
|
@@ -2,14 +2,14 @@ import { __exports as c } from "../../../_virtual/utils.js";
|
|
|
2
2
|
import { __require as dt } from "../../fast-equals/dist/fast-equals.js";
|
|
3
3
|
import gt from "react";
|
|
4
4
|
import { __require as pt } from "./fastRGLPropsEqual.js";
|
|
5
|
-
var
|
|
5
|
+
var J;
|
|
6
6
|
function Ot() {
|
|
7
|
-
if (
|
|
8
|
-
|
|
7
|
+
if (J) return c;
|
|
8
|
+
J = 1, Object.defineProperty(c, "__esModule", {
|
|
9
9
|
value: !0
|
|
10
|
-
}), c.bottom = b, c.childrenEqual = tt, c.cloneLayout = S, c.cloneLayoutItem = d, c.collides = L, c.compact = F, c.compactItem = I, c.compactType = at, c.correctBounds = G, c.fastPositionEqual = et, c.fastRGLPropsEqual = void 0, c.getAllCollisions = A, c.getFirstCollision = g, c.getLayoutItem = O, c.getStatics = P, c.modifyLayout = W, c.moveElement = y, c.moveElementAwayFromCollision = _, c.noop = void 0, c.perc = rt, c.resizeItemInDirection = ot, c.setTopLeft = ct, c.setTransform = st, c.sortLayoutItems = D, c.sortLayoutItemsByColRow =
|
|
11
|
-
var N = /* @__PURE__ */ dt(), x =
|
|
12
|
-
function
|
|
10
|
+
}), c.bottom = b, c.childrenEqual = tt, c.cloneLayout = S, c.cloneLayoutItem = d, c.collides = L, c.compact = F, c.compactItem = I, c.compactType = at, c.correctBounds = G, c.fastPositionEqual = et, c.fastRGLPropsEqual = void 0, c.getAllCollisions = A, c.getFirstCollision = g, c.getLayoutItem = O, c.getStatics = P, c.modifyLayout = W, c.moveElement = y, c.moveElementAwayFromCollision = _, c.noop = void 0, c.perc = rt, c.resizeItemInDirection = ot, c.setTopLeft = ct, c.setTransform = st, c.sortLayoutItems = D, c.sortLayoutItemsByColRow = $, c.sortLayoutItemsByRowCol = X, c.synchronizeLayoutWithChildren = ft, c.validateLayout = ut, c.withLayoutItem = T;
|
|
11
|
+
var N = /* @__PURE__ */ dt(), x = Q(gt);
|
|
12
|
+
function Q(t) {
|
|
13
13
|
return t && t.__esModule ? t : { default: t };
|
|
14
14
|
}
|
|
15
15
|
function B(t, e) {
|
|
@@ -26,14 +26,14 @@ function Ot() {
|
|
|
26
26
|
for (var e = 1; e < arguments.length; e++) {
|
|
27
27
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
28
28
|
e % 2 ? B(Object(n), !0).forEach(function(r) {
|
|
29
|
-
|
|
29
|
+
Z(t, r, n[r]);
|
|
30
30
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : B(Object(n)).forEach(function(r) {
|
|
31
31
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
return t;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Z(t, e, n) {
|
|
37
37
|
return (e = U(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
38
38
|
}
|
|
39
39
|
function U(t) {
|
|
@@ -226,7 +226,7 @@ function Ot() {
|
|
|
226
226
|
height: K(s, t.height, o),
|
|
227
227
|
top: q(s)
|
|
228
228
|
};
|
|
229
|
-
},
|
|
229
|
+
}, j = (t, e, n) => {
|
|
230
230
|
let {
|
|
231
231
|
top: r,
|
|
232
232
|
left: o,
|
|
@@ -239,7 +239,7 @@ function Ot() {
|
|
|
239
239
|
width: Y(t.left, t.width, s, n),
|
|
240
240
|
left: V(o)
|
|
241
241
|
};
|
|
242
|
-
},
|
|
242
|
+
}, R = (t, e, n) => {
|
|
243
243
|
let {
|
|
244
244
|
top: r,
|
|
245
245
|
height: o,
|
|
@@ -268,19 +268,19 @@ function Ot() {
|
|
|
268
268
|
}, it = {
|
|
269
269
|
n: z,
|
|
270
270
|
ne: function() {
|
|
271
|
-
return z(arguments.length <= 0 ? void 0 : arguments[0],
|
|
271
|
+
return z(arguments.length <= 0 ? void 0 : arguments[0], j(...arguments));
|
|
272
272
|
},
|
|
273
|
-
e:
|
|
273
|
+
e: j,
|
|
274
274
|
se: function() {
|
|
275
|
-
return k(arguments.length <= 0 ? void 0 : arguments[0],
|
|
275
|
+
return k(arguments.length <= 0 ? void 0 : arguments[0], j(...arguments));
|
|
276
276
|
},
|
|
277
277
|
s: k,
|
|
278
278
|
sw: function() {
|
|
279
|
-
return k(arguments.length <= 0 ? void 0 : arguments[0],
|
|
279
|
+
return k(arguments.length <= 0 ? void 0 : arguments[0], R(...arguments));
|
|
280
280
|
},
|
|
281
|
-
w:
|
|
281
|
+
w: R,
|
|
282
282
|
nw: function() {
|
|
283
|
-
return z(arguments.length <= 0 ? void 0 : arguments[0],
|
|
283
|
+
return z(arguments.length <= 0 ? void 0 : arguments[0], R(...arguments));
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
function ot(t, e, n, r) {
|
|
@@ -322,14 +322,14 @@ function Ot() {
|
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
function D(t, e) {
|
|
325
|
-
return e === "horizontal" ?
|
|
325
|
+
return e === "horizontal" ? $(t) : e === "vertical" ? X(t) : t;
|
|
326
326
|
}
|
|
327
327
|
function X(t) {
|
|
328
328
|
return t.slice(0).sort(function(e, n) {
|
|
329
329
|
return e.y > n.y || e.y === n.y && e.x > n.x ? 1 : e.y === n.y && e.x === n.x ? 0 : -1;
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function $(t) {
|
|
333
333
|
return t.slice(0).sort(function(e, n) {
|
|
334
334
|
return e.x > n.x || e.x === n.x && e.y > n.y ? 1 : -1;
|
|
335
335
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../_virtual/Resizable.cjs"),I=require("react"),K=require("../../react-draggable/build/cjs/cjs.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../_virtual/Resizable.cjs"),I=require("react"),K=require("../../react-draggable/build/cjs/cjs.cjs"),U=require("./utils.cjs"),B=require("./propTypes.cjs");var M;function V(){if(M)return m.__exports;M=1,m.__exports.__esModule=!0,m.__exports.default=void 0;var f=O(I),$=K.__require(),q=U.__require(),x=B.__require();const W=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function O(r,e){if(typeof WeakMap=="function")var t=new WeakMap,s=new WeakMap;return(O=function(n,a){if(!a&&n&&n.__esModule)return n;var l,i,c={__proto__:null,default:n};if(n===null||typeof n!="object"&&typeof n!="function")return c;if(l=a?s:t){if(l.has(n))return l.get(n);l.set(n,c)}for(const o in n)o!=="default"&&{}.hasOwnProperty.call(n,o)&&((i=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(n,o))&&(i.get||i.set)?l(c,o,i):c[o]=n[o]);return c})(r,e)}function g(){return g=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)({}).hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},g.apply(null,arguments)}function E(r,e){if(r==null)return{};var t={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(e.indexOf(s)!==-1)continue;t[s]=r[s]}return t}function j(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,s)}return t}function R(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?j(Object(t),!0).forEach(function(s){T(r,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(t,s))})}return r}function T(r,e,t){return(e=L(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function L(r){var e=X(r,"string");return typeof e=="symbol"?e:e+""}function X(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var s=t.call(r,e);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}let _=class extends f.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(e,t){const s=this.props,n=s.minConstraints,a=s.maxConstraints,l=s.lockAspectRatio;if(!n&&!a&&!l)return[e,t];if(l){const h=this.props.width/this.props.height,z=e-this.props.width,y=t-this.props.height;Math.abs(z)>Math.abs(y*h)?t=e/h:e=t*h}const i=e,c=t;let o=this.slack||[0,0],p=o[0],u=o[1];return e+=p,t+=u,n&&(e=Math.max(n[0],e),t=Math.max(n[1],t)),a&&(e=Math.min(a[0],e),t=Math.min(a[1],t)),this.slack=[p+(i-e),u+(c-t)],[e,t]}resizeHandler(e,t){return(s,n)=>{var a,l,i,c;let o=n.node,p=n.deltaX,u=n.deltaY;e==="onResizeStart"&&this.resetData();const h=(this.props.axis==="both"||this.props.axis==="x")&&t!=="n"&&t!=="s",z=(this.props.axis==="both"||this.props.axis==="y")&&t!=="e"&&t!=="w";if(!h&&!z)return;const y=t[0],P=t[t.length-1],S=o.getBoundingClientRect();if(this.lastHandleRect!=null){if(P==="w"){const v=S.left-this.lastHandleRect.left;p+=v}if(y==="n"){const v=S.top-this.lastHandleRect.top;u+=v}}this.lastHandleRect=S,P==="w"&&(p=-p),y==="n"&&(u=-u);const H=(a=(l=this.lastSize)==null?void 0:l.width)!=null?a:this.props.width,C=(i=(c=this.lastSize)==null?void 0:c.height)!=null?i:this.props.height;let d=H+(h?p/this.props.transformScale:0),b=C+(z?u/this.props.transformScale:0);var k=this.runConstraints(d,b);if(d=k[0],b=k[1],e==="onResizeStop"&&this.lastSize){var w=this.lastSize;d=w.width,b=w.height}const Y=d!==H||b!==C;e!=="onResizeStop"&&(this.lastSize={width:d,height:b});const D=typeof this.props[e]=="function"?this.props[e]:null;D&&!(e==="onResize"&&!Y)&&(s.persist==null||s.persist(),D(s,{node:o,size:{width:d,height:b},handle:t})),e==="onResizeStop"&&this.resetData()}}renderResizeHandle(e,t){const s=this.props.handle;if(!s)return f.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if(typeof s=="function")return s(e,t);const n=typeof s.type=="string",a=R({ref:t},n?{}:{handleAxis:e});return f.cloneElement(s,a)}render(){const e=this.props,t=e.children,s=e.className,n=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;const a=e.resizeHandles;e.transformScale;const l=E(e,W);return(0,q.cloneElement)(t,R(R({},l),{},{className:(s?s+" ":"")+"react-resizable",children:[...f.Children.toArray(t.props.children),...a.map(i=>{var c;const o=(c=this.handleRefs[i])!=null?c:this.handleRefs[i]=f.createRef();return f.createElement($.DraggableCore,g({},n,{nodeRef:o,key:"resizableHandle-"+i,onStop:this.resizeHandler("onResizeStop",i),onStart:this.resizeHandler("onResizeStart",i),onDrag:this.resizeHandler("onResize",i)}),this.renderResizeHandle(i,o))})]}))}};return m.__exports.default=_,_.propTypes=x.resizableProps,_.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},m.__exports}exports.__require=V;
|
|
2
2
|
//# sourceMappingURL=Resizable.cjs.map
|
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
import { __exports as b } from "../../../_virtual/Resizable.js";
|
|
2
|
-
import
|
|
3
|
-
import { __require as
|
|
4
|
-
import { __require as
|
|
2
|
+
import Y from "react";
|
|
3
|
+
import { __require as I } from "../../react-draggable/build/cjs/cjs.js";
|
|
4
|
+
import { __require as K } from "./utils.js";
|
|
5
5
|
import { __require as B } from "./propTypes.js";
|
|
6
|
-
var
|
|
6
|
+
var $;
|
|
7
7
|
function A() {
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
var f = O(
|
|
8
|
+
if ($) return b;
|
|
9
|
+
$ = 1, b.__esModule = !0, b.default = void 0;
|
|
10
|
+
var f = O(Y), M = I(), q = K(), W = B();
|
|
11
11
|
const x = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
12
|
-
function O(
|
|
13
|
-
if (typeof WeakMap == "function") var e = /* @__PURE__ */ new WeakMap(),
|
|
12
|
+
function O(s, t) {
|
|
13
|
+
if (typeof WeakMap == "function") var e = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
14
14
|
return (O = function(n, a) {
|
|
15
15
|
if (!a && n && n.__esModule) return n;
|
|
16
16
|
var l, i, c = { __proto__: null, default: n };
|
|
17
17
|
if (n === null || typeof n != "object" && typeof n != "function") return c;
|
|
18
|
-
if (l = a ?
|
|
18
|
+
if (l = a ? r : e) {
|
|
19
19
|
if (l.has(n)) return l.get(n);
|
|
20
20
|
l.set(n, c);
|
|
21
21
|
}
|
|
22
22
|
for (const o in n) o !== "default" && {}.hasOwnProperty.call(n, o) && ((i = (l = Object.defineProperty) && Object.getOwnPropertyDescriptor(n, o)) && (i.get || i.set) ? l(c, o, i) : c[o] = n[o]);
|
|
23
23
|
return c;
|
|
24
|
-
})(
|
|
24
|
+
})(s, t);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
26
|
+
function R() {
|
|
27
|
+
return R = Object.assign ? Object.assign.bind() : function(s) {
|
|
28
28
|
for (var t = 1; t < arguments.length; t++) {
|
|
29
29
|
var e = arguments[t];
|
|
30
|
-
for (var
|
|
30
|
+
for (var r in e) ({}).hasOwnProperty.call(e, r) && (s[r] = e[r]);
|
|
31
31
|
}
|
|
32
|
-
return
|
|
33
|
-
},
|
|
32
|
+
return s;
|
|
33
|
+
}, R.apply(null, arguments);
|
|
34
34
|
}
|
|
35
|
-
function E(
|
|
36
|
-
if (
|
|
35
|
+
function E(s, t) {
|
|
36
|
+
if (s == null) return {};
|
|
37
37
|
var e = {};
|
|
38
|
-
for (var
|
|
39
|
-
if (t.indexOf(
|
|
40
|
-
e[
|
|
38
|
+
for (var r in s) if ({}.hasOwnProperty.call(s, r)) {
|
|
39
|
+
if (t.indexOf(r) !== -1) continue;
|
|
40
|
+
e[r] = s[r];
|
|
41
41
|
}
|
|
42
42
|
return e;
|
|
43
43
|
}
|
|
44
|
-
function P(
|
|
45
|
-
var e = Object.keys(
|
|
44
|
+
function P(s, t) {
|
|
45
|
+
var e = Object.keys(s);
|
|
46
46
|
if (Object.getOwnPropertySymbols) {
|
|
47
|
-
var
|
|
48
|
-
t && (
|
|
49
|
-
return Object.getOwnPropertyDescriptor(
|
|
50
|
-
})), e.push.apply(e,
|
|
47
|
+
var r = Object.getOwnPropertySymbols(s);
|
|
48
|
+
t && (r = r.filter(function(n) {
|
|
49
|
+
return Object.getOwnPropertyDescriptor(s, n).enumerable;
|
|
50
|
+
})), e.push.apply(e, r);
|
|
51
51
|
}
|
|
52
52
|
return e;
|
|
53
53
|
}
|
|
54
|
-
function g(
|
|
54
|
+
function g(s) {
|
|
55
55
|
for (var t = 1; t < arguments.length; t++) {
|
|
56
56
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
57
|
-
t % 2 ? P(Object(e), !0).forEach(function(
|
|
58
|
-
T(
|
|
59
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
60
|
-
Object.defineProperty(
|
|
57
|
+
t % 2 ? P(Object(e), !0).forEach(function(r) {
|
|
58
|
+
T(s, r, e[r]);
|
|
59
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(e)) : P(Object(e)).forEach(function(r) {
|
|
60
|
+
Object.defineProperty(s, r, Object.getOwnPropertyDescriptor(e, r));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return s;
|
|
64
64
|
}
|
|
65
|
-
function T(
|
|
66
|
-
return (t = L(t)) in
|
|
65
|
+
function T(s, t, e) {
|
|
66
|
+
return (t = L(t)) in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
67
67
|
}
|
|
68
|
-
function L(
|
|
69
|
-
var t =
|
|
68
|
+
function L(s) {
|
|
69
|
+
var t = U(s, "string");
|
|
70
70
|
return typeof t == "symbol" ? t : t + "";
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (typeof
|
|
74
|
-
var e =
|
|
72
|
+
function U(s, t) {
|
|
73
|
+
if (typeof s != "object" || !s) return s;
|
|
74
|
+
var e = s[Symbol.toPrimitive];
|
|
75
75
|
if (e !== void 0) {
|
|
76
|
-
var
|
|
77
|
-
if (typeof
|
|
76
|
+
var r = e.call(s, t);
|
|
77
|
+
if (typeof r != "object") return r;
|
|
78
78
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
79
79
|
}
|
|
80
|
-
return (t === "string" ? String : Number)(
|
|
80
|
+
return (t === "string" ? String : Number)(s);
|
|
81
81
|
}
|
|
82
82
|
let S = class extends f.Component {
|
|
83
83
|
constructor() {
|
|
@@ -91,11 +91,11 @@ function A() {
|
|
|
91
91
|
}
|
|
92
92
|
// Clamp width and height within provided constraints
|
|
93
93
|
runConstraints(t, e) {
|
|
94
|
-
const
|
|
94
|
+
const r = this.props, n = r.minConstraints, a = r.maxConstraints, l = r.lockAspectRatio;
|
|
95
95
|
if (!n && !a && !l) return [t, e];
|
|
96
96
|
if (l) {
|
|
97
|
-
const h = this.props.width / this.props.height, z = t - this.props.width,
|
|
98
|
-
Math.abs(z) > Math.abs(
|
|
97
|
+
const h = this.props.width / this.props.height, z = t - this.props.width, y = e - this.props.height;
|
|
98
|
+
Math.abs(z) > Math.abs(y * h) ? e = t / h : t = e * h;
|
|
99
99
|
}
|
|
100
100
|
const i = t, c = e;
|
|
101
101
|
let o = this.slack || [0, 0], p = o[0], u = o[1];
|
|
@@ -108,24 +108,24 @@ function A() {
|
|
|
108
108
|
* @return {Function} Handler function.
|
|
109
109
|
*/
|
|
110
110
|
resizeHandler(t, e) {
|
|
111
|
-
return (
|
|
111
|
+
return (r, n) => {
|
|
112
112
|
var a, l, i, c;
|
|
113
113
|
let o = n.node, p = n.deltaX, u = n.deltaY;
|
|
114
114
|
t === "onResizeStart" && this.resetData();
|
|
115
115
|
const h = (this.props.axis === "both" || this.props.axis === "x") && e !== "n" && e !== "s", z = (this.props.axis === "both" || this.props.axis === "y") && e !== "e" && e !== "w";
|
|
116
116
|
if (!h && !z) return;
|
|
117
|
-
const
|
|
117
|
+
const y = e[0], j = e[e.length - 1], _ = o.getBoundingClientRect();
|
|
118
118
|
if (this.lastHandleRect != null) {
|
|
119
119
|
if (j === "w") {
|
|
120
120
|
const v = _.left - this.lastHandleRect.left;
|
|
121
121
|
p += v;
|
|
122
122
|
}
|
|
123
|
-
if (
|
|
123
|
+
if (y === "n") {
|
|
124
124
|
const v = _.top - this.lastHandleRect.top;
|
|
125
125
|
u += v;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
this.lastHandleRect = _, j === "w" && (p = -p),
|
|
128
|
+
this.lastHandleRect = _, j === "w" && (p = -p), y === "n" && (u = -u);
|
|
129
129
|
const H = (a = (l = this.lastSize) == null ? void 0 : l.width) != null ? a : this.props.width, C = (i = (c = this.lastSize) == null ? void 0 : c.height) != null ? i : this.props.height;
|
|
130
130
|
let d = H + (h ? p / this.props.transformScale : 0), m = C + (z ? u / this.props.transformScale : 0);
|
|
131
131
|
var k = this.runConstraints(d, m);
|
|
@@ -133,13 +133,13 @@ function A() {
|
|
|
133
133
|
var w = this.lastSize;
|
|
134
134
|
d = w.width, m = w.height;
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const X = d !== H || m !== C;
|
|
137
137
|
t !== "onResizeStop" && (this.lastSize = {
|
|
138
138
|
width: d,
|
|
139
139
|
height: m
|
|
140
140
|
});
|
|
141
141
|
const D = typeof this.props[t] == "function" ? this.props[t] : null;
|
|
142
|
-
D && !(t === "onResize" && !
|
|
142
|
+
D && !(t === "onResize" && !X) && (r.persist == null || r.persist(), D(r, {
|
|
143
143
|
node: o,
|
|
144
144
|
size: {
|
|
145
145
|
width: d,
|
|
@@ -152,33 +152,33 @@ function A() {
|
|
|
152
152
|
// Render a resize handle given an axis & DOM ref. Ref *must* be attached for
|
|
153
153
|
// the underlying draggable library to work properly.
|
|
154
154
|
renderResizeHandle(t, e) {
|
|
155
|
-
const
|
|
156
|
-
if (!
|
|
155
|
+
const r = this.props.handle;
|
|
156
|
+
if (!r)
|
|
157
157
|
return /* @__PURE__ */ f.createElement("span", {
|
|
158
158
|
className: "react-resizable-handle react-resizable-handle-" + t,
|
|
159
159
|
ref: e
|
|
160
160
|
});
|
|
161
|
-
if (typeof
|
|
162
|
-
return
|
|
163
|
-
const n = typeof
|
|
161
|
+
if (typeof r == "function")
|
|
162
|
+
return r(t, e);
|
|
163
|
+
const n = typeof r.type == "string", a = g({
|
|
164
164
|
ref: e
|
|
165
165
|
}, n ? {} : {
|
|
166
166
|
handleAxis: t
|
|
167
167
|
});
|
|
168
|
-
return /* @__PURE__ */ f.cloneElement(
|
|
168
|
+
return /* @__PURE__ */ f.cloneElement(r, a);
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
|
-
const t = this.props, e = t.children,
|
|
171
|
+
const t = this.props, e = t.children, r = t.className, n = t.draggableOpts;
|
|
172
172
|
t.width, t.height, t.handle, t.handleSize, t.lockAspectRatio, t.axis, t.minConstraints, t.maxConstraints, t.onResize, t.onResizeStop, t.onResizeStart;
|
|
173
173
|
const a = t.resizeHandles;
|
|
174
174
|
t.transformScale;
|
|
175
175
|
const l = E(t, x);
|
|
176
176
|
return (0, q.cloneElement)(e, g(g({}, l), {}, {
|
|
177
|
-
className: (
|
|
177
|
+
className: (r ? r + " " : "") + "react-resizable",
|
|
178
178
|
children: [...f.Children.toArray(e.props.children), ...a.map((i) => {
|
|
179
179
|
var c;
|
|
180
180
|
const o = (c = this.handleRefs[i]) != null ? c : this.handleRefs[i] = /* @__PURE__ */ f.createRef();
|
|
181
|
-
return /* @__PURE__ */ f.createElement(
|
|
181
|
+
return /* @__PURE__ */ f.createElement(M.DraggableCore, R({}, n, {
|
|
182
182
|
nodeRef: o,
|
|
183
183
|
key: "resizableHandle-" + i,
|
|
184
184
|
onStop: this.resizeHandler("onResizeStop", i),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resizable.js","sources":["../../../../../node_modules/react-resizable/build/Resizable.js"],"sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _reactDraggable = require(\"react-draggable\");\nvar _utils = require(\"./utils\");\nvar _propTypes = require(\"./propTypes\");\nconst _excluded = [\"children\", \"className\", \"draggableOpts\", \"width\", \"height\", \"handle\", \"handleSize\", \"lockAspectRatio\", \"axis\", \"minConstraints\", \"maxConstraints\", \"onResize\", \"onResizeStop\", \"onResizeStart\", \"resizeHandles\", \"transformScale\"];\nfunction _interopRequireWildcard(e, t) { if (\"function\" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) \"default\" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n// The base <Resizable> component.\n// This component does not have state and relies on the parent to set its props based on callback data.\nclass Resizable extends React.Component {\n constructor() {\n super(...arguments);\n this.handleRefs = {};\n this.lastHandleRect = null;\n this.slack = null;\n this.lastSize = null;\n }\n componentWillUnmount() {\n this.resetData();\n }\n resetData() {\n this.lastHandleRect = this.slack = this.lastSize = null;\n }\n\n // Clamp width and height within provided constraints\n runConstraints(width, height) {\n const _this$props = this.props,\n minConstraints = _this$props.minConstraints,\n maxConstraints = _this$props.maxConstraints,\n lockAspectRatio = _this$props.lockAspectRatio;\n // short circuit\n if (!minConstraints && !maxConstraints && !lockAspectRatio) return [width, height];\n\n // If constraining to min and max, we need to also fit width and height to aspect ratio.\n if (lockAspectRatio) {\n const ratio = this.props.width / this.props.height;\n const deltaW = width - this.props.width;\n const deltaH = height - this.props.height;\n\n // Find which coordinate was greater and should push the other toward it.\n // E.g.:\n // ratio = 1, deltaW = 10, deltaH = 5, deltaH should become 10.\n // ratio = 2, deltaW = 10, deltaH = 6, deltaW should become 12.\n if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {\n height = width / ratio;\n } else {\n width = height * ratio;\n }\n }\n const oldW = width,\n oldH = height;\n\n // Add slack to the values used to calculate bound position. This will ensure that if\n // we start removing slack, the element won't react to it right away until it's been\n // completely removed.\n let _ref = this.slack || [0, 0],\n slackW = _ref[0],\n slackH = _ref[1];\n width += slackW;\n height += slackH;\n if (minConstraints) {\n width = Math.max(minConstraints[0], width);\n height = Math.max(minConstraints[1], height);\n }\n if (maxConstraints) {\n width = Math.min(maxConstraints[0], width);\n height = Math.min(maxConstraints[1], height);\n }\n\n // If the width or height changed, we must have introduced some slack. Record it for the next iteration.\n this.slack = [slackW + (oldW - width), slackH + (oldH - height)];\n return [width, height];\n }\n\n /**\n * Wrapper around drag events to provide more useful data.\n *\n * @param {String} handlerName Handler name to wrap.\n * @return {Function} Handler function.\n */\n resizeHandler(handlerName, axis) {\n return (e, _ref2) => {\n var _this$lastSize$width, _this$lastSize, _this$lastSize$height, _this$lastSize2;\n let node = _ref2.node,\n deltaX = _ref2.deltaX,\n deltaY = _ref2.deltaY;\n // Reset data in case it was left over somehow (should not be possible)\n if (handlerName === 'onResizeStart') this.resetData();\n\n // Axis restrictions\n const canDragX = (this.props.axis === 'both' || this.props.axis === 'x') && axis !== 'n' && axis !== 's';\n const canDragY = (this.props.axis === 'both' || this.props.axis === 'y') && axis !== 'e' && axis !== 'w';\n // No dragging possible.\n if (!canDragX && !canDragY) return;\n\n // Decompose axis for later use\n const axisV = axis[0];\n const axisH = axis[axis.length - 1]; // intentionally not axis[1], so that this catches axis === 'w' for example\n\n // Track the element being dragged to account for changes in position.\n // If a handle's position is changed between callbacks, we need to factor this in to the next callback.\n // Failure to do so will cause the element to \"skip\" when resized upwards or leftwards.\n const handleRect = node.getBoundingClientRect();\n if (this.lastHandleRect != null) {\n // If the handle has repositioned on either axis since last render,\n // we need to increase our callback values by this much.\n // Only checking 'n', 'w' since resizing by 's', 'w' won't affect the overall position on page,\n if (axisH === 'w') {\n const deltaLeftSinceLast = handleRect.left - this.lastHandleRect.left;\n deltaX += deltaLeftSinceLast;\n }\n if (axisV === 'n') {\n const deltaTopSinceLast = handleRect.top - this.lastHandleRect.top;\n deltaY += deltaTopSinceLast;\n }\n }\n // Storage of last rect so we know how much it has really moved.\n this.lastHandleRect = handleRect;\n\n // Reverse delta if using top or left drag handles.\n if (axisH === 'w') deltaX = -deltaX;\n if (axisV === 'n') deltaY = -deltaY;\n\n // Update w/h by the deltas. Also factor in transformScale.\n // Use lastSize (if available) instead of props to avoid losing deltas\n // when React can't re-render between consecutive mouse events.\n const baseWidth = (_this$lastSize$width = (_this$lastSize = this.lastSize) == null ? void 0 : _this$lastSize.width) != null ? _this$lastSize$width : this.props.width;\n const baseHeight = (_this$lastSize$height = (_this$lastSize2 = this.lastSize) == null ? void 0 : _this$lastSize2.height) != null ? _this$lastSize$height : this.props.height;\n let width = baseWidth + (canDragX ? deltaX / this.props.transformScale : 0);\n let height = baseHeight + (canDragY ? deltaY / this.props.transformScale : 0);\n\n // Run user-provided constraints.\n // For onResizeStop, use the last size from onResize rather than recalculating.\n // This avoids issues where props.width/height are stale due to React's batched updates.\n var _this$runConstraints = this.runConstraints(width, height);\n width = _this$runConstraints[0];\n height = _this$runConstraints[1];\n if (handlerName === 'onResizeStop' && this.lastSize) {\n var _this$lastSize3 = this.lastSize;\n width = _this$lastSize3.width;\n height = _this$lastSize3.height;\n }\n\n // Compare against the base (lastSize-or-props) so that callbacks correctly\n // suppress when the net delta is zero, even if props are stale relative to\n // the accumulated lastSize.\n const dimensionsChanged = width !== baseWidth || height !== baseHeight;\n\n // Store the size for use in onResizeStop. We do this after the onResizeStop check\n // above so we don't overwrite the stored value with a potentially stale calculation.\n if (handlerName !== 'onResizeStop') {\n this.lastSize = {\n width,\n height\n };\n }\n\n // Call user-supplied callback if present.\n const cb = typeof this.props[handlerName] === 'function' ? this.props[handlerName] : null;\n // Don't call 'onResize' if dimensions haven't changed.\n const shouldSkipCb = handlerName === 'onResize' && !dimensionsChanged;\n if (cb && !shouldSkipCb) {\n e.persist == null || e.persist();\n cb(e, {\n node,\n size: {\n width,\n height\n },\n handle: axis\n });\n }\n\n // Reset internal data\n if (handlerName === 'onResizeStop') this.resetData();\n };\n }\n\n // Render a resize handle given an axis & DOM ref. Ref *must* be attached for\n // the underlying draggable library to work properly.\n renderResizeHandle(handleAxis, ref) {\n const handle = this.props.handle;\n // No handle provided, make the default\n if (!handle) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"react-resizable-handle react-resizable-handle-\" + handleAxis,\n ref: ref\n });\n }\n // Handle is a function, such as:\n // `handle={(handleAxis) => <span className={...} />}`\n if (typeof handle === 'function') {\n return handle(handleAxis, ref);\n }\n // Handle is a React component (composite or DOM).\n const isDOMElement = typeof handle.type === 'string';\n const props = _objectSpread({\n ref\n }, isDOMElement ? {} : {\n handleAxis\n });\n return /*#__PURE__*/React.cloneElement(handle, props);\n }\n render() {\n // Pass along only props not meant for the `<Resizable>`.`\n // eslint-disable-next-line no-unused-vars\n const _this$props2 = this.props,\n children = _this$props2.children,\n className = _this$props2.className,\n draggableOpts = _this$props2.draggableOpts,\n width = _this$props2.width,\n height = _this$props2.height,\n handle = _this$props2.handle,\n handleSize = _this$props2.handleSize,\n lockAspectRatio = _this$props2.lockAspectRatio,\n axis = _this$props2.axis,\n minConstraints = _this$props2.minConstraints,\n maxConstraints = _this$props2.maxConstraints,\n onResize = _this$props2.onResize,\n onResizeStop = _this$props2.onResizeStop,\n onResizeStart = _this$props2.onResizeStart,\n resizeHandles = _this$props2.resizeHandles,\n transformScale = _this$props2.transformScale,\n p = _objectWithoutPropertiesLoose(_this$props2, _excluded);\n\n // What we're doing here is getting the child of this element, and cloning it with this element's props.\n // We are then defining its children as:\n // 1. Its original children (resizable's child's children), and\n // 2. One or more draggable handles.\n return (0, _utils.cloneElement)(children, _objectSpread(_objectSpread({}, p), {}, {\n className: (className ? className + \" \" : '') + \"react-resizable\",\n children: [...React.Children.toArray(children.props.children), ...resizeHandles.map(handleAxis => {\n var _this$handleRefs$hand;\n // Create a ref to the handle so that `<DraggableCore>` doesn't have to use ReactDOM.findDOMNode().\n const ref = (_this$handleRefs$hand = this.handleRefs[handleAxis]) != null ? _this$handleRefs$hand : this.handleRefs[handleAxis] = /*#__PURE__*/React.createRef();\n return /*#__PURE__*/React.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, {\n nodeRef: ref,\n key: \"resizableHandle-\" + handleAxis,\n onStop: this.resizeHandler('onResizeStop', handleAxis),\n onStart: this.resizeHandler('onResizeStart', handleAxis),\n onDrag: this.resizeHandler('onResize', handleAxis)\n }), this.renderResizeHandle(handleAxis, ref));\n })]\n }));\n }\n}\nexports.default = Resizable;\nResizable.propTypes = _propTypes.resizableProps;\nResizable.defaultProps = {\n axis: 'both',\n handleSize: [20, 20],\n lockAspectRatio: false,\n minConstraints: [20, 20],\n maxConstraints: [Infinity, Infinity],\n resizeHandles: ['se'],\n transformScale: 1\n};"],"names":["Resizable_1","React","_interopRequireWildcard","require$$0","_reactDraggable","require$$1","_utils","require$$2","_propTypes","require$$3","_excluded","e","r","n","t","o","f","_extends","_objectWithoutPropertiesLoose","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","i","_toPrimitive","Resizable$1","width","height","_this$props","minConstraints","maxConstraints","lockAspectRatio","ratio","deltaW","deltaH","oldW","oldH","_ref","slackW","slackH","handlerName","axis","_ref2","_this$lastSize$width","_this$lastSize","_this$lastSize$height","_this$lastSize2","node","deltaX","deltaY","canDragX","canDragY","axisV","axisH","handleRect","deltaLeftSinceLast","deltaTopSinceLast","baseWidth","baseHeight","_this$runConstraints","_this$lastSize3","dimensionsChanged","cb","handleAxis","ref","handle","isDOMElement","props","_this$props2","children","className","draggableOpts","resizeHandles","p","_this$handleRefs$hand","Resizable"],"mappings":";;;;;;;;SAEAA,eAAqB,IACrBA,EAAA,UAAkB;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC,IAAkBC,EAAA,GAClBC,IAASC,EAAA,GACTC,IAAaC,EAAA;AACjB,QAAMC,IAAY,CAAC,YAAY,aAAa,iBAAiB,SAAS,UAAU,U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AI,CAAAT,MAAc;AAChG,cAAIW;AAEJ,gBAAMV,KAAOU,IAAwB,KAAK,WAAWX,CAAU,MAAM,OAAOW,IAAwB,KAAK,WAAWX,CAAU,IAAiB9D,gBAAAA,EAAM,UAAS;AAC9J,iBAAoBA,gBAAAA,EAAM,cAAcG,EAAgB,eAAea,EAAS,CAAA,GAAIsD,GAAe;AAAA,YACjG,SAASP;AAAA,YACT,KAAK,qBAAqBD;AAAA,YAC1B,QAAQ,KAAK,cAAc,gBAAgBA,CAAU;AAAA,YACrD,SAAS,KAAK,cAAc,iBAAiBA,CAAU;AAAA,YACvD,QAAQ,KAAK,cAAc,YAAYA,CAAU;AAAA,WAClD,GAAG,KAAK,mBAAmBA,GAAYC,CAAG,CAAC;AAAA,QACpD,CAAO,CAAC;AAAA,MACR,CAAK,CAAC;AAAA,IACN;AAAA,EACA;AACAhE,SAAAA,EAAA,UAAkB2E,GAClBA,EAAU,YAAYnE,EAAW,gBACjCmE,EAAU,eAAe;AAAA,IACvB,MAAM;AAAA,IACN,YAAY,CAAC,IAAI,EAAE;AAAA,IACnB,iBAAiB;AAAA,IACjB,gBAAgB,CAAC,IAAI,EAAE;AAAA,IACvB,gBAAgB,CAAC,OAAU,KAAQ;AAAA,IACnC,eAAe,CAAC,IAAI;AAAA,IACpB,gBAAgB;AAAA;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"Resizable.js","sources":["../../../../../node_modules/react-resizable/build/Resizable.js"],"sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _reactDraggable = require(\"react-draggable\");\nvar _utils = require(\"./utils\");\nvar _propTypes = require(\"./propTypes\");\nconst _excluded = [\"children\", \"className\", \"draggableOpts\", \"width\", \"height\", \"handle\", \"handleSize\", \"lockAspectRatio\", \"axis\", \"minConstraints\", \"maxConstraints\", \"onResize\", \"onResizeStop\", \"onResizeStart\", \"resizeHandles\", \"transformScale\"];\nfunction _interopRequireWildcard(e, t) { if (\"function\" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || \"object\" != typeof e && \"function\" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) \"default\" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n// The base <Resizable> component.\n// This component does not have state and relies on the parent to set its props based on callback data.\nclass Resizable extends React.Component {\n constructor() {\n super(...arguments);\n this.handleRefs = {};\n this.lastHandleRect = null;\n this.slack = null;\n this.lastSize = null;\n }\n componentWillUnmount() {\n this.resetData();\n }\n resetData() {\n this.lastHandleRect = this.slack = this.lastSize = null;\n }\n\n // Clamp width and height within provided constraints\n runConstraints(width, height) {\n const _this$props = this.props,\n minConstraints = _this$props.minConstraints,\n maxConstraints = _this$props.maxConstraints,\n lockAspectRatio = _this$props.lockAspectRatio;\n // short circuit\n if (!minConstraints && !maxConstraints && !lockAspectRatio) return [width, height];\n\n // If constraining to min and max, we need to also fit width and height to aspect ratio.\n if (lockAspectRatio) {\n const ratio = this.props.width / this.props.height;\n const deltaW = width - this.props.width;\n const deltaH = height - this.props.height;\n\n // Find which coordinate was greater and should push the other toward it.\n // E.g.:\n // ratio = 1, deltaW = 10, deltaH = 5, deltaH should become 10.\n // ratio = 2, deltaW = 10, deltaH = 6, deltaW should become 12.\n if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {\n height = width / ratio;\n } else {\n width = height * ratio;\n }\n }\n const oldW = width,\n oldH = height;\n\n // Add slack to the values used to calculate bound position. This will ensure that if\n // we start removing slack, the element won't react to it right away until it's been\n // completely removed.\n let _ref = this.slack || [0, 0],\n slackW = _ref[0],\n slackH = _ref[1];\n width += slackW;\n height += slackH;\n if (minConstraints) {\n width = Math.max(minConstraints[0], width);\n height = Math.max(minConstraints[1], height);\n }\n if (maxConstraints) {\n width = Math.min(maxConstraints[0], width);\n height = Math.min(maxConstraints[1], height);\n }\n\n // If the width or height changed, we must have introduced some slack. Record it for the next iteration.\n this.slack = [slackW + (oldW - width), slackH + (oldH - height)];\n return [width, height];\n }\n\n /**\n * Wrapper around drag events to provide more useful data.\n *\n * @param {String} handlerName Handler name to wrap.\n * @return {Function} Handler function.\n */\n resizeHandler(handlerName, axis) {\n return (e, _ref2) => {\n var _this$lastSize$width, _this$lastSize, _this$lastSize$height, _this$lastSize2;\n let node = _ref2.node,\n deltaX = _ref2.deltaX,\n deltaY = _ref2.deltaY;\n // Reset data in case it was left over somehow (should not be possible)\n if (handlerName === 'onResizeStart') this.resetData();\n\n // Axis restrictions\n const canDragX = (this.props.axis === 'both' || this.props.axis === 'x') && axis !== 'n' && axis !== 's';\n const canDragY = (this.props.axis === 'both' || this.props.axis === 'y') && axis !== 'e' && axis !== 'w';\n // No dragging possible.\n if (!canDragX && !canDragY) return;\n\n // Decompose axis for later use\n const axisV = axis[0];\n const axisH = axis[axis.length - 1]; // intentionally not axis[1], so that this catches axis === 'w' for example\n\n // Track the element being dragged to account for changes in position.\n // If a handle's position is changed between callbacks, we need to factor this in to the next callback.\n // Failure to do so will cause the element to \"skip\" when resized upwards or leftwards.\n const handleRect = node.getBoundingClientRect();\n if (this.lastHandleRect != null) {\n // If the handle has repositioned on either axis since last render,\n // we need to increase our callback values by this much.\n // Only checking 'n', 'w' since resizing by 's', 'w' won't affect the overall position on page,\n if (axisH === 'w') {\n const deltaLeftSinceLast = handleRect.left - this.lastHandleRect.left;\n deltaX += deltaLeftSinceLast;\n }\n if (axisV === 'n') {\n const deltaTopSinceLast = handleRect.top - this.lastHandleRect.top;\n deltaY += deltaTopSinceLast;\n }\n }\n // Storage of last rect so we know how much it has really moved.\n this.lastHandleRect = handleRect;\n\n // Reverse delta if using top or left drag handles.\n if (axisH === 'w') deltaX = -deltaX;\n if (axisV === 'n') deltaY = -deltaY;\n\n // Update w/h by the deltas. Also factor in transformScale.\n // Use lastSize (if available) instead of props to avoid losing deltas\n // when React can't re-render between consecutive mouse events.\n const baseWidth = (_this$lastSize$width = (_this$lastSize = this.lastSize) == null ? void 0 : _this$lastSize.width) != null ? _this$lastSize$width : this.props.width;\n const baseHeight = (_this$lastSize$height = (_this$lastSize2 = this.lastSize) == null ? void 0 : _this$lastSize2.height) != null ? _this$lastSize$height : this.props.height;\n let width = baseWidth + (canDragX ? deltaX / this.props.transformScale : 0);\n let height = baseHeight + (canDragY ? deltaY / this.props.transformScale : 0);\n\n // Run user-provided constraints.\n // For onResizeStop, use the last size from onResize rather than recalculating.\n // This avoids issues where props.width/height are stale due to React's batched updates.\n var _this$runConstraints = this.runConstraints(width, height);\n width = _this$runConstraints[0];\n height = _this$runConstraints[1];\n if (handlerName === 'onResizeStop' && this.lastSize) {\n var _this$lastSize3 = this.lastSize;\n width = _this$lastSize3.width;\n height = _this$lastSize3.height;\n }\n\n // Compare against the base (lastSize-or-props) so that callbacks correctly\n // suppress when the net delta is zero, even if props are stale relative to\n // the accumulated lastSize.\n const dimensionsChanged = width !== baseWidth || height !== baseHeight;\n\n // Store the size for use in onResizeStop. We do this after the onResizeStop check\n // above so we don't overwrite the stored value with a potentially stale calculation.\n if (handlerName !== 'onResizeStop') {\n this.lastSize = {\n width,\n height\n };\n }\n\n // Call user-supplied callback if present.\n const cb = typeof this.props[handlerName] === 'function' ? this.props[handlerName] : null;\n // Don't call 'onResize' if dimensions haven't changed.\n const shouldSkipCb = handlerName === 'onResize' && !dimensionsChanged;\n if (cb && !shouldSkipCb) {\n e.persist == null || e.persist();\n cb(e, {\n node,\n size: {\n width,\n height\n },\n handle: axis\n });\n }\n\n // Reset internal data\n if (handlerName === 'onResizeStop') this.resetData();\n };\n }\n\n // Render a resize handle given an axis & DOM ref. Ref *must* be attached for\n // the underlying draggable library to work properly.\n renderResizeHandle(handleAxis, ref) {\n const handle = this.props.handle;\n // No handle provided, make the default\n if (!handle) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: \"react-resizable-handle react-resizable-handle-\" + handleAxis,\n ref: ref\n });\n }\n // Handle is a function, such as:\n // `handle={(handleAxis) => <span className={...} />}`\n if (typeof handle === 'function') {\n return handle(handleAxis, ref);\n }\n // Handle is a React component (composite or DOM).\n const isDOMElement = typeof handle.type === 'string';\n const props = _objectSpread({\n ref\n }, isDOMElement ? {} : {\n handleAxis\n });\n return /*#__PURE__*/React.cloneElement(handle, props);\n }\n render() {\n // Pass along only props not meant for the `<Resizable>`.`\n // eslint-disable-next-line no-unused-vars\n const _this$props2 = this.props,\n children = _this$props2.children,\n className = _this$props2.className,\n draggableOpts = _this$props2.draggableOpts,\n width = _this$props2.width,\n height = _this$props2.height,\n handle = _this$props2.handle,\n handleSize = _this$props2.handleSize,\n lockAspectRatio = _this$props2.lockAspectRatio,\n axis = _this$props2.axis,\n minConstraints = _this$props2.minConstraints,\n maxConstraints = _this$props2.maxConstraints,\n onResize = _this$props2.onResize,\n onResizeStop = _this$props2.onResizeStop,\n onResizeStart = _this$props2.onResizeStart,\n resizeHandles = _this$props2.resizeHandles,\n transformScale = _this$props2.transformScale,\n p = _objectWithoutPropertiesLoose(_this$props2, _excluded);\n\n // What we're doing here is getting the child of this element, and cloning it with this element's props.\n // We are then defining its children as:\n // 1. Its original children (resizable's child's children), and\n // 2. One or more draggable handles.\n return (0, _utils.cloneElement)(children, _objectSpread(_objectSpread({}, p), {}, {\n className: (className ? className + \" \" : '') + \"react-resizable\",\n children: [...React.Children.toArray(children.props.children), ...resizeHandles.map(handleAxis => {\n var _this$handleRefs$hand;\n // Create a ref to the handle so that `<DraggableCore>` doesn't have to use ReactDOM.findDOMNode().\n const ref = (_this$handleRefs$hand = this.handleRefs[handleAxis]) != null ? _this$handleRefs$hand : this.handleRefs[handleAxis] = /*#__PURE__*/React.createRef();\n return /*#__PURE__*/React.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, {\n nodeRef: ref,\n key: \"resizableHandle-\" + handleAxis,\n onStop: this.resizeHandler('onResizeStop', handleAxis),\n onStart: this.resizeHandler('onResizeStart', handleAxis),\n onDrag: this.resizeHandler('onResize', handleAxis)\n }), this.renderResizeHandle(handleAxis, ref));\n })]\n }));\n }\n}\nexports.default = Resizable;\nResizable.propTypes = _propTypes.resizableProps;\nResizable.defaultProps = {\n axis: 'both',\n handleSize: [20, 20],\n lockAspectRatio: false,\n minConstraints: [20, 20],\n maxConstraints: [Infinity, Infinity],\n resizeHandles: ['se'],\n transformScale: 1\n};"],"names":["Resizable_1","React","_interopRequireWildcard","require$$0","_reactDraggable","require$$1","_utils","require$$2","_propTypes","require$$3","_excluded","e","r","n","t","o","f","_extends","_objectWithoutPropertiesLoose","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","i","_toPrimitive","Resizable$1","width","height","_this$props","minConstraints","maxConstraints","lockAspectRatio","ratio","deltaW","deltaH","oldW","oldH","_ref","slackW","slackH","handlerName","axis","_ref2","_this$lastSize$width","_this$lastSize","_this$lastSize$height","_this$lastSize2","node","deltaX","deltaY","canDragX","canDragY","axisV","axisH","handleRect","deltaLeftSinceLast","deltaTopSinceLast","baseWidth","baseHeight","_this$runConstraints","_this$lastSize3","dimensionsChanged","cb","handleAxis","ref","handle","isDOMElement","props","_this$props2","children","className","draggableOpts","resizeHandles","p","_this$handleRefs$hand","Resizable"],"mappings":";;;;;;;;SAEAA,eAAqB,IACrBA,EAAA,UAAkB;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC,IAAkBC,EAAA,GAClBC,IAASC,EAAA,GACTC,IAAaC,EAAA;AACjB,QAAMC,IAAY,CAAC,YAAY,aAAa,iBAAiB,SAAS,UAAU,UAAU,cAAc,mBAAmB,QAAQ,kBAAkB,kBAAkB,YAAY,gBAAgB,iBAAiB,iBAAiB,gBAAgB;AACrP,WAASR,EAAwBS,GAAG,GAAG;AAAE,QAAkB,OAAO,WAArB,WAA8B,KAAIC,IAAI,oBAAI,QAAO,GAAIC,IAAI,oBAAI,QAAO;AAAI,YAAQX,IAA0B,SAAUS,GAAGG,GAAG;AAAE,UAAI,CAACA,KAAKH,KAAKA,EAAE,WAAY,QAAOA;AAAG,UAAII,GAAG,GAAGC,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rD,SAAS,KAAK,cAAc,iBAAiBA,CAAU;AAAA,YACvD,QAAQ,KAAK,cAAc,YAAYA,CAAU;AAAA,WAClD,GAAG,KAAK,mBAAmBA,GAAYC,CAAG,CAAC;AAAA,QACpD,CAAO,CAAC;AAAA,MACR,CAAK,CAAC;AAAA,IACN;AAAA,EACA;AACAhE,SAAAA,EAAA,UAAkB2E,GAClBA,EAAU,YAAYnE,EAAW,gBACjCmE,EAAU,eAAe;AAAA,IACvB,MAAM;AAAA,IACN,YAAY,CAAC,IAAI,EAAE;AAAA,IACnB,iBAAiB;AAAA,IACjB,gBAAgB,CAAC,IAAI,EAAE;AAAA,IACvB,gBAAgB,CAAC,OAAU,KAAQ;AAAA,IACnC,eAAe,CAAC,IAAI;AAAA,IACpB,gBAAgB;AAAA;;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../_virtual/ResizableBox.cjs"),W=require("react"),D=require("../../prop-types/index.cjs"),H=require("./Resizable.cjs"),M=require("./propTypes.cjs");var _;function T(){if(_)return u.__exports;_=1,u.__exports.__esModule=!0,u.__exports.default=void 0;var h=g(W),m=d(D.__require()),z=d(H.__require()),O=M.__require();const R=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function d(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(typeof WeakMap=="function")var r=new WeakMap,i=new WeakMap;return(g=function(n,c){if(!c&&n&&n.__esModule)return n;var s,p,a={__proto__:null,default:n};if(n===null||typeof n!="object"&&typeof n!="function")return a;if(s=c?i:r){if(s.has(n))return s.get(n);s.set(n,a)}for(const o in n)o!=="default"&&{}.hasOwnProperty.call(n,o)&&((p=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(n,o))&&(p.get||p.set)?s(a,o,p):a[o]=n[o]);return a})(t,e)}function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)({}).hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},f.apply(null,arguments)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(i){v(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function v(t,e,r){return(e=w(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t){var e=S(t,"string");return typeof e=="symbol"?e:e+""}function S(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function x(t,e){if(t==null)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;r[i]=t[i]}return r}let y=class extends h.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(e,r)=>{const i=r.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(i,()=>this.props.onResize&&this.props.onResize(e,r))):this.setState(i)}}static getDerivedStateFromProps(e,r){return r.propsWidth!==e.width||r.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){const e=this.props,r=e.handle,i=e.handleSize;e.onResize;const n=e.onResizeStart,c=e.onResizeStop,s=e.draggableOpts,p=e.minConstraints,a=e.maxConstraints,o=e.lockAspectRatio,P=e.axis;e.width,e.height;const j=e.resizeHandles,q=e.style,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../_virtual/ResizableBox.cjs"),W=require("react"),D=require("../../prop-types/index.cjs"),H=require("./Resizable.cjs"),M=require("./propTypes.cjs");var _;function T(){if(_)return u.__exports;_=1,u.__exports.__esModule=!0,u.__exports.default=void 0;var h=g(W),m=d(D.__require()),z=d(H.__require()),O=M.__require();const R=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function d(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(typeof WeakMap=="function")var r=new WeakMap,i=new WeakMap;return(g=function(n,c){if(!c&&n&&n.__esModule)return n;var s,p,a={__proto__:null,default:n};if(n===null||typeof n!="object"&&typeof n!="function")return a;if(s=c?i:r){if(s.has(n))return s.get(n);s.set(n,a)}for(const o in n)o!=="default"&&{}.hasOwnProperty.call(n,o)&&((p=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(n,o))&&(p.get||p.set)?s(a,o,p):a[o]=n[o]);return a})(t,e)}function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)({}).hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},f.apply(null,arguments)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(i){v(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function v(t,e,r){return(e=w(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t){var e=S(t,"string");return typeof e=="symbol"?e:e+""}function S(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function x(t,e){if(t==null)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;r[i]=t[i]}return r}let y=class extends h.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(e,r)=>{const i=r.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(i,()=>this.props.onResize&&this.props.onResize(e,r))):this.setState(i)}}static getDerivedStateFromProps(e,r){return r.propsWidth!==e.width||r.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){const e=this.props,r=e.handle,i=e.handleSize;e.onResize;const n=e.onResizeStart,c=e.onResizeStop,s=e.draggableOpts,p=e.minConstraints,a=e.maxConstraints,o=e.lockAspectRatio,P=e.axis;e.width,e.height;const j=e.resizeHandles,q=e.style,k=e.transformScale,C=x(e,R);return h.createElement(z.default,{axis:P,draggableOpts:s,handle:r,handleSize:i,height:this.state.height,lockAspectRatio:o,maxConstraints:a,minConstraints:p,onResizeStart:n,onResize:this.onResize,onResizeStop:c,resizeHandles:j,transformScale:k,width:this.state.width},h.createElement("div",f({},C,{style:l(l({},q),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}};return u.__exports.default=y,y.propTypes=l(l({},O.resizableProps),{},{children:m.default.element}),u.__exports}exports.__require=T;
|
|
2
2
|
//# sourceMappingURL=ResizableBox.cjs.map
|
|
@@ -2,13 +2,13 @@ import { __exports as u } from "../../../_virtual/ResizableBox.js";
|
|
|
2
2
|
import W from "react";
|
|
3
3
|
import { __require as D } from "../../prop-types/index.js";
|
|
4
4
|
import { __require as H } from "./Resizable.js";
|
|
5
|
-
import { __require as
|
|
5
|
+
import { __require as T } from "./propTypes.js";
|
|
6
6
|
var y;
|
|
7
7
|
function F() {
|
|
8
8
|
if (y) return u;
|
|
9
9
|
y = 1, u.__esModule = !0, u.default = void 0;
|
|
10
|
-
var c = g(W), z = d(/* @__PURE__ */ D()), _ = d(H()),
|
|
11
|
-
const
|
|
10
|
+
var c = g(W), z = d(/* @__PURE__ */ D()), _ = d(H()), O = T();
|
|
11
|
+
const R = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
12
12
|
function d(t) {
|
|
13
13
|
return t && t.__esModule ? t : { default: t };
|
|
14
14
|
}
|
|
@@ -107,7 +107,7 @@ function F() {
|
|
|
107
107
|
e.onResize;
|
|
108
108
|
const n = e.onResizeStart, h = e.onResizeStop, s = e.draggableOpts, p = e.minConstraints, a = e.maxConstraints, o = e.lockAspectRatio, j = e.axis;
|
|
109
109
|
e.width, e.height;
|
|
110
|
-
const x = e.resizeHandles, q = e.style,
|
|
110
|
+
const x = e.resizeHandles, q = e.style, k = e.transformScale, C = S(e, R);
|
|
111
111
|
return /* @__PURE__ */ c.createElement(_.default, {
|
|
112
112
|
axis: j,
|
|
113
113
|
draggableOpts: s,
|
|
@@ -121,9 +121,9 @@ function F() {
|
|
|
121
121
|
onResize: this.onResize,
|
|
122
122
|
onResizeStop: h,
|
|
123
123
|
resizeHandles: x,
|
|
124
|
-
transformScale:
|
|
124
|
+
transformScale: k,
|
|
125
125
|
width: this.state.width
|
|
126
|
-
}, /* @__PURE__ */ c.createElement("div", f({},
|
|
126
|
+
}, /* @__PURE__ */ c.createElement("div", f({}, C, {
|
|
127
127
|
style: l(l({}, q), {}, {
|
|
128
128
|
width: this.state.width + "px",
|
|
129
129
|
height: this.state.height + "px"
|
|
@@ -131,7 +131,7 @@ function F() {
|
|
|
131
131
|
})));
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
return u.default = b, b.propTypes = l(l({},
|
|
134
|
+
return u.default = b, b.propTypes = l(l({}, O.resizableProps), {}, {
|
|
135
135
|
children: z.default.element
|
|
136
136
|
}), u;
|
|
137
137
|
}
|