@wavemaker/angular-codegen 12.0.0-next.45104 → 12.0.0-next.45128
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/angular.json +13 -1
- angular-codegen/angular-app/build-scripts/update-version.js +24 -0
- angular-codegen/angular-app/package-lock.json +5808 -10278
- angular-codegen/angular-app/package.json +20 -13
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/angular-app/src/setup-jest.js +1 -0
- angular-codegen/dependencies/pipe-provider.cjs.js +31 -25
- angular-codegen/dependencies/transpilation-mobile.cjs.js +57 -47
- angular-codegen/dependencies/transpilation-web.cjs.js +57 -47
- angular-codegen/package.json +1 -1
@@ -97417,7 +97417,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
97417
97417
|
tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${showTmpl}></ul>`;
|
97418
97418
|
break;
|
97419
97419
|
case FormWidgetType.CHIPS:
|
97420
|
-
tmpl = `<ul wmChips
|
97420
|
+
tmpl = `<ul wmChips debouncetime="${attrs.get('debouncetime')}" ${innerTmpl} ${showTmpl}></ul>`;
|
97421
97421
|
break;
|
97422
97422
|
case FormWidgetType.COLORPICKER:
|
97423
97423
|
tmpl = `<div wmColorPicker ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
|
@@ -97435,10 +97435,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
97435
97435
|
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
97436
97436
|
break;
|
97437
97437
|
case FormWidgetType.NUMBER:
|
97438
|
-
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number"
|
97438
|
+
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number" ${updateOnTmpl} ${showTmpl}></div>`;
|
97439
97439
|
break;
|
97440
97440
|
case FormWidgetType.PASSWORD:
|
97441
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password"
|
97441
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" ${updateOnTmpl} ${showTmpl}></wm-input>`;
|
97442
97442
|
break;
|
97443
97443
|
case FormWidgetType.RADIOSET:
|
97444
97444
|
tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl} ${showTmpl}></ul>`;
|
@@ -97453,7 +97453,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
97453
97453
|
tmpl = `<wm-select ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></wm-select>`;
|
97454
97454
|
break;
|
97455
97455
|
case FormWidgetType.TOGGLE:
|
97456
|
-
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle"
|
97456
|
+
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" ${showTmpl}></div>`;
|
97457
97457
|
break;
|
97458
97458
|
case FormWidgetType.SLIDER:
|
97459
97459
|
tmpl = `<div wmSlider ${innerTmpl} ${showTmpl}></div>`;
|
@@ -97466,13 +97466,13 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
97466
97466
|
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl} ${showTmpl}></wm-input>`;
|
97467
97467
|
break;
|
97468
97468
|
case FormWidgetType.TEXTAREA:
|
97469
|
-
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}
|
97469
|
+
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${showTmpl}></wm-textarea>`;
|
97470
97470
|
break;
|
97471
97471
|
case FormWidgetType.TIME:
|
97472
97472
|
tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
97473
97473
|
break;
|
97474
97474
|
case FormWidgetType.TIMESTAMP:
|
97475
|
-
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}
|
97475
|
+
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
97476
97476
|
break;
|
97477
97477
|
case FormWidgetType.UPLOAD:
|
97478
97478
|
const counter = options.counter;
|
@@ -98321,7 +98321,6 @@ const REGEX = {
|
|
98321
98321
|
IPOD: /iPod/i,
|
98322
98322
|
IPAD: /iPad/i,
|
98323
98323
|
MAC: /Mac/i,
|
98324
|
-
MACINTEL: /MacIntel/i,
|
98325
98324
|
ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
|
98326
98325
|
MOBILE: /Mobile/i,
|
98327
98326
|
WINDOWS: /Windows Phone/i,
|
@@ -98373,9 +98372,10 @@ const isAndroidTablet = () => REGEX.ANDROID_TABLET.test(userAgent) && !((/Tablet
|
|
98373
98372
|
const isIphone = () => REGEX.IPHONE.test(userAgent);
|
98374
98373
|
const isIpod = () => REGEX.IPOD.test(userAgent);
|
98375
98374
|
const isIpad = () => {
|
98376
|
-
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 &&
|
98375
|
+
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
|
98377
98376
|
};
|
98378
98377
|
const isIos = () => isIphone() || isIpod() || isIpad();
|
98378
|
+
const isSafari = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
98379
98379
|
const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
|
98380
98380
|
const width = landScapeWidth || '1366px';
|
98381
98381
|
const height = landScapeHeight || '1024px';
|
@@ -98597,7 +98597,7 @@ const getFormattedDate = (datePipe, dateObj, format, timeZone, isTimeStampType,
|
|
98597
98597
|
if (format === 'UTC') {
|
98598
98598
|
return new Date(dateObj).toISOString();
|
98599
98599
|
}
|
98600
|
-
if (timeZone) {
|
98600
|
+
if (timeZone && timeZone !== moment.defaultZone?.name) {
|
98601
98601
|
const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
|
98602
98602
|
if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
|
98603
98603
|
return moment(dateObj).format(momentFormat);
|
@@ -98989,6 +98989,7 @@ const isEqualWithFields = (obj1, obj2, compareBy) => {
|
|
98989
98989
|
// compareBy can be 'id' or 'id1, id2' or 'id1, id2:id3'
|
98990
98990
|
// Split the compareby comma separated values
|
98991
98991
|
let _compareBy = isArray$1(compareBy) ? compareBy : split(compareBy, ',');
|
98992
|
+
//@ts-ignore
|
98992
98993
|
_compareBy = map$1(_compareBy, trim);
|
98993
98994
|
return isEqualWith(obj1, obj2, function (o1, o2) {
|
98994
98995
|
return every(_compareBy, function (cb) {
|
@@ -99843,6 +99844,7 @@ var Utils = /*#__PURE__*/Object.freeze({
|
|
99843
99844
|
isNumberType: isNumberType,
|
99844
99845
|
isObject: isObject,
|
99845
99846
|
isPageable: isPageable,
|
99847
|
+
isSafari: isSafari,
|
99846
99848
|
isTablet: isTablet,
|
99847
99849
|
isValidWebURL: isValidWebURL,
|
99848
99850
|
isVideoFile: isVideoFile,
|
@@ -101685,13 +101687,13 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
|
|
101685
101687
|
|
101686
101688
|
const carouselTagName = 'carousel';
|
101687
101689
|
const dataSetKey$5 = 'dataset';
|
101688
|
-
const idGen$
|
101690
|
+
const idGen$u = new IDGenerator('wm_carousel_ref_');
|
101689
101691
|
const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
|
101690
101692
|
register('wm-carousel', () => {
|
101691
101693
|
return {
|
101692
101694
|
pre: (attrs, shared) => {
|
101693
101695
|
// generating unique Id for the carousel
|
101694
|
-
const counter = idGen$
|
101696
|
+
const counter = idGen$u.nextUid();
|
101695
101697
|
shared.set('carousel_ref', counter);
|
101696
101698
|
return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
|
101697
101699
|
},
|
@@ -101793,12 +101795,12 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
|
|
101793
101795
|
});
|
101794
101796
|
|
101795
101797
|
const tagName$1C = 'a';
|
101796
|
-
const idGen$
|
101798
|
+
const idGen$t = new IDGenerator('wm_anchor');
|
101797
101799
|
register('wm-anchor', () => {
|
101798
101800
|
return {
|
101799
101801
|
pre: (attrs) => {
|
101800
|
-
const counter = idGen$
|
101801
|
-
return `<${tagName$1C} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.
|
101802
|
+
const counter = idGen$t.nextUid();
|
101803
|
+
return `<${tagName$1C} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${getAttrMarkup(attrs)}>`;
|
101802
101804
|
},
|
101803
101805
|
post: () => `</${tagName$1C}>`
|
101804
101806
|
};
|
@@ -101825,12 +101827,12 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
|
|
101825
101827
|
});
|
101826
101828
|
|
101827
101829
|
const tagName$1A = 'div';
|
101828
|
-
const idGen$
|
101830
|
+
const idGen$s = new IDGenerator('wm_html');
|
101829
101831
|
register('wm-html', () => {
|
101830
101832
|
return {
|
101831
101833
|
pre: (attrs) => {
|
101832
|
-
const counter = idGen$
|
101833
|
-
return `<${tagName$1A} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.
|
101834
|
+
const counter = idGen$s.nextUid();
|
101835
|
+
return `<${tagName$1A} wmHtml #${counter}="wmHtml" role="application" [attr.aria-label]="${counter}.arialabel || 'HTML content'" ${getAttrMarkup(attrs)}>`;
|
101834
101836
|
},
|
101835
101837
|
post: () => `</${tagName$1A}>`
|
101836
101838
|
};
|
@@ -101845,7 +101847,7 @@ var html_build$1 = /*#__PURE__*/Object.freeze({
|
|
101845
101847
|
const tagName$1z = 'span';
|
101846
101848
|
register('wm-icon', () => {
|
101847
101849
|
return {
|
101848
|
-
pre: attrs => `<${tagName$1z} wmIcon
|
101850
|
+
pre: attrs => `<${tagName$1z} wmIcon ${getAttrMarkup(attrs)}>`,
|
101849
101851
|
post: () => `</${tagName$1z}>`
|
101850
101852
|
};
|
101851
101853
|
});
|
@@ -101871,7 +101873,7 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
|
|
101871
101873
|
});
|
101872
101874
|
|
101873
101875
|
let tagName$1x = 'p';
|
101874
|
-
const idGen$
|
101876
|
+
const idGen$r = new IDGenerator('wm_label');
|
101875
101877
|
register('wm-label', () => {
|
101876
101878
|
return {
|
101877
101879
|
pre: (attrs) => {
|
@@ -101885,8 +101887,8 @@ register('wm-label', () => {
|
|
101885
101887
|
else {
|
101886
101888
|
tagName$1x = 'label';
|
101887
101889
|
}
|
101888
|
-
const counter = idGen$
|
101889
|
-
return `<${tagName$1x} wmLabel #${counter}="wmLabel"
|
101890
|
+
const counter = idGen$r.nextUid();
|
101891
|
+
return `<${tagName$1x} wmLabel #${counter}="wmLabel" ${getAttrMarkup(attrs)}>`;
|
101890
101892
|
},
|
101891
101893
|
post: () => `</${tagName$1x}>`
|
101892
101894
|
};
|
@@ -101899,12 +101901,12 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
|
|
101899
101901
|
});
|
101900
101902
|
|
101901
101903
|
const tagName$1w = 'img';
|
101902
|
-
const idGen$
|
101904
|
+
const idGen$q = new IDGenerator('wm_picture');
|
101903
101905
|
register('wm-picture', () => {
|
101904
101906
|
return {
|
101905
101907
|
pre: (attrs) => {
|
101906
|
-
const counter = idGen$
|
101907
|
-
return `<${tagName$1w} wmPicture #${counter}="wmPicture" alt="
|
101908
|
+
const counter = idGen$q.nextUid();
|
101909
|
+
return `<${tagName$1w} wmPicture #${counter}="wmPicture" [alt]="${counter}.alttext" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.arialabel || 'Image'" ${getAttrMarkup(attrs)}>`;
|
101908
101910
|
}
|
101909
101911
|
};
|
101910
101912
|
});
|
@@ -101916,12 +101918,12 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
|
|
101916
101918
|
});
|
101917
101919
|
|
101918
101920
|
const tagName$1v = 'div';
|
101919
|
-
const idGen$
|
101921
|
+
const idGen$p = new IDGenerator('wm_spinner');
|
101920
101922
|
register('wm-spinner', () => {
|
101921
101923
|
return {
|
101922
101924
|
pre: (attrs) => {
|
101923
|
-
const counter = idGen$
|
101924
|
-
return `<${tagName$1v} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.
|
101925
|
+
const counter = idGen$p.nextUid();
|
101926
|
+
return `<${tagName$1v} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.arialabel || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
|
101925
101927
|
},
|
101926
101928
|
post: () => `</${tagName$1v}>`
|
101927
101929
|
};
|
@@ -101973,9 +101975,13 @@ var progressBar_build$1 = /*#__PURE__*/Object.freeze({
|
|
101973
101975
|
});
|
101974
101976
|
|
101975
101977
|
const tagName$1t = 'div';
|
101978
|
+
const idGen$o = new IDGenerator('wm_progress_circle');
|
101976
101979
|
register('wm-progress-circle', () => {
|
101977
101980
|
return {
|
101978
|
-
pre: attrs =>
|
101981
|
+
pre: (attrs) => {
|
101982
|
+
const counter = idGen$o.nextUid();
|
101983
|
+
return `<${tagName$1t} 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)}>`;
|
101984
|
+
},
|
101979
101985
|
post: () => `</${tagName$1t}>`
|
101980
101986
|
};
|
101981
101987
|
});
|
@@ -101992,7 +101998,7 @@ register('wm-richtexteditor', () => {
|
|
101992
101998
|
return {
|
101993
101999
|
pre: (attrs) => {
|
101994
102000
|
const counter = idGen$n.nextUid();
|
101995
|
-
return `<${tagName$1s} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.
|
102001
|
+
return `<${tagName$1s} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.arialabel || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
|
101996
102002
|
},
|
101997
102003
|
post: () => `</${tagName$1s}>`
|
101998
102004
|
};
|
@@ -102357,7 +102363,7 @@ var tabPane_build$1 = /*#__PURE__*/Object.freeze({
|
|
102357
102363
|
const tagName$19 = 'div';
|
102358
102364
|
register('wm-tile', () => {
|
102359
102365
|
return {
|
102360
|
-
pre: attrs => `<${tagName$19} wmTile
|
102366
|
+
pre: attrs => `<${tagName$19} wmTile wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
|
102361
102367
|
post: () => `</${tagName$19}>`
|
102362
102368
|
};
|
102363
102369
|
});
|
@@ -102407,7 +102413,7 @@ register('wm-barcodescanner', () => {
|
|
102407
102413
|
return {
|
102408
102414
|
pre: (attrs) => {
|
102409
102415
|
const counter = idGen$h.nextUid();
|
102410
|
-
return `<${tagName$16} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.
|
102416
|
+
return `<${tagName$16} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.arialabel || 'Barcode scanner'" ${getAttrMarkup(attrs)}>`;
|
102411
102417
|
},
|
102412
102418
|
post: () => `</${tagName$16}>`
|
102413
102419
|
};
|
@@ -102425,7 +102431,7 @@ register('wm-camera', () => {
|
|
102425
102431
|
return {
|
102426
102432
|
pre: (attrs) => {
|
102427
102433
|
const counter = idGen$g.nextUid();
|
102428
|
-
return `<${tagName$15} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.
|
102434
|
+
return `<${tagName$15} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.arialabel || 'Camera'" ${getAttrMarkup(attrs)}>`;
|
102429
102435
|
},
|
102430
102436
|
post: () => `</${tagName$15}>`
|
102431
102437
|
};
|
@@ -102440,7 +102446,7 @@ var camera_build$1 = /*#__PURE__*/Object.freeze({
|
|
102440
102446
|
const tagName$14 = 'div';
|
102441
102447
|
register('wm-alertdialog', () => {
|
102442
102448
|
return {
|
102443
|
-
pre: attrs => `<${tagName$14} wmAlertDialog
|
102449
|
+
pre: attrs => `<${tagName$14} wmAlertDialog wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
|
102444
102450
|
post: () => `</${tagName$14}>`
|
102445
102451
|
};
|
102446
102452
|
});
|
@@ -102756,7 +102762,7 @@ const registerFormField = (isFormField) => {
|
|
102756
102762
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
102757
102763
|
const formFieldErrorMsgId = 'wmform-field-error-' + generateGUId();
|
102758
102764
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
102759
|
-
class="help-block text-danger" aria-hidden="false"
|
102765
|
+
class="help-block text-danger" aria-hidden="false" role="alert"
|
102760
102766
|
aria-live="assertive" [attr.aria-label]="${counter}.validationmessage" id="${formFieldErrorMsgId}"><span aria-hidden="true" [textContent]="${counter}.validationmessage"></span></p>` : '';
|
102761
102767
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
102762
102768
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
@@ -102985,7 +102991,7 @@ register('wm-calendar', () => {
|
|
102985
102991
|
return {
|
102986
102992
|
pre: (attrs) => {
|
102987
102993
|
let viewType = attrs.get('view') ? attrs.get('view') + ' view' : 'month view';
|
102988
|
-
return `<${tagName$W} wmCalendar redrawable style="width:100%" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
|
102994
|
+
return `<${tagName$W} wmCalendar redrawable style="width:100%" role="region" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
|
102989
102995
|
},
|
102990
102996
|
post: () => `</${tagName$W}>`
|
102991
102997
|
};
|
@@ -103014,7 +103020,7 @@ var chips_build$1 = /*#__PURE__*/Object.freeze({
|
|
103014
103020
|
const tagName$U = 'div';
|
103015
103021
|
register('wm-colorpicker', () => {
|
103016
103022
|
return {
|
103017
|
-
pre: attrs => `<${tagName$U} wmColorPicker ${getAttrMarkup(attrs)}
|
103023
|
+
pre: attrs => `<${tagName$U} wmColorPicker ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
103018
103024
|
post: () => `</${tagName$U}>`
|
103019
103025
|
};
|
103020
103026
|
});
|
@@ -103028,7 +103034,7 @@ var colorPicker_build$1 = /*#__PURE__*/Object.freeze({
|
|
103028
103034
|
const tagName$T = 'div';
|
103029
103035
|
register('wm-currency', () => {
|
103030
103036
|
return {
|
103031
|
-
pre: attrs => `<${tagName$T} wmCurrency ${getAttrMarkup(attrs)}
|
103037
|
+
pre: attrs => `<${tagName$T} wmCurrency ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
103032
103038
|
post: () => `</${tagName$T}>`
|
103033
103039
|
};
|
103034
103040
|
});
|
@@ -103042,7 +103048,7 @@ var currency_build$1 = /*#__PURE__*/Object.freeze({
|
|
103042
103048
|
const tagName$S = 'div';
|
103043
103049
|
register('wm-buttongroup', () => {
|
103044
103050
|
return {
|
103045
|
-
pre: attrs => `<${tagName$S} wmButtonGroup role="group"
|
103051
|
+
pre: attrs => `<${tagName$S} wmButtonGroup role="group" ${getAttrMarkup(attrs)}>`,
|
103046
103052
|
post: () => `</${tagName$S}>`
|
103047
103053
|
};
|
103048
103054
|
});
|
@@ -103059,7 +103065,7 @@ register('wm-button', () => {
|
|
103059
103065
|
return {
|
103060
103066
|
pre: (attrs) => {
|
103061
103067
|
const counter = idGen$d.nextUid();
|
103062
|
-
return `<${tagName$R} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.
|
103068
|
+
return `<${tagName$R} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${getAttrMarkup(attrs)}>`;
|
103063
103069
|
},
|
103064
103070
|
post: () => `</${tagName$R}>`
|
103065
103071
|
};
|
@@ -103161,7 +103167,7 @@ register('wm-switch', () => {
|
|
103161
103167
|
return {
|
103162
103168
|
pre: (attrs) => {
|
103163
103169
|
const counter = idGen$c.nextUid();
|
103164
|
-
return `<${tagName$K} wmSwitch #${counter}="wmSwitch" [attr.aria-label]="${counter}.
|
103170
|
+
return `<${tagName$K} wmSwitch #${counter}="wmSwitch" role="group" [attr.aria-label]="${counter}.arialabel || 'Switch choose options'" ${getFormMarkupAttr(attrs)} ${getNgModelAttr(attrs)}>`;
|
103165
103171
|
},
|
103166
103172
|
post: () => `</${tagName$K}>`
|
103167
103173
|
};
|
@@ -103251,6 +103257,10 @@ register('wm-fileupload', () => {
|
|
103251
103257
|
const onSelectBinding = getDataSource(attrs.get('select.event'));
|
103252
103258
|
attrs.set('datasource.bind', onSelectBinding);
|
103253
103259
|
}
|
103260
|
+
if (attrs.get('delete.event')) {
|
103261
|
+
const onDeleteBinding = getDataSource(attrs.get('delete.event'));
|
103262
|
+
attrs.set('deletedatasource.bind', onDeleteBinding);
|
103263
|
+
}
|
103254
103264
|
return `<${tagName$E} wmFileUpload ${getAttrMarkup(attrs)} role="input">`;
|
103255
103265
|
},
|
103256
103266
|
post: () => `</${tagName$E}>`
|
@@ -103668,7 +103678,7 @@ register('wm-page', () => {
|
|
103668
103678
|
},
|
103669
103679
|
pre: (attrs) => {
|
103670
103680
|
const counter = idGen$9.nextUid();
|
103671
|
-
return `<${tagName$r} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.
|
103681
|
+
return `<${tagName$r} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
|
103672
103682
|
},
|
103673
103683
|
post: () => `</${tagName$r}>`
|
103674
103684
|
};
|
@@ -103686,7 +103696,7 @@ register('wm-layout', () => {
|
|
103686
103696
|
return {
|
103687
103697
|
pre: (attrs) => {
|
103688
103698
|
const counter = idGen$8.nextUid();
|
103689
|
-
return `<${tagName$q} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.
|
103699
|
+
return `<${tagName$q} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
|
103690
103700
|
},
|
103691
103701
|
post: () => `</${tagName$q}>`
|
103692
103702
|
};
|
@@ -103746,7 +103756,7 @@ register('wm-footer', () => {
|
|
103746
103756
|
return {
|
103747
103757
|
pre: (attrs) => {
|
103748
103758
|
const counter = idGen$7.nextUid();
|
103749
|
-
return `<${tagName$m} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.
|
103759
|
+
return `<${tagName$m} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.arialabel || 'Page footer'" ${getAttrMarkup(attrs)}>`;
|
103750
103760
|
},
|
103751
103761
|
post: () => `</${tagName$m}>`
|
103752
103762
|
};
|
@@ -103764,7 +103774,7 @@ register('wm-header', () => {
|
|
103764
103774
|
return {
|
103765
103775
|
pre: (attrs) => {
|
103766
103776
|
const counter = idGen$6.nextUid();
|
103767
|
-
return `<${tagName$l} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.
|
103777
|
+
return `<${tagName$l} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.arialabel || 'Page header'" ${getAttrMarkup(attrs)}>`;
|
103768
103778
|
},
|
103769
103779
|
post: () => `</${tagName$l}>`
|
103770
103780
|
};
|
@@ -103782,7 +103792,7 @@ register('wm-left-panel', () => {
|
|
103782
103792
|
return {
|
103783
103793
|
pre: (attrs) => {
|
103784
103794
|
const counter = idGen$5.nextUid();
|
103785
|
-
return `<${tagName$k} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.
|
103795
|
+
return `<${tagName$k} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.arialabel || 'Left navigation panel'" wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${getAttrMarkup(attrs)}>`;
|
103786
103796
|
},
|
103787
103797
|
post: () => `</${tagName$k}>`
|
103788
103798
|
};
|
@@ -103814,7 +103824,7 @@ register('wm-right-panel', () => {
|
|
103814
103824
|
return {
|
103815
103825
|
pre: (attrs) => {
|
103816
103826
|
const counter = idGen$4.nextUid();
|
103817
|
-
return `<${tagName$i} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.
|
103827
|
+
return `<${tagName$i} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.arialabel || 'Right navigation panel'" ${getAttrMarkup(attrs)}>`;
|
103818
103828
|
},
|
103819
103829
|
post: () => `</${tagName$i}>`
|
103820
103830
|
};
|
@@ -103880,7 +103890,7 @@ register('wm-top-nav', () => {
|
|
103880
103890
|
return {
|
103881
103891
|
pre: (attrs) => {
|
103882
103892
|
const counter = idGen$3.nextUid();
|
103883
|
-
return `<${tagName$f} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.
|
103893
|
+
return `<${tagName$f} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.arialabel || 'Second level navigation'" ${getAttrMarkup(attrs)}>`;
|
103884
103894
|
},
|
103885
103895
|
post: () => `</${tagName$f}>`
|
103886
103896
|
};
|