@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
|
@@ -143611,7 +143611,6 @@ const REGEX$1 = {
|
|
|
143611
143611
|
IPOD: /iPod/i,
|
|
143612
143612
|
IPAD: /iPad/i,
|
|
143613
143613
|
MAC: /Mac/i,
|
|
143614
|
-
MACINTEL: /MacIntel/i,
|
|
143615
143614
|
ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
|
|
143616
143615
|
MOBILE: /Mobile/i,
|
|
143617
143616
|
WINDOWS: /Windows Phone/i,
|
|
@@ -143655,9 +143654,10 @@ const isAndroidTablet$1 = () => REGEX$1.ANDROID_TABLET.test(userAgent$1) && !((/
|
|
|
143655
143654
|
const isIphone$1 = () => REGEX$1.IPHONE.test(userAgent$1);
|
|
143656
143655
|
const isIpod$1 = () => REGEX$1.IPOD.test(userAgent$1);
|
|
143657
143656
|
const isIpad$1 = () => {
|
|
143658
|
-
return REGEX$1.IPAD.test(userAgent$1) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 &&
|
|
143657
|
+
return REGEX$1.IPAD.test(userAgent$1) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX$1.MAC.test(window.navigator.platform));
|
|
143659
143658
|
};
|
|
143660
143659
|
const isIos$1 = () => isIphone$1() || isIpod$1() || isIpad$1();
|
|
143660
|
+
const isSafari$1 = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
|
143661
143661
|
const isLargeTabletLandscape$1 = (landScapeWidth, landScapeHeight) => {
|
|
143662
143662
|
const width = landScapeWidth || '1366px';
|
|
143663
143663
|
const height = landScapeHeight || '1024px';
|
|
@@ -145123,6 +145123,7 @@ var Utils$1 = /*#__PURE__*/Object.freeze({
|
|
|
145123
145123
|
isNumberType: isNumberType$1,
|
|
145124
145124
|
isObject: isObject$3,
|
|
145125
145125
|
isPageable: isPageable$1,
|
|
145126
|
+
isSafari: isSafari$1,
|
|
145126
145127
|
isTablet: isTablet$1,
|
|
145127
145128
|
isValidWebURL: isValidWebURL$1,
|
|
145128
145129
|
isVideoFile: isVideoFile$1,
|
|
@@ -146660,7 +146661,7 @@ class FileIconClassPipe {
|
|
|
146660
146661
|
class StateClassPipe {
|
|
146661
146662
|
transform(state) {
|
|
146662
146663
|
const stateClassMap = {
|
|
146663
|
-
'success': 'wi wi-
|
|
146664
|
+
'success': 'wi wi-check-circle text-success',
|
|
146664
146665
|
'error': 'wi wi-error text-danger'
|
|
146665
146666
|
};
|
|
146666
146667
|
return stateClassMap[state.toLowerCase()];
|
|
@@ -201839,7 +201840,6 @@ const REGEX = {
|
|
|
201839
201840
|
IPOD: /iPod/i,
|
|
201840
201841
|
IPAD: /iPad/i,
|
|
201841
201842
|
MAC: /Mac/i,
|
|
201842
|
-
MACINTEL: /MacIntel/i,
|
|
201843
201843
|
ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
|
|
201844
201844
|
MOBILE: /Mobile/i,
|
|
201845
201845
|
WINDOWS: /Windows Phone/i,
|
|
@@ -201883,9 +201883,10 @@ const isAndroidTablet = () => REGEX.ANDROID_TABLET.test(userAgent) && !((/Tablet
|
|
|
201883
201883
|
const isIphone = () => REGEX.IPHONE.test(userAgent);
|
|
201884
201884
|
const isIpod = () => REGEX.IPOD.test(userAgent);
|
|
201885
201885
|
const isIpad = () => {
|
|
201886
|
-
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 &&
|
|
201886
|
+
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
|
|
201887
201887
|
};
|
|
201888
201888
|
const isIos = () => isIphone() || isIpod() || isIpad();
|
|
201889
|
+
const isSafari = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
|
201889
201890
|
const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
|
|
201890
201891
|
const width = landScapeWidth || '1366px';
|
|
201891
201892
|
const height = landScapeHeight || '1024px';
|
|
@@ -203351,6 +203352,7 @@ var Utils = /*#__PURE__*/Object.freeze({
|
|
|
203351
203352
|
isNumberType: isNumberType,
|
|
203352
203353
|
isObject: isObject,
|
|
203353
203354
|
isPageable: isPageable,
|
|
203355
|
+
isSafari: isSafari,
|
|
203354
203356
|
isTablet: isTablet,
|
|
203355
203357
|
isValidWebURL: isValidWebURL,
|
|
203356
203358
|
isVideoFile: isVideoFile,
|
|
@@ -86104,7 +86104,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
86104
86104
|
tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${showTmpl}></ul>`;
|
|
86105
86105
|
break;
|
|
86106
86106
|
case FormWidgetType.CHIPS:
|
|
86107
|
-
tmpl = `<ul wmChips
|
|
86107
|
+
tmpl = `<ul wmChips debouncetime="${attrs.get('debouncetime')}" ${innerTmpl} ${showTmpl}></ul>`;
|
|
86108
86108
|
break;
|
|
86109
86109
|
case FormWidgetType.COLORPICKER:
|
|
86110
86110
|
tmpl = `<div wmColorPicker ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
|
|
@@ -86119,10 +86119,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
86119
86119
|
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
|
86120
86120
|
break;
|
|
86121
86121
|
case FormWidgetType.NUMBER:
|
|
86122
|
-
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number"
|
|
86122
|
+
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number" ${updateOnTmpl} ${showTmpl}></div>`;
|
|
86123
86123
|
break;
|
|
86124
86124
|
case FormWidgetType.PASSWORD:
|
|
86125
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password"
|
|
86125
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" ${updateOnTmpl} ${showTmpl}></wm-input>`;
|
|
86126
86126
|
break;
|
|
86127
86127
|
case FormWidgetType.RADIOSET:
|
|
86128
86128
|
tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl} ${showTmpl}></ul>`;
|
|
@@ -86137,7 +86137,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
86137
86137
|
tmpl = `<wm-select ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></wm-select>`;
|
|
86138
86138
|
break;
|
|
86139
86139
|
case FormWidgetType.TOGGLE:
|
|
86140
|
-
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle"
|
|
86140
|
+
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" ${showTmpl}></div>`;
|
|
86141
86141
|
break;
|
|
86142
86142
|
case FormWidgetType.SLIDER:
|
|
86143
86143
|
tmpl = `<div wmSlider ${innerTmpl} ${showTmpl}></div>`;
|
|
@@ -86150,13 +86150,13 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
86150
86150
|
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl} ${showTmpl}></wm-input>`;
|
|
86151
86151
|
break;
|
|
86152
86152
|
case FormWidgetType.TEXTAREA:
|
|
86153
|
-
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}
|
|
86153
|
+
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${showTmpl}></wm-textarea>`;
|
|
86154
86154
|
break;
|
|
86155
86155
|
case FormWidgetType.TIME:
|
|
86156
86156
|
tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
|
86157
86157
|
break;
|
|
86158
86158
|
case FormWidgetType.TIMESTAMP:
|
|
86159
|
-
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}
|
|
86159
|
+
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
|
|
86160
86160
|
break;
|
|
86161
86161
|
case FormWidgetType.UPLOAD:
|
|
86162
86162
|
const counter = options.counter;
|
|
@@ -87002,7 +87002,6 @@ const REGEX = {
|
|
|
87002
87002
|
IPOD: /iPod/i,
|
|
87003
87003
|
IPAD: /iPad/i,
|
|
87004
87004
|
MAC: /Mac/i,
|
|
87005
|
-
MACINTEL: /MacIntel/i,
|
|
87006
87005
|
ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
|
|
87007
87006
|
MOBILE: /Mobile/i,
|
|
87008
87007
|
WINDOWS: /Windows Phone/i,
|
|
@@ -87046,9 +87045,10 @@ const isAndroidTablet = () => REGEX.ANDROID_TABLET.test(userAgent) && !((/Tablet
|
|
|
87046
87045
|
const isIphone = () => REGEX.IPHONE.test(userAgent);
|
|
87047
87046
|
const isIpod = () => REGEX.IPOD.test(userAgent);
|
|
87048
87047
|
const isIpad = () => {
|
|
87049
|
-
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 &&
|
|
87048
|
+
return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
|
|
87050
87049
|
};
|
|
87051
87050
|
const isIos = () => isIphone() || isIpod() || isIpad();
|
|
87051
|
+
const isSafari = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
|
|
87052
87052
|
const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
|
|
87053
87053
|
const width = landScapeWidth || '1366px';
|
|
87054
87054
|
const height = landScapeHeight || '1024px';
|
|
@@ -88514,6 +88514,7 @@ var Utils = /*#__PURE__*/Object.freeze({
|
|
|
88514
88514
|
isNumberType: isNumberType,
|
|
88515
88515
|
isObject: isObject,
|
|
88516
88516
|
isPageable: isPageable,
|
|
88517
|
+
isSafari: isSafari,
|
|
88517
88518
|
isTablet: isTablet,
|
|
88518
88519
|
isValidWebURL: isValidWebURL,
|
|
88519
88520
|
isVideoFile: isVideoFile,
|
|
@@ -90351,13 +90352,13 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
|
|
|
90351
90352
|
|
|
90352
90353
|
const carouselTagName = 'carousel';
|
|
90353
90354
|
const dataSetKey$5 = 'dataset';
|
|
90354
|
-
const idGen$
|
|
90355
|
+
const idGen$t = new IDGenerator('wm_carousel_ref_');
|
|
90355
90356
|
const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
|
|
90356
90357
|
register('wm-carousel', () => {
|
|
90357
90358
|
return {
|
|
90358
90359
|
pre: (attrs, shared) => {
|
|
90359
90360
|
// generating unique Id for the carousel
|
|
90360
|
-
const counter = idGen$
|
|
90361
|
+
const counter = idGen$t.nextUid();
|
|
90361
90362
|
shared.set('carousel_ref', counter);
|
|
90362
90363
|
return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
|
|
90363
90364
|
},
|
|
@@ -90459,12 +90460,12 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
90459
90460
|
});
|
|
90460
90461
|
|
|
90461
90462
|
const tagName$1A = 'a';
|
|
90462
|
-
const idGen$
|
|
90463
|
+
const idGen$s = new IDGenerator('wm_anchor');
|
|
90463
90464
|
register('wm-anchor', () => {
|
|
90464
90465
|
return {
|
|
90465
90466
|
pre: (attrs) => {
|
|
90466
|
-
const counter = idGen$
|
|
90467
|
-
return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.
|
|
90467
|
+
const counter = idGen$s.nextUid();
|
|
90468
|
+
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)}>`;
|
|
90468
90469
|
},
|
|
90469
90470
|
post: () => `</${tagName$1A}>`
|
|
90470
90471
|
};
|
|
@@ -90491,12 +90492,12 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
90491
90492
|
});
|
|
90492
90493
|
|
|
90493
90494
|
const tagName$1y = 'div';
|
|
90494
|
-
const idGen$
|
|
90495
|
+
const idGen$r = new IDGenerator('wm_html');
|
|
90495
90496
|
register('wm-html', () => {
|
|
90496
90497
|
return {
|
|
90497
90498
|
pre: (attrs) => {
|
|
90498
|
-
const counter = idGen$
|
|
90499
|
-
return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.
|
|
90499
|
+
const counter = idGen$r.nextUid();
|
|
90500
|
+
return `<${tagName$1y} wmHtml #${counter}="wmHtml" role="application" [attr.aria-label]="${counter}.arialabel || 'HTML content'" ${getAttrMarkup(attrs)}>`;
|
|
90500
90501
|
},
|
|
90501
90502
|
post: () => `</${tagName$1y}>`
|
|
90502
90503
|
};
|
|
@@ -90511,7 +90512,7 @@ var html_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
90511
90512
|
const tagName$1x = 'span';
|
|
90512
90513
|
register('wm-icon', () => {
|
|
90513
90514
|
return {
|
|
90514
|
-
pre: attrs => `<${tagName$1x} wmIcon
|
|
90515
|
+
pre: attrs => `<${tagName$1x} wmIcon ${getAttrMarkup(attrs)}>`,
|
|
90515
90516
|
post: () => `</${tagName$1x}>`
|
|
90516
90517
|
};
|
|
90517
90518
|
});
|
|
@@ -90537,7 +90538,7 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
90537
90538
|
});
|
|
90538
90539
|
|
|
90539
90540
|
let tagName$1v = 'p';
|
|
90540
|
-
const idGen$
|
|
90541
|
+
const idGen$q = new IDGenerator('wm_label');
|
|
90541
90542
|
register('wm-label', () => {
|
|
90542
90543
|
return {
|
|
90543
90544
|
pre: (attrs) => {
|
|
@@ -90551,8 +90552,8 @@ register('wm-label', () => {
|
|
|
90551
90552
|
else {
|
|
90552
90553
|
tagName$1v = 'label';
|
|
90553
90554
|
}
|
|
90554
|
-
const counter = idGen$
|
|
90555
|
-
return `<${tagName$1v} wmLabel #${counter}="wmLabel"
|
|
90555
|
+
const counter = idGen$q.nextUid();
|
|
90556
|
+
return `<${tagName$1v} wmLabel #${counter}="wmLabel" ${getAttrMarkup(attrs)}>`;
|
|
90556
90557
|
},
|
|
90557
90558
|
post: () => `</${tagName$1v}>`
|
|
90558
90559
|
};
|
|
@@ -90565,12 +90566,12 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
90565
90566
|
});
|
|
90566
90567
|
|
|
90567
90568
|
const tagName$1u = 'img';
|
|
90568
|
-
const idGen$
|
|
90569
|
+
const idGen$p = new IDGenerator('wm_picture');
|
|
90569
90570
|
register('wm-picture', () => {
|
|
90570
90571
|
return {
|
|
90571
90572
|
pre: (attrs) => {
|
|
90572
|
-
const counter = idGen$
|
|
90573
|
-
return `<${tagName$1u} wmPicture #${counter}="wmPicture" alt="
|
|
90573
|
+
const counter = idGen$p.nextUid();
|
|
90574
|
+
return `<${tagName$1u} wmPicture #${counter}="wmPicture" [alt]="${counter}.alttext" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.arialabel || 'Image'" ${getAttrMarkup(attrs)}>`;
|
|
90574
90575
|
}
|
|
90575
90576
|
};
|
|
90576
90577
|
});
|
|
@@ -90582,12 +90583,12 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
90582
90583
|
});
|
|
90583
90584
|
|
|
90584
90585
|
const tagName$1t = 'div';
|
|
90585
|
-
const idGen$
|
|
90586
|
+
const idGen$o = new IDGenerator('wm_spinner');
|
|
90586
90587
|
register('wm-spinner', () => {
|
|
90587
90588
|
return {
|
|
90588
90589
|
pre: (attrs) => {
|
|
90589
|
-
const counter = idGen$
|
|
90590
|
-
return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.
|
|
90590
|
+
const counter = idGen$o.nextUid();
|
|
90591
|
+
return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.arialabel || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
|
|
90591
90592
|
},
|
|
90592
90593
|
post: () => `</${tagName$1t}>`
|
|
90593
90594
|
};
|
|
@@ -90639,9 +90640,13 @@ var progressBar_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
90639
90640
|
});
|
|
90640
90641
|
|
|
90641
90642
|
const tagName$1r = 'div';
|
|
90643
|
+
const idGen$n = new IDGenerator('wm_progress_circle');
|
|
90642
90644
|
register('wm-progress-circle', () => {
|
|
90643
90645
|
return {
|
|
90644
|
-
pre: attrs =>
|
|
90646
|
+
pre: (attrs) => {
|
|
90647
|
+
const counter = idGen$n.nextUid();
|
|
90648
|
+
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)}>`;
|
|
90649
|
+
},
|
|
90645
90650
|
post: () => `</${tagName$1r}>`
|
|
90646
90651
|
};
|
|
90647
90652
|
});
|
|
@@ -90658,7 +90663,7 @@ register('wm-richtexteditor', () => {
|
|
|
90658
90663
|
return {
|
|
90659
90664
|
pre: (attrs) => {
|
|
90660
90665
|
const counter = idGen$m.nextUid();
|
|
90661
|
-
return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.
|
|
90666
|
+
return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.arialabel || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
|
|
90662
90667
|
},
|
|
90663
90668
|
post: () => `</${tagName$1q}>`
|
|
90664
90669
|
};
|
|
@@ -91023,7 +91028,7 @@ var tabPane_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
91023
91028
|
const tagName$17 = 'div';
|
|
91024
91029
|
register('wm-tile', () => {
|
|
91025
91030
|
return {
|
|
91026
|
-
pre: attrs => `<${tagName$17} wmTile
|
|
91031
|
+
pre: attrs => `<${tagName$17} wmTile wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
|
|
91027
91032
|
post: () => `</${tagName$17}>`
|
|
91028
91033
|
};
|
|
91029
91034
|
});
|
|
@@ -91073,7 +91078,7 @@ register('wm-barcodescanner', () => {
|
|
|
91073
91078
|
return {
|
|
91074
91079
|
pre: (attrs) => {
|
|
91075
91080
|
const counter = idGen$g.nextUid();
|
|
91076
|
-
return `<${tagName$14} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.
|
|
91081
|
+
return `<${tagName$14} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.arialabel || 'Barcode scanner'" ${getAttrMarkup(attrs)}>`;
|
|
91077
91082
|
},
|
|
91078
91083
|
post: () => `</${tagName$14}>`
|
|
91079
91084
|
};
|
|
@@ -91091,7 +91096,7 @@ register('wm-camera', () => {
|
|
|
91091
91096
|
return {
|
|
91092
91097
|
pre: (attrs) => {
|
|
91093
91098
|
const counter = idGen$f.nextUid();
|
|
91094
|
-
return `<${tagName$13} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.
|
|
91099
|
+
return `<${tagName$13} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.arialabel || 'Camera'" ${getAttrMarkup(attrs)}>`;
|
|
91095
91100
|
},
|
|
91096
91101
|
post: () => `</${tagName$13}>`
|
|
91097
91102
|
};
|
|
@@ -91106,7 +91111,7 @@ var camera_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
91106
91111
|
const tagName$12 = 'div';
|
|
91107
91112
|
register('wm-alertdialog', () => {
|
|
91108
91113
|
return {
|
|
91109
|
-
pre: attrs => `<${tagName$12} wmAlertDialog
|
|
91114
|
+
pre: attrs => `<${tagName$12} wmAlertDialog wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
|
|
91110
91115
|
post: () => `</${tagName$12}>`
|
|
91111
91116
|
};
|
|
91112
91117
|
});
|
|
@@ -91414,7 +91419,7 @@ const registerFormField = (isFormField) => {
|
|
|
91414
91419
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
|
91415
91420
|
const formFieldErrorMsgId = 'wmform-field-error-' + generateGUId();
|
|
91416
91421
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
|
91417
|
-
class="help-block text-danger" aria-hidden="false"
|
|
91422
|
+
class="help-block text-danger" aria-hidden="false" role="alert"
|
|
91418
91423
|
aria-live="assertive" [attr.aria-label]="${counter}.validationmessage" id="${formFieldErrorMsgId}"><span aria-hidden="true" [textContent]="${counter}.validationmessage"></span></p>` : '';
|
|
91419
91424
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
|
91420
91425
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
|
@@ -91643,7 +91648,7 @@ register('wm-calendar', () => {
|
|
|
91643
91648
|
return {
|
|
91644
91649
|
pre: (attrs) => {
|
|
91645
91650
|
let viewType = attrs.get('view') ? attrs.get('view') + ' view' : 'month view';
|
|
91646
|
-
return `<${tagName$U} wmCalendar redrawable style="width:100%" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
|
|
91651
|
+
return `<${tagName$U} wmCalendar redrawable style="width:100%" role="region" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
|
|
91647
91652
|
},
|
|
91648
91653
|
post: () => `</${tagName$U}>`
|
|
91649
91654
|
};
|
|
@@ -91672,7 +91677,7 @@ var chips_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
91672
91677
|
const tagName$S = 'div';
|
|
91673
91678
|
register('wm-colorpicker', () => {
|
|
91674
91679
|
return {
|
|
91675
|
-
pre: attrs => `<${tagName$S} wmColorPicker ${getAttrMarkup(attrs)}
|
|
91680
|
+
pre: attrs => `<${tagName$S} wmColorPicker ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
91676
91681
|
post: () => `</${tagName$S}>`
|
|
91677
91682
|
};
|
|
91678
91683
|
});
|
|
@@ -91686,7 +91691,7 @@ var colorPicker_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
91686
91691
|
const tagName$R = 'div';
|
|
91687
91692
|
register('wm-currency', () => {
|
|
91688
91693
|
return {
|
|
91689
|
-
pre: attrs => `<${tagName$R} wmCurrency ${getAttrMarkup(attrs)}
|
|
91694
|
+
pre: attrs => `<${tagName$R} wmCurrency ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
|
|
91690
91695
|
post: () => `</${tagName$R}>`
|
|
91691
91696
|
};
|
|
91692
91697
|
});
|
|
@@ -91700,7 +91705,7 @@ var currency_build$1 = /*#__PURE__*/Object.freeze({
|
|
|
91700
91705
|
const tagName$Q = 'div';
|
|
91701
91706
|
register('wm-buttongroup', () => {
|
|
91702
91707
|
return {
|
|
91703
|
-
pre: attrs => `<${tagName$Q} wmButtonGroup role="group"
|
|
91708
|
+
pre: attrs => `<${tagName$Q} wmButtonGroup role="group" ${getAttrMarkup(attrs)}>`,
|
|
91704
91709
|
post: () => `</${tagName$Q}>`
|
|
91705
91710
|
};
|
|
91706
91711
|
});
|
|
@@ -91717,7 +91722,7 @@ register('wm-button', () => {
|
|
|
91717
91722
|
return {
|
|
91718
91723
|
pre: (attrs) => {
|
|
91719
91724
|
const counter = idGen$c.nextUid();
|
|
91720
|
-
return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.
|
|
91725
|
+
return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${getAttrMarkup(attrs)}>`;
|
|
91721
91726
|
},
|
|
91722
91727
|
post: () => `</${tagName$P}>`
|
|
91723
91728
|
};
|
|
@@ -91819,7 +91824,7 @@ register('wm-switch', () => {
|
|
|
91819
91824
|
return {
|
|
91820
91825
|
pre: (attrs) => {
|
|
91821
91826
|
const counter = idGen$b.nextUid();
|
|
91822
|
-
return `<${tagName$I} wmSwitch #${counter}="wmSwitch" [attr.aria-label]="${counter}.
|
|
91827
|
+
return `<${tagName$I} wmSwitch #${counter}="wmSwitch" role="group" [attr.aria-label]="${counter}.arialabel || 'Switch choose options'" ${getFormMarkupAttr(attrs)} ${getNgModelAttr(attrs)}>`;
|
|
91823
91828
|
},
|
|
91824
91829
|
post: () => `</${tagName$I}>`
|
|
91825
91830
|
};
|
|
@@ -91909,6 +91914,10 @@ register('wm-fileupload', () => {
|
|
|
91909
91914
|
const onSelectBinding = getDataSource(attrs.get('select.event'));
|
|
91910
91915
|
attrs.set('datasource.bind', onSelectBinding);
|
|
91911
91916
|
}
|
|
91917
|
+
if (attrs.get('delete.event')) {
|
|
91918
|
+
const onDeleteBinding = getDataSource(attrs.get('delete.event'));
|
|
91919
|
+
attrs.set('deletedatasource.bind', onDeleteBinding);
|
|
91920
|
+
}
|
|
91912
91921
|
return `<${tagName$C} wmFileUpload ${getAttrMarkup(attrs)} role="input">`;
|
|
91913
91922
|
},
|
|
91914
91923
|
post: () => `</${tagName$C}>`
|
|
@@ -92326,7 +92335,7 @@ register('wm-page', () => {
|
|
|
92326
92335
|
},
|
|
92327
92336
|
pre: (attrs) => {
|
|
92328
92337
|
const counter = idGen$8.nextUid();
|
|
92329
|
-
return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.
|
|
92338
|
+
return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
|
|
92330
92339
|
},
|
|
92331
92340
|
post: () => `</${tagName$p}>`
|
|
92332
92341
|
};
|
|
@@ -92344,7 +92353,7 @@ register('wm-layout', () => {
|
|
|
92344
92353
|
return {
|
|
92345
92354
|
pre: (attrs) => {
|
|
92346
92355
|
const counter = idGen$7.nextUid();
|
|
92347
|
-
return `<${tagName$o} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.
|
|
92356
|
+
return `<${tagName$o} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
|
|
92348
92357
|
},
|
|
92349
92358
|
post: () => `</${tagName$o}>`
|
|
92350
92359
|
};
|
|
@@ -92404,7 +92413,7 @@ register('wm-footer', () => {
|
|
|
92404
92413
|
return {
|
|
92405
92414
|
pre: (attrs) => {
|
|
92406
92415
|
const counter = idGen$6.nextUid();
|
|
92407
|
-
return `<${tagName$k} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.
|
|
92416
|
+
return `<${tagName$k} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.arialabel || 'Page footer'" ${getAttrMarkup(attrs)}>`;
|
|
92408
92417
|
},
|
|
92409
92418
|
post: () => `</${tagName$k}>`
|
|
92410
92419
|
};
|
|
@@ -92422,7 +92431,7 @@ register('wm-header', () => {
|
|
|
92422
92431
|
return {
|
|
92423
92432
|
pre: (attrs) => {
|
|
92424
92433
|
const counter = idGen$5.nextUid();
|
|
92425
|
-
return `<${tagName$j} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.
|
|
92434
|
+
return `<${tagName$j} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.arialabel || 'Page header'" ${getAttrMarkup(attrs)}>`;
|
|
92426
92435
|
},
|
|
92427
92436
|
post: () => `</${tagName$j}>`
|
|
92428
92437
|
};
|
|
@@ -92440,7 +92449,7 @@ register('wm-left-panel', () => {
|
|
|
92440
92449
|
return {
|
|
92441
92450
|
pre: (attrs) => {
|
|
92442
92451
|
const counter = idGen$4.nextUid();
|
|
92443
|
-
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.
|
|
92452
|
+
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)}>`;
|
|
92444
92453
|
},
|
|
92445
92454
|
post: () => `</${tagName$i}>`
|
|
92446
92455
|
};
|
|
@@ -92472,7 +92481,7 @@ register('wm-right-panel', () => {
|
|
|
92472
92481
|
return {
|
|
92473
92482
|
pre: (attrs) => {
|
|
92474
92483
|
const counter = idGen$3.nextUid();
|
|
92475
|
-
return `<${tagName$g} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.
|
|
92484
|
+
return `<${tagName$g} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.arialabel || 'Right navigation panel'" ${getAttrMarkup(attrs)}>`;
|
|
92476
92485
|
},
|
|
92477
92486
|
post: () => `</${tagName$g}>`
|
|
92478
92487
|
};
|
|
@@ -92538,7 +92547,7 @@ register('wm-top-nav', () => {
|
|
|
92538
92547
|
return {
|
|
92539
92548
|
pre: (attrs) => {
|
|
92540
92549
|
const counter = idGen$2.nextUid();
|
|
92541
|
-
return `<${tagName$d} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.
|
|
92550
|
+
return `<${tagName$d} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.arialabel || 'Second level navigation'" ${getAttrMarkup(attrs)}>`;
|
|
92542
92551
|
},
|
|
92543
92552
|
post: () => `</${tagName$d}>`
|
|
92544
92553
|
};
|