@wavemaker/angular-codegen 11.2.5-next.23547 → 11.2.5-next.23548
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.
|
@@ -46049,12 +46049,14 @@ const registerFormField = (isFormField) => {
|
|
|
46049
46049
|
const pCounter = (parent && parent.get('form_reference')) || 'form';
|
|
46050
46050
|
const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
|
|
46051
46051
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
|
46052
|
+
const formFieldErrorMsgId = 'wmform-field-error-' + generateGUId();
|
|
46052
46053
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
|
46053
46054
|
class="help-block text-danger" aria-hidden="false" role="alert"
|
|
46054
|
-
aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
|
|
46055
|
+
aria-live="assertive" [attr.aria-label]="${counter}.validationmessage" id="${formFieldErrorMsgId}"><span aria-hidden="true" [textContent]="${counter}.validationmessage"></span></p>` : '';
|
|
46055
46056
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
|
46056
46057
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
|
46057
46058
|
const isInList = pCounter === (parentList && parentList.get('parent_form_reference'));
|
|
46059
|
+
attrs.set('__errormsg', formFieldErrorMsgId);
|
|
46058
46060
|
attrs.set('__widgetType', widgetType);
|
|
46059
46061
|
attrs.delete('widget');
|
|
46060
46062
|
shared.set('counter', counter);
|
|
@@ -46049,12 +46049,14 @@ const registerFormField = (isFormField) => {
|
|
|
46049
46049
|
const pCounter = (parent && parent.get('form_reference')) || 'form';
|
|
46050
46050
|
const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
|
|
46051
46051
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
|
46052
|
+
const formFieldErrorMsgId = 'wmform-field-error-' + generateGUId();
|
|
46052
46053
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
|
46053
46054
|
class="help-block text-danger" aria-hidden="false" role="alert"
|
|
46054
|
-
aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
|
|
46055
|
+
aria-live="assertive" [attr.aria-label]="${counter}.validationmessage" id="${formFieldErrorMsgId}"><span aria-hidden="true" [textContent]="${counter}.validationmessage"></span></p>` : '';
|
|
46055
46056
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
|
46056
46057
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
|
46057
46058
|
const isInList = pCounter === (parentList && parentList.get('parent_form_reference'));
|
|
46059
|
+
attrs.set('__errormsg', formFieldErrorMsgId);
|
|
46058
46060
|
attrs.set('__widgetType', widgetType);
|
|
46059
46061
|
attrs.delete('widget');
|
|
46060
46062
|
shared.set('counter', counter);
|