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

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.
@@ -22138,8 +22138,10 @@ const Localization_zh_CN = {
22138
22138
  loadFailed: '加载失败.',
22139
22139
  setting: '设置',
22140
22140
  submit: '提交',
22141
+ submitting: '提交中···',
22141
22142
  numericalValueRequired: '数值不能为空',
22142
22143
  invalidNumericalValue: '数值格式不正确',
22144
+ writeValueTimeout: '写值错误:超时',
22143
22145
  binaryType: '二进制',
22144
22146
  decimalType: '十进制',
22145
22147
  hexadecimalType: '十六进制',
@@ -22866,8 +22868,10 @@ const DefaultLocalization = {
22866
22868
  loadFailed: 'Load failed.',
22867
22869
  setting: 'Setting',
22868
22870
  submit: 'Submit',
22871
+ submitting: 'Submitting···',
22869
22872
  numericalValueRequired: 'Numerical value can\'t be emtpy',
22870
22873
  invalidNumericalValue: 'Numerical value is not valid',
22874
+ writeValueTimeout: 'write value error: timeout',
22871
22875
  binaryType: 'Binary',
22872
22876
  decimalType: 'Decimal',
22873
22877
  hexadecimalType: 'Hexadecimal',
@@ -22925,7 +22929,7 @@ const DefaultLocalization = {
22925
22929
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VerifyPasswordModalComponent; });
22926
22930
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
22927
22931
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
22928
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34);
22932
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
22929
22933
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
22930
22934
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
22931
22935
  /* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
@@ -23001,7 +23005,7 @@ VerifyPasswordModalComponent = __decorate([
23001
23005
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ConfirmOperationModalComponent; });
23002
23006
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
23003
23007
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
23004
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34);
23008
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
23005
23009
  /* harmony import */ var _localization_localization_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
23006
23010
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23007
23011
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -23376,7 +23380,7 @@ class Guid {
23376
23380
  /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(24);
23377
23381
  /* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52);
23378
23382
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23);
23379
- /* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35);
23383
+ /* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34);
23380
23384
  /** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */
23381
23385
 
23382
23386
 
@@ -25963,7 +25967,7 @@ class WriteCharacterModalArgs {
25963
25967
  }
25964
25968
 
25965
25969
  // EXTERNAL MODULE: ./.tmp/modal/write-character/write-character-modal.component.ts
25966
- var write_character_modal_component = __webpack_require__(38);
25970
+ var write_character_modal_component = __webpack_require__(37);
25967
25971
 
25968
25972
  // EXTERNAL MODULE: ./.tmp/utils/access-permission.service.ts + 1 modules
25969
25973
  var access_permission_service = __webpack_require__(42);
@@ -26687,7 +26691,7 @@ class datetime_display_element_DatetimeDisplayElement extends conditional_displa
26687
26691
  var d3 = __webpack_require__(32);
26688
26692
 
26689
26693
  // EXTERNAL MODULE: ./node_modules/nvd3/build/nv.d3.js
26690
- var nv_d3 = __webpack_require__(39);
26694
+ var nv_d3 = __webpack_require__(38);
26691
26695
 
26692
26696
  // CONCATENATED MODULE: ./.tmp/config/history-data/historical-curve.time-range.ts
26693
26697
  var HistoricalCurveTimeRange;
@@ -27350,7 +27354,7 @@ class WriteValueModalArgs {
27350
27354
  }
27351
27355
 
27352
27356
  // EXTERNAL MODULE: ./.tmp/modal/write-value/write-value-modal.component.ts
27353
- var write_value_modal_component = __webpack_require__(37);
27357
+ var write_value_modal_component = __webpack_require__(36);
27354
27358
 
27355
27359
  // EXTERNAL MODULE: ./.tmp/model/shared/data-type/fcloud-data-Type.ts
27356
27360
  var fcloud_data_Type = __webpack_require__(6);
@@ -27532,18 +27536,26 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27532
27536
  return;
27533
27537
  }
27534
27538
  const args = new WriteValueModalArgs(this.writeVariableName, this.model.dataType, this.model.fBoxDataType, this.model.integerDigits, this.model.fractionDigits, this.numericalOperationService.getNumericalOperations(this.model), this.model.version, this.enableDataParsed);
27535
- const modalRef = this.modalService.show(write_value_modal_component["a" /* WriteValueModalComponent */], {
27539
+ this.writeValueMmodalRef = this.modalService.show(write_value_modal_component["a" /* WriteValueModalComponent */], {
27536
27540
  initialState: { args: args }, backdrop: 'static', class: 'gui-modal-dialog-position', animated: false
27537
27541
  });
27538
- const onClosedSub = modalRef.content.onClosed.subscribe(result => {
27539
- modalRef.hide();
27540
- onClosedSub.unsubscribe();
27542
+ this.writeValueMmodalRef.content.onClosed = (result) => {
27541
27543
  if (result) {
27542
- const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
27543
- this.variableCommunicator.write(this.writeVariableName, writeValue).subscribe();
27544
- this.recordOperation(result.value);
27544
+ this.writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
27545
+ if (this.displayText.toString() !== this.writeValue) {
27546
+ this.variableCommunicator.write(this.writeVariableName, this.writeValue).subscribe();
27547
+ setTimeout(() => {
27548
+ if (this.displayText.toString() !== this.writeValue) {
27549
+ this.writeValueMmodalRef.content.isSubmitting = false;
27550
+ this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
27551
+ }
27552
+ }, 10000);
27553
+ }
27554
+ else {
27555
+ this.writeValueMmodalRef.hide();
27556
+ }
27545
27557
  }
27546
- });
27558
+ };
27547
27559
  }
27548
27560
  recordOperation(newValue) {
27549
27561
  if (this.model.isRecordOperation || this.model.isRecordOperation === undefined) {
@@ -27569,8 +27581,14 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
27569
27581
  }
27570
27582
  }
27571
27583
  updateVariableValue(value) {
27584
+ var _a;
27572
27585
  this.displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
27573
27586
  this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
27587
+ if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && this.displayText.toString() === this.writeValue) {
27588
+ this.writeValueMmodalRef.hide();
27589
+ this.writeValueMmodalRef.content.hideValidationErrorInfo();
27590
+ this.recordOperation(this.writeValue);
27591
+ }
27574
27592
  }
