@wavemaker/angular-codegen 11.2.0-next.140404 → 11.2.0-next.140751

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.
@@ -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,
@@ -5950,24 +5950,13 @@
5950
5950
  "resolved": "https://registry.npmjs.org/@wavemaker.com/nvd3/-/nvd3-1.0.0.tgz",
5951
5951
  "integrity": "sha512-KwdblvQbf0k51JYt1SJIhhkoQflWsOfgb6MVT9I/kDFpGmm5Z71PXOTNwOGnBFvuqGH6AJVQoM7StE0IK6OmXQ=="
5952
5952
  },
5953
- "@wavemaker/variables": {
5954
- "version": "11.2.0-next.140404",
5955
- "resolved": "https://registry.npmjs.org/@wavemaker/variables/-/variables-11.2.0-next.140404.tgz",
5956
- "integrity": "sha512-pubCyxYgoDlU9xxJsT8ynt/D4QeVX8P0wqh9cYPG2AkpT9SRkfdIMv8o+XgL72qHZ4isoOnbaYsRKBKiYvTRcw==",
5953
+ "@wavemaker/focus-trap": {
5954
+ "version": "1.0.0",
5955
+ "resolved": "https://registry.npmjs.org/@wavemaker/focus-trap/-/focus-trap-1.0.0.tgz",
5956
+ "integrity": "sha512-ZGQxxL2gdF07h+1nyOzK0jO9QAduv74vBHH42GMV4uHjQvPfuWClwXQEtyBukkX5EXAuOLZNc5X4AWSvOsz0eA==",
5957
5957
  "requires": {
5958
- "@metrichor/jmespath": "^0.3.1",
5959
- "lodash": "^4.17.21",
5960
- "x2js": "^3.4.3"
5961
- },
5962
- "dependencies": {
5963
- "x2js": {
5964
- "version": "3.4.4",
5965
- "resolved": "https://registry.npmjs.org/x2js/-/x2js-3.4.4.tgz",
5966
- "integrity": "sha512-yG/ThaBCgnsa3aoMPAe7QwDpcyU4D70hjXC4Y1lZSfD/Tgd0MpE19FnZZRAjekryw0c8cffpOt9zsPEiqktO6Q==",
5967
- "requires": {
5968
- "@xmldom/xmldom": "^0.8.3"
5969
- }
5970
- }
5958
+ "tabbable": "^6.0.1",
5959
+ "yarn": "^1.22.19"
5971
5960
  }
5972
5961
  },
5973
5962
  "@webassemblyjs/ast": {
@@ -6170,11 +6159,6 @@
6170
6159
  "@xtuc/long": "4.2.2"
6171
6160
  }
6172
6161
  },
6173
- "@xmldom/xmldom": {
6174
- "version": "0.8.6",
6175
- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.6.tgz",
6176
- "integrity": "sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg=="
6177
- },
6178
6162
  "@xtuc/ieee754": {
6179
6163
  "version": "1.2.0",
6180
6164
  "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
@@ -20375,6 +20359,11 @@
20375
20359
  "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==",
20376
20360
  "dev": true
20377
20361
  },
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=="
20366
+ },
20378
20367
  "tapable": {
20379
20368
  "version": "2.2.1",
20380
20369
  "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
@@ -23175,6 +23164,11 @@
23175
23164
  }
23176
23165
  }
23177
23166
  },
