@alfresco/adf-core 8.4.0-17915058223 → 8.4.0-17917598952
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/fesm2022/adf-core.mjs +9 -1
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/form/components/form-field/form-field.component.d.ts +5 -0
- package/lib/form/components/widgets/core/form-field-types.d.ts +2 -0
- package/lib/form/components/widgets/reactive-widget.interface.d.ts +4 -0
- package/package.json +3 -3
package/fesm2022/adf-core.mjs
CHANGED
|
@@ -20270,6 +20270,9 @@ class FormFieldTypes {
|
|
|
20270
20270
|
static isReactiveType(type) {
|
|
20271
20271
|
return FormFieldTypes.REACTIVE_TYPES.includes(type);
|
|
20272
20272
|
}
|
|
20273
|
+
static isReactiveWidget(instance) {
|
|
20274
|
+
return FormFieldTypes.REACTIVE_TYPES.includes(instance?.field?.type);
|
|
20275
|
+
}
|
|
20273
20276
|
static isConstantValueType(type) {
|
|
20274
20277
|
return FormFieldTypes.CONSTANT_VALUE_TYPES.includes(type);
|
|
20275
20278
|
}
|
|
@@ -24312,6 +24315,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
24312
24315
|
* See the License for the specific language governing permissions and
|
|
24313
24316
|
* limitations under the License.
|
|
24314
24317
|
*/
|
|
24318
|
+
/**
|
|
24319
|
+
* Component is a wrapper for widget components.
|
|
24320
|
+
* It is responsible for instantiating the correct widget component
|
|
24321
|
+
* based on the field type.
|
|
24322
|
+
*/
|
|
24315
24323
|
class FormFieldComponent {
|
|
24316
24324
|
constructor() {
|
|
24317
24325
|
/**
|
|
@@ -24355,7 +24363,7 @@ class FormFieldComponent {
|
|
|
24355
24363
|
this.triggerFormFieldChanged(field);
|
|
24356
24364
|
}
|
|
24357
24365
|
});
|
|
24358
|
-
if (FormFieldTypes.
|
|
24366
|
+
if (FormFieldTypes.isReactiveWidget(instance)) {
|
|
24359
24367
|
this.updateReactiveFormControlOnFormRulesEvent(instance);
|
|
24360
24368
|
}
|
|
24361
24369
|
}
|