27575
27593
  updateDisplayText(text) {
27576
27594
  if (!this.displayForeignObject) {
@@ -40605,240 +40623,6 @@ var ConditionType;
40605
40623
  /* 34 */
40606
40624
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
40607
40625
 
40608
- "use strict";
40609
-
40610
- // EXTERNAL MODULE: ./node_modules/rxjs/node_modules/tslib/tslib.es6.js
40611
- var tslib_es6 = __webpack_require__(11);
40612
-
40613
- // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js + 3 modules
40614
- var Observable = __webpack_require__(14);
40615
-
40616
- // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js
40617
- var Subscriber = __webpack_require__(27);
40618
-
40619
- // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscription.js + 1 modules
40620
- var Subscription = __webpack_require__(24);
40621
-
40622
- // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js
40623
- /** PURE_IMPORTS_START PURE_IMPORTS_END */
40624
- var ObjectUnsubscribedErrorImpl = /*@__PURE__*/ (function () {
40625
- function ObjectUnsubscribedErrorImpl() {
40626
- Error.call(this);
40627
- this.message = 'object unsubscribed';
40628
- this.name = 'ObjectUnsubscribedError';
40629
- return this;
40630
- }
40631
- ObjectUnsubscribedErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);
40632
- return ObjectUnsubscribedErrorImpl;
40633
- })();
40634
- var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;
40635
- //# sourceMappingURL=ObjectUnsubscribedError.js.map
40636
-
40637
- // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/SubjectSubscription.js
40638
- /** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */
40639
-
40640
-
40641
- var SubjectSubscription_SubjectSubscription = /*@__PURE__*/ (function (_super) {
40642
- tslib_es6["a" /* __extends */](SubjectSubscription, _super);
40643
- function SubjectSubscription(subject, subscriber) {
40644
- var _this = _super.call(this) || this;
40645
- _this.subject = subject;
40646
- _this.subscriber = subscriber;
40647
- _this.closed = false;
40648
- return _this;
40649
- }
40650
- SubjectSubscription.prototype.unsubscribe = function () {
40651
- if (this.closed) {
40652
- return;
40653
- }
40654
- this.closed = true;
40655
- var subject = this.subject;
40656
- var observers = subject.observers;
40657
- this.subject = null;
40658
- if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {
40659
- return;
40660
- }
40661
- var subscriberIndex = observers.indexOf(this.subscriber);
40662
- if (subscriberIndex !== -1) {
40663
- observers.splice(subscriberIndex, 1);
40664
- }
40665
- };
40666
- return SubjectSubscription;
40667
- }(Subscription["a" /* Subscription */]));
40668
-
40669
- //# sourceMappingURL=SubjectSubscription.js.map
40670
-
40671
- // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js
40672
- var rxSubscriber = __webpack_require__(52);
40673
-
40674
- // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js
40675
- /* unused harmony export SubjectSubscriber */
40676
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subject_Subject; });
40677
- /* unused harmony export AnonymousSubject */
40678
- /** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */
40679
-
40680
-
40681
-
40682
-
40683
-
40684
-
40685
-
40686
- var Subject_SubjectSubscriber = /*@__PURE__*/ (function (_super) {
40687
- tslib_es6["a" /* __extends */](SubjectSubscriber, _super);
40688
- function SubjectSubscriber(destination) {
40689
- var _this = _super.call(this, destination) || this;
40690
- _this.destination = destination;
40691
- return _this;
40692
- }
40693
- return SubjectSubscriber;
40694
- }(Subscriber["a" /* Subscriber */]));
40695
-
40696
- var Subject_Subject = /*@__PURE__*/ (function (_super) {
40697
- tslib_es6["a" /* __extends */](Subject, _super);
40698
- function Subject() {
40699
- var _this = _super.call(this) || this;
40700
- _this.observers = [];
40701
- _this.closed = false;
40702
- _this.isStopped = false;
40703
- _this.hasError = false;
40704
- _this.thrownError = null;
40705
- return _this;
40706
- }
40707
- Subject.prototype[rxSubscriber["a" /* rxSubscriber */]] = function () {
40708
- return new Subject_SubjectSubscriber(this);
40709
- };
40710
- Subject.prototype.lift = function (operator) {
40711
- var subject = new Subject_AnonymousSubject(this, this);
40712
- subject.operator = operator;
40713
- return subject;
40714
- };
40715
- Subject.prototype.next = function (value) {
40716
- if (this.closed) {
40717
- throw new ObjectUnsubscribedError();
40718
- }
40719
- if (!this.isStopped) {
40720
- var observers = this.observers;
40721
- var len = observers.length;
40722
- var copy = observers.slice();
40723
- for (var i = 0; i < len; i++) {
40724
- copy[i].next(value);
40725
- }
40726
- }
40727
- };
40728
- Subject.prototype.error = function (err) {
40729
- if (this.closed) {
40730
- throw new ObjectUnsubscribedError();
40731
- }
40732
- this.hasError = true;
40733
- this.thrownError = err;
40734
- this.isStopped = true;
40735
- var observers = this.observers;
40736
- var len = observers.length;
40737
- var copy = observers.slice();
40738
- for (var i = 0; i < len; i++) {
40739
- copy[i].error(err);
40740
- }
40741
- this.observers.length = 0;
40742
- };
40743
- Subject.prototype.complete = function () {
40744
- if (this.closed) {
40745
- throw new ObjectUnsubscribedError();
40746
- }
40747
- this.isStopped = true;
40748
- var observers = this.observers;
40749
- var len = observers.length;
40750
- var copy = observers.slice();
40751
- for (var i = 0; i < len; i++) {
40752
- copy[i].complete();
40753
- }
40754
- this.observers.length = 0;
40755
- };
40756
- Subject.prototype.unsubscribe = function () {
40757
- this.isStopped = true;
40758
- this.closed = true;
40759
- this.observers = null;
40760
- };
40761
- Subject.prototype._trySubscribe = function (subscriber) {
40762
- if (this.closed) {
40763
- throw new ObjectUnsubscribedError();
40764
- }
40765
- else {
40766
- return _super.prototype._trySubscribe.call(this, subscriber);
40767
- }
40768
- };
40769
- Subject.prototype._subscribe = function (subscriber) {
40770
- if (this.closed) {
40771
- throw new ObjectUnsubscribedError();
40772
- }
40773
- else if (this.hasError) {
40774
- subscriber.error(this.thrownError);
40775
- return Subscription["a" /* Subscription */].EMPTY;
40776
- }
40777
- else if (this.isStopped) {
40778
- subscriber.complete();
40779
- return Subscription["a" /* Subscription */].EMPTY;
40780
- }
40781
- else {
40782
- this.observers.push(subscriber);
40783
- return new SubjectSubscription_SubjectSubscription(this, subscriber);
40784
- }
40785
- };
40786
- Subject.prototype.asObservable = function () {
40787
- var observable = new Observable["a" /* Observable */]();
40788
- observable.source = this;
40789
- return observable;
40790
- };
40791
- Subject.create = function (destination, source) {
40792
- return new Subject_AnonymousSubject(destination, source);
40793
- };
40794
- return Subject;
40795
- }(Observable["a" /* Observable */]));
40796
-
40797
- var Subject_AnonymousSubject = /*@__PURE__*/ (function (_super) {
40798
- tslib_es6["a" /* __extends */](AnonymousSubject, _super);
40799
- function AnonymousSubject(destination, source) {
40800
- var _this = _super.call(this) || this;
40801
- _this.destination = destination;
40802
- _this.source = source;
40803
- return _this;
40804
- }
40805
- AnonymousSubject.prototype.next = function (value) {
40806
- var destination = this.destination;
40807
- if (destination && destination.next) {
40808
- destination.next(value);
40809
- }
40810
- };
40811
- AnonymousSubject.prototype.error = function (err) {
40812
- var destination = this.destination;
40813
- if (destination && destination.error) {
40814
- this.destination.error(err);
40815
- }
40816
- };
40817
- AnonymousSubject.prototype.complete = function () {
40818
- var destination = this.destination;
40819
- if (destination && destination.complete) {
40820
- this.destination.complete();
40821
- }
40822
- };
40823
- AnonymousSubject.prototype._subscribe = function (subscriber) {
40824
- var source = this.source;
40825
- if (source) {
40826
- return this.source.subscribe(subscriber);
40827
- }
40828
- else {
40829
- return Subscription["a" /* Subscription */].EMPTY;
40830
- }
40831
- };
40832
- return AnonymousSubject;
40833
- }(Subject_Subject));
40834
-
40835
- //# sourceMappingURL=Subject.js.map
40836
-
40837
-
40838
- /***/ }),
40839
- /* 35 */
40840
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
40841
-
40842
40626
  "use strict";