23167
+ "yarn": {
23168
+ "version": "1.22.19",
23169
+ "resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz",
23170
+ "integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
23171
+ },
23178
23172
  "yauzl": {
23179
23173
  "version": "2.10.0",
23180
23174
  "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
@@ -46,7 +46,7 @@
46
46
  "@awesome-cordova-plugins/vibration": "5.39.1",
47
47
  "@metrichor/jmespath": "^0.3.1",
48
48
  "@wavemaker.com/nvd3": "1.0.0",
49
- "@wavemaker/variables": "11.2.0-next.140404",
49
+ "@wavemaker/focus-trap": "^1.0.0",
50
50
  "angular-imask": "6.0.4",
51
51
  "angular2-websocket": "0.9.7",
52
52
  "core-js": "2.5.4",
@@ -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.140404"
73
+ "@wavemaker/app-ng-runtime": "11.2.0-next.140751"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -37,9 +37,6 @@
37
37
  "@wm/core": [
38
38
  "node_modules/@wavemaker/app-ng-runtime/core"
39
39
  ],
40
- "@wavemaker/variables": [
41
- "node_modules/@wavemaker/variables/"
42
- ],
43
40
  "@wm/components/base": [
44
41
  "node_modules/@wavemaker/app-ng-runtime/components/base"
45
42
  ],
@@ -46638,42 +46638,41 @@ const validateDataSourceCtx = (ds, ctx) => {
46638
46638
  * @param name name of the variable
46639
46639
  * @param context scope of the variable
46640
46640
  */
46641
- const processFilterExpBindNode = (context, filterExpressions, variable) => {
46641
+ const processFilterExpBindNode = (context, filterExpressions) => {
46642
46642
  const destroyFn = context.registerDestroyListener ? context.registerDestroyListener.bind(context) : _.noop;
46643
46643
  const filter$ = new Subject();
46644
46644
  const bindFilExpObj = (obj, targetNodeKey) => {
46645
- const listener = (newVal, oldVal) => {
46646
- if ((newVal === oldVal && _.isUndefined(newVal)) || (_.isUndefined(newVal) && !_.isUndefined(oldVal))) {
46647
- return;
46648
- }
46649
- // Skip cloning for blob column
46650
- if (!_.includes(['blob', 'file'], obj.type)) {
46651
- newVal = getClonedObject(newVal);
46652
- }
46653
- // backward compatibility: where we are allowing the user to bind complete object
46654
- if (obj.target === 'dataBinding') {
46655
- // remove the existing databinding element
46656
- filterExpressions.rules = [];
46657
- // now add all the returned values
46658
- _.forEach(newVal, function (value, target) {
46659
- filterExpressions.rules.push({
46660
- 'target': target,
46661
- 'value': value,
46662
- 'matchMode': obj.matchMode || 'startignorecase',
46663
- 'required': false,
46664
- 'type': ''
46665
- });
46666
- });
46667
- }
46668
- else {
46669
- // setting value to the root node
46670
- obj[targetNodeKey] = newVal;
46671
- }
46672
- filter$.next({ filterExpressions, newVal });
46673
- };
46674
46645
  if (stringStartsWith(obj[targetNodeKey], 'bind:')) {
46675
46646
  // [Todo-CSP]: needs a check, where is this used
46676
- destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, variable ? variable.invokeOnFiltertExpressionChange.bind(variable, obj, targetNodeKey) : listener, undefined, false, { arrayType: _.includes(['in', 'notin'], obj.matchMode) }));
46647
+ destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, (newVal, oldVal) => {
46648
+ if ((newVal === oldVal && _.isUndefined(newVal)) || (_.isUndefined(newVal) && !_.isUndefined(oldVal))) {
46649
+ return;
46650
+ }
46651
+ // Skip cloning for blob column
46652
+ if (!_.includes(['blob', 'file'], obj.type)) {
46653
+ newVal = getClonedObject(newVal);
46654
+ }
46655
+ // backward compatibility: where we are allowing the user to bind complete object
46656
+ if (obj.target === 'dataBinding') {
46657
+ // remove the existing databinding element
46658
+ filterExpressions.rules = [];
46659
+ // now add all the returned values
46660
+ _.forEach(newVal, function (value, target) {
46661
+ filterExpressions.rules.push({
46662
+ 'target': target,
46663
+ 'value': value,
46664
+ 'matchMode': obj.matchMode || 'startignorecase',
46665
+ 'required': false,
46666
+ 'type': ''
46667
+ });
46668
+ });
46669
+ }
46670
+ else {
46671
+ // setting value to the root node
46672
+ obj[targetNodeKey] = newVal;
46673
+ }
46674
+ filter$.next({ filterExpressions, newVal });
46675
+ }, undefined, false, { arrayType: _.includes(['in', 'notin'], obj.matchMode) }));
46677
46676
  }
46678
46677
  };
