@flexem/fc-gui 3.0.0-alpha.181 → 3.0.0-alpha.182
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 +109 -70
- 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/config/variable/variable-store.d.ts +4 -0
- package/elements/character-display/character-display-element.d.ts +3 -2
- package/elements/character-display/character-display-element.js +15 -3
- package/elements/character-display/character-display-element.metadata.json +1 -1
- package/elements/main-element.js +1 -1
- package/elements/numerical-display/numerical-display-element.js +4 -1
- package/elements/switch-indicator-light/switch-indicator-light-element.js +5 -1
- package/elements/view-operation/view-operation.element.js +5 -1
- package/modal/verify-password/verify-password-modal.component.d.ts +6 -2
- package/modal/verify-password/verify-password-modal.component.html +2 -2
- package/modal/verify-password/verify-password-modal.component.js +11 -5
- package/modal/verify-password/verify-password-modal.component.less +9 -0
- package/modal/verify-password/verify-password-modal.component.metadata.json +1 -1
- package/modal/write-character/write-character-modal-args.d.ts +3 -1
- package/modal/write-character/write-character-modal-args.js +2 -1
- package/modal/write-character/write-character-modal-args.metadata.json +1 -1
- package/modal/write-character/write-character-modal.component.d.ts +1 -0
- package/modal/write-character/write-character-modal.component.js +5 -1
- package/modal/write-character/write-character-modal.component.metadata.json +1 -1
- package/modal/write-value/write-value-modal.component.d.ts +1 -0
- package/modal/write-value/write-value-modal.component.js +5 -1
- package/modal/write-value/write-value-modal.component.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -22413,6 +22413,50 @@ class VariableDefinition {
|
|
|
22413
22413
|
/* 12 */
|
|
22414
22414
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22415
22415
|
|
|
22416
|
+
"use strict";
|
|
22417
|
+
|
|
22418
|
+
// CONCATENATED MODULE: ./.tmp/settings/view-resize-mode.ts
|
|
22419
|
+
var ViewResizeMode;
|
|
22420
|
+
(function (ViewResizeMode) {
|
|
22421
|
+
/**
|
|
22422
|
+
* 在保持纵横比的同时等比缩放显示所有内容
|
|
22423
|
+
*/
|
|
22424
|
+
ViewResizeMode[ViewResizeMode["Uniform"] = 0] = "Uniform";
|
|
22425
|
+
/**
|
|
22426
|
+
* 在保持纵横比的同时保证横向显示尽可能多的空间,
|
|
22427
|
+
*/
|
|
22428
|
+
ViewResizeMode[ViewResizeMode["HorizontalUniform"] = 1] = "HorizontalUniform";
|
|
22429
|
+
})(ViewResizeMode || (ViewResizeMode = {}));
|
|
22430
|
+
|
|
22431
|
+
// CONCATENATED MODULE: ./.tmp/settings/display-mode.ts
|
|
22432
|
+
var DisplayMode;
|
|
22433
|
+
(function (DisplayMode) {
|
|
22434
|
+
/**
|
|
22435
|
+
* 网页版显示模式
|
|
22436
|
+
*/
|
|
22437
|
+
DisplayMode[DisplayMode["Web"] = 0] = "Web";
|
|
22438
|
+
/**
|
|
22439
|
+
* 移动端显示,优化部分元件在移动端中的显示效果
|
|
22440
|
+
*/
|
|
22441
|
+
DisplayMode[DisplayMode["Mobile"] = 1] = "Mobile";
|
|
22442
|
+
})(DisplayMode || (DisplayMode = {}));
|
|
22443
|
+
|
|
22444
|
+
// EXTERNAL MODULE: ./.tmp/settings/global-settings.ts
|
|
22445
|
+
var global_settings = __webpack_require__(48);
|
|
22446
|
+
|
|
22447
|
+
// CONCATENATED MODULE: ./.tmp/settings/index.ts
|
|
22448
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return ViewResizeMode; });
|
|
22449
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return DisplayMode; });
|
|
22450
|
+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return global_settings["a" /* GlobalSettings */]; });
|
|
22451
|
+
|
|
22452
|
+
|
|
22453
|
+
|
|
22454
|
+
|
|
22455
|
+
|
|
22456
|
+
/***/ }),
|
|
22457
|
+
/* 13 */
|
|
22458
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22459
|
+
|
|
22416
22460
|
"use strict";
|
|
22417
22461
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VariableValueType; });
|
|
22418
22462
|
var VariableValueType;
|
|
@@ -22423,7 +22467,7 @@ var VariableValueType;
|
|
|
22423
22467
|
|
|
22424
22468
|
|
|
22425
22469
|
/***/ }),
|
|
22426
|
-
/*
|
|
22470
|
+
/* 14 */
|
|
22427
22471
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22428
22472
|
|
|
22429
22473
|
"use strict";
|
|
@@ -22635,7 +22679,7 @@ function __importDefault(mod) {
|
|
|
22635
22679
|
|
|
22636
22680
|
|
|
22637
22681
|
/***/ }),
|
|
22638
|
-
/*
|
|
22682
|
+
/* 15 */
|
|
22639
22683
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22640
22684
|
|
|
22641
22685
|
"use strict";
|
|
@@ -22686,50 +22730,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22686
22730
|
|
|
22687
22731
|
|
|
22688
22732
|
|
|
22689
|
-
/***/ }),
|
|
22690
|
-
/* 15 */
|
|
22691
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22692
|
-
|
|
22693
|
-
"use strict";
|
|
22694
|
-
|
|
22695
|
-
// CONCATENATED MODULE: ./.tmp/settings/view-resize-mode.ts
|
|
22696
|
-
var ViewResizeMode;
|
|
22697
|
-
(function (ViewResizeMode) {
|
|
22698
|
-
/**
|
|
22699
|
-
* 在保持纵横比的同时等比缩放显示所有内容
|
|
22700
|
-
*/
|
|
22701
|
-
ViewResizeMode[ViewResizeMode["Uniform"] = 0] = "Uniform";
|
|
22702
|
-
/**
|
|
22703
|
-
* 在保持纵横比的同时保证横向显示尽可能多的空间,
|
|
22704
|
-
*/
|
|
22705
|
-
ViewResizeMode[ViewResizeMode["HorizontalUniform"] = 1] = "HorizontalUniform";
|
|
22706
|
-
})(ViewResizeMode || (ViewResizeMode = {}));
|
|
22707
|
-
|
|
22708
|
-
// CONCATENATED MODULE: ./.tmp/settings/display-mode.ts
|
|
22709
|
-
var DisplayMode;
|
|
22710
|
-
(function (DisplayMode) {
|
|
22711
|
-
/**
|
|
22712
|
-
* 网页版显示模式
|
|
22713
|
-
*/
|
|
22714
|
-
DisplayMode[DisplayMode["Web"] = 0] = "Web";
|
|
22715
|
-
/**
|
|
22716
|
-
* 移动端显示,优化部分元件在移动端中的显示效果
|
|
22717
|
-
*/
|
|
22718
|
-
DisplayMode[DisplayMode["Mobile"] = 1] = "Mobile";
|
|
22719
|
-
})(DisplayMode || (DisplayMode = {}));
|
|
22720
|
-
|
|
22721
|
-
// EXTERNAL MODULE: ./.tmp/settings/global-settings.ts
|
|
22722
|
-
var global_settings = __webpack_require__(48);
|
|
22723
|
-
|
|
22724
|
-
// CONCATENATED MODULE: ./.tmp/settings/index.ts
|
|
22725
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return ViewResizeMode; });
|
|
22726
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return DisplayMode; });
|
|
22727
|
-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return global_settings["a" /* GlobalSettings */]; });
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
22732
|
-
|
|
22733
22733
|
/***/ }),
|
|
22734
22734
|
/* 16 */
|
|
22735
22735
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -32593,6 +32593,7 @@ const DefaultLocalization = {
|
|
|
32593
32593
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
32594
32594
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
32595
32595
|
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10);
|
|
32596
|
+
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12);
|
|
32596
32597
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
32597
32598
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
32598
32599
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -32606,16 +32607,22 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
|
|
|
32606
32607
|
|
|
32607
32608
|
|
|
32608
32609
|
|
|
32610
|
+
|
|
32609
32611
|
let VerifyPasswordModalComponent = class VerifyPasswordModalComponent {
|
|
32610
|
-
constructor(localization) {
|
|
32612
|
+
constructor(localization, injector) {
|
|
32611
32613
|
this.localization = localization;
|
|
32612
32614
|
this._onClosed = new rxjs__WEBPACK_IMPORTED_MODULE_1__[/* Subject */ "a"]();
|
|
32613
32615
|
this.passwordError = false;
|
|
32616
|
+
this.isMobileMode = false;
|
|
32617
|
+
this.isDisplayModeMobile = _settings__WEBPACK_IMPORTED_MODULE_4__[/* DisplayMode */ "a"].Mobile === injector.get(_settings__WEBPACK_IMPORTED_MODULE_4__[/* GlobalSettings */ "b"]).displayMode;
|
|
32614
32618
|
}
|
|
32615
32619
|
get onClosed() {
|
|
32616
32620
|
return this._onClosed;
|
|
32617
32621
|
}
|
|
32618
32622
|
ngOnInit() {
|
|
32623
|
+
// 画面模拟(SimulateRemoteGuiContext)下 releasedVariableService 恒为空,
|
|
32624
|
+
// 借此和真实移动端区分开,避免在 PC 浏览器模拟移动端时套用移动端专属样式
|
|
32625
|
+
this.isMobileMode = this.isDisplayModeMobile && !!this.releasedVariableService;
|
|
32619
32626
|
this.validate();
|
|
32620
32627
|
}
|
|
32621
32628
|
validate() {
|
|
@@ -32649,8 +32656,8 @@ let VerifyPasswordModalComponent = class VerifyPasswordModalComponent {
|
|
|
32649
32656
|
VerifyPasswordModalComponent = __decorate([
|
|
32650
32657
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
32651
32658
|
selector: 'verify-password',
|
|
32652
|
-
template: "<form #verifyPasswordForm=\"ngForm\" novalidate (ngSubmit)=\"checkSecurity()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.passwordVerify}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <span class=\"password-span\">{{localization.password}}: </span> <input type=\"password\" name=\"password\" autoFocus class=\"form-control element-password\" [(ngModel)]=\"password\" (keyup)=\"validate()\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!passwordError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"button\" class=\"btn md-skip btn-cancel\" (click)=\"close()\">{{localization.cancel}} </button> <button type=\"submit\" class=\"btn md-skip btn-primary\" [disabled]=\"passwordError\">{{localization.submit}}</button> </div> </form> ",
|
|
32653
|
-
styles: [".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; padding-top: 10px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; color: #fff; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { color: #fff; height: 32px; margin-right: 10px; line-height: 0px } .password-span { color: #7f939e; font-size: 14px; margin-left: 15px; } .btn-cancel { color: #fff; height: 32px; min-width: 71px; margin-right: 6px; background-color: #dddddd; line-height: 0px } .element-password { padding-left: 8px; height: 32px; min-width: 71px; margin-left: 16px; } "]
|
|
32659
|
+
template: "<form #verifyPasswordForm=\"ngForm\" novalidate (ngSubmit)=\"checkSecurity()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.passwordVerify}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <span class=\"password-span\">{{localization.password}}: </span> <input type=\"password\" name=\"password\" autoFocus [class.verify-password-input]=\"!isMobileMode\" class=\"form-control element-password\" [(ngModel)]=\"password\" (keyup)=\"validate()\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!passwordError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\" [class.verify-password-footer]=\"!isMobileMode\"> <button type=\"button\" class=\"btn md-skip btn-cancel\" (click)=\"close()\">{{localization.cancel}} </button> <button type=\"submit\" class=\"btn md-skip btn-primary\" [disabled]=\"passwordError\">{{localization.submit}}</button> </div> </form> ",
|
|
32660
|
+
styles: [".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; padding-top: 10px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; color: #fff; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { color: #fff; height: 32px; min-width: 71px; margin-right: 10px; line-height: 0px } .password-span { color: #7f939e; font-size: 14px; margin-left: 15px; } .btn-cancel { color: #fff; height: 32px; min-width: 71px; margin-right: 6px; background-color: #dddddd; line-height: 0px } .element-password { padding-left: 8px; height: 32px; min-width: 71px; margin-left: 16px; } .verify-password-input { width: 600px; } .verify-password-footer { padding-right: 18px !important; }"]
|
|
32654
32661
|
}),
|
|
32655
32662
|
__param(0, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"])(_localization__WEBPACK_IMPORTED_MODULE_3__[/* LOCALIZATION */ "b"]))
|
|
32656
32663
|
], VerifyPasswordModalComponent);
|
|
@@ -33040,7 +33047,7 @@ class Guid {
|
|
|
33040
33047
|
"use strict";
|
|
33041
33048
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subscriber; });
|
|
33042
33049
|
/* unused harmony export SafeSubscriber */
|
|
33043
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
33050
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
33044
33051
|
/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
|
|
33045
33052
|
/* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54);
|
|
33046
33053
|
/* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
|
|
@@ -35499,7 +35506,7 @@ function degreesToRadians(degrees) {
|
|
|
35499
35506
|
}
|
|
35500
35507
|
|
|
35501
35508
|
// EXTERNAL MODULE: ./.tmp/model/shared/condition/variable-value-type.ts
|
|
35502
|
-
var variable_value_type = __webpack_require__(
|
|
35509
|
+
var variable_value_type = __webpack_require__(13);
|
|
35503
35510
|
|
|
35504
35511
|
// CONCATENATED MODULE: ./.tmp/elements/bar-graph-element.ts
|
|
35505
35512
|
|
|
@@ -35760,11 +35767,12 @@ var confirm_operation_modal_component = __webpack_require__(21);
|
|
|
35760
35767
|
|
|
35761
35768
|
// CONCATENATED MODULE: ./.tmp/modal/write-character/write-character-modal-args.ts
|
|
35762
35769
|
class WriteCharacterModalArgs {
|
|
35763
|
-
constructor(variableName, isPassword, charCount, originValue) {
|
|
35770
|
+
constructor(variableName, isPassword, charCount, originValue, releasedVariableService) {
|
|
35764
35771
|
this.variableName = variableName;
|
|
35765
35772
|
this.isPassword = isPassword;
|
|
35766
35773
|
this.charCount = charCount;
|
|
35767
35774
|
this.originValue = originValue;
|
|
35775
|
+
this.releasedVariableService = releasedVariableService;
|
|
35768
35776
|
}
|
|
35769
35777
|
}
|
|
35770
35778
|
|
|
@@ -35945,12 +35953,13 @@ class text_element_TextElementModal {
|
|
|
35945
35953
|
|
|
35946
35954
|
|
|
35947
35955
|
class character_display_element_CharacterDisplayElement extends readable_element_ReadableElement {
|
|
35948
|
-
constructor(element, injector, modalService, variableCommunicator, graphStore, permissionChecker, operationRecordService, securityChecker, variableStore, localization, signalRAppId) {
|
|
35956
|
+
constructor(element, injector, modalService, variableCommunicator, graphStore, permissionChecker, operationRecordService, securityChecker, variableStore, localization, signalRAppId, releasedVariableService) {
|
|
35949
35957
|
super(element, permissionChecker, variableCommunicator, variableStore, localization, signalRAppId);
|
|
35950
35958
|
this.modalService = modalService;
|
|
35951
35959
|
this.graphStore = graphStore;
|
|
35952
35960
|
this.operationRecordService = operationRecordService;
|
|
35953
35961
|
this.securityChecker = securityChecker;
|
|
35962
|
+
this.releasedVariableService = releasedVariableService;
|
|
35954
35963
|
this.displayValue = '';
|
|
35955
35964
|
this.graphs = new Map();
|
|
35956
35965
|
this.logger = injector.get(logger["b" /* LOGGER_SERVICE_TOKEN */]);
|
|
@@ -36180,7 +36189,10 @@ class character_display_element_CharacterDisplayElement extends readable_element
|
|
|
36180
36189
|
}
|
|
36181
36190
|
checkElementPassword() {
|
|
36182
36191
|
if (this.model.enablePassword) {
|
|
36183
|
-
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
36192
|
+
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
36193
|
+
initialState: { securityChecker: this.securityChecker, releasedVariableService: this.releasedVariableService },
|
|
36194
|
+
backdrop: 'static', class: 'gui-modal-dialog-position', animated: false
|
|
36195
|
+
});
|
|
36184
36196
|
const onClosedSub = modalRef.content.onClosed.subscribe(result => {
|
|
36185
36197
|
modalRef.hide();
|
|
36186
36198
|
onClosedSub.unsubscribe();
|
|
@@ -36197,7 +36209,15 @@ class character_display_element_CharacterDisplayElement extends readable_element
|
|
|
36197
36209
|
if (null == this.writeVariableName) {
|
|
36198
36210
|
return;
|
|
36199
36211
|
}
|
|
36200
|
-
|
|
36212
|
+
// 优先使用接口返回的实时字符长度,如果获取不到则使用页面配置中的长度
|
|
36213
|
+
let charCount = this.model.charCount;
|
|
36214
|
+
if (this.variableStore.getCharCountByVariableName) {
|
|
36215
|
+
const runtimeCharCount = this.variableStore.getCharCountByVariableName(this.writeVariableName);
|
|
36216
|
+
if (runtimeCharCount !== undefined) {
|
|
36217
|
+
charCount = runtimeCharCount;
|
|
36218
|
+
}
|
|
36219
|
+
}
|
|
36220
|
+
const args = new WriteCharacterModalArgs(this.writeVariableName, this.model.isPassword, charCount, this.displayValue, this.releasedVariableService);
|
|
36201
36221
|
const modalRef = this.modalService.show(write_character_modal_component["a" /* WriteCharacterModalComponent */], {
|
|
36202
36222
|
initialState: { args: args }, backdrop: 'static', class: 'gui-modal-dialog-position gui-modal-write', animated: false
|
|
36203
36223
|
});
|
|
@@ -37157,7 +37177,7 @@ var HistoricalCurveTimeRange;
|
|
|
37157
37177
|
})(HistoricalCurveTimeRange || (HistoricalCurveTimeRange = {}));
|
|
37158
37178
|
|
|
37159
37179
|
// EXTERNAL MODULE: ./.tmp/service/index.ts
|
|
37160
|
-
var service = __webpack_require__(
|
|
37180
|
+
var service = __webpack_require__(15);
|
|
37161
37181
|
|
|
37162
37182
|
// CONCATENATED MODULE: ./.tmp/elements/historical-curve/historical-curve-element-status.ts
|
|
37163
37183
|
var HistoricalCurveElementStatus;
|
|
@@ -37169,7 +37189,7 @@ var HistoricalCurveElementStatus;
|
|
|
37169
37189
|
})(HistoricalCurveElementStatus || (HistoricalCurveElementStatus = {}));
|
|
37170
37190
|
|
|
37171
37191
|
// EXTERNAL MODULE: ./.tmp/settings/index.ts + 2 modules
|
|
37172
|
-
var _tmp_settings = __webpack_require__(
|
|
37192
|
+
var _tmp_settings = __webpack_require__(12);
|
|
37173
37193
|
|
|
37174
37194
|
// CONCATENATED MODULE: ./.tmp/model/historical-curve/curve-type.ts
|
|
37175
37195
|
var CurveType;
|
|
@@ -38559,7 +38579,10 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
38559
38579
|
}
|
|
38560
38580
|
checkElementPassword() {
|
|
38561
38581
|
if (this.model.enablePassword) {
|
|
38562
|
-
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
38582
|
+
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
38583
|
+
initialState: { securityChecker: this.securityChecker, releasedVariableService: this.releasedVariableService },
|
|
38584
|
+
backdrop: 'static', class: 'gui-modal-dialog-position', animated: false
|
|
38585
|
+
});
|
|
38563
38586
|
const onClosedSub = modalRef.content.onClosed.subscribe(result => {
|
|
38564
38587
|
modalRef.hide();
|
|
38565
38588
|
onClosedSub.unsubscribe();
|
|
@@ -40577,8 +40600,12 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
|
|
|
40577
40600
|
};
|
|
40578
40601
|
}
|
|
40579
40602
|
checkElementPassword(afterConfirm) {
|
|
40603
|
+
var _a;
|
|
40580
40604
|
if (this.model.enablePassword) {
|
|
40581
|
-
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
40605
|
+
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
40606
|
+
initialState: { securityChecker: this.securityChecker, releasedVariableService: (_a = this.guiContext) === null || _a === void 0 ? void 0 : _a.releasedVariableService },
|
|
40607
|
+
backdrop: 'static', class: 'gui-modal-dialog-position', animated: false
|
|
40608
|
+
});
|
|
40582
40609
|
const onClosedSub = modalRef.content.onClosed.subscribe(result => {
|
|
40583
40610
|
modalRef.hide();
|
|
40584
40611
|
onClosedSub.unsubscribe();
|
|
@@ -41276,8 +41303,12 @@ class view_operation_element_ViewOperationElement extends conditional_enable_ele
|
|
|
41276
41303
|
}
|
|
41277
41304
|
}
|
|
41278
41305
|
checkElementPassword() {
|
|
41306
|
+
var _a;
|
|
41279
41307
|
if (this.model.enablePassword) {
|
|
41280
|
-
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
41308
|
+
const modalRef = this.modalService.show(verify_password_modal_component["a" /* VerifyPasswordModalComponent */], {
|
|
41309
|
+
initialState: { securityChecker: this.securityChecker, releasedVariableService: (_a = this.guiContext) === null || _a === void 0 ? void 0 : _a.releasedVariableService },
|
|
41310
|
+
backdrop: 'static', class: 'gui-modal-dialog-position', animated: false
|
|
41311
|
+
});
|
|
41281
41312
|
const onClosedSub = modalRef.content.onClosed.subscribe(result => {
|
|
41282
41313
|
modalRef.hide();
|
|
41283
41314
|
onClosedSub.unsubscribe();
|
|
@@ -44152,7 +44183,7 @@ class main_element_MainElement {
|
|
|
44152
44183
|
this.elements.push(new view_operation_element_ViewOperationElement(element, this.injector, this.bsModalService, this.variableCommunicator, this.context.configStore.variableStore, this.context.configStore.graphStore, this.context.permissionChecker, this.context.operationRecordService, this.context.securityChecker, this.injector.get(_tmp_localization["b" /* LOCALIZATION */]), this.popupViewService, guiOptions.hostContainerId, guiOptions.el, this.signalRAppId, this.context.textLibraryService, this.context.languageService, this.context));
|
|
44153
44184
|
break;
|
|
44154
44185
|
case shared["d" /* GuiConsts */].components.characterKey:
|
|
44155
|
-
this.elements.push(new character_display_element_CharacterDisplayElement(element, this.injector, this.bsModalService, this.variableCommunicator, this.context.configStore.graphStore, this.context.permissionChecker, this.context.operationRecordService, this.context.securityChecker, this.context.configStore.variableStore, this.injector.get(_tmp_localization["b" /* LOCALIZATION */]), this.signalRAppId));
|
|
44186
|
+
this.elements.push(new character_display_element_CharacterDisplayElement(element, this.injector, this.bsModalService, this.variableCommunicator, this.context.configStore.graphStore, this.context.permissionChecker, this.context.operationRecordService, this.context.securityChecker, this.context.configStore.variableStore, this.injector.get(_tmp_localization["b" /* LOCALIZATION */]), this.signalRAppId, this.context.releasedVariableService));
|
|
44156
44187
|
break;
|
|
44157
44188
|
case shared["d" /* GuiConsts */].components.textKey:
|
|
44158
44189
|
this.elements.push(new text_element_TextElement(element, this.injector, this.context.permissionChecker, this.variableCommunicator, this.context.configStore.variableStore, this.context.configStore.graphStore, this.signalRAppId, this.context.textLibraryService, this.context.languageService, this.context));
|
|
@@ -44941,7 +44972,7 @@ var lodash = __webpack_require__(2);
|
|
|
44941
44972
|
var _tmp_localization = __webpack_require__(10);
|
|
44942
44973
|
|
|
44943
44974
|
// EXTERNAL MODULE: ./.tmp/settings/index.ts + 2 modules
|
|
44944
|
-
var settings = __webpack_require__(
|
|
44975
|
+
var settings = __webpack_require__(12);
|
|
44945
44976
|
|
|
44946
44977
|
// EXTERNAL MODULE: ./.tmp/logger/index.ts + 2 modules
|
|
44947
44978
|
var logger = __webpack_require__(8);
|
|
@@ -45378,7 +45409,7 @@ gui_component_GuiComponent = __decorate([
|
|
|
45378
45409
|
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
|
|
45379
45410
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
45380
45411
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
|
|
45381
|
-
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
45412
|
+
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12);
|
|
45382
45413
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
45383
45414
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
45384
45415
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -45399,15 +45430,19 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
45399
45430
|
this.fractionDigitService = fractionDigitService;
|
|
45400
45431
|
this.numericalOperationService = numericalOperationService;
|
|
45401
45432
|
this.bsModalRef = bsModalRef;
|
|
45433
|
+
this.isMobileMode = false;
|
|
45402
45434
|
this.displayVariableName = '';
|
|
45403
45435
|
this.writeValueRangeText = '';
|
|
45404
45436
|
this.isSubmitting = false;
|
|
45405
|
-
this.
|
|
45437
|
+
this.isDisplayModeMobile = _settings__WEBPACK_IMPORTED_MODULE_3__[/* DisplayMode */ "a"].Mobile === injector.get(_settings__WEBPACK_IMPORTED_MODULE_3__[/* GlobalSettings */ "b"]).displayMode;
|
|
45406
45438
|
}
|
|
45407
45439
|
get invalidErrorText() {
|
|
45408
45440
|
return this.localization.loadFailed;
|
|
45409
45441
|
}
|
|
45410
45442
|
ngOnInit() {
|
|
45443
|
+
// 画面模拟(SimulateRemoteGuiContext)下 releasedVariableService 恒为空,
|
|
45444
|
+
// 借此和真实移动端区分开,避免在 PC 浏览器模拟移动端时套用移动端专属样式
|
|
45445
|
+
this.isMobileMode = this.isDisplayModeMobile && !!this.args.releasedVariableService;
|
|
45411
45446
|
this.initData(this.args);
|
|
45412
45447
|
this.validate();
|
|
45413
45448
|
}
|
|
@@ -45659,7 +45694,7 @@ WriteValueModalComponent = __decorate([
|
|
|
45659
45694
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
45660
45695
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
|
45661
45696
|
/* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
|
|
45662
|
-
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
45697
|
+
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12);
|
|
45663
45698
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
45664
45699
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
45665
45700
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -45677,7 +45712,8 @@ let WriteCharacterModalComponent = class WriteCharacterModalComponent {
|
|
|
45677
45712
|
constructor(localization, injector) {
|
|
45678
45713
|
this.localization = localization;
|
|
45679
45714
|
this._onClosed = new rxjs__WEBPACK_IMPORTED_MODULE_1__[/* Subject */ "a"]();
|
|
45680
|
-
this.isMobileMode =
|
|
45715
|
+
this.isMobileMode = false;
|
|
45716
|
+
this.isDisplayModeMobile = _settings__WEBPACK_IMPORTED_MODULE_3__[/* DisplayMode */ "a"].Mobile === injector.get(_settings__WEBPACK_IMPORTED_MODULE_3__[/* GlobalSettings */ "b"]).displayMode;
|
|
45681
45717
|
}
|
|
45682
45718
|
get onClosed() {
|
|
45683
45719
|
return this._onClosed;
|
|
@@ -45686,6 +45722,9 @@ let WriteCharacterModalComponent = class WriteCharacterModalComponent {
|
|
|
45686
45722
|
return this.localization.loadFailed;
|
|
45687
45723
|
}
|
|
45688
45724
|
ngOnInit() {
|
|
45725
|
+
// 画面模拟(SimulateRemoteGuiContext)下 releasedVariableService 恒为空,
|
|
45726
|
+
// 借此和真实移动端区分开,避免在 PC 浏览器模拟移动端时套用移动端专属样式
|
|
45727
|
+
this.isMobileMode = this.isDisplayModeMobile && !!this.args.releasedVariableService;
|
|
45689
45728
|
this.variableName = this.args.variableName;
|
|
45690
45729
|
this.isPassword = this.args.isPassword ? this.args.isPassword : false;
|
|
45691
45730
|
this.charCount = this.args.charCount;
|
|
@@ -45739,7 +45778,7 @@ WriteCharacterModalComponent = __decorate([
|
|
|
45739
45778
|
"use strict";
|
|
45740
45779
|
|
|
45741
45780
|
// EXTERNAL MODULE: ./node_modules/rxjs/node_modules/tslib/tslib.es6.js
|
|
45742
|
-
var tslib_es6 = __webpack_require__(
|
|
45781
|
+
var tslib_es6 = __webpack_require__(14);
|
|
45743
45782
|
|
|
45744
45783
|
// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js + 3 modules
|
|
45745
45784
|
var Observable = __webpack_require__(16);
|
|
@@ -67856,7 +67895,7 @@ class RelationConditionResult {
|
|
|
67856
67895
|
}
|
|
67857
67896
|
|
|
67858
67897
|
// EXTERNAL MODULE: ./.tmp/model/shared/condition/variable-value-type.ts
|
|
67859
|
-
var variable_value_type = __webpack_require__(
|
|
67898
|
+
var variable_value_type = __webpack_require__(13);
|
|
67860
67899
|
|
|
67861
67900
|
// EXTERNAL MODULE: ./.tmp/model/shared/condition/relation-type.ts
|
|
67862
67901
|
var relation_type = __webpack_require__(23);
|
|
@@ -69371,7 +69410,7 @@ var Observable = __webpack_require__(16);
|
|
|
69371
69410
|
var isScheduler = __webpack_require__(51);
|
|
69372
69411
|
|
|
69373
69412
|
// EXTERNAL MODULE: ./node_modules/rxjs/node_modules/tslib/tslib.es6.js
|
|
69374
|
-
var tslib_es6 = __webpack_require__(
|
|
69413
|
+
var tslib_es6 = __webpack_require__(14);
|
|
69375
69414
|
|
|
69376
69415
|
// EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js
|
|
69377
69416
|
var Subscriber = __webpack_require__(29);
|
|
@@ -88012,7 +88051,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
88012
88051
|
|
|
88013
88052
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RemoteVariableProtocol", function() { return _remote__WEBPACK_IMPORTED_MODULE_11__["k"]; });
|
|
88014
88053
|
|
|
88015
|
-
/* harmony import */ var _service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
88054
|
+
/* harmony import */ var _service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(15);
|
|
88016
88055
|
/* 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__));
|
|
88017
88056
|
/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(8);
|
|
88018
88057
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LOGGER_SERVICE_TOKEN", function() { return _logger__WEBPACK_IMPORTED_MODULE_13__["b"]; });
|