@flexem/fc-gui 3.0.0-alpha.153 → 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 +123 -124
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +3 -3
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/switch-indicator-light/switch-indicator-light-element.js +1 -2
- package/elements/switch-indicator-light/switch-indicator-light-element.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -21922,6 +21922,121 @@ var VariableStateEnum;
|
|
|
21922
21922
|
|
|
21923
21923
|
"use strict";
|
|
21924
21924
|
|
|
21925
|
+
// EXTERNAL MODULE: ./.tmp/shared/disposable.ts
|
|
21926
|
+
var disposable = __webpack_require__(270);
|
|
21927
|
+
|
|
21928
|
+
// CONCATENATED MODULE: ./.tmp/shared/config-is-empty-error.ts
|
|
21929
|
+
class ConfigIsEmptyError extends Error {
|
|
21930
|
+
constructor() {
|
|
21931
|
+
super('The config is empty.');
|
|
21932
|
+
// Todo: Only works in Chrome and FireFox, does not work in IE
|
|
21933
|
+
Object.setPrototypeOf(this, ConfigIsEmptyError.prototype);
|
|
21934
|
+
}
|
|
21935
|
+
}
|
|
21936
|
+
|
|
21937
|
+
// EXTERNAL MODULE: ./.tmp/model/shared/data-type/fcloud-data-Type.ts
|
|
21938
|
+
var fcloud_data_Type = __webpack_require__(7);
|
|
21939
|
+
|
|
21940
|
+
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
21941
|
+
var lodash = __webpack_require__(2);
|
|
21942
|
+
|
|
21943
|
+
// CONCATENATED MODULE: ./.tmp/shared/operation-helper.ts
|
|
21944
|
+
|
|
21945
|
+
|
|
21946
|
+
class operation_helper_OperationHelper {
|
|
21947
|
+
static add(value, operand, dataType, maxValue) {
|
|
21948
|
+
if (!dataType) {
|
|
21949
|
+
return value + operand;
|
|
21950
|
+
}
|
|
21951
|
+
if (!Object(lodash["isNil"])(maxValue)) {
|
|
21952
|
+
return Math.min(value + operand, maxValue);
|
|
21953
|
+
}
|
|
21954
|
+
return Math.min(value + operand, operation_helper_OperationHelper.getMax(dataType));
|
|
21955
|
+
}
|
|
21956
|
+
static subtract(value, operand, dataType, minValue) {
|
|
21957
|
+
if (!dataType) {
|
|
21958
|
+
return value - operand;
|
|
21959
|
+
}
|
|
21960
|
+
if (!Object(lodash["isNil"])(minValue)) {
|
|
21961
|
+
return Math.max(value - operand, minValue);
|
|
21962
|
+
}
|
|
21963
|
+
return Math.max(value - operand, operation_helper_OperationHelper.getMin(dataType));
|
|
21964
|
+
}
|
|
21965
|
+
static getMax(dataType) {
|
|
21966
|
+
switch (dataType) {
|
|
21967
|
+
case fcloud_data_Type["a" /* FCloudDataType */].Int32:
|
|
21968
|
+
return 2147483647;
|
|
21969
|
+
case fcloud_data_Type["a" /* FCloudDataType */].Float:
|
|
21970
|
+
return 3.402823E+38;
|
|
21971
|
+
}
|
|
21972
|
+
}
|
|
21973
|
+
static getMin(dataType) {
|
|
21974
|
+
switch (dataType) {
|
|
21975
|
+
case fcloud_data_Type["a" /* FCloudDataType */].Int32:
|
|
21976
|
+
return -2147483648;
|
|
21977
|
+
case fcloud_data_Type["a" /* FCloudDataType */].Float:
|
|
21978
|
+
return -3.402823E+38;
|
|
21979
|
+
}
|
|
21980
|
+
}
|
|
21981
|
+
}
|
|
21982
|
+
|
|
21983
|
+
// CONCATENATED MODULE: ./.tmp/shared/gui-consts.ts
|
|
21984
|
+
class GuiConsts {
|
|
21985
|
+
}
|
|
21986
|
+
GuiConsts.components = {
|
|
21987
|
+
imageKey: 'Image',
|
|
21988
|
+
numericalDisplayKey: 'NumericalDisplay',
|
|
21989
|
+
textKey: 'Text',
|
|
21990
|
+
hyperlinkKey: 'Hyperlink',
|
|
21991
|
+
meterKey: 'Meter',
|
|
21992
|
+
pipeKey: 'Pipe',
|
|
21993
|
+
switchIndicatorLightKey: 'SwitchIndicatorLight',
|
|
21994
|
+
barGraphKey: 'BarGraph',
|
|
21995
|
+
/**
|
|
21996
|
+
* 切换画面已经改为画面操作
|
|
21997
|
+
*/
|
|
21998
|
+
toggleViewKey: 'ToggleView',
|
|
21999
|
+
characterKey: 'Character',
|
|
22000
|
+
straightLineKey: 'StraightLine',
|
|
22001
|
+
polyLineKey: 'PolyLine',
|
|
22002
|
+
rectangleKey: 'Rectangle',
|
|
22003
|
+
sectorkey: 'Sector',
|
|
22004
|
+
ellipseKey: 'Ellipse',
|
|
22005
|
+
datetimeDisplayKey: 'DatetimeDisplay',
|
|
22006
|
+
historicalCurveKey: 'HistoricalCurve',
|
|
22007
|
+
ringGraphKey: 'RingGraph',
|
|
22008
|
+
viewOperationElement: 'ViewOperation',
|
|
22009
|
+
polygonKey: 'Polygon',
|
|
22010
|
+
videokey: 'Video',
|
|
22011
|
+
tableKey: 'Table',
|
|
22012
|
+
weatherKey: 'Weather',
|
|
22013
|
+
airQualityKey: 'AirQualityIndex',
|
|
22014
|
+
alarmKey: 'Alarm',
|
|
22015
|
+
scrollAlarmKey: 'ScrollAlarm'
|
|
22016
|
+
};
|
|
22017
|
+
|
|
22018
|
+
// EXTERNAL MODULE: ./.tmp/shared/graph-extended-style.ts
|
|
22019
|
+
var graph_extended_style = __webpack_require__(269);
|
|
22020
|
+
|
|
22021
|
+
// CONCATENATED MODULE: ./.tmp/shared/index.ts
|
|
22022
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return disposable["Disposable"]; });
|
|
22023
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return ConfigIsEmptyError; });
|
|
22024
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "e", function() { return operation_helper_OperationHelper; });
|
|
22025
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return GuiConsts; });
|
|
22026
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return graph_extended_style["GraphExtendedStyle"]; });
|
|
22027
|
+
|
|
22028
|
+
|
|
22029
|
+
|
|
22030
|
+
|
|
22031
|
+
|
|
22032
|
+
|
|
22033
|
+
|
|
22034
|
+
/***/ }),
|
|
22035
|
+
/* 6 */
|
|
22036
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22037
|
+
|
|
22038
|
+
"use strict";
|
|
22039
|
+
|
|
21925
22040
|
// EXTERNAL MODULE: ./.tmp/config/config-store.ts
|
|
21926
22041
|
var config_store = __webpack_require__(258);
|
|
21927
22042
|
|
|
@@ -22091,121 +22206,6 @@ class GetAlarmsArgs {
|
|
|
22091
22206
|
|
|
22092
22207
|
|
|
22093
22208
|
|
|
22094
|
-
/***/ }),
|
|
22095
|
-
/* 6 */
|
|
22096
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22097
|
-
|
|
22098
|
-
"use strict";
|
|
22099
|
-
|
|
22100
|
-
// EXTERNAL MODULE: ./.tmp/shared/disposable.ts
|
|
22101
|
-
var disposable = __webpack_require__(270);
|
|
22102
|
-
|
|
22103
|
-
// CONCATENATED MODULE: ./.tmp/shared/config-is-empty-error.ts
|
|
22104
|
-
class ConfigIsEmptyError extends Error {
|
|
22105
|
-
constructor() {
|
|
22106
|
-
super('The config is empty.');
|
|
22107
|
-
// Todo: Only works in Chrome and FireFox, does not work in IE
|
|
22108
|
-
Object.setPrototypeOf(this, ConfigIsEmptyError.prototype);
|
|
22109
|
-
}
|
|
22110
|
-
}
|
|
22111
|
-
|
|
22112
|
-
// EXTERNAL MODULE: ./.tmp/model/shared/data-type/fcloud-data-Type.ts
|
|
22113
|
-
var fcloud_data_Type = __webpack_require__(7);
|
|
22114
|
-
|
|
22115
|
-
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
22116
|
-
var lodash = __webpack_require__(2);
|
|
22117
|
-
|
|
22118
|
-
// CONCATENATED MODULE: ./.tmp/shared/operation-helper.ts
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
class operation_helper_OperationHelper {
|
|
22122
|
-
static add(value, operand, dataType, maxValue) {
|
|
22123
|
-
if (!dataType) {
|
|
22124
|
-
return value + operand;
|
|
22125
|
-
}
|
|
22126
|
-
if (!Object(lodash["isNil"])(maxValue)) {
|
|
22127
|
-
return Math.min(value + operand, maxValue);
|
|
22128
|
-
}
|
|
22129
|
-
return Math.min(value + operand, operation_helper_OperationHelper.getMax(dataType));
|
|
22130
|
-
}
|
|
22131
|
-
static subtract(value, operand, dataType, minValue) {
|
|
22132
|
-
if (!dataType) {
|
|
22133
|
-
return value - operand;
|
|
22134
|
-
}
|
|
22135
|
-
if (!Object(lodash["isNil"])(minValue)) {
|
|
22136
|
-
return Math.max(value - operand, minValue);
|
|
22137
|
-
}
|
|
22138
|
-
return Math.max(value - operand, operation_helper_OperationHelper.getMin(dataType));
|
|
22139
|
-
}
|
|
22140
|
-
static getMax(dataType) {
|
|
22141
|
-
switch (dataType) {
|
|
22142
|
-
case fcloud_data_Type["a" /* FCloudDataType */].Int32:
|
|
22143
|
-
return 2147483647;
|
|
22144
|
-
case fcloud_data_Type["a" /* FCloudDataType */].Float:
|
|
22145
|
-
return 3.402823E+38;
|
|
22146
|
-
}
|
|
22147
|
-
}
|
|
22148
|
-
static getMin(dataType) {
|
|
22149
|
-
switch (dataType) {
|
|
22150
|
-
case fcloud_data_Type["a" /* FCloudDataType */].Int32:
|
|
22151
|
-
return -2147483648;
|
|
22152
|
-
case fcloud_data_Type["a" /* FCloudDataType */].Float:
|
|
22153
|
-
return -3.402823E+38;
|
|
22154
|
-
}
|
|
22155
|
-
}
|
|
22156
|
-
}
|
|
22157
|
-
|
|
22158
|
-
// CONCATENATED MODULE: ./.tmp/shared/gui-consts.ts
|
|
22159
|
-
class GuiConsts {
|
|
22160
|
-
}
|
|
22161
|
-
GuiConsts.components = {
|
|
22162
|
-
imageKey: 'Image',
|
|
22163
|
-
numericalDisplayKey: 'NumericalDisplay',
|
|
22164
|
-
textKey: 'Text',
|
|
22165
|
-
hyperlinkKey: 'Hyperlink',
|
|
22166
|
-
meterKey: 'Meter',
|
|
22167
|
-
pipeKey: 'Pipe',
|
|
22168
|
-
switchIndicatorLightKey: 'SwitchIndicatorLight',
|
|
22169
|
-
barGraphKey: 'BarGraph',
|
|
22170
|
-
/**
|
|
22171
|
-
* 切换画面已经改为画面操作
|
|
22172
|
-
*/
|
|
22173
|
-
toggleViewKey: 'ToggleView',
|
|
22174
|
-
characterKey: 'Character',
|
|
22175
|
-
straightLineKey: 'StraightLine',
|
|
22176
|
-
polyLineKey: 'PolyLine',
|
|
22177
|
-
rectangleKey: 'Rectangle',
|
|
22178
|
-
sectorkey: 'Sector',
|
|
22179
|
-
ellipseKey: 'Ellipse',
|
|
22180
|
-
datetimeDisplayKey: 'DatetimeDisplay',
|
|
22181
|
-
historicalCurveKey: 'HistoricalCurve',
|
|
22182
|
-
ringGraphKey: 'RingGraph',
|
|
22183
|
-
viewOperationElement: 'ViewOperation',
|
|
22184
|
-
polygonKey: 'Polygon',
|
|
22185
|
-
videokey: 'Video',
|
|
22186
|
-
tableKey: 'Table',
|
|
22187
|
-
weatherKey: 'Weather',
|
|
22188
|
-
airQualityKey: 'AirQualityIndex',
|
|
22189
|
-
alarmKey: 'Alarm',
|
|
22190
|
-
scrollAlarmKey: 'ScrollAlarm'
|
|
22191
|
-
};
|
|
22192
|
-
|
|
22193
|
-
// EXTERNAL MODULE: ./.tmp/shared/graph-extended-style.ts
|
|
22194
|
-
var graph_extended_style = __webpack_require__(269);
|
|
22195
|
-
|
|
22196
|
-
// CONCATENATED MODULE: ./.tmp/shared/index.ts
|
|
22197
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return disposable["Disposable"]; });
|
|
22198
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return ConfigIsEmptyError; });
|
|
22199
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "e", function() { return operation_helper_OperationHelper; });
|
|
22200
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return GuiConsts; });
|
|
22201
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return graph_extended_style["GraphExtendedStyle"]; });
|
|
22202
|
-
|
|
22203
|
-
|
|
22204
|
-
|
|
22205
|
-
|
|
22206
|
-
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
22209
|
/***/ }),
|
|
22210
22210
|
/* 7 */
|
|
22211
22211
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -22290,7 +22290,7 @@ class ConsoleLoggerService {
|
|
|
22290
22290
|
|
|
22291
22291
|
"use strict";
|
|
22292
22292
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VariableUtil; });
|
|
22293
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
22293
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
|
|
22294
22294
|
|
|
22295
22295
|
class VariableUtil {
|
|
22296
22296
|
static getConvertedVariableName(variableStore, variable) {
|
|
@@ -34470,7 +34470,7 @@ var ViewBackgroundFillType;
|
|
|
34470
34470
|
})(ViewBackgroundFillType || (ViewBackgroundFillType = {}));
|
|
34471
34471
|
|
|
34472
34472
|
// EXTERNAL MODULE: ./.tmp/shared/index.ts + 3 modules
|
|
34473
|
-
var shared = __webpack_require__(
|
|
34473
|
+
var shared = __webpack_require__(5);
|
|
34474
34474
|
|
|
34475
34475
|
// CONCATENATED MODULE: ./.tmp/model/shared/dynamic-display/dynamic-behavior-type.ts
|
|
34476
34476
|
var DynamicBehaviorType;
|
|
@@ -35307,7 +35307,7 @@ class conditional_enable_element_ConditionalEnableElement extends state_control_
|
|
|
35307
35307
|
}
|
|
35308
35308
|
|
|
35309
35309
|
// EXTERNAL MODULE: ./.tmp/config/index.ts + 12 modules
|
|
35310
|
-
var _tmp_config = __webpack_require__(
|
|
35310
|
+
var _tmp_config = __webpack_require__(6);
|
|
35311
35311
|
|
|
35312
35312
|
// CONCATENATED MODULE: ./.tmp/elements/base/readable-element.ts
|
|
35313
35313
|
|
|
@@ -39910,7 +39910,6 @@ class word_switch_operator_WordSwitchOperator {
|
|
|
39910
39910
|
|
|
39911
39911
|
|
|
39912
39912
|
|
|
39913
|
-
|
|
39914
39913
|
class switch_indicator_light_element_SwitchIndicatorLightElement extends conditional_enable_element_ConditionalEnableElement {
|
|
39915
39914
|
constructor(element, injector, modalService, variableCommunicator, graphStore, permissionChecker, operationRecordService, securityChecker, variableStore, localization, signalRAppId, textLibraryService, languageService, guiContext) {
|
|
39916
39915
|
super(element, permissionChecker, variableCommunicator, variableStore, localization, signalRAppId);
|
|
@@ -40113,7 +40112,7 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
|
|
|
40113
40112
|
}
|
|
40114
40113
|
currentStateIdChange(statusIdValue) {
|
|
40115
40114
|
this.updateElementStates([statusIdValue.state]);
|
|
40116
|
-
if (this.state === _tmp_model["State"].Unbind ||
|
|
40115
|
+
if (this.state === _tmp_model["State"].Unbind || this.state === _tmp_model["State"].Offline) {
|
|
40117
40116
|
if (!Object(lodash["isUndefined"])(statusIdValue.value)) {
|
|
40118
40117
|
this.switchToState(statusIdValue.value);
|
|
40119
40118
|
}
|
|
@@ -43830,7 +43829,7 @@ var settings = __webpack_require__(16);
|
|
|
43830
43829
|
var logger = __webpack_require__(8);
|
|
43831
43830
|
|
|
43832
43831
|
// EXTERNAL MODULE: ./.tmp/shared/index.ts + 3 modules
|
|
43833
|
-
var shared = __webpack_require__(
|
|
43832
|
+
var shared = __webpack_require__(5);
|
|
43834
43833
|
|
|
43835
43834
|
// EXTERNAL MODULE: ./.tmp/view/view.service.ts
|
|
43836
43835
|
var view_service = __webpack_require__(27);
|
|
@@ -65804,7 +65803,7 @@ var Subject = __webpack_require__(39);
|
|
|
65804
65803
|
var operators_ = __webpack_require__(17);
|
|
65805
65804
|
|
|
65806
65805
|
// EXTERNAL MODULE: ./.tmp/config/index.ts + 12 modules
|
|
65807
|
-
var _tmp_config = __webpack_require__(
|
|
65806
|
+
var _tmp_config = __webpack_require__(6);
|
|
65808
65807
|
|
|
65809
65808
|
// EXTERNAL MODULE: ./.tmp/core/stringifying-map.ts
|
|
65810
65809
|
var stringifying_map = __webpack_require__(30);
|
|
@@ -86740,7 +86739,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86740
86739
|
/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43);
|
|
86741
86740
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringifyingMap", function() { return _core__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
86742
86741
|
|
|
86743
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
86742
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
|
|
86744
86743
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigStore", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["b"]; });
|
|
86745
86744
|
|
|
86746
86745
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GuiFeatureConfig", function() { return _config__WEBPACK_IMPORTED_MODULE_4__["j"]; });
|
|
@@ -86800,7 +86799,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86800
86799
|
/* harmony import */ var _security__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(77);
|
|
86801
86800
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SecurityChecker", function() { return _security__WEBPACK_IMPORTED_MODULE_8__["a"]; });
|
|
86802
86801
|
|
|
86803
|
-
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
86802
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5);
|
|
86804
86803
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Disposable", function() { return _shared__WEBPACK_IMPORTED_MODULE_9__["b"]; });
|
|
86805
86804
|
|
|
86806
86805
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigIsEmptyError", function() { return _shared__WEBPACK_IMPORTED_MODULE_9__["a"]; });
|