@wavemaker/angular-codegen 11.15.5-rc.647813 → 11.15.5-rc.647878

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.
@@ -143164,7 +143164,7 @@ function requireMomentTimezone$1 () {
143164
143164
  hasRequiredMomentTimezone$1 = 1;
143165
143165
  (function (module) {
143166
143166
  //! moment-timezone.js
143167
- //! version : 0.6.5
143167
+ //! version : 0.6.6
143168
143168
  //! Copyright (c) JS Foundation and other contributors
143169
143169
  //! license : MIT
143170
143170
  //! github.com/moment/moment-timezone
@@ -143190,7 +143190,7 @@ function requireMomentTimezone$1 () {
143190
143190
  // return moment;
143191
143191
  // }
143192
143192
 
143193
- var VERSION = "0.6.5",
143193
+ var VERSION = "0.6.6",
143194
143194
  zones = {},
143195
143195
  links = {},
143196
143196
  countries = {},
@@ -143429,6 +143429,10 @@ function requireMomentTimezone$1 () {
143429
143429
  Current Timezone
143430
143430
  ************************************/
143431
143431
 
143432
+ function hasOwnProp(a, b) {
143433
+ return Object.prototype.hasOwnProperty.call(a, b);
143434
+ }
143435
+
143432
143436
  function OffsetAt(at) {
143433
143437
  var timeString = at.toTimeString();
143434
143438
  var abbr = timeString.match(/\([a-z ]+\)/i);
@@ -143541,12 +143545,12 @@ function requireMomentTimezone$1 () {
143541
143545
 
143542
143546
  for (i = 0; i < offsetsLength; i++) {
143543
143547
  offset = offsets[i].offset;
143544
- if (checkedOffsets.hasOwnProperty(offset)) {
143548
+ if (hasOwnProp(checkedOffsets, offset)) {
143545
143549
  continue;
143546
143550
  }
143547
143551
  guessesOffset = guesses[offset] || {};
143548
143552
  for (j in guessesOffset) {
143549
- if (guessesOffset.hasOwnProperty(j)) {
143553
+ if (hasOwnProp(guessesOffset, j)) {
143550
143554
  filteredGuesses[j] = true;
143551
143555
  }
143552
143556
  }
@@ -143554,7 +143558,7 @@ function requireMomentTimezone$1 () {
143554
143558
  }
143555
143559
 
143556
143560
  for (i in filteredGuesses) {
143557
- if (filteredGuesses.hasOwnProperty(i)) {
143561
+ if (hasOwnProp(filteredGuesses, i)) {
143558
143562
  out.push(names[i]);
143559
143563
  }
143560
143564
  }
@@ -143609,7 +143613,7 @@ function requireMomentTimezone$1 () {
143609
143613
  ************************************/
143610
143614
 
143611
143615
  function normalizeName (name) {
143612
- return (name || '').toLowerCase().replace(/\//g, '_');
143616
+ return (typeof name === 'string' ? name : '').toLowerCase().replace(/\//g, '_');
143613
143617
  }
143614
143618
 
143615
143619
  function addZone (packed) {
@@ -143633,7 +143637,7 @@ function requireMomentTimezone$1 () {
143633
143637
 
143634
143638
  name = normalizeName(name);
143635
143639
 
143636
- var zone = zones[name];
143640
+ var zone = hasOwnProp(zones, name) ? zones[name] : undefined;
143637
143641
  var link;
143638
143642
 
143639
143643
  if (zone instanceof Zone) {
@@ -143647,7 +143651,7 @@ function requireMomentTimezone$1 () {
143647
143651
  }
143648
143652
 
143649
143653
  // Pass getZone to prevent recursion more than 1 level deep
143650
- if (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) {
143654
+ if (hasOwnProp(links, name) && caller !== getZone && (link = getZone(links[name], getZone))) {
143651
143655
  zone = zones[name] = new Zone();
143652
143656
  zone._set(link);
143653
143657
  zone.name = names[name];
@@ -143661,7 +143665,7 @@ function requireMomentTimezone$1 () {
143661
143665
  var i, out = [];
143662
143666
 
143663
143667
  for (i in names) {
143664
- if (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) {
143668
+ if (hasOwnProp(names, i) && (zones[i] || zones[links[i]]) && names[i]) {
143665
143669
  out.push(names[i]);
143666
143670
  }
143667
143671
  }
@@ -143709,8 +143713,9 @@ function requireMomentTimezone$1 () {
143709
143713
  }
143710
143714
 
143711
143715
  function getCountry (name) {
143716
+ if (typeof name !== 'string') return null;
143712
143717
  name = name.toUpperCase();
143713
- return countries[name] || null;
143718
+ return hasOwnProp(countries, name) ? countries[name] : null;
143714
143719
  }
143715
143720
 
143716
143721
  function zonesForCountry(country, with_offset) {
@@ -143763,7 +143768,7 @@ function requireMomentTimezone$1 () {
143763
143768
  return Object.getOwnPropertyNames(input).length > 0;
143764
143769
  }
143765
143770
  for (prop in input) {
143766
- if (Object.prototype.hasOwnProperty.call(input, prop)) {
143771
+ if (hasOwnProp(input, prop)) {
143767
143772
  return true;
143768
143773
  }
143769
143774
  }
@@ -149875,14 +149880,10 @@ const triggerItemAction$1 = (scope, item) => {
149875
149880
  const getDatasourceFromExpr$1 = (expr, scope) => {
149876
149881
  const isBoundToVariable = startsWith$1(expr, 'Variables.');
149877
149882
  const isBoundToWidget = startsWith$1(expr, 'Widgets.');
149878
- const isBoundToActivePageVar = startsWith$1(expr, 'App.activePage.Variables.');
149879
149883
  const parts = expr.split('.');
149880
149884
  if (isBoundToVariable) {
149881
149885
  return get$2(scope.viewParent.Variables, parts[1]);
149882
149886
  }
149883
- if (isBoundToActivePageVar) {
149884
- return get$2(scope.viewParent?.App?.activePage?.Variables, parts[3]);
149885
- }
149886
149887
  if (isBoundToWidget) {
149887
149888
  const widgetScope = get$2(scope.viewParent.Widgets, parts[1]);
149888
149889
  const widgetDatasetBoundExpr = widgetScope.$attrs.get('datasetboundexpr');
@@ -200523,7 +200524,7 @@ function requireMomentTimezone () {
200523
200524
  hasRequiredMomentTimezone = 1;
200524
200525
  (function (module) {
200525
200526
  //! moment-timezone.js
200526
- //! version : 0.6.5
200527
+ //! version : 0.6.6
200527
200528
  //! Copyright (c) JS Foundation and other contributors
200528
200529
  //! license : MIT
200529
200530
  //! github.com/moment/moment-timezone
@@ -200549,7 +200550,7 @@ function requireMomentTimezone () {
200549
200550
  // return moment;
200550
200551
  // }
200551
200552
 
200552
- var VERSION = "0.6.5",
200553
+ var VERSION = "0.6.6",
200553
200554
  zones = {},
200554
200555
  links = {},
200555
200556
  countries = {},
@@ -200788,6 +200789,10 @@ function requireMomentTimezone () {
200788
200789
  Current Timezone
200789
200790
  ************************************/
200790
200791
 
200792
+ function hasOwnProp(a, b) {
200793
+ return Object.prototype.hasOwnProperty.call(a, b);
200794
+ }
200795
+
200791
200796
  function OffsetAt(at) {
200792
200797
  var timeString = at.toTimeString();
200793
200798
  var abbr = timeString.match(/\([a-z ]+\)/i);
@@ -200900,12 +200905,12 @@ function requireMomentTimezone () {
200900
200905
 
200901
200906
  for (i = 0; i < offsetsLength; i++) {
200902
200907
  offset = offsets[i].offset;
200903
- if (checkedOffsets.hasOwnProperty(offset)) {
200908
+ if (hasOwnProp(checkedOffsets, offset)) {
200904
200909
  continue;
200905
200910
  }
200906
200911
  guessesOffset = guesses[offset] || {};
200907
200912
  for (j in guessesOffset) {
200908
- if (guessesOffset.hasOwnProperty(j)) {
200913
+ if (hasOwnProp(guessesOffset, j)) {
200909
200914
  filteredGuesses[j] = true;
200910
200915
  }
200911
200916
  }
@@ -200913,7 +200918,7 @@ function requireMomentTimezone () {
200913
200918
  }
200914
200919
 
200915
200920
  for (i in filteredGuesses) {
200916
- if (filteredGuesses.hasOwnProperty(i)) {
200921
+ if (hasOwnProp(filteredGuesses, i)) {
200917
200922
  out.push(names[i]);
200918
200923
  }
200919
200924
  }
@@ -200968,7 +200973,7 @@ function requireMomentTimezone () {
200968
200973
  ************************************/
200969
200974
 
200970
200975
  function normalizeName (name) {
200971
- return (name || '').toLowerCase().replace(/\//g, '_');
200976
+ return (typeof name === 'string' ? name : '').toLowerCase().replace(/\//g, '_');
200972
200977
  }
200973
200978
 
200974
200979
  function addZone (packed) {
@@ -200992,7 +200997,7 @@ function requireMomentTimezone () {
200992
200997
 
200993
200998
  name = normalizeName(name);
200994
200999
 
200995
- var zone = zones[name];
201000
+ var zone = hasOwnProp(zones, name) ? zones[name] : undefined;
200996
201001
  var link;
200997
201002
 
200998
201003
  if (zone instanceof Zone) {
@@ -201006,7 +201011,7 @@ function requireMomentTimezone () {
201006
201011
  }
201007
201012
 
201008
201013
  // Pass getZone to prevent recursion more than 1 level deep
201009
- if (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) {
201014
+ if (hasOwnProp(links, name) && caller !== getZone && (link = getZone(links[name], getZone))) {
201010
201015
  zone = zones[name] = new Zone();
201011
201016
  zone._set(link);
201012
201017
  zone.name = names[name];
@@ -201020,7 +201025,7 @@ function requireMomentTimezone () {
201020
201025
  var i, out = [];
201021
201026
 
201022
201027
  for (i in names) {
201023
- if (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) {
201028
+ if (hasOwnProp(names, i) && (zones[i] || zones[links[i]]) && names[i]) {
201024
201029
  out.push(names[i]);
201025
201030
  }
201026
201031
  }
@@ -201068,8 +201073,9 @@ function requireMomentTimezone () {
201068
201073
  }
201069
201074
 
201070
201075
  function getCountry (name) {
201076
+ if (typeof name !== 'string') return null;
201071
201077
  name = name.toUpperCase();
201072
- return countries[name] || null;
201078
+ return hasOwnProp(countries, name) ? countries[name] : null;
201073
201079
  }
201074
201080
 
201075
201081
  function zonesForCountry(country, with_offset) {
@@ -201122,7 +201128,7 @@ function requireMomentTimezone () {
201122
201128
  return Object.getOwnPropertyNames(input).length > 0;
201123
201129
  }
201124
201130
  for (prop in input) {
201125
- if (Object.prototype.hasOwnProperty.call(input, prop)) {
201131
+ if (hasOwnProp(input, prop)) {
201126
201132
  return true;
201127
201133
  }
201128
201134
  }
@@ -206169,14 +206175,10 @@ const triggerItemAction = (scope, item) => {
206169
206175
  const getDatasourceFromExpr = (expr, scope) => {
206170
206176
  const isBoundToVariable = startsWith(expr, 'Variables.');
206171
206177
  const isBoundToWidget = startsWith(expr, 'Widgets.');
206172
- const isBoundToActivePageVar = startsWith(expr, 'App.activePage.Variables.');
206173
206178
  const parts = expr.split('.');
206174
206179
  if (isBoundToVariable) {
206175
206180
  return get(scope.viewParent.Variables, parts[1]);
206176
206181
  }
206177
- if (isBoundToActivePageVar) {
206178
- return get(scope.viewParent?.App?.activePage?.Variables, parts[3]);
206179
- }
206180
206182
  if (isBoundToWidget) {
206181
206183
  const widgetScope = get(scope.viewParent.Widgets, parts[1]);
206182
206184
  const widgetDatasetBoundExpr = widgetScope.$attrs.get('datasetboundexpr');
@@ -35719,8 +35719,8 @@ const getDataSource = (dataSetExpr) => {
35719
35719
  if (parts[0] === 'Variables' || parts[0] === 'Widgets') {
35720
35720
  return `${parts[0]}.${parts[1]}`;
35721
35721
  }
35722
- if (parts[0] === 'App' && parts[1] === 'activePage' && parts[2] === 'Variables' && parts[3]) {
35723
- return `App.activePage.Variables.${parts[3]}`;
35722
+ if (parts[0] === 'App' && parts[1] === 'activePage' && parts[2]?.includes('Variables') && parts[3]) {
35723
+ return `App.activePage.${parts[2]}.${parts[3]}`;
35724
35724
  }
35725
35725
  };
35726
35726
  const widgetChildAttrs = (() => {
@@ -49692,7 +49692,7 @@ function requireMomentTimezone () {
49692
49692
  hasRequiredMomentTimezone = 1;
49693
49693
  (function (module) {
49694
49694
  //! moment-timezone.js
49695
- //! version : 0.6.5
49695
+ //! version : 0.6.6
49696
49696
  //! Copyright (c) JS Foundation and other contributors
49697
49697
  //! license : MIT
49698
49698
  //! github.com/moment/moment-timezone
@@ -49718,7 +49718,7 @@ function requireMomentTimezone () {
49718
49718
  // return moment;
49719
49719
  // }
49720
49720
 
49721
- var VERSION = "0.6.5",
49721
+ var VERSION = "0.6.6",
49722
49722
  zones = {},
49723
49723
  links = {},
49724
49724
  countries = {},
@@ -49957,6 +49957,10 @@ function requireMomentTimezone () {
49957
49957
  Current Timezone
49958
49958
  ************************************/
49959
49959
 
49960
+ function hasOwnProp(a, b) {
49961
+ return Object.prototype.hasOwnProperty.call(a, b);
49962
+ }
49963
+
49960
49964
  function OffsetAt(at) {
49961
49965
  var timeString = at.toTimeString();
49962
49966
  var abbr = timeString.match(/\([a-z ]+\)/i);
@@ -50069,12 +50073,12 @@ function requireMomentTimezone () {
50069
50073
 
50070
50074
  for (i = 0; i < offsetsLength; i++) {
50071
50075
  offset = offsets[i].offset;
50072
- if (checkedOffsets.hasOwnProperty(offset)) {
50076
+ if (hasOwnProp(checkedOffsets, offset)) {
50073
50077
  continue;
50074
50078
  }
50075
50079
  guessesOffset = guesses[offset] || {};
50076
50080
  for (j in guessesOffset) {
50077
- if (guessesOffset.hasOwnProperty(j)) {
50081
+ if (hasOwnProp(guessesOffset, j)) {
50078
50082
  filteredGuesses[j] = true;
50079
50083
  }
50080
50084
  }
@@ -50082,7 +50086,7 @@ function requireMomentTimezone () {
50082
50086
  }
50083
50087
 
50084
50088
  for (i in filteredGuesses) {
50085
- if (filteredGuesses.hasOwnProperty(i)) {
50089
+ if (hasOwnProp(filteredGuesses, i)) {
50086
50090
  out.push(names[i]);
50087
50091
  }
50088
50092
  }
@@ -50137,7 +50141,7 @@ function requireMomentTimezone () {
50137
50141
  ************************************/
50138
50142
 
50139
50143
  function normalizeName (name) {
50140
- return (name || '').toLowerCase().replace(/\//g, '_');
50144
+ return (typeof name === 'string' ? name : '').toLowerCase().replace(/\//g, '_');
50141
50145
  }
50142
50146
 
50143
50147
  function addZone (packed) {
@@ -50161,7 +50165,7 @@ function requireMomentTimezone () {
50161
50165
 
50162
50166
  name = normalizeName(name);
50163
50167
 
50164
- var zone = zones[name];
50168
+ var zone = hasOwnProp(zones, name) ? zones[name] : undefined;
50165
50169
  var link;
50166
50170
 
50167
50171
  if (zone instanceof Zone) {
@@ -50175,7 +50179,7 @@ function requireMomentTimezone () {
50175
50179
  }
50176
50180
 
50177
50181
  // Pass getZone to prevent recursion more than 1 level deep
50178
- if (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) {
50182
+ if (hasOwnProp(links, name) && caller !== getZone && (link = getZone(links[name], getZone))) {
50179
50183
  zone = zones[name] = new Zone();
50180
50184
  zone._set(link);
50181
50185
  zone.name = names[name];
@@ -50189,7 +50193,7 @@ function requireMomentTimezone () {
50189
50193
  var i, out = [];
50190
50194
 
50191
50195
  for (i in names) {
50192
- if (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) {
50196
+ if (hasOwnProp(names, i) && (zones[i] || zones[links[i]]) && names[i]) {
50193
50197
  out.push(names[i]);
50194
50198
  }
50195
50199
  }
@@ -50237,8 +50241,9 @@ function requireMomentTimezone () {
50237
50241
  }
50238
50242
 
50239
50243
  function getCountry (name) {
50244
+ if (typeof name !== 'string') return null;
50240
50245
  name = name.toUpperCase();
50241
- return countries[name] || null;
50246
+ return hasOwnProp(countries, name) ? countries[name] : null;
50242
50247
  }
50243
50248
 
50244
50249
  function zonesForCountry(country, with_offset) {
@@ -50291,7 +50296,7 @@ function requireMomentTimezone () {
50291
50296
  return Object.getOwnPropertyNames(input).length > 0;
50292
50297
  }
50293
50298
  for (prop in input) {
50294
- if (Object.prototype.hasOwnProperty.call(input, prop)) {
50299
+ if (hasOwnProp(input, prop)) {
50295
50300
  return true;
50296
50301
  }
50297
50302
  }
@@ -102288,14 +102293,10 @@ const triggerItemAction = (scope, item) => {
102288
102293
  const getDatasourceFromExpr = (expr, scope) => {
102289
102294
  const isBoundToVariable = startsWith(expr, 'Variables.');
102290
102295
  const isBoundToWidget = startsWith(expr, 'Widgets.');
102291
- const isBoundToActivePageVar = startsWith(expr, 'App.activePage.Variables.');
102292
102296
  const parts = expr.split('.');
102293
102297
  if (isBoundToVariable) {
102294
102298
  return get$1(scope.viewParent.Variables, parts[1]);
102295
102299
  }
102296
- if (isBoundToActivePageVar) {
102297
- return get$1(scope.viewParent?.App?.activePage?.Variables, parts[3]);
102298
- }
102299
102300
  if (isBoundToWidget) {
102300
102301
  const widgetScope = get$1(scope.viewParent.Widgets, parts[1]);
102301
102302
  const widgetDatasetBoundExpr = widgetScope.$attrs.get('datasetboundexpr');
@@ -104846,7 +104847,7 @@ const registerFormField = (isFormField) => {
104846
104847
  else {
104847
104848
  setDefaultPlaceholder(attrs, widgetType, 2);
104848
104849
  }
104849
- return `<${tagName$Z} data-role="${dataRole}" [formGroup]="${pCounter}.ngform" wmFormField wmCaptionPosition #${counter}="wmFormField" widgettype="${widgetType}" ${getFormMarkupAttr(attrs)}>
104850
+ return `<${tagName$Z} data-role="${dataRole}" [formGroup]="${pCounter}.ngform" wmFormField wmCaptionPosition #${counter}="wmFormField" widgettype="${widgetType}" [hidden]="!${counter}.show" ${getFormMarkupAttr(attrs)}>
104850
104851
  <div class="live-field form-group app-composite-widget clearfix caption-{{${pCounter}.captionposition}}" widget="${widgetType}">
104851
104852
  <label [hidden]="!${counter}.displayname" class="app-label control-label formfield-label {{${pCounter}._captionClass}}"
104852
104853
  [ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,