@gooddata/sdk-ui-dashboard 10.33.0-alpha.69 → 10.33.0-alpha.7
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/NOTICE +340 -460
- 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/_staging/dashboard/flexibleLayout/config.d.ts +0 -1
- package/esm/_staging/dashboard/flexibleLayout/config.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/config.js +1 -2
- package/esm/_staging/dashboard/flexibleLayout/config.js.map +1 -1
- package/esm/_staging/layout/sizing.d.ts.map +1 -1
- package/esm/_staging/layout/sizing.js +4 -6
- package/esm/_staging/layout/sizing.js.map +1 -1
- package/esm/model/commandHandlers/layout/containerHeightSanitization.d.ts +0 -10
- package/esm/model/commandHandlers/layout/containerHeightSanitization.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/containerHeightSanitization.js +60 -138
- package/esm/model/commandHandlers/layout/containerHeightSanitization.js.map +1 -1
- package/esm/model/commandHandlers/layout/containerWidthSanitization.d.ts +2 -7
- package/esm/model/commandHandlers/layout/containerWidthSanitization.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/containerWidthSanitization.js +6 -12
- package/esm/model/commandHandlers/layout/containerWidthSanitization.js.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemHandler.js +7 -10
- package/esm/model/commandHandlers/layout/moveSectionItemHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.js +10 -14
- package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +7 -8
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js.map +1 -1
- package/esm/model/headlessDashboard/HeadlessDashboard.d.ts.map +1 -1
- package/esm/model/headlessDashboard/HeadlessDashboard.js +3 -4
- package/esm/model/headlessDashboard/HeadlessDashboard.js.map +1 -1
- package/esm/model/index.d.ts +3 -1
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js +3 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queryServices/index.d.ts +0 -3
- package/esm/model/queryServices/index.d.ts.map +1 -1
- package/esm/model/queryServices/index.js +0 -3
- package/esm/model/queryServices/index.js.map +1 -1
- package/esm/model/queryServices/queryInsightAttributesMeta.d.ts +2 -9
- package/esm/model/queryServices/queryInsightAttributesMeta.d.ts.map +1 -1
- package/esm/model/queryServices/queryInsightAttributesMeta.js.map +1 -1
- package/esm/model/queryServices/queryInsightDateDatasets.d.ts +2 -9
- package/esm/model/queryServices/queryInsightDateDatasets.d.ts.map +1 -1
- package/esm/model/queryServices/queryInsightDateDatasets.js.map +1 -1
- package/esm/model/queryServices/queryMeasureDateDatasets.d.ts +2 -9
- package/esm/model/queryServices/queryMeasureDateDatasets.d.ts.map +1 -1
- package/esm/model/queryServices/queryMeasureDateDatasets.js.map +1 -1
- package/esm/model/react/DashboardStoreProvider.d.ts +2 -2
- package/esm/model/react/DashboardStoreProvider.d.ts.map +1 -1
- package/esm/model/react/DashboardStoreProvider.js +1 -1
- package/esm/model/react/DashboardStoreProvider.js.map +1 -1
- package/esm/model/react/filtering/selectors.js +1 -1
- package/esm/model/react/filtering/selectors.js.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.js.map +1 -1
- package/esm/model/store/_infra/queryProcessing.d.ts +2 -2
- package/esm/model/store/_infra/queryProcessing.d.ts.map +1 -1
- package/esm/model/store/_infra/queryProcessing.js +1 -1
- package/esm/model/store/_infra/queryProcessing.js.map +1 -1
- package/esm/model/store/_infra/queryService.d.ts +2 -2
- package/esm/model/store/_infra/queryService.d.ts.map +1 -1
- package/esm/model/store/_infra/queryService.js +1 -1
- package/esm/model/store/_infra/queryService.js.map +1 -1
- package/esm/model/store/_infra/undoEnhancer.d.ts +3 -0
- package/esm/model/store/_infra/undoEnhancer.d.ts.map +1 -1
- package/esm/model/store/accessibleDashboards/accessibleDashboardsEntityAdapter.d.ts +1 -2
- package/esm/model/store/accessibleDashboards/accessibleDashboardsEntityAdapter.d.ts.map +1 -1
- package/esm/model/store/accessibleDashboards/accessibleDashboardsEntityAdapter.js +1 -1
- package/esm/model/store/accessibleDashboards/accessibleDashboardsEntityAdapter.js.map +1 -1
- package/esm/model/store/accessibleDashboards/accessibleDashboardsSelectors.js +1 -1
- package/esm/model/store/accessibleDashboards/accessibleDashboardsSelectors.js.map +1 -1
- package/esm/model/store/accessibleDashboards/index.d.ts +9 -7
- package/esm/model/store/accessibleDashboards/index.d.ts.map +1 -1
- package/esm/model/store/accessibleDashboards/index.js +2 -3
- package/esm/model/store/accessibleDashboards/index.js.map +1 -1
- package/esm/model/store/attributeFilterConfigs/attributeFilterConfigsSelectors.js +1 -1
- package/esm/model/store/attributeFilterConfigs/attributeFilterConfigsSelectors.js.map +1 -1
- package/esm/model/store/attributeFilterConfigs/index.d.ts +19 -9
- package/esm/model/store/attributeFilterConfigs/index.d.ts.map +1 -1
- package/esm/model/store/attributeFilterConfigs/index.js +3 -4
- package/esm/model/store/attributeFilterConfigs/index.js.map +1 -1
- package/esm/model/store/automations/automationsReducers.d.ts +1 -1
- package/esm/model/store/automations/automationsSelectors.js +1 -1
- package/esm/model/store/automations/automationsSelectors.js.map +1 -1
- package/esm/model/store/automations/index.d.ts +20 -10
- package/esm/model/store/automations/index.d.ts.map +1 -1
- package/esm/model/store/automations/index.js +2 -3
- package/esm/model/store/automations/index.js.map +1 -1
- package/esm/model/store/backendCapabilities/backendCapabilitiesSelectors.js +1 -1
- package/esm/model/store/backendCapabilities/backendCapabilitiesSelectors.js.map +1 -1
- package/esm/model/store/backendCapabilities/index.d.ts +7 -6
- package/esm/model/store/backendCapabilities/index.d.ts.map +1 -1
- package/esm/model/store/backendCapabilities/index.js +2 -3
- package/esm/model/store/backendCapabilities/index.js.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +1 -1
- package/esm/model/store/catalog/catalogSelectors.js.map +1 -1
- package/esm/model/store/catalog/index.d.ts +23 -10
- package/esm/model/store/catalog/index.d.ts.map +1 -1
- package/esm/model/store/catalog/index.js +2 -3
- package/esm/model/store/catalog/index.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +2 -2
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +4 -4
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/config/index.d.ts +7 -6
- package/esm/model/store/config/index.d.ts.map +1 -1
- package/esm/model/store/config/index.js +2 -3
- package/esm/model/store/config/index.js.map +1 -1
- package/esm/model/store/dashboardPermissions/dashboardPermissionsSelectors.js +1 -1
- package/esm/model/store/dashboardPermissions/dashboardPermissionsSelectors.js.map +1 -1
- package/esm/model/store/dashboardPermissions/index.d.ts +7 -6
- package/esm/model/store/dashboardPermissions/index.d.ts.map +1 -1
- package/esm/model/store/dashboardPermissions/index.js +2 -3
- package/esm/model/store/dashboardPermissions/index.js.map +1 -1
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +1 -1
- package/esm/model/store/dashboardStore.js.map +1 -1
- package/esm/model/store/dateFilterConfig/dateFilterConfigSelectors.js +1 -1
- package/esm/model/store/dateFilterConfig/dateFilterConfigSelectors.js.map +1 -1
- package/esm/model/store/dateFilterConfig/index.d.ts +31 -15
- package/esm/model/store/dateFilterConfig/index.d.ts.map +1 -1
- package/esm/model/store/dateFilterConfig/index.js +2 -3
- package/esm/model/store/dateFilterConfig/index.js.map +1 -1
- package/esm/model/store/dateFilterConfigs/dateFilterConfigsSelectors.js +1 -1
- package/esm/model/store/dateFilterConfigs/dateFilterConfigsSelectors.js.map +1 -1
- package/esm/model/store/dateFilterConfigs/index.d.ts +19 -9
- package/esm/model/store/dateFilterConfigs/index.d.ts.map +1 -1
- package/esm/model/store/dateFilterConfigs/index.js +2 -3
- package/esm/model/store/dateFilterConfigs/index.js.map +1 -1
- package/esm/model/store/drill/drillReducers.d.ts +1 -1
- package/esm/model/store/drill/drillSelectors.js +1 -1
- package/esm/model/store/drill/drillSelectors.js.map +1 -1
- package/esm/model/store/drill/index.d.ts +12 -8
- package/esm/model/store/drill/index.d.ts.map +1 -1
- package/esm/model/store/drill/index.js +2 -2
- package/esm/model/store/drill/index.js.map +1 -1
- package/esm/model/store/drillTargets/drillTargetsEntityAdapter.d.ts +1 -2
- package/esm/model/store/drillTargets/drillTargetsEntityAdapter.d.ts.map +1 -1
- package/esm/model/store/drillTargets/drillTargetsEntityAdapter.js +1 -1
- package/esm/model/store/drillTargets/drillTargetsEntityAdapter.js.map +1 -1
- package/esm/model/store/drillTargets/drillTargetsSelectors.js +1 -1
- package/esm/model/store/drillTargets/drillTargetsSelectors.js.map +1 -1
- package/esm/model/store/drillTargets/index.d.ts +10 -7
- package/esm/model/store/drillTargets/index.d.ts.map +1 -1
- package/esm/model/store/drillTargets/index.js +2 -3
- package/esm/model/store/drillTargets/index.js.map +1 -1
- package/esm/model/store/entitlements/entitlementsSelectors.js +1 -1
- package/esm/model/store/entitlements/entitlementsSelectors.js.map +1 -1
- package/esm/model/store/entitlements/index.d.ts +7 -6
- package/esm/model/store/entitlements/index.d.ts.map +1 -1
- package/esm/model/store/entitlements/index.js +2 -3
- package/esm/model/store/entitlements/index.js.map +1 -1
- package/esm/model/store/executed/executedSelectors.js +1 -1
- package/esm/model/store/executed/executedSelectors.js.map +1 -1
- package/esm/model/store/executed/index.d.ts +5 -7
- package/esm/model/store/executed/index.d.ts.map +1 -1
- package/esm/model/store/executed/index.js +2 -3
- package/esm/model/store/executed/index.js.map +1 -1
- package/esm/model/store/executionResults/executionResultsEntityAdapter.d.ts +1 -2
- package/esm/model/store/executionResults/executionResultsEntityAdapter.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsEntityAdapter.js +1 -1
- package/esm/model/store/executionResults/executionResultsEntityAdapter.js.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts +1 -7
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js.map +1 -1
- package/esm/model/store/executionResults/index.d.ts +11 -8
- package/esm/model/store/executionResults/index.d.ts.map +1 -1
- package/esm/model/store/executionResults/index.js +2 -3
- package/esm/model/store/executionResults/index.js.map +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.js +1 -1
- package/esm/model/store/filterContext/filterContextSelectors.js.map +1 -1
- package/esm/model/store/filterContext/index.d.ts +102 -35
- package/esm/model/store/filterContext/index.d.ts.map +1 -1
- package/esm/model/store/filterContext/index.js +2 -3
- package/esm/model/store/filterContext/index.js.map +1 -1
- package/esm/model/store/filterViews/filterViewsReducersSelectors.js +1 -1
- package/esm/model/store/filterViews/filterViewsReducersSelectors.js.map +1 -1
- package/esm/model/store/filterViews/index.d.ts +11 -7
- package/esm/model/store/filterViews/index.d.ts.map +1 -1
- package/esm/model/store/filterViews/index.js +2 -3
- package/esm/model/store/filterViews/index.js.map +1 -1
- package/esm/model/store/inaccessibleDashboards/inaccessibleDashboardsEntityAdapter.d.ts +1 -2
- package/esm/model/store/inaccessibleDashboards/inaccessibleDashboardsEntityAdapter.d.ts.map +1 -1
- package/esm/model/store/inaccessibleDashboards/inaccessibleDashboardsEntityAdapter.js +1 -1
- package/esm/model/store/inaccessibleDashboards/inaccessibleDashboardsEntityAdapter.js.map +1 -1
- package/esm/model/store/inaccessibleDashboards/inaccessibleDashboardsSelectors.js +1 -1
- package/esm/model/store/inaccessibleDashboards/inaccessibleDashboardsSelectors.js.map +1 -1
- package/esm/model/store/inaccessibleDashboards/index.d.ts +10 -7
- package/esm/model/store/inaccessibleDashboards/index.d.ts.map +1 -1
- package/esm/model/store/inaccessibleDashboards/index.js +2 -3
- package/esm/model/store/inaccessibleDashboards/index.js.map +1 -1
- package/esm/model/store/index.d.ts +1 -1
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +1 -1
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/insights/index.d.ts +24 -9
- package/esm/model/store/insights/index.d.ts.map +1 -1
- package/esm/model/store/insights/index.js +2 -3
- package/esm/model/store/insights/index.js.map +1 -1
- package/esm/model/store/insights/insightsEntityAdapter.d.ts +1 -2
- package/esm/model/store/insights/insightsEntityAdapter.d.ts.map +1 -1
- package/esm/model/store/insights/insightsEntityAdapter.js +1 -1
- package/esm/model/store/insights/insightsEntityAdapter.js.map +1 -1
- package/esm/model/store/insights/insightsSelectors.js +1 -1
- package/esm/model/store/insights/insightsSelectors.js.map +1 -1
- package/esm/model/store/layout/index.d.ts +133 -99
- package/esm/model/store/layout/index.d.ts.map +1 -1
- package/esm/model/store/layout/index.js +2 -3
- package/esm/model/store/layout/index.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +1 -1
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/model/store/listedDashboards/index.d.ts +17 -8
- package/esm/model/store/listedDashboards/index.d.ts.map +1 -1
- package/esm/model/store/listedDashboards/index.js +2 -3
- package/esm/model/store/listedDashboards/index.js.map +1 -1
- package/esm/model/store/listedDashboards/listedDashboardsEntityAdapter.d.ts +1 -2
- package/esm/model/store/listedDashboards/listedDashboardsEntityAdapter.d.ts.map +1 -1
- package/esm/model/store/listedDashboards/listedDashboardsEntityAdapter.js +1 -1
- package/esm/model/store/listedDashboards/listedDashboardsEntityAdapter.js.map +1 -1
- package/esm/model/store/listedDashboards/listedDashboardsSelectors.js +1 -1
- package/esm/model/store/listedDashboards/listedDashboardsSelectors.js.map +1 -1
- package/esm/model/store/loading/index.d.ts +9 -8
- package/esm/model/store/loading/index.d.ts.map +1 -1
- package/esm/model/store/loading/index.js +2 -3
- package/esm/model/store/loading/index.js.map +1 -1
- package/esm/model/store/loading/loadingSelectors.js +1 -1
- package/esm/model/store/loading/loadingSelectors.js.map +1 -1
- package/esm/model/store/meta/index.d.ts +36 -15
- package/esm/model/store/meta/index.d.ts.map +1 -1
- package/esm/model/store/meta/index.js +4 -3
- package/esm/model/store/meta/index.js.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +1 -1
- package/esm/model/store/meta/metaSelectors.js.map +1 -1
- package/esm/model/store/notificationChannels/index.d.ts +11 -7
- package/esm/model/store/notificationChannels/index.d.ts.map +1 -1
- package/esm/model/store/notificationChannels/index.js +2 -3
- package/esm/model/store/notificationChannels/index.js.map +1 -1
- package/esm/model/store/notificationChannels/notificationChannelsSelectors.js +1 -1
- package/esm/model/store/notificationChannels/notificationChannelsSelectors.js.map +1 -1
- package/esm/model/store/permissions/index.d.ts +7 -6
- package/esm/model/store/permissions/index.d.ts.map +1 -1
- package/esm/model/store/permissions/index.js +2 -3
- package/esm/model/store/permissions/index.js.map +1 -1
- package/esm/model/store/permissions/permissionsSelectors.js +1 -1
- package/esm/model/store/permissions/permissionsSelectors.js.map +1 -1
- package/esm/model/store/renderMode/index.d.ts +10 -9
- package/esm/model/store/renderMode/index.d.ts.map +1 -1
- package/esm/model/store/renderMode/index.js +2 -3
- package/esm/model/store/renderMode/index.js.map +1 -1
- package/esm/model/store/renderMode/renderModeSelectors.js +1 -1
- package/esm/model/store/renderMode/renderModeSelectors.js.map +1 -1
- package/esm/model/store/saving/index.d.ts +9 -8
- package/esm/model/store/saving/index.d.ts.map +1 -1
- package/esm/model/store/saving/index.js +2 -3
- package/esm/model/store/saving/index.js.map +1 -1
- package/esm/model/store/saving/savingSelectors.js +1 -1
- package/esm/model/store/saving/savingSelectors.js.map +1 -1
- package/esm/model/store/showWidgetAsTable/index.d.ts +1 -3
- package/esm/model/store/showWidgetAsTable/index.d.ts.map +1 -1
- package/esm/model/store/showWidgetAsTable/index.js +1 -1
- package/esm/model/store/showWidgetAsTable/index.js.map +1 -1
- package/esm/model/store/topBar/topBarSelectors.js +1 -1
- package/esm/model/store/topBar/topBarSelectors.js.map +1 -1
- package/esm/model/store/types.d.ts +6 -6
- package/esm/model/store/types.d.ts.map +1 -1
- package/esm/model/store/ui/index.d.ts +168 -77
- package/esm/model/store/ui/index.d.ts.map +1 -1
- package/esm/model/store/ui/index.js +2 -3
- package/esm/model/store/ui/index.js.map +1 -1
- package/esm/model/store/ui/uiSelectors.js +1 -1
- package/esm/model/store/ui/uiSelectors.js.map +1 -1
- package/esm/model/store/user/index.d.ts +7 -6
- package/esm/model/store/user/index.d.ts.map +1 -1
- package/esm/model/store/user/index.js +2 -3
- package/esm/model/store/user/index.js.map +1 -1
- package/esm/model/store/user/userSelectors.js +1 -1
- package/esm/model/store/user/userSelectors.js.map +1 -1
- package/esm/model/store/users/index.d.ts +15 -8
- package/esm/model/store/users/index.d.ts.map +1 -1
- package/esm/model/store/users/index.js +2 -3
- package/esm/model/store/users/index.js.map +1 -1
- package/esm/model/store/users/usersSelectors.js +1 -1
- package/esm/model/store/users/usersSelectors.js.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js.map +1 -1
- package/esm/model/store/widgetExports/widgetExportsSelectors.js +1 -1
- package/esm/model/store/widgetExports/widgetExportsSelectors.js.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +0 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
- package/esm/presentation/dashboard/components/DateFilterConfigWarnings.js +1 -1
- package/esm/presentation/dashboard/components/DateFilterConfigWarnings.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.js +1 -1
- package/esm/presentation/dragAndDrop/draggableAttributeFilter/DefaultAttributeFilterDraggingComponent.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js +11 -7
- package/esm/presentation/dragAndDrop/draggableWidget/AddDashboardLayoutWidgetButton.js.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +2 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +3 -2
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +7 -6
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js +5 -5
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +3 -12
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js +1 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts +2 -5
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js +17 -29
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts +2 -4
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +18 -36
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts +1 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js +9 -15
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map +1 -1
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.d.ts +0 -2
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.js +0 -22
- package/esm/presentation/flexibleLayout/rowEndHotspotHelper.js.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.json +1 -8
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.json +1 -8
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.json +1 -8
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +469 -534
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +3393 -685
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +3394 -686
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/es-419.json +1 -8
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.json +1 -8
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.json +1 -8
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.json +1 -8
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.json +1 -8
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.json +1 -8
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.json +1 -8
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.json +1 -8
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.json +1 -8
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.json +1 -8
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.json +1 -8
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.json +1 -8
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.json +1 -8
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.json +1 -8
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.json +1 -8
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.json +1 -8
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.json +1 -8
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +0 -7
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +2 -9
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js +1 -5
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.js +2 -13
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItemHeadline.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +5 -12
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/{AttachmentsOld → Attachments}/AttachmentFiltersList.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFiltersList.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/{AttachmentsOld → Attachments}/AttachmentItems.d.ts +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentItems.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +11 -6
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js +37 -31
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +16 -6
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js +27 -30
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +5 -10
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +19 -76
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.d.ts +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/types.js.map +1 -1
- package/esm/presentation/widget/common/useWidgetHighlighting.js +1 -1
- package/esm/presentation/widget/common/useWidgetHighlighting.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js +4 -13
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/DashboardInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/DrillDialogInsight.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/PoweredByGDLogo.js +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/PoweredByGDLogo.js.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js +4 -0
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.js +3 -3
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/Toolbar.js.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +270 -149
- package/package.json +23 -22
- package/styles/css/attributeFilterConfig.css +1 -1
- package/styles/css/dashboard.css +5 -100
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/dashboardNestedLayoutWidget.css +49 -88
- package/styles/css/dashboardNestedLayoutWidget.css.map +1 -1
- package/styles/css/dragAndDrop.css +20 -24
- package/styles/css/dragAndDrop.css.map +1 -1
- package/styles/css/drillConfigPanel.css +14 -14
- package/styles/css/icons.css +24 -32
- package/styles/css/icons.css.map +1 -1
- package/styles/css/main.css +132 -280
- package/styles/css/main.css.map +1 -1
- package/styles/css/notifications_channels_dialog.css +2 -88
- package/styles/css/notifications_channels_dialog.css.map +1 -1
- package/styles/css/poweredByGDLogo.css +2 -2
- package/styles/css/sidebar.css +4 -6
- package/styles/css/sidebar.css.map +1 -1
- package/styles/scss/attributeFilterConfig.scss +1 -1
- package/styles/scss/dashboard.scss +3 -15
- package/styles/scss/dashboardNestedLayoutWidget.scss +77 -142
- package/styles/scss/dragAndDrop.scss +48 -59
- package/styles/scss/drillConfigPanel.scss +14 -14
- package/styles/scss/icons.scss +79 -77
- package/styles/scss/notifications_channels_dialog.scss +1 -89
- package/styles/scss/poweredByGDLogo.scss +3 -3
- package/styles/scss/sidebar.scss +4 -6
- package/esm/assets/flexible-layouts-tooltip.gif +0 -0
- package/esm/model/commandHandlers/layout/rowContainerSanitization.d.ts +0 -15
- package/esm/model/commandHandlers/layout/rowContainerSanitization.d.ts.map +0 -1
- package/esm/model/commandHandlers/layout/rowContainerSanitization.js +0 -82
- package/esm/model/commandHandlers/layout/rowContainerSanitization.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsList.d.ts +0 -10
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsList.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsList.js +0 -71
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsList.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsSelect.d.ts +0 -17
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsSelect.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsSelect.js +0 -100
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentsSelect.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFilters.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFilters.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFiltersList.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentFiltersList.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentItems.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentItems.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.d.ts +0 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.js +0 -10
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/AttachmentsWrapper.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.d.ts +0 -17
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.js +0 -47
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/DashboardAttachments.js.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.d.ts +0 -20
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.d.ts.map +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.js +0 -33
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/AttachmentsOld/WidgetAttachments.js.map +0 -1
- /package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/{AttachmentsOld → Attachments}/AttachmentFilters.d.ts +0 -0
- /package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/{AttachmentsOld → Attachments}/AttachmentFilters.js +0 -0
- /package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/{AttachmentsOld → Attachments}/AttachmentFiltersList.d.ts +0 -0
- /package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/{AttachmentsOld → Attachments}/AttachmentItems.js +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
// (C) 2020-
|
1
|
+
// (C) 2020-2024 GoodData Corporation
|
2
2
|
import { insightId, insightUri, isWidget, widgetUri, widgetId, isInsightWidget, } from "@gooddata/sdk-model";
|
3
3
|
import stringify from "json-stable-stringify";
|
4
4
|
import flow from "lodash/flow.js";
|
@@ -7,7 +7,7 @@ import { validateDashboardLayoutWidgetSize, } from "./DefaultDashboardLayoutRend
|
|
7
7
|
* We need to aggressively memoize the widget sanitization results in order to prevent expensive re-renders
|
8
8
|
* down the line - we need to keep the widgets referentially equal whenever they are not changed.
|
9
9
|
*/
|
10
|
-
export const getMemoizedWidgetSanitizer = (cache) => (getInsightByRef, enableKDWidgetCustomHeight
|
10
|
+
export const getMemoizedWidgetSanitizer = (cache) => (getInsightByRef, enableKDWidgetCustomHeight) => {
|
11
11
|
return (item) => {
|
12
12
|
const widget = item.facade().widget();
|
13
13
|
const insightAvailable = isInsightWidget(widget) && !!getInsightByRef(widget.insight);
|
@@ -15,7 +15,7 @@ export const getMemoizedWidgetSanitizer = (cache) => (getInsightByRef, enableKDW
|
|
15
15
|
// of polluteWidgetRefsWithBothIdAndUri which touches the insight as well
|
16
16
|
const cacheKey = `${stringify(item.facade().raw(), { space: 0 })}__${insightAvailable}`;
|
17
17
|
if (!cache.has(cacheKey)) {
|
18
|
-
const resultBuilder = flow(polluteWidgetRefsWithBothIdAndUri(getInsightByRef), validateItemsSize(getInsightByRef, enableKDWidgetCustomHeight
|
18
|
+
const resultBuilder = flow(polluteWidgetRefsWithBothIdAndUri(getInsightByRef), validateItemsSize(getInsightByRef, enableKDWidgetCustomHeight))(item);
|
19
19
|
cache.set(cacheKey, resultBuilder.build());
|
20
20
|
}
|
21
21
|
return item.setItem(cache.get(cacheKey));
|
@@ -63,7 +63,7 @@ export function polluteWidgetRefsWithBothIdAndUri(getInsightByRef) {
|
|
63
63
|
*
|
64
64
|
* @internal
|
65
65
|
*/
|
66
|
-
export function validateItemsSize(getInsightByRef, enableKDWidgetCustomHeight
|
66
|
+
export function validateItemsSize(getInsightByRef, enableKDWidgetCustomHeight) {
|
67
67
|
return (item) => {
|
68
68
|
const widget = item.facade().widget();
|
69
69
|
if (isInsightWidget(widget)) {
|
@@ -77,7 +77,7 @@ export function validateItemsSize(getInsightByRef, enableKDWidgetCustomHeight, e
|
|
77
77
|
},
|
78
78
|
});
|
79
79
|
}
|
80
|
-
const { validWidth, validHeight } = validateDashboardLayoutWidgetSize(currentWidth, currentHeight, "insight", insight, { enableKDWidgetCustomHeight
|
80
|
+
const { validWidth, validHeight } = validateDashboardLayoutWidgetSize(currentWidth, currentHeight, "insight", insight, { enableKDWidgetCustomHeight });
|
81
81
|
if (currentWidth !== validWidth || currentHeight !== validHeight) {
|
82
82
|
const gridWidthProp = currentWidth !== validWidth ? { gridWidth: validWidth } : {};
|
83
83
|
const gridHeightProp = currentHeight !== validHeight ? { gridHeight: validHeight } : {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DefaultDashboardLayoutUtils.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DefaultDashboardLayoutUtils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAGH,SAAS,EACT,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,eAAe,GAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAGH,iCAAiC,GACpC,MAAM,2CAA2C,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GACnC,CAAU,KAAsD,EAAE,EAAE,CACpE,CACI,eAA6D,EAC7D,0BAAmC,
|
1
|
+
{"version":3,"file":"DefaultDashboardLayoutUt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MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;YAC5C,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,WAAW,CAAC;YAE3E,IAAI,CAAC,OAAO,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC,IAAI,CAAC;oBACb,EAAE,EAAE;wBACA,GAAG,WAAW;qBACjB;iBACJ,CAAC,CAAC;YACP,CAAC;YAED,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,iCAAiC,CACjE,YAAY,EACZ,aAAa,EACb,SAAS,EACT,OAAO,EACP,EAAE,0BAA0B,EAAE,CACjC,CAAC;YACF,IAAI,YAAY,KAAK,UAAU,IAAI,aAAa,KAAK,WAAW,EAAE,CAAC;gBAC/D,MAAM,aAAa,GAAG,YAAY,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnF,MAAM,cAAc,GAAG,aAAa,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxF,OAAO,IAAI,CAAC,IAAI,CAAC;oBACb,EAAE,EAAE;wBACA,GAAG,WAAW;wBACd,GAAG,aAAa;wBAChB,GAAG,cAAc;qBACpB;iBACJ,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;AACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DefaultFlexibleDashboardLayout.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"DefaultFlexibleDashboardLayout.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.tsx"],"names":[],"mappings":";AA2BA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAuEnD;;GAEG;AACH,eAAO,MAAM,8BAA8B,UAAW,qBAAqB,KAAG,WA+F7E,CAAC"}
|
@@ -4,7 +4,7 @@ import { objRefToString, isWidget, } from "@gooddata/sdk-model";
|
|
4
4
|
import { LRUCache } from "lru-cache";
|
5
5
|
import max from "lodash/max.js";
|
6
6
|
import cx from "classnames";
|
7
|
-
import { useDashboardSelector, selectIsExport, selectLayout, selectInsightsMap, selectEnableWidgetCustomHeight, selectRenderMode, selectFocusObject,
|
7
|
+
import { useDashboardSelector, selectIsExport, selectLayout, selectInsightsMap, selectEnableWidgetCustomHeight, selectRenderMode, selectFocusObject, } from "../../model/index.js";
|
8
8
|
import { serializeLayoutItemPath } from "../../_staging/layout/coordinates.js";
|
9
9
|
import { DashboardLayoutWidget } from "./DashboardLayoutWidget.js";
|
10
10
|
import { DashboardLayout, DashboardLayoutBuilder, } from "./DefaultDashboardLayoutRenderer/index.js";
|
@@ -69,7 +69,6 @@ export const DefaultFlexibleDashboardLayout = (props) => {
|
|
69
69
|
const { layout: providedLayout, onFiltersChange, onDrill, onError, dashboardItemClasses } = props;
|
70
70
|
const selectedLayout = useDashboardSelector(selectLayout);
|
71
71
|
const enableWidgetCustomHeight = useDashboardSelector(selectEnableWidgetCustomHeight);
|
72
|
-
const enableDashboardFlexibleLayout = useDashboardSelector(selectEnableFlexibleLayout);
|
73
72
|
const insights = useDashboardSelector(selectInsightsMap);
|
74
73
|
const isExport = useDashboardSelector(selectIsExport);
|
75
74
|
const renderMode = useDashboardSelector(selectRenderMode);
|
@@ -95,17 +94,9 @@ export const DefaultFlexibleDashboardLayout = (props) => {
|
|
95
94
|
return getDashboardLayoutForExport(layout);
|
96
95
|
}
|
97
96
|
return DashboardLayoutBuilder.for(layout, layoutItemPath)
|
98
|
-
.modifySections((section) => section.modifyItems(sanitizeWidgets(getInsightByRef, enableWidgetCustomHeight
|
97
|
+
.modifySections((section) => section.modifyItems(sanitizeWidgets(getInsightByRef, enableWidgetCustomHeight)))
|
99
98
|
.build();
|
100
|
-
}, [
|
101
|
-
isExport,
|
102
|
-
layout,
|
103
|
-
layoutItemPath,
|
104
|
-
sanitizeWidgets,
|
105
|
-
getInsightByRef,
|
106
|
-
enableWidgetCustomHeight,
|
107
|
-
enableDashboardFlexibleLayout,
|
108
|
-
]);
|
99
|
+
}, [isExport, layout, layoutItemPath, sanitizeWidgets, getInsightByRef, enableWidgetCustomHeight]);
|
109
100
|
const widgetRenderer = useCallback((renderProps) => {
|
110
101
|
return (React.createElement(DashboardLayoutWidget, { onError: onError, onDrill: onDrill, onFiltersChange: onFiltersChange, ...renderProps }));
|
111
102
|
}, [onError, onDrill, onFiltersChange]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DefaultFlexibleDashboardLayout.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAGH,cAAc,EACd,QAAQ,GAGX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EACH,oBAAoB,EACpB,cAAc,EACd,YAAY,EAEZ,iBAAiB,EACjB,8BAA8B,EAC9B,gBAAgB,EAChB,iBAAiB,
|
1
|
+
{"version":3,"file":"DefaultFlexibleDashboardLayout.js","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAGH,cAAc,EACd,Q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C,EACD,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,CAAC,CACtC,CAAC;IAEF,IAAI,aAAa,EAAE,CAAC;QAChB,IAAI,cAAc,EAAE,CAAC;YACjB,OAAO,oBAAC,0BAA0B,OAAG,CAAC;QAC1C,CAAC;QACD,OAAO,oBAAC,oBAAoB,OAAG,CAAC;IACpC,CAAC;IAED,OAAO,CACH;QACK,CAAC,cAAc,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAC9C,oBAAC,+BAA+B,IAAC,UAAU,EAAE,UAAU,GAAI,CAC9D,CAAC,CAAC,CAAC,IAAI;QACR,oBAAC,eAAe,IACZ,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE;gBAChC,aAAa,EAAE,QAAQ;gBACvB,oBAAoB,EAAE,UAAU,KAAK,QAAQ;aAChD,CAAC,EACF,MAAM,EAAE,iBAAiB,EACzB,oBAAoB,EAAE,cAAc,EACpC,gBAAgB,EAAE,cAAc,EAChC,iBAAiB,EAAE,yBAAyB,EAC5C,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,wBAAwB,EAC5C,eAAe,EAAE,6CAA6C,EAC9D,qBAAqB,EAAE,mDAAmD,EAC1E,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,oBAAoB,GACnC,CACH,CACN,CAAC;AACN,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WidthResizerHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;
|
1
|
+
{"version":3,"file":"WidthResizerHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wDAAwD,CAAC;AAWpG,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC1C,uBAAuB,EAAE,MAAM,MAAM,CAAC;IACtC,kBAAkB,EAAE,MAAM,MAAM,CAAC;IACjC,mBAAmB,EAAE,MAAM,OAAO,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAaF,wBAAgB,mBAAmB,CAAC,EAChC,IAAI,EACJ,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,QAAQ,GACX,EAAE,wBAAwB,4BAsG1B"}
|
@@ -11,7 +11,6 @@ import { useScreenSize } from "../../../dashboard/components/DashboardScreenSize
|
|
11
11
|
import { useHoveredWidget } from "../../../dragAndDrop/HoveredWidgetContext.js";
|
12
12
|
import { getLayoutConfiguration } from "../../../../_staging/dashboard/flexibleLayout/layoutConfiguration.js";
|
13
13
|
import { WidthResizer } from "./WidthResizer.js";
|
14
|
-
import { DASHBOARD_LAYOUT_GRID_SINGLE_COLUMN } from "../../../../_staging/dashboard/flexibleLayout/config.js";
|
15
14
|
const getItemOrParentDirection = (itemFacade, parentLayoutDirection) => {
|
16
15
|
const item = itemFacade.raw();
|
17
16
|
if (isDashboardLayout(item.widget)) {
|
@@ -37,7 +36,7 @@ export function WidthResizerHotspot({ item, getGridColumnWidth, getGridColumnHei
|
|
37
36
|
const onMouseEnter = () => setResizerVisibility(true);
|
38
37
|
const onMouseLeave = () => setResizerVisibility(false);
|
39
38
|
const layoutPath = item.index();
|
40
|
-
const currentWidth = item.sizeForScreen(screen)
|
39
|
+
const currentWidth = item.sizeForScreen(screen).gridWidth;
|
41
40
|
const minLimit = getMinWidth(widget, insightsMap, screen, settings, itemDirection);
|
42
41
|
const maxLimit = getDashboardLayoutItemMaxGridWidth(item, screen);
|
43
42
|
const [{ isDragging }, dragRef] = useDashboardDrag({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WidthResizerHotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAW,iBAAiB,EAAsC,MAAM,qBAAqB,CAAC;AACrG,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EACH,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,GACjB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,+CAA+C,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9G,OAAO,EAAE,aAAa,EAAE,MAAM,6DAA6D,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAE9G,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"WidthResizerHotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAW,iBAAiB,EAAsC,MAAM,qBAAqB,CAAC;AACrG,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,MAAM,YA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D,MAAM,WAAW,GAAG,CAAC,CAAC,UAAU,IAAI,eAAe,IAAI,gBAAgB,CAAC,IAAI,CAAC,iBAAiB,CAAC;IAC/F,MAAM,WAAW,GAAG,gBAAgB,IAAI,cAAc,CAAC;IACvD,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;IAEnF,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,6BACI,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE;YAC1C,+BAA+B,EAAE,QAAQ,KAAK,CAAC;SAClD,CAAC;QAED,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CACpB,6BAAK,SAAS,EAAC,yDAAyD,IACnE,oBAAC,YAAY,IAAC,MAAM,EAAE,MAAM,GAAI,CAC/B,CACT,CAAC,CAAC,CAAC,IAAI;QACR,6BACI,SAAS,EAAC,yDAAyD,EACnE,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,OAAO,IAEX,WAAW,CAAC,CAAC,CAAC,oBAAC,YAAY,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI,CACpD,CACJ,CACT,CAAC;AACN,CAAC"}
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js
CHANGED
@@ -30,7 +30,7 @@ export const DropZoneMessage = ({ canDrop = false }) => {
|
|
30
30
|
} })));
|
31
31
|
};
|
32
32
|
export const DefaultEmptyNestedLayoutDropZoneBody = () => {
|
33
|
-
return (React.createElement("div", { className: "drag-info-placeholder-box
|
33
|
+
return (React.createElement("div", { className: "drag-info-placeholder-box s-drag-info-placeholder-box" },
|
34
34
|
React.createElement(DropZoneMessage, null)));
|
35
35
|
};
|
36
36
|
export const EmptyNestedLayoutDropZone = () => {
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmptyNestedLayoutDropZone.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,qBAAqB,GAAkD;IACzE,qBAAqB,EAAE,SAAS;IAChC,eAAe,EAAE,eAAe;IAChC,iBAAiB,EAAE,KAAK;IACxB,gBAAgB,EAAE,UAAU;IAC5B,6BAA6B,EAAE,uBAAuB;IACtD,uBAAuB,EAAE,iBAAiB;CAC7C,CAAC;AAEF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,eAAe,EAAE;QACb,EAAE,EAAE,oCAAoC;KAC3C;IACD,qBAAqB,EAAE;QACnB,EAAE,EAAE,2CAA2C;KAClD;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAoC,CAAC,EAAE,OAAO,GAAG,KAAK,EAAE,EAAE,EAAE;IACpF,OAAO,CACH,oBAAC,UAAU,IAAC,OAAO,EAAC,GAAG,EAAC,SAAS,EAAC,qBAAqB;QACnD,oBAAC,gBAAgB,IACb,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,EAC7E,MAAM,EAAE;gBACJ,CAAC,EAAE,CAAC,MAAiB,EAAE,EAAE,CAAC,+BAAI,MAAM,CAAK;gBACzC,EAAE,EAAE,+BAAM;aACb,GACH,CACO,CAChB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAa,GAAG,EAAE;IAC/D,OAAO,CACH,6BAAK,SAAS,EAAC,
|
1
|
+
{"version":3,"file":"EmptyNestedLayoutDropZone.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,qBAAqB,GAAkD;IACzE,qBAAqB,EAAE,SAAS;IAChC,eAAe,EAAE,eAAe;IAChC,iBAAiB,EAAE,KAAK;IACxB,gBAAgB,EAAE,UAAU;IAC5B,6BAA6B,EAAE,uBAAuB;IACtD,uBAAuB,EAAE,iBAAiB;CAC7C,CAAC;AAEF,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC5B,eAAe,EAAE;QACb,EAAE,EAAE,oCAAoC;KAC3C;IACD,qBAAqB,EAAE;QACnB,EAAE,EAAE,2CAA2C;KAClD;CACJ,CAAC,CAAC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H,6BACI,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,WAAW,EAAE;YAChD,CAAC,QAAQ,cAAc,EAAE,CAAC,EAAE,CAAC,CAAC,cAAc;YAC5C,WAAW,EAAE,CAAC,cAAc;YAC5B,sBAAsB,EAAE,OAAO;SAClC,CAAC;QAEF,6BACI,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EACxF,GAAG,EAAE,OAAO;YAGZ,oBAAC,oCAAoC,OAAG;YACxC,6BAAK,SAAS,EAAC,uEAAuE;gBAClF,6BAAK,SAAS,EAAC,mBAAmB;oBAC9B,oBAAC,eAAe,IAAC,OAAO,EAAE,OAAO,GAAI,CACnC,CACJ,CACJ,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,14 +1,11 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { IDashboardLayoutContainerDirection } from "@gooddata/sdk-model";
|
3
2
|
import { ILayoutItemPath } from "../../../../types.js";
|
4
3
|
interface IHotspotProps {
|
5
4
|
layoutPath: ILayoutItemPath;
|
6
5
|
dropZoneType: "prev" | "next";
|
7
|
-
direction: IDashboardLayoutContainerDirection;
|
8
6
|
isEndingHotspot?: boolean;
|
9
|
-
|
10
|
-
|
11
|
-
isInFirstRow?: boolean;
|
7
|
+
classNames?: string;
|
8
|
+
hideBorder?: boolean;
|
12
9
|
}
|
13
10
|
export declare const Hotspot: React.FC<IHotspotProps>;
|
14
11
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Hotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkD,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"Hotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAiBvE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAUvD,UAAU,aAAa;IACnB,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyG3C,CAAC"}
|
@@ -1,22 +1,20 @@
|
|
1
1
|
// (C) 2022-2025 GoodData Corporation
|
2
2
|
import cx from "classnames";
|
3
3
|
import React, { useCallback, useEffect, useRef, useMemo } from "react";
|
4
|
-
import { bemFactory } from "@gooddata/sdk-ui-kit";
|
5
4
|
import { getDropZoneDebugStyle } from "../../../dragAndDrop/debug.js";
|
6
5
|
import { isDashboardLayoutDraggableItem, isInsightDraggableItem, isKpiDraggableItem, isRichTextDraggableItem, isVisualizationSwitcherDraggableItem, } from "../../../dragAndDrop/types.js";
|
7
6
|
import { useDashboardDrop } from "../../../dragAndDrop/index.js";
|
8
|
-
import { areLayoutPathsEqual, updateItem, getItemIndex, serializeLayoutItemPath, } from "../../../../_staging/layout/coordinates.js";
|
9
|
-
import { draggableWidgetDropHandler } from "../../../dragAndDrop/draggableWidget/draggableWidgetDropHandler.js";
|
10
7
|
import { useInsightListItemDropHandler } from "./useInsightListItemDropHandler.js";
|
11
8
|
import { useInsightPlaceholderDropHandler } from "./useInsightPlaceholderDropHandler.js";
|
12
9
|
import { useMoveWidgetDropHandler } from "./useMoveWidgetHandler.js";
|
13
10
|
import { useRichTextPlaceholderDropHandler } from "./useRichTextPlaceholderDropHandler.js";
|
14
11
|
import { useVisualizationSwitcherPlaceholderDropHandler } from "./useVisualizationSwitcherPlaceholderDropHandler.js";
|
15
12
|
import { useDashboardLayoutPlaceholderDropHandler } from "./useDashboardLayoutPlaceholderDropHandler.js";
|
13
|
+
import { areLayoutPathsEqual, updateItem, getItemIndex, serializeLayoutItemPath, } from "../../../../_staging/layout/coordinates.js";
|
14
|
+
import { draggableWidgetDropHandler } from "../../../dragAndDrop/draggableWidget/draggableWidgetDropHandler.js";
|
16
15
|
import { useWidgetDragHoverHandlers } from "./useWidgetDragHoverHandlers.js";
|
17
|
-
const { e: dropzoneBemElement, b: dropzoneBemBlock } = bemFactory("gd-grid-layout-dropzone");
|
18
16
|
export const Hotspot = (props) => {
|
19
|
-
const { layoutPath,
|
17
|
+
const { layoutPath, classNames, dropZoneType, isEndingHotspot, hideBorder = false } = props;
|
20
18
|
const isOverLastValue = useRef(false);
|
21
19
|
const currentItemIndex = getItemIndex(layoutPath);
|
22
20
|
// for "next" we need to add the item after the current index, for "prev" on the current one
|
@@ -69,19 +67,6 @@ export const Hotspot = (props) => {
|
|
69
67
|
isOverLastValue.current = isOver;
|
70
68
|
}
|
71
69
|
}, [isOver, desiredDestination, handleDragHoverStart]);
|
72
|
-
const [canBeDisplayed, setCanBeDisplayed] = React.useState(false);
|
73
|
-
const isDragging = !!item;
|
74
|
-
React.useEffect(() => {
|
75
|
-
// There is a bug in Chrome that calls dragstop immediately after dragstart unless we defer the visibility
|
76
|
-
// of the hotspot to setTimeout. Chrome doesn't like a new element suddenly appearing under the mouse cursor
|
77
|
-
// immediately when dragging starts and just aborts the whole thing.
|
78
|
-
const timeout = setTimeout(() => {
|
79
|
-
setCanBeDisplayed(isDragging);
|
80
|
-
}, 0);
|
81
|
-
return () => {
|
82
|
-
clearTimeout(timeout);
|
83
|
-
};
|
84
|
-
}, [isDragging]);
|
85
70
|
const debugStyle = getDropZoneDebugStyle({ isOver });
|
86
71
|
const canDropSafe = useCallback((item) => {
|
87
72
|
if (!item) {
|
@@ -96,18 +81,21 @@ export const Hotspot = (props) => {
|
|
96
81
|
}
|
97
82
|
return true;
|
98
83
|
}, [isEndingHotspot, layoutPath]);
|
99
|
-
return (React.createElement("div", { className: cx(
|
100
|
-
|
101
|
-
type: dropZoneType,
|
102
|
-
active: isOver,
|
84
|
+
return (React.createElement("div", { className: cx(classNames, "dropzone", dropZoneType, {
|
85
|
+
hidden: !canDrop || !canDropSafe(item),
|
103
86
|
full: isEndingHotspot,
|
104
|
-
|
105
|
-
isInFirstRow,
|
106
|
-
isOverNestedLayout,
|
107
|
-
}), `s-dropzone-${dropZoneType}`, {
|
87
|
+
active: isOver,
|
108
88
|
[`s-dropzone-${serializeLayoutItemPath(layoutPath)}`]: !!layoutPath,
|
109
|
-
}), style: debugStyle, ref: dropRef },
|
110
|
-
|
111
|
-
|
89
|
+
}), style: debugStyle, ref: dropRef }, hideBorder ? null : React.createElement(HotspotBorder, null)));
|
90
|
+
};
|
91
|
+
/**
|
92
|
+
* A functional component that render hotspot border as dropzone
|
93
|
+
* @returns A JSX element representing the hotspot border.
|
94
|
+
*/
|
95
|
+
const HotspotBorder = () => {
|
96
|
+
const status = "active";
|
97
|
+
return (React.createElement("div", { className: "gd-hotspot-border__container" },
|
98
|
+
React.createElement("div", { className: `gd-hotspot-border__drop-target ${status}` },
|
99
|
+
React.createElement("div", { className: "drop-target-inner" }))));
|
112
100
|
};
|
113
101
|
//# sourceMappingURL=Hotspot.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Hotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/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,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"Hotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.tsx"],"names":[],"mappings":"AAAA,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,GAAG,EAAE,OAAO,IAEX,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,aAAa,OAAG,CACpC,CACT,CAAC;AACN,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,aAAa,GAAa,GAAG,EAAE;IACjC,MAAM,MAAM,GAAG,QAAQ,CAAC;IACxB,OAAO,CACH,6BAAK,SAAS,EAAC,8BAA8B;QACzC,6BAAK,SAAS,EAAE,kCAAkC,MAAM,EAAE;YACtD,6BAAK,SAAS,EAAC,mBAAmB,GAAG,CACnC,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,15 +1,13 @@
|
|
1
1
|
import { IDashboardWidget } from "@gooddata/sdk-model";
|
2
2
|
import React from "react";
|
3
|
-
import { ExtendedDashboardWidget } from "../../../../model/index.js";
|
4
3
|
import { IDashboardLayoutItemFacade } from "../../../../_staging/dashboard/flexibleLayout/index.js";
|
5
|
-
export declare const useShouldShowRowEndHotspot: (item: IDashboardLayoutItemFacade<
|
4
|
+
export declare const useShouldShowRowEndHotspot: (item: IDashboardLayoutItemFacade<unknown>, rowIndex: number) => {
|
6
5
|
enableRowEndHotspot: boolean;
|
7
6
|
remainingRowGridWidth: number;
|
8
|
-
remainingColumnGridHeight: number;
|
9
7
|
};
|
10
8
|
export type RowEndHotspotProps<TWidget = IDashboardWidget> = {
|
11
9
|
item: IDashboardLayoutItemFacade<TWidget>;
|
12
10
|
rowIndex: number;
|
13
11
|
};
|
14
|
-
export declare const RowEndHotspot: ({ item, rowIndex }: RowEndHotspotProps<
|
12
|
+
export declare const RowEndHotspot: ({ item, rowIndex }: RowEndHotspotProps<unknown>) => React.JSX.Element | null;
|
15
13
|
//# sourceMappingURL=RowEndHotspot.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RowEndHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"RowEndHotspot.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EACH,0BAA0B,EAE7B,MAAM,wDAAwD,CAAC;AAUhE,eAAO,MAAM,0BAA0B,SAAU,2BAA2B,OAAO,CAAC,YAAY,MAAM;;;CAoBrG,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,OAAO,GAAG,gBAAgB,IAAI;IACzD,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC1C,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,uBAAwB,mBAAmB,OAAO,CAAC,6BAqD5E,CAAC"}
|
@@ -5,9 +5,8 @@ import { DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT, } from "../../../../_staging/dashb
|
|
5
5
|
import { updateItem } from "../../../../_staging/layout/coordinates.js";
|
6
6
|
import { useScreenSize } from "../../../dashboard/components/DashboardScreenSizeContext.js";
|
7
7
|
import { GridLayoutElement } from "../../DefaultDashboardLayoutRenderer/GridLayoutElement.js";
|
8
|
-
import { getRemainingWidthInRow
|
8
|
+
import { getRemainingWidthInRow } from "../../rowEndHotspotHelper.js";
|
9
9
|
import { getLayoutConfiguration } from "../../../../_staging/dashboard/flexibleLayout/layoutConfiguration.js";
|
10
|
-
import { getDashboardLayoutItemHeight } from "../../../../_staging/layout/sizing.js";
|
11
10
|
import { WidgetDropZoneColumn } from "./WidgetDropZoneColumn.js";
|
12
11
|
import { Hotspot } from "./Hotspot.js";
|
13
12
|
export const useShouldShowRowEndHotspot = (item, rowIndex) => {
|
@@ -21,50 +20,33 @@ export const useShouldShowRowEndHotspot = (item, rowIndex) => {
|
|
21
20
|
const hotZoneWidth = isColumnContainer
|
22
21
|
? item.section().layout().size()?.gridWidth ?? DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT
|
23
22
|
: remainingRowGridWidth;
|
24
|
-
const remainingColumnGridHeight = useRemainingHeightInColumn(item, isLastInColumn);
|
25
23
|
return {
|
26
|
-
|
27
|
-
// no space for it. If there is less space, a single line drop zone is rendered instead.
|
28
|
-
enableRowEndHotspot: (isLastInColumn && remainingColumnGridHeight > 1) || (showEndingHotspot && isDropZoneVisible),
|
24
|
+
enableRowEndHotspot: isLastInColumn || (showEndingHotspot && isDropZoneVisible),
|
29
25
|
remainingRowGridWidth: hotZoneWidth,
|
30
|
-
remainingColumnGridHeight,
|
31
26
|
};
|
32
27
|
};
|
33
28
|
export const RowEndHotspot = ({ item, rowIndex }) => {
|
34
|
-
const { enableRowEndHotspot, remainingRowGridWidth
|
29
|
+
const { enableRowEndHotspot, remainingRowGridWidth } = useShouldShowRowEndHotspot(item, rowIndex);
|
35
30
|
const { direction } = getLayoutConfiguration(item.section().layout().raw());
|
36
|
-
// hide text if the dropzone is too small to render the text
|
37
|
-
const hideDropzoneText = (direction === "row" && remainingRowGridWidth < 2) ||
|
38
|
-
(direction === "column" && remainingColumnGridHeight < 7);
|
39
|
-
const layoutItemSize = useMemo(() => {
|
40
|
-
const gridHeightProp = remainingColumnGridHeight > 0 ? { gridHeight: remainingColumnGridHeight } : {};
|
41
|
-
return {
|
42
|
-
xl: {
|
43
|
-
gridWidth: remainingRowGridWidth,
|
44
|
-
...gridHeightProp,
|
45
|
-
},
|
46
|
-
};
|
47
|
-
}, [remainingRowGridWidth, remainingColumnGridHeight]);
|
48
|
-
const layoutPathForEndHotspot = useMemo(() => {
|
49
|
-
const layoutPath = item.index();
|
50
|
-
return updateItem(layoutPath, layoutPath[layoutPath.length - 1].sectionIndex, layoutPath[layoutPath.length - 1].itemIndex + 1); // increment item index manually as end hotspot is rendered as prev type
|
51
|
-
}, [item]);
|
52
|
-
const style = useMemo(() => {
|
53
|
-
const computedHeight = getDashboardLayoutItemHeight(layoutItemSize.xl);
|
54
|
-
return computedHeight === undefined ? {} : { height: computedHeight };
|
55
|
-
}, [layoutItemSize]);
|
56
31
|
if (!enableRowEndHotspot) {
|
57
32
|
return null;
|
58
33
|
}
|
34
|
+
const layoutPath = item.index();
|
35
|
+
const layoutPathForEndHotspot = updateItem(layoutPath, layoutPath[layoutPath.length - 1].sectionIndex, layoutPath[layoutPath.length - 1].itemIndex + 1); // increment item index manually as end hotspot is rendered as prev type
|
59
36
|
return (React.createElement(React.Fragment, null,
|
60
|
-
React.createElement(GridLayoutElement, { type: "item", layoutItemSize:
|
61
|
-
|
37
|
+
React.createElement(GridLayoutElement, { type: "item", layoutItemSize: {
|
38
|
+
xl: { gridWidth: remainingRowGridWidth },
|
39
|
+
lg: { gridWidth: remainingRowGridWidth },
|
40
|
+
md: { gridWidth: remainingRowGridWidth },
|
41
|
+
sm: { gridWidth: remainingRowGridWidth },
|
42
|
+
xs: { gridWidth: remainingRowGridWidth },
|
43
|
+
}, className: cx("gd-fluidlayout-column", "gd-fluidlayout-column-dropzone", "s-fluid-layout-column", "gd-fluidlayout-column-row-end-hotspot", {
|
44
|
+
"gd-fluidlayout-column-dropzone__text--hidden": remainingRowGridWidth < 2,
|
62
45
|
"gd-first-container-row-dropzone": rowIndex === 0,
|
63
|
-
"gd-fluidlayout-column-row-end-hotspot--
|
64
|
-
"gd-fluidlayout-column-row-end-hotspot--
|
65
|
-
|
66
|
-
|
67
|
-
React.createElement(
|
68
|
-
React.createElement(Hotspot, { dropZoneType: "prev", direction: direction, layoutPath: layoutPathForEndHotspot, isEndingHotspot: true, hideDropTarget: true }))));
|
46
|
+
"gd-fluidlayout-column-row-end-hotspot--row": direction === "row",
|
47
|
+
"gd-fluidlayout-column-row-end-hotspot--column": direction === "column",
|
48
|
+
}) },
|
49
|
+
React.createElement(WidgetDropZoneColumn, { layoutPath: layoutPathForEndHotspot, gridWidthOverride: remainingRowGridWidth, isLastInSection: true }),
|
50
|
+
React.createElement(Hotspot, { dropZoneType: "prev", layoutPath: layoutPathForEndHotspot, isEndingHotspot: true, hideBorder: true }))));
|
69
51
|
};
|
70
52
|
//# sourceMappingURL=RowEndHotspot.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RowEndHotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,cAAc,
|
1
|
+
{"version":3,"file":"RowEndHotspot.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAEH,mCAAmC,GACtC,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,6DAA6D,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2DAA2D,CAAC;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sEAAsE,CAAC;AAE9G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,IAAyC,EAAE,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B,EACnC,eAAe,EAAE,IAAI,EACrB,UAAU,EAAE,IAAI,GAClB,CACc,CACrB,CACN,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts
CHANGED
@@ -4,7 +4,6 @@ export type WidgetDropZoneColumnProps = {
|
|
4
4
|
layoutPath: ILayoutItemPath;
|
5
5
|
isLastInSection?: boolean;
|
6
6
|
gridWidthOverride?: number;
|
7
|
-
gridHeightOverride?: number;
|
8
7
|
};
|
9
|
-
export declare const WidgetDropZoneColumn: ({ layoutPath, isLastInSection, gridWidthOverride,
|
8
|
+
export declare const WidgetDropZoneColumn: ({ layoutPath, isLastInSection, gridWidthOverride, }: WidgetDropZoneColumnProps) => React.JSX.Element | null;
|
10
9
|
//# sourceMappingURL=WidgetDropZoneColumn.d.ts.map
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WidgetDropZoneColumn.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WidgetDropZoneColumn.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAevC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAKvD,MAAM,MAAM,yBAAyB,GAAG;IACpC,UAAU,EAAE,eAAe,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,wDAI9B,yBAAyB,6BAmF3B,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
// (C) 2007-2025 GoodData Corporation
|
2
|
-
import React, { useMemo } from "react";
|
3
2
|
import cx from "classnames";
|
4
|
-
import
|
3
|
+
import React, { useMemo } from "react";
|
5
4
|
import { selectDraggingWidgetTargetLayoutPath, useDashboardDispatch, useDashboardSelector, } from "../../../../model/index.js";
|
6
5
|
import { WidgetDropZone } from "./WidgetDropZone.js";
|
7
6
|
import { useDashboardDrop } from "../../../dragAndDrop/useDashboardDrop.js";
|
@@ -14,8 +13,7 @@ import { useDashboardLayoutPlaceholderDropHandler } from "./useDashboardLayoutPl
|
|
14
13
|
import { areLayoutPathsEqual } from "../../../../_staging/layout/coordinates.js";
|
15
14
|
import { draggableWidgetDropHandler } from "../../../dragAndDrop/draggableWidget/draggableWidgetDropHandler.js";
|
16
15
|
import { GridLayoutElement } from "../../DefaultDashboardLayoutRenderer/GridLayoutElement.js";
|
17
|
-
|
18
|
-
export const WidgetDropZoneColumn = ({ layoutPath, isLastInSection = false, gridWidthOverride, gridHeightOverride, }) => {
|
16
|
+
export const WidgetDropZoneColumn = ({ layoutPath, isLastInSection = false, gridWidthOverride, }) => {
|
19
17
|
const dropzoneCoordinates = useDashboardSelector(selectDraggingWidgetTargetLayoutPath);
|
20
18
|
const handleInsightListItemDrop = useInsightListItemDropHandler(layoutPath);
|
21
19
|
const handleInsightPlaceholderDrop = useInsightPlaceholderDropHandler(layoutPath);
|
@@ -65,17 +63,13 @@ export const WidgetDropZoneColumn = ({ layoutPath, isLastInSection = false, grid
|
|
65
63
|
}
|
66
64
|
const { gridWidth = 12, gridHeight } = collectedProps.item.size;
|
67
65
|
const usedWidth = gridWidthOverride ?? gridWidth;
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
const layoutItemSize = {
|
76
|
-
xl: { gridWidth: usedWidth, gridHeight: usedHeight },
|
77
|
-
};
|
78
|
-
return (React.createElement(GridLayoutElement, { type: "item", layoutItemSize: layoutItemSize, className: classNames, style: style },
|
66
|
+
return (React.createElement(GridLayoutElement, { type: "item", layoutItemSize: {
|
67
|
+
xl: { gridWidth: usedWidth, gridHeight },
|
68
|
+
lg: { gridWidth: usedWidth, gridHeight },
|
69
|
+
md: { gridWidth: usedWidth, gridHeight },
|
70
|
+
sm: { gridWidth: usedWidth, gridHeight },
|
71
|
+
xs: { gridWidth: usedWidth, gridHeight },
|
72
|
+
}, className: cx("gd-fluidlayout-column", "gd-fluidlayout-column-dropzone", "s-fluid-layout-column") },
|
79
73
|
React.createElement(WidgetDropZone, { isLastInSection: isLastInSection, layoutPath: layoutPath, dropRef: dropRef })));
|
80
74
|
};
|
81
75
|
//# sourceMappingURL=WidgetDropZoneColumn.js.map
|
package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WidgetDropZoneColumn.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,
|
1
|
+
{"version":3,"file":"WidgetDropZoneColumn.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneColumn.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACH,oCAAoC,EACpC,oBAAoB,EACpB,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE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AAe,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,CAC9E,CACvB,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,6 +1,4 @@
|
|
1
1
|
import { ScreenSize } from "@gooddata/sdk-model";
|
2
2
|
import { IDashboardLayoutItemFacade } from "../../_staging/dashboard/flexibleLayout/index.js";
|
3
|
-
import { ExtendedDashboardWidget } from "../../model/index.js";
|
4
3
|
export declare function getRemainingWidthInRow(item: IDashboardLayoutItemFacade<unknown>, screen: ScreenSize, rowIndex: number): number;
|
5
|
-
export declare function useRemainingHeightInColumn(item: IDashboardLayoutItemFacade<ExtendedDashboardWidget | unknown>, isLastInColumn: boolean): number;
|
6
4
|
//# sourceMappingURL=rowEndHotspotHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rowEndHotspotHelper.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/rowEndHotspotHelper.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"rowEndHotspotHelper.d.ts","sourceRoot":"","sources":["../../../src/presentation/flexibleLayout/rowEndHotspotHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAE9F,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,EACzC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,MAAM,GACjB,MAAM,CAQR"}
|
@@ -1,31 +1,9 @@
|
|
1
1
|
// (C) 2022-2025 GoodData Corporation
|
2
|
-
import { useMemo } from "react";
|
3
2
|
import { DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT } from "../../_staging/dashboard/flexibleLayout/config.js";
|
4
|
-
import { getContainerHeight } from "../../_staging/layout/sizing.js";
|
5
|
-
import { useDashboardSelector, selectSettings } from "../../model/index.js";
|
6
|
-
import { useScreenSize } from "../dashboard/components/DashboardScreenSizeContext.js";
|
7
|
-
import { useDashboardItemPathAndSize } from "../dashboard/components/DashboardItemPathAndSizeContext.js";
|
8
3
|
export function getRemainingWidthInRow(item, screen, rowIndex) {
|
9
4
|
const parentWidth = item.section().layout().size()?.gridWidth ?? DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT;
|
10
5
|
const rows = item.section().items().asGridRows(screen);
|
11
6
|
const lastRowLength = rows[rowIndex].reduce((acc, item) => acc + item.sizeForScreenWithFallback(screen).gridWidth, 0);
|
12
7
|
return parentWidth - lastRowLength;
|
13
8
|
}
|
14
|
-
export function useRemainingHeightInColumn(item, isLastInColumn) {
|
15
|
-
const screen = useScreenSize();
|
16
|
-
const settings = useDashboardSelector(selectSettings);
|
17
|
-
const { layoutItem } = useDashboardItemPathAndSize();
|
18
|
-
// Do not count the remaining height of the column for each row in the column, just the last.
|
19
|
-
return useMemo(() => {
|
20
|
-
if (!isLastInColumn) {
|
21
|
-
return 0;
|
22
|
-
}
|
23
|
-
const container = layoutItem?.raw();
|
24
|
-
const containerContentHeight = getContainerHeight(container, screen, settings);
|
25
|
-
const parentHeight = item.section().layout().size()?.gridHeight ?? 0;
|
26
|
-
const remainingHeight = parentHeight - containerContentHeight;
|
27
|
-
// sanitize for possible negative values caused by wrong metadata
|
28
|
-
return remainingHeight > 0 ? remainingHeight : 0;
|
29
|
-
}, [item, isLastInColumn, layoutItem, screen, settings]);
|
30
|
-
}
|
31
9
|
//# sourceMappingURL=rowEndHotspotHelper.js.map
|