@flexem/fc-gui 3.0.0-alpha.35 → 3.0.0-alpha.38

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
@@ -146,12 +146,18 @@
146
146
  #### Bug Fix
147
147
  1. FLEXCLOUD-2171: 设备仪表盘:空气质量指数元件数值展示优化
148
148
 
149
- ## 3.0.0-alpha.34(2022-08-31)
149
+ ## 3.0.0-alpha.36(2022-09-02)
150
150
  ### Web端
151
151
  #### Features
152
152
  1. FLEXCLOUD-2218: 组态设计:历史曲线表,超过24小时,按天统计,X轴显示增加日期(年月日)
153
153
 
154
- ## 3.0.0-alpha.35(2022-08-31)
154
+ ## 3.0.0-alpha.37(2022-09-09)
155
155
  ### Web端
156
156
  #### Features
157
- 1. FLEXCLOUD-2218: 组态设计:历史曲线表,超过24小时,按天统计,X轴显示增加日期(年月日)
157
+ 1. FLEXCLOUD-2217: 设备仪表盘 & 运营仪表盘:组态页面,增加【主页】按钮,【刷新】按钮为当前页面刷新
158
+
159
+ ## 3.0.0-alpha.38(2022-09-09)
160
+ ### Web端
161
+ #### Features
162
+ 1. FLEXCLOUD-2217: 设备仪表盘 & 运营仪表盘:组态页面,增加【主页】按钮,【刷新】按钮为当前页面刷新
163
+ -- 解决最初进主页事不能刷新的问题
@@ -22477,7 +22477,7 @@ var graph_store = __webpack_require__(249);
22477
22477
  var view_store = __webpack_require__(248);
22478
22478
 
22479
22479
  // EXTERNAL MODULE: ./.tmp/config/view/view.model.ts
22480
- var view_model = __webpack_require__(28);
22480
+ var view_model = __webpack_require__(29);
22481
22481
 
22482
22482
  // EXTERNAL MODULE: ./.tmp/config/image/image-store.ts
22483
22483
  var image_store = __webpack_require__(247);
@@ -22625,7 +22625,7 @@ var global_settings = __webpack_require__(48);
22625
22625
  "use strict";
22626
22626
 
22627
22627
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js
22628
- var Subscriber = __webpack_require__(26);
22628
+ var Subscriber = __webpack_require__(27);
22629
22629
 
22630
22630
  // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/canReportError.js
22631
22631
  /** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */
@@ -23306,6 +23306,32 @@ function flattenUnsubscriptionErrors(errors) {
23306
23306
  /* 25 */
23307
23307
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23308
23308
 
23309
+ "use strict";
23310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ViewService; });
23311
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
23312
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
23313
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23314
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23315
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23316
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
23317
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23318
+ };
23319
+
23320
+ let ViewService = class ViewService {
23321
+ constructor() {
23322
+ this.toggleViews = new Map();
23323
+ }
23324
+ };
23325
+ ViewService = __decorate([
23326
+ Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])()
23327
+ ], ViewService);
23328
+
23329
+
23330
+
23331
+ /***/ }),
23332
+ /* 26 */
23333
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
23334
+
23309
23335
  "use strict";
23310
23336
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Guid; });
23311
23337
  class Guid {
@@ -23338,7 +23364,7 @@ class Guid {
23338
23364
 
23339
23365
 
23340
23366
  /***/ }),
23341
- /* 26 */
23367
+ /* 27 */
23342
23368
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23343
23369
 
23344
23370
  "use strict";
@@ -23587,7 +23613,7 @@ var SafeSubscriber = /*@__PURE__*/ (function (_super) {
23587
23613
 
23588
23614
 
23589
23615
  /***/ }),
23590
- /* 27 */
23616
+ /* 28 */
23591
23617
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23592
23618
 
23593
23619
  "use strict";
@@ -23619,7 +23645,7 @@ class StringifyingMap {
23619
23645
 
23620
23646
 
23621
23647
  /***/ }),
23622
- /* 28 */
23648
+ /* 29 */
23623
23649
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23624
23650
 
23625
23651
  "use strict";
@@ -23632,7 +23658,7 @@ class ViewModel {
23632
23658
 
23633
23659
 
23634
23660
  /***/ }),
23635
- /* 29 */
23661
+ /* 30 */
23636
23662
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
23637
23663
 
23638
23664
  "use strict";
@@ -26736,7 +26762,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26736
26762
  marginRight: 20,
26737
26763
  mobileMinWidth: 450,
26738
26764
  operationAreaHeight: 32,
26739
- operationAreaMarginTop: 10,
26765
+ operationAreaMarginTop: 25,
26740
26766
  operationSelectFontSize: '16px',
