@gooddata/sdk-ui-dashboard 10.10.0-alpha.8 → 10.10.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +3 -3
- 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/drills/drillingUtils.d.ts +12 -1
- package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
- package/esm/_staging/drills/drillingUtils.js +20 -1
- package/esm/_staging/drills/drillingUtils.js.map +1 -1
- package/esm/_staging/layout/sizing.d.ts.map +1 -1
- package/esm/_staging/layout/sizing.js +4 -1
- package/esm/_staging/layout/sizing.js.map +1 -1
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts +7 -0
- package/esm/_staging/sharedHooks/useFiltersNamings.d.ts.map +1 -0
- package/esm/_staging/sharedHooks/useFiltersNamings.js +70 -0
- package/esm/_staging/sharedHooks/useFiltersNamings.js.map +1 -0
- package/esm/model/commandHandlers/common/validateDrills.d.ts +2 -2
- package/esm/model/commandHandlers/common/validateDrills.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrills.js.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationSmtps.d.ts +4 -0
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationSmtps.d.ts.map +1 -0
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationSmtps.js +13 -0
- package/esm/model/commandHandlers/dashboard/common/loadOrganizationSmtps.js.map +1 -0
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +8 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillDownHandler.js +5 -2
- package/esm/model/commandHandlers/drill/drillDownHandler.js.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +5 -4
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js +0 -24
- package/esm/model/commandHandlers/filterContext/attributeFilter/changeAttributeDisplayFormHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/validation/itemValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/itemValidation.js +9 -3
- package/esm/model/commandHandlers/layout/validation/itemValidation.js.map +1 -1
- package/esm/model/commandHandlers/widgets/changeInsightWidgetFilterSettingsHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/changeInsightWidgetFilterSettingsHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/changeKpiWidgetFilterSettingsHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/changeKpiWidgetFilterSettingsHandler.js.map +1 -1
- package/esm/model/commandHandlers/widgets/common/filterOperations.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/common/filterOperations.js +15 -6
- package/esm/model/commandHandlers/widgets/common/filterOperations.js.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js +8 -2
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js.map +1 -1
- package/esm/model/index.d.ts +1 -1
- package/esm/model/index.d.ts.map +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/queryServices/queryWidgetBrokenAlerts.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetBrokenAlerts.js +4 -2
- package/esm/model/queryServices/queryWidgetBrokenAlerts.js.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +12 -7
- package/esm/model/queryServices/queryWidgetFilters.js.map +1 -1
- package/esm/model/react/useDashboardAlerts.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerts.js +5 -4
- package/esm/model/react/useDashboardAlerts.js.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.d.ts +2 -1
- package/esm/model/react/useDashboardScheduledEmails.d.ts.map +1 -1
- package/esm/model/react/useDashboardScheduledEmails.js +8 -7
- package/esm/model/react/useDashboardScheduledEmails.js.map +1 -1
- package/esm/model/store/automations/automationsSelectors.d.ts +2 -2
- package/esm/model/store/automations/automationsSelectors.d.ts.map +1 -1
- package/esm/model/store/automations/automationsSelectors.js +14 -4
- package/esm/model/store/automations/automationsSelectors.js.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.d.ts +4 -0
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +9 -0
- package/esm/model/store/catalog/catalogSelectors.js.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +6 -0
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -0
- package/esm/model/store/config/configSelectors.js.map +1 -1
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +2 -0
- package/esm/model/store/dashboardStore.js.map +1 -1
- package/esm/model/store/index.d.ts +5 -3
- package/esm/model/store/index.d.ts.map +1 -1
- package/esm/model/store/index.js +4 -3
- package/esm/model/store/index.js.map +1 -1
- package/esm/model/store/layout/layoutUtils.d.ts +1 -1
- package/esm/model/store/layout/layoutUtils.d.ts.map +1 -1
- package/esm/model/store/layout/layoutUtils.js +5 -2
- package/esm/model/store/layout/layoutUtils.js.map +1 -1
- package/esm/model/store/smtps/index.d.ts +8 -0
- package/esm/model/store/smtps/index.d.ts.map +1 -0
- package/esm/model/store/smtps/index.js +12 -0
- package/esm/model/store/smtps/index.js.map +1 -0
- package/esm/model/store/smtps/smtpsReducers.d.ts +12 -0
- package/esm/model/store/smtps/smtpsReducers.d.ts.map +1 -0
- package/esm/model/store/smtps/smtpsReducers.js +9 -0
- package/esm/model/store/smtps/smtpsReducers.js.map +1 -0
- package/esm/model/store/smtps/smtpsSelectors.d.ts +22 -0
- package/esm/model/store/smtps/smtpsSelectors.d.ts.map +1 -0
- package/esm/model/store/smtps/smtpsSelectors.js +28 -0
- package/esm/model/store/smtps/smtpsSelectors.js.map +1 -0
- package/esm/model/store/smtps/smtpsState.d.ts +12 -0
- package/esm/model/store/smtps/smtpsState.d.ts.map +1 -0
- package/esm/model/store/smtps/smtpsState.js +3 -0
- package/esm/model/store/smtps/smtpsState.js.map +1 -0
- package/esm/model/store/types.d.ts +3 -0
- package/esm/model/store/types.d.ts.map +1 -1
- package/esm/model/store/ui/index.d.ts +5 -0
- package/esm/model/store/ui/index.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.d.ts +5 -0
- package/esm/model/store/ui/uiReducers.d.ts.map +1 -1
- package/esm/model/store/ui/uiReducers.js +10 -0
- package/esm/model/store/ui/uiReducers.js.map +1 -1
- package/esm/model/store/ui/uiSelectors.d.ts +8 -0
- package/esm/model/store/ui/uiSelectors.d.ts.map +1 -1
- package/esm/model/store/ui/uiSelectors.js +8 -0
- package/esm/model/store/ui/uiSelectors.js.map +1 -1
- package/esm/model/store/ui/uiState.d.ts +4 -0
- package/esm/model/store/ui/uiState.d.ts.map +1 -1
- package/esm/model/store/ui/uiState.js +4 -0
- package/esm/model/store/ui/uiState.js.map +1 -1
- package/esm/model/types/commonTypes.d.ts +7 -1
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/model/types/commonTypes.js.map +1 -1
- package/esm/model/utils/alertsUtils.d.ts +2 -2
- package/esm/model/utils/alertsUtils.d.ts.map +1 -1
- package/esm/model/utils/alertsUtils.js +6 -4
- package/esm/model/utils/alertsUtils.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +2 -2
- package/esm/presentation/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js +15 -11
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/Alert.js.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.d.ts.map +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js +1 -1
- package/esm/presentation/alerting/DefaultAlertingManagementDialog/components/AlertDropdown.js.map +1 -1
- package/esm/presentation/componentDefinition/types.d.ts +28 -5
- package/esm/presentation/componentDefinition/types.d.ts.map +1 -1
- package/esm/presentation/constants/colors.d.ts +1 -0
- package/esm/presentation/constants/colors.d.ts.map +1 -1
- package/esm/presentation/constants/colors.js +2 -1
- package/esm/presentation/constants/colors.js.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.js +6 -0
- package/esm/presentation/dashboard/DashboardHeader/DashboardHeader.js.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js +3 -3
- package/esm/presentation/dashboard/DashboardHeader/ScheduledEmailDialogProvider.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts +2 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +5 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/DashboardSidebar.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/SidebarConfigurationPanel.js.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/types.d.ts +8 -1
- package/esm/presentation/dashboard/DashboardSidebar/types.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +2 -0
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardMainContent.js +2 -0
- package/esm/presentation/dashboard/components/DashboardMainContent.js.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/DashboardRenderer.js +3 -3
- package/esm/presentation/dashboard/components/DashboardRenderer.js.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts +4 -2
- package/esm/presentation/dashboard/hooks/useDashboard.d.ts.map +1 -1
- package/esm/presentation/dashboard/hooks/useDashboard.js +11 -2
- package/esm/presentation/dashboard/hooks/useDashboard.js.map +1 -1
- package/esm/presentation/dashboard/types.d.ts +13 -1
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts +4 -2
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.d.ts.map +1 -1
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js +2 -0
- package/esm/presentation/dashboardContexts/DashboardComponentsContext.js.map +1 -1
- package/esm/presentation/dashboardContexts/types.d.ts +10 -2
- package/esm/presentation/dashboardContexts/types.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js +29 -21
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js.map +1 -1
- package/esm/presentation/deleteDialog/types.d.ts +5 -2
- package/esm/presentation/deleteDialog/types.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/types.js +1 -1
- package/esm/presentation/deleteDialog/types.js.map +1 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js +3 -1
- package/esm/presentation/dragAndDrop/DragLayerPreview/ContentDragPreview.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.d.ts +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js +20 -0
- package/esm/presentation/dragAndDrop/draggableWidget/AddVisualizationSwitcherWidgetButton.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts +16 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.js +18 -0
- package/esm/presentation/dragAndDrop/draggableWidget/DraggableVisualizationSwitcherCreatePanelItem.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js +16 -2
- package/esm/presentation/dragAndDrop/draggableWidget/EmptyDashboardDropZone.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js +15 -3
- package/esm/presentation/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js +19 -2
- package/esm/presentation/dragAndDrop/draggableWidget/SectionHotspot.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/VisualizationSwitcherDraggingComponent.d.ts +4 -0
- package/esm/presentation/dragAndDrop/draggableWidget/VisualizationSwitcherDraggingComponent.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/VisualizationSwitcherDraggingComponent.js +10 -0
- package/esm/presentation/dragAndDrop/draggableWidget/VisualizationSwitcherDraggingComponent.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js +17 -3
- package/esm/presentation/dragAndDrop/draggableWidget/WidgetDropZoneColumn.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/index.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/index.js +3 -0
- package/esm/presentation/dragAndDrop/draggableWidget/index.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useAddInitialSectionHandler.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useAddInitialSectionHandler.js +4 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useAddInitialSectionHandler.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useIsDraggingWidget.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useMoveWidgetHandler.d.ts +2 -2
- package/esm/presentation/dragAndDrop/draggableWidget/useMoveWidgetHandler.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useMoveWidgetHandler.js.map +1 -1
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.d.ts +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.js +46 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useNewSectionVisualizationSwitcherPlaceholderDropHandler.js.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.d.ts +2 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.d.ts.map +1 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.js +45 -0
- package/esm/presentation/dragAndDrop/draggableWidget/useVisualizationSwitcherPlaceholderDropHandler.js.map +1 -0
- package/esm/presentation/dragAndDrop/types.d.ts +25 -3
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/types.js +12 -0
- package/esm/presentation/dragAndDrop/types.js.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js +2 -0
- package/esm/presentation/dragAndDrop/useDashboardDragScroll.js.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts +12 -2
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +39 -9
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js.map +1 -1
- package/esm/presentation/drill/index.d.ts +2 -2
- package/esm/presentation/drill/index.d.ts.map +1 -1
- package/esm/presentation/drill/index.js +2 -2
- package/esm/presentation/drill/index.js.map +1 -1
- package/esm/presentation/drill/types.d.ts +3 -0
- package/esm/presentation/drill/types.d.ts.map +1 -1
- package/esm/presentation/drill/types.js.map +1 -1
- package/esm/presentation/drill/utils/drillDownUtils.d.ts +7 -2
- package/esm/presentation/drill/utils/drillDownUtils.d.ts.map +1 -1
- package/esm/presentation/drill/utils/drillDownUtils.js +21 -5
- package/esm/presentation/drill/utils/drillDownUtils.js.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.js +12 -1
- package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/localization/bundles/en-US.json +135 -32
- package/esm/presentation/localization/bundles/zh-HK.json +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts +0 -7
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +44 -52
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/AttachmentFilters.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js +5 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/DestinationSelect/DestinationSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.d.ts +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.js +0 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/constants.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js +13 -71
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useAttachmentDashboardFilters.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +3 -9
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +12 -25
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleValidation.d.ts +5 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleValidation.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleValidation.js +14 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduleValidation.js.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts +2 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js +10 -5
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +2 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.js.map +1 -1
- package/esm/presentation/scheduledEmail/types.d.ts +9 -1
- package/esm/presentation/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +3 -3
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js.map +1 -1
- package/esm/presentation/widget/common/configuration/AttributeFilterConfigurationItem.d.ts +1 -0
- package/esm/presentation/widget/common/configuration/AttributeFilterConfigurationItem.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/AttributeFilterConfigurationItem.js +3 -3
- package/esm/presentation/widget/common/configuration/AttributeFilterConfigurationItem.js.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts +2 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js +3 -3
- package/esm/presentation/widget/common/configuration/ConfigurationBubble.js.map +1 -1
- package/esm/presentation/widget/common/configuration/FilterConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/FilterConfiguration.js +5 -2
- package/esm/presentation/widget/common/configuration/FilterConfiguration.js.map +1 -1
- package/esm/presentation/widget/index.d.ts +1 -0
- package/esm/presentation/widget/index.d.ts.map +1 -1
- package/esm/presentation/widget/index.js +1 -0
- package/esm/presentation/widget/index.js.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js +18 -5
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/DashboardInsightWithDrillDialog.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts +8 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js +33 -11
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertComparisonOperatorSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts +4 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertDestinationSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts +7 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js +5 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertMeasureSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts +3 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertTriggerModeSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts +1 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js +2 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsList.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js +15 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertsListItem.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +5 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +7 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +51 -13
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts +2 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlertConfiguration.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts +30 -6
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js +73 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/constants.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.d.ts +7 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js +25 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAlertValidation.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +4 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +10 -46
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js +19 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightAlerting.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useOperators.d.ts +9 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useOperators.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useOperators.js +22 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useOperators.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts +30 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js +30 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/messages.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts +20 -7
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/utils.js +305 -19
- 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 +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlerts.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js +3 -12
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/drillConfigMapper.js.map +1 -1
- package/esm/presentation/widget/insight/types.d.ts +22 -1
- package/esm/presentation/widget/insight/types.d.ts.map +1 -1
- package/esm/presentation/widget/insight/types.js +8 -1
- package/esm/presentation/widget/insight/types.js.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts +2 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js +6 -4
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js.map +1 -1
- package/esm/presentation/widget/kpi/common/filterUtils.d.ts +0 -1
- package/esm/presentation/widget/kpi/common/filterUtils.d.ts.map +1 -1
- package/esm/presentation/widget/kpi/common/filterUtils.js +2 -5
- package/esm/presentation/widget/kpi/common/filterUtils.js.map +1 -1
- package/esm/presentation/widget/types.d.ts +1 -0
- package/esm/presentation/widget/types.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/CreatableVisualizationSwitcher.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/CreatableVisualizationSwitcher.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/CreatableVisualizationSwitcher.js +13 -0
- package/esm/presentation/widget/visualizationSwitcher/CreatableVisualizationSwitcher.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/DashboardVisualizationSwitcher.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/DashboardVisualizationSwitcher.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/DashboardVisualizationSwitcher.js +13 -0
- package/esm/presentation/widget/visualizationSwitcher/DashboardVisualizationSwitcher.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.d.ts +8 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js +14 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcherComponentSetFactory.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcherComponentSetFactory.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcherComponentSetFactory.js +24 -0
- package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcherComponentSetFactory.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js +17 -0
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts +7 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +9 -0
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts +4 -0
- package/esm/presentation/widget/visualizationSwitcher/index.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/index.js +4 -0
- package/esm/presentation/widget/visualizationSwitcher/index.js.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts +53 -0
- package/esm/presentation/widget/visualizationSwitcher/types.d.ts.map +1 -0
- package/esm/presentation/widget/visualizationSwitcher/types.js +3 -0
- package/esm/presentation/widget/visualizationSwitcher/types.js.map +1 -0
- package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +5 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +6 -5
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useEditableInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useEditableInsightMenu.js +12 -3
- package/esm/presentation/widget/widget/InsightWidget/useEditableInsightMenu.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts +7 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js +13 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.d.ts +7 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js +18 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts +6 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js +12 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/index.d.ts +2 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/index.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/index.js +3 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/index.js.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts +7 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.d.ts.map +1 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.js +3 -0
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/types.js.map +1 -0
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts +11 -0
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts.map +1 -0
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +76 -0
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js.map +1 -0
- package/esm/presentation/widgetDeleteDialog/WidgetDeleteDialog.d.ts +7 -0
- package/esm/presentation/widgetDeleteDialog/WidgetDeleteDialog.d.ts.map +1 -0
- package/esm/presentation/widgetDeleteDialog/WidgetDeleteDialog.js +11 -0
- package/esm/presentation/widgetDeleteDialog/WidgetDeleteDialog.js.map +1 -0
- package/esm/presentation/widgetDeleteDialog/index.d.ts +4 -0
- package/esm/presentation/widgetDeleteDialog/index.d.ts.map +1 -0
- package/esm/presentation/widgetDeleteDialog/index.js +4 -0
- package/esm/presentation/widgetDeleteDialog/index.js.map +1 -0
- package/esm/presentation/widgetDeleteDialog/types.d.ts +18 -0
- package/esm/presentation/widgetDeleteDialog/types.d.ts.map +1 -0
- package/esm/presentation/widgetDeleteDialog/types.js +3 -0
- package/esm/presentation/widgetDeleteDialog/types.js.map +1 -0
- package/esm/sdk-ui-dashboard.d.ts +244 -9
- package/esm/widgets/placeholders/types.js +1 -1
- package/package.json +15 -15
- package/styles/css/alerting.css +22 -0
- package/styles/css/alerting.css.map +1 -1
- package/styles/css/dashboard.css +5 -1
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/deleteDialog.css +6 -0
- package/styles/css/deleteDialog.css.map +1 -0
- package/styles/css/main.css +72 -1
- package/styles/css/main.css.map +1 -1
- package/styles/css/notifications_channels_dialog.css +5 -1
- package/styles/css/notifications_channels_dialog.css.map +1 -1
- package/styles/css/sidebar.css +19 -0
- package/styles/css/sidebar.css.map +1 -1
- package/styles/css/visualizationSwitcherWidget.css +27 -0
- package/styles/css/visualizationSwitcherWidget.css.map +1 -0
- package/styles/scss/alerting.scss +23 -0
- package/styles/scss/deleteDialog.scss +6 -0
- package/styles/scss/main.scss +2 -0
- package/styles/scss/notifications_channels_dialog.scss +6 -3
- package/styles/scss/sidebar.scss +26 -0
- package/styles/scss/visualizationSwitcherWidget.scss +23 -0
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.d.ts +0 -4
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.d.ts.map +0 -1
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.js +0 -31
- package/esm/presentation/alerting/DefaultAlertingDialog/operator.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightEditMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK/C,OAAO,EACH,oBAAoB,
|
|
1
|
+
{"version":3,"file":"getDefaultInsightEditMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK/C,OAAO,EACH,oBAAoB,EACpB,yBAAyB,EAI5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAClD,aAAa,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IAC5D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,wBAAgB,8BAA8B,CAC1C,MAAM,EAAE,cAAc,EACtB,EACI,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,mBAA0B,EAC1B,qBAA6B,GAChC,EAAE,oBAAoB,GACxB,gBAAgB,EAAE,CAyCpB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import compact from "lodash/compact.js";
|
|
4
4
|
import { InsightConfiguration } from "../../insight/configuration/InsightConfiguration.js";
|
|
5
5
|
import { InsightInteractions } from "../../insight/configuration/InsightInteractions.js";
|
|
6
6
|
import { Icon } from "@gooddata/sdk-ui-kit";
|
|
7
|
-
import {
|
|
7
|
+
import { userInteractionTriggered, uiActions, eagerRemoveSectionItemByWidgetRef, } from "../../../../model/index.js";
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
export function getDefaultInsightEditMenuItems(widget, { intl, dispatch, eventDispatch, includeInteractions = true }) {
|
|
11
|
+
export function getDefaultInsightEditMenuItems(widget, { intl, dispatch, eventDispatch, includeInteractions = true, useWidgetDeleteDialog = false, }) {
|
|
12
12
|
return compact([
|
|
13
13
|
{
|
|
14
14
|
type: "submenu",
|
|
@@ -43,7 +43,9 @@ export function getDefaultInsightEditMenuItems(widget, { intl, dispatch, eventDi
|
|
|
43
43
|
icon: "gd-icon-trash",
|
|
44
44
|
disabled: false,
|
|
45
45
|
className: "s-delete-insight-item",
|
|
46
|
-
onClick: () =>
|
|
46
|
+
onClick: () => useWidgetDeleteDialog
|
|
47
|
+
? dispatch(uiActions.openWidgetDeleteDialog(widget.ref))
|
|
48
|
+
: dispatch(eagerRemoveSectionItemByWidgetRef(widget.ref)),
|
|
47
49
|
},
|
|
48
50
|
]);
|
|
49
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightEditMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAEzF,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"getDefaultInsightEditMenuItems.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAEzF,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAGH,wBAAwB,EACxB,SAAS,EACT,iCAAiC,GACpC,MAAM,4BAA4B,CAAC;AAcpC;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC1C,MAAsB,EACtB,EACI,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,mBAAmB,GAAG,IAAI,EAC1B,qBAAqB,GAAG,KAAK,GACV;IAEvB,OAAO,OAAO,CAAC;QACX;YACI,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,2BAA2B;YACnC,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,0BAA0B,EAAE,CAAC;YAChE,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE,KAAK;YACf,SAAS,EAAE,+BAA+B;YAC1C,gBAAgB,EAAE,oBAAoB;SACzC;QACD,mBAAmB,IAAI;YACnB,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,yBAAyB;YACjC,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,iCAAiC,EAAE,CAAC;YACvE,IAAI,EAAE,oBAAC,IAAI,CAAC,WAAW,IAAC,SAAS,EAAC,WAAW,GAAG;YAChD,QAAQ,EAAE,KAAK;YACf,SAAS,EAAE,+BAA+B;YAC1C,gBAAgB,EAAE,mBAAmB;YACrC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,wBAAwB,CAAC,wBAAwB,CAAC,CAAC;SACnF;QACD;YACI,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,iCAAiC;SAC5C;QACD;YACI,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,wBAAwB;YAChC,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,0CAA0C,EAAE,CAAC;YAChF,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE,KAAK;YACf,SAAS,EAAE,uBAAuB;YAClC,OAAO,EAAE,GAAG,EAAE,CACV,qBAAqB;gBACjB,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBACxD,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SACpE;KACJ,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -10,7 +10,6 @@ export declare function dashboardFilterToFilterContextItem(filter: IDashboardFil
|
|
|
10
10
|
* @param filter - filter to strip date dataset from
|
|
11
11
|
*/
|
|
12
12
|
export declare function stripDateDatasets(filter: FilterContextItem): FilterContextItem;
|
|
13
|
-
export declare function isAttributeFilterIgnored(widget: IWidgetDefinition, displayForm: ObjRef): boolean;
|
|
14
13
|
export declare function isDateFilterIgnored(widget: IWidgetDefinition, displayForm: ObjRef): boolean;
|
|
15
14
|
export declare function isDateFilterIrrelevant(widget: IWidgetDefinition): boolean;
|
|
16
15
|
//# sourceMappingURL=filterUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterUtils.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/kpi/common/filterUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EASH,MAAM,EAEN,iBAAiB,
|
|
1
|
+
{"version":3,"file":"filterUtils.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/kpi/common/filterUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EASH,MAAM,EAEN,iBAAiB,EAKjB,iBAAiB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,gBAAgB,GAAG,iBAAiB,CAoD9F;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,CAS9E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAI3F;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAOzE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import { NotSupported } from "@gooddata/sdk-backend-spi";
|
|
3
|
-
import { areObjRefsEqual, filterAttributeElements, filterObjRef, isAbsoluteDateFilter, isAttributeElementsByRef, isAttributeFilter, isNegativeAttributeFilter, isRelativeDateFilter, isDateFilterGranularity,
|
|
3
|
+
import { areObjRefsEqual, filterAttributeElements, filterObjRef, isAbsoluteDateFilter, isAttributeElementsByRef, isAttributeFilter, isNegativeAttributeFilter, isRelativeDateFilter, isDateFilterGranularity, isDashboardDateFilter, isDashboardDateFilterReference, } from "@gooddata/sdk-model";
|
|
4
4
|
/**
|
|
5
5
|
* Converts a {@link IDashboardFilter} to a {@link FilterContextItem}.
|
|
6
6
|
* @param filter - filter to convert
|
|
@@ -65,9 +65,6 @@ export function stripDateDatasets(filter) {
|
|
|
65
65
|
dateFilter: rest,
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
export function isAttributeFilterIgnored(widget, displayForm) {
|
|
69
|
-
return widget.ignoreDashboardFilters.some((filter) => isDashboardAttributeFilterReference(filter) && areObjRefsEqual(filter.displayForm, displayForm));
|
|
70
|
-
}
|
|
71
68
|
export function isDateFilterIgnored(widget, displayForm) {
|
|
72
69
|
return widget.ignoreDashboardFilters.some((filter) => isDashboardDateFilterReference(filter) && areObjRefsEqual(filter.dataSet, displayForm));
|
|
73
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterUtils.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/kpi/common/filterUtils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EAEpB,uBAAuB,EAIvB,
|
|
1
|
+
{"version":3,"file":"filterUtils.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/kpi/common/filterUtils.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB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3,4 +3,5 @@ export { CustomDashboardInsightMenuButtonComponent, CustomDashboardInsightMenuCo
|
|
|
3
3
|
export { IDashboardKpiProps, CustomDashboardKpiComponent } from "./kpi/types.js";
|
|
4
4
|
export { IDashboardWidgetProps, CustomDashboardWidgetComponent } from "./widget/types.js";
|
|
5
5
|
export { CustomDashboardRichTextComponent, IDashboardRichTextProps } from "../widget/richText/types.js";
|
|
6
|
+
export { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "../widget/visualizationSwitcher/types.js";
|
|
6
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/types.ts"],"names":[],"mappings":"AACA,OAAO,EACH,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,EACjB,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACH,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/presentation/widget/types.ts"],"names":[],"mappings":"AACA,OAAO,EACH,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,EACjB,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACH,yCAAyC,EACzC,mCAAmC,EACnC,wCAAwC,EACxC,gCAAgC,EAChC,0BAA0B,EAC1B,+BAA+B,EAC/B,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACxG,OAAO,EACH,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ICreatePanelItemComponentProps } from "../../componentDefinition/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const CreatableVisualizationSwitcher: React.FC<ICreatePanelItemComponentProps>;
|
|
7
|
+
//# sourceMappingURL=CreatableVisualizationSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatableVisualizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/CreatableVisualizationSwitcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAWnF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
4
|
+
import { AddVisualizationSwitcherWidgetButton, DraggableVisualizationSwitcherCreatePanelItem, } from "../../dragAndDrop/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export const CreatableVisualizationSwitcher = (props) => {
|
|
9
|
+
const { WrapCreatePanelItemWithDragComponent } = props;
|
|
10
|
+
return (React.createElement(BubbleHoverTrigger, { eventsOnBubble: true, className: "s-add-visualization-switcher-bubble-trigger" },
|
|
11
|
+
React.createElement(DraggableVisualizationSwitcherCreatePanelItem, { CreatePanelItemComponent: AddVisualizationSwitcherWidgetButton, WrapCreatePanelItemWithDragComponent: WrapCreatePanelItemWithDragComponent })));
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=CreatableVisualizationSwitcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatableVisualizationSwitcher.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/CreatableVisualizationSwitcher.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EACH,oCAAoC,EACpC,6CAA6C,GAChD,MAAM,4BAA4B,CAAC;AAGpC;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAA6C,CAAC,KAAK,EAAE,EAAE;IAC9F,MAAM,EAAE,oCAAoC,EAAE,GAAG,KAAK,CAAC;IAEvD,OAAO,CACH,oBAAC,kBAAkB,IAAC,cAAc,EAAE,IAAI,EAAE,SAAS,EAAC,6CAA6C;QAC7F,oBAAC,6CAA6C,IAC1C,wBAAwB,EAAE,oCAAoC,EAC9D,oCAAoC,EAAE,oCAAoC,GAC5E,CACe,CACxB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IDashboardVisualizationSwitcherProps } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const DashboardVisualizationSwitcher: (props: IDashboardVisualizationSwitcherProps) => JSX.Element;
|
|
7
|
+
//# sourceMappingURL=DashboardVisualizationSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardVisualizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/DashboardVisualizationSwitcher.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,8BAA8B,UAAW,oCAAoC,KAAG,WAS5F,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { useDashboardComponentsContext } from "../../dashboardContexts/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export const DashboardVisualizationSwitcher = (props) => {
|
|
8
|
+
const { widget } = props;
|
|
9
|
+
const { VisualizationSwitcherWidgetComponentSet } = useDashboardComponentsContext();
|
|
10
|
+
const VisualizationSwitcherComponent = useMemo(() => VisualizationSwitcherWidgetComponentSet.MainComponentProvider(widget), [VisualizationSwitcherWidgetComponentSet, widget]);
|
|
11
|
+
return React.createElement(VisualizationSwitcherComponent, { ...props });
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=DashboardVisualizationSwitcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardVisualizationSwitcher.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/DashboardVisualizationSwitcher.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAGjF;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,KAA2C,EAAe,EAAE;IACvG,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,MAAM,EAAE,uCAAuC,EAAE,GAAG,6BAA6B,EAAE,CAAC;IACpF,MAAM,8BAA8B,GAAG,OAAO,CAC1C,GAAG,EAAE,CAAC,uCAAuC,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAC3E,CAAC,uCAAuC,EAAE,MAAM,CAAC,CACpD,CAAC;IAEF,OAAO,oBAAC,8BAA8B,OAAK,KAAK,GAAI,CAAC;AACzD,CAAC,CAAC"}
|
package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Default implementation of the dashboard visualization switcher widget.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const DefaultDashboardVisualizationSwitcher: import("react").ComponentType<import("./types.js").IDashboardVisualizationSwitcherProps>;
|
|
8
|
+
//# sourceMappingURL=DefaultDashboardVisualizationSwitcher.d.ts.map
|
package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultDashboardVisualizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.ts"],"names":[],"mappings":";AAMA;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,0FAGhD,CAAC"}
|
package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import { renderModeAware } from "../../componentDefinition/index.js";
|
|
3
|
+
import { EditModeDashboardVisualizationSwitcher } from "./EditModeDashboardVisualizationSwitcher.js";
|
|
4
|
+
import { ViewModeDashboardVisualizationSwitcher } from "./ViewModeDashboardVisualizationSwitcher.js";
|
|
5
|
+
/**
|
|
6
|
+
* Default implementation of the dashboard visualization switcher widget.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export const DefaultDashboardVisualizationSwitcher = renderModeAware({
|
|
11
|
+
view: ViewModeDashboardVisualizationSwitcher,
|
|
12
|
+
edit: EditModeDashboardVisualizationSwitcher,
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=DefaultDashboardVisualizationSwitcher.js.map
|
package/esm/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultDashboardVisualizationSwitcher.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcher.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAErG;;;;GAIG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,eAAe,CAAC;IACjE,IAAI,EAAE,sCAAsC;IAC5C,IAAI,EAAE,sCAAsC;CAC/C,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VisualizationSwitcherWidgetComponentSet } from "../../componentDefinition/index.js";
|
|
2
|
+
import { VisualizationSwitcherComponentProvider } from "../../dashboardContexts/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare function DefaultDashboardVisualizationSwitcherComponentSetFactory(visualizationSwitcherComponentProvider: VisualizationSwitcherComponentProvider): VisualizationSwitcherWidgetComponentSet;
|
|
7
|
+
//# sourceMappingURL=DefaultDashboardVisualizationSwitcherComponentSetFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultDashboardVisualizationSwitcherComponentSetFactory.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcherComponentSetFactory.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uCAAuC,EAAE,MAAM,oCAAoC,CAAC;AAC7F,OAAO,EAAE,sCAAsC,EAAE,MAAM,kCAAkC,CAAC;AAI1F;;GAEG;AACH,wBAAgB,wDAAwD,CACpE,sCAAsC,EAAE,sCAAsC,GAC/E,uCAAuC,CAgBzC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import { VisualizationSwitcherDraggingComponent } from "../../dragAndDrop/index.js";
|
|
3
|
+
import { CreatableVisualizationSwitcher } from "./CreatableVisualizationSwitcher.js";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export function DefaultDashboardVisualizationSwitcherComponentSetFactory(visualizationSwitcherComponentProvider) {
|
|
8
|
+
return {
|
|
9
|
+
MainComponentProvider: visualizationSwitcherComponentProvider,
|
|
10
|
+
creating: {
|
|
11
|
+
CreatePanelListItemComponent: CreatableVisualizationSwitcher,
|
|
12
|
+
type: "visualizationSwitcherListItem",
|
|
13
|
+
priority: 4,
|
|
14
|
+
},
|
|
15
|
+
dragging: {
|
|
16
|
+
DraggingComponent: VisualizationSwitcherDraggingComponent,
|
|
17
|
+
type: "visualizationSwitcher",
|
|
18
|
+
},
|
|
19
|
+
configuration: {
|
|
20
|
+
WidgetConfigPanelComponent: () => null,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=DefaultDashboardVisualizationSwitcherComponentSetFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultDashboardVisualizationSwitcherComponentSetFactory.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/DefaultDashboardVisualizationSwitcherComponentSetFactory.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAIhC,OAAO,EAAE,sCAAsC,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;GAEG;AACH,MAAM,UAAU,wDAAwD,CACpE,sCAA8E;IAE9E,OAAO;QACH,qBAAqB,EAAE,sCAAsC;QAC7D,QAAQ,EAAE;YACN,4BAA4B,EAAE,8BAA8B;YAC5D,IAAI,EAAE,+BAA+B;YACrC,QAAQ,EAAE,CAAC;SACd;QACD,QAAQ,EAAE;YACN,iBAAiB,EAAE,sCAAsC;YACzD,IAAI,EAAE,uBAAuB;SAChC;QACD,aAAa,EAAE;YACX,0BAA0B,EAAE,GAAG,EAAE,CAAC,IAAI;SACzC;KACJ,CAAC;AACN,CAAC"}
|
package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDashboardVisualizationSwitcherProps } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const EditModeDashboardVisualizationSwitcher: React.FC<IDashboardVisualizationSwitcherProps>;
|
|
7
|
+
//# sourceMappingURL=EditModeDashboardVisualizationSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditModeDashboardVisualizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,KAAK,CAAC,EAAE,CAAC,oCAAoC,CAcjG,CAAC"}
|
package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import { Icon, Typography } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export const EditModeDashboardVisualizationSwitcher = (_props) => {
|
|
10
|
+
const theme = useTheme();
|
|
11
|
+
const intl = useIntl();
|
|
12
|
+
const emptyContentIconColor = theme?.palette?.complementary?.c7 ?? "#6D7680";
|
|
13
|
+
return (React.createElement("div", { className: "gd-visualization-switcher-widget-empty-content" },
|
|
14
|
+
React.createElement(Icon.VisualizationSwitcher, { width: 32, height: 38, color: emptyContentIconColor }),
|
|
15
|
+
React.createElement(Typography, { tagName: "p" }, intl.formatMessage({ id: "visualizationSwitcher.emptyContent" }))));
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=EditModeDashboardVisualizationSwitcher.js.map
|
package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditModeDashboardVisualizationSwitcher.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAI3D;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAmD,CAClG,MAAM,EACR,EAAE;IACA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,qBAAqB,GAAG,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,IAAI,SAAS,CAAC;IAC7E,OAAO,CACH,6BAAK,SAAS,EAAC,gDAAgD;QAC3D,oBAAC,IAAI,CAAC,qBAAqB,IAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,qBAAqB,GAAI;QACnF,oBAAC,UAAU,IAAC,OAAO,EAAC,GAAG,IAClB,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,oCAAoC,EAAE,CAAC,CACxD,CACX,CACT,CAAC;AACN,CAAC,CAAC"}
|
package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDashboardVisualizationSwitcherProps } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const ViewModeDashboardVisualizationSwitcher: React.FC<IDashboardVisualizationSwitcherProps>;
|
|
7
|
+
//# sourceMappingURL=ViewModeDashboardVisualizationSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewModeDashboardVisualizationSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,KAAK,CAAC,EAAE,CAAC,oCAAoC,CAIjG,CAAC"}
|
package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export const ViewModeDashboardVisualizationSwitcher = (_props) => {
|
|
7
|
+
return React.createElement("div", null, " Vis. Switcher View Mode ");
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=ViewModeDashboardVisualizationSwitcher.js.map
|
package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewModeDashboardVisualizationSwitcher.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAmD,CAClG,MAAM,EACR,EAAE;IACA,OAAO,6DAAoC,CAAC;AAChD,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CustomDashboardVisualizationSwitcherComponent, IDashboardVisualizationSwitcherProps, } from "./types.js";
|
|
2
|
+
export { DefaultDashboardVisualizationSwitcher } from "./DefaultDashboardVisualizationSwitcher.js";
|
|
3
|
+
export { DefaultDashboardVisualizationSwitcherComponentSetFactory } from "./DefaultDashboardVisualizationSwitcherComponentSetFactory.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,6CAA6C,EAC7C,oCAAoC,GACvC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// (C) 2024 GoodData Corporation
|
|
2
|
+
export { DefaultDashboardVisualizationSwitcher } from "./DefaultDashboardVisualizationSwitcher.js";
|
|
3
|
+
export { DefaultDashboardVisualizationSwitcherComponentSetFactory } from "./DefaultDashboardVisualizationSwitcherComponentSetFactory.js";
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAMhC,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,wDAAwD,EAAE,MAAM,+DAA+D,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentType } from "react";
|
|
2
|
+
import { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
+
import { IVisualizationSwitcherWidget } from "@gooddata/sdk-model";
|
|
4
|
+
/**
|
|
5
|
+
* Visualization switcher widget props.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface IDashboardVisualizationSwitcherProps {
|
|
10
|
+
/**
|
|
11
|
+
* Backend to work with.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Note: the backend must come either from this property or from BackendContext. If you do not specify
|
|
15
|
+
* backend here, then the component MUST be rendered within an existing BackendContext.
|
|
16
|
+
*
|
|
17
|
+
* @alpha
|
|
18
|
+
*/
|
|
19
|
+
backend?: IAnalyticalBackend;
|
|
20
|
+
/**
|
|
21
|
+
* Workspace where the Insight widget exists.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
|
|
25
|
+
* workspace here, then the component MUST be rendered within an existing WorkspaceContext.
|
|
26
|
+
*
|
|
27
|
+
* @alpha
|
|
28
|
+
*/
|
|
29
|
+
workspace?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Definition of insight widget to render.
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
widget: IVisualizationSwitcherWidget;
|
|
36
|
+
/**
|
|
37
|
+
* Height of the visualization switcher widget container.
|
|
38
|
+
*
|
|
39
|
+
* @alpha
|
|
40
|
+
*/
|
|
41
|
+
clientHeight?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Width of the visualization switcher widget container.
|
|
44
|
+
*
|
|
45
|
+
* @alpha
|
|
46
|
+
*/
|
|
47
|
+
clientWidth?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export type CustomDashboardVisualizationSwitcherComponent = ComponentType<IDashboardVisualizationSwitcherProps>;
|
|
53
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAMnE;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACjD;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,MAAM,EAAE,4BAA4B,CAAC;IAErC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD;;GAEG;AACH,MAAM,MAAM,6CAA6C,GACrD,aAAa,CAAC,oCAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/presentation/widget/visualizationSwitcher/types.ts"],"names":[],"mappings":"AAAA,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardWidget.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardWidget.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAoBvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAOnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,mDAoGjC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2024 GoodData Corporation
|
|
2
2
|
import React, { useMemo } from "react";
|
|
3
3
|
import { UnexpectedError } from "@gooddata/sdk-backend-spi";
|
|
4
|
-
import { isWidget, isInsightWidget, isDashboardWidget, widgetRef, isKpiWidget, isRichTextWidget, } from "@gooddata/sdk-model";
|
|
4
|
+
import { isWidget, isInsightWidget, isDashboardWidget, widgetRef, isKpiWidget, isRichTextWidget, isVisualizationSwitcherWidget, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BackendProvider, convertError, useBackendStrict } from "@gooddata/sdk-ui";
|
|
6
6
|
import { withEventing } from "@gooddata/sdk-backend-base";
|
|
7
7
|
import { useDashboardEventDispatch } from "../../../model/index.js";
|
|
@@ -10,6 +10,7 @@ import { safeSerializeObjRef } from "../../../_staging/metadata/safeSerializeObj
|
|
|
10
10
|
import { DefaultDashboardKpiWidget } from "./DefaultDashboardKpiWidget.js";
|
|
11
11
|
import { RenderModeAwareDashboardInsightWidget } from "./InsightWidget/index.js";
|
|
12
12
|
import { RenderModeAwareDashboardRichTextWidget } from "./RichTextWidget/index.js";
|
|
13
|
+
import { RenderModeAwareDashboardVisualizationSwitchertWidget } from "./VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js";
|
|
13
14
|
/**
|
|
14
15
|
* @internal
|
|
15
16
|
*/
|
|
@@ -66,6 +67,9 @@ export const DefaultDashboardWidget = React.memo(function DefaultDashboardWidget
|
|
|
66
67
|
else if (isRichTextWidget(widget)) {
|
|
67
68
|
renderWidget = (React.createElement(RenderModeAwareDashboardRichTextWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClasses }));
|
|
68
69
|
}
|
|
70
|
+
else if (isVisualizationSwitcherWidget(widget)) {
|
|
71
|
+
renderWidget = (React.createElement(RenderModeAwareDashboardVisualizationSwitchertWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClasses }));
|
|
72
|
+
}
|
|
69
73
|
return React.createElement(BackendProvider, { backend: backendWithEventing }, renderWidget);
|
|
70
74
|
}
|
|
71
75
|
return React.createElement("div", null, "Unknown widget");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardWidget.js","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAa,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EACH,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,gBAAgB,
|
|
1
|
+
{"version":3,"file":"DefaultDashboardWidget.js","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAa,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,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;IAEhE,MAAM,oBAAoB,GAAG,eAAe,KAAK,EAAE,CAAC;IAEpD,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACnB,IAAI,YAAY,GAAG,IAAI,CAAC;QACxB,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1B,YAAY,GAAG,CACX,oBAAC,qCAAqC,IAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;QACN,CAAC;aAAM,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7B,YAAY,GAAG,CACX,oBAAC,yBAAyB,IACtB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,EAC1C,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,GAClB,CACL,CAAC;QACN,CAAC;aAAM,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC;YAClC,YAAY,GAAG,CACX,oBAAC,sCAAsC,IACnC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;QACN,CAAC;aAAM,IAAI,6BAA6B,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/C,YAAY,GAAG,CACX,oBAAC,oDAAoD,IACjD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;QACN,CAAC;QAED,OAAO,oBAAC,eAAe,IAAC,OAAO,EAAE,mBAAmB,IAAG,YAAY,CAAmB,CAAC;IAC3F,CAAC;IAED,OAAO,kDAAyB,CAAC;AACrC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardInsightWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA0BpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEjE,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAIxG,CAAC"}
|
|
@@ -8,9 +8,10 @@ import { DashboardItem, DashboardItemHeadline, DashboardItemVisualization, getVi
|
|
|
8
8
|
import { DashboardInsight } from "../../insight/index.js";
|
|
9
9
|
import { useInsightExport } from "../../common/index.js";
|
|
10
10
|
import { useDashboardComponentsContext } from "../../../dashboardContexts/index.js";
|
|
11
|
+
import { InsightWidgetDescriptionTrigger } from "../../description/InsightWidgetDescriptionTrigger.js";
|
|
12
|
+
import { isSupportedInsightVisType } from "../../insight/configuration/InsightAlertConfig/utils.js";
|
|
11
13
|
import { useInsightMenu } from "./useInsightMenu.js";
|
|
12
14
|
import { DashboardWidgetInsightGuard } from "./DashboardWidgetInsightGuard.js";
|
|
13
|
-
import { InsightWidgetDescriptionTrigger } from "../../description/InsightWidgetDescriptionTrigger.js";
|
|
14
15
|
export const DefaultDashboardInsightWidget = (props) => {
|
|
15
16
|
return React.createElement(DashboardWidgetInsightGuard, { ...props, Component: DefaultDashboardInsightWidgetCore });
|
|
16
17
|
};
|
|
@@ -20,7 +21,7 @@ export const DefaultDashboardInsightWidget = (props) => {
|
|
|
20
21
|
const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, onExportReady, onLoadingChanged, dashboardItemClasses }) => {
|
|
21
22
|
const intl = useIntl();
|
|
22
23
|
const settings = useDashboardSelector(selectSettings);
|
|
23
|
-
const { onScheduleEmailingOpen, onScheduleEmailingManagementOpen, isScheduledEmailingVisible, isScheduledManagementEmailingVisible,
|
|
24
|
+
const { onScheduleEmailingOpen, onScheduleEmailingManagementOpen, isScheduledEmailingVisible, isScheduledManagementEmailingVisible, numberOfAvailableDestinations, } = useDashboardScheduledEmails();
|
|
24
25
|
const visType = insightVisualizationType(insight);
|
|
25
26
|
const { ref: widgetRef } = widget;
|
|
26
27
|
const { exportCSVEnabled, exportXLSXEnabled, onExportCSV, onExportXLSX } = useInsightExport({
|
|
@@ -36,9 +37,9 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
|
|
|
36
37
|
}, [onScheduleEmailingManagementOpen, widget]);
|
|
37
38
|
const scheduleExportEnabled = !isCustomWidget(widget);
|
|
38
39
|
const scheduleExportManagementEnabled = !isCustomWidget(widget);
|
|
39
|
-
const
|
|
40
|
-
const isAlertingVisible =
|
|
41
|
-
const alertingDisabled =
|
|
40
|
+
const isSupported = isSupportedInsightVisType(insight);
|
|
41
|
+
const isAlertingVisible = isSupported && !isCustomWidget(widget) && settings.enableAlerting === true;
|
|
42
|
+
const alertingDisabled = numberOfAvailableDestinations === 0;
|
|
42
43
|
const { closeMenu, isMenuOpen, menuItems, openMenu } = useInsightMenu({
|
|
43
44
|
insight,
|
|
44
45
|
widget,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAY,WAAW,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGtF,OAAO,EACH,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,2BAA2B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,aAAa,EACb,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,GACrB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DefaultDashboardInsightWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAY,WAAW,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGtF,OAAO,EACH,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,2BAA2B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,aAAa,EACb,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,GACrB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAEpG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;A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E,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,gBAAgB,EAAE,gBAAgB,GACpC,CACL,CACwB,CACjB,CACnB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditableInsightMenu.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useEditableInsightMenu.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAkC,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"useEditableInsightMenu.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useEditableInsightMenu.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAkC,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAa9F,KAAK,4BAA4B,GAAG;IAChC,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACvB,4BAA4B;eACxB,gBAAgB,EAAE;CAuDjC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// (C) 2021-
|
|
1
|
+
// (C) 2021-2024 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { useDashboardCustomizationsContext } from "../../../dashboardContexts/index.js";
|
|
5
5
|
import { getDefaultInsightEditMenuItems } from "../../insightMenu/index.js";
|
|
6
|
-
import { selectDrillTargetsByWidgetRef, selectSettings, useDashboardDispatch, useDashboardEventDispatch, useDashboardSelector, } from "../../../../model/index.js";
|
|
6
|
+
import { selectAutomationsAlertsInContext, selectAutomationsSchedulesInContext, selectDrillTargetsByWidgetRef, selectEnableAlerting, selectEnableScheduling, selectSettings, useDashboardDispatch, useDashboardEventDispatch, useDashboardSelector, } from "../../../../model/index.js";
|
|
7
7
|
export const useEditableInsightMenu = (config) => {
|
|
8
8
|
const { insight, widget, closeMenu } = config;
|
|
9
9
|
const intl = useIntl();
|
|
@@ -18,6 +18,14 @@ export const useEditableInsightMenu = (config) => {
|
|
|
18
18
|
const availableDrillTargets = configItems?.availableDrillTargets;
|
|
19
19
|
const someAvailableDrillTargetsExist = !!availableDrillTargets?.attributes?.length || !!availableDrillTargets?.measures?.length;
|
|
20
20
|
const includeInteractions = someDrillingEnabled && someAvailableDrillTargetsExist;
|
|
21
|
+
const isSchedulingEnabled = useDashboardSelector(selectEnableScheduling);
|
|
22
|
+
const isAlertingEnabled = useDashboardSelector(selectEnableAlerting);
|
|
23
|
+
const alerts = useDashboardSelector(selectAutomationsAlertsInContext(widget.localIdentifier));
|
|
24
|
+
const schedules = useDashboardSelector(selectAutomationsSchedulesInContext(widget.localIdentifier));
|
|
25
|
+
const useWidgetDeleteDialog = useMemo(() =>
|
|
26
|
+
// new widgets in edit mode do not have localIdentifier, so should be deleted without confirmation dialog
|
|
27
|
+
!!widget.localIdentifier &&
|
|
28
|
+
((isAlertingEnabled && alerts.length > 0) || (isSchedulingEnabled && schedules.length > 0)), [alerts.length, isAlertingEnabled, isSchedulingEnabled, schedules.length, widget.localIdentifier]);
|
|
21
29
|
const { insightMenuItemsProvider } = useDashboardCustomizationsContext();
|
|
22
30
|
const defaultMenuItems = useMemo(() => {
|
|
23
31
|
return getDefaultInsightEditMenuItems(widget, {
|
|
@@ -25,8 +33,9 @@ export const useEditableInsightMenu = (config) => {
|
|
|
25
33
|
dispatch,
|
|
26
34
|
eventDispatch,
|
|
27
35
|
includeInteractions,
|
|
36
|
+
useWidgetDeleteDialog,
|
|
28
37
|
});
|
|
29
|
-
}, [dispatch, eventDispatch, intl, widget, includeInteractions]);
|
|
38
|
+
}, [dispatch, eventDispatch, intl, widget, includeInteractions, useWidgetDeleteDialog]);
|
|
30
39
|
const menuItems = useMemo(() => {
|
|
31
40
|
return insightMenuItemsProvider
|
|
32
41
|
? insightMenuItemsProvider(insight, widget, defaultMenuItems, closeMenu, "edit")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditableInsightMenu.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useEditableInsightMenu.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAoB,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EACH,6BAA6B,EAC7B,cAAc,EACd,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AAQpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,MAAoC,EACH,EAAE;IACnC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAE9C,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;IACxC,MAAM,aAAa,GAAG,yBAAyB,EAAE,CAAC;IAElD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACtD,MAAM,EACF,4BAA4B,EAC5B,kCAAkC,EAClC,gCAAgC,GACnC,GAAG,QAAQ,CAAC;IAEb,MAAM,WAAW,GAAG,oBAAoB,CAAC,6BAA6B,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACpF,MAAM,mBAAmB,GACrB,4BAA4B;QAC5B,kCAAkC;QAClC,gCAAgC,CAAC;IACrC,MAAM,qBAAqB,GAAG,WAAW,EAAE,qBAAqB,CAAC;IACjE,MAAM,8BAA8B,GAChC,CAAC,CAAC,qBAAqB,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC,CAAC,qBAAqB,EAAE,QAAQ,EAAE,MAAM,CAAC;IAE7F,MAAM,mBAAmB,GAAG,mBAAmB,IAAI,8BAA8B,CAAC;IAElF,MAAM,EAAE,wBAAwB,EAAE,GAAG,iCAAiC,EAAE,CAAC;IACzE,MAAM,gBAAgB,GAAG,OAAO,CAAqB,GAAG,EAAE;QACtD,OAAO,8BAA8B,CAAC,MAAM,EAAE;YAC1C,IAAI;YACJ,QAAQ;YACR,aAAa;YACb,mBAAmB;
|
|
1
|
+
{"version":3,"file":"useEditableInsightMenu.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/InsightWidget/useEditableInsightMenu.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAoB,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EACH,gCAAgC,EAChC,mCAAmC,EACnC,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACvB,MAAM,4BAA4B,CAAC;AAQpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAClC,MAAoC,EACH,EAAE;IACnC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAE9C,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,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MAAM,EAAE,MAAM,CAAC,eAAe,CAAC,CACpG,CAAC;IAEF,MAAM,EAAE,wBAAwB,EAAE,GAAG,iCAAiC,EAAE,CAAC;IACzE,MAAM,gBAAgB,GAAG,OAAO,CAAqB,GAAG,EAAE;QACtD,OAAO,8BAA8B,CAAC,MAAM,EAAE;YAC1C,IAAI;YACJ,QAAQ;YACR,aAAa;YACb,mBAAmB;YACnB,qBAAqB;SACxB,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAExF,MAAM,SAAS,GAAG,OAAO,CAAqB,GAAG,EAAE;QAC/C,OAAO,wBAAwB;YAC3B,CAAC,CAAC,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,CAAC;YAChF,CAAC,CAAC,gBAAgB,CAAC;IAC3B,CAAC,EAAE,CAAC,wBAAwB,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAAC;IAE7E,OAAO,EAAE,SAAS,EAAE,CAAC;AACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDefaultDashboardVisualizationSwitcherWidgetProps } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const DefaultDashboardVisualizationSwitchertWidget: React.FC<IDefaultDashboardVisualizationSwitcherWidgetProps>;
|
|
7
|
+
//# sourceMappingURL=DefaultDashboardVisualizationSwitcherWidget.d.ts.map
|