@wavemaker/angular-codegen 11.2.4-rc.88 → 11.2.4-rc.91

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.
@@ -83,8 +83,8 @@
83
83
  "./node_modules/iscroll/build/iscroll.js",
84
84
  "./node_modules/js-cookie/src/js.cookie.js",
85
85
  "./node_modules/jssha/dist/sha256.js",
86
- "./node_modules/tabbable/dist/index.min.js",
87
- "./node_modules/@wavemaker/focus-trap/dist/focus-trap.min.js"
86
+ "./node_modules/tabbable/dist/index.umd.min.js",
87
+ "./node_modules/@wavemaker/focus-trap/dist/focus-trap.umd.min.js"
88
88
  ]
89
89
  },
90
90
  "configurations": {
@@ -179,9 +179,7 @@
179
179
  "./node_modules/hammerjs/hammer.min.js",
180
180
  "./node_modules/iscroll/build/iscroll.js",
181
181
  "./node_modules/js-cookie/src/js.cookie.js",
182
- "./node_modules/jssha/dist/sha256.js",
183
- "./node_modules/tabbable/dist/index.min.js",
184
- "./node_modules/@wavemaker/focus-trap/dist/focus-trap.min.js"
182
+ "./node_modules/jssha/dist/sha256.js"
185
183
  ],
186
184
  "aot": false,
187
185
  "vendorChunk": true,
@@ -20360,9 +20360,9 @@
20360
20360
  "dev": true
20361
20361
  },
20362
20362
  "tabbable": {
20363
- "version": "6.0.1",
20364
- "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.0.1.tgz",
20365
- "integrity": "sha512-SYJSIgeyXW7EuX1ytdneO5e8jip42oHWg9xl/o3oTYhmXusZVgiA+VlPvjIN+kHii9v90AmzTZEBcsEvuAY+TA=="
20363
+ "version": "6.1.1",
20364
+ "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.1.1.tgz",
20365
+ "integrity": "sha512-4kl5w+nCB44EVRdO0g/UGoOp3vlwgycUVtkk/7DPyeLZUCuNFFKCFG6/t/DgHLrUPHjrZg6s5tNm+56Q2B0xyg=="
20366
20366
  },