46679
46678
  const traverseFilterExpressions = expressions => {
@@ -69522,17 +69521,17 @@ ToDatePipe.ctorParameters = () => [
69522
69521
  { type: AbstractI18nService }
69523
69522
  ];
69524
69523
  class ToNumberPipe {
69525
- constructor(decimalPipe, i18Service) {
69524
+ constructor(decimalPipe, i18nService) {
69526
69525
  this.decimalPipe = decimalPipe;
69527
- this.i18Service = i18Service;
69526
+ this.i18nService = i18nService;
69528
69527
  }
69529
69528
  transform(data, fracSize) {
69530
69529
  if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
69531
69530
  fracSize = '1.' + fracSize + '-' + fracSize;
69532
69531
  }
69533
69532
  if (!_.isNaN(+data)) {
69534
- const locale = this.i18Service.getwidgetLocale() ? this.i18Service.getwidgetLocale() : undefined;
69535
- const formattedLocale = locale ? locale['number'] : undefined;
69533
+ const locale = this.i18nService && this.i18nService.getwidgetLocale() ? this.i18nService.getwidgetLocale() : undefined;
69534
+ const formattedLocale = locale ? locale['number'] : null;
69536
69535
  return this.decimalPipe.transform(data, fracSize, formattedLocale);
69537
69536
  }
69538
69537
  }
@@ -69547,13 +69546,13 @@ ToNumberPipe.ctorParameters = () => [
69547
69546
  { type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
69548
69547
  ];
69549
69548
  class ToCurrencyPipe {
69550
- constructor(decimalPipe, i18Service) {
69549
+ constructor(decimalPipe, i18nService) {
69551
69550
  this.decimalPipe = decimalPipe;
69552
- this.i18Service = i18Service;
69551
+ this.i18nService = i18nService;
69553
69552
  }
69554
69553
  transform(data, currencySymbol, fracSize) {
69555
69554
  const _currencySymbol = (CURRENCY_INFO[currencySymbol] || {}).symbol || currencySymbol || '';
69556
- let _val = new ToNumberPipe(this.decimalPipe, this.i18Service).transform(data, fracSize);
69555
+ let _val = new ToNumberPipe(this.decimalPipe, this.i18nService).transform(data, fracSize);
69557
69556
  const isNegativeNumber = _.startsWith(_val, '-');
69558
69557
  if (isNegativeNumber) {
69559
69558
  _val = _val.replace('-', '');
@@ -42716,42 +42716,41 @@ const validateDataSourceCtx = (ds, ctx) => {
42716
42716
  * @param name name of the variable
42717
42717
  * @param context scope of the variable
42718
42718
  */
42719
- const processFilterExpBindNode = (context, filterExpressions, variable) => {
42719
+ const processFilterExpBindNode = (context, filterExpressions) => {
42720
42720
  const destroyFn = context.registerDestroyListener ? context.registerDestroyListener.bind(context) : _.noop;
42721
42721
  const filter$ = new Subject();
42722
42722
  const bindFilExpObj = (obj, targetNodeKey) => {
42723
- const listener = (newVal, oldVal) => {
42724
- if ((newVal === oldVal && _.isUndefined(newVal)) || (_.isUndefined(newVal) && !_.isUndefined(oldVal))) {
42725
- return;
42726
- }
42727
- // Skip cloning for blob column
42728
- if (!_.includes(['blob', 'file'], obj.type)) {
42729
- newVal = getClonedObject(newVal);
42730
- }
42731
- // backward compatibility: where we are allowing the user to bind complete object
42732
- if (obj.target === 'dataBinding') {
42733
- // remove the existing databinding element
42734
- filterExpressions.rules = [];
42735
- // now add all the returned values
42736
- _.forEach(newVal, function (value, target) {
42737
- filterExpressions.rules.push({
42738
- 'target': target,
42739
- 'value': value,
42740
- 'matchMode': obj.matchMode || 'startignorecase',
42741
- 'required': false,
42742
- 'type': ''
42743
- });
42744
- });
42745
- }
42746
- else {
42747
- // setting value to the root node
42748
- obj[targetNodeKey] = newVal;
42749
- }
42750
- filter$.next({ filterExpressions, newVal });
42751
- };
42752
42723
  if (stringStartsWith(obj[targetNodeKey], 'bind:')) {
42753
42724
  // [Todo-CSP]: needs a check, where is this used
42754
- destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, variable ? variable.invokeOnFiltertExpressionChange.bind(variable, obj, targetNodeKey) : listener, undefined, false, { arrayType: _.includes(['in', 'notin'], obj.matchMode) }));
42725
+ destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, (newVal, oldVal) => {
42726
+ if ((newVal === oldVal && _.isUndefined(newVal)) || (_.isUndefined(newVal) && !_.isUndefined(oldVal))) {
42727
+ return;
42728
+ }
42729
+ // Skip cloning for blob column
42730
+ if (!_.includes(['blob', 'file'], obj.type)) {
42731
+ newVal = getClonedObject(newVal);
42732
+ }
42733
+ // backward compatibility: where we are allowing the user to bind complete object
42734
+ if (obj.target === 'dataBinding') {
42735
+ // remove the existing databinding element
42736
+ filterExpressions.rules = [];
42737
+ // now add all the returned values
42738
+ _.forEach(newVal, function (value, target) {
42739
+ filterExpressions.rules.push({
42740
+ 'target': target,
42741
+ 'value': value,
42742
+ 'matchMode': obj.matchMode || 'startignorecase',
42743
+ 'required': false,
42744
+ 'type': ''
42745
+ });
42746
+ });
42747
+ }
42748
+ else {
42749
+ // setting value to the root node
42750
+ obj[targetNodeKey] = newVal;
42751
+ }
42752
+ filter$.next({ filterExpressions, newVal });
42753
+ }, undefined, false, { arrayType: _.includes(['in', 'notin'], obj.matchMode) }));
42755
42754
  }
42756
42755
  };
42757
42756
  const traverseFilterExpressions = expressions => {
@@ -42716,42 +42716,41 @@ const validateDataSourceCtx = (ds, ctx) => {
42716
42716
  * @param name name of the variable
42717
42717
  * @param context scope of the variable
42718
42718
  */
42719
- const processFilterExpBindNode = (context, filterExpressions, variable) => {
42719
+ const processFilterExpBindNode = (context, filterExpressions) => {
42720
42720
  const destroyFn = context.registerDestroyListener ? context.registerDestroyListener.bind(context) : _.noop;
42721
42721
  const filter$ = new Subject();
42722
42722
  const bindFilExpObj = (obj, targetNodeKey) => {
42723
- const listener = (newVal, oldVal) => {
42724
- if ((newVal === oldVal && _.isUndefined(newVal)) || (_.isUndefined(newVal) && !_.isUndefined(oldVal))) {
42725
- return;
42726
- }
42727
- // Skip cloning for blob column
42728
- if (!_.includes(['blob', 'file'], obj.type)) {
42729
- newVal = getClonedObject(newVal);
42730
- }
42731
- // backward compatibility: where we are allowing the user to bind complete object
42732
- if (obj.target === 'dataBinding') {
42733
- // remove the existing databinding element
42734
- filterExpressions.rules = [];
42735
- // now add all the returned values
42736
- _.forEach(newVal, function (value, target) {
42737
- filterExpressions.rules.push({
42738
- 'target': target,
42739
- 'value': value,
42740
- 'matchMode': obj.matchMode || 'startignorecase',
42741
- 'required': false,
42742
- 'type': ''
42743
- });
42744
- });
42745
- }
42746
- else {
42747
- // setting value to the root node
42748
- obj[targetNodeKey] = newVal;
42749
- }
42750
- filter$.next({ filterExpressions, newVal });
42751
- };
42752
42723
  if (stringStartsWith(obj[targetNodeKey], 'bind:')) {
42753
42724
  // [Todo-CSP]: needs a check, where is this used
42754
- destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, variable ? variable.invokeOnFiltertExpressionChange.bind(variable, obj, targetNodeKey) : listener, undefined, false, { arrayType: _.includes(['in', 'notin'], obj.matchMode) }));
42725
+ destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, (newVal, oldVal) => {
42726
+ if ((newVal === oldVal && _.isUndefined(newVal)) || (_.isUndefined(newVal) && !_.isUndefined(oldVal))) {
42727
+ return;
42728
+ }
42729
+ // Skip cloning for blob column
42730
+ if (!_.includes(['blob', 'file'], obj.type)) {
42731
+ newVal = getClonedObject(newVal);
42732
+ }
42733
+ // backward compatibility: where we are allowing the user to bind complete object
42734
+ if (obj.target === 'dataBinding') {
42735
+ // remove the existing databinding element
42736
+ filterExpressions.rules = [];
42737
+ // now add all the returned values
42738
+ _.forEach(newVal, function (value, target) {
42739
+ filterExpressions.rules.push({
42740
+ 'target': target,
42741
+ 'value': value,
42742
+ 'matchMode': obj.matchMode || 'startignorecase',
42743
+ 'required': false,
42744
+ 'type': ''
42745
+ });
42746
+ });
42747
+ }
42748
+ else {
42749
+ // setting value to the root node
42750
+ obj[targetNodeKey] = newVal;
42751
+ }
42752
+ filter$.next({ filterExpressions, newVal });
42753
+ }, undefined, false, { arrayType: _.includes(['in', 'notin'], obj.matchMode) }));
42755
42754
  }
42756
42755
  };
42757
42756
  const traverseFilterExpressions = expressions => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.0-next.140404",
3
+ "version": "11.2.0-next.140751",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {