@gdacm/grafana-items 0.1.16 → 0.1.17
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/index.d.ts +3 -0
- package/dist/index.js +177 -39
- package/dist/index.js.map +1 -1
- package/dist/items/FieldConfigCustomPieChart.d.ts +8 -0
- package/dist/items/GrafanaItem.d.ts +3 -0
- package/dist/items/PanelOptionsGeomapBasemap.d.ts +0 -1
- package/dist/items/PanelOptionsPieChart.d.ts +8 -0
- package/dist/items/PieChart.d.ts +14 -0
- package/package.json +2 -2
|
@@ -15,4 +15,7 @@ export declare class GrafanaItem {
|
|
|
15
15
|
_setObject<T>(key: string, value: T): this;
|
|
16
16
|
_getObject<T>(key: string): T;
|
|
17
17
|
_withObject<T>(key: string, code: (item: T) => void): this;
|
|
18
|
+
_setGrafanaObject<T extends GrafanaItem>(key: string, type: new (metaOptions: GenericMetaOptions) => T, value: T | undefined): this;
|
|
19
|
+
_getGrafanaObject<T extends GrafanaItem>(key: string, type: new (metaOptions: GenericMetaOptions) => T): T;
|
|
20
|
+
_withGrafanaObject<T extends GrafanaItem>(key: string, type: new (metaOptions: GenericMetaOptions) => T, code: (item: T) => void): this;
|
|
18
21
|
}
|
|
@@ -5,7 +5,6 @@ import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
|
5
5
|
|
|
6
6
|
export declare class PanelOptionsGeomapBasemap extends GrafanaItem {
|
|
7
7
|
setConfig(config: Object): this;
|
|
8
|
-
setNewConfig(onNewCreated: ((item: Object) => Object) | undefined): this;
|
|
9
8
|
withConfig(onWith: (item: Object) => void): this;
|
|
10
9
|
get config(): Object;
|
|
11
10
|
setName(name: String): this;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Panel } from "./Panel.js";
|
|
2
|
+
import { FieldConfigCustomPieChart } from "./FieldConfigCustomPieChart.js";
|
|
3
|
+
import { PanelOptionsPieChart } from "./PanelOptionsPieChart.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class PieChart extends Panel {
|
|
8
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
9
|
+
get custom(): FieldConfigCustomPieChart;
|
|
10
|
+
withCustom(code: (custom: FieldConfigCustomPieChart) => void): this
|
|
11
|
+
setNewOptions(onNewCreated: ((item: PanelOptionsPieChart) => PanelOptionsPieChart) | undefined): this;
|
|
12
|
+
withOptions(onWith: (item: PanelOptionsPieChart) => void): this;
|
|
13
|
+
get options(): PanelOptionsPieChart;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gdacm/grafana-items",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"author": "gissehel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"update": "node updateTypes.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@gdacm/base-types": "^0.1.
|
|
33
|
+
"@gdacm/base-types": "^0.1.17"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"chokidar-cli": "^3.0.0",
|