tuain-ng-forms-lib 15.2.8 → 15.2.10
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/esm2020/lib/classes/forms/field.mjs +3 -1
- package/esm2020/lib/classes/forms/piece-propagate.mjs +2 -1
- package/esm2020/lib/components/elements/field.component.mjs +7 -1
- package/esm2020/lib/components/elements/layout/piece.component.mjs +2 -1
- package/fesm2015/tuain-ng-forms-lib.mjs +10 -0
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +10 -0
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ class PieceComponent {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
|
+
console.log(`defaultProcessAttributeChange ${attribute} ${value}`);
|
|
31
32
|
this[attribute] = value;
|
|
32
33
|
}
|
|
33
34
|
return true;
|
|
@@ -157,6 +158,12 @@ class FieldComponent extends ElementComponent {
|
|
|
157
158
|
// Subscripción a cambios en atributos
|
|
158
159
|
this.field?.attributeChange.subscribe(event => {
|
|
159
160
|
const { name: componentAttr, value = null } = event ?? {};
|
|
161
|
+
if (componentAttr === 'placeholder') {
|
|
162
|
+
console.log(`------ attributeChange ${componentAttr} ${value}`);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
console.log(`attributeChange ${componentAttr} ${value}`);
|
|
166
|
+
}
|
|
160
167
|
if (componentAttr) {
|
|
161
168
|
this.defaultProcessAttributeChange(componentAttr, value);
|
|
162
169
|
this.customProcessAttributeChange(componentAttr, value);
|
|
@@ -662,6 +669,7 @@ class FormPiecePropagate extends FormPiece {
|
|
|
662
669
|
}
|
|
663
670
|
get attributeChange() { return this._attributeChange; }
|
|
664
671
|
propagateAttribute(name, value) {
|
|
672
|
+
console.log(`propagateAttribute ${name} ${value}`);
|
|
665
673
|
this._attributeChange?.next({ name, value });
|
|
666
674
|
}
|
|
667
675
|
setCustomAttribute(name, value) {
|
|
@@ -1161,6 +1169,8 @@ class FieldDescriptor extends FormElement {
|
|
|
1161
1169
|
this.setAttr(attrs$1._errorMessage, message ?? '');
|
|
1162
1170
|
}
|
|
1163
1171
|
updateFromServer(fld) {
|
|
1172
|
+
console.log('updateFromServer');
|
|
1173
|
+
console.log(fld);
|
|
1164
1174
|
const fieldKeys = Object.keys(fld);
|
|
1165
1175
|
for (let index = 0; index < fieldKeys.length; index++) {
|
|
1166
1176
|
const attrName = fieldKeys[index];
|