20367
20367
  "tapable": {
20368
20368
  "version": "2.2.1",
@@ -70,7 +70,7 @@
70
70
  "tslib": "^2.0.0",
71
71
  "x2js": "3.2.6",
72
72
  "zone.js": "~0.11.4",
73
- "@wavemaker/app-ng-runtime": "11.2.4-rc.88"
73
+ "@wavemaker/app-ng-runtime": "11.2.4-rc.91"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -44976,14 +44976,14 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
44976
44976
 
44977
44977
  const carouselTagName = 'carousel';
44978
44978
  const dataSetKey$5 = 'dataset';
44979
- const idGen$q = new IDGenerator('wm_carousel_ref_');
44979
+ const idGen$s = new IDGenerator('wm_carousel_ref_');
44980
44980
  const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
44981
44981
  const ɵ0$d$1 = isDynamicCarousel;
44982
44982
  register('wm-carousel', () => {
44983
44983
  return {
44984
44984
  pre: (attrs, shared) => {
44985
44985
  // generating unique Id for the carousel
44986
- const counter = idGen$q.nextUid();
44986
+ const counter = idGen$s.nextUid();
44987
44987
  shared.set('carousel_ref', counter);
44988
44988
  return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
44989
44989
  },
@@ -45084,12 +45084,12 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
45084
45084
  });
45085
45085
 
45086
45086
  const tagName$1A = 'a';
45087
- const idGen$p = new IDGenerator('wm_anchor');
45087
+ const idGen$r = new IDGenerator('wm_anchor');
45088
45088
  register('wm-anchor', () => {
45089
45089
  return {
45090
45090
  pre: (attrs) => {
45091
- const counter = idGen$p.nextUid();
45092
- return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Link'" ${getAttrMarkup(attrs)}>`;
45091
+ const counter = idGen$r.nextUid();
45092
+ return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption" ${getAttrMarkup(attrs)}>`;
45093
45093
  },
45094
45094
  post: () => `</${tagName$1A}>`
45095
45095
  };
@@ -45116,11 +45116,11 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
45116
45116
  });
45117
45117
 
45118
45118
  const tagName$1y = 'div';
45119
- const idGen$o = new IDGenerator('wm_html');
45119
+ const idGen$q = new IDGenerator('wm_html');
45120
45120
  register('wm-html', () => {
45121
45121
  return {
45122
45122
  pre: (attrs) => {
45123
- const counter = idGen$o.nextUid();
45123
+ const counter = idGen$q.nextUid();
45124
45124
  return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.hint || 'HTML content'" ${getAttrMarkup(attrs)}>`;
45125
45125
  },
45126
45126
  post: () => `</${tagName$1y}>`
@@ -45162,10 +45162,12 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
45162
45162
  });
45163
45163
 
45164
45164
  const tagName$1v = 'label';
45165
+ const idGen$p = new IDGenerator('wm_label');
45165
45166
  register('wm-label', () => {
45166
45167
  return {
45167
45168
  pre: (attrs) => {
45168
- return `<${tagName$1v} wmLabel ${getAttrMarkup(attrs)}>`;
45169
+ const counter = idGen$p.nextUid();
45170
+ return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
45169
45171
  },
45170
45172
  post: () => `</${tagName$1v}>`
45171
45173
  };
@@ -45178,11 +45180,11 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
45178
45180
  });
45179
45181
 
45180
45182
  const tagName$1u = 'img';
45181
- const idGen$n = new IDGenerator('wm_picture');
45183
+ const idGen$o = new IDGenerator('wm_picture');
45182
45184
  register('wm-picture', () => {
45183
45185
  return {
45184
45186
  pre: (attrs) => {
45185
- const counter = idGen$n.nextUid();
45187
+ const counter = idGen$o.nextUid();
45186
45188
  return `<${tagName$1u} wmPicture #${counter}="wmPicture" alt="image" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.hint || 'Image'" ${getAttrMarkup(attrs)}>`;
45187
45189
  }
45188
45190
  };
@@ -45195,11 +45197,11 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
45195
45197
  });
45196
45198
 
45197
45199
  const tagName$1t = 'div';
45198
- const idGen$m = new IDGenerator('wm_spinner');
45200
+ const idGen$n = new IDGenerator('wm_spinner');
45199
45201
  register('wm-spinner', () => {
45200
45202
  return {
45201
45203
  pre: (attrs) => {
45202
- const counter = idGen$m.nextUid();
45204
+ const counter = idGen$n.nextUid();
45203
45205
  return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.hint || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
45204
45206
  },
45205
45207
  post: () => `</${tagName$1t}>`
@@ -45272,11 +45274,11 @@ var progressCircle_build$1 = /*#__PURE__*/Object.freeze({
45272
45274
  });
45273
45275
 
45274
45276
  const tagName$1q = 'div';
45275
- const idGen$l = new IDGenerator('wm_richtexteditor');
45277
+ const idGen$m = new IDGenerator('wm_richtexteditor');
45276
45278
  register('wm-richtexteditor', () => {
45277
45279
  return {
45278
45280
  pre: (attrs) => {
45279
- const counter = idGen$l.nextUid();
45281
+ const counter = idGen$m.nextUid();
45280
45282
  return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.hint || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
45281
45283
  },
45282
45284
  post: () => `</${tagName$1q}>`
@@ -45389,14 +45391,14 @@ var chart_build$1 = /*#__PURE__*/Object.freeze({
45389
45391
 
45390
45392
  const tagName$1i = 'div';
45391
45393
  const dataSetKey$4 = 'dataset';
45392
- const idGen$k = new IDGenerator('wm_accordion_ref_');
45394
+ const idGen$l = new IDGenerator('wm_accordion_ref_');
45393
45395
  const isDynamicAccordion = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
45394
45396
  const ɵ0$b$1 = isDynamicAccordion;
45395
45397
  register('wm-accordion', () => {
45396
45398
  return {
45397
45399
  pre: (attrs, shared) => {
45398
45400
  // generating unique Id for the accordion
45399
- const counter = idGen$k.nextUid();
45401
+ const counter = idGen$l.nextUid();
45400
45402
  shared.set('accordion_ref', counter);
45401
45403
  return `<${tagName$1i} wmAccordion #${counter}="wmAccordion" role="tablist" aria-multiselectable="true" ${getAttrMarkup(attrs)}>`;
45402
45404
  },
@@ -45433,9 +45435,13 @@ var accordion_build$1 = /*#__PURE__*/Object.freeze({
45433
45435
  });
45434
45436
 
45435
45437
  const tagName$1h = 'div';
45438
+ const idGen$k = new IDGenerator('wm_accordionpane');
45436
45439
  register('wm-accordionpane', () => {
45437
45440
  return {
45438
- pre: attrs => `<${tagName$1h} wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`,
45441
+ pre: (attrs) => {
45442
+ const counter = idGen$k.nextUid();
45443
+ return `<${tagName$1h} #${counter}="wmAccordionPane" [attr.aria-expanded]="${counter}.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`;
45444
+ },
45439
45445
  post: () => `</${tagName$1h}>`
45440
45446
  };
45441
45447
  });
@@ -46344,7 +46350,7 @@ register('wm-button', () => {
46344
46350
  return {
46345
46351
  pre: (attrs) => {
46346
46352
  const counter = idGen$c.nextUid();
46347
- return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Button'" ${getAttrMarkup(attrs)}>`;
46353
+ return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.hint || ${counter}.caption" ${getAttrMarkup(attrs)}>`;
46348
46354
  },
46349
46355
  post: () => `</${tagName$P}>`
46350
46356
  };
@@ -44976,14 +44976,14 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
44976
44976
 
44977
44977
  const carouselTagName = 'carousel';
44978
44978
  const dataSetKey$5 = 'dataset';
44979
- const idGen$q = new IDGenerator('wm_carousel_ref_');
44979
+ const idGen$s = new IDGenerator('wm_carousel_ref_');
44980
44980
  const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
44981
44981
  const ɵ0$d$1 = isDynamicCarousel;
44982
44982
  register('wm-carousel', () => {
44983
44983
  return {
44984
44984
  pre: (attrs, shared) => {
44985
44985
  // generating unique Id for the carousel
44986
- const counter = idGen$q.nextUid();
44986
+ const counter = idGen$s.nextUid();
44987
44987
  shared.set('carousel_ref', counter);
44988
44988
  return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
44989
44989
  },
@@ -45084,12 +45084,12 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
45084
45084
  });
45085
45085
 
45086
45086
  const tagName$1A = 'a';
45087
- const idGen$p = new IDGenerator('wm_anchor');
45087
+ const idGen$r = new IDGenerator('wm_anchor');
45088
45088
  register('wm-anchor', () => {
45089
45089
  return {
45090
45090
  pre: (attrs) => {
45091
- const counter = idGen$p.nextUid();
45092
- return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Link'" ${getAttrMarkup(attrs)}>`;
45091
+ const counter = idGen$r.nextUid();
45092
+ return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption" ${getAttrMarkup(attrs)}>`;
45093
45093
  },
45094
45094
  post: () => `</${tagName$1A}>`
45095
45095
  };
@@ -45116,11 +45116,11 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
45116
45116
  });
45117
45117
 
45118
45118
  const tagName$1y = 'div';
45119
- const idGen$o = new IDGenerator('wm_html');
45119
+ const idGen$q = new IDGenerator('wm_html');
45120
45120
  register('wm-html', () => {
45121
45121
  return {
45122
45122
  pre: (attrs) => {
45123
- const counter = idGen$o.nextUid();
45123
+ const counter = idGen$q.nextUid();
45124
45124
  return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.hint || 'HTML content'" ${getAttrMarkup(attrs)}>`;
45125
45125
  },
45126
45126
  post: () => `</${tagName$1y}>`
@@ -45162,10 +45162,12 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
45162
45162
  });
45163
45163
 
45164
45164
  const tagName$1v = 'label';
45165
+ const idGen$p = new IDGenerator('wm_label');
45165
45166
  register('wm-label', () => {
45166
45167
  return {
45167
45168
  pre: (attrs) => {
45168
- return `<${tagName$1v} wmLabel ${getAttrMarkup(attrs)}>`;
45169
+ const counter = idGen$p.nextUid();
45170
+ return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
45169
45171
  },
45170
45172
  post: () => `</${tagName$1v}>`
45171
45173
  };
@@ -45178,11 +45180,11 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
45178
45180
  });
45179
45181
 
45180
45182
  const tagName$1u = 'img';
45181
- const idGen$n = new IDGenerator('wm_picture');
45183
+ const idGen$o = new IDGenerator('wm_picture');
45182
45184
  register('wm-picture', () => {
45183
45185
  return {
45184
45186
  pre: (attrs) => {
45185
- const counter = idGen$n.nextUid();
45187
+ const counter = idGen$o.nextUid();
45186
45188
  return `<${tagName$1u} wmPicture #${counter}="wmPicture" alt="image" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.hint || 'Image'" ${getAttrMarkup(attrs)}>`;
45187
45189
  }
45188
45190
  };
@@ -45195,11 +45197,11 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
45195
45197
  });
45196
45198
 
45197
45199
  const tagName$1t = 'div';
45198
- const idGen$m = new IDGenerator('wm_spinner');
45200
+ const idGen$n = new IDGenerator('wm_spinner');
45199
45201
  register('wm-spinner', () => {
45200
45202
  return {
45201
45203
  pre: (attrs) => {
45202
- const counter = idGen$m.nextUid();
45204
+ const counter = idGen$n.nextUid();
45203
45205
  return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.hint || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
45204
45206
  },
45205
45207
  post: () => `</${tagName$1t}>`
@@ -45272,11 +45274,11 @@ var progressCircle_build$1 = /*#__PURE__*/Object.freeze({
45272
45274
  });
45273
45275
 
45274
45276
  const tagName$1q = 'div';
45275
- const idGen$l = new IDGenerator('wm_richtexteditor');
45277
+ const idGen$m = new IDGenerator('wm_richtexteditor');
45276
45278
  register('wm-richtexteditor', () => {
45277
45279
  return {
45278
45280
  pre: (attrs) => {
45279
- const counter = idGen$l.nextUid();
45281
+ const counter = idGen$m.nextUid();
45280
45282
  return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.hint || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
45281
45283
  },
45282
45284
  post: () => `</${tagName$1q}>`
@@ -45389,14 +45391,14 @@ var chart_build$1 = /*#__PURE__*/Object.freeze({
45389
45391
 
45390
45392
  const tagName$1i = 'div';
45391
45393
  const dataSetKey$4 = 'dataset';
45392
- const idGen$k = new IDGenerator('wm_accordion_ref_');
45394
+ const idGen$l = new IDGenerator('wm_accordion_ref_');
45393
45395
  const isDynamicAccordion = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
45394
45396
  const ɵ0$b$1 = isDynamicAccordion;
45395
45397
  register('wm-accordion', () => {
45396
45398
  return {
45397
45399
  pre: (attrs, shared) => {
45398
45400
  // generating unique Id for the accordion
45399
- const counter = idGen$k.nextUid();
45401
+ const counter = idGen$l.nextUid();
45400
45402
  shared.set('accordion_ref', counter);
45401
45403
  return `<${tagName$1i} wmAccordion #${counter}="wmAccordion" role="tablist" aria-multiselectable="true" ${getAttrMarkup(attrs)}>`;
45402
45404
  },
@@ -45433,9 +45435,13 @@ var accordion_build$1 = /*#__PURE__*/Object.freeze({
45433
45435
  });
45434
45436
 
45435
45437
  const tagName$1h = 'div';
45438
+ const idGen$k = new IDGenerator('wm_accordionpane');
45436
45439
  register('wm-accordionpane', () => {
45437
45440
  return {
45438
- pre: attrs => `<${tagName$1h} wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`,
45441
+ pre: (attrs) => {
45442
+ const counter = idGen$k.nextUid();
45443
+ return `<${tagName$1h} #${counter}="wmAccordionPane" [attr.aria-expanded]="${counter}.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`;
45444
+ },
45439
45445
  post: () => `</${tagName$1h}>`
45440
45446
  };
45441
45447
  });
@@ -46344,7 +46350,7 @@ register('wm-button', () => {
46344
46350
  return {
46345
46351
  pre: (attrs) => {
46346
46352
  const counter = idGen$c.nextUid();
46347
- return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Button'" ${getAttrMarkup(attrs)}>`;
46353
+ return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.hint || ${counter}.caption" ${getAttrMarkup(attrs)}>`;
46348
46354
  },
46349
46355
  post: () => `</${tagName$P}>`
46350
46356
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.4-rc.88",
3
+ "version": "11.2.4-rc.91",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {