@wavemaker/angular-codegen 12.0.0-next.141165 → 12.0.0-next.141174
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 +5 -4
- angular-codegen/angular-app/package.json +3 -3
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/dependencies/pipe-provider.cjs.js +7 -5
- angular-codegen/dependencies/transpilation-mobile.cjs.js +55 -46
- angular-codegen/dependencies/transpilation-web.cjs.js +55 -46
- angular-codegen/package.json +1 -1
|
@@ -97295,7 +97295,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
97295
97295
|
tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${showTmpl}></ul>`;
|
|
97296
97296
|
break;
|
|
97297
97297
|
case FormWidgetType.CHIPS:
|
|
97298
|
-
tmpl = `<ul wmChips
|
|
97298
|
+
tmpl = `<ul wmChips debouncetime="${attrs.get('debouncetime')}" ${innerTmpl} ${showTmpl}></ul>`;
|
|
97299
97299
|
break;
|
|
97300
97300
|
case FormWidgetType.COLORPICKER:
|
|
97301
97301
|
tmpl = `<div wmColorPicker ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
|
|
@@ -97310,10 +97310,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
97310
97310
|
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
|
97311
97311
|
break;
|
|
97312
97312
|
case FormWidgetType.NUMBER:
|
|
97313
|
-
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number"
|
|
97313
|
+
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number" ${updateOnTmpl} ${showTmpl}></div>`;
|
|
97314
97314
|
break;
|
|
97315
97315
|
case FormWidgetType.PASSWORD:
|
|
97316
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password"
|
|
97316
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" ${updateOnTmpl} ${showTmpl}></wm-input>`;
|
|
97317
97317
|
break;
|
|
97318
97318
|
case FormWidgetType.RADIOSET:
|
|
97319
97319
|
tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl} ${showTmpl}></ul>`;
|
|
@@ -97328,7 +97328,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
97328
97328
|
tmpl = `<wm-select ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></wm-select>`;
|
|
97329
97329
|
break;
|
|
97330
97330
|
case FormWidgetType.TOGGLE:
|
|
97331
|
-
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle"
|
|
97331
|
+
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" ${showTmpl}></div>`;
|
|
97332
97332
|
break;
|
|
97333
97333
|
case FormWidgetType.SLIDER:
|
|
97334
97334
|
tmpl = `<div wmSlider ${innerTmpl} ${showTmpl}></div>`;
|
|
@@ -97341,13 +97341,13 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
97341
97341
|
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl} ${showTmpl}></wm-input>`;
|
|
97342
97342
|
break;
|
|
97343
97343
|
case FormWidgetType.TEXTAREA:
|
|
97344
|
-
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}
|
|
97344
|
+
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${showTmpl}></wm-textarea>`;
|
|
97345
97345
|
break;
|
|
97346
97346
|
case FormWidgetType.TIME:
|
|
97347
97347
|
tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
|
97348
97348
|
break;
|
|
97349
97349
|
case FormWidgetType.TIMESTAMP:
|
|
97350
|
-
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}
|
|
97350
|
+
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
|
97351
97351
|
break;
|
|
97352
97352
|
case FormWidgetType.UPLOAD:
|
|
97353
97353
|
const counter = options.counter;
|
|
@@ -98193,7 +98193,6 @@ const REGEX = {
|
|
|
98193
98193
|
IPOD: /iPod/i,
|
|
98194
98194
|
IPAD: /iPad/i,
|
|
98195
98195
|
MAC: /Mac/i,
|
|
98196
|
-
MACINTEL: /MacIntel/i,
|
|
98197
98196
|
ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
|
|
98198
98197
|
MOBILE: /Mobile/i,
|
|
98199
98198
|
WINDOWS: /Windows Phone/i,
|
|
@@ -98237,9 +98236,10 @@ const isAndroidTablet = () => REGEX.ANDROID_TABLET.test(userAgent) && !((/Tablet
|
|
|
98237
98236
|
const isIphone = () => REGEX.IPHONE.test(userAgent);
|
|
98238
98237
|
const isIpod = () => REGEX.IPOD.test(userAgent);
|
|
98239
98238
|
const isIpad = () => {
|
|
98240
|
-
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 &&
|
|
98239
|
+
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
|
|
98241
98240
|
};
|
|
98242
98241
|
const isIos = () => isIphone() || isIpod() || isIpad();
|
|
98242
|
+
const isSafari = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
|
98243
98243
|
const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
|
|
98244
98244
|
const width = landScapeWidth || '1366px';
|
|
98245
98245
|
const height = landScapeHeight || '1024px';
|
|
@@ -99705,6 +99705,7 @@ var Utils = /*#__PURE__*/Object.freeze({
|
|
|
99705
99705
|
isNumberType: isNumberType,
|
|
99706
99706
|
isObject: isObject,
|
|
99707
99707
|
isPageable: isPageable,
|
|
99708
|
+
isSafari: isSafari,
|
|
99708
99709
|
isTablet: isTablet,
|
|
99709
99710
|
isValidWebURL: isValidWebURL,
|
|
99710
99711
|
isVideoFile: isVideoFile,
|
|
@@ -101542,13 +101543,13 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
|
|
|
101542
101543
|
|
|
101543
101544
|
const carouselTagName = 'carousel';
|
|
101544
101545
|
const dataSetKey$5 = 'dataset';
|
|
101545
|
-
const idGen$
|
|
101546
|
+
const idGen$t = new IDGenerator('wm_carousel_ref_');
|
|
101546
101547
|
const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
|
|
101547
101548
|
register('wm-carousel', () => {
|
|
101548
101549
|
return {
|
|
101549
101550
|
pre: (attrs, shared) => {
|
|
101550
101551
|
// generating unique Id for the carousel
|
|
101551
|
-
const counter = idGen$
|
|
101552
|
+
const counter = idGen$t.nextUid();
|
|
101552
101553
|
shared.set('carousel_ref', counter);
|
|
101553
101554
|
return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
|
|
101554
101555
|
},
|
|
@@ -101650,12 +101651,12 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
101650
101651
|
});
|
|
101651
101652
|
|
|
101652
101653
|
const tagName$1A = 'a';
|
|
101653
|
-
const idGen$
|
|
101654
|
+
const idGen$s = new IDGenerator('wm_anchor');
|
|
101654
101655
|
register('wm-anchor', () => {
|
|
101655
101656
|
return {
|
|
101656
101657
|
pre: (attrs) => {
|
|
101657
|
-
const counter = idGen$
|
|
101658
|
-
return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.
|
|
101658
|
+
const counter = idGen$s.nextUid();
|
|
101659
|
+
return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${getAttrMarkup(attrs)}>`;
|
|
101659
101660
|
},
|
|
101660
101661
|
post: () => `</${tagName$1A}>`
|
|
101661
101662
|
};
|
|
@@ -101682,12 +101683,12 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
101682
101683
|
});
|
|
101683
101684
|
|
|
101684
101685
|
const tagName$1y = 'div';
|
|
101685
|
-
const idGen$
|
|
101686
|
+
const idGen$r = new IDGenerator('wm_html');
|
|
101686
101687
|
register('wm-html', () => {
|
|
101687
101688
|
return {
|
|
101688
101689
|
pre: (attrs) => {
|
|
101689
|
-
const counter = idGen$
|
|
101690
|
-
return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.
|
|
101690
|
+
const counter = idGen$r.nextUid();
|
|
101691
|
+
return `<${tagName$1y} wmHtml #${counter}="wmHtml" role="application" [attr.aria-label]="${counter}.arialabel || 'HTML content'" ${getAttrMarkup(attrs)}>`;
|
|
101691
101692
|
},
|
|
101692
101693
|
post: () => `</${tagName$1y}>`
|
|
101693
101694
|
};
|
|
@@ -101702,7 +101703,7 @@ var html_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
101702
101703
|
const tagName$1x = 'span';
|
|
101703
101704
|
register('wm-icon', () => {
|
|
101704
101705
|
return {
|
|
101705
|
-
pre: attrs => `<${tagName$1x} wmIcon
|
|
101706
|
+
pre: attrs => `<${tagName$1x} wmIcon ${getAttrMarkup(attrs)}>`,
|
|
101706
101707
|
post: () => `</${tagName$1x}>`
|
|
101707
101708
|
};
|
|
101708
101709
|
});
|
|
@@ -101728,7 +101729,7 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
101728
101729
|
});
|
|
101729
101730
|
|
|
101730
101731
|
let tagName$1v = 'p';
|
|
101731
|
-
const idGen$
|
|
101732
|
+
const idGen$q = new IDGenerator('wm_label');
|
|
101732
101733
|
register('wm-label', () => {
|
|
101733
101734
|
return {
|
|
101734
101735
|
pre: (attrs) => {
|
|
@@ -101742,8 +101743,8 @@ register('wm-label', () => {
|
|
|
101742
101743
|
else {
|
|
101743
101744
|
tagName$1v = 'label';
|
|
101744
101745
|
}
|
|
101745
|
-
const counter = idGen$
|
|
101746
|
-
return `<${tagName$1v} wmLabel #${counter}="wmLabel"
|
|
101746
|
+
const counter = idGen$q.nextUid();
|
|
101747
|
+
return `<${tagName$1v} wmLabel #${counter}="wmLabel" ${getAttrMarkup(attrs)}>`;
|
|
101747
101748
|
},
|
|
101748
101749
|
post: () => `</${tagName$1v}>`
|
|
101749
101750
|
};
|
|
@@ -101756,12 +101757,12 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
101756
101757
|
});
|
|
101757
101758
|
|
|
101758
101759
|
const tagName$1u = 'img';
|
|
101759
|
-
const idGen$
|
|
101760
|
+
const idGen$p = new IDGenerator('wm_picture');
|
|
101760
101761
|
register('wm-picture', () => {
|
|
101761
101762
|
return {
|
|
101762
101763
|
pre: (attrs) => {
|
|
101763
|
-
const counter = idGen$
|
|
101764
|
-
return `<${tagName$1u} wmPicture #${counter}="wmPicture" alt="
|
|
101764
|
+
const counter = idGen$p.nextUid();
|
|
101765
|
+
return `<${tagName$1u} wmPicture #${counter}="wmPicture" [alt]="${counter}.alttext" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.arialabel || 'Image'" ${getAttrMarkup(attrs)}>`;
|
|
101765
101766
|
}
|
|
101766
101767
|
};
|
|
101767
101768
|
});
|
|
@@ -101773,12 +101774,12 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
101773
101774
|
});
|
|
101774
101775
|
|
|
101775
101776
|
const tagName$1t = 'div';
|
|
101776
|
-
const idGen$
|
|
101777
|
+
const idGen$o = new IDGenerator('wm_spinner');
|
|
101777
101778
|
register('wm-spinner', () => {
|
|
101778
101779
|
return {
|
|
101779
101780
|
pre: (attrs) => {
|
|
101780
|
-
const counter = idGen$
|
|
101781
|
-
return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.
|
|
101781
|
+
const counter = idGen$o.nextUid();
|
|
101782
|
+
return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.arialabel || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
|
|
101782
101783
|
},
|
|
101783
101784
|
post: () => `</${tagName$1t}>`
|
|
101784
101785
|
};
|
|
@@ -101830,9 +101831,13 @@ var progressBar_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
101830
101831
|
});
|
|
101831
101832
|
|
|
101832
101833
|
const tagName$1r = 'div';
|
|
101834
|
+
const idGen$n = new IDGenerator('wm_progress_circle');
|
|
101833
101835
|
register('wm-progress-circle', () => {
|
|
101834
101836
|
return {
|
|
101835
|
-
pre: attrs =>
|
|
101837
|
+
pre: (attrs) => {
|
|
101838
|
+
const counter = idGen$n.nextUid();
|
|
101839
|
+
return `<${tagName$1r} wmProgressCircle #${counter}="wmProgressCircle" role="progressbar" [attr.aria-label]="${counter}.arialabel || 'circle-progress'" [attr.hint]="${counter}.hint" [attr.aria-valuetext]="${counter}.displayValue" [attr.aria-valuemin]="${counter}.minvalue" [attr.aria-valuemax]="${counter}.maxvalue" ${getAttrMarkup(attrs)}>`;
|
|
101840
|
+
},
|
|
101836
101841
|
post: () => `</${tagName$1r}>`
|
|
101837
101842
|
};
|
|
101838
101843
|
});
|
|
@@ -101849,7 +101854,7 @@ register('wm-richtexteditor', () => {
|
|
|
101849
101854
|
return {
|
|
101850
101855
|
pre: (attrs) => {
|
|
101851
101856
|
const counter = idGen$m.nextUid();
|
|
101852
|
-
return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.
|
|
101857
|
+
return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.arialabel || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
|
|
101853
101858
|
},
|
|
101854
101859
|
post: () => `</${tagName$1q}>`
|
|
101855
101860
|
};
|
|
@@ -102214,7 +102219,7 @@ var tabPane_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
102214
102219
|
const tagName$17 = 'div';
|
|
102215
102220
|
register('wm-tile', () => {
|
|
102216
102221
|
return {
|
|
102217
|
-
pre: attrs => `<${tagName$17} wmTile
|
|
102222
|
+
pre: attrs => `<${tagName$17} wmTile wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
|
|
102218
102223
|
post: () => `</${tagName$17}>`
|
|
102219
102224
|
};
|
|
102220
102225
|
});
|
|
@@ -102264,7 +102269,7 @@ register('wm-barcodescanner', () => {
|
|
|
102264
102269
|
return {
|
|
102265
102270
|
pre: (attrs) => {
|
|
102266
102271
|
const counter = idGen$g.nextUid();
|
|
102267
|
-
return `<${tagName$14} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.
|
|
102272
|
+
return `<${tagName$14} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.arialabel || 'Barcode scanner'" ${getAttrMarkup(attrs)}>`;
|
|
102268
102273
|
},
|
|
102269
102274
|
post: () => `</${tagName$14}>`
|
|
102270
102275
|
};
|
|
@@ -102282,7 +102287,7 @@ register('wm-camera', () => {
|
|
|
102282
102287
|
return {
|
|
102283
102288
|
pre: (attrs) => {
|
|
102284
102289
|
const counter = idGen$f.nextUid();
|
|
102285
|
-
return `<${tagName$13} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.
|
|
102290
|
+
return `<${tagName$13} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.arialabel || 'Camera'" ${getAttrMarkup(attrs)}>`;
|
|
102286
102291
|
},
|
|
102287
102292
|
post: () => `</${tagName$13}>`
|
|
102288
102293
|
};
|
|
@@ -102297,7 +102302,7 @@ var camera_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
102297
102302
|
const tagName$12 = 'div';
|
|
102298
102303
|
register('wm-alertdialog', () => {
|
|
102299
102304
|
return {
|
|
102300
|
-
pre: attrs => `<${tagName$12} wmAlertDialog
|
|
102305
|
+
pre: attrs => `<${tagName$12} wmAlertDialog wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
|
|
102301
102306
|
post: () => `</${tagName$12}>`
|
|
102302
102307
|
};
|
|
102303
102308
|
});
|
|
@@ -102605,7 +102610,7 @@ const registerFormField = (isFormField) => {
|
|
|
102605
102610
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
|
102606
102611
|
const formFieldErrorMsgId = 'wmform-field-error-' + generateGUId();
|
|
102607
102612
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
|
102608
|
-
class="help-block text-danger" aria-hidden="false"
|
|
102613
|
+
class="help-block text-danger" aria-hidden="false" role="alert"
|
|
102609
102614
|
aria-live="assertive" [attr.aria-label]="${counter}.validationmessage" id="${formFieldErrorMsgId}"><span aria-hidden="true" [textContent]="${counter}.validationmessage"></span></p>` : '';
|
|
102610
102615
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
|
102611
102616
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
|
@@ -102834,7 +102839,7 @@ register('wm-calendar', () => {
|
|
|
102834
102839
|
return {
|
|
102835
102840
|
pre: (attrs) => {
|
|
102836
102841
|
let viewType = attrs.get('view') ? attrs.get('view') + ' view' : 'month view';
|
|
102837
|
-
return `<${tagName$U} wmCalendar redrawable style="width:100%" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
|
|
102842
|
+
return `<${tagName$U} wmCalendar redrawable style="width:100%" role="region" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
|
|
102838
102843
|
},
|
|
102839
102844
|
post: () => `</${tagName$U}>`
|
|
102840
102845
|
};
|
|
@@ -102863,7 +102868,7 @@ var chips_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
102863
102868
|
const tagName$S = 'div';
|
|
102864
102869
|
register('wm-colorpicker', () => {
|
|
102865
102870
|
return {
|
|
102866
|
-
pre: attrs => `<${tagName$S} wmColorPicker ${getAttrMarkup(attrs)}
|
|
102871
|
+
pre: attrs => `<${tagName$S} wmColorPicker ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
102867
102872
|
post: () => `</${tagName$S}>`
|
|
102868
102873
|
};
|
|
102869
102874
|
});
|
|
@@ -102877,7 +102882,7 @@ var colorPicker_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
102877
102882
|
const tagName$R = 'div';
|
|
102878
102883
|
register('wm-currency', () => {
|
|
102879
102884
|
return {
|
|
102880
|
-
pre: attrs => `<${tagName$R} wmCurrency ${getAttrMarkup(attrs)}
|
|
102885
|
+
pre: attrs => `<${tagName$R} wmCurrency ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
102881
102886
|
post: () => `</${tagName$R}>`
|
|
102882
102887
|
};
|
|
102883
102888
|
});
|
|
@@ -102891,7 +102896,7 @@ var currency_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
102891
102896
|
const tagName$Q = 'div';
|
|
102892
102897
|
register('wm-buttongroup', () => {
|
|
102893
102898
|
return {
|
|
102894
|
-
pre: attrs => `<${tagName$Q} wmButtonGroup role="group"
|
|
102899
|
+
pre: attrs => `<${tagName$Q} wmButtonGroup role="group" ${getAttrMarkup(attrs)}>`,
|
|
102895
102900
|
post: () => `</${tagName$Q}>`
|
|
102896
102901
|
};
|
|
102897
102902
|
});
|
|
@@ -102908,7 +102913,7 @@ register('wm-button', () => {
|
|
|
102908
102913
|
return {
|
|
102909
102914
|
pre: (attrs) => {
|
|
102910
102915
|
const counter = idGen$c.nextUid();
|
|
102911
|
-
return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.
|
|
102916
|
+
return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${getAttrMarkup(attrs)}>`;
|
|
102912
102917
|
},
|
|
102913
102918
|
post: () => `</${tagName$P}>`
|
|
102914
102919
|
};
|
|
@@ -103010,7 +103015,7 @@ register('wm-switch', () => {
|
|
|
103010
103015
|
return {
|
|
103011
103016
|
pre: (attrs) => {
|
|
103012
103017
|
const counter = idGen$b.nextUid();
|
|
103013
|
-
return `<${tagName$I} wmSwitch #${counter}="wmSwitch" [attr.aria-label]="${counter}.
|
|
103018
|
+
return `<${tagName$I} wmSwitch #${counter}="wmSwitch" role="group" [attr.aria-label]="${counter}.arialabel || 'Switch choose options'" ${getFormMarkupAttr(attrs)} ${getNgModelAttr(attrs)}>`;
|
|
103014
103019
|
},
|
|
103015
103020
|
post: () => `</${tagName$I}>`
|
|
103016
103021
|
};
|
|
@@ -103100,6 +103105,10 @@ register('wm-fileupload', () => {
|
|
|
103100
103105
|
const onSelectBinding = getDataSource(attrs.get('select.event'));
|
|
103101
103106
|
attrs.set('datasource.bind', onSelectBinding);
|
|
103102
103107
|
}
|
|
103108
|
+
if (attrs.get('delete.event')) {
|
|
103109
|
+
const onDeleteBinding = getDataSource(attrs.get('delete.event'));
|
|
103110
|
+
attrs.set('deletedatasource.bind', onDeleteBinding);
|
|
103111
|
+
}
|
|
103103
103112
|
return `<${tagName$C} wmFileUpload ${getAttrMarkup(attrs)} role="input">`;
|
|
103104
103113
|
},
|
|
103105
103114
|
post: () => `</${tagName$C}>`
|
|
@@ -103517,7 +103526,7 @@ register('wm-page', () => {
|
|
|
103517
103526
|
},
|
|
103518
103527
|
pre: (attrs) => {
|
|
103519
103528
|
const counter = idGen$8.nextUid();
|
|
103520
|
-
return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.
|
|
103529
|
+
return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
|
|
103521
103530
|
},
|
|
103522
103531
|
post: () => `</${tagName$p}>`
|
|
103523
103532
|
};
|
|
@@ -103535,7 +103544,7 @@ register('wm-layout', () => {
|
|
|
103535
103544
|
return {
|
|
103536
103545
|
pre: (attrs) => {
|
|
103537
103546
|
const counter = idGen$7.nextUid();
|
|
103538
|
-
return `<${tagName$o} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.
|
|
103547
|
+
return `<${tagName$o} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
|
|
103539
103548
|
},
|
|
103540
103549
|
post: () => `</${tagName$o}>`
|
|
103541
103550
|
};
|
|
@@ -103595,7 +103604,7 @@ register('wm-footer', () => {
|
|
|
103595
103604
|
return {
|
|
103596
103605
|
pre: (attrs) => {
|
|
103597
103606
|
const counter = idGen$6.nextUid();
|
|
103598
|
-
return `<${tagName$k} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.
|
|
103607
|
+
return `<${tagName$k} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.arialabel || 'Page footer'" ${getAttrMarkup(attrs)}>`;
|
|
103599
103608
|
},
|
|
103600
103609
|
post: () => `</${tagName$k}>`
|
|
103601
103610
|
};
|
|
@@ -103613,7 +103622,7 @@ register('wm-header', () => {
|
|
|
103613
103622
|
return {
|
|
103614
103623
|
pre: (attrs) => {
|
|
103615
103624
|
const counter = idGen$5.nextUid();
|
|
103616
|
-
return `<${tagName$j} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.
|
|
103625
|
+
return `<${tagName$j} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.arialabel || 'Page header'" ${getAttrMarkup(attrs)}>`;
|
|
103617
103626
|
},
|
|
103618
103627
|
post: () => `</${tagName$j}>`
|
|
103619
103628
|
};
|
|
@@ -103631,7 +103640,7 @@ register('wm-left-panel', () => {
|
|
|
103631
103640
|
return {
|
|
103632
103641
|
pre: (attrs) => {
|
|
103633
103642
|
const counter = idGen$4.nextUid();
|
|
103634
|
-
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.
|
|
103643
|
+
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.arialabel || 'Left navigation panel'" wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${getAttrMarkup(attrs)}>`;
|
|
103635
103644
|
},
|
|
103636
103645
|
post: () => `</${tagName$i}>`
|
|
103637
103646
|
};
|
|
@@ -103663,7 +103672,7 @@ register('wm-right-panel', () => {
|
|
|
103663
103672
|
return {
|
|
103664
103673
|
pre: (attrs) => {
|
|
103665
103674
|
const counter = idGen$3.nextUid();
|
|
103666
|
-
return `<${tagName$g} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.
|
|
103675
|
+
return `<${tagName$g} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.arialabel || 'Right navigation panel'" ${getAttrMarkup(attrs)}>`;
|
|
103667
103676
|
},
|
|
103668
103677
|
post: () => `</${tagName$g}>`
|
|
103669
103678
|
};
|
|
@@ -103729,7 +103738,7 @@ register('wm-top-nav', () => {
|
|
|
103729
103738
|
return {
|
|
103730
103739
|
pre: (attrs) => {
|
|
103731
103740
|
const counter = idGen$2.nextUid();
|
|
103732
|
-
return `<${tagName$d} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.
|
|
103741
|
+
return `<${tagName$d} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.arialabel || 'Second level navigation'" ${getAttrMarkup(attrs)}>`;
|
|
103733
103742
|
},
|
|
103734
103743
|
post: () => `</${tagName$d}>`
|
|
103735
103744
|
};
|