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