@gooddata/sdk-ui-dashboard 10.14.0-alpha.2 → 10.14.0-alpha.20
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 +12 -4
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js +3 -2
- package/esm/model/commandHandlers/dashboard/resetDashboardHandler.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +5 -1
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -2
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.d.ts.map +1 -1
- package/esm/model/store/executionResults/executionResultsSelectors.js +4 -1
- package/esm/model/store/executionResults/executionResultsSelectors.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/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +18 -6
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +5 -5
- 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 +13 -6
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -1
- package/esm/presentation/constants/classes.d.ts +2 -0
- package/esm/presentation/constants/classes.d.ts.map +1 -0
- package/esm/presentation/constants/classes.js +3 -0
- package/esm/presentation/constants/classes.js.map +1 -0
- package/esm/presentation/constants/index.d.ts +1 -0
- package/esm/presentation/constants/index.d.ts.map +1 -1
- package/esm/presentation/constants/index.js +1 -0
- package/esm/presentation/constants/index.js.map +1 -1
- package/esm/presentation/constants/layout.d.ts +1 -0
- package/esm/presentation/constants/layout.d.ts.map +1 -1
- package/esm/presentation/constants/layout.js +1 -1
- package/esm/presentation/constants/layout.js.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +7 -2
- 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 +7 -2
- package/esm/presentation/dashboard/components/DashboardMainContent.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts +11 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js +53 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlay.js.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js +17 -0
- package/esm/presentation/flexibleLayout/DashboardItemOverlay/DashboardItemOverlayController.js.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardLayout.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DashboardLayout.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardLayout.js +11 -0
- package/esm/presentation/flexibleLayout/DashboardLayout.js.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +199 -0
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts +9 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +54 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js +23 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts +21 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +17 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +39 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +15 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js +19 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts +6 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js +33 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js +40 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts +25 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +51 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts +24 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js +15 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeader.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts +9 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +12 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js +17 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js +11 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js +22 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js +24 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts +16 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js +38 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +66 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js +18 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts +39 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +63 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js +14 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js +14 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.d.ts +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.js +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts +19 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js +14 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +343 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js +2 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.d.ts +4 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.js +34 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useScreenSize.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts +3 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js +31 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/emptyFacade.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js +33 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/legacy.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +51 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +360 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts +22 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js +96 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutUtils.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js +101 -0
- package/esm/presentation/flexibleLayout/DefaultFlexibleDashboardLayout.js.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts +3 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.js +10 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardError.js.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts +3 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js +9 -0
- package/esm/presentation/flexibleLayout/EmptyDashboardLayout.js.map +1 -0
- package/esm/presentation/flexibleLayout/constants.d.ts +4 -0
- package/esm/presentation/flexibleLayout/constants.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/constants.js +14 -0
- package/esm/presentation/flexibleLayout/constants.js.map +1 -0
- package/esm/presentation/flexibleLayout/index.d.ts +4 -0
- package/esm/presentation/flexibleLayout/index.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/index.js +5 -0
- package/esm/presentation/flexibleLayout/index.js.map +1 -0
- package/esm/presentation/flexibleLayout/refs.d.ts +5 -0
- package/esm/presentation/flexibleLayout/refs.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/refs.js +7 -0
- package/esm/presentation/flexibleLayout/refs.js.map +1 -0
- package/esm/presentation/flexibleLayout/types.d.ts +26 -0
- package/esm/presentation/flexibleLayout/types.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/types.js +2 -0
- package/esm/presentation/flexibleLayout/types.js.map +1 -0
- package/esm/presentation/layout/DefaultDashboardLayout.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayout.js +16 -8
- package/esm/presentation/layout/DefaultDashboardLayout.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +10 -0
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +2 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts +14 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js +139 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelecxt.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +11 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +7 -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 +7 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +12 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts +12 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js +86 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +6 -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 +6 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +5 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +21 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +19 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +204 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +7 -1
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/types.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.js +2 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/DashboardInsightMenu/DashboardInsightMenuBubble.js.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +8 -3
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js +11 -2
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js.map +1 -1
- package/esm/presentation/widget/widget/types.d.ts +7 -1
- package/esm/presentation/widget/widget/types.d.ts.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +19 -8
- package/package.json +15 -15
- package/styles/css/alerting.css +59 -5
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/dashboard.css +117 -0
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/dragAndDrop.css +5 -0
- package/styles/css/dragAndDrop.css.map +1 -1
- package/styles/css/flexibleLayout.css +425 -0
- package/styles/css/flexibleLayout.css.map +1 -0
- package/styles/css/layout.css +111 -0
- package/styles/css/layout.css.map +1 -1
- package/styles/css/main.css +188 -6
- package/styles/css/main.css.map +1 -1
- package/styles/css/visualization.css +7 -1
- package/styles/css/visualization.css.map +1 -1
- package/styles/scss/alerting.scss +69 -5
- package/styles/scss/dashboard.scss +12 -0
- package/styles/scss/dragAndDrop.scss +8 -0
- package/styles/scss/flexibleLayout.scss +410 -0
- package/styles/scss/layout.scss +77 -0
- package/styles/scss/visualization.scss +10 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// (C) 2019-2024 GoodData Corporation
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
|
|
4
|
+
import { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
|
|
5
|
+
import { buildEmptyItemFacadeWithSetSize } from "./utils/emptyFacade.js";
|
|
6
|
+
import { determineSizeForScreen } from "./utils/sizing.js";
|
|
7
|
+
export function DashboardLayoutSectionHeaderRenderer(props) {
|
|
8
|
+
const { section, screen, parentLayoutItemSize } = props;
|
|
9
|
+
const sectionHeader = section.header();
|
|
10
|
+
const gridWidth = determineSizeForScreen(screen, parentLayoutItemSize);
|
|
11
|
+
const emptyItem = useMemo(() => {
|
|
12
|
+
return buildEmptyItemFacadeWithSetSize(gridWidth);
|
|
13
|
+
}, [gridWidth]);
|
|
14
|
+
return sectionHeader ? (React.createElement(DashboardLayoutItemViewRenderer, { DefaultItemRenderer: DashboardLayoutItemViewRenderer, item: emptyItem, screen: screen },
|
|
15
|
+
React.createElement(DashboardLayoutSectionHeader, { title: sectionHeader.title, description: sectionHeader.description }))) : null;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=DashboardLayoutSectionHeaderRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayoutSectionHeaderRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,UAAU,oCAAoC,CAChD,KAAoD;IAEpD,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAC;IACxD,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,sBAAsB,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC3B,OAAO,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACtD,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,OAAO,aAAa,CAAC,CAAC,CAAC,CACnB,oBAAC,+BAA+B,IAC5B,mBAAmB,EAAE,+BAA+B,EACpD,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM;QAEd,oBAAC,4BAA4B,IACzB,KAAK,EAAE,aAAa,CAAC,KAAK,EAC1B,WAAW,EAAE,aAAa,CAAC,WAAW,GACxC,CAC4B,CACrC,CAAC,CAAC,CAAC,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayoutSectionRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAMlE,eAAO,MAAM,8BAA8B,EAAE,+BAA+B,CAAC,OAAO,CAcnF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { GridLayoutElement } from "./GridLayoutElement.js";
|
|
4
|
+
const isHiddenStyle = { height: 0, width: 0, overflow: "hidden", flex: 0 };
|
|
5
|
+
const defaultStyle = {};
|
|
6
|
+
export const DashboardLayoutSectionRenderer = (props) => {
|
|
7
|
+
const { children, screen, parentLayoutItemSize, className, isHidden } = props;
|
|
8
|
+
const style = isHidden ? isHiddenStyle : defaultStyle;
|
|
9
|
+
return (React.createElement(GridLayoutElement, { type: "section", screen: screen, layoutItemSize: parentLayoutItemSize, className: className, style: style }, children));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=DashboardLayoutSectionRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayoutSectionRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,aAAa,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAC3E,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,CAAC,MAAM,8BAA8B,GAA6C,CAAC,KAAK,EAAE,EAAE;IAC9F,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC9E,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC;IACtD,OAAO,CACH,oBAAC,iBAAiB,IACd,IAAI,EAAC,SAAS,EACd,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,oBAAoB,EACpC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,IAEX,QAAQ,CACO,CACvB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IDashboardLayoutWidgetRenderProps } from "./interfaces.js";
|
|
3
|
+
export declare function DashboardLayoutWidgetRenderer(props: IDashboardLayoutWidgetRenderProps<any>): JSX.Element;
|
|
4
|
+
//# sourceMappingURL=DashboardLayoutWidgetRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayoutWidgetRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,iCAAiC,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,iCAAiC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,OAAO,CAwCxG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import cx from "classnames";
|
|
4
|
+
export function DashboardLayoutWidgetRenderer(props) {
|
|
5
|
+
const { item, screen, className, contentRef, isResizedByLayoutSizingStrategy, minHeight, height, allowOverflow, children, } = props;
|
|
6
|
+
const { heightAsRatio, gridHeight } = item.size()[screen];
|
|
7
|
+
const style = useMemo(() => {
|
|
8
|
+
const computedStyle = {
|
|
9
|
+
minHeight,
|
|
10
|
+
height,
|
|
11
|
+
};
|
|
12
|
+
if (allowOverflow) {
|
|
13
|
+
computedStyle.overflowX = "hidden";
|
|
14
|
+
computedStyle.overflowY = "auto";
|
|
15
|
+
}
|
|
16
|
+
return computedStyle;
|
|
17
|
+
}, [minHeight, height, allowOverflow, heightAsRatio, isResizedByLayoutSizingStrategy]);
|
|
18
|
+
return (React.createElement("div", { ref: contentRef, className: cx("gd-fluidlayout-column-container", className, {
|
|
19
|
+
"custom-height": !!gridHeight,
|
|
20
|
+
}), style: style }, children));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=DashboardLayoutWidgetRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayoutWidgetRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutWidgetRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,MAAM,UAAU,6BAA6B,CAAC,KAA6C;IACvF,MAAM,EACF,IAAI,EACJ,MAAM,EACN,SAAS,EACT,UAAU,EACV,+BAA+B,EAC/B,SAAS,EACT,MAAM,EACN,aAAa,EACb,QAAQ,GACX,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAE,CAAC;IAE3D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE;QACvB,MAAM,aAAa,GAAkB;YACjC,SAAS;YACT,MAAM;SACT,CAAC;QAEF,IAAI,aAAa,EAAE,CAAC;YAChB,aAAa,CAAC,SAAS,GAAG,QAAQ,CAAC;YACnC,aAAa,CAAC,SAAS,GAAG,MAAM,CAAC;QACrC,CAAC;QAED,OAAO,aAAa,CAAC;IACzB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,+BAA+B,CAAC,CAAC,CAAC;IAEvF,OAAO,CACH,6BACI,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,EAAE,CAAC,iCAAiC,EAAE,SAAS,EAAE;YACxD,eAAe,EAAE,CAAC,CAAC,UAAU;SAChC,CAAC,EACF,KAAK,EAAE,KAAK,IAEX,QAAQ,CACP,CACT,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableDashboardLayoutSectionRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAsBlE,eAAO,MAAM,sCAAsC,EAAE,+BAA+B,CAAC,OAAO,CAe3F,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// (C) 2007-2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { DashboardLayoutSectionBorder, useIsDraggingWidget, } from "../../dragAndDrop/index.js";
|
|
4
|
+
import { selectActiveSectionIndex, useDashboardSelector } from "../../../model/index.js";
|
|
5
|
+
import { GridLayoutElement } from "./GridLayoutElement.js";
|
|
6
|
+
const isHiddenStyle = { height: 0, width: 0, overflow: "hidden", flex: 0 };
|
|
7
|
+
const defaultStyle = {};
|
|
8
|
+
function useBorderStatus(sectionIndex) {
|
|
9
|
+
const activeSectionIndex = useDashboardSelector(selectActiveSectionIndex);
|
|
10
|
+
const isDraggingWidget = useIsDraggingWidget();
|
|
11
|
+
if (isDraggingWidget) {
|
|
12
|
+
return "muted";
|
|
13
|
+
}
|
|
14
|
+
const isActive = activeSectionIndex === sectionIndex;
|
|
15
|
+
return !isActive ? "invisible" : "muted";
|
|
16
|
+
}
|
|
17
|
+
export const EditableDashboardLayoutSectionRenderer = (props) => {
|
|
18
|
+
const { children, className, isHidden, section, screen, parentLayoutItemSize } = props;
|
|
19
|
+
const style = isHidden ? isHiddenStyle : defaultStyle;
|
|
20
|
+
const status = useBorderStatus(section.index());
|
|
21
|
+
return (React.createElement(GridLayoutElement, { type: "section", screen: screen, layoutItemSize: parentLayoutItemSize, className: className, style: style },
|
|
22
|
+
React.createElement(DashboardLayoutSectionBorder, { status: status }, children)));
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=EditableDashboardLayoutSectionRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableDashboardLayoutSectionRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableDashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACH,4BAA4B,EAE5B,mBAAmB,GACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,aA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
+
maxRows: number;
|
|
6
|
+
value: string;
|
|
7
|
+
maxLength: number;
|
|
8
|
+
placeholderMessage: string;
|
|
9
|
+
warningLimit: number;
|
|
10
|
+
onSubmit: (value: string) => void;
|
|
11
|
+
onEditingStart?: () => void;
|
|
12
|
+
onCancel?: () => void;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function EditableLabelWithBubble({ onEditingStart, maxLength, value, warningLimit, onCancel, alignTo, className, maxRows, placeholderMessage, children, onSubmit, }: IEditableLabelWithBubbleProps): JSX.Element;
|
|
16
|
+
//# sourceMappingURL=EditableLabelWithBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableLabelWithBubble.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAQrD,MAAM,WAAW,6BAA6B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,wBAAgB,uBAAuB,CAAC,EACpC,cAAc,EACd,SAAS,EACT,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,QAAQ,GACX,EAAE,6BAA6B,GAAG,GAAG,CAAC,OAAO,CAmE7C"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// (C) 2019-2024 GoodData Corporation
|
|
2
|
+
import React, { useCallback, useState } from "react";
|
|
3
|
+
import { Bubble, EditableLabel } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { useIntl } from "react-intl";
|
|
5
|
+
const BUBBLE_ALIGN_POINTS = [{ align: "bl tl" }];
|
|
6
|
+
const ARROW_OFFSETS = { "bl tl": [0, 7] };
|
|
7
|
+
const BUBBLE_STYLE = "bubble-primary";
|
|
8
|
+
export function EditableLabelWithBubble({ onEditingStart, maxLength, value, warningLimit, onCancel, alignTo, className, maxRows, placeholderMessage, children, onSubmit, }) {
|
|
9
|
+
const intl = useIntl();
|
|
10
|
+
const [currentValue, setCurrentValue] = useState(value);
|
|
11
|
+
const [editing, setEditing] = useState(false);
|
|
12
|
+
const charactersCountLeft = maxLength - currentValue.length;
|
|
13
|
+
const maximumCharactersCount = maxLength;
|
|
14
|
+
const bubbleMessage = intl.formatMessage({ id: "layout.header.characters.left" }, { currentCharactersCount: charactersCountLeft, maximumCharactersCount });
|
|
15
|
+
const currentValueLength = currentValue.length;
|
|
16
|
+
const isBubbleVisible = editing && maxLength - currentValueLength <= warningLimit;
|
|
17
|
+
const onStart = useCallback(() => {
|
|
18
|
+
setEditing(true);
|
|
19
|
+
onEditingStart?.();
|
|
20
|
+
}, [onEditingStart]);
|
|
21
|
+
const onCancelCallback = useCallback(() => {
|
|
22
|
+
setEditing(false);
|
|
23
|
+
setCurrentValue(value);
|
|
24
|
+
onCancel?.();
|
|
25
|
+
}, [onCancel, value]);
|
|
26
|
+
const onSubmitCallback = useCallback((newValue) => {
|
|
27
|
+
setEditing(false);
|
|
28
|
+
setCurrentValue(newValue);
|
|
29
|
+
onSubmit(newValue);
|
|
30
|
+
}, [onSubmit]);
|
|
31
|
+
const onChange = useCallback((newValue) => {
|
|
32
|
+
setCurrentValue(newValue);
|
|
33
|
+
}, []);
|
|
34
|
+
return (React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(EditableLabel, { className: className, maxRows: maxRows, value: value, maxLength: maxLength, placeholder: placeholderMessage, onEditingStart: onStart, onCancel: onCancelCallback, onChange: onChange, onSubmit: onSubmitCallback }, children),
|
|
36
|
+
isBubbleVisible ? (React.createElement(Bubble, { alignTo: alignTo, className: BUBBLE_STYLE, alignPoints: BUBBLE_ALIGN_POINTS, arrowOffsets: ARROW_OFFSETS }, bubbleMessage)) : null));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=EditableLabelWithBubble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableLabelWithBubble.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/EditableLabelWithBubble.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;AACjD,MAAM,aAAa,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAC1C,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAgBtC,MAAM,UAAU,uBAAuB,CAAC,EACpC,cAAc,EACd,SAAS,EACT,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,QAAQ,EACR,QAAQ,GACoB;IAC5B,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,M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,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,kBAAkB,EAC/B,cAAc,EAAE,OAAO,EACvB,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,gBAAgB,IAEzB,QAAQ,CACG;QACf,eAAe,CAAC,CAAC,CAAC,CACf,oBAAC,MAAM,IACH,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,mBAAmB,EAChC,YAAY,EAAE,aAAa,IAE1B,aAAa,CACT,CACZ,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ISectionHeaderEditableProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
index: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function SectionHeaderEditable(props: ISectionHeaderEditableProps): JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SectionHeaderEditable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionHeaderEditable.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.tsx"],"names":[],"mappings":";AA4BA,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,2BAA2B,GAAG,GAAG,CAAC,OAAO,CA2HrF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// (C) 2019-2024 GoodData Corporation
|
|
2
|
+
import React, { useCallback, useEffect, useState } from "react";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import cx from "classnames";
|
|
5
|
+
import { RichTextWithTooltip } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { EditableLabelWithBubble } from "./EditableLabelWithBubble.js";
|
|
7
|
+
import { getTitle, getDescription, MAX_TITLE_LENGTH, TITLE_LENGTH_WARNING_LIMIT, MAX_DESCRIPTION_LENGTH, DESCRIPTION_LENGTH_WARNING_LIMIT, } from "./sectionHeaderHelper.js";
|
|
8
|
+
import { changeLayoutSectionHeader, selectEnableRichTextDescriptions, uiActions, useDashboardDispatch, useDashboardSelector, } from "../../../../model/index.js";
|
|
9
|
+
const richTextTooltipAlignPoints = [
|
|
10
|
+
{ align: "bl tl", offset: { x: 6, y: 1 } },
|
|
11
|
+
{ align: "tl bl", offset: { x: 6, y: -1 } },
|
|
12
|
+
];
|
|
13
|
+
export function SectionHeaderEditable(props) {
|
|
14
|
+
const useRichText = useDashboardSelector(selectEnableRichTextDescriptions);
|
|
15
|
+
const description = useRichText ? props.description : getDescription(props.description);
|
|
16
|
+
const title = getTitle(props.title);
|
|
17
|
+
const { index } = props;
|
|
18
|
+
const intl = useIntl();
|
|
19
|
+
const placeholder = intl.formatMessage({
|
|
20
|
+
id: "layout.header.add.description.placeholder",
|
|
21
|
+
});
|
|
22
|
+
const dispatch = useDashboardDispatch();
|
|
23
|
+
const changeTitle = useCallback((title) => dispatch(changeLayoutSectionHeader(index, { title }, true)), [dispatch, index]);
|
|
24
|
+
const changeDescription = useCallback((description) => dispatch(changeLayoutSectionHeader(index, { description }, true)), [dispatch, index]);
|
|
25
|
+
const onEditingStart = useCallback(() => {
|
|
26
|
+
dispatch(uiActions.setActiveSectionIndex(index));
|
|
27
|
+
}, [dispatch, index]);
|
|
28
|
+
const onEditingEnd = useCallback(() => {
|
|
29
|
+
dispatch(uiActions.clearActiveSectionIndex());
|
|
30
|
+
}, [dispatch]);
|
|
31
|
+
const onTitleSubmit = useCallback((title) => {
|
|
32
|
+
changeTitle(title);
|
|
33
|
+
onEditingEnd();
|
|
34
|
+
}, [changeTitle, onEditingEnd]);
|
|
35
|
+
const onDescriptionSubmit = useCallback((description) => {
|
|
36
|
+
changeDescription(description);
|
|
37
|
+
onEditingEnd();
|
|
38
|
+
}, [changeDescription, onEditingEnd]);
|
|
39
|
+
const [isRichTextEditing, setIsRichTextEditing] = useState(false);
|
|
40
|
+
const [richTextValue, setRichTextValue] = useState("");
|
|
41
|
+
const onDescriptionClick = useCallback(() => {
|
|
42
|
+
if (!isRichTextEditing) {
|
|
43
|
+
onEditingStart();
|
|
44
|
+
setIsRichTextEditing(true);
|
|
45
|
+
}
|
|
46
|
+
}, [isRichTextEditing, onEditingStart]);
|
|
47
|
+
const onDescriptionBlur = useCallback(() => {
|
|
48
|
+
changeDescription(richTextValue);
|
|
49
|
+
onEditingEnd();
|
|
50
|
+
setIsRichTextEditing(false);
|
|
51
|
+
}, [changeDescription, onEditingEnd, richTextValue]);
|
|
52
|
+
const onRichTextChange = useCallback((value) => {
|
|
53
|
+
setRichTextValue(value);
|
|
54
|
+
}, []);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
setRichTextValue(description);
|
|
57
|
+
}, [description]);
|
|
58
|
+
return (React.createElement("div", { className: "gd-row-header-edit" },
|
|
59
|
+
React.createElement("div", { className: "gd-editable-label-container gd-row-header-title-wrapper" },
|
|
60
|
+
React.createElement(EditableLabelWithBubble, { className: `gd-title-for-${index} s-fluid-layout-row-title-input title gd-heading-2`, maxRows: 10, value: title || "", maxLength: MAX_TITLE_LENGTH, warningLimit: TITLE_LENGTH_WARNING_LIMIT, placeholderMessage: intl.formatMessage({ id: "layout.header.add.title.placeholder" }), alignTo: `.gd-title-for-${index}`, onSubmit: onTitleSubmit, onEditingStart: onEditingStart, onCancel: onEditingEnd })),
|
|
61
|
+
React.createElement("div", { className: "gd-editable-label-container gd-row-header-description-wrapper" }, useRichText ? (React.createElement("div", { className: cx("gd-editable-label-richtext s-fluid-layout-row-description-input", {
|
|
62
|
+
"is-editing": isRichTextEditing,
|
|
63
|
+
}), onClick: onDescriptionClick, onBlur: onDescriptionBlur },
|
|
64
|
+
React.createElement(RichTextWithTooltip, { value: richTextValue, renderMode: isRichTextEditing ? "edit" : "view", onChange: onRichTextChange, editRows: 10, editPlaceholder: placeholder, emptyElement: React.createElement("div", { className: "gd-editable-label-richtext-empty" }, placeholder), showTooltip: isRichTextEditing, tooltipAlignPoints: richTextTooltipAlignPoints }))) : (React.createElement(EditableLabelWithBubble, { className: `gd-description-for-${index} s-fluid-layout-row-description-input description`, alignTo: `.gd-description-for-${index}`, maxRows: 15, value: description || "", maxLength: MAX_DESCRIPTION_LENGTH, warningLimit: DESCRIPTION_LENGTH_WARNING_LIMIT, placeholderMessage: placeholder, onSubmit: onDescriptionSubmit, onEditingStart: onEditingStart, onCancel: onEditingEnd })))));
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=SectionHeaderEditable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionHeaderEditable.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAe,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EACtB,gCAAgC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,yBAAyB,EACzB,gCAAgC,EAChC,SAAS,EACT,oBAAoB,EACpB,oBAAoB,GACvB,MAAM,4BAA4B,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AAW,CAAO,EAEzE,WAAW,EAAE,iBAAiB,EAC9B,kBAAkB,EAAE,0BAA0B,GAChD,CACA,CACT,CAAC,CAAC,CAAC,CACA,oBAAC,uBAAuB,IACpB,SAAS,EAAE,sBAAsB,KAAK,mDAAmD,EACzF,OAAO,EAAE,uBAAuB,KAAK,EAAE,EACvC,OAAO,EAAE,EAAE,EACX,KAAK,EAAE,WAAW,IAAI,EAAE,EACxB,SAAS,EAAE,sBAAsB,EACjC,YAAY,EAAE,gCAAgC,EAC9C,kBAAkB,EAAE,WAAW,EAC/B,QAAQ,EAAE,mBAAmB,EAC7B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,YAAY,GACxB,CACL,CACC,CACJ,CACT,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const MAX_TITLE_LENGTH = 256;
|
|
2
|
+
export declare const MAX_DESCRIPTION_LENGTH = 1024;
|
|
3
|
+
export declare const TITLE_LENGTH_WARNING_LIMIT = 128;
|
|
4
|
+
export declare const DESCRIPTION_LENGTH_WARNING_LIMIT = 512;
|
|
5
|
+
export declare function getTitle(title: string): string;
|
|
6
|
+
export declare function getDescription(description: string): string;
|
|
7
|
+
//# sourceMappingURL=sectionHeaderHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sectionHeaderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM9C;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM1D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// (C) 2019-2024 GoodData Corporation
|
|
2
|
+
export const MAX_TITLE_LENGTH = 256;
|
|
3
|
+
export const MAX_DESCRIPTION_LENGTH = 1024;
|
|
4
|
+
export const TITLE_LENGTH_WARNING_LIMIT = 128;
|
|
5
|
+
export const DESCRIPTION_LENGTH_WARNING_LIMIT = 512;
|
|
6
|
+
export function getTitle(title) {
|
|
7
|
+
if (title && title.length > MAX_TITLE_LENGTH) {
|
|
8
|
+
return title.substring(0, MAX_TITLE_LENGTH) + "...";
|
|
9
|
+
}
|
|
10
|
+
return title;
|
|
11
|
+
}
|
|
12
|
+
export function getDescription(description) {
|
|
13
|
+
if (description && description.length > MAX_DESCRIPTION_LENGTH) {
|
|
14
|
+
return description.substring(0, MAX_DESCRIPTION_LENGTH) + "...";
|
|
15
|
+
}
|
|
16
|
+
return description;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=sectionHeaderHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sectionHeaderHelper.js","sourceRoot":"","sources":["../../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/sectionHeaderHelper.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AACpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAC9C,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD,MAAM,UAAU,QAAQ,CAAC,KAAa;IAClC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,gBAAgB,EAAE,CAAC;QAC3C,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC;IACxD,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,WAAmB;IAC9C,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,sBAAsB,EAAE,CAAC;QAC7D,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,sBAAsB,CAAC,GAAG,KAAK,CAAC;IACpE,CAAC;IAED,OAAO,WAAW,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { CSSProperties, MouseEventHandler } from "react";
|
|
2
|
+
import { ScreenSize, IDashboardLayoutSizeByScreenSize } from "@gooddata/sdk-model";
|
|
3
|
+
export type LayoutElementType = "root" | "nested" | "section" | "item";
|
|
4
|
+
export interface IGridLayoutElementProps {
|
|
5
|
+
/**
|
|
6
|
+
* Type of grid element.
|
|
7
|
+
*/
|
|
8
|
+
type: LayoutElementType;
|
|
9
|
+
/**
|
|
10
|
+
* Element children renderer inside of the element.
|
|
11
|
+
*/
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Optional class name set on the element.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional style set on the element, used for quick hiding of the element from layout.
|
|
19
|
+
*/
|
|
20
|
+
style?: CSSProperties | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The current scree size.
|
|
23
|
+
*/
|
|
24
|
+
screen: ScreenSize;
|
|
25
|
+
/**
|
|
26
|
+
* The sizes of the grid element per each supported screen size.
|
|
27
|
+
*/
|
|
28
|
+
layoutItemSize?: IDashboardLayoutSizeByScreenSize;
|
|
29
|
+
/**
|
|
30
|
+
* Enable to render debugging information about the element.
|
|
31
|
+
*/
|
|
32
|
+
debug?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Callback called when mouse leave the element.
|
|
35
|
+
*/
|
|
36
|
+
onMouseLeave?: MouseEventHandler;
|
|
37
|
+
}
|
|
38
|
+
export declare const GridLayoutElement: React.ForwardRefExoticComponent<IGridLayoutElementProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
//# sourceMappingURL=GridLayoutElement.d.ts.map
|
package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridLayoutElement.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAOnF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AA4CvE,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,gCAAgC,CAAC;IAClD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,gGA0B7B,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React, { forwardRef } from "react";
|
|
3
|
+
import cx from "classnames";
|
|
4
|
+
import { determineSizeForScreen } from "./utils/sizing.js";
|
|
5
|
+
// internal constant used to enable rendering of debug information that helps with layout issues debugging
|
|
6
|
+
const ENABLE_DEBUG_MODE = false;
|
|
7
|
+
const getBubbleDebugClassName = (type) => {
|
|
8
|
+
switch (type) {
|
|
9
|
+
case "root":
|
|
10
|
+
return "gd-grid-layout__debug--root";
|
|
11
|
+
case "nested":
|
|
12
|
+
return "gd-grid-layout__debug--nested";
|
|
13
|
+
case "section":
|
|
14
|
+
return "gd-grid-layout__debug--section";
|
|
15
|
+
case "item":
|
|
16
|
+
default:
|
|
17
|
+
return "gd-grid-layout__debug--item";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const getElementDebugClassName = (type) => {
|
|
21
|
+
switch (type) {
|
|
22
|
+
case "root":
|
|
23
|
+
return "gd-grid-layout__root--debug";
|
|
24
|
+
case "nested":
|
|
25
|
+
return "gd-grid-layout__nested--debug";
|
|
26
|
+
case "section":
|
|
27
|
+
return "gd-grid-layout__section--debug";
|
|
28
|
+
case "item":
|
|
29
|
+
default:
|
|
30
|
+
return "gd-grid-layout__item--debug";
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const getElementClassName = (type) => {
|
|
34
|
+
switch (type) {
|
|
35
|
+
case "root":
|
|
36
|
+
return "gd-grid-layout__root";
|
|
37
|
+
case "nested":
|
|
38
|
+
return "gd-grid-layout__nested";
|
|
39
|
+
case "section":
|
|
40
|
+
return "gd-grid-layout__section";
|
|
41
|
+
case "item":
|
|
42
|
+
default:
|
|
43
|
+
return "gd-grid-layout__item";
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export const GridLayoutElement = forwardRef(({ children, className, style, type, layoutItemSize, screen, onMouseLeave }, ref) => {
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
const enableDebugMode = window.DEBUG_LAYOUT ?? ENABLE_DEBUG_MODE;
|
|
50
|
+
const gridWidth = determineSizeForScreen(screen, layoutItemSize);
|
|
51
|
+
const classNames = cx(className, getElementClassName(type), `gd-grid-layout__item--span-${gridWidth}`, // CSS Grid columns size class name
|
|
52
|
+
{
|
|
53
|
+
[getElementDebugClassName(type)]: enableDebugMode,
|
|
54
|
+
});
|
|
55
|
+
return (React.createElement("div", { className: classNames, style: style, onMouseLeave: onMouseLeave, ref: ref },
|
|
56
|
+
enableDebugMode ? (React.createElement("div", { className: cx("gd-grid-layout__debug", getBubbleDebugClassName(type)) },
|
|
57
|
+
gridWidth,
|
|
58
|
+
" ",
|
|
59
|
+
screen)) : null,
|
|
60
|
+
children));
|
|
61
|
+
});
|
|
62
|
+
GridLayoutElement.displayName = "GridLayoutElement";
|
|
63
|
+
//# sourceMappingURL=GridLayoutElement.js.map
|
package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridLayoutElement.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,EAAoC,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,MAAM,YAAY,CAAC;AAG5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,0GAA0G;AAC1G,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAIhC,MAAM,uBAAuB,GAAG,CAAC,IAAuB,EAAE,EAAE;IACxD,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,MAAM;YACP,OAAO,6BAA6B,CAAC;QACzC,KAAK,QAAQ;YACT,OAAO,+BAA+B,CAAC;QAC3C,KAAK,SAAS;YACV,OAAO,gCAAgC,CAAC;QAC5C,KAAK,MAAM,CAAC;QACZ;YACI,OAAO,6BAA6B,CAAC;IAC7C,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAAC,IAAuB,EAAE,EAAE;IACzD,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,MAAM;YACP,OAAO,6B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CAAC;YACrE,SAAS;;YAAG,MAAM,CACjB,CACT,CAAC,CAAC,CAAC,IAAI;QACP,QAAQ,CACP,CACT,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IDashboardLayoutSectionHeaderRenderer } from "./interfaces.js";
|
|
2
|
+
/**
|
|
3
|
+
* render function for DashboardLayoutSectionHeader respecting render mode
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const renderModeAwareDashboardLayoutSectionHeaderRenderer: IDashboardLayoutSectionHeaderRenderer<unknown>;
|
|
8
|
+
//# sourceMappingURL=RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderModeAwareDashboardLayoutSectionHeaderRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,qCAAqC,EAAE,MAAM,iBAAiB,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,mDAAmD,gDAGZ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
|
+
import { renderModeAware } from "../../componentDefinition/index.js";
|
|
3
|
+
import { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
|
|
4
|
+
import { DashboardLayoutEditSectionHeaderRenderer } from "./DashboardLayoutEditSectionHeaderRenderer.js";
|
|
5
|
+
/**
|
|
6
|
+
* render function for DashboardLayoutSectionHeader respecting render mode
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export const renderModeAwareDashboardLayoutSectionHeaderRenderer = renderModeAware({
|
|
11
|
+
view: DashboardLayoutSectionHeaderRenderer,
|
|
12
|
+
edit: DashboardLayoutEditSectionHeaderRenderer,
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=RenderModeAwareDashboardLayoutSectionHeaderRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderModeAwareDashboardLayoutSectionHeaderRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionHeaderRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,wCAAwC,EAAE,MAAM,+CAA+C,CAAC;AAGzG;;;;GAIG;AACH,MAAM,CAAC,MAAM,mDAAmD,GAAG,eAAe,CAAC;IAC/E,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,wCAAwC;CACjD,CAAmD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IDashboardLayoutSectionRenderer } from "./interfaces.js";
|
|
2
|
+
/**
|
|
3
|
+
* render function for DashboardLayoutSection respecting render mode
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const renderModeAwareDashboardLayoutSectionRenderer: IDashboardLayoutSectionRenderer<unknown>;
|
|
8
|
+
//# sourceMappingURL=RenderModeAwareDashboardLayoutSectionRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderModeAwareDashboardLayoutSectionRenderer.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,6CAA6C,0CAGZ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// (C) 2022-2024 GoodData Corporation
|
|
2
|
+
import { renderModeAware } from "../../componentDefinition/index.js";
|
|
3
|
+
import { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
|
|
4
|
+
import { EditableDashboardLayoutSectionRenderer } from "./EditableDashboardLayoutSectionRenderer.js";
|
|
5
|
+
/**
|
|
6
|
+
* render function for DashboardLayoutSection respecting render mode
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export const renderModeAwareDashboardLayoutSectionRenderer = renderModeAware({
|
|
11
|
+
view: DashboardLayoutSectionRenderer,
|
|
12
|
+
edit: EditableDashboardLayoutSectionRenderer,
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=RenderModeAwareDashboardLayoutSectionRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderModeAwareDashboardLayoutSectionRenderer.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/RenderModeAwareDashboardLayoutSectionRenderer.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAGrG;;;;GAIG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAG,eAAe,CAAC;IACzE,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE,sCAAsC;CAC/C,CAA6C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/constants.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type { IDashboardLayoutItemKeyGetter, IDashboardLayoutItemKeyGetterProps, IDashboardLayoutItemRenderProps, IDashboardLayoutItemRenderer, IDashboardLayoutRenderer, IDashboardLayoutSectionHeaderRenderProps, IDashboardLayoutSectionHeaderRenderer, IDashboardLayoutSectionKeyGetter, IDashboardLayoutSectionKeyGetterProps, IDashboardLayoutSectionRenderProps, IDashboardLayoutSectionRenderer, IDashboardLayoutWidgetRenderProps, IDashboardLayoutWidgetRenderer, IDashboardLayoutGridRowRenderProps, IDashboardLayoutGridRowRenderer, IDashboardLayoutRenderProps, } from "./interfaces.js";
|
|
2
|
+
export { DashboardLayout } from "./DashboardLayout.js";
|
|
3
|
+
export type { IDashboardLayoutItemProps } from "./DashboardLayoutItem.js";
|
|
4
|
+
export { DashboardLayoutItem } from "./DashboardLayoutItem.js";
|
|
5
|
+
export { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
|
|
6
|
+
export { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
|
|
7
|
+
export type { IDashboardLayoutSectionProps } from "./DashboardLayoutSection.js";
|
|
8
|
+
export { DashboardLayoutSection } from "./DashboardLayoutSection.js";
|
|
9
|
+
export { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
|
|
10
|
+
export { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
|
|
11
|
+
export { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
|
|
12
|
+
export { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
|
|
13
|
+
export { getGeoPushpinWidgetStyle, isGeoPushpin } from "./utils/legacy.js";
|
|
14
|
+
export { getDashboardLayoutItemHeightForRatioAndScreen, getDashboardLayoutItemMaxGridWidth, getDashboardLayoutWidgetDefaultGridWidth, validateDashboardLayoutWidgetSize, } from "./utils/sizing.js";
|
|
15
|
+
export { DashboardLayoutBuilder } from "../../../_staging/dashboard/fluidLayout/builder/layout.js";
|
|
16
|
+
export { DashboardLayoutFacade } from "../../../_staging/dashboard/fluidLayout/facade/layout.js";
|
|
17
|
+
export type { DashboardLayoutItemModifications, DashboardLayoutItemsSelector, DashboardLayoutModifications, DashboardLayoutSectionModifications, DashboardLayoutSectionsSelector, IDashboardLayoutBuilder, IDashboardLayoutItemBuilder, IDashboardLayoutSectionBuilder, } from "../../../_staging/dashboard/fluidLayout/builder/interfaces.js";
|
|
18
|
+
export type { IDashboardLayoutItemFacade, IDashboardLayoutItemsFacade, IDashboardLayoutFacade, IDashboardLayoutSectionFacade, IDashboardLayoutSectionsFacade, } from "../../../_staging/dashboard/fluidLayout/facade/interfaces.js";
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.ts"],"names":[],"mappings":"AACA,YAAY,EACR,6BAA6B,EAC7B,kCAAkC,EAClC,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,EACxB,wCAAwC,EACxC,qCAAqC,EACrC,gCAAgC,EAChC,qCAAqC,EACrC,kCAAkC,EAClC,+BAA+B,EAC/B,iCAAiC,EACjC,8BAA8B,EAC9B,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,GAC9B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACH,6CAA6C,EAC7C,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,GACpC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,YAAY,EACR,gCAAgC,EAChC,4BAA4B,EAC5B,4BAA4B,EAC5B,mCAAmC,EACnC,+BAA+B,EAC/B,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,GACjC,MAAM,+DAA+D,CAAC;AACvE,YAAY,EACR,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,GACjC,MAAM,8DAA8D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { DashboardLayout } from "./DashboardLayout.js";
|
|
2
|
+
export { DashboardLayoutItem } from "./DashboardLayoutItem.js";
|
|
3
|
+
export { DashboardLayoutItemRenderer } from "./DashboardLayoutItemRenderer.js";
|
|
4
|
+
export { DashboardLayoutItemViewRenderer } from "./DashboardLayoutItemViewRenderer.js";
|
|
5
|
+
export { DashboardLayoutSection } from "./DashboardLayoutSection.js";
|
|
6
|
+
export { DashboardLayoutSectionHeader } from "./DashboardLayoutSectionHeader.js";
|
|
7
|
+
export { DashboardLayoutSectionHeaderRenderer } from "./DashboardLayoutSectionHeaderRenderer.js";
|
|
8
|
+
export { DashboardLayoutSectionRenderer } from "./DashboardLayoutSectionRenderer.js";
|
|
9
|
+
export { DashboardLayoutWidgetRenderer } from "./DashboardLayoutWidgetRenderer.js";
|
|
10
|
+
export { getGeoPushpinWidgetStyle, isGeoPushpin } from "./utils/legacy.js";
|
|
11
|
+
export { getDashboardLayoutItemHeightForRatioAndScreen, getDashboardLayoutItemMaxGridWidth, getDashboardLayoutWidgetDefaultGridWidth, validateDashboardLayoutWidgetSize, } from "./utils/sizing.js";
|
|
12
|
+
export { DashboardLayoutBuilder } from "../../../_staging/dashboard/fluidLayout/builder/layout.js";
|
|
13
|
+
export { DashboardLayoutFacade } from "../../../_staging/dashboard/fluidLayout/facade/layout.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACH,6CAA6C,EAC7C,kCAAkC,EAClC,wCAAwC,EACxC,iCAAiC,GACpC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,2DAA2D,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC"}
|