@flexem/fc-gui 3.0.0-alpha.151 → 3.0.0-alpha.153
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/@flexem/fc-gui.umd.js +280 -229
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +4 -4
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/config/gui-feature-config.d.ts +3 -0
- package/config/gui-feature-config.js +3 -0
- package/config/gui-feature-config.metadata.json +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +1 -0
- package/config/index.metadata.json +1 -1
- package/elements/base/readable-element.js +2 -1
- package/elements/base/readable-element.metadata.json +1 -1
- package/elements/character-display/character-display-element.js +2 -1
- package/elements/character-display/character-display-element.metadata.json +1 -1
- package/elements/switch-indicator-light/bit-indicator-light-operator.js +6 -2
- package/elements/switch-indicator-light/bit-indicator-light-operator.metadata.json +1 -1
- package/elements/switch-indicator-light/switch-indicator-light-element.js +2 -1
- package/elements/switch-indicator-light/switch-indicator-light-element.metadata.json +1 -1
- package/elements/switch-indicator-light/word-indicator-light-operator.js +6 -2
- package/elements/switch-indicator-light/word-indicator-light-operator.metadata.json +1 -1
- package/gui/gui-view.js +3 -1
- package/gui/gui-view.metadata.json +1 -1
- package/package.json +1 -1
- package/remote/communication/variable/remote-variable-communicator.d.ts +3 -1
- package/remote/communication/variable/remote-variable-communicator.js +42 -13
- package/remote/communication/variable/remote-variable-communicator.metadata.json +1 -1
|
@@ -21922,6 +21922,181 @@ var VariableStateEnum;
|
|
|
21922
21922
|
|
|
21923
21923
|
"use strict";
|
|
21924
21924
|
|
|
21925
|
+
// EXTERNAL MODULE: ./.tmp/config/config-store.ts
|
|
21926
|
+
var config_store = __webpack_require__(258);
|
|
21927
|
+
|
|
21928
|
+
// CONCATENATED MODULE: ./.tmp/config/gui-feature-config.ts
|
|
21929
|
+
class GuiFeatureConfig {
|
|
21930
|
+
}
|
|
21931
|
+
GuiFeatureConfig.isOfflineDisplayEnabled = false;
|
|
21932
|
+
|
|
21933
|
+
// CONCATENATED MODULE: ./.tmp/config/graph/graph.ts
|
|
21934
|
+
class Graph {
|
|
21935
|
+
constructor(graphType, source) {
|
|
21936
|
+
this.graphType = graphType;
|
|
21937
|
+
this.source = source;
|
|
21938
|
+
}
|
|
21939
|
+
}
|
|
21940
|
+
|
|
21941
|
+
// CONCATENATED MODULE: ./.tmp/config/graph/graph-result.ts
|
|
21942
|
+
class GraphResult {
|
|
21943
|
+
constructor(graph, failed) {
|
|
21944
|
+
this.graph = graph;
|
|
21945
|
+
this.failed = failed;
|
|
21946
|
+
}
|
|
21947
|
+
static failed() {
|
|
21948
|
+
return GraphResult.failedResult;
|
|
21949
|
+
}
|
|
21950
|
+
static success(graph) {
|
|
21951
|
+
return new GraphResult(graph);
|
|
21952
|
+
}
|
|
21953
|
+
}
|
|
21954
|
+
GraphResult.failedResult = new GraphResult(null, true);
|
|
21955
|
+
|
|
21956
|
+
// CONCATENATED MODULE: ./.tmp/config/graph/graph-type.ts
|
|
21957
|
+
var GraphType;
|
|
21958
|
+
(function (GraphType) {
|
|
21959
|
+
GraphType[GraphType["SVG"] = 0] = "SVG";
|
|
21960
|
+
GraphType[GraphType["Image"] = 1] = "Image";
|
|
21961
|
+
})(GraphType || (GraphType = {}));
|
|
21962
|
+
|
|
21963
|
+
// EXTERNAL MODULE: ./.tmp/config/graph/graph-store.ts
|
|
21964
|
+
var graph_store = __webpack_require__(257);
|
|
21965
|
+
|
|
21966
|
+
// EXTERNAL MODULE: ./.tmp/config/view/view-store.ts
|
|
21967
|
+
var view_store = __webpack_require__(256);
|
|
21968
|
+
|
|
21969
|
+
// EXTERNAL MODULE: ./.tmp/config/view/view.model.ts
|
|
21970
|
+
var view_model = __webpack_require__(31);
|
|
21971
|
+
|
|
21972
|
+
// EXTERNAL MODULE: ./.tmp/config/image/image-store.ts
|
|
21973
|
+
var image_store = __webpack_require__(255);
|
|
21974
|
+
|
|
21975
|
+
// EXTERNAL MODULE: ./.tmp/config/history-data/history-data.store.ts
|
|
21976
|
+
var history_data_store = __webpack_require__(254);
|
|
21977
|
+
|
|
21978
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/history-data.model.ts
|
|
21979
|
+
class HistoryDataModel {
|
|
21980
|
+
constructor(error, isUnbind, values) {
|
|
21981
|
+
this.error = error;
|
|
21982
|
+
this.isUnbind = isUnbind;
|
|
21983
|
+
this.values = values;
|
|
21984
|
+
}
|
|
21985
|
+
}
|
|
21986
|
+
|
|
21987
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/history-data-value.ts
|
|
21988
|
+
class HistoryDataValue {
|
|
21989
|
+
constructor(time, values) {
|
|
21990
|
+
this.time = time;
|
|
21991
|
+
this.values = values;
|
|
21992
|
+
}
|
|
21993
|
+
}
|
|
21994
|
+
|
|
21995
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/get-history-data-args.ts
|
|
21996
|
+
class GetHistoryDataArgs {
|
|
21997
|
+
/**
|
|
21998
|
+
* 获取历史数据参数
|
|
21999
|
+
* @param dataSourceCode 数据源编码
|
|
22000
|
+
* @param dataItemName 历史数据条目名称
|
|
22001
|
+
* @param channelNames 通道名称
|
|
22002
|
+
* @param startTime 开始时间
|
|
22003
|
+
* @param endTime 结束时间
|
|
22004
|
+
* @param limit 获取数据数量,为负数则倒叙
|
|
22005
|
+
* @param rangeType 区间类型
|
|
22006
|
+
*/
|
|
22007
|
+
constructor(dataSourceCode, dataItemName, channelNames, startTime, endTime, limit, rangeType) {
|
|
22008
|
+
this.dataSourceCode = dataSourceCode;
|
|
22009
|
+
this.dataItemName = dataItemName;
|
|
22010
|
+
this.channelNames = channelNames;
|
|
22011
|
+
this.startTime = startTime;
|
|
22012
|
+
this.endTime = endTime;
|
|
22013
|
+
this.limit = limit;
|
|
22014
|
+
this.rangeType = rangeType;
|
|
22015
|
+
}
|
|
22016
|
+
}
|
|
22017
|
+
|
|
22018
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/index.ts
|
|
22019
|
+
|
|
22020
|
+
|
|
22021
|
+
|
|
22022
|
+
|
|
22023
|
+
|
|
22024
|
+
// EXTERNAL MODULE: ./.tmp/config/variable/variable-store.ts
|
|
22025
|
+
var variable_store = __webpack_require__(253);
|
|
22026
|
+
|
|
22027
|
+
// CONCATENATED MODULE: ./.tmp/config/variable/get-variable-name-args.ts
|
|
22028
|
+
class GetVariableNameArgs {
|
|
22029
|
+
constructor(name, groupName, code) {
|
|
22030
|
+
this.name = name;
|
|
22031
|
+
this.groupName = groupName;
|
|
22032
|
+
this.code = code;
|
|
22033
|
+
}
|
|
22034
|
+
}
|
|
22035
|
+
|
|
22036
|
+
// CONCATENATED MODULE: ./.tmp/config/variable/index.ts
|
|
22037
|
+
|
|
22038
|
+
|
|
22039
|
+
|
|
22040
|
+
// EXTERNAL MODULE: ./.tmp/config/alarm/alarm.store.ts
|
|
22041
|
+
var alarm_store = __webpack_require__(252);
|
|
22042
|
+
|
|
22043
|
+
// CONCATENATED MODULE: ./.tmp/config/alarm/get-alarms-args.ts
|
|
22044
|
+
class GetAlarmsArgs {
|
|
22045
|
+
constructor(alarmNames, triggeredStartTime, triggeredEndTime, maxResultCount, skipCount, state, // 告警状态数组 (0=触发/未确认, 1=触发/已确认, 2=恢复/未确认, 3=恢复/已确认)
|
|
22046
|
+
sorting // 排序字段 (如: "TriggeredTime DESC" 或 "TriggeredTime ASC")
|
|
22047
|
+
) {
|
|
22048
|
+
this.alarmNames = alarmNames;
|
|
22049
|
+
this.triggeredStartTime = triggeredStartTime;
|
|
22050
|
+
this.triggeredEndTime = triggeredEndTime;
|
|
22051
|
+
this.maxResultCount = maxResultCount;
|
|
22052
|
+
this.skipCount = skipCount;
|
|
22053
|
+
this.state = state;
|
|
22054
|
+
this.sorting = sorting;
|
|
22055
|
+
}
|
|
22056
|
+
}
|
|
22057
|
+
|
|
22058
|
+
// CONCATENATED MODULE: ./.tmp/config/alarm/index.ts
|
|
22059
|
+
|
|
22060
|
+
|
|
22061
|
+
|
|
22062
|
+
// CONCATENATED MODULE: ./.tmp/config/index.ts
|
|
22063
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return config_store["ConfigStore"]; });
|
|
22064
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "j", function() { return GuiFeatureConfig; });
|
|
22065
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "f", function() { return Graph; });
|
|
22066
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "g", function() { return GraphResult; });
|
|
22067
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "i", function() { return GraphType; });
|
|
22068
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "h", function() { return graph_store["GraphStore"]; });
|
|
22069
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "q", function() { return view_store["ViewStore"]; });
|
|
22070
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "p", function() { return view_model["a" /* ViewModel */]; });
|
|
22071
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "n", function() { return image_store["ImageStore"]; });
|
|
22072
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "l", function() { return history_data_store["HistoryDataStore"]; });
|
|
22073
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "k", function() { return HistoryDataModel; });
|
|
22074
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "m", function() { return HistoryDataValue; });
|
|
22075
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return GetHistoryDataArgs; });
|
|
22076
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "o", function() { return variable_store["VariableStore"]; });
|
|
22077
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "e", function() { return GetVariableNameArgs; });
|
|
22078
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return alarm_store["AlarmsStore"]; });
|
|
22079
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return GetAlarmsArgs; });
|
|
22080
|
+
|
|
22081
|
+
|
|
22082
|
+
|
|
22083
|
+
|
|
22084
|
+
|
|
22085
|
+
|
|
22086
|
+
|
|
22087
|
+
|
|
22088
|
+
|
|
22089
|
+
|
|
22090
|
+
|
|
22091
|
+
|
|
22092
|
+
|
|
22093
|
+
|
|
22094
|
+
/***/ }),
|
|
22095
|
+
/* 6 */
|
|
22096
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22097
|
+
|
|
22098
|
+
"use strict";
|
|
22099
|
+
|
|
21925
22100
|
// EXTERNAL MODULE: ./.tmp/shared/disposable.ts
|
|
21926
22101
|
var disposable = __webpack_require__(270);
|
|
21927
22102
|
|
|
@@ -21935,7 +22110,7 @@ class ConfigIsEmptyError extends Error {
|
|
|
21935
22110
|
}
|
|
21936
22111
|
|
|
21937
22112
|
// EXTERNAL MODULE: ./.tmp/model/shared/data-type/fcloud-data-Type.ts
|
|
21938
|
-
var fcloud_data_Type = __webpack_require__(
|
|
22113
|
+
var fcloud_data_Type = __webpack_require__(7);
|
|
21939
22114
|
|
|
21940
22115
|
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
21941
22116
|
var lodash = __webpack_require__(2);
|
|
@@ -22032,7 +22207,7 @@ var graph_extended_style = __webpack_require__(269);
|
|
|
22032
22207
|
|
|
22033
22208
|
|
|
22034
22209
|
/***/ }),
|
|
22035
|
-
/*
|
|
22210
|
+
/* 7 */
|
|
22036
22211
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22037
22212
|
|
|
22038
22213
|
"use strict";
|
|
@@ -22049,7 +22224,7 @@ var FCloudDataType;
|
|
|
22049
22224
|
|
|
22050
22225
|
|
|
22051
22226
|
/***/ }),
|
|
22052
|
-
/*
|
|
22227
|
+
/* 8 */
|
|
22053
22228
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22054
22229
|
|
|
22055
22230
|
"use strict";
|
|
@@ -22110,12 +22285,12 @@ class ConsoleLoggerService {
|
|
|
22110
22285
|
|
|
22111
22286
|
|
|
22112
22287
|
/***/ }),
|
|
22113
|
-
/*
|
|
22288
|
+
/* 9 */
|
|
22114
22289
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22115
22290
|
|
|
22116
22291
|
"use strict";
|
|
22117
22292
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VariableUtil; });
|
|
22118
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
22293
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
22119
22294
|
|
|
22120
22295
|
class VariableUtil {
|
|
22121
22296
|
static getConvertedVariableName(variableStore, variable) {
|
|
@@ -22130,7 +22305,7 @@ class VariableUtil {
|
|
|
22130
22305
|
|
|
22131
22306
|
|
|
22132
22307
|
/***/ }),
|
|
22133
|
-
/*
|
|
22308
|
+
/* 10 */
|
|
22134
22309
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22135
22310
|
|
|
22136
22311
|
"use strict";
|
|
@@ -22204,174 +22379,6 @@ const Localization_zh_CN = {
|
|
|
22204
22379
|
|
|
22205
22380
|
|
|
22206
22381
|
|
|
22207
|
-
/***/ }),
|
|
22208
|
-
/* 10 */
|
|
22209
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22210
|
-
|
|
22211
|
-
"use strict";
|
|
22212
|
-
|
|
22213
|
-
// EXTERNAL MODULE: ./.tmp/config/config-store.ts
|
|
22214
|
-
var config_store = __webpack_require__(258);
|
|
22215
|
-
|
|
22216
|
-
// CONCATENATED MODULE: ./.tmp/config/graph/graph.ts
|
|
22217
|
-
class Graph {
|
|
22218
|
-
constructor(graphType, source) {
|
|
22219
|
-
this.graphType = graphType;
|
|
22220
|
-
this.source = source;
|
|
22221
|
-
}
|
|
22222
|
-
}
|
|
22223
|
-
|
|
22224
|
-
// CONCATENATED MODULE: ./.tmp/config/graph/graph-result.ts
|
|
22225
|
-
class GraphResult {
|
|
22226
|
-
constructor(graph, failed) {
|
|
22227
|
-
this.graph = graph;
|
|
22228
|
-
this.failed = failed;
|
|
22229
|
-
}
|
|
22230
|
-
static failed() {
|
|
22231
|
-
return GraphResult.failedResult;
|
|
22232
|
-
}
|
|
22233
|
-
static success(graph) {
|
|
22234
|
-
return new GraphResult(graph);
|
|
22235
|
-
}
|
|
22236
|
-
}
|
|
22237
|
-
GraphResult.failedResult = new GraphResult(null, true);
|
|
22238
|
-
|
|
22239
|
-
// CONCATENATED MODULE: ./.tmp/config/graph/graph-type.ts
|
|
22240
|
-
var GraphType;
|
|
22241
|
-
(function (GraphType) {
|
|
22242
|
-
GraphType[GraphType["SVG"] = 0] = "SVG";
|
|
22243
|
-
GraphType[GraphType["Image"] = 1] = "Image";
|
|
22244
|
-
})(GraphType || (GraphType = {}));
|
|
22245
|
-
|
|
22246
|
-
// EXTERNAL MODULE: ./.tmp/config/graph/graph-store.ts
|
|
22247
|
-
var graph_store = __webpack_require__(257);
|
|
22248
|
-
|
|
22249
|
-
// EXTERNAL MODULE: ./.tmp/config/view/view-store.ts
|
|
22250
|
-
var view_store = __webpack_require__(256);
|
|
22251
|
-
|
|
22252
|
-
// EXTERNAL MODULE: ./.tmp/config/view/view.model.ts
|
|
22253
|
-
var view_model = __webpack_require__(31);
|
|
22254
|
-
|
|
22255
|
-
// EXTERNAL MODULE: ./.tmp/config/image/image-store.ts
|
|
22256
|
-
var image_store = __webpack_require__(255);
|
|
22257
|
-
|
|
22258
|
-
// EXTERNAL MODULE: ./.tmp/config/history-data/history-data.store.ts
|
|
22259
|
-
var history_data_store = __webpack_require__(254);
|
|
22260
|
-
|
|
22261
|
-
// CONCATENATED MODULE: ./.tmp/config/history-data/history-data.model.ts
|
|
22262
|
-
class HistoryDataModel {
|
|
22263
|
-
constructor(error, isUnbind, values) {
|
|
22264
|
-
this.error = error;
|
|
22265
|
-
this.isUnbind = isUnbind;
|
|
22266
|
-
this.values = values;
|
|
22267
|
-
}
|
|
22268
|
-
}
|
|
22269
|
-
|
|
22270
|
-
// CONCATENATED MODULE: ./.tmp/config/history-data/history-data-value.ts
|
|
22271
|
-
class HistoryDataValue {
|
|
22272
|
-
constructor(time, values) {
|
|
22273
|
-
this.time = time;
|
|
22274
|
-
this.values = values;
|
|
22275
|
-
}
|
|
22276
|
-
}
|
|
22277
|
-
|
|
22278
|
-
// CONCATENATED MODULE: ./.tmp/config/history-data/get-history-data-args.ts
|
|
22279
|
-
class GetHistoryDataArgs {
|
|
22280
|
-
/**
|
|
22281
|
-
* 获取历史数据参数
|
|
22282
|
-
* @param dataSourceCode 数据源编码
|
|
22283
|
-
* @param dataItemName 历史数据条目名称
|
|
22284
|
-
* @param channelNames 通道名称
|
|
22285
|
-
* @param startTime 开始时间
|
|
22286
|
-
* @param endTime 结束时间
|
|
22287
|
-
* @param limit 获取数据数量,为负数则倒叙
|
|
22288
|
-
* @param rangeType 区间类型
|
|
22289
|
-
*/
|
|
22290
|
-
constructor(dataSourceCode, dataItemName, channelNames, startTime, endTime, limit, rangeType) {
|
|
22291
|
-
this.dataSourceCode = dataSourceCode;
|
|
22292
|
-
this.dataItemName = dataItemName;
|
|
22293
|
-
this.channelNames = channelNames;
|
|
22294
|
-
this.startTime = startTime;
|
|
22295
|
-
this.endTime = endTime;
|
|
22296
|
-
this.limit = limit;
|
|
22297
|
-
this.rangeType = rangeType;
|
|
22298
|
-
}
|
|
22299
|
-
}
|
|
22300
|
-
|
|
22301
|
-
// CONCATENATED MODULE: ./.tmp/config/history-data/index.ts
|
|
22302
|
-
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
// EXTERNAL MODULE: ./.tmp/config/variable/variable-store.ts
|
|
22308
|
-
var variable_store = __webpack_require__(253);
|
|
22309
|
-
|
|
22310
|
-
// CONCATENATED MODULE: ./.tmp/config/variable/get-variable-name-args.ts
|
|
22311
|
-
class GetVariableNameArgs {
|
|
22312
|
-
constructor(name, groupName, code) {
|
|
22313
|
-
this.name = name;
|
|
22314
|
-
this.groupName = groupName;
|
|
22315
|
-
this.code = code;
|
|
22316
|
-
}
|
|
22317
|
-
}
|
|
22318
|
-
|
|
22319
|
-
// CONCATENATED MODULE: ./.tmp/config/variable/index.ts
|
|
22320
|
-
|
|
22321
|
-
|
|
22322
|
-
|
|
22323
|
-
// EXTERNAL MODULE: ./.tmp/config/alarm/alarm.store.ts
|
|
22324
|
-
var alarm_store = __webpack_require__(252);
|
|
22325
|
-
|
|
22326
|
-
// CONCATENATED MODULE: ./.tmp/config/alarm/get-alarms-args.ts
|
|
22327
|
-
class GetAlarmsArgs {
|
|
22328
|
-
constructor(alarmNames, triggeredStartTime, triggeredEndTime, maxResultCount, skipCount, state, // 告警状态数组 (0=触发/未确认, 1=触发/已确认, 2=恢复/未确认, 3=恢复/已确认)
|
|
22329
|
-
sorting // 排序字段 (如: "TriggeredTime DESC" 或 "TriggeredTime ASC")
|
|
22330
|
-
) {
|
|
22331
|
-
this.alarmNames = alarmNames;
|
|
22332
|
-
this.triggeredStartTime = triggeredStartTime;
|
|
22333
|
-
this.triggeredEndTime = triggeredEndTime;
|
|
22334
|
-
this.maxResultCount = maxResultCount;
|
|
22335
|
-
this.skipCount = skipCount;
|
|
22336
|
-
this.state = state;
|
|
22337
|
-
this.sorting = sorting;
|
|
22338
|
-
}
|
|
22339
|
-
}
|
|
22340
|
-
|
|
22341
|
-
// CONCATENATED MODULE: ./.tmp/config/alarm/index.ts
|
|
22342
|
-
|
|
22343
|
-
|
|
22344
|
-
|
|
22345
|
-
// CONCATENATED MODULE: ./.tmp/config/index.ts
|
|
22346
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return config_store["ConfigStore"]; });
|
|
22347
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "f", function() { return Graph; });
|
|
22348
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "g", function() { return GraphResult; });
|
|
22349
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "i", function() { return GraphType; });
|
|
22350
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "h", function() { return graph_store["GraphStore"]; });
|
|
22351
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "p", function() { return view_store["ViewStore"]; });
|
|
22352
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "o", function() { return view_model["a" /* ViewModel */]; });
|
|
22353
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "m", function() { return image_store["ImageStore"]; });
|
|
22354
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "k", function() { return history_data_store["HistoryDataStore"]; });
|
|
22355
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "j", function() { return HistoryDataModel; });
|
|
22356
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "l", function() { return HistoryDataValue; });
|
|
22357
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return GetHistoryDataArgs; });
|
|
22358
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "n", function() { return variable_store["VariableStore"]; });
|
|
22359
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "e", function() { return GetVariableNameArgs; });
|
|
22360
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return alarm_store["AlarmsStore"]; });
|
|
22361
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return GetAlarmsArgs; });
|
|
22362
|
-
|
|
22363
|
-
|
|
22364
|
-
|
|
22365
|
-
|
|
22366
|
-
|
|
22367
|
-
|
|
22368
|
-
|
|
22369
|
-
|
|
22370
|
-
|
|
22371
|
-
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
22382
|
/***/ }),
|
|
22376
22383
|
/* 11 */
|
|
22377
22384
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -32570,7 +32577,7 @@ const DefaultLocalization = {
|
|
|
32570
32577
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
|
32571
32578
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
32572
32579
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
32573
|
-
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
32580
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10);
|
|
32574
32581
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
32575
32582
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
32576
32583
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -33312,7 +33319,7 @@ class ViewModel {
|
|
|
33312
33319
|
"use strict";
|
|
33313
33320
|
|
|
33314
33321
|
// EXTERNAL MODULE: ./.tmp/logger/index.ts + 2 modules
|
|
33315
|
-
var logger = __webpack_require__(
|
|
33322
|
+
var logger = __webpack_require__(8);
|
|
33316
33323
|
|
|
33317
33324
|
// CONCATENATED MODULE: ./node_modules/d3-selection/src/namespaces.js
|
|
33318
33325
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
@@ -34449,7 +34456,7 @@ var operators_ = __webpack_require__(17);
|
|
|
34449
34456
|
var communication = __webpack_require__(4);
|
|
34450
34457
|
|
|
34451
34458
|
// EXTERNAL MODULE: ./.tmp/localization/index.ts + 1 modules
|
|
34452
|
-
var _tmp_localization = __webpack_require__(
|
|
34459
|
+
var _tmp_localization = __webpack_require__(10);
|
|
34453
34460
|
|
|
34454
34461
|
// EXTERNAL MODULE: ./.tmp/model/index.ts
|
|
34455
34462
|
var _tmp_model = __webpack_require__(3);
|
|
@@ -34463,7 +34470,7 @@ var ViewBackgroundFillType;
|
|
|
34463
34470
|
})(ViewBackgroundFillType || (ViewBackgroundFillType = {}));
|
|
34464
34471
|
|
|
34465
34472
|
// EXTERNAL MODULE: ./.tmp/shared/index.ts + 3 modules
|
|
34466
|
-
var shared = __webpack_require__(
|
|
34473
|
+
var shared = __webpack_require__(6);
|
|
34467
34474
|
|
|
34468
34475
|
// CONCATENATED MODULE: ./.tmp/model/shared/dynamic-display/dynamic-behavior-type.ts
|
|
34469
34476
|
var DynamicBehaviorType;
|
|
@@ -34484,7 +34491,7 @@ var RotationDirectionType;
|
|
|
34484
34491
|
})(RotationDirectionType || (RotationDirectionType = {}));
|
|
34485
34492
|
|
|
34486
34493
|
// EXTERNAL MODULE: ./.tmp/utils/variable-util.ts
|
|
34487
|
-
var variable_util = __webpack_require__(
|
|
34494
|
+
var variable_util = __webpack_require__(9);
|
|
34488
34495
|
|
|
34489
34496
|
// EXTERNAL MODULE: ./.tmp/communication/variable/variable-definition.ts
|
|
34490
34497
|
var variable_definition = __webpack_require__(11);
|
|
@@ -35299,12 +35306,16 @@ class conditional_enable_element_ConditionalEnableElement extends state_control_
|
|
|
35299
35306
|
}
|
|
35300
35307
|
}
|
|
35301
35308
|
|
|
35309
|
+
// EXTERNAL MODULE: ./.tmp/config/index.ts + 12 modules
|
|
35310
|
+
var _tmp_config = __webpack_require__(5);
|
|
35311
|
+
|
|
35302
35312
|
// CONCATENATED MODULE: ./.tmp/elements/base/readable-element.ts
|
|
35303
35313
|
|
|
35304
35314
|
|
|
35305
35315
|
|
|
35306
35316
|
|
|
35307
35317
|
|
|
35318
|
+
|
|
35308
35319
|
class readable_element_ReadableElement extends conditional_enable_element_ConditionalEnableElement {
|
|
35309
35320
|
constructor(element, permissionChecker, variableCommunicator, variableStore, localization, signalRAppId) {
|
|
35310
35321
|
super(element, permissionChecker, variableCommunicator, variableStore, localization, signalRAppId);
|
|
@@ -35414,7 +35425,7 @@ class readable_element_ReadableElement extends conditional_enable_element_Condit
|
|
|
35414
35425
|
return;
|
|
35415
35426
|
}
|
|
35416
35427
|
// 处理普通变量
|
|
35417
|
-
if (this.state === _tmp_model["State"].Normal || this.state === _tmp_model["State"].Disable || this.state === _tmp_model["State"].Offline
|
|
35428
|
+
if (this.state === _tmp_model["State"].Normal || this.state === _tmp_model["State"].Disable || (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && this.state === _tmp_model["State"].Offline)
|
|
35418
35429
|
|| value.variableName === this.minVariableName
|
|
35419
35430
|
|| value.variableName === this.maxVariableName) {
|
|
35420
35431
|
this.updateVariableValue(value.value, value.variableName);
|
|
@@ -35692,9 +35703,6 @@ bar_graph_element_BarGraphElement.DEFAULT_MAX_VALUE = 100;
|
|
|
35692
35703
|
|
|
35693
35704
|
|
|
35694
35705
|
|
|
35695
|
-
// EXTERNAL MODULE: ./.tmp/config/index.ts + 11 modules
|
|
35696
|
-
var _tmp_config = __webpack_require__(10);
|
|
35697
|
-
|
|
35698
35706
|
// EXTERNAL MODULE: ./.tmp/modal/alert/alert-modal.component.ts
|
|
35699
35707
|
var alert_modal_component = __webpack_require__(22);
|
|
35700
35708
|
|
|
@@ -35879,6 +35887,7 @@ class text_element_TextElementModal {
|
|
|
35879
35887
|
|
|
35880
35888
|
|
|
35881
35889
|
|
|
35890
|
+
|
|
35882
35891
|
class character_display_element_CharacterDisplayElement extends readable_element_ReadableElement {
|
|
35883
35892
|
constructor(element, injector, modalService, variableCommunicator, graphStore, permissionChecker, operationRecordService, securityChecker, variableStore, localization, signalRAppId) {
|
|
35884
35893
|
super(element, permissionChecker, variableCommunicator, variableStore, localization, signalRAppId);
|
|
@@ -35936,7 +35945,7 @@ class character_display_element_CharacterDisplayElement extends readable_element
|
|
|
35936
35945
|
}
|
|
35937
35946
|
changeStates() {
|
|
35938
35947
|
super.changeStates();
|
|
35939
|
-
if (this.state === _tmp_model["State"].Normal || this.state === _tmp_model["State"].Disable) {
|
|
35948
|
+
if (this.state === _tmp_model["State"].Normal || this.state === _tmp_model["State"].Disable || (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && this.state === _tmp_model["State"].Offline)) {
|
|
35940
35949
|
this.updateDisplayValue(this.displayValue);
|
|
35941
35950
|
}
|
|
35942
35951
|
else {
|
|
@@ -37975,7 +37984,7 @@ class WriteValueModalArgs {
|
|
|
37975
37984
|
var write_value_modal_component = __webpack_require__(37);
|
|
37976
37985
|
|
|
37977
37986
|
// EXTERNAL MODULE: ./.tmp/model/shared/data-type/fcloud-data-Type.ts
|
|
37978
|
-
var fcloud_data_Type = __webpack_require__(
|
|
37987
|
+
var fcloud_data_Type = __webpack_require__(7);
|
|
37979
37988
|
|
|
37980
37989
|
// CONCATENATED MODULE: ./.tmp/elements/numerical-display/numerical-display-element.ts
|
|
37981
37990
|
|
|
@@ -39544,6 +39553,7 @@ var binary = __webpack_require__(33);
|
|
|
39544
39553
|
|
|
39545
39554
|
|
|
39546
39555
|
|
|
39556
|
+
|
|
39547
39557
|
class bit_indicator_light_operator_BitIndicatorLightOperator {
|
|
39548
39558
|
constructor(settings, states, variableCommunicator, variableStore) {
|
|
39549
39559
|
this.settings = settings;
|
|
@@ -39586,8 +39596,11 @@ class bit_indicator_light_operator_BitIndicatorLightOperator {
|
|
|
39586
39596
|
if (variableStete.state === communication["d" /* VariableStateEnum */].Normal) {
|
|
39587
39597
|
this.requestCurrentSateIdValue(this.variableCommunicator, appId);
|
|
39588
39598
|
}
|
|
39599
|
+
else if (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && variableStete.state === communication["d" /* VariableStateEnum */].Offline && !this.valueSubscription) {
|
|
39600
|
+
this.requestCurrentSateIdValue(this.variableCommunicator, appId);
|
|
39601
|
+
}
|
|
39589
39602
|
else {
|
|
39590
|
-
this.currentStateIdChanged.emit(new CurrentStateIdValue(new communication["c" /* VariableState */](this.variableName, variableStete.state)));
|
|
39603
|
+
this.currentStateIdChanged.emit(new CurrentStateIdValue(new communication["c" /* VariableState */](this.variableName, variableStete.state), this.currentStateId));
|
|
39591
39604
|
}
|
|
39592
39605
|
});
|
|
39593
39606
|
}
|
|
@@ -39597,7 +39610,7 @@ class bit_indicator_light_operator_BitIndicatorLightOperator {
|
|
|
39597
39610
|
return;
|
|
39598
39611
|
}
|
|
39599
39612
|
this.valueSubscription = variableCommunicator.openVariable(this.variableName, appId).subscribe(value => {
|
|
39600
|
-
if (value.state === communication["d" /* VariableStateEnum */].DataNormal || value.state === communication["d" /* VariableStateEnum */].Offline) {
|
|
39613
|
+
if (value.state === communication["d" /* VariableStateEnum */].DataNormal || (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && value.state === communication["d" /* VariableStateEnum */].Offline)) {
|
|
39601
39614
|
if (this.settings.isBitwiseIndex) {
|
|
39602
39615
|
const maxBitIndex = 31;
|
|
39603
39616
|
this.binary = new binary["a" /* Binary */](value.value, maxBitIndex + 1);
|
|
@@ -39735,6 +39748,7 @@ class bit_switch_operator_BitSwitchOperator {
|
|
|
39735
39748
|
|
|
39736
39749
|
|
|
39737
39750
|
|
|
39751
|
+
|
|
39738
39752
|
class word_indicator_light_operator_WordIndicatorLightOperator {
|
|
39739
39753
|
constructor(settings, states, variableCommunicator, variableStore) {
|
|
39740
39754
|
this.settings = settings;
|
|
@@ -39756,8 +39770,11 @@ class word_indicator_light_operator_WordIndicatorLightOperator {
|
|
|
39756
39770
|
if (variableValue.state === communication["d" /* VariableStateEnum */].Normal) {
|
|
39757
39771
|
this.requestCurrentSateIdValue(this.variableCommunicator, appId);
|
|
39758
39772
|
}
|
|
39773
|
+
else if (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && variableValue.state === communication["d" /* VariableStateEnum */].Offline && !this.valueSubscription) {
|
|
39774
|
+
this.requestCurrentSateIdValue(this.variableCommunicator, appId);
|
|
39775
|
+
}
|
|
39759
39776
|
else {
|
|
39760
|
-
this.currentStateIdChanged.emit(new CurrentStateIdValue(new communication["c" /* VariableState */](this.variableName, variableValue.state)));
|
|
39777
|
+
this.currentStateIdChanged.emit(new CurrentStateIdValue(new communication["c" /* VariableState */](this.variableName, variableValue.state), this.currentStateId));
|
|
39761
39778
|
}
|
|
39762
39779
|
});
|
|
39763
39780
|
}
|
|
@@ -39771,7 +39788,7 @@ class word_indicator_light_operator_WordIndicatorLightOperator {
|
|
|
39771
39788
|
}
|
|
39772
39789
|
// TODO 检查状态id是从0-n连续编号的。
|
|
39773
39790
|
this.valueSubscription = variableCommunicator.openVariable(this.variableName, appId).subscribe(value => {
|
|
39774
|
-
if (value.state === communication["d" /* VariableStateEnum */].DataNormal || value.state === communication["d" /* VariableStateEnum */].Offline) {
|
|
39791
|
+
if (value.state === communication["d" /* VariableStateEnum */].DataNormal || (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && value.state === communication["d" /* VariableStateEnum */].Offline)) {
|
|
39775
39792
|
let stateId = 0;
|
|
39776
39793
|
for (let index = 0; index < this.sortedStates.length - 1; index++) {
|
|
39777
39794
|
const element = this.sortedStates[index];
|
|
@@ -39893,6 +39910,7 @@ class word_switch_operator_WordSwitchOperator {
|
|
|
39893
39910
|
|
|
39894
39911
|
|
|
39895
39912
|
|
|
39913
|
+
|
|
39896
39914
|
class switch_indicator_light_element_SwitchIndicatorLightElement extends conditional_enable_element_ConditionalEnableElement {
|
|
39897
39915
|
constructor(element, injector, modalService, variableCommunicator, graphStore, permissionChecker, operationRecordService, securityChecker, variableStore, localization, signalRAppId, textLibraryService, languageService, guiContext) {
|
|
39898
39916
|
super(element, permissionChecker, variableCommunicator, variableStore, localization, signalRAppId);
|
|
@@ -40095,7 +40113,7 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
|
|
|
40095
40113
|
}
|
|
40096
40114
|
currentStateIdChange(statusIdValue) {
|
|
40097
40115
|
this.updateElementStates([statusIdValue.state]);
|
|
40098
|
-
if (this.state === _tmp_model["State"].Unbind || this.state === _tmp_model["State"].Offline) {
|
|
40116
|
+
if (this.state === _tmp_model["State"].Unbind || (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && this.state === _tmp_model["State"].Offline)) {
|
|
40099
40117
|
if (!Object(lodash["isUndefined"])(statusIdValue.value)) {
|
|
40100
40118
|
this.switchToState(statusIdValue.value);
|
|
40101
40119
|
}
|
|
@@ -43478,6 +43496,7 @@ class per_view_variable_communicator_PerViewVariableCommunicator {
|
|
|
43478
43496
|
|
|
43479
43497
|
|
|
43480
43498
|
|
|
43499
|
+
|
|
43481
43500
|
class gui_view_GuiView {
|
|
43482
43501
|
constructor(injector, bsModalService, context, parentView) {
|
|
43483
43502
|
this.injector = injector;
|
|
@@ -43584,7 +43603,8 @@ class gui_view_GuiView {
|
|
|
43584
43603
|
this.mainElement.reportVariableStates(states);
|
|
43585
43604
|
const normalVariableNames = [];
|
|
43586
43605
|
Object(lodash["each"])(states, v => {
|
|
43587
|
-
if ((v.state === communication["d" /* VariableStateEnum */].Normal || v.state === communication["d" /* VariableStateEnum */].Offline)
|
|
43606
|
+
if ((v.state === communication["d" /* VariableStateEnum */].Normal || (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && v.state === communication["d" /* VariableStateEnum */].Offline))
|
|
43607
|
+
&& normalVariableNames.indexOf(v.variableName) === -1) {
|
|
43588
43608
|
normalVariableNames.push(v.variableName);
|
|
43589
43609
|
}
|
|
43590
43610
|
});
|
|
@@ -43801,16 +43821,16 @@ var core_ = __webpack_require__(0);
|
|
|
43801
43821
|
var lodash = __webpack_require__(2);
|
|
43802
43822
|
|
|
43803
43823
|
// EXTERNAL MODULE: ./.tmp/localization/index.ts + 1 modules
|
|
43804
|
-
var _tmp_localization = __webpack_require__(
|
|
43824
|
+
var _tmp_localization = __webpack_require__(10);
|
|
43805
43825
|
|
|
43806
43826
|
// EXTERNAL MODULE: ./.tmp/settings/index.ts + 2 modules
|
|
43807
43827
|
var settings = __webpack_require__(16);
|
|
43808
43828
|
|
|
43809
43829
|
// EXTERNAL MODULE: ./.tmp/logger/index.ts + 2 modules
|
|
43810
|
-
var logger = __webpack_require__(
|
|
43830
|
+
var logger = __webpack_require__(8);
|
|
43811
43831
|
|
|
43812
43832
|
// EXTERNAL MODULE: ./.tmp/shared/index.ts + 3 modules
|
|
43813
|
-
var shared = __webpack_require__(
|
|
43833
|
+
var shared = __webpack_require__(6);
|
|
43814
43834
|
|
|
43815
43835
|
// EXTERNAL MODULE: ./.tmp/view/view.service.ts
|
|
43816
43836
|
var view_service = __webpack_require__(27);
|
|
@@ -44238,7 +44258,7 @@ gui_component_GuiComponent = __decorate([
|
|
|
44238
44258
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WriteValueModalComponent; });
|
|
44239
44259
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
44240
44260
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
44241
|
-
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
44261
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
44242
44262
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
44243
44263
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
44244
44264
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -44515,7 +44535,7 @@ WriteValueModalComponent = __decorate([
|
|
|
44515
44535
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
44516
44536
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
44517
44537
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
|
44518
|
-
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
44538
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
|
|
44519
44539
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
44520
44540
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
44521
44541
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -45396,8 +45416,8 @@ DataTypeService = __decorate([
|
|
|
45396
45416
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FCloudDataTypeService; });
|
|
45397
45417
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
45398
45418
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
45399
|
-
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
45400
|
-
/* harmony import */ var _model_shared_data_type_fcloud_data_Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
45419
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
45420
|
+
/* harmony import */ var _model_shared_data_type_fcloud_data_Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
45401
45421
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
45402
45422
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
45403
45423
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -45607,7 +45627,7 @@ FCloudDataTypeService = __decorate([
|
|
|
45607
45627
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FBoxDataTypeService; });
|
|
45608
45628
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
45609
45629
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
45610
|
-
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
45630
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
45611
45631
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
45612
45632
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
45613
45633
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -65783,8 +65803,8 @@ var Subject = __webpack_require__(39);
|
|
|
65783
65803
|
// EXTERNAL MODULE: external "rxjs/operators"
|
|
65784
65804
|
var operators_ = __webpack_require__(17);
|
|
65785
65805
|
|
|
65786
|
-
// EXTERNAL MODULE: ./.tmp/config/index.ts +
|
|
65787
|
-
var _tmp_config = __webpack_require__(
|
|
65806
|
+
// EXTERNAL MODULE: ./.tmp/config/index.ts + 12 modules
|
|
65807
|
+
var _tmp_config = __webpack_require__(5);
|
|
65788
65808
|
|
|
65789
65809
|
// EXTERNAL MODULE: ./.tmp/core/stringifying-map.ts
|
|
65790
65810
|
var stringifying_map = __webpack_require__(30);
|
|
@@ -65981,6 +66001,7 @@ var core = __webpack_require__(43);
|
|
|
65981
66001
|
|
|
65982
66002
|
|
|
65983
66003
|
|
|
66004
|
+
|
|
65984
66005
|
class remote_variable_communicator_RemoteVariableCommunicator {
|
|
65985
66006
|
constructor(remoteVariableProtocol, logger) {
|
|
65986
66007
|
this.remoteVariableProtocol = remoteVariableProtocol;
|
|
@@ -66072,18 +66093,20 @@ class remote_variable_communicator_RemoteVariableCommunicator {
|
|
|
66072
66093
|
});
|
|
66073
66094
|
}
|
|
66074
66095
|
// 离线时从预加载缓存取值推送给值订阅者
|
|
66075
|
-
if (state.state === communication["d" /* VariableStateEnum */].Offline && this.offlineValueCache.has(variableName)) {
|
|
66096
|
+
if (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && state.state === communication["d" /* VariableStateEnum */].Offline && this.offlineValueCache.has(variableName)) {
|
|
66076
66097
|
const cachedValue = this.offlineValueCache.get(variableName);
|
|
66077
|
-
|
|
66078
|
-
|
|
66079
|
-
|
|
66080
|
-
|
|
66081
|
-
|
|
66082
|
-
|
|
66083
|
-
|
|
66084
|
-
|
|
66085
|
-
|
|
66086
|
-
|
|
66098
|
+
if (cachedValue !== null) {
|
|
66099
|
+
const variableValue = {
|
|
66100
|
+
variableName,
|
|
66101
|
+
value: cachedValue,
|
|
66102
|
+
state: communication["d" /* VariableStateEnum */].Offline
|
|
66103
|
+
};
|
|
66104
|
+
this.variableValueCache.set(variableName, variableValue);
|
|
66105
|
+
if (this.observers.has(variableName)) {
|
|
66106
|
+
Object(lodash["each"])(this.observers.get(variableName), ob => {
|
|
66107
|
+
ob.next([variableValue]);
|
|
66108
|
+
});
|
|
66109
|
+
}
|
|
66087
66110
|
}
|
|
66088
66111
|
}
|
|
66089
66112
|
// 无论什么状态,推送后清除缓存,防止后续再次离线时用旧值
|
|
@@ -66092,10 +66115,36 @@ class remote_variable_communicator_RemoteVariableCommunicator {
|
|
|
66092
66115
|
});
|
|
66093
66116
|
}
|
|
66094
66117
|
/**
|
|
66095
|
-
* 预填充离线变量值缓存,由 GuiContext
|
|
66118
|
+
* 预填充离线变量值缓存,由 GuiContext 在组态加载时一次性调用。
|
|
66119
|
+
* 若状态推送早于接口返回,变量已在 Offline 状态,则直接推送;
|
|
66120
|
+
* 否则缓存等待状态事件到来时推送。
|
|
66096
66121
|
*/
|
|
66097
66122
|
setOfflineValueCache(variableName, value) {
|
|
66098
|
-
|
|
66123
|
+
if (!_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled) {
|
|
66124
|
+
return;
|
|
66125
|
+
}
|
|
66126
|
+
if (value === null || value === undefined) {
|
|
66127
|
+
return;
|
|
66128
|
+
}
|
|
66129
|
+
const cachedState = this.variableStateCache.get(variableName);
|
|
66130
|
+
if (cachedState && cachedState.state === communication["d" /* VariableStateEnum */].Offline) {
|
|
66131
|
+
// 状态已推送过,直接补推值给订阅者
|
|
66132
|
+
const variableValue = {
|
|
66133
|
+
variableName,
|
|
66134
|
+
value,
|
|
66135
|
+
state: communication["d" /* VariableStateEnum */].Offline
|
|
66136
|
+
};
|
|
66137
|
+
this.variableValueCache.set(variableName, variableValue);
|
|
66138
|
+
if (this.observers.has(variableName)) {
|
|
66139
|
+
Object(lodash["each"])(this.observers.get(variableName), ob => {
|
|
66140
|
+
ob.next([variableValue]);
|
|
66141
|
+
});
|
|
66142
|
+
}
|
|
66143
|
+
}
|
|
66144
|
+
else {
|
|
66145
|
+
// 状态还未推送,先缓存,等待状态事件
|
|
66146
|
+
this.offlineValueCache.set(variableName, value);
|
|
66147
|
+
}
|
|
66099
66148
|
}
|
|
66100
66149
|
subscribeVariableStates(variableNames) {
|
|
66101
66150
|
return new Observable["a" /* Observable */](observer => {
|
|
@@ -66538,7 +66587,7 @@ var lodash = __webpack_require__(2);
|
|
|
66538
66587
|
var condition_type = __webpack_require__(34);
|
|
66539
66588
|
|
|
66540
66589
|
// EXTERNAL MODULE: ./.tmp/utils/variable-util.ts
|
|
66541
|
-
var variable_util = __webpack_require__(
|
|
66590
|
+
var variable_util = __webpack_require__(9);
|
|
66542
66591
|
|
|
66543
66592
|
// EXTERNAL MODULE: ./.tmp/communication/variable/variable-definition.ts
|
|
66544
66593
|
var variable_definition = __webpack_require__(11);
|
|
@@ -74024,7 +74073,7 @@ var numerical_operation_service = __webpack_require__(41);
|
|
|
74024
74073
|
var view_service = __webpack_require__(27);
|
|
74025
74074
|
|
|
74026
74075
|
// EXTERNAL MODULE: ./.tmp/logger/index.ts + 2 modules
|
|
74027
|
-
var logger = __webpack_require__(
|
|
74076
|
+
var logger = __webpack_require__(8);
|
|
74028
74077
|
|
|
74029
74078
|
// EXTERNAL MODULE: ./.tmp/modal/verify-password/verify-password-modal.component.ts
|
|
74030
74079
|
var verify_password_modal_component = __webpack_require__(20);
|
|
@@ -86691,9 +86740,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86691
86740
|
/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43);
|
|
86692
86741
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringifyingMap", function() { return _core__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
86693
86742
|
|
|
86694
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
86743
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
|
|
86695
86744
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["b"]; });
|
|
86696
86745
|
|
|
86746
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GuiFeatureConfig", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["j"]; });
|
|
86747
|
+
|
|
86697
86748
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Graph", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["f"]; });
|
|
86698
86749
|
|
|
86699
86750
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphResult", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["g"]; });
|
|
@@ -86702,21 +86753,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86702
86753
|
|
|
86703
86754
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["h"]; });
|
|
86704
86755
|
|
|
86705
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86756
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["q"]; });
|
|
86706
86757
|
|
|
86707
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86758
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["p"]; });
|
|
86708
86759
|
|
|
86709
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86760
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["n"]; });
|
|
86710
86761
|
|
|
86711
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86762
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["l"]; });
|
|
86712
86763
|
|
|
86713
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86764
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["k"]; });
|
|
86714
86765
|
|
|
86715
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataValue", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86766
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataValue", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["m"]; });
|
|
86716
86767
|
|
|
86717
86768
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetHistoryDataArgs", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["d"]; });
|
|
86718
86769
|
|
|
86719
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariableStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86770
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariableStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["o"]; });
|
|
86720
86771
|
|
|
86721
86772
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVariableNameArgs", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["e"]; });
|
|
86722
86773
|
|
|
@@ -86736,8 +86787,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86736
86787
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariableStateEnum", function() { return _communication__WEBPACK_IMPORTED_MODULE_5__["d"]; });
|
|
86737
86788
|
|
|
86738
86789
|
/* harmony import */ var _model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
|
|
86739
|
-
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _model__WEBPACK_IMPORTED_MODULE_6__) if(["GuiComponent","GuiView","GuiContext","GuiModule","LOGGER_SERVICE_TOKEN","LoggerService","ConsoleLoggerService","StringifyingMap","ConfigStore","Graph","GraphResult","GraphType","GraphStore","ViewStore","ViewModel","ImageStore","HistoryDataStore","HistoryDataModel","HistoryDataValue","GetHistoryDataArgs","VariableStore","GetVariableNameArgs","AlarmsStore","GetAlarmsArgs","VariableCommunicator","VariableValue","VariableState","VariableDefinition","VariableStateEnum","default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _model__WEBPACK_IMPORTED_MODULE_6__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
86740
|
-
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
86790
|
+
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _model__WEBPACK_IMPORTED_MODULE_6__) if(["GuiComponent","GuiView","GuiContext","GuiModule","LOGGER_SERVICE_TOKEN","LoggerService","ConsoleLoggerService","StringifyingMap","ConfigStore","GuiFeatureConfig","Graph","GraphResult","GraphType","GraphStore","ViewStore","ViewModel","ImageStore","HistoryDataStore","HistoryDataModel","HistoryDataValue","GetHistoryDataArgs","VariableStore","GetVariableNameArgs","AlarmsStore","GetAlarmsArgs","VariableCommunicator","VariableValue","VariableState","VariableDefinition","VariableStateEnum","default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _model__WEBPACK_IMPORTED_MODULE_6__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
86791
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10);
|
|
86741
86792
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Localization", function() { return _localization__WEBPACK_IMPORTED_MODULE_7__["c"]; });
|
|
86742
86793
|
|
|
86743
86794
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LOCALIZATION", function() { return _localization__WEBPACK_IMPORTED_MODULE_7__["b"]; });
|
|
@@ -86749,7 +86800,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86749
86800
|
/* harmony import */ var _security__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(77);
|
|
86750
86801
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SecurityChecker", function() { return _security__WEBPACK_IMPORTED_MODULE_8__["a"]; });
|
|
86751
86802
|
|
|
86752
|
-
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
86803
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(6);
|
|
86753
86804
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Disposable", function() { return _shared__WEBPACK_IMPORTED_MODULE_9__["b"]; });
|
|
86754
86805
|
|
|
86755
86806
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigIsEmptyError", function() { return _shared__WEBPACK_IMPORTED_MODULE_9__["a"]; });
|
|
@@ -86793,8 +86844,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86793
86844
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoteVariableProtocol", function() { return _remote__WEBPACK_IMPORTED_MODULE_11__["k"]; });
|
|
86794
86845
|
|
|
86795
86846
|
/* harmony import */ var _service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(14);
|
|
86796
|
-
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _service__WEBPACK_IMPORTED_MODULE_12__) if(["GuiComponent","GuiView","GuiContext","GuiModule","LOGGER_SERVICE_TOKEN","LoggerService","ConsoleLoggerService","StringifyingMap","ConfigStore","Graph","GraphResult","GraphType","GraphStore","ViewStore","ViewModel","ImageStore","HistoryDataStore","HistoryDataModel","HistoryDataValue","GetHistoryDataArgs","VariableStore","GetVariableNameArgs","AlarmsStore","GetAlarmsArgs","VariableCommunicator","VariableValue","VariableState","VariableDefinition","VariableStateEnum","Localization","LOCALIZATION","DefaultLocalization","Localization_zh_CN","SecurityChecker","Disposable","ConfigIsEmptyError","OperationHelper","GuiConsts","GraphExtendedStyle","GetReleasedGraphStateResult","GraphStateResult","GetReleasedGraphStates","GraphStateKey","GraphState","RemoteGraphProtocol","RemoteGraphStore","RemoteViewProtocol","RemoteViewStore","ViewResult","RemoteImageProtocol","RemoteImageStore","RemoteVariableCommunicator","RemoteVariableProtocol","default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _service__WEBPACK_IMPORTED_MODULE_12__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
86797
|
-
/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
|
86847
|
+
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _service__WEBPACK_IMPORTED_MODULE_12__) if(["GuiComponent","GuiView","GuiContext","GuiModule","LOGGER_SERVICE_TOKEN","LoggerService","ConsoleLoggerService","StringifyingMap","ConfigStore","GuiFeatureConfig","Graph","GraphResult","GraphType","GraphStore","ViewStore","ViewModel","ImageStore","HistoryDataStore","HistoryDataModel","HistoryDataValue","GetHistoryDataArgs","VariableStore","GetVariableNameArgs","AlarmsStore","GetAlarmsArgs","VariableCommunicator","VariableValue","VariableState","VariableDefinition","VariableStateEnum","Localization","LOCALIZATION","DefaultLocalization","Localization_zh_CN","SecurityChecker","Disposable","ConfigIsEmptyError","OperationHelper","GuiConsts","GraphExtendedStyle","GetReleasedGraphStateResult","GraphStateResult","GetReleasedGraphStates","GraphStateKey","GraphState","RemoteGraphProtocol","RemoteGraphStore","RemoteViewProtocol","RemoteViewStore","ViewResult","RemoteImageProtocol","RemoteImageStore","RemoteVariableCommunicator","RemoteVariableProtocol","default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _service__WEBPACK_IMPORTED_MODULE_12__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
86848
|
+
/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8);
|
|
86798
86849
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LOGGER_SERVICE_TOKEN", function() { return _logger__WEBPACK_IMPORTED_MODULE_13__["b"]; });
|
|
86799
86850
|
|
|
86800
86851
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoggerService", function() { return _logger__WEBPACK_IMPORTED_MODULE_13__["c"]; });
|