@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.
@@ -70,7 +70,7 @@
70
70
  "tslib": "^2.0.0",
71
71
  "x2js": "3.2.6",
72
72
  "zone.js": "~0.11.4",
73
- "@wavemaker/app-ng-runtime": "11.2.5-next.23547"
73
+ "@wavemaker/app-ng-runtime": "11.2.5-next.23548"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -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);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.5-next.23547",
3
+ "version": "11.2.5-next.23548",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {