@gooddata/sdk-ui-dashboard 10.15.0-alpha.0 → 10.15.0-alpha.10
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/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +9 -2
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js +2 -2
- package/esm/model/commandHandlers/drill/common/intersectionUtils.js.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +4 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -3
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
- package/esm/model/index.d.ts +2 -2
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +2 -2
- package/esm/model/queryServices/queryWidgetFilters.js.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsFilters.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts +2 -2
- package/esm/model/react/useDasboardScheduledEmails/useFiltersForWidgetScheduledExport.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.d.ts +2 -2
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.js.map +1 -1
- package/esm/model/store/_infra/generators.d.ts +3 -0
- package/esm/model/store/_infra/generators.d.ts.map +1 -0
- package/esm/model/store/_infra/generators.js +6 -0
- package/esm/model/store/_infra/generators.js.map +1 -0
- package/esm/model/store/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/filterContext/filterContextReducers.js +5 -5
- package/esm/model/store/filterContext/filterContextReducers.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +6 -3
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/model/store/layout/layoutUtils.d.ts +1 -1
- package/esm/model/store/layout/layoutUtils.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.d.ts +22 -2
- package/esm/model/types/layoutTypes.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.js +9 -2
- package/esm/model/types/layoutTypes.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +2 -2
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -1
- package/esm/presentation/componentDefinition/types.d.ts +28 -5
- package/esm/presentation/componentDefinition/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts +2 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +8 -2
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/types.d.ts +8 -1
- package/esm/presentation/dashboard/DashboardSidebar/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +2 -0
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardMainContent.js +2 -0
- package/esm/presentation/dashboard/components/DashboardMainContent.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +2 -2
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +4 -2
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +11 -2
- package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +13 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +2 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +1 -0
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/types.d.ts +11 -3
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js +3 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.d.ts +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js +25 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddRichTextWidgetButton.js +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddRichTextWidgetButton.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js +3 -3
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.d.ts +4 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.js +10 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.d.ts +16 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js +21 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts +2 -2
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js +11 -1
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js +10 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js +9 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js +11 -1
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/index.js +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/index.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.d.ts +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js +39 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js +46 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.js.map +1 -0
- package/esm/presentation/dragAndDrop/types.d.ts +25 -3
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/types.js +12 -0
- package/esm/presentation/dragAndDrop/types.js.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +2 -0
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilterComponentSetFactory.js +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilterComponentSetFactory.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +13 -2
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +2 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/index.d.ts +1 -1
- package/esm/presentation/flexibleLayout/index.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/index.js +1 -1
- package/esm/presentation/flexibleLayout/index.js.map +1 -1
- package/esm/presentation/flexibleLayout/types.d.ts +1 -20
- package/esm/presentation/flexibleLayout/types.d.ts.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.js +13 -2
- package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.json +27 -27
- package/esm/presentation/localization/bundles/en-GB.json +15 -15
- package/esm/presentation/localization/bundles/en-US.json +10 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +3 -3
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.d.ts +7 -0
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.js +13 -0
- package/esm/presentation/widget/dashboardLayout/CreatableDashboardLayout.js.map +1 -0
- package/esm/presentation/{flexibleLayout → widget/dashboardLayout}/DashboardLayout.d.ts +1 -1
- package/esm/presentation/widget/dashboardLayout/DashboardLayout.d.ts.map +1 -0
- package/esm/presentation/{flexibleLayout → widget/dashboardLayout}/DashboardLayout.js +1 -1
- package/esm/presentation/widget/dashboardLayout/DashboardLayout.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.d.ts +8 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.js +13 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayout.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.d.ts +7 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.js +24 -0
- package/esm/presentation/widget/dashboardLayout/DefaultDashboardLayoutComponentSetFactory.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/index.d.ts +4 -0
- package/esm/presentation/widget/dashboardLayout/index.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/index.js +4 -0
- package/esm/presentation/widget/dashboardLayout/index.js.map +1 -0
- package/esm/presentation/widget/dashboardLayout/types.d.ts +55 -0
- package/esm/presentation/widget/dashboardLayout/types.d.ts.map +1 -0
- package/esm/presentation/widget/dashboardLayout/types.js +3 -0
- package/esm/presentation/widget/dashboardLayout/types.js.map +1 -0
- package/esm/presentation/widget/index.d.ts +1 -0
- package/esm/presentation/widget/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.js +1 -0
- package/esm/presentation/widget/index.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts +16 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js +133 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +10 -10
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +8 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +3 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +16 -18
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts +7 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js +43 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/convertors.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts +90 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js +220 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/getters.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.d.ts +22 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.js +41 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/guards.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts +14 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js +202 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/items.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts +64 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js +303 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils/transformation.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +3 -3
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +1 -0
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/types.d.ts +1 -0
- package/esm/presentation/widget/types.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +179 -12
- package/package.json +15 -15
- package/styles/css/alerting.css +2 -0
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/main.css +11 -14
- package/styles/css/main.css.map +1 -1
- package/styles/css/sidebar.css +9 -14
- package/styles/css/sidebar.css.map +1 -1
- package/styles/scss/alerting.scss +2 -0
- package/styles/scss/sidebar.scss +10 -18
- package/esm/presentation/flexibleLayout/DashboardLayout.d.ts.map +0 -1
- package/esm/presentation/flexibleLayout/DashboardLayout.js.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts +0 -14
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js +0 -139
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +0 -46
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +0 -712
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +0 -1
package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js
CHANGED
|
@@ -10,16 +10,16 @@ const overlayController = OverlayController.getInstance(DASHBOARD_DIALOG_OVERS_Z
|
|
|
10
10
|
export const AddVisualizationSwitcherWidgetButton = () => {
|
|
11
11
|
const isMobileDevice = useMediaQuery("mobileDevice");
|
|
12
12
|
const theme = useTheme();
|
|
13
|
-
return (React.createElement("div", { className: "add-item-placeholder add-item
|
|
13
|
+
return (React.createElement("div", { className: "add-item-placeholder add-panel-item s-add-visualization-switcher" },
|
|
14
14
|
React.createElement(Icon.VisualizationSwitcher, { color: theme?.palette?.complementary?.c6 ?? "#94a1ad" }),
|
|
15
15
|
React.createElement(FormattedMessage, { id: "addPanel.visualizationSwitcher" }),
|
|
16
16
|
React.createElement(OverlayControllerProvider, { overlayController: overlayController },
|
|
17
|
-
React.createElement(BubbleHoverTrigger, { eventsOnBubble: true, className: "gd-add-visualization-switcher s-add-visualization-switcher-bubble-trigger" },
|
|
17
|
+
React.createElement(BubbleHoverTrigger, { eventsOnBubble: true, className: "gd-add-item-placeholder-help-trigger gd-add-visualization-switcher s-add-visualization-switcher-bubble-trigger" },
|
|
18
18
|
React.createElement("div", { className: cx("s-description-trigger", {
|
|
19
19
|
"is-mobile": isMobileDevice,
|
|
20
20
|
}) },
|
|
21
21
|
React.createElement("div", { className: "gd-icon-circle-question" })),
|
|
22
|
-
React.createElement(Bubble, { alignPoints: bubbleAlignPoints },
|
|
22
|
+
React.createElement(Bubble, { alignPoints: bubbleAlignPoints, alignTo: ".gd-add-item-placeholder-help-trigger" },
|
|
23
23
|
React.createElement(FormattedMessage, { id: "addPanel.visualizationSwitcher.tooltip" }))))));
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=AddVisualizationSwitcherWidgetButton.js.map
|
package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddVisualizationSwitcherWidgetButton.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EACH,MAAM,EACN,kBAAkB,EAElB,IAAI,EACJ,iBAAiB,EACjB,yBAAyB,EACzB,aAAa,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,iBAAiB,GAAkB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AACtF,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAAC;AAExF,MAAM,CAAC,MAAM,oCAAoC,GAAa,GAAG,EAAE;IAC/D,MAAM,cAAc,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;IACrD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,CACH,6BAAK,SAAS,EAAC
|
|
1
|
+
{"version":3,"file":"AddVisualizationSwitcherWidgetButton.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC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AC3D,CACQ,CACG,CAC1B,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDashboardLayoutDraggingComponentProps } from "../../componentDefinition/types.js";
|
|
3
|
+
export declare function DashboardLayoutDraggingComponent(_props: IDashboardLayoutDraggingComponentProps): React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=DashboardLayoutDraggingComponent.d.ts.map
|
package/esm/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayoutDraggingComponent.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAM5F,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,sCAAsC,qBAE9F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AddDashboardLayoutWidgetButton } from "./AddDashboardLayoutWidgetButton.js";
|
|
4
|
+
/*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export function DashboardLayoutDraggingComponent(_props) {
|
|
8
|
+
return React.createElement(AddDashboardLayoutWidgetButton, null);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=DashboardLayoutDraggingComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayoutDraggingComponent.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/DashboardLayoutDraggingComponent.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,MAA8C;IAC3F,OAAO,oBAAC,8BAA8B,OAAG,CAAC;AAC9C,CAAC"}
|
package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CustomCreatePanelItemComponent } from "../../componentDefinition/index.js";
|
|
3
|
+
import { IWrapCreatePanelItemWithDragComponent } from "../types.js";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
interface IDraggableDashboardLayoutCreatePanelItemProps {
|
|
8
|
+
CreatePanelItemComponent: CustomCreatePanelItemComponent;
|
|
9
|
+
WrapCreatePanelItemWithDragComponent?: IWrapCreatePanelItemWithDragComponent;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const DraggableDashboardLayoutCreatePanelItem: React.FC<IDraggableDashboardLayoutCreatePanelItemProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=DraggableDashboardLayoutCreatePanelItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DraggableDashboardLayoutCreatePanelItem.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EAAiB,qCAAqC,EAAE,MAAM,aAAa,CAAC;AAEnF;;GAEG;AACH,UAAU,6CAA6C;IACnD,wBAAwB,EAAE,8BAA8B,CAAC;IACzD,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;CAChF;AAYD;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,KAAK,CAAC,EAAE,CAC1D,6CAA6C,CAWhD,CAAC"}
|
package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { DASHBOARD_LAYOUT_WIDGET_SIZE_INFO_DEFAULT } from "@gooddata/sdk-ui-ext";
|
|
4
|
+
import { DraggableCreatePanelItem } from "../DraggableCreatePanelItem.js";
|
|
5
|
+
const getDragItem = () => {
|
|
6
|
+
return {
|
|
7
|
+
type: "dashboardLayoutListItem",
|
|
8
|
+
size: {
|
|
9
|
+
gridHeight: DASHBOARD_LAYOUT_WIDGET_SIZE_INFO_DEFAULT.height.default,
|
|
10
|
+
gridWidth: DASHBOARD_LAYOUT_WIDGET_SIZE_INFO_DEFAULT.width.default,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export const DraggableDashboardLayoutCreatePanelItem = ({ CreatePanelItemComponent, WrapCreatePanelItemWithDragComponent }) => {
|
|
18
|
+
const dragItem = getDragItem();
|
|
19
|
+
return (React.createElement(DraggableCreatePanelItem, { Component: CreatePanelItemComponent, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDragComponent, dragItem: dragItem, hideDefaultPreview: false }));
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=DraggableDashboardLayoutCreatePanelItem.js.map
|
package/esm/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DraggableDashboardLayoutCreatePanelItem.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/DraggableDashboardLayoutCreatePanelItem.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,yCAAyC,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAW1E,MAAM,WAAW,GAAG,GAAkB,EAAE;IACpC,OAAO;QACH,IAAI,EAAE,yBAAyB;QAC/B,IAAI,EAAE;YACF,UAAU,EAAE,yCAAyC,CAAC,MAAM,CAAC,OAAO;YACpE,SAAS,EAAE,yCAAyC,CAAC,KAAK,CAAC,OAAO;SACrE;KACJ,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAEhD,CAAC,EAAE,wBAAwB,EAAE,oCAAoC,EAAE,EAAE,EAAE;IACvE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,OAAO,CACH,oBAAC,wBAAwB,IACrB,SAAS,EAAE,wBAAwB,EACnC,oCAAoC,EAAE,oCAAoC,EAC1E,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,KAAK,GAC3B,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -4,13 +4,13 @@ import { IWrapCreatePanelItemWithDragComponent } from "../types.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
interface
|
|
7
|
+
interface IDraggableVisualizationSwitcherCreatePanelItemProps {
|
|
8
8
|
CreatePanelItemComponent: CustomCreatePanelItemComponent;
|
|
9
9
|
WrapCreatePanelItemWithDragComponent?: IWrapCreatePanelItemWithDragComponent;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export declare const DraggableVisualizationSwitcherCreatePanelItem: React.FC<
|
|
14
|
+
export declare const DraggableVisualizationSwitcherCreatePanelItem: React.FC<IDraggableVisualizationSwitcherCreatePanelItemProps>;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=DraggableVisualizationSwitcherCreatePanelItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableVisualizationSwitcherCreatePanelItem.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EAAiB,qCAAqC,EAAE,MAAM,aAAa,CAAC;AAInF;;GAEG;AACH,UAAU,
|
|
1
|
+
{"version":3,"file":"DraggableVisualizationSwitcherCreatePanelItem.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EAAiB,qCAAqC,EAAE,MAAM,aAAa,CAAC;AAInF;;GAEG;AACH,UAAU,mDAAmD;IACzD,wBAAwB,EAAE,8BAA8B,CAAC;IACzD,oCAAoC,CAAC,EAAE,qCAAqC,CAAC;CAChF;AAcD;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,KAAK,CAAC,EAAE,CAChE,mDAAmD,CAYtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyDashboardDropZone.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyDashboardDropZone.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAoCzC,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAyG1C,CAAC"}
|
|
@@ -5,7 +5,7 @@ import cx from "classnames";
|
|
|
5
5
|
import { Typography } from "@gooddata/sdk-ui-kit";
|
|
6
6
|
import { Col } from "react-grid-system";
|
|
7
7
|
import { useDashboardDrop } from "../useDashboardDrop.js";
|
|
8
|
-
import { isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
8
|
+
import { isDashboardLayoutDraggableListItem, isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
9
9
|
import { useDashboardDispatch, useDashboardSelector, selectWidgetPlaceholder } from "../../../model/index.js";
|
|
10
10
|
import { useDashboardComponentsContext } from "../../dashboardContexts/index.js";
|
|
11
11
|
import { useNewSectionInsightListItemDropHandler } from "./useNewSectionInsightListItemDropHandler.js";
|
|
@@ -14,12 +14,14 @@ import { useNewSectionInsightPlaceholderDropHandler } from "./useNewSectionInsig
|
|
|
14
14
|
import { getDashboardLayoutItemHeightForGrid } from "../../../_staging/layout/sizing.js";
|
|
15
15
|
import { useNewSectionRichTextPlaceholderDropHandler } from "./useNewSectionRichTextPlaceholderDropHandler.js";
|
|
16
16
|
import { useNewSectionVisualizationSwitcherPlaceholderDropHandler } from "./useNewSectionVisualizationSwitcherPlaceholderDropHandler.js";
|
|
17
|
+
import { useNewSectionDashboardLayoutPlaceholderDropHandler } from "./useNewSectionDashboardLayoutPlaceholderDropHandler.js";
|
|
17
18
|
const widgetCategoryMapping = {
|
|
18
19
|
"insight-placeholder": "insight",
|
|
19
20
|
insightListItem: "visualization",
|
|
20
21
|
"kpi-placeholder": "kpi",
|
|
21
22
|
richTextListItem: "richText",
|
|
22
23
|
visualizationSwitcherListItem: "visualizationSwitcher",
|
|
24
|
+
dashboardLayoutListItem: "dashboardLayout",
|
|
23
25
|
};
|
|
24
26
|
export const EmptyDashboardDropZone = () => {
|
|
25
27
|
const dispatch = useDashboardDispatch();
|
|
@@ -30,12 +32,15 @@ export const EmptyDashboardDropZone = () => {
|
|
|
30
32
|
const handleInsightPlaceholderDrop = useNewSectionInsightPlaceholderDropHandler(0);
|
|
31
33
|
const handleRichTextPlaceholderDrop = useNewSectionRichTextPlaceholderDropHandler(0);
|
|
32
34
|
const handleVisualizationSwitcherPlaceholderDrop = useNewSectionVisualizationSwitcherPlaceholderDropHandler(0);
|
|
35
|
+
const handleDashboardLayoutPlaceholderDrop = useNewSectionDashboardLayoutPlaceholderDropHandler(0);
|
|
33
36
|
const [{ canDrop, isOver, itemType, item }, dropRef] = useDashboardDrop([
|
|
34
37
|
"insightListItem",
|
|
35
38
|
"kpi-placeholder",
|
|
36
39
|
"insight-placeholder",
|
|
37
40
|
"richTextListItem",
|
|
38
41
|
"visualizationSwitcherListItem",
|
|
42
|
+
"dashboardLayoutListItem",
|
|
43
|
+
"dashboardLayoutListItem",
|
|
39
44
|
], {
|
|
40
45
|
drop: (item) => {
|
|
41
46
|
if (isInsightDraggableListItem(item)) {
|
|
@@ -53,6 +58,9 @@ export const EmptyDashboardDropZone = () => {
|
|
|
53
58
|
if (isVisualizationSwitcherDraggableListItem(item)) {
|
|
54
59
|
handleVisualizationSwitcherPlaceholderDrop();
|
|
55
60
|
}
|
|
61
|
+
if (isDashboardLayoutDraggableListItem(item)) {
|
|
62
|
+
handleDashboardLayoutPlaceholderDrop();
|
|
63
|
+
}
|
|
56
64
|
},
|
|
57
65
|
}, [
|
|
58
66
|
dispatch,
|
|
@@ -61,6 +69,8 @@ export const EmptyDashboardDropZone = () => {
|
|
|
61
69
|
handleKpiPlaceholderDrop,
|
|
62
70
|
handleInsightPlaceholderDrop,
|
|
63
71
|
handleVisualizationSwitcherPlaceholderDrop,
|
|
72
|
+
handleRichTextPlaceholderDrop,
|
|
73
|
+
handleDashboardLayoutPlaceholderDrop,
|
|
64
74
|
]);
|
|
65
75
|
const { gridWidth = 12, gridHeight } = item?.size || {};
|
|
66
76
|
const widgetCategory = widgetCategoryMapping[itemType];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyDashboardDropZone.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAGH,0BAA0B,EAC1B,iCAAiC,EACjC,6BAA6B,EAC7B,2BAA2B,EAC3B,wCAAwC,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC9G,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AACvG,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAC7G,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC;AAC/G,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyDashboardDropZone.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.tsx"],"names":[],"mappings":"AAAA,qCAA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AE,MAAM,EAAE,CAAC,EACxF,GAAG,EAAE,OAAO;YAEZ,oBAAC,gCAAgC,OAAG;YACpC,6BAAK,SAAS,EAAC,uEAAuE;gBAClF,6BAAK,SAAS,EAAC,mBAAmB;oBAC9B,oBAAC,UAAU,IACP,OAAO,EAAC,GAAG,EACX,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,GAAG,cAAc,cAAc,CAAC,IAEpE,OAAO,CACC,CACX,CACJ,CACJ,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hotspot.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Hotspot.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAyB9D,UAAU,aAAa;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsH3C,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import React, { useCallback, useEffect, useRef } from "react";
|
|
4
4
|
import { getDropZoneDebugStyle } from "../debug.js";
|
|
5
|
-
import { isInsightDraggableItem, isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
5
|
+
import { isDashboardLayoutDraggableListItem, isInsightDraggableItem, isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
6
6
|
import { useDashboardDrop } from "../useDashboardDrop.js";
|
|
7
7
|
import { useInsightListItemDropHandler } from "./useInsightListItemDropHandler.js";
|
|
8
8
|
import { useInsightPlaceholderDropHandler } from "./useInsightPlaceholderDropHandler.js";
|
|
@@ -11,6 +11,7 @@ import { useMoveWidgetDropHandler } from "./useMoveWidgetHandler.js";
|
|
|
11
11
|
import { useWidgetDragHoverHandlers } from "./useWidgetDragHoverHandlers.js";
|
|
12
12
|
import { useRichTextPlaceholderDropHandler } from "./useRichTextPlaceholderDropHandler.js";
|
|
13
13
|
import { useVisualizationSwitcherPlaceholderDropHandler } from "./useVisualizationSwitcherPlaceholderDropHandler.js";
|
|
14
|
+
import { useDashboardLayoutPlaceholderDropHandler } from "./useDashboardLayoutPlaceholderDropHandler.js";
|
|
14
15
|
export const Hotspot = (props) => {
|
|
15
16
|
const { itemIndex, sectionIndex, classNames, dropZoneType, isEndingHotspot } = props;
|
|
16
17
|
const isOverLastValue = useRef(false);
|
|
@@ -21,6 +22,7 @@ export const Hotspot = (props) => {
|
|
|
21
22
|
const handleKpiPlaceholderDrop = useKpiPlaceholderDropHandler(sectionIndex, targetItemIndex);
|
|
22
23
|
const handleRichTextPlaceholderDrop = useRichTextPlaceholderDropHandler(sectionIndex, targetItemIndex);
|
|
23
24
|
const handleVisualizationSwitcherPlaceholderDrop = useVisualizationSwitcherPlaceholderDropHandler(sectionIndex, targetItemIndex);
|
|
25
|
+
const handleDashboardLayoutPlaceholderDrop = useDashboardLayoutPlaceholderDropHandler(sectionIndex, targetItemIndex);
|
|
24
26
|
const handleWidgetDrop = useMoveWidgetDropHandler(sectionIndex, targetItemIndex);
|
|
25
27
|
const { handleDragHoverStart } = useWidgetDragHoverHandlers();
|
|
26
28
|
const [{ canDrop, isOver, item }, dropRef] = useDashboardDrop([
|
|
@@ -33,6 +35,8 @@ export const Hotspot = (props) => {
|
|
|
33
35
|
"richTextListItem",
|
|
34
36
|
"visualizationSwitcher",
|
|
35
37
|
"visualizationSwitcherListItem",
|
|
38
|
+
"dashboardLayout",
|
|
39
|
+
"dashboardLayoutListItem",
|
|
36
40
|
], {
|
|
37
41
|
drop: (item) => {
|
|
38
42
|
if (isInsightDraggableListItem(item)) {
|
|
@@ -50,6 +54,9 @@ export const Hotspot = (props) => {
|
|
|
50
54
|
if (isVisualizationSwitcherDraggableListItem(item)) {
|
|
51
55
|
handleVisualizationSwitcherPlaceholderDrop();
|
|
52
56
|
}
|
|
57
|
+
if (isDashboardLayoutDraggableListItem(item)) {
|
|
58
|
+
handleDashboardLayoutPlaceholderDrop();
|
|
59
|
+
}
|
|
53
60
|
if (isInsightDraggableItem(item) ||
|
|
54
61
|
isKpiDraggableItem(item) ||
|
|
55
62
|
isRichTextDraggableItem(item) ||
|
|
@@ -65,6 +72,8 @@ export const Hotspot = (props) => {
|
|
|
65
72
|
handleKpiPlaceholderDrop,
|
|
66
73
|
handleWidgetDrop,
|
|
67
74
|
handleVisualizationSwitcherPlaceholderDrop,
|
|
75
|
+
handleRichTextPlaceholderDrop,
|
|
76
|
+
handleDashboardLayoutPlaceholderDrop,
|
|
68
77
|
]);
|
|
69
78
|
useEffect(() => {
|
|
70
79
|
if (isOver) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hotspot.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAA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presentation/dragAndDrop/draggableWidget/SectionHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SectionHotspot.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/SectionHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA2BzC,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5C,UAAU,oBAAoB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,WAAW,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6GzD,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import React, { useEffect } from "react";
|
|
4
4
|
import { useDashboardDispatch } from "../../../model/index.js";
|
|
5
|
-
import { isBaseDraggableMovingItem, isInsightDraggableItem, isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
5
|
+
import { isBaseDraggableMovingItem, isDashboardLayoutDraggableListItem, isInsightDraggableItem, isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
6
6
|
import { getDropZoneDebugStyle } from "../debug.js";
|
|
7
7
|
import { useDashboardDrop } from "../useDashboardDrop.js";
|
|
8
8
|
import { SectionDropZoneBox } from "./SectionDropZoneBox.js";
|
|
@@ -13,6 +13,7 @@ import { useNewSectionKpiPlaceholderDropHandler } from "./useNewSectionKpiPlaceh
|
|
|
13
13
|
import { useWidgetDragHoverHandlers } from "./useWidgetDragHoverHandlers.js";
|
|
14
14
|
import { useNewSectionRichTextPlaceholderDropHandler } from "./useNewSectionRichTextPlaceholderDropHandler.js";
|
|
15
15
|
import { useNewSectionVisualizationSwitcherPlaceholderDropHandler } from "./useNewSectionVisualizationSwitcherPlaceholderDropHandler.js";
|
|
16
|
+
import { useNewSectionDashboardLayoutPlaceholderDropHandler } from "./useNewSectionDashboardLayoutPlaceholderDropHandler.js";
|
|
16
17
|
export const SectionHotspot = (props) => {
|
|
17
18
|
const { index, targetPosition } = props;
|
|
18
19
|
const dispatch = useDashboardDispatch();
|
|
@@ -21,6 +22,7 @@ export const SectionHotspot = (props) => {
|
|
|
21
22
|
const handleInsightPlaceholderDrop = useNewSectionInsightPlaceholderDropHandler(index);
|
|
22
23
|
const handleRichTextPlaceholderDrop = useNewSectionRichTextPlaceholderDropHandler(index);
|
|
23
24
|
const handleVisualizationSwitcherPlaceholderDrop = useNewSectionVisualizationSwitcherPlaceholderDropHandler(index);
|
|
25
|
+
const handleDashboardLayoutPlaceholderDrop = useNewSectionDashboardLayoutPlaceholderDropHandler(index);
|
|
24
26
|
const moveWidgetToNewSection = useMoveWidgetToNewSectionDropHandler(index);
|
|
25
27
|
const { handleDragHoverEnd } = useWidgetDragHoverHandlers();
|
|
26
28
|
const [{ canDrop, isOver }, dropRef] = useDashboardDrop([
|
|
@@ -33,6 +35,8 @@ export const SectionHotspot = (props) => {
|
|
|
33
35
|
"richTextListItem",
|
|
34
36
|
"visualizationSwitcher",
|
|
35
37
|
"visualizationSwitcherListItem",
|
|
38
|
+
"dashboardLayout",
|
|
39
|
+
"dashboardLayoutListItem",
|
|
36
40
|
], {
|
|
37
41
|
drop: (item) => {
|
|
38
42
|
if (isInsightDraggableListItem(item)) {
|
|
@@ -56,6 +60,9 @@ export const SectionHotspot = (props) => {
|
|
|
56
60
|
if (isVisualizationSwitcherDraggableListItem(item)) {
|
|
57
61
|
handleVisualizationSwitcherPlaceholderDrop();
|
|
58
62
|
}
|
|
63
|
+
if (isDashboardLayoutDraggableListItem(item)) {
|
|
64
|
+
handleDashboardLayoutPlaceholderDrop();
|
|
65
|
+
}
|
|
59
66
|
if (isKpiDraggableItem(item)) {
|
|
60
67
|
moveWidgetToNewSection(item);
|
|
61
68
|
}
|
|
@@ -77,6 +84,7 @@ export const SectionHotspot = (props) => {
|
|
|
77
84
|
handleKpiPlaceholderDrop,
|
|
78
85
|
handleInsightPlaceholderDrop,
|
|
79
86
|
handleVisualizationSwitcherPlaceholderDrop,
|
|
87
|
+
handleDashboardLayoutPlaceholderDrop,
|
|
80
88
|
]);
|
|
81
89
|
useEffect(() => {
|
|
82
90
|
if (isOver) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionHotspot.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/SectionHotspot.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACH,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,kBAAkB,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,wCAAwC,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AACvG,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC;AAC/G,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"SectionHotspot.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/SectionHotspot.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACH,yBAAyB,EACzB,kCAAkC,EAClC,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,kBAAkB,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,wCAAwC,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AACvG,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,2CAA2C,EAAE,MAAM,kDAAkD,CAAC;AAC/G,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC;AACzI,OA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AC;YACT,kBAAkB,EAAE,CAAC;QACzB,CAAC;IACL,CAAC,EAAE,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;IAEjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,MAAM,GAAG,cAAc,KAAK,OAAO,CAAC;IAE1C,MAAM,UAAU,GAAG,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAErD,OAAO,CACH,6BACI,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE;YACnC,IAAI,EAAE,MAAM,IAAI,OAAO;YACvB,sBAAsB,EAAE,MAAM,IAAI,OAAO;YACzC,MAAM,EAAE,CAAC,OAAO;SACnB,CAAC;QAEF,6BAAK,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG,EAAE,OAAO,IAC1F,CAAC,CAAC,MAAM,IAAI,oBAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,GAAI,CACjD,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDropZoneColumn.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetDropZoneColumn.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAkB,MAAM,OAAO,CAAC;AA+BvC,MAAM,MAAM,yBAAyB,GAAG;IACpC,MAAM,EAAE,UAAU,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,6BAmHpE,CAAC"}
|
|
@@ -9,9 +9,10 @@ import { useInsightPlaceholderDropHandler } from "./useInsightPlaceholderDropHan
|
|
|
9
9
|
import { useKpiPlaceholderDropHandler } from "./useKpiPlaceholderDropHandler.js";
|
|
10
10
|
import { useMoveWidgetDropHandler } from "./useMoveWidgetHandler.js";
|
|
11
11
|
import { getDashboardLayoutItemHeightForGrid } from "../../../_staging/layout/sizing.js";
|
|
12
|
-
import { isInsightDraggableItem, isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
12
|
+
import { isDashboardLayoutDraggableListItem, isInsightDraggableItem, isInsightDraggableListItem, isInsightPlaceholderDraggableItem, isKpiDraggableItem, isKpiPlaceholderDraggableItem, isRichTextDraggableItem, isRichTextDraggableListItem, isVisualizationSwitcherDraggableItem, isVisualizationSwitcherDraggableListItem, } from "../types.js";
|
|
13
13
|
import { useRichTextPlaceholderDropHandler } from "./useRichTextPlaceholderDropHandler.js";
|
|
14
14
|
import { useVisualizationSwitcherPlaceholderDropHandler } from "./useVisualizationSwitcherPlaceholderDropHandler.js";
|
|
15
|
+
import { useDashboardLayoutPlaceholderDropHandler } from "./useDashboardLayoutPlaceholderDropHandler.js";
|
|
15
16
|
export const WidgetDropZoneColumn = (props) => {
|
|
16
17
|
const { sectionIndex, itemIndex, isLastInSection = false } = props;
|
|
17
18
|
const dropzoneCoordinates = useDashboardSelector(selectDraggingWidgetTarget);
|
|
@@ -20,6 +21,7 @@ export const WidgetDropZoneColumn = (props) => {
|
|
|
20
21
|
const handleKpiPlaceholderDrop = useKpiPlaceholderDropHandler(sectionIndex, itemIndex);
|
|
21
22
|
const handleRichTextPlaceholderDrop = useRichTextPlaceholderDropHandler(sectionIndex, itemIndex);
|
|
22
23
|
const handleVisualizationSwitcherPlaceholderDrop = useVisualizationSwitcherPlaceholderDropHandler(sectionIndex, itemIndex);
|
|
24
|
+
const handleDashboardLayoutPlaceholderDrop = useDashboardLayoutPlaceholderDropHandler(sectionIndex, itemIndex);
|
|
23
25
|
const handleWidgetDrop = useMoveWidgetDropHandler(sectionIndex, itemIndex);
|
|
24
26
|
const dispatch = useDashboardDispatch();
|
|
25
27
|
const [collectedProps, dropRef] = useDashboardDrop([
|
|
@@ -32,6 +34,8 @@ export const WidgetDropZoneColumn = (props) => {
|
|
|
32
34
|
"richTextListItem",
|
|
33
35
|
"visualizationSwitcher",
|
|
34
36
|
"visualizationSwitcherListItem",
|
|
37
|
+
"dashboardLayout",
|
|
38
|
+
"dashboardLayoutListItem",
|
|
35
39
|
], {
|
|
36
40
|
drop: (item) => {
|
|
37
41
|
if (isInsightDraggableListItem(item)) {
|
|
@@ -49,6 +53,9 @@ export const WidgetDropZoneColumn = (props) => {
|
|
|
49
53
|
if (isVisualizationSwitcherDraggableListItem(item)) {
|
|
50
54
|
handleVisualizationSwitcherPlaceholderDrop();
|
|
51
55
|
}
|
|
56
|
+
if (isDashboardLayoutDraggableListItem(item)) {
|
|
57
|
+
handleDashboardLayoutPlaceholderDrop();
|
|
58
|
+
}
|
|
52
59
|
if (isInsightDraggableItem(item) ||
|
|
53
60
|
isKpiDraggableItem(item) ||
|
|
54
61
|
isRichTextDraggableItem(item) ||
|
|
@@ -62,6 +69,9 @@ export const WidgetDropZoneColumn = (props) => {
|
|
|
62
69
|
handleInsightPlaceholderDrop,
|
|
63
70
|
handleKpiPlaceholderDrop,
|
|
64
71
|
handleVisualizationSwitcherPlaceholderDrop,
|
|
72
|
+
handleRichTextPlaceholderDrop,
|
|
73
|
+
handleWidgetDrop,
|
|
74
|
+
handleDashboardLayoutPlaceholderDrop,
|
|
65
75
|
]);
|
|
66
76
|
const showDropZone = useMemo(() => dropzoneCoordinates?.sectionIndex === sectionIndex &&
|
|
67
77
|
dropzoneCoordinates?.itemIndex === itemIndex, [dropzoneCoordinates?.itemIndex, dropzoneCoordinates?.sectionIndex, itemIndex, sectionIndex]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDropZoneColumn.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EACH,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAEH,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,kBAAkB,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,wCAAwC,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetDropZoneColumn.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EACH,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAEH,kCAAkC,EAClC,sBAAsB,EACtB,0BAA0B,EAC1B,iCAAiC,EACjC,kBAAkB,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,wCAAwC,GAC3C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,qDAAqD,CAAC;AACrH,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AASzG,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAgC,EAAE,EAAE;IACrE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;I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E,EAAE,CAAC,uBAAuB,EAAE,gCAAgC,EAAE,uBAAuB,CAAC,EACjG,KAAK,EAAE;YACH,SAAS,EAAE,mCAAmC,CAAC,IAAI,CAAC,UAAU,CAAC;SAClE;QAED,oBAAC,cAAc,IACX,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,GAClB,CACA,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -2,9 +2,11 @@ export * from "./DraggableInsightListItem.js";
|
|
|
2
2
|
export * from "./DraggableKpiCreatePanelItem.js";
|
|
3
3
|
export * from "./DraggableRichTextCreatePanelItem.js";
|
|
4
4
|
export * from "./DraggableVisualizationSwitcherCreatePanelItem.js";
|
|
5
|
+
export * from "./DraggableDashboardLayoutCreatePanelItem.js";
|
|
5
6
|
export * from "./AddKpiWidgetButton.js";
|
|
6
7
|
export * from "./AddRichTextWidgetButton.js";
|
|
7
8
|
export * from "./AddVisualizationSwitcherWidgetButton.js";
|
|
9
|
+
export * from "./AddDashboardLayoutWidgetButton.js";
|
|
8
10
|
export * from "./SectionHotspot.js";
|
|
9
11
|
export * from "./RowEndHotspot.js";
|
|
10
12
|
export * from "./Hotspot.js";
|
|
@@ -22,4 +24,5 @@ export * from "./InsightDraggingComponent.js";
|
|
|
22
24
|
export * from "./KpiDraggingComponent.js";
|
|
23
25
|
export * from "./RichTextDraggingComponent.js";
|
|
24
26
|
export * from "./VisualizationSwitcherDraggingComponent.js";
|
|
27
|
+
export * from "./DashboardLayoutDraggingComponent.js";
|
|
25
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/index.ts"],"names":[],"mappings":"AACA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAo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C,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC"}
|
|
@@ -3,9 +3,11 @@ export * from "./DraggableInsightListItem.js";
|
|
|
3
3
|
export * from "./DraggableKpiCreatePanelItem.js";
|
|
4
4
|
export * from "./DraggableRichTextCreatePanelItem.js";
|
|
5
5
|
export * from "./DraggableVisualizationSwitcherCreatePanelItem.js";
|
|
6
|
+
export * from "./DraggableDashboardLayoutCreatePanelItem.js";
|
|
6
7
|
export * from "./AddKpiWidgetButton.js";
|
|
7
8
|
export * from "./AddRichTextWidgetButton.js";
|
|
8
9
|
export * from "./AddVisualizationSwitcherWidgetButton.js";
|
|
10
|
+
export * from "./AddDashboardLayoutWidgetButton.js";
|
|
9
11
|
export * from "./SectionHotspot.js";
|
|
10
12
|
export * from "./RowEndHotspot.js";
|
|
11
13
|
export * from "./Hotspot.js";
|
|
@@ -23,4 +25,5 @@ export * from "./InsightDraggingComponent.js";
|
|
|
23
25
|
export * from "./KpiDraggingComponent.js";
|
|
24
26
|
export * from "./RichTextDraggingComponent.js";
|
|
25
27
|
export * from "./VisualizationSwitcherDraggingComponent.js";
|
|
28
|
+
export * from "./DashboardLayoutDraggingComponent.js";
|
|
26
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB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,cAAc,uCAAuC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDashboardLayoutPlaceholderDropHandler.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAcA,wBAAgB,wCAAwC,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,cAiC/F"}
|
package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { v4 as uuidv4 } from "uuid";
|
|
4
|
+
import { idRef } from "@gooddata/sdk-model";
|
|
5
|
+
import { DASHBOARD_LAYOUT_WIDGET_SIZE_INFO_DEFAULT } from "@gooddata/sdk-ui-ext";
|
|
6
|
+
import { addSectionItem, uiActions, useDashboardCommandProcessing, useDashboardDispatch, } from "../../../model/index.js";
|
|
7
|
+
export function useDashboardLayoutPlaceholderDropHandler(sectionIndex, itemIndex) {
|
|
8
|
+
const dispatch = useDashboardDispatch();
|
|
9
|
+
const { run: createDashboardLayout } = useDashboardCommandProcessing({
|
|
10
|
+
commandCreator: addSectionItem,
|
|
11
|
+
errorEvent: "GDC.DASH/EVT.COMMAND.FAILED",
|
|
12
|
+
successEvent: "GDC.DASH/EVT.FLUID_LAYOUT.ITEMS_ADDED",
|
|
13
|
+
onSuccess: (event) => {
|
|
14
|
+
const ref = event.payload.itemsAdded[0].widget.ref;
|
|
15
|
+
dispatch(uiActions.selectWidget(ref));
|
|
16
|
+
dispatch(uiActions.setConfigurationPanelOpened(true));
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
return useCallback(() => {
|
|
20
|
+
const id = uuidv4();
|
|
21
|
+
createDashboardLayout(sectionIndex, itemIndex, {
|
|
22
|
+
type: "IDashboardLayoutItem",
|
|
23
|
+
size: {
|
|
24
|
+
xl: {
|
|
25
|
+
gridHeight: DASHBOARD_LAYOUT_WIDGET_SIZE_INFO_DEFAULT.height.default,
|
|
26
|
+
gridWidth: DASHBOARD_LAYOUT_WIDGET_SIZE_INFO_DEFAULT.width.default,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
widget: {
|
|
30
|
+
type: "IDashboardLayout",
|
|
31
|
+
sections: [],
|
|
32
|
+
identifier: id,
|
|
33
|
+
ref: idRef(id),
|
|
34
|
+
uri: `/${id}`,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
}, [createDashboardLayout, itemIndex, sectionIndex]);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=useDashboardLayoutPlaceholderDropHandler.js.map
|
package/esm/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDashboardLayoutPlaceholderDropHandler.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/useDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,yCAAyC,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EACH,cAAc,EACd,SAAS,EACT,6BAA6B,EAC7B,oBAAoB,GACvB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,wCAAwC,CAAC,YAAoB,EAAE,SAAiB;IAC5F,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IAExC,MAAM,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,6BAA6B,CAAC;QACjE,cAAc,EAAE,cAAc;QAC9B,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,uCAAuC;QACrD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAO,CAAC,GAAG,CAAC;YACpD,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;YACtC,QAAQ,CAAC,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1D,CAAC;KACJ,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC,GAAG,EAAE;QACpB,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;QACpB,qBAAqB,CAAC,YAAY,EAAE,SAAS,EAAE;YAC3C,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE;gBACF,EAAE,EAAE;oBACA,UAAU,EAAE,yCAAyC,CAAC,MAAM,CAAC,OAAQ;oBACrE,SAAS,EAAE,yCAAyC,CAAC,KAAK,CAAC,OAAQ;iBACtE;aACJ;YACD,MAAM,EAAE;gBACJ,IAAI,EAAE,kBAAkB;gBACxB,QAAQ,EAAE,EAAE;gBACZ,UAAU,EAAE,EAAE;gBACd,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;gBACd,GAAG,EAAE,IAAI,EAAE,EAAE;aAChB;SACJ,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,qBAAqB,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsDraggingWidget.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.ts"],"names":[],"mappings":"AAIA,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useIsDraggingWidget.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.ts"],"names":[],"mappings":"AAIA,wBAAgB,mBAAmB,YAoBlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsDraggingWidget.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,UAAU,mBAAmB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,GAAG,gBAAgB,CACpD;QACI,iBAAiB;QACjB,iBAAiB;QACjB,qBAAqB;QACrB,KAAK;QACL,SAAS;QACT,UAAU;QACV,kBAAkB;QAClB,uBAAuB;QACvB,+BAA+B;
|
|
1
|
+
{"version":3,"file":"useIsDraggingWidget.js","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,UAAU,mBAAmB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,GAAG,gBAAgB,CACpD;QACI,iBAAiB;QACjB,iBAAiB;QACjB,qBAAqB;QACrB,KAAK;QACL,SAAS;QACT,UAAU;QACV,kBAAkB;QAClB,uBAAuB;QACvB,+BAA+B;QAC/B,iBAAiB;QACjB,yBAAyB;KAC5B,EACD,EAAE,EACF,EAAE,CACL,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNewSectionDashboardLayoutPlaceholderDropHandler.d.ts","sourceRoot":"","sources":["../../../../src/presentation/dragAndDrop/draggableWidget/useNewSectionDashboardLayoutPlaceholderDropHandler.ts"],"names":[],"mappings":"AAcA,wBAAgB,kDAAkD,CAAC,YAAY,EAAE,MAAM,cAwCtF"}
|