@wavemaker/angular-codegen 11.3.0-next.137010 → 11.3.0-next.141701
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.
- angular-codegen/angular-app/package-lock.json +4 -3
- angular-codegen/angular-app/package.json +2 -2
- angular-codegen/dependencies/pipe-provider.cjs.js +7 -0
- angular-codegen/dependencies/transpilation-mobile.cjs.js +14 -7
- angular-codegen/dependencies/transpilation-web.cjs.js +14 -7
- angular-codegen/package.json +1 -1
|
@@ -5960,11 +5960,12 @@
|
|
|
5960
5960
|
}
|
|
5961
5961
|
},
|
|
5962
5962
|
"@wavemaker/variables": {
|
|
5963
|
-
"version": "11.3.0-next.
|
|
5964
|
-
"resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.3.0-next.
|
|
5965
|
-
"integrity": "sha512-
|
|
5963
|
+
"version": "11.3.0-next.141701",
|
|
5964
|
+
"resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.3.0-next.141701.tgz",
|
|
5965
|
+
"integrity": "sha512-MbiYSEkBTSQNhc2NHmrzUU12IDUTr33uLalLVicdk3KL5WOPsVYeo1ui/0uwcrth+ftrbIteYpSpGBg1dP57hw==",
|
|
5966
5966
|
"requires": {
|
|
5967
5967
|
"@metrichor/jmespath": "^0.3.1",
|
|
5968
|
+
"he": "^1.2.0",
|
|
5968
5969
|
"lodash": "^4.17.21",
|
|
5969
5970
|
"x2js": "^3.4.3"
|
|
5970
5971
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@metrichor/jmespath": "^0.3.1",
|
|
48
48
|
"@wavemaker.com/nvd3": "1.0.0",
|
|
49
49
|
"@wavemaker/focus-trap": "^1.0.0",
|
|
50
|
-
"@wavemaker/variables": "11.3.0-next.
|
|
50
|
+
"@wavemaker/variables": "11.3.0-next.141701",
|
|
51
51
|
"angular-imask": "6.0.4",
|
|
52
52
|
"angular2-websocket": "0.9.7",
|
|
53
53
|
"core-js": "2.5.4",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"tslib": "^2.0.0",
|
|
72
72
|
"x2js": "3.2.6",
|
|
73
73
|
"zone.js": "~0.11.4",
|
|
74
|
-
"@wavemaker/app-ng-runtime": "11.3.0-next.
|
|
74
|
+
"@wavemaker/app-ng-runtime": "11.3.0-next.141701"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@ampproject/rollup-plugin-closure-compiler": "0.8.5",
|
|
@@ -46782,6 +46782,13 @@ const addForIdAttributes = (element) => {
|
|
|
46782
46782
|
setAttr(labelEl[0], 'for', widgetId);
|
|
46783
46783
|
}
|
|
46784
46784
|
}
|
|
46785
|
+
/*Adding aria-labelledby to radioset, checkboxset widgets*/
|
|
46786
|
+
const ulEl = element.querySelectorAll('ul');
|
|
46787
|
+
if (labelEl.length && ulEl.length && (ulEl[0].getAttribute('role') === 'radiogroup' || ulEl[0].getAttribute('role') === 'group')) {
|
|
46788
|
+
const widgetId = 'wm-group-label-' + generateGUId();
|
|
46789
|
+
setAttr(ulEl[0], 'aria-labelledby', widgetId);
|
|
46790
|
+
setAttr(labelEl[0], 'id', widgetId);
|
|
46791
|
+
}
|
|
46785
46792
|
};
|
|
46786
46793
|
/**
|
|
46787
46794
|
* This method is used to adjust the container position
|
|
@@ -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>`;
|
|
@@ -40738,7 +40738,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
40738
40738
|
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" aria-label="Enter password" ${updateOnTmpl}></wm-input>`;
|
|
40739
40739
|
break;
|
|
40740
40740
|
case FormWidgetType.RADIOSET:
|
|
40741
|
-
tmpl = `<ul wmRadioset ${innerTmpl}></ul>`;
|
|
40741
|
+
tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl}></ul>`;
|
|
40742
40742
|
break;
|
|
40743
40743
|
case FormWidgetType.RATING:
|
|
40744
40744
|
tmpl = `<div wmRating ${innerTmpl}></div>`;
|
|
@@ -42860,6 +42860,13 @@ const addForIdAttributes = (element) => {
|
|
|
42860
42860
|
setAttr(labelEl[0], 'for', widgetId);
|
|
42861
42861
|
}
|
|
42862
42862
|
}
|
|
42863
|
+
/*Adding aria-labelledby to radioset, checkboxset widgets*/
|
|
42864
|
+
const ulEl = element.querySelectorAll('ul');
|
|
42865
|
+
if (labelEl.length && ulEl.length && (ulEl[0].getAttribute('role') === 'radiogroup' || ulEl[0].getAttribute('role') === 'group')) {
|
|
42866
|
+
const widgetId = 'wm-group-label-' + generateGUId();
|
|
42867
|
+
setAttr(ulEl[0], 'aria-labelledby', widgetId);
|
|
42868
|
+
setAttr(labelEl[0], 'id', widgetId);
|
|
42869
|
+
}
|
|
42863
42870
|
};
|
|
42864
42871
|
/**
|
|
42865
42872
|
* This method is used to adjust the container position
|
|
@@ -45515,7 +45522,7 @@ register('wm-panel', () => {
|
|
|
45515
45522
|
return {
|
|
45516
45523
|
pre: (attrs) => {
|
|
45517
45524
|
const counter = idGen$j.nextUid();
|
|
45518
|
-
return `<${tagName$1c} wmPanel #${counter}="wmPanel" partialContainer
|
|
45525
|
+
return `<${tagName$1c} wmPanel #${counter}="wmPanel" partialContainer wm-navigable-element="true" ${getAttrMarkup(attrs)}>`;
|
|
45519
45526
|
},
|
|
45520
45527
|
post: () => `</${tagName$1c}>`
|
|
45521
45528
|
};
|
|
@@ -46065,7 +46072,7 @@ const registerFormField = (isFormField) => {
|
|
|
46065
46072
|
[ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
|
|
46066
46073
|
required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
|
|
46067
46074
|
<div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
|
|
46068
|
-
<label class="form-control-static app-label"
|
|
46075
|
+
<label class="form-control-static app-label" *ngIf="!(${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload')"
|
|
46069
46076
|
[hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
|
|
46070
46077
|
${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
|
|
46071
46078
|
<span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
|
|
@@ -46380,7 +46387,7 @@ var checkbox_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
46380
46387
|
const tagName$N = 'ul';
|
|
46381
46388
|
register('wm-checkboxset', () => {
|
|
46382
46389
|
return {
|
|
46383
|
-
pre: attrs => `<${tagName$N} wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46390
|
+
pre: attrs => `<${tagName$N} role="group" wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46384
46391
|
post: () => `</${tagName$N}>`
|
|
46385
46392
|
};
|
|
46386
46393
|
});
|
|
@@ -46422,7 +46429,7 @@ var number_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
46422
46429
|
const tagName$K = 'ul';
|
|
46423
46430
|
register('wm-radioset', () => {
|
|
46424
46431
|
return {
|
|
46425
|
-
pre: attrs => `<${tagName$K} wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46432
|
+
pre: attrs => `<${tagName$K} role="radiogroup" wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46426
46433
|
post: () => `</${tagName$K}>`
|
|
46427
46434
|
};
|
|
46428
46435
|
});
|
|
@@ -47065,7 +47072,7 @@ register('wm-left-panel', () => {
|
|
|
47065
47072
|
return {
|
|
47066
47073
|
pre: (attrs) => {
|
|
47067
47074
|
const counter = idGen$4.nextUid();
|
|
47068
|
-
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel"
|
|
47075
|
+
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.hint || 'Left navigation panel'" wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${getAttrMarkup(attrs)}>`;
|
|
47069
47076
|
},
|
|
47070
47077
|
post: () => `</${tagName$i}>`
|
|
47071
47078
|
};
|
|
@@ -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>`;
|
|
@@ -40738,7 +40738,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
40738
40738
|
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" aria-label="Enter password" ${updateOnTmpl}></wm-input>`;
|
|
40739
40739
|
break;
|
|
40740
40740
|
case FormWidgetType.RADIOSET:
|
|
40741
|
-
tmpl = `<ul wmRadioset ${innerTmpl}></ul>`;
|
|
40741
|
+
tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl}></ul>`;
|
|
40742
40742
|
break;
|
|
40743
40743
|
case FormWidgetType.RATING:
|
|
40744
40744
|
tmpl = `<div wmRating ${innerTmpl}></div>`;
|
|
@@ -42860,6 +42860,13 @@ const addForIdAttributes = (element) => {
|
|
|
42860
42860
|
setAttr(labelEl[0], 'for', widgetId);
|
|
42861
42861
|
}
|
|
42862
42862
|
}
|
|
42863
|
+
/*Adding aria-labelledby to radioset, checkboxset widgets*/
|
|
42864
|
+
const ulEl = element.querySelectorAll('ul');
|
|
42865
|
+
if (labelEl.length && ulEl.length && (ulEl[0].getAttribute('role') === 'radiogroup' || ulEl[0].getAttribute('role') === 'group')) {
|
|
42866
|
+
const widgetId = 'wm-group-label-' + generateGUId();
|
|
42867
|
+
setAttr(ulEl[0], 'aria-labelledby', widgetId);
|
|
42868
|
+
setAttr(labelEl[0], 'id', widgetId);
|
|
42869
|
+
}
|
|
42863
42870
|
};
|
|
42864
42871
|
/**
|
|
42865
42872
|
* This method is used to adjust the container position
|
|
@@ -45515,7 +45522,7 @@ register('wm-panel', () => {
|
|
|
45515
45522
|
return {
|
|
45516
45523
|
pre: (attrs) => {
|
|
45517
45524
|
const counter = idGen$j.nextUid();
|
|
45518
|
-
return `<${tagName$1c} wmPanel #${counter}="wmPanel" partialContainer
|
|
45525
|
+
return `<${tagName$1c} wmPanel #${counter}="wmPanel" partialContainer wm-navigable-element="true" ${getAttrMarkup(attrs)}>`;
|
|
45519
45526
|
},
|
|
45520
45527
|
post: () => `</${tagName$1c}>`
|
|
45521
45528
|
};
|
|
@@ -46065,7 +46072,7 @@ const registerFormField = (isFormField) => {
|
|
|
46065
46072
|
[ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
|
|
46066
46073
|
required: ${pCounter}.isUpdateMode && ${counter}.required}" [textContent]="${counter}.displayname"> </label>
|
|
46067
46074
|
<div [ngClass]="${counter}.displayname ? ${pCounter}._widgetClass : '${controlLayout}'">
|
|
46068
|
-
<label class="form-control-static app-label"
|
|
46075
|
+
<label class="form-control-static app-label" *ngIf="!(${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload')"
|
|
46069
46076
|
[hidden]="${pCounter}.isUpdateMode || ${counter}.viewmodewidget === 'default' || ${counter}.widgettype === 'upload'" [innerHTML]="${getCaptionByWidget(attrs, widgetType, counter)}"></label>
|
|
46070
46077
|
${getTemplate(attrs, widgetType, eventsTmpl, counter, pCounter, isInList)}
|
|
46071
46078
|
<span aria-hidden="true" *ngIf="${counter}.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>
|
|
@@ -46380,7 +46387,7 @@ var checkbox_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
46380
46387
|
const tagName$N = 'ul';
|
|
46381
46388
|
register('wm-checkboxset', () => {
|
|
46382
46389
|
return {
|
|
46383
|
-
pre: attrs => `<${tagName$N} wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46390
|
+
pre: attrs => `<${tagName$N} role="group" wmCheckboxset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46384
46391
|
post: () => `</${tagName$N}>`
|
|
46385
46392
|
};
|
|
46386
46393
|
});
|
|
@@ -46422,7 +46429,7 @@ var number_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
46422
46429
|
const tagName$K = 'ul';
|
|
46423
46430
|
register('wm-radioset', () => {
|
|
46424
46431
|
return {
|
|
46425
|
-
pre: attrs => `<${tagName$K} wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46432
|
+
pre: attrs => `<${tagName$K} role="radiogroup" wmRadioset ${getFormMarkupAttr(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
46426
46433
|
post: () => `</${tagName$K}>`
|
|
46427
46434
|
};
|
|
46428
46435
|
});
|
|
@@ -47065,7 +47072,7 @@ register('wm-left-panel', () => {
|
|
|
47065
47072
|
return {
|
|
47066
47073
|
pre: (attrs) => {
|
|
47067
47074
|
const counter = idGen$4.nextUid();
|
|
47068
|
-
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel"
|
|
47075
|
+
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.hint || 'Left navigation panel'" wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${getAttrMarkup(attrs)}>`;
|
|
47069
47076
|
},
|
|
47070
47077
|
post: () => `</${tagName$i}>`
|
|
47071
47078
|
};
|