@flexem/fc-gui 3.0.0-alpha.67 → 3.0.0-alpha.69

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.
@@ -29,6 +29,7 @@ export class AlarmElement extends ConditionalDisplayElement {
29
29
  this.page = 0;
30
30
  this.totalCount = 0;
31
31
  this.pageSize = 5;
32
+ this.rootElement.selectAll('*').remove();
32
33
  this.logger = injector.get(LOGGER_SERVICE_TOKEN);
33
34
  this.localization = injector.get(LOCALIZATION);
34
35
  this.variableCommunicator = variableCommunicator;
@@ -108,7 +109,6 @@ export class AlarmElement extends ConditionalDisplayElement {
108
109
  return timePeriods;
109
110
  }
110
111
  init() {
111
- this.rootElement.selectAll('*').remove();
112
112
  if (this.model.filterSetting.alarmType) {
113
113
  const input = new GetAlarmsArgs(this.model.filterSetting.detailsData, this.startTime, this.endTime, this.pageSize, this.page * this.pageSize);
114
114
  this.alarmsStore.getHistoryAlarms(input).subscribe(result => {
@@ -142,6 +142,7 @@ export class AlarmElement extends ConditionalDisplayElement {
142
142
  }
143
143
  }
144
144
  renderElement() {
145
+ this.rootElement.selectAll('*').remove();
145
146
  const elementHeight = this.model.size.height;
146
147
  this.element = document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject');
147
148
  this.element.setAttribute('width', this.model.size.width.toString());
@@ -168,7 +169,7 @@ export class AlarmElement extends ConditionalDisplayElement {
168
169
  vertical-align: middle;`;
169
170
  for (let i = 0; i < 4; i++) {
170
171
  const th = document.createElement('th');
171
- th.innerHTML = this.model.columLables[i];
172
+ th.innerHTML = this.model.columLabels[i];
172
173
  th.style.cssText = `width: ${this.model.widths[i] / this.model.size.width * 100}%;
173
174
  border-style: solid;
174
175
  border-color: ${this.model.generalSetting.splitLine};
@@ -8,6 +8,6 @@ export interface AlarmModel extends ConditionalDisplayModel {
8
8
  readonly filterSetting?: any;
9
9
  readonly widths: number[];
10
10
  readonly heights: number[];
11
- readonly columLables: string[];
11
+ readonly columLabels: string[];
12
12
  readonly levelText: string[];
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.67",
3
+ "version": "3.0.0-alpha.69",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",