@gooddata/sdk-ui-dashboard 10.19.0-alpha.9 → 10.19.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/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/automation/index.d.ts +1 -0
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/_staging/automation/index.js +14 -1
- package/esm/_staging/automation/index.js.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/interfaces.d.ts +81 -0
- package/esm/_staging/dashboard/flexibleLayout/builder/interfaces.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/item.d.ts +4 -3
- package/esm/_staging/dashboard/flexibleLayout/builder/item.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/item.js +12 -4
- package/esm/_staging/dashboard/flexibleLayout/builder/item.js.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/layout.d.ts +14 -10
- package/esm/_staging/dashboard/flexibleLayout/builder/layout.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/layout.js +160 -50
- package/esm/_staging/dashboard/flexibleLayout/builder/layout.js.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/section.d.ts +0 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/section.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/builder/section.js +1 -5
- package/esm/_staging/dashboard/flexibleLayout/builder/section.js.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/interfaces.d.ts +2 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/interfaces.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/layout.d.ts +2 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/layout.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/layout.js +18 -2
- package/esm/_staging/dashboard/flexibleLayout/facade/layout.js.map +1 -1
- package/esm/_staging/layout/coordinates.d.ts +1 -1
- package/esm/_staging/layout/coordinates.d.ts.map +1 -1
- package/esm/_staging/layout/coordinates.js +4 -5
- package/esm/_staging/layout/coordinates.js.map +1 -1
- package/esm/_staging/layout/sizing.d.ts +16 -7
- package/esm/_staging/layout/sizing.d.ts.map +1 -1
- package/esm/_staging/layout/sizing.js +108 -57
- package/esm/_staging/layout/sizing.js.map +1 -1
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.js +6 -2
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.js +3 -1
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/containerHeightSanitization.d.ts +10 -0
- package/esm/model/commandHandlers/layout/containerHeightSanitization.d.ts.map +1 -0
- package/esm/model/commandHandlers/layout/containerHeightSanitization.js +82 -0
- package/esm/model/commandHandlers/layout/containerHeightSanitization.js.map +1 -0
- package/esm/model/commandHandlers/layout/moveLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/moveLayoutSectionHandler.js +5 -2
- package/esm/model/commandHandlers/layout/moveLayoutSectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemHandler.js +5 -2
- package/esm/model/commandHandlers/layout/moveSectionItemHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.js +6 -3
- package/esm/model/commandHandlers/layout/moveSectionItemToNewSectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.js +4 -2
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/removeSectionItemHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/removeSectionItemHandler.js +4 -1
- package/esm/model/commandHandlers/layout/removeSectionItemHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.js +3 -1
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/resizeHeightHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/resizeHeightHandler.js +15 -10
- package/esm/model/commandHandlers/layout/resizeHeightHandler.js.map +1 -1
- package/esm/model/commandHandlers/layout/resizeWidthHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/resizeWidthHandler.js +10 -6
- package/esm/model/commandHandlers/layout/resizeWidthHandler.js.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +60 -15
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js.map +1 -1
- package/esm/model/events/index.d.ts +4 -4
- package/esm/model/events/index.d.ts.map +1 -1
- package/esm/model/events/index.js +1 -1
- package/esm/model/events/index.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 +1 -1
- package/esm/model/index.js.map +1 -1
- package/esm/model/react/useDashboardCommand.d.ts +1 -1
- package/esm/model/react/useDashboardCommand.d.ts.map +1 -1
- package/esm/model/react/useDashboardCommandProcessing.d.ts +4 -0
- package/esm/model/react/useDashboardCommandProcessing.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.d.ts +7 -3
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +10 -4
- package/esm/model/store/config/configSelectors.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/index.d.ts +6 -0
- package/esm/model/store/layout/index.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.d.ts +5 -1
- package/esm/model/store/layout/layoutReducers.d.ts.map +1 -1
- package/esm/model/store/layout/layoutReducers.js +19 -0
- package/esm/model/store/layout/layoutReducers.js.map +1 -1
- package/esm/model/store/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/layout/layoutSelectors.js +29 -15
- package/esm/model/store/layout/layoutSelectors.js.map +1 -1
- package/esm/model/types/commonTypes.d.ts +33 -4
- package/esm/model/types/commonTypes.d.ts.map +1 -1
- package/esm/model/types/commonTypes.js.map +1 -1
- package/esm/model/types/layoutTypes.d.ts +10 -0
- package/esm/model/types/layoutTypes.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.js +1 -1
- package/esm/model/types/layoutTypes.js.map +1 -1
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts +5 -2
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.js +40 -19
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.js.map +1 -1
- package/esm/plugins/customizer.d.ts +34 -1
- package/esm/plugins/customizer.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/types.d.ts +1 -0
- package/esm/presentation/dragAndDrop/types.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js +15 -3
- package/esm/presentation/filterBar/attributeFilter/DefaultDashboardAttributeFilter.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +12 -6
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +5 -4
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js +5 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutEditSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRow.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +5 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js +3 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItem.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutItemViewRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +5 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js +5 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js +8 -7
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/GridLayoutElement.js.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts +8 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/interfaces.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.d.ts +7 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.js +18 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/useItemWidthValidation.js.map +1 -0
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +0 -9
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +2 -33
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.d.ts +0 -12
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.js +2 -4
- package/esm/presentation/flexibleLayout/dragAndDrop/DragLayerPreview/WidthResizerDragPreview.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts +4 -3
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js +9 -7
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.d.ts +2 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js +7 -7
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.d.ts +3 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js +13 -5
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/EmptyNestedLayoutDropZone.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts +1 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +2 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.js +4 -3
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZone.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.d.ts +1 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.js +17 -4
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/WidgetDropZoneBox.js.map +1 -1
- package/esm/presentation/layout/DashboardLayoutWidget.js +2 -2
- package/esm/presentation/layout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js +4 -2
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/DashboardLayoutGridRowEdit.js.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts +0 -8
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -1
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.js +2 -2
- package/esm/presentation/layout/DefaultDashboardLayoutRenderer/utils/sizing.js.map +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.d.ts +4 -3
- package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.js +9 -7
- package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.js.map +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.js +3 -2
- package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.js.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.json +5 -1
- package/esm/presentation/localization/bundles/en-AU.json +5 -1
- package/esm/presentation/localization/bundles/en-GB.json +5 -1
- package/esm/presentation/localization/bundles/en-US.json +20 -0
- package/esm/presentation/localization/bundles/es-419.json +5 -1
- package/esm/presentation/localization/bundles/es-ES.json +5 -1
- package/esm/presentation/localization/bundles/fi-FI.json +5 -1
- package/esm/presentation/localization/bundles/fr-CA.json +5 -1
- package/esm/presentation/localization/bundles/fr-FR.json +5 -1
- package/esm/presentation/localization/bundles/it-IT.json +5 -1
- package/esm/presentation/localization/bundles/ja-JP.json +5 -1
- package/esm/presentation/localization/bundles/nl-NL.json +5 -1
- package/esm/presentation/localization/bundles/pt-BR.json +5 -1
- package/esm/presentation/localization/bundles/pt-PT.json +5 -1
- package/esm/presentation/localization/bundles/zh-HK.json +5 -1
- package/esm/presentation/localization/bundles/zh-Hans.json +5 -1
- package/esm/presentation/localization/bundles/zh-Hant.json +5 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts +1 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts.map +1 -1
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js +5 -4
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +2 -2
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts +8 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +10 -24
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +8 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +51 -22
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +2 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +13 -4
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js.map +1 -1
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.d.ts +5 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.d.ts.map +1 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.js +35 -0
- package/esm/presentation/scheduledEmail/DefaultScheduledEmailDialog/utils/users.js.map +1 -0
- package/esm/presentation/widget/common/useWidgetHighlighting.d.ts +7 -0
- package/esm/presentation/widget/common/useWidgetHighlighting.d.ts.map +1 -0
- package/esm/presentation/widget/common/useWidgetHighlighting.js +66 -0
- package/esm/presentation/widget/common/useWidgetHighlighting.js.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js +2 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/AlertAttributeSelect.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +15 -5
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js +54 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useAttributeValuesFromExecResults.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +2 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +41 -33
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.d.ts +11 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.d.ts.map +1 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.js +40 -0
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.js.map +1 -0
- package/esm/presentation/widget/widget/DefaultDashboardWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DefaultDashboardWidget.js +32 -36
- 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 -22
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.js +6 -2
- package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.js.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js +6 -2
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js.map +1 -1
- package/esm/presentation/widget/widget/types.d.ts +10 -0
- package/esm/presentation/widget/widget/types.d.ts.map +1 -1
- package/esm/sdk-ui-dashboard.d.ts +173 -15
- package/package.json +15 -15
- package/styles/css/dashboard.css +21 -7
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/dashboardNestedLayoutWidget.css +3 -0
- package/styles/css/dashboardNestedLayoutWidget.css.map +1 -1
- package/styles/css/dragAndDrop.css +10 -0
- package/styles/css/dragAndDrop.css.map +1 -1
- package/styles/css/export.css +10 -4
- package/styles/css/export.css.map +1 -1
- package/styles/css/layout.css +4 -0
- package/styles/css/layout.css.map +1 -1
- package/styles/css/main.css +46 -13
- package/styles/css/main.css.map +1 -1
- package/styles/css/resizing.css +2 -2
- package/styles/css/scheduled_mail_recipients.css +14 -4
- package/styles/css/scheduled_mail_recipients.css.map +1 -1
- package/styles/scss/_zIndexes.scss +2 -0
- package/styles/scss/dashboard.scss +3 -3
- package/styles/scss/dashboardNestedLayoutWidget.scss +4 -0
- package/styles/scss/dragAndDrop.scss +14 -0
- package/styles/scss/export.scss +23 -4
- package/styles/scss/layout.scss +6 -0
- package/styles/scss/resizing.scss +2 -2
- package/styles/scss/scheduled_mail_recipients.scss +5 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IAlertRelativeArithmeticOperator, IAlertRelativeOperator, IAttribute, IAutomationAlert, IMeasure } from "@gooddata/sdk-model";
|
|
3
|
+
import { AlertAttribute, AlertMetric } from "../../../types.js";
|
|
4
|
+
export declare function useThresholdValue(changeValue: (value: number) => void, getMetricValue: (measure?: IMeasure, attr?: IAttribute, value?: string | null) => number | undefined, isNewAlert?: boolean, alert?: IAutomationAlert, selectedRelativeOperator?: [
|
|
5
|
+
IAlertRelativeOperator | undefined,
|
|
6
|
+
IAlertRelativeArithmeticOperator | undefined
|
|
7
|
+
], selectedMeasure?: AlertMetric, selectedAttribute?: AlertAttribute, selectedValue?: string | null): {
|
|
8
|
+
value: number | undefined;
|
|
9
|
+
setTouched: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useThresholdValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThresholdValue.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.ts"],"names":[],"mappings":";AAEA,OAAO,EACH,gCAAgC,EAChC,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACX,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhE,wBAAgB,iBAAiB,CAC7B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACpC,cAAc,EAAE,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,GAAG,SAAS,EACpG,UAAU,CAAC,EAAE,OAAO,EACpB,KAAK,CAAC,EAAE,gBAAgB,EACxB,wBAAwB,GAAE;IACtB,sBAAsB,GAAG,SAAS;IAClC,gCAAgC,GAAG,SAAS;CACtB,EAC1B,eAAe,CAAC,EAAE,WAAW,EAC7B,iBAAiB,CAAC,EAAE,cAAc,EAClC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI;;;EAwChC"}
|
package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// (C) 2022-2025 GoodData Corporation
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { getAlertThreshold } from "../utils/getters.js";
|
|
4
|
+
export function useThresholdValue(changeValue, getMetricValue, isNewAlert, alert, selectedRelativeOperator = [undefined, undefined], selectedMeasure, selectedAttribute, selectedValue) {
|
|
5
|
+
const [relativeOperator] = selectedRelativeOperator;
|
|
6
|
+
const value = getAlertThreshold(alert);
|
|
7
|
+
const [touched, setTouched] = useState(false);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
// If input is already touched, do not trigger current value calculation
|
|
10
|
+
// If alert is not new, do not trigger current value calculation because it is already set by user
|
|
11
|
+
if (touched || !isNewAlert) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
// If user selects a relative operator, clear the value if not touched, it not make sense
|
|
15
|
+
if (relativeOperator) {
|
|
16
|
+
changeValue(undefined);
|
|
17
|
+
// If user select comparison operator try to calculate the value based on the selected measure and attribute
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
const val = getMetricValue(selectedMeasure?.measure, selectedAttribute?.attribute, selectedValue);
|
|
21
|
+
if (val !== undefined) {
|
|
22
|
+
changeValue(val);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, [
|
|
26
|
+
isNewAlert,
|
|
27
|
+
changeValue,
|
|
28
|
+
getMetricValue,
|
|
29
|
+
selectedAttribute?.attribute,
|
|
30
|
+
selectedMeasure?.measure,
|
|
31
|
+
relativeOperator,
|
|
32
|
+
selectedValue,
|
|
33
|
+
touched,
|
|
34
|
+
]);
|
|
35
|
+
return {
|
|
36
|
+
value,
|
|
37
|
+
setTouched,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=useThresholdValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThresholdValue.js","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useThresholdValue.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAS5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,UAAU,iBAAiB,CAC7B,WAAoC,EACpC,cAAoG,EACpG,UAAoB,EACpB,KAAwB,EACxB,2BAGI,CAAC,SAAS,EAAE,SAAS,CAAC,EAC1B,eAA6B,EAC7B,iBAAkC,EAClC,aAA6B;IAE7B,MAAM,CAAC,gBAAgB,CAAC,GAAG,wBAAwB,CAAC;IAEpD,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,SAAS,CAAC,GAAG,EAAE;QACX,wEAAwE;QACxE,kGAAkG;QAClG,IAAI,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;YACzB,OAAO;QACX,CAAC;QAED,yFAAyF;QACzF,IAAI,gBAAgB,EAAE,CAAC;YACnB,WAAW,CAAC,SAAU,CAAC,CAAC;YAExB,4GAA4G;QAChH,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,GAAG,cAAc,CAAC,eAAe,EAAE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;YAClG,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBACpB,WAAW,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC;QACL,CAAC;IACL,CAAC,EAAE;QACC,UAAU;QACV,WAAW;QACX,cAAc;QACd,iBAAiB,EAAE,SAAS;QAC5B,eAAe,EAAE,OAAO;QACxB,gBAAgB;QAChB,aAAa;QACb,OAAO;KACV,CAAC,CAAC;IAEH,OAAO;QACH,KAAK;QACL,UAAU;KACb,CAAC;AACN,CAAC"}
|
|
@@ -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;AA0BvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardWidget.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/DefaultDashboardWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AA0BvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA0EnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,mDA4FjC,CAAC"}
|
|
@@ -13,14 +13,34 @@ import { RenderModeAwareDashboardInsightWidget } from "./InsightWidget/index.js"
|
|
|
13
13
|
import { RenderModeAwareDashboardRichTextWidget } from "./RichTextWidget/index.js";
|
|
14
14
|
import { RenderModeAwareDashboardVisualizationSwitcherWidget } from "./VisualizationSwitcherWidget/RenderModeAwareDashboardVisualizationSwitcherWidget.js";
|
|
15
15
|
import { RenderModeAwareDashboardNestedLayoutWidget } from "./DashboardNestedLayoutWidget/RenderModeAwareDashboardNestedLayoutWidget.js";
|
|
16
|
-
import {
|
|
16
|
+
import { serializeLayoutItemPath } from "../../../_staging/layout/coordinates.js";
|
|
17
|
+
const WidgetComponent = ({ widget, index, rowIndex, parentLayoutPath, screen, onFiltersChange, onError, }) => {
|
|
18
|
+
const dashboardItemClasses = parentLayoutPath
|
|
19
|
+
? `s-dash-item-${serializeLayoutItemPath(parentLayoutPath)}`
|
|
20
|
+
: `s-dash-item-${index}`;
|
|
21
|
+
const dashboardItemClassNames = cx(dashboardItemClasses, {
|
|
22
|
+
"gd-first-container-row-widget": rowIndex === 0,
|
|
23
|
+
});
|
|
24
|
+
if (isInsightWidget(widget)) {
|
|
25
|
+
return (React.createElement(RenderModeAwareDashboardInsightWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames }));
|
|
26
|
+
}
|
|
27
|
+
else if (isKpiWidget(widget)) {
|
|
28
|
+
return (React.createElement(DefaultDashboardKpiWidget, { kpiWidget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames, onFiltersChange: onFiltersChange, onError: onError }));
|
|
29
|
+
}
|
|
30
|
+
else if (isRichTextWidget(widget)) {
|
|
31
|
+
return (React.createElement(RenderModeAwareDashboardRichTextWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames }));
|
|
32
|
+
}
|
|
33
|
+
else if (isVisualizationSwitcherWidget(widget)) {
|
|
34
|
+
return (React.createElement(RenderModeAwareDashboardVisualizationSwitcherWidget, { widget: widget, screen: screen, dashboardItemClasses: dashboardItemClassNames }));
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
};
|
|
17
38
|
/**
|
|
18
39
|
* @internal
|
|
19
40
|
*/
|
|
20
|
-
export const DefaultDashboardWidget = React.memo(function DefaultDashboardWidget(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
index, parentLayoutItemSize, parentLayoutPath, } = props;
|
|
41
|
+
export const DefaultDashboardWidget = React.memo(function DefaultDashboardWidget({ onError, onFiltersChange, screen, widget, backend,
|
|
42
|
+
// @ts-expect-error Don't expose index prop on public interface (we need it only for css class for KD tests)
|
|
43
|
+
index, parentLayoutItemSize, parentLayoutPath, rowIndex, }) {
|
|
24
44
|
const isFlexibleLayoutEnabled = useDashboardSelector(selectEnableFlexibleLayout);
|
|
25
45
|
if (!isDashboardWidget(widget)) {
|
|
26
46
|
throw new UnexpectedError("Cannot render custom widget with DefaultWidgetRenderer! Please handle custom widget rendering in your widgetRenderer.");
|
|
@@ -59,46 +79,22 @@ export const DefaultDashboardWidget = React.memo(function DefaultDashboardWidget
|
|
|
59
79
|
},
|
|
60
80
|
});
|
|
61
81
|
}, [effectiveBackend, dispatchEvent, safeSerializeObjRef(ref)]);
|
|
62
|
-
const pathItems = parentLayoutPath
|
|
63
|
-
? parentLayoutPath.map((pathItem) => `-${pathItem.sectionIndex}_${pathItem.itemIndex}`).join("")
|
|
64
|
-
: "";
|
|
65
|
-
const dashboardItemClasses = parentLayoutPath ? `s-dash-item${pathItems}` : `s-dash-item-${index}`;
|
|
66
|
-
const firstInContainer = isFirstInContainer(parentLayoutPath);
|
|
67
82
|
if (isWidget(widget)) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
renderWidget = (React.createElement(RenderModeAwareDashboardInsightWidget, { widget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
|
|
71
|
-
"gd-first-in-container": firstInContainer,
|
|
72
|
-
}) }));
|
|
73
|
-
}
|
|
74
|
-
else if (isKpiWidget(widget)) {
|
|
75
|
-
renderWidget = (React.createElement(DefaultDashboardKpiWidget, { kpiWidget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
|
|
76
|
-
"gd-first-in-container": firstInContainer,
|
|
77
|
-
}), onFiltersChange: onFiltersChange, onError: onError }));
|
|
78
|
-
}
|
|
79
|
-
else if (isRichTextWidget(widget)) {
|
|
80
|
-
renderWidget = (React.createElement(RenderModeAwareDashboardRichTextWidget, { widget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
|
|
81
|
-
"gd-first-in-container": firstInContainer,
|
|
82
|
-
}) }));
|
|
83
|
-
}
|
|
84
|
-
else if (isVisualizationSwitcherWidget(widget)) {
|
|
85
|
-
renderWidget = (React.createElement(RenderModeAwareDashboardVisualizationSwitcherWidget, { widget: widget, screen: screen, dashboardItemClasses: cx(dashboardItemClasses, {
|
|
86
|
-
"gd-first-in-container": firstInContainer,
|
|
87
|
-
}) }));
|
|
88
|
-
}
|
|
89
|
-
return React.createElement(BackendProvider, { backend: backendWithEventing }, renderWidget);
|
|
83
|
+
return (React.createElement(BackendProvider, { backend: backendWithEventing },
|
|
84
|
+
React.createElement(WidgetComponent, { widget: widget, screen: screen, index: index, parentLayoutPath: parentLayoutPath, onFiltersChange: onFiltersChange, onError: onError, rowIndex: rowIndex })));
|
|
90
85
|
}
|
|
91
86
|
else if (isFlexibleLayoutEnabled && isExtendedDashboardLayoutWidget(widget)) {
|
|
92
87
|
const dashboardItemClasses = parentLayoutPath
|
|
93
|
-
? `s-dash-item
|
|
88
|
+
? `s-dash-item-${serializeLayoutItemPath(parentLayoutPath)}--container`
|
|
94
89
|
: `s-dash-item-${index}--container`;
|
|
90
|
+
const dashboardItemClassNames = cx(dashboardItemClasses, {
|
|
91
|
+
"gd-first-container-row-widget": rowIndex === 0,
|
|
92
|
+
});
|
|
95
93
|
return (React.createElement(RenderModeAwareDashboardNestedLayoutWidget
|
|
96
94
|
// nested layout widget merges layout and other widget props into single object. Split them here
|
|
97
95
|
, {
|
|
98
96
|
// nested layout widget merges layout and other widget props into single object. Split them here
|
|
99
|
-
widget: widget, layout: widget, onFiltersChange: onFiltersChange, parentLayoutItemSize: parentLayoutItemSize, parentLayoutPath: parentLayoutPath, dashboardItemClasses:
|
|
100
|
-
"gd-first-in-container": firstInContainer,
|
|
101
|
-
}) }));
|
|
97
|
+
widget: widget, layout: widget, onFiltersChange: onFiltersChange, parentLayoutItemSize: parentLayoutItemSize, parentLayoutPath: parentLayoutPath, dashboardItemClasses: dashboardItemClassNames }));
|
|
102
98
|
}
|
|
103
99
|
return React.createElement("div", null, "Unknown widget");
|
|
104
100
|
});
|
|
@@ -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,EAChB,6BAA6B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,+BAA+B,GAClC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,GAC3B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAExF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,qCAAqC,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,sCAAsC,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,mDAAmD,EAAE,MAAM,sFAAsF,CAAC;AAC3J,OAAO,EAAE,0CAA0C,EAAE,MAAM,6EAA6E,CAAC;AACzI,OAAO,EAAE,
|
|
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,EAChB,6BAA6B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B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AE,CAAC;QACnB,OAAO,CACH,oBAAC,eAAe,IAAC,OAAO,EAAE,mBAAmB;YACzC,oBAAC,eAAe,IACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAS,GACrB,CACY,CACrB,CAAC;IACN,CAAC;SAAM,IAAI,uBAAuB,IAAI,+BAA+B,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5E,MAAM,oBAAoB,GAAG,gBAAgB;YACzC,CAAC,CAAC,eAAe,uBAAuB,CAAC,gBAAgB,CAAC,aAAa;YACvE,CAAC,CAAC,eAAe,KAAK,aAAa,CAAC;QACxC,MAAM,uBAAuB,GAAG,EAAE,CAAC,oBAAoB,EAAE;YACrD,+BAA+B,EAAE,QAAQ,KAAK,CAAC;SAClD,CAAC,CAAC;QACH,OAAO,CACH,oBAAC,0CAA0C;QACvC,gGAAgG;;YAAhG,gGAAgG;YAChG,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,oBAAoB,EAAE,uBAAuB,GAC/C,CACL,CAAC;IACN,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,
|
|
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;AAwBpD,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAIjE,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mCAAmC,EAAE,SAAS,CAAC,CAIxG,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// (C) 2020-
|
|
2
|
-
import React, { useMemo, useCallback
|
|
1
|
+
// (C) 2020-2025 GoodData Corporation
|
|
2
|
+
import React, { useMemo, useCallback } from "react";
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { widgetTitle, insightVisualizationType } from "@gooddata/sdk-model";
|
|
6
|
-
import { useDashboardSelector, selectSettings, useDashboardScheduledEmails,
|
|
6
|
+
import { useDashboardSelector, selectSettings, useDashboardScheduledEmails, } from "../../../../model/index.js";
|
|
7
7
|
import { DashboardItem, DashboardItemHeadline, DashboardItemVisualization, getVisTypeCssClass, } from "../../../presentationComponents/index.js";
|
|
8
8
|
import { DashboardInsight } from "../../insight/index.js";
|
|
9
9
|
import { useInsightExport } from "../../common/index.js";
|
|
@@ -12,9 +12,7 @@ import { InsightWidgetDescriptionTrigger } from "../../description/InsightWidget
|
|
|
12
12
|
import { useInsightMenu } from "./useInsightMenu.js";
|
|
13
13
|
import { DashboardWidgetInsightGuard } from "./DashboardWidgetInsightGuard.js";
|
|
14
14
|
import { useAlertingAndScheduling } from "./useAlertingAndScheduling.js";
|
|
15
|
-
import {
|
|
16
|
-
const selectIsWidgetHighlighted = (widgetId) => createSelector(selectAutomationId, selectDashboardUserAutomations, (automationId, automations) => !!automationId &&
|
|
17
|
-
automations?.some((a) => a.id === automationId && a.metadata?.widget === widgetId));
|
|
15
|
+
import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
|
|
18
16
|
export const DefaultDashboardInsightWidget = (props) => {
|
|
19
17
|
return React.createElement(DashboardWidgetInsightGuard, { ...props, Component: DefaultDashboardInsightWidgetCore });
|
|
20
18
|
};
|
|
@@ -72,22 +70,8 @@ const DefaultDashboardInsightWidgetCore = ({ widget, insight, screen, onError, o
|
|
|
72
70
|
const { InsightMenuButtonComponentProvider, InsightMenuComponentProvider, ErrorComponent, LoadingComponent, } = useDashboardComponentsContext();
|
|
73
71
|
const InsightMenuButtonComponent = useMemo(() => InsightMenuButtonComponentProvider(insight, widget), [InsightMenuButtonComponentProvider, insight, widget]);
|
|
74
72
|
const InsightMenuComponent = useMemo(() => InsightMenuComponentProvider(insight, widget), [InsightMenuComponentProvider, insight, widget]);
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
useEffect(() => {
|
|
78
|
-
let timeout;
|
|
79
|
-
if (isHighlighted) {
|
|
80
|
-
timeout = setTimeout(() => {
|
|
81
|
-
setIgnoreHighlight(true);
|
|
82
|
-
}, 5000);
|
|
83
|
-
}
|
|
84
|
-
return () => {
|
|
85
|
-
if (timeout) {
|
|
86
|
-
clearTimeout(timeout);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}, [isHighlighted]);
|
|
90
|
-
return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", getVisTypeCssClass(widget.type, visType), { "gd-highlighted": isHighlighted && !ignoreHighlight }), screen: screen },
|
|
73
|
+
const { elementRef, highlighted } = useWidgetHighlighting(widget);
|
|
74
|
+
return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", getVisTypeCssClass(widget.type, visType), { "gd-highlighted": highlighted }), screen: screen, ref: elementRef },
|
|
91
75
|
React.createElement(DashboardItemVisualization, { renderHeadline: (clientHeight) => !widget.configuration?.hideTitle && (React.createElement(DashboardItemHeadline, { title: widget.title, clientHeight: clientHeight })), renderBeforeVisualization: () => (React.createElement("div", { className: "gd-absolute-row" },
|
|
92
76
|
settings?.enableDescriptions ? (React.createElement(InsightWidgetDescriptionTrigger, { insight: insight, widget: widget, screen: screen })) : null,
|
|
93
77
|
React.createElement(InsightMenuButtonComponent, { insight: insight, widget: widget, isOpen: isMenuOpen, onClick: toggleMenu, items: menuItems }))), renderAfterContent: () => {
|
|
@@ -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,
|
|
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,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;AAEvG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EA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E,WAAW,EAAE,EAAE,EAAE,CAAC,CAChC,oBAAC,gBAAgB,IACb,YAAY,EAAE,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"}
|
package/esm/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardRichTextWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardRichTextWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAIlE;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,oCAAoC,CAoBzF,CAAC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { DashboardItem, DashboardItemBase } from "../../../presentationComponents/index.js";
|
|
5
5
|
import { DashboardRichText } from "../../richText/DashboardRichText.js";
|
|
6
|
+
import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
|
|
6
7
|
/**
|
|
7
8
|
* @internal
|
|
8
9
|
*/
|
|
9
10
|
export const DefaultDashboardRichTextWidget = ({ widget, screen, dashboardItemClasses, }) => {
|
|
10
|
-
|
|
11
|
+
const { elementRef, highlighted } = useWidgetHighlighting(widget);
|
|
12
|
+
return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", {
|
|
13
|
+
"gd-highlighted": highlighted,
|
|
14
|
+
}), screen: screen, ref: elementRef },
|
|
11
15
|
React.createElement(DashboardItemBase, { visualizationClassName: "gd-rich-text-widget-wrapper" }, () => React.createElement(DashboardRichText, { widget: widget }))));
|
|
12
16
|
};
|
|
13
17
|
//# sourceMappingURL=DefaultDashboardRichTextWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardRichTextWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardRichTextWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/RichTextWidget/DefaultDashboardRichTextWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAmD,CAAC,EAC3F,MAAM,EACN,MAAM,EACN,oBAAoB,GACvB,EAAE,EAAE;IACD,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAElE,OAAO,CACH,oBAAC,aAAa,IACV,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE;YAClF,gBAAgB,EAAE,WAAW;SAChC,CAAC,EACF,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU;QAEf,oBAAC,iBAAiB,IAAC,sBAAsB,EAAC,6BAA6B,IAClE,GAAG,EAAE,CAAC,oBAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,GAAI,CAC5B,CACR,CACnB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iDAAiD,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iDAAiD,EAAE,MAAM,YAAY,CAAC;AAI/E;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,KAAK,CAAC,EAAE,CAC9D,iDAAiD,CAiBpD,CAAC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
// (C) 2020-
|
|
1
|
+
// (C) 2020-2025 GoodData Corporation
|
|
2
2
|
import React from "react";
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import { DashboardItem, DashboardItemBase } from "../../../presentationComponents/index.js";
|
|
5
5
|
import { DashboardVisualizationSwitcher } from "../../visualizationSwitcher/DashboardVisualizationSwitcher.js";
|
|
6
|
+
import { useWidgetHighlighting } from "../../common/useWidgetHighlighting.js";
|
|
6
7
|
/**
|
|
7
8
|
* @internal
|
|
8
9
|
*/
|
|
9
10
|
export const DefaultDashboardVisualizationSwitcherWidget = ({ widget, screen, dashboardItemClasses }) => {
|
|
10
|
-
|
|
11
|
+
const { elementRef, highlighted } = useWidgetHighlighting(widget);
|
|
12
|
+
return (React.createElement(DashboardItem, { className: cx(dashboardItemClasses, "type-visualization", "gd-dashboard-view-widget", {
|
|
13
|
+
"gd-highlighted": highlighted,
|
|
14
|
+
}), screen: screen, ref: elementRef },
|
|
11
15
|
React.createElement(DashboardItemBase, { visualizationClassName: "gd-visualization-switcher-widget-wrapper" }, () => React.createElement(DashboardVisualizationSwitcher, { widget: widget, screen: screen }))));
|
|
12
16
|
};
|
|
13
17
|
//# sourceMappingURL=DefaultDashboardVisualizationSwitcherWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,8BAA8B,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultDashboardVisualizationSwitcherWidget.js","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,EAAE,8BAA8B,EAAE,MAAM,+DAA+D,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAEpD,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,EAAE,EAAE;IAC7C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAElE,OAAO,CACH,oBAAC,aAAa,IACV,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,0BAA0B,EAAE;YAClF,gBAAgB,EAAE,WAAW;SAChC,CAAC,EACF,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU;QAEf,oBAAC,iBAAiB,IAAC,sBAAsB,EAAC,0CAA0C,IAC/E,GAAG,EAAE,CAAC,oBAAC,8BAA8B,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,CACzD,CACR,CACnB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -115,6 +115,16 @@ export interface IDashboardWidgetProps {
|
|
|
115
115
|
* @alpha
|
|
116
116
|
*/
|
|
117
117
|
showMenu?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Zero-based index of the row in which the item is rendered,
|
|
120
|
+
*
|
|
121
|
+
* @alpha
|
|
122
|
+
*
|
|
123
|
+
* @remarks
|
|
124
|
+
* Optional only for the compatibility reasons with old fluid layout.
|
|
125
|
+
* Once the flexible layout is the only one supported, it can be set as required.
|
|
126
|
+
*/
|
|
127
|
+
rowIndex?: number;
|
|
118
128
|
}
|
|
119
129
|
/**
|
|
120
130
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACH,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gCAAgC,EACnC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAEjC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;IAExD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC;IAEnC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,aAAa,EAAE,CAAC;IAE1C;;;;OAIG;IACH,cAAc,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IAE3C;;;;OAIG;IACH,gBAAgB,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAE/C;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,0BAA0B,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,gBAAgB,GAAG,iBAAiB,CAAC,EAAE,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAErG;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAE7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/widget/widget/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACH,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,gCAAgC,EACnC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAEjC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;IAExD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC;IAEnC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE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