@flexem/fc-gui 3.0.0-alpha.73 → 3.0.0-alpha.74
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/CHANGELOG.md
CHANGED
|
@@ -40176,41 +40176,41 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
|
|
|
40176
40176
|
text-align: ${this.model.generalSetting.headerFont.textAlign};
|
|
40177
40177
|
${this.model.generalSetting.headerFont.isUnderline ? 'text-decoration: underline' : ''};
|
|
40178
40178
|
vertical-align: middle;`;
|
|
40179
|
-
for (let
|
|
40179
|
+
for (let row = 0; row < 4; row++) {
|
|
40180
40180
|
const th = document.createElement('th');
|
|
40181
|
-
th.innerHTML = this.model.columLabels[
|
|
40182
|
-
th.style.cssText = `width: ${this.model.widths[
|
|
40181
|
+
th.innerHTML = this.model.columLabels[row];
|
|
40182
|
+
th.style.cssText = `width: ${this.model.widths[row] / this.model.size.width * 100}%;
|
|
40183
40183
|
border-style: solid;
|
|
40184
40184
|
border-color: ${this.model.generalSetting.splitLine};
|
|
40185
|
-
border-left-width: ${!
|
|
40185
|
+
border-left-width: ${!row || this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;`;
|
|
40186
40186
|
tr.appendChild(th);
|
|
40187
40187
|
}
|
|
40188
40188
|
table.appendChild(tr);
|
|
40189
40189
|
const levelColors = ['#3695FF', '#FFE900', '#FFA800', '#E84F4F'];
|
|
40190
|
-
for (let
|
|
40190
|
+
for (let row = 0; row < this.pageSize; row++) {
|
|
40191
40191
|
tr = document.createElement('tr');
|
|
40192
|
-
tr.style.cssText = `height: ${this.model.heights[
|
|
40192
|
+
tr.style.cssText = `height: ${this.model.heights[row + 1]}px;
|
|
40193
40193
|
background: ${this.model.generalSetting.tableFillColor};
|
|
40194
40194
|
font: ${this.model.generalSetting.fontStyle};
|
|
40195
40195
|
color: ${this.model.generalSetting.fontColor};
|
|
40196
40196
|
text-align: ${this.model.generalSetting.textAlign};
|
|
40197
40197
|
vertical-align: middle;`;
|
|
40198
|
-
for (let
|
|
40198
|
+
for (let col = 0; col < 4; col++) {
|
|
40199
40199
|
const td = document.createElement('td');
|
|
40200
40200
|
td.style.cssText = `border-style: solid;
|
|
40201
40201
|
border-color: ${this.model.generalSetting.splitLine};
|
|
40202
40202
|
border-top-width: ${this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;
|
|
40203
|
-
border-left-width: ${!
|
|
40204
|
-
if (this.alarmList[
|
|
40205
|
-
if (
|
|
40206
|
-
td.innerHTML = this.alarmList[
|
|
40203
|
+
border-left-width: ${!col || this.model.generalSetting.isHiddenColumnSplitLine ? 0 : 1}px;`;
|
|
40204
|
+
if (this.alarmList[row]) {
|
|
40205
|
+
if (col !== 2) {
|
|
40206
|
+
td.innerHTML = this.alarmList[row][col];
|
|
40207
40207
|
td.style.cssText += `${this.model.generalSetting.isUnderline ? 'text-decoration: underline' : ''};`;
|
|
40208
40208
|
}
|
|
40209
40209
|
else {
|
|
40210
40210
|
const alarmLevel = document.createElement('div');
|
|
40211
40211
|
let alarmHeight = parseInt(this.model.generalSetting.fontSize) + 15;
|
|
40212
|
-
if (alarmHeight > this.model.heights[
|
|
40213
|
-
alarmHeight = this.model.heights[
|
|
40212
|
+
if (alarmHeight > this.model.heights[row + 1])
|
|
40213
|
+
alarmHeight = this.model.heights[row + 1];
|
|
40214
40214
|
let margin = '0 15px';
|
|
40215
40215
|
if (this.model.generalSetting.textAlign === 'left') {
|
|
40216
40216
|
margin = '0 30px 0 0';
|
|
@@ -40220,19 +40220,32 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
|
|
|
40220
40220
|
}
|
|
40221
40221
|
alarmLevel.style.cssText = `margin: ${margin};
|
|
40222
40222
|
border-radius: 5px;
|
|
40223
|
-
background: ${levelColors[this.alarmList[
|
|
40223
|
+
background: ${levelColors[this.alarmList[row][col]]};
|
|
40224
40224
|
color: #ffffff;
|
|
40225
|
-
width: ${this.model.widths[
|
|
40225
|
+
width: ${this.model.widths[col] - 30}px;
|
|
40226
40226
|
height: ${alarmHeight}px;
|
|
40227
|
-
max-height: ${this.model.heights[
|
|
40227
|
+
max-height: ${this.model.heights[row + 1]}px;
|
|
40228
40228
|
display: flex;
|
|
40229
40229
|
justify-content: center;
|
|
40230
40230
|
align-items: center;
|
|
40231
40231
|
${this.model.generalSetting.isUnderline ? 'text-decoration: underline' : ''};`;
|
|
40232
|
-
alarmLevel.innerHTML = this.model.levelText[this.alarmList[
|
|
40232
|
+
alarmLevel.innerHTML = this.model.levelText[this.alarmList[row][col]];
|
|
40233
40233
|
td.appendChild(alarmLevel);
|
|
40234
40234
|
}
|
|
40235
40235
|
}
|
|
40236
|
+
else if (col === 2) {
|
|
40237
|
+
const alarmLevel = document.createElement('div');
|
|
40238
|
+
let margin = '0 15px';
|
|
40239
|
+
if (this.model.generalSetting.textAlign === 'left') {
|
|
40240
|
+
margin = '0 30px 0 0';
|
|
40241
|
+
}
|
|
40242
|
+
else if (this.model.generalSetting.textAlign === 'right') {
|
|
40243
|
+
margin = '0 0 0 30px';
|
|
40244
|
+
}
|
|
40245
|
+
alarmLevel.style.cssText = `margin: ${margin};
|
|
40246
|
+
width: ${this.model.widths[col] - 30}px;`;
|
|
40247
|
+
td.appendChild(alarmLevel);
|
|
40248
|
+
}
|
|
40236
40249
|
tr.appendChild(td);
|
|
40237
40250
|
}
|
|
40238
40251
|
table.appendChild(tr);
|