@wavemaker/angular-codegen 11.2.0-rc.5203 → 11.2.0-rc.5205

Sign up to get free protection for your applications and to get access to all the features.
@@ -82,7 +82,9 @@
82
82
  "./node_modules/hammerjs/hammer.min.js",
83
83
  "./node_modules/iscroll/build/iscroll.js",
84
84
  "./node_modules/js-cookie/src/js.cookie.js",
85
- "./node_modules/jssha/dist/sha256.js"
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
88
  ]
87
89
  },
88
90
  "configurations": {
@@ -177,7 +179,9 @@
177
179
  "./node_modules/hammerjs/hammer.min.js",
178
180
  "./node_modules/iscroll/build/iscroll.js",
179
181
  "./node_modules/js-cookie/src/js.cookie.js",
180
- "./node_modules/jssha/dist/sha256.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"
181
185
  ],
182
186
  "aot": false,
183
187
  "vendorChunk": true,
@@ -5840,6 +5840,15 @@
5840
5840
  "resolved": "https://registry.npmjs.org/@wavemaker.com/nvd3/-/nvd3-1.0.0.tgz",
5841
5841
  "integrity": "sha512-KwdblvQbf0k51JYt1SJIhhkoQflWsOfgb6MVT9I/kDFpGmm5Z71PXOTNwOGnBFvuqGH6AJVQoM7StE0IK6OmXQ=="
5842
5842
  },
5843
+ "@wavemaker/focus-trap": {
5844
+ "version": "1.0.0",
5845
+ "resolved": "https://registry.npmjs.org/@wavemaker/focus-trap/-/focus-trap-1.0.0.tgz",
5846
+ "integrity": "sha512-ZGQxxL2gdF07h+1nyOzK0jO9QAduv74vBHH42GMV4uHjQvPfuWClwXQEtyBukkX5EXAuOLZNc5X4AWSvOsz0eA==",
5847
+ "requires": {
5848
+ "tabbable": "^6.0.1",
5849
+ "yarn": "^1.22.19"
5850
+ }
5851
+ },
5843
5852
  "@webassemblyjs/ast": {
5844
5853
  "version": "1.9.0",
5845
5854
  "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.9.0.tgz",
@@ -19866,6 +19875,11 @@
19866
19875
  "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==",
19867
19876
  "dev": true
19868
19877
  },
19878
+ "tabbable": {
19879
+ "version": "6.0.1",
19880
+ "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.0.1.tgz",
19881
+ "integrity": "sha512-SYJSIgeyXW7EuX1ytdneO5e8jip42oHWg9xl/o3oTYhmXusZVgiA+VlPvjIN+kHii9v90AmzTZEBcsEvuAY+TA=="
19882
+ },
19869
19883
  "tapable": {
19870
19884
  "version": "2.2.1",
19871
19885
  "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
@@ -22611,6 +22625,11 @@
22611
22625
  }
22612
22626
  }
22613
22627
  },
22628
+ "yarn": {
22629
+ "version": "1.22.19",
22630
+ "resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz",
22631
+ "integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
22632
+ },
22614
22633
  "yn": {
22615
22634
  "version": "3.1.1",
22616
22635
  "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
@@ -45,6 +45,7 @@
45
45
  "@awesome-cordova-plugins/vibration": "5.39.1",
46
46
  "@metrichor/jmespath": "^0.3.1",
47
47
  "@wavemaker.com/nvd3": "1.0.0",
48
+ "@wavemaker/focus-trap": "^1.0.0",
48
49
  "angular-imask": "6.0.4",
49
50
  "angular2-websocket": "0.9.7",
50
51
  "core-js": "2.5.4",
@@ -68,7 +69,7 @@
68
69
  "tslib": "^2.0.0",
69
70
  "x2js": "3.2.6",
70
71
  "zone.js": "~0.11.4",
71
- "@wavemaker/app-ng-runtime": "11.2.0-rc.5203"
72
+ "@wavemaker/app-ng-runtime": "11.2.0-rc.5205"
72
73
  },
73
74
  "devDependencies": {
74
75
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -44970,14 +44970,14 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
44970
44970
 
44971
44971
  const carouselTagName = 'carousel';
44972
44972
  const dataSetKey$5 = 'dataset';
44973
- const idGen$q = new IDGenerator('wm_carousel_ref_');
44973
+ const idGen$s = new IDGenerator('wm_carousel_ref_');
44974
44974
  const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
44975
44975
  const ɵ0$d$1 = isDynamicCarousel;
44976
44976
  register('wm-carousel', () => {
44977
44977
  return {
44978
44978
  pre: (attrs, shared) => {
44979
44979
  // generating unique Id for the carousel
44980
- const counter = idGen$q.nextUid();
44980
+ const counter = idGen$s.nextUid();
44981
44981
  shared.set('carousel_ref', counter);
44982
44982
  return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
44983
44983
  },
@@ -45078,11 +45078,11 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
45078
45078
  });
45079
45079
 
45080
45080
  const tagName$1A = 'a';
45081
- const idGen$p = new IDGenerator('wm_anchor');
45081
+ const idGen$r = new IDGenerator('wm_anchor');
45082
45082
  register('wm-anchor', () => {
45083
45083
  return {
45084
45084
  pre: (attrs) => {
45085
- const counter = idGen$p.nextUid();
45085
+ const counter = idGen$r.nextUid();
45086
45086
  return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Link'" ${getAttrMarkup(attrs)}>`;
45087
45087
  },
45088
45088
  post: () => `</${tagName$1A}>`
@@ -45110,11 +45110,11 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
45110
45110
  });
45111
45111
 
45112
45112
  const tagName$1y = 'div';
45113
- const idGen$o = new IDGenerator('wm_html');
45113
+ const idGen$q = new IDGenerator('wm_html');
45114
45114
  register('wm-html', () => {
45115
45115
  return {
45116
45116
  pre: (attrs) => {
45117
- const counter = idGen$o.nextUid();
45117
+ const counter = idGen$q.nextUid();
45118
45118
  return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.hint || 'HTML content'" ${getAttrMarkup(attrs)}>`;
45119
45119
  },
45120
45120
  post: () => `</${tagName$1y}>`
@@ -45156,10 +45156,12 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
45156
45156
  });
45157
45157
 
45158
45158
  const tagName$1v = 'label';
45159
+ const idGen$p = new IDGenerator('wm_label');
45159
45160
  register('wm-label', () => {
45160
45161
  return {
45161
45162
  pre: (attrs) => {
45162
- return `<${tagName$1v} wmLabel ${getAttrMarkup(attrs)}>`;
45163
+ const counter = idGen$p.nextUid();
45164
+ return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
45163
45165
  },
45164
45166
  post: () => `</${tagName$1v}>`
45165
45167
  };
@@ -45172,11 +45174,11 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
45172
45174
  });
45173
45175
 
45174
45176
  const tagName$1u = 'img';
45175
- const idGen$n = new IDGenerator('wm_picture');
45177
+ const idGen$o = new IDGenerator('wm_picture');
45176
45178
  register('wm-picture', () => {
45177
45179
  return {
45178
45180
  pre: (attrs) => {
45179
- const counter = idGen$n.nextUid();
45181
+ const counter = idGen$o.nextUid();
45180
45182
  return `<${tagName$1u} wmPicture #${counter}="wmPicture" alt="image" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.hint || 'Image'" ${getAttrMarkup(attrs)}>`;
45181
45183
  }
45182
45184
  };
@@ -45189,11 +45191,11 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
45189
45191
  });
45190
45192
 
45191
45193
  const tagName$1t = 'div';
45192
- const idGen$m = new IDGenerator('wm_spinner');
45194
+ const idGen$n = new IDGenerator('wm_spinner');
45193
45195
  register('wm-spinner', () => {
45194
45196
  return {
45195
45197
  pre: (attrs) => {
45196
- const counter = idGen$m.nextUid();
45198
+ const counter = idGen$n.nextUid();
45197
45199
  return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.hint || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
45198
45200
  },
45199
45201
  post: () => `</${tagName$1t}>`
@@ -45266,11 +45268,11 @@ var progressCircle_build$1 = /*#__PURE__*/Object.freeze({
45266
45268
  });
45267
45269
 
45268
45270
  const tagName$1q = 'div';
45269
- const idGen$l = new IDGenerator('wm_richtexteditor');
45271
+ const idGen$m = new IDGenerator('wm_richtexteditor');
45270
45272
  register('wm-richtexteditor', () => {
45271
45273
  return {
45272
45274
  pre: (attrs) => {
45273
- const counter = idGen$l.nextUid();
45275
+ const counter = idGen$m.nextUid();
45274
45276
  return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.hint || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
45275
45277
  },
45276
45278
  post: () => `</${tagName$1q}>`
@@ -45383,14 +45385,14 @@ var chart_build$1 = /*#__PURE__*/Object.freeze({
45383
45385
 
45384
45386
  const tagName$1i = 'div';
45385
45387
  const dataSetKey$4 = 'dataset';
45386
- const idGen$k = new IDGenerator('wm_accordion_ref_');
45388
+ const idGen$l = new IDGenerator('wm_accordion_ref_');
45387
45389
  const isDynamicAccordion = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
45388
45390
  const ɵ0$b$1 = isDynamicAccordion;
45389
45391
  register('wm-accordion', () => {
45390
45392
  return {
45391
45393
  pre: (attrs, shared) => {
45392
45394
  // generating unique Id for the accordion
45393
- const counter = idGen$k.nextUid();
45395
+ const counter = idGen$l.nextUid();
45394
45396
  shared.set('accordion_ref', counter);
45395
45397
  return `<${tagName$1i} wmAccordion #${counter}="wmAccordion" role="tablist" aria-multiselectable="true" ${getAttrMarkup(attrs)}>`;
45396
45398
  },
@@ -45427,9 +45429,13 @@ var accordion_build$1 = /*#__PURE__*/Object.freeze({
45427
45429
  });
45428
45430
 
45429
45431
  const tagName$1h = 'div';
45432
+ const idGen$k = new IDGenerator('wm_accordionpane');
45430
45433
  register('wm-accordionpane', () => {
45431
45434
  return {
45432
- pre: attrs => `<${tagName$1h} wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`,
45435
+ pre: (attrs) => {
45436
+ const counter = idGen$k.nextUid();
45437
+ return `<${tagName$1h} #${counter}="wmAccordionPane" [attr.aria-expanded]="${counter}.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`;
45438
+ },
45433
45439
  post: () => `</${tagName$1h}>`
45434
45440
  };
45435
45441
  });
@@ -44970,14 +44970,14 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
44970
44970
 
44971
44971
  const carouselTagName = 'carousel';
44972
44972
  const dataSetKey$5 = 'dataset';
44973
- const idGen$q = new IDGenerator('wm_carousel_ref_');
44973
+ const idGen$s = new IDGenerator('wm_carousel_ref_');
44974
44974
  const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
44975
44975
  const ɵ0$d$1 = isDynamicCarousel;
44976
44976
  register('wm-carousel', () => {
44977
44977
  return {
44978
44978
  pre: (attrs, shared) => {
44979
44979
  // generating unique Id for the carousel
44980
- const counter = idGen$q.nextUid();
44980
+ const counter = idGen$s.nextUid();
44981
44981
  shared.set('carousel_ref', counter);
44982
44982
  return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
44983
44983
  },
@@ -45078,11 +45078,11 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
45078
45078
  });
45079
45079
 
45080
45080
  const tagName$1A = 'a';
45081
- const idGen$p = new IDGenerator('wm_anchor');
45081
+ const idGen$r = new IDGenerator('wm_anchor');
45082
45082
  register('wm-anchor', () => {
45083
45083
  return {
45084
45084
  pre: (attrs) => {
45085
- const counter = idGen$p.nextUid();
45085
+ const counter = idGen$r.nextUid();
45086
45086
  return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Link'" ${getAttrMarkup(attrs)}>`;
45087
45087
  },
45088
45088
  post: () => `</${tagName$1A}>`
@@ -45110,11 +45110,11 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
45110
45110
  });
45111
45111
 
45112
45112
  const tagName$1y = 'div';
45113
- const idGen$o = new IDGenerator('wm_html');
45113
+ const idGen$q = new IDGenerator('wm_html');
45114
45114
  register('wm-html', () => {
45115
45115
  return {
45116
45116
  pre: (attrs) => {
45117
- const counter = idGen$o.nextUid();
45117
+ const counter = idGen$q.nextUid();
45118
45118
  return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.hint || 'HTML content'" ${getAttrMarkup(attrs)}>`;
45119
45119
  },
45120
45120
  post: () => `</${tagName$1y}>`
@@ -45156,10 +45156,12 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
45156
45156
  });
45157
45157
 
45158
45158
  const tagName$1v = 'label';
45159
+ const idGen$p = new IDGenerator('wm_label');
45159
45160
  register('wm-label', () => {
45160
45161
  return {
45161
45162
  pre: (attrs) => {
45162
- return `<${tagName$1v} wmLabel ${getAttrMarkup(attrs)}>`;
45163
+ const counter = idGen$p.nextUid();
45164
+ return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint" ${getAttrMarkup(attrs)}>`;
45163
45165
  },
45164
45166
  post: () => `</${tagName$1v}>`
45165
45167
  };
@@ -45172,11 +45174,11 @@ var label_build$1 = /*#__PURE__*/Object.freeze({
45172
45174
  });
45173
45175
 
45174
45176
  const tagName$1u = 'img';
45175
- const idGen$n = new IDGenerator('wm_picture');
45177
+ const idGen$o = new IDGenerator('wm_picture');
45176
45178
  register('wm-picture', () => {
45177
45179
  return {
45178
45180
  pre: (attrs) => {
45179
- const counter = idGen$n.nextUid();
45181
+ const counter = idGen$o.nextUid();
45180
45182
  return `<${tagName$1u} wmPicture #${counter}="wmPicture" alt="image" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.hint || 'Image'" ${getAttrMarkup(attrs)}>`;
45181
45183
  }
45182
45184
  };
@@ -45189,11 +45191,11 @@ var picture_build$1 = /*#__PURE__*/Object.freeze({
45189
45191
  });
45190
45192
 
45191
45193
  const tagName$1t = 'div';
45192
- const idGen$m = new IDGenerator('wm_spinner');
45194
+ const idGen$n = new IDGenerator('wm_spinner');
45193
45195
  register('wm-spinner', () => {
45194
45196
  return {
45195
45197
  pre: (attrs) => {
45196
- const counter = idGen$m.nextUid();
45198
+ const counter = idGen$n.nextUid();
45197
45199
  return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.hint || 'Loading...'" aria-live="assertive" aria-busy="true" ${getAttrMarkup(attrs)}>`;
45198
45200
  },
45199
45201
  post: () => `</${tagName$1t}>`
@@ -45266,11 +45268,11 @@ var progressCircle_build$1 = /*#__PURE__*/Object.freeze({
45266
45268
  });
45267
45269
 
45268
45270
  const tagName$1q = 'div';
45269
- const idGen$l = new IDGenerator('wm_richtexteditor');
45271
+ const idGen$m = new IDGenerator('wm_richtexteditor');
45270
45272
  register('wm-richtexteditor', () => {
45271
45273
  return {
45272
45274
  pre: (attrs) => {
45273
- const counter = idGen$l.nextUid();
45275
+ const counter = idGen$m.nextUid();
45274
45276
  return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.hint || 'Richtext editor'" ${getFormMarkupAttr(attrs)}>`;
45275
45277
  },
45276
45278
  post: () => `</${tagName$1q}>`
@@ -45383,14 +45385,14 @@ var chart_build$1 = /*#__PURE__*/Object.freeze({
45383
45385
 
45384
45386
  const tagName$1i = 'div';
45385
45387
  const dataSetKey$4 = 'dataset';
45386
- const idGen$k = new IDGenerator('wm_accordion_ref_');
45388
+ const idGen$l = new IDGenerator('wm_accordion_ref_');
45387
45389
  const isDynamicAccordion = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
45388
45390
  const ɵ0$b$1 = isDynamicAccordion;
45389
45391
  register('wm-accordion', () => {
45390
45392
  return {
45391
45393
  pre: (attrs, shared) => {
45392
45394
  // generating unique Id for the accordion
45393
- const counter = idGen$k.nextUid();
45395
+ const counter = idGen$l.nextUid();
45394
45396
  shared.set('accordion_ref', counter);
45395
45397
  return `<${tagName$1i} wmAccordion #${counter}="wmAccordion" role="tablist" aria-multiselectable="true" ${getAttrMarkup(attrs)}>`;
45396
45398
  },
@@ -45427,9 +45429,13 @@ var accordion_build$1 = /*#__PURE__*/Object.freeze({
45427
45429
  });
45428
45430
 
45429
45431
  const tagName$1h = 'div';
45432
+ const idGen$k = new IDGenerator('wm_accordionpane');
45430
45433
  register('wm-accordionpane', () => {
45431
45434
  return {
45432
- pre: attrs => `<${tagName$1h} wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`,
45435
+ pre: (attrs) => {
45436
+ const counter = idGen$k.nextUid();
45437
+ return `<${tagName$1h} #${counter}="wmAccordionPane" [attr.aria-expanded]="${counter}.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" ${getAttrMarkup(attrs)}>`;
45438
+ },
45433
45439
  post: () => `</${tagName$1h}>`
45434
45440
  };
45435
45441
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.0-rc.5203",
3
+ "version": "11.2.0-rc.5205",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {