@flexem/fc-gui 3.0.0-alpha.145 → 3.0.0-alpha.147

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.
@@ -84,19 +84,20 @@ export class ReadableElement extends ConditionalEnableElement {
84
84
  let name = value.customStatus;
85
85
  const language = ((_b = (_a = window.abp.localization) === null || _a === void 0 ? void 0 : _a.currentLanguage) === null || _b === void 0 ? void 0 : _b.name) || ((_d = (_c = this.localization.localizationService) === null || _c === void 0 ? void 0 : _c.translate) === null || _d === void 0 ? void 0 : _d.currentLang);
86
86
  const isChinese = language === 'zh-Hans' || language === 'zh';
87
+ const isTraditionalChinese = language === 'zh-Hant' || language === 'zh-TW' || language === 'zh-tw';
87
88
  if (!name) {
88
89
  switch (value.state) {
89
90
  case 1:
90
- name = isChinese ? '在线' : 'Online';
91
+ name = isTraditionalChinese ? '線上' : (isChinese ? '在线' : 'Online');
91
92
  break;
92
93
  case 3:
93
- name = isChinese ? '离线' : 'Offline';
94
+ name = isTraditionalChinese ? '離線' : (isChinese ? '离线' : 'Offline');
94
95
  break;
95
96
  case 4:
96
- name = isChinese ? '告警' : 'Alarming';
97
+ name = isTraditionalChinese ? '告警' : (isChinese ? '告警' : 'Alarming');
97
98
  break;
98
99
  case 5:
99
- name = isChinese ? '未绑定' : 'Unbound';
100
+ name = isTraditionalChinese ? '未綁定' : (isChinese ? '未绑定' : 'Unbound');
100
101
  break;
101
102
  default:
102
103
  }
@@ -26,26 +26,27 @@ export declare class ScrollAlarmElement extends ConditionalDynamicDisplayElement
26
26
  private displayedItems;
27
27
  private pageWidths;
28
28
  private totalWidth;
29
- private container;
29
+ private bgRect;
30
+ private scrollGroup;
30
31
  private allAlarmsContainer;
31
32
  private currentLeft;
32
33
  private autoCycle;
33
34
  private hasMoreData;
34
35
  private isLoadingNextPage;
35
36
  private headerFont;
36
- private fontString;
37
37
  private hasTriedFirstPage;
38
38
  private isSimulateMode;
39
39
  constructor(element: HTMLElement, injector: Injector, permissionChecker: PermissionChecker, variableCommunicator: VariableCommunicator, variableStore: VariableStore, alarmsStore: AlarmsStore, signalRAppId: string);
40
40
  dispose(): void;
41
41
  private getAlarmData;
42
42
  private initDisplayContainer;
43
+ private _buildFontAttrs;
44
+ private _createSvgTextNode;
43
45
  private renderNewPage;
46
+ private _rebaseTextNodes;
44
47
  private removeOldestPage;
45
48
  private scrollContent;
46
49
  private initScrolling;
47
- private pauseScroll;
48
- private resumeScroll;
49
50
  private resetToFirstPage;
50
51
  private updateQueryTimeRange;
51
52
  private setStatusAsNormal;