tuain-ng-forms-lib 15.1.2 → 15.1.3
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/piece.mjs +4 -1
- package/esm2020/lib/classes/forms/table/table.mjs +1 -1
- package/esm2020/lib/components/elements/action.component.mjs +4 -1
- package/esm2020/lib/components/elements/field.component.mjs +4 -1
- package/fesm2015/tuain-ng-forms-lib.mjs +9 -0
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +9 -0
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/piece.d.ts +3 -0
- package/lib/classes/forms/table/table.d.ts +0 -1
- package/package.json +1 -1
|
@@ -88,6 +88,9 @@ class ActionComponent extends ElementComponent {
|
|
|
88
88
|
this.defaultProcessAttributeChange(componentAttr, value);
|
|
89
89
|
this.customProcessAttributeChange(componentAttr, value);
|
|
90
90
|
});
|
|
91
|
+
if (this.action) {
|
|
92
|
+
this.action.widget = this;
|
|
93
|
+
}
|
|
91
94
|
this.start();
|
|
92
95
|
}
|
|
93
96
|
start() {
|
|
@@ -157,6 +160,9 @@ class FieldComponent extends ElementComponent {
|
|
|
157
160
|
this.defaultProcessAttributeChange(componentAttr, value);
|
|
158
161
|
this.customProcessAttributeChange(componentAttr, value);
|
|
159
162
|
});
|
|
163
|
+
if (this.field) {
|
|
164
|
+
this.field.widget = this;
|
|
165
|
+
}
|
|
160
166
|
this.start();
|
|
161
167
|
}
|
|
162
168
|
defaultProcessAttributeChange(attribute, value) {
|
|
@@ -520,6 +526,7 @@ class FormPiece {
|
|
|
520
526
|
this._formState = '';
|
|
521
527
|
this._absoluteVisible = true;
|
|
522
528
|
this._absoluteDisabled = false;
|
|
529
|
+
this._widget = null;
|
|
523
530
|
this.visibleStates = [];
|
|
524
531
|
this.enabledStates = [];
|
|
525
532
|
this._form = null;
|
|
@@ -632,6 +639,8 @@ class FormPiece {
|
|
|
632
639
|
this.formStateChangeCustomSubscribe(form, formChangeSubject);
|
|
633
640
|
formChangeSubject.subscribe(event => this.formStateChange(event?.state));
|
|
634
641
|
}
|
|
642
|
+
set widget(widget) { this._widget = widget; }
|
|
643
|
+
get widget() { return this._widget; }
|
|
635
644
|
}
|
|
636
645
|
|
|
637
646
|
const VISIBLE = 'visible';
|