@wavemaker/angular-codegen 11.5.0-next.141086 → 11.5.0-next.141088

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.
@@ -47,7 +47,7 @@
47
47
  "@metrichor/jmespath": "^0.3.1",
48
48
  "@wavemaker.com/nvd3": "1.0.0",
49
49
  "@wavemaker/focus-trap": "^1.0.0",
50
- "@wavemaker/variables": "11.5.0-next.141086",
50
+ "@wavemaker/variables": "11.5.0-next.141088",
51
51
  "@ztree/ztree_v3": "^3.5.48",
52
52
  "angular-imask": "6.3.0",
53
53
  "angular2-websocket": "0.9.7",
@@ -72,7 +72,7 @@
72
72
  "tslib": "2.4.1",
73
73
  "x2js": "^3.4.4",
74
74
  "zone.js": "~0.11.4",
75
- "@wavemaker/app-ng-runtime": "11.5.0-next.141086"
75
+ "@wavemaker/app-ng-runtime": "11.5.0-next.141088"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -19017,8 +19017,7 @@ class ASTCompiler {
19017
19017
  }
19018
19018
  const fn = this.build(ast.receiver, stmts);
19019
19019
  const v = this.createVar();
19020
- const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver;
19021
- stmts[stmts.length - 1];
19020
+ const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver || (ast.receiver instanceof PropertyRead && ast.receiver?.receiver instanceof ImplicitReceiver);
19022
19021
  const context = stmts[stmts.length - 1].split('&&')[0].split('=')[1];
19023
19022
  stmts.push(`${v}= ${fn}&&${fn}${isImplicitReceiver ? '.bind(_ctx)' : `.bind(${context})`}(${_args.join(',')})`);
19024
19023
  return v;
@@ -93594,8 +93594,7 @@ let ASTCompiler$1 = class ASTCompiler {
93594
93594
  }
93595
93595
  const fn = this.build(ast.receiver, stmts);
93596
93596
  const v = this.createVar();
93597
- const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver$1;
93598
- stmts[stmts.length - 1];
93597
+ const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver$1 || (ast.receiver instanceof PropertyRead$1 && ast.receiver?.receiver instanceof ImplicitReceiver$1);
93599
93598
  const context = stmts[stmts.length - 1].split('&&')[0].split('=')[1];
93600
93599
  stmts.push(`${v}= ${fn}&&${fn}${isImplicitReceiver ? '.bind(_ctx)' : `.bind(${context})`}(${_args.join(',')})`);
93601
93600
  return v;
@@ -120356,6 +120355,7 @@ class ASTCompiler {
120356
120355
  return v;
120357
120356
  }
120358
120357
  processMethodCall() {
120358
+ var _a;
120359
120359
  const ast = this.cAst;
120360
120360
  const stmts = this.cStmts;
120361
120361
  const _args = [];
@@ -120364,8 +120364,7 @@ class ASTCompiler {
120364
120364
  }
120365
120365
  const fn = this.build(ast.receiver, stmts);
120366
120366
  const v = this.createVar();
120367
- const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver;
120368
- stmts[stmts.length - 1];
120367
+ const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver || (ast.receiver instanceof PropertyRead && ((_a = ast.receiver) === null || _a === void 0 ? void 0 : _a.receiver) instanceof ImplicitReceiver);
120369
120368
  const context = stmts[stmts.length - 1].split('&&')[0].split('=')[1];
120370
120369
  stmts.push(`${v}= ${fn}&&${fn}${isImplicitReceiver ? '.bind(_ctx)' : `.bind(${context})`}(${_args.join(',')})`);
120371
120370
  return v;
@@ -57222,8 +57222,7 @@ class ASTCompiler {
57222
57222
  }
57223
57223
  const fn = this.build(ast.receiver, stmts);
57224
57224
  const v = this.createVar();
57225
- const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver;
57226
- stmts[stmts.length - 1];
57225
+ const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver || (ast.receiver instanceof PropertyRead && ast.receiver?.receiver instanceof ImplicitReceiver);
57227
57226
  const context = stmts[stmts.length - 1].split('&&')[0].split('=')[1];
57228
57227
  stmts.push(`${v}= ${fn}&&${fn}${isImplicitReceiver ? '.bind(_ctx)' : `.bind(${context})`}(${_args.join(',')})`);
57229
57228
  return v;
@@ -61972,7 +61971,7 @@ const registerFormField = (isFormField) => {
61972
61971
  else {
61973
61972
  setDefaultPlaceholder(attrs, widgetType, 2);
61974
61973
  }
61975
- return `<${tagName$X} data-role="${dataRole}" [formGroup]="${pCounter}.ngform" wmFormField captionPosition #${counter}="wmFormField" widgettype="${widgetType}" ${getFormMarkupAttr(attrs)}>
61974
+ return `<${tagName$X} data-role="${dataRole}" [formGroup]="${pCounter}.ngform" wmFormField wmCaptionPosition #${counter}="wmFormField" widgettype="${widgetType}" ${getFormMarkupAttr(attrs)}>
61976
61975
  <div class="live-field form-group app-composite-widget clearfix caption-{{${pCounter}.captionposition}}" widget="${widgetType}">
61977
61976
  <label [hidden]="!${counter}.displayname" class="app-label control-label formfield-label {{${pCounter}._captionClass}}"
61978
61977
  [ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
@@ -57222,8 +57222,7 @@ class ASTCompiler {
57222
57222
  }
57223
57223
  const fn = this.build(ast.receiver, stmts);
57224
57224
  const v = this.createVar();
57225
- const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver;
57226
- stmts[stmts.length - 1];
57225
+ const isImplicitReceiver = ast.receiver instanceof ImplicitReceiver || (ast.receiver instanceof PropertyRead && ast.receiver?.receiver instanceof ImplicitReceiver);
57227
57226
  const context = stmts[stmts.length - 1].split('&&')[0].split('=')[1];
57228
57227
  stmts.push(`${v}= ${fn}&&${fn}${isImplicitReceiver ? '.bind(_ctx)' : `.bind(${context})`}(${_args.join(',')})`);
57229
57228
  return v;
@@ -61972,7 +61971,7 @@ const registerFormField = (isFormField) => {
61972
61971
  else {
61973
61972
  setDefaultPlaceholder(attrs, widgetType, 2);
61974
61973
  }
61975
- return `<${tagName$X} data-role="${dataRole}" [formGroup]="${pCounter}.ngform" wmFormField captionPosition #${counter}="wmFormField" widgettype="${widgetType}" ${getFormMarkupAttr(attrs)}>
61974
+ return `<${tagName$X} data-role="${dataRole}" [formGroup]="${pCounter}.ngform" wmFormField wmCaptionPosition #${counter}="wmFormField" widgettype="${widgetType}" ${getFormMarkupAttr(attrs)}>
61976
61975
  <div class="live-field form-group app-composite-widget clearfix caption-{{${pCounter}.captionposition}}" widget="${widgetType}">
61977
61976
  <label [hidden]="!${counter}.displayname" class="app-label control-label formfield-label {{${pCounter}._captionClass}}"
61978
61977
  [ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.5.0-next.141086",
3
+ "version": "11.5.0-next.141088",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {