@perses-dev/plugin-system 0.39.0 → 0.40.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/dist/cjs/components/CalculationSelector/CalculationSelector.js +6 -4
- package/dist/cjs/components/CalculationSelector/index.js +10 -8
- package/dist/cjs/components/DatasourceEditorForm/DatasourceEditorForm.js +380 -0
- package/dist/cjs/components/DatasourceEditorForm/index.js +30 -0
- package/dist/cjs/components/DatasourceSelect.js +119 -21
- package/dist/cjs/components/LegendOptionsEditor/LegendOptionsEditor.js +18 -16
- package/dist/cjs/components/LegendOptionsEditor/index.js +10 -8
- package/dist/cjs/components/OptionsEditorRadios/OptionsEditorRadios.js +23 -28
- package/dist/cjs/components/OptionsEditorRadios/index.js +10 -8
- package/dist/cjs/components/OptionsEditorTabPanel/OptionsEditorTabPanel.js +6 -4
- package/dist/cjs/components/OptionsEditorTabPanel/index.js +10 -8
- package/dist/cjs/components/OptionsEditorTabs/OptionsEditorTabs.js +10 -8
- package/dist/cjs/components/OptionsEditorTabs/index.js +10 -8
- package/dist/cjs/components/PanelSpecEditor/PanelSpecEditor.js +13 -11
- package/dist/cjs/components/PanelSpecEditor/index.js +10 -8
- package/dist/cjs/components/PluginEditor/PluginEditor.js +24 -31
- package/dist/cjs/components/PluginEditor/index.js +11 -9
- package/dist/cjs/components/PluginEditor/plugin-editor-api.js +5 -3
- package/dist/cjs/components/PluginKindSelect/PluginKindSelect.js +23 -12
- package/dist/cjs/components/PluginKindSelect/index.js +10 -8
- package/dist/cjs/components/PluginRegistry/PluginRegistry.js +11 -9
- package/dist/cjs/components/PluginRegistry/index.js +10 -8
- package/dist/cjs/components/PluginRegistry/plugin-indexes.js +6 -2
- package/dist/cjs/components/PluginSpecEditor/PluginSpecEditor.js +6 -4
- package/dist/cjs/components/PluginSpecEditor/index.js +10 -8
- package/dist/cjs/components/TimeSeriesQueryEditor/TimeSeriesQueryEditor.js +15 -13
- package/dist/cjs/components/TimeSeriesQueryEditor/TimeSeriesQueryInput.js +21 -19
- package/dist/cjs/components/TimeSeriesQueryEditor/index.js +10 -8
- package/dist/cjs/components/Variables/VariableEditorForm/VariableEditorForm.js +256 -166
- package/dist/cjs/components/Variables/VariableEditorForm/VariablePreview.js +32 -28
- package/dist/cjs/components/Variables/VariableEditorForm/index.js +11 -9
- package/dist/cjs/components/Variables/VariableEditorForm/variable-editor-form-model.js +28 -32
- package/dist/cjs/components/Variables/index.js +11 -9
- package/dist/cjs/components/Variables/variable-model.js +17 -9
- package/dist/cjs/components/index.js +22 -19
- package/dist/cjs/constants/index.js +10 -8
- package/dist/cjs/constants/user-interface-text.js +3 -1
- package/dist/cjs/index.js +16 -13
- package/dist/cjs/model/index.js +17 -15
- package/dist/cjs/model/legend.js +32 -20
- package/dist/cjs/model/panels.js +2 -2
- package/dist/cjs/model/plugin-base.js +2 -2
- package/dist/cjs/model/plugin-loading.js +3 -1
- package/dist/cjs/runtime/DataQueriesProvider/DataQueriesProvider.js +19 -11
- package/dist/cjs/runtime/DataQueriesProvider/index.js +11 -9
- package/dist/cjs/runtime/DataQueriesProvider/model.js +12 -8
- package/dist/cjs/runtime/TimeRangeProvider/TimeRangeProvider.js +19 -11
- package/dist/cjs/runtime/TimeRangeProvider/index.js +11 -9
- package/dist/cjs/runtime/TimeRangeProvider/query-params.js +36 -18
- package/dist/cjs/runtime/builtin-variables.js +81 -0
- package/dist/cjs/runtime/datasources.js +29 -11
- package/dist/cjs/runtime/index.js +16 -13
- package/dist/cjs/runtime/plugin-registry.js +41 -11
- package/dist/cjs/runtime/template-variables.js +42 -12
- package/dist/cjs/runtime/time-series-queries.js +39 -27
- package/dist/cjs/stories/shared-utils/decorators/WithDataQueries.js +7 -5
- package/dist/cjs/stories/shared-utils/decorators/WithPluginRegistry.js +16 -14
- package/dist/cjs/stories/shared-utils/decorators/WithPluginSystemBuiltinVariables.js +42 -0
- package/dist/cjs/stories/shared-utils/decorators/WithPluginSystemDatasourceStore.js +19 -13
- package/dist/cjs/stories/shared-utils/decorators/WithPluginSystemTemplateVariables.js +6 -4
- package/dist/cjs/stories/shared-utils/decorators/WithTimeRange.js +7 -5
- package/dist/cjs/stories/shared-utils/decorators/index.js +15 -12
- package/dist/cjs/stories/shared-utils/index.js +10 -8
- package/dist/cjs/test/index.js +11 -9
- package/dist/cjs/test/mock-data.js +3 -1
- package/dist/cjs/test/render.js +13 -11
- package/dist/cjs/test/test-plugins/bert/index.js +14 -10
- package/dist/cjs/test/test-plugins/ernie/index.js +13 -9
- package/dist/cjs/test/test-plugins/index.js +11 -9
- package/dist/cjs/test-utils/index.js +10 -8
- package/dist/cjs/test-utils/mock-plugin-registry.js +8 -4
- package/dist/cjs/utils/action.js +43 -0
- package/dist/cjs/utils/index.js +11 -8
- package/dist/cjs/utils/variables.js +26 -8
- package/dist/cjs/validation/datasource.js +30 -0
- package/dist/cjs/validation/index.js +32 -0
- package/dist/cjs/validation/resource.js +24 -0
- package/dist/cjs/validation/variable.js +29 -0
- package/dist/components/CalculationSelector/CalculationSelector.js.map +1 -1
- package/dist/components/CalculationSelector/index.js.map +1 -1
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.d.ts +15 -0
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.d.ts.map +1 -0
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.js +333 -0
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.js.map +1 -0
- package/dist/components/DatasourceEditorForm/index.d.ts +2 -0
- package/dist/components/DatasourceEditorForm/index.d.ts.map +1 -0
- package/dist/components/DatasourceEditorForm/index.js +15 -0
- package/dist/components/DatasourceEditorForm/index.js.map +1 -0
- package/dist/components/DatasourceSelect.d.ts +5 -0
- package/dist/components/DatasourceSelect.d.ts.map +1 -1
- package/dist/components/DatasourceSelect.js +102 -19
- package/dist/components/DatasourceSelect.js.map +1 -1
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.js +2 -2
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.js.map +1 -1
- package/dist/components/LegendOptionsEditor/index.js.map +1 -1
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.d.ts +2 -2
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.d.ts.map +1 -1
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.js +16 -23
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.js.map +1 -1
- package/dist/components/OptionsEditorRadios/index.js.map +1 -1
- package/dist/components/OptionsEditorTabPanel/OptionsEditorTabPanel.js.map +1 -1
- package/dist/components/OptionsEditorTabPanel/index.js.map +1 -1
- package/dist/components/OptionsEditorTabs/OptionsEditorTabs.js.map +1 -1
- package/dist/components/OptionsEditorTabs/index.js.map +1 -1
- package/dist/components/PanelSpecEditor/PanelSpecEditor.js +2 -2
- package/dist/components/PanelSpecEditor/PanelSpecEditor.js.map +1 -1
- package/dist/components/PanelSpecEditor/index.js.map +1 -1
- package/dist/components/PluginEditor/PluginEditor.js +15 -24
- package/dist/components/PluginEditor/PluginEditor.js.map +1 -1
- package/dist/components/PluginEditor/index.js.map +1 -1
- package/dist/components/PluginEditor/plugin-editor-api.d.ts +1 -1
- package/dist/components/PluginEditor/plugin-editor-api.js +2 -2
- package/dist/components/PluginEditor/plugin-editor-api.js.map +1 -1
- package/dist/components/PluginKindSelect/PluginKindSelect.d.ts +3 -3
- package/dist/components/PluginKindSelect/PluginKindSelect.d.ts.map +1 -1
- package/dist/components/PluginKindSelect/PluginKindSelect.js +21 -12
- package/dist/components/PluginKindSelect/PluginKindSelect.js.map +1 -1
- package/dist/components/PluginKindSelect/index.js.map +1 -1
- package/dist/components/PluginRegistry/PluginRegistry.js +3 -3
- package/dist/components/PluginRegistry/PluginRegistry.js.map +1 -1
- package/dist/components/PluginRegistry/index.js.map +1 -1
- package/dist/components/PluginRegistry/plugin-indexes.js.map +1 -1
- package/dist/components/PluginSpecEditor/PluginSpecEditor.js.map +1 -1
- package/dist/components/PluginSpecEditor/index.js.map +1 -1
- package/dist/components/TimeSeriesQueryEditor/TimeSeriesQueryEditor.js +4 -4
- package/dist/components/TimeSeriesQueryEditor/TimeSeriesQueryEditor.js.map +1 -1
- package/dist/components/TimeSeriesQueryEditor/TimeSeriesQueryInput.js +1 -1
- package/dist/components/TimeSeriesQueryEditor/TimeSeriesQueryInput.js.map +1 -1
- package/dist/components/TimeSeriesQueryEditor/index.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.d.ts +10 -7
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.js +200 -112
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariablePreview.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/index.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.d.ts +5 -4
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.js +22 -30
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.js.map +1 -1
- package/dist/components/Variables/index.js.map +1 -1
- package/dist/components/Variables/variable-model.js +3 -3
- package/dist/components/Variables/variable-model.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/user-interface-text.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/model/datasource.d.ts +2 -1
- package/dist/model/datasource.d.ts.map +1 -1
- package/dist/model/datasource.js.map +1 -1
- package/dist/model/index.js.map +1 -1
- package/dist/model/legend.d.ts +1 -1
- package/dist/model/legend.d.ts.map +1 -1
- package/dist/model/legend.js +14 -14
- package/dist/model/legend.js.map +1 -1
- package/dist/model/panels.js.map +1 -1
- package/dist/model/plugin-base.js.map +1 -1
- package/dist/model/plugin-loading.js.map +1 -1
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.js +4 -4
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.js.map +1 -1
- package/dist/runtime/DataQueriesProvider/index.js.map +1 -1
- package/dist/runtime/DataQueriesProvider/model.d.ts +3 -2
- package/dist/runtime/DataQueriesProvider/model.d.ts.map +1 -1
- package/dist/runtime/DataQueriesProvider/model.js +4 -4
- package/dist/runtime/DataQueriesProvider/model.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/index.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/query-params.js +1 -1
- package/dist/runtime/TimeRangeProvider/query-params.js.map +1 -1
- package/dist/runtime/builtin-variables.d.ts +11 -0
- package/dist/runtime/builtin-variables.d.ts.map +1 -0
- package/dist/runtime/builtin-variables.js +59 -0
- package/dist/runtime/builtin-variables.js.map +1 -0
- package/dist/runtime/datasources.d.ts +14 -6
- package/dist/runtime/datasources.d.ts.map +1 -1
- package/dist/runtime/datasources.js +13 -6
- 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/plugin-registry.d.ts +2 -0
- package/dist/runtime/plugin-registry.d.ts.map +1 -1
- package/dist/runtime/plugin-registry.js +19 -2
- package/dist/runtime/plugin-registry.js.map +1 -1
- package/dist/runtime/template-variables.d.ts +2 -1
- package/dist/runtime/template-variables.d.ts.map +1 -1
- package/dist/runtime/template-variables.js +27 -8
- package/dist/runtime/template-variables.js.map +1 -1
- package/dist/runtime/time-series-queries.d.ts +3 -3
- package/dist/runtime/time-series-queries.d.ts.map +1 -1
- package/dist/runtime/time-series-queries.js +14 -12
- package/dist/runtime/time-series-queries.js.map +1 -1
- package/dist/stories/shared-utils/decorators/WithDataQueries.js.map +1 -1
- package/dist/stories/shared-utils/decorators/WithPluginRegistry.js.map +1 -1
- package/dist/stories/shared-utils/decorators/WithPluginSystemBuiltinVariables.d.ts +13 -0
- package/dist/stories/shared-utils/decorators/WithPluginSystemBuiltinVariables.d.ts.map +1 -0
- package/dist/stories/shared-utils/decorators/WithPluginSystemBuiltinVariables.js +39 -0
- package/dist/stories/shared-utils/decorators/WithPluginSystemBuiltinVariables.js.map +1 -0
- package/dist/stories/shared-utils/decorators/WithPluginSystemDatasourceStore.d.ts.map +1 -1
- package/dist/stories/shared-utils/decorators/WithPluginSystemDatasourceStore.js +11 -7
- package/dist/stories/shared-utils/decorators/WithPluginSystemDatasourceStore.js.map +1 -1
- package/dist/stories/shared-utils/decorators/WithPluginSystemTemplateVariables.js.map +1 -1
- package/dist/stories/shared-utils/decorators/WithTimeRange.js.map +1 -1
- package/dist/stories/shared-utils/decorators/index.d.ts +1 -0
- package/dist/stories/shared-utils/decorators/index.d.ts.map +1 -1
- package/dist/stories/shared-utils/decorators/index.js +1 -0
- package/dist/stories/shared-utils/decorators/index.js.map +1 -1
- package/dist/stories/shared-utils/index.js.map +1 -1
- package/dist/test/index.js.map +1 -1
- package/dist/test/mock-data.js.map +1 -1
- package/dist/test/render.js +2 -2
- package/dist/test/render.js.map +1 -1
- package/dist/test/setup-tests.js.map +1 -1
- package/dist/test/test-plugins/bert/index.js.map +1 -1
- package/dist/test/test-plugins/ernie/index.js.map +1 -1
- package/dist/test/test-plugins/index.js.map +1 -1
- package/dist/test-utils/index.js.map +1 -1
- package/dist/test-utils/mock-plugin-registry.js +2 -2
- package/dist/test-utils/mock-plugin-registry.js.map +1 -1
- package/dist/utils/action.d.ts +4 -0
- package/dist/utils/action.d.ts.map +1 -0
- package/dist/utils/action.js +27 -0
- package/dist/utils/action.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/variables.d.ts.map +1 -1
- package/dist/utils/variables.js +17 -5
- package/dist/utils/variables.js.map +1 -1
- package/dist/validation/datasource.d.ts +19 -0
- package/dist/validation/datasource.d.ts.map +1 -0
- package/dist/validation/datasource.js +22 -0
- package/dist/validation/datasource.js.map +1 -0
- package/dist/validation/index.d.ts +4 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +17 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/resource.d.ts +3 -0
- package/dist/validation/resource.d.ts.map +1 -0
- package/dist/validation/resource.js +16 -0
- package/dist/validation/resource.js.map +1 -0
- package/dist/validation/variable.d.ts +19 -0
- package/dist/validation/variable.d.ts.map +1 -0
- package/dist/validation/variable.js +21 -0
- package/dist/validation/variable.js.map +1 -0
- package/package.json +8 -6
|
@@ -21,18 +21,22 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
VariablePreview: ()
|
|
25
|
-
|
|
24
|
+
VariablePreview: function() {
|
|
25
|
+
return VariablePreview;
|
|
26
|
+
},
|
|
27
|
+
VariableListPreview: function() {
|
|
28
|
+
return VariableListPreview;
|
|
29
|
+
}
|
|
26
30
|
});
|
|
27
|
-
const
|
|
28
|
-
const _react = /*#__PURE__*/
|
|
31
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
32
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
29
33
|
const _material = require("@mui/material");
|
|
30
34
|
const _components = require("@perses-dev/components");
|
|
31
|
-
const
|
|
32
|
-
const
|
|
35
|
+
const _Refresh = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/Refresh"));
|
|
36
|
+
const _ClipboardOutline = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ClipboardOutline"));
|
|
33
37
|
const _constants = require("../../../constants");
|
|
34
|
-
const
|
|
35
|
-
function
|
|
38
|
+
const _variablemodel = require("../variable-model");
|
|
39
|
+
function _interop_require_default(obj) {
|
|
36
40
|
return obj && obj.__esModule ? obj : {
|
|
37
41
|
default: obj
|
|
38
42
|
};
|
|
@@ -45,7 +49,7 @@ function _getRequireWildcardCache(nodeInterop) {
|
|
|
45
49
|
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
46
50
|
})(nodeInterop);
|
|
47
51
|
}
|
|
48
|
-
function
|
|
52
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
49
53
|
if (!nodeInterop && obj && obj.__esModule) {
|
|
50
54
|
return obj;
|
|
51
55
|
}
|
|
@@ -88,29 +92,29 @@ function VariablePreview(props) {
|
|
|
88
92
|
if (values && (values === null || values === void 0 ? void 0 : values.length) > 0 && maxValues) {
|
|
89
93
|
notShown = values.length - maxValues;
|
|
90
94
|
}
|
|
91
|
-
return /*#__PURE__*/ (0,
|
|
95
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
92
96
|
children: [
|
|
93
|
-
/*#__PURE__*/ (0,
|
|
97
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Stack, {
|
|
94
98
|
direction: "row",
|
|
95
99
|
spacing: 1,
|
|
96
100
|
alignItems: "center",
|
|
97
101
|
mb: 1,
|
|
98
102
|
children: [
|
|
99
|
-
/*#__PURE__*/ (0,
|
|
103
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
100
104
|
variant: "h4",
|
|
101
105
|
children: "Preview Values"
|
|
102
106
|
}),
|
|
103
|
-
onRefresh && /*#__PURE__*/ (0,
|
|
107
|
+
onRefresh && /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.InfoTooltip, {
|
|
104
108
|
description: _constants.TOOLTIP_TEXT.refreshVariableValues,
|
|
105
|
-
children: /*#__PURE__*/ (0,
|
|
109
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
106
110
|
onClick: onRefresh,
|
|
107
111
|
size: "small",
|
|
108
|
-
children: /*#__PURE__*/ (0,
|
|
112
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Refresh.default, {})
|
|
109
113
|
})
|
|
110
114
|
}),
|
|
111
|
-
/*#__PURE__*/ (0,
|
|
115
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.InfoTooltip, {
|
|
112
116
|
description: _constants.TOOLTIP_TEXT.copyVariableValues,
|
|
113
|
-
children: /*#__PURE__*/ (0,
|
|
117
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.IconButton, {
|
|
114
118
|
onClick: async ()=>{
|
|
115
119
|
if (values === null || values === void 0 ? void 0 : values.length) {
|
|
116
120
|
await navigator.clipboard.writeText(values.map((value)=>value).join(', '));
|
|
@@ -118,14 +122,14 @@ function VariablePreview(props) {
|
|
|
118
122
|
}
|
|
119
123
|
},
|
|
120
124
|
size: "small",
|
|
121
|
-
children: /*#__PURE__*/ (0,
|
|
125
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ClipboardOutline.default, {})
|
|
122
126
|
})
|
|
123
127
|
})
|
|
124
128
|
]
|
|
125
129
|
}),
|
|
126
|
-
/*#__PURE__*/ (0,
|
|
130
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Card, {
|
|
127
131
|
variant: "outlined",
|
|
128
|
-
children: /*#__PURE__*/ (0,
|
|
132
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
129
133
|
sx: {
|
|
130
134
|
display: 'flex',
|
|
131
135
|
flexWrap: 'wrap',
|
|
@@ -133,27 +137,27 @@ function VariablePreview(props) {
|
|
|
133
137
|
m: 2
|
|
134
138
|
},
|
|
135
139
|
children: [
|
|
136
|
-
error && /*#__PURE__*/ (0,
|
|
140
|
+
error && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Alert, {
|
|
137
141
|
severity: "error",
|
|
138
142
|
children: error
|
|
139
143
|
}),
|
|
140
|
-
(values === null || values === void 0 ? void 0 : values.length) === 0 && /*#__PURE__*/ (0,
|
|
144
|
+
(values === null || values === void 0 ? void 0 : values.length) === 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Alert, {
|
|
141
145
|
severity: "info",
|
|
142
146
|
children: "No results"
|
|
143
147
|
}),
|
|
144
|
-
isLoading && /*#__PURE__*/ (0,
|
|
148
|
+
isLoading && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Stack, {
|
|
145
149
|
width: "100%",
|
|
146
150
|
sx: {
|
|
147
151
|
alignItems: 'center',
|
|
148
152
|
justifyContent: 'center'
|
|
149
153
|
},
|
|
150
|
-
children: /*#__PURE__*/ (0,
|
|
154
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.CircularProgress, {})
|
|
151
155
|
}),
|
|
152
|
-
values === null || values === void 0 ? void 0 : values.slice(0, maxValues).map((val)=>/*#__PURE__*/ (0,
|
|
156
|
+
values === null || values === void 0 ? void 0 : values.slice(0, maxValues).map((val)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Chip, {
|
|
153
157
|
size: "small",
|
|
154
158
|
label: val
|
|
155
159
|
}, val)),
|
|
156
|
-
notShown > 0 && /*#__PURE__*/ (0,
|
|
160
|
+
notShown > 0 && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Chip, {
|
|
157
161
|
onClick: showAll,
|
|
158
162
|
variant: "outlined",
|
|
159
163
|
size: "small",
|
|
@@ -167,9 +171,9 @@ function VariablePreview(props) {
|
|
|
167
171
|
}
|
|
168
172
|
function VariableListPreview(props) {
|
|
169
173
|
const { definition , onRefresh } = props;
|
|
170
|
-
const { data , isFetching , error } = (0,
|
|
174
|
+
const { data , isFetching , error } = (0, _variablemodel.useListVariablePluginValues)(definition);
|
|
171
175
|
const errorMessage = error === null || error === void 0 ? void 0 : error.message;
|
|
172
|
-
return /*#__PURE__*/ (0,
|
|
176
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(VariablePreview, {
|
|
173
177
|
values: (data === null || data === void 0 ? void 0 : data.map((val)=>val.value)) || [],
|
|
174
178
|
onRefresh: onRefresh,
|
|
175
179
|
isLoading: isFetching,
|
|
@@ -14,16 +14,18 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function
|
|
17
|
+
_export_star(require("./VariableEditorForm"), exports);
|
|
18
|
+
_export_star(require("./VariablePreview"), exports);
|
|
19
|
+
function _export_star(from, to) {
|
|
20
20
|
Object.keys(from).forEach(function(k) {
|
|
21
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
22
|
+
Object.defineProperty(to, k, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function() {
|
|
25
|
+
return from[k];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
27
29
|
});
|
|
28
30
|
return from;
|
|
29
31
|
}
|
|
@@ -21,19 +21,24 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
getInitialState: ()
|
|
25
|
-
|
|
24
|
+
getInitialState: function() {
|
|
25
|
+
return getInitialState;
|
|
26
|
+
},
|
|
27
|
+
getVariableDefinitionFromState: function() {
|
|
28
|
+
return getVariableDefinitionFromState;
|
|
29
|
+
}
|
|
26
30
|
});
|
|
27
31
|
function getInitialState(initialVariableDefinition) {
|
|
28
|
-
var
|
|
29
|
-
var
|
|
32
|
+
var _initialVariableDefinition_spec_display, _initialVariableDefinition_spec_display1;
|
|
33
|
+
var _initialVariableDefinition_spec_value, _initialVariableDefinition_spec_constant;
|
|
30
34
|
const textVariableFields = {
|
|
31
|
-
value: (
|
|
35
|
+
value: (_initialVariableDefinition_spec_value = initialVariableDefinition.spec.value) !== null && _initialVariableDefinition_spec_value !== void 0 ? _initialVariableDefinition_spec_value : '',
|
|
36
|
+
constant: (_initialVariableDefinition_spec_constant = initialVariableDefinition.spec.constant) !== null && _initialVariableDefinition_spec_constant !== void 0 ? _initialVariableDefinition_spec_constant : false
|
|
32
37
|
};
|
|
33
38
|
const listVariableFields = {
|
|
34
39
|
allowMultiple: false,
|
|
35
40
|
allowAll: false,
|
|
36
|
-
|
|
41
|
+
capturingRegexp: undefined,
|
|
37
42
|
plugin: {
|
|
38
43
|
kind: '',
|
|
39
44
|
spec: {}
|
|
@@ -41,39 +46,30 @@ function getInitialState(initialVariableDefinition) {
|
|
|
41
46
|
customAllValue: undefined
|
|
42
47
|
};
|
|
43
48
|
if (initialVariableDefinition.kind === 'ListVariable') {
|
|
44
|
-
var
|
|
45
|
-
listVariableFields.allowMultiple = (
|
|
46
|
-
var
|
|
47
|
-
listVariableFields.allowAll = (
|
|
48
|
-
listVariableFields.
|
|
49
|
+
var _initialVariableDefinition_spec_allowAllValue;
|
|
50
|
+
listVariableFields.allowMultiple = (_initialVariableDefinition_spec_allowAllValue = initialVariableDefinition.spec.allowAllValue) !== null && _initialVariableDefinition_spec_allowAllValue !== void 0 ? _initialVariableDefinition_spec_allowAllValue : false;
|
|
51
|
+
var _initialVariableDefinition_spec_allowAllValue1;
|
|
52
|
+
listVariableFields.allowAll = (_initialVariableDefinition_spec_allowAllValue1 = initialVariableDefinition.spec.allowAllValue) !== null && _initialVariableDefinition_spec_allowAllValue1 !== void 0 ? _initialVariableDefinition_spec_allowAllValue1 : false;
|
|
53
|
+
listVariableFields.capturingRegexp = initialVariableDefinition.spec.capturingRegexp;
|
|
49
54
|
listVariableFields.plugin = initialVariableDefinition.spec.plugin;
|
|
50
|
-
listVariableFields.customAllValue = initialVariableDefinition.spec.
|
|
55
|
+
listVariableFields.customAllValue = initialVariableDefinition.spec.customAllValue;
|
|
51
56
|
}
|
|
57
|
+
var _initialVariableDefinition_spec_display_name, _initialVariableDefinition_spec_display_description;
|
|
52
58
|
return {
|
|
53
59
|
name: initialVariableDefinition.spec.name,
|
|
54
|
-
title: (
|
|
60
|
+
title: (_initialVariableDefinition_spec_display_name = (_initialVariableDefinition_spec_display = initialVariableDefinition.spec.display) === null || _initialVariableDefinition_spec_display === void 0 ? void 0 : _initialVariableDefinition_spec_display.name) !== null && _initialVariableDefinition_spec_display_name !== void 0 ? _initialVariableDefinition_spec_display_name : '',
|
|
55
61
|
kind: initialVariableDefinition.kind,
|
|
56
|
-
description: (
|
|
62
|
+
description: (_initialVariableDefinition_spec_display_description = (_initialVariableDefinition_spec_display1 = initialVariableDefinition.spec.display) === null || _initialVariableDefinition_spec_display1 === void 0 ? void 0 : _initialVariableDefinition_spec_display1.description) !== null && _initialVariableDefinition_spec_display_description !== void 0 ? _initialVariableDefinition_spec_display_description : '',
|
|
57
63
|
listVariableFields,
|
|
58
64
|
textVariableFields
|
|
59
65
|
};
|
|
60
66
|
}
|
|
61
67
|
function getVariableDefinitionFromState(state) {
|
|
62
68
|
const { name , title , kind , description } = state;
|
|
63
|
-
|
|
64
|
-
name: title
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if (display) {
|
|
68
|
-
display.description = description;
|
|
69
|
-
} else {
|
|
70
|
-
// Name is mandatory if you want to add a description, autofilled by the metadata name if undefined
|
|
71
|
-
display = {
|
|
72
|
-
name: name,
|
|
73
|
-
description: description
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
69
|
+
const display = {
|
|
70
|
+
name: title,
|
|
71
|
+
description: description
|
|
72
|
+
};
|
|
77
73
|
if (kind === 'TextVariable') {
|
|
78
74
|
return {
|
|
79
75
|
kind,
|
|
@@ -90,11 +86,11 @@ function getVariableDefinitionFromState(state) {
|
|
|
90
86
|
spec: {
|
|
91
87
|
name,
|
|
92
88
|
display,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
allowMultiple: state.listVariableFields.allowMultiple,
|
|
90
|
+
allowAllValue: state.listVariableFields.allowAll,
|
|
91
|
+
capturingRegexp: state.listVariableFields.capturingRegexp,
|
|
96
92
|
plugin: state.listVariableFields.plugin,
|
|
97
|
-
|
|
93
|
+
customAllValue: state.listVariableFields.customAllValue
|
|
98
94
|
}
|
|
99
95
|
};
|
|
100
96
|
}
|
|
@@ -14,16 +14,18 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function
|
|
17
|
+
_export_star(require("./variable-model"), exports);
|
|
18
|
+
_export_star(require("./VariableEditorForm"), exports);
|
|
19
|
+
function _export_star(from, to) {
|
|
20
20
|
Object.keys(from).forEach(function(k) {
|
|
21
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
22
|
+
Object.defineProperty(to, k, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function() {
|
|
25
|
+
return from[k];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
27
29
|
});
|
|
28
30
|
return from;
|
|
29
31
|
}
|
|
@@ -21,12 +21,20 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
filterVariableList: ()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
filterVariableList: function() {
|
|
25
|
+
return filterVariableList;
|
|
26
|
+
},
|
|
27
|
+
useListVariablePluginValues: function() {
|
|
28
|
+
return useListVariablePluginValues;
|
|
29
|
+
},
|
|
30
|
+
getVariableValuesKey: function() {
|
|
31
|
+
return getVariableValuesKey;
|
|
32
|
+
},
|
|
33
|
+
VARIABLE_TYPES: function() {
|
|
34
|
+
return VARIABLE_TYPES;
|
|
35
|
+
}
|
|
28
36
|
});
|
|
29
|
-
const
|
|
37
|
+
const _reactquery = require("@tanstack/react-query");
|
|
30
38
|
const _runtime = require("../../runtime");
|
|
31
39
|
function filterVariableList(data, capturedRegexp) {
|
|
32
40
|
const result = [];
|
|
@@ -64,7 +72,7 @@ function useListVariablePluginValues(definition) {
|
|
|
64
72
|
variables: allVariables
|
|
65
73
|
};
|
|
66
74
|
const spec = definition.spec.plugin.spec;
|
|
67
|
-
const capturingRegexp = definition.spec.
|
|
75
|
+
const capturingRegexp = definition.spec.capturingRegexp !== undefined ? new RegExp(definition.spec.capturingRegexp, 'g') : undefined;
|
|
68
76
|
let dependsOnVariables;
|
|
69
77
|
if (variablePlugin === null || variablePlugin === void 0 ? void 0 : variablePlugin.dependsOn) {
|
|
70
78
|
const dependencies = variablePlugin.dependsOn(spec, variablePluginCtx);
|
|
@@ -74,12 +82,12 @@ function useListVariablePluginValues(definition) {
|
|
|
74
82
|
let waitToLoad = false;
|
|
75
83
|
if (dependsOnVariables) {
|
|
76
84
|
waitToLoad = dependsOnVariables.some((v)=>{
|
|
77
|
-
var
|
|
78
|
-
return (
|
|
85
|
+
var _variables_v;
|
|
86
|
+
return (_variables_v = variables[v]) === null || _variables_v === void 0 ? void 0 : _variables_v.loading;
|
|
79
87
|
});
|
|
80
88
|
}
|
|
81
89
|
const variablesValueKey = getVariableValuesKey(variables);
|
|
82
|
-
return (0,
|
|
90
|
+
return (0, _reactquery.useQuery)([
|
|
83
91
|
name,
|
|
84
92
|
definition,
|
|
85
93
|
variablesValueKey,
|
|
@@ -14,26 +14,29 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
_export_star(require("./CalculationSelector"), exports);
|
|
18
|
+
_export_star(require("./DatasourceEditorForm"), exports);
|
|
19
|
+
_export_star(require("./DatasourceSelect"), exports);
|
|
20
|
+
_export_star(require("./LegendOptionsEditor"), exports);
|
|
21
|
+
_export_star(require("./OptionsEditorRadios"), exports);
|
|
22
|
+
_export_star(require("./OptionsEditorTabs"), exports);
|
|
23
|
+
_export_star(require("./PanelSpecEditor"), exports);
|
|
24
|
+
_export_star(require("./PluginEditor"), exports);
|
|
25
|
+
_export_star(require("./PluginKindSelect"), exports);
|
|
26
|
+
_export_star(require("./PluginRegistry"), exports);
|
|
27
|
+
_export_star(require("./PluginSpecEditor"), exports);
|
|
28
|
+
_export_star(require("./TimeSeriesQueryEditor"), exports);
|
|
29
|
+
_export_star(require("./Variables"), exports);
|
|
30
|
+
function _export_star(from, to) {
|
|
30
31
|
Object.keys(from).forEach(function(k) {
|
|
31
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
33
|
+
Object.defineProperty(to, k, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function() {
|
|
36
|
+
return from[k];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
37
40
|
});
|
|
38
41
|
return from;
|
|
39
42
|
}
|
|
@@ -14,15 +14,17 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
function
|
|
17
|
+
_export_star(require("./user-interface-text"), exports);
|
|
18
|
+
function _export_star(from, to) {
|
|
19
19
|
Object.keys(from).forEach(function(k) {
|
|
20
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
+
Object.defineProperty(to, k, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
26
28
|
});
|
|
27
29
|
return from;
|
|
28
30
|
}
|
|
@@ -16,7 +16,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "TOOLTIP_TEXT", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: ()
|
|
19
|
+
get: function() {
|
|
20
|
+
return TOOLTIP_TEXT;
|
|
21
|
+
}
|
|
20
22
|
});
|
|
21
23
|
const TOOLTIP_TEXT = {
|
|
22
24
|
// Variable editor buttons
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,20 +14,23 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
_export_star(require("./components"), exports);
|
|
18
|
+
_export_star(require("./constants"), exports);
|
|
19
|
+
_export_star(require("./model"), exports);
|
|
20
|
+
_export_star(require("./runtime"), exports);
|
|
21
|
+
_export_star(require("./test-utils"), exports);
|
|
22
|
+
_export_star(require("./utils"), exports);
|
|
23
|
+
_export_star(require("./validation"), exports);
|
|
24
|
+
function _export_star(from, to) {
|
|
24
25
|
Object.keys(from).forEach(function(k) {
|
|
25
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
27
|
+
Object.defineProperty(to, k, {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function() {
|
|
30
|
+
return from[k];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
31
34
|
});
|
|
32
35
|
return from;
|
|
33
36
|
}
|
package/dist/cjs/model/index.js
CHANGED
|
@@ -14,22 +14,24 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function
|
|
17
|
+
_export_star(require("./datasource"), exports);
|
|
18
|
+
_export_star(require("./legend"), exports);
|
|
19
|
+
_export_star(require("./panels"), exports);
|
|
20
|
+
_export_star(require("./plugins"), exports);
|
|
21
|
+
_export_star(require("./plugin-base"), exports);
|
|
22
|
+
_export_star(require("./plugin-loading"), exports);
|
|
23
|
+
_export_star(require("./time-series-queries"), exports);
|
|
24
|
+
_export_star(require("./variables"), exports);
|
|
25
|
+
function _export_star(from, to) {
|
|
26
26
|
Object.keys(from).forEach(function(k) {
|
|
27
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
28
|
+
Object.defineProperty(to, k, {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function() {
|
|
31
|
+
return from[k];
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
33
35
|
});
|
|
34
36
|
return from;
|
|
35
37
|
}
|
package/dist/cjs/model/legend.js
CHANGED
|
@@ -21,45 +21,57 @@ function _export(target, all) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
legendValues: ()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
legendValues: function() {
|
|
25
|
+
return legendValues;
|
|
26
|
+
},
|
|
27
|
+
LEGEND_POSITIONS_CONFIG: function() {
|
|
28
|
+
return LEGEND_POSITIONS_CONFIG;
|
|
29
|
+
},
|
|
30
|
+
LEGEND_MODE_CONFIG: function() {
|
|
31
|
+
return LEGEND_MODE_CONFIG;
|
|
32
|
+
},
|
|
33
|
+
LEGEND_SIZE_CONFIG: function() {
|
|
34
|
+
return LEGEND_SIZE_CONFIG;
|
|
35
|
+
},
|
|
36
|
+
LEGEND_VALUE_CONFIG: function() {
|
|
37
|
+
return LEGEND_VALUE_CONFIG;
|
|
38
|
+
},
|
|
39
|
+
validateLegendSpec: function() {
|
|
40
|
+
return validateLegendSpec;
|
|
41
|
+
}
|
|
30
42
|
});
|
|
31
43
|
const _core = require("@perses-dev/core");
|
|
32
44
|
const legendValues = [
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
45
|
+
'mean',
|
|
46
|
+
'first',
|
|
47
|
+
'first-number',
|
|
48
|
+
'last',
|
|
49
|
+
'last-number',
|
|
50
|
+
'min',
|
|
51
|
+
'max',
|
|
52
|
+
'sum'
|
|
41
53
|
];
|
|
42
54
|
const LEGEND_POSITIONS_CONFIG = {
|
|
43
|
-
|
|
55
|
+
bottom: {
|
|
44
56
|
label: 'Bottom'
|
|
45
57
|
},
|
|
46
|
-
|
|
58
|
+
right: {
|
|
47
59
|
label: 'Right'
|
|
48
60
|
}
|
|
49
61
|
};
|
|
50
62
|
const LEGEND_MODE_CONFIG = {
|
|
51
|
-
|
|
63
|
+
list: {
|
|
52
64
|
label: 'List'
|
|
53
65
|
},
|
|
54
|
-
|
|
66
|
+
table: {
|
|
55
67
|
label: 'Table'
|
|
56
68
|
}
|
|
57
69
|
};
|
|
58
70
|
const LEGEND_SIZE_CONFIG = {
|
|
59
|
-
|
|
71
|
+
small: {
|
|
60
72
|
label: 'Small'
|
|
61
73
|
},
|
|
62
|
-
|
|
74
|
+
medium: {
|
|
63
75
|
label: 'Medium'
|
|
64
76
|
}
|
|
65
77
|
};
|
package/dist/cjs/model/panels.js
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
const _react = /*#__PURE__*/
|
|
18
|
-
function
|
|
17
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
18
|
+
function _interop_require_default(obj) {
|
|
19
19
|
return obj && obj.__esModule ? obj : {
|
|
20
20
|
default: obj
|
|
21
21
|
};
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
16
16
|
});
|
|
17
|
-
const _react = /*#__PURE__*/
|
|
18
|
-
function
|
|
17
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
18
|
+
function _interop_require_default(obj) {
|
|
19
19
|
return obj && obj.__esModule ? obj : {
|
|
20
20
|
default: obj
|
|
21
21
|
};
|
|
@@ -16,7 +16,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "dynamicImportPluginLoader", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: ()
|
|
19
|
+
get: function() {
|
|
20
|
+
return dynamicImportPluginLoader;
|
|
21
|
+
}
|
|
20
22
|
});
|
|
21
23
|
function dynamicImportPluginLoader(plugins) {
|
|
22
24
|
const importMap = new Map(plugins.map((plugin)=>[
|