@gisce/ooui 0.2.11 → 0.2.12
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.
|
@@ -20,9 +20,11 @@ var GraphIndicator = /** @class */ (function (_super) {
|
|
|
20
20
|
_this._icon = null;
|
|
21
21
|
_this._totalDomain = null;
|
|
22
22
|
_this._showPercent = false;
|
|
23
|
+
_this._suffix = null;
|
|
23
24
|
_this._type = "indicator";
|
|
24
25
|
_this._color = element.getAttribute("color");
|
|
25
26
|
_this._icon = element.getAttribute("icon");
|
|
27
|
+
_this._suffix = element.getAttribute("suffix");
|
|
26
28
|
_this._totalDomain = element.getAttribute("totalDomain");
|
|
27
29
|
var showPercent = element.getAttribute("showPercent");
|
|
28
30
|
if (showPercent &&
|
|
@@ -60,6 +62,13 @@ var GraphIndicator = /** @class */ (function (_super) {
|
|
|
60
62
|
enumerable: false,
|
|
61
63
|
configurable: true
|
|
62
64
|
});
|
|
65
|
+
Object.defineProperty(GraphIndicator.prototype, "suffix", {
|
|
66
|
+
get: function () {
|
|
67
|
+
return this._suffix;
|
|
68
|
+
},
|
|
69
|
+
enumerable: false,
|
|
70
|
+
configurable: true
|
|
71
|
+
});
|
|
63
72
|
return GraphIndicator;
|
|
64
73
|
}(Graph));
|
|
65
74
|
export { GraphIndicator };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphIndicator.js","sourceRoot":"","sources":["../../src/Graph/GraphIndicator.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;IAAoC,kCAAK;
|
|
1
|
+
{"version":3,"file":"GraphIndicator.js","sourceRoot":"","sources":["../../src/Graph/GraphIndicator.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;IAAoC,kCAAK;IA0BvC,wBAAY,OAAoB;QAAhC,YACE,kBAA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AK,GA4CxC"}
|
package/package.json
CHANGED
|
@@ -21,12 +21,18 @@ export class GraphIndicator extends Graph {
|
|
|
21
21
|
return this._showPercent;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
_suffix: string | null = null;
|
|
25
|
+
get suffix(): string | null {
|
|
26
|
+
return this._suffix;
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
constructor(element: HTMLElement) {
|
|
25
30
|
super(element);
|
|
26
31
|
|
|
27
32
|
this._type = "indicator";
|
|
28
33
|
this._color = element.getAttribute("color");
|
|
29
34
|
this._icon = element.getAttribute("icon");
|
|
35
|
+
this._suffix = element.getAttribute("suffix");
|
|
30
36
|
this._totalDomain = element.getAttribute("totalDomain");
|
|
31
37
|
const showPercent = element.getAttribute("showPercent");
|
|
32
38
|
|