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