40843
40627
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return hostReportError; });
40844
40628
  /** PURE_IMPORTS_START PURE_IMPORTS_END */
@@ -40849,7 +40633,7 @@ function hostReportError(err) {
40849
40633
 
40850
40634
 
40851
40635
  /***/ }),
40852
- /* 36 */
40636
+ /* 35 */
40853
40637
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
40854
40638
 
40855
40639
  "use strict";
@@ -41288,17 +41072,16 @@ gui_component_GuiComponent = __decorate([
41288
41072
 
41289
41073
 
41290
41074
  /***/ }),
41291
- /* 37 */
41075
+ /* 36 */
41292
41076
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
41293
41077
 
41294
41078
  "use strict";
41295
41079
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WriteValueModalComponent; });
41296
41080
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
41297
41081
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
41298
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34);
41299
- /* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
41300
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
41301
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
41082
+ /* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
41083
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
41084
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
41302
41085
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
41303
41086
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
41304
41087
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -41311,18 +41094,15 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
41311
41094
 
41312
41095
 
41313
41096
 
41314
-
41315
41097
  let WriteValueModalComponent = class WriteValueModalComponent {
41316
- constructor(localization, dataTypeService, fractionDigitService, numericalOperationService) {
41098
+ constructor(localization, dataTypeService, fractionDigitService, numericalOperationService, bsModalRef) {
41317
41099
  this.localization = localization;
41318
41100
  this.dataTypeService = dataTypeService;
41319
41101
  this.fractionDigitService = fractionDigitService;
41320
41102
  this.numericalOperationService = numericalOperationService;
41321
- this._onClosed = new rxjs__WEBPACK_IMPORTED_MODULE_1__[/* Subject */ "a"]();
41103
+ this.bsModalRef = bsModalRef;
41322
41104
  this.writeValueRangeText = '';
41323
- }
41324
- get onClosed() {
41325
- return this._onClosed;
41105
+ this.isSubmitting = false;
41326
41106
  }
41327
41107
  get invalidErrorText() {
41328
41108
  return this.localization.loadFailed;
@@ -41396,6 +41176,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
41396
41176
  return minValue + '~' + maxValue;
41397
41177
  }
