@wavemaker/angular-codegen 11.2.0-rc.5230 → 11.2.0-rc.5232
Sign up to get free protection for your applications and to get access to all the features.
@@ -46781,6 +46781,13 @@ const addForIdAttributes = (element) => {
|
|
46781
46781
|
setAttr(labelEl[0], 'for', widgetId);
|
46782
46782
|
}
|
46783
46783
|
}
|
46784
|
+
/*Adding aria-labelledby to radioset widget*/
|
46785
|
+
const ulEl = element.querySelectorAll('ul');
|
46786
|
+
if (labelEl.length && ulEl.length && ulEl[0].getAttribute('role') === 'radiogroup') {
|
46787
|
+
const widgetId = 'wm-radioset-label-' + generateGUId();
|
46788
|
+
setAttr(ulEl[0], 'aria-labelledby', widgetId);
|
46789
|
+
setAttr(labelEl[0], 'id', widgetId);
|
46790
|
+
}
|
46784
46791
|
};
|
46785
46792
|
/**
|
46786
46793
|
* This method is used to adjust the container position
|
@@ -42859,6 +42859,13 @@ const addForIdAttributes = (element) => {
|
|
42859
42859
|
setAttr(labelEl[0], 'for', widgetId);
|
42860
42860
|
}
|
42861
42861
|
}
|
42862
|
+
/*Adding aria-labelledby to radioset widget*/
|
42863
|
+
const ulEl = element.querySelectorAll('ul');
|
42864
|
+
if (labelEl.length && ulEl.length && ulEl[0].getAttribute('role') === 'radiogroup') {
|
42865
|
+
const widgetId = 'wm-radioset-label-' + generateGUId();
|
42866
|
+
setAttr(ulEl[0], 'aria-labelledby', widgetId);
|
42867
|
+
setAttr(labelEl[0], 'id', widgetId);
|
42868
|
+
}
|
42862
42869
|
};
|
42863
42870
|
/**
|
42864
42871
|
* This method is used to adjust the container position
|
@@ -46058,7 +46065,7 @@ const registerFormField = (isFormField) => {
|
|
46058
46065
|
[ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
|
46059
46066
|
required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
|
46060
46067
|
<div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
|
46061
|
-
<label class="form-control-static app-label"
|
46068
|
+
<label class="form-control-static app-label" *ngIf="!(${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload')"
|
46062
46069
|
[hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
|
46063
46070
|
${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
|
46064
46071
|
<span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
|
@@ -46415,7 +46422,7 @@ var number_build$1 = /*#__PURE__*/Object.freeze({
|
|
46415
46422
|
const tagName$K = 'ul';
|
46416
46423
|
register('wm-radioset', () => {
|
46417
46424
|
return {
|
46418
|
-
pre: attrs => `<${tagName$K} wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
46425
|
+
pre: attrs => `<${tagName$K} role="radiogroup" wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
46419
46426
|
post: () => `</${tagName$K}>`
|
46420
46427
|
};
|
46421
46428
|
});
|
@@ -42859,6 +42859,13 @@ const addForIdAttributes = (element) => {
|
|
42859
42859
|
setAttr(labelEl[0], 'for', widgetId);
|
42860
42860
|
}
|
42861
42861
|
}
|
42862
|
+
/*Adding aria-labelledby to radioset widget*/
|
42863
|
+
const ulEl = element.querySelectorAll('ul');
|
42864
|
+
if (labelEl.length && ulEl.length && ulEl[0].getAttribute('role') === 'radiogroup') {
|
42865
|
+
const widgetId = 'wm-radioset-label-' + generateGUId();
|
42866
|
+
setAttr(ulEl[0], 'aria-labelledby', widgetId);
|
42867
|
+
setAttr(labelEl[0], 'id', widgetId);
|
42868
|
+
}
|
42862
42869
|
};
|
42863
42870
|
/**
|
42864
42871
|
* This method is used to adjust the container position
|
@@ -46058,7 +46065,7 @@ const registerFormField = (isFormField) => {
|
|
46058
46065
|
[ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
|
46059
46066
|
required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
|
46060
46067
|
<div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
|
46061
|
-
<label class="form-control-static app-label"
|
46068
|
+
<label class="form-control-static app-label" *ngIf="!(${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload')"
|
46062
46069
|
[hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
|
46063
46070
|
${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
|
46064
46071
|
<span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
|
@@ -46415,7 +46422,7 @@ var number_build$1 = /*#__PURE__*/Object.freeze({
|
|
46415
46422
|
const tagName$K = 'ul';
|
46416
46423
|
register('wm-radioset', () => {
|
46417
46424
|
return {
|
46418
|
-
pre: attrs => `<${tagName$K} wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
46425
|
+
pre: attrs => `<${tagName$K} role="radiogroup" wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
46419
46426
|
post: () => `</${tagName$K}>`
|
46420
46427
|
};
|
46421
46428
|
});
|