@perses-dev/plugin-system 0.55.0-beta.2 → 0.55.0-beta.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/Annotations/AnnotationEditorForm/AnnotationEditorForm.js +4 -4
- package/dist/cjs/components/Annotations/AnnotationEditorForm/AnnotationPreview.js +1 -1
- package/dist/cjs/components/DatasourceEditorForm/DatasourceEditorForm.js +3 -2
- package/dist/cjs/components/DatasourceSelect/DatasourceSelect.js +1 -1
- package/dist/cjs/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.js +53 -0
- package/dist/cjs/components/DatasourceTestConnectionButton/index.js +30 -0
- package/dist/cjs/components/HTTPSettingsEditor/HTTPSettingsEditor.js +49 -24
- package/dist/cjs/components/LayoutEditor/LayoutEditor.js +123 -0
- package/dist/cjs/components/LayoutEditor/RepeatLayoutPreview.js +105 -0
- package/dist/cjs/components/LayoutEditor/RepeatVariableEditor.js +176 -0
- package/dist/cjs/components/LayoutEditor/index.js +32 -0
- package/dist/cjs/components/LinksEditor/LinksEditor.js +4 -4
- package/dist/cjs/components/MultiQueryEditor/MultiQueryEditor.js +8 -5
- package/dist/cjs/components/MultiQueryEditor/QueryEditorContainer.js +7 -7
- package/dist/cjs/components/PanelSpecEditor/PanelAnnotationsEditor.js +4 -4
- package/dist/cjs/components/PanelSpecEditor/PanelSpecEditor.js +14 -5
- package/dist/cjs/components/PluginEditor/PluginEditor.js +4 -3
- package/dist/cjs/components/PluginEditor/plugin-editor-api.js +1 -1
- package/dist/cjs/components/PluginRegistry/PluginRegistry.js +1 -1
- package/dist/cjs/components/PluginSpecEditor/DatasourceSpecEditor.js +70 -0
- package/dist/cjs/components/PluginSpecEditor/PluginSpecEditor.js +17 -3
- package/dist/cjs/components/TimeRangeControls/TimeRangeControls.js +6 -7
- package/dist/cjs/components/Variables/VariableEditorForm/VariableEditorForm.js +5 -5
- package/dist/cjs/components/Variables/VariableEditorForm/VariablePreview.js +1 -1
- package/dist/cjs/components/index.js +2 -0
- package/dist/cjs/constants/index.js +1 -0
- package/dist/cjs/constants/repeat.js +32 -0
- package/dist/cjs/context/ValidationProvider.js +2 -2
- package/dist/cjs/model/index.js +1 -0
- package/dist/cjs/model/json-queries.js +16 -0
- package/dist/cjs/remote/PluginRuntime.js +12 -20
- package/dist/cjs/remote/remotePluginLoader.js +1 -1
- package/dist/cjs/runtime/DataQueriesProvider/DataQueriesProvider.js +14 -6
- package/dist/cjs/runtime/TimeRangeProvider/TimeRangeProvider.js +18 -4
- package/dist/cjs/runtime/TimeRangeProvider/TimeRangeProviders.js +2 -2
- package/dist/cjs/runtime/TimeRangeProvider/TimeRangeSettingsProvider.js +14 -1
- package/dist/cjs/runtime/TimeRangeProvider/query-params.js +2 -2
- package/dist/cjs/runtime/alerts-queries.js +1 -1
- package/dist/cjs/runtime/annotations.js +2 -2
- package/dist/cjs/runtime/index.js +1 -0
- package/dist/cjs/runtime/item-actions.js +1 -1
- package/dist/cjs/runtime/json-queries.js +70 -0
- package/dist/cjs/runtime/silences-queries.js +1 -1
- package/dist/cjs/runtime/time-series-queries.js +1 -1
- package/dist/cjs/runtime/trace-queries.js +1 -1
- package/dist/cjs/schema/panel.js +17 -3
- package/dist/cjs/test/mock-data.js +9 -0
- package/dist/cjs/test/setup-tests.js +9 -3
- package/dist/cjs/test/test-plugins/ernie/index.js +58 -1
- package/dist/cjs/utils/csv-export.js +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.d.ts +2 -2
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.d.ts.map +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js +4 -4
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js.map +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.d.ts +2 -2
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.d.ts.map +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.js +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.js.map +1 -1
- package/dist/components/CalculationSelector/CalculationSelector.d.ts.map +1 -1
- package/dist/components/CalculationSelector/CalculationSelector.js.map +1 -1
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.d.ts +2 -1
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.d.ts.map +1 -1
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.js +3 -2
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.js.map +1 -1
- package/dist/components/DatasourceSelect/DatasourceSelect.d.ts.map +1 -1
- package/dist/components/DatasourceSelect/DatasourceSelect.js +1 -1
- package/dist/components/DatasourceSelect/DatasourceSelect.js.map +1 -1
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.d.ts +8 -0
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.d.ts.map +1 -0
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.js +45 -0
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.js.map +1 -0
- package/dist/components/DatasourceTestConnectionButton/index.d.ts +2 -0
- package/dist/components/DatasourceTestConnectionButton/index.d.ts.map +1 -0
- package/dist/components/DatasourceTestConnectionButton/index.js +15 -0
- package/dist/components/DatasourceTestConnectionButton/index.js.map +1 -0
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.d.ts +2 -1
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.d.ts.map +1 -1
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.js +50 -25
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.js.map +1 -1
- package/dist/components/ItemSelectionActionsOptionsEditor/ItemSelectionActionsOptionsEditor.js.map +1 -1
- package/dist/components/LayoutEditor/LayoutEditor.d.ts +16 -0
- package/dist/components/LayoutEditor/LayoutEditor.d.ts.map +1 -0
- package/dist/components/LayoutEditor/LayoutEditor.js +115 -0
- package/dist/components/LayoutEditor/LayoutEditor.js.map +1 -0
- package/dist/components/LayoutEditor/RepeatLayoutPreview.d.ts +7 -0
- package/dist/components/LayoutEditor/RepeatLayoutPreview.d.ts.map +1 -0
- package/dist/components/LayoutEditor/RepeatLayoutPreview.js +92 -0
- package/dist/components/LayoutEditor/RepeatLayoutPreview.js.map +1 -0
- package/dist/components/LayoutEditor/RepeatVariableEditor.d.ts +18 -0
- package/dist/components/LayoutEditor/RepeatVariableEditor.d.ts.map +1 -0
- package/dist/components/LayoutEditor/RepeatVariableEditor.js +168 -0
- package/dist/components/LayoutEditor/RepeatVariableEditor.js.map +1 -0
- package/dist/components/LayoutEditor/index.d.ts +4 -0
- package/dist/components/LayoutEditor/index.d.ts.map +1 -0
- package/dist/components/LayoutEditor/index.js +17 -0
- package/dist/components/LayoutEditor/index.js.map +1 -0
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.d.ts.map +1 -1
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.js.map +1 -1
- package/dist/components/LinksEditor/LinksEditor.d.ts.map +1 -1
- package/dist/components/LinksEditor/LinksEditor.js +4 -4
- package/dist/components/LinksEditor/LinksEditor.js.map +1 -1
- package/dist/components/MultiQueryEditor/MultiQueryEditor.d.ts +0 -1
- package/dist/components/MultiQueryEditor/MultiQueryEditor.d.ts.map +1 -1
- package/dist/components/MultiQueryEditor/MultiQueryEditor.js +8 -5
- package/dist/components/MultiQueryEditor/MultiQueryEditor.js.map +1 -1
- package/dist/components/MultiQueryEditor/QueryEditorContainer.d.ts +0 -1
- package/dist/components/MultiQueryEditor/QueryEditorContainer.d.ts.map +1 -1
- package/dist/components/MultiQueryEditor/QueryEditorContainer.js +7 -7
- package/dist/components/MultiQueryEditor/QueryEditorContainer.js.map +1 -1
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.d.ts.map +1 -1
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.js.map +1 -1
- package/dist/components/OptionsEditorTabs/OptionsEditorTabs.d.ts.map +1 -1
- package/dist/components/OptionsEditorTabs/OptionsEditorTabs.js.map +1 -1
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.d.ts +1 -1
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.d.ts.map +1 -1
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.js +4 -4
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.js.map +1 -1
- package/dist/components/PanelSpecEditor/PanelSpecEditor.d.ts +3 -1
- package/dist/components/PanelSpecEditor/PanelSpecEditor.d.ts.map +1 -1
- package/dist/components/PanelSpecEditor/PanelSpecEditor.js +14 -5
- package/dist/components/PanelSpecEditor/PanelSpecEditor.js.map +1 -1
- package/dist/components/PluginEditor/PluginEditor.d.ts.map +1 -1
- package/dist/components/PluginEditor/PluginEditor.js +4 -3
- package/dist/components/PluginEditor/PluginEditor.js.map +1 -1
- package/dist/components/PluginEditor/plugin-editor-api.d.ts +2 -1
- package/dist/components/PluginEditor/plugin-editor-api.d.ts.map +1 -1
- package/dist/components/PluginEditor/plugin-editor-api.js +1 -1
- package/dist/components/PluginEditor/plugin-editor-api.js.map +1 -1
- package/dist/components/PluginKindSelect/PluginKindSelect.d.ts +0 -1
- package/dist/components/PluginKindSelect/PluginKindSelect.d.ts.map +1 -1
- package/dist/components/PluginKindSelect/PluginKindSelect.js.map +1 -1
- package/dist/components/PluginRegistry/PluginRegistry.d.ts.map +1 -1
- package/dist/components/PluginRegistry/PluginRegistry.js +1 -1
- package/dist/components/PluginRegistry/PluginRegistry.js.map +1 -1
- package/dist/components/PluginRegistry/getPluginSearchHelper.d.ts.map +1 -1
- package/dist/components/PluginRegistry/getPluginSearchHelper.js.map +1 -1
- package/dist/components/PluginRegistry/plugin-indexes.d.ts.map +1 -1
- package/dist/components/PluginRegistry/plugin-indexes.js.map +1 -1
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.d.ts +10 -0
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.d.ts.map +1 -0
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.js +62 -0
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.js.map +1 -0
- package/dist/components/PluginSpecEditor/PluginSpecEditor.d.ts +2 -1
- package/dist/components/PluginSpecEditor/PluginSpecEditor.d.ts.map +1 -1
- package/dist/components/PluginSpecEditor/PluginSpecEditor.js +17 -3
- package/dist/components/PluginSpecEditor/PluginSpecEditor.js.map +1 -1
- package/dist/components/TimeRangeControls/TimeRangeControls.d.ts.map +1 -1
- package/dist/components/TimeRangeControls/TimeRangeControls.js +9 -10
- package/dist/components/TimeRangeControls/TimeRangeControls.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.d.ts +2 -2
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.js +5 -5
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariablePreview.d.ts +1 -1
- package/dist/components/Variables/VariableEditorForm/VariablePreview.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariablePreview.js +1 -1
- package/dist/components/Variables/VariableEditorForm/VariablePreview.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.js.map +1 -1
- package/dist/components/Variables/variable-model.d.ts.map +1 -1
- package/dist/components/Variables/variable-model.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/repeat.d.ts +3 -0
- package/dist/constants/repeat.d.ts.map +1 -0
- package/dist/constants/repeat.js +16 -0
- package/dist/constants/repeat.js.map +1 -0
- package/dist/context/ValidationProvider.d.ts +2 -2
- package/dist/context/ValidationProvider.d.ts.map +1 -1
- package/dist/context/ValidationProvider.js +2 -2
- package/dist/context/ValidationProvider.js.map +1 -1
- package/dist/model/alerts-queries.d.ts +1 -1
- package/dist/model/alerts-queries.d.ts.map +1 -1
- package/dist/model/alerts-queries.js.map +1 -1
- package/dist/model/annotations.d.ts.map +1 -1
- package/dist/model/annotations.js.map +1 -1
- package/dist/model/calculations.js.map +1 -1
- package/dist/model/datasource.d.ts +9 -2
- package/dist/model/datasource.d.ts.map +1 -1
- package/dist/model/datasource.js +1 -1
- package/dist/model/datasource.js.map +1 -1
- package/dist/model/explore.d.ts +0 -1
- package/dist/model/explore.d.ts.map +1 -1
- package/dist/model/explore.js.map +1 -1
- package/dist/model/index.d.ts +1 -0
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/index.js +1 -0
- package/dist/model/index.js.map +1 -1
- package/dist/model/json-queries.d.ts +29 -0
- package/dist/model/json-queries.d.ts.map +1 -0
- package/dist/model/json-queries.js +17 -0
- package/dist/model/json-queries.js.map +1 -0
- package/dist/model/legend.d.ts.map +1 -1
- package/dist/model/legend.js.map +1 -1
- package/dist/model/log-queries.d.ts.map +1 -1
- package/dist/model/log-queries.js.map +1 -1
- package/dist/model/panels.d.ts +10 -1
- package/dist/model/panels.d.ts.map +1 -1
- package/dist/model/panels.js.map +1 -1
- package/dist/model/plugin-base.d.ts +2 -2
- package/dist/model/plugin-base.d.ts.map +1 -1
- package/dist/model/plugin-base.js.map +1 -1
- package/dist/model/plugins.d.ts +8 -6
- package/dist/model/plugins.d.ts.map +1 -1
- package/dist/model/plugins.js.map +1 -1
- package/dist/model/profile-queries.d.ts +1 -1
- package/dist/model/profile-queries.d.ts.map +1 -1
- package/dist/model/profile-queries.js.map +1 -1
- package/dist/model/silences-queries.d.ts +1 -1
- package/dist/model/silences-queries.d.ts.map +1 -1
- package/dist/model/silences-queries.js.map +1 -1
- package/dist/model/time-series-queries.d.ts +1 -1
- package/dist/model/time-series-queries.d.ts.map +1 -1
- package/dist/model/time-series-queries.js.map +1 -1
- package/dist/model/trace-queries.d.ts +1 -1
- package/dist/model/trace-queries.d.ts.map +1 -1
- package/dist/model/trace-queries.js.map +1 -1
- package/dist/model/variables.d.ts +5 -1
- package/dist/model/variables.d.ts.map +1 -1
- package/dist/model/variables.js +1 -3
- package/dist/model/variables.js.map +1 -1
- package/dist/remote/PluginLoaderComponent.d.ts +0 -1
- package/dist/remote/PluginLoaderComponent.d.ts.map +1 -1
- package/dist/remote/PluginLoaderComponent.js.map +1 -1
- package/dist/remote/PluginRuntime.d.ts.map +1 -1
- package/dist/remote/PluginRuntime.js +12 -20
- package/dist/remote/PluginRuntime.js.map +1 -1
- package/dist/remote/remotePluginLoader.d.ts +1 -1
- package/dist/remote/remotePluginLoader.d.ts.map +1 -1
- package/dist/remote/remotePluginLoader.js +1 -1
- package/dist/remote/remotePluginLoader.js.map +1 -1
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.d.ts +2 -2
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.d.ts.map +1 -1
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.js +15 -7
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.d.ts +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.js +18 -4
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProviders.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProviders.js +3 -3
- package/dist/runtime/TimeRangeProvider/TimeRangeProviders.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.d.ts +8 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.js +14 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/query-params.d.ts +1 -1
- package/dist/runtime/TimeRangeProvider/query-params.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/query-params.js +2 -2
- package/dist/runtime/TimeRangeProvider/query-params.js.map +1 -1
- package/dist/runtime/UsageMetricsProvider.d.ts.map +1 -1
- package/dist/runtime/alerts-queries.d.ts.map +1 -1
- package/dist/runtime/alerts-queries.js +1 -1
- package/dist/runtime/alerts-queries.js.map +1 -1
- package/dist/runtime/annotations.d.ts.map +1 -1
- package/dist/runtime/annotations.js +2 -2
- package/dist/runtime/annotations.js.map +1 -1
- package/dist/runtime/builtin-variables.d.ts +0 -1
- package/dist/runtime/builtin-variables.d.ts.map +1 -1
- package/dist/runtime/builtin-variables.js.map +1 -1
- package/dist/runtime/datasources.d.ts +0 -1
- package/dist/runtime/datasources.d.ts.map +1 -1
- package/dist/runtime/datasources.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/item-actions.d.ts +1 -1
- package/dist/runtime/item-actions.d.ts.map +1 -1
- package/dist/runtime/item-actions.js +1 -1
- package/dist/runtime/item-actions.js.map +1 -1
- package/dist/runtime/json-queries.d.ts +11 -0
- package/dist/runtime/json-queries.d.ts.map +1 -0
- package/dist/runtime/json-queries.js +58 -0
- package/dist/runtime/json-queries.js.map +1 -0
- package/dist/runtime/log-queries.d.ts.map +1 -1
- package/dist/runtime/log-queries.js.map +1 -1
- package/dist/runtime/plugin-registry.d.ts +0 -1
- package/dist/runtime/plugin-registry.d.ts.map +1 -1
- package/dist/runtime/plugin-registry.js.map +1 -1
- package/dist/runtime/profile-queries.d.ts.map +1 -1
- package/dist/runtime/profile-queries.js.map +1 -1
- package/dist/runtime/silences-queries.d.ts.map +1 -1
- package/dist/runtime/silences-queries.js +1 -1
- package/dist/runtime/silences-queries.js.map +1 -1
- package/dist/runtime/time-series-queries.d.ts.map +1 -1
- package/dist/runtime/time-series-queries.js +1 -1
- package/dist/runtime/time-series-queries.js.map +1 -1
- package/dist/runtime/trace-queries.d.ts.map +1 -1
- package/dist/runtime/trace-queries.js +1 -1
- package/dist/runtime/trace-queries.js.map +1 -1
- package/dist/runtime/variables.d.ts +0 -1
- package/dist/runtime/variables.d.ts.map +1 -1
- package/dist/runtime/variables.js.map +1 -1
- package/dist/schema/panel.d.ts +1 -1
- package/dist/schema/panel.d.ts.map +1 -1
- package/dist/schema/panel.js +17 -3
- package/dist/schema/panel.js.map +1 -1
- package/dist/test/mock-data.d.ts +2 -1
- package/dist/test/mock-data.d.ts.map +1 -1
- package/dist/test/mock-data.js +6 -0
- package/dist/test/mock-data.js.map +1 -1
- package/dist/test/render-hook.d.ts.map +1 -1
- package/dist/test/render-hook.js.map +1 -1
- package/dist/test/render.d.ts.map +1 -1
- package/dist/test/render.js.map +1 -1
- package/dist/test/setup-tests.d.ts +1 -1
- package/dist/test/setup-tests.d.ts.map +1 -1
- package/dist/test/setup-tests.js +3 -2
- package/dist/test/setup-tests.js.map +1 -1
- package/dist/test/test-plugins/bert/index.d.ts.map +1 -1
- package/dist/test/test-plugins/bert/index.js.map +1 -1
- package/dist/test/test-plugins/ernie/index.d.ts +7 -1
- package/dist/test/test-plugins/ernie/index.d.ts.map +1 -1
- package/dist/test/test-plugins/ernie/index.js +58 -1
- package/dist/test/test-plugins/ernie/index.js.map +1 -1
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js +1 -1
- package/dist/test/utils.js.map +1 -1
- package/dist/test-utils/mock-plugin-registry.d.ts.map +1 -1
- package/dist/test-utils/mock-plugin-registry.js.map +1 -1
- package/dist/utils/csv-export.d.ts.map +1 -1
- package/dist/utils/csv-export.js +1 -1
- package/dist/utils/csv-export.js.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
_export_star(require("./LayoutEditor"), exports);
|
|
18
|
+
_export_star(require("./RepeatLayoutPreview"), exports);
|
|
19
|
+
_export_star(require("./RepeatVariableEditor"), exports);
|
|
20
|
+
function _export_star(from, to) {
|
|
21
|
+
Object.keys(from).forEach(function(k) {
|
|
22
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
23
|
+
Object.defineProperty(to, k, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return from[k];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return from;
|
|
32
|
+
}
|
|
@@ -21,12 +21,12 @@ Object.defineProperty(exports, "LinksEditor", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = require("react");
|
|
25
24
|
const _material = require("@mui/material");
|
|
26
|
-
const _reacthookform = require("react-hook-form");
|
|
27
|
-
const _Plus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Plus"));
|
|
28
|
-
const _Minus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Minus"));
|
|
29
25
|
const _components = require("@perses-dev/components");
|
|
26
|
+
const _Minus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Minus"));
|
|
27
|
+
const _Plus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Plus"));
|
|
28
|
+
const _react = require("react");
|
|
29
|
+
const _reacthookform = require("react-hook-form");
|
|
30
30
|
function _interop_require_default(obj) {
|
|
31
31
|
return obj && obj.__esModule ? obj : {
|
|
32
32
|
default: obj
|
|
@@ -21,10 +21,10 @@ Object.defineProperty(exports, "MultiQueryEditor", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = require("react");
|
|
25
|
-
const _immer = require("immer");
|
|
26
24
|
const _material = require("@mui/material");
|
|
25
|
+
const _immer = require("immer");
|
|
27
26
|
const _Plus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Plus"));
|
|
27
|
+
const _react = require("react");
|
|
28
28
|
const _runtime = require("../../runtime");
|
|
29
29
|
const _QueryEditorContainer = require("./QueryEditorContainer");
|
|
30
30
|
function _interop_require_default(obj) {
|
|
@@ -123,9 +123,12 @@ const MultiQueryEditor = /*#__PURE__*/ (0, _react.forwardRef)((props, ref)=>{
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
// show one query input if queries is empty
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
let queryDefinitions = queries;
|
|
127
|
+
if (queries.length === 0 && !isLoading) {
|
|
128
|
+
queryDefinitions = [
|
|
129
|
+
defaultInitialQueryDefinition
|
|
130
|
+
];
|
|
131
|
+
}
|
|
129
132
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
130
133
|
children: [
|
|
131
134
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Stack, {
|
|
@@ -21,17 +21,17 @@ Object.defineProperty(exports, "QueryEditorContainer", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _immer = require("immer");
|
|
25
24
|
const _material = require("@mui/material");
|
|
26
|
-
const _DeleteOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/DeleteOutline"));
|
|
27
|
-
const _ChevronDown = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ChevronDown"));
|
|
28
|
-
const _ChevronRight = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ChevronRight"));
|
|
29
|
-
const _react = require("react");
|
|
30
|
-
const _Alert = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Alert"));
|
|
31
25
|
const _components = require("@perses-dev/components");
|
|
32
|
-
const
|
|
26
|
+
const _immer = require("immer");
|
|
27
|
+
const _Alert = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Alert"));
|
|
33
28
|
const _Check = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Check"));
|
|
29
|
+
const _ChevronDown = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ChevronDown"));
|
|
30
|
+
const _ChevronRight = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ChevronRight"));
|
|
34
31
|
const _Close = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Close"));
|
|
32
|
+
const _DeleteOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/DeleteOutline"));
|
|
33
|
+
const _Pencil = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Pencil"));
|
|
34
|
+
const _react = require("react");
|
|
35
35
|
const _PluginEditor = require("../PluginEditor");
|
|
36
36
|
const _utils = require("./utils");
|
|
37
37
|
function _interop_require_default(obj) {
|
|
@@ -21,13 +21,13 @@ Object.defineProperty(exports, "PanelAnnotationsEditor", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = require("react");
|
|
25
24
|
const _material = require("@mui/material");
|
|
26
|
-
const
|
|
25
|
+
const _ArrowDown = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ArrowDown"));
|
|
26
|
+
const _ArrowUp = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ArrowUp"));
|
|
27
27
|
const _Pencil = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Pencil"));
|
|
28
|
+
const _Plus = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Plus"));
|
|
28
29
|
const _TrashCan = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/TrashCan"));
|
|
29
|
-
const
|
|
30
|
-
const _ArrowDown = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ArrowDown"));
|
|
30
|
+
const _react = require("react");
|
|
31
31
|
const _context = require("../../context");
|
|
32
32
|
const _Annotations = require("../Annotations");
|
|
33
33
|
function _interop_require_default(obj) {
|
|
@@ -22,15 +22,16 @@ Object.defineProperty(exports, "PanelSpecEditor", {
|
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _components = require("@perses-dev/components");
|
|
25
|
-
const _reacthookform = require("react-hook-form");
|
|
26
25
|
const _react = require("react");
|
|
27
|
-
const
|
|
26
|
+
const _reacthookform = require("react-hook-form");
|
|
28
27
|
const _runtime = require("../../runtime");
|
|
29
|
-
const
|
|
28
|
+
const _LayoutEditor = require("../LayoutEditor");
|
|
29
|
+
const _LinksEditor = require("../LinksEditor");
|
|
30
30
|
const _MultiQueryEditor = require("../MultiQueryEditor");
|
|
31
|
+
const _OptionsEditorTabs = require("../OptionsEditorTabs");
|
|
31
32
|
const _PanelAnnotationsEditor = require("./PanelAnnotationsEditor");
|
|
32
33
|
const PanelSpecEditor = /*#__PURE__*/ (0, _react.forwardRef)((props, ref)=>{
|
|
33
|
-
const { control, panelDefinition, onQueriesChange, onQueryRun, onPluginSpecChange, onAnnotationsChange, onJSONChange } = props;
|
|
34
|
+
const { control, panelDefinition, variableDefinitionGroups, panelGroups, onQueriesChange, onQueryRun, onPluginSpecChange, onAnnotationsChange, onJSONChange } = props;
|
|
34
35
|
const { kind } = panelDefinition.spec.plugin;
|
|
35
36
|
const { data: plugin, isLoading, error } = (0, _runtime.usePlugin)('Panel', kind);
|
|
36
37
|
const { queryResults } = (0, _runtime.useDataQueriesContext)();
|
|
@@ -106,7 +107,7 @@ const PanelSpecEditor = /*#__PURE__*/ (0, _react.forwardRef)((props, ref)=>{
|
|
|
106
107
|
})
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
|
-
//
|
|
110
|
+
// Always show the JSON editor, Links editor, and Layout editor by default.
|
|
110
111
|
tabs.push({
|
|
111
112
|
label: 'Links',
|
|
112
113
|
content: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LinksEditor.LinksEditor, {
|
|
@@ -128,6 +129,14 @@ const PanelSpecEditor = /*#__PURE__*/ (0, _react.forwardRef)((props, ref)=>{
|
|
|
128
129
|
})
|
|
129
130
|
})
|
|
130
131
|
});
|
|
132
|
+
tabs.push({
|
|
133
|
+
label: 'Layout',
|
|
134
|
+
content: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LayoutEditor.LayoutEditor, {
|
|
135
|
+
control: control,
|
|
136
|
+
variableDefinitionGroups: variableDefinitionGroups,
|
|
137
|
+
panelGroups: panelGroups
|
|
138
|
+
})
|
|
139
|
+
});
|
|
131
140
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_OptionsEditorTabs.OptionsEditorTabs, {
|
|
132
141
|
tabs: tabs
|
|
133
142
|
}, tabs.length);
|
|
@@ -22,8 +22,8 @@ Object.defineProperty(exports, "PluginEditor", {
|
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
24
|
const _material = require("@mui/material");
|
|
25
|
-
const _Reload = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Reload"));
|
|
26
25
|
const _components = require("@perses-dev/components");
|
|
26
|
+
const _Reload = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Reload"));
|
|
27
27
|
const _react = require("react");
|
|
28
28
|
const _PluginKindSelect = require("../PluginKindSelect");
|
|
29
29
|
const _PluginSpecEditor = require("../PluginSpecEditor");
|
|
@@ -34,7 +34,7 @@ function _interop_require_default(obj) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
function PluginEditor(props) {
|
|
37
|
-
const { value, withRunQueryButton = true, pluginTypes, pluginKindLabel, onChange: _, isReadonly, onRunQuery, filteredQueryPlugins, ...others } = props;
|
|
37
|
+
const { value, withRunQueryButton = true, pluginTypes, pluginKindLabel, onChange: _, isReadonly, onRunQuery, filteredQueryPlugins, testConnection, ...others } = props;
|
|
38
38
|
const { pendingSelection, isLoading, error, onSelectionChange, onSpecChange } = (0, _plugineditorapi.usePluginEditor)(props);
|
|
39
39
|
const handleSpecChange = (0, _react.useCallback)((nextSpec)=>{
|
|
40
40
|
onSpecChange(nextSpec);
|
|
@@ -90,7 +90,8 @@ function PluginEditor(props) {
|
|
|
90
90
|
pluginSelection: value.selection,
|
|
91
91
|
value: value.spec,
|
|
92
92
|
onChange: handleSpecChange,
|
|
93
|
-
isReadonly: isReadonly
|
|
93
|
+
isReadonly: isReadonly,
|
|
94
|
+
testConnection: testConnection
|
|
94
95
|
})
|
|
95
96
|
})
|
|
96
97
|
]
|
|
@@ -20,8 +20,8 @@ Object.defineProperty(exports, "usePluginEditor", {
|
|
|
20
20
|
return usePluginEditor;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const _react = require("react");
|
|
24
23
|
const _immer = require("immer");
|
|
24
|
+
const _react = require("react");
|
|
25
25
|
const _runtime = require("../../runtime");
|
|
26
26
|
const _utils = require("../../utils");
|
|
27
27
|
function usePluginEditor(props) {
|
|
@@ -24,8 +24,8 @@ const _jsxruntime = require("react/jsx-runtime");
|
|
|
24
24
|
const _react = require("react");
|
|
25
25
|
const _runtime = require("../../runtime");
|
|
26
26
|
const _utils = require("../../utils");
|
|
27
|
-
const _pluginindexes = require("./plugin-indexes");
|
|
28
27
|
const _getPluginSearchHelper = require("./getPluginSearchHelper");
|
|
28
|
+
const _pluginindexes = require("./plugin-indexes");
|
|
29
29
|
function PluginRegistry(props) {
|
|
30
30
|
const { pluginLoader: { getInstalledPlugins, importPluginModule }, children, defaultPluginKinds } = props;
|
|
31
31
|
const getPluginIndexes = (0, _pluginindexes.usePluginIndexes)(getInstalledPlugins);
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "DatasourceSpecEditor", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return DatasourceSpecEditor;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
+
const _client = require("@perses-dev/client");
|
|
25
|
+
const _immer = require("immer");
|
|
26
|
+
const _react = require("react");
|
|
27
|
+
function escapeRegExp(str) {
|
|
28
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
29
|
+
}
|
|
30
|
+
function DatasourceSpecEditor({ plugin, pluginKind, value, testConnection, ...others }) {
|
|
31
|
+
const healthCheckPath = plugin.healthCheckPath;
|
|
32
|
+
const boundTestConnection = (0, _react.useMemo)(()=>{
|
|
33
|
+
if (!testConnection || !healthCheckPath) return undefined;
|
|
34
|
+
return ()=>{
|
|
35
|
+
const escapedPattern = escapeRegExp(healthCheckPath);
|
|
36
|
+
const augmentedPluginSpec = (0, _client.hasHTTPProxy)(value) ? (0, _immer.produce)(value, (draft)=>{
|
|
37
|
+
const existing = draft.proxy.spec.allowedEndpoints ?? [];
|
|
38
|
+
const alreadyAllowed = existing.some((e)=>e.endpointPattern === escapedPattern && e.method === 'GET');
|
|
39
|
+
if (!alreadyAllowed) {
|
|
40
|
+
draft.proxy.spec.allowedEndpoints = [
|
|
41
|
+
...existing,
|
|
42
|
+
{
|
|
43
|
+
endpointPattern: escapedPattern,
|
|
44
|
+
method: 'GET'
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
}) : value;
|
|
49
|
+
const spec = {
|
|
50
|
+
default: false,
|
|
51
|
+
plugin: {
|
|
52
|
+
kind: pluginKind,
|
|
53
|
+
spec: augmentedPluginSpec
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return testConnection(spec, healthCheckPath);
|
|
57
|
+
};
|
|
58
|
+
}, [
|
|
59
|
+
testConnection,
|
|
60
|
+
healthCheckPath,
|
|
61
|
+
pluginKind,
|
|
62
|
+
value
|
|
63
|
+
]);
|
|
64
|
+
const { OptionsEditorComponent } = plugin;
|
|
65
|
+
return OptionsEditorComponent ? /*#__PURE__*/ (0, _jsxruntime.jsx)(OptionsEditorComponent, {
|
|
66
|
+
...others,
|
|
67
|
+
value: value,
|
|
68
|
+
testConnection: boundTestConnection
|
|
69
|
+
}) : null;
|
|
70
|
+
}
|
|
@@ -21,11 +21,15 @@ Object.defineProperty(exports, "PluginSpecEditor", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _components = require("@perses-dev/components");
|
|
25
24
|
const _material = require("@mui/material");
|
|
25
|
+
const _components = require("@perses-dev/components");
|
|
26
26
|
const _runtime = require("../../runtime");
|
|
27
|
+
const _DatasourceSpecEditor = require("./DatasourceSpecEditor");
|
|
28
|
+
function isDatasourcePlugin(pluginType, plugin) {
|
|
29
|
+
return pluginType === 'Datasource' && 'createClient' in plugin;
|
|
30
|
+
}
|
|
27
31
|
function PluginSpecEditor(props) {
|
|
28
|
-
const { pluginSelection: { type: pluginType, kind: pluginKind }, ...others } = props;
|
|
32
|
+
const { pluginSelection: { type: pluginType, kind: pluginKind }, value, testConnection, ...others } = props;
|
|
29
33
|
const { data: plugin, isLoading, error } = (0, _runtime.usePlugin)(pluginType, pluginKind);
|
|
30
34
|
if (error) {
|
|
31
35
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ErrorAlert, {
|
|
@@ -48,8 +52,18 @@ function PluginSpecEditor(props) {
|
|
|
48
52
|
if (pluginType === 'Panel') {
|
|
49
53
|
throw new Error('This editor should not be used for panel type. Please use Panel Spec Editor instead.');
|
|
50
54
|
}
|
|
55
|
+
if (isDatasourcePlugin(pluginType, plugin)) {
|
|
56
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_DatasourceSpecEditor.DatasourceSpecEditor, {
|
|
57
|
+
plugin: plugin,
|
|
58
|
+
pluginKind: pluginKind,
|
|
59
|
+
value: value,
|
|
60
|
+
testConnection: testConnection,
|
|
61
|
+
...others
|
|
62
|
+
});
|
|
63
|
+
}
|
|
51
64
|
const { OptionsEditorComponent } = plugin;
|
|
52
65
|
return OptionsEditorComponent ? /*#__PURE__*/ (0, _jsxruntime.jsx)(OptionsEditorComponent, {
|
|
53
|
-
...others
|
|
66
|
+
...others,
|
|
67
|
+
value: value
|
|
54
68
|
}) : null;
|
|
55
69
|
}
|
|
@@ -29,13 +29,13 @@ _export(exports, {
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
const _jsxruntime = require("react/jsx-runtime");
|
|
32
|
-
const _Refresh = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Refresh"));
|
|
33
|
-
const _PlusCircleOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/PlusCircleOutline"));
|
|
34
|
-
const _MinusCircleOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/MinusCircleOutline"));
|
|
35
32
|
const _material = require("@mui/material");
|
|
36
33
|
const _components = require("@perses-dev/components");
|
|
37
34
|
const _spec = require("@perses-dev/spec");
|
|
38
35
|
const _datefns = require("date-fns");
|
|
36
|
+
const _MinusCircleOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/MinusCircleOutline"));
|
|
37
|
+
const _PlusCircleOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/PlusCircleOutline"));
|
|
38
|
+
const _Refresh = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Refresh"));
|
|
39
39
|
const _react = require("react");
|
|
40
40
|
const _constants = require("../../constants");
|
|
41
41
|
const _runtime = require("../../runtime");
|
|
@@ -87,6 +87,7 @@ function TimeRangeControls({ heightPx, showTimeRangeSelector = true, showRefresh
|
|
|
87
87
|
const { timeRange, setTimeRange, refresh, refreshInterval, setRefreshInterval } = (0, _runtime.useTimeRange)();
|
|
88
88
|
const showCustomTimeRangeValue = (0, _runtime.useShowCustomTimeRangeSetting)(showCustomTimeRange);
|
|
89
89
|
const showZoomInOutButtons = (0, _runtime.useShowZoomRangeSetting)(showZoomButtons);
|
|
90
|
+
const isAutoRefreshDisabled = (0, _runtime.useDisableAutoRefreshSetting)();
|
|
90
91
|
const timePresetsValue = (0, _runtime.useTimeRangeOptionsSetting)(timePresets);
|
|
91
92
|
// Convert height to a string, then use the string for styling
|
|
92
93
|
const height = heightPx === undefined ? DEFAULT_HEIGHT : `${heightPx}px`;
|
|
@@ -104,10 +105,8 @@ function TimeRangeControls({ heightPx, showTimeRangeSelector = true, showRefresh
|
|
|
104
105
|
]);
|
|
105
106
|
const fromDurationToMillis = (strDuration)=>{
|
|
106
107
|
const duration = (0, _spec.parseDurationString)(strDuration);
|
|
107
|
-
const millis = //
|
|
108
|
-
((duration.seconds ?? 0) + (duration.minutes ?? 0) * 60 + (duration.hours ?? 0) * 3600 + (duration.days ?? 0) * 86400 + (duration.weeks ?? 0) * 7 * 86400 + (duration.months ?? 0) * 30.436875 * 86400 + // avg month duration is ok for zoom purposes
|
|
108
|
+
const millis = ((duration.seconds ?? 0) + (duration.minutes ?? 0) * 60 + (duration.hours ?? 0) * 3600 + (duration.days ?? 0) * 86400 + (duration.weeks ?? 0) * 7 * 86400 + (duration.months ?? 0) * 30.436875 * 86400 + // avg month duration is ok for zoom purposes
|
|
109
109
|
(duration.years ?? 0) * 365.2425 * 86400) * // avg year duration is ok for zoom purposes
|
|
110
|
-
// eslint-disable-next-line prettier/prettier
|
|
111
110
|
1000; // to milliseconds
|
|
112
111
|
return millis;
|
|
113
112
|
};
|
|
@@ -218,7 +217,7 @@ function TimeRangeControls({ heightPx, showTimeRangeSelector = true, showRefresh
|
|
|
218
217
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Refresh.default, {})
|
|
219
218
|
})
|
|
220
219
|
}),
|
|
221
|
-
showRefreshInterval && /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.InfoTooltip, {
|
|
220
|
+
showRefreshInterval && !isAutoRefreshDisabled && /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.InfoTooltip, {
|
|
222
221
|
description: _constants.TOOLTIP_TEXT.refreshInterval,
|
|
223
222
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.RefreshIntervalPicker, {
|
|
224
223
|
timeOptions: DEFAULT_REFRESH_INTERVAL_OPTIONS,
|
|
@@ -21,17 +21,17 @@ Object.defineProperty(exports, "VariableEditorForm", {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const
|
|
24
|
+
const _zod = require("@hookform/resolvers/zod");
|
|
25
25
|
const _material = require("@mui/material");
|
|
26
26
|
const _components = require("@perses-dev/components");
|
|
27
|
-
const _reacthookform = require("react-hook-form");
|
|
28
|
-
const _zod = require("@hookform/resolvers/zod");
|
|
29
27
|
const _reactquery = require("@tanstack/react-query");
|
|
30
|
-
const
|
|
28
|
+
const _react = require("react");
|
|
29
|
+
const _reacthookform = require("react-hook-form");
|
|
31
30
|
const _context = require("../../../context");
|
|
31
|
+
const _PluginEditor = require("../../PluginEditor");
|
|
32
32
|
const _variablemodel = require("../variable-model");
|
|
33
|
-
const _VariablePreview = require("./VariablePreview");
|
|
34
33
|
const _variableeditorformmodel = require("./variable-editor-form-model");
|
|
34
|
+
const _VariablePreview = require("./VariablePreview");
|
|
35
35
|
function FallbackPreview() {
|
|
36
36
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
37
37
|
children: "Error previewing values"
|
|
@@ -29,10 +29,10 @@ _export(exports, {
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
const _jsxruntime = require("react/jsx-runtime");
|
|
32
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
33
32
|
const _material = require("@mui/material");
|
|
34
33
|
const _components = require("@perses-dev/components");
|
|
35
34
|
const _ClipboardOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ClipboardOutline"));
|
|
35
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
36
36
|
const _constants = require("../../../constants");
|
|
37
37
|
const _variablemodel = require("../variable-model");
|
|
38
38
|
const _variableeditorformmodel = require("./variable-editor-form-model");
|
|
@@ -20,6 +20,7 @@ _export_star(require("./DatasourceEditorForm"), exports);
|
|
|
20
20
|
_export_star(require("./DatasourceSelect"), exports);
|
|
21
21
|
_export_star(require("./HTTPSettingsEditor"), exports);
|
|
22
22
|
_export_star(require("./ItemSelectionActionsOptionsEditor"), exports);
|
|
23
|
+
_export_star(require("./LayoutEditor"), exports);
|
|
23
24
|
_export_star(require("./LegendOptionsEditor"), exports);
|
|
24
25
|
_export_star(require("./LinksEditor"), exports);
|
|
25
26
|
_export_star(require("./MultiQueryEditor"), exports);
|
|
@@ -33,6 +34,7 @@ _export_star(require("./PluginSpecEditor"), exports);
|
|
|
33
34
|
_export_star(require("./TimeRangeControls"), exports);
|
|
34
35
|
_export_star(require("./Variables"), exports);
|
|
35
36
|
_export_star(require("./MetricLabelInput"), exports);
|
|
37
|
+
_export_star(require("./DatasourceTestConnectionButton"), exports);
|
|
36
38
|
function _export_star(from, to) {
|
|
37
39
|
Object.keys(from).forEach(function(k) {
|
|
38
40
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
function _export(target, all) {
|
|
18
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
_export(exports, {
|
|
24
|
+
get DEFAULT_MAX_PER_ROW () {
|
|
25
|
+
return DEFAULT_MAX_PER_ROW;
|
|
26
|
+
},
|
|
27
|
+
get DEFAULT_REPEAT_ALIGNMENT () {
|
|
28
|
+
return DEFAULT_REPEAT_ALIGNMENT;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const DEFAULT_REPEAT_ALIGNMENT = 'horizontal';
|
|
32
|
+
const DEFAULT_MAX_PER_ROW = 4;
|
|
@@ -32,9 +32,9 @@ _export(exports, {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
const _jsxruntime = require("react/jsx-runtime");
|
|
35
|
-
const _react = require("react");
|
|
36
|
-
const _spec = require("@perses-dev/spec");
|
|
37
35
|
const _client = require("@perses-dev/client");
|
|
36
|
+
const _spec = require("@perses-dev/spec");
|
|
37
|
+
const _react = require("react");
|
|
38
38
|
const _schema = require("../schema");
|
|
39
39
|
const ValidationSchemasContext = /*#__PURE__*/ (0, _react.createContext)(undefined);
|
|
40
40
|
function useValidationSchemas() {
|
package/dist/cjs/model/index.js
CHANGED
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
});
|
|
17
17
|
_export_star(require("./annotations"), exports);
|
|
18
18
|
_export_star(require("./datasource"), exports);
|
|
19
|
+
_export_star(require("./json-queries"), exports);
|
|
19
20
|
_export_star(require("./legend"), exports);
|
|
20
21
|
_export_star(require("./log-queries"), exports);
|
|
21
22
|
_export_star(require("./log-volume-utils"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
@@ -148,59 +148,51 @@ const getPluginRuntime = ()=>{
|
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
'@perses-dev/spec': {
|
|
151
|
-
version: '0.3.0-beta.
|
|
151
|
+
version: '0.3.0-beta.4',
|
|
152
152
|
lib: ()=>require('@perses-dev/spec'),
|
|
153
153
|
shareConfig: {
|
|
154
154
|
singleton: true,
|
|
155
|
-
requiredVersion: '^0.3.0-beta.
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
'@perses-dev/core': {
|
|
159
|
-
version: '0.53.1',
|
|
160
|
-
lib: ()=>require('@perses-dev/core'),
|
|
161
|
-
shareConfig: {
|
|
162
|
-
singleton: true,
|
|
163
|
-
requiredVersion: '^0.53.1'
|
|
155
|
+
requiredVersion: '^0.3.0-beta.4'
|
|
164
156
|
}
|
|
165
157
|
},
|
|
166
158
|
'@perses-dev/client': {
|
|
167
|
-
version: '0.55.0-beta.
|
|
159
|
+
version: '0.55.0-beta.3',
|
|
168
160
|
lib: ()=>require('@perses-dev/client'),
|
|
169
161
|
shareConfig: {
|
|
170
162
|
singleton: true,
|
|
171
|
-
requiredVersion: '^0.55.0-beta.
|
|
163
|
+
requiredVersion: '^0.55.0-beta.3'
|
|
172
164
|
}
|
|
173
165
|
},
|
|
174
166
|
'@perses-dev/components': {
|
|
175
|
-
version: '0.55.0-beta.
|
|
167
|
+
version: '0.55.0-beta.3',
|
|
176
168
|
lib: ()=>require('@perses-dev/components'),
|
|
177
169
|
shareConfig: {
|
|
178
170
|
singleton: true,
|
|
179
|
-
requiredVersion: '^0.55.0-beta.
|
|
171
|
+
requiredVersion: '^0.55.0-beta.3'
|
|
180
172
|
}
|
|
181
173
|
},
|
|
182
174
|
'@perses-dev/plugin-system': {
|
|
183
|
-
version: '0.55.0-beta.
|
|
175
|
+
version: '0.55.0-beta.3',
|
|
184
176
|
lib: ()=>require('@perses-dev/plugin-system'),
|
|
185
177
|
shareConfig: {
|
|
186
178
|
singleton: true,
|
|
187
|
-
requiredVersion: '^0.55.0-beta.
|
|
179
|
+
requiredVersion: '^0.55.0-beta.3'
|
|
188
180
|
}
|
|
189
181
|
},
|
|
190
182
|
'@perses-dev/explore': {
|
|
191
|
-
version: '0.55.0-beta.
|
|
183
|
+
version: '0.55.0-beta.3',
|
|
192
184
|
lib: ()=>require('@perses-dev/explore'),
|
|
193
185
|
shareConfig: {
|
|
194
186
|
singleton: true,
|
|
195
|
-
requiredVersion: '^0.55.0-beta.
|
|
187
|
+
requiredVersion: '^0.55.0-beta.3'
|
|
196
188
|
}
|
|
197
189
|
},
|
|
198
190
|
'@perses-dev/dashboards': {
|
|
199
|
-
version: '0.55.0-beta.
|
|
191
|
+
version: '0.55.0-beta.3',
|
|
200
192
|
lib: ()=>require('@perses-dev/dashboards'),
|
|
201
193
|
shareConfig: {
|
|
202
194
|
singleton: true,
|
|
203
|
-
requiredVersion: '^0.55.0-beta.
|
|
195
|
+
requiredVersion: '^0.55.0-beta.3'
|
|
204
196
|
}
|
|
205
197
|
},
|
|
206
198
|
// Below are the shared modules that are used by the plugins, this can be part of the SDK
|
|
@@ -20,8 +20,8 @@ Object.defineProperty(exports, "remotePluginLoader", {
|
|
|
20
20
|
return remotePluginLoader;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
24
23
|
const _client = require("@perses-dev/client");
|
|
24
|
+
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
25
25
|
const _PluginRuntime = require("./PluginRuntime");
|
|
26
26
|
const isPluginMetadata = (plugin)=>{
|
|
27
27
|
return typeof plugin === 'object' && plugin !== null && 'kind' in plugin && 'spec' in plugin && typeof plugin.spec === 'object' && plugin.spec !== null && 'name' in plugin.spec;
|