@gdacm/grafana-items 0.1.1
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 +81 -0
- package/dist/index.js +1168 -0
- package/dist/index.js.map +1 -0
- package/dist/items/Annotation.d.ts +17 -0
- package/dist/items/Annotations.d.ts +12 -0
- package/dist/items/BarChart.d.ts +15 -0
- package/dist/items/Color.d.ts +8 -0
- package/dist/items/Dashboard.d.ts +46 -0
- package/dist/items/DataTransformation.d.ts +8 -0
- package/dist/items/Datasource.d.ts +9 -0
- package/dist/items/DatasourceInfinity.d.ts +8 -0
- package/dist/items/FieldConfig.d.ts +17 -0
- package/dist/items/FieldConfigCustom.d.ts +8 -0
- package/dist/items/FieldConfigCustomBarChart.d.ts +31 -0
- package/dist/items/FieldConfigCustomGauge.d.ts +8 -0
- package/dist/items/FieldConfigCustomGeomap.d.ts +10 -0
- package/dist/items/FieldConfigCustomStat.d.ts +8 -0
- package/dist/items/FieldConfigCustomTable.d.ts +16 -0
- package/dist/items/FieldConfigCustomTableCellOptions.d.ts +8 -0
- package/dist/items/FieldConfigCustomTableFooter.d.ts +12 -0
- package/dist/items/FieldConfigCustomText.d.ts +8 -0
- package/dist/items/FieldConfigCustomTimeSerie.d.ts +54 -0
- package/dist/items/FieldConfigDefault.d.ts +31 -0
- package/dist/items/FieldConfigOverride.d.ts +18 -0
- package/dist/items/Gauge.d.ts +14 -0
- package/dist/items/Geomap.d.ts +14 -0
- package/dist/items/GrafanaItem.d.ts +18 -0
- package/dist/items/GridPos.d.ts +12 -0
- package/dist/items/HideFrom.d.ts +10 -0
- package/dist/items/Influxdb.d.ts +8 -0
- package/dist/items/LineStyle.d.ts +8 -0
- package/dist/items/Link.d.ts +22 -0
- package/dist/items/Mapping.d.ts +8 -0
- package/dist/items/OverrideMatcher.d.ts +11 -0
- package/dist/items/OverrideMatcherOptionsByNames.d.ts +15 -0
- package/dist/items/OverrideProperty.d.ts +9 -0
- package/dist/items/Panel.d.ts +57 -0
- package/dist/items/PanelOptions.d.ts +8 -0
- package/dist/items/PanelOptionsBarChart.d.ts +30 -0
- package/dist/items/PanelOptionsGauge.d.ts +30 -0
- package/dist/items/PanelOptionsGaugeEffect.d.ts +10 -0
- package/dist/items/PanelOptionsGaugeReduceOptions.d.ts +15 -0
- package/dist/items/PanelOptionsGeomap.d.ts +32 -0
- package/dist/items/PanelOptionsGeomapBasemap.d.ts +14 -0
- package/dist/items/PanelOptionsGeomapControls.d.ts +13 -0
- package/dist/items/PanelOptionsGeomapLayer.d.ts +19 -0
- package/dist/items/PanelOptionsGeomapLayerConfig.d.ts +12 -0
- package/dist/items/PanelOptionsGeomapLayerConfigStyle.d.ts +31 -0
- package/dist/items/PanelOptionsGeomapLayerLocation.d.ts +8 -0
- package/dist/items/PanelOptionsGeomapTooltip.d.ts +8 -0
- package/dist/items/PanelOptionsGeomapView.d.ts +14 -0
- package/dist/items/PanelOptionsStat.d.ts +8 -0
- package/dist/items/PanelOptionsTable.d.ts +14 -0
- package/dist/items/PanelOptionsTableSortBy.d.ts +9 -0
- package/dist/items/PanelOptionsText.d.ts +12 -0
- package/dist/items/PanelOptionsTextCode.d.ts +10 -0
- package/dist/items/PanelOptionsTimeSeries.d.ts +16 -0
- package/dist/items/ScaleDistribution.d.ts +8 -0
- package/dist/items/Stacking.d.ts +9 -0
- package/dist/items/Stat.d.ts +14 -0
- package/dist/items/StyleColor.d.ts +8 -0
- package/dist/items/StyleRotation.d.ts +11 -0
- package/dist/items/StyleSize.d.ts +10 -0
- package/dist/items/StyleSymbol.d.ts +10 -0
- package/dist/items/StyleSymbolAlign.d.ts +9 -0
- package/dist/items/StyleTextConfig.d.ts +12 -0
- package/dist/items/Table.d.ts +14 -0
- package/dist/items/Target.d.ts +17 -0
- package/dist/items/TargetInfinity.d.ts +20 -0
- package/dist/items/Template.d.ts +29 -0
- package/dist/items/TemplateCurrent.d.ts +9 -0
- package/dist/items/TemplateOption.d.ts +10 -0
- package/dist/items/Templating.d.ts +12 -0
- package/dist/items/Testdata.d.ts +8 -0
- package/dist/items/TextPanel.d.ts +14 -0
- package/dist/items/ThresholdStyle.d.ts +8 -0
- package/dist/items/Thresholds.d.ts +14 -0
- package/dist/items/ThresholdsStep.d.ts +9 -0
- package/dist/items/TimePicker.d.ts +12 -0
- package/dist/items/TimeRange.d.ts +10 -0
- package/dist/items/TimeSeries.d.ts +15 -0
- package/dist/items/VizLegendOptions.d.ts +22 -0
- package/dist/items/VizTextDisplayOptions.d.ts +10 -0
- package/dist/items/VizTooltipOptions.d.ts +12 -0
- package/package.json +41 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsTextCode extends GrafanaItem {
|
|
7
|
+
setLanguage(language: String): this;
|
|
8
|
+
setShowLineNumbers(showLineNumbers: Boolean): this;
|
|
9
|
+
setShowMiniMap(showMiniMap: Boolean): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PanelOptions } from "./PanelOptions.js";
|
|
2
|
+
import { VizLegendOptions } from "./VizLegendOptions.js";
|
|
3
|
+
import { VizTooltipOptions } from "./VizTooltipOptions.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class PanelOptionsTimeSeries extends PanelOptions {
|
|
8
|
+
setDisableKeyboardEvents(disableKeyboardEvents: Boolean): this;
|
|
9
|
+
setLegend(legend: VizLegendOptions): this;
|
|
10
|
+
withLegend(onWith: (item: VizLegendOptions) => void): this;
|
|
11
|
+
get legend(): VizLegendOptions;
|
|
12
|
+
setOrientation(orientation: String): this;
|
|
13
|
+
setTooltip(tooltip: VizTooltipOptions): this;
|
|
14
|
+
withTooltip(onWith: (item: VizTooltipOptions) => void): this;
|
|
15
|
+
get tooltip(): VizTooltipOptions;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Panel } from "./Panel.js";
|
|
2
|
+
import { FieldConfigCustomStat } from "./FieldConfigCustomStat.js";
|
|
3
|
+
import { PanelOptionsStat } from "./PanelOptionsStat.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class Stat extends Panel {
|
|
8
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
9
|
+
get custom(): FieldConfigCustomStat;
|
|
10
|
+
withCustom(code: (custom: FieldConfigCustomStat) => void): this
|
|
11
|
+
setNewOptions(onNewCreated: ((item: PanelOptionsStat) => PanelOptionsStat) | undefined): this;
|
|
12
|
+
withOptions(onWith: (item: PanelOptionsStat) => void): this;
|
|
13
|
+
get options(): PanelOptionsStat;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class StyleRotation extends GrafanaItem {
|
|
7
|
+
setFixed(fixed: Number): this;
|
|
8
|
+
setMax(max: Number): this;
|
|
9
|
+
setMin(min: Number): this;
|
|
10
|
+
setMode(mode: String): this;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class StyleSize extends GrafanaItem {
|
|
7
|
+
setFixed(fixed: Number): this;
|
|
8
|
+
setMax(max: Number): this;
|
|
9
|
+
setMin(min: Number): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class StyleSymbol extends GrafanaItem {
|
|
7
|
+
setField(field: String): this;
|
|
8
|
+
setFixed(fixed: String): this;
|
|
9
|
+
setMode(mode: String): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class StyleSymbolAlign extends GrafanaItem {
|
|
7
|
+
setHorizontal(horizontal: String): this;
|
|
8
|
+
setVertical(vertical: String): this;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class StyleTextConfig extends GrafanaItem {
|
|
7
|
+
setFontSize(fontSize: Number): this;
|
|
8
|
+
setOffsetX(offsetX: Number): this;
|
|
9
|
+
setOffsetY(offsetY: Number): this;
|
|
10
|
+
setTextAlign(textAlign: String): this;
|
|
11
|
+
setTextBaseline(textBaseline: String): this;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Panel } from "./Panel.js";
|
|
2
|
+
import { FieldConfigCustomTable } from "./FieldConfigCustomTable.js";
|
|
3
|
+
import { PanelOptionsTable } from "./PanelOptionsTable.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class Table extends Panel {
|
|
8
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
9
|
+
get custom(): FieldConfigCustomTable;
|
|
10
|
+
withCustom(code: (custom: FieldConfigCustomTable) => void): this
|
|
11
|
+
setNewOptions(onNewCreated: ((item: PanelOptionsTable) => PanelOptionsTable) | undefined): this;
|
|
12
|
+
withOptions(onWith: (item: PanelOptionsTable) => void): this;
|
|
13
|
+
get options(): PanelOptionsTable;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { Datasource } from "./Datasource.js";
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class Target extends GrafanaItem {
|
|
7
|
+
setAlias(alias: String): this;
|
|
8
|
+
setRefId(refId: String): this;
|
|
9
|
+
setQuery(query: String): this;
|
|
10
|
+
setDatasource(datasource: Datasource): this;
|
|
11
|
+
setNewDatasource(onNewCreated: ((item: Datasource) => Datasource) | undefined): this;
|
|
12
|
+
withDatasource(onWith: (item: Datasource) => void): this;
|
|
13
|
+
get datasource(): Datasource;
|
|
14
|
+
setSeriesCount(seriesCount: Number): this;
|
|
15
|
+
setScenarioId(scenarioId: String): this;
|
|
16
|
+
setStringInput(stringInput: String): this;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Target } from "./Target.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class TargetInfinity extends Target {
|
|
7
|
+
setColumns(columns: Object): this;
|
|
8
|
+
withColumns(onWith: (item: Object) => void): this;
|
|
9
|
+
get columns(): Object;
|
|
10
|
+
setComputedColumns(computedColumns: Object): this;
|
|
11
|
+
withComputedColumns(onWith: (item: Object) => void): this;
|
|
12
|
+
get computedColumns(): Object;
|
|
13
|
+
setFormat(format: String): this;
|
|
14
|
+
setParser(parser: String): this;
|
|
15
|
+
setSource(source: String): this;
|
|
16
|
+
setType(type: String): this;
|
|
17
|
+
setUql(uql: String): this;
|
|
18
|
+
setUrl(url: String): this;
|
|
19
|
+
setUrlOptions(urlOptions: Object): this;
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { TemplateCurrent } from "./TemplateCurrent.js";
|
|
3
|
+
import { TemplateOption } from "./TemplateOption.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class Template extends GrafanaItem {
|
|
8
|
+
setCurrent(current: TemplateCurrent): this;
|
|
9
|
+
setNewCurrent(onNewCreated: ((item: TemplateCurrent) => TemplateCurrent) | undefined): this;
|
|
10
|
+
withCurrent(onWith: (item: TemplateCurrent) => void): this;
|
|
11
|
+
get current(): TemplateCurrent;
|
|
12
|
+
setDefinition(definition: String): this;
|
|
13
|
+
setDescription(description: String): this;
|
|
14
|
+
setHide(hide: Number): this;
|
|
15
|
+
setLabel(label: String): this;
|
|
16
|
+
setMulti(multi: Boolean): this;
|
|
17
|
+
setName(name: String): this;
|
|
18
|
+
initOptions(): this;
|
|
19
|
+
get options(): TemplateOption[];
|
|
20
|
+
addOption(option: TemplateOption): this;
|
|
21
|
+
addNewOption(onNewCreated: (item: TemplateOption) => TemplateOption): this;
|
|
22
|
+
withOptions(onWith: (options: TemplateOption[]) => void): this;
|
|
23
|
+
setQuery(query: Object): this;
|
|
24
|
+
setRefresh(refresh: Number): this;
|
|
25
|
+
setRegex(regex: String): this;
|
|
26
|
+
setSort(sort: Number): this;
|
|
27
|
+
setType(type: String): this;
|
|
28
|
+
setUseTags(useTags: Boolean): this;
|
|
29
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class TemplateOption extends GrafanaItem {
|
|
7
|
+
setSelected(selected: Boolean): this;
|
|
8
|
+
setText(text: String): this;
|
|
9
|
+
setValue(value: String): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { Template } from "./Template.js";
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class Templating extends GrafanaItem {
|
|
7
|
+
initList(): this;
|
|
8
|
+
get list(): Template[];
|
|
9
|
+
addTemplate(template: Template): this;
|
|
10
|
+
addNewTemplate(onNewCreated: (item: Template) => Template): this;
|
|
11
|
+
withList(onWith: (list: Template[]) => void): this;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Panel } from "./Panel.js";
|
|
2
|
+
import { FieldConfigCustomText } from "./FieldConfigCustomText.js";
|
|
3
|
+
import { PanelOptionsText } from "./PanelOptionsText.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class TextPanel extends Panel {
|
|
8
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
9
|
+
get custom(): FieldConfigCustomText;
|
|
10
|
+
withCustom(code: (custom: FieldConfigCustomText) => void): this
|
|
11
|
+
setNewOptions(onNewCreated: ((item: PanelOptionsText) => PanelOptionsText) | undefined): this;
|
|
12
|
+
withOptions(onWith: (item: PanelOptionsText) => void): this;
|
|
13
|
+
get options(): PanelOptionsText;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { ThresholdsStep } from "./ThresholdsStep.js";
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class Thresholds extends GrafanaItem {
|
|
7
|
+
setMode(mode: String): this;
|
|
8
|
+
initSteps(): this;
|
|
9
|
+
get steps(): ThresholdsStep[];
|
|
10
|
+
addStep(step: ThresholdsStep): this;
|
|
11
|
+
addNewStep(onNewCreated: (item: ThresholdsStep) => ThresholdsStep): this;
|
|
12
|
+
withSteps(onWith: (steps: ThresholdsStep[]) => void): this;
|
|
13
|
+
addStepWithValueAndColor(value: number, color: string): this;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class TimePicker extends GrafanaItem {
|
|
7
|
+
initRefresh_intervals(): this;
|
|
8
|
+
get refresh_intervals(): String[];
|
|
9
|
+
addRefreshInterval(refreshInterval: String): this;
|
|
10
|
+
addNewRefreshInterval(onNewCreated: (item: String) => String): this;
|
|
11
|
+
withRefresh_intervals(onWith: (refresh_intervals: String[]) => void): this;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class TimeRange extends GrafanaItem {
|
|
7
|
+
setFrom(from: String): this;
|
|
8
|
+
setTo(to: String): this;
|
|
9
|
+
setRange(from: string, to: string): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Panel } from "./Panel.js";
|
|
2
|
+
import { FieldConfigCustomTimeSerie } from "./FieldConfigCustomTimeSerie.js";
|
|
3
|
+
import { PanelOptionsTimeSeries } from "./PanelOptionsTimeSeries.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class TimeSeries extends Panel {
|
|
8
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
9
|
+
get custom(): FieldConfigCustomTimeSerie;
|
|
10
|
+
withCustom(code: (custom: FieldConfigCustomTimeSerie) => void): this
|
|
11
|
+
setNewOptions(onNewCreated: ((item: PanelOptionsTimeSeries) => PanelOptionsTimeSeries) | undefined): this;
|
|
12
|
+
withOptions(onWith: (item: PanelOptionsTimeSeries) => void): this;
|
|
13
|
+
get options(): PanelOptionsTimeSeries;
|
|
14
|
+
setThresholdsStyleArea(): this
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class VizLegendOptions extends GrafanaItem {
|
|
7
|
+
setAsTable(asTable: Boolean): this;
|
|
8
|
+
initCalcs(): this;
|
|
9
|
+
get calcs(): String[];
|
|
10
|
+
addCalc(calc: String): this;
|
|
11
|
+
addNewCalc(onNewCreated: (item: String) => String): this;
|
|
12
|
+
withCalcs(onWith: (calcs: String[]) => void): this;
|
|
13
|
+
setDisplayMode(displayMode: String): this;
|
|
14
|
+
setIsVisible(isVisible: Boolean): this;
|
|
15
|
+
setLimit(limit: Number): this;
|
|
16
|
+
setOverflow(overflow: String): this;
|
|
17
|
+
setPlacement(placement: String): this;
|
|
18
|
+
setShowLegend(showLegend: Boolean): this;
|
|
19
|
+
setSortBy(sortBy: String): this;
|
|
20
|
+
setSortDesc(sortDesc: Boolean): this;
|
|
21
|
+
setWidth(width: Number): this;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class VizTextDisplayOptions extends GrafanaItem {
|
|
7
|
+
setPercentSize(percentSize: Number): this;
|
|
8
|
+
setTitleSize(titleSize: Number): this;
|
|
9
|
+
setValueSize(valueSize: Number): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class VizTooltipOptions extends GrafanaItem {
|
|
7
|
+
setHideZeros(hideZeros: Boolean): this;
|
|
8
|
+
setMaxHeight(maxHeight: Number): this;
|
|
9
|
+
setMaxWidth(maxWidth: Number): this;
|
|
10
|
+
setMode(mode: String): this;
|
|
11
|
+
setSort(sort: String): this;
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gdacm/grafana-items",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"author": "gissehel",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"clean:local": "rm -rf dist .turbo",
|
|
20
|
+
"dev": "vite build --watch",
|
|
21
|
+
"types:watch": "chokidar \"src/**/*.js\" -c \"node updateTypes.js\" --initial",
|
|
22
|
+
"plop": "plop",
|
|
23
|
+
"build:js": "vite build",
|
|
24
|
+
"build:types": "yarn update",
|
|
25
|
+
"build": "yarn build:js && yarn build:types",
|
|
26
|
+
"test": "yarn test:watch",
|
|
27
|
+
"test:watch": "vitest --watch",
|
|
28
|
+
"test:ui": "vitest --ui",
|
|
29
|
+
"test:run": "vitest run",
|
|
30
|
+
"update": "node updateTypes.js"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@gdacm/base-types": "^0.1.1"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"chokidar-cli": "^3.0.0",
|
|
37
|
+
"plop": "^4.0.5",
|
|
38
|
+
"vite": "^8.2.0",
|
|
39
|
+
"vitest": "^4.1.10"
|
|
40
|
+
}
|
|
41
|
+
}
|