@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactGridLayout.js","sources":["../../../../../node_modules/react-grid-layout/build/ReactGridLayout.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _fastEquals = require(\"fast-equals\");\nvar _clsx = _interopRequireDefault(require(\"clsx\"));\nvar _utils = require(\"./utils\");\nvar _calculateUtils = require(\"./calculateUtils\");\nvar _GridItem = _interopRequireDefault(require(\"./GridItem\"));\nvar _ReactGridLayoutPropTypes = _interopRequireDefault(require(\"./ReactGridLayoutPropTypes\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\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 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/*:: import type {\n ChildrenArray as ReactChildrenArray,\n Element as ReactElement\n} from \"react\";*/\n/*:: import type {\n CompactType,\n GridResizeEvent,\n GridDragEvent,\n DragOverEvent,\n Layout,\n DroppingPosition,\n LayoutItem\n} from \"./utils\";*/\n// Types\n/*:: import type { PositionParams } from \"./calculateUtils\";*/\n/*:: type State = {\n activeDrag: ?LayoutItem,\n layout: Layout,\n mounted: boolean,\n oldDragItem: ?LayoutItem,\n oldLayout: ?Layout,\n oldResizeItem: ?LayoutItem,\n resizing: boolean,\n droppingDOMNode: ?ReactElement<any>,\n droppingPosition?: DroppingPosition,\n // Mirrored props\n children: ReactChildrenArray<ReactElement<any>>,\n compactType?: CompactType,\n propsLayout?: Layout\n};*/\n/*:: import type { Props, DefaultProps } from \"./ReactGridLayoutPropTypes\";*/\n// End Types\nconst layoutClassName = \"react-grid-layout\";\nlet isFirefox = false;\n// Try...catch will protect from navigator not existing (e.g. node) or a bad implementation of navigator\ntry {\n isFirefox = /firefox/i.test(navigator.userAgent);\n} catch (e) {\n /* Ignore */\n}\n\n/**\n * A reactive, fluid grid layout with draggable, resizable components.\n */\n\nclass ReactGridLayout extends React.Component /*:: <Props, State>*/{\n constructor() {\n super(...arguments);\n _defineProperty(this, \"state\", {\n activeDrag: null,\n layout: (0, _utils.synchronizeLayoutWithChildren)(this.props.layout, this.props.children, this.props.cols,\n // Legacy support for verticalCompact: false\n (0, _utils.compactType)(this.props), this.props.allowOverlap),\n mounted: false,\n oldDragItem: null,\n oldLayout: null,\n oldResizeItem: null,\n resizing: false,\n droppingDOMNode: null,\n children: []\n });\n _defineProperty(this, \"dragEnterCounter\", 0);\n /**\n * When dragging starts\n * @param {String} i Id of the child\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n _defineProperty(this, \"onDragStart\", (i /*: string*/, x /*: number*/, y /*: number*/, _ref /*:: */) => {\n let {\n e,\n node\n } /*: GridDragEvent*/ = _ref /*: GridDragEvent*/;\n const {\n layout\n } = this.state;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Create placeholder (display only)\n const placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n placeholder: true,\n i: i\n };\n this.setState({\n oldDragItem: (0, _utils.cloneLayoutItem)(l),\n oldLayout: layout,\n activeDrag: placeholder\n });\n return this.props.onDragStart(layout, l, l, null, e, node);\n });\n /**\n * Each drag movement create a new dragelement and move the element to the dragged location\n * @param {String} i Id of the child\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n _defineProperty(this, \"onDrag\", (i, x, y, _ref2) => {\n let {\n e,\n node\n } = _ref2;\n const {\n oldDragItem\n } = this.state;\n let {\n layout\n } = this.state;\n const {\n cols,\n allowOverlap,\n preventCollision\n } = this.props;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Create placeholder (display only)\n const placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n placeholder: true,\n i: i\n };\n\n // Move the element to the dragged location.\n const isUserAction = true;\n layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, (0, _utils.compactType)(this.props), cols, allowOverlap);\n this.props.onDrag(layout, oldDragItem, l, placeholder, e, node);\n this.setState({\n layout: allowOverlap ? layout : (0, _utils.compact)(layout, (0, _utils.compactType)(this.props), cols),\n activeDrag: placeholder\n });\n });\n /**\n * When dragging stops, figure out which position the element is closest to and update its x and y.\n * @param {String} i Index of the child.\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n _defineProperty(this, \"onDragStop\", (i, x, y, _ref3) => {\n let {\n e,\n node\n } = _ref3;\n if (!this.state.activeDrag) return;\n const {\n oldDragItem\n } = this.state;\n let {\n layout\n } = this.state;\n const {\n cols,\n preventCollision,\n allowOverlap\n } = this.props;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Move the element here\n const isUserAction = true;\n layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, (0, _utils.compactType)(this.props), cols, allowOverlap);\n\n // Set state\n const newLayout = allowOverlap ? layout : (0, _utils.compact)(layout, (0, _utils.compactType)(this.props), cols);\n this.props.onDragStop(newLayout, oldDragItem, l, null, e, node);\n const {\n oldLayout\n } = this.state;\n this.setState({\n activeDrag: null,\n layout: newLayout,\n oldDragItem: null,\n oldLayout: null\n });\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n });\n _defineProperty(this, \"onResizeStart\", (i, w, h, _ref4) => {\n let {\n e,\n node\n } = _ref4;\n const {\n layout\n } = this.state;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n this.setState({\n oldResizeItem: (0, _utils.cloneLayoutItem)(l),\n oldLayout: this.state.layout,\n resizing: true\n });\n this.props.onResizeStart(layout, l, l, null, e, node);\n });\n _defineProperty(this, \"onResize\", (i, w, h, _ref5) => {\n let {\n e,\n node,\n size,\n handle\n } = _ref5;\n const {\n oldResizeItem\n } = this.state;\n const {\n layout\n } = this.state;\n const {\n cols,\n preventCollision,\n allowOverlap\n } = this.props;\n let shouldMoveItem = false;\n let finalLayout;\n let x;\n let y;\n const [newLayout, l] = (0, _utils.withLayoutItem)(layout, i, l => {\n let hasCollisions;\n x = l.x;\n y = l.y;\n if ([\"sw\", \"w\", \"nw\", \"n\", \"ne\"].indexOf(handle) !== -1) {\n if ([\"sw\", \"nw\", \"w\"].indexOf(handle) !== -1) {\n x = l.x + (l.w - w);\n w = l.x !== x && x < 0 ? l.w : w;\n x = x < 0 ? 0 : x;\n }\n if ([\"ne\", \"n\", \"nw\"].indexOf(handle) !== -1) {\n y = l.y + (l.h - h);\n h = l.y !== y && y < 0 ? l.h : h;\n y = y < 0 ? 0 : y;\n }\n shouldMoveItem = true;\n }\n\n // Something like quad tree should be used\n // to find collisions faster\n if (preventCollision && !allowOverlap) {\n const collisions = (0, _utils.getAllCollisions)(layout, _objectSpread(_objectSpread({}, l), {}, {\n w,\n h,\n x,\n y\n })).filter(layoutItem => layoutItem.i !== l.i);\n hasCollisions = collisions.length > 0;\n\n // If we're colliding, we need adjust the placeholder.\n if (hasCollisions) {\n // Reset layoutItem dimensions if there were collisions\n y = l.y;\n h = l.h;\n x = l.x;\n w = l.w;\n shouldMoveItem = false;\n }\n }\n l.w = w;\n l.h = h;\n return l;\n });\n\n // Shouldn't ever happen, but typechecking makes it necessary\n if (!l) return;\n finalLayout = newLayout;\n if (shouldMoveItem) {\n // Move the element to the new position.\n const isUserAction = true;\n finalLayout = (0, _utils.moveElement)(newLayout, l, x, y, isUserAction, this.props.preventCollision, (0, _utils.compactType)(this.props), cols, allowOverlap);\n }\n\n // Create placeholder element (display only)\n const placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n static: true,\n i: i\n };\n this.props.onResize(finalLayout, oldResizeItem, l, placeholder, e, node);\n\n // Re-compact the newLayout and set the drag placeholder.\n this.setState({\n layout: allowOverlap ? finalLayout : (0, _utils.compact)(finalLayout, (0, _utils.compactType)(this.props), cols),\n activeDrag: placeholder\n });\n });\n _defineProperty(this, \"onResizeStop\", (i, w, h, _ref6) => {\n let {\n e,\n node\n } = _ref6;\n const {\n layout,\n oldResizeItem\n } = this.state;\n const {\n cols,\n allowOverlap\n } = this.props;\n const l = (0, _utils.getLayoutItem)(layout, i);\n\n // Set state\n const newLayout = allowOverlap ? layout : (0, _utils.compact)(layout, (0, _utils.compactType)(this.props), cols);\n this.props.onResizeStop(newLayout, oldResizeItem, l, null, e, node);\n const {\n oldLayout\n } = this.state;\n this.setState({\n activeDrag: null,\n layout: newLayout,\n oldResizeItem: null,\n oldLayout: null,\n resizing: false\n });\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n });\n // Called while dragging an element. Part of browser native drag/drop API.\n // Native event target might be the layout itself, or an element within the layout.\n _defineProperty(this, \"onDragOver\", e => {\n var _e$nativeEvent$target;\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n\n // we should ignore events from layout's children in Firefox\n // to avoid unpredictable jumping of a dropping placeholder\n // FIXME remove this hack\n if (isFirefox &&\n // $FlowIgnore can't figure this out\n !((_e$nativeEvent$target = e.nativeEvent.target) !== null && _e$nativeEvent$target !== void 0 && _e$nativeEvent$target.classList.contains(layoutClassName))) {\n return false;\n }\n const {\n droppingItem,\n onDropDragOver,\n margin,\n cols,\n rowHeight,\n maxRows,\n width,\n containerPadding,\n transformScale\n } = this.props;\n // Allow user to customize the dropping item or short-circuit the drop based on the results\n // of the `onDragOver(e: Event)` callback.\n const onDragOverResult = onDropDragOver === null || onDropDragOver === void 0 ? void 0 : onDropDragOver(e);\n if (onDragOverResult === false) {\n if (this.state.droppingDOMNode) {\n this.removeDroppingPlaceholder();\n }\n return false;\n }\n const finalDroppingItem = _objectSpread(_objectSpread({}, droppingItem), onDragOverResult);\n const {\n layout\n } = this.state;\n\n // $FlowIgnore missing def\n const gridRect = e.currentTarget.getBoundingClientRect(); // The grid's position in the viewport\n\n // Calculate the mouse position relative to the grid\n const layerX = e.clientX - gridRect.left;\n const layerY = e.clientY - gridRect.top;\n const droppingPosition = {\n left: layerX / transformScale,\n top: layerY / transformScale,\n e\n };\n if (!this.state.droppingDOMNode) {\n const positionParams /*: PositionParams*/ = {\n cols,\n margin,\n maxRows,\n rowHeight,\n containerWidth: width,\n containerPadding: containerPadding || margin\n };\n const calculatedPosition = (0, _calculateUtils.calcXY)(positionParams, layerY, layerX, finalDroppingItem.w, finalDroppingItem.h);\n this.setState({\n droppingDOMNode: /*#__PURE__*/React.createElement(\"div\", {\n key: finalDroppingItem.i\n }),\n droppingPosition,\n layout: [...layout, _objectSpread(_objectSpread({}, finalDroppingItem), {}, {\n x: calculatedPosition.x,\n y: calculatedPosition.y,\n static: false,\n isDraggable: true\n })]\n });\n } else if (this.state.droppingPosition) {\n const {\n left,\n top\n } = this.state.droppingPosition;\n const shouldUpdatePosition = left != layerX || top != layerY;\n if (shouldUpdatePosition) {\n this.setState({\n droppingPosition\n });\n }\n }\n });\n _defineProperty(this, \"removeDroppingPlaceholder\", () => {\n const {\n droppingItem,\n cols\n } = this.props;\n const {\n layout\n } = this.state;\n const newLayout = (0, _utils.compact)(layout.filter(l => l.i !== droppingItem.i), (0, _utils.compactType)(this.props), cols, this.props.allowOverlap);\n this.setState({\n layout: newLayout,\n droppingDOMNode: null,\n activeDrag: null,\n droppingPosition: undefined\n });\n });\n _defineProperty(this, \"onDragLeave\", e => {\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n this.dragEnterCounter--;\n\n // onDragLeave can be triggered on each layout's child.\n // But we know that count of dragEnter and dragLeave events\n // will be balanced after leaving the layout's container\n // so we can increase and decrease count of dragEnter and\n // when it'll be equal to 0 we'll remove the placeholder\n if (this.dragEnterCounter === 0) {\n this.removeDroppingPlaceholder();\n }\n });\n _defineProperty(this, \"onDragEnter\", e => {\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n this.dragEnterCounter++;\n });\n _defineProperty(this, \"onDrop\", (e /*: Event*/) => {\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n const {\n droppingItem\n } = this.props;\n const {\n layout\n } = this.state;\n const item = layout.find(l => l.i === droppingItem.i);\n\n // reset dragEnter counter on drop\n this.dragEnterCounter = 0;\n this.removeDroppingPlaceholder();\n this.props.onDrop(layout, item, e);\n });\n }\n componentDidMount() {\n this.setState({\n mounted: true\n });\n // Possibly call back with layout on mount. This should be done after correcting the layout width\n // to ensure we don't rerender with the wrong width.\n this.onLayoutMaybeChanged(this.state.layout, this.props.layout);\n }\n static getDerivedStateFromProps(nextProps /*: Props*/, prevState /*: State*/) /*: $Shape<State> | null*/{\n let newLayoutBase;\n if (prevState.activeDrag) {\n return null;\n }\n\n // Legacy support for compactType\n // Allow parent to set layout directly.\n if (!(0, _fastEquals.deepEqual)(nextProps.layout, prevState.propsLayout) || nextProps.compactType !== prevState.compactType) {\n newLayoutBase = nextProps.layout;\n } else if (!(0, _utils.childrenEqual)(nextProps.children, prevState.children)) {\n // If children change, also regenerate the layout. Use our state\n // as the base in case because it may be more up to date than\n // what is in props.\n newLayoutBase = prevState.layout;\n }\n\n // We need to regenerate the layout.\n if (newLayoutBase) {\n const newLayout = (0, _utils.synchronizeLayoutWithChildren)(newLayoutBase, nextProps.children, nextProps.cols, (0, _utils.compactType)(nextProps), nextProps.allowOverlap);\n return {\n layout: newLayout,\n // We need to save these props to state for using\n // getDerivedStateFromProps instead of componentDidMount (in which we would get extra rerender)\n compactType: nextProps.compactType,\n children: nextProps.children,\n propsLayout: nextProps.layout\n };\n }\n return null;\n }\n shouldComponentUpdate(nextProps /*: Props*/, nextState /*: State*/) /*: boolean*/{\n return (\n // NOTE: this is almost always unequal. Therefore the only way to get better performance\n // from SCU is if the user intentionally memoizes children. If they do, and they can\n // handle changes properly, performance will increase.\n this.props.children !== nextProps.children || !(0, _utils.fastRGLPropsEqual)(this.props, nextProps, _fastEquals.deepEqual) || this.state.activeDrag !== nextState.activeDrag || this.state.mounted !== nextState.mounted || this.state.droppingPosition !== nextState.droppingPosition\n );\n }\n componentDidUpdate(prevProps /*: Props*/, prevState /*: State*/) {\n if (!this.state.activeDrag) {\n const newLayout = this.state.layout;\n const oldLayout = prevState.layout;\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n }\n }\n\n /**\n * Calculates a pixel value for the container.\n * @return {String} Container height in pixels.\n */\n containerHeight() /*: ?string*/{\n if (!this.props.autoSize) return;\n const nbRow = (0, _utils.bottom)(this.state.layout);\n const containerPaddingY = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1];\n return nbRow * this.props.rowHeight + (nbRow - 1) * this.props.margin[1] + containerPaddingY * 2 + \"px\";\n }\n onLayoutMaybeChanged(newLayout /*: Layout*/, oldLayout /*: ?Layout*/) {\n if (!oldLayout) oldLayout = this.state.layout;\n if (!(0, _fastEquals.deepEqual)(oldLayout, newLayout)) {\n this.props.onLayoutChange(newLayout);\n }\n }\n /**\n * Create a placeholder object.\n * @return {Element} Placeholder div.\n */\n placeholder() /*: ?ReactElement<any>*/{\n const {\n activeDrag\n } = this.state;\n if (!activeDrag) return null;\n const {\n width,\n cols,\n margin,\n containerPadding,\n rowHeight,\n maxRows,\n useCSSTransforms,\n transformScale\n } = this.props;\n\n // {...this.state.activeDrag} is pretty slow, actually\n return /*#__PURE__*/React.createElement(_GridItem.default, {\n w: activeDrag.w,\n h: activeDrag.h,\n x: activeDrag.x,\n y: activeDrag.y,\n i: activeDrag.i,\n className: \"react-grid-placeholder \".concat(this.state.resizing ? \"placeholder-resizing\" : \"\"),\n containerWidth: width,\n cols: cols,\n margin: margin,\n containerPadding: containerPadding || margin,\n maxRows: maxRows,\n rowHeight: rowHeight,\n isDraggable: false,\n isResizable: false,\n isBounded: false,\n useCSSTransforms: useCSSTransforms,\n transformScale: transformScale\n }, /*#__PURE__*/React.createElement(\"div\", null));\n }\n\n /**\n * Given a grid item, set its style attributes & surround in a <Draggable>.\n * @param {Element} child React element.\n * @return {Element} Element wrapped in draggable and properly placed.\n */\n processGridItem(child /*: ReactElement<any>*/, isDroppingItem /*: boolean*/) /*: ?ReactElement<any>*/{\n if (!child || !child.key) return;\n const l = (0, _utils.getLayoutItem)(this.state.layout, String(child.key));\n if (!l) return null;\n const {\n width,\n cols,\n margin,\n containerPadding,\n rowHeight,\n maxRows,\n isDraggable,\n isResizable,\n isBounded,\n useCSSTransforms,\n transformScale,\n draggableCancel,\n draggableHandle,\n resizeHandles,\n resizeHandle\n } = this.props;\n const {\n mounted,\n droppingPosition\n } = this.state;\n\n // Determine user manipulations possible.\n // If an item is static, it can't be manipulated by default.\n // Any properties defined directly on the grid item will take precedence.\n const draggable = typeof l.isDraggable === \"boolean\" ? l.isDraggable : !l.static && isDraggable;\n const resizable = typeof l.isResizable === \"boolean\" ? l.isResizable : !l.static && isResizable;\n const resizeHandlesOptions = l.resizeHandles || resizeHandles;\n\n // isBounded set on child if set on parent, and child is not explicitly false\n const bounded = draggable && isBounded && l.isBounded !== false;\n return /*#__PURE__*/React.createElement(_GridItem.default, {\n containerWidth: width,\n cols: cols,\n margin: margin,\n containerPadding: containerPadding || margin,\n maxRows: maxRows,\n rowHeight: rowHeight,\n cancel: draggableCancel,\n handle: draggableHandle,\n onDragStop: this.onDragStop,\n onDragStart: this.onDragStart,\n onDrag: this.onDrag,\n onResizeStart: this.onResizeStart,\n onResize: this.onResize,\n onResizeStop: this.onResizeStop,\n isDraggable: draggable,\n isResizable: resizable,\n isBounded: bounded,\n useCSSTransforms: useCSSTransforms && mounted,\n usePercentages: !mounted,\n transformScale: transformScale,\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n i: l.i,\n minH: l.minH,\n minW: l.minW,\n maxH: l.maxH,\n maxW: l.maxW,\n static: l.static,\n droppingPosition: isDroppingItem ? droppingPosition : undefined,\n resizeHandles: resizeHandlesOptions,\n resizeHandle: resizeHandle\n }, child);\n }\n render() /*: React.Element<\"div\">*/{\n const {\n className,\n style,\n isDroppable,\n innerRef\n } = this.props;\n const mergedClassName = (0, _clsx.default)(layoutClassName, className);\n const mergedStyle = _objectSpread({\n height: this.containerHeight()\n }, style);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: innerRef,\n className: mergedClassName,\n style: mergedStyle,\n onDrop: isDroppable ? this.onDrop : _utils.noop,\n onDragLeave: isDroppable ? this.onDragLeave : _utils.noop,\n onDragEnter: isDroppable ? this.onDragEnter : _utils.noop,\n onDragOver: isDroppable ? this.onDragOver : _utils.noop\n }, React.Children.map(this.props.children, child => this.processGridItem(child)), isDroppable && this.state.droppingDOMNode && this.processGridItem(this.state.droppingDOMNode, true), this.placeholder());\n }\n}\nexports.default = ReactGridLayout;\n// TODO publish internal ReactClass displayName transform\n_defineProperty(ReactGridLayout, \"displayName\", \"ReactGridLayout\");\n// Refactored to another module to make way for preval\n_defineProperty(ReactGridLayout, \"propTypes\", _ReactGridLayoutPropTypes.default);\n_defineProperty(ReactGridLayout, \"defaultProps\", {\n autoSize: true,\n cols: 12,\n className: \"\",\n style: {},\n draggableHandle: \"\",\n draggableCancel: \"\",\n containerPadding: null,\n rowHeight: 150,\n maxRows: Infinity,\n // infinite vertical growth\n layout: [],\n margin: [10, 10],\n isBounded: false,\n isDraggable: true,\n isResizable: true,\n allowOverlap: false,\n isDroppable: false,\n useCSSTransforms: true,\n transformScale: 1,\n verticalCompact: true,\n compactType: \"vertical\",\n preventCollision: false,\n droppingItem: {\n i: \"__dropping-elem__\",\n h: 1,\n w: 1\n },\n resizeHandles: [\"se\"],\n onLayoutChange: _utils.noop,\n onDragStart: _utils.noop,\n onDrag: _utils.noop,\n onDragStop: _utils.noop,\n onResizeStart: _utils.noop,\n onResize: _utils.noop,\n onResizeStop: _utils.noop,\n onDrop: _utils.noop,\n onDropDragOver: _utils.noop\n});"],"names":["ReactGridLayout_1","React","_interopRequireWildcard","require$$0","_fastEquals","require$$1","_clsx","_interopRequireDefault","require$$2","_utils","require$$3","_calculateUtils","require$$4","_GridItem","require$$5","_ReactGridLayoutPropTypes","require$$6","e","r","n","t","o","i","f","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","layoutClassName","isFirefox","ReactGridLayout$1","x","y","_ref","node","layout","l","placeholder","_ref2","oldDragItem","cols","allowOverlap","preventCollision","_ref3","newLayout","oldLayout","w","h","_ref4","_ref5","size","handle","oldResizeItem","shouldMoveItem","finalLayout","hasCollisions","layoutItem","_ref6","_e$nativeEvent$target","droppingItem","onDropDragOver","margin","rowHeight","maxRows","width","containerPadding","transformScale","onDragOverResult","finalDroppingItem","gridRect","layerX","layerY","droppingPosition","left","top","positionParams","calculatedPosition","item","nextProps","prevState","newLayoutBase","nextState","prevProps","nbRow","containerPaddingY","activeDrag","useCSSTransforms","child","isDroppingItem","isDraggable","isResizable","isBounded","draggableCancel","draggableHandle","resizeHandles","resizeHandle","mounted","draggable","resizable","resizeHandlesOptions","bounded","className","style","isDroppable","innerRef","mergedClassName","mergedStyle","ReactGridLayout"],"mappings":";;;;;;;;;;;SAEA,OAAO,eAAeA,GAAS,cAAc;AAAA,IAC3C,OAAO;AAAA,EACT,CAAC,GACDA,EAAA,UAAkB;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC,IAAcC,gBAAAA,EAAA,GACdC,IAAQC,EAAuBC,GAAe,GAC9CC,IAASC,EAAA,GACTC,IAAkBC,EAAA,GAClBC,IAAYN,EAAuBO,GAAqB,GACxDC,IAA4BR,EAAuBS,GAAqC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AAO;AAAA,EACzB,CAAC;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"ReactGridLayout.js","sources":["../../../../../node_modules/react-grid-layout/build/ReactGridLayout.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _fastEquals = require(\"fast-equals\");\nvar _clsx = _interopRequireDefault(require(\"clsx\"));\nvar _utils = require(\"./utils\");\nvar _calculateUtils = require(\"./calculateUtils\");\nvar _GridItem = _interopRequireDefault(require(\"./GridItem\"));\nvar _ReactGridLayoutPropTypes = _interopRequireDefault(require(\"./ReactGridLayoutPropTypes\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\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 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/*:: import type {\n ChildrenArray as ReactChildrenArray,\n Element as ReactElement\n} from \"react\";*/\n/*:: import type {\n CompactType,\n GridResizeEvent,\n GridDragEvent,\n DragOverEvent,\n Layout,\n DroppingPosition,\n LayoutItem\n} from \"./utils\";*/\n// Types\n/*:: import type { PositionParams } from \"./calculateUtils\";*/\n/*:: type State = {\n activeDrag: ?LayoutItem,\n layout: Layout,\n mounted: boolean,\n oldDragItem: ?LayoutItem,\n oldLayout: ?Layout,\n oldResizeItem: ?LayoutItem,\n resizing: boolean,\n droppingDOMNode: ?ReactElement<any>,\n droppingPosition?: DroppingPosition,\n // Mirrored props\n children: ReactChildrenArray<ReactElement<any>>,\n compactType?: CompactType,\n propsLayout?: Layout\n};*/\n/*:: import type { Props, DefaultProps } from \"./ReactGridLayoutPropTypes\";*/\n// End Types\nconst layoutClassName = \"react-grid-layout\";\nlet isFirefox = false;\n// Try...catch will protect from navigator not existing (e.g. node) or a bad implementation of navigator\ntry {\n isFirefox = /firefox/i.test(navigator.userAgent);\n} catch (e) {\n /* Ignore */\n}\n\n/**\n * A reactive, fluid grid layout with draggable, resizable components.\n */\n\nclass ReactGridLayout extends React.Component /*:: <Props, State>*/{\n constructor() {\n super(...arguments);\n _defineProperty(this, \"state\", {\n activeDrag: null,\n layout: (0, _utils.synchronizeLayoutWithChildren)(this.props.layout, this.props.children, this.props.cols,\n // Legacy support for verticalCompact: false\n (0, _utils.compactType)(this.props), this.props.allowOverlap),\n mounted: false,\n oldDragItem: null,\n oldLayout: null,\n oldResizeItem: null,\n resizing: false,\n droppingDOMNode: null,\n children: []\n });\n _defineProperty(this, \"dragEnterCounter\", 0);\n /**\n * When dragging starts\n * @param {String} i Id of the child\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n _defineProperty(this, \"onDragStart\", (i /*: string*/, x /*: number*/, y /*: number*/, _ref /*:: */) => {\n let {\n e,\n node\n } /*: GridDragEvent*/ = _ref /*: GridDragEvent*/;\n const {\n layout\n } = this.state;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Create placeholder (display only)\n const placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n placeholder: true,\n i: i\n };\n this.setState({\n oldDragItem: (0, _utils.cloneLayoutItem)(l),\n oldLayout: layout,\n activeDrag: placeholder\n });\n return this.props.onDragStart(layout, l, l, null, e, node);\n });\n /**\n * Each drag movement create a new dragelement and move the element to the dragged location\n * @param {String} i Id of the child\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n _defineProperty(this, \"onDrag\", (i, x, y, _ref2) => {\n let {\n e,\n node\n } = _ref2;\n const {\n oldDragItem\n } = this.state;\n let {\n layout\n } = this.state;\n const {\n cols,\n allowOverlap,\n preventCollision\n } = this.props;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Create placeholder (display only)\n const placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n placeholder: true,\n i: i\n };\n\n // Move the element to the dragged location.\n const isUserAction = true;\n layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, (0, _utils.compactType)(this.props), cols, allowOverlap);\n this.props.onDrag(layout, oldDragItem, l, placeholder, e, node);\n this.setState({\n layout: allowOverlap ? layout : (0, _utils.compact)(layout, (0, _utils.compactType)(this.props), cols),\n activeDrag: placeholder\n });\n });\n /**\n * When dragging stops, figure out which position the element is closest to and update its x and y.\n * @param {String} i Index of the child.\n * @param {Number} x X position of the move\n * @param {Number} y Y position of the move\n * @param {Event} e The mousedown event\n * @param {Element} node The current dragging DOM element\n */\n _defineProperty(this, \"onDragStop\", (i, x, y, _ref3) => {\n let {\n e,\n node\n } = _ref3;\n if (!this.state.activeDrag) return;\n const {\n oldDragItem\n } = this.state;\n let {\n layout\n } = this.state;\n const {\n cols,\n preventCollision,\n allowOverlap\n } = this.props;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n\n // Move the element here\n const isUserAction = true;\n layout = (0, _utils.moveElement)(layout, l, x, y, isUserAction, preventCollision, (0, _utils.compactType)(this.props), cols, allowOverlap);\n\n // Set state\n const newLayout = allowOverlap ? layout : (0, _utils.compact)(layout, (0, _utils.compactType)(this.props), cols);\n this.props.onDragStop(newLayout, oldDragItem, l, null, e, node);\n const {\n oldLayout\n } = this.state;\n this.setState({\n activeDrag: null,\n layout: newLayout,\n oldDragItem: null,\n oldLayout: null\n });\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n });\n _defineProperty(this, \"onResizeStart\", (i, w, h, _ref4) => {\n let {\n e,\n node\n } = _ref4;\n const {\n layout\n } = this.state;\n const l = (0, _utils.getLayoutItem)(layout, i);\n if (!l) return;\n this.setState({\n oldResizeItem: (0, _utils.cloneLayoutItem)(l),\n oldLayout: this.state.layout,\n resizing: true\n });\n this.props.onResizeStart(layout, l, l, null, e, node);\n });\n _defineProperty(this, \"onResize\", (i, w, h, _ref5) => {\n let {\n e,\n node,\n size,\n handle\n } = _ref5;\n const {\n oldResizeItem\n } = this.state;\n const {\n layout\n } = this.state;\n const {\n cols,\n preventCollision,\n allowOverlap\n } = this.props;\n let shouldMoveItem = false;\n let finalLayout;\n let x;\n let y;\n const [newLayout, l] = (0, _utils.withLayoutItem)(layout, i, l => {\n let hasCollisions;\n x = l.x;\n y = l.y;\n if ([\"sw\", \"w\", \"nw\", \"n\", \"ne\"].indexOf(handle) !== -1) {\n if ([\"sw\", \"nw\", \"w\"].indexOf(handle) !== -1) {\n x = l.x + (l.w - w);\n w = l.x !== x && x < 0 ? l.w : w;\n x = x < 0 ? 0 : x;\n }\n if ([\"ne\", \"n\", \"nw\"].indexOf(handle) !== -1) {\n y = l.y + (l.h - h);\n h = l.y !== y && y < 0 ? l.h : h;\n y = y < 0 ? 0 : y;\n }\n shouldMoveItem = true;\n }\n\n // Something like quad tree should be used\n // to find collisions faster\n if (preventCollision && !allowOverlap) {\n const collisions = (0, _utils.getAllCollisions)(layout, _objectSpread(_objectSpread({}, l), {}, {\n w,\n h,\n x,\n y\n })).filter(layoutItem => layoutItem.i !== l.i);\n hasCollisions = collisions.length > 0;\n\n // If we're colliding, we need adjust the placeholder.\n if (hasCollisions) {\n // Reset layoutItem dimensions if there were collisions\n y = l.y;\n h = l.h;\n x = l.x;\n w = l.w;\n shouldMoveItem = false;\n }\n }\n l.w = w;\n l.h = h;\n return l;\n });\n\n // Shouldn't ever happen, but typechecking makes it necessary\n if (!l) return;\n finalLayout = newLayout;\n if (shouldMoveItem) {\n // Move the element to the new position.\n const isUserAction = true;\n finalLayout = (0, _utils.moveElement)(newLayout, l, x, y, isUserAction, this.props.preventCollision, (0, _utils.compactType)(this.props), cols, allowOverlap);\n }\n\n // Create placeholder element (display only)\n const placeholder = {\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n static: true,\n i: i\n };\n this.props.onResize(finalLayout, oldResizeItem, l, placeholder, e, node);\n\n // Re-compact the newLayout and set the drag placeholder.\n this.setState({\n layout: allowOverlap ? finalLayout : (0, _utils.compact)(finalLayout, (0, _utils.compactType)(this.props), cols),\n activeDrag: placeholder\n });\n });\n _defineProperty(this, \"onResizeStop\", (i, w, h, _ref6) => {\n let {\n e,\n node\n } = _ref6;\n const {\n layout,\n oldResizeItem\n } = this.state;\n const {\n cols,\n allowOverlap\n } = this.props;\n const l = (0, _utils.getLayoutItem)(layout, i);\n\n // Set state\n const newLayout = allowOverlap ? layout : (0, _utils.compact)(layout, (0, _utils.compactType)(this.props), cols);\n this.props.onResizeStop(newLayout, oldResizeItem, l, null, e, node);\n const {\n oldLayout\n } = this.state;\n this.setState({\n activeDrag: null,\n layout: newLayout,\n oldResizeItem: null,\n oldLayout: null,\n resizing: false\n });\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n });\n // Called while dragging an element. Part of browser native drag/drop API.\n // Native event target might be the layout itself, or an element within the layout.\n _defineProperty(this, \"onDragOver\", e => {\n var _e$nativeEvent$target;\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n\n // we should ignore events from layout's children in Firefox\n // to avoid unpredictable jumping of a dropping placeholder\n // FIXME remove this hack\n if (isFirefox &&\n // $FlowIgnore can't figure this out\n !((_e$nativeEvent$target = e.nativeEvent.target) !== null && _e$nativeEvent$target !== void 0 && _e$nativeEvent$target.classList.contains(layoutClassName))) {\n return false;\n }\n const {\n droppingItem,\n onDropDragOver,\n margin,\n cols,\n rowHeight,\n maxRows,\n width,\n containerPadding,\n transformScale\n } = this.props;\n // Allow user to customize the dropping item or short-circuit the drop based on the results\n // of the `onDragOver(e: Event)` callback.\n const onDragOverResult = onDropDragOver === null || onDropDragOver === void 0 ? void 0 : onDropDragOver(e);\n if (onDragOverResult === false) {\n if (this.state.droppingDOMNode) {\n this.removeDroppingPlaceholder();\n }\n return false;\n }\n const finalDroppingItem = _objectSpread(_objectSpread({}, droppingItem), onDragOverResult);\n const {\n layout\n } = this.state;\n\n // $FlowIgnore missing def\n const gridRect = e.currentTarget.getBoundingClientRect(); // The grid's position in the viewport\n\n // Calculate the mouse position relative to the grid\n const layerX = e.clientX - gridRect.left;\n const layerY = e.clientY - gridRect.top;\n const droppingPosition = {\n left: layerX / transformScale,\n top: layerY / transformScale,\n e\n };\n if (!this.state.droppingDOMNode) {\n const positionParams /*: PositionParams*/ = {\n cols,\n margin,\n maxRows,\n rowHeight,\n containerWidth: width,\n containerPadding: containerPadding || margin\n };\n const calculatedPosition = (0, _calculateUtils.calcXY)(positionParams, layerY, layerX, finalDroppingItem.w, finalDroppingItem.h);\n this.setState({\n droppingDOMNode: /*#__PURE__*/React.createElement(\"div\", {\n key: finalDroppingItem.i\n }),\n droppingPosition,\n layout: [...layout, _objectSpread(_objectSpread({}, finalDroppingItem), {}, {\n x: calculatedPosition.x,\n y: calculatedPosition.y,\n static: false,\n isDraggable: true\n })]\n });\n } else if (this.state.droppingPosition) {\n const {\n left,\n top\n } = this.state.droppingPosition;\n const shouldUpdatePosition = left != layerX || top != layerY;\n if (shouldUpdatePosition) {\n this.setState({\n droppingPosition\n });\n }\n }\n });\n _defineProperty(this, \"removeDroppingPlaceholder\", () => {\n const {\n droppingItem,\n cols\n } = this.props;\n const {\n layout\n } = this.state;\n const newLayout = (0, _utils.compact)(layout.filter(l => l.i !== droppingItem.i), (0, _utils.compactType)(this.props), cols, this.props.allowOverlap);\n this.setState({\n layout: newLayout,\n droppingDOMNode: null,\n activeDrag: null,\n droppingPosition: undefined\n });\n });\n _defineProperty(this, \"onDragLeave\", e => {\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n this.dragEnterCounter--;\n\n // onDragLeave can be triggered on each layout's child.\n // But we know that count of dragEnter and dragLeave events\n // will be balanced after leaving the layout's container\n // so we can increase and decrease count of dragEnter and\n // when it'll be equal to 0 we'll remove the placeholder\n if (this.dragEnterCounter === 0) {\n this.removeDroppingPlaceholder();\n }\n });\n _defineProperty(this, \"onDragEnter\", e => {\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n this.dragEnterCounter++;\n });\n _defineProperty(this, \"onDrop\", (e /*: Event*/) => {\n e.preventDefault(); // Prevent any browser native action\n e.stopPropagation();\n const {\n droppingItem\n } = this.props;\n const {\n layout\n } = this.state;\n const item = layout.find(l => l.i === droppingItem.i);\n\n // reset dragEnter counter on drop\n this.dragEnterCounter = 0;\n this.removeDroppingPlaceholder();\n this.props.onDrop(layout, item, e);\n });\n }\n componentDidMount() {\n this.setState({\n mounted: true\n });\n // Possibly call back with layout on mount. This should be done after correcting the layout width\n // to ensure we don't rerender with the wrong width.\n this.onLayoutMaybeChanged(this.state.layout, this.props.layout);\n }\n static getDerivedStateFromProps(nextProps /*: Props*/, prevState /*: State*/) /*: $Shape<State> | null*/{\n let newLayoutBase;\n if (prevState.activeDrag) {\n return null;\n }\n\n // Legacy support for compactType\n // Allow parent to set layout directly.\n if (!(0, _fastEquals.deepEqual)(nextProps.layout, prevState.propsLayout) || nextProps.compactType !== prevState.compactType) {\n newLayoutBase = nextProps.layout;\n } else if (!(0, _utils.childrenEqual)(nextProps.children, prevState.children)) {\n // If children change, also regenerate the layout. Use our state\n // as the base in case because it may be more up to date than\n // what is in props.\n newLayoutBase = prevState.layout;\n }\n\n // We need to regenerate the layout.\n if (newLayoutBase) {\n const newLayout = (0, _utils.synchronizeLayoutWithChildren)(newLayoutBase, nextProps.children, nextProps.cols, (0, _utils.compactType)(nextProps), nextProps.allowOverlap);\n return {\n layout: newLayout,\n // We need to save these props to state for using\n // getDerivedStateFromProps instead of componentDidMount (in which we would get extra rerender)\n compactType: nextProps.compactType,\n children: nextProps.children,\n propsLayout: nextProps.layout\n };\n }\n return null;\n }\n shouldComponentUpdate(nextProps /*: Props*/, nextState /*: State*/) /*: boolean*/{\n return (\n // NOTE: this is almost always unequal. Therefore the only way to get better performance\n // from SCU is if the user intentionally memoizes children. If they do, and they can\n // handle changes properly, performance will increase.\n this.props.children !== nextProps.children || !(0, _utils.fastRGLPropsEqual)(this.props, nextProps, _fastEquals.deepEqual) || this.state.activeDrag !== nextState.activeDrag || this.state.mounted !== nextState.mounted || this.state.droppingPosition !== nextState.droppingPosition\n );\n }\n componentDidUpdate(prevProps /*: Props*/, prevState /*: State*/) {\n if (!this.state.activeDrag) {\n const newLayout = this.state.layout;\n const oldLayout = prevState.layout;\n this.onLayoutMaybeChanged(newLayout, oldLayout);\n }\n }\n\n /**\n * Calculates a pixel value for the container.\n * @return {String} Container height in pixels.\n */\n containerHeight() /*: ?string*/{\n if (!this.props.autoSize) return;\n const nbRow = (0, _utils.bottom)(this.state.layout);\n const containerPaddingY = this.props.containerPadding ? this.props.containerPadding[1] : this.props.margin[1];\n return nbRow * this.props.rowHeight + (nbRow - 1) * this.props.margin[1] + containerPaddingY * 2 + \"px\";\n }\n onLayoutMaybeChanged(newLayout /*: Layout*/, oldLayout /*: ?Layout*/) {\n if (!oldLayout) oldLayout = this.state.layout;\n if (!(0, _fastEquals.deepEqual)(oldLayout, newLayout)) {\n this.props.onLayoutChange(newLayout);\n }\n }\n /**\n * Create a placeholder object.\n * @return {Element} Placeholder div.\n */\n placeholder() /*: ?ReactElement<any>*/{\n const {\n activeDrag\n } = this.state;\n if (!activeDrag) return null;\n const {\n width,\n cols,\n margin,\n containerPadding,\n rowHeight,\n maxRows,\n useCSSTransforms,\n transformScale\n } = this.props;\n\n // {...this.state.activeDrag} is pretty slow, actually\n return /*#__PURE__*/React.createElement(_GridItem.default, {\n w: activeDrag.w,\n h: activeDrag.h,\n x: activeDrag.x,\n y: activeDrag.y,\n i: activeDrag.i,\n className: \"react-grid-placeholder \".concat(this.state.resizing ? \"placeholder-resizing\" : \"\"),\n containerWidth: width,\n cols: cols,\n margin: margin,\n containerPadding: containerPadding || margin,\n maxRows: maxRows,\n rowHeight: rowHeight,\n isDraggable: false,\n isResizable: false,\n isBounded: false,\n useCSSTransforms: useCSSTransforms,\n transformScale: transformScale\n }, /*#__PURE__*/React.createElement(\"div\", null));\n }\n\n /**\n * Given a grid item, set its style attributes & surround in a <Draggable>.\n * @param {Element} child React element.\n * @return {Element} Element wrapped in draggable and properly placed.\n */\n processGridItem(child /*: ReactElement<any>*/, isDroppingItem /*: boolean*/) /*: ?ReactElement<any>*/{\n if (!child || !child.key) return;\n const l = (0, _utils.getLayoutItem)(this.state.layout, String(child.key));\n if (!l) return null;\n const {\n width,\n cols,\n margin,\n containerPadding,\n rowHeight,\n maxRows,\n isDraggable,\n isResizable,\n isBounded,\n useCSSTransforms,\n transformScale,\n draggableCancel,\n draggableHandle,\n resizeHandles,\n resizeHandle\n } = this.props;\n const {\n mounted,\n droppingPosition\n } = this.state;\n\n // Determine user manipulations possible.\n // If an item is static, it can't be manipulated by default.\n // Any properties defined directly on the grid item will take precedence.\n const draggable = typeof l.isDraggable === \"boolean\" ? l.isDraggable : !l.static && isDraggable;\n const resizable = typeof l.isResizable === \"boolean\" ? l.isResizable : !l.static && isResizable;\n const resizeHandlesOptions = l.resizeHandles || resizeHandles;\n\n // isBounded set on child if set on parent, and child is not explicitly false\n const bounded = draggable && isBounded && l.isBounded !== false;\n return /*#__PURE__*/React.createElement(_GridItem.default, {\n containerWidth: width,\n cols: cols,\n margin: margin,\n containerPadding: containerPadding || margin,\n maxRows: maxRows,\n rowHeight: rowHeight,\n cancel: draggableCancel,\n handle: draggableHandle,\n onDragStop: this.onDragStop,\n onDragStart: this.onDragStart,\n onDrag: this.onDrag,\n onResizeStart: this.onResizeStart,\n onResize: this.onResize,\n onResizeStop: this.onResizeStop,\n isDraggable: draggable,\n isResizable: resizable,\n isBounded: bounded,\n useCSSTransforms: useCSSTransforms && mounted,\n usePercentages: !mounted,\n transformScale: transformScale,\n w: l.w,\n h: l.h,\n x: l.x,\n y: l.y,\n i: l.i,\n minH: l.minH,\n minW: l.minW,\n maxH: l.maxH,\n maxW: l.maxW,\n static: l.static,\n droppingPosition: isDroppingItem ? droppingPosition : undefined,\n resizeHandles: resizeHandlesOptions,\n resizeHandle: resizeHandle\n }, child);\n }\n render() /*: React.Element<\"div\">*/{\n const {\n className,\n style,\n isDroppable,\n innerRef\n } = this.props;\n const mergedClassName = (0, _clsx.default)(layoutClassName, className);\n const mergedStyle = _objectSpread({\n height: this.containerHeight()\n }, style);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: innerRef,\n className: mergedClassName,\n style: mergedStyle,\n onDrop: isDroppable ? this.onDrop : _utils.noop,\n onDragLeave: isDroppable ? this.onDragLeave : _utils.noop,\n onDragEnter: isDroppable ? this.onDragEnter : _utils.noop,\n onDragOver: isDroppable ? this.onDragOver : _utils.noop\n }, React.Children.map(this.props.children, child => this.processGridItem(child)), isDroppable && this.state.droppingDOMNode && this.processGridItem(this.state.droppingDOMNode, true), this.placeholder());\n }\n}\nexports.default = ReactGridLayout;\n// TODO publish internal ReactClass displayName transform\n_defineProperty(ReactGridLayout, \"displayName\", \"ReactGridLayout\");\n// Refactored to another module to make way for preval\n_defineProperty(ReactGridLayout, \"propTypes\", _ReactGridLayoutPropTypes.default);\n_defineProperty(ReactGridLayout, \"defaultProps\", {\n autoSize: true,\n cols: 12,\n className: \"\",\n style: {},\n draggableHandle: \"\",\n draggableCancel: \"\",\n containerPadding: null,\n rowHeight: 150,\n maxRows: Infinity,\n // infinite vertical growth\n layout: [],\n margin: [10, 10],\n isBounded: false,\n isDraggable: true,\n isResizable: true,\n allowOverlap: false,\n isDroppable: false,\n useCSSTransforms: true,\n transformScale: 1,\n verticalCompact: true,\n compactType: \"vertical\",\n preventCollision: false,\n droppingItem: {\n i: \"__dropping-elem__\",\n h: 1,\n w: 1\n },\n resizeHandles: [\"se\"],\n onLayoutChange: _utils.noop,\n onDragStart: _utils.noop,\n onDrag: _utils.noop,\n onDragStop: _utils.noop,\n onResizeStart: _utils.noop,\n onResize: _utils.noop,\n onResizeStop: _utils.noop,\n onDrop: _utils.noop,\n onDropDragOver: _utils.noop\n});"],"names":["ReactGridLayout_1","React","_interopRequireWildcard","require$$0","_fastEquals","require$$1","_clsx","_interopRequireDefault","require$$2","_utils","require$$3","_calculateUtils","require$$4","_GridItem","require$$5","_ReactGridLayoutPropTypes","require$$6","e","r","n","t","o","i","f","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","layoutClassName","isFirefox","ReactGridLayout$1","x","y","_ref","node","layout","l","placeholder","_ref2","oldDragItem","cols","allowOverlap","preventCollision","_ref3","newLayout","oldLayout","w","h","_ref4","_ref5","size","handle","oldResizeItem","shouldMoveItem","finalLayout","hasCollisions","layoutItem","_ref6","_e$nativeEvent$target","droppingItem","onDropDragOver","margin","rowHeight","maxRows","width","containerPadding","transformScale","onDragOverResult","finalDroppingItem","gridRect","layerX","layerY","droppingPosition","left","top","positionParams","calculatedPosition","item","nextProps","prevState","newLayoutBase","nextState","prevProps","nbRow","containerPaddingY","activeDrag","useCSSTransforms","child","isDroppingItem","isDraggable","isResizable","isBounded","draggableCancel","draggableHandle","resizeHandles","resizeHandle","mounted","draggable","resizable","resizeHandlesOptions","bounded","className","style","isDroppable","innerRef","mergedClassName","mergedStyle","ReactGridLayout"],"mappings":";;;;;;;;;;;SAEA,OAAO,eAAeA,GAAS,cAAc;AAAA,IAC3C,OAAO;AAAA,EACT,CAAC,GACDA,EAAA,UAAkB;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC,IAAcC,gBAAAA,EAAA,GACdC,IAAQC,EAAuBC,GAAe,GAC9CC,IAASC,EAAA,GACTC,IAAkBC,EAAA,GAClBC,IAAYN,EAAuBO,GAAqB,GACxDC,IAA4BR,EAAuBS,GAAqC;AAC5F,WAAST,EAAuBU,GAAG;AAAE,WAAOA,KAAKA,EAAE,aAAaA,IAAI,EAAE,SAASA,EAAC;AAAA,EAAG;AACnF,WAASf,EAAwBe,GAAG,GAAG;AAAE,QAAkB,OAAO,WAArB,WAA8B,KAAIC,IAAI,oBAAI,QAAO,GAAIC,IAAI,oBAAI,QAAO;AAAI,YAAQjB,IAA0B,SAAUe,GAAGG,GAAG;AAAE,UAAI,CAACA,KAAKH,KAAKA,EAAE,WAAY,QAAOA;AAAG,UAAII,GAAGC,GAAGC,IAAI,EAAE,WAAW,MAAM,SAASN;AAAK,UAAaA,MAAT,QAA0B,OAAOA,KAAnB,YAAsC,OAAOA,KAArB,WAAwB,QAAOM;AAAG,UAAIF,IAAID,IAAID,IAAID,GAAG;AAAE,YAAI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,UAAU;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,OAAO,CAAA;AAAA,IACP,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,IACjB,kBAAkB;AAAA,IAClB,WAAW;AAAA,IACX,SAAS;AAAA;AAAA,IAET,QAAQ,CAAA;AAAA,IACR,QAAQ,CAAC,IAAI,EAAE;AAAA,IACf,WAAW;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,IACb,cAAc;AAAA,IACd,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,cAAc;AAAA,MACZ,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA;IAEL,eAAe,CAAC,IAAI;AAAA,IACpB,gBAAgBnG,EAAO;AAAA,IACvB,aAAaA,EAAO;AAAA,IACpB,QAAQA,EAAO;AAAA,IACf,YAAYA,EAAO;AAAA,IACnB,eAAeA,EAAO;AAAA,IACtB,UAAUA,EAAO;AAAA,IACjB,cAAcA,EAAO;AAAA,IACrB,QAAQA,EAAO;AAAA,IACf,gBAAgBA,EAAO;AAAA,EACzB,CAAC;;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../../_virtual/ResponsiveReactGridLayout.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../../_virtual/ResponsiveReactGridLayout.cjs"),T=require("react"),G=require("../../prop-types/index.cjs"),D=require("../../fast-equals/dist/fast-equals.cjs"),M=require("./utils.cjs"),F=require("./responsiveUtils.cjs"),I=require("./ReactGridLayout.cjs");var q;function U(){if(q)return h.__exports;q=1,Object.defineProperty(h.__exports,"__esModule",{value:!0}),h.__exports.default=void 0;var v=j(T),s=w(G.__require()),g=D.__require(),y=M.__require(),c=F.__require(),R=w(I.__require());const x=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function w(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(typeof WeakMap=="function")var o=new WeakMap,n=new WeakMap;return(j=function(r,i){if(!i&&r&&r.__esModule)return r;var a,u,l={__proto__:null,default:r};if(r===null||typeof r!="object"&&typeof r!="function")return l;if(a=i?n:o){if(a.has(r))return a.get(r);a.set(r,l)}for(const p in r)p!=="default"&&{}.hasOwnProperty.call(r,p)&&((u=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(r,p))&&(u.get||u.set)?a(l,p,u):l[p]=r[p]);return l})(e,t)}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},_.apply(null,arguments)}function W(e,t){if(e==null)return{};var o,n,r=E(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)===-1&&{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function E(e,t){if(e==null)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;o[n]=e[n]}return o}function L(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function m(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?L(Object(o),!0).forEach(function(n){f(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):L(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function f(e,t,o){return(t=S(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function S(e){var t=B(e,"string");return typeof t=="symbol"?t:t+""}function B(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const C=e=>Object.prototype.toString.call(e);function b(e,t){return e==null?null:Array.isArray(e)?e:e[t]}let O=class extends v.Component{constructor(){super(...arguments),f(this,"state",this.generateInitialState()),f(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,m(m({},this.props.layouts),{},{[this.state.breakpoint]:t}))})}generateInitialState(){const{width:t,breakpoints:o,layouts:n,cols:r}=this.props,i=(0,c.getBreakpointFromWidth)(o,t),a=(0,c.getColsFromBreakpoint)(i,r),u=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,c.findOrGenerateResponsiveLayout)(n,o,i,i,a,u),breakpoint:i,cols:a}}static getDerivedStateFromProps(t,o){if(!(0,g.deepEqual)(t.layouts,o.layouts)){const{breakpoint:n,cols:r}=o;return{layout:(0,c.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,n,n,r,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){(this.props.width!=t.width||this.props.breakpoint!==t.breakpoint||!(0,g.deepEqual)(this.props.breakpoints,t.breakpoints)||!(0,g.deepEqual)(this.props.cols,t.cols))&&this.onWidthChange(t)}onWidthChange(t){const{breakpoints:o,cols:n,layouts:r,compactType:i}=this.props,a=this.props.breakpoint||(0,c.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),u=this.state.breakpoint,l=(0,c.getColsFromBreakpoint)(a,n),p=m({},r);if(u!==a||t.breakpoints!==o||t.cols!==n){u in p||(p[u]=(0,y.cloneLayout)(this.state.layout));let d=(0,c.findOrGenerateResponsiveLayout)(p,o,a,u,l,i);d=(0,y.synchronizeLayoutWithChildren)(d,this.props.children,l,i,this.props.allowOverlap),p[a]=d,this.props.onBreakpointChange(a,l),this.props.onLayoutChange(d,p),this.setState({breakpoint:a,layout:d,cols:l})}const P=b(this.props.margin,a),k=b(this.props.containerPadding,a);this.props.onWidthChange(this.props.width,P,l,k)}render(){const t=this.props,{breakpoint:o,breakpoints:n,cols:r,layouts:i,margin:a,containerPadding:u,onBreakpointChange:l,onLayoutChange:p,onWidthChange:P}=t,k=W(t,x);return v.createElement(R.default,_({},k,{margin:b(a,this.state.breakpoint),containerPadding:b(u,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return h.__exports.default=O,f(O,"propTypes",{breakpoint:s.default.string,breakpoints:s.default.object,allowOverlap:s.default.bool,cols:s.default.object,margin:s.default.oneOfType([s.default.array,s.default.object]),containerPadding:s.default.oneOfType([s.default.array,s.default.object]),layouts(e,t){if(C(e[t])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+C(e[t]));Object.keys(e[t]).forEach(o=>{if(!(o in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,y.validateLayout)(e.layouts[o],"layouts."+o)})},width:s.default.number.isRequired,onBreakpointChange:s.default.func,onLayoutChange:s.default.func,onWidthChange:s.default.func}),f(O,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:y.noop,onLayoutChange:y.noop,onWidthChange:y.noop}),h.__exports}exports.__require=U;
|
|
2
2
|
//# sourceMappingURL=ResponsiveReactGridLayout.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __exports as h } from "../../../_virtual/ResponsiveReactGridLayout.js";
|
|
2
|
-
import
|
|
3
|
-
import { __require as
|
|
2
|
+
import T from "react";
|
|
3
|
+
import { __require as G } from "../../prop-types/index.js";
|
|
4
4
|
import { __require as D } from "../../fast-equals/dist/fast-equals.js";
|
|
5
5
|
import { __require as F } from "./utils.js";
|
|
6
6
|
import { __require as M } from "./responsiveUtils.js";
|
|
7
|
-
import { __require as
|
|
7
|
+
import { __require as U } from "./ReactGridLayout.js";
|
|
8
8
|
var R;
|
|
9
9
|
function N() {
|
|
10
10
|
if (R) return h;
|
|
11
11
|
R = 1, Object.defineProperty(h, "__esModule", {
|
|
12
12
|
value: !0
|
|
13
13
|
}), h.default = void 0;
|
|
14
|
-
var _ = j(
|
|
14
|
+
var _ = j(T), s = w(/* @__PURE__ */ G()), g = /* @__PURE__ */ D(), f = F(), c = M(), q = w(U());
|
|
15
15
|
const W = ["breakpoint", "breakpoints", "cols", "layouts", "margin", "containerPadding", "onBreakpointChange", "onLayoutChange", "onWidthChange"];
|
|
16
16
|
function w(e) {
|
|
17
17
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -67,7 +67,7 @@ function N() {
|
|
|
67
67
|
}
|
|
68
68
|
return o;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function k(e) {
|
|
71
71
|
for (var t = 1; t < arguments.length; t++) {
|
|
72
72
|
var o = arguments[t] != null ? arguments[t] : {};
|
|
73
73
|
t % 2 ? L(Object(o), !0).forEach(function(r) {
|
|
@@ -99,10 +99,10 @@ function N() {
|
|
|
99
99
|
function b(e, t) {
|
|
100
100
|
return e == null ? null : Array.isArray(e) ? e : e[t];
|
|
101
101
|
}
|
|
102
|
-
let
|
|
102
|
+
let O = class extends _.Component {
|
|
103
103
|
constructor() {
|
|
104
104
|
super(...arguments), y(this, "state", this.generateInitialState()), y(this, "onLayoutChange", (t) => {
|
|
105
|
-
this.props.onLayoutChange(t,
|
|
105
|
+
this.props.onLayoutChange(t, k(k({}, this.props.layouts), {}, {
|
|
106
106
|
[this.state.breakpoint]: t
|
|
107
107
|
}));
|
|
108
108
|
});
|
|
@@ -146,7 +146,7 @@ function N() {
|
|
|
146
146
|
cols: r,
|
|
147
147
|
layouts: n,
|
|
148
148
|
compactType: i
|
|
149
|
-
} = this.props, a = this.props.breakpoint || (0, c.getBreakpointFromWidth)(this.props.breakpoints, this.props.width), u = this.state.breakpoint, l = (0, c.getColsFromBreakpoint)(a, r), p =
|
|
149
|
+
} = this.props, a = this.props.breakpoint || (0, c.getBreakpointFromWidth)(this.props.breakpoints, this.props.width), u = this.state.breakpoint, l = (0, c.getColsFromBreakpoint)(a, r), p = k({}, n);
|
|
150
150
|
if (u !== a || t.breakpoints !== o || t.cols !== r) {
|
|
151
151
|
u in p || (p[u] = (0, f.cloneLayout)(this.state.layout));
|
|
152
152
|
let d = (0, c.findOrGenerateResponsiveLayout)(p, o, a, u, l, i);
|
|
@@ -181,7 +181,7 @@ function N() {
|
|
|
181
181
|
}));
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
|
-
return h.default =
|
|
184
|
+
return h.default = O, y(O, "propTypes", {
|
|
185
185
|
//
|
|
186
186
|
// Basic props
|
|
187
187
|
//
|
|
@@ -227,7 +227,7 @@ function N() {
|
|
|
227
227
|
onLayoutChange: s.default.func,
|
|
228
228
|
// Calls back with (containerWidth, margin, cols, containerPadding)
|
|
229
229
|
onWidthChange: s.default.func
|
|
230
|
-
}), y(
|
|
230
|
+
}), y(O, "defaultProps", {
|
|
231
231
|
breakpoints: {
|
|
232
232
|
lg: 1200,
|
|
233
233
|
md: 996,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveReactGridLayout.js","sources":["../../../../../node_modules/react-grid-layout/build/ResponsiveReactGridLayout.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _fastEquals = require(\"fast-equals\");\nvar _utils = require(\"./utils\");\nvar _responsiveUtils = require(\"./responsiveUtils\");\nvar _ReactGridLayout = _interopRequireDefault(require(\"./ReactGridLayout\"));\nconst _excluded = [\"breakpoint\", \"breakpoints\", \"cols\", \"layouts\", \"margin\", \"containerPadding\", \"onBreakpointChange\", \"onLayoutChange\", \"onWidthChange\"];\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\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 _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\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); } /*:: import { type Layout, type Pick } from \"./utils\";*/ /*:: import { type ResponsiveLayout, type OnLayoutChangeCallback, type Breakpoints } from \"./responsiveUtils\";*/\n// $FlowFixMe[method-unbinding]\nconst type = obj => Object.prototype.toString.call(obj);\n\n/**\n * Get a value of margin or containerPadding.\n *\n * @param {Array | Object} param Margin | containerPadding, e.g. [10, 10] | {lg: [10, 10], ...}.\n * @param {String} breakpoint Breakpoint: lg, md, sm, xs and etc.\n * @return {Array}\n */\nfunction getIndentationValue /*:: <T: ?[number, number]>*/(param /*: { [key: string]: T } | T*/, breakpoint /*: string*/) /*: T*/{\n // $FlowIgnore TODO fix this typedef\n if (param == null) return null;\n // $FlowIgnore TODO fix this typedef\n return Array.isArray(param) ? param : param[breakpoint];\n}\n/*:: type State = {\n layout: Layout,\n breakpoint: string,\n cols: number,\n layouts?: ResponsiveLayout<string>\n};*/\n/*:: type Props<Breakpoint: string = string> = {|\n ...React.ElementConfig<typeof ReactGridLayout>,\n\n // Responsive config\n breakpoint?: ?Breakpoint,\n breakpoints: Breakpoints<Breakpoint>,\n cols: { [key: Breakpoint]: number },\n layouts: ResponsiveLayout<Breakpoint>,\n width: number,\n margin: { [key: Breakpoint]: [number, number] } | [number, number],\n /* prettier-ignore *-/\n containerPadding: { [key: Breakpoint]: ?[number, number] } | ?[number, number],\n\n // Callbacks\n onBreakpointChange: (Breakpoint, cols: number) => void,\n onLayoutChange: OnLayoutChangeCallback,\n onWidthChange: (\n containerWidth: number,\n margin: [number, number],\n cols: number,\n containerPadding: ?[number, number]\n ) => void\n|};*/\n/*:: type DefaultProps = Pick<\n Props<>,\n {|\n allowOverlap: 0,\n breakpoints: 0,\n cols: 0,\n containerPadding: 0,\n layouts: 0,\n margin: 0,\n onBreakpointChange: 0,\n onLayoutChange: 0,\n onWidthChange: 0\n |}\n>;*/\nclass ResponsiveReactGridLayout extends React.Component\n/*:: <\n Props<>,\n State\n>*/\n{\n constructor() {\n super(...arguments);\n _defineProperty(this, \"state\", this.generateInitialState());\n // wrap layouts so we do not need to pass layouts to child\n _defineProperty(this, \"onLayoutChange\", (layout /*: Layout*/) => {\n this.props.onLayoutChange(layout, _objectSpread(_objectSpread({}, this.props.layouts), {}, {\n [this.state.breakpoint]: layout\n }));\n });\n }\n generateInitialState() /*: State*/{\n const {\n width,\n breakpoints,\n layouts,\n cols\n } = this.props;\n const breakpoint = (0, _responsiveUtils.getBreakpointFromWidth)(breakpoints, width);\n const colNo = (0, _responsiveUtils.getColsFromBreakpoint)(breakpoint, cols);\n // verticalCompact compatibility, now deprecated\n const compactType = this.props.verticalCompact === false ? null : this.props.compactType;\n // Get the initial layout. This can tricky; we try to generate one however possible if one doesn't exist\n // for this layout.\n const initialLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(layouts, breakpoints, breakpoint, breakpoint, colNo, compactType);\n return {\n layout: initialLayout,\n breakpoint: breakpoint,\n cols: colNo\n };\n }\n static getDerivedStateFromProps(nextProps /*: Props<*>*/, prevState /*: State*/) /*: ?$Shape<State>*/{\n if (!(0, _fastEquals.deepEqual)(nextProps.layouts, prevState.layouts)) {\n // Allow parent to set layouts directly.\n const {\n breakpoint,\n cols\n } = prevState;\n\n // Since we're setting an entirely new layout object, we must generate a new responsive layout\n // if one does not exist.\n const newLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(nextProps.layouts, nextProps.breakpoints, breakpoint, breakpoint, cols, nextProps.compactType);\n return {\n layout: newLayout,\n layouts: nextProps.layouts\n };\n }\n return null;\n }\n componentDidUpdate(prevProps /*: Props<*>*/) {\n // Allow parent to set width or breakpoint directly.\n if (this.props.width != prevProps.width || this.props.breakpoint !== prevProps.breakpoint || !(0, _fastEquals.deepEqual)(this.props.breakpoints, prevProps.breakpoints) || !(0, _fastEquals.deepEqual)(this.props.cols, prevProps.cols)) {\n this.onWidthChange(prevProps);\n }\n }\n /**\n * When the width changes work through breakpoints and reset state with the new width & breakpoint.\n * Width changes are necessary to figure out the widget widths.\n */\n onWidthChange(prevProps /*: Props<*>*/) {\n const {\n breakpoints,\n cols,\n layouts,\n compactType\n } = this.props;\n const newBreakpoint = this.props.breakpoint || (0, _responsiveUtils.getBreakpointFromWidth)(this.props.breakpoints, this.props.width);\n const lastBreakpoint = this.state.breakpoint;\n const newCols /*: number*/ = (0, _responsiveUtils.getColsFromBreakpoint)(newBreakpoint, cols);\n const newLayouts = _objectSpread({}, layouts);\n\n // Breakpoint change\n if (lastBreakpoint !== newBreakpoint || prevProps.breakpoints !== breakpoints || prevProps.cols !== cols) {\n // Preserve the current layout if the current breakpoint is not present in the next layouts.\n if (!(lastBreakpoint in newLayouts)) newLayouts[lastBreakpoint] = (0, _utils.cloneLayout)(this.state.layout);\n\n // Find or generate a new layout.\n let layout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(newLayouts, breakpoints, newBreakpoint, lastBreakpoint, newCols, compactType);\n\n // This adds missing items.\n layout = (0, _utils.synchronizeLayoutWithChildren)(layout, this.props.children, newCols, compactType, this.props.allowOverlap);\n\n // Store the new layout.\n newLayouts[newBreakpoint] = layout;\n\n // callbacks\n this.props.onBreakpointChange(newBreakpoint, newCols);\n this.props.onLayoutChange(layout, newLayouts);\n this.setState({\n breakpoint: newBreakpoint,\n layout: layout,\n cols: newCols\n });\n }\n const margin = getIndentationValue(this.props.margin, newBreakpoint);\n const containerPadding = getIndentationValue(this.props.containerPadding, newBreakpoint);\n\n //call onWidthChange on every change of width, not only on breakpoint changes\n this.props.onWidthChange(this.props.width, margin, newCols, containerPadding);\n }\n render() /*: React.Element<typeof ReactGridLayout>*/{\n /* eslint-disable no-unused-vars */\n const _this$props = this.props,\n {\n breakpoint,\n breakpoints,\n cols,\n layouts,\n margin,\n containerPadding,\n onBreakpointChange,\n onLayoutChange,\n onWidthChange\n } = _this$props,\n other = _objectWithoutProperties(_this$props, _excluded);\n /* eslint-enable no-unused-vars */\n\n return /*#__PURE__*/React.createElement(_ReactGridLayout.default, _extends({}, other, {\n // $FlowIgnore should allow nullable here due to DefaultProps\n margin: getIndentationValue(margin, this.state.breakpoint),\n containerPadding: getIndentationValue(containerPadding, this.state.breakpoint),\n onLayoutChange: this.onLayoutChange,\n layout: this.state.layout,\n cols: this.state.cols\n }));\n }\n}\nexports.default = ResponsiveReactGridLayout;\n// This should only include propTypes needed in this code; RGL itself\n// will do validation of the rest props passed to it.\n_defineProperty(ResponsiveReactGridLayout, \"propTypes\", {\n //\n // Basic props\n //\n\n // Optional, but if you are managing width yourself you may want to set the breakpoint\n // yourself as well.\n breakpoint: _propTypes.default.string,\n // {name: pxVal}, e.g. {lg: 1200, md: 996, sm: 768, xs: 480}\n breakpoints: _propTypes.default.object,\n allowOverlap: _propTypes.default.bool,\n // # of cols. This is a breakpoint -> cols map\n cols: _propTypes.default.object,\n // # of margin. This is a breakpoint -> margin map\n // e.g. { lg: [5, 5], md: [10, 10], sm: [15, 15] }\n // Margin between items [x, y] in px\n // e.g. [10, 10]\n margin: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),\n // # of containerPadding. This is a breakpoint -> containerPadding map\n // e.g. { lg: [5, 5], md: [10, 10], sm: [15, 15] }\n // Padding inside the container [x, y] in px\n // e.g. [10, 10]\n containerPadding: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),\n // layouts is an object mapping breakpoints to layouts.\n // e.g. {lg: Layout, md: Layout, ...}\n layouts(props /*: Props<>*/, propName /*: string*/) {\n if (type(props[propName]) !== \"[object Object]\") {\n throw new Error(\"Layout property must be an object. Received: \" + type(props[propName]));\n }\n Object.keys(props[propName]).forEach(key => {\n if (!(key in props.breakpoints)) {\n throw new Error(\"Each key in layouts must align with a key in breakpoints.\");\n }\n (0, _utils.validateLayout)(props.layouts[key], \"layouts.\" + key);\n });\n },\n // The width of this component.\n // Required in this propTypes stanza because generateInitialState() will fail without it.\n width: _propTypes.default.number.isRequired,\n //\n // Callbacks\n //\n\n // Calls back with breakpoint and new # cols\n onBreakpointChange: _propTypes.default.func,\n // Callback so you can save the layout.\n // Calls back with (currentLayout, allLayouts). allLayouts are keyed by breakpoint.\n onLayoutChange: _propTypes.default.func,\n // Calls back with (containerWidth, margin, cols, containerPadding)\n onWidthChange: _propTypes.default.func\n});\n_defineProperty(ResponsiveReactGridLayout, \"defaultProps\", {\n breakpoints: {\n lg: 1200,\n md: 996,\n sm: 768,\n xs: 480,\n xxs: 0\n },\n cols: {\n lg: 12,\n md: 10,\n sm: 6,\n xs: 4,\n xxs: 2\n },\n containerPadding: {\n lg: null,\n md: null,\n sm: null,\n xs: null,\n xxs: null\n },\n layouts: {},\n margin: [10, 10],\n allowOverlap: false,\n onBreakpointChange: _utils.noop,\n onLayoutChange: _utils.noop,\n onWidthChange: _utils.noop\n});"],"names":["ResponsiveReactGridLayout_1","React","_interopRequireWildcard","require$$0","_propTypes","_interopRequireDefault","_fastEquals","require$$2","_utils","require$$3","_responsiveUtils","require$$4","_ReactGridLayout","require$$5","_excluded","r","n","e","t","o","i","f","_extends","_objectWithoutProperties","_objectWithoutPropertiesLoose","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","type","obj","getIndentationValue","param","breakpoint","layout","width","breakpoints","layouts","cols","colNo","compactType","nextProps","prevState","prevProps","newBreakpoint","lastBreakpoint","newCols","newLayouts","margin","containerPadding","_this$props","onBreakpointChange","onLayoutChange","onWidthChange","other","ResponsiveReactGridLayout","props","propName","key"],"mappings":";;;;;;;;;;SAEA,OAAO,eAAeA,GAAS,cAAc;AAAA,IAC3C,OAAO;AAAA,EACT,CAAC,GACDA,EAAA,UAAkB;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC,IAAaC,qBAA4C,GACzDC,IAAcC,gBAAAA,EAAA,GACdC,IAASC,EAAA,GACTC,IAAmBC,EAAA,GACnBC,IAAmBP,EAAuBQ,GAA4B;AAC1E,QAAMC,IAAY,CAAC,cAAc,eAAe,QAAQ,WAAW,UAAU,oBAAoB,sBAAsB,kBAAkB,eAAe;AACxJ,WAAST,EAAuB,GAAG;AAAE,WAAO,KAAK,EAAE,aAAa,IAAI,EAAE,SAAS,EAAC;AAAA,EAAG;AACnF,WAASH,EAAwB,GAAG,GAAG;AAAE,QAAkB,OAAO,WAArB,WAA8B,KAAIa,IAAI,oBAAI,QAAO,GAAIC,IAAI,oBAAI,QAAO;AAAI,YAAQd,IAA0B,SAAUe,GAAGC,GAAG;AAAE,UAAI,CAACA,KAAKD,KAAKA,EAAE,WAAY,QAAOA;AAAG,UAAIE,GAAGC,GAAGC,IAAI,EAAE,WAAW,MAAM,SAASJ;AAAK,UAAaA,MAAT,QAA0B,OAAOA,KAAnB,YAAsC,OAAOA,KAArB,WAAwB,QAAOI;AAAG,UAAIF,IAAID,IAAIF,IAAID,GAAG;AAAE,YAAII,EAAE,IAAIF,CAAC,EAAG,QAAOE,EAAE,IAAIF,CAAC;AAAG,QAAAE,EAAE,IAAIF,GAAGI,CAAC;AAAA,MAAE;AAAG,iBAAWH,KAAKD,EAAG,CAAcC,MAAd,aAAmB,CAAA,EAAG,eAAe,KAAKD,GAAGC,CAAC,OAAOE,KAAKD,IAAI,OAAO,mBAAmB,OAAO,yBAAyBF,GAAGC,CAAC,OAAOE,EAAE,OAAOA,EAAE,OAAOD,EAA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AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,KAAK;AAAA;IAEP,SAAS,CAAA;AAAA,IACT,QAAQ,CAAC,IAAI,EAAE;AAAA,IACf,cAAc;AAAA,IACd,oBAAoBhD,EAAO;AAAA,IAC3B,gBAAgBA,EAAO;AAAA,IACvB,eAAeA,EAAO;AAAA,EACxB,CAAC;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"ResponsiveReactGridLayout.js","sources":["../../../../../node_modules/react-grid-layout/build/ResponsiveReactGridLayout.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _fastEquals = require(\"fast-equals\");\nvar _utils = require(\"./utils\");\nvar _responsiveUtils = require(\"./responsiveUtils\");\nvar _ReactGridLayout = _interopRequireDefault(require(\"./ReactGridLayout\"));\nconst _excluded = [\"breakpoint\", \"breakpoints\", \"cols\", \"layouts\", \"margin\", \"containerPadding\", \"onBreakpointChange\", \"onLayoutChange\", \"onWidthChange\"];\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\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 _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\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); } /*:: import { type Layout, type Pick } from \"./utils\";*/ /*:: import { type ResponsiveLayout, type OnLayoutChangeCallback, type Breakpoints } from \"./responsiveUtils\";*/\n// $FlowFixMe[method-unbinding]\nconst type = obj => Object.prototype.toString.call(obj);\n\n/**\n * Get a value of margin or containerPadding.\n *\n * @param {Array | Object} param Margin | containerPadding, e.g. [10, 10] | {lg: [10, 10], ...}.\n * @param {String} breakpoint Breakpoint: lg, md, sm, xs and etc.\n * @return {Array}\n */\nfunction getIndentationValue /*:: <T: ?[number, number]>*/(param /*: { [key: string]: T } | T*/, breakpoint /*: string*/) /*: T*/{\n // $FlowIgnore TODO fix this typedef\n if (param == null) return null;\n // $FlowIgnore TODO fix this typedef\n return Array.isArray(param) ? param : param[breakpoint];\n}\n/*:: type State = {\n layout: Layout,\n breakpoint: string,\n cols: number,\n layouts?: ResponsiveLayout<string>\n};*/\n/*:: type Props<Breakpoint: string = string> = {|\n ...React.ElementConfig<typeof ReactGridLayout>,\n\n // Responsive config\n breakpoint?: ?Breakpoint,\n breakpoints: Breakpoints<Breakpoint>,\n cols: { [key: Breakpoint]: number },\n layouts: ResponsiveLayout<Breakpoint>,\n width: number,\n margin: { [key: Breakpoint]: [number, number] } | [number, number],\n /* prettier-ignore *-/\n containerPadding: { [key: Breakpoint]: ?[number, number] } | ?[number, number],\n\n // Callbacks\n onBreakpointChange: (Breakpoint, cols: number) => void,\n onLayoutChange: OnLayoutChangeCallback,\n onWidthChange: (\n containerWidth: number,\n margin: [number, number],\n cols: number,\n containerPadding: ?[number, number]\n ) => void\n|};*/\n/*:: type DefaultProps = Pick<\n Props<>,\n {|\n allowOverlap: 0,\n breakpoints: 0,\n cols: 0,\n containerPadding: 0,\n layouts: 0,\n margin: 0,\n onBreakpointChange: 0,\n onLayoutChange: 0,\n onWidthChange: 0\n |}\n>;*/\nclass ResponsiveReactGridLayout extends React.Component\n/*:: <\n Props<>,\n State\n>*/\n{\n constructor() {\n super(...arguments);\n _defineProperty(this, \"state\", this.generateInitialState());\n // wrap layouts so we do not need to pass layouts to child\n _defineProperty(this, \"onLayoutChange\", (layout /*: Layout*/) => {\n this.props.onLayoutChange(layout, _objectSpread(_objectSpread({}, this.props.layouts), {}, {\n [this.state.breakpoint]: layout\n }));\n });\n }\n generateInitialState() /*: State*/{\n const {\n width,\n breakpoints,\n layouts,\n cols\n } = this.props;\n const breakpoint = (0, _responsiveUtils.getBreakpointFromWidth)(breakpoints, width);\n const colNo = (0, _responsiveUtils.getColsFromBreakpoint)(breakpoint, cols);\n // verticalCompact compatibility, now deprecated\n const compactType = this.props.verticalCompact === false ? null : this.props.compactType;\n // Get the initial layout. This can tricky; we try to generate one however possible if one doesn't exist\n // for this layout.\n const initialLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(layouts, breakpoints, breakpoint, breakpoint, colNo, compactType);\n return {\n layout: initialLayout,\n breakpoint: breakpoint,\n cols: colNo\n };\n }\n static getDerivedStateFromProps(nextProps /*: Props<*>*/, prevState /*: State*/) /*: ?$Shape<State>*/{\n if (!(0, _fastEquals.deepEqual)(nextProps.layouts, prevState.layouts)) {\n // Allow parent to set layouts directly.\n const {\n breakpoint,\n cols\n } = prevState;\n\n // Since we're setting an entirely new layout object, we must generate a new responsive layout\n // if one does not exist.\n const newLayout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(nextProps.layouts, nextProps.breakpoints, breakpoint, breakpoint, cols, nextProps.compactType);\n return {\n layout: newLayout,\n layouts: nextProps.layouts\n };\n }\n return null;\n }\n componentDidUpdate(prevProps /*: Props<*>*/) {\n // Allow parent to set width or breakpoint directly.\n if (this.props.width != prevProps.width || this.props.breakpoint !== prevProps.breakpoint || !(0, _fastEquals.deepEqual)(this.props.breakpoints, prevProps.breakpoints) || !(0, _fastEquals.deepEqual)(this.props.cols, prevProps.cols)) {\n this.onWidthChange(prevProps);\n }\n }\n /**\n * When the width changes work through breakpoints and reset state with the new width & breakpoint.\n * Width changes are necessary to figure out the widget widths.\n */\n onWidthChange(prevProps /*: Props<*>*/) {\n const {\n breakpoints,\n cols,\n layouts,\n compactType\n } = this.props;\n const newBreakpoint = this.props.breakpoint || (0, _responsiveUtils.getBreakpointFromWidth)(this.props.breakpoints, this.props.width);\n const lastBreakpoint = this.state.breakpoint;\n const newCols /*: number*/ = (0, _responsiveUtils.getColsFromBreakpoint)(newBreakpoint, cols);\n const newLayouts = _objectSpread({}, layouts);\n\n // Breakpoint change\n if (lastBreakpoint !== newBreakpoint || prevProps.breakpoints !== breakpoints || prevProps.cols !== cols) {\n // Preserve the current layout if the current breakpoint is not present in the next layouts.\n if (!(lastBreakpoint in newLayouts)) newLayouts[lastBreakpoint] = (0, _utils.cloneLayout)(this.state.layout);\n\n // Find or generate a new layout.\n let layout = (0, _responsiveUtils.findOrGenerateResponsiveLayout)(newLayouts, breakpoints, newBreakpoint, lastBreakpoint, newCols, compactType);\n\n // This adds missing items.\n layout = (0, _utils.synchronizeLayoutWithChildren)(layout, this.props.children, newCols, compactType, this.props.allowOverlap);\n\n // Store the new layout.\n newLayouts[newBreakpoint] = layout;\n\n // callbacks\n this.props.onBreakpointChange(newBreakpoint, newCols);\n this.props.onLayoutChange(layout, newLayouts);\n this.setState({\n breakpoint: newBreakpoint,\n layout: layout,\n cols: newCols\n });\n }\n const margin = getIndentationValue(this.props.margin, newBreakpoint);\n const containerPadding = getIndentationValue(this.props.containerPadding, newBreakpoint);\n\n //call onWidthChange on every change of width, not only on breakpoint changes\n this.props.onWidthChange(this.props.width, margin, newCols, containerPadding);\n }\n render() /*: React.Element<typeof ReactGridLayout>*/{\n /* eslint-disable no-unused-vars */\n const _this$props = this.props,\n {\n breakpoint,\n breakpoints,\n cols,\n layouts,\n margin,\n containerPadding,\n onBreakpointChange,\n onLayoutChange,\n onWidthChange\n } = _this$props,\n other = _objectWithoutProperties(_this$props, _excluded);\n /* eslint-enable no-unused-vars */\n\n return /*#__PURE__*/React.createElement(_ReactGridLayout.default, _extends({}, other, {\n // $FlowIgnore should allow nullable here due to DefaultProps\n margin: getIndentationValue(margin, this.state.breakpoint),\n containerPadding: getIndentationValue(containerPadding, this.state.breakpoint),\n onLayoutChange: this.onLayoutChange,\n layout: this.state.layout,\n cols: this.state.cols\n }));\n }\n}\nexports.default = ResponsiveReactGridLayout;\n// This should only include propTypes needed in this code; RGL itself\n// will do validation of the rest props passed to it.\n_defineProperty(ResponsiveReactGridLayout, \"propTypes\", {\n //\n // Basic props\n //\n\n // Optional, but if you are managing width yourself you may want to set the breakpoint\n // yourself as well.\n breakpoint: _propTypes.default.string,\n // {name: pxVal}, e.g. {lg: 1200, md: 996, sm: 768, xs: 480}\n breakpoints: _propTypes.default.object,\n allowOverlap: _propTypes.default.bool,\n // # of cols. This is a breakpoint -> cols map\n cols: _propTypes.default.object,\n // # of margin. This is a breakpoint -> margin map\n // e.g. { lg: [5, 5], md: [10, 10], sm: [15, 15] }\n // Margin between items [x, y] in px\n // e.g. [10, 10]\n margin: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),\n // # of containerPadding. This is a breakpoint -> containerPadding map\n // e.g. { lg: [5, 5], md: [10, 10], sm: [15, 15] }\n // Padding inside the container [x, y] in px\n // e.g. [10, 10]\n containerPadding: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),\n // layouts is an object mapping breakpoints to layouts.\n // e.g. {lg: Layout, md: Layout, ...}\n layouts(props /*: Props<>*/, propName /*: string*/) {\n if (type(props[propName]) !== \"[object Object]\") {\n throw new Error(\"Layout property must be an object. Received: \" + type(props[propName]));\n }\n Object.keys(props[propName]).forEach(key => {\n if (!(key in props.breakpoints)) {\n throw new Error(\"Each key in layouts must align with a key in breakpoints.\");\n }\n (0, _utils.validateLayout)(props.layouts[key], \"layouts.\" + key);\n });\n },\n // The width of this component.\n // Required in this propTypes stanza because generateInitialState() will fail without it.\n width: _propTypes.default.number.isRequired,\n //\n // Callbacks\n //\n\n // Calls back with breakpoint and new # cols\n onBreakpointChange: _propTypes.default.func,\n // Callback so you can save the layout.\n // Calls back with (currentLayout, allLayouts). allLayouts are keyed by breakpoint.\n onLayoutChange: _propTypes.default.func,\n // Calls back with (containerWidth, margin, cols, containerPadding)\n onWidthChange: _propTypes.default.func\n});\n_defineProperty(ResponsiveReactGridLayout, \"defaultProps\", {\n breakpoints: {\n lg: 1200,\n md: 996,\n sm: 768,\n xs: 480,\n xxs: 0\n },\n cols: {\n lg: 12,\n md: 10,\n sm: 6,\n xs: 4,\n xxs: 2\n },\n containerPadding: {\n lg: null,\n md: null,\n sm: null,\n xs: null,\n xxs: null\n },\n layouts: {},\n margin: [10, 10],\n allowOverlap: false,\n onBreakpointChange: _utils.noop,\n onLayoutChange: _utils.noop,\n onWidthChange: _utils.noop\n});"],"names":["ResponsiveReactGridLayout_1","React","_interopRequireWildcard","require$$0","_propTypes","_interopRequireDefault","_fastEquals","require$$2","_utils","require$$3","_responsiveUtils","require$$4","_ReactGridLayout","require$$5","_excluded","r","n","e","t","o","i","f","_extends","_objectWithoutProperties","_objectWithoutPropertiesLoose","ownKeys","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","type","obj","getIndentationValue","param","breakpoint","layout","width","breakpoints","layouts","cols","colNo","compactType","nextProps","prevState","prevProps","newBreakpoint","lastBreakpoint","newCols","newLayouts","margin","containerPadding","_this$props","onBreakpointChange","onLayoutChange","onWidthChange","other","ResponsiveReactGridLayout","props","propName","key"],"mappings":";;;;;;;;;;SAEA,OAAO,eAAeA,GAAS,cAAc;AAAA,IAC3C,OAAO;AAAA,EACT,CAAC,GACDA,EAAA,UAAkB;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC,IAAaC,qBAA4C,GACzDC,IAAcC,gBAAAA,EAAA,GACdC,IAASC,EAAA,GACTC,IAAmBC,EAAA,GACnBC,IAAmBP,EAAuBQ,GAA4B;AAC1E,QAAMC,IAAY,CAAC,cAAc,eAAe,QAAQ,WAAW,UAAU,oBAAoB,sBAAsB,kBAAkB,eAAe;AACxJ,WAAST,EAAuB,GAAG;AAAE,WAAO,KAAK,EAAE,aAAa,IAAI,EAAE,SAAS,EAAC;AAAA,EAAG;AACnF,WAASH,EAAwB,G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F,EAAM;AACjB,gBAAM,IAAI,MAAM,2DAA2D;AAE7E,YAAIjD,EAAO,gBAAgBiD,EAAM,QAAQE,CAAG,GAAG,aAAaA,CAAG;AAAA,MACrE,CAAK;AAAA,IACL;AAAA;AAAA;AAAA,IAGE,OAAOvD,EAAW,QAAQ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAMjC,oBAAoBA,EAAW,QAAQ;AAAA;AAAA;AAAA,IAGvC,gBAAgBA,EAAW,QAAQ;AAAA;AAAA,IAEnC,eAAeA,EAAW,QAAQ;AAAA,EACpC,CAAC,GACDuB,EAAgB6B,GAA2B,gBAAgB;AAAA,IACzD,aAAa;AAAA,MACX,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,KAAK;AAAA;IAEP,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,KAAK;AAAA;IAEP,kBAAkB;AAAA,MAChB,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,KAAK;AAAA;IAEP,SAAS,CAAA;AAAA,IACT,QAAQ,CAAC,IAAI,EAAE;AAAA,IACf,cAAc;AAAA,IACd,oBAAoBhD,EAAO;AAAA,IAC3B,gBAAgBA,EAAO;AAAA,IACvB,eAAeA,EAAO;AAAA,EACxB,CAAC;;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../_virtual/WidthProvider.cjs"),W=require("react"),q=require("../../../prop-types/index.cjs"),x=require("../../../../_virtual/ResizeObserver.es.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../_virtual/WidthProvider.cjs"),W=require("react"),q=require("../../../prop-types/index.cjs"),x=require("../../../../_virtual/ResizeObserver.es.cjs"),T=require("../../../clsx/dist/clsx2.cjs");var h;function z(){if(h)return d.__exports;h=1,Object.defineProperty(d.__exports,"__esModule",{value:!0}),d.__exports.default=j;var l=m(W),_=p(q.__require()),b=p(x),y=p(T.__require());const P=["measureBeforeMount"];function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(typeof WeakMap=="function")var n=new WeakMap,r=new WeakMap;return(m=function(i,o){if(!o&&i&&i.__esModule)return i;var s,c,f={__proto__:null,default:i};if(i===null||typeof i!="object"&&typeof i!="function")return f;if(s=o?r:n){if(s.has(i))return s.get(i);s.set(i,f)}for(const a in i)a!=="default"&&{}.hasOwnProperty.call(i,a)&&((c=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(i,a))&&(c.get||c.set)?s(f,a,c):f[a]=i[a]);return f})(e,t)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}function O(e,t){if(e==null)return{};var n,r,i=g(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function u(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=M(e,"string");return typeof t=="symbol"?t:t+""}function M(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const R="react-grid-layout";function j(e){var t;return t=class extends l.Component{constructor(){super(...arguments),u(this,"state",{width:1280}),u(this,"elementRef",l.createRef()),u(this,"mounted",!1),u(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new b.default(i=>{if(this.elementRef.current instanceof HTMLElement){const s=i[0].contentRect.width;this.setState({width:s})}});const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.observe(r)}componentWillUnmount(){this.mounted=!1;const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.unobserve(r),this.resizeObserver.disconnect()}render(){const r=this.props,{measureBeforeMount:i}=r,o=O(r,P);return i&&!this.mounted?l.createElement("div",{className:(0,y.default)(this.props.className,R),style:this.props.style,ref:this.elementRef}):l.createElement(e,v({innerRef:this.elementRef},o,this.state))}},u(t,"defaultProps",{measureBeforeMount:!1}),u(t,"propTypes",{measureBeforeMount:_.default.bool}),t}return d.__exports}exports.__require=z;
|
|
2
2
|
//# sourceMappingURL=WidthProvider.cjs.map
|
|
@@ -2,14 +2,14 @@ import { __exports as p } from "../../../../_virtual/WidthProvider.js";
|
|
|
2
2
|
import W from "react";
|
|
3
3
|
import { __require as q } from "../../../prop-types/index.js";
|
|
4
4
|
import x from "../../../../_virtual/ResizeObserver.es.js";
|
|
5
|
-
import { __require as
|
|
5
|
+
import { __require as T } from "../../../clsx/dist/clsx2.js";
|
|
6
6
|
var h;
|
|
7
|
-
function
|
|
7
|
+
function B() {
|
|
8
8
|
if (h) return p;
|
|
9
9
|
h = 1, Object.defineProperty(p, "__esModule", {
|
|
10
10
|
value: !0
|
|
11
11
|
}), p.default = j;
|
|
12
|
-
var l = v(W), y = d(/* @__PURE__ */ q()), b = d(x), _ = d(
|
|
12
|
+
var l = v(W), y = d(/* @__PURE__ */ q()), b = d(x), _ = d(T());
|
|
13
13
|
const P = ["measureBeforeMount"];
|
|
14
14
|
function d(e) {
|
|
15
15
|
return e && e.__esModule ? e : { default: e };
|
|
@@ -59,10 +59,10 @@ function $() {
|
|
|
59
59
|
return (r = w(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
60
60
|
}
|
|
61
61
|
function w(e) {
|
|
62
|
-
var r =
|
|
62
|
+
var r = M(e, "string");
|
|
63
63
|
return typeof r == "symbol" ? r : r + "";
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function M(e, r) {
|
|
66
66
|
if (typeof e != "object" || !e) return e;
|
|
67
67
|
var n = e[Symbol.toPrimitive];
|
|
68
68
|
if (n !== void 0) {
|
|
@@ -72,7 +72,7 @@ function $() {
|
|
|
72
72
|
}
|
|
73
73
|
return (r === "string" ? String : Number)(e);
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const R = "react-grid-layout";
|
|
76
76
|
function j(e) {
|
|
77
77
|
var r;
|
|
78
78
|
return r = class extends l.Component {
|
|
@@ -103,7 +103,7 @@ function $() {
|
|
|
103
103
|
measureBeforeMount: o
|
|
104
104
|
} = t, i = O(t, P);
|
|
105
105
|
return o && !this.mounted ? /* @__PURE__ */ l.createElement("div", {
|
|
106
|
-
className: (0, _.default)(this.props.className,
|
|
106
|
+
className: (0, _.default)(this.props.className, R),
|
|
107
107
|
style: this.props.style,
|
|
108
108
|
ref: this.elementRef
|
|
109
109
|
}) : /* @__PURE__ */ l.createElement(e, m({
|
|
@@ -121,6 +121,6 @@ function $() {
|
|
|
121
121
|
return p;
|
|
122
122
|
}
|
|
123
123
|
export {
|
|
124
|
-
|
|
124
|
+
B as __require
|
|
125
125
|
};
|
|
126
126
|
//# sourceMappingURL=WidthProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidthProvider.js","sources":["../../../../../../node_modules/react-grid-layout/build/components/WidthProvider.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = WidthProvideRGL;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _resizeObserverPolyfill = _interopRequireDefault(require(\"resize-observer-polyfill\"));\nvar _clsx = _interopRequireDefault(require(\"clsx\"));\nconst _excluded = [\"measureBeforeMount\"];\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\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 _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\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 _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/*:: import type { ReactRef } from \"../ReactGridLayoutPropTypes\";*/\n/*:: type WPDefaultProps = {|\n measureBeforeMount: boolean\n|};*/\n/*:: type WPProps = {|\n className?: string,\n style?: Object,\n ...WPDefaultProps\n|};*/\n// eslint-disable-next-line no-unused-vars\n/*:: type WPState = {|\n width: number\n|};*/\n/*:: type ComposedProps<Config> = {|\n ...Config,\n measureBeforeMount?: boolean,\n className?: string,\n style?: Object,\n width?: number\n|};*/\nconst layoutClassName = \"react-grid-layout\";\n\n/*\n * A simple HOC that provides facility for listening to container resizes.\n *\n * The Flow type is pretty janky here. I can't just spread `WPProps` into this returned object - I wish I could - but it triggers\n * a flow bug of some sort that causes it to stop typechecking.\n */\nfunction WidthProvideRGL /*:: <Config>*/(ComposedComponent /*: React.AbstractComponent<Config>*/) /*: React.AbstractComponent<ComposedProps<Config>>*/{\n var _WidthProvider;\n return _WidthProvider = class WidthProvider extends React.Component\n /*:: <\n ComposedProps<Config>,\n WPState\n >*/\n {\n constructor() {\n super(...arguments);\n _defineProperty(this, \"state\", {\n width: 1280\n });\n _defineProperty(this, \"elementRef\", /*#__PURE__*/React.createRef());\n _defineProperty(this, \"mounted\", false);\n _defineProperty(this, \"resizeObserver\", void 0);\n }\n componentDidMount() {\n this.mounted = true;\n this.resizeObserver = new _resizeObserverPolyfill.default(entries => {\n const node = this.elementRef.current;\n if (node instanceof HTMLElement) {\n const width = entries[0].contentRect.width;\n this.setState({\n width\n });\n }\n });\n const node = this.elementRef.current;\n if (node instanceof HTMLElement) {\n this.resizeObserver.observe(node);\n }\n }\n componentWillUnmount() {\n this.mounted = false;\n const node = this.elementRef.current;\n if (node instanceof HTMLElement) {\n this.resizeObserver.unobserve(node);\n }\n this.resizeObserver.disconnect();\n }\n render() {\n const _this$props = this.props,\n {\n measureBeforeMount\n } = _this$props,\n rest = _objectWithoutProperties(_this$props, _excluded);\n if (measureBeforeMount && !this.mounted) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: (0, _clsx.default)(this.props.className, layoutClassName),\n style: this.props.style\n // $FlowIgnore ref types\n ,\n ref: this.elementRef\n });\n }\n return /*#__PURE__*/React.createElement(ComposedComponent, _extends({\n innerRef: this.elementRef\n }, rest, this.state));\n }\n }, _defineProperty(_WidthProvider, \"defaultProps\", {\n measureBeforeMount: false\n }), _defineProperty(_WidthProvider, \"propTypes\", {\n // If true, will not render children until mounted. Useful for getting the exact width before\n // rendering, to prevent any unsightly resizing.\n measureBeforeMount: _propTypes.default.bool\n }), _WidthProvider;\n}"],"names":["WidthProvider_1","WidthProvideRGL","React","_interopRequireWildcard","require$$0","_propTypes","_interopRequireDefault","_resizeObserverPolyfill","require$$2","_clsx","require$$3","_excluded","t","r","n","e","o","i","_extends","_objectWithoutProperties","_objectWithoutPropertiesLoose","_defineProperty","_toPropertyKey","_toPrimitive","layoutClassName","ComposedComponent","_WidthProvider","entries","width","node","_this$props","measureBeforeMount","rest"],"mappings":";;;;;;;;SAEA,OAAO,eAAeA,GAAS,cAAc;AAAA,IAC3C,OAAO;AAAA,EACT,CAAC,GACDA,EAAA,UAAkBC;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC,IAAaC,qBAA4C,GACzDC,IAA0BD,EAAuBE,CAAmC,GACpFC,IAAQH,EAAuBI,GAAe;AAClD,QAAMC,IAAY,CAAC,oBAAoB;AACvC,WAASL,EAAuB,GAAG;AAAE,WAAO,KAAK,EAAE,aAAa,IAAI,EAAE,SAAS,EAAC;AAAA,EAAG;AACnF,WAASH,EAAwB,GAAGS,GAAG;AAAE,QAAkB,OAAO,WAArB,WAA8B,KAAIC,IAAI,oBAAI,QAAO,GAAIC,IAAI,oBAAI,QAAO;AAAI,YAAQX,IAA0B,SAAUY,GAAGH,GAAG;AAAE,UAAI,CAACA,KAAKG,KAAKA,EAAE,WAAY,QAAOA;AAAG,UAAI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,oBAAoB;AAAA,IACxB,CAAG,GAAGL,EAAgBK,GAAgB,aAAa;AAAA;AAAA;AAAA,MAG/C,oBAAoBrB,EAAW,QAAQ;AAAA,KACxC,GAAGqB;AAAA,EACN;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"WidthProvider.js","sources":["../../../../../../node_modules/react-grid-layout/build/components/WidthProvider.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = WidthProvideRGL;\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _resizeObserverPolyfill = _interopRequireDefault(require(\"resize-observer-polyfill\"));\nvar _clsx = _interopRequireDefault(require(\"clsx\"));\nconst _excluded = [\"measureBeforeMount\"];\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\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 _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\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 _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/*:: import type { ReactRef } from \"../ReactGridLayoutPropTypes\";*/\n/*:: type WPDefaultProps = {|\n measureBeforeMount: boolean\n|};*/\n/*:: type WPProps = {|\n className?: string,\n style?: Object,\n ...WPDefaultProps\n|};*/\n// eslint-disable-next-line no-unused-vars\n/*:: type WPState = {|\n width: number\n|};*/\n/*:: type ComposedProps<Config> = {|\n ...Config,\n measureBeforeMount?: boolean,\n className?: string,\n style?: Object,\n width?: number\n|};*/\nconst layoutClassName = \"react-grid-layout\";\n\n/*\n * A simple HOC that provides facility for listening to container resizes.\n *\n * The Flow type is pretty janky here. I can't just spread `WPProps` into this returned object - I wish I could - but it triggers\n * a flow bug of some sort that causes it to stop typechecking.\n */\nfunction WidthProvideRGL /*:: <Config>*/(ComposedComponent /*: React.AbstractComponent<Config>*/) /*: React.AbstractComponent<ComposedProps<Config>>*/{\n var _WidthProvider;\n return _WidthProvider = class WidthProvider extends React.Component\n /*:: <\n ComposedProps<Config>,\n WPState\n >*/\n {\n constructor() {\n super(...arguments);\n _defineProperty(this, \"state\", {\n width: 1280\n });\n _defineProperty(this, \"elementRef\", /*#__PURE__*/React.createRef());\n _defineProperty(this, \"mounted\", false);\n _defineProperty(this, \"resizeObserver\", void 0);\n }\n componentDidMount() {\n this.mounted = true;\n this.resizeObserver = new _resizeObserverPolyfill.default(entries => {\n const node = this.elementRef.current;\n if (node instanceof HTMLElement) {\n const width = entries[0].contentRect.width;\n this.setState({\n width\n });\n }\n });\n const node = this.elementRef.current;\n if (node instanceof HTMLElement) {\n this.resizeObserver.observe(node);\n }\n }\n componentWillUnmount() {\n this.mounted = false;\n const node = this.elementRef.current;\n if (node instanceof HTMLElement) {\n this.resizeObserver.unobserve(node);\n }\n this.resizeObserver.disconnect();\n }\n render() {\n const _this$props = this.props,\n {\n measureBeforeMount\n } = _this$props,\n rest = _objectWithoutProperties(_this$props, _excluded);\n if (measureBeforeMount && !this.mounted) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: (0, _clsx.default)(this.props.className, layoutClassName),\n style: this.props.style\n // $FlowIgnore ref types\n ,\n ref: this.elementRef\n });\n }\n return /*#__PURE__*/React.createElement(ComposedComponent, _extends({\n innerRef: this.elementRef\n }, rest, this.state));\n }\n }, _defineProperty(_WidthProvider, \"defaultProps\", {\n measureBeforeMount: false\n }), _defineProperty(_WidthProvider, \"propTypes\", {\n // If true, will not render children until mounted. Useful for getting the exact width before\n // rendering, to prevent any unsightly resizing.\n measureBeforeMount: _propTypes.default.bool\n }), _WidthProvider;\n}"],"names":["WidthProvider_1","WidthProvideRGL","React","_interopRequireWildcard","require$$0","_propTypes","_interopRequireDefault","_resizeObserverPolyfill","require$$2","_clsx","require$$3","_excluded","t","r","n","e","o","i","_extends","_objectWithoutProperties","_objectWithoutPropertiesLoose","_defineProperty","_toPropertyKey","_toPrimitive","layoutClassName","ComposedComponent","_WidthProvider","entries","width","node","_this$props","measureBeforeMount","rest"],"mappings":";;;;;;;;SAEA,OAAO,eAAeA,GAAS,cAAc;AAAA,IAC3C,OAAO;AAAA,EACT,CAAC,GACDA,EAAA,UAAkBC;AAClB,MAAIC,IAAQC,EAAwBC,CAAgB,GAChDC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