tuain-ng-forms-lib 12.0.42 → 12.0.43

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.
@@ -454,9 +454,10 @@
454
454
  var _this = this;
455
455
  setTimeout(function () { return _this.field.notifyEditionFinish(); }, 50);
456
456
  };
457
- FieldComponent.prototype.onShowInfo = function () {
457
+ FieldComponent.prototype.onShowInfo = function (detail) {
458
458
  var _this = this;
459
- setTimeout(function () { return _this.field.notifyEditionDetailRequest(); }, 50);
459
+ if (detail === void 0) { detail = null; }
460
+ setTimeout(function () { return _this.field.notifyEditionDetailRequest(detail); }, 50);
460
461
  };
461
462
  FieldComponent.prototype.numberInputValidation = function (event) {
462
463
  var k = event.charCode;
@@ -1880,8 +1881,12 @@
1880
1881
  this._attributeChange.next({ name: name, value: value });
1881
1882
  }
1882
1883
  };
1883
- FieldDescriptor.prototype.notifyEditionDetailRequest = function () {
1884
- this._detailRequest.next(this.fieldCode);
1884
+ FieldDescriptor.prototype.notifyEditionDetailRequest = function (detail) {
1885
+ var detailEvent = {
1886
+ code: this.fieldCode,
1887
+ detail: detail,
1888
+ };
1889
+ this._detailRequest.next(detailEvent);
1885
1890
  };
1886
1891
  FieldDescriptor.prototype.setVisibleLabel = function (visibleLabel) { this.setAttr(fldAttr.visibleLabel, visibleLabel); };
1887
1892
  FieldDescriptor.prototype.showLabel = function () { this.setVisibleLabel(true); };
@@ -1944,8 +1949,8 @@
1944
1949
  };
1945
1950
  FieldDescriptor.prototype.getOptionText = function () {
1946
1951
  var _this = this;
1947
- var _a, _b;
1948
- return (_b = (_a = this.fieldOptions.find(function (item) { return item.fieldOptionId === _this._value; })) === null || _a === void 0 ? void 0 : _a.fieldOptionValue) !== null && _b !== void 0 ? _b : null;
1952
+ var _a, _b, _c;
1953
+ return (_c = (_b = (_a = this.fieldOptions) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.fieldOptionId === _this._value; })) === null || _b === void 0 ? void 0 : _b.fieldOptionValue) !== null && _c !== void 0 ? _c : null;
1949
1954
  };
1950
1955
  FieldDescriptor.prototype.updateFromServer = function (fld) {
1951
1956
  var _a;
@@ -3366,7 +3371,7 @@
3366
3371
  BasicFormComponent.prototype.displayActionServerError = function () { };
3367
3372
  BasicFormComponent.prototype.displayValidationServerError = function () { };
3368
3373
  BasicFormComponent.prototype.displayTableServerError = function () { };
3369
- BasicFormComponent.prototype.showFieldInfo = function (fieldCode) { };
3374
+ BasicFormComponent.prototype.showFieldInfo = function (fieldCode, detail) { };
3370
3375
  BasicFormComponent.prototype.showModalDialog = function (title, body, options, callback, params) { };
3371
3376
  BasicFormComponent.prototype.openUploadDialog = function (title, body, options, callback, params) { };
3372
3377
  /**
@@ -3483,7 +3488,7 @@
3483
3488
  var code = event.code, intrinsicValidation = event.intrinsicValidation;
3484
3489
  _this.startFieldInputValidation(code, intrinsicValidation);
3485
3490
  });
3486
- field.detailRequest.subscribe(function (code) { return _this.showFieldInfo(code); });
3491
+ field.detailRequest.subscribe(function (event) { return _this.showFieldInfo(event.code, event.detail); });
3487
3492
  });
3488
3493
  }
3489
3494
  };