41398
41178
  save() {
41179
+ this.isSubmitting = true;
41399
41180
  if (this.args.enableDataParsed) {
41400
41181
  if (this.enableNumericalOperation) {
41401
41182
  this.value = this.numericalOperationService.getWriteValue(this.args.version, this.value, this.numericalOperation, this.dataType, this.fractionDigits);
@@ -41404,11 +41185,10 @@ let WriteValueModalComponent = class WriteValueModalComponent {
41404
41185
  this.value = this.formatWriteValue();
41405
41186
  }
41406
41187
  }
41407
- this.close({ value: this.value });
41188
+ this.onClosed({ value: this.value });
41408
41189
  }
41409
- close(modalResult) {
41410
- this._onClosed.next(modalResult);
41411
- this._onClosed.complete();
41190
+ close() {
41191
+ this.bsModalRef.hide();
41412
41192
  }
41413
41193
  validate() {
41414
41194
  // 校验数值必填
@@ -41425,7 +41205,7 @@ let WriteValueModalComponent = class WriteValueModalComponent {
41425
41205
  return this.showValidationErrorInfo(`${this.localization.fractionDigitsMustLessThan}${this.fractionDigits}`);
41426
41206
  }
41427
41207
  // 校验负号
41428
- if (Object(lodash__WEBPACK_IMPORTED_MODULE_3__["isNil"])(this.args.version) || (!Object(lodash__WEBPACK_IMPORTED_MODULE_3__["isNil"])(this.args.version) && this.args.version < 5)) {
41208
+ if (Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isNil"])(this.args.version) || (!Object(lodash__WEBPACK_IMPORTED_MODULE_2__["isNil"])(this.args.version) && this.args.version < 5)) {
41429
41209
  if (!this.enableNumericalOperation && !this.dataTypeService.isSignedType(this.args.version, this.dataType) && this.value.startsWith('-')) {
41430
41210
  return this.showValidationErrorInfo(this.localization.canNotBeNegative);
41431
41211
  }
@@ -41486,23 +41266,23 @@ __decorate([
41486
41266
  WriteValueModalComponent = __decorate([
41487
41267
  Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
41488
41268
  selector: 'writeValueModal',
41489
- template: "<form #writeValueForm=\"ngForm\" novalidate (ngSubmit)=\"save()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">&times;</span> </button> </div> <div class=\"modal-body\"> <span class=\"write-value-range\">{{localization.writeValueRange}}:&nbsp;{{writeValueRangeText}} <span *ngIf=\"valueType\">({{valueType}})</span> </span> <input type=\"text\" name=\"valueInput\" autoFocus class=\"form-control write-value\" [(ngModel)]=\"value\" (keyup)=\"validate()\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!validationError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"submit\" class=\"btn md-skip btn-primary btn-block\" [disabled]=\"validationError\">{{localization.submit}}</button> </div> </form> ",
41269
+ template: "<form #writeValueForm=\"ngForm\" novalidate (ngSubmit)=\"save()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">&times;</span> </button> </div> <div class=\"modal-body\"> <span class=\"write-value-range\">{{localization.writeValueRange}}:&nbsp;{{writeValueRangeText}} <span *ngIf=\"valueType\">({{valueType}})</span> </span> <input type=\"text\" name=\"valueInput\" autoFocus class=\"form-control write-value\" [(ngModel)]=\"value\" (keyup)=\"validate()\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!validationError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"submit\" class=\"btn md-skip btn-primary btn-block\" [disabled]=\"validationError || isSubmitting\"> <ng-container *ngIf=\"!isSubmitting\">{{localization.submit}}</ng-container> <ng-container *ngIf=\"isSubmitting\">{{localization.submitting}}</ng-container> </button> </div> </form> ",
41490
41270
  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; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { background-color: #3B97FC; border-color: #3B97FC; padding: 5px 30px; width: 90%; margin: 0 5%; height: 32px; } .write-value-range { color: #7f939e; font-size: 14px; margin-left: 15px; } .write-value { padding-left: 8px; margin-left: 16px; height: 32px; } "]
41491
41271
  }),
41492
- __param(0, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"])(_localization__WEBPACK_IMPORTED_MODULE_2__[/* LOCALIZATION */ "b"]))
41272
+ __param(0, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"])(_localization__WEBPACK_IMPORTED_MODULE_1__[/* LOCALIZATION */ "b"]))
41493
41273
  ], WriteValueModalComponent);
41494
41274
 
41495
41275
 
41496
41276
 
41497
41277
  /***/ }),
41498
- /* 38 */
41278
+ /* 37 */
41499
41279
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
41500
41280
 
41501
41281
  "use strict";
41502
41282
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WriteCharacterModalComponent; });
41503
41283
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
41504
41284
  /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_angular_core__WEBPACK_IMPORTED_MODULE_0__);
41505
- /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34);
41285
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
41506
41286
  /* harmony import */ var _localization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
41507
41287
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
41508
41288
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -41575,7 +41355,7 @@ WriteCharacterModalComponent = __decorate([
41575
41355
 
41576
41356
 
41577
41357
  /***/ }),
41578
- /* 39 */
41358
+ /* 38 */
41579
41359
  /***/ (function(module, exports, __webpack_require__) {
41580
41360
 
41581
41361
  /* nvd3 version 1.8.6-dev (https://github.com/flexem/nvd3) 2018-08-22 */
@@ -61055,6 +60835,240 @@ nv.version = "1.8.6-dev";
61055
60835
  })();
61056
60836
  //# sourceMappingURL=nv.d3.js.map
61057
60837
 
60838
+ /***/ }),
60839
+ /* 39 */
60840
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
60841
+
60842
+ "use strict";
60843
+
60844
+ // EXTERNAL MODULE: ./node_modules/rxjs/node_modules/tslib/tslib.es6.js
60845
+ var tslib_es6 = __webpack_require__(11);
60846
+
60847
+ // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js + 3 modules
60848
+ var Observable = __webpack_require__(14);
60849
+
60850
+ // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js
60851
+ var Subscriber = __webpack_require__(27);
60852
+
60853
+ // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subscription.js + 1 modules
60854
+ var Subscription = __webpack_require__(24);
60855
+
60856
+ // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js
60857
+ /** PURE_IMPORTS_START PURE_IMPORTS_END */
60858
+ var ObjectUnsubscribedErrorImpl = /*@__PURE__*/ (function () {
60859
+ function ObjectUnsubscribedErrorImpl() {
60860
+ Error.call(this);
60861
+ this.message = 'object unsubscribed';
60862
+ this.name = 'ObjectUnsubscribedError';
60863
+ return this;
60864
+ }
60865
+ ObjectUnsubscribedErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);
60866
+ return ObjectUnsubscribedErrorImpl;
60867
+ })();
60868
+ var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;
60869
+ //# sourceMappingURL=ObjectUnsubscribedError.js.map
60870
+
60871
+ // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/SubjectSubscription.js
60872
+ /** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */
60873
+
60874
+
60875
+ var SubjectSubscription_SubjectSubscription = /*@__PURE__*/ (function (_super) {
60876
+ tslib_es6["a" /* __extends */](SubjectSubscription, _super);
60877
+ function SubjectSubscription(subject, subscriber) {
60878
+ var _this = _super.call(this) || this;
60879
+ _this.subject = subject;
60880
+ _this.subscriber = subscriber;
60881
+ _this.closed = false;
60882
+ return _this;
60883
+ }
60884
+ SubjectSubscription.prototype.unsubscribe = function () {
60885
+ if (this.closed) {
60886
+ return;
60887
+ }
60888
+ this.closed = true;
60889
+ var subject = this.subject;
60890
+ var observers = subject.observers;
60891
+ this.subject = null;
60892
+ if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {
60893
+ return;
60894
+ }
60895
+ var subscriberIndex = observers.indexOf(this.subscriber);
60896
+ if (subscriberIndex !== -1) {
60897
+ observers.splice(subscriberIndex, 1);
60898
+ }
60899
+ };
60900
+ return SubjectSubscription;
60901
+ }(Subscription["a" /* Subscription */]));
60902
+
60903
+ //# sourceMappingURL=SubjectSubscription.js.map
60904
+
60905
+ // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js
60906
+ var rxSubscriber = __webpack_require__(52);
60907
+
60908
+ // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js
60909
+ /* unused harmony export SubjectSubscriber */
60910
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Subject_Subject; });
60911
+ /* unused harmony export AnonymousSubject */
60912
+ /** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */
60913
+
60914
+
60915
+
60916
+
60917
+
60918
+
60919
+
60920
+ var Subject_SubjectSubscriber = /*@__PURE__*/ (function (_super) {
60921
+ tslib_es6["a" /* __extends */](SubjectSubscriber, _super);
60922
+ function SubjectSubscriber(destination) {
60923
+ var _this = _super.call(this, destination) || this;
60924
+ _this.destination = destination;
60925
+ return _this;
60926
+ }
60927
+ return SubjectSubscriber;
60928
+ }(Subscriber["a" /* Subscriber */]));
60929
+
60930
+ var Subject_Subject = /*@__PURE__*/ (function (_super) {
60931
+ tslib_es6["a" /* __extends */](Subject, _super);
60932
+ function Subject() {
60933
+ var _this = _super.call(this) || this;
60934
+ _this.observers = [];
60935
+ _this.closed = false;
60936
+ _this.isStopped = false;
60937
+ _this.hasError = false;
60938
+ _this.thrownError = null;
60939
+ return _this;
60940
+ }
60941
+ Subject.prototype[rxSubscriber["a" /* rxSubscriber */]] = function () {
60942
+ return new Subject_SubjectSubscriber(this);
60943
+ };
60944
+ Subject.prototype.lift = function (operator) {
60945
+ var subject = new Subject_AnonymousSubject(this, this);
60946
+ subject.operator = operator;
60947
+ return subject;
60948
+ };
60949
+ Subject.prototype.next = function (value) {
60950
+ if (this.closed) {
60951
+ throw new ObjectUnsubscribedError();
60952
+ }
60953
+ if (!this.isStopped) {
60954
+ var observers = this.observers;
60955
+ var len = observers.length;
60956
+ var copy = observers.slice();
60957
+ for (var i = 0; i < len; i++) {
60958
+ copy[i].next(value);
60959
+ }
60960
+ }
60961
+ };
60962
+ Subject.prototype.error = function (err) {
60963
+ if (this.closed) {
60964
+ throw new ObjectUnsubscribedError();
60965
+ }
60966
+ this.hasError = true;
60967
+ this.thrownError = err;
60968
+ this.isStopped = true;
60969
+ var observers = this.observers;
60970
+ var len = observers.length;
60971
+ var copy = observers.slice();
60972
+ for (var i = 0; i < len; i++) {
60973
+ copy[i].error(err);
60974
+ }
60975
+ this.observers.length = 0;
60976
+ };
60977
+ Subject.prototype.complete = function () {
60978
+ if (this.closed) {
60979
+ throw new ObjectUnsubscribedError();
60980
+ }
60981
+ this.isStopped = true;
60982
+ var observers = this.observers;
60983
+ var len = observers.length;
60984
+ var copy = observers.slice();
60985
+ for (var i = 0; i < len; i++) {
60986
+ copy[i].complete();
60987
+ }
60988
+ this.observers.length = 0;
60989
+ };
60990
+ Subject.prototype.unsubscribe = function () {
60991
+ this.isStopped = true;
60992
+ this.closed = true;
60993
+ this.observers = null;
60994
+ };
60995
+ Subject.prototype._trySubscribe = function (subscriber) {
60996
+ if (this.closed) {
60997
+ throw new ObjectUnsubscribedError();
60998
+ }
60999
+ else {
61000
+ return _super.prototype._trySubscribe.call(this, subscriber);
61001
+ }
61002
+ };
61003
+ Subject.prototype._subscribe = function (subscriber) {
61004
+ if (this.closed) {
61005
+ throw new ObjectUnsubscribedError();
61006
+ }
61007
+ else if (this.hasError) {
61008
+ subscriber.error(this.thrownError);
61009
+ return Subscription["a" /* Subscription */].EMPTY;
61010
+ }
61011
+ else if (this.isStopped) {
61012
+ subscriber.complete();
61013
+ return Subscription["a" /* Subscription */].EMPTY;
61014
+ }
61015
+ else {
61016
+ this.observers.push(subscriber);
61017
+ return new SubjectSubscription_SubjectSubscription(this, subscriber);
61018
+ }
61019
+ };
61020
+ Subject.prototype.asObservable = function () {
61021
+ var observable = new Observable["a" /* Observable */]();
61022
+ observable.source = this;
61023
+ return observable;
61024
+ };
61025
+ Subject.create = function (destination, source) {
61026
+ return new Subject_AnonymousSubject(destination, source);
61027
+ };
61028
+ return Subject;
61029
+ }(Observable["a" /* Observable */]));
61030
+
61031
+ var Subject_AnonymousSubject = /*@__PURE__*/ (function (_super) {
61032
+ tslib_es6["a" /* __extends */](AnonymousSubject, _super);
61033
+ function AnonymousSubject(destination, source) {
61034
+ var _this = _super.call(this) || this;
61035
+ _this.destination = destination;
61036
+ _this.source = source;
61037
+ return _this;
61038
+ }
61039
+ AnonymousSubject.prototype.next = function (value) {
61040
+ var destination = this.destination;
61041
+ if (destination && destination.next) {
61042
+ destination.next(value);
61043
+ }
61044
+ };
61045
+ AnonymousSubject.prototype.error = function (err) {
61046
+ var destination = this.destination;
61047
+ if (destination && destination.error) {
61048
+ this.destination.error(err);
61049
+ }
61050
+ };
61051
+ AnonymousSubject.prototype.complete = function () {
61052
+ var destination = this.destination;
61053
+ if (destination && destination.complete) {
61054
+ this.destination.complete();
61055
+ }
61056
+ };
61057
+ AnonymousSubject.prototype._subscribe = function (subscriber) {
61058
+ var source = this.source;
61059
+ if (source) {
61060
+ return this.source.subscribe(subscriber);
61061
+ }
61062
+ else {
61063
+ return Subscription["a" /* Subscription */].EMPTY;
61064
+ }
61065
+ };
61066
+ return AnonymousSubject;
61067
+ }(Subject_Subject));
61068
+
61069
+ //# sourceMappingURL=Subject.js.map
61070
+
61071
+
61058
61072
  /***/ }),
61059
61073
  /* 40 */
61060
61074
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -62204,7 +62218,7 @@ var $$rxSubscriber = rxSubscriber;
62204
62218
  "use strict";
62205
62219
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return empty; });
62206
62220
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
62207
- /* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(35);
62221
+ /* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34);
62208
62222
  /** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */
62209
62223
 
62210
62224
 
@@ -62542,7 +62556,7 @@ var lodash = __webpack_require__(2);
62542
62556
  var of = __webpack_require__(49);
62543
62557
 
62544
62558
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js + 2 modules
62545
- var Subject = __webpack_require__(34);
62559
+ var Subject = __webpack_require__(39);
62546
62560
 
62547
62561
  // EXTERNAL MODULE: external "rxjs/operators"
62548
62562
  var operators_ = __webpack_require__(16);
@@ -64761,7 +64775,7 @@ function __importDefault(mod) {
64761
64775
  }
64762
64776
 
64763
64777
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js + 2 modules
64764
- var Subject = __webpack_require__(34);
64778
+ var Subject = __webpack_require__(39);
64765
64779
 
64766
64780
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js + 3 modules
64767
64781
  var Observable = __webpack_require__(14);
@@ -64809,7 +64823,7 @@ var InnerSubscriber_InnerSubscriber = /*@__PURE__*/ (function (_super) {
64809
64823
  var subscribeToArray = __webpack_require__(267);
64810
64824
 
64811
64825
  // EXTERNAL MODULE: ./node_modules/rxjs/_esm5/internal/util/hostReportError.js
64812
- var hostReportError = __webpack_require__(35);
64826
+ var hostReportError = __webpack_require__(34);
64813
64827
 
64814
64828
  // CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js
64815
64829
  /** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */
@@ -70832,7 +70846,7 @@ TooltipModule.ɵinj = core_["ɵɵdefineInjector"]({ factory: function TooltipMod
70832
70846
 
70833
70847
  //# sourceMappingURL=ngx-bootstrap-tooltip.js.map
70834
70848
  // EXTERNAL MODULE: ./.tmp/gui/gui.component.ts + 1 modules
70835
- var gui_component = __webpack_require__(36);
70849
+ var gui_component = __webpack_require__(35);
70836
70850
 
70837
70851
  // EXTERNAL MODULE: ./.tmp/localization/localization.service.ts
70838
70852
  var localization_service = __webpack_require__(18);
@@ -70844,10 +70858,10 @@ var alert_modal_component = __webpack_require__(21);
70844
70858
  var confirm_operation_modal_component = __webpack_require__(20);
70845
70859
 
70846
70860
  // EXTERNAL MODULE: ./.tmp/modal/write-character/write-character-modal.component.ts
70847
- var write_character_modal_component = __webpack_require__(38);
70861
+ var write_character_modal_component = __webpack_require__(37);
70848
70862
 
70849
70863
  // EXTERNAL MODULE: ./.tmp/modal/write-value/write-value-modal.component.ts
70850
- var write_value_modal_component = __webpack_require__(37);
70864
+ var write_value_modal_component = __webpack_require__(36);
70851
70865
 
70852
70866
  // EXTERNAL MODULE: ./.tmp/settings/global-settings.ts
70853
70867
  var global_settings = __webpack_require__(48);
@@ -83470,7 +83484,7 @@ module.exports = g;
83470
83484
 
83471
83485
  "use strict";
83472
83486
  __webpack_require__.r(__webpack_exports__);
83473
- /* harmony import */ var _gui_gui_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
83487
+ /* harmony import */ var _gui_gui_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35);
83474
83488
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GuiComponent", function() { return _gui_gui_component__WEBPACK_IMPORTED_MODULE_0__["a"]; });
83475
83489
 
83476
83490
  /* harmony import */ var _gui_gui_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(30);