@perses-dev/dashboards 0.53.0-rc.1 → 0.53.0-rc.3
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/dist/cjs/components/AddGroupButton/AddGroupButton.js +1 -1
- package/dist/cjs/components/AddGroupButton/index.js +1 -1
- package/dist/cjs/components/AddPanelButton/AddPanelButton.js +1 -1
- package/dist/cjs/components/AddPanelButton/index.js +1 -1
- package/dist/cjs/components/Dashboard/Dashboard.js +1 -1
- package/dist/cjs/components/Dashboard/index.js +1 -1
- package/dist/cjs/components/DashboardStickyToolbar/DashboardStickyToolbar.js +6 -2
- package/dist/cjs/components/DashboardStickyToolbar/index.js +1 -1
- package/dist/cjs/components/DashboardToolbar/DashboardToolbar.js +6 -2
- package/dist/cjs/components/DashboardToolbar/index.js +1 -1
- package/dist/cjs/components/Datasources/DatasourceEditor.js +1 -1
- package/dist/cjs/components/Datasources/EditDatasourcesButton.js +1 -1
- package/dist/cjs/components/Datasources/index.js +1 -1
- package/dist/cjs/components/DeletePanelDialog/DeletePanelDialog.js +1 -1
- package/dist/cjs/components/DeletePanelDialog/index.js +1 -1
- package/dist/cjs/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js +1 -1
- package/dist/cjs/components/DeletePanelGroupDialog/index.js +1 -1
- package/dist/cjs/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js +1 -1
- package/dist/cjs/components/DiscardChangesConfirmationDialog/index.js +1 -1
- package/dist/cjs/components/DownloadButton/DownloadButton.js +8 -4
- package/dist/cjs/components/DownloadButton/index.js +1 -1
- package/dist/cjs/components/DownloadButton/serializeDashboard.js +22 -2
- package/dist/cjs/components/EditButton/EditButton.js +1 -1
- package/dist/cjs/components/EditButton/index.js +1 -1
- package/dist/cjs/components/EditJsonButton/EditJsonButton.js +1 -1
- package/dist/cjs/components/EditJsonButton/index.js +1 -1
- package/dist/cjs/components/EditJsonDialog/EditJsonDialog.js +1 -1
- package/dist/cjs/components/EditJsonDialog/index.js +1 -1
- package/dist/cjs/components/EmptyDashboard/EmptyDashboard.js +1 -1
- package/dist/cjs/components/EmptyDashboard/index.js +1 -1
- package/dist/cjs/components/GridLayout/GridContainer.js +1 -1
- package/dist/cjs/components/GridLayout/GridItemContent.js +1 -1
- package/dist/cjs/components/GridLayout/GridLayout.js +1 -1
- package/dist/cjs/components/GridLayout/GridTitle.js +1 -1
- package/dist/cjs/components/GridLayout/Row.js +1 -1
- package/dist/cjs/components/GridLayout/index.js +1 -1
- package/dist/cjs/components/LeaveDialog/LeaveDialog.js +1 -1
- package/dist/cjs/components/LeaveDialog/index.js +1 -1
- package/dist/cjs/components/Panel/HeaderIconButton.js +1 -1
- package/dist/cjs/components/Panel/Panel.js +84 -102
- package/dist/cjs/components/Panel/PanelActions.js +22 -6
- package/dist/cjs/components/Panel/PanelContent.js +1 -1
- package/dist/cjs/components/Panel/PanelHeader.js +84 -44
- package/dist/cjs/components/Panel/PanelLinks.js +1 -1
- package/dist/cjs/components/Panel/PanelPluginLoader.js +1 -1
- package/dist/cjs/components/Panel/index.js +2 -1
- package/dist/cjs/components/Panel/useSelectionItemActions.js +206 -0
- package/dist/cjs/components/PanelDrawer/PanelDrawer.js +21 -4
- package/dist/cjs/components/PanelDrawer/PanelEditorForm.js +32 -8
- package/dist/cjs/components/PanelDrawer/PanelPreview.js +6 -5
- package/dist/cjs/components/PanelDrawer/PanelQueriesSharedControls.js +1 -1
- package/dist/cjs/components/PanelDrawer/index.js +1 -1
- package/dist/cjs/components/PanelDrawer/usePanelEditor.js +12 -7
- package/dist/cjs/components/PanelGroupDialog/PanelGroupDialog.js +1 -1
- package/dist/cjs/components/PanelGroupDialog/PanelGroupEditorForm.js +1 -1
- package/dist/cjs/components/PanelGroupDialog/index.js +1 -1
- package/dist/cjs/components/QuerySummaryTable/QuerySummaryTable.js +1 -1
- package/dist/cjs/components/QuerySummaryTable/index.js +1 -1
- package/dist/cjs/components/QueryViewerDialog/QueryViewerDialog.js +1 -1
- package/dist/cjs/components/QueryViewerDialog/index.js +1 -1
- package/dist/cjs/components/SaveChangesConfirmationDialog/SaveChangesConfirmationDialog.js +1 -1
- package/dist/cjs/components/SaveChangesConfirmationDialog/index.js +1 -1
- package/dist/cjs/components/SaveDashboardButton/SaveDashboardButton.js +1 -1
- package/dist/cjs/components/SaveDashboardButton/index.js +1 -1
- package/dist/cjs/components/Variables/BuiltinVariableAccordions.js +1 -1
- package/dist/cjs/components/Variables/EditVariablesButton.js +1 -1
- package/dist/cjs/components/Variables/ListVariableListBox.js +1 -1
- package/dist/cjs/components/Variables/Variable.js +1 -1
- package/dist/cjs/components/Variables/VariableEditor.js +27 -1
- package/dist/cjs/components/Variables/VariableList.js +1 -1
- package/dist/cjs/components/Variables/index.js +1 -1
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/constants/grid-layout-config.js +1 -1
- package/dist/cjs/constants/index.js +1 -1
- package/dist/cjs/constants/styles.js +1 -1
- package/dist/cjs/constants/user-interface-text.js +8 -8
- package/dist/cjs/context/DashboardProvider/DashboardProvider.js +1 -1
- package/dist/cjs/context/DashboardProvider/DashboardProviderWithQueryParams.js +1 -1
- package/dist/cjs/context/DashboardProvider/common.js +1 -1
- package/dist/cjs/context/DashboardProvider/dashboard-provider-api.js +15 -1
- package/dist/cjs/context/DashboardProvider/delete-panel-group-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/delete-panel-slice.js +2 -2
- package/dist/cjs/context/DashboardProvider/discard-changes-dialog-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/duplicate-panel-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/edit-json-dialog-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/index.js +1 -1
- package/dist/cjs/context/DashboardProvider/panel-editor-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/panel-group-editor-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/panel-group-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/panel-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/save-changes-dialog-slice.js +1 -1
- package/dist/cjs/context/DashboardProvider/view-panel-slice.js +1 -1
- package/dist/cjs/context/DatasourceStoreProvider.js +1 -1
- package/dist/cjs/context/PanelEditorProvider/PanelEditorProvider.js +1 -1
- package/dist/cjs/context/PanelEditorProvider/index.js +1 -1
- package/dist/cjs/context/VariableProvider/VariableProvider.js +1 -1
- package/dist/cjs/context/VariableProvider/hydrationUtils.js +1 -1
- package/dist/cjs/context/VariableProvider/index.js +1 -1
- package/dist/cjs/context/VariableProvider/query-params.js +1 -1
- package/dist/cjs/context/VariableProvider/utils.js +1 -1
- package/dist/cjs/context/index.js +1 -1
- package/dist/cjs/context/useDashboard.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/test/dashboard-provider.js +1 -1
- package/dist/cjs/test/datasource-provider.js +1 -1
- package/dist/cjs/test/index.js +1 -1
- package/dist/cjs/test/plugin-registry.js +1 -1
- package/dist/cjs/test/render.js +1 -1
- package/dist/cjs/test/setup-tests.js +1 -1
- package/dist/cjs/test/testDashboard.js +1 -1
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/panelUtils.js +1 -1
- package/dist/cjs/views/ViewDashboard/DashboardApp.js +1 -1
- package/dist/cjs/views/ViewDashboard/ViewDashboard.js +1 -1
- package/dist/cjs/views/ViewDashboard/index.js +1 -1
- package/dist/cjs/views/index.js +1 -1
- package/dist/components/AddGroupButton/AddGroupButton.js +1 -1
- package/dist/components/AddGroupButton/AddGroupButton.js.map +1 -1
- package/dist/components/AddGroupButton/index.js +1 -1
- package/dist/components/AddGroupButton/index.js.map +1 -1
- package/dist/components/AddPanelButton/AddPanelButton.js +1 -1
- package/dist/components/AddPanelButton/AddPanelButton.js.map +1 -1
- package/dist/components/AddPanelButton/index.js +1 -1
- package/dist/components/AddPanelButton/index.js.map +1 -1
- package/dist/components/Dashboard/Dashboard.js +1 -1
- package/dist/components/Dashboard/Dashboard.js.map +1 -1
- package/dist/components/Dashboard/index.js +1 -1
- package/dist/components/Dashboard/index.js.map +1 -1
- package/dist/components/DashboardStickyToolbar/DashboardStickyToolbar.d.ts.map +1 -1
- package/dist/components/DashboardStickyToolbar/DashboardStickyToolbar.js +7 -3
- package/dist/components/DashboardStickyToolbar/DashboardStickyToolbar.js.map +1 -1
- package/dist/components/DashboardStickyToolbar/index.js +1 -1
- package/dist/components/DashboardStickyToolbar/index.js.map +1 -1
- package/dist/components/DashboardToolbar/DashboardToolbar.d.ts.map +1 -1
- package/dist/components/DashboardToolbar/DashboardToolbar.js +7 -3
- package/dist/components/DashboardToolbar/DashboardToolbar.js.map +1 -1
- package/dist/components/DashboardToolbar/index.js +1 -1
- package/dist/components/DashboardToolbar/index.js.map +1 -1
- package/dist/components/Datasources/DatasourceEditor.js +1 -1
- package/dist/components/Datasources/DatasourceEditor.js.map +1 -1
- package/dist/components/Datasources/EditDatasourcesButton.js +1 -1
- package/dist/components/Datasources/EditDatasourcesButton.js.map +1 -1
- package/dist/components/Datasources/index.js +1 -1
- package/dist/components/Datasources/index.js.map +1 -1
- package/dist/components/DeletePanelDialog/DeletePanelDialog.js +1 -1
- package/dist/components/DeletePanelDialog/DeletePanelDialog.js.map +1 -1
- package/dist/components/DeletePanelDialog/index.js +1 -1
- package/dist/components/DeletePanelDialog/index.js.map +1 -1
- package/dist/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js +1 -1
- package/dist/components/DeletePanelGroupDialog/DeletePanelGroupDialog.js.map +1 -1
- package/dist/components/DeletePanelGroupDialog/index.js +1 -1
- package/dist/components/DeletePanelGroupDialog/index.js.map +1 -1
- package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js +1 -1
- package/dist/components/DiscardChangesConfirmationDialog/DiscardChangesConfirmationDialog.js.map +1 -1
- package/dist/components/DiscardChangesConfirmationDialog/index.js +1 -1
- package/dist/components/DiscardChangesConfirmationDialog/index.js.map +1 -1
- package/dist/components/DownloadButton/DownloadButton.d.ts.map +1 -1
- package/dist/components/DownloadButton/DownloadButton.js +8 -4
- package/dist/components/DownloadButton/DownloadButton.js.map +1 -1
- package/dist/components/DownloadButton/index.js +1 -1
- package/dist/components/DownloadButton/index.js.map +1 -1
- package/dist/components/DownloadButton/serializeDashboard.d.ts +1 -1
- package/dist/components/DownloadButton/serializeDashboard.d.ts.map +1 -1
- package/dist/components/DownloadButton/serializeDashboard.js +22 -2
- package/dist/components/DownloadButton/serializeDashboard.js.map +1 -1
- package/dist/components/EditButton/EditButton.js +1 -1
- package/dist/components/EditButton/EditButton.js.map +1 -1
- package/dist/components/EditButton/index.js +1 -1
- package/dist/components/EditButton/index.js.map +1 -1
- package/dist/components/EditJsonButton/EditJsonButton.js +1 -1
- package/dist/components/EditJsonButton/EditJsonButton.js.map +1 -1
- package/dist/components/EditJsonButton/index.js +1 -1
- package/dist/components/EditJsonButton/index.js.map +1 -1
- package/dist/components/EditJsonDialog/EditJsonDialog.js +1 -1
- package/dist/components/EditJsonDialog/EditJsonDialog.js.map +1 -1
- package/dist/components/EditJsonDialog/index.js +1 -1
- package/dist/components/EditJsonDialog/index.js.map +1 -1
- package/dist/components/EmptyDashboard/EmptyDashboard.js +1 -1
- package/dist/components/EmptyDashboard/EmptyDashboard.js.map +1 -1
- package/dist/components/EmptyDashboard/index.js +1 -1
- package/dist/components/EmptyDashboard/index.js.map +1 -1
- package/dist/components/GridLayout/GridContainer.js +1 -1
- package/dist/components/GridLayout/GridContainer.js.map +1 -1
- package/dist/components/GridLayout/GridItemContent.js +1 -1
- package/dist/components/GridLayout/GridItemContent.js.map +1 -1
- package/dist/components/GridLayout/GridLayout.js +1 -1
- package/dist/components/GridLayout/GridLayout.js.map +1 -1
- package/dist/components/GridLayout/GridTitle.js +1 -1
- package/dist/components/GridLayout/GridTitle.js.map +1 -1
- package/dist/components/GridLayout/Row.js +1 -1
- package/dist/components/GridLayout/Row.js.map +1 -1
- package/dist/components/GridLayout/index.js +1 -1
- package/dist/components/GridLayout/index.js.map +1 -1
- package/dist/components/LeaveDialog/LeaveDialog.js +1 -1
- package/dist/components/LeaveDialog/LeaveDialog.js.map +1 -1
- package/dist/components/LeaveDialog/index.js +1 -1
- package/dist/components/LeaveDialog/index.js.map +1 -1
- package/dist/components/Panel/HeaderIconButton.js +1 -1
- package/dist/components/Panel/HeaderIconButton.js.map +1 -1
- package/dist/components/Panel/Panel.d.ts.map +1 -1
- package/dist/components/Panel/Panel.js +86 -104
- package/dist/components/Panel/Panel.js.map +1 -1
- package/dist/components/Panel/PanelActions.d.ts +3 -1
- package/dist/components/Panel/PanelActions.d.ts.map +1 -1
- package/dist/components/Panel/PanelActions.js +22 -6
- package/dist/components/Panel/PanelActions.js.map +1 -1
- package/dist/components/Panel/PanelContent.js +1 -1
- package/dist/components/Panel/PanelContent.js.map +1 -1
- package/dist/components/Panel/PanelHeader.d.ts +4 -3
- package/dist/components/Panel/PanelHeader.d.ts.map +1 -1
- package/dist/components/Panel/PanelHeader.js +86 -46
- package/dist/components/Panel/PanelHeader.js.map +1 -1
- package/dist/components/Panel/PanelLinks.js +1 -1
- package/dist/components/Panel/PanelLinks.js.map +1 -1
- package/dist/components/Panel/PanelPluginLoader.js +1 -1
- package/dist/components/Panel/PanelPluginLoader.js.map +1 -1
- package/dist/components/Panel/index.d.ts +1 -0
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +2 -1
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Panel/useSelectionItemActions.d.ts +22 -0
- package/dist/components/Panel/useSelectionItemActions.d.ts.map +1 -0
- package/dist/components/Panel/useSelectionItemActions.js +200 -0
- package/dist/components/Panel/useSelectionItemActions.js.map +1 -0
- package/dist/components/PanelDrawer/PanelDrawer.d.ts.map +1 -1
- package/dist/components/PanelDrawer/PanelDrawer.js +22 -5
- package/dist/components/PanelDrawer/PanelDrawer.js.map +1 -1
- package/dist/components/PanelDrawer/PanelEditorForm.d.ts +1 -0
- package/dist/components/PanelDrawer/PanelEditorForm.d.ts.map +1 -1
- package/dist/components/PanelDrawer/PanelEditorForm.js +32 -8
- package/dist/components/PanelDrawer/PanelEditorForm.js.map +1 -1
- package/dist/components/PanelDrawer/PanelPreview.d.ts.map +1 -1
- package/dist/components/PanelDrawer/PanelPreview.js +7 -6
- package/dist/components/PanelDrawer/PanelPreview.js.map +1 -1
- package/dist/components/PanelDrawer/PanelQueriesSharedControls.js +1 -1
- package/dist/components/PanelDrawer/PanelQueriesSharedControls.js.map +1 -1
- package/dist/components/PanelDrawer/index.js +1 -1
- package/dist/components/PanelDrawer/index.js.map +1 -1
- package/dist/components/PanelDrawer/usePanelEditor.d.ts.map +1 -1
- package/dist/components/PanelDrawer/usePanelEditor.js +12 -7
- package/dist/components/PanelDrawer/usePanelEditor.js.map +1 -1
- package/dist/components/PanelGroupDialog/PanelGroupDialog.js +1 -1
- package/dist/components/PanelGroupDialog/PanelGroupDialog.js.map +1 -1
- package/dist/components/PanelGroupDialog/PanelGroupEditorForm.js +1 -1
- package/dist/components/PanelGroupDialog/PanelGroupEditorForm.js.map +1 -1
- package/dist/components/PanelGroupDialog/index.js +1 -1
- package/dist/components/PanelGroupDialog/index.js.map +1 -1
- package/dist/components/QuerySummaryTable/QuerySummaryTable.js +1 -1
- package/dist/components/QuerySummaryTable/QuerySummaryTable.js.map +1 -1
- package/dist/components/QuerySummaryTable/index.js +1 -1
- package/dist/components/QuerySummaryTable/index.js.map +1 -1
- package/dist/components/QueryViewerDialog/QueryViewerDialog.js +1 -1
- package/dist/components/QueryViewerDialog/QueryViewerDialog.js.map +1 -1
- package/dist/components/QueryViewerDialog/index.js +1 -1
- package/dist/components/QueryViewerDialog/index.js.map +1 -1
- package/dist/components/SaveChangesConfirmationDialog/SaveChangesConfirmationDialog.js +1 -1
- package/dist/components/SaveChangesConfirmationDialog/SaveChangesConfirmationDialog.js.map +1 -1
- package/dist/components/SaveChangesConfirmationDialog/index.js +1 -1
- package/dist/components/SaveChangesConfirmationDialog/index.js.map +1 -1
- package/dist/components/SaveDashboardButton/SaveDashboardButton.js +1 -1
- package/dist/components/SaveDashboardButton/SaveDashboardButton.js.map +1 -1
- package/dist/components/SaveDashboardButton/index.js +1 -1
- package/dist/components/SaveDashboardButton/index.js.map +1 -1
- package/dist/components/Variables/BuiltinVariableAccordions.js +1 -1
- package/dist/components/Variables/BuiltinVariableAccordions.js.map +1 -1
- package/dist/components/Variables/EditVariablesButton.js +1 -1
- package/dist/components/Variables/EditVariablesButton.js.map +1 -1
- package/dist/components/Variables/ListVariableListBox.js +1 -1
- package/dist/components/Variables/ListVariableListBox.js.map +1 -1
- package/dist/components/Variables/Variable.js +1 -1
- package/dist/components/Variables/Variable.js.map +1 -1
- package/dist/components/Variables/VariableEditor.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditor.js +27 -1
- package/dist/components/Variables/VariableEditor.js.map +1 -1
- package/dist/components/Variables/VariableList.js +1 -1
- package/dist/components/Variables/VariableList.js.map +1 -1
- package/dist/components/Variables/index.js +1 -1
- package/dist/components/Variables/index.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/constants/grid-layout-config.js +1 -1
- package/dist/constants/grid-layout-config.js.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/styles.js +1 -1
- package/dist/constants/styles.js.map +1 -1
- package/dist/constants/user-interface-text.d.ts +7 -7
- package/dist/constants/user-interface-text.d.ts.map +1 -1
- package/dist/constants/user-interface-text.js +8 -8
- package/dist/constants/user-interface-text.js.map +1 -1
- package/dist/context/DashboardProvider/DashboardProvider.js +1 -1
- package/dist/context/DashboardProvider/DashboardProvider.js.map +1 -1
- package/dist/context/DashboardProvider/DashboardProviderWithQueryParams.js +1 -1
- package/dist/context/DashboardProvider/DashboardProviderWithQueryParams.js.map +1 -1
- package/dist/context/DashboardProvider/common.js +1 -1
- package/dist/context/DashboardProvider/common.js.map +1 -1
- package/dist/context/DashboardProvider/dashboard-provider-api.d.ts +1 -0
- package/dist/context/DashboardProvider/dashboard-provider-api.d.ts.map +1 -1
- package/dist/context/DashboardProvider/dashboard-provider-api.js +12 -1
- package/dist/context/DashboardProvider/dashboard-provider-api.js.map +1 -1
- package/dist/context/DashboardProvider/delete-panel-group-slice.js +1 -1
- package/dist/context/DashboardProvider/delete-panel-group-slice.js.map +1 -1
- package/dist/context/DashboardProvider/delete-panel-slice.js +2 -2
- package/dist/context/DashboardProvider/delete-panel-slice.js.map +1 -1
- package/dist/context/DashboardProvider/discard-changes-dialog-slice.js +1 -1
- package/dist/context/DashboardProvider/discard-changes-dialog-slice.js.map +1 -1
- package/dist/context/DashboardProvider/duplicate-panel-slice.js +1 -1
- package/dist/context/DashboardProvider/duplicate-panel-slice.js.map +1 -1
- package/dist/context/DashboardProvider/edit-json-dialog-slice.js +1 -1
- package/dist/context/DashboardProvider/edit-json-dialog-slice.js.map +1 -1
- package/dist/context/DashboardProvider/index.js +1 -1
- package/dist/context/DashboardProvider/index.js.map +1 -1
- package/dist/context/DashboardProvider/panel-editor-slice.js +1 -1
- package/dist/context/DashboardProvider/panel-editor-slice.js.map +1 -1
- package/dist/context/DashboardProvider/panel-group-editor-slice.js +1 -1
- package/dist/context/DashboardProvider/panel-group-editor-slice.js.map +1 -1
- package/dist/context/DashboardProvider/panel-group-slice.js +1 -1
- package/dist/context/DashboardProvider/panel-group-slice.js.map +1 -1
- package/dist/context/DashboardProvider/panel-slice.js +1 -1
- package/dist/context/DashboardProvider/panel-slice.js.map +1 -1
- package/dist/context/DashboardProvider/save-changes-dialog-slice.js +1 -1
- package/dist/context/DashboardProvider/save-changes-dialog-slice.js.map +1 -1
- package/dist/context/DashboardProvider/view-panel-slice.js +1 -1
- package/dist/context/DashboardProvider/view-panel-slice.js.map +1 -1
- package/dist/context/DatasourceStoreProvider.js +1 -1
- package/dist/context/DatasourceStoreProvider.js.map +1 -1
- package/dist/context/PanelEditorProvider/PanelEditorProvider.js +1 -1
- package/dist/context/PanelEditorProvider/PanelEditorProvider.js.map +1 -1
- package/dist/context/PanelEditorProvider/index.js +1 -1
- package/dist/context/PanelEditorProvider/index.js.map +1 -1
- package/dist/context/VariableProvider/VariableProvider.js +1 -1
- package/dist/context/VariableProvider/VariableProvider.js.map +1 -1
- package/dist/context/VariableProvider/hydrationUtils.js +1 -1
- package/dist/context/VariableProvider/hydrationUtils.js.map +1 -1
- package/dist/context/VariableProvider/index.js +1 -1
- package/dist/context/VariableProvider/index.js.map +1 -1
- package/dist/context/VariableProvider/query-params.js +1 -1
- package/dist/context/VariableProvider/query-params.js.map +1 -1
- package/dist/context/VariableProvider/utils.js +1 -1
- package/dist/context/VariableProvider/utils.js.map +1 -1
- package/dist/context/index.js +1 -1
- package/dist/context/index.js.map +1 -1
- package/dist/context/useDashboard.js +1 -1
- package/dist/context/useDashboard.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/test/dashboard-provider.js +1 -1
- package/dist/test/dashboard-provider.js.map +1 -1
- package/dist/test/datasource-provider.js +1 -1
- package/dist/test/datasource-provider.js.map +1 -1
- package/dist/test/index.js +1 -1
- package/dist/test/index.js.map +1 -1
- package/dist/test/plugin-registry.js +1 -1
- package/dist/test/plugin-registry.js.map +1 -1
- package/dist/test/render.js +1 -1
- package/dist/test/render.js.map +1 -1
- package/dist/test/setup-tests.js +1 -1
- package/dist/test/setup-tests.js.map +1 -1
- package/dist/test/testDashboard.js +1 -1
- package/dist/test/testDashboard.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/panelUtils.js +1 -1
- package/dist/utils/panelUtils.js.map +1 -1
- package/dist/views/ViewDashboard/DashboardApp.js +1 -1
- package/dist/views/ViewDashboard/DashboardApp.js.map +1 -1
- package/dist/views/ViewDashboard/ViewDashboard.js +1 -1
- package/dist/views/ViewDashboard/ViewDashboard.js.map +1 -1
- package/dist/views/ViewDashboard/index.js +1 -1
- package/dist/views/ViewDashboard/index.js.map +1 -1
- package/dist/views/index.js +1 -1
- package/dist/views/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -39,6 +39,7 @@ function DashboardStickyToolbar(props) {
|
|
|
39
39
|
});
|
|
40
40
|
const isSticky = scrollTrigger && props.initialVariableIsSticky && isPin;
|
|
41
41
|
const isBiggerThanMd = (0, _material.useMediaQuery)((0, _material.useTheme)().breakpoints.up('md'));
|
|
42
|
+
const { timeZone, setTimeZone } = (0, _pluginsystem.useTimeZoneParams)('local');
|
|
42
43
|
return(// marginBottom={-1} counteracts the marginBottom={1} on every variable input.
|
|
43
44
|
// The margin on the inputs is for spacing between inputs, but is not meant to add space to bottom of the container.
|
|
44
45
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
@@ -99,7 +100,10 @@ function DashboardStickyToolbar(props) {
|
|
|
99
100
|
ml: isBiggerThanMd ? 1.5 : 'auto',
|
|
100
101
|
direction: "row",
|
|
101
102
|
justifyContent: "end",
|
|
102
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {
|
|
103
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {
|
|
104
|
+
timeZone: timeZone,
|
|
105
|
+
onTimeZoneChange: (tz)=>setTimeZone(tz.value)
|
|
106
|
+
})
|
|
103
107
|
})
|
|
104
108
|
]
|
|
105
109
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -37,6 +37,7 @@ const _DashboardStickyToolbar = require("../DashboardStickyToolbar");
|
|
|
37
37
|
const DashboardToolbar = (props)=>{
|
|
38
38
|
const { dashboardName, dashboardTitleComponent, initialVariableIsSticky, isReadonly, isVariableEnabled, isDatasourceEnabled, onEditButtonClick, onCancelButtonClick, onSave } = props;
|
|
39
39
|
const { isEditMode } = (0, _context.useEditMode)();
|
|
40
|
+
const { timeZone, setTimeZone } = (0, _pluginsystem.useTimeZoneParams)('local');
|
|
40
41
|
const isBiggerThanSm = (0, _material.useMediaQuery)((0, _material.useTheme)().breakpoints.up('sm'));
|
|
41
42
|
const isBiggerThanMd = (0, _material.useMediaQuery)((0, _material.useTheme)().breakpoints.up('md'));
|
|
42
43
|
const dashboardTitle = dashboardTitleComponent ? dashboardTitleComponent : /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
@@ -138,7 +139,10 @@ const DashboardToolbar = (props)=>{
|
|
|
138
139
|
mt: 1,
|
|
139
140
|
ml: 1,
|
|
140
141
|
children: [
|
|
141
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {
|
|
142
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.TimeRangeControls, {
|
|
143
|
+
timeZone: timeZone,
|
|
144
|
+
onTimeZoneChange: (tz)=>setTimeZone(tz.value)
|
|
145
|
+
}),
|
|
142
146
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_DownloadButton.DownloadButton, {}),
|
|
143
147
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_EditJsonButton.EditJsonButton, {
|
|
144
148
|
isReadonly: !isEditMode
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -92,7 +92,7 @@ function DownloadButton() {
|
|
|
92
92
|
type: contentType
|
|
93
93
|
}));
|
|
94
94
|
// Simulate click
|
|
95
|
-
hiddenLinkRef.current.download = `${dashboard.metadata.name}${shape
|
|
95
|
+
hiddenLinkRef.current.download = `${dashboard.metadata.name}${shape ? `-${shape}` : ''}.${format}`;
|
|
96
96
|
hiddenLinkRef.current.href = hiddenLinkUrl;
|
|
97
97
|
hiddenLinkRef.current.click();
|
|
98
98
|
// Remove blob URL (for memory management)
|
|
@@ -131,8 +131,12 @@ function DownloadButton() {
|
|
|
131
131
|
children: "YAML"
|
|
132
132
|
}),
|
|
133
133
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
|
|
134
|
-
onClick: handleItemClick('yaml', 'cr'),
|
|
135
|
-
children: "YAML (CR)"
|
|
134
|
+
onClick: handleItemClick('yaml', 'cr-v1alpha2'),
|
|
135
|
+
children: "YAML (CR v1alpha2)"
|
|
136
|
+
}),
|
|
137
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.MenuItem, {
|
|
138
|
+
onClick: handleItemClick('yaml', 'cr-v1alpha1'),
|
|
139
|
+
children: "YAML (CR v1alpha1)"
|
|
136
140
|
})
|
|
137
141
|
]
|
|
138
142
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "serializeDashboard", {
|
|
|
23
23
|
const _yaml = require("yaml");
|
|
24
24
|
function serializeYaml(dashboard, shape) {
|
|
25
25
|
let content;
|
|
26
|
-
if (shape === 'cr') {
|
|
26
|
+
if (shape === 'cr-v1alpha1') {
|
|
27
27
|
const name = dashboard.metadata.name.toLowerCase().replace(/[^a-z0-9-]/g, '-');
|
|
28
28
|
content = (0, _yaml.stringify)({
|
|
29
29
|
apiVersion: 'perses.dev/v1alpha1',
|
|
@@ -41,6 +41,26 @@ function serializeYaml(dashboard, shape) {
|
|
|
41
41
|
}, {
|
|
42
42
|
schema: 'yaml-1.1'
|
|
43
43
|
});
|
|
44
|
+
} else if (shape === 'cr-v1alpha2') {
|
|
45
|
+
const name = dashboard.metadata.name.toLowerCase().replace(/[^a-z0-9-]/g, '-');
|
|
46
|
+
content = (0, _yaml.stringify)({
|
|
47
|
+
apiVersion: 'perses.dev/v1alpha2',
|
|
48
|
+
kind: 'PersesDashboard',
|
|
49
|
+
metadata: {
|
|
50
|
+
labels: {
|
|
51
|
+
'app.kubernetes.io/name': 'perses-dashboard',
|
|
52
|
+
'app.kubernetes.io/instance': name,
|
|
53
|
+
'app.kubernetes.io/part-of': 'perses-operator'
|
|
54
|
+
},
|
|
55
|
+
name,
|
|
56
|
+
namespace: dashboard.metadata.project
|
|
57
|
+
},
|
|
58
|
+
spec: {
|
|
59
|
+
config: dashboard.spec
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
schema: 'yaml-1.1'
|
|
63
|
+
});
|
|
44
64
|
} else {
|
|
45
65
|
content = (0, _yaml.stringify)(dashboard, {
|
|
46
66
|
schema: 'yaml-1.1'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -72,31 +72,17 @@ const Panel = /*#__PURE__*/ (0, _react.memo)(function Panel(props) {
|
|
|
72
72
|
// Load plugin actions from the plugin
|
|
73
73
|
const [pluginActions, setPluginActions] = (0, _react.useState)([]);
|
|
74
74
|
(0, _react.useEffect)(()=>{
|
|
75
|
-
let cancelled = false;
|
|
76
75
|
const loadPluginActions = async ()=>{
|
|
77
76
|
const panelPluginKind = definition.spec.plugin.kind;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (!cancelled) {
|
|
81
|
-
setPluginActions([]);
|
|
82
|
-
}
|
|
77
|
+
if (!panelPluginKind || !panelPropsForActions || !getPlugin || typeof getPlugin !== 'function') {
|
|
78
|
+
setPluginActions([]);
|
|
83
79
|
return;
|
|
84
80
|
}
|
|
85
81
|
try {
|
|
86
|
-
// Add defensive check for getPlugin availability
|
|
87
|
-
if (!getPlugin || typeof getPlugin !== 'function') {
|
|
88
|
-
if (!cancelled) {
|
|
89
|
-
setPluginActions([]);
|
|
90
|
-
}
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
82
|
const plugin = await getPlugin('Panel', panelPluginKind);
|
|
94
|
-
if (cancelled) return;
|
|
95
83
|
// More defensive checking for plugin and actions
|
|
96
84
|
if (!plugin || typeof plugin !== 'object' || !plugin.actions || !Array.isArray(plugin.actions) || plugin.actions.length === 0) {
|
|
97
|
-
|
|
98
|
-
setPluginActions([]);
|
|
99
|
-
}
|
|
85
|
+
setPluginActions([]);
|
|
100
86
|
return;
|
|
101
87
|
}
|
|
102
88
|
// Render plugin actions in header location
|
|
@@ -105,31 +91,20 @@ const Panel = /*#__PURE__*/ (0, _react.memo)(function Panel(props) {
|
|
|
105
91
|
try {
|
|
106
92
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
107
93
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(ActionComponent, {
|
|
108
|
-
...
|
|
94
|
+
...panelPropsForActions
|
|
109
95
|
}, `plugin-action-${index}`);
|
|
110
96
|
} catch (error) {
|
|
111
97
|
console.warn(`Failed to render plugin action ${index}:`, error);
|
|
112
98
|
return null;
|
|
113
99
|
}
|
|
114
100
|
}).filter((item)=>Boolean(item));
|
|
115
|
-
|
|
116
|
-
setPluginActions(headerActions);
|
|
117
|
-
}
|
|
101
|
+
setPluginActions(headerActions);
|
|
118
102
|
} catch (error) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
setPluginActions([]);
|
|
122
|
-
}
|
|
103
|
+
console.warn('Failed to load plugin actions:', error);
|
|
104
|
+
setPluginActions([]);
|
|
123
105
|
}
|
|
124
106
|
};
|
|
125
|
-
|
|
126
|
-
const timeoutId = setTimeout(()=>{
|
|
127
|
-
loadPluginActions();
|
|
128
|
-
}, 0);
|
|
129
|
-
return ()=>{
|
|
130
|
-
cancelled = true;
|
|
131
|
-
clearTimeout(timeoutId);
|
|
132
|
-
};
|
|
107
|
+
loadPluginActions();
|
|
133
108
|
}, [
|
|
134
109
|
definition.spec.plugin.kind,
|
|
135
110
|
panelPropsForActions,
|
|
@@ -143,76 +118,83 @@ const Panel = /*#__PURE__*/ (0, _react.memo)(function Panel(props) {
|
|
|
143
118
|
};
|
|
144
119
|
// default value for showIcons: if the dashboard is in editing mode or the panel is in fullscreen mode: 'always', otherwise 'hover'
|
|
145
120
|
const showIcons = panelOptions?.showIcons ?? (editHandlers || readHandlers?.isPanelViewed ? 'always' : 'hover');
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
onMouseLeave: handleMouseLeave,
|
|
160
|
-
"aria-labelledby": headerId,
|
|
161
|
-
"aria-describedby": headerId,
|
|
162
|
-
"data-testid": "panel",
|
|
163
|
-
...others,
|
|
164
|
-
children: [
|
|
165
|
-
!panelOptions?.hideHeader && /*#__PURE__*/ (0, _jsxruntime.jsx)(_PanelHeader.PanelHeader, {
|
|
166
|
-
extra: panelOptions?.extra?.({
|
|
167
|
-
panelDefinition: definition,
|
|
168
|
-
panelGroupItemId
|
|
169
|
-
}),
|
|
170
|
-
id: headerId,
|
|
171
|
-
title: definition.spec.display.name,
|
|
172
|
-
description: definition.spec.display.description,
|
|
173
|
-
queryResults: queryResults,
|
|
174
|
-
readHandlers: readHandlers,
|
|
175
|
-
editHandlers: editHandlers,
|
|
176
|
-
viewQueriesHandler: viewQueriesHandler,
|
|
177
|
-
links: definition.spec.links,
|
|
178
|
-
pluginActions: pluginActions,
|
|
179
|
-
showIcons: showIcons,
|
|
180
|
-
sx: {
|
|
181
|
-
py: '2px',
|
|
182
|
-
pl: '8px',
|
|
183
|
-
pr: '2px'
|
|
184
|
-
},
|
|
185
|
-
dimension: contentDimensions
|
|
186
|
-
}),
|
|
187
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.CardContent, {
|
|
188
|
-
component: "figure",
|
|
189
|
-
sx: {
|
|
190
|
-
position: 'relative',
|
|
191
|
-
overflow: 'hidden',
|
|
192
|
-
flexGrow: 1,
|
|
193
|
-
margin: 0,
|
|
194
|
-
padding: 0,
|
|
195
|
-
// Override MUI default style for last-child
|
|
196
|
-
':last-child': {
|
|
197
|
-
padding: 0
|
|
121
|
+
const itemActionsConfig = definition.spec.plugin.spec?.actions ? definition.spec.plugin.spec.actions : undefined;
|
|
122
|
+
const itemActionsListConfig = itemActionsConfig?.enabled && itemActionsConfig.displayInHeader ? itemActionsConfig.actionsList : [];
|
|
123
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.SelectionProvider, {
|
|
124
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ItemActionsProvider, {
|
|
125
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Card, {
|
|
126
|
+
component: "section",
|
|
127
|
+
sx: (0, _components.combineSx)({
|
|
128
|
+
width: '100%',
|
|
129
|
+
height: '100%',
|
|
130
|
+
display: 'flex',
|
|
131
|
+
flexFlow: 'column nowrap',
|
|
132
|
+
':hover': {
|
|
133
|
+
'--panel-hover': 'block'
|
|
198
134
|
}
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
135
|
+
}, sx),
|
|
136
|
+
variant: "outlined",
|
|
137
|
+
onMouseEnter: handleMouseEnter,
|
|
138
|
+
onMouseLeave: handleMouseLeave,
|
|
139
|
+
"aria-labelledby": headerId,
|
|
140
|
+
"aria-describedby": headerId,
|
|
141
|
+
"data-testid": "panel",
|
|
142
|
+
...others,
|
|
143
|
+
children: [
|
|
144
|
+
!panelOptions?.hideHeader && /*#__PURE__*/ (0, _jsxruntime.jsx)(_PanelHeader.PanelHeader, {
|
|
145
|
+
extra: panelOptions?.extra?.({
|
|
146
|
+
panelDefinition: definition,
|
|
147
|
+
panelGroupItemId
|
|
148
|
+
}),
|
|
149
|
+
id: headerId,
|
|
150
|
+
title: definition.spec.display?.name ?? '',
|
|
151
|
+
description: definition.spec.display?.description,
|
|
152
|
+
queryResults: queryResults,
|
|
153
|
+
readHandlers: readHandlers,
|
|
154
|
+
editHandlers: editHandlers,
|
|
155
|
+
viewQueriesHandler: viewQueriesHandler,
|
|
156
|
+
links: definition.spec.links,
|
|
157
|
+
pluginActions: pluginActions,
|
|
158
|
+
itemActionsListConfig: itemActionsListConfig,
|
|
159
|
+
showIcons: showIcons,
|
|
160
|
+
sx: {
|
|
161
|
+
py: '2px',
|
|
162
|
+
pl: '8px',
|
|
163
|
+
pr: '2px'
|
|
164
|
+
},
|
|
165
|
+
dimension: contentDimensions
|
|
166
|
+
}),
|
|
167
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.CardContent, {
|
|
168
|
+
component: "figure",
|
|
169
|
+
sx: {
|
|
170
|
+
position: 'relative',
|
|
171
|
+
overflow: 'hidden',
|
|
172
|
+
flexGrow: 1,
|
|
173
|
+
margin: 0,
|
|
174
|
+
padding: 0,
|
|
175
|
+
// Override MUI default style for last-child
|
|
176
|
+
':last-child': {
|
|
177
|
+
padding: 0
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
ref: setContentElement,
|
|
181
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ErrorBoundary, {
|
|
182
|
+
FallbackComponent: _components.ErrorAlert,
|
|
183
|
+
resetKeys: [
|
|
184
|
+
definition.spec,
|
|
185
|
+
queryResults
|
|
186
|
+
],
|
|
187
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_PanelContent.PanelContent, {
|
|
188
|
+
definition: definition,
|
|
189
|
+
panelPluginKind: definition.spec.plugin.kind,
|
|
190
|
+
spec: definition.spec.plugin.spec,
|
|
191
|
+
contentDimensions: contentDimensions,
|
|
192
|
+
queryResults: queryResults
|
|
193
|
+
})
|
|
194
|
+
})
|
|
213
195
|
})
|
|
214
|
-
|
|
196
|
+
]
|
|
215
197
|
})
|
|
216
|
-
|
|
198
|
+
})
|
|
217
199
|
});
|
|
218
200
|
});
|