@wavemaker/angular-codegen 11.3.0-next.137008 → 11.3.0-next.137009

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.
@@ -40760,10 +40760,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
40760
40760
  break;
40761
40761
  case FormWidgetType.TEXT:
40762
40762
  const inputType = options.inputType || 'inputtype';
40763
- tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" aria-describedby="Enter text" ${updateOnTmpl}></wm-input>`;
40763
+ tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl}></wm-input>`;
40764
40764
  break;
40765
40765
  case FormWidgetType.TEXTAREA:
40766
- tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" aria-describedby="Place your text" ${updateOnTmpl}></wm-textarea>`;
40766
+ tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" ${updateOnTmpl}></wm-textarea>`;
40767
40767
  break;
40768
40768
  case FormWidgetType.TIME:
40769
40769
  tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}></div>`;
@@ -40792,7 +40792,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
40792
40792
  }
40793
40793
  break;
40794
40794
  default:
40795
- tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} aria-describedby="Enter text" type="text" ${updateOnTmpl}></wm-input>`;
40795
+ tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="text" ${updateOnTmpl}></wm-input>`;
40796
40796
  break;
40797
40797
  }
40798
40798
  return tmpl;
@@ -46044,7 +46044,7 @@ const registerFormField = (isFormField) => {
46044
46044
  const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
46045
46045
  const dataRole = isFormField ? 'form-field' : 'filter-field';
46046
46046
  const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
46047
- class="help-block text-danger" aria-hidden="false" [attr.aria-label]="${counter}.validationmessage" role="alert"
46047
+ class="help-block text-danger" aria-hidden="false" role="alert"
46048
46048
  aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
46049
46049
  const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
46050
46050
  const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
@@ -46947,7 +46947,7 @@ register('wm-page', () => {
46947
46947
  },
46948
46948
  pre: (attrs) => {
46949
46949
  const counter = idGen$8.nextUid();
46950
- return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint || 'Main page content'" ${getAttrMarkup(attrs)}>`;
46950
+ return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
46951
46951
  },
46952
46952
  post: () => `</${tagName$p}>`
46953
46953
  };
@@ -47599,12 +47599,13 @@ const tagName$5 = 'div';
47599
47599
  const getRowExpansionActionTmpl = (attrs) => {
47600
47600
  const tag = attrs.get('widget-type') === 'anchor' ? 'a' : 'button';
47601
47601
  const directive = attrs.get('widget-type') === 'anchor' ? 'wmAnchor' : 'wmButton';
47602
+ const title = attrs.get('display-name') || attrs.get('title') || 'Collapse/Expand';
47602
47603
  return `<ng-template #rowExpansionActionTmpl let-row="row">
47603
47604
  <${tag} ${directive}
47604
47605
  ${getRowActionAttrs(attrs)}
47605
47606
  class="${attrs.get('class')} row-expansion-button"
47606
47607
  iconclass="${attrs.get('collapseicon')}"
47607
- type="button"></${tag}>
47608
+ type="button" aria-label="${title}"></${tag}>
47608
47609
  </ng-template>`;
47609
47610
  };
47610
47611
  const ɵ0$1$2 = getRowExpansionActionTmpl;
@@ -40760,10 +40760,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
40760
40760
  break;
40761
40761
  case FormWidgetType.TEXT:
40762
40762
  const inputType = options.inputType || 'inputtype';
40763
- tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" aria-describedby="Enter text" ${updateOnTmpl}></wm-input>`;
40763
+ tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl}></wm-input>`;
40764
40764
  break;
40765
40765
  case FormWidgetType.TEXTAREA:
40766
- tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" aria-describedby="Place your text" ${updateOnTmpl}></wm-textarea>`;
40766
+ tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" ${updateOnTmpl}></wm-textarea>`;
40767
40767
  break;
40768
40768
  case FormWidgetType.TIME:
40769
40769
  tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}></div>`;
@@ -40792,7 +40792,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
40792
40792
  }
40793
40793
  break;
40794
40794
  default:
40795
- tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} aria-describedby="Enter text" type="text" ${updateOnTmpl}></wm-input>`;
40795
+ tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="text" ${updateOnTmpl}></wm-input>`;
40796
40796
  break;
40797
40797
  }
40798
40798
  return tmpl;
@@ -46044,7 +46044,7 @@ const registerFormField = (isFormField) => {
46044
46044
  const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
46045
46045
  const dataRole = isFormField ? 'form-field' : 'filter-field';
46046
46046
  const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
46047
- class="help-block text-danger" aria-hidden="false" [attr.aria-label]="${counter}.validationmessage" role="alert"
46047
+ class="help-block text-danger" aria-hidden="false" role="alert"
46048
46048
  aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
46049
46049
  const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
46050
46050
  const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
@@ -46947,7 +46947,7 @@ register('wm-page', () => {
46947
46947
  },
46948
46948
  pre: (attrs) => {
46949
46949
  const counter = idGen$8.nextUid();
46950
- return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint || 'Main page content'" ${getAttrMarkup(attrs)}>`;
46950
+ return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
46951
46951
  },
46952
46952
  post: () => `</${tagName$p}>`
46953
46953
  };
@@ -47599,12 +47599,13 @@ const tagName$5 = 'div';
47599
47599
  const getRowExpansionActionTmpl = (attrs) => {
47600
47600
  const tag = attrs.get('widget-type') === 'anchor' ? 'a' : 'button';
47601
47601
  const directive = attrs.get('widget-type') === 'anchor' ? 'wmAnchor' : 'wmButton';
47602
+ const title = attrs.get('display-name') || attrs.get('title') || 'Collapse/Expand';
47602
47603
  return `<ng-template #rowExpansionActionTmpl let-row="row">
47603
47604
  <${tag} ${directive}
47604
47605
  ${getRowActionAttrs(attrs)}
47605
47606
  class="${attrs.get('class')} row-expansion-button"
47606
47607
  iconclass="${attrs.get('collapseicon')}"
47607
- type="button"></${tag}>
47608
+ type="button" aria-label="${title}"></${tag}>
47608
47609
  </ng-template>`;
47609
47610
  };
47610
47611
  const ɵ0$1$2 = getRowExpansionActionTmpl;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.3.0-next.137008",
3
+ "version": "11.3.0-next.137009",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {