@flexem/fc-gui 3.0.0-alpha.152 → 3.0.0-alpha.154
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 +274 -224
- 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/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
|
@@ -21935,7 +21935,7 @@ class ConfigIsEmptyError extends Error {
|
|
|
21935
21935
|
}
|
|
21936
21936
|
|
|
21937
21937
|
// EXTERNAL MODULE: ./.tmp/model/shared/data-type/fcloud-data-Type.ts
|
|
21938
|
-
var fcloud_data_Type = __webpack_require__(
|
|
21938
|
+
var fcloud_data_Type = __webpack_require__(7);
|
|
21939
21939
|
|
|
21940
21940
|
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
21941
21941
|
var lodash = __webpack_require__(2);
|
|
@@ -22035,6 +22035,181 @@ var graph_extended_style = __webpack_require__(269);
|
|
|
22035
22035
|
/* 6 */
|
|
22036
22036
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22037
22037
|
|
|
22038
|
+
"use strict";
|
|
22039
|
+
|
|
22040
|
+
// EXTERNAL MODULE: ./.tmp/config/config-store.ts
|
|
22041
|
+
var config_store = __webpack_require__(258);
|
|
22042
|
+
|
|
22043
|
+
// CONCATENATED MODULE: ./.tmp/config/gui-feature-config.ts
|
|
22044
|
+
class GuiFeatureConfig {
|
|
22045
|
+
}
|
|
22046
|
+
GuiFeatureConfig.isOfflineDisplayEnabled = false;
|
|
22047
|
+
|
|
22048
|
+
// CONCATENATED MODULE: ./.tmp/config/graph/graph.ts
|
|
22049
|
+
class Graph {
|
|
22050
|
+
constructor(graphType, source) {
|
|
22051
|
+
this.graphType = graphType;
|
|
22052
|
+
this.source = source;
|
|
22053
|
+
}
|
|
22054
|
+
}
|
|
22055
|
+
|
|
22056
|
+
// CONCATENATED MODULE: ./.tmp/config/graph/graph-result.ts
|
|
22057
|
+
class GraphResult {
|
|
22058
|
+
constructor(graph, failed) {
|
|
22059
|
+
this.graph = graph;
|
|
22060
|
+
this.failed = failed;
|
|
22061
|
+
}
|
|
22062
|
+
static failed() {
|
|
22063
|
+
return GraphResult.failedResult;
|
|
22064
|
+
}
|
|
22065
|
+
static success(graph) {
|
|
22066
|
+
return new GraphResult(graph);
|
|
22067
|
+
}
|
|
22068
|
+
}
|
|
22069
|
+
GraphResult.failedResult = new GraphResult(null, true);
|
|
22070
|
+
|
|
22071
|
+
// CONCATENATED MODULE: ./.tmp/config/graph/graph-type.ts
|
|
22072
|
+
var GraphType;
|
|
22073
|
+
(function (GraphType) {
|
|
22074
|
+
GraphType[GraphType["SVG"] = 0] = "SVG";
|
|
22075
|
+
GraphType[GraphType["Image"] = 1] = "Image";
|
|
22076
|
+
})(GraphType || (GraphType = {}));
|
|
22077
|
+
|
|
22078
|
+
// EXTERNAL MODULE: ./.tmp/config/graph/graph-store.ts
|
|
22079
|
+
var graph_store = __webpack_require__(257);
|
|
22080
|
+
|
|
22081
|
+
// EXTERNAL MODULE: ./.tmp/config/view/view-store.ts
|
|
22082
|
+
var view_store = __webpack_require__(256);
|
|
22083
|
+
|
|
22084
|
+
// EXTERNAL MODULE: ./.tmp/config/view/view.model.ts
|
|
22085
|
+
var view_model = __webpack_require__(31);
|
|
22086
|
+
|
|
22087
|
+
// EXTERNAL MODULE: ./.tmp/config/image/image-store.ts
|
|
22088
|
+
var image_store = __webpack_require__(255);
|
|
22089
|
+
|
|
22090
|
+
// EXTERNAL MODULE: ./.tmp/config/history-data/history-data.store.ts
|
|
22091
|
+
var history_data_store = __webpack_require__(254);
|
|
22092
|
+
|
|
22093
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/history-data.model.ts
|
|
22094
|
+
class HistoryDataModel {
|
|
22095
|
+
constructor(error, isUnbind, values) {
|
|
22096
|
+
this.error = error;
|
|
22097
|
+
this.isUnbind = isUnbind;
|
|
22098
|
+
this.values = values;
|
|
22099
|
+
}
|
|
22100
|
+
}
|
|
22101
|
+
|
|
22102
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/history-data-value.ts
|
|
22103
|
+
class HistoryDataValue {
|
|
22104
|
+
constructor(time, values) {
|
|
22105
|
+
this.time = time;
|
|
22106
|
+
this.values = values;
|
|
22107
|
+
}
|
|
22108
|
+
}
|
|
22109
|
+
|
|
22110
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/get-history-data-args.ts
|
|
22111
|
+
class GetHistoryDataArgs {
|
|
22112
|
+
/**
|
|
22113
|
+
* 获取历史数据参数
|
|
22114
|
+
* @param dataSourceCode 数据源编码
|
|
22115
|
+
* @param dataItemName 历史数据条目名称
|
|
22116
|
+
* @param channelNames 通道名称
|
|
22117
|
+
* @param startTime 开始时间
|
|
22118
|
+
* @param endTime 结束时间
|
|
22119
|
+
* @param limit 获取数据数量,为负数则倒叙
|
|
22120
|
+
* @param rangeType 区间类型
|
|
22121
|
+
*/
|
|
22122
|
+
constructor(dataSourceCode, dataItemName, channelNames, startTime, endTime, limit, rangeType) {
|
|
22123
|
+
this.dataSourceCode = dataSourceCode;
|
|
22124
|
+
this.dataItemName = dataItemName;
|
|
22125
|
+
this.channelNames = channelNames;
|
|
22126
|
+
this.startTime = startTime;
|
|
22127
|
+
this.endTime = endTime;
|
|
22128
|
+
this.limit = limit;
|
|
22129
|
+
this.rangeType = rangeType;
|
|
22130
|
+
}
|
|
22131
|
+
}
|
|
22132
|
+
|
|
22133
|
+
// CONCATENATED MODULE: ./.tmp/config/history-data/index.ts
|
|
22134
|
+
|
|
22135
|
+
|
|
22136
|
+
|
|
22137
|
+
|
|
22138
|
+
|
|
22139
|
+
// EXTERNAL MODULE: ./.tmp/config/variable/variable-store.ts
|
|
22140
|
+
var variable_store = __webpack_require__(253);
|
|
22141
|
+
|
|
22142
|
+
// CONCATENATED MODULE: ./.tmp/config/variable/get-variable-name-args.ts
|
|
22143
|
+
class GetVariableNameArgs {
|
|
22144
|
+
constructor(name, groupName, code) {
|
|
22145
|
+
this.name = name;
|
|
22146
|
+
this.groupName = groupName;
|
|
22147
|
+
this.code = code;
|
|
22148
|
+
}
|
|
22149
|
+
}
|
|
22150
|
+
|
|
22151
|
+
// CONCATENATED MODULE: ./.tmp/config/variable/index.ts
|
|
22152
|
+
|
|
22153
|
+
|
|
22154
|
+
|
|
22155
|
+
// EXTERNAL MODULE: ./.tmp/config/alarm/alarm.store.ts
|
|
22156
|
+
var alarm_store = __webpack_require__(252);
|
|
22157
|
+
|
|
22158
|
+
// CONCATENATED MODULE: ./.tmp/config/alarm/get-alarms-args.ts
|
|
22159
|
+
class GetAlarmsArgs {
|
|
22160
|
+
constructor(alarmNames, triggeredStartTime, triggeredEndTime, maxResultCount, skipCount, state, // 告警状态数组 (0=触发/未确认, 1=触发/已确认, 2=恢复/未确认, 3=恢复/已确认)
|
|
22161
|
+
sorting // 排序字段 (如: "TriggeredTime DESC" 或 "TriggeredTime ASC")
|
|
22162
|
+
) {
|
|
22163
|
+
this.alarmNames = alarmNames;
|
|
22164
|
+
this.triggeredStartTime = triggeredStartTime;
|
|
22165
|
+
this.triggeredEndTime = triggeredEndTime;
|
|
22166
|
+
this.maxResultCount = maxResultCount;
|
|
22167
|
+
this.skipCount = skipCount;
|
|
22168
|
+
this.state = state;
|
|
22169
|
+
this.sorting = sorting;
|
|
22170
|
+
}
|
|
22171
|
+
}
|
|
22172
|
+
|
|
22173
|
+
// CONCATENATED MODULE: ./.tmp/config/alarm/index.ts
|
|
22174
|
+
|
|
22175
|
+
|
|
22176
|
+
|
|
22177
|
+
// CONCATENATED MODULE: ./.tmp/config/index.ts
|
|
22178
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return config_store["ConfigStore"]; });
|
|
22179
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "j", function() { return GuiFeatureConfig; });
|
|
22180
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "f", function() { return Graph; });
|
|
22181
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "g", function() { return GraphResult; });
|
|
22182
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "i", function() { return GraphType; });
|
|
22183
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "h", function() { return graph_store["GraphStore"]; });
|
|
22184
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "q", function() { return view_store["ViewStore"]; });
|
|
22185
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "p", function() { return view_model["a" /* ViewModel */]; });
|
|
22186
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "n", function() { return image_store["ImageStore"]; });
|
|
22187
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "l", function() { return history_data_store["HistoryDataStore"]; });
|
|
22188
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "k", function() { return HistoryDataModel; });
|
|
22189
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "m", function() { return HistoryDataValue; });
|
|
22190
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return GetHistoryDataArgs; });
|
|
22191
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "o", function() { return variable_store["VariableStore"]; });
|
|
22192
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "e", function() { return GetVariableNameArgs; });
|
|
22193
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return alarm_store["AlarmsStore"]; });
|
|
22194
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return GetAlarmsArgs; });
|
|
22195
|
+
|
|
22196
|
+
|
|
22197
|
+
|
|
22198
|
+
|
|
22199
|
+
|
|
22200
|
+
|
|
22201
|
+
|
|
22202
|
+
|
|
22203
|
+
|
|
22204
|
+
|
|
22205
|
+
|
|
22206
|
+
|
|
22207
|
+
|
|
22208
|
+
|
|
22209
|
+
/***/ }),
|
|
22210
|
+
/* 7 */
|
|
22211
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22212
|
+
|
|
22038
22213
|
"use strict";
|
|
22039
22214
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FCloudDataType; });
|
|
22040
22215
|
var FCloudDataType;
|
|
@@ -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__(6);
|
|
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);
|
|
@@ -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__(6);
|
|
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 || this.state === _tmp_model["State"].Offline) {
|
|
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];
|
|
@@ -43478,6 +43495,7 @@ class per_view_variable_communicator_PerViewVariableCommunicator {
|
|
|
43478
43495
|
|
|
43479
43496
|
|
|
43480
43497
|
|
|
43498
|
+
|
|
43481
43499
|
class gui_view_GuiView {
|
|
43482
43500
|
constructor(injector, bsModalService, context, parentView) {
|
|
43483
43501
|
this.injector = injector;
|
|
@@ -43584,7 +43602,8 @@ class gui_view_GuiView {
|
|
|
43584
43602
|
this.mainElement.reportVariableStates(states);
|
|
43585
43603
|
const normalVariableNames = [];
|
|
43586
43604
|
Object(lodash["each"])(states, v => {
|
|
43587
|
-
if ((v.state === communication["d" /* VariableStateEnum */].Normal || v.state === communication["d" /* VariableStateEnum */].Offline)
|
|
43605
|
+
if ((v.state === communication["d" /* VariableStateEnum */].Normal || (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && v.state === communication["d" /* VariableStateEnum */].Offline))
|
|
43606
|
+
&& normalVariableNames.indexOf(v.variableName) === -1) {
|
|
43588
43607
|
normalVariableNames.push(v.variableName);
|
|
43589
43608
|
}
|
|
43590
43609
|
});
|
|
@@ -43801,13 +43820,13 @@ var core_ = __webpack_require__(0);
|
|
|
43801
43820
|
var lodash = __webpack_require__(2);
|
|
43802
43821
|
|
|
43803
43822
|
// EXTERNAL MODULE: ./.tmp/localization/index.ts + 1 modules
|
|
43804
|
-
var _tmp_localization = __webpack_require__(
|
|
43823
|
+
var _tmp_localization = __webpack_require__(10);
|
|
43805
43824
|
|
|
43806
43825
|
// EXTERNAL MODULE: ./.tmp/settings/index.ts + 2 modules
|
|
43807
43826
|
var settings = __webpack_require__(16);
|
|
43808
43827
|
|
|
43809
43828
|
// EXTERNAL MODULE: ./.tmp/logger/index.ts + 2 modules
|
|
43810
|
-
var logger = __webpack_require__(
|
|
43829
|
+
var logger = __webpack_require__(8);
|
|
43811
43830
|
|
|
43812
43831
|
// EXTERNAL MODULE: ./.tmp/shared/index.ts + 3 modules
|
|
43813
43832
|
var shared = __webpack_require__(5);
|
|
@@ -44238,7 +44257,7 @@ gui_component_GuiComponent = __decorate([
|
|
|
44238
44257
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WriteValueModalComponent; });
|
|
44239
44258
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
44240
44259
|
/* 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__(
|
|
44260
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
44242
44261
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
44243
44262
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
44244
44263
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -44515,7 +44534,7 @@ WriteValueModalComponent = __decorate([
|
|
|
44515
44534
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
44516
44535
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
44517
44536
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
|
44518
|
-
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
44537
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
|
|
44519
44538
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
44520
44539
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
44521
44540
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -45396,8 +45415,8 @@ DataTypeService = __decorate([
|
|
|
45396
45415
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FCloudDataTypeService; });
|
|
45397
45416
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
45398
45417
|
/* 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__(
|
|
45418
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
45419
|
+
/* harmony import */ var _model_shared_data_type_fcloud_data_Type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
45401
45420
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
45402
45421
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
45403
45422
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -45607,7 +45626,7 @@ FCloudDataTypeService = __decorate([
|
|
|
45607
45626
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FBoxDataTypeService; });
|
|
45608
45627
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
45609
45628
|
/* 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__(
|
|
45629
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
45611
45630
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
45612
45631
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
45613
45632
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -65783,8 +65802,8 @@ var Subject = __webpack_require__(39);
|
|
|
65783
65802
|
// EXTERNAL MODULE: external "rxjs/operators"
|
|
65784
65803
|
var operators_ = __webpack_require__(17);
|
|
65785
65804
|
|
|
65786
|
-
// EXTERNAL MODULE: ./.tmp/config/index.ts +
|
|
65787
|
-
var _tmp_config = __webpack_require__(
|
|
65805
|
+
// EXTERNAL MODULE: ./.tmp/config/index.ts + 12 modules
|
|
65806
|
+
var _tmp_config = __webpack_require__(6);
|
|
65788
65807
|
|
|
65789
65808
|
// EXTERNAL MODULE: ./.tmp/core/stringifying-map.ts
|
|
65790
65809
|
var stringifying_map = __webpack_require__(30);
|
|
@@ -65981,6 +66000,7 @@ var core = __webpack_require__(43);
|
|
|
65981
66000
|
|
|
65982
66001
|
|
|
65983
66002
|
|
|
66003
|
+
|
|
65984
66004
|
class remote_variable_communicator_RemoteVariableCommunicator {
|
|
65985
66005
|
constructor(remoteVariableProtocol, logger) {
|
|
65986
66006
|
this.remoteVariableProtocol = remoteVariableProtocol;
|
|
@@ -66072,18 +66092,20 @@ class remote_variable_communicator_RemoteVariableCommunicator {
|
|
|
66072
66092
|
});
|
|
66073
66093
|
}
|
|
66074
66094
|
// 离线时从预加载缓存取值推送给值订阅者
|
|
66075
|
-
if (state.state === communication["d" /* VariableStateEnum */].Offline && this.offlineValueCache.has(variableName)) {
|
|
66095
|
+
if (_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled && state.state === communication["d" /* VariableStateEnum */].Offline && this.offlineValueCache.has(variableName)) {
|
|
66076
66096
|
const cachedValue = this.offlineValueCache.get(variableName);
|
|
66077
|
-
|
|
66078
|
-
|
|
66079
|
-
|
|
66080
|
-
|
|
66081
|
-
|
|
66082
|
-
|
|
66083
|
-
|
|
66084
|
-
|
|
66085
|
-
|
|
66086
|
-
|
|
66097
|
+
if (cachedValue !== null) {
|
|
66098
|
+
const variableValue = {
|
|
66099
|
+
variableName,
|
|
66100
|
+
value: cachedValue,
|
|
66101
|
+
state: communication["d" /* VariableStateEnum */].Offline
|
|
66102
|
+
};
|
|
66103
|
+
this.variableValueCache.set(variableName, variableValue);
|
|
66104
|
+
if (this.observers.has(variableName)) {
|
|
66105
|
+
Object(lodash["each"])(this.observers.get(variableName), ob => {
|
|
66106
|
+
ob.next([variableValue]);
|
|
66107
|
+
});
|
|
66108
|
+
}
|
|
66087
66109
|
}
|
|
66088
66110
|
}
|
|
66089
66111
|
// 无论什么状态,推送后清除缓存,防止后续再次离线时用旧值
|
|
@@ -66092,10 +66114,36 @@ class remote_variable_communicator_RemoteVariableCommunicator {
|
|
|
66092
66114
|
});
|
|
66093
66115
|
}
|
|
66094
66116
|
/**
|
|
66095
|
-
* 预填充离线变量值缓存,由 GuiContext
|
|
66117
|
+
* 预填充离线变量值缓存,由 GuiContext 在组态加载时一次性调用。
|
|
66118
|
+
* 若状态推送早于接口返回,变量已在 Offline 状态,则直接推送;
|
|
66119
|
+
* 否则缓存等待状态事件到来时推送。
|
|
66096
66120
|
*/
|
|
66097
66121
|
setOfflineValueCache(variableName, value) {
|
|
66098
|
-
|
|
66122
|
+
if (!_tmp_config["j" /* GuiFeatureConfig */].isOfflineDisplayEnabled) {
|
|
66123
|
+
return;
|
|
66124
|
+
}
|
|
66125
|
+
if (value === null || value === undefined) {
|
|
66126
|
+
return;
|
|
66127
|
+
}
|
|
66128
|
+
const cachedState = this.variableStateCache.get(variableName);
|
|
66129
|
+
if (cachedState && cachedState.state === communication["d" /* VariableStateEnum */].Offline) {
|
|
66130
|
+
// 状态已推送过,直接补推值给订阅者
|
|
66131
|
+
const variableValue = {
|
|
66132
|
+
variableName,
|
|
66133
|
+
value,
|
|
66134
|
+
state: communication["d" /* VariableStateEnum */].Offline
|
|
66135
|
+
};
|
|
66136
|
+
this.variableValueCache.set(variableName, variableValue);
|
|
66137
|
+
if (this.observers.has(variableName)) {
|
|
66138
|
+
Object(lodash["each"])(this.observers.get(variableName), ob => {
|
|
66139
|
+
ob.next([variableValue]);
|
|
66140
|
+
});
|
|
66141
|
+
}
|
|
66142
|
+
}
|
|
66143
|
+
else {
|
|
66144
|
+
// 状态还未推送,先缓存,等待状态事件
|
|
66145
|
+
this.offlineValueCache.set(variableName, value);
|
|
66146
|
+
}
|
|
66099
66147
|
}
|
|
66100
66148
|
subscribeVariableStates(variableNames) {
|
|
66101
66149
|
return new Observable["a" /* Observable */](observer => {
|
|
@@ -66538,7 +66586,7 @@ var lodash = __webpack_require__(2);
|
|
|
66538
66586
|
var condition_type = __webpack_require__(34);
|
|
66539
66587
|
|
|
66540
66588
|
// EXTERNAL MODULE: ./.tmp/utils/variable-util.ts
|
|
66541
|
-
var variable_util = __webpack_require__(
|
|
66589
|
+
var variable_util = __webpack_require__(9);
|
|
66542
66590
|
|
|
66543
66591
|
// EXTERNAL MODULE: ./.tmp/communication/variable/variable-definition.ts
|
|
66544
66592
|
var variable_definition = __webpack_require__(11);
|
|
@@ -74024,7 +74072,7 @@ var numerical_operation_service = __webpack_require__(41);
|
|
|
74024
74072
|
var view_service = __webpack_require__(27);
|
|
74025
74073
|
|
|
74026
74074
|
// EXTERNAL MODULE: ./.tmp/logger/index.ts + 2 modules
|
|
74027
|
-
var logger = __webpack_require__(
|
|
74075
|
+
var logger = __webpack_require__(8);
|
|
74028
74076
|
|
|
74029
74077
|
// EXTERNAL MODULE: ./.tmp/modal/verify-password/verify-password-modal.component.ts
|
|
74030
74078
|
var verify_password_modal_component = __webpack_require__(20);
|
|
@@ -86691,9 +86739,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86691
86739
|
/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43);
|
|
86692
86740
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringifyingMap", function() { return _core__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
86693
86741
|
|
|
86694
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
86742
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
|
|
86695
86743
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["b"]; });
|
|
86696
86744
|
|
|
86745
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GuiFeatureConfig", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["j"]; });
|
|
86746
|
+
|
|
86697
86747
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Graph", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["f"]; });
|
|
86698
86748
|
|
|
86699
86749
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphResult", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["g"]; });
|
|
@@ -86702,21 +86752,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86702
86752
|
|
|
86703
86753
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GraphStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["h"]; });
|
|
86704
86754
|
|
|
86705
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86755
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["q"]; });
|
|
86706
86756
|
|
|
86707
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86757
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ViewModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["p"]; });
|
|
86708
86758
|
|
|
86709
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86759
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["n"]; });
|
|
86710
86760
|
|
|
86711
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86761
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["l"]; });
|
|
86712
86762
|
|
|
86713
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86763
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataModel", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["k"]; });
|
|
86714
86764
|
|
|
86715
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataValue", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86765
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HistoryDataValue", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["m"]; });
|
|
86716
86766
|
|
|
86717
86767
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetHistoryDataArgs", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["d"]; });
|
|
86718
86768
|
|
|
86719
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariableStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["
|
|
86769
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariableStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["o"]; });
|
|
86720
86770
|
|
|
86721
86771
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GetVariableNameArgs", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["e"]; });
|
|
86722
86772
|
|
|
@@ -86736,8 +86786,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86736
86786
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VariableStateEnum", function() { return _communication__WEBPACK_IMPORTED_MODULE_5__["d"]; });
|
|
86737
86787
|
|
|
86738
86788
|
/* 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__(
|
|
86789
|
+
/* 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__));
|
|
86790
|
+
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10);
|
|
86741
86791
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Localization", function() { return _localization__WEBPACK_IMPORTED_MODULE_7__["c"]; });
|
|
86742
86792
|
|
|
86743
86793
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LOCALIZATION", function() { return _localization__WEBPACK_IMPORTED_MODULE_7__["b"]; });
|
|
@@ -86793,8 +86843,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86793
86843
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoteVariableProtocol", function() { return _remote__WEBPACK_IMPORTED_MODULE_11__["k"]; });
|
|
86794
86844
|
|
|
86795
86845
|
/* 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__(
|
|
86846
|
+
/* 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__));
|
|
86847
|
+
/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8);
|
|
86798
86848
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LOGGER_SERVICE_TOKEN", function() { return _logger__WEBPACK_IMPORTED_MODULE_13__["b"]; });
|
|
86799
86849
|
|
|
86800
86850
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoggerService", function() { return _logger__WEBPACK_IMPORTED_MODULE_13__["c"]; });
|