@wavemaker/angular-codegen 11.2.5-next.23540 → 11.2.5-next.23542

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;
@@ -46043,7 +46043,7 @@ const registerFormField = (isFormField) => {
46043
46043
  const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
46044
46044
  const dataRole = isFormField ? 'form-field' : 'filter-field';
46045
46045
  const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
46046
- class="help-block text-danger" aria-hidden="false" [attr.aria-label]="${counter}.validationmessage" role="alert"
46046
+ class="help-block text-danger" aria-hidden="false" role="alert"
46047
46047
  aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
46048
46048
  const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
46049
46049
  const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
@@ -46946,7 +46946,7 @@ register('wm-page', () => {
46946
46946
  },
46947
46947
  pre: (attrs) => {
46948
46948
  const counter = idGen$8.nextUid();
46949
- return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint || 'Main page content'" ${getAttrMarkup(attrs)}>`;
46949
+ return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
46950
46950
  },
46951
46951
  post: () => `</${tagName$p}>`
46952
46952
  };
@@ -47598,12 +47598,13 @@ const tagName$5 = 'div';
47598
47598
  const getRowExpansionActionTmpl = (attrs) => {
47599
47599
  const tag = attrs.get('widget-type') === 'anchor' ? 'a' : 'button';
47600
47600
  const directive = attrs.get('widget-type') === 'anchor' ? 'wmAnchor' : 'wmButton';
47601
+ const title = attrs.get('display-name') || attrs.get('title') || 'Collapse/Expand';
47601
47602
  return `<ng-template #rowExpansionActionTmpl let-row="row">
47602
47603
  <${tag} ${directive}
47603
47604
  ${getRowActionAttrs(attrs)}
47604
47605
  class="${attrs.get('class')} row-expansion-button"
47605
47606
  iconclass="${attrs.get('collapseicon')}"
47606
- type="button"></${tag}>
47607
+ type="button" aria-label="${title}"></${tag}>
47607
47608
  </ng-template>`;
47608
47609
  };
47609
47610
  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;
@@ -46043,7 +46043,7 @@ const registerFormField = (isFormField) => {
46043
46043
  const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
46044
46044
  const dataRole = isFormField ? 'form-field' : 'filter-field';
46045
46045
  const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
46046
- class="help-block text-danger" aria-hidden="false" [attr.aria-label]="${counter}.validationmessage" role="alert"
46046
+ class="help-block text-danger" aria-hidden="false" role="alert"
46047
46047
  aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
46048
46048
  const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
46049
46049
  const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
@@ -46946,7 +46946,7 @@ register('wm-page', () => {
46946
46946
  },
46947
46947
  pre: (attrs) => {
46948
46948
  const counter = idGen$8.nextUid();
46949
- return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint || 'Main page content'" ${getAttrMarkup(attrs)}>`;
46949
+ return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
46950
46950
  },
46951
46951
  post: () => `</${tagName$p}>`
46952
46952
  };
@@ -47598,12 +47598,13 @@ const tagName$5 = 'div';
47598
47598
  const getRowExpansionActionTmpl = (attrs) => {
47599
47599
  const tag = attrs.get('widget-type') === 'anchor' ? 'a' : 'button';
47600
47600
  const directive = attrs.get('widget-type') === 'anchor' ? 'wmAnchor' : 'wmButton';
47601
+ const title = attrs.get('display-name') || attrs.get('title') || 'Collapse/Expand';
47601
47602
  return `<ng-template #rowExpansionActionTmpl let-row="row">
47602
47603
  <${tag} ${directive}
47603
47604
  ${getRowActionAttrs(attrs)}
47604
47605
  class="${attrs.get('class')} row-expansion-button"
47605
47606
  iconclass="${attrs.get('collapseicon')}"
47606
- type="button"></${tag}>
47607
+ type="button" aria-label="${title}"></${tag}>
47607
47608
  </ng-template>`;
47608
47609
  };
47609
47610
  const ɵ0$1$2 = getRowExpansionActionTmpl;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.5-next.23540",
3
+ "version": "11.2.5-next.23542",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {