@wavemaker/angular-codegen 12.0.0-next.141130 → 12.0.0-next.141134

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.
@@ -86132,6 +86132,7 @@ var FormWidgetType;
86132
86132
  FormWidgetType["CHIPS"] = "chips";
86133
86133
  FormWidgetType["COLORPICKER"] = "colorpicker";
86134
86134
  FormWidgetType["CURRENCY"] = "currency";
86135
+ FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
86135
86136
  FormWidgetType["DATE"] = "date";
86136
86137
  FormWidgetType["DATETIME"] = "datetime";
86137
86138
  FormWidgetType["NUMBER"] = "number";
@@ -86149,7 +86150,6 @@ var FormWidgetType;
86149
86150
  FormWidgetType["TIMESTAMP"] = "timestamp";
86150
86151
  FormWidgetType["TYPEAHEAD"] = "typeahead";
86151
86152
  FormWidgetType["UPLOAD"] = "upload";
86152
- FormWidgetType["CUSTOM"] = "custom";
86153
86153
  })(FormWidgetType || (FormWidgetType = {}));
86154
86154
  var DataType;
86155
86155
  (function (DataType) {
@@ -86226,7 +86226,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
86226
86226
  tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${showTmpl}></ul>`;
86227
86227
  break;
86228
86228
  case FormWidgetType.CHIPS:
86229
- tmpl = `<ul wmChips role="input" debouncetime="${attrs.get('debouncetime')}" ${innerTmpl} ${showTmpl}></ul>`;
86229
+ tmpl = `<ul wmChips debouncetime="${attrs.get('debouncetime')}" ${innerTmpl} ${showTmpl}></ul>`;
86230
86230
  break;
86231
86231
  case FormWidgetType.COLORPICKER:
86232
86232
  tmpl = `<div wmColorPicker ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
@@ -86234,6 +86234,9 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
86234
86234
  case FormWidgetType.CURRENCY:
86235
86235
  tmpl = `<div wmCurrency ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
86236
86236
  break;
86237
+ case FormWidgetType.CUSTOMWIDGET:
86238
+ tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
86239
+ break;
86237
86240
  case FormWidgetType.DATE:
86238
86241
  tmpl = `<div wmDate ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
86239
86242
  break;
@@ -86241,10 +86244,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
86241
86244
  tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
86242
86245
  break;
86243
86246
  case FormWidgetType.NUMBER:
86244
- tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number" aria-label="Only numbers" ${updateOnTmpl} ${showTmpl}></div>`;
86247
+ tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number" ${updateOnTmpl} ${showTmpl}></div>`;
86245
86248
  break;
86246
86249
  case FormWidgetType.PASSWORD:
86247
- tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" aria-label="Enter password" ${updateOnTmpl} ${showTmpl}></wm-input>`;
86250
+ tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" ${updateOnTmpl} ${showTmpl}></wm-input>`;
86248
86251
  break;
86249
86252
  case FormWidgetType.RADIOSET:
86250
86253
  tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl} ${showTmpl}></ul>`;
@@ -86259,7 +86262,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
86259
86262
  tmpl = `<wm-select ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></wm-select>`;
86260
86263
  break;
86261
86264
  case FormWidgetType.TOGGLE:
86262
- tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" role="checkbox" aria-label="Toggle button" ${showTmpl}></div>`;
86265
+ tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" ${showTmpl}></div>`;
86263
86266
  break;
86264
86267
  case FormWidgetType.SLIDER:
86265
86268
  tmpl = `<div wmSlider ${innerTmpl} ${showTmpl}></div>`;
@@ -86272,16 +86275,13 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
86272
86275
  tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl} ${showTmpl}></wm-input>`;
86273
86276
  break;
86274
86277
  case FormWidgetType.TEXTAREA:
86275
- tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" ${updateOnTmpl} ${showTmpl}></wm-textarea>`;
86278
+ tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${showTmpl}></wm-textarea>`;
86276
86279
  break;
86277
86280
  case FormWidgetType.TIME:
86278
86281
  tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
86279
86282
  break;
86280
86283
  case FormWidgetType.TIMESTAMP:
86281
- tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} role="input" ${showTmpl}></div>`;
86282
- break;
86283
- case FormWidgetType.CUSTOM:
86284
- tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
86284
+ tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
86285
86285
  break;
