@wavemaker/angular-codegen 11.2.0-rc.5233 → 11.2.0-rc.5235

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,7 +69,7 @@
69
69
  "tslib": "^2.0.0",
70
70
  "x2js": "3.2.6",
71
71
  "zone.js": "~0.11.4",
72
- "@wavemaker/app-ng-runtime": "11.2.0-rc.5233"
72
+ "@wavemaker/app-ng-runtime": "11.2.0-rc.5235"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -46781,10 +46781,10 @@ const addForIdAttributes = (element) => {
46781
46781
  setAttr(labelEl[0], 'for', widgetId);
46782
46782
  }
46783
46783
  }
46784
- /*Adding aria-labelledby to radioset widget*/
46784
+ /*Adding aria-labelledby to radioset, checkboxset widgets*/
46785
46785
  const ulEl = element.querySelectorAll('ul');
46786
- if (labelEl.length && ulEl.length && ulEl[0].getAttribute('role') === 'radiogroup') {
46787
- const widgetId = 'wm-radioset-label-' + generateGUId();
46786
+ if (labelEl.length && ulEl.length && (ulEl[0].getAttribute('role') === 'radiogroup' || ulEl[0].getAttribute('role') === 'group')) {
46787
+ const widgetId = 'wm-group-label-' + generateGUId();
46788
46788
  setAttr(ulEl[0], 'aria-labelledby', widgetId);
46789
46789
  setAttr(labelEl[0], 'id', widgetId);
46790
46790
  }
@@ -40714,7 +40714,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
40714
40714
  tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></div>`;
40715
40715
  break;
40716
40716
  case FormWidgetType.CHECKBOXSET:
40717
- tmpl = `<ul wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></ul>`;
40717
+ tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></ul>`;
40718
40718
  break;
40719
40719
  case FormWidgetType.CHIPS:
40720
40720
  tmpl = `<ul wmChips role="input" debouncetime="${attrs.get('debouncetime')}" ${innerTmpl}></ul>`;
@@ -42859,10 +42859,10 @@ const addForIdAttributes = (element) => {
42859
42859
  setAttr(labelEl[0], 'for', widgetId);
42860
42860
  }
42861
42861
  }
42862
- /*Adding aria-labelledby to radioset widget*/
42862
+ /*Adding aria-labelledby to radioset, checkboxset widgets*/
42863
42863
  const ulEl = element.querySelectorAll('ul');
42864
- if (labelEl.length && ulEl.length && ulEl[0].getAttribute('role') === 'radiogroup') {
42865
- const widgetId = 'wm-radioset-label-' + generateGUId();
42864
+ if (labelEl.length && ulEl.length && (ulEl[0].getAttribute('role') === 'radiogroup' || ulEl[0].getAttribute('role') === 'group')) {
42865
+ const widgetId = 'wm-group-label-' + generateGUId();
42866
42866
  setAttr(ulEl[0], 'aria-labelledby', widgetId);
42867
42867
  setAttr(labelEl[0], 'id', widgetId);
42868
42868
  }
@@ -46380,7 +46380,7 @@ var checkbox_build$1 = /*#__PURE__*/Object.freeze({
46380
46380
  const tagName$N = 'ul';
46381
46381
  register('wm-checkboxset', () => {
46382
46382
  return {
46383
- pre: attrs => `<${tagName$N} wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
46383
+ pre: attrs => `<${tagName$N} role="group" wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
46384
46384
  post: () => `</${tagName$N}>`
46385
46385
  };
46386
46386
  });
@@ -40714,7 +40714,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
40714
40714
  tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></div>`;
40715
40715
  break;
40716
40716
  case FormWidgetType.CHECKBOXSET:
40717
- tmpl = `<ul wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></ul>`;
40717
+ tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></ul>`;
40718
40718
  break;
40719
40719
  case FormWidgetType.CHIPS:
40720
40720
  tmpl = `<ul wmChips role="input" debouncetime="${attrs.get('debouncetime')}" ${innerTmpl}></ul>`;
@@ -42859,10 +42859,10 @@ const addForIdAttributes = (element) => {
42859
42859
  setAttr(labelEl[0], 'for', widgetId);
42860
42860
  }
42861
42861
  }
42862
- /*Adding aria-labelledby to radioset widget*/
42862
+ /*Adding aria-labelledby to radioset, checkboxset widgets*/
42863
42863
  const ulEl = element.querySelectorAll('ul');
42864
- if (labelEl.length && ulEl.length && ulEl[0].getAttribute('role') === 'radiogroup') {
42865
- const widgetId = 'wm-radioset-label-' + generateGUId();
42864
+ if (labelEl.length && ulEl.length && (ulEl[0].getAttribute('role') === 'radiogroup' || ulEl[0].getAttribute('role') === 'group')) {
42865
+ const widgetId = 'wm-group-label-' + generateGUId();
42866
42866
  setAttr(ulEl[0], 'aria-labelledby', widgetId);
42867
42867
  setAttr(labelEl[0], 'id', widgetId);
42868
42868
  }
@@ -46380,7 +46380,7 @@ var checkbox_build$1 = /*#__PURE__*/Object.freeze({
46380
46380
  const tagName$N = 'ul';
46381
46381
  register('wm-checkboxset', () => {
46382
46382
  return {
46383
- pre: attrs => `<${tagName$N} wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
46383
+ pre: attrs => `<${tagName$N} role="group" wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
46384
46384
  post: () => `</${tagName$N}>`
46385
46385
  };
46386
46386
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.0-rc.5233",
3
+ "version": "11.2.0-rc.5235",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {