@colijnit/sharedcomponents 258.1.15 → 258.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/bundles/colijnit-sharedcomponents.umd.js +26 -5
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +11 -3
- package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +35 -35
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +15 -3
- package/esm2015/lib/components/statusbar/statusbar.component.js +1 -1
- package/esm2015/lib/enum/gauge-color.enum.js +2 -1
- package/fesm2015/colijnit-sharedcomponents.js +59 -38
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/statusbar/statusbar-popup.component.d.ts +2 -0
- package/lib/components/statusbar/statusbar.component.d.ts +1 -1
- package/lib/components/statusbar/style/_layout.scss +3 -0
- package/lib/enum/gauge-color.enum.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3569,8 +3569,8 @@
|
|
|
3569
3569
|
else {
|
|
3570
3570
|
this.currentLayout = this.layouts[0];
|
|
3571
3571
|
}
|
|
3572
|
+
this.loadDefaultPrinterName.emit(this.currentLayout.reportId);
|
|
3572
3573
|
}
|
|
3573
|
-
this.loadDefaultPrinterName.emit(this.currentLayout.reportId);
|
|
3574
3574
|
};
|
|
3575
3575
|
LayoutSelectionComponent.prototype.handleSelectLayout = function (reportLayout) {
|
|
3576
3576
|
this.currentLayout = reportLayout;
|
|
@@ -6002,6 +6002,7 @@
|
|
|
6002
6002
|
|
|
6003
6003
|
var GaugeColor$1;
|
|
6004
6004
|
(function (GaugeColor) {
|
|
6005
|
+
GaugeColor["Disabled"] = "#e7e7e7";
|
|
6005
6006
|
GaugeColor["Lowest"] = "#E0E0E0";
|
|
6006
6007
|
GaugeColor["Low"] = "#fff7b8";
|
|
6007
6008
|
GaugeColor["MediumLow"] = "#ffe367";
|
|
@@ -6029,10 +6030,18 @@
|
|
|
6029
6030
|
return true;
|
|
6030
6031
|
};
|
|
6031
6032
|
CoLinearGaugeComponent.prototype.getStyle = function () {
|
|
6032
|
-
|
|
6033
|
+
if (this.value == null) {
|
|
6034
|
+
return GaugeColor$1.Disabled;
|
|
6035
|
+
}
|
|
6036
|
+
else {
|
|
6037
|
+
return "linear-gradient(90deg, " + this.color + " 0 " + this.value + "%, white " + this.value + "% 100%";
|
|
6038
|
+
}
|
|
6033
6039
|
};
|
|
6034
6040
|
CoLinearGaugeComponent.prototype._setColor = function () {
|
|
6035
|
-
if (this.value
|
|
6041
|
+
if (this.value == null) {
|
|
6042
|
+
this.color = GaugeColor$1.Disabled;
|
|
6043
|
+
}
|
|
6044
|
+
else if (this.value <= 0) {
|
|
6036
6045
|
this.color = GaugeColor$1.Lowest;
|
|
6037
6046
|
}
|
|
6038
6047
|
else if (this.value >= 1 && this.value < 25) {
|
|
@@ -6088,6 +6097,7 @@
|
|
|
6088
6097
|
chart_js.Chart.register(chart_js.DoughnutController, chart_js.ArcElement);
|
|
6089
6098
|
var GaugeColor;
|
|
6090
6099
|
(function (GaugeColor) {
|
|
6100
|
+
GaugeColor["Disabled"] = "#e7e7e7";
|
|
6091
6101
|
GaugeColor["Lowest"] = "#E0E0E0";
|
|
6092
6102
|
GaugeColor["Low"] = "#fff7b8";
|
|
6093
6103
|
GaugeColor["MediumLow"] = "#ffe367";
|
|
@@ -6124,7 +6134,7 @@
|
|
|
6124
6134
|
data: {
|
|
6125
6135
|
datasets: [{
|
|
6126
6136
|
label: _this.statusbarData[index].label,
|
|
6127
|
-
data:
|
|
6137
|
+
data: _this._getDataForChart(_this.statusbarData[index].percentage),
|
|
6128
6138
|
backgroundColor: [
|
|
6129
6139
|
_this._getColor(_this.statusbarData[index].percentage),
|
|
6130
6140
|
_this._getColor(-1),
|
|
@@ -6139,7 +6149,10 @@
|
|
|
6139
6149
|
});
|
|
6140
6150
|
};
|
|
6141
6151
|
StatusbarPopupComponent.prototype._getColor = function (value) {
|
|
6142
|
-
if (value
|
|
6152
|
+
if (value == null) {
|
|
6153
|
+
return GaugeColor.Disabled;
|
|
6154
|
+
}
|
|
6155
|
+
else if (value <= 0) {
|
|
6143
6156
|
return GaugeColor.Lowest;
|
|
6144
6157
|
}
|
|
6145
6158
|
else if (value >= 1 && value < 25) {
|
|
@@ -6158,6 +6171,14 @@
|
|
|
6158
6171
|
return GaugeColor.Highest;
|
|
6159
6172
|
}
|
|
6160
6173
|
};
|
|
6174
|
+
StatusbarPopupComponent.prototype._getDataForChart = function (value) {
|
|
6175
|
+
if (value == null) {
|
|
6176
|
+
return [100, 0];
|
|
6177
|
+
}
|
|
6178
|
+
else {
|
|
6179
|
+
return [Math.max(0.0001, value), 100 - Math.max(0.0001, value)];
|
|
6180
|
+
}
|
|
6181
|
+
};
|
|
6161
6182
|
StatusbarPopupComponent.prototype.handleStatusClicked = function (label) {
|
|
6162
6183
|
this.statusClicked.emit(label);
|
|
6163
6184
|
};
|