@wavemaker/angular-codegen 11.2.0-rc.5234 → 11.2.0-rc.5236
Sign up to get free protection for your applications and to get access to all the features.
@@ -46781,10 +46781,10 @@ const addForIdAttributes = (element) => {
|
|
46781
46781
|
setAttr(labelEl[0], 'for', widgetId);
|
46782
46782
|
}
|
46783
46783
|
}
|
46784
|
-
/*Adding aria-labelledby to radioset
|
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-
|
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
|
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-
|
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
|
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-
|
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
|
});
|