26741
26767
  operationButtonWidth: 24,
26742
26768
  operationButtonHeight: 24,
@@ -26753,7 +26779,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26753
26779
  }, this.model.displaySetting.refreshInterval * 1000);
26754
26780
  this.isMobileMode = _tmp_settings["a" /* DisplayMode */].Mobile === injector.get(_tmp_settings["b" /* GlobalSettings */]).displayMode;
26755
26781
  if (this.isMobileMode) {
26756
- this.displayOption.operationAreaMarginTop = 20;
26782
+ this.displayOption.operationAreaMarginTop = 35;
26757
26783
  if (this.model.displaySetting.size.width >= this.displayOption.mobileMinWidth) {
26758
26784
  this.displayOption.operationAreaHeight = 68;
26759
26785
  this.displayOption.operationSelectFontSize = '24px';
@@ -26920,7 +26946,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26920
26946
  chart.tooltip.headerFormatter(d => this.timeFormat(d, '%x %X'));
26921
26947
  if (this.model.displaySetting.showAxis) {
26922
26948
  chart.xAxis.showMaxMin(true).tickFormat(d => {
26923
- if (this.currentTimePeriod >= 3) {
26949
+ if (this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
26924
26950
  return this.timeFormat(d, '%y-%m-%d');
26925
26951
  }
26926
26952
  return this.timeFormat(Number(d), '%X');
@@ -26972,7 +26998,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26972
26998
  .attr('class', 'full-date')
26973
26999
  .attr('x', 0)
26974
27000
  .attr('y', 0)
26975
- .attr('dy', '2.4em')
27001
+ .attr('dy', '2.3em')
26976
27002
  .style('text-anchor', 'middle')
26977
27003
  .style('font-size', fontSize)
26978
27004
  .text((d) => d);
@@ -26987,10 +27013,42 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26987
27013
  .attr('class', 'full-date')
26988
27014
  .attr('x', 0)
26989
27015
  .attr('y', 0)
26990
- .attr('dy', '2.4em')
27016
+ .attr('dy', '2.3em')
26991
27017
  .style('text-anchor', 'middle')
26992
27018
  .style('font-size', fontSize)
26993
27019
  .text((d) => d);
27020
+ const h = this.rootElement
27021
+ .selectAll('.nv-focusWrap')
27022
+ .attr('transform')
27023
+ .slice(0, -1)
27024
+ .split(',')[1];
27025
+ this.rootElement
27026
+ .selectAll('.nv-focusWrap')
27027
+ .attr('transform', `translate(0,${Number(h) + 15})`);
27028
+ const resizeObserver = new window.MutationObserver(() => {
27029
+ this.rootElement
27030
+ .selectAll('.nv-x')
27031
+ .selectAll('.tick')
27032
+ .selectAll('.full-date')
27033
+ .remove();
27034
+ this.rootElement
27035
+ .selectAll('.nv-x')
27036
+ .selectAll('.tick')
27037
+ .selectAll('text')
27038
+ .data(function (d) {
27039
+ return [self.timeFormat(Number(d), '%y-%m-%d'), self.timeFormat(Number(d), '%H:%M:%S')];
27040
+ })
27041
+ .enter()
27042
+ .append('text')
27043
+ .attr('class', 'full-date')
27044
+ .attr('x', 0)
27045
+ .attr('y', 0)
27046
+ .attr('dy', '2.3em')
27047
+ .style('text-anchor', 'middle')
27048
+ .style('font-size', fontSize)
27049
+ .text((d) => d);
27050
+ });
27051
+ resizeObserver.observe(document.getElementsByClassName('extent')[0], { attributes: true });
26994
27052
  }
26995
27053
  else {
26996
27054
  this.rootElement
@@ -28483,7 +28541,7 @@ class CurrentStateIdValue {
28483
28541
  }
28484
28542
 
28485
28543
  // EXTERNAL MODULE: ./.tmp/model/shared/binary.ts
28486
- var binary = __webpack_require__(30);
28544
+ var binary = __webpack_require__(31);
28487
28545
 
28488
28546
  // CONCATENATED MODULE: ./.tmp/elements/switch-indicator-light/bit-indicator-light-operator.ts
28489
28547
 
@@ -29426,7 +29484,7 @@ function defaultTouchable() {
29426
29484
 
29427
29485
 
29428
29486
  // EXTERNAL MODULE: ./.tmp/view/view.service.ts
29429
- var view_service = __webpack_require__(31);
29487
+ var view_service = __webpack_require__(25);
29430
29488
 
29431
29489
  // CONCATENATED MODULE: ./.tmp/elements/view-operation/view-operation.element.ts
29432
29490
 
@@ -29738,7 +29796,7 @@ class hyperlink_element_HyperlinkElement extends conditional_dynamic_display_ele
29738
29796
  }
29739
29797
 
29740
29798
  // EXTERNAL MODULE: ./.tmp/utils/guid.ts
29741
- var guid = __webpack_require__(25);
29799
+ var guid = __webpack_require__(26);
29742
29800
 
29743
29801
  // CONCATENATED MODULE: ./.tmp/elements/video/video-element.ts
29744
29802
 
@@ -30924,7 +30982,7 @@ class gui_view_GuiView {
30924
30982
 
30925
30983
 
30926
30984
  /***/ }),
30927
- /* 30 */
30985
+ /* 31 */
30928
30986
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
30929
30987
 
30930
30988
  "use strict";
@@ -30968,32 +31026,6 @@ class Binary {
30968
31026
  }
30969
31027
 
30970
31028
 
30971
- /***/ }),
30972
- /* 31 */
30973
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
30974
-
30975
- "use strict";
30976
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ViewService; });
30977
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
30978
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
30979
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
30980
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
30981
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
30982
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30983
- return c > 3 && r && Object.defineProperty(target, key, r), r;
30984
- };
30985
-
30986
- let ViewService = class ViewService {
30987
- constructor() {
30988
- this.toggleViews = new Map();
30989
- }
30990
- };
30991
- ViewService = __decorate([
30992
- Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])()
30993
- ], ViewService);
30994
-
30995
-
30996
-
30997
31029
  /***/ }),
30998
31030
  /* 32 */
30999
31031
  /***/ (function(module, exports, __webpack_require__) {
@@ -40582,7 +40614,7 @@ var tslib_es6 = __webpack_require__(11);
40582
40614
  var Observable = __webpack_require__(14);
40583
40615
 
40584
40616
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js
40585
- var Subscriber = __webpack_require__(26);
40617
+ var Subscriber = __webpack_require__(27);
40586
40618
 
40587
40619
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscription.js + 1 modules
40588
40620
  var Subscription = __webpack_require__(24);
@@ -40841,10 +40873,10 @@ var logger = __webpack_require__(8);
40841
40873
  var shared = __webpack_require__(5);
40842
40874
 
40843
40875
  // EXTERNAL MODULE: ./.tmp/view/view.service.ts
40844
- var view_service = __webpack_require__(31);
40876
+ var view_service = __webpack_require__(25);
40845
40877
 
40846
40878
  // EXTERNAL MODULE: ./.tmp/gui/gui-view.ts + 123 modules
40847
- var gui_view = __webpack_require__(29);
40879
+ var gui_view = __webpack_require__(30);
40848
40880
 
40849
40881
  // EXTERNAL MODULE: external "rxjs/operators"
40850
40882
  var operators_ = __webpack_require__(16);
@@ -41025,7 +41057,7 @@ class gui_host_GuiHost {
41025
41057
  }
41026
41058
 
41027
41059
  // EXTERNAL MODULE: ./.tmp/utils/guid.ts
41028
- var guid = __webpack_require__(25);
41060
+ var guid = __webpack_require__(26);
41029
41061
 
41030
41062
  // CONCATENATED MODULE: ./.tmp/gui/gui.component.ts
41031
41063
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return gui_component_GuiComponent; });
@@ -41044,6 +41076,7 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
41044
41076
 
41045
41077
 
41046
41078
 
41079
+
41047
41080
  let gui_component_GuiComponent = class GuiComponent {
41048
41081
  constructor(el, localization, injector, bsModalService) {
41049
41082
  this.el = el;
@@ -41055,6 +41088,7 @@ let gui_component_GuiComponent = class GuiComponent {
41055
41088
  this.lastScale = 1;
41056
41089
  this.isMobileMode = false;
41057
41090
  this.globalSettings = this.injector.get(settings["b" /* GlobalSettings */]);
41091
+ this.viewService = injector.get(view_service["a" /* ViewService */]);
41058
41092
  }
41059
41093
  get viewResizeMode() {
41060
41094
  switch (this.resizeMode) {
@@ -41157,11 +41191,11 @@ let gui_component_GuiComponent = class GuiComponent {
41157
41191
  this.$svg = $(this.el.nativeElement).find('div.svgView').first();
41158
41192
  this.$svg.empty();
41159
41193
  const svgRootClass = 'S' + guid["a" /* Guid */].newGuid().toString('n');
41160
- const hostContainerId = 'H' + guid["a" /* Guid */].newGuid().toString('n');
41194
+ this.hostContainerId = 'H' + guid["a" /* Guid */].newGuid().toString('n');
41161
41195
  this.$svg.addClass(svgRootClass);
41162
41196
  const guiOptions = {
41163
41197
  svgRootClass: svgRootClass,
41164
- hostContainerId: hostContainerId,
41198
+ hostContainerId: this.hostContainerId,
41165
41199
  el: this.el
41166
41200
  };
41167
41201
  const host = new gui_host_GuiHost(this.injector, this.bsModalService, newValue, guiOptions, this.el);
@@ -41216,6 +41250,14 @@ let gui_component_GuiComponent = class GuiComponent {
41216
41250
  this.isMobileMode = this.displayMode === 'Mobile';
41217
41251
  this.globalSettings.displayMode = this.isMobileMode ? settings["a" /* DisplayMode */].Mobile : settings["a" /* DisplayMode */].Web;
41218
41252
  }
41253
+ refreshCurrentPage() {
41254
+ const viewIndex = this.host.currentViewIndex || 0;
41255
+ const toggleView = this.viewService.toggleViews.get(this.el);
41256
+ if (!toggleView) {
41257
+ return;
41258
+ }
41259
+ toggleView(viewIndex, this.hostContainerId, this.el).subscribe();
41260
+ }
41219
41261
  };
41220
41262
  __decorate([
41221
41263
  Object(core_["Input"])()
@@ -61272,7 +61314,7 @@ access_permission_service_AccessPermissionService = __decorate([
61272
61314
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
61273
61315
 
61274
61316
  "use strict";
61275
- /* harmony import */ var _stringifying_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27);
61317
+ /* harmony import */ var _stringifying_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
61276
61318
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _stringifying_map__WEBPACK_IMPORTED_MODULE_0__["a"]; });
61277
61319
 
61278
61320
 
@@ -62509,7 +62551,7 @@ var operators_ = __webpack_require__(16);
62509
62551
  var _tmp_config = __webpack_require__(12);
62510
62552
 
62511
62553
  // EXTERNAL MODULE: ./.tmp/core/stringifying-map.ts
62512
- var stringifying_map = __webpack_require__(27);
62554
+ var stringifying_map = __webpack_require__(28);
62513
62555
 
62514
62556
  // CONCATENATED MODULE: ./.tmp/remote/config/graph/remote-graph-store.ts
62515
62557
 
@@ -62618,7 +62660,7 @@ class remote_graph_store_RemoteGraphStore {
62618
62660
  var remote_view_protocol = __webpack_require__(76);
62619
62661
 
62620
62662
  // EXTERNAL MODULE: ./.tmp/config/view/view.model.ts
62621
- var view_model = __webpack_require__(28);
62663
+ var view_model = __webpack_require__(29);
62622
62664
 
62623
62665
  // CONCATENATED MODULE: ./.tmp/remote/config/view/remote-view-store.ts
62624
62666
 
@@ -63147,7 +63189,7 @@ class RelationConditionResultState {
63147
63189
  }
63148
63190
 
63149
63191
  // EXTERNAL MODULE: ./.tmp/model/shared/binary.ts
63150
- var binary = __webpack_require__(30);
63192
+ var binary = __webpack_require__(31);
63151
63193
 
63152
63194
  // CONCATENATED MODULE: ./.tmp/model/shared/condition/bit-condition-item-observer.ts
63153
63195
 
@@ -64731,7 +64773,7 @@ var isScheduler = __webpack_require__(50);
64731
64773
  var tslib_es6 = __webpack_require__(11);
64732
64774
 
64733
64775
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js
64734
- var Subscriber = __webpack_require__(26);
64776
+ var Subscriber = __webpack_require__(27);
64735
64777
 
64736
64778
  // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/InnerSubscriber.js
64737
64779
  /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
@@ -70884,7 +70926,7 @@ var fraction_digit_service = __webpack_require__(44);
70884
70926
  var numerical_operation_service = __webpack_require__(41);
70885
70927
 
70886
70928
  // EXTERNAL MODULE: ./.tmp/view/view.service.ts
70887
- var view_service = __webpack_require__(31);
70929
+ var view_service = __webpack_require__(25);
70888
70930
 
70889
70931
  // EXTERNAL MODULE: ./.tmp/logger/index.ts + 2 modules
70890
70932
  var logger = __webpack_require__(8);
@@ -83431,7 +83473,7 @@ __webpack_require__.r(__webpack_exports__);
83431
83473
  /* harmony import */ var _gui_gui_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
83432
83474
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GuiComponent", function() { return _gui_gui_component__WEBPACK_IMPORTED_MODULE_0__["a"]; });
83433
83475
 
83434
- /* harmony import */ var _gui_gui_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
83476
+ /* harmony import */ var _gui_gui_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);
83435
83477
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GuiView", function() { return _gui_gui_view__WEBPACK_IMPORTED_MODULE_1__["a"]; });
83436
83478
 
83437
83479
  /* harmony import */ var _gui_gui_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85);