86286
86286
  case FormWidgetType.UPLOAD:
86287
86287
  const counter = options.counter;
@@ -86320,6 +86320,8 @@ const getRequiredFormWidget = (widgetType) => {
86320
86320
  return 'wm-colorpicker';
86321
86321
  case FormWidgetType.CURRENCY:
86322
86322
  return 'wm-currency';
86323
+ case FormWidgetType.CUSTOMWIDGET:
86324
+ return 'wm-custom-widget';
86323
86325
  case FormWidgetType.DATE:
86324
86326
  return 'wm-date';
86325
86327
  case FormWidgetType.DATETIME:
@@ -86333,8 +86335,6 @@ const getRequiredFormWidget = (widgetType) => {
86333
86335
  return 'wm-richtexteditor';
86334
86336
  case FormWidgetType.SLIDER:
86335
86337
  return 'wm-slider';
86336
- case FormWidgetType.CUSTOM:
86337
- return 'wm-custom-widget';
86338
86338
  default:
86339
86339
  return 'wm-text';
86340
86340
  }
@@ -87130,7 +87130,6 @@ const REGEX = {
87130
87130
  IPOD: /iPod/i,
87131
87131
  IPAD: /iPad/i,
87132
87132
  MAC: /Mac/i,
87133
- MACINTEL: /MacIntel/i,
87134
87133
  ANDROID_TABLET: /android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,
87135
87134
  MOBILE: /Mobile/i,
87136
87135
  WINDOWS: /Windows Phone/i,
@@ -87182,9 +87181,10 @@ const isAndroidTablet = () => REGEX.ANDROID_TABLET.test(userAgent) && !((/Tablet
87182
87181
  const isIphone = () => REGEX.IPHONE.test(userAgent);
87183
87182
  const isIpod = () => REGEX.IPOD.test(userAgent);
87184
87183
  const isIpad = () => {
87185
- return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && (REGEX.MAC.test(window.navigator.platform) || REGEX.MACINTEL.test(window.navigator.platform)));
87184
+ return REGEX.IPAD.test(userAgent) || (window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2 && REGEX.MAC.test(window.navigator.platform));
87186
87185
  };
87187
87186
  const isIos = () => isIphone() || isIpod() || isIpad();
87187
+ const isSafari = () => navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
87188
87188
  const isLargeTabletLandscape = (landScapeWidth, landScapeHeight) => {
87189
87189
  const width = landScapeWidth || '1366px';
87190
87190
  const height = landScapeHeight || '1024px';
@@ -87406,7 +87406,7 @@ const getFormattedDate = (datePipe, dateObj, format, timeZone, isTimeStampType,
87406
87406
  if (format === 'UTC') {
87407
87407
  return new Date(dateObj).toISOString();
87408
87408
  }
87409
- if (timeZone) {
87409
+ if (timeZone && timeZone !== moment.defaultZone?.name) {
87410
87410
  const momentFormat = format.replaceAll('y', 'Y').replaceAll('d', 'D').replace('a', 'A');
87411
87411
  if (isIntervalDateTime) { // dates which are of type time widget (value is hh:mm:ss) but returned as date string from time comp
87412
87412
  return moment(dateObj).format(momentFormat);
@@ -87798,6 +87798,7 @@ const isEqualWithFields = (obj1, obj2, compareBy) => {
87798
87798
  // compareBy can be 'id' or 'id1, id2' or 'id1, id2:id3'
87799
87799
  // Split the compareby comma separated values
87800
87800
  let _compareBy = isArray$1(compareBy) ? compareBy : split(compareBy, ',');
87801
+ //@ts-ignore
87801
87802
  _compareBy = map$1(_compareBy, trim);
87802
87803
  return isEqualWith(obj1, obj2, function (o1, o2) {
87803
87804
  return every(_compareBy, function (cb) {
@@ -88652,6 +88653,7 @@ var Utils = /*#__PURE__*/Object.freeze({
88652
88653
  isNumberType: isNumberType,
88653
88654
  isObject: isObject,
88654
88655
  isPageable: isPageable,
88656
+ isSafari: isSafari,
88655
88657
  isTablet: isTablet,
88656
88658
  isValidWebURL: isValidWebURL,
88657
88659
  isVideoFile: isVideoFile,
@@ -90494,13 +90496,13 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
90494
90496
 
90495
90497
  const carouselTagName = 'carousel';
90496
90498
  const dataSetKey$5 = 'dataset';
90497
- const idGen$t = new IDGenerator('wm_carousel_ref_');
90499
+ const idGen$u = new IDGenerator('wm_carousel_ref_');
90498
90500
  const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
90499
90501
  register('wm-carousel', () => {
90500
90502
  return {
90501
90503
  pre: (attrs, shared) => {
90502
90504
  // generating unique Id for the carousel
90503
- const counter = idGen$t.nextUid();
90505
+ const counter = idGen$u.nextUid();
90504
90506
  shared.set('carousel_ref', counter);
90505
90507
  return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
90506
90508
  },
@@ -90602,12 +90604,12 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
90602
90604
  });
90603
90605
 
90604
90606
  const tagName$1C = 'a';
90605
- const idGen$s = new IDGenerator('wm_anchor');
90607
+ const idGen$t = new IDGenerator('wm_anchor');
90606
90608
  register('wm-anchor', () => {
90607
90609
  return {
90608
90610
  pre: (attrs) => {
90609
- const counter = idGen$s.nextUid();
90610
- return `<${tagName$1C} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption" ${getAttrMarkup(attrs)}>`;
90611
+ const counter = idGen$t.nextUid();
90612
+ 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)}>`;
90611
90613
  },
90612
90614
  post: () => `</${tagName$1C}>`
90613
90615
  };
@@ -90634,12 +90636,12 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
90634
90636
  });
90635
90637
 
90636
90638
  const tagName$1A = 'div';
90637
- const idGen$r = new IDGenerator('wm_html');
90639
+ const idGen$s = new IDGenerator('wm_html');
90638
90640
  register('wm-html', () => {
90639
90641
  return {
90640
90642
  pre: (attrs) => {
90641
- const counter = idGen$r.nextUid();
90642
- return `<${tagName$1A} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.hint || 'HTML content'" ${getAttrMarkup(attrs)}>`;
90643
+ const counter = idGen$s.nextUid();
90644
+ return `<${tagName$1A} wmHtml #${counter}="wmHtml" role="application" [attr.aria-label]="${counter}.arialabel || 'HTML content'" ${getAttrMarkup(attrs)}>`;
90643
90645
  },
90644
90646
  post: () => `</${tagName$1A}>`
90645
90647
  };
@@ -90654,7 +90656,7 @@ var html_build$1 = /*#__PURE__*/Object.freeze({
90654
90656
  const tagName$1z = 'span';
90655
90657
  register('wm-icon', () => {
90656
90658
  return {
90657
- pre: attrs => `<${tagName$1z} wmIcon aria-hidden="true" ${getAttrMarkup(attrs)}>`,
90659
+ pre: attrs => `<${tagName$1z} wmIcon ${getAttrMarkup(attrs)}>`,
90658
90660
  post: () => `</${tagName$1z}>`
90659
90661
  };
90660
90662
  });
@@ -90680,7 +90682,7 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
90680
90682
  });
90681
90683
 
90682
90684
  let tagName$1x = 'p';
90683
- const idGen$q = new IDGenerator('wm_label');
90685
+ const idGen$r = new IDGenerator('wm_label');
90684
90686
  register('wm-label', () => {
90685
90687
  return {
90686
90688
  pre: (attrs) => {
@@ -90694,8 +90696,8 @@ register('wm-label', () => {
90694
90696
  else {
90695
90697
  tagName$1x = 'label';
90696
90698
  }
90697
- const counter = idGen$q.nextUid();
90698
- return `<${tagName$1x} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
90699
+ const counter = idGen$r.nextUid();
90700
+ return `<${tagName$1x} wmLabel #${counter}="wmLabel" ${getAttrMarkup(attrs)}>`;
90699
90701
  },
90700
90702
  post: () => `</${tagName$1x}>`
90701
90703
  };
@@ -90708,12 +90710,12 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
90708
90710
  });
90709
90711
 
90710
90712
  const tagName$1w = 'img';
90711
- const idGen$p = new IDGenerator('wm_picture');
90713
+ const idGen$q = new IDGenerator('wm_picture');
90712
90714
  register('wm-picture', () => {
90713
90715
  return {
90714
90716
  pre: (attrs) => {
90715
- const counter = idGen$p.nextUid();
90716
- return `<${tagName$1w} wmPicture #${counter}="wmPicture" alt="image" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.hint || 'Image'" ${getAttrMarkup(attrs)}>`;
90717
+ const counter = idGen$q.nextUid();
90718
+ return `<${tagName$1w} wmPicture #${counter}="wmPicture" [alt]="${counter}.alttext" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.arialabel || 'Image'" ${getAttrMarkup(attrs)}>`;
90717
90719
  }
90718
90720
  };
90719
90721
  });
@@ -90725,12 +90727,12 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
90725
90727
  });
90726
90728
 
90727
90729
  const tagName$1v = 'div';
90728
- const idGen$o = new IDGenerator('wm_spinner');
90730
+ const idGen$p = new IDGenerator('wm_spinner');
90729
90731
  register('wm-spinner', () => {
90730
90732
  return {
90731
90733
  pre: (attrs) => {
90732
- const counter = idGen$o.nextUid();
90733
- return `<${tagName$1v} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.hint || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
90734
+ const counter = idGen$p.nextUid();
90735
+ return `<${tagName$1v} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.arialabel || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
90734
90736
  },
90735
90737
  post: () => `</${tagName$1v}>`
90736
90738
  };
@@ -90782,9 +90784,13 @@ var progressBar_build$1 = /*#__PURE__*/Object.freeze({
90782
90784
  });
90783
90785
 
90784
90786
  const tagName$1t = 'div';
90787
+ const idGen$o = new IDGenerator('wm_progress_circle');
90785
90788
  register('wm-progress-circle', () => {
90786
90789
  return {
90787
- pre: attrs => `<${tagName$1t} wmProgressCircle ${getAttrMarkup(attrs)}>`,
90790
+ pre: (attrs) => {
90791
+ const counter = idGen$o.nextUid();
90792
+ 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)}>`;
90793
+ },
90788
90794
  post: () => `</${tagName$1t}>`
90789
90795
  };
90790
90796
  });
@@ -90801,7 +90807,7 @@ register('wm-richtexteditor', () => {
90801
90807
  return {
90802
90808
  pre: (attrs) => {
90803
90809
  const counter = idGen$n.nextUid();
90804
- return `<${tagName$1s} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.hint || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
90810
+ return `<${tagName$1s} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.arialabel || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
90805
90811
  },
90806
90812
  post: () => `</${tagName$1s}>`
90807
90813
  };
@@ -91166,7 +91172,7 @@ var tabPane_build$1 = /*#__PURE__*/Object.freeze({
91166
91172
  const tagName$19 = 'div';
91167
91173
  register('wm-tile', () => {
91168
91174
  return {
91169
- pre: attrs => `<${tagName$19} wmTile aria-describedby="Tile" wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
91175
+ pre: attrs => `<${tagName$19} wmTile wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
91170
91176
  post: () => `</${tagName$19}>`
91171
91177
  };
91172
91178
  });
@@ -91216,7 +91222,7 @@ register('wm-barcodescanner', () => {
91216
91222
  return {
91217
91223
  pre: (attrs) => {
91218
91224
  const counter = idGen$h.nextUid();
91219
- return `<${tagName$16} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.hint || 'Barcode scanner'" ${getAttrMarkup(attrs)}>`;
91225
+ return `<${tagName$16} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.arialabel || 'Barcode scanner'" ${getAttrMarkup(attrs)}>`;
91220
91226
  },
91221
91227
  post: () => `</${tagName$16}>`
91222
91228
  };
@@ -91234,7 +91240,7 @@ register('wm-camera', () => {
91234
91240
  return {
91235
91241
  pre: (attrs) => {
91236
91242
  const counter = idGen$g.nextUid();
91237
- return `<${tagName$15} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.hint || 'Camera'" ${getAttrMarkup(attrs)}>`;
91243
+ return `<${tagName$15} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.arialabel || 'Camera'" ${getAttrMarkup(attrs)}>`;
91238
91244
  },
91239
91245
  post: () => `</${tagName$15}>`
91240
91246
  };
@@ -91249,7 +91255,7 @@ var camera_build$1 = /*#__PURE__*/Object.freeze({
91249
91255
  const tagName$14 = 'div';
91250
91256
  register('wm-alertdialog', () => {
91251
91257
  return {
91252
- pre: attrs => `<${tagName$14} wmAlertDialog role="alertdialog" wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
91258
+ pre: attrs => `<${tagName$14} wmAlertDialog wm-navigable-element="true" ${getAttrMarkup(attrs)}>`,
91253
91259
  post: () => `</${tagName$14}>`
91254
91260
  };
91255
91261
  });
@@ -91500,6 +91506,13 @@ const setDefaultPlaceholder = (attrs, widgetType, index) => {
91500
91506
  }
91501
91507
  };
91502
91508
  const getWidgetTemplate = (attrs, options) => {
91509
+ let customAttrs = ``;
91510
+ if (options.widgetType === "custom-widget") {
91511
+ for (let [key, value] of attrs) {
91512
+ if (key.startsWith('prop-'))
91513
+ customAttrs += key + '="' + value + '" ';
91514
+ }
91515
+ }
91503
91516
  const name = attrs.get('name');
91504
91517
  const customWidgetName = attrs.get('widgetname');
91505
91518
  const fieldName = (attrs.get('key') || name || '').trim();
@@ -91507,7 +91520,7 @@ const getWidgetTemplate = (attrs, options) => {
91507
91520
  const tmplRef = options.isMaxWidget ? `#formWidgetMax` : `#formWidget`;
91508
91521
  const widgetName = name ? (options.isMaxWidget ? `name="${name}_formWidgetMax"` : `name="${name}_formWidget"`) : '';
91509
91522
  const conditionalClass = `[ngClass]="${attrs.get('ngclass')}"`;
91510
- const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName}` : ''}`;
91523
+ const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName} ${customAttrs}` : ''}`;
91511
91524
  return getFormWidgetTemplate(options.widgetType, defaultTmpl, attrs, { counter: options.counter, pCounter: options.pCounter });
91512
91525
  };
91513
91526
  const getTemplate = (attrs, widgetType, eventsTmpl, counter, pCounter, isInList) => {
@@ -91558,7 +91571,7 @@ const registerFormField = (isFormField) => {
91558
91571
  const dataRole = isFormField ? 'form-field' : 'filter-field';
91559
91572
  const formFieldErrorMsgId = 'wmform-field-error-' + generateGUId();
91560
91573
  const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
91561
- class="help-block text-danger" aria-hidden="false"
91574
+ class="help-block text-danger" aria-hidden="false" role="alert"
91562
91575
  aria-live="assertive" [attr.aria-label]="${counter}.validationmessage" id="${formFieldErrorMsgId}"><span aria-hidden="true" [textContent]="${counter}.validationmessage"></span></p>` : '';
91563
91576
  const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
91564
91577
  const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
@@ -91787,7 +91800,7 @@ register('wm-calendar', () => {
91787
91800
  return {
91788
91801
  pre: (attrs) => {
91789
91802
  let viewType = attrs.get('view') ? attrs.get('view') + ' view' : 'month view';
91790
- return `<${tagName$W} wmCalendar redrawable style="width:100%" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
91803
+ return `<${tagName$W} wmCalendar redrawable style="width:100%" role="region" aria-label="${viewType}" ${getAttrMarkup(attrs)}>`;
91791
91804
  },
91792
91805
  post: () => `</${tagName$W}>`
91793
91806
  };
@@ -91816,7 +91829,7 @@ var chips_build$1 = /*#__PURE__*/Object.freeze({
91816
91829
  const tagName$U = 'div';
91817
91830
  register('wm-colorpicker', () => {
91818
91831
  return {
91819
- pre: attrs => `<${tagName$U} wmColorPicker ${getAttrMarkup(attrs)} role="input" ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
91832
+ pre: attrs => `<${tagName$U} wmColorPicker ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
91820
91833
  post: () => `</${tagName$U}>`
91821
91834
  };
91822
91835
  });
@@ -91830,7 +91843,7 @@ var colorPicker_build$1 = /*#__PURE__*/Object.freeze({
91830
91843
  const tagName$T = 'div';
91831
91844
  register('wm-currency', () => {
91832
91845
  return {
91833
- pre: attrs => `<${tagName$T} wmCurrency ${getAttrMarkup(attrs)} role="input" ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
91846
+ pre: attrs => `<${tagName$T} wmCurrency ${getAttrMarkup(attrs)} ${getChildAttrs(attrs)} ${getNgModelAttr(attrs)}>`,
91834
91847
  post: () => `</${tagName$T}>`
91835
91848
  };
91836
91849
  });
@@ -91844,7 +91857,7 @@ var currency_build$1 = /*#__PURE__*/Object.freeze({
91844
91857
  const tagName$S = 'div';
91845
91858
  register('wm-buttongroup', () => {
91846
91859
  return {
91847
- pre: attrs => `<${tagName$S} wmButtonGroup role="group" aria-labelledby="button group" ${getAttrMarkup(attrs)}>`,
91860
+ pre: attrs => `<${tagName$S} wmButtonGroup role="group" ${getAttrMarkup(attrs)}>`,
91848
91861
  post: () => `</${tagName$S}>`
91849
91862
  };
91850
91863
  });
@@ -91861,7 +91874,7 @@ register('wm-button', () => {
91861
91874
  return {
91862
91875
  pre: (attrs) => {
91863
91876
  const counter = idGen$d.nextUid();
91864
- return `<${tagName$R} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.hint || ${counter}.caption || null" ${getAttrMarkup(attrs)}>`;
91877
+ return `<${tagName$R} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${getAttrMarkup(attrs)}>`;
91865
91878
  },
91866
91879
  post: () => `</${tagName$R}>`
91867
91880
  };
@@ -91963,7 +91976,7 @@ register('wm-switch', () => {
91963
91976
  return {
91964
91977
  pre: (attrs) => {
91965
91978
  const counter = idGen$c.nextUid();
91966
- return `<${tagName$K} wmSwitch #${counter}="wmSwitch" [attr.aria-label]="${counter}.hint || 'Switch button'" ${getFormMarkupAttr(attrs)} ${getNgModelAttr(attrs)}>`;
91979
+ return `<${tagName$K} wmSwitch #${counter}="wmSwitch" role="group" [attr.aria-label]="${counter}.arialabel || 'Switch choose options'" ${getFormMarkupAttr(attrs)} ${getNgModelAttr(attrs)}>`;
91967
91980
  },
91968
91981
  post: () => `</${tagName$K}>`
91969
91982
  };
@@ -92053,6 +92066,10 @@ register('wm-fileupload', () => {
92053
92066
  const onSelectBinding = getDataSource(attrs.get('select.event'));
92054
92067
  attrs.set('datasource.bind', onSelectBinding);
92055
92068
  }
92069
+ if (attrs.get('delete.event')) {
92070
+ const onDeleteBinding = getDataSource(attrs.get('delete.event'));
92071
+ attrs.set('deletedatasource.bind', onDeleteBinding);
92072
+ }
92056
92073
  return `<${tagName$E} wmFileUpload ${getAttrMarkup(attrs)} role="input">`;
92057
92074
  },
92058
92075
  post: () => `</${tagName$E}>`
@@ -92470,7 +92487,7 @@ register('wm-page', () => {
92470
92487
  },
92471
92488
  pre: (attrs) => {
92472
92489
  const counter = idGen$9.nextUid();
92473
- return `<${tagName$r} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
92490
+ return `<${tagName$r} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
92474
92491
  },
92475
92492
  post: () => `</${tagName$r}>`
92476
92493
  };
@@ -92488,7 +92505,7 @@ register('wm-layout', () => {
92488
92505
  return {
92489
92506
  pre: (attrs) => {
92490
92507
  const counter = idGen$8.nextUid();
92491
- return `<${tagName$q} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.hint || 'Main page content'" ${getAttrMarkup(attrs)}>`;
92508
+ return `<${tagName$q} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${getAttrMarkup(attrs)}>`;
92492
92509
  },
92493
92510
  post: () => `</${tagName$q}>`
92494
92511
  };
@@ -92548,7 +92565,7 @@ register('wm-footer', () => {
92548
92565
  return {
92549
92566
  pre: (attrs) => {
92550
92567
  const counter = idGen$7.nextUid();
92551
- return `<${tagName$m} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.hint || 'Page footer'" ${getAttrMarkup(attrs)}>`;
92568
+ return `<${tagName$m} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.arialabel || 'Page footer'" ${getAttrMarkup(attrs)}>`;
92552
92569
  },
92553
92570
  post: () => `</${tagName$m}>`
92554
92571
  };
@@ -92566,7 +92583,7 @@ register('wm-header', () => {
92566
92583
  return {
92567
92584
  pre: (attrs) => {
92568
92585
  const counter = idGen$6.nextUid();
92569
- return `<${tagName$l} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.hint || 'Page header'" ${getAttrMarkup(attrs)}>`;
92586
+ return `<${tagName$l} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.arialabel || 'Page header'" ${getAttrMarkup(attrs)}>`;
92570
92587
  },
92571
92588
  post: () => `</${tagName$l}>`
92572
92589
  };
@@ -92584,7 +92601,7 @@ register('wm-left-panel', () => {
92584
92601
  return {
92585
92602
  pre: (attrs) => {
92586
92603
  const counter = idGen$5.nextUid();
92587
- return `<${tagName$k} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.hint || 'Left navigation panel'" wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${getAttrMarkup(attrs)}>`;
92604
+ 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)}>`;
92588
92605
  },
92589
92606
  post: () => `</${tagName$k}>`
92590
92607
  };
@@ -92616,7 +92633,7 @@ register('wm-right-panel', () => {
92616
92633
  return {
92617
92634
  pre: (attrs) => {
92618
92635
  const counter = idGen$4.nextUid();
92619
- return `<${tagName$i} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.hint || 'Right navigation panel'" ${getAttrMarkup(attrs)}>`;
92636
+ return `<${tagName$i} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.arialabel || 'Right navigation panel'" ${getAttrMarkup(attrs)}>`;
92620
92637
  },
92621
92638
  post: () => `</${tagName$i}>`
92622
92639
  };
@@ -92682,7 +92699,7 @@ register('wm-top-nav', () => {
92682
92699
  return {
92683
92700
  pre: (attrs) => {
92684
92701
  const counter = idGen$3.nextUid();
92685
- return `<${tagName$f} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.hint || 'Second level navigation'" ${getAttrMarkup(attrs)}>`;
92702
+ return `<${tagName$f} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.arialabel || 'Second level navigation'" ${getAttrMarkup(attrs)}>`;
92686
92703
  },
92687
92704
  post: () => `</${tagName$f}>`
92688
92705
  };