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.
@@ -121,8 +121,8 @@ class FieldComponent {
121
121
  onChangeContent() {
122
122
  setTimeout(() => this.field.notifyEditionFinish(), 50);
123
123
  }
124
- onShowInfo() {
125
- setTimeout(() => this.field.notifyEditionDetailRequest(), 50);
124
+ onShowInfo(detail = null) {
125
+ setTimeout(() => this.field.notifyEditionDetailRequest(detail), 50);
126
126
  }
127
127
  numberInputValidation(event) {
128
128
  const k = event.charCode;
@@ -1280,8 +1280,12 @@ class FieldDescriptor extends FormElement {
1280
1280
  this._attributeChange.next({ name, value });
1281
1281
  }
1282
1282
  }
1283
- notifyEditionDetailRequest() {
1284
- this._detailRequest.next(this.fieldCode);
1283
+ notifyEditionDetailRequest(detail) {
1284
+ const detailEvent = {
1285
+ code: this.fieldCode,
1286
+ detail,
1287
+ };
1288
+ this._detailRequest.next(detailEvent);
1285
1289
  }
1286
1290
  setVisibleLabel(visibleLabel) { this.setAttr(fldAttr.visibleLabel, visibleLabel); }
1287
1291
  showLabel() { this.setVisibleLabel(true); }
@@ -1327,8 +1331,8 @@ class FieldDescriptor extends FormElement {
1327
1331
  return this._value;
1328
1332
  }
1329
1333
  getOptionText() {
1330
- var _a, _b;
1331
- return (_b = (_a = this.fieldOptions.find(item => item.fieldOptionId === this._value)) === null || _a === void 0 ? void 0 : _a.fieldOptionValue) !== null && _b !== void 0 ? _b : null;
1334
+ var _a, _b, _c;
1335
+ return (_c = (_b = (_a = this.fieldOptions) === null || _a === void 0 ? void 0 : _a.find(item => item.fieldOptionId === this._value)) === null || _b === void 0 ? void 0 : _b.fieldOptionValue) !== null && _c !== void 0 ? _c : null;
1332
1336
  }
1333
1337
  updateFromServer(fld) {
1334
1338
  var _a;
@@ -2465,7 +2469,7 @@ class BasicFormComponent {
2465
2469
  displayActionServerError() { }
2466
2470
  displayValidationServerError() { }
2467
2471
  displayTableServerError() { }
2468
- showFieldInfo(fieldCode) { }
2472
+ showFieldInfo(fieldCode, detail) { }
2469
2473
  showModalDialog(title, body, options, callback, params) { }
2470
2474
  openUploadDialog(title, body, options, callback, params) { }
2471
2475
  /**
@@ -2577,7 +2581,7 @@ class BasicFormComponent {
2577
2581
  const { code, intrinsicValidation } = event;
2578
2582
  this.startFieldInputValidation(code, intrinsicValidation);
2579
2583
  });
2580
- field.detailRequest.subscribe(code => this.showFieldInfo(code));
2584
+ field.detailRequest.subscribe(event => this.showFieldInfo(event.code, event.detail));
2581
2585
  });
2582
2586
  }
2583
2587
  }