@wavemaker/angular-codegen 11.2.0-next.141057 → 11.2.0-next.141058

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.
@@ -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.0-next.141057"
73
+ "@wavemaker/app-ng-runtime": "11.2.0-next.141058"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -48169,6 +48169,12 @@ class PaginationService {
48169
48169
  fetchNextDatasetOnScroll(dataNavigator, parent) {
48170
48170
  // Load next set of data only after the success of current call
48171
48171
  if (!parent.variableInflight) {
48172
+ // Fix for [WMS-23263]: set 'isNextPageData' flag to true & 'isDataUpdatedByUser' to false as next page data is being rendered on Scroll
48173
+ if (parent.widgetType === 'wm-table') {
48174
+ // set isNextPageData flag to true as next page data is being rendered
48175
+ parent.gridOptions.setIsNextPageData(true);
48176
+ parent.gridOptions.setIsDataUpdatedByUser(false);
48177
+ }
48172
48178
  dataNavigator.navigatePage('next');
48173
48179
  }
48174
48180
  }
@@ -44247,6 +44247,12 @@ class PaginationService {
44247
44247
  fetchNextDatasetOnScroll(dataNavigator, parent) {
44248
44248
  // Load next set of data only after the success of current call
44249
44249
  if (!parent.variableInflight) {
44250
+ // Fix for [WMS-23263]: set 'isNextPageData' flag to true & 'isDataUpdatedByUser' to false as next page data is being rendered on Scroll
44251
+ if (parent.widgetType === 'wm-table') {
44252
+ // set isNextPageData flag to true as next page data is being rendered
44253
+ parent.gridOptions.setIsNextPageData(true);
44254
+ parent.gridOptions.setIsDataUpdatedByUser(false);
44255
+ }
44250
44256
  dataNavigator.navigatePage('next');
44251
44257
  }
44252
44258
  }
@@ -44970,14 +44976,14 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
44970
44976
 
44971
44977
  const carouselTagName = 'carousel';
44972
44978
  const dataSetKey$5 = 'dataset';
44973
- const idGen$r = new IDGenerator('wm_carousel_ref_');
44979
+ const idGen$q = new IDGenerator('wm_carousel_ref_');
44974
44980
  const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
44975
44981
  const ɵ0$d$1 = isDynamicCarousel;
44976
44982
  register('wm-carousel', () => {
44977
44983
  return {
44978
44984
  pre: (attrs, shared) => {
44979
44985
  // generating unique Id for the carousel
44980
- const counter = idGen$r.nextUid();
44986
+ const counter = idGen$q.nextUid();
44981
44987
  shared.set('carousel_ref', counter);
44982
44988
  return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
44983
44989
  },
@@ -45078,11 +45084,11 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
45078
45084
  });
45079
45085
 
45080
45086
  const tagName$1A = 'a';
45081
- const idGen$q = new IDGenerator('wm_anchor');
45087
+ const idGen$p = new IDGenerator('wm_anchor');
45082
45088
  register('wm-anchor', () => {
45083
45089
  return {
45084
45090
  pre: (attrs) => {
45085
- const counter = idGen$q.nextUid();
45091
+ const counter = idGen$p.nextUid();
45086
45092
  return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Link'" ${getAttrMarkup(attrs)}>`;
45087
45093
  },
45088
45094
  post: () => `</${tagName$1A}>`
@@ -45110,11 +45116,11 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
45110
45116
  });
45111
45117
 
45112
45118
  const tagName$1y = 'div';
45113
- const idGen$p = new IDGenerator('wm_html');
45119
+ const idGen$o = new IDGenerator('wm_html');
45114
45120
  register('wm-html', () => {
45115
45121
  return {
45116
45122
  pre: (attrs) => {
45117
- const counter = idGen$p.nextUid();
45123
+ const counter = idGen$o.nextUid();
45118
45124
  return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.hint || 'HTML content'" ${getAttrMarkup(attrs)}>`;
45119
45125
  },
45120
45126
  post: () => `</${tagName$1y}>`
@@ -45156,12 +45162,10 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
45156
45162
  });
45157
45163
 
45158
45164
  const tagName$1v = 'label';
45159
- const idGen$o = new IDGenerator('wm_label');
45160
45165
  register('wm-label', () => {
45161
45166
  return {
45162
45167
  pre: (attrs) => {
45163
- const counter = idGen$o.nextUid();
45164
- return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint || 'Label text'" ${getAttrMarkup(attrs)}>`;
45168
+ return `<${tagName$1v} wmLabel ${getAttrMarkup(attrs)}>`;
45165
45169
  },
45166
45170
  post: () => `</${tagName$1v}>`
45167
45171
  };
@@ -44247,6 +44247,12 @@ class PaginationService {
44247
44247
  fetchNextDatasetOnScroll(dataNavigator, parent) {
44248
44248
  // Load next set of data only after the success of current call
44249
44249
  if (!parent.variableInflight) {
44250
+ // Fix for [WMS-23263]: set 'isNextPageData' flag to true & 'isDataUpdatedByUser' to false as next page data is being rendered on Scroll
44251
+ if (parent.widgetType === 'wm-table') {
44252
+ // set isNextPageData flag to true as next page data is being rendered
44253
+ parent.gridOptions.setIsNextPageData(true);
44254
+ parent.gridOptions.setIsDataUpdatedByUser(false);
44255
+ }
44250
44256
  dataNavigator.navigatePage('next');
44251
44257
  }
44252
44258
  }
@@ -44970,14 +44976,14 @@ const scopeComponentStyles = (componentName, componentType, styles = '') => {
44970
44976
 
44971
44977
  const carouselTagName = 'carousel';
44972
44978
  const dataSetKey$5 = 'dataset';
44973
- const idGen$r = new IDGenerator('wm_carousel_ref_');
44979
+ const idGen$q = new IDGenerator('wm_carousel_ref_');
44974
44980
  const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
44975
44981
  const ɵ0$d$1 = isDynamicCarousel;
44976
44982
  register('wm-carousel', () => {
44977
44983
  return {
44978
44984
  pre: (attrs, shared) => {
44979
44985
  // generating unique Id for the carousel
44980
- const counter = idGen$r.nextUid();
44986
+ const counter = idGen$q.nextUid();
44981
44987
  shared.set('carousel_ref', counter);
44982
44988
  return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
44983
44989
  },
@@ -45078,11 +45084,11 @@ var marquee_build$1 = /*#__PURE__*/Object.freeze({
45078
45084
  });
45079
45085
 
45080
45086
  const tagName$1A = 'a';
45081
- const idGen$q = new IDGenerator('wm_anchor');
45087
+ const idGen$p = new IDGenerator('wm_anchor');
45082
45088
  register('wm-anchor', () => {
45083
45089
  return {
45084
45090
  pre: (attrs) => {
45085
- const counter = idGen$q.nextUid();
45091
+ const counter = idGen$p.nextUid();
45086
45092
  return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.hint || ${counter}.caption || 'Link'" ${getAttrMarkup(attrs)}>`;
45087
45093
  },
45088
45094
  post: () => `</${tagName$1A}>`
@@ -45110,11 +45116,11 @@ var audio_build$1 = /*#__PURE__*/Object.freeze({
45110
45116
  });
45111
45117
 
45112
45118
  const tagName$1y = 'div';
45113
- const idGen$p = new IDGenerator('wm_html');
45119
+ const idGen$o = new IDGenerator('wm_html');
45114
45120
  register('wm-html', () => {
45115
45121
  return {
45116
45122
  pre: (attrs) => {
45117
- const counter = idGen$p.nextUid();
45123
+ const counter = idGen$o.nextUid();
45118
45124
  return `<${tagName$1y} wmHtml #${counter}="wmHtml" [attr.aria-label]="${counter}.hint || 'HTML content'" ${getAttrMarkup(attrs)}>`;
45119
45125
  },
45120
45126
  post: () => `</${tagName$1y}>`
@@ -45156,12 +45162,10 @@ var iframe_build$1 = /*#__PURE__*/Object.freeze({
45156
45162
  });
45157
45163
 
45158
45164
  const tagName$1v = 'label';
45159
- const idGen$o = new IDGenerator('wm_label');
45160
45165
  register('wm-label', () => {
45161
45166
  return {
45162
45167
  pre: (attrs) => {
45163
- const counter = idGen$o.nextUid();
45164
- return `<${tagName$1v} wmLabel #${counter}="wmLabel" [attr.aria-label]="${counter}.hint || 'Label text'" ${getAttrMarkup(attrs)}>`;
45168
+ return `<${tagName$1v} wmLabel ${getAttrMarkup(attrs)}>`;
45165
45169
  },
45166
45170
  post: () => `</${tagName$1v}>`
45167
45171
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.0-next.141057",
3
+ "version": "11.2.0-next.141058",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {