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.
- package/bundles/tuain-ng-forms-lib.umd.js +13 -8
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/field.js +9 -5
- package/esm2015/lib/components/elements/field.component.js +3 -3
- package/esm2015/lib/components/forms/basic-form.js +3 -3
- package/fesm2015/tuain-ng-forms-lib.js +12 -8
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/classes/forms/field.d.ts +6 -2
- package/lib/components/elements/field.component.d.ts +1 -1
- package/lib/components/forms/basic-form.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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 ||
|
|
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(
|
|
2584
|
+
field.detailRequest.subscribe(event => this.showFieldInfo(event.code, event.detail));
|
|
2581
2585
|
});
|
|
2582
2586
|
}
|
|
2583
2587